hadoop_0.18.2.xml 1.6 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Tue Nov 04 18:17:16 UTC 2008 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.18.2"
  9. jdversion="1.1.1">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/ndaley/tools/jdiff/latest/jdiff.jar:/home/ndaley/tools/jdiff/latest/xerces.jar -classpath /home/ndaley/hadoop/branch-0.18/build/classes:/home/ndaley/hadoop/branch-0.18/lib/commons-cli-2.0-SNAPSHOT.jar:/home/ndaley/hadoop/branch-0.18/lib/commons-codec-1.3.jar:/home/ndaley/hadoop/branch-0.18/lib/commons-httpclient-3.0.1.jar:/home/ndaley/hadoop/branch-0.18/lib/commons-logging-1.0.4.jar:/home/ndaley/hadoop/branch-0.18/lib/commons-logging-api-1.0.4.jar:/home/ndaley/hadoop/branch-0.18/lib/commons-net-1.4.1.jar:/home/ndaley/hadoop/branch-0.18/lib/jets3t-0.6.0.jar:/home/ndaley/hadoop/branch-0.18/lib/jetty-5.1.4.jar:/home/ndaley/hadoop/branch-0.18/lib/jetty-ext/commons-el.jar:/home/ndaley/hadoop/branch-0.18/lib/jetty-ext/jasper-compiler.jar:/home/ndaley/hadoop/branch-0.18/lib/jetty-ext/jasper-runtime.jar:/home/ndaley/hadoop/branch-0.18/lib/jetty-ext/jsp-api.jar:/home/ndaley/hadoop/branch-0.18/lib/junit-3.8.1.jar:/home/ndaley/hadoop/branch-0.18/lib/kfs-0.1.3.jar:/home/ndaley/hadoop/branch-0.18/lib/log4j-1.2.15.jar:/home/ndaley/hadoop/branch-0.18/lib/oro-2.0.8.jar:/home/ndaley/hadoop/branch-0.18/lib/servlet-api.jar:/home/ndaley/hadoop/branch-0.18/lib/slf4j-api-1.4.3.jar:/home/ndaley/hadoop/branch-0.18/lib/slf4j-log4j12-1.4.3.jar:/home/ndaley/hadoop/branch-0.18/lib/xmlenc-0.52.jar:/home/ndaley/hadoop/branch-0.18/conf:/home/ndaley/tools/ant/latest/lib/ant-launcher.jar:/home/ndaley/tools/ant/latest/lib/ant-antlr.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-bcel.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-bsf.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-log4j.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-oro.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-regexp.jar:/home/ndaley/tools/ant/latest/lib/ant-apache-resolver.jar:/home/ndaley/tools/ant/latest/lib/ant-commons-logging.jar:/home/ndaley/tools/ant/latest/lib/ant-commons-net.jar:/home/ndaley/tools/ant/latest/lib/ant-jai.jar:/home/ndaley/tools/ant/latest/lib/ant-javamail.jar:/home/ndaley/tools/ant/latest/lib/ant-jdepend.jar:/home/ndaley/tools/ant/latest/lib/ant-jmf.jar:/home/ndaley/tools/ant/latest/lib/ant-jsch.jar:/home/ndaley/tools/ant/latest/lib/ant-junit.jar:/home/ndaley/tools/ant/latest/lib/ant-netrexx.jar:/home/ndaley/tools/ant/latest/lib/ant-nodeps.jar:/home/ndaley/tools/ant/latest/lib/ant-starteam.jar:/home/ndaley/tools/ant/latest/lib/ant-stylebook.jar:/home/ndaley/tools/ant/latest/lib/ant-swing.jar:/home/ndaley/tools/ant/latest/lib/ant-testutil.jar:/home/ndaley/tools/ant/latest/lib/ant-trax.jar:/home/ndaley/tools/ant/latest/lib/ant-weblogic.jar:/home/ndaley/tools/ant/latest/lib/ant.jar:/home/ndaley/tools/ant/latest/lib/xercesImpl.jar:/home/ndaley/tools/ant/latest/lib/xml-apis.jar:/home/hadoopqa/tools/java/jdk1.5.0_11-32bit/lib/tools.jar -sourcepath /home/ndaley/hadoop/branch-0.18/src/core:/home/ndaley/hadoop/branch-0.18/src/mapred:/home/ndaley/hadoop/branch-0.18/src/tools -apidir /home/ndaley/hadoop/branch-0.18/docs/jdiff -apiname hadoop 0.18.2 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopVersionAnnotation -->
  13. <class name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <doc>
  18. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  19. </doc>
  20. </class>
  21. <!-- end class org.apache.hadoop.HadoopVersionAnnotation -->
  22. </package>
  23. <package name="org.apache.hadoop.conf">
  24. <!-- start interface org.apache.hadoop.conf.Configurable -->
  25. <interface name="Configurable" abstract="true"
  26. static="false" final="false" visibility="public"
  27. deprecated="not deprecated">
  28. <method name="setConf"
  29. abstract="false" native="false" synchronized="false"
  30. static="false" final="false" visibility="public"
  31. deprecated="not deprecated">
  32. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33. <doc>
  34. <![CDATA[Set the configuration to be used by this object.]]>
  35. </doc>
  36. </method>
  37. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  38. abstract="false" native="false" synchronized="false"
  39. static="false" final="false" visibility="public"
  40. deprecated="not deprecated">
  41. <doc>
  42. <![CDATA[Return the configuration used by this object.]]>
  43. </doc>
  44. </method>
  45. <doc>
  46. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  47. </doc>
  48. </interface>
  49. <!-- end interface org.apache.hadoop.conf.Configurable -->
  50. <!-- start class org.apache.hadoop.conf.Configuration -->
  51. <class name="Configuration" extends="java.lang.Object"
  52. abstract="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <implements name="java.lang.Iterable&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"/>
  56. <constructor name="Configuration"
  57. static="false" final="false" visibility="public"
  58. deprecated="not deprecated">
  59. <doc>
  60. <![CDATA[A new configuration.]]>
  61. </doc>
  62. </constructor>
  63. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  64. static="false" final="false" visibility="public"
  65. deprecated="not deprecated">
  66. <doc>
  67. <![CDATA[A new configuration with the same settings cloned from another.
  68. @param other the configuration from which to clone settings.]]>
  69. </doc>
  70. </constructor>
  71. <method name="addResource"
  72. abstract="false" native="false" synchronized="false"
  73. static="false" final="false" visibility="public"
  74. deprecated="not deprecated">
  75. <param name="name" type="java.lang.String"/>
  76. <doc>
  77. <![CDATA[Add a configuration resource.
  78. The properties of this resource will override properties of previously
  79. added resources, unless they were marked <a href="#Final">final</a>.
  80. @param name resource to be added, the classpath is examined for a file
  81. with that name.]]>
  82. </doc>
  83. </method>
  84. <method name="addResource"
  85. abstract="false" native="false" synchronized="false"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <param name="url" type="java.net.URL"/>
  89. <doc>
  90. <![CDATA[Add a configuration resource.
  91. The properties of this resource will override properties of previously
  92. added resources, unless they were marked <a href="#Final">final</a>.
  93. @param url url of the resource to be added, the local filesystem is
  94. examined directly to find the resource, without referring to
  95. the classpath.]]>
  96. </doc>
  97. </method>
  98. <method name="addResource"
  99. abstract="false" native="false" synchronized="false"
  100. static="false" final="false" visibility="public"
  101. deprecated="not deprecated">
  102. <param name="file" type="org.apache.hadoop.fs.Path"/>
  103. <doc>
  104. <![CDATA[Add a configuration resource.
  105. The properties of this resource will override properties of previously
  106. added resources, unless they were marked <a href="#Final">final</a>.
  107. @param file file-path of resource to be added, the local filesystem is
  108. examined directly to find the resource, without referring to
  109. the classpath.]]>
  110. </doc>
  111. </method>
  112. <method name="get" return="java.lang.String"
  113. abstract="false" native="false" synchronized="false"
  114. static="false" final="false" visibility="public"
  115. deprecated="not deprecated">
  116. <param name="name" type="java.lang.String"/>
  117. <doc>
  118. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  119. no such property exists.
  120. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  121. before being returned.
  122. @param name the property name.
  123. @return the value of the <code>name</code> property,
  124. or null if no such property exists.]]>
  125. </doc>
  126. </method>
  127. <method name="getRaw" return="java.lang.String"
  128. abstract="false" native="false" synchronized="false"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. <param name="name" type="java.lang.String"/>
  132. <doc>
  133. <![CDATA[Get the value of the <code>name</code> property, without doing
  134. <a href="#VariableExpansion">variable expansion</a>.
  135. @param name the property name.
  136. @return the value of the <code>name</code> property,
  137. or null if no such property exists.]]>
  138. </doc>
  139. </method>
  140. <method name="set"
  141. abstract="false" native="false" synchronized="false"
  142. static="false" final="false" visibility="public"
  143. deprecated="not deprecated">
  144. <param name="name" type="java.lang.String"/>
  145. <param name="value" type="java.lang.String"/>
  146. <doc>
  147. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  148. @param name property name.
  149. @param value property value.]]>
  150. </doc>
  151. </method>
  152. <method name="get" return="java.lang.String"
  153. abstract="false" native="false" synchronized="false"
  154. static="false" final="false" visibility="public"
  155. deprecated="not deprecated">
  156. <param name="name" type="java.lang.String"/>
  157. <param name="defaultValue" type="java.lang.String"/>
  158. <doc>
  159. <![CDATA[Get the value of the <code>name</code> property. If no such property
  160. exists, then <code>defaultValue</code> is returned.
  161. @param name property name.
  162. @param defaultValue default value.
  163. @return property value, or <code>defaultValue</code> if the property
  164. doesn't exist.]]>
  165. </doc>
  166. </method>
  167. <method name="getInt" return="int"
  168. abstract="false" native="false" synchronized="false"
  169. static="false" final="false" visibility="public"
  170. deprecated="not deprecated">
  171. <param name="name" type="java.lang.String"/>
  172. <param name="defaultValue" type="int"/>
  173. <doc>
  174. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  175. If no such property exists, or if the specified value is not a valid
  176. <code>int</code>, then <code>defaultValue</code> is returned.
  177. @param name property name.
  178. @param defaultValue default value.
  179. @return property value as an <code>int</code>,
  180. or <code>defaultValue</code>.]]>
  181. </doc>
  182. </method>
  183. <method name="setInt"
  184. abstract="false" native="false" synchronized="false"
  185. static="false" final="false" visibility="public"
  186. deprecated="not deprecated">
  187. <param name="name" type="java.lang.String"/>
  188. <param name="value" type="int"/>
  189. <doc>
  190. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  191. @param name property name.
  192. @param value <code>int</code> value of the property.]]>
  193. </doc>
  194. </method>
  195. <method name="getLong" return="long"
  196. abstract="false" native="false" synchronized="false"
  197. static="false" final="false" visibility="public"
  198. deprecated="not deprecated">
  199. <param name="name" type="java.lang.String"/>
  200. <param name="defaultValue" type="long"/>
  201. <doc>
  202. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  203. If no such property is specified, or if the specified value is not a valid
  204. <code>long</code>, then <code>defaultValue</code> is returned.
  205. @param name property name.
  206. @param defaultValue default value.
  207. @return property value as a <code>long</code>,
  208. or <code>defaultValue</code>.]]>
  209. </doc>
  210. </method>
  211. <method name="setLong"
  212. abstract="false" native="false" synchronized="false"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <param name="name" type="java.lang.String"/>
  216. <param name="value" type="long"/>
  217. <doc>
  218. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  219. @param name property name.
  220. @param value <code>long</code> value of the property.]]>
  221. </doc>
  222. </method>
  223. <method name="getFloat" return="float"
  224. abstract="false" native="false" synchronized="false"
  225. static="false" final="false" visibility="public"
  226. deprecated="not deprecated">
  227. <param name="name" type="java.lang.String"/>
  228. <param name="defaultValue" type="float"/>
  229. <doc>
  230. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  231. If no such property is specified, or if the specified value is not a valid
  232. <code>float</code>, then <code>defaultValue</code> is returned.
  233. @param name property name.
  234. @param defaultValue default value.
  235. @return property value as a <code>float</code>,
  236. or <code>defaultValue</code>.]]>
  237. </doc>
  238. </method>
  239. <method name="getBoolean" return="boolean"
  240. abstract="false" native="false" synchronized="false"
  241. static="false" final="false" visibility="public"
  242. deprecated="not deprecated">
  243. <param name="name" type="java.lang.String"/>
  244. <param name="defaultValue" type="boolean"/>
  245. <doc>
  246. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  247. If no such property is specified, or if the specified value is not a valid
  248. <code>boolean</code>, then <code>defaultValue</code> is returned.
  249. @param name property name.
  250. @param defaultValue default value.
  251. @return property value as a <code>boolean</code>,
  252. or <code>defaultValue</code>.]]>
  253. </doc>
  254. </method>
  255. <method name="setBoolean"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="name" type="java.lang.String"/>
  260. <param name="value" type="boolean"/>
  261. <doc>
  262. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  263. @param name property name.
  264. @param value <code>boolean</code> value of the property.]]>
  265. </doc>
  266. </method>
  267. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  268. abstract="false" native="false" synchronized="false"
  269. static="false" final="false" visibility="public"
  270. deprecated="not deprecated">
  271. <param name="name" type="java.lang.String"/>
  272. <param name="defaultValue" type="java.lang.String"/>
  273. <doc>
  274. <![CDATA[Parse the given attribute as a set of integer ranges
  275. @param name the attribute name
  276. @param defaultValue the default value if it is not set
  277. @return a new set of ranges from the configured value]]>
  278. </doc>
  279. </method>
  280. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  281. abstract="false" native="false" synchronized="false"
  282. static="false" final="false" visibility="public"
  283. deprecated="not deprecated">
  284. <param name="name" type="java.lang.String"/>
  285. <doc>
  286. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  287. a collection of <code>String</code>s.
  288. If no such property is specified then empty collection is returned.
  289. <p>
  290. This is an optimized version of {@link #getStrings(String)}
  291. @param name property name.
  292. @return property value as a collection of <code>String</code>s.]]>
  293. </doc>
  294. </method>
  295. <method name="getStrings" return="java.lang.String[]"
  296. abstract="false" native="false" synchronized="false"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <param name="name" type="java.lang.String"/>
  300. <doc>
  301. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  302. an array of <code>String</code>s.
  303. If no such property is specified then <code>null</code> is returned.
  304. @param name property name.
  305. @return property value as an array of <code>String</code>s,
  306. or <code>null</code>.]]>
  307. </doc>
  308. </method>
  309. <method name="getStrings" return="java.lang.String[]"
  310. abstract="false" native="false" synchronized="false"
  311. static="false" final="false" visibility="public"
  312. deprecated="not deprecated">
  313. <param name="name" type="java.lang.String"/>
  314. <param name="defaultValue" type="java.lang.String[]"/>
  315. <doc>
  316. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  317. an array of <code>String</code>s.
  318. If no such property is specified then default value is returned.
  319. @param name property name.
  320. @param defaultValue The default value
  321. @return property value as an array of <code>String</code>s,
  322. or default value.]]>
  323. </doc>
  324. </method>
  325. <method name="setStrings"
  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="values" type="java.lang.String[]"/>
  331. <doc>
  332. <![CDATA[Set the array of string values for the <code>name</code> property as
  333. as comma delimited values.
  334. @param name property name.
  335. @param values The values]]>
  336. </doc>
  337. </method>
  338. <method name="getClassByName" return="java.lang.Class&lt;?&gt;"
  339. abstract="false" native="false" synchronized="false"
  340. static="false" final="false" visibility="public"
  341. deprecated="not deprecated">
  342. <param name="name" type="java.lang.String"/>
  343. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  344. <doc>
  345. <![CDATA[Load a class by name.
  346. @param name the class name.
  347. @return the class object.
  348. @throws ClassNotFoundException if the class is not found.]]>
  349. </doc>
  350. </method>
  351. <method name="getClass" return="java.lang.Class&lt;?&gt;"
  352. abstract="false" native="false" synchronized="false"
  353. static="false" final="false" visibility="public"
  354. deprecated="not deprecated">
  355. <param name="name" type="java.lang.String"/>
  356. <param name="defaultValue" type="java.lang.Class&lt;?&gt;"/>
  357. <doc>
  358. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  359. If no such property is specified, then <code>defaultValue</code> is
  360. returned.
  361. @param name the class name.
  362. @param defaultValue default value.
  363. @return property value as a <code>Class</code>,
  364. or <code>defaultValue</code>.]]>
  365. </doc>
  366. </method>
  367. <method name="getClass" return="java.lang.Class&lt;? extends U&gt;"
  368. abstract="false" native="false" synchronized="false"
  369. static="false" final="false" visibility="public"
  370. deprecated="not deprecated">
  371. <param name="name" type="java.lang.String"/>
  372. <param name="defaultValue" type="java.lang.Class&lt;? extends U&gt;"/>
  373. <param name="xface" type="java.lang.Class&lt;U&gt;"/>
  374. <doc>
  375. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  376. implementing the interface specified by <code>xface</code>.
  377. If no such property is specified, then <code>defaultValue</code> is
  378. returned.
  379. An exception is thrown if the returned class does not implement the named
  380. interface.
  381. @param name the class name.
  382. @param defaultValue default value.
  383. @param xface the interface implemented by the named class.
  384. @return property value as a <code>Class</code>,
  385. or <code>defaultValue</code>.]]>
  386. </doc>
  387. </method>
  388. <method name="setClass"
  389. abstract="false" native="false" synchronized="false"
  390. static="false" final="false" visibility="public"
  391. deprecated="not deprecated">
  392. <param name="name" type="java.lang.String"/>
  393. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  394. <param name="xface" type="java.lang.Class&lt;?&gt;"/>
  395. <doc>
  396. <![CDATA[Set the value of the <code>name</code> property to the name of a
  397. <code>theClass</code> implementing the given interface <code>xface</code>.
  398. An exception is thrown if <code>theClass</code> does not implement the
  399. interface <code>xface</code>.
  400. @param name property name.
  401. @param theClass property value.
  402. @param xface the interface implemented by the named class.]]>
  403. </doc>
  404. </method>
  405. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  406. abstract="false" native="false" synchronized="false"
  407. static="false" final="false" visibility="public"
  408. deprecated="not deprecated">
  409. <param name="dirsProp" type="java.lang.String"/>
  410. <param name="path" type="java.lang.String"/>
  411. <exception name="IOException" type="java.io.IOException"/>
  412. <doc>
  413. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  414. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  415. then one is chosen based on <i>path</i>'s hash code. If the selected
  416. directory does not exist, an attempt is made to create it.
  417. @param dirsProp directory in which to locate the file.
  418. @param path file-path.
  419. @return local file under the directory with the given path.]]>
  420. </doc>
  421. </method>
  422. <method name="getFile" return="java.io.File"
  423. abstract="false" native="false" synchronized="false"
  424. static="false" final="false" visibility="public"
  425. deprecated="not deprecated">
  426. <param name="dirsProp" type="java.lang.String"/>
  427. <param name="path" type="java.lang.String"/>
  428. <exception name="IOException" type="java.io.IOException"/>
  429. <doc>
  430. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  431. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  432. then one is chosen based on <i>path</i>'s hash code. If the selected
  433. directory does not exist, an attempt is made to create it.
  434. @param dirsProp directory in which to locate the file.
  435. @param path file-path.
  436. @return local file under the directory with the given path.]]>
  437. </doc>
  438. </method>
  439. <method name="getResource" return="java.net.URL"
  440. abstract="false" native="false" synchronized="false"
  441. static="false" final="false" visibility="public"
  442. deprecated="not deprecated">
  443. <param name="name" type="java.lang.String"/>
  444. <doc>
  445. <![CDATA[Get the {@link URL} for the named resource.
  446. @param name resource name.
  447. @return the url for the named resource.]]>
  448. </doc>
  449. </method>
  450. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  451. abstract="false" native="false" synchronized="false"
  452. static="false" final="false" visibility="public"
  453. deprecated="not deprecated">
  454. <param name="name" type="java.lang.String"/>
  455. <doc>
  456. <![CDATA[Get an input stream attached to the configuration resource with the
  457. given <code>name</code>.
  458. @param name configuration resource name.
  459. @return an input stream attached to the resource.]]>
  460. </doc>
  461. </method>
  462. <method name="getConfResourceAsReader" return="java.io.Reader"
  463. abstract="false" native="false" synchronized="false"
  464. static="false" final="false" visibility="public"
  465. deprecated="not deprecated">
  466. <param name="name" type="java.lang.String"/>
  467. <doc>
  468. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  469. given <code>name</code>.
  470. @param name configuration resource name.
  471. @return a reader attached to the resource.]]>
  472. </doc>
  473. </method>
  474. <method name="iterator" return="java.util.Iterator&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"
  475. abstract="false" native="false" synchronized="false"
  476. static="false" final="false" visibility="public"
  477. deprecated="not deprecated">
  478. <doc>
  479. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  480. key-value pairs in the configuration.
  481. @return an iterator over the entries.]]>
  482. </doc>
  483. </method>
  484. <method name="write"
  485. abstract="false" native="false" synchronized="false"
  486. static="false" final="false" visibility="public"
  487. deprecated="not deprecated">
  488. <param name="out" type="java.io.OutputStream"/>
  489. <exception name="IOException" type="java.io.IOException"/>
  490. <doc>
  491. <![CDATA[Write out the non-default properties in this configuration to the give
  492. {@link OutputStream}.
  493. @param out the output stream to write to.]]>
  494. </doc>
  495. </method>
  496. <method name="getClassLoader" return="java.lang.ClassLoader"
  497. abstract="false" native="false" synchronized="false"
  498. static="false" final="false" visibility="public"
  499. deprecated="not deprecated">
  500. <doc>
  501. <![CDATA[Get the {@link ClassLoader} for this job.
  502. @return the correct class loader.]]>
  503. </doc>
  504. </method>
  505. <method name="setClassLoader"
  506. abstract="false" native="false" synchronized="false"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="classLoader" type="java.lang.ClassLoader"/>
  510. <doc>
  511. <![CDATA[Set the class loader that will be used to load the various objects.
  512. @param classLoader the new class loader.]]>
  513. </doc>
  514. </method>
  515. <method name="toString" return="java.lang.String"
  516. abstract="false" native="false" synchronized="false"
  517. static="false" final="false" visibility="public"
  518. deprecated="not deprecated">
  519. </method>
  520. <method name="setQuietMode"
  521. abstract="false" native="false" synchronized="true"
  522. static="false" final="false" visibility="public"
  523. deprecated="not deprecated">
  524. <param name="quietmode" type="boolean"/>
  525. <doc>
  526. <![CDATA[Set the quiteness-mode.
  527. In the quite-mode error and informational messages might not be logged.
  528. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  529. to turn it off.]]>
  530. </doc>
  531. </method>
  532. <method name="main"
  533. abstract="false" native="false" synchronized="false"
  534. static="true" final="false" visibility="public"
  535. deprecated="not deprecated">
  536. <param name="args" type="java.lang.String[]"/>
  537. <exception name="Exception" type="java.lang.Exception"/>
  538. <doc>
  539. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  540. </doc>
  541. </method>
  542. <doc>
  543. <![CDATA[Provides access to configuration parameters.
  544. <h4 id="Resources">Resources</h4>
  545. <p>Configurations are specified by resources. A resource contains a set of
  546. name/value pairs as XML data. Each resource is named by either a
  547. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  548. then the classpath is examined for a file with that name. If named by a
  549. <code>Path</code>, then the local filesystem is examined directly, without
  550. referring to the classpath.
  551. <p>Hadoop by default specifies two resources, loaded in-order from the
  552. classpath: <ol>
  553. <li><tt><a href="{@docRoot}/../hadoop-default.html">hadoop-default.xml</a>
  554. </tt>: Read-only defaults for hadoop.</li>
  555. <li><tt>hadoop-site.xml</tt>: Site-specific configuration for a given hadoop
  556. installation.</li>
  557. </ol>
  558. Applications may add additional resources, which are loaded
  559. subsequent to these resources in the order they are added.
  560. <h4 id="FinalParams">Final Parameters</h4>
  561. <p>Configuration parameters may be declared <i>final</i>.
  562. Once a resource declares a value final, no subsequently-loaded
  563. resource can alter that value.
  564. For example, one might define a final parameter with:
  565. <tt><pre>
  566. &lt;property&gt;
  567. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  568. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  569. <b>&lt;final&gt;true&lt;/final&gt;</b>
  570. &lt;/property&gt;</pre></tt>
  571. Administrators typically define parameters as final in
  572. <tt>hadoop-site.xml</tt> for values that user applications may not alter.
  573. <h4 id="VariableExpansion">Variable Expansion</h4>
  574. <p>Value strings are first processed for <i>variable expansion</i>. The
  575. available properties are:<ol>
  576. <li>Other properties defined in this Configuration; and, if a name is
  577. undefined here,</li>
  578. <li>Properties in {@link System#getProperties()}.</li>
  579. </ol>
  580. <p>For example, if a configuration resource contains the following property
  581. definitions:
  582. <tt><pre>
  583. &lt;property&gt;
  584. &lt;name&gt;basedir&lt;/name&gt;
  585. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  586. &lt;/property&gt;
  587. &lt;property&gt;
  588. &lt;name&gt;tempdir&lt;/name&gt;
  589. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  590. &lt;/property&gt;</pre></tt>
  591. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  592. will be resolved to another property in this Configuration, while
  593. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  594. of the System property with that name.]]>
  595. </doc>
  596. </class>
  597. <!-- end class org.apache.hadoop.conf.Configuration -->
  598. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  599. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  600. abstract="false"
  601. static="true" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <constructor name="Configuration.IntegerRanges"
  604. static="false" final="false" visibility="public"
  605. deprecated="not deprecated">
  606. </constructor>
  607. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  608. static="false" final="false" visibility="public"
  609. deprecated="not deprecated">
  610. </constructor>
  611. <method name="isIncluded" return="boolean"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="value" type="int"/>
  616. <doc>
  617. <![CDATA[Is the given value in the set of ranges
  618. @param value the value to check
  619. @return is the value in the ranges?]]>
  620. </doc>
  621. </method>
  622. <method name="toString" return="java.lang.String"
  623. abstract="false" native="false" synchronized="false"
  624. static="false" final="false" visibility="public"
  625. deprecated="not deprecated">
  626. </method>
  627. <doc>
  628. <![CDATA[A class that represents a set of positive integer ranges. It parses
  629. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  630. the lower/upper bounds are separated by dash. Either the lower or upper
  631. bound may be omitted meaning all values up to or over. So the string
  632. above means 2, 3, 5, and 7, 8, 9, ...]]>
  633. </doc>
  634. </class>
  635. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  636. <!-- start class org.apache.hadoop.conf.Configured -->
  637. <class name="Configured" extends="java.lang.Object"
  638. abstract="false"
  639. static="false" final="false" visibility="public"
  640. deprecated="not deprecated">
  641. <implements name="org.apache.hadoop.conf.Configurable"/>
  642. <constructor name="Configured"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <doc>
  646. <![CDATA[Construct a Configured.]]>
  647. </doc>
  648. </constructor>
  649. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  650. static="false" final="false" visibility="public"
  651. deprecated="not deprecated">
  652. <doc>
  653. <![CDATA[Construct a Configured.]]>
  654. </doc>
  655. </constructor>
  656. <method name="setConf"
  657. abstract="false" native="false" synchronized="false"
  658. static="false" final="false" visibility="public"
  659. deprecated="not deprecated">
  660. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  661. </method>
  662. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  663. abstract="false" native="false" synchronized="false"
  664. static="false" final="false" visibility="public"
  665. deprecated="not deprecated">
  666. </method>
  667. <doc>
  668. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  669. </doc>
  670. </class>
  671. <!-- end class org.apache.hadoop.conf.Configured -->
  672. </package>
  673. <package name="org.apache.hadoop.filecache">
  674. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  675. <class name="DistributedCache" extends="java.lang.Object"
  676. abstract="false"
  677. static="false" final="false" visibility="public"
  678. deprecated="not deprecated">
  679. <constructor name="DistributedCache"
  680. static="false" final="false" visibility="public"
  681. deprecated="not deprecated">
  682. </constructor>
  683. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  684. abstract="false" native="false" synchronized="false"
  685. static="true" final="false" visibility="public"
  686. deprecated="not deprecated">
  687. <param name="cache" type="java.net.URI"/>
  688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  689. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  690. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  691. <param name="isArchive" type="boolean"/>
  692. <param name="confFileStamp" type="long"/>
  693. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  694. <exception name="IOException" type="java.io.IOException"/>
  695. <doc>
  696. <![CDATA[Get the locally cached file or archive; it could either be
  697. previously cached (and valid) or copy it from the {@link FileSystem} now.
  698. @param cache the cache to be localized, this should be specified as
  699. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  700. or hostname:port is provided the file is assumed to be in the filesystem
  701. being used in the Configuration
  702. @param conf The Confguration file which contains the filesystem
  703. @param baseDir The base cache Dir where you wnat to localize the files/archives
  704. @param fileStatus The file status on the dfs.
  705. @param isArchive if the cache is an archive or a file. In case it is an
  706. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  707. be unzipped/unjarred/untarred automatically
  708. and the directory where the archive is unzipped/unjarred/untarred is
  709. returned as the Path.
  710. In case of a file, the path to the file is returned
  711. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  712. file to be cached hasn't changed since the job started
  713. @param currentWorkDir this is the directory where you would want to create symlinks
  714. for the locally cached files/archives
  715. @return the path to directory where the archives are unjarred in case of archives,
  716. the path to the file where the file is copied locally
  717. @throws IOException]]>
  718. </doc>
  719. </method>
  720. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  721. abstract="false" native="false" synchronized="false"
  722. static="true" final="false" visibility="public"
  723. deprecated="not deprecated">
  724. <param name="cache" type="java.net.URI"/>
  725. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  726. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  727. <param name="isArchive" type="boolean"/>
  728. <param name="confFileStamp" type="long"/>
  729. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  730. <exception name="IOException" type="java.io.IOException"/>
  731. <doc>
  732. <![CDATA[Get the locally cached file or archive; it could either be
  733. previously cached (and valid) or copy it from the {@link FileSystem} now.
  734. @param cache the cache to be localized, this should be specified as
  735. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  736. or hostname:port is provided the file is assumed to be in the filesystem
  737. being used in the Configuration
  738. @param conf The Confguration file which contains the filesystem
  739. @param baseDir The base cache Dir where you wnat to localize the files/archives
  740. @param isArchive if the cache is an archive or a file. In case it is an
  741. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  742. be unzipped/unjarred/untarred automatically
  743. and the directory where the archive is unzipped/unjarred/untarred
  744. is returned as the Path.
  745. In case of a file, the path to the file is returned
  746. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  747. file to be cached hasn't changed since the job started
  748. @param currentWorkDir this is the directory where you would want to create symlinks
  749. for the locally cached files/archives
  750. @return the path to directory where the archives are unjarred in case of archives,
  751. the path to the file where the file is copied locally
  752. @throws IOException]]>
  753. </doc>
  754. </method>
  755. <method name="releaseCache"
  756. abstract="false" native="false" synchronized="false"
  757. static="true" final="false" visibility="public"
  758. deprecated="not deprecated">
  759. <param name="cache" type="java.net.URI"/>
  760. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  761. <exception name="IOException" type="java.io.IOException"/>
  762. <doc>
  763. <![CDATA[This is the opposite of getlocalcache. When you are done with
  764. using the cache, you need to release the cache
  765. @param cache The cache URI to be released
  766. @param conf configuration which contains the filesystem the cache
  767. is contained in.
  768. @throws IOException]]>
  769. </doc>
  770. </method>
  771. <method name="makeRelative" return="java.lang.String"
  772. abstract="false" native="false" synchronized="false"
  773. static="true" final="false" visibility="public"
  774. deprecated="not deprecated">
  775. <param name="cache" type="java.net.URI"/>
  776. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  777. <exception name="IOException" type="java.io.IOException"/>
  778. </method>
  779. <method name="getTimestamp" return="long"
  780. abstract="false" native="false" synchronized="false"
  781. static="true" final="false" visibility="public"
  782. deprecated="not deprecated">
  783. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  784. <param name="cache" type="java.net.URI"/>
  785. <exception name="IOException" type="java.io.IOException"/>
  786. <doc>
  787. <![CDATA[Returns mtime of a given cache file on hdfs.
  788. @param conf configuration
  789. @param cache cache file
  790. @return mtime of a given cache file on hdfs
  791. @throws IOException]]>
  792. </doc>
  793. </method>
  794. <method name="createAllSymlink"
  795. abstract="false" native="false" synchronized="false"
  796. static="true" final="false" visibility="public"
  797. deprecated="not deprecated">
  798. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  799. <param name="jobCacheDir" type="java.io.File"/>
  800. <param name="workDir" type="java.io.File"/>
  801. <exception name="IOException" type="java.io.IOException"/>
  802. <doc>
  803. <![CDATA[This method create symlinks for all files in a given dir in another directory
  804. @param conf the configuration
  805. @param jobCacheDir the target directory for creating symlinks
  806. @param workDir the directory in which the symlinks are created
  807. @throws IOException]]>
  808. </doc>
  809. </method>
  810. <method name="setCacheArchives"
  811. abstract="false" native="false" synchronized="false"
  812. static="true" final="false" visibility="public"
  813. deprecated="not deprecated">
  814. <param name="archives" type="java.net.URI[]"/>
  815. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  816. <doc>
  817. <![CDATA[Set the configuration with the given set of archives
  818. @param archives The list of archives that need to be localized
  819. @param conf Configuration which will be changed]]>
  820. </doc>
  821. </method>
  822. <method name="setCacheFiles"
  823. abstract="false" native="false" synchronized="false"
  824. static="true" final="false" visibility="public"
  825. deprecated="not deprecated">
  826. <param name="files" type="java.net.URI[]"/>
  827. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  828. <doc>
  829. <![CDATA[Set the configuration with the given set of files
  830. @param files The list of files that need to be localized
  831. @param conf Configuration which will be changed]]>
  832. </doc>
  833. </method>
  834. <method name="getCacheArchives" return="java.net.URI[]"
  835. abstract="false" native="false" synchronized="false"
  836. static="true" final="false" visibility="public"
  837. deprecated="not deprecated">
  838. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  839. <exception name="IOException" type="java.io.IOException"/>
  840. <doc>
  841. <![CDATA[Get cache archives set in the Configuration
  842. @param conf The configuration which contains the archives
  843. @return A URI array of the caches set in the Configuration
  844. @throws IOException]]>
  845. </doc>
  846. </method>
  847. <method name="getCacheFiles" return="java.net.URI[]"
  848. abstract="false" native="false" synchronized="false"
  849. static="true" final="false" visibility="public"
  850. deprecated="not deprecated">
  851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  852. <exception name="IOException" type="java.io.IOException"/>
  853. <doc>
  854. <![CDATA[Get cache files set in the Configuration
  855. @param conf The configuration which contains the files
  856. @return A URI array of the files set in the Configuration
  857. @throws IOException]]>
  858. </doc>
  859. </method>
  860. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  861. abstract="false" native="false" synchronized="false"
  862. static="true" final="false" visibility="public"
  863. deprecated="not deprecated">
  864. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  865. <exception name="IOException" type="java.io.IOException"/>
  866. <doc>
  867. <![CDATA[Return the path array of the localized caches
  868. @param conf Configuration that contains the localized archives
  869. @return A path array of localized caches
  870. @throws IOException]]>
  871. </doc>
  872. </method>
  873. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  874. abstract="false" native="false" synchronized="false"
  875. static="true" final="false" visibility="public"
  876. deprecated="not deprecated">
  877. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  878. <exception name="IOException" type="java.io.IOException"/>
  879. <doc>
  880. <![CDATA[Return the path array of the localized files
  881. @param conf Configuration that contains the localized files
  882. @return A path array of localized files
  883. @throws IOException]]>
  884. </doc>
  885. </method>
  886. <method name="getArchiveTimestamps" return="java.lang.String[]"
  887. abstract="false" native="false" synchronized="false"
  888. static="true" final="false" visibility="public"
  889. deprecated="not deprecated">
  890. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  891. <doc>
  892. <![CDATA[Get the timestamps of the archives
  893. @param conf The configuration which stored the timestamps
  894. @return a string array of timestamps
  895. @throws IOException]]>
  896. </doc>
  897. </method>
  898. <method name="getFileTimestamps" return="java.lang.String[]"
  899. abstract="false" native="false" synchronized="false"
  900. static="true" final="false" visibility="public"
  901. deprecated="not deprecated">
  902. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  903. <doc>
  904. <![CDATA[Get the timestamps of the files
  905. @param conf The configuration which stored the timestamps
  906. @return a string array of timestamps
  907. @throws IOException]]>
  908. </doc>
  909. </method>
  910. <method name="setArchiveTimestamps"
  911. abstract="false" native="false" synchronized="false"
  912. static="true" final="false" visibility="public"
  913. deprecated="not deprecated">
  914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  915. <param name="timestamps" type="java.lang.String"/>
  916. <doc>
  917. <![CDATA[This is to check the timestamp of the archives to be localized
  918. @param conf Configuration which stores the timestamp's
  919. @param timestamps comma separated list of timestamps of archives.
  920. The order should be the same as the order in which the archives are added.]]>
  921. </doc>
  922. </method>
  923. <method name="setFileTimestamps"
  924. abstract="false" native="false" synchronized="false"
  925. static="true" final="false" visibility="public"
  926. deprecated="not deprecated">
  927. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  928. <param name="timestamps" type="java.lang.String"/>
  929. <doc>
  930. <![CDATA[This is to check the timestamp of the files to be localized
  931. @param conf Configuration which stores the timestamp's
  932. @param timestamps comma separated list of timestamps of files.
  933. The order should be the same as the order in which the files are added.]]>
  934. </doc>
  935. </method>
  936. <method name="setLocalArchives"
  937. abstract="false" native="false" synchronized="false"
  938. static="true" final="false" visibility="public"
  939. deprecated="not deprecated">
  940. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  941. <param name="str" type="java.lang.String"/>
  942. <doc>
  943. <![CDATA[Set the conf to contain the location for localized archives
  944. @param conf The conf to modify to contain the localized caches
  945. @param str a comma separated list of local archives]]>
  946. </doc>
  947. </method>
  948. <method name="setLocalFiles"
  949. abstract="false" native="false" synchronized="false"
  950. static="true" final="false" visibility="public"
  951. deprecated="not deprecated">
  952. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  953. <param name="str" type="java.lang.String"/>
  954. <doc>
  955. <![CDATA[Set the conf to contain the location for localized files
  956. @param conf The conf to modify to contain the localized caches
  957. @param str a comma separated list of local files]]>
  958. </doc>
  959. </method>
  960. <method name="addCacheArchive"
  961. abstract="false" native="false" synchronized="false"
  962. static="true" final="false" visibility="public"
  963. deprecated="not deprecated">
  964. <param name="uri" type="java.net.URI"/>
  965. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  966. <doc>
  967. <![CDATA[Add a archives to be localized to the conf
  968. @param uri The uri of the cache to be localized
  969. @param conf Configuration to add the cache to]]>
  970. </doc>
  971. </method>
  972. <method name="addCacheFile"
  973. abstract="false" native="false" synchronized="false"
  974. static="true" final="false" visibility="public"
  975. deprecated="not deprecated">
  976. <param name="uri" type="java.net.URI"/>
  977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  978. <doc>
  979. <![CDATA[Add a file to be localized to the conf
  980. @param uri The uri of the cache to be localized
  981. @param conf Configuration to add the cache to]]>
  982. </doc>
  983. </method>
  984. <method name="addFileToClassPath"
  985. abstract="false" native="false" synchronized="false"
  986. static="true" final="false" visibility="public"
  987. deprecated="not deprecated">
  988. <param name="file" type="org.apache.hadoop.fs.Path"/>
  989. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  990. <exception name="IOException" type="java.io.IOException"/>
  991. <doc>
  992. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  993. to cache as well.
  994. @param file Path of the file to be added
  995. @param conf Configuration that contains the classpath setting]]>
  996. </doc>
  997. </method>
  998. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  999. abstract="false" native="false" synchronized="false"
  1000. static="true" final="false" visibility="public"
  1001. deprecated="not deprecated">
  1002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1003. <doc>
  1004. <![CDATA[Get the file entries in classpath as an array of Path
  1005. @param conf Configuration that contains the classpath setting]]>
  1006. </doc>
  1007. </method>
  1008. <method name="addArchiveToClassPath"
  1009. abstract="false" native="false" synchronized="false"
  1010. static="true" final="false" visibility="public"
  1011. deprecated="not deprecated">
  1012. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  1013. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1014. <exception name="IOException" type="java.io.IOException"/>
  1015. <doc>
  1016. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  1017. archive to cache as well.
  1018. @param archive Path of the archive to be added
  1019. @param conf Configuration that contains the classpath setting]]>
  1020. </doc>
  1021. </method>
  1022. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  1023. abstract="false" native="false" synchronized="false"
  1024. static="true" final="false" visibility="public"
  1025. deprecated="not deprecated">
  1026. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1027. <doc>
  1028. <![CDATA[Get the archive entries in classpath as an array of Path
  1029. @param conf Configuration that contains the classpath setting]]>
  1030. </doc>
  1031. </method>
  1032. <method name="createSymlink"
  1033. abstract="false" native="false" synchronized="false"
  1034. static="true" final="false" visibility="public"
  1035. deprecated="not deprecated">
  1036. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1037. <doc>
  1038. <![CDATA[This method allows you to create symlinks in the current working directory
  1039. of the task to all the cache files/archives
  1040. @param conf the jobconf]]>
  1041. </doc>
  1042. </method>
  1043. <method name="getSymlink" return="boolean"
  1044. abstract="false" native="false" synchronized="false"
  1045. static="true" final="false" visibility="public"
  1046. deprecated="not deprecated">
  1047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1048. <doc>
  1049. <![CDATA[This method checks to see if symlinks are to be create for the
  1050. localized cache files in the current working directory
  1051. @param conf the jobconf
  1052. @return true if symlinks are to be created- else return false]]>
  1053. </doc>
  1054. </method>
  1055. <method name="checkURIs" return="boolean"
  1056. abstract="false" native="false" synchronized="false"
  1057. static="true" final="false" visibility="public"
  1058. deprecated="not deprecated">
  1059. <param name="uriFiles" type="java.net.URI[]"/>
  1060. <param name="uriArchives" type="java.net.URI[]"/>
  1061. <doc>
  1062. <![CDATA[This method checks if there is a conflict in the fragment names
  1063. of the uris. Also makes sure that each uri has a fragment. It
  1064. is only to be called if you want to create symlinks for
  1065. the various archives and files.
  1066. @param uriFiles The uri array of urifiles
  1067. @param uriArchives the uri array of uri archives]]>
  1068. </doc>
  1069. </method>
  1070. <method name="purgeCache"
  1071. abstract="false" native="false" synchronized="false"
  1072. static="true" final="false" visibility="public"
  1073. deprecated="not deprecated">
  1074. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1075. <exception name="IOException" type="java.io.IOException"/>
  1076. <doc>
  1077. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  1078. should only be used when the server is reinitializing, because the users
  1079. are going to lose their files.]]>
  1080. </doc>
  1081. </method>
  1082. <doc>
  1083. <![CDATA[Distribute application-specific large, read-only files efficiently.
  1084. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  1085. framework to cache files (text, archives, jars etc.) needed by applications.
  1086. </p>
  1087. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  1088. via the {@link JobConf}. The <code>DistributedCache</code> assumes that the
  1089. files specified via hdfs:// urls are already present on the
  1090. {@link FileSystem} at the path specified by the url.</p>
  1091. <p>The framework will copy the necessary files on to the slave node before
  1092. any tasks for the job are executed on that node. Its efficiency stems from
  1093. the fact that the files are only copied once per job and the ability to
  1094. cache archives which are un-archived on the slaves.</p>
  1095. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  1096. data/text files and/or more complex types such as archives, jars etc.
  1097. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  1098. Jars may be optionally added to the classpath of the tasks, a rudimentary
  1099. software distribution mechanism. Files have execution permissions.
  1100. Optionally users can also direct it to symlink the distributed cache file(s)
  1101. into the working directory of the task.</p>
  1102. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  1103. files. Clearly the cache files should not be modified by the application
  1104. or externally while the job is executing.</p>
  1105. <p>Here is an illustrative example on how to use the
  1106. <code>DistributedCache</code>:</p>
  1107. <p><blockquote><pre>
  1108. // Setting up the cache for the application
  1109. 1. Copy the requisite files to the <code>FileSystem</code>:
  1110. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  1111. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  1112. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  1113. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  1114. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  1115. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  1116. 2. Setup the application's <code>JobConf</code>:
  1117. JobConf job = new JobConf();
  1118. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  1119. job);
  1120. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  1121. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  1122. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  1123. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  1124. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  1125. 3. Use the cached files in the {@link Mapper} or {@link Reducer}:
  1126. public static class MapClass extends MapReduceBase
  1127. implements Mapper&lt;K, V, K, V&gt; {
  1128. private Path[] localArchives;
  1129. private Path[] localFiles;
  1130. public void configure(JobConf job) {
  1131. // Get the cached archives/files
  1132. localArchives = DistributedCache.getLocalCacheArchives(job);
  1133. localFiles = DistributedCache.getLocalCacheFiles(job);
  1134. }
  1135. public void map(K key, V value,
  1136. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  1137. throws IOException {
  1138. // Use data from the cached archives/files here
  1139. // ...
  1140. // ...
  1141. output.collect(k, v);
  1142. }
  1143. }
  1144. </pre></blockquote></p>
  1145. @see JobConf
  1146. @see JobClient]]>
  1147. </doc>
  1148. </class>
  1149. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  1150. </package>
  1151. <package name="org.apache.hadoop.fs">
  1152. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1153. <class name="BlockLocation" extends="java.lang.Object"
  1154. abstract="false"
  1155. static="false" final="false" visibility="public"
  1156. deprecated="not deprecated">
  1157. <implements name="org.apache.hadoop.io.Writable"/>
  1158. <constructor name="BlockLocation"
  1159. static="false" final="false" visibility="public"
  1160. deprecated="not deprecated">
  1161. <doc>
  1162. <![CDATA[Default Constructor]]>
  1163. </doc>
  1164. </constructor>
  1165. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1166. static="false" final="false" visibility="public"
  1167. deprecated="not deprecated">
  1168. <doc>
  1169. <![CDATA[Constructor with host, name, offset and length]]>
  1170. </doc>
  1171. </constructor>
  1172. <method name="getHosts" return="java.lang.String[]"
  1173. abstract="false" native="false" synchronized="false"
  1174. static="false" final="false" visibility="public"
  1175. deprecated="not deprecated">
  1176. <exception name="IOException" type="java.io.IOException"/>
  1177. <doc>
  1178. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1179. </doc>
  1180. </method>
  1181. <method name="getNames" return="java.lang.String[]"
  1182. abstract="false" native="false" synchronized="false"
  1183. static="false" final="false" visibility="public"
  1184. deprecated="not deprecated">
  1185. <exception name="IOException" type="java.io.IOException"/>
  1186. <doc>
  1187. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1188. </doc>
  1189. </method>
  1190. <method name="getOffset" return="long"
  1191. abstract="false" native="false" synchronized="false"
  1192. static="false" final="false" visibility="public"
  1193. deprecated="not deprecated">
  1194. <doc>
  1195. <![CDATA[Get the start offset of file associated with this block]]>
  1196. </doc>
  1197. </method>
  1198. <method name="getLength" return="long"
  1199. abstract="false" native="false" synchronized="false"
  1200. static="false" final="false" visibility="public"
  1201. deprecated="not deprecated">
  1202. <doc>
  1203. <![CDATA[Get the length of the block]]>
  1204. </doc>
  1205. </method>
  1206. <method name="setOffset"
  1207. abstract="false" native="false" synchronized="false"
  1208. static="false" final="false" visibility="public"
  1209. deprecated="not deprecated">
  1210. <param name="offset" type="long"/>
  1211. <doc>
  1212. <![CDATA[Set the start offset of file associated with this block]]>
  1213. </doc>
  1214. </method>
  1215. <method name="setLength"
  1216. abstract="false" native="false" synchronized="false"
  1217. static="false" final="false" visibility="public"
  1218. deprecated="not deprecated">
  1219. <param name="length" type="long"/>
  1220. <doc>
  1221. <![CDATA[Set the length of block]]>
  1222. </doc>
  1223. </method>
  1224. <method name="setHosts"
  1225. abstract="false" native="false" synchronized="false"
  1226. static="false" final="false" visibility="public"
  1227. deprecated="not deprecated">
  1228. <param name="hosts" type="java.lang.String[]"/>
  1229. <exception name="IOException" type="java.io.IOException"/>
  1230. <doc>
  1231. <![CDATA[Set the hosts hosting this block]]>
  1232. </doc>
  1233. </method>
  1234. <method name="setNames"
  1235. abstract="false" native="false" synchronized="false"
  1236. static="false" final="false" visibility="public"
  1237. deprecated="not deprecated">
  1238. <param name="names" type="java.lang.String[]"/>
  1239. <exception name="IOException" type="java.io.IOException"/>
  1240. <doc>
  1241. <![CDATA[Set the names (host:port) hosting this block]]>
  1242. </doc>
  1243. </method>
  1244. <method name="write"
  1245. abstract="false" native="false" synchronized="false"
  1246. static="false" final="false" visibility="public"
  1247. deprecated="not deprecated">
  1248. <param name="out" type="java.io.DataOutput"/>
  1249. <exception name="IOException" type="java.io.IOException"/>
  1250. <doc>
  1251. <![CDATA[Implement write of Writable]]>
  1252. </doc>
  1253. </method>
  1254. <method name="readFields"
  1255. abstract="false" native="false" synchronized="false"
  1256. static="false" final="false" visibility="public"
  1257. deprecated="not deprecated">
  1258. <param name="in" type="java.io.DataInput"/>
  1259. <exception name="IOException" type="java.io.IOException"/>
  1260. <doc>
  1261. <![CDATA[Implement readFields of Writable]]>
  1262. </doc>
  1263. </method>
  1264. <method name="toString" return="java.lang.String"
  1265. abstract="false" native="false" synchronized="false"
  1266. static="false" final="false" visibility="public"
  1267. deprecated="not deprecated">
  1268. </method>
  1269. </class>
  1270. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1271. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1272. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1273. abstract="false"
  1274. static="false" final="false" visibility="public"
  1275. deprecated="not deprecated">
  1276. <implements name="org.apache.hadoop.fs.Seekable"/>
  1277. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1278. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1279. static="false" final="false" visibility="public"
  1280. deprecated="not deprecated">
  1281. <doc>
  1282. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1283. with the specified buffer size,
  1284. and saves its argument, the input stream
  1285. <code>in</code>, for later use. An internal
  1286. buffer array of length <code>size</code>
  1287. is created and stored in <code>buf</code>.
  1288. @param in the underlying input stream.
  1289. @param size the buffer size.
  1290. @exception IllegalArgumentException if size <= 0.]]>
  1291. </doc>
  1292. </constructor>
  1293. <method name="getPos" return="long"
  1294. abstract="false" native="false" synchronized="false"
  1295. static="false" final="false" visibility="public"
  1296. deprecated="not deprecated">
  1297. <exception name="IOException" type="java.io.IOException"/>
  1298. </method>
  1299. <method name="skip" return="long"
  1300. abstract="false" native="false" synchronized="false"
  1301. static="false" final="false" visibility="public"
  1302. deprecated="not deprecated">
  1303. <param name="n" type="long"/>
  1304. <exception name="IOException" type="java.io.IOException"/>
  1305. </method>
  1306. <method name="seek"
  1307. abstract="false" native="false" synchronized="false"
  1308. static="false" final="false" visibility="public"
  1309. deprecated="not deprecated">
  1310. <param name="pos" type="long"/>
  1311. <exception name="IOException" type="java.io.IOException"/>
  1312. </method>
  1313. <method name="seekToNewSource" return="boolean"
  1314. abstract="false" native="false" synchronized="false"
  1315. static="false" final="false" visibility="public"
  1316. deprecated="not deprecated">
  1317. <param name="targetPos" type="long"/>
  1318. <exception name="IOException" type="java.io.IOException"/>
  1319. </method>
  1320. <method name="read" return="int"
  1321. abstract="false" native="false" synchronized="false"
  1322. static="false" final="false" visibility="public"
  1323. deprecated="not deprecated">
  1324. <param name="position" type="long"/>
  1325. <param name="buffer" type="byte[]"/>
  1326. <param name="offset" type="int"/>
  1327. <param name="length" type="int"/>
  1328. <exception name="IOException" type="java.io.IOException"/>
  1329. </method>
  1330. <method name="readFully"
  1331. abstract="false" native="false" synchronized="false"
  1332. static="false" final="false" visibility="public"
  1333. deprecated="not deprecated">
  1334. <param name="position" type="long"/>
  1335. <param name="buffer" type="byte[]"/>
  1336. <param name="offset" type="int"/>
  1337. <param name="length" type="int"/>
  1338. <exception name="IOException" type="java.io.IOException"/>
  1339. </method>
  1340. <method name="readFully"
  1341. abstract="false" native="false" synchronized="false"
  1342. static="false" final="false" visibility="public"
  1343. deprecated="not deprecated">
  1344. <param name="position" type="long"/>
  1345. <param name="buffer" type="byte[]"/>
  1346. <exception name="IOException" type="java.io.IOException"/>
  1347. </method>
  1348. <doc>
  1349. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1350. </doc>
  1351. </class>
  1352. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1353. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1354. <class name="ChecksumException" extends="java.io.IOException"
  1355. abstract="false"
  1356. static="false" final="false" visibility="public"
  1357. deprecated="not deprecated">
  1358. <constructor name="ChecksumException" type="java.lang.String, long"
  1359. static="false" final="false" visibility="public"
  1360. deprecated="not deprecated">
  1361. </constructor>
  1362. <method name="getPos" return="long"
  1363. abstract="false" native="false" synchronized="false"
  1364. static="false" final="false" visibility="public"
  1365. deprecated="not deprecated">
  1366. </method>
  1367. <doc>
  1368. <![CDATA[Thrown for checksum errors.]]>
  1369. </doc>
  1370. </class>
  1371. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1372. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1373. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1374. abstract="true"
  1375. static="false" final="false" visibility="public"
  1376. deprecated="not deprecated">
  1377. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1378. static="false" final="false" visibility="public"
  1379. deprecated="not deprecated">
  1380. </constructor>
  1381. <method name="getApproxChkSumLength" return="double"
  1382. abstract="false" native="false" synchronized="false"
  1383. static="true" final="false" visibility="public"
  1384. deprecated="not deprecated">
  1385. <param name="size" type="long"/>
  1386. </method>
  1387. <method name="setConf"
  1388. abstract="false" native="false" synchronized="false"
  1389. static="false" final="false" visibility="public"
  1390. deprecated="not deprecated">
  1391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1392. </method>
  1393. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1394. abstract="false" native="false" synchronized="false"
  1395. static="false" final="false" visibility="public"
  1396. deprecated="not deprecated">
  1397. <doc>
  1398. <![CDATA[get the raw file system]]>
  1399. </doc>
  1400. </method>
  1401. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1402. abstract="false" native="false" synchronized="false"
  1403. static="false" final="false" visibility="public"
  1404. deprecated="not deprecated">
  1405. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1406. <doc>
  1407. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1408. </doc>
  1409. </method>
  1410. <method name="isChecksumFile" return="boolean"
  1411. abstract="false" native="false" synchronized="false"
  1412. static="true" final="false" visibility="public"
  1413. deprecated="not deprecated">
  1414. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1415. <doc>
  1416. <![CDATA[Return true iff file is a checksum file name.]]>
  1417. </doc>
  1418. </method>
  1419. <method name="getChecksumFileLength" return="long"
  1420. abstract="false" native="false" synchronized="false"
  1421. static="false" final="false" visibility="public"
  1422. deprecated="not deprecated">
  1423. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1424. <param name="fileSize" type="long"/>
  1425. <doc>
  1426. <![CDATA[Return the length of the checksum file given the size of the
  1427. actual file.]]>
  1428. </doc>
  1429. </method>
  1430. <method name="getBytesPerSum" return="int"
  1431. abstract="false" native="false" synchronized="false"
  1432. static="false" final="false" visibility="public"
  1433. deprecated="not deprecated">
  1434. <doc>
  1435. <![CDATA[Return the bytes Per Checksum]]>
  1436. </doc>
  1437. </method>
  1438. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1439. abstract="false" native="false" synchronized="false"
  1440. static="false" final="false" visibility="public"
  1441. deprecated="not deprecated">
  1442. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1443. <param name="bufferSize" type="int"/>
  1444. <exception name="IOException" type="java.io.IOException"/>
  1445. <doc>
  1446. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1447. @param f the file name to open
  1448. @param bufferSize the size of the buffer to be used.]]>
  1449. </doc>
  1450. </method>
  1451. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1452. abstract="false" native="false" synchronized="false"
  1453. static="false" final="false" visibility="public"
  1454. deprecated="not deprecated">
  1455. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1456. <param name="bufferSize" type="int"/>
  1457. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1458. <exception name="IOException" type="java.io.IOException"/>
  1459. <doc>
  1460. <![CDATA[{@inheritDoc}]]>
  1461. </doc>
  1462. </method>
  1463. <method name="getChecksumLength" return="long"
  1464. abstract="false" native="false" synchronized="false"
  1465. static="true" final="false" visibility="public"
  1466. deprecated="not deprecated">
  1467. <param name="size" type="long"/>
  1468. <param name="bytesPerSum" type="int"/>
  1469. <doc>
  1470. <![CDATA[Calculated the length of the checksum file in bytes.
  1471. @param size the length of the data file in bytes
  1472. @param bytesPerSum the number of bytes in a checksum block
  1473. @return the number of bytes in the checksum file]]>
  1474. </doc>
  1475. </method>
  1476. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1477. abstract="false" native="false" synchronized="false"
  1478. static="false" final="false" visibility="public"
  1479. deprecated="not deprecated">
  1480. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1481. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1482. <param name="overwrite" type="boolean"/>
  1483. <param name="bufferSize" type="int"/>
  1484. <param name="replication" type="short"/>
  1485. <param name="blockSize" type="long"/>
  1486. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1487. <exception name="IOException" type="java.io.IOException"/>
  1488. <doc>
  1489. <![CDATA[{@inheritDoc}]]>
  1490. </doc>
  1491. </method>
  1492. <method name="setReplication" return="boolean"
  1493. abstract="false" native="false" synchronized="false"
  1494. static="false" final="false" visibility="public"
  1495. deprecated="not deprecated">
  1496. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1497. <param name="replication" type="short"/>
  1498. <exception name="IOException" type="java.io.IOException"/>
  1499. <doc>
  1500. <![CDATA[Set replication for an existing file.
  1501. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1502. @param src file name
  1503. @param replication new replication
  1504. @throws IOException
  1505. @return true if successful;
  1506. false if file does not exist or is a directory]]>
  1507. </doc>
  1508. </method>
  1509. <method name="rename" return="boolean"
  1510. abstract="false" native="false" synchronized="false"
  1511. static="false" final="false" visibility="public"
  1512. deprecated="not deprecated">
  1513. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1514. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1515. <exception name="IOException" type="java.io.IOException"/>
  1516. <doc>
  1517. <![CDATA[Rename files/dirs]]>
  1518. </doc>
  1519. </method>
  1520. <method name="delete" return="boolean"
  1521. abstract="false" native="false" synchronized="false"
  1522. static="false" final="false" visibility="public"
  1523. deprecated="not deprecated">
  1524. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1525. <param name="recursive" type="boolean"/>
  1526. <exception name="IOException" type="java.io.IOException"/>
  1527. <doc>
  1528. <![CDATA[Implement the delete(Path, boolean) in checksum
  1529. file system.]]>
  1530. </doc>
  1531. </method>
  1532. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1533. abstract="false" native="false" synchronized="false"
  1534. static="false" final="false" visibility="public"
  1535. deprecated="not deprecated">
  1536. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1537. <exception name="IOException" type="java.io.IOException"/>
  1538. <doc>
  1539. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1540. a directory.
  1541. @param f
  1542. given path
  1543. @return the statuses of the files/directories in the given patch
  1544. @throws IOException]]>
  1545. </doc>
  1546. </method>
  1547. <method name="mkdirs" return="boolean"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1552. <exception name="IOException" type="java.io.IOException"/>
  1553. </method>
  1554. <method name="copyFromLocalFile"
  1555. abstract="false" native="false" synchronized="false"
  1556. static="false" final="false" visibility="public"
  1557. deprecated="not deprecated">
  1558. <param name="delSrc" type="boolean"/>
  1559. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1560. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1561. <exception name="IOException" type="java.io.IOException"/>
  1562. </method>
  1563. <method name="copyToLocalFile"
  1564. abstract="false" native="false" synchronized="false"
  1565. static="false" final="false" visibility="public"
  1566. deprecated="not deprecated">
  1567. <param name="delSrc" type="boolean"/>
  1568. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1569. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1570. <exception name="IOException" type="java.io.IOException"/>
  1571. <doc>
  1572. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1573. Copy it from FS control to the local dst name.]]>
  1574. </doc>
  1575. </method>
  1576. <method name="copyToLocalFile"
  1577. abstract="false" native="false" synchronized="false"
  1578. static="false" final="false" visibility="public"
  1579. deprecated="not deprecated">
  1580. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1581. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1582. <param name="copyCrc" type="boolean"/>
  1583. <exception name="IOException" type="java.io.IOException"/>
  1584. <doc>
  1585. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1586. Copy it from FS control to the local dst name.
  1587. If src and dst are directories, the copyCrc parameter
  1588. determines whether to copy CRC files.]]>
  1589. </doc>
  1590. </method>
  1591. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1592. abstract="false" native="false" synchronized="false"
  1593. static="false" final="false" visibility="public"
  1594. deprecated="not deprecated">
  1595. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1596. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1597. <exception name="IOException" type="java.io.IOException"/>
  1598. </method>
  1599. <method name="completeLocalOutput"
  1600. abstract="false" native="false" synchronized="false"
  1601. static="false" final="false" visibility="public"
  1602. deprecated="not deprecated">
  1603. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1604. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1605. <exception name="IOException" type="java.io.IOException"/>
  1606. </method>
  1607. <method name="reportChecksumFailure" return="boolean"
  1608. abstract="false" native="false" synchronized="false"
  1609. static="false" final="false" visibility="public"
  1610. deprecated="not deprecated">
  1611. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1612. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1613. <param name="inPos" type="long"/>
  1614. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1615. <param name="sumsPos" type="long"/>
  1616. <doc>
  1617. <![CDATA[Report a checksum error to the file system.
  1618. @param f the file name containing the error
  1619. @param in the stream open on the file
  1620. @param inPos the position of the beginning of the bad data in the file
  1621. @param sums the stream open on the checksum file
  1622. @param sumsPos the position of the beginning of the bad data in the checksum file
  1623. @return if retry is neccessary]]>
  1624. </doc>
  1625. </method>
  1626. <doc>
  1627. <![CDATA[Abstract Checksumed FileSystem.
  1628. It provide a basice implementation of a Checksumed FileSystem,
  1629. which creates a checksum file for each raw file.
  1630. It generates & verifies checksums at the client side.]]>
  1631. </doc>
  1632. </class>
  1633. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1634. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1635. <class name="ContentSummary" extends="java.lang.Object"
  1636. abstract="false"
  1637. static="false" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. <implements name="org.apache.hadoop.io.Writable"/>
  1640. <constructor name="ContentSummary"
  1641. static="false" final="false" visibility="public"
  1642. deprecated="not deprecated">
  1643. <doc>
  1644. <![CDATA[Constructor]]>
  1645. </doc>
  1646. </constructor>
  1647. <constructor name="ContentSummary" type="long, long, long"
  1648. static="false" final="false" visibility="public"
  1649. deprecated="not deprecated">
  1650. <doc>
  1651. <![CDATA[Constructor]]>
  1652. </doc>
  1653. </constructor>
  1654. <constructor name="ContentSummary" type="long, long, long, long"
  1655. static="false" final="false" visibility="public"
  1656. deprecated="not deprecated">
  1657. <doc>
  1658. <![CDATA[Constructor]]>
  1659. </doc>
  1660. </constructor>
  1661. <method name="getLength" return="long"
  1662. abstract="false" native="false" synchronized="false"
  1663. static="false" final="false" visibility="public"
  1664. deprecated="not deprecated">
  1665. <doc>
  1666. <![CDATA[@return the length]]>
  1667. </doc>
  1668. </method>
  1669. <method name="getDirectoryCount" return="long"
  1670. abstract="false" native="false" synchronized="false"
  1671. static="false" final="false" visibility="public"
  1672. deprecated="not deprecated">
  1673. <doc>
  1674. <![CDATA[@return the directory count]]>
  1675. </doc>
  1676. </method>
  1677. <method name="getFileCount" return="long"
  1678. abstract="false" native="false" synchronized="false"
  1679. static="false" final="false" visibility="public"
  1680. deprecated="not deprecated">
  1681. <doc>
  1682. <![CDATA[@return the file count]]>
  1683. </doc>
  1684. </method>
  1685. <method name="getQuota" return="long"
  1686. abstract="false" native="false" synchronized="false"
  1687. static="false" final="false" visibility="public"
  1688. deprecated="not deprecated">
  1689. <doc>
  1690. <![CDATA[Return the directory quota]]>
  1691. </doc>
  1692. </method>
  1693. <method name="write"
  1694. abstract="false" native="false" synchronized="false"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. <param name="out" type="java.io.DataOutput"/>
  1698. <exception name="IOException" type="java.io.IOException"/>
  1699. <doc>
  1700. <![CDATA[{@inheritDoc}]]>
  1701. </doc>
  1702. </method>
  1703. <method name="readFields"
  1704. abstract="false" native="false" synchronized="false"
  1705. static="false" final="false" visibility="public"
  1706. deprecated="not deprecated">
  1707. <param name="in" type="java.io.DataInput"/>
  1708. <exception name="IOException" type="java.io.IOException"/>
  1709. <doc>
  1710. <![CDATA[{@inheritDoc}]]>
  1711. </doc>
  1712. </method>
  1713. <method name="getHeader" return="java.lang.String"
  1714. abstract="false" native="false" synchronized="false"
  1715. static="true" final="false" visibility="public"
  1716. deprecated="not deprecated">
  1717. <param name="qOption" type="boolean"/>
  1718. <doc>
  1719. <![CDATA[Return the header of the output.
  1720. if qOption is false, output directory count, file count, and content size;
  1721. if qOption is true, output quota and remaining quota as well.
  1722. @param qOption a flag indicating if quota needs to be printed or not
  1723. @return the header of the output]]>
  1724. </doc>
  1725. </method>
  1726. <method name="toString" return="java.lang.String"
  1727. abstract="false" native="false" synchronized="false"
  1728. static="false" final="false" visibility="public"
  1729. deprecated="not deprecated">
  1730. <doc>
  1731. <![CDATA[{@inheritDoc}]]>
  1732. </doc>
  1733. </method>
  1734. <method name="toString" return="java.lang.String"
  1735. abstract="false" native="false" synchronized="false"
  1736. static="false" final="false" visibility="public"
  1737. deprecated="not deprecated">
  1738. <param name="qOption" type="boolean"/>
  1739. <doc>
  1740. <![CDATA[Return the string representation of the object in the output format.
  1741. if qOption is false, output directory count, file count, and content size;
  1742. if qOption is true, output quota and remaining quota as well.
  1743. @param qOption a flag indicating if quota needs to be printed or not
  1744. @return the string representation of the object]]>
  1745. </doc>
  1746. </method>
  1747. <doc>
  1748. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1749. </doc>
  1750. </class>
  1751. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1752. <!-- start class org.apache.hadoop.fs.DF -->
  1753. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1754. abstract="false"
  1755. static="false" final="false" visibility="public"
  1756. deprecated="not deprecated">
  1757. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <exception name="IOException" type="java.io.IOException"/>
  1761. </constructor>
  1762. <constructor name="DF" type="java.io.File, long"
  1763. static="false" final="false" visibility="public"
  1764. deprecated="not deprecated">
  1765. <exception name="IOException" type="java.io.IOException"/>
  1766. </constructor>
  1767. <method name="getDirPath" return="java.lang.String"
  1768. abstract="false" native="false" synchronized="false"
  1769. static="false" final="false" visibility="public"
  1770. deprecated="not deprecated">
  1771. </method>
  1772. <method name="getFilesystem" return="java.lang.String"
  1773. abstract="false" native="false" synchronized="false"
  1774. static="false" final="false" visibility="public"
  1775. deprecated="not deprecated">
  1776. <exception name="IOException" type="java.io.IOException"/>
  1777. </method>
  1778. <method name="getCapacity" return="long"
  1779. abstract="false" native="false" synchronized="false"
  1780. static="false" final="false" visibility="public"
  1781. deprecated="not deprecated">
  1782. <exception name="IOException" type="java.io.IOException"/>
  1783. </method>
  1784. <method name="getUsed" return="long"
  1785. abstract="false" native="false" synchronized="false"
  1786. static="false" final="false" visibility="public"
  1787. deprecated="not deprecated">
  1788. <exception name="IOException" type="java.io.IOException"/>
  1789. </method>
  1790. <method name="getAvailable" return="long"
  1791. abstract="false" native="false" synchronized="false"
  1792. static="false" final="false" visibility="public"
  1793. deprecated="not deprecated">
  1794. <exception name="IOException" type="java.io.IOException"/>
  1795. </method>
  1796. <method name="getPercentUsed" return="int"
  1797. abstract="false" native="false" synchronized="false"
  1798. static="false" final="false" visibility="public"
  1799. deprecated="not deprecated">
  1800. <exception name="IOException" type="java.io.IOException"/>
  1801. </method>
  1802. <method name="getMount" return="java.lang.String"
  1803. abstract="false" native="false" synchronized="false"
  1804. static="false" final="false" visibility="public"
  1805. deprecated="not deprecated">
  1806. <exception name="IOException" type="java.io.IOException"/>
  1807. </method>
  1808. <method name="toString" return="java.lang.String"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. </method>
  1813. <method name="getExecString" return="java.lang.String[]"
  1814. abstract="false" native="false" synchronized="false"
  1815. static="false" final="false" visibility="protected"
  1816. deprecated="not deprecated">
  1817. </method>
  1818. <method name="parseExecResult"
  1819. abstract="false" native="false" synchronized="false"
  1820. static="false" final="false" visibility="protected"
  1821. deprecated="not deprecated">
  1822. <param name="lines" type="java.io.BufferedReader"/>
  1823. <exception name="IOException" type="java.io.IOException"/>
  1824. </method>
  1825. <method name="main"
  1826. abstract="false" native="false" synchronized="false"
  1827. static="true" final="false" visibility="public"
  1828. deprecated="not deprecated">
  1829. <param name="args" type="java.lang.String[]"/>
  1830. <exception name="Exception" type="java.lang.Exception"/>
  1831. </method>
  1832. <field name="DF_INTERVAL_DEFAULT" type="long"
  1833. transient="false" volatile="false"
  1834. static="true" final="true" visibility="public"
  1835. deprecated="not deprecated">
  1836. </field>
  1837. <doc>
  1838. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  1839. Tested on Linux, FreeBSD, Cygwin.]]>
  1840. </doc>
  1841. </class>
  1842. <!-- end class org.apache.hadoop.fs.DF -->
  1843. <!-- start class org.apache.hadoop.fs.DU -->
  1844. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1845. abstract="false"
  1846. static="false" final="false" visibility="public"
  1847. deprecated="not deprecated">
  1848. <constructor name="DU" type="java.io.File, long"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <exception name="IOException" type="java.io.IOException"/>
  1852. <doc>
  1853. <![CDATA[Keeps track of disk usage.
  1854. @param path the path to check disk usage in
  1855. @param interval refresh the disk usage at this interval
  1856. @throws IOException if we fail to refresh the disk usage]]>
  1857. </doc>
  1858. </constructor>
  1859. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1860. static="false" final="false" visibility="public"
  1861. deprecated="not deprecated">
  1862. <exception name="IOException" type="java.io.IOException"/>
  1863. <doc>
  1864. <![CDATA[Keeps track of disk usage.
  1865. @param path the path to check disk usage in
  1866. @param conf configuration object
  1867. @throws IOException if we fail to refresh the disk usage]]>
  1868. </doc>
  1869. </constructor>
  1870. <method name="decDfsUsed"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <param name="value" type="long"/>
  1875. <doc>
  1876. <![CDATA[Decrease how much disk space we use.
  1877. @param value decrease by this value]]>
  1878. </doc>
  1879. </method>
  1880. <method name="incDfsUsed"
  1881. abstract="false" native="false" synchronized="false"
  1882. static="false" final="false" visibility="public"
  1883. deprecated="not deprecated">
  1884. <param name="value" type="long"/>
  1885. <doc>
  1886. <![CDATA[Increase how much disk space we use.
  1887. @param value increase by this value]]>
  1888. </doc>
  1889. </method>
  1890. <method name="getUsed" return="long"
  1891. abstract="false" native="false" synchronized="false"
  1892. static="false" final="false" visibility="public"
  1893. deprecated="not deprecated">
  1894. <exception name="IOException" type="java.io.IOException"/>
  1895. <doc>
  1896. <![CDATA[@return disk space used
  1897. @throws IOException if the shell command fails]]>
  1898. </doc>
  1899. </method>
  1900. <method name="getDirPath" return="java.lang.String"
  1901. abstract="false" native="false" synchronized="false"
  1902. static="false" final="false" visibility="public"
  1903. deprecated="not deprecated">
  1904. <doc>
  1905. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  1906. </doc>
  1907. </method>
  1908. <method name="start"
  1909. abstract="false" native="false" synchronized="false"
  1910. static="false" final="false" visibility="public"
  1911. deprecated="not deprecated">
  1912. <doc>
  1913. <![CDATA[Start the disk usage checking thread.]]>
  1914. </doc>
  1915. </method>
  1916. <method name="shutdown"
  1917. abstract="false" native="false" synchronized="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <doc>
  1921. <![CDATA[Shut down the refreshing thread.]]>
  1922. </doc>
  1923. </method>
  1924. <method name="toString" return="java.lang.String"
  1925. abstract="false" native="false" synchronized="false"
  1926. static="false" final="false" visibility="public"
  1927. deprecated="not deprecated">
  1928. </method>
  1929. <method name="getExecString" return="java.lang.String[]"
  1930. abstract="false" native="false" synchronized="false"
  1931. static="false" final="false" visibility="protected"
  1932. deprecated="not deprecated">
  1933. </method>
  1934. <method name="parseExecResult"
  1935. abstract="false" native="false" synchronized="false"
  1936. static="false" final="false" visibility="protected"
  1937. deprecated="not deprecated">
  1938. <param name="lines" type="java.io.BufferedReader"/>
  1939. <exception name="IOException" type="java.io.IOException"/>
  1940. </method>
  1941. <method name="main"
  1942. abstract="false" native="false" synchronized="false"
  1943. static="true" final="false" visibility="public"
  1944. deprecated="not deprecated">
  1945. <param name="args" type="java.lang.String[]"/>
  1946. <exception name="Exception" type="java.lang.Exception"/>
  1947. </method>
  1948. <doc>
  1949. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  1950. </doc>
  1951. </class>
  1952. <!-- end class org.apache.hadoop.fs.DU -->
  1953. <!-- start class org.apache.hadoop.fs.FileStatus -->
  1954. <class name="FileStatus" extends="java.lang.Object"
  1955. abstract="false"
  1956. static="false" final="false" visibility="public"
  1957. deprecated="not deprecated">
  1958. <implements name="org.apache.hadoop.io.Writable"/>
  1959. <implements name="java.lang.Comparable"/>
  1960. <constructor name="FileStatus"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. </constructor>
  1964. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  1965. static="false" final="false" visibility="public"
  1966. deprecated="not deprecated">
  1967. </constructor>
  1968. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path"
  1969. static="false" final="false" visibility="public"
  1970. deprecated="not deprecated">
  1971. </constructor>
  1972. <method name="getLen" return="long"
  1973. abstract="false" native="false" synchronized="false"
  1974. static="false" final="false" visibility="public"
  1975. deprecated="not deprecated">
  1976. </method>
  1977. <method name="isDir" return="boolean"
  1978. abstract="false" native="false" synchronized="false"
  1979. static="false" final="false" visibility="public"
  1980. deprecated="not deprecated">
  1981. <doc>
  1982. <![CDATA[Is this a directory?
  1983. @return true if this is a directory]]>
  1984. </doc>
  1985. </method>
  1986. <method name="getBlockSize" return="long"
  1987. abstract="false" native="false" synchronized="false"
  1988. static="false" final="false" visibility="public"
  1989. deprecated="not deprecated">
  1990. <doc>
  1991. <![CDATA[Get the block size of the file.
  1992. @return the number of bytes]]>
  1993. </doc>
  1994. </method>
  1995. <method name="getReplication" return="short"
  1996. abstract="false" native="false" synchronized="false"
  1997. static="false" final="false" visibility="public"
  1998. deprecated="not deprecated">
  1999. <doc>
  2000. <![CDATA[Get the replication factor of a file.
  2001. @return the replication factor of a file.]]>
  2002. </doc>
  2003. </method>
  2004. <method name="getModificationTime" return="long"
  2005. abstract="false" native="false" synchronized="false"
  2006. static="false" final="false" visibility="public"
  2007. deprecated="not deprecated">
  2008. <doc>
  2009. <![CDATA[Get the modification time of the file.
  2010. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2011. </doc>
  2012. </method>
  2013. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2014. abstract="false" native="false" synchronized="false"
  2015. static="false" final="false" visibility="public"
  2016. deprecated="not deprecated">
  2017. <doc>
  2018. <![CDATA[Get FsPermission associated with the file.
  2019. @return permssion. If a filesystem does not have a notion of permissions
  2020. or if permissions could not be determined, then default
  2021. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2022. </doc>
  2023. </method>
  2024. <method name="getOwner" return="java.lang.String"
  2025. abstract="false" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. <doc>
  2029. <![CDATA[Get the owner of the file.
  2030. @return owner of the file. The string could be empty if there is no
  2031. notion of owner of a file in a filesystem or if it could not
  2032. be determined (rare).]]>
  2033. </doc>
  2034. </method>
  2035. <method name="getGroup" return="java.lang.String"
  2036. abstract="false" native="false" synchronized="false"
  2037. static="false" final="false" visibility="public"
  2038. deprecated="not deprecated">
  2039. <doc>
  2040. <![CDATA[Get the group associated with the file.
  2041. @return group for the file. The string could be empty if there is no
  2042. notion of group of a file in a filesystem or if it could not
  2043. be determined (rare).]]>
  2044. </doc>
  2045. </method>
  2046. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2047. abstract="false" native="false" synchronized="false"
  2048. static="false" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. </method>
  2051. <method name="setPermission"
  2052. abstract="false" native="false" synchronized="false"
  2053. static="false" final="false" visibility="protected"
  2054. deprecated="not deprecated">
  2055. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2056. <doc>
  2057. <![CDATA[Sets permission.
  2058. @param permission if permission is null, default value is set]]>
  2059. </doc>
  2060. </method>
  2061. <method name="setOwner"
  2062. abstract="false" native="false" synchronized="false"
  2063. static="false" final="false" visibility="protected"
  2064. deprecated="not deprecated">
  2065. <param name="owner" type="java.lang.String"/>
  2066. <doc>
  2067. <![CDATA[Sets owner.
  2068. @param owner if it is null, default value is set]]>
  2069. </doc>
  2070. </method>
  2071. <method name="setGroup"
  2072. abstract="false" native="false" synchronized="false"
  2073. static="false" final="false" visibility="protected"
  2074. deprecated="not deprecated">
  2075. <param name="group" type="java.lang.String"/>
  2076. <doc>
  2077. <![CDATA[Sets group.
  2078. @param group if it is null, default value is set]]>
  2079. </doc>
  2080. </method>
  2081. <method name="write"
  2082. abstract="false" native="false" synchronized="false"
  2083. static="false" final="false" visibility="public"
  2084. deprecated="not deprecated">
  2085. <param name="out" type="java.io.DataOutput"/>
  2086. <exception name="IOException" type="java.io.IOException"/>
  2087. </method>
  2088. <method name="readFields"
  2089. abstract="false" native="false" synchronized="false"
  2090. static="false" final="false" visibility="public"
  2091. deprecated="not deprecated">
  2092. <param name="in" type="java.io.DataInput"/>
  2093. <exception name="IOException" type="java.io.IOException"/>
  2094. </method>
  2095. <method name="compareTo" return="int"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <param name="o" type="java.lang.Object"/>
  2100. <doc>
  2101. <![CDATA[Compare this object to another object
  2102. @param o the object to be compared.
  2103. @return a negative integer, zero, or a positive integer as this object
  2104. is less than, equal to, or greater than the specified object.
  2105. @throws ClassCastException if the specified object's is not of
  2106. type FileStatus]]>
  2107. </doc>
  2108. </method>
  2109. <method name="equals" return="boolean"
  2110. abstract="false" native="false" synchronized="false"
  2111. static="false" final="false" visibility="public"
  2112. deprecated="not deprecated">
  2113. <param name="o" type="java.lang.Object"/>
  2114. <doc>
  2115. <![CDATA[Compare if this object is equal to another object
  2116. @param o the object to be compared.
  2117. @return true if two file status has the same path name; false if not.]]>
  2118. </doc>
  2119. </method>
  2120. <method name="hashCode" return="int"
  2121. abstract="false" native="false" synchronized="false"
  2122. static="false" final="false" visibility="public"
  2123. deprecated="not deprecated">
  2124. <doc>
  2125. <![CDATA[Returns a hash code value for the object, which is defined as
  2126. the hash code of the path name.
  2127. @return a hash code value for the path name.]]>
  2128. </doc>
  2129. </method>
  2130. <doc>
  2131. <![CDATA[Interface that represents the client side information for a file.]]>
  2132. </doc>
  2133. </class>
  2134. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2135. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2136. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2137. abstract="true"
  2138. static="false" final="false" visibility="public"
  2139. deprecated="not deprecated">
  2140. <implements name="java.io.Closeable"/>
  2141. <constructor name="FileSystem"
  2142. static="false" final="false" visibility="protected"
  2143. deprecated="not deprecated">
  2144. </constructor>
  2145. <method name="parseArgs" return="org.apache.hadoop.fs.FileSystem"
  2146. abstract="false" native="false" synchronized="false"
  2147. static="true" final="false" visibility="public"
  2148. deprecated="not deprecated">
  2149. <param name="argv" type="java.lang.String[]"/>
  2150. <param name="i" type="int"/>
  2151. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2152. <exception name="IOException" type="java.io.IOException"/>
  2153. <doc>
  2154. <![CDATA[Parse the cmd-line args, starting at i. Remove consumed args
  2155. from array. We expect param in the form:
  2156. '-local | -dfs <namenode:port>']]>
  2157. </doc>
  2158. </method>
  2159. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2160. abstract="false" native="false" synchronized="false"
  2161. static="true" final="false" visibility="public"
  2162. deprecated="not deprecated">
  2163. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2164. <exception name="IOException" type="java.io.IOException"/>
  2165. <doc>
  2166. <![CDATA[Returns the configured filesystem implementation.]]>
  2167. </doc>
  2168. </method>
  2169. <method name="getDefaultUri" return="java.net.URI"
  2170. abstract="false" native="false" synchronized="false"
  2171. static="true" final="false" visibility="public"
  2172. deprecated="not deprecated">
  2173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2174. <doc>
  2175. <![CDATA[Get the default filesystem URI from a configuration.
  2176. @param conf the configuration to access
  2177. @return the uri of the default filesystem]]>
  2178. </doc>
  2179. </method>
  2180. <method name="setDefaultUri"
  2181. abstract="false" native="false" synchronized="false"
  2182. static="true" final="false" visibility="public"
  2183. deprecated="not deprecated">
  2184. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2185. <param name="uri" type="java.net.URI"/>
  2186. <doc>
  2187. <![CDATA[Set the default filesystem URI in a configuration.
  2188. @param conf the configuration to alter
  2189. @param uri the new default filesystem uri]]>
  2190. </doc>
  2191. </method>
  2192. <method name="setDefaultUri"
  2193. abstract="false" native="false" synchronized="false"
  2194. static="true" final="false" visibility="public"
  2195. deprecated="not deprecated">
  2196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2197. <param name="uri" type="java.lang.String"/>
  2198. <doc>
  2199. <![CDATA[Set the default filesystem URI in a configuration.
  2200. @param conf the configuration to alter
  2201. @param uri the new default filesystem uri]]>
  2202. </doc>
  2203. </method>
  2204. <method name="initialize"
  2205. abstract="true" native="false" synchronized="false"
  2206. static="false" final="false" visibility="public"
  2207. deprecated="not deprecated">
  2208. <param name="name" type="java.net.URI"/>
  2209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2210. <exception name="IOException" type="java.io.IOException"/>
  2211. <doc>
  2212. <![CDATA[Called after a new FileSystem instance is constructed.
  2213. @param name a uri whose authority section names the host, port, etc.
  2214. for this FileSystem
  2215. @param conf the configuration]]>
  2216. </doc>
  2217. </method>
  2218. <method name="getUri" return="java.net.URI"
  2219. abstract="true" native="false" synchronized="false"
  2220. static="false" final="false" visibility="public"
  2221. deprecated="not deprecated">
  2222. <doc>
  2223. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2224. </doc>
  2225. </method>
  2226. <method name="getName" return="java.lang.String"
  2227. abstract="false" native="false" synchronized="false"
  2228. static="false" final="false" visibility="public"
  2229. deprecated="call #getUri() instead.">
  2230. <doc>
  2231. <![CDATA[@deprecated call #getUri() instead.]]>
  2232. </doc>
  2233. </method>
  2234. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2235. abstract="false" native="false" synchronized="false"
  2236. static="true" final="false" visibility="public"
  2237. deprecated="call #get(URI,Configuration) instead.">
  2238. <param name="name" type="java.lang.String"/>
  2239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2240. <exception name="IOException" type="java.io.IOException"/>
  2241. <doc>
  2242. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2243. </doc>
  2244. </method>
  2245. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2246. abstract="false" native="false" synchronized="false"
  2247. static="true" final="false" visibility="public"
  2248. deprecated="not deprecated">
  2249. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2250. <exception name="IOException" type="java.io.IOException"/>
  2251. <doc>
  2252. <![CDATA[Get the local file syste
  2253. @param conf the configuration to configure the file system with
  2254. @return a LocalFileSystem]]>
  2255. </doc>
  2256. </method>
  2257. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2258. abstract="false" native="false" synchronized="false"
  2259. static="true" final="false" visibility="public"
  2260. deprecated="not deprecated">
  2261. <param name="uri" type="java.net.URI"/>
  2262. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2263. <exception name="IOException" type="java.io.IOException"/>
  2264. <doc>
  2265. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2266. of the URI determines a configuration property name,
  2267. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2268. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2269. </doc>
  2270. </method>
  2271. <method name="closeAll"
  2272. abstract="false" native="false" synchronized="false"
  2273. static="true" final="false" visibility="public"
  2274. deprecated="not deprecated">
  2275. <exception name="IOException" type="java.io.IOException"/>
  2276. <doc>
  2277. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2278. used anymore.
  2279. @throws IOException]]>
  2280. </doc>
  2281. </method>
  2282. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2283. abstract="false" native="false" synchronized="false"
  2284. static="false" final="false" visibility="public"
  2285. deprecated="not deprecated">
  2286. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2287. <doc>
  2288. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2289. </doc>
  2290. </method>
  2291. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2292. abstract="false" native="false" synchronized="false"
  2293. static="true" final="false" visibility="public"
  2294. deprecated="not deprecated">
  2295. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2296. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2297. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2298. <exception name="IOException" type="java.io.IOException"/>
  2299. <doc>
  2300. <![CDATA[create a file with the provided permission
  2301. The permission of the file is set to be the provided permission as in
  2302. setPermission, not permission&~umask
  2303. It is implemented using two RPCs. It is understood that it is inefficient,
  2304. but the implementation is thread-safe. The other option is to change the
  2305. value of umask in configuration to be 0, but it is not thread-safe.
  2306. @param fs file system handle
  2307. @param file the name of the file to be created
  2308. @param permission the permission of the file
  2309. @return an output stream
  2310. @throws IOException]]>
  2311. </doc>
  2312. </method>
  2313. <method name="mkdirs" return="boolean"
  2314. abstract="false" native="false" synchronized="false"
  2315. static="true" final="false" visibility="public"
  2316. deprecated="not deprecated">
  2317. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2318. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2319. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2320. <exception name="IOException" type="java.io.IOException"/>
  2321. <doc>
  2322. <![CDATA[create a directory with the provided permission
  2323. The permission of the directory is set to be the provided permission as in
  2324. setPermission, not permission&~umask
  2325. @see #create(FileSystem, Path, FsPermission)
  2326. @param fs file system handle
  2327. @param dir the name of the directory to be created
  2328. @param permission the permission of the directory
  2329. @return true if the directory creation succeeds; false otherwise
  2330. @throws IOException]]>
  2331. </doc>
  2332. </method>
  2333. <method name="checkPath"
  2334. abstract="false" native="false" synchronized="false"
  2335. static="false" final="false" visibility="protected"
  2336. deprecated="not deprecated">
  2337. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2338. <doc>
  2339. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2340. </doc>
  2341. </method>
  2342. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2343. abstract="false" native="false" synchronized="false"
  2344. static="false" final="false" visibility="public"
  2345. deprecated="use {@link #getFileBlockLocations(FileStatus, long, long)}">
  2346. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2347. <param name="start" type="long"/>
  2348. <param name="len" type="long"/>
  2349. <exception name="IOException" type="java.io.IOException"/>
  2350. <doc>
  2351. <![CDATA[Return an array containing hostnames, offset and size of
  2352. portions of the given file. For a nonexistent
  2353. file or regions, null will be returned.
  2354. This call is most helpful with DFS, where it returns
  2355. hostnames of machines that contain the given file.
  2356. The FileSystem will simply return an elt containing 'localhost'.
  2357. @deprecated use {@link #getFileBlockLocations(FileStatus, long, long)}]]>
  2358. </doc>
  2359. </method>
  2360. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2361. abstract="false" native="false" synchronized="false"
  2362. static="false" final="false" visibility="public"
  2363. deprecated="not deprecated">
  2364. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2365. <param name="start" type="long"/>
  2366. <param name="len" type="long"/>
  2367. <exception name="IOException" type="java.io.IOException"/>
  2368. <doc>
  2369. <![CDATA[Return an array containing hostnames, offset and size of
  2370. portions of the given file. For a nonexistent
  2371. file or regions, null will be returned.
  2372. This call is most helpful with DFS, where it returns
  2373. hostnames of machines that contain the given file.
  2374. The FileSystem will simply return an elt containing 'localhost'.]]>
  2375. </doc>
  2376. </method>
  2377. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2378. abstract="true" native="false" synchronized="false"
  2379. static="false" final="false" visibility="public"
  2380. deprecated="not deprecated">
  2381. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2382. <param name="bufferSize" type="int"/>
  2383. <exception name="IOException" type="java.io.IOException"/>
  2384. <doc>
  2385. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2386. @param f the file name to open
  2387. @param bufferSize the size of the buffer to be used.]]>
  2388. </doc>
  2389. </method>
  2390. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2391. abstract="false" native="false" synchronized="false"
  2392. static="false" final="false" visibility="public"
  2393. deprecated="not deprecated">
  2394. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2395. <exception name="IOException" type="java.io.IOException"/>
  2396. <doc>
  2397. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2398. @param f the file to open]]>
  2399. </doc>
  2400. </method>
  2401. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2402. abstract="false" native="false" synchronized="false"
  2403. static="false" final="false" visibility="public"
  2404. deprecated="not deprecated">
  2405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2406. <exception name="IOException" type="java.io.IOException"/>
  2407. <doc>
  2408. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2409. Files are overwritten by default.]]>
  2410. </doc>
  2411. </method>
  2412. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2413. abstract="false" native="false" synchronized="false"
  2414. static="false" final="false" visibility="public"
  2415. deprecated="not deprecated">
  2416. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2417. <param name="overwrite" type="boolean"/>
  2418. <exception name="IOException" type="java.io.IOException"/>
  2419. <doc>
  2420. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2421. </doc>
  2422. </method>
  2423. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2424. abstract="false" native="false" synchronized="false"
  2425. static="false" final="false" visibility="public"
  2426. deprecated="not deprecated">
  2427. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2428. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2429. <exception name="IOException" type="java.io.IOException"/>
  2430. <doc>
  2431. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2432. reporting.
  2433. Files are overwritten by default.]]>
  2434. </doc>
  2435. </method>
  2436. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2437. abstract="false" native="false" synchronized="false"
  2438. static="false" final="false" visibility="public"
  2439. deprecated="not deprecated">
  2440. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2441. <param name="replication" type="short"/>
  2442. <exception name="IOException" type="java.io.IOException"/>
  2443. <doc>
  2444. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2445. Files are overwritten by default.]]>
  2446. </doc>
  2447. </method>
  2448. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2449. abstract="false" native="false" synchronized="false"
  2450. static="false" final="false" visibility="public"
  2451. deprecated="not deprecated">
  2452. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2453. <param name="replication" type="short"/>
  2454. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2455. <exception name="IOException" type="java.io.IOException"/>
  2456. <doc>
  2457. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2458. reporting.
  2459. Files are overwritten by default.]]>
  2460. </doc>
  2461. </method>
  2462. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2463. abstract="false" native="false" synchronized="false"
  2464. static="false" final="false" visibility="public"
  2465. deprecated="not deprecated">
  2466. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2467. <param name="overwrite" type="boolean"/>
  2468. <param name="bufferSize" type="int"/>
  2469. <exception name="IOException" type="java.io.IOException"/>
  2470. <doc>
  2471. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2472. @param f the file name to open
  2473. @param overwrite if a file with this name already exists, then if true,
  2474. the file will be overwritten, and if false an error will be thrown.
  2475. @param bufferSize the size of the buffer to be used.]]>
  2476. </doc>
  2477. </method>
  2478. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2479. abstract="false" native="false" synchronized="false"
  2480. static="false" final="false" visibility="public"
  2481. deprecated="not deprecated">
  2482. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2483. <param name="overwrite" type="boolean"/>
  2484. <param name="bufferSize" type="int"/>
  2485. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2486. <exception name="IOException" type="java.io.IOException"/>
  2487. <doc>
  2488. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2489. reporting.
  2490. @param f the file name to open
  2491. @param overwrite if a file with this name already exists, then if true,
  2492. the file will be overwritten, and if false an error will be thrown.
  2493. @param bufferSize the size of the buffer to be used.]]>
  2494. </doc>
  2495. </method>
  2496. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2497. abstract="false" native="false" synchronized="false"
  2498. static="false" final="false" visibility="public"
  2499. deprecated="not deprecated">
  2500. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2501. <param name="overwrite" type="boolean"/>
  2502. <param name="bufferSize" type="int"/>
  2503. <param name="replication" type="short"/>
  2504. <param name="blockSize" type="long"/>
  2505. <exception name="IOException" type="java.io.IOException"/>
  2506. <doc>
  2507. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2508. @param f the file name to open
  2509. @param overwrite if a file with this name already exists, then if true,
  2510. the file will be overwritten, and if false an error will be thrown.
  2511. @param bufferSize the size of the buffer to be used.
  2512. @param replication required block replication for the file.]]>
  2513. </doc>
  2514. </method>
  2515. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2516. abstract="false" native="false" synchronized="false"
  2517. static="false" final="false" visibility="public"
  2518. deprecated="not deprecated">
  2519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2520. <param name="overwrite" type="boolean"/>
  2521. <param name="bufferSize" type="int"/>
  2522. <param name="replication" type="short"/>
  2523. <param name="blockSize" type="long"/>
  2524. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2525. <exception name="IOException" type="java.io.IOException"/>
  2526. <doc>
  2527. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2528. reporting.
  2529. @param f the file name to open
  2530. @param overwrite if a file with this name already exists, then if true,
  2531. the file will be overwritten, and if false an error will be thrown.
  2532. @param bufferSize the size of the buffer to be used.
  2533. @param replication required block replication for the file.]]>
  2534. </doc>
  2535. </method>
  2536. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2537. abstract="true" native="false" synchronized="false"
  2538. static="false" final="false" visibility="public"
  2539. deprecated="not deprecated">
  2540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2541. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2542. <param name="overwrite" type="boolean"/>
  2543. <param name="bufferSize" type="int"/>
  2544. <param name="replication" type="short"/>
  2545. <param name="blockSize" type="long"/>
  2546. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2547. <exception name="IOException" type="java.io.IOException"/>
  2548. <doc>
  2549. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2550. reporting.
  2551. @param f the file name to open
  2552. @param permission
  2553. @param overwrite if a file with this name already exists, then if true,
  2554. the file will be overwritten, and if false an error will be thrown.
  2555. @param bufferSize the size of the buffer to be used.
  2556. @param replication required block replication for the file.
  2557. @param blockSize
  2558. @param progress
  2559. @throws IOException
  2560. @see #setPermission(Path, FsPermission)]]>
  2561. </doc>
  2562. </method>
  2563. <method name="createNewFile" return="boolean"
  2564. abstract="false" native="false" synchronized="false"
  2565. static="false" final="false" visibility="public"
  2566. deprecated="not deprecated">
  2567. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2568. <exception name="IOException" type="java.io.IOException"/>
  2569. <doc>
  2570. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  2571. create fails, or if it already existed, return false.]]>
  2572. </doc>
  2573. </method>
  2574. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2575. abstract="false" native="false" synchronized="false"
  2576. static="false" final="false" visibility="public"
  2577. deprecated="not deprecated">
  2578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2579. <exception name="IOException" type="java.io.IOException"/>
  2580. <doc>
  2581. <![CDATA[Append to an existing file (optional operation).
  2582. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2583. @param f the existing file to be appended.
  2584. @throws IOException]]>
  2585. </doc>
  2586. </method>
  2587. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2588. abstract="false" native="false" synchronized="false"
  2589. static="false" final="false" visibility="public"
  2590. deprecated="not deprecated">
  2591. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2592. <param name="bufferSize" type="int"/>
  2593. <exception name="IOException" type="java.io.IOException"/>
  2594. <doc>
  2595. <![CDATA[Append to an existing file (optional operation).
  2596. Same as append(f, bufferSize, null).
  2597. @param f the existing file to be appended.
  2598. @param bufferSize the size of the buffer to be used.
  2599. @throws IOException]]>
  2600. </doc>
  2601. </method>
  2602. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2603. abstract="true" native="false" synchronized="false"
  2604. static="false" final="false" visibility="public"
  2605. deprecated="not deprecated">
  2606. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2607. <param name="bufferSize" type="int"/>
  2608. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2609. <exception name="IOException" type="java.io.IOException"/>
  2610. <doc>
  2611. <![CDATA[Append to an existing file (optional operation).
  2612. @param f the existing file to be appended.
  2613. @param bufferSize the size of the buffer to be used.
  2614. @param progress for reporting progress if it is not null.
  2615. @throws IOException]]>
  2616. </doc>
  2617. </method>
  2618. <method name="getReplication" return="short"
  2619. abstract="false" native="false" synchronized="false"
  2620. static="false" final="false" visibility="public"
  2621. deprecated="Use getFileStatus() instead">
  2622. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2623. <exception name="IOException" type="java.io.IOException"/>
  2624. <doc>
  2625. <![CDATA[Get replication.
  2626. @deprecated Use getFileStatus() instead
  2627. @param src file name
  2628. @return file replication
  2629. @throws IOException]]>
  2630. </doc>
  2631. </method>
  2632. <method name="setReplication" return="boolean"
  2633. abstract="false" native="false" synchronized="false"
  2634. static="false" final="false" visibility="public"
  2635. deprecated="not deprecated">
  2636. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2637. <param name="replication" type="short"/>
  2638. <exception name="IOException" type="java.io.IOException"/>
  2639. <doc>
  2640. <![CDATA[Set replication for an existing file.
  2641. @param src file name
  2642. @param replication new replication
  2643. @throws IOException
  2644. @return true if successful;
  2645. false if file does not exist or is a directory]]>
  2646. </doc>
  2647. </method>
  2648. <method name="rename" return="boolean"
  2649. abstract="true" native="false" synchronized="false"
  2650. static="false" final="false" visibility="public"
  2651. deprecated="not deprecated">
  2652. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2653. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2654. <exception name="IOException" type="java.io.IOException"/>
  2655. <doc>
  2656. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2657. or remote DFS.]]>
  2658. </doc>
  2659. </method>
  2660. <method name="delete" return="boolean"
  2661. abstract="true" native="false" synchronized="false"
  2662. static="false" final="false" visibility="public"
  2663. deprecated="Use delete(Path, boolean) instead">
  2664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2665. <exception name="IOException" type="java.io.IOException"/>
  2666. <doc>
  2667. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2668. </doc>
  2669. </method>
  2670. <method name="delete" return="boolean"
  2671. abstract="true" native="false" synchronized="false"
  2672. static="false" final="false" visibility="public"
  2673. deprecated="not deprecated">
  2674. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2675. <param name="recursive" type="boolean"/>
  2676. <exception name="IOException" type="java.io.IOException"/>
  2677. <doc>
  2678. <![CDATA[Delete a file.
  2679. @param f the path to delete.
  2680. @param recursive if path is a directory and set to
  2681. true, the directory is deleted else throws an exception. In
  2682. case of a file the recursive can be set to either true or false.
  2683. @return true if delete is successful else false.
  2684. @throws IOException]]>
  2685. </doc>
  2686. </method>
  2687. <method name="deleteOnExit" return="boolean"
  2688. abstract="false" native="false" synchronized="false"
  2689. static="false" final="false" visibility="public"
  2690. deprecated="not deprecated">
  2691. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2692. <exception name="IOException" type="java.io.IOException"/>
  2693. <doc>
  2694. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2695. When the JVM shuts down,
  2696. all FileSystem objects will be closed automatically.
  2697. Then,
  2698. the marked path will be deleted as a result of closing the FileSystem.
  2699. The path has to exist in the file system.
  2700. @param f the path to delete.
  2701. @return true if deleteOnExit is successful, otherwise false.
  2702. @throws IOException]]>
  2703. </doc>
  2704. </method>
  2705. <method name="processDeleteOnExit"
  2706. abstract="false" native="false" synchronized="false"
  2707. static="false" final="false" visibility="protected"
  2708. deprecated="not deprecated">
  2709. <doc>
  2710. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2711. deletes all files in the specified paths.]]>
  2712. </doc>
  2713. </method>
  2714. <method name="exists" return="boolean"
  2715. abstract="false" native="false" synchronized="false"
  2716. static="false" final="false" visibility="public"
  2717. deprecated="not deprecated">
  2718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2719. <exception name="IOException" type="java.io.IOException"/>
  2720. <doc>
  2721. <![CDATA[Check if exists.
  2722. @param f source file]]>
  2723. </doc>
  2724. </method>
  2725. <method name="isDirectory" return="boolean"
  2726. abstract="false" native="false" synchronized="false"
  2727. static="false" final="false" visibility="public"
  2728. deprecated="Use getFileStatus() instead">
  2729. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2730. <exception name="IOException" type="java.io.IOException"/>
  2731. <doc>
  2732. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2733. </doc>
  2734. </method>
  2735. <method name="isFile" return="boolean"
  2736. abstract="false" native="false" synchronized="false"
  2737. static="false" final="false" visibility="public"
  2738. deprecated="not deprecated">
  2739. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2740. <exception name="IOException" type="java.io.IOException"/>
  2741. <doc>
  2742. <![CDATA[True iff the named path is a regular file.]]>
  2743. </doc>
  2744. </method>
  2745. <method name="getLength" return="long"
  2746. abstract="false" native="false" synchronized="false"
  2747. static="false" final="false" visibility="public"
  2748. deprecated="Use getFileStatus() instead">
  2749. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2750. <exception name="IOException" type="java.io.IOException"/>
  2751. <doc>
  2752. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2753. </doc>
  2754. </method>
  2755. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2756. abstract="false" native="false" synchronized="false"
  2757. static="false" final="false" visibility="public"
  2758. deprecated="not deprecated">
  2759. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2760. <exception name="IOException" type="java.io.IOException"/>
  2761. <doc>
  2762. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  2763. </doc>
  2764. </method>
  2765. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2766. abstract="true" 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. <exception name="IOException" type="java.io.IOException"/>
  2771. <doc>
  2772. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2773. a directory.
  2774. @param f
  2775. given path
  2776. @return the statuses of the files/directories in the given patch
  2777. @throws IOException]]>
  2778. </doc>
  2779. </method>
  2780. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2781. abstract="false" native="false" synchronized="false"
  2782. static="false" final="false" visibility="public"
  2783. deprecated="not deprecated">
  2784. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2785. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2786. <exception name="IOException" type="java.io.IOException"/>
  2787. <doc>
  2788. <![CDATA[Filter files/directories in the given path using the user-supplied path
  2789. filter.
  2790. @param f
  2791. a path name
  2792. @param filter
  2793. the user-supplied path filter
  2794. @return an array of FileStatus objects for the files under the given path
  2795. after applying the filter
  2796. @throws IOException
  2797. if encounter any problem while fetching the status]]>
  2798. </doc>
  2799. </method>
  2800. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2801. abstract="false" native="false" synchronized="false"
  2802. static="false" final="false" visibility="public"
  2803. deprecated="not deprecated">
  2804. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  2805. <exception name="IOException" type="java.io.IOException"/>
  2806. <doc>
  2807. <![CDATA[Filter files/directories in the given list of paths using default
  2808. path filter.
  2809. @param files
  2810. a list of paths
  2811. @return a list of statuses for the files under the given paths after
  2812. applying the filter default Path filter
  2813. @exception IOException]]>
  2814. </doc>
  2815. </method>
  2816. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2817. abstract="false" native="false" synchronized="false"
  2818. static="false" final="false" visibility="public"
  2819. deprecated="not deprecated">
  2820. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  2821. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2822. <exception name="IOException" type="java.io.IOException"/>
  2823. <doc>
  2824. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  2825. path filter.
  2826. @param files
  2827. a list of paths
  2828. @param filter
  2829. the user-supplied path filter
  2830. @return a list of statuses for the files under the given paths after
  2831. applying the filter
  2832. @exception IOException]]>
  2833. </doc>
  2834. </method>
  2835. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2836. abstract="false" native="false" synchronized="false"
  2837. static="false" final="false" visibility="public"
  2838. deprecated="not deprecated">
  2839. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  2840. <exception name="IOException" type="java.io.IOException"/>
  2841. <doc>
  2842. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  2843. files. Results are sorted by their names.
  2844. <p>
  2845. A filename pattern is composed of <i>regular</i> characters and
  2846. <i>special pattern matching</i> characters, which are:
  2847. <dl>
  2848. <dd>
  2849. <dl>
  2850. <p>
  2851. <dt> <tt> ? </tt>
  2852. <dd> Matches any single character.
  2853. <p>
  2854. <dt> <tt> * </tt>
  2855. <dd> Matches zero or more characters.
  2856. <p>
  2857. <dt> <tt> [<i>abc</i>] </tt>
  2858. <dd> Matches a single character from character set
  2859. <tt>{<i>a,b,c</i>}</tt>.
  2860. <p>
  2861. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  2862. <dd> Matches a single character from the character range
  2863. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  2864. lexicographically less than or equal to character <tt><i>b</i></tt>.
  2865. <p>
  2866. <dt> <tt> [^<i>a</i>] </tt>
  2867. <dd> Matches a single character that is not from character set or range
  2868. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  2869. immediately to the right of the opening bracket.
  2870. <p>
  2871. <dt> <tt> \<i>c</i> </tt>
  2872. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  2873. <p>
  2874. <dt> <tt> {ab,cd} </tt>
  2875. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  2876. <p>
  2877. <dt> <tt> {ab,c{de,fh}} </tt>
  2878. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  2879. </dl>
  2880. </dd>
  2881. </dl>
  2882. @param pathPattern a regular expression specifying a pth pattern
  2883. @return an array of paths that match the path pattern
  2884. @throws IOException]]>
  2885. </doc>
  2886. </method>
  2887. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2888. abstract="false" native="false" synchronized="false"
  2889. static="false" final="false" visibility="public"
  2890. deprecated="not deprecated">
  2891. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  2892. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2893. <exception name="IOException" type="java.io.IOException"/>
  2894. <doc>
  2895. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  2896. and is accepted by the user-supplied path filter. Results are sorted by
  2897. their path names.
  2898. Return null if pathPattern has no glob and the path does not exist.
  2899. Return an empty array if pathPattern has a glob and no path matches it.
  2900. @param pathPattern
  2901. a regular expression specifying the path pattern
  2902. @param filter
  2903. a user-supplied path filter
  2904. @return an array of FileStatus objects
  2905. @throws IOException if any I/O error occurs when fetching file status]]>
  2906. </doc>
  2907. </method>
  2908. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2909. abstract="false" native="false" synchronized="false"
  2910. static="false" final="false" visibility="public"
  2911. deprecated="not deprecated">
  2912. <doc>
  2913. <![CDATA[Return the current user's home directory in this filesystem.
  2914. The default implementation returns "/user/$USER/".]]>
  2915. </doc>
  2916. </method>
  2917. <method name="setWorkingDirectory"
  2918. abstract="true" native="false" synchronized="false"
  2919. static="false" final="false" visibility="public"
  2920. deprecated="not deprecated">
  2921. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  2922. <doc>
  2923. <![CDATA[Set the current working directory for the given file system. All relative
  2924. paths will be resolved relative to it.
  2925. @param new_dir]]>
  2926. </doc>
  2927. </method>
  2928. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2929. abstract="true" native="false" synchronized="false"
  2930. static="false" final="false" visibility="public"
  2931. deprecated="not deprecated">
  2932. <doc>
  2933. <![CDATA[Get the current working directory for the given file system
  2934. @return the directory pathname]]>
  2935. </doc>
  2936. </method>
  2937. <method name="mkdirs" return="boolean"
  2938. abstract="false" native="false" synchronized="false"
  2939. static="false" final="false" visibility="public"
  2940. deprecated="not deprecated">
  2941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2942. <exception name="IOException" type="java.io.IOException"/>
  2943. <doc>
  2944. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  2945. </doc>
  2946. </method>
  2947. <method name="mkdirs" return="boolean"
  2948. abstract="true" native="false" synchronized="false"
  2949. static="false" final="false" visibility="public"
  2950. deprecated="not deprecated">
  2951. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2952. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2953. <exception name="IOException" type="java.io.IOException"/>
  2954. <doc>
  2955. <![CDATA[Make the given file and all non-existent parents into
  2956. directories. Has the semantics of Unix 'mkdir -p'.
  2957. Existence of the directory hierarchy is not an error.]]>
  2958. </doc>
  2959. </method>
  2960. <method name="copyFromLocalFile"
  2961. abstract="false" native="false" synchronized="false"
  2962. static="false" final="false" visibility="public"
  2963. deprecated="not deprecated">
  2964. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2965. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2966. <exception name="IOException" type="java.io.IOException"/>
  2967. <doc>
  2968. <![CDATA[The src file is on the local disk. Add it to FS at
  2969. the given dst name and the source is kept intact afterwards]]>
  2970. </doc>
  2971. </method>
  2972. <method name="moveFromLocalFile"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  2977. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2978. <exception name="IOException" type="java.io.IOException"/>
  2979. <doc>
  2980. <![CDATA[The src files is on the local disk. Add it to FS at
  2981. the given dst name, removing the source afterwards.]]>
  2982. </doc>
  2983. </method>
  2984. <method name="moveFromLocalFile"
  2985. abstract="false" native="false" synchronized="false"
  2986. static="false" final="false" visibility="public"
  2987. deprecated="not deprecated">
  2988. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2989. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2990. <exception name="IOException" type="java.io.IOException"/>
  2991. <doc>
  2992. <![CDATA[The src file is on the local disk. Add it to FS at
  2993. the given dst name, removing the source afterwards.]]>
  2994. </doc>
  2995. </method>
  2996. <method name="copyFromLocalFile"
  2997. abstract="false" native="false" synchronized="false"
  2998. static="false" final="false" visibility="public"
  2999. deprecated="not deprecated">
  3000. <param name="delSrc" type="boolean"/>
  3001. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3002. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3003. <exception name="IOException" type="java.io.IOException"/>
  3004. <doc>
  3005. <![CDATA[The src file is on the local disk. Add it to FS at
  3006. the given dst name.
  3007. delSrc indicates if the source should be removed]]>
  3008. </doc>
  3009. </method>
  3010. <method name="copyFromLocalFile"
  3011. abstract="false" native="false" synchronized="false"
  3012. static="false" final="false" visibility="public"
  3013. deprecated="not deprecated">
  3014. <param name="delSrc" type="boolean"/>
  3015. <param name="overwrite" type="boolean"/>
  3016. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3017. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3018. <exception name="IOException" type="java.io.IOException"/>
  3019. <doc>
  3020. <![CDATA[The src files are on the local disk. Add it to FS at
  3021. the given dst name.
  3022. delSrc indicates if the source should be removed]]>
  3023. </doc>
  3024. </method>
  3025. <method name="copyFromLocalFile"
  3026. abstract="false" native="false" synchronized="false"
  3027. static="false" final="false" visibility="public"
  3028. deprecated="not deprecated">
  3029. <param name="delSrc" type="boolean"/>
  3030. <param name="overwrite" type="boolean"/>
  3031. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3032. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3033. <exception name="IOException" type="java.io.IOException"/>
  3034. <doc>
  3035. <![CDATA[The src file is on the local disk. Add it to FS at
  3036. the given dst name.
  3037. delSrc indicates if the source should be removed]]>
  3038. </doc>
  3039. </method>
  3040. <method name="copyToLocalFile"
  3041. abstract="false" native="false" synchronized="false"
  3042. static="false" final="false" visibility="public"
  3043. deprecated="not deprecated">
  3044. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3045. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3046. <exception name="IOException" type="java.io.IOException"/>
  3047. <doc>
  3048. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3049. Copy it from FS control to the local dst name.]]>
  3050. </doc>
  3051. </method>
  3052. <method name="moveToLocalFile"
  3053. abstract="false" native="false" synchronized="false"
  3054. static="false" final="false" visibility="public"
  3055. deprecated="not deprecated">
  3056. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3057. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3058. <exception name="IOException" type="java.io.IOException"/>
  3059. <doc>
  3060. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3061. Copy it from FS control to the local dst name.
  3062. Remove the source afterwards]]>
  3063. </doc>
  3064. </method>
  3065. <method name="copyToLocalFile"
  3066. abstract="false" native="false" synchronized="false"
  3067. static="false" final="false" visibility="public"
  3068. deprecated="not deprecated">
  3069. <param name="delSrc" type="boolean"/>
  3070. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3071. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3072. <exception name="IOException" type="java.io.IOException"/>
  3073. <doc>
  3074. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3075. Copy it from FS control to the local dst name.
  3076. delSrc indicates if the src will be removed or not.]]>
  3077. </doc>
  3078. </method>
  3079. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3080. abstract="false" native="false" synchronized="false"
  3081. static="false" final="false" visibility="public"
  3082. deprecated="not deprecated">
  3083. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3084. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3085. <exception name="IOException" type="java.io.IOException"/>
  3086. <doc>
  3087. <![CDATA[Returns a local File that the user can write output to. The caller
  3088. provides both the eventual FS target name and the local working
  3089. file. If the FS is local, we write directly into the target. If
  3090. the FS is remote, we write into the tmp local area.]]>
  3091. </doc>
  3092. </method>
  3093. <method name="completeLocalOutput"
  3094. abstract="false" native="false" synchronized="false"
  3095. static="false" final="false" visibility="public"
  3096. deprecated="not deprecated">
  3097. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3098. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3099. <exception name="IOException" type="java.io.IOException"/>
  3100. <doc>
  3101. <![CDATA[Called when we're all done writing to the target. A local FS will
  3102. do nothing, because we've written to exactly the right place. A remote
  3103. FS will copy the contents of tmpLocalFile to the correct target at
  3104. fsOutputFile.]]>
  3105. </doc>
  3106. </method>
  3107. <method name="close"
  3108. abstract="false" native="false" synchronized="false"
  3109. static="false" final="false" visibility="public"
  3110. deprecated="not deprecated">
  3111. <exception name="IOException" type="java.io.IOException"/>
  3112. <doc>
  3113. <![CDATA[No more filesystem operations are needed. Will
  3114. release any held locks.]]>
  3115. </doc>
  3116. </method>
  3117. <method name="getUsed" return="long"
  3118. abstract="false" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <exception name="IOException" type="java.io.IOException"/>
  3122. <doc>
  3123. <![CDATA[Return the total size of all files in the filesystem.]]>
  3124. </doc>
  3125. </method>
  3126. <method name="getBlockSize" return="long"
  3127. abstract="false" native="false" synchronized="false"
  3128. static="false" final="false" visibility="public"
  3129. deprecated="Use getFileStatus() instead">
  3130. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3131. <exception name="IOException" type="java.io.IOException"/>
  3132. <doc>
  3133. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3134. </doc>
  3135. </method>
  3136. <method name="getDefaultBlockSize" return="long"
  3137. abstract="false" native="false" synchronized="false"
  3138. static="false" final="false" visibility="public"
  3139. deprecated="not deprecated">
  3140. <doc>
  3141. <![CDATA[Return the number of bytes that large input files should be optimally
  3142. be split into to minimize i/o time.]]>
  3143. </doc>
  3144. </method>
  3145. <method name="getDefaultReplication" return="short"
  3146. abstract="false" native="false" synchronized="false"
  3147. static="false" final="false" visibility="public"
  3148. deprecated="not deprecated">
  3149. <doc>
  3150. <![CDATA[Get the default replication.]]>
  3151. </doc>
  3152. </method>
  3153. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3154. abstract="true" native="false" synchronized="false"
  3155. static="false" final="false" visibility="public"
  3156. deprecated="not deprecated">
  3157. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3158. <exception name="IOException" type="java.io.IOException"/>
  3159. <doc>
  3160. <![CDATA[Return a file status object that represents the path.
  3161. @param f The path we want information from
  3162. @return a FileStatus object
  3163. @throws FileNotFoundException when the path does not exist;
  3164. IOException see specific implementation]]>
  3165. </doc>
  3166. </method>
  3167. <method name="setPermission"
  3168. abstract="false" native="false" synchronized="false"
  3169. static="false" final="false" visibility="public"
  3170. deprecated="not deprecated">
  3171. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3172. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3173. <exception name="IOException" type="java.io.IOException"/>
  3174. <doc>
  3175. <![CDATA[Set permission of a path.
  3176. @param p
  3177. @param permission]]>
  3178. </doc>
  3179. </method>
  3180. <method name="setOwner"
  3181. abstract="false" native="false" synchronized="false"
  3182. static="false" final="false" visibility="public"
  3183. deprecated="not deprecated">
  3184. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3185. <param name="username" type="java.lang.String"/>
  3186. <param name="groupname" type="java.lang.String"/>
  3187. <exception name="IOException" type="java.io.IOException"/>
  3188. <doc>
  3189. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3190. The parameters username and groupname cannot both be null.
  3191. @param p The path
  3192. @param username If it is null, the original username remains unchanged.
  3193. @param groupname If it is null, the original groupname remains unchanged.]]>
  3194. </doc>
  3195. </method>
  3196. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3197. abstract="false" native="false" synchronized="true"
  3198. static="true" final="false" visibility="public"
  3199. deprecated="not deprecated">
  3200. <param name="cls" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.FileSystem&gt;"/>
  3201. <doc>
  3202. <![CDATA[Get the statistics for a particular file system
  3203. @param cls the class to lookup
  3204. @return a statistics object]]>
  3205. </doc>
  3206. </method>
  3207. <method name="printStatistics"
  3208. abstract="false" native="false" synchronized="true"
  3209. static="true" final="false" visibility="public"
  3210. deprecated="not deprecated">
  3211. <exception name="IOException" type="java.io.IOException"/>
  3212. </method>
  3213. <field name="LOG" type="org.apache.commons.logging.Log"
  3214. transient="false" volatile="false"
  3215. static="true" final="true" visibility="public"
  3216. deprecated="not deprecated">
  3217. </field>
  3218. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3219. transient="false" volatile="false"
  3220. static="false" final="true" visibility="protected"
  3221. deprecated="not deprecated">
  3222. <doc>
  3223. <![CDATA[The statistics for this file system.]]>
  3224. </doc>
  3225. </field>
  3226. <doc>
  3227. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3228. may be implemented as a distributed filesystem, or as a "local"
  3229. one that reflects the locally-connected disk. The local version
  3230. exists for small Hadoop instances and for testing.
  3231. <p>
  3232. All user code that may potentially use the Hadoop Distributed
  3233. File System should be written to use a FileSystem object. The
  3234. Hadoop DFS is a multi-machine system that appears as a single
  3235. disk. It's useful because of its fault tolerance and potentially
  3236. very large capacity.
  3237. <p>
  3238. The local implementation is {@link LocalFileSystem} and distributed
  3239. implementation is {@link DistributedFileSystem}.]]>
  3240. </doc>
  3241. </class>
  3242. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3243. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3244. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3245. abstract="false"
  3246. static="true" final="true" visibility="public"
  3247. deprecated="not deprecated">
  3248. <constructor name="FileSystem.Statistics"
  3249. static="false" final="false" visibility="public"
  3250. deprecated="not deprecated">
  3251. </constructor>
  3252. <method name="incrementBytesRead"
  3253. abstract="false" native="false" synchronized="false"
  3254. static="false" final="false" visibility="public"
  3255. deprecated="not deprecated">
  3256. <param name="newBytes" type="long"/>
  3257. <doc>
  3258. <![CDATA[Increment the bytes read in the statistics
  3259. @param newBytes the additional bytes read]]>
  3260. </doc>
  3261. </method>
  3262. <method name="incrementBytesWritten"
  3263. abstract="false" native="false" synchronized="false"
  3264. static="false" final="false" visibility="public"
  3265. deprecated="not deprecated">
  3266. <param name="newBytes" type="long"/>
  3267. <doc>
  3268. <![CDATA[Increment the bytes written in the statistics
  3269. @param newBytes the additional bytes written]]>
  3270. </doc>
  3271. </method>
  3272. <method name="getBytesRead" return="long"
  3273. abstract="false" native="false" synchronized="false"
  3274. static="false" final="false" visibility="public"
  3275. deprecated="not deprecated">
  3276. <doc>
  3277. <![CDATA[Get the total number of bytes read
  3278. @return the number of bytes]]>
  3279. </doc>
  3280. </method>
  3281. <method name="getBytesWritten" return="long"
  3282. abstract="false" native="false" synchronized="false"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. <doc>
  3286. <![CDATA[Get the total number of bytes written
  3287. @return the number of bytes]]>
  3288. </doc>
  3289. </method>
  3290. <method name="toString" return="java.lang.String"
  3291. abstract="false" native="false" synchronized="false"
  3292. static="false" final="false" visibility="public"
  3293. deprecated="not deprecated">
  3294. </method>
  3295. </class>
  3296. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3297. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3298. <class name="FileUtil" extends="java.lang.Object"
  3299. abstract="false"
  3300. static="false" final="false" visibility="public"
  3301. deprecated="not deprecated">
  3302. <constructor name="FileUtil"
  3303. static="false" final="false" visibility="public"
  3304. deprecated="not deprecated">
  3305. </constructor>
  3306. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3307. abstract="false" native="false" synchronized="false"
  3308. static="true" final="false" visibility="public"
  3309. deprecated="not deprecated">
  3310. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3311. <doc>
  3312. <![CDATA[convert an array of FileStatus to an array of Path
  3313. @param stats
  3314. an array of FileStatus objects
  3315. @return an array of paths corresponding to the input]]>
  3316. </doc>
  3317. </method>
  3318. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3319. abstract="false" native="false" synchronized="false"
  3320. static="true" final="false" visibility="public"
  3321. deprecated="not deprecated">
  3322. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3323. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3324. <doc>
  3325. <![CDATA[convert an array of FileStatus to an array of Path.
  3326. If stats if null, return path
  3327. @param stats
  3328. an array of FileStatus objects
  3329. @param path
  3330. default path to return in stats is null
  3331. @return an array of paths corresponding to the input]]>
  3332. </doc>
  3333. </method>
  3334. <method name="fullyDelete" return="boolean"
  3335. abstract="false" native="false" synchronized="false"
  3336. static="true" final="false" visibility="public"
  3337. deprecated="not deprecated">
  3338. <param name="dir" type="java.io.File"/>
  3339. <exception name="IOException" type="java.io.IOException"/>
  3340. <doc>
  3341. <![CDATA[Delete a directory and all its contents. If
  3342. we return false, the directory may be partially-deleted.]]>
  3343. </doc>
  3344. </method>
  3345. <method name="fullyDelete"
  3346. abstract="false" native="false" synchronized="false"
  3347. static="true" final="false" visibility="public"
  3348. deprecated="not deprecated">
  3349. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3350. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3351. <exception name="IOException" type="java.io.IOException"/>
  3352. <doc>
  3353. <![CDATA[Recursively delete a directory.
  3354. @param fs {@link FileSystem} on which the path is present
  3355. @param dir directory to recursively delete
  3356. @throws IOException]]>
  3357. </doc>
  3358. </method>
  3359. <method name="copy" return="boolean"
  3360. abstract="false" native="false" synchronized="false"
  3361. static="true" final="false" visibility="public"
  3362. deprecated="not deprecated">
  3363. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3364. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3365. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3366. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3367. <param name="deleteSource" type="boolean"/>
  3368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3369. <exception name="IOException" type="java.io.IOException"/>
  3370. <doc>
  3371. <![CDATA[Copy files between FileSystems.]]>
  3372. </doc>
  3373. </method>
  3374. <method name="copy" return="boolean"
  3375. abstract="false" native="false" synchronized="false"
  3376. static="true" final="false" visibility="public"
  3377. deprecated="not deprecated">
  3378. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3379. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3380. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3381. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3382. <param name="deleteSource" type="boolean"/>
  3383. <param name="overwrite" type="boolean"/>
  3384. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3385. <exception name="IOException" type="java.io.IOException"/>
  3386. </method>
  3387. <method name="copy" return="boolean"
  3388. abstract="false" native="false" synchronized="false"
  3389. static="true" final="false" visibility="public"
  3390. deprecated="not deprecated">
  3391. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3392. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3393. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3394. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3395. <param name="deleteSource" type="boolean"/>
  3396. <param name="overwrite" type="boolean"/>
  3397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3398. <exception name="IOException" type="java.io.IOException"/>
  3399. <doc>
  3400. <![CDATA[Copy files between FileSystems.]]>
  3401. </doc>
  3402. </method>
  3403. <method name="copyMerge" return="boolean"
  3404. abstract="false" native="false" synchronized="false"
  3405. static="true" final="false" visibility="public"
  3406. deprecated="not deprecated">
  3407. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3408. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3409. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3410. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3411. <param name="deleteSource" type="boolean"/>
  3412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3413. <param name="addString" type="java.lang.String"/>
  3414. <exception name="IOException" type="java.io.IOException"/>
  3415. <doc>
  3416. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3417. </doc>
  3418. </method>
  3419. <method name="copy" return="boolean"
  3420. abstract="false" native="false" synchronized="false"
  3421. static="true" final="false" visibility="public"
  3422. deprecated="not deprecated">
  3423. <param name="src" type="java.io.File"/>
  3424. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3425. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3426. <param name="deleteSource" type="boolean"/>
  3427. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3428. <exception name="IOException" type="java.io.IOException"/>
  3429. <doc>
  3430. <![CDATA[Copy local files to a FileSystem.]]>
  3431. </doc>
  3432. </method>
  3433. <method name="copy" return="boolean"
  3434. abstract="false" native="false" synchronized="false"
  3435. static="true" final="false" visibility="public"
  3436. deprecated="not deprecated">
  3437. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3438. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3439. <param name="dst" type="java.io.File"/>
  3440. <param name="deleteSource" type="boolean"/>
  3441. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3442. <exception name="IOException" type="java.io.IOException"/>
  3443. <doc>
  3444. <![CDATA[Copy FileSystem files to local files.]]>
  3445. </doc>
  3446. </method>
  3447. <method name="makeShellPath" return="java.lang.String"
  3448. abstract="false" native="false" synchronized="false"
  3449. static="true" final="false" visibility="public"
  3450. deprecated="not deprecated">
  3451. <param name="filename" type="java.lang.String"/>
  3452. <exception name="IOException" type="java.io.IOException"/>
  3453. <doc>
  3454. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3455. @param filename The filename to convert
  3456. @return The unix pathname
  3457. @throws IOException on windows, there can be problems with the subprocess]]>
  3458. </doc>
  3459. </method>
  3460. <method name="makeShellPath" return="java.lang.String"
  3461. abstract="false" native="false" synchronized="false"
  3462. static="true" final="false" visibility="public"
  3463. deprecated="not deprecated">
  3464. <param name="file" type="java.io.File"/>
  3465. <exception name="IOException" type="java.io.IOException"/>
  3466. <doc>
  3467. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3468. @param file The filename to convert
  3469. @return The unix pathname
  3470. @throws IOException on windows, there can be problems with the subprocess]]>
  3471. </doc>
  3472. </method>
  3473. <method name="getDU" return="long"
  3474. abstract="false" native="false" synchronized="false"
  3475. static="true" final="false" visibility="public"
  3476. deprecated="not deprecated">
  3477. <param name="dir" type="java.io.File"/>
  3478. <doc>
  3479. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3480. implementation.
  3481. @param dir
  3482. The input dir to get the disk space of this local dir
  3483. @return The total disk space of the input local directory]]>
  3484. </doc>
  3485. </method>
  3486. <method name="unZip"
  3487. abstract="false" native="false" synchronized="false"
  3488. static="true" final="false" visibility="public"
  3489. deprecated="not deprecated">
  3490. <param name="inFile" type="java.io.File"/>
  3491. <param name="unzipDir" type="java.io.File"/>
  3492. <exception name="IOException" type="java.io.IOException"/>
  3493. <doc>
  3494. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3495. passed as the second parameter
  3496. @param inFile The zip file as input
  3497. @param unzipDir The unzip directory where to unzip the zip file.
  3498. @throws IOException]]>
  3499. </doc>
  3500. </method>
  3501. <method name="unTar"
  3502. abstract="false" native="false" synchronized="false"
  3503. static="true" final="false" visibility="public"
  3504. deprecated="not deprecated">
  3505. <param name="inFile" type="java.io.File"/>
  3506. <param name="untarDir" type="java.io.File"/>
  3507. <exception name="IOException" type="java.io.IOException"/>
  3508. <doc>
  3509. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3510. passed as the second parameter
  3511. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3512. @param inFile The tar file as input.
  3513. @param untarDir The untar directory where to untar the tar file.
  3514. @throws IOException]]>
  3515. </doc>
  3516. </method>
  3517. <method name="symLink" return="int"
  3518. abstract="false" native="false" synchronized="false"
  3519. static="true" final="false" visibility="public"
  3520. deprecated="not deprecated">
  3521. <param name="target" type="java.lang.String"/>
  3522. <param name="linkname" type="java.lang.String"/>
  3523. <exception name="IOException" type="java.io.IOException"/>
  3524. <doc>
  3525. <![CDATA[Create a soft link between a src and destination
  3526. only on a local disk. HDFS does not support this
  3527. @param target the target for symlink
  3528. @param linkname the symlink
  3529. @return value returned by the command]]>
  3530. </doc>
  3531. </method>
  3532. <method name="chmod" return="int"
  3533. abstract="false" native="false" synchronized="false"
  3534. static="true" final="false" visibility="public"
  3535. deprecated="not deprecated">
  3536. <param name="filename" type="java.lang.String"/>
  3537. <param name="perm" type="java.lang.String"/>
  3538. <exception name="IOException" type="java.io.IOException"/>
  3539. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3540. <doc>
  3541. <![CDATA[Change the permissions on a filename.
  3542. @param filename the name of the file to change
  3543. @param perm the permission string
  3544. @return the exit code from the command
  3545. @throws IOException
  3546. @throws InterruptedException]]>
  3547. </doc>
  3548. </method>
  3549. <method name="createLocalTempFile" return="java.io.File"
  3550. abstract="false" native="false" synchronized="false"
  3551. static="true" final="true" visibility="public"
  3552. deprecated="not deprecated">
  3553. <param name="basefile" type="java.io.File"/>
  3554. <param name="prefix" type="java.lang.String"/>
  3555. <param name="isDeleteOnExit" type="boolean"/>
  3556. <exception name="IOException" type="java.io.IOException"/>
  3557. <doc>
  3558. <![CDATA[Create a tmp file for a base file.
  3559. @param basefile the base file of the tmp
  3560. @param prefix file name prefix of tmp
  3561. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3562. @return a newly created tmp file
  3563. @exception IOException If a tmp file cannot created
  3564. @see java.io.File#createTempFile(String, String, File)
  3565. @see java.io.File#deleteOnExit()]]>
  3566. </doc>
  3567. </method>
  3568. <method name="replaceFile"
  3569. abstract="false" native="false" synchronized="false"
  3570. static="true" final="false" visibility="public"
  3571. deprecated="not deprecated">
  3572. <param name="src" type="java.io.File"/>
  3573. <param name="target" type="java.io.File"/>
  3574. <exception name="IOException" type="java.io.IOException"/>
  3575. <doc>
  3576. <![CDATA[Move the src file to the name specified by target.
  3577. @param src the source file
  3578. @param target the target file
  3579. @exception IOException If this operation fails]]>
  3580. </doc>
  3581. </method>
  3582. <doc>
  3583. <![CDATA[A collection of file-processing util methods]]>
  3584. </doc>
  3585. </class>
  3586. <!-- end class org.apache.hadoop.fs.FileUtil -->
  3587. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  3588. <class name="FileUtil.HardLink" extends="java.lang.Object"
  3589. abstract="false"
  3590. static="true" final="false" visibility="public"
  3591. deprecated="not deprecated">
  3592. <constructor name="FileUtil.HardLink"
  3593. static="false" final="false" visibility="public"
  3594. deprecated="not deprecated">
  3595. </constructor>
  3596. <method name="createHardLink"
  3597. abstract="false" native="false" synchronized="false"
  3598. static="true" final="false" visibility="public"
  3599. deprecated="not deprecated">
  3600. <param name="target" type="java.io.File"/>
  3601. <param name="linkName" type="java.io.File"/>
  3602. <exception name="IOException" type="java.io.IOException"/>
  3603. <doc>
  3604. <![CDATA[Creates a hardlink]]>
  3605. </doc>
  3606. </method>
  3607. <method name="getLinkCount" return="int"
  3608. abstract="false" native="false" synchronized="false"
  3609. static="true" final="false" visibility="public"
  3610. deprecated="not deprecated">
  3611. <param name="fileName" type="java.io.File"/>
  3612. <exception name="IOException" type="java.io.IOException"/>
  3613. <doc>
  3614. <![CDATA[Retrieves the number of links to the specified file.]]>
  3615. </doc>
  3616. </method>
  3617. <doc>
  3618. <![CDATA[Class for creating hardlinks.
  3619. Supports Unix, Cygwin, WindXP.]]>
  3620. </doc>
  3621. </class>
  3622. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  3623. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  3624. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  3625. abstract="false"
  3626. static="false" final="false" visibility="public"
  3627. deprecated="not deprecated">
  3628. <constructor name="FilterFileSystem"
  3629. static="false" final="false" visibility="public"
  3630. deprecated="not deprecated">
  3631. </constructor>
  3632. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3633. static="false" final="false" visibility="public"
  3634. deprecated="not deprecated">
  3635. </constructor>
  3636. <method name="initialize"
  3637. abstract="false" native="false" synchronized="false"
  3638. static="false" final="false" visibility="public"
  3639. deprecated="not deprecated">
  3640. <param name="name" type="java.net.URI"/>
  3641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3642. <exception name="IOException" type="java.io.IOException"/>
  3643. <doc>
  3644. <![CDATA[Called after a new FileSystem instance is constructed.
  3645. @param name a uri whose authority section names the host, port, etc.
  3646. for this FileSystem
  3647. @param conf the configuration]]>
  3648. </doc>
  3649. </method>
  3650. <method name="getUri" return="java.net.URI"
  3651. abstract="false" native="false" synchronized="false"
  3652. static="false" final="false" visibility="public"
  3653. deprecated="not deprecated">
  3654. <doc>
  3655. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  3656. </doc>
  3657. </method>
  3658. <method name="getName" return="java.lang.String"
  3659. abstract="false" native="false" synchronized="false"
  3660. static="false" final="false" visibility="public"
  3661. deprecated="call #getUri() instead.">
  3662. <doc>
  3663. <![CDATA[@deprecated call #getUri() instead.]]>
  3664. </doc>
  3665. </method>
  3666. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3667. abstract="false" native="false" synchronized="false"
  3668. static="false" final="false" visibility="public"
  3669. deprecated="not deprecated">
  3670. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3671. <doc>
  3672. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  3673. </doc>
  3674. </method>
  3675. <method name="checkPath"
  3676. abstract="false" native="false" synchronized="false"
  3677. static="false" final="false" visibility="protected"
  3678. deprecated="not deprecated">
  3679. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3680. <doc>
  3681. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  3682. </doc>
  3683. </method>
  3684. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3685. abstract="false" native="false" synchronized="false"
  3686. static="false" final="false" visibility="public"
  3687. deprecated="not deprecated">
  3688. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3689. <param name="start" type="long"/>
  3690. <param name="len" type="long"/>
  3691. <exception name="IOException" type="java.io.IOException"/>
  3692. <doc>
  3693. <![CDATA[Return an array containing hostnames, offset and size of
  3694. portions of the given file. For a nonexistent
  3695. file or regions, null will be returned.
  3696. This call is most helpful with DFS, where it returns
  3697. hostnames of machines that contain the given file.
  3698. The FileSystem will simply return an elt containing 'localhost'.]]>
  3699. </doc>
  3700. </method>
  3701. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3702. abstract="false" native="false" synchronized="false"
  3703. static="false" final="false" visibility="public"
  3704. deprecated="not deprecated">
  3705. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  3706. <param name="start" type="long"/>
  3707. <param name="len" type="long"/>
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. </method>
  3710. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3711. abstract="false" native="false" synchronized="false"
  3712. static="false" final="false" visibility="public"
  3713. deprecated="not deprecated">
  3714. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3715. <param name="bufferSize" type="int"/>
  3716. <exception name="IOException" type="java.io.IOException"/>
  3717. <doc>
  3718. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3719. @param f the file name to open
  3720. @param bufferSize the size of the buffer to be used.]]>
  3721. </doc>
  3722. </method>
  3723. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3724. abstract="false" native="false" synchronized="false"
  3725. static="false" final="false" visibility="public"
  3726. deprecated="not deprecated">
  3727. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3728. <param name="bufferSize" type="int"/>
  3729. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3730. <exception name="IOException" type="java.io.IOException"/>
  3731. <doc>
  3732. <![CDATA[{@inheritDoc}]]>
  3733. </doc>
  3734. </method>
  3735. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3736. abstract="false" native="false" synchronized="false"
  3737. static="false" final="false" visibility="public"
  3738. deprecated="not deprecated">
  3739. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3740. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3741. <param name="overwrite" type="boolean"/>
  3742. <param name="bufferSize" type="int"/>
  3743. <param name="replication" type="short"/>
  3744. <param name="blockSize" type="long"/>
  3745. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3746. <exception name="IOException" type="java.io.IOException"/>
  3747. <doc>
  3748. <![CDATA[{@inheritDoc}]]>
  3749. </doc>
  3750. </method>
  3751. <method name="setReplication" return="boolean"
  3752. abstract="false" native="false" synchronized="false"
  3753. static="false" final="false" visibility="public"
  3754. deprecated="not deprecated">
  3755. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3756. <param name="replication" type="short"/>
  3757. <exception name="IOException" type="java.io.IOException"/>
  3758. <doc>
  3759. <![CDATA[Set replication for an existing file.
  3760. @param src file name
  3761. @param replication new replication
  3762. @throws IOException
  3763. @return true if successful;
  3764. false if file does not exist or is a directory]]>
  3765. </doc>
  3766. </method>
  3767. <method name="rename" return="boolean"
  3768. abstract="false" native="false" synchronized="false"
  3769. static="false" final="false" visibility="public"
  3770. deprecated="not deprecated">
  3771. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3772. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3773. <exception name="IOException" type="java.io.IOException"/>
  3774. <doc>
  3775. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  3776. or remote DFS.]]>
  3777. </doc>
  3778. </method>
  3779. <method name="delete" return="boolean"
  3780. abstract="false" native="false" synchronized="false"
  3781. static="false" final="false" visibility="public"
  3782. deprecated="not deprecated">
  3783. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3784. <exception name="IOException" type="java.io.IOException"/>
  3785. <doc>
  3786. <![CDATA[Delete a file]]>
  3787. </doc>
  3788. </method>
  3789. <method name="delete" return="boolean"
  3790. abstract="false" native="false" synchronized="false"
  3791. static="false" final="false" visibility="public"
  3792. deprecated="not deprecated">
  3793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3794. <param name="recursive" type="boolean"/>
  3795. <exception name="IOException" type="java.io.IOException"/>
  3796. <doc>
  3797. <![CDATA[Delete a file]]>
  3798. </doc>
  3799. </method>
  3800. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3801. abstract="false" native="false" synchronized="false"
  3802. static="false" final="false" visibility="public"
  3803. deprecated="not deprecated">
  3804. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3805. <exception name="IOException" type="java.io.IOException"/>
  3806. <doc>
  3807. <![CDATA[List files in a directory.]]>
  3808. </doc>
  3809. </method>
  3810. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3811. abstract="false" native="false" synchronized="false"
  3812. static="false" final="false" visibility="public"
  3813. deprecated="not deprecated">
  3814. </method>
  3815. <method name="setWorkingDirectory"
  3816. abstract="false" native="false" synchronized="false"
  3817. static="false" final="false" visibility="public"
  3818. deprecated="not deprecated">
  3819. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  3820. <doc>
  3821. <![CDATA[Set the current working directory for the given file system. All relative
  3822. paths will be resolved relative to it.
  3823. @param newDir]]>
  3824. </doc>
  3825. </method>
  3826. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3827. abstract="false" native="false" synchronized="false"
  3828. static="false" final="false" visibility="public"
  3829. deprecated="not deprecated">
  3830. <doc>
  3831. <![CDATA[Get the current working directory for the given file system
  3832. @return the directory pathname]]>
  3833. </doc>
  3834. </method>
  3835. <method name="mkdirs" return="boolean"
  3836. abstract="false" native="false" synchronized="false"
  3837. static="false" final="false" visibility="public"
  3838. deprecated="not deprecated">
  3839. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3840. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3841. <exception name="IOException" type="java.io.IOException"/>
  3842. <doc>
  3843. <![CDATA[{@inheritDoc}]]>
  3844. </doc>
  3845. </method>
  3846. <method name="copyFromLocalFile"
  3847. abstract="false" native="false" synchronized="false"
  3848. static="false" final="false" visibility="public"
  3849. deprecated="not deprecated">
  3850. <param name="delSrc" type="boolean"/>
  3851. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3852. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3853. <exception name="IOException" type="java.io.IOException"/>
  3854. <doc>
  3855. <![CDATA[The src file is on the local disk. Add it to FS at
  3856. the given dst name.
  3857. delSrc indicates if the source should be removed]]>
  3858. </doc>
  3859. </method>
  3860. <method name="copyToLocalFile"
  3861. abstract="false" native="false" synchronized="false"
  3862. static="false" final="false" visibility="public"
  3863. deprecated="not deprecated">
  3864. <param name="delSrc" type="boolean"/>
  3865. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3866. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3867. <exception name="IOException" type="java.io.IOException"/>
  3868. <doc>
  3869. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3870. Copy it from FS control to the local dst name.
  3871. delSrc indicates if the src will be removed or not.]]>
  3872. </doc>
  3873. </method>
  3874. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3875. abstract="false" native="false" synchronized="false"
  3876. static="false" final="false" visibility="public"
  3877. deprecated="not deprecated">
  3878. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3879. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3880. <exception name="IOException" type="java.io.IOException"/>
  3881. <doc>
  3882. <![CDATA[Returns a local File that the user can write output to. The caller
  3883. provides both the eventual FS target name and the local working
  3884. file. If the FS is local, we write directly into the target. If
  3885. the FS is remote, we write into the tmp local area.]]>
  3886. </doc>
  3887. </method>
  3888. <method name="completeLocalOutput"
  3889. abstract="false" native="false" synchronized="false"
  3890. static="false" final="false" visibility="public"
  3891. deprecated="not deprecated">
  3892. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3893. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3894. <exception name="IOException" type="java.io.IOException"/>
  3895. <doc>
  3896. <![CDATA[Called when we're all done writing to the target. A local FS will
  3897. do nothing, because we've written to exactly the right place. A remote
  3898. FS will copy the contents of tmpLocalFile to the correct target at
  3899. fsOutputFile.]]>
  3900. </doc>
  3901. </method>
  3902. <method name="getDefaultBlockSize" return="long"
  3903. abstract="false" native="false" synchronized="false"
  3904. static="false" final="false" visibility="public"
  3905. deprecated="not deprecated">
  3906. <doc>
  3907. <![CDATA[Return the number of bytes that large input files should be optimally
  3908. be split into to minimize i/o time.]]>
  3909. </doc>
  3910. </method>
  3911. <method name="getDefaultReplication" return="short"
  3912. abstract="false" native="false" synchronized="false"
  3913. static="false" final="false" visibility="public"
  3914. deprecated="not deprecated">
  3915. <doc>
  3916. <![CDATA[Get the default replication.]]>
  3917. </doc>
  3918. </method>
  3919. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3920. abstract="false" native="false" synchronized="false"
  3921. static="false" final="false" visibility="public"
  3922. deprecated="not deprecated">
  3923. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3924. <exception name="IOException" type="java.io.IOException"/>
  3925. <doc>
  3926. <![CDATA[Get file status.]]>
  3927. </doc>
  3928. </method>
  3929. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  3930. abstract="false" native="false" synchronized="false"
  3931. static="false" final="false" visibility="public"
  3932. deprecated="not deprecated">
  3933. </method>
  3934. <method name="close"
  3935. abstract="false" native="false" synchronized="false"
  3936. static="false" final="false" visibility="public"
  3937. deprecated="not deprecated">
  3938. <exception name="IOException" type="java.io.IOException"/>
  3939. </method>
  3940. <method name="setOwner"
  3941. abstract="false" native="false" synchronized="false"
  3942. static="false" final="false" visibility="public"
  3943. deprecated="not deprecated">
  3944. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3945. <param name="username" type="java.lang.String"/>
  3946. <param name="groupname" type="java.lang.String"/>
  3947. <exception name="IOException" type="java.io.IOException"/>
  3948. <doc>
  3949. <![CDATA[{@inheritDoc}]]>
  3950. </doc>
  3951. </method>
  3952. <method name="setPermission"
  3953. abstract="false" native="false" synchronized="false"
  3954. static="false" final="false" visibility="public"
  3955. deprecated="not deprecated">
  3956. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3957. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3958. <exception name="IOException" type="java.io.IOException"/>
  3959. <doc>
  3960. <![CDATA[{@inheritDoc}]]>
  3961. </doc>
  3962. </method>
  3963. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  3964. transient="false" volatile="false"
  3965. static="false" final="false" visibility="protected"
  3966. deprecated="not deprecated">
  3967. </field>
  3968. <doc>
  3969. <![CDATA[A <code>FilterFileSystem</code> contains
  3970. some other file system, which it uses as
  3971. its basic file system, possibly transforming
  3972. the data along the way or providing additional
  3973. functionality. The class <code>FilterFileSystem</code>
  3974. itself simply overrides all methods of
  3975. <code>FileSystem</code> with versions that
  3976. pass all requests to the contained file
  3977. system. Subclasses of <code>FilterFileSystem</code>
  3978. may further override some of these methods
  3979. and may also provide additional methods
  3980. and fields.]]>
  3981. </doc>
  3982. </class>
  3983. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  3984. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  3985. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  3986. abstract="false"
  3987. static="false" final="false" visibility="public"
  3988. deprecated="not deprecated">
  3989. <implements name="org.apache.hadoop.fs.Seekable"/>
  3990. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  3991. <constructor name="FSDataInputStream" type="java.io.InputStream"
  3992. static="false" final="false" visibility="public"
  3993. deprecated="not deprecated">
  3994. <exception name="IOException" type="java.io.IOException"/>
  3995. </constructor>
  3996. <method name="seek"
  3997. abstract="false" native="false" synchronized="true"
  3998. static="false" final="false" visibility="public"
  3999. deprecated="not deprecated">
  4000. <param name="desired" type="long"/>
  4001. <exception name="IOException" type="java.io.IOException"/>
  4002. </method>
  4003. <method name="getPos" return="long"
  4004. abstract="false" native="false" synchronized="false"
  4005. static="false" final="false" visibility="public"
  4006. deprecated="not deprecated">
  4007. <exception name="IOException" type="java.io.IOException"/>
  4008. </method>
  4009. <method name="read" return="int"
  4010. abstract="false" native="false" synchronized="false"
  4011. static="false" final="false" visibility="public"
  4012. deprecated="not deprecated">
  4013. <param name="position" type="long"/>
  4014. <param name="buffer" type="byte[]"/>
  4015. <param name="offset" type="int"/>
  4016. <param name="length" type="int"/>
  4017. <exception name="IOException" type="java.io.IOException"/>
  4018. </method>
  4019. <method name="readFully"
  4020. abstract="false" native="false" synchronized="false"
  4021. static="false" final="false" visibility="public"
  4022. deprecated="not deprecated">
  4023. <param name="position" type="long"/>
  4024. <param name="buffer" type="byte[]"/>
  4025. <param name="offset" type="int"/>
  4026. <param name="length" type="int"/>
  4027. <exception name="IOException" type="java.io.IOException"/>
  4028. </method>
  4029. <method name="readFully"
  4030. abstract="false" native="false" synchronized="false"
  4031. static="false" final="false" visibility="public"
  4032. deprecated="not deprecated">
  4033. <param name="position" type="long"/>
  4034. <param name="buffer" type="byte[]"/>
  4035. <exception name="IOException" type="java.io.IOException"/>
  4036. </method>
  4037. <method name="seekToNewSource" return="boolean"
  4038. abstract="false" native="false" synchronized="false"
  4039. static="false" final="false" visibility="public"
  4040. deprecated="not deprecated">
  4041. <param name="targetPos" type="long"/>
  4042. <exception name="IOException" type="java.io.IOException"/>
  4043. </method>
  4044. <doc>
  4045. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4046. and buffers input through a {@link BufferedInputStream}.]]>
  4047. </doc>
  4048. </class>
  4049. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4050. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4051. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4052. abstract="false"
  4053. static="false" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. <implements name="org.apache.hadoop.fs.Syncable"/>
  4056. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4057. static="false" final="false" visibility="public"
  4058. deprecated="not deprecated">
  4059. <exception name="IOException" type="java.io.IOException"/>
  4060. </constructor>
  4061. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4062. static="false" final="false" visibility="public"
  4063. deprecated="not deprecated">
  4064. <exception name="IOException" type="java.io.IOException"/>
  4065. </constructor>
  4066. <method name="getPos" return="long"
  4067. abstract="false" native="false" synchronized="false"
  4068. static="false" final="false" visibility="public"
  4069. deprecated="not deprecated">
  4070. <exception name="IOException" type="java.io.IOException"/>
  4071. </method>
  4072. <method name="close"
  4073. abstract="false" native="false" synchronized="false"
  4074. static="false" final="false" visibility="public"
  4075. deprecated="not deprecated">
  4076. <exception name="IOException" type="java.io.IOException"/>
  4077. </method>
  4078. <method name="getWrappedStream" return="java.io.OutputStream"
  4079. abstract="false" native="false" synchronized="false"
  4080. static="false" final="false" visibility="public"
  4081. deprecated="not deprecated">
  4082. </method>
  4083. <method name="sync"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="false" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. <exception name="IOException" type="java.io.IOException"/>
  4088. <doc>
  4089. <![CDATA[{@inheritDoc}]]>
  4090. </doc>
  4091. </method>
  4092. <doc>
  4093. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4094. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4095. file.]]>
  4096. </doc>
  4097. </class>
  4098. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4099. <!-- start class org.apache.hadoop.fs.FSError -->
  4100. <class name="FSError" extends="java.lang.Error"
  4101. abstract="false"
  4102. static="false" final="false" visibility="public"
  4103. deprecated="not deprecated">
  4104. <doc>
  4105. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4106. in the native filesystem.]]>
  4107. </doc>
  4108. </class>
  4109. <!-- end class org.apache.hadoop.fs.FSError -->
  4110. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4111. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4112. abstract="true"
  4113. static="false" final="false" visibility="public"
  4114. deprecated="not deprecated">
  4115. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4116. static="false" final="false" visibility="protected"
  4117. deprecated="not deprecated">
  4118. <doc>
  4119. <![CDATA[Constructor
  4120. @param file The name of the file to be read
  4121. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4122. </doc>
  4123. </constructor>
  4124. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4125. static="false" final="false" visibility="protected"
  4126. deprecated="not deprecated">
  4127. <doc>
  4128. <![CDATA[Constructor
  4129. @param file The name of the file to be read
  4130. @param numOfRetries Number of read retries when ChecksumError occurs
  4131. @param sum the type of Checksum engine
  4132. @param chunkSize maximun chunk size
  4133. @param checksumSize the number byte of each checksum]]>
  4134. </doc>
  4135. </constructor>
  4136. <method name="readChunk" return="int"
  4137. abstract="true" native="false" synchronized="false"
  4138. static="false" final="false" visibility="protected"
  4139. deprecated="not deprecated">
  4140. <param name="pos" type="long"/>
  4141. <param name="buf" type="byte[]"/>
  4142. <param name="offset" type="int"/>
  4143. <param name="len" type="int"/>
  4144. <param name="checksum" type="byte[]"/>
  4145. <exception name="IOException" type="java.io.IOException"/>
  4146. <doc>
  4147. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4148. and checksum into <code>checksum</code>.
  4149. The method is used for implementing read, therefore, it should be optimized
  4150. for sequential reading
  4151. @param pos chunkPos
  4152. @param buf desitination buffer
  4153. @param offset offset in buf at which to store data
  4154. @param len maximun number of bytes to read
  4155. @return number of bytes read]]>
  4156. </doc>
  4157. </method>
  4158. <method name="getChunkPosition" return="long"
  4159. abstract="true" native="false" synchronized="false"
  4160. static="false" final="false" visibility="protected"
  4161. deprecated="not deprecated">
  4162. <param name="pos" type="long"/>
  4163. <doc>
  4164. <![CDATA[Return position of beginning of chunk containing pos.
  4165. @param pos a postion in the file
  4166. @return the starting position of the chunk which contains the byte]]>
  4167. </doc>
  4168. </method>
  4169. <method name="needChecksum" return="boolean"
  4170. abstract="false" native="false" synchronized="true"
  4171. static="false" final="false" visibility="protected"
  4172. deprecated="not deprecated">
  4173. <doc>
  4174. <![CDATA[Return true if there is a need for checksum verification]]>
  4175. </doc>
  4176. </method>
  4177. <method name="read" return="int"
  4178. abstract="false" native="false" synchronized="true"
  4179. static="false" final="false" visibility="public"
  4180. deprecated="not deprecated">
  4181. <exception name="IOException" type="java.io.IOException"/>
  4182. <doc>
  4183. <![CDATA[Read one checksum-verified byte
  4184. @return the next byte of data, or <code>-1</code> if the end of the
  4185. stream is reached.
  4186. @exception IOException if an I/O error occurs.]]>
  4187. </doc>
  4188. </method>
  4189. <method name="read" return="int"
  4190. abstract="false" native="false" synchronized="true"
  4191. static="false" final="false" visibility="public"
  4192. deprecated="not deprecated">
  4193. <param name="b" type="byte[]"/>
  4194. <param name="off" type="int"/>
  4195. <param name="len" type="int"/>
  4196. <exception name="IOException" type="java.io.IOException"/>
  4197. <doc>
  4198. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4199. the specified byte array, starting at the given offset.
  4200. <p> This method implements the general contract of the corresponding
  4201. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4202. the <code>{@link InputStream}</code> class. As an additional
  4203. convenience, it attempts to read as many bytes as possible by repeatedly
  4204. invoking the <code>read</code> method of the underlying stream. This
  4205. iterated <code>read</code> continues until one of the following
  4206. conditions becomes true: <ul>
  4207. <li> The specified number of bytes have been read,
  4208. <li> The <code>read</code> method of the underlying stream returns
  4209. <code>-1</code>, indicating end-of-file.
  4210. </ul> If the first <code>read</code> on the underlying stream returns
  4211. <code>-1</code> to indicate end-of-file then this method returns
  4212. <code>-1</code>. Otherwise this method returns the number of bytes
  4213. actually read.
  4214. @param b destination buffer.
  4215. @param off offset at which to start storing bytes.
  4216. @param len maximum number of bytes to read.
  4217. @return the number of bytes read, or <code>-1</code> if the end of
  4218. the stream has been reached.
  4219. @exception IOException if an I/O error occurs.
  4220. ChecksumException if any checksum error occurs]]>
  4221. </doc>
  4222. </method>
  4223. <method name="getPos" return="long"
  4224. abstract="false" native="false" synchronized="true"
  4225. static="false" final="false" visibility="public"
  4226. deprecated="not deprecated">
  4227. <exception name="IOException" type="java.io.IOException"/>
  4228. </method>
  4229. <method name="available" return="int"
  4230. abstract="false" native="false" synchronized="true"
  4231. static="false" final="false" visibility="public"
  4232. deprecated="not deprecated">
  4233. <exception name="IOException" type="java.io.IOException"/>
  4234. </method>
  4235. <method name="skip" return="long"
  4236. abstract="false" native="false" synchronized="true"
  4237. static="false" final="false" visibility="public"
  4238. deprecated="not deprecated">
  4239. <param name="n" type="long"/>
  4240. <exception name="IOException" type="java.io.IOException"/>
  4241. <doc>
  4242. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4243. input stream.
  4244. <p>This method may skip more bytes than are remaining in the backing
  4245. file. This produces no exception and the number of bytes skipped
  4246. may include some number of bytes that were beyond the EOF of the
  4247. backing file. Attempting to read from the stream after skipping past
  4248. the end will result in -1 indicating the end of the file.
  4249. <p>If <code>n</code> is negative, no bytes are skipped.
  4250. @param n the number of bytes to be skipped.
  4251. @return the actual number of bytes skipped.
  4252. @exception IOException if an I/O error occurs.
  4253. ChecksumException if the chunk to skip to is corrupted]]>
  4254. </doc>
  4255. </method>
  4256. <method name="seek"
  4257. abstract="false" native="false" synchronized="true"
  4258. static="false" final="false" visibility="public"
  4259. deprecated="not deprecated">
  4260. <param name="pos" type="long"/>
  4261. <exception name="IOException" type="java.io.IOException"/>
  4262. <doc>
  4263. <![CDATA[Seek to the given position in the stream.
  4264. The next read() will be from that position.
  4265. <p>This method may seek past the end of the file.
  4266. This produces no exception and an attempt to read from
  4267. the stream will result in -1 indicating the end of the file.
  4268. @param pos the postion to seek to.
  4269. @exception IOException if an I/O error occurs.
  4270. ChecksumException if the chunk to seek to is corrupted]]>
  4271. </doc>
  4272. </method>
  4273. <method name="readFully" return="int"
  4274. abstract="false" native="false" synchronized="false"
  4275. static="true" final="false" visibility="protected"
  4276. deprecated="not deprecated">
  4277. <param name="stm" type="java.io.InputStream"/>
  4278. <param name="buf" type="byte[]"/>
  4279. <param name="offset" type="int"/>
  4280. <param name="len" type="int"/>
  4281. <exception name="IOException" type="java.io.IOException"/>
  4282. <doc>
  4283. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4284. <code>stm</code>
  4285. @param stm an input stream
  4286. @param buf destiniation buffer
  4287. @param offset offset at which to store data
  4288. @param len number of bytes to read
  4289. @return actual number of bytes read
  4290. @throws IOException if there is any IO error]]>
  4291. </doc>
  4292. </method>
  4293. <method name="set"
  4294. abstract="false" native="false" synchronized="true"
  4295. static="false" final="true" visibility="protected"
  4296. deprecated="not deprecated">
  4297. <param name="sum" type="java.util.zip.Checksum"/>
  4298. <param name="maxChunkSize" type="int"/>
  4299. <param name="checksumSize" type="int"/>
  4300. <doc>
  4301. <![CDATA[Set the checksum related parameters
  4302. @param sum which type of checksum to use
  4303. @param maxChunkSize maximun chunk size
  4304. @param checksumSize checksum size]]>
  4305. </doc>
  4306. </method>
  4307. <method name="markSupported" return="boolean"
  4308. abstract="false" native="false" synchronized="false"
  4309. static="false" final="true" visibility="public"
  4310. deprecated="not deprecated">
  4311. </method>
  4312. <method name="mark"
  4313. abstract="false" native="false" synchronized="false"
  4314. static="false" final="true" visibility="public"
  4315. deprecated="not deprecated">
  4316. <param name="readlimit" type="int"/>
  4317. </method>
  4318. <method name="reset"
  4319. abstract="false" native="false" synchronized="false"
  4320. static="false" final="true" visibility="public"
  4321. deprecated="not deprecated">
  4322. <exception name="IOException" type="java.io.IOException"/>
  4323. </method>
  4324. <field name="LOG" type="org.apache.commons.logging.Log"
  4325. transient="false" volatile="false"
  4326. static="true" final="true" visibility="public"
  4327. deprecated="not deprecated">
  4328. </field>
  4329. <field name="file" type="org.apache.hadoop.fs.Path"
  4330. transient="false" volatile="false"
  4331. static="false" final="false" visibility="protected"
  4332. deprecated="not deprecated">
  4333. <doc>
  4334. <![CDATA[The file name from which data is read from]]>
  4335. </doc>
  4336. </field>
  4337. <doc>
  4338. <![CDATA[This is a generic input stream for verifying checksums for
  4339. data before it is read by a user.]]>
  4340. </doc>
  4341. </class>
  4342. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4343. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4344. <class name="FSInputStream" extends="java.io.InputStream"
  4345. abstract="true"
  4346. static="false" final="false" visibility="public"
  4347. deprecated="not deprecated">
  4348. <implements name="org.apache.hadoop.fs.Seekable"/>
  4349. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4350. <constructor name="FSInputStream"
  4351. static="false" final="false" visibility="public"
  4352. deprecated="not deprecated">
  4353. </constructor>
  4354. <method name="seek"
  4355. abstract="true" native="false" synchronized="false"
  4356. static="false" final="false" visibility="public"
  4357. deprecated="not deprecated">
  4358. <param name="pos" type="long"/>
  4359. <exception name="IOException" type="java.io.IOException"/>
  4360. <doc>
  4361. <![CDATA[Seek to the given offset from the start of the file.
  4362. The next read() will be from that location. Can't
  4363. seek past the end of the file.]]>
  4364. </doc>
  4365. </method>
  4366. <method name="getPos" return="long"
  4367. abstract="true" native="false" synchronized="false"
  4368. static="false" final="false" visibility="public"
  4369. deprecated="not deprecated">
  4370. <exception name="IOException" type="java.io.IOException"/>
  4371. <doc>
  4372. <![CDATA[Return the current offset from the start of the file]]>
  4373. </doc>
  4374. </method>
  4375. <method name="seekToNewSource" return="boolean"
  4376. abstract="true" native="false" synchronized="false"
  4377. static="false" final="false" visibility="public"
  4378. deprecated="not deprecated">
  4379. <param name="targetPos" type="long"/>
  4380. <exception name="IOException" type="java.io.IOException"/>
  4381. <doc>
  4382. <![CDATA[Seeks a different copy of the data. Returns true if
  4383. found a new source, false otherwise.]]>
  4384. </doc>
  4385. </method>
  4386. <method name="read" return="int"
  4387. abstract="false" native="false" synchronized="false"
  4388. static="false" final="false" visibility="public"
  4389. deprecated="not deprecated">
  4390. <param name="position" type="long"/>
  4391. <param name="buffer" type="byte[]"/>
  4392. <param name="offset" type="int"/>
  4393. <param name="length" type="int"/>
  4394. <exception name="IOException" type="java.io.IOException"/>
  4395. </method>
  4396. <method name="readFully"
  4397. abstract="false" native="false" synchronized="false"
  4398. static="false" final="false" visibility="public"
  4399. deprecated="not deprecated">
  4400. <param name="position" type="long"/>
  4401. <param name="buffer" type="byte[]"/>
  4402. <param name="offset" type="int"/>
  4403. <param name="length" type="int"/>
  4404. <exception name="IOException" type="java.io.IOException"/>
  4405. </method>
  4406. <method name="readFully"
  4407. abstract="false" native="false" synchronized="false"
  4408. static="false" final="false" visibility="public"
  4409. deprecated="not deprecated">
  4410. <param name="position" type="long"/>
  4411. <param name="buffer" type="byte[]"/>
  4412. <exception name="IOException" type="java.io.IOException"/>
  4413. </method>
  4414. <doc>
  4415. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4416. of RAF-style seek ability.]]>
  4417. </doc>
  4418. </class>
  4419. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4420. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4421. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4422. abstract="true"
  4423. static="false" final="false" visibility="public"
  4424. deprecated="not deprecated">
  4425. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4426. static="false" final="false" visibility="protected"
  4427. deprecated="not deprecated">
  4428. </constructor>
  4429. <method name="writeChunk"
  4430. abstract="true" native="false" synchronized="false"
  4431. static="false" final="false" visibility="protected"
  4432. deprecated="not deprecated">
  4433. <param name="b" type="byte[]"/>
  4434. <param name="offset" type="int"/>
  4435. <param name="len" type="int"/>
  4436. <param name="checksum" type="byte[]"/>
  4437. <exception name="IOException" type="java.io.IOException"/>
  4438. </method>
  4439. <method name="write"
  4440. abstract="false" native="false" synchronized="true"
  4441. static="false" final="false" visibility="public"
  4442. deprecated="not deprecated">
  4443. <param name="b" type="int"/>
  4444. <exception name="IOException" type="java.io.IOException"/>
  4445. <doc>
  4446. <![CDATA[Write one byte]]>
  4447. </doc>
  4448. </method>
  4449. <method name="write"
  4450. abstract="false" native="false" synchronized="true"
  4451. static="false" final="false" visibility="public"
  4452. deprecated="not deprecated">
  4453. <param name="b" type="byte[]"/>
  4454. <param name="off" type="int"/>
  4455. <param name="len" type="int"/>
  4456. <exception name="IOException" type="java.io.IOException"/>
  4457. <doc>
  4458. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4459. starting at offset <code>off</code> and generate a checksum for
  4460. each data chunk.
  4461. <p> This method stores bytes from the given array into this
  4462. stream's buffer before it gets checksumed. The buffer gets checksumed
  4463. and flushed to the underlying output stream when all data
  4464. in a checksum chunk are in the buffer. If the buffer is empty and
  4465. requested length is at least as large as the size of next checksum chunk
  4466. size, this method will checksum and write the chunk directly
  4467. to the underlying output stream. Thus it avoids uneccessary data copy.
  4468. @param b the data.
  4469. @param off the start offset in the data.
  4470. @param len the number of bytes to write.
  4471. @exception IOException if an I/O error occurs.]]>
  4472. </doc>
  4473. </method>
  4474. <method name="flushBuffer"
  4475. abstract="false" native="false" synchronized="true"
  4476. static="false" final="false" visibility="protected"
  4477. deprecated="not deprecated">
  4478. <exception name="IOException" type="java.io.IOException"/>
  4479. </method>
  4480. <method name="flushBuffer"
  4481. abstract="false" native="false" synchronized="true"
  4482. static="false" final="false" visibility="protected"
  4483. deprecated="not deprecated">
  4484. <param name="keep" type="boolean"/>
  4485. <exception name="IOException" type="java.io.IOException"/>
  4486. </method>
  4487. <doc>
  4488. <![CDATA[This is a generic output stream for generating checksums for
  4489. data before it is written to the underlying stream]]>
  4490. </doc>
  4491. </class>
  4492. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4493. <!-- start class org.apache.hadoop.fs.FsShell -->
  4494. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4495. abstract="false"
  4496. static="false" final="false" visibility="public"
  4497. deprecated="not deprecated">
  4498. <implements name="org.apache.hadoop.util.Tool"/>
  4499. <constructor name="FsShell"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. </constructor>
  4503. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4504. static="false" final="false" visibility="public"
  4505. deprecated="not deprecated">
  4506. </constructor>
  4507. <method name="init"
  4508. abstract="false" native="false" synchronized="false"
  4509. static="false" final="false" visibility="protected"
  4510. deprecated="not deprecated">
  4511. <exception name="IOException" type="java.io.IOException"/>
  4512. </method>
  4513. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4514. abstract="false" native="false" synchronized="false"
  4515. static="false" final="false" visibility="public"
  4516. deprecated="not deprecated">
  4517. <doc>
  4518. <![CDATA[Returns the Trash object associated with this shell.]]>
  4519. </doc>
  4520. </method>
  4521. <method name="byteDesc" return="java.lang.String"
  4522. abstract="false" native="false" synchronized="false"
  4523. static="true" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <param name="len" type="long"/>
  4526. <doc>
  4527. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  4528. </doc>
  4529. </method>
  4530. <method name="limitDecimalTo2" return="java.lang.String"
  4531. abstract="false" native="false" synchronized="true"
  4532. static="true" final="false" visibility="public"
  4533. deprecated="not deprecated">
  4534. <param name="d" type="double"/>
  4535. </method>
  4536. <method name="run" return="int"
  4537. abstract="false" native="false" synchronized="false"
  4538. static="false" final="false" visibility="public"
  4539. deprecated="not deprecated">
  4540. <param name="argv" type="java.lang.String[]"/>
  4541. <exception name="Exception" type="java.lang.Exception"/>
  4542. <doc>
  4543. <![CDATA[run]]>
  4544. </doc>
  4545. </method>
  4546. <method name="close"
  4547. abstract="false" native="false" synchronized="false"
  4548. static="false" final="false" visibility="public"
  4549. deprecated="not deprecated">
  4550. <exception name="IOException" type="java.io.IOException"/>
  4551. </method>
  4552. <method name="main"
  4553. abstract="false" native="false" synchronized="false"
  4554. static="true" final="false" visibility="public"
  4555. deprecated="not deprecated">
  4556. <param name="argv" type="java.lang.String[]"/>
  4557. <exception name="Exception" type="java.lang.Exception"/>
  4558. <doc>
  4559. <![CDATA[main() has some simple utility methods]]>
  4560. </doc>
  4561. </method>
  4562. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4563. transient="false" volatile="false"
  4564. static="false" final="false" visibility="protected"
  4565. deprecated="not deprecated">
  4566. </field>
  4567. <field name="dateForm" type="java.text.SimpleDateFormat"
  4568. transient="false" volatile="false"
  4569. static="true" final="true" visibility="public"
  4570. deprecated="not deprecated">
  4571. </field>
  4572. <field name="modifFmt" type="java.text.SimpleDateFormat"
  4573. transient="false" volatile="false"
  4574. static="true" final="true" visibility="protected"
  4575. deprecated="not deprecated">
  4576. </field>
  4577. <doc>
  4578. <![CDATA[Provide command line access to a FileSystem.]]>
  4579. </doc>
  4580. </class>
  4581. <!-- end class org.apache.hadoop.fs.FsShell -->
  4582. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4583. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  4584. abstract="false"
  4585. static="false" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. <implements name="java.net.URLStreamHandlerFactory"/>
  4588. <constructor name="FsUrlStreamHandlerFactory"
  4589. static="false" final="false" visibility="public"
  4590. deprecated="not deprecated">
  4591. </constructor>
  4592. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  4593. static="false" final="false" visibility="public"
  4594. deprecated="not deprecated">
  4595. </constructor>
  4596. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  4597. abstract="false" native="false" synchronized="false"
  4598. static="false" final="false" visibility="public"
  4599. deprecated="not deprecated">
  4600. <param name="protocol" type="java.lang.String"/>
  4601. </method>
  4602. <doc>
  4603. <![CDATA[Factory for URL stream handlers.
  4604. There is only one handler whose job is to create UrlConnections. A
  4605. FsUrlConnection relies on FileSystem to choose the appropriate FS
  4606. implementation.
  4607. Before returning our handler, we make sure that FileSystem knows an
  4608. implementation for the requested scheme/protocol.]]>
  4609. </doc>
  4610. </class>
  4611. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4612. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  4613. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4614. abstract="false"
  4615. static="false" final="false" visibility="public"
  4616. deprecated="not deprecated">
  4617. <constructor name="HarFileSystem"
  4618. static="false" final="false" visibility="public"
  4619. deprecated="not deprecated">
  4620. <doc>
  4621. <![CDATA[public construction of harfilesystem]]>
  4622. </doc>
  4623. </constructor>
  4624. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4625. static="false" final="false" visibility="public"
  4626. deprecated="not deprecated">
  4627. <doc>
  4628. <![CDATA[Constructor to create a HarFileSystem with an
  4629. underlying filesystem.
  4630. @param fs]]>
  4631. </doc>
  4632. </constructor>
  4633. <method name="initialize"
  4634. abstract="false" native="false" synchronized="false"
  4635. static="false" final="false" visibility="public"
  4636. deprecated="not deprecated">
  4637. <param name="name" type="java.net.URI"/>
  4638. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4639. <exception name="IOException" type="java.io.IOException"/>
  4640. <doc>
  4641. <![CDATA[Initialize a Har filesystem per har archive. The
  4642. archive home directory is the top level directory
  4643. in the filesystem that contains the HAR archive.
  4644. Be careful with this method, you do not want to go
  4645. on creating new Filesystem instances per call to
  4646. path.getFileSystem().
  4647. the uri of Har is
  4648. har://underlyingfsscheme-host:port/archivepath.
  4649. or
  4650. har:///archivepath. This assumes the underlying filesystem
  4651. to be used in case not specified.]]>
  4652. </doc>
  4653. </method>
  4654. <method name="getHarVersion" return="int"
  4655. abstract="false" native="false" synchronized="false"
  4656. static="false" final="false" visibility="public"
  4657. deprecated="not deprecated">
  4658. <exception name="IOException" type="java.io.IOException"/>
  4659. </method>
  4660. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4661. abstract="false" native="false" synchronized="false"
  4662. static="false" final="false" visibility="public"
  4663. deprecated="not deprecated">
  4664. <doc>
  4665. <![CDATA[return the top level archive.]]>
  4666. </doc>
  4667. </method>
  4668. <method name="getUri" return="java.net.URI"
  4669. abstract="false" native="false" synchronized="false"
  4670. static="false" final="false" visibility="public"
  4671. deprecated="not deprecated">
  4672. <doc>
  4673. <![CDATA[Returns the uri of this filesystem.
  4674. The uri is of the form
  4675. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  4676. </doc>
  4677. </method>
  4678. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4679. abstract="false" native="false" synchronized="false"
  4680. static="false" final="false" visibility="public"
  4681. deprecated="not deprecated">
  4682. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4683. </method>
  4684. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4685. abstract="false" native="false" synchronized="false"
  4686. static="false" final="false" visibility="public"
  4687. deprecated="not deprecated">
  4688. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4689. <param name="start" type="long"/>
  4690. <param name="len" type="long"/>
  4691. <exception name="IOException" type="java.io.IOException"/>
  4692. <doc>
  4693. <![CDATA[get block locations from the underlying fs
  4694. @param file the input filestatus to get block locations
  4695. @param start the start in the file
  4696. @param len the length in the file
  4697. @return block locations for this segment of file
  4698. @throws IOException]]>
  4699. </doc>
  4700. </method>
  4701. <method name="getHarHash" return="int"
  4702. abstract="false" native="false" synchronized="false"
  4703. static="true" final="false" visibility="public"
  4704. deprecated="not deprecated">
  4705. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4706. <doc>
  4707. <![CDATA[the hash of the path p inside iniside
  4708. the filesystem
  4709. @param p the path in the harfilesystem
  4710. @return the hash code of the path.]]>
  4711. </doc>
  4712. </method>
  4713. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4714. abstract="false" native="false" synchronized="false"
  4715. static="false" final="false" visibility="public"
  4716. deprecated="not deprecated">
  4717. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4718. <exception name="IOException" type="java.io.IOException"/>
  4719. <doc>
  4720. <![CDATA[return the filestatus of files in har archive.
  4721. The permission returned are that of the archive
  4722. index files. The permissions are not persisted
  4723. while creating a hadoop archive.
  4724. @param f the path in har filesystem
  4725. @return filestatus.
  4726. @throws IOException]]>
  4727. </doc>
  4728. </method>
  4729. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4730. abstract="false" native="false" synchronized="false"
  4731. static="false" final="false" visibility="public"
  4732. deprecated="not deprecated">
  4733. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4734. <param name="bufferSize" type="int"/>
  4735. <exception name="IOException" type="java.io.IOException"/>
  4736. <doc>
  4737. <![CDATA[Returns a har input stream which fakes end of
  4738. file. It reads the index files to get the part
  4739. file name and the size and start of the file.]]>
  4740. </doc>
  4741. </method>
  4742. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4743. abstract="false" native="false" synchronized="false"
  4744. static="false" final="false" visibility="public"
  4745. deprecated="not deprecated">
  4746. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4747. <param name="bufferSize" type="int"/>
  4748. <exception name="IOException" type="java.io.IOException"/>
  4749. </method>
  4750. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  4751. abstract="false" native="false" synchronized="false"
  4752. static="false" final="false" visibility="public"
  4753. deprecated="not deprecated">
  4754. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4755. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4756. <param name="overwrite" type="boolean"/>
  4757. <param name="bufferSize" type="int"/>
  4758. <param name="replication" type="short"/>
  4759. <param name="blockSize" type="long"/>
  4760. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  4761. <exception name="IOException" type="java.io.IOException"/>
  4762. </method>
  4763. <method name="close"
  4764. abstract="false" native="false" synchronized="false"
  4765. static="false" final="false" visibility="public"
  4766. deprecated="not deprecated">
  4767. <exception name="IOException" type="java.io.IOException"/>
  4768. </method>
  4769. <method name="setReplication" return="boolean"
  4770. abstract="false" native="false" synchronized="false"
  4771. static="false" final="false" visibility="public"
  4772. deprecated="not deprecated">
  4773. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4774. <param name="replication" type="short"/>
  4775. <exception name="IOException" type="java.io.IOException"/>
  4776. <doc>
  4777. <![CDATA[Not implemented.]]>
  4778. </doc>
  4779. </method>
  4780. <method name="delete" return="boolean"
  4781. abstract="false" native="false" synchronized="false"
  4782. static="false" final="false" visibility="public"
  4783. deprecated="not deprecated">
  4784. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4785. <param name="recursive" type="boolean"/>
  4786. <exception name="IOException" type="java.io.IOException"/>
  4787. <doc>
  4788. <![CDATA[Not implemented.]]>
  4789. </doc>
  4790. </method>
  4791. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4792. abstract="false" native="false" synchronized="false"
  4793. static="false" final="false" visibility="public"
  4794. deprecated="not deprecated">
  4795. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4796. <exception name="IOException" type="java.io.IOException"/>
  4797. <doc>
  4798. <![CDATA[liststatus returns the children of a directory
  4799. after looking up the index files.]]>
  4800. </doc>
  4801. </method>
  4802. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4803. abstract="false" native="false" synchronized="false"
  4804. static="false" final="false" visibility="public"
  4805. deprecated="not deprecated">
  4806. <doc>
  4807. <![CDATA[return the top level archive path.]]>
  4808. </doc>
  4809. </method>
  4810. <method name="setWorkingDirectory"
  4811. abstract="false" native="false" synchronized="false"
  4812. static="false" final="false" visibility="public"
  4813. deprecated="not deprecated">
  4814. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4815. </method>
  4816. <method name="mkdirs" return="boolean"
  4817. abstract="false" native="false" synchronized="false"
  4818. static="false" final="false" visibility="public"
  4819. deprecated="not deprecated">
  4820. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4821. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4822. <exception name="IOException" type="java.io.IOException"/>
  4823. <doc>
  4824. <![CDATA[not implemented.]]>
  4825. </doc>
  4826. </method>
  4827. <method name="copyFromLocalFile"
  4828. abstract="false" native="false" synchronized="false"
  4829. static="false" final="false" visibility="public"
  4830. deprecated="not deprecated">
  4831. <param name="delSrc" type="boolean"/>
  4832. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4833. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4834. <exception name="IOException" type="java.io.IOException"/>
  4835. <doc>
  4836. <![CDATA[not implemented.]]>
  4837. </doc>
  4838. </method>
  4839. <method name="copyToLocalFile"
  4840. abstract="false" native="false" synchronized="false"
  4841. static="false" final="false" visibility="public"
  4842. deprecated="not deprecated">
  4843. <param name="delSrc" type="boolean"/>
  4844. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4845. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4846. <exception name="IOException" type="java.io.IOException"/>
  4847. <doc>
  4848. <![CDATA[copies the file in the har filesystem to a local file.]]>
  4849. </doc>
  4850. </method>
  4851. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4852. abstract="false" native="false" synchronized="false"
  4853. static="false" final="false" visibility="public"
  4854. deprecated="not deprecated">
  4855. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4856. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4857. <exception name="IOException" type="java.io.IOException"/>
  4858. <doc>
  4859. <![CDATA[not implemented.]]>
  4860. </doc>
  4861. </method>
  4862. <method name="completeLocalOutput"
  4863. abstract="false" native="false" synchronized="false"
  4864. static="false" final="false" visibility="public"
  4865. deprecated="not deprecated">
  4866. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4867. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4868. <exception name="IOException" type="java.io.IOException"/>
  4869. <doc>
  4870. <![CDATA[not implemented.]]>
  4871. </doc>
  4872. </method>
  4873. <method name="setOwner"
  4874. abstract="false" native="false" synchronized="false"
  4875. static="false" final="false" visibility="public"
  4876. deprecated="not deprecated">
  4877. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4878. <param name="username" type="java.lang.String"/>
  4879. <param name="groupname" type="java.lang.String"/>
  4880. <exception name="IOException" type="java.io.IOException"/>
  4881. <doc>
  4882. <![CDATA[not implemented.]]>
  4883. </doc>
  4884. </method>
  4885. <method name="setPermission"
  4886. abstract="false" native="false" synchronized="false"
  4887. static="false" final="false" visibility="public"
  4888. deprecated="not deprecated">
  4889. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4890. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4891. <exception name="IOException" type="java.io.IOException"/>
  4892. <doc>
  4893. <![CDATA[Not implemented.]]>
  4894. </doc>
  4895. </method>
  4896. <field name="VERSION" type="int"
  4897. transient="false" volatile="false"
  4898. static="true" final="true" visibility="public"
  4899. deprecated="not deprecated">
  4900. </field>
  4901. <doc>
  4902. <![CDATA[This is an implementation of the Hadoop Archive
  4903. Filesystem. This archive Filesystem has index files
  4904. of the form _index* and has contents of the form
  4905. part-*. The index files store the indexes of the
  4906. real files. The index files are of the form _masterindex
  4907. and _index. The master index is a level of indirection
  4908. in to the index file to make the look ups faster. the index
  4909. file is sorted with hash code of the paths that it contains
  4910. and the master index contains pointers to the positions in
  4911. index for ranges of hashcodes.]]>
  4912. </doc>
  4913. </class>
  4914. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  4915. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  4916. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  4917. abstract="false"
  4918. static="false" final="false" visibility="public"
  4919. deprecated="not deprecated">
  4920. <constructor name="InMemoryFileSystem"
  4921. static="false" final="false" visibility="public"
  4922. deprecated="not deprecated">
  4923. </constructor>
  4924. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  4925. static="false" final="false" visibility="public"
  4926. deprecated="not deprecated">
  4927. </constructor>
  4928. <method name="reserveSpaceWithCheckSum" return="boolean"
  4929. abstract="false" native="false" synchronized="false"
  4930. static="false" final="false" visibility="public"
  4931. deprecated="not deprecated">
  4932. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4933. <param name="size" type="long"/>
  4934. <doc>
  4935. <![CDATA[Register a file with its size. This will also register a checksum for the
  4936. file that the user is trying to create. This is required since none of
  4937. the FileSystem APIs accept the size of the file as argument. But since it
  4938. is required for us to apriori know the size of the file we are going to
  4939. create, the user must call this method for each file he wants to create
  4940. and reserve memory for that file. We either succeed in reserving memory
  4941. for both the main file and the checksum file and return true, or return
  4942. false.]]>
  4943. </doc>
  4944. </method>
  4945. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  4946. abstract="false" native="false" synchronized="false"
  4947. static="false" final="false" visibility="public"
  4948. deprecated="not deprecated">
  4949. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4950. </method>
  4951. <method name="getNumFiles" return="int"
  4952. abstract="false" native="false" synchronized="false"
  4953. static="false" final="false" visibility="public"
  4954. deprecated="not deprecated">
  4955. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  4956. </method>
  4957. <method name="getFSSize" return="long"
  4958. abstract="false" native="false" synchronized="false"
  4959. static="false" final="false" visibility="public"
  4960. deprecated="not deprecated">
  4961. </method>
  4962. <method name="getPercentUsed" return="float"
  4963. abstract="false" native="false" synchronized="false"
  4964. static="false" final="false" visibility="public"
  4965. deprecated="not deprecated">
  4966. </method>
  4967. <doc>
  4968. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  4969. that the file lengths are known ahead of time and the total lengths of all
  4970. the files is below a certain number (like 100 MB, configurable). Use the API
  4971. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  4972. the API for reserving space in the FS. The uri of this filesystem starts with
  4973. ramfs:// .]]>
  4974. </doc>
  4975. </class>
  4976. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  4977. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  4978. <class name="LocalDirAllocator" extends="java.lang.Object"
  4979. abstract="false"
  4980. static="false" final="false" visibility="public"
  4981. deprecated="not deprecated">
  4982. <constructor name="LocalDirAllocator" type="java.lang.String"
  4983. static="false" final="false" visibility="public"
  4984. deprecated="not deprecated">
  4985. <doc>
  4986. <![CDATA[Create an allocator object
  4987. @param contextCfgItemName]]>
  4988. </doc>
  4989. </constructor>
  4990. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  4991. abstract="false" native="false" synchronized="false"
  4992. static="false" final="false" visibility="public"
  4993. deprecated="not deprecated">
  4994. <param name="pathStr" type="java.lang.String"/>
  4995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4996. <exception name="IOException" type="java.io.IOException"/>
  4997. <doc>
  4998. <![CDATA[Get a path from the local FS. This method should be used if the size of
  4999. the file is not known apriori. We go round-robin over the set of disks
  5000. (via the configured dirs) and return the first complete path where
  5001. we could create the parent directory of the passed path.
  5002. @param pathStr the requested path (this will be created on the first
  5003. available disk)
  5004. @param conf the Configuration object
  5005. @return the complete path to the file on a local disk
  5006. @throws IOException]]>
  5007. </doc>
  5008. </method>
  5009. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5010. abstract="false" native="false" synchronized="false"
  5011. static="false" final="false" visibility="public"
  5012. deprecated="not deprecated">
  5013. <param name="pathStr" type="java.lang.String"/>
  5014. <param name="size" type="long"/>
  5015. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5016. <exception name="IOException" type="java.io.IOException"/>
  5017. <doc>
  5018. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  5019. round-robin over the set of disks (via the configured dirs) and return
  5020. the first complete path which has enough space
  5021. @param pathStr the requested path (this will be created on the first
  5022. available disk)
  5023. @param size the size of the file that is going to be written
  5024. @param conf the Configuration object
  5025. @return the complete path to the file on a local disk
  5026. @throws IOException]]>
  5027. </doc>
  5028. </method>
  5029. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5030. abstract="false" native="false" synchronized="false"
  5031. static="false" final="false" visibility="public"
  5032. deprecated="not deprecated">
  5033. <param name="pathStr" type="java.lang.String"/>
  5034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5035. <exception name="IOException" type="java.io.IOException"/>
  5036. <doc>
  5037. <![CDATA[Get a path from the local FS for reading. We search through all the
  5038. configured dirs for the file's existence and return the complete
  5039. path to the file when we find one
  5040. @param pathStr the requested file (this will be searched)
  5041. @param conf the Configuration object
  5042. @return the complete path to the file on a local disk
  5043. @throws IOException]]>
  5044. </doc>
  5045. </method>
  5046. <method name="createTmpFileForWrite" return="java.io.File"
  5047. abstract="false" native="false" synchronized="false"
  5048. static="false" final="false" visibility="public"
  5049. deprecated="not deprecated">
  5050. <param name="pathStr" type="java.lang.String"/>
  5051. <param name="size" type="long"/>
  5052. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5053. <exception name="IOException" type="java.io.IOException"/>
  5054. <doc>
  5055. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5056. apriori. We round-robin over the set of disks (via the configured dirs)
  5057. and select the first complete path which has enough space. A file is
  5058. created on this directory. The file is guaranteed to go away when the
  5059. JVM exits.
  5060. @param pathStr prefix for the temporary file
  5061. @param size the size of the file that is going to be written
  5062. @param conf the Configuration object
  5063. @return a unique temporary file
  5064. @throws IOException]]>
  5065. </doc>
  5066. </method>
  5067. <method name="isContextValid" return="boolean"
  5068. abstract="false" native="false" synchronized="false"
  5069. static="true" final="false" visibility="public"
  5070. deprecated="not deprecated">
  5071. <param name="contextCfgItemName" type="java.lang.String"/>
  5072. <doc>
  5073. <![CDATA[Method to check whether a context is valid
  5074. @param contextCfgItemName
  5075. @return true/false]]>
  5076. </doc>
  5077. </method>
  5078. <method name="ifExists" return="boolean"
  5079. abstract="false" native="false" synchronized="false"
  5080. static="false" final="false" visibility="public"
  5081. deprecated="not deprecated">
  5082. <param name="pathStr" type="java.lang.String"/>
  5083. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5084. <doc>
  5085. <![CDATA[We search through all the configured dirs for the file's existence
  5086. and return true when we find
  5087. @param pathStr the requested file (this will be searched)
  5088. @param conf the Configuration object
  5089. @return true if files exist. false otherwise
  5090. @throws IOException]]>
  5091. </doc>
  5092. </method>
  5093. <doc>
  5094. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5095. files. The way it works is that it is kept track what disk was last
  5096. allocated for a file write. For the current request, the next disk from
  5097. the set of disks would be allocated if the free space on the disk is
  5098. sufficient enough to accomodate the file that is being considered for
  5099. creation. If the space requirements cannot be met, the next disk in order
  5100. would be tried and so on till a disk is found with sufficient capacity.
  5101. Once a disk with sufficient space is identified, a check is done to make
  5102. sure that the disk is writable. Also, there is an API provided that doesn't
  5103. take the space requirements into consideration but just checks whether the
  5104. disk under consideration is writable (this should be used for cases where
  5105. the file size is not known apriori). An API is provided to read a path that
  5106. was created earlier. That API works by doing a scan of all the disks for the
  5107. input pathname.
  5108. This implementation also provides the functionality of having multiple
  5109. allocators per JVM (one for each unique functionality or context, like
  5110. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5111. an allocator per context per JVM.
  5112. Note:
  5113. 1. The contexts referred above are actually the configuration items defined
  5114. in the Configuration class like "mapred.local.dir" (for which we want to
  5115. control the dir allocations). The context-strings are exactly those
  5116. configuration items.
  5117. 2. This implementation does not take into consideration cases where
  5118. a disk becomes read-only or goes out of space while a file is being written
  5119. to (disks are shared between multiple processes, and so the latter situation
  5120. is probable).
  5121. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5122. actually points to the configured directory on the Disk which will be the
  5123. parent for all file write/read allocations.]]>
  5124. </doc>
  5125. </class>
  5126. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5127. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5128. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5129. abstract="false"
  5130. static="false" final="false" visibility="public"
  5131. deprecated="not deprecated">
  5132. <constructor name="LocalFileSystem"
  5133. static="false" final="false" visibility="public"
  5134. deprecated="not deprecated">
  5135. </constructor>
  5136. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5137. static="false" final="false" visibility="public"
  5138. deprecated="not deprecated">
  5139. </constructor>
  5140. <method name="pathToFile" return="java.io.File"
  5141. abstract="false" native="false" synchronized="false"
  5142. static="false" final="false" visibility="public"
  5143. deprecated="not deprecated">
  5144. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5145. <doc>
  5146. <![CDATA[Convert a path to a File.]]>
  5147. </doc>
  5148. </method>
  5149. <method name="copyFromLocalFile"
  5150. abstract="false" native="false" synchronized="false"
  5151. static="false" final="false" visibility="public"
  5152. deprecated="not deprecated">
  5153. <param name="delSrc" type="boolean"/>
  5154. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5155. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5156. <exception name="IOException" type="java.io.IOException"/>
  5157. </method>
  5158. <method name="copyToLocalFile"
  5159. abstract="false" native="false" synchronized="false"
  5160. static="false" final="false" visibility="public"
  5161. deprecated="not deprecated">
  5162. <param name="delSrc" type="boolean"/>
  5163. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5164. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5165. <exception name="IOException" type="java.io.IOException"/>
  5166. </method>
  5167. <method name="reportChecksumFailure" return="boolean"
  5168. abstract="false" native="false" synchronized="false"
  5169. static="false" final="false" visibility="public"
  5170. deprecated="not deprecated">
  5171. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5172. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5173. <param name="inPos" type="long"/>
  5174. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5175. <param name="sumsPos" type="long"/>
  5176. <doc>
  5177. <![CDATA[Moves files to a bad file directory on the same device, so that their
  5178. storage will not be reused.]]>
  5179. </doc>
  5180. </method>
  5181. <doc>
  5182. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  5183. </doc>
  5184. </class>
  5185. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  5186. <!-- start class org.apache.hadoop.fs.Path -->
  5187. <class name="Path" extends="java.lang.Object"
  5188. abstract="false"
  5189. static="false" final="false" visibility="public"
  5190. deprecated="not deprecated">
  5191. <implements name="java.lang.Comparable"/>
  5192. <constructor name="Path" type="java.lang.String, java.lang.String"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. <doc>
  5196. <![CDATA[Resolve a child path against a parent path.]]>
  5197. </doc>
  5198. </constructor>
  5199. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  5200. static="false" final="false" visibility="public"
  5201. deprecated="not deprecated">
  5202. <doc>
  5203. <![CDATA[Resolve a child path against a parent path.]]>
  5204. </doc>
  5205. </constructor>
  5206. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  5207. static="false" final="false" visibility="public"
  5208. deprecated="not deprecated">
  5209. <doc>
  5210. <![CDATA[Resolve a child path against a parent path.]]>
  5211. </doc>
  5212. </constructor>
  5213. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  5214. static="false" final="false" visibility="public"
  5215. deprecated="not deprecated">
  5216. <doc>
  5217. <![CDATA[Resolve a child path against a parent path.]]>
  5218. </doc>
  5219. </constructor>
  5220. <constructor name="Path" type="java.lang.String"
  5221. static="false" final="false" visibility="public"
  5222. deprecated="not deprecated">
  5223. <doc>
  5224. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  5225. unescaped elements and some additional normalization.]]>
  5226. </doc>
  5227. </constructor>
  5228. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  5229. static="false" final="false" visibility="public"
  5230. deprecated="not deprecated">
  5231. <doc>
  5232. <![CDATA[Construct a Path from components.]]>
  5233. </doc>
  5234. </constructor>
  5235. <method name="toUri" return="java.net.URI"
  5236. abstract="false" native="false" synchronized="false"
  5237. static="false" final="false" visibility="public"
  5238. deprecated="not deprecated">
  5239. <doc>
  5240. <![CDATA[Convert this to a URI.]]>
  5241. </doc>
  5242. </method>
  5243. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  5244. abstract="false" native="false" synchronized="false"
  5245. static="false" final="false" visibility="public"
  5246. deprecated="not deprecated">
  5247. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5248. <exception name="IOException" type="java.io.IOException"/>
  5249. <doc>
  5250. <![CDATA[Return the FileSystem that owns this Path.]]>
  5251. </doc>
  5252. </method>
  5253. <method name="isAbsolute" return="boolean"
  5254. abstract="false" native="false" synchronized="false"
  5255. static="false" final="false" visibility="public"
  5256. deprecated="not deprecated">
  5257. <doc>
  5258. <![CDATA[True if the directory of this path is absolute.]]>
  5259. </doc>
  5260. </method>
  5261. <method name="getName" return="java.lang.String"
  5262. abstract="false" native="false" synchronized="false"
  5263. static="false" final="false" visibility="public"
  5264. deprecated="not deprecated">
  5265. <doc>
  5266. <![CDATA[Returns the final component of this path.]]>
  5267. </doc>
  5268. </method>
  5269. <method name="getParent" return="org.apache.hadoop.fs.Path"
  5270. abstract="false" native="false" synchronized="false"
  5271. static="false" final="false" visibility="public"
  5272. deprecated="not deprecated">
  5273. <doc>
  5274. <![CDATA[Returns the parent of a path or null if at root.]]>
  5275. </doc>
  5276. </method>
  5277. <method name="suffix" return="org.apache.hadoop.fs.Path"
  5278. abstract="false" native="false" synchronized="false"
  5279. static="false" final="false" visibility="public"
  5280. deprecated="not deprecated">
  5281. <param name="suffix" type="java.lang.String"/>
  5282. <doc>
  5283. <![CDATA[Adds a suffix to the final name in the path.]]>
  5284. </doc>
  5285. </method>
  5286. <method name="toString" return="java.lang.String"
  5287. abstract="false" native="false" synchronized="false"
  5288. static="false" final="false" visibility="public"
  5289. deprecated="not deprecated">
  5290. </method>
  5291. <method name="equals" return="boolean"
  5292. abstract="false" native="false" synchronized="false"
  5293. static="false" final="false" visibility="public"
  5294. deprecated="not deprecated">
  5295. <param name="o" type="java.lang.Object"/>
  5296. </method>
  5297. <method name="hashCode" return="int"
  5298. abstract="false" native="false" synchronized="false"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. </method>
  5302. <method name="compareTo" return="int"
  5303. abstract="false" native="false" synchronized="false"
  5304. static="false" final="false" visibility="public"
  5305. deprecated="not deprecated">
  5306. <param name="o" type="java.lang.Object"/>
  5307. </method>
  5308. <method name="depth" return="int"
  5309. abstract="false" native="false" synchronized="false"
  5310. static="false" final="false" visibility="public"
  5311. deprecated="not deprecated">
  5312. <doc>
  5313. <![CDATA[Return the number of elements in this path.]]>
  5314. </doc>
  5315. </method>
  5316. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5317. abstract="false" native="false" synchronized="false"
  5318. static="false" final="false" visibility="public"
  5319. deprecated="not deprecated">
  5320. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5321. <doc>
  5322. <![CDATA[Returns a qualified path object.]]>
  5323. </doc>
  5324. </method>
  5325. <field name="SEPARATOR" type="java.lang.String"
  5326. transient="false" volatile="false"
  5327. static="true" final="true" visibility="public"
  5328. deprecated="not deprecated">
  5329. <doc>
  5330. <![CDATA[The directory separator, a slash.]]>
  5331. </doc>
  5332. </field>
  5333. <field name="SEPARATOR_CHAR" type="char"
  5334. transient="false" volatile="false"
  5335. static="true" final="true" visibility="public"
  5336. deprecated="not deprecated">
  5337. </field>
  5338. <field name="CUR_DIR" type="java.lang.String"
  5339. transient="false" volatile="false"
  5340. static="true" final="true" visibility="public"
  5341. deprecated="not deprecated">
  5342. </field>
  5343. <doc>
  5344. <![CDATA[Names a file or directory in a {@link FileSystem}.
  5345. Path strings use slash as the directory separator. A path string is
  5346. absolute if it begins with a slash.]]>
  5347. </doc>
  5348. </class>
  5349. <!-- end class org.apache.hadoop.fs.Path -->
  5350. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  5351. <interface name="PathFilter" abstract="true"
  5352. static="false" final="false" visibility="public"
  5353. deprecated="not deprecated">
  5354. <method name="accept" return="boolean"
  5355. abstract="false" native="false" synchronized="false"
  5356. static="false" final="false" visibility="public"
  5357. deprecated="not deprecated">
  5358. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5359. <doc>
  5360. <![CDATA[Tests whether or not the specified abstract pathname should be
  5361. included in a pathname list.
  5362. @param path The abstract pathname to be tested
  5363. @return <code>true</code> if and only if <code>pathname</code>
  5364. should be included]]>
  5365. </doc>
  5366. </method>
  5367. </interface>
  5368. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  5369. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  5370. <interface name="PositionedReadable" abstract="true"
  5371. static="false" final="false" visibility="public"
  5372. deprecated="not deprecated">
  5373. <method name="read" return="int"
  5374. abstract="false" native="false" synchronized="false"
  5375. static="false" final="false" visibility="public"
  5376. deprecated="not deprecated">
  5377. <param name="position" type="long"/>
  5378. <param name="buffer" type="byte[]"/>
  5379. <param name="offset" type="int"/>
  5380. <param name="length" type="int"/>
  5381. <exception name="IOException" type="java.io.IOException"/>
  5382. <doc>
  5383. <![CDATA[Read upto the specified number of bytes, from a given
  5384. position within a file, and return the number of bytes read. This does not
  5385. change the current offset of a file, and is thread-safe.]]>
  5386. </doc>
  5387. </method>
  5388. <method name="readFully"
  5389. abstract="false" native="false" synchronized="false"
  5390. static="false" final="false" visibility="public"
  5391. deprecated="not deprecated">
  5392. <param name="position" type="long"/>
  5393. <param name="buffer" type="byte[]"/>
  5394. <param name="offset" type="int"/>
  5395. <param name="length" type="int"/>
  5396. <exception name="IOException" type="java.io.IOException"/>
  5397. <doc>
  5398. <![CDATA[Read the specified number of bytes, from a given
  5399. position within a file. This does not
  5400. change the current offset of a file, and is thread-safe.]]>
  5401. </doc>
  5402. </method>
  5403. <method name="readFully"
  5404. abstract="false" native="false" synchronized="false"
  5405. static="false" final="false" visibility="public"
  5406. deprecated="not deprecated">
  5407. <param name="position" type="long"/>
  5408. <param name="buffer" type="byte[]"/>
  5409. <exception name="IOException" type="java.io.IOException"/>
  5410. <doc>
  5411. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  5412. position within a file. This does not
  5413. change the current offset of a file, and is thread-safe.]]>
  5414. </doc>
  5415. </method>
  5416. <doc>
  5417. <![CDATA[Stream that permits positional reading.]]>
  5418. </doc>
  5419. </interface>
  5420. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  5421. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  5422. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5423. abstract="false"
  5424. static="false" final="false" visibility="public"
  5425. deprecated="not deprecated">
  5426. <constructor name="RawLocalFileSystem"
  5427. static="false" final="false" visibility="public"
  5428. deprecated="not deprecated">
  5429. </constructor>
  5430. <method name="pathToFile" return="java.io.File"
  5431. abstract="false" native="false" synchronized="false"
  5432. static="false" final="false" visibility="public"
  5433. deprecated="not deprecated">
  5434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5435. <doc>
  5436. <![CDATA[Convert a path to a File.]]>
  5437. </doc>
  5438. </method>
  5439. <method name="getName" return="java.lang.String"
  5440. abstract="false" native="false" synchronized="false"
  5441. static="false" final="false" visibility="public"
  5442. deprecated="deprecated, no comment">
  5443. <doc>
  5444. <![CDATA[@deprecated]]>
  5445. </doc>
  5446. </method>
  5447. <method name="getUri" return="java.net.URI"
  5448. abstract="false" native="false" synchronized="false"
  5449. static="false" final="false" visibility="public"
  5450. deprecated="not deprecated">
  5451. </method>
  5452. <method name="initialize"
  5453. abstract="false" native="false" synchronized="false"
  5454. static="false" final="false" visibility="public"
  5455. deprecated="not deprecated">
  5456. <param name="uri" type="java.net.URI"/>
  5457. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5458. </method>
  5459. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5460. abstract="false" native="false" synchronized="false"
  5461. static="false" final="false" visibility="public"
  5462. deprecated="not deprecated">
  5463. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5464. <param name="bufferSize" type="int"/>
  5465. <exception name="IOException" type="java.io.IOException"/>
  5466. </method>
  5467. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5468. abstract="false" native="false" synchronized="false"
  5469. static="false" final="false" visibility="public"
  5470. deprecated="not deprecated">
  5471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5472. <param name="bufferSize" type="int"/>
  5473. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5474. <exception name="IOException" type="java.io.IOException"/>
  5475. <doc>
  5476. <![CDATA[{@inheritDoc}]]>
  5477. </doc>
  5478. </method>
  5479. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5480. abstract="false" native="false" synchronized="false"
  5481. static="false" final="false" visibility="public"
  5482. deprecated="not deprecated">
  5483. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5484. <param name="overwrite" type="boolean"/>
  5485. <param name="bufferSize" type="int"/>
  5486. <param name="replication" type="short"/>
  5487. <param name="blockSize" type="long"/>
  5488. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5489. <exception name="IOException" type="java.io.IOException"/>
  5490. <doc>
  5491. <![CDATA[{@inheritDoc}]]>
  5492. </doc>
  5493. </method>
  5494. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5495. abstract="false" native="false" synchronized="false"
  5496. static="false" final="false" visibility="public"
  5497. deprecated="not deprecated">
  5498. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5499. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5500. <param name="overwrite" type="boolean"/>
  5501. <param name="bufferSize" type="int"/>
  5502. <param name="replication" type="short"/>
  5503. <param name="blockSize" type="long"/>
  5504. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5505. <exception name="IOException" type="java.io.IOException"/>
  5506. <doc>
  5507. <![CDATA[{@inheritDoc}]]>
  5508. </doc>
  5509. </method>
  5510. <method name="rename" return="boolean"
  5511. abstract="false" native="false" synchronized="false"
  5512. static="false" final="false" visibility="public"
  5513. deprecated="not deprecated">
  5514. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5515. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5516. <exception name="IOException" type="java.io.IOException"/>
  5517. </method>
  5518. <method name="delete" return="boolean"
  5519. abstract="false" native="false" synchronized="false"
  5520. static="false" final="false" visibility="public"
  5521. deprecated="not deprecated">
  5522. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5523. <exception name="IOException" type="java.io.IOException"/>
  5524. </method>
  5525. <method name="delete" return="boolean"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="not deprecated">
  5529. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5530. <param name="recursive" type="boolean"/>
  5531. <exception name="IOException" type="java.io.IOException"/>
  5532. </method>
  5533. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5534. abstract="false" native="false" synchronized="false"
  5535. static="false" final="false" visibility="public"
  5536. deprecated="not deprecated">
  5537. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5538. <exception name="IOException" type="java.io.IOException"/>
  5539. </method>
  5540. <method name="mkdirs" return="boolean"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5545. <exception name="IOException" type="java.io.IOException"/>
  5546. <doc>
  5547. <![CDATA[Creates the specified directory hierarchy. Does not
  5548. treat existence as an error.]]>
  5549. </doc>
  5550. </method>
  5551. <method name="mkdirs" return="boolean"
  5552. abstract="false" native="false" synchronized="false"
  5553. static="false" final="false" visibility="public"
  5554. deprecated="not deprecated">
  5555. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5556. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5557. <exception name="IOException" type="java.io.IOException"/>
  5558. <doc>
  5559. <![CDATA[{@inheritDoc}]]>
  5560. </doc>
  5561. </method>
  5562. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5563. abstract="false" native="false" synchronized="false"
  5564. static="false" final="false" visibility="public"
  5565. deprecated="not deprecated">
  5566. </method>
  5567. <method name="setWorkingDirectory"
  5568. abstract="false" native="false" synchronized="false"
  5569. static="false" final="false" visibility="public"
  5570. deprecated="not deprecated">
  5571. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5572. <doc>
  5573. <![CDATA[Set the working directory to the given directory.]]>
  5574. </doc>
  5575. </method>
  5576. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5577. abstract="false" native="false" synchronized="false"
  5578. static="false" final="false" visibility="public"
  5579. deprecated="not deprecated">
  5580. </method>
  5581. <method name="lock"
  5582. abstract="false" native="false" synchronized="false"
  5583. static="false" final="false" visibility="public"
  5584. deprecated="deprecated, no comment">
  5585. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5586. <param name="shared" type="boolean"/>
  5587. <exception name="IOException" type="java.io.IOException"/>
  5588. <doc>
  5589. <![CDATA[@deprecated]]>
  5590. </doc>
  5591. </method>
  5592. <method name="release"
  5593. abstract="false" native="false" synchronized="false"
  5594. static="false" final="false" visibility="public"
  5595. deprecated="deprecated, no comment">
  5596. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5597. <exception name="IOException" type="java.io.IOException"/>
  5598. <doc>
  5599. <![CDATA[@deprecated]]>
  5600. </doc>
  5601. </method>
  5602. <method name="moveFromLocalFile"
  5603. abstract="false" native="false" synchronized="false"
  5604. static="false" final="false" visibility="public"
  5605. deprecated="not deprecated">
  5606. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5607. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5608. <exception name="IOException" type="java.io.IOException"/>
  5609. </method>
  5610. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5611. abstract="false" native="false" synchronized="false"
  5612. static="false" final="false" visibility="public"
  5613. deprecated="not deprecated">
  5614. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5615. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5616. <exception name="IOException" type="java.io.IOException"/>
  5617. </method>
  5618. <method name="completeLocalOutput"
  5619. abstract="false" native="false" synchronized="false"
  5620. static="false" final="false" visibility="public"
  5621. deprecated="not deprecated">
  5622. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  5623. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5624. <exception name="IOException" type="java.io.IOException"/>
  5625. </method>
  5626. <method name="close"
  5627. abstract="false" native="false" synchronized="false"
  5628. static="false" final="false" visibility="public"
  5629. deprecated="not deprecated">
  5630. <exception name="IOException" type="java.io.IOException"/>
  5631. </method>
  5632. <method name="toString" return="java.lang.String"
  5633. abstract="false" native="false" synchronized="false"
  5634. static="false" final="false" visibility="public"
  5635. deprecated="not deprecated">
  5636. </method>
  5637. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5638. abstract="false" native="false" synchronized="false"
  5639. static="false" final="false" visibility="public"
  5640. deprecated="not deprecated">
  5641. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5642. <exception name="IOException" type="java.io.IOException"/>
  5643. </method>
  5644. <method name="setOwner"
  5645. abstract="false" native="false" synchronized="false"
  5646. static="false" final="false" visibility="public"
  5647. deprecated="not deprecated">
  5648. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5649. <param name="username" type="java.lang.String"/>
  5650. <param name="groupname" type="java.lang.String"/>
  5651. <exception name="IOException" type="java.io.IOException"/>
  5652. <doc>
  5653. <![CDATA[Use the command chown to set owner.]]>
  5654. </doc>
  5655. </method>
  5656. <method name="setPermission"
  5657. abstract="false" native="false" synchronized="false"
  5658. static="false" final="false" visibility="public"
  5659. deprecated="not deprecated">
  5660. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5661. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5662. <exception name="IOException" type="java.io.IOException"/>
  5663. <doc>
  5664. <![CDATA[Use the command chmod to set permission.]]>
  5665. </doc>
  5666. </method>
  5667. <doc>
  5668. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  5669. </doc>
  5670. </class>
  5671. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  5672. <!-- start interface org.apache.hadoop.fs.Seekable -->
  5673. <interface name="Seekable" abstract="true"
  5674. static="false" final="false" visibility="public"
  5675. deprecated="not deprecated">
  5676. <method name="seek"
  5677. abstract="false" native="false" synchronized="false"
  5678. static="false" final="false" visibility="public"
  5679. deprecated="not deprecated">
  5680. <param name="pos" type="long"/>
  5681. <exception name="IOException" type="java.io.IOException"/>
  5682. <doc>
  5683. <![CDATA[Seek to the given offset from the start of the file.
  5684. The next read() will be from that location. Can't
  5685. seek past the end of the file.]]>
  5686. </doc>
  5687. </method>
  5688. <method name="getPos" return="long"
  5689. abstract="false" native="false" synchronized="false"
  5690. static="false" final="false" visibility="public"
  5691. deprecated="not deprecated">
  5692. <exception name="IOException" type="java.io.IOException"/>
  5693. <doc>
  5694. <![CDATA[Return the current offset from the start of the file]]>
  5695. </doc>
  5696. </method>
  5697. <method name="seekToNewSource" return="boolean"
  5698. abstract="false" native="false" synchronized="false"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. <param name="targetPos" type="long"/>
  5702. <exception name="IOException" type="java.io.IOException"/>
  5703. <doc>
  5704. <![CDATA[Seeks a different copy of the data. Returns true if
  5705. found a new source, false otherwise.]]>
  5706. </doc>
  5707. </method>
  5708. <doc>
  5709. <![CDATA[Stream that permits seeking.]]>
  5710. </doc>
  5711. </interface>
  5712. <!-- end interface org.apache.hadoop.fs.Seekable -->
  5713. <!-- start class org.apache.hadoop.fs.ShellCommand -->
  5714. <class name="ShellCommand" extends="org.apache.hadoop.util.Shell"
  5715. abstract="true"
  5716. static="false" final="false" visibility="public"
  5717. deprecated="Use {@link Shell} instead.">
  5718. <constructor name="ShellCommand"
  5719. static="false" final="false" visibility="public"
  5720. deprecated="not deprecated">
  5721. </constructor>
  5722. <doc>
  5723. <![CDATA[A base class for running a unix command like du or df.
  5724. @deprecated Use {@link Shell} instead.]]>
  5725. </doc>
  5726. </class>
  5727. <!-- end class org.apache.hadoop.fs.ShellCommand -->
  5728. <!-- start interface org.apache.hadoop.fs.Syncable -->
  5729. <interface name="Syncable" abstract="true"
  5730. static="false" final="false" visibility="public"
  5731. deprecated="not deprecated">
  5732. <method name="sync"
  5733. abstract="false" native="false" synchronized="false"
  5734. static="false" final="false" visibility="public"
  5735. deprecated="not deprecated">
  5736. <exception name="IOException" type="java.io.IOException"/>
  5737. <doc>
  5738. <![CDATA[Synchronize all buffer with the underlying devices.
  5739. @throws IOException]]>
  5740. </doc>
  5741. </method>
  5742. <doc>
  5743. <![CDATA[This interface declare the sync() operation.]]>
  5744. </doc>
  5745. </interface>
  5746. <!-- end interface org.apache.hadoop.fs.Syncable -->
  5747. <!-- start class org.apache.hadoop.fs.Trash -->
  5748. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  5749. abstract="false"
  5750. static="false" final="false" visibility="public"
  5751. deprecated="not deprecated">
  5752. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  5753. static="false" final="false" visibility="public"
  5754. deprecated="not deprecated">
  5755. <exception name="IOException" type="java.io.IOException"/>
  5756. <doc>
  5757. <![CDATA[Construct a trash can accessor.
  5758. @param conf a Configuration]]>
  5759. </doc>
  5760. </constructor>
  5761. <method name="moveToTrash" return="boolean"
  5762. abstract="false" native="false" synchronized="false"
  5763. static="false" final="false" visibility="public"
  5764. deprecated="not deprecated">
  5765. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5766. <exception name="IOException" type="java.io.IOException"/>
  5767. <doc>
  5768. <![CDATA[Move a file or directory to the current trash directory.
  5769. @return false if the item is already in the trash or trash is disabled]]>
  5770. </doc>
  5771. </method>
  5772. <method name="checkpoint"
  5773. abstract="false" native="false" synchronized="false"
  5774. static="false" final="false" visibility="public"
  5775. deprecated="not deprecated">
  5776. <exception name="IOException" type="java.io.IOException"/>
  5777. <doc>
  5778. <![CDATA[Create a trash checkpoint.]]>
  5779. </doc>
  5780. </method>
  5781. <method name="expunge"
  5782. abstract="false" native="false" synchronized="false"
  5783. static="false" final="false" visibility="public"
  5784. deprecated="not deprecated">
  5785. <exception name="IOException" type="java.io.IOException"/>
  5786. <doc>
  5787. <![CDATA[Delete old checkpoints.]]>
  5788. </doc>
  5789. </method>
  5790. <method name="getEmptier" return="java.lang.Runnable"
  5791. abstract="false" native="false" synchronized="false"
  5792. static="false" final="false" visibility="public"
  5793. deprecated="not deprecated">
  5794. <exception name="IOException" type="java.io.IOException"/>
  5795. <doc>
  5796. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  5797. users, intended to be run by the superuser. Only one checkpoint is kept
  5798. at a time.]]>
  5799. </doc>
  5800. </method>
  5801. <method name="main"
  5802. abstract="false" native="false" synchronized="false"
  5803. static="true" final="false" visibility="public"
  5804. deprecated="not deprecated">
  5805. <param name="args" type="java.lang.String[]"/>
  5806. <exception name="Exception" type="java.lang.Exception"/>
  5807. <doc>
  5808. <![CDATA[Run an emptier.]]>
  5809. </doc>
  5810. </method>
  5811. <doc>
  5812. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  5813. directory, a subdirectory of their home directory named ".Trash". Files are
  5814. initially moved to a <i>current</i> sub-directory of the trash directory.
  5815. Within that sub-directory their original path is preserved. Periodically
  5816. one may checkpoint the current trash and remove older checkpoints. (This
  5817. design permits trash management without enumeration of the full trash
  5818. content, without date support in the filesystem, and without clock
  5819. synchronization.)]]>
  5820. </doc>
  5821. </class>
  5822. <!-- end class org.apache.hadoop.fs.Trash -->
  5823. </package>
  5824. <package name="org.apache.hadoop.fs.ftp">
  5825. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  5826. <class name="FTPException" extends="java.lang.RuntimeException"
  5827. abstract="false"
  5828. static="false" final="false" visibility="public"
  5829. deprecated="not deprecated">
  5830. <constructor name="FTPException" type="java.lang.String"
  5831. static="false" final="false" visibility="public"
  5832. deprecated="not deprecated">
  5833. </constructor>
  5834. <constructor name="FTPException" type="java.lang.Throwable"
  5835. static="false" final="false" visibility="public"
  5836. deprecated="not deprecated">
  5837. </constructor>
  5838. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  5839. static="false" final="false" visibility="public"
  5840. deprecated="not deprecated">
  5841. </constructor>
  5842. <doc>
  5843. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  5844. </doc>
  5845. </class>
  5846. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  5847. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  5848. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5849. abstract="false"
  5850. static="false" final="false" visibility="public"
  5851. deprecated="not deprecated">
  5852. <constructor name="FTPFileSystem"
  5853. static="false" final="false" visibility="public"
  5854. deprecated="not deprecated">
  5855. </constructor>
  5856. <method name="initialize"
  5857. abstract="false" native="false" synchronized="false"
  5858. static="false" final="false" visibility="public"
  5859. deprecated="not deprecated">
  5860. <param name="uri" type="java.net.URI"/>
  5861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5862. <exception name="IOException" type="java.io.IOException"/>
  5863. </method>
  5864. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5865. abstract="false" native="false" synchronized="false"
  5866. static="false" final="false" visibility="public"
  5867. deprecated="not deprecated">
  5868. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5869. <param name="bufferSize" type="int"/>
  5870. <exception name="IOException" type="java.io.IOException"/>
  5871. </method>
  5872. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5873. abstract="false" native="false" synchronized="false"
  5874. static="false" final="false" visibility="public"
  5875. deprecated="not deprecated">
  5876. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5877. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5878. <param name="overwrite" type="boolean"/>
  5879. <param name="bufferSize" type="int"/>
  5880. <param name="replication" type="short"/>
  5881. <param name="blockSize" type="long"/>
  5882. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5883. <exception name="IOException" type="java.io.IOException"/>
  5884. <doc>
  5885. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  5886. this class or else the invocation will block.]]>
  5887. </doc>
  5888. </method>
  5889. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5890. abstract="false" native="false" synchronized="false"
  5891. static="false" final="false" visibility="public"
  5892. deprecated="not deprecated">
  5893. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5894. <param name="bufferSize" type="int"/>
  5895. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5896. <exception name="IOException" type="java.io.IOException"/>
  5897. <doc>
  5898. <![CDATA[This optional operation is not yet supported.]]>
  5899. </doc>
  5900. </method>
  5901. <method name="delete" return="boolean"
  5902. abstract="false" native="false" synchronized="false"
  5903. static="false" final="false" visibility="public"
  5904. deprecated="Use delete(Path, boolean) instead">
  5905. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5906. <exception name="IOException" type="java.io.IOException"/>
  5907. <doc>
  5908. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  5909. </doc>
  5910. </method>
  5911. <method name="delete" return="boolean"
  5912. abstract="false" native="false" synchronized="false"
  5913. static="false" final="false" visibility="public"
  5914. deprecated="not deprecated">
  5915. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5916. <param name="recursive" type="boolean"/>
  5917. <exception name="IOException" type="java.io.IOException"/>
  5918. </method>
  5919. <method name="getUri" return="java.net.URI"
  5920. abstract="false" native="false" synchronized="false"
  5921. static="false" final="false" visibility="public"
  5922. deprecated="not deprecated">
  5923. </method>
  5924. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5925. abstract="false" native="false" synchronized="false"
  5926. static="false" final="false" visibility="public"
  5927. deprecated="not deprecated">
  5928. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5929. <exception name="IOException" type="java.io.IOException"/>
  5930. </method>
  5931. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  5932. abstract="false" native="false" synchronized="false"
  5933. static="false" final="false" visibility="public"
  5934. deprecated="not deprecated">
  5935. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5936. <exception name="IOException" type="java.io.IOException"/>
  5937. </method>
  5938. <method name="mkdirs" return="boolean"
  5939. abstract="false" native="false" synchronized="false"
  5940. static="false" final="false" visibility="public"
  5941. deprecated="not deprecated">
  5942. <param name="file" type="org.apache.hadoop.fs.Path"/>
  5943. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5944. <exception name="IOException" type="java.io.IOException"/>
  5945. </method>
  5946. <method name="rename" return="boolean"
  5947. abstract="false" native="false" synchronized="false"
  5948. static="false" final="false" visibility="public"
  5949. deprecated="not deprecated">
  5950. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5951. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5952. <exception name="IOException" type="java.io.IOException"/>
  5953. </method>
  5954. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5955. abstract="false" native="false" synchronized="false"
  5956. static="false" final="false" visibility="public"
  5957. deprecated="not deprecated">
  5958. </method>
  5959. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5960. abstract="false" native="false" synchronized="false"
  5961. static="false" final="false" visibility="public"
  5962. deprecated="not deprecated">
  5963. </method>
  5964. <method name="setWorkingDirectory"
  5965. abstract="false" native="false" synchronized="false"
  5966. static="false" final="false" visibility="public"
  5967. deprecated="not deprecated">
  5968. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5969. </method>
  5970. <field name="LOG" type="org.apache.commons.logging.Log"
  5971. transient="false" volatile="false"
  5972. static="true" final="true" visibility="public"
  5973. deprecated="not deprecated">
  5974. </field>
  5975. <field name="DEFAULT_BUFFER_SIZE" type="int"
  5976. transient="false" volatile="false"
  5977. static="true" final="true" visibility="public"
  5978. deprecated="not deprecated">
  5979. </field>
  5980. <field name="DEFAULT_BLOCK_SIZE" type="int"
  5981. transient="false" volatile="false"
  5982. static="true" final="true" visibility="public"
  5983. deprecated="not deprecated">
  5984. </field>
  5985. <doc>
  5986. <![CDATA[<p>
  5987. A {@link FileSystem} backed by an FTP client provided by <a
  5988. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  5989. </p>]]>
  5990. </doc>
  5991. </class>
  5992. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  5993. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  5994. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  5995. abstract="false"
  5996. static="false" final="false" visibility="public"
  5997. deprecated="not deprecated">
  5998. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  5999. static="false" final="false" visibility="public"
  6000. deprecated="not deprecated">
  6001. </constructor>
  6002. <method name="getPos" return="long"
  6003. abstract="false" native="false" synchronized="false"
  6004. static="false" final="false" visibility="public"
  6005. deprecated="not deprecated">
  6006. <exception name="IOException" type="java.io.IOException"/>
  6007. </method>
  6008. <method name="seek"
  6009. abstract="false" native="false" synchronized="false"
  6010. static="false" final="false" visibility="public"
  6011. deprecated="not deprecated">
  6012. <param name="pos" type="long"/>
  6013. <exception name="IOException" type="java.io.IOException"/>
  6014. </method>
  6015. <method name="seekToNewSource" return="boolean"
  6016. abstract="false" native="false" synchronized="false"
  6017. static="false" final="false" visibility="public"
  6018. deprecated="not deprecated">
  6019. <param name="targetPos" type="long"/>
  6020. <exception name="IOException" type="java.io.IOException"/>
  6021. </method>
  6022. <method name="read" return="int"
  6023. abstract="false" native="false" synchronized="true"
  6024. static="false" final="false" visibility="public"
  6025. deprecated="not deprecated">
  6026. <exception name="IOException" type="java.io.IOException"/>
  6027. </method>
  6028. <method name="read" return="int"
  6029. abstract="false" native="false" synchronized="true"
  6030. static="false" final="false" visibility="public"
  6031. deprecated="not deprecated">
  6032. <param name="buf" type="byte[]"/>
  6033. <param name="off" type="int"/>
  6034. <param name="len" type="int"/>
  6035. <exception name="IOException" type="java.io.IOException"/>
  6036. </method>
  6037. <method name="close"
  6038. abstract="false" native="false" synchronized="true"
  6039. static="false" final="false" visibility="public"
  6040. deprecated="not deprecated">
  6041. <exception name="IOException" type="java.io.IOException"/>
  6042. </method>
  6043. <method name="markSupported" return="boolean"
  6044. abstract="false" native="false" synchronized="false"
  6045. static="false" final="false" visibility="public"
  6046. deprecated="not deprecated">
  6047. </method>
  6048. <method name="mark"
  6049. abstract="false" native="false" synchronized="false"
  6050. static="false" final="false" visibility="public"
  6051. deprecated="not deprecated">
  6052. <param name="readLimit" type="int"/>
  6053. </method>
  6054. <method name="reset"
  6055. abstract="false" native="false" synchronized="false"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. <exception name="IOException" type="java.io.IOException"/>
  6059. </method>
  6060. </class>
  6061. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6062. </package>
  6063. <package name="org.apache.hadoop.fs.kfs">
  6064. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6065. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6066. abstract="false"
  6067. static="false" final="false" visibility="public"
  6068. deprecated="not deprecated">
  6069. <constructor name="KosmosFileSystem"
  6070. static="false" final="false" visibility="public"
  6071. deprecated="not deprecated">
  6072. </constructor>
  6073. <method name="getUri" return="java.net.URI"
  6074. abstract="false" native="false" synchronized="false"
  6075. static="false" final="false" visibility="public"
  6076. deprecated="not deprecated">
  6077. </method>
  6078. <method name="initialize"
  6079. abstract="false" native="false" synchronized="false"
  6080. static="false" final="false" visibility="public"
  6081. deprecated="not deprecated">
  6082. <param name="uri" type="java.net.URI"/>
  6083. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6084. <exception name="IOException" type="java.io.IOException"/>
  6085. </method>
  6086. <method name="getName" return="java.lang.String"
  6087. abstract="false" native="false" synchronized="false"
  6088. static="false" final="false" visibility="public"
  6089. deprecated="not deprecated">
  6090. </method>
  6091. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6092. abstract="false" native="false" synchronized="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. </method>
  6096. <method name="setWorkingDirectory"
  6097. abstract="false" native="false" synchronized="false"
  6098. static="false" final="false" visibility="public"
  6099. deprecated="not deprecated">
  6100. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6101. </method>
  6102. <method name="mkdirs" return="boolean"
  6103. abstract="false" native="false" synchronized="false"
  6104. static="false" final="false" visibility="public"
  6105. deprecated="not deprecated">
  6106. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6107. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6108. <exception name="IOException" type="java.io.IOException"/>
  6109. </method>
  6110. <method name="isDirectory" return="boolean"
  6111. abstract="false" native="false" synchronized="false"
  6112. static="false" final="false" visibility="public"
  6113. deprecated="not deprecated">
  6114. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6115. <exception name="IOException" type="java.io.IOException"/>
  6116. </method>
  6117. <method name="isFile" return="boolean"
  6118. abstract="false" native="false" synchronized="false"
  6119. static="false" final="false" visibility="public"
  6120. deprecated="not deprecated">
  6121. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6122. <exception name="IOException" type="java.io.IOException"/>
  6123. </method>
  6124. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6125. abstract="false" native="false" synchronized="false"
  6126. static="false" final="false" visibility="public"
  6127. deprecated="not deprecated">
  6128. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6129. <exception name="IOException" type="java.io.IOException"/>
  6130. </method>
  6131. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6132. abstract="false" native="false" synchronized="false"
  6133. static="false" final="false" visibility="public"
  6134. deprecated="not deprecated">
  6135. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6136. <exception name="IOException" type="java.io.IOException"/>
  6137. </method>
  6138. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6139. abstract="false" native="false" synchronized="false"
  6140. static="false" final="false" visibility="public"
  6141. deprecated="not deprecated">
  6142. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6143. <param name="bufferSize" type="int"/>
  6144. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6145. <exception name="IOException" type="java.io.IOException"/>
  6146. <doc>
  6147. <![CDATA[This optional operation is not yet supported.]]>
  6148. </doc>
  6149. </method>
  6150. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6151. abstract="false" native="false" synchronized="false"
  6152. static="false" final="false" visibility="public"
  6153. deprecated="not deprecated">
  6154. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6155. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6156. <param name="overwrite" type="boolean"/>
  6157. <param name="bufferSize" type="int"/>
  6158. <param name="replication" type="short"/>
  6159. <param name="blockSize" type="long"/>
  6160. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6161. <exception name="IOException" type="java.io.IOException"/>
  6162. </method>
  6163. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6164. abstract="false" native="false" synchronized="false"
  6165. static="false" final="false" visibility="public"
  6166. deprecated="not deprecated">
  6167. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6168. <param name="bufferSize" type="int"/>
  6169. <exception name="IOException" type="java.io.IOException"/>
  6170. </method>
  6171. <method name="rename" return="boolean"
  6172. abstract="false" native="false" synchronized="false"
  6173. static="false" final="false" visibility="public"
  6174. deprecated="not deprecated">
  6175. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6176. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6177. <exception name="IOException" type="java.io.IOException"/>
  6178. </method>
  6179. <method name="delete" return="boolean"
  6180. abstract="false" native="false" synchronized="false"
  6181. static="false" final="false" visibility="public"
  6182. deprecated="not deprecated">
  6183. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6184. <param name="recursive" type="boolean"/>
  6185. <exception name="IOException" type="java.io.IOException"/>
  6186. </method>
  6187. <method name="delete" return="boolean"
  6188. abstract="false" native="false" synchronized="false"
  6189. static="false" final="false" visibility="public"
  6190. deprecated="not deprecated">
  6191. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6192. <exception name="IOException" type="java.io.IOException"/>
  6193. </method>
  6194. <method name="getLength" return="long"
  6195. abstract="false" native="false" synchronized="false"
  6196. static="false" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6199. <exception name="IOException" type="java.io.IOException"/>
  6200. </method>
  6201. <method name="getReplication" return="short"
  6202. abstract="false" native="false" synchronized="false"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6206. <exception name="IOException" type="java.io.IOException"/>
  6207. </method>
  6208. <method name="getDefaultReplication" return="short"
  6209. abstract="false" native="false" synchronized="false"
  6210. static="false" final="false" visibility="public"
  6211. deprecated="not deprecated">
  6212. </method>
  6213. <method name="setReplication" return="boolean"
  6214. abstract="false" native="false" synchronized="false"
  6215. static="false" final="false" visibility="public"
  6216. deprecated="not deprecated">
  6217. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6218. <param name="replication" type="short"/>
  6219. <exception name="IOException" type="java.io.IOException"/>
  6220. </method>
  6221. <method name="getDefaultBlockSize" return="long"
  6222. abstract="false" native="false" synchronized="false"
  6223. static="false" final="false" visibility="public"
  6224. deprecated="not deprecated">
  6225. </method>
  6226. <method name="lock"
  6227. abstract="false" native="false" synchronized="false"
  6228. static="false" final="false" visibility="public"
  6229. deprecated="not deprecated">
  6230. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6231. <param name="shared" type="boolean"/>
  6232. <exception name="IOException" type="java.io.IOException"/>
  6233. </method>
  6234. <method name="release"
  6235. abstract="false" native="false" synchronized="false"
  6236. static="false" final="false" visibility="public"
  6237. deprecated="not deprecated">
  6238. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6239. <exception name="IOException" type="java.io.IOException"/>
  6240. </method>
  6241. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6242. abstract="false" native="false" synchronized="false"
  6243. static="false" final="false" visibility="public"
  6244. deprecated="not deprecated">
  6245. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6246. <param name="start" type="long"/>
  6247. <param name="len" type="long"/>
  6248. <exception name="IOException" type="java.io.IOException"/>
  6249. <doc>
  6250. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  6251. locations of the various chunks of the file file from KFS.]]>
  6252. </doc>
  6253. </method>
  6254. <method name="copyFromLocalFile"
  6255. abstract="false" native="false" synchronized="false"
  6256. static="false" final="false" visibility="public"
  6257. deprecated="not deprecated">
  6258. <param name="delSrc" type="boolean"/>
  6259. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6260. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6261. <exception name="IOException" type="java.io.IOException"/>
  6262. </method>
  6263. <method name="copyToLocalFile"
  6264. abstract="false" native="false" synchronized="false"
  6265. static="false" final="false" visibility="public"
  6266. deprecated="not deprecated">
  6267. <param name="delSrc" type="boolean"/>
  6268. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6269. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6270. <exception name="IOException" type="java.io.IOException"/>
  6271. </method>
  6272. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6273. abstract="false" native="false" synchronized="false"
  6274. static="false" final="false" visibility="public"
  6275. deprecated="not deprecated">
  6276. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6277. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6278. <exception name="IOException" type="java.io.IOException"/>
  6279. </method>
  6280. <method name="completeLocalOutput"
  6281. abstract="false" native="false" synchronized="false"
  6282. static="false" final="false" visibility="public"
  6283. deprecated="not deprecated">
  6284. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6285. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6286. <exception name="IOException" type="java.io.IOException"/>
  6287. </method>
  6288. <doc>
  6289. <![CDATA[A FileSystem backed by KFS.]]>
  6290. </doc>
  6291. </class>
  6292. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6293. </package>
  6294. <package name="org.apache.hadoop.fs.permission">
  6295. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  6296. <class name="AccessControlException" extends="java.io.IOException"
  6297. abstract="false"
  6298. static="false" final="false" visibility="public"
  6299. deprecated="not deprecated">
  6300. <constructor name="AccessControlException"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <doc>
  6304. <![CDATA[Default constructor is needed for unwrapping from
  6305. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  6306. </doc>
  6307. </constructor>
  6308. <constructor name="AccessControlException" type="java.lang.String"
  6309. static="false" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <doc>
  6312. <![CDATA[Constructs an {@link AccessControlException}
  6313. with the specified detail message.
  6314. @param s the detail message.]]>
  6315. </doc>
  6316. </constructor>
  6317. <doc>
  6318. <![CDATA[An exception class for access control related issues.]]>
  6319. </doc>
  6320. </class>
  6321. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  6322. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  6323. <class name="FsAction" extends="java.lang.Enum&lt;org.apache.hadoop.fs.permission.FsAction&gt;"
  6324. abstract="false"
  6325. static="false" final="true" visibility="public"
  6326. deprecated="not deprecated">
  6327. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  6328. abstract="false" native="false" synchronized="false"
  6329. static="true" final="true" visibility="public"
  6330. deprecated="not deprecated">
  6331. </method>
  6332. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="true" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="name" type="java.lang.String"/>
  6337. </method>
  6338. <method name="implies" return="boolean"
  6339. abstract="false" native="false" synchronized="false"
  6340. static="false" final="false" visibility="public"
  6341. deprecated="not deprecated">
  6342. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6343. <doc>
  6344. <![CDATA[Return true if this action implies that action.
  6345. @param that]]>
  6346. </doc>
  6347. </method>
  6348. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  6349. abstract="false" native="false" synchronized="false"
  6350. static="false" final="false" visibility="public"
  6351. deprecated="not deprecated">
  6352. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6353. <doc>
  6354. <![CDATA[AND operation.]]>
  6355. </doc>
  6356. </method>
  6357. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  6358. abstract="false" native="false" synchronized="false"
  6359. static="false" final="false" visibility="public"
  6360. deprecated="not deprecated">
  6361. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6362. <doc>
  6363. <![CDATA[OR operation.]]>
  6364. </doc>
  6365. </method>
  6366. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  6367. abstract="false" native="false" synchronized="false"
  6368. static="false" final="false" visibility="public"
  6369. deprecated="not deprecated">
  6370. <doc>
  6371. <![CDATA[NOT operation.]]>
  6372. </doc>
  6373. </method>
  6374. <field name="INDEX" type="int"
  6375. transient="false" volatile="false"
  6376. static="false" final="true" visibility="public"
  6377. deprecated="not deprecated">
  6378. <doc>
  6379. <![CDATA[Octal representation]]>
  6380. </doc>
  6381. </field>
  6382. <field name="SYMBOL" type="java.lang.String"
  6383. transient="false" volatile="false"
  6384. static="false" final="true" visibility="public"
  6385. deprecated="not deprecated">
  6386. <doc>
  6387. <![CDATA[Symbolic representation]]>
  6388. </doc>
  6389. </field>
  6390. <doc>
  6391. <![CDATA[File system actions, e.g. read, write, etc.]]>
  6392. </doc>
  6393. </class>
  6394. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  6395. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  6396. <class name="FsPermission" extends="java.lang.Object"
  6397. abstract="false"
  6398. static="false" final="false" visibility="public"
  6399. deprecated="not deprecated">
  6400. <implements name="org.apache.hadoop.io.Writable"/>
  6401. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  6402. static="false" final="false" visibility="public"
  6403. deprecated="not deprecated">
  6404. <doc>
  6405. <![CDATA[Construct by the given {@link FsAction}.
  6406. @param u user action
  6407. @param g group action
  6408. @param o other action]]>
  6409. </doc>
  6410. </constructor>
  6411. <constructor name="FsPermission" type="short"
  6412. static="false" final="false" visibility="public"
  6413. deprecated="not deprecated">
  6414. <doc>
  6415. <![CDATA[Construct by the given mode.
  6416. @param mode
  6417. @see #toShort()]]>
  6418. </doc>
  6419. </constructor>
  6420. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  6421. static="false" final="false" visibility="public"
  6422. deprecated="not deprecated">
  6423. <doc>
  6424. <![CDATA[Copy constructor
  6425. @param other other permission]]>
  6426. </doc>
  6427. </constructor>
  6428. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  6429. abstract="false" native="false" synchronized="false"
  6430. static="true" final="false" visibility="public"
  6431. deprecated="not deprecated">
  6432. <param name="permission" type="short"/>
  6433. <doc>
  6434. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  6435. </doc>
  6436. </method>
  6437. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  6438. abstract="false" native="false" synchronized="false"
  6439. static="false" final="false" visibility="public"
  6440. deprecated="not deprecated">
  6441. <doc>
  6442. <![CDATA[Return user {@link FsAction}.]]>
  6443. </doc>
  6444. </method>
  6445. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  6446. abstract="false" native="false" synchronized="false"
  6447. static="false" final="false" visibility="public"
  6448. deprecated="not deprecated">
  6449. <doc>
  6450. <![CDATA[Return group {@link FsAction}.]]>
  6451. </doc>
  6452. </method>
  6453. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  6454. abstract="false" native="false" synchronized="false"
  6455. static="false" final="false" visibility="public"
  6456. deprecated="not deprecated">
  6457. <doc>
  6458. <![CDATA[Return other {@link FsAction}.]]>
  6459. </doc>
  6460. </method>
  6461. <method name="fromShort"
  6462. abstract="false" native="false" synchronized="false"
  6463. static="false" final="false" visibility="public"
  6464. deprecated="not deprecated">
  6465. <param name="n" type="short"/>
  6466. </method>
  6467. <method name="write"
  6468. abstract="false" native="false" synchronized="false"
  6469. static="false" final="false" visibility="public"
  6470. deprecated="not deprecated">
  6471. <param name="out" type="java.io.DataOutput"/>
  6472. <exception name="IOException" type="java.io.IOException"/>
  6473. <doc>
  6474. <![CDATA[{@inheritDoc}]]>
  6475. </doc>
  6476. </method>
  6477. <method name="readFields"
  6478. abstract="false" native="false" synchronized="false"
  6479. static="false" final="false" visibility="public"
  6480. deprecated="not deprecated">
  6481. <param name="in" type="java.io.DataInput"/>
  6482. <exception name="IOException" type="java.io.IOException"/>
  6483. <doc>
  6484. <![CDATA[{@inheritDoc}]]>
  6485. </doc>
  6486. </method>
  6487. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  6488. abstract="false" native="false" synchronized="false"
  6489. static="true" final="false" visibility="public"
  6490. deprecated="not deprecated">
  6491. <param name="in" type="java.io.DataInput"/>
  6492. <exception name="IOException" type="java.io.IOException"/>
  6493. <doc>
  6494. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  6495. </doc>
  6496. </method>
  6497. <method name="toShort" return="short"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. <doc>
  6502. <![CDATA[Encode the object to a short.]]>
  6503. </doc>
  6504. </method>
  6505. <method name="equals" return="boolean"
  6506. abstract="false" native="false" synchronized="false"
  6507. static="false" final="false" visibility="public"
  6508. deprecated="not deprecated">
  6509. <param name="obj" type="java.lang.Object"/>
  6510. <doc>
  6511. <![CDATA[{@inheritDoc}]]>
  6512. </doc>
  6513. </method>
  6514. <method name="hashCode" return="int"
  6515. abstract="false" native="false" synchronized="false"
  6516. static="false" final="false" visibility="public"
  6517. deprecated="not deprecated">
  6518. <doc>
  6519. <![CDATA[{@inheritDoc}]]>
  6520. </doc>
  6521. </method>
  6522. <method name="toString" return="java.lang.String"
  6523. abstract="false" native="false" synchronized="false"
  6524. static="false" final="false" visibility="public"
  6525. deprecated="not deprecated">
  6526. <doc>
  6527. <![CDATA[{@inheritDoc}]]>
  6528. </doc>
  6529. </method>
  6530. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6531. abstract="false" native="false" synchronized="false"
  6532. static="false" final="false" visibility="public"
  6533. deprecated="not deprecated">
  6534. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6535. <doc>
  6536. <![CDATA[Apply a umask to this permission and return a new one]]>
  6537. </doc>
  6538. </method>
  6539. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6540. abstract="false" native="false" synchronized="false"
  6541. static="true" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6544. <doc>
  6545. <![CDATA[Get the user file creation mask (umask)]]>
  6546. </doc>
  6547. </method>
  6548. <method name="setUMask"
  6549. abstract="false" native="false" synchronized="false"
  6550. static="true" final="false" visibility="public"
  6551. deprecated="not deprecated">
  6552. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6553. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6554. <doc>
  6555. <![CDATA[Set the user file creation mask (umask)]]>
  6556. </doc>
  6557. </method>
  6558. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  6559. abstract="false" native="false" synchronized="false"
  6560. static="true" final="false" visibility="public"
  6561. deprecated="not deprecated">
  6562. <doc>
  6563. <![CDATA[Get the default permission.]]>
  6564. </doc>
  6565. </method>
  6566. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  6567. abstract="false" native="false" synchronized="false"
  6568. static="true" final="false" visibility="public"
  6569. deprecated="not deprecated">
  6570. <param name="unixSymbolicPermission" type="java.lang.String"/>
  6571. <doc>
  6572. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  6573. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  6574. </doc>
  6575. </method>
  6576. <field name="UMASK_LABEL" type="java.lang.String"
  6577. transient="false" volatile="false"
  6578. static="true" final="true" visibility="public"
  6579. deprecated="not deprecated">
  6580. <doc>
  6581. <![CDATA[umask property label]]>
  6582. </doc>
  6583. </field>
  6584. <field name="DEFAULT_UMASK" type="int"
  6585. transient="false" volatile="false"
  6586. static="true" final="true" visibility="public"
  6587. deprecated="not deprecated">
  6588. </field>
  6589. <doc>
  6590. <![CDATA[A class for file/directory permissions.]]>
  6591. </doc>
  6592. </class>
  6593. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  6594. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  6595. <class name="PermissionStatus" extends="java.lang.Object"
  6596. abstract="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <implements name="org.apache.hadoop.io.Writable"/>
  6600. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  6601. static="false" final="false" visibility="public"
  6602. deprecated="not deprecated">
  6603. <doc>
  6604. <![CDATA[Constructor]]>
  6605. </doc>
  6606. </constructor>
  6607. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  6608. abstract="false" native="false" synchronized="false"
  6609. static="true" final="false" visibility="public"
  6610. deprecated="not deprecated">
  6611. <param name="user" type="java.lang.String"/>
  6612. <param name="group" type="java.lang.String"/>
  6613. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6614. <doc>
  6615. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  6616. </doc>
  6617. </method>
  6618. <method name="getUserName" return="java.lang.String"
  6619. abstract="false" native="false" synchronized="false"
  6620. static="false" final="false" visibility="public"
  6621. deprecated="not deprecated">
  6622. <doc>
  6623. <![CDATA[Return user name]]>
  6624. </doc>
  6625. </method>
  6626. <method name="getGroupName" return="java.lang.String"
  6627. abstract="false" native="false" synchronized="false"
  6628. static="false" final="false" visibility="public"
  6629. deprecated="not deprecated">
  6630. <doc>
  6631. <![CDATA[Return group name]]>
  6632. </doc>
  6633. </method>
  6634. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  6635. abstract="false" native="false" synchronized="false"
  6636. static="false" final="false" visibility="public"
  6637. deprecated="not deprecated">
  6638. <doc>
  6639. <![CDATA[Return permission]]>
  6640. </doc>
  6641. </method>
  6642. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  6643. abstract="false" native="false" synchronized="false"
  6644. static="false" final="false" visibility="public"
  6645. deprecated="not deprecated">
  6646. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6647. <doc>
  6648. <![CDATA[Apply umask.
  6649. @see FsPermission#applyUMask(FsPermission)]]>
  6650. </doc>
  6651. </method>
  6652. <method name="readFields"
  6653. abstract="false" native="false" synchronized="false"
  6654. static="false" final="false" visibility="public"
  6655. deprecated="not deprecated">
  6656. <param name="in" type="java.io.DataInput"/>
  6657. <exception name="IOException" type="java.io.IOException"/>
  6658. <doc>
  6659. <![CDATA[{@inheritDoc}]]>
  6660. </doc>
  6661. </method>
  6662. <method name="write"
  6663. abstract="false" native="false" synchronized="false"
  6664. static="false" final="false" visibility="public"
  6665. deprecated="not deprecated">
  6666. <param name="out" type="java.io.DataOutput"/>
  6667. <exception name="IOException" type="java.io.IOException"/>
  6668. <doc>
  6669. <![CDATA[{@inheritDoc}]]>
  6670. </doc>
  6671. </method>
  6672. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  6673. abstract="false" native="false" synchronized="false"
  6674. static="true" final="false" visibility="public"
  6675. deprecated="not deprecated">
  6676. <param name="in" type="java.io.DataInput"/>
  6677. <exception name="IOException" type="java.io.IOException"/>
  6678. <doc>
  6679. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  6680. </doc>
  6681. </method>
  6682. <method name="write"
  6683. abstract="false" native="false" synchronized="false"
  6684. static="true" final="false" visibility="public"
  6685. deprecated="not deprecated">
  6686. <param name="out" type="java.io.DataOutput"/>
  6687. <param name="username" type="java.lang.String"/>
  6688. <param name="groupname" type="java.lang.String"/>
  6689. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6690. <exception name="IOException" type="java.io.IOException"/>
  6691. <doc>
  6692. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  6693. </doc>
  6694. </method>
  6695. <method name="toString" return="java.lang.String"
  6696. abstract="false" native="false" synchronized="false"
  6697. static="false" final="false" visibility="public"
  6698. deprecated="not deprecated">
  6699. <doc>
  6700. <![CDATA[{@inheritDoc}]]>
  6701. </doc>
  6702. </method>
  6703. <doc>
  6704. <![CDATA[Store permission related information.]]>
  6705. </doc>
  6706. </class>
  6707. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  6708. </package>
  6709. <package name="org.apache.hadoop.fs.s3">
  6710. <!-- start class org.apache.hadoop.fs.s3.Block -->
  6711. <class name="Block" extends="java.lang.Object"
  6712. abstract="false"
  6713. static="false" final="false" visibility="public"
  6714. deprecated="not deprecated">
  6715. <constructor name="Block" type="long, long"
  6716. static="false" final="false" visibility="public"
  6717. deprecated="not deprecated">
  6718. </constructor>
  6719. <method name="getId" return="long"
  6720. abstract="false" native="false" synchronized="false"
  6721. static="false" final="false" visibility="public"
  6722. deprecated="not deprecated">
  6723. </method>
  6724. <method name="getLength" return="long"
  6725. abstract="false" native="false" synchronized="false"
  6726. static="false" final="false" visibility="public"
  6727. deprecated="not deprecated">
  6728. </method>
  6729. <method name="toString" return="java.lang.String"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="false" final="false" visibility="public"
  6732. deprecated="not deprecated">
  6733. </method>
  6734. <doc>
  6735. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  6736. </doc>
  6737. </class>
  6738. <!-- end class org.apache.hadoop.fs.s3.Block -->
  6739. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  6740. <interface name="FileSystemStore" abstract="true"
  6741. static="false" final="false" visibility="public"
  6742. deprecated="not deprecated">
  6743. <method name="initialize"
  6744. abstract="false" native="false" synchronized="false"
  6745. static="false" final="false" visibility="public"
  6746. deprecated="not deprecated">
  6747. <param name="uri" type="java.net.URI"/>
  6748. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6749. <exception name="IOException" type="java.io.IOException"/>
  6750. </method>
  6751. <method name="getVersion" return="java.lang.String"
  6752. abstract="false" native="false" synchronized="false"
  6753. static="false" final="false" visibility="public"
  6754. deprecated="not deprecated">
  6755. <exception name="IOException" type="java.io.IOException"/>
  6756. </method>
  6757. <method name="storeINode"
  6758. abstract="false" native="false" synchronized="false"
  6759. static="false" final="false" visibility="public"
  6760. deprecated="not deprecated">
  6761. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6762. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  6763. <exception name="IOException" type="java.io.IOException"/>
  6764. </method>
  6765. <method name="storeBlock"
  6766. abstract="false" native="false" synchronized="false"
  6767. static="false" final="false" visibility="public"
  6768. deprecated="not deprecated">
  6769. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  6770. <param name="file" type="java.io.File"/>
  6771. <exception name="IOException" type="java.io.IOException"/>
  6772. </method>
  6773. <method name="inodeExists" return="boolean"
  6774. abstract="false" native="false" synchronized="false"
  6775. static="false" final="false" visibility="public"
  6776. deprecated="not deprecated">
  6777. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6778. <exception name="IOException" type="java.io.IOException"/>
  6779. </method>
  6780. <method name="blockExists" return="boolean"
  6781. abstract="false" native="false" synchronized="false"
  6782. static="false" final="false" visibility="public"
  6783. deprecated="not deprecated">
  6784. <param name="blockId" type="long"/>
  6785. <exception name="IOException" type="java.io.IOException"/>
  6786. </method>
  6787. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  6788. abstract="false" native="false" synchronized="false"
  6789. static="false" final="false" visibility="public"
  6790. deprecated="not deprecated">
  6791. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6792. <exception name="IOException" type="java.io.IOException"/>
  6793. </method>
  6794. <method name="retrieveBlock" return="java.io.File"
  6795. abstract="false" native="false" synchronized="false"
  6796. static="false" final="false" visibility="public"
  6797. deprecated="not deprecated">
  6798. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  6799. <param name="byteRangeStart" type="long"/>
  6800. <exception name="IOException" type="java.io.IOException"/>
  6801. </method>
  6802. <method name="deleteINode"
  6803. abstract="false" native="false" synchronized="false"
  6804. static="false" final="false" visibility="public"
  6805. deprecated="not deprecated">
  6806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6807. <exception name="IOException" type="java.io.IOException"/>
  6808. </method>
  6809. <method name="deleteBlock"
  6810. abstract="false" native="false" synchronized="false"
  6811. static="false" final="false" visibility="public"
  6812. deprecated="not deprecated">
  6813. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  6814. <exception name="IOException" type="java.io.IOException"/>
  6815. </method>
  6816. <method name="listSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  6817. abstract="false" native="false" synchronized="false"
  6818. static="false" final="false" visibility="public"
  6819. deprecated="not deprecated">
  6820. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6821. <exception name="IOException" type="java.io.IOException"/>
  6822. </method>
  6823. <method name="listDeepSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  6824. abstract="false" native="false" synchronized="false"
  6825. static="false" final="false" visibility="public"
  6826. deprecated="not deprecated">
  6827. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. </method>
  6830. <method name="purge"
  6831. abstract="false" native="false" synchronized="false"
  6832. static="false" final="false" visibility="public"
  6833. deprecated="not deprecated">
  6834. <exception name="IOException" type="java.io.IOException"/>
  6835. <doc>
  6836. <![CDATA[Delete everything. Used for testing.
  6837. @throws IOException]]>
  6838. </doc>
  6839. </method>
  6840. <method name="dump"
  6841. abstract="false" native="false" synchronized="false"
  6842. static="false" final="false" visibility="public"
  6843. deprecated="not deprecated">
  6844. <exception name="IOException" type="java.io.IOException"/>
  6845. <doc>
  6846. <![CDATA[Diagnostic method to dump all INodes to the console.
  6847. @throws IOException]]>
  6848. </doc>
  6849. </method>
  6850. <doc>
  6851. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  6852. </doc>
  6853. </interface>
  6854. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  6855. <!-- start class org.apache.hadoop.fs.s3.INode -->
  6856. <class name="INode" extends="java.lang.Object"
  6857. abstract="false"
  6858. static="false" final="false" visibility="public"
  6859. deprecated="not deprecated">
  6860. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  6861. static="false" final="false" visibility="public"
  6862. deprecated="not deprecated">
  6863. </constructor>
  6864. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  6865. abstract="false" native="false" synchronized="false"
  6866. static="false" final="false" visibility="public"
  6867. deprecated="not deprecated">
  6868. </method>
  6869. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  6870. abstract="false" native="false" synchronized="false"
  6871. static="false" final="false" visibility="public"
  6872. deprecated="not deprecated">
  6873. </method>
  6874. <method name="isDirectory" return="boolean"
  6875. abstract="false" native="false" synchronized="false"
  6876. static="false" final="false" visibility="public"
  6877. deprecated="not deprecated">
  6878. </method>
  6879. <method name="isFile" return="boolean"
  6880. abstract="false" native="false" synchronized="false"
  6881. static="false" final="false" visibility="public"
  6882. deprecated="not deprecated">
  6883. </method>
  6884. <method name="getSerializedLength" return="long"
  6885. abstract="false" native="false" synchronized="false"
  6886. static="false" final="false" visibility="public"
  6887. deprecated="not deprecated">
  6888. </method>
  6889. <method name="serialize" return="java.io.InputStream"
  6890. abstract="false" native="false" synchronized="false"
  6891. static="false" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. <exception name="IOException" type="java.io.IOException"/>
  6894. </method>
  6895. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  6896. abstract="false" native="false" synchronized="false"
  6897. static="true" final="false" visibility="public"
  6898. deprecated="not deprecated">
  6899. <param name="in" type="java.io.InputStream"/>
  6900. <exception name="IOException" type="java.io.IOException"/>
  6901. </method>
  6902. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  6903. transient="false" volatile="false"
  6904. static="true" final="true" visibility="public"
  6905. deprecated="not deprecated">
  6906. </field>
  6907. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  6908. transient="false" volatile="false"
  6909. static="true" final="true" visibility="public"
  6910. deprecated="not deprecated">
  6911. </field>
  6912. <doc>
  6913. <![CDATA[Holds file metadata including type (regular file, or directory),
  6914. and the list of blocks that are pointers to the data.]]>
  6915. </doc>
  6916. </class>
  6917. <!-- end class org.apache.hadoop.fs.s3.INode -->
  6918. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  6919. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  6920. abstract="false"
  6921. static="false" final="false" visibility="public"
  6922. deprecated="not deprecated">
  6923. <implements name="org.apache.hadoop.util.Tool"/>
  6924. <constructor name="MigrationTool"
  6925. static="false" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. </constructor>
  6928. <method name="main"
  6929. abstract="false" native="false" synchronized="false"
  6930. static="true" final="false" visibility="public"
  6931. deprecated="not deprecated">
  6932. <param name="args" type="java.lang.String[]"/>
  6933. <exception name="Exception" type="java.lang.Exception"/>
  6934. </method>
  6935. <method name="run" return="int"
  6936. abstract="false" native="false" synchronized="false"
  6937. static="false" final="false" visibility="public"
  6938. deprecated="not deprecated">
  6939. <param name="args" type="java.lang.String[]"/>
  6940. <exception name="Exception" type="java.lang.Exception"/>
  6941. </method>
  6942. <method name="initialize"
  6943. abstract="false" native="false" synchronized="false"
  6944. static="false" final="false" visibility="public"
  6945. deprecated="not deprecated">
  6946. <param name="uri" type="java.net.URI"/>
  6947. <exception name="IOException" type="java.io.IOException"/>
  6948. </method>
  6949. <doc>
  6950. <![CDATA[<p>
  6951. This class is a tool for migrating data from an older to a newer version
  6952. of an S3 filesystem.
  6953. </p>
  6954. <p>
  6955. All files in the filesystem are migrated by re-writing the block metadata
  6956. - no datafiles are touched.
  6957. </p>]]>
  6958. </doc>
  6959. </class>
  6960. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  6961. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  6962. <class name="S3Credentials" extends="java.lang.Object"
  6963. abstract="false"
  6964. static="false" final="false" visibility="public"
  6965. deprecated="not deprecated">
  6966. <constructor name="S3Credentials"
  6967. static="false" final="false" visibility="public"
  6968. deprecated="not deprecated">
  6969. </constructor>
  6970. <method name="initialize"
  6971. abstract="false" native="false" synchronized="false"
  6972. static="false" final="false" visibility="public"
  6973. deprecated="not deprecated">
  6974. <param name="uri" type="java.net.URI"/>
  6975. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6976. <doc>
  6977. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  6978. determined.]]>
  6979. </doc>
  6980. </method>
  6981. <method name="getAccessKey" return="java.lang.String"
  6982. abstract="false" native="false" synchronized="false"
  6983. static="false" final="false" visibility="public"
  6984. deprecated="not deprecated">
  6985. </method>
  6986. <method name="getSecretAccessKey" return="java.lang.String"
  6987. abstract="false" native="false" synchronized="false"
  6988. static="false" final="false" visibility="public"
  6989. deprecated="not deprecated">
  6990. </method>
  6991. <doc>
  6992. <![CDATA[<p>
  6993. Extracts AWS credentials from the filesystem URI or configuration.
  6994. </p>]]>
  6995. </doc>
  6996. </class>
  6997. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  6998. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  6999. <class name="S3Exception" extends="java.lang.RuntimeException"
  7000. abstract="false"
  7001. static="false" final="false" visibility="public"
  7002. deprecated="not deprecated">
  7003. <constructor name="S3Exception" type="java.lang.Throwable"
  7004. static="false" final="false" visibility="public"
  7005. deprecated="not deprecated">
  7006. </constructor>
  7007. <doc>
  7008. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  7009. </doc>
  7010. </class>
  7011. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  7012. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  7013. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7014. abstract="false"
  7015. static="false" final="false" visibility="public"
  7016. deprecated="not deprecated">
  7017. <constructor name="S3FileSystem"
  7018. static="false" final="false" visibility="public"
  7019. deprecated="not deprecated">
  7020. </constructor>
  7021. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  7022. static="false" final="false" visibility="public"
  7023. deprecated="not deprecated">
  7024. </constructor>
  7025. <method name="getUri" return="java.net.URI"
  7026. abstract="false" native="false" synchronized="false"
  7027. static="false" final="false" visibility="public"
  7028. deprecated="not deprecated">
  7029. </method>
  7030. <method name="initialize"
  7031. abstract="false" native="false" synchronized="false"
  7032. static="false" final="false" visibility="public"
  7033. deprecated="not deprecated">
  7034. <param name="uri" type="java.net.URI"/>
  7035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7036. <exception name="IOException" type="java.io.IOException"/>
  7037. </method>
  7038. <method name="getName" return="java.lang.String"
  7039. abstract="false" native="false" synchronized="false"
  7040. static="false" final="false" visibility="public"
  7041. deprecated="not deprecated">
  7042. </method>
  7043. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7044. abstract="false" native="false" synchronized="false"
  7045. static="false" final="false" visibility="public"
  7046. deprecated="not deprecated">
  7047. </method>
  7048. <method name="setWorkingDirectory"
  7049. abstract="false" native="false" synchronized="false"
  7050. static="false" final="false" visibility="public"
  7051. deprecated="not deprecated">
  7052. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7053. </method>
  7054. <method name="mkdirs" return="boolean"
  7055. abstract="false" native="false" synchronized="false"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7059. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7060. <exception name="IOException" type="java.io.IOException"/>
  7061. <doc>
  7062. <![CDATA[@param permission Currently ignored.]]>
  7063. </doc>
  7064. </method>
  7065. <method name="isFile" return="boolean"
  7066. abstract="false" native="false" synchronized="false"
  7067. static="false" final="false" visibility="public"
  7068. deprecated="not deprecated">
  7069. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7070. <exception name="IOException" type="java.io.IOException"/>
  7071. </method>
  7072. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7073. abstract="false" native="false" synchronized="false"
  7074. static="false" final="false" visibility="public"
  7075. deprecated="not deprecated">
  7076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7077. <exception name="IOException" type="java.io.IOException"/>
  7078. </method>
  7079. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7080. abstract="false" native="false" synchronized="false"
  7081. static="false" final="false" visibility="public"
  7082. deprecated="not deprecated">
  7083. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7084. <param name="bufferSize" type="int"/>
  7085. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7086. <exception name="IOException" type="java.io.IOException"/>
  7087. <doc>
  7088. <![CDATA[This optional operation is not yet supported.]]>
  7089. </doc>
  7090. </method>
  7091. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7092. abstract="false" native="false" synchronized="false"
  7093. static="false" final="false" visibility="public"
  7094. deprecated="not deprecated">
  7095. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7096. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7097. <param name="overwrite" type="boolean"/>
  7098. <param name="bufferSize" type="int"/>
  7099. <param name="replication" type="short"/>
  7100. <param name="blockSize" type="long"/>
  7101. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7102. <exception name="IOException" type="java.io.IOException"/>
  7103. <doc>
  7104. <![CDATA[@param permission Currently ignored.]]>
  7105. </doc>
  7106. </method>
  7107. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7108. abstract="false" native="false" synchronized="false"
  7109. static="false" final="false" visibility="public"
  7110. deprecated="not deprecated">
  7111. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7112. <param name="bufferSize" type="int"/>
  7113. <exception name="IOException" type="java.io.IOException"/>
  7114. </method>
  7115. <method name="rename" return="boolean"
  7116. abstract="false" native="false" synchronized="false"
  7117. static="false" final="false" visibility="public"
  7118. deprecated="not deprecated">
  7119. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7120. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7121. <exception name="IOException" type="java.io.IOException"/>
  7122. </method>
  7123. <method name="delete" return="boolean"
  7124. abstract="false" native="false" synchronized="false"
  7125. static="false" final="false" visibility="public"
  7126. deprecated="not deprecated">
  7127. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7128. <param name="recursive" type="boolean"/>
  7129. <exception name="IOException" type="java.io.IOException"/>
  7130. </method>
  7131. <method name="delete" return="boolean"
  7132. abstract="false" native="false" synchronized="false"
  7133. static="false" final="false" visibility="public"
  7134. deprecated="not deprecated">
  7135. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7136. <exception name="IOException" type="java.io.IOException"/>
  7137. </method>
  7138. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7139. abstract="false" native="false" synchronized="false"
  7140. static="false" final="false" visibility="public"
  7141. deprecated="not deprecated">
  7142. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7143. <exception name="IOException" type="java.io.IOException"/>
  7144. <doc>
  7145. <![CDATA[FileStatus for S3 file systems.]]>
  7146. </doc>
  7147. </method>
  7148. <doc>
  7149. <![CDATA[<p>
  7150. A block-based {@link FileSystem} backed by
  7151. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7152. </p>
  7153. @see NativeS3FileSystem]]>
  7154. </doc>
  7155. </class>
  7156. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  7157. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7158. <class name="S3FileSystemException" extends="java.io.IOException"
  7159. abstract="false"
  7160. static="false" final="false" visibility="public"
  7161. deprecated="not deprecated">
  7162. <constructor name="S3FileSystemException" type="java.lang.String"
  7163. static="false" final="false" visibility="public"
  7164. deprecated="not deprecated">
  7165. </constructor>
  7166. <doc>
  7167. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  7168. </doc>
  7169. </class>
  7170. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7171. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7172. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  7173. abstract="false"
  7174. static="false" final="false" visibility="public"
  7175. deprecated="not deprecated">
  7176. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  7177. static="false" final="false" visibility="public"
  7178. deprecated="not deprecated">
  7179. </constructor>
  7180. <doc>
  7181. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  7182. in {@link S3FileSystem}.]]>
  7183. </doc>
  7184. </class>
  7185. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7186. </package>
  7187. <package name="org.apache.hadoop.fs.s3native">
  7188. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7189. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7190. abstract="false"
  7191. static="false" final="false" visibility="public"
  7192. deprecated="not deprecated">
  7193. <constructor name="NativeS3FileSystem"
  7194. static="false" final="false" visibility="public"
  7195. deprecated="not deprecated">
  7196. </constructor>
  7197. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  7198. static="false" final="false" visibility="public"
  7199. deprecated="not deprecated">
  7200. </constructor>
  7201. <method name="initialize"
  7202. abstract="false" native="false" synchronized="false"
  7203. static="false" final="false" visibility="public"
  7204. deprecated="not deprecated">
  7205. <param name="uri" type="java.net.URI"/>
  7206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7207. <exception name="IOException" type="java.io.IOException"/>
  7208. </method>
  7209. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7210. abstract="false" native="false" synchronized="false"
  7211. static="false" final="false" visibility="public"
  7212. deprecated="not deprecated">
  7213. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7214. <param name="bufferSize" type="int"/>
  7215. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7216. <exception name="IOException" type="java.io.IOException"/>
  7217. <doc>
  7218. <![CDATA[This optional operation is not yet supported.]]>
  7219. </doc>
  7220. </method>
  7221. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7226. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7227. <param name="overwrite" type="boolean"/>
  7228. <param name="bufferSize" type="int"/>
  7229. <param name="replication" type="short"/>
  7230. <param name="blockSize" type="long"/>
  7231. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7232. <exception name="IOException" type="java.io.IOException"/>
  7233. </method>
  7234. <method name="delete" return="boolean"
  7235. abstract="false" native="false" synchronized="false"
  7236. static="false" final="false" visibility="public"
  7237. deprecated="not deprecated">
  7238. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7239. <exception name="IOException" type="java.io.IOException"/>
  7240. </method>
  7241. <method name="delete" return="boolean"
  7242. abstract="false" native="false" synchronized="false"
  7243. static="false" final="false" visibility="public"
  7244. deprecated="not deprecated">
  7245. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7246. <param name="recursive" type="boolean"/>
  7247. <exception name="IOException" type="java.io.IOException"/>
  7248. </method>
  7249. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7250. abstract="false" native="false" synchronized="false"
  7251. static="false" final="false" visibility="public"
  7252. deprecated="not deprecated">
  7253. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7254. <exception name="IOException" type="java.io.IOException"/>
  7255. </method>
  7256. <method name="getUri" return="java.net.URI"
  7257. abstract="false" native="false" synchronized="false"
  7258. static="false" final="false" visibility="public"
  7259. deprecated="not deprecated">
  7260. </method>
  7261. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7266. <exception name="IOException" type="java.io.IOException"/>
  7267. <doc>
  7268. <![CDATA[<p>
  7269. If <code>f</code> is a file, this method will make a single call to S3.
  7270. If <code>f</code> is a directory, this method will make a maximum of
  7271. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  7272. files and directories contained directly in <code>f</code>.
  7273. </p>]]>
  7274. </doc>
  7275. </method>
  7276. <method name="mkdirs" return="boolean"
  7277. abstract="false" native="false" synchronized="false"
  7278. static="false" final="false" visibility="public"
  7279. deprecated="not deprecated">
  7280. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7281. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7282. <exception name="IOException" type="java.io.IOException"/>
  7283. </method>
  7284. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7285. abstract="false" native="false" synchronized="false"
  7286. static="false" final="false" visibility="public"
  7287. deprecated="not deprecated">
  7288. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7289. <param name="bufferSize" type="int"/>
  7290. <exception name="IOException" type="java.io.IOException"/>
  7291. </method>
  7292. <method name="rename" return="boolean"
  7293. abstract="false" native="false" synchronized="false"
  7294. static="false" final="false" visibility="public"
  7295. deprecated="not deprecated">
  7296. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7297. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7298. <exception name="IOException" type="java.io.IOException"/>
  7299. </method>
  7300. <method name="setWorkingDirectory"
  7301. abstract="false" native="false" synchronized="false"
  7302. static="false" final="false" visibility="public"
  7303. deprecated="not deprecated">
  7304. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7305. <doc>
  7306. <![CDATA[Set the working directory to the given directory.]]>
  7307. </doc>
  7308. </method>
  7309. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7310. abstract="false" native="false" synchronized="false"
  7311. static="false" final="false" visibility="public"
  7312. deprecated="not deprecated">
  7313. </method>
  7314. <field name="LOG" type="org.apache.commons.logging.Log"
  7315. transient="false" volatile="false"
  7316. static="true" final="true" visibility="public"
  7317. deprecated="not deprecated">
  7318. </field>
  7319. <doc>
  7320. <![CDATA[<p>
  7321. A {@link FileSystem} for reading and writing files stored on
  7322. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7323. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  7324. stores files on S3 in their
  7325. native form so they can be read by other S3 tools.
  7326. </p>
  7327. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  7328. </doc>
  7329. </class>
  7330. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7331. </package>
  7332. <package name="org.apache.hadoop.fs.shell">
  7333. <!-- start class org.apache.hadoop.fs.shell.Command -->
  7334. <class name="Command" extends="java.lang.Object"
  7335. abstract="true"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <constructor name="Command" type="org.apache.hadoop.fs.FileSystem"
  7339. static="false" final="false" visibility="protected"
  7340. deprecated="not deprecated">
  7341. <doc>
  7342. <![CDATA[Constructor]]>
  7343. </doc>
  7344. </constructor>
  7345. <method name="getCommandName" return="java.lang.String"
  7346. abstract="true" native="false" synchronized="false"
  7347. static="false" final="false" visibility="public"
  7348. deprecated="not deprecated">
  7349. <doc>
  7350. <![CDATA[Return the command's name excluding the leading character -]]>
  7351. </doc>
  7352. </method>
  7353. <method name="run"
  7354. abstract="true" native="false" synchronized="false"
  7355. static="false" final="false" visibility="protected"
  7356. deprecated="not deprecated">
  7357. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7358. <exception name="IOException" type="java.io.IOException"/>
  7359. <doc>
  7360. <![CDATA[Execute the command on the input path
  7361. @param path the input path
  7362. @throws IOException if any error occurs]]>
  7363. </doc>
  7364. </method>
  7365. <method name="runAll" return="int"
  7366. abstract="false" native="false" synchronized="false"
  7367. static="false" final="false" visibility="public"
  7368. deprecated="not deprecated">
  7369. <doc>
  7370. <![CDATA[For each source path, execute the command
  7371. @return 0 if it runs successfully; -1 if it fails]]>
  7372. </doc>
  7373. </method>
  7374. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  7375. transient="false" volatile="false"
  7376. static="false" final="true" visibility="protected"
  7377. deprecated="not deprecated">
  7378. </field>
  7379. <field name="args" type="java.lang.String[]"
  7380. transient="false" volatile="false"
  7381. static="false" final="false" visibility="protected"
  7382. deprecated="not deprecated">
  7383. </field>
  7384. <doc>
  7385. <![CDATA[An abstract class for the execution of a file system command]]>
  7386. </doc>
  7387. </class>
  7388. <!-- end class org.apache.hadoop.fs.shell.Command -->
  7389. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  7390. <class name="CommandFormat" extends="java.lang.Object"
  7391. abstract="false"
  7392. static="false" final="false" visibility="public"
  7393. deprecated="not deprecated">
  7394. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  7395. static="false" final="false" visibility="public"
  7396. deprecated="not deprecated">
  7397. <doc>
  7398. <![CDATA[constructor]]>
  7399. </doc>
  7400. </constructor>
  7401. <method name="parse" return="java.util.List&lt;java.lang.String&gt;"
  7402. abstract="false" native="false" synchronized="false"
  7403. static="false" final="false" visibility="public"
  7404. deprecated="not deprecated">
  7405. <param name="args" type="java.lang.String[]"/>
  7406. <param name="pos" type="int"/>
  7407. <doc>
  7408. <![CDATA[Parse parameters starting from the given position
  7409. @param args an array of input arguments
  7410. @param pos the position at which starts to parse
  7411. @return a list of parameters]]>
  7412. </doc>
  7413. </method>
  7414. <method name="getOpt" return="boolean"
  7415. abstract="false" native="false" synchronized="false"
  7416. static="false" final="false" visibility="public"
  7417. deprecated="not deprecated">
  7418. <param name="option" type="java.lang.String"/>
  7419. <doc>
  7420. <![CDATA[Return if the option is set or not
  7421. @param option String representation of an option
  7422. @return true is the option is set; false otherwise]]>
  7423. </doc>
  7424. </method>
  7425. <doc>
  7426. <![CDATA[Parse the args of a command and check the format of args.]]>
  7427. </doc>
  7428. </class>
  7429. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  7430. <!-- start class org.apache.hadoop.fs.shell.Count -->
  7431. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  7432. abstract="false"
  7433. static="false" final="false" visibility="public"
  7434. deprecated="not deprecated">
  7435. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.fs.FileSystem"
  7436. static="false" final="false" visibility="public"
  7437. deprecated="not deprecated">
  7438. <doc>
  7439. <![CDATA[Constructor
  7440. @param cmd the count command
  7441. @param pos the starting index of the arguments
  7442. @param fs the file system handler]]>
  7443. </doc>
  7444. </constructor>
  7445. <method name="matches" return="boolean"
  7446. abstract="false" native="false" synchronized="false"
  7447. static="true" final="false" visibility="public"
  7448. deprecated="not deprecated">
  7449. <param name="cmd" type="java.lang.String"/>
  7450. <doc>
  7451. <![CDATA[Check if a command is the count command
  7452. @param cmd A string representation of a command starting with "-"
  7453. @return true if this is a count command; false otherwise]]>
  7454. </doc>
  7455. </method>
  7456. <method name="getCommandName" return="java.lang.String"
  7457. abstract="false" native="false" synchronized="false"
  7458. static="false" final="false" visibility="public"
  7459. deprecated="not deprecated">
  7460. </method>
  7461. <method name="run"
  7462. abstract="false" native="false" synchronized="false"
  7463. static="false" final="false" visibility="protected"
  7464. deprecated="not deprecated">
  7465. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7466. <exception name="IOException" type="java.io.IOException"/>
  7467. </method>
  7468. <field name="NAME" type="java.lang.String"
  7469. transient="false" volatile="false"
  7470. static="true" final="true" visibility="public"
  7471. deprecated="not deprecated">
  7472. </field>
  7473. <field name="USAGE" type="java.lang.String"
  7474. transient="false" volatile="false"
  7475. static="true" final="true" visibility="public"
  7476. deprecated="not deprecated">
  7477. </field>
  7478. <field name="DESCRIPTION" type="java.lang.String"
  7479. transient="false" volatile="false"
  7480. static="true" final="true" visibility="public"
  7481. deprecated="not deprecated">
  7482. </field>
  7483. <doc>
  7484. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  7485. </doc>
  7486. </class>
  7487. <!-- end class org.apache.hadoop.fs.shell.Count -->
  7488. </package>
  7489. <package name="org.apache.hadoop.io">
  7490. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  7491. <class name="AbstractMapWritable" extends="java.lang.Object"
  7492. abstract="true"
  7493. static="false" final="false" visibility="public"
  7494. deprecated="not deprecated">
  7495. <implements name="org.apache.hadoop.io.Writable"/>
  7496. <implements name="org.apache.hadoop.conf.Configurable"/>
  7497. <constructor name="AbstractMapWritable"
  7498. static="false" final="false" visibility="protected"
  7499. deprecated="not deprecated">
  7500. <doc>
  7501. <![CDATA[constructor.]]>
  7502. </doc>
  7503. </constructor>
  7504. <method name="addToMap"
  7505. abstract="false" native="false" synchronized="true"
  7506. static="false" final="false" visibility="protected"
  7507. deprecated="not deprecated">
  7508. <param name="clazz" type="java.lang.Class"/>
  7509. <doc>
  7510. <![CDATA[Add a Class to the maps if it is not already present.]]>
  7511. </doc>
  7512. </method>
  7513. <method name="getClass" return="java.lang.Class"
  7514. abstract="false" native="false" synchronized="false"
  7515. static="false" final="false" visibility="protected"
  7516. deprecated="not deprecated">
  7517. <param name="id" type="byte"/>
  7518. <doc>
  7519. <![CDATA[@return the Class class for the specified id]]>
  7520. </doc>
  7521. </method>
  7522. <method name="getId" return="byte"
  7523. abstract="false" native="false" synchronized="false"
  7524. static="false" final="false" visibility="protected"
  7525. deprecated="not deprecated">
  7526. <param name="clazz" type="java.lang.Class"/>
  7527. <doc>
  7528. <![CDATA[@return the id for the specified Class]]>
  7529. </doc>
  7530. </method>
  7531. <method name="copy"
  7532. abstract="false" native="false" synchronized="true"
  7533. static="false" final="false" visibility="protected"
  7534. deprecated="not deprecated">
  7535. <param name="other" type="org.apache.hadoop.io.Writable"/>
  7536. <doc>
  7537. <![CDATA[Used by child copy constructors.]]>
  7538. </doc>
  7539. </method>
  7540. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  7541. abstract="false" native="false" synchronized="false"
  7542. static="false" final="false" visibility="public"
  7543. deprecated="not deprecated">
  7544. <doc>
  7545. <![CDATA[@return the conf]]>
  7546. </doc>
  7547. </method>
  7548. <method name="setConf"
  7549. abstract="false" native="false" synchronized="false"
  7550. static="false" final="false" visibility="public"
  7551. deprecated="not deprecated">
  7552. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7553. <doc>
  7554. <![CDATA[@param conf the conf to set]]>
  7555. </doc>
  7556. </method>
  7557. <method name="write"
  7558. abstract="false" native="false" synchronized="false"
  7559. static="false" final="false" visibility="public"
  7560. deprecated="not deprecated">
  7561. <param name="out" type="java.io.DataOutput"/>
  7562. <exception name="IOException" type="java.io.IOException"/>
  7563. <doc>
  7564. <![CDATA[{@inheritDoc}]]>
  7565. </doc>
  7566. </method>
  7567. <method name="readFields"
  7568. abstract="false" native="false" synchronized="false"
  7569. static="false" final="false" visibility="public"
  7570. deprecated="not deprecated">
  7571. <param name="in" type="java.io.DataInput"/>
  7572. <exception name="IOException" type="java.io.IOException"/>
  7573. <doc>
  7574. <![CDATA[{@inheritDoc}]]>
  7575. </doc>
  7576. </method>
  7577. <doc>
  7578. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  7579. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  7580. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  7581. maps travel with the class instead of being static.
  7582. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  7583. in any specific map instance.]]>
  7584. </doc>
  7585. </class>
  7586. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  7587. <!-- start class org.apache.hadoop.io.ArrayFile -->
  7588. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  7589. abstract="false"
  7590. static="false" final="false" visibility="public"
  7591. deprecated="not deprecated">
  7592. <constructor name="ArrayFile"
  7593. static="false" final="false" visibility="protected"
  7594. deprecated="not deprecated">
  7595. </constructor>
  7596. <doc>
  7597. <![CDATA[A dense file-based mapping from integers to values.]]>
  7598. </doc>
  7599. </class>
  7600. <!-- end class org.apache.hadoop.io.ArrayFile -->
  7601. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  7602. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  7603. abstract="false"
  7604. static="true" final="false" visibility="public"
  7605. deprecated="not deprecated">
  7606. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  7607. static="false" final="false" visibility="public"
  7608. deprecated="not deprecated">
  7609. <exception name="IOException" type="java.io.IOException"/>
  7610. <doc>
  7611. <![CDATA[Construct an array reader for the named file.]]>
  7612. </doc>
  7613. </constructor>
  7614. <method name="seek"
  7615. abstract="false" native="false" synchronized="true"
  7616. static="false" final="false" visibility="public"
  7617. deprecated="not deprecated">
  7618. <param name="n" type="long"/>
  7619. <exception name="IOException" type="java.io.IOException"/>
  7620. <doc>
  7621. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  7622. </doc>
  7623. </method>
  7624. <method name="next" return="org.apache.hadoop.io.Writable"
  7625. abstract="false" native="false" synchronized="true"
  7626. static="false" final="false" visibility="public"
  7627. deprecated="not deprecated">
  7628. <param name="value" type="org.apache.hadoop.io.Writable"/>
  7629. <exception name="IOException" type="java.io.IOException"/>
  7630. <doc>
  7631. <![CDATA[Read and return the next value in the file.]]>
  7632. </doc>
  7633. </method>
  7634. <method name="key" return="long"
  7635. abstract="false" native="false" synchronized="true"
  7636. static="false" final="false" visibility="public"
  7637. deprecated="not deprecated">
  7638. <exception name="IOException" type="java.io.IOException"/>
  7639. <doc>
  7640. <![CDATA[Returns the key associated with the most recent call to {@link
  7641. #seek(long)}, {@link #next(Writable)}, or {@link
  7642. #get(long,Writable)}.]]>
  7643. </doc>
  7644. </method>
  7645. <method name="get" return="org.apache.hadoop.io.Writable"
  7646. abstract="false" native="false" synchronized="true"
  7647. static="false" final="false" visibility="public"
  7648. deprecated="not deprecated">
  7649. <param name="n" type="long"/>
  7650. <param name="value" type="org.apache.hadoop.io.Writable"/>
  7651. <exception name="IOException" type="java.io.IOException"/>
  7652. <doc>
  7653. <![CDATA[Return the <code>n</code>th value in the file.]]>
  7654. </doc>
  7655. </method>
  7656. <doc>
  7657. <![CDATA[Provide access to an existing array file.]]>
  7658. </doc>
  7659. </class>
  7660. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  7661. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  7662. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  7663. abstract="false"
  7664. static="true" final="false" visibility="public"
  7665. deprecated="not deprecated">
  7666. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  7667. static="false" final="false" visibility="public"
  7668. deprecated="not deprecated">
  7669. <exception name="IOException" type="java.io.IOException"/>
  7670. <doc>
  7671. <![CDATA[Create the named file for values of the named class.]]>
  7672. </doc>
  7673. </constructor>
  7674. <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"
  7675. static="false" final="false" visibility="public"
  7676. deprecated="not deprecated">
  7677. <exception name="IOException" type="java.io.IOException"/>
  7678. <doc>
  7679. <![CDATA[Create the named file for values of the named class.]]>
  7680. </doc>
  7681. </constructor>
  7682. <method name="append"
  7683. abstract="false" native="false" synchronized="true"
  7684. static="false" final="false" visibility="public"
  7685. deprecated="not deprecated">
  7686. <param name="value" type="org.apache.hadoop.io.Writable"/>
  7687. <exception name="IOException" type="java.io.IOException"/>
  7688. <doc>
  7689. <![CDATA[Append a value to the file.]]>
  7690. </doc>
  7691. </method>
  7692. <doc>
  7693. <![CDATA[Write a new array file.]]>
  7694. </doc>
  7695. </class>
  7696. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  7697. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  7698. <class name="ArrayWritable" extends="java.lang.Object"
  7699. abstract="false"
  7700. static="false" final="false" visibility="public"
  7701. deprecated="not deprecated">
  7702. <implements name="org.apache.hadoop.io.Writable"/>
  7703. <constructor name="ArrayWritable" type="java.lang.Class"
  7704. static="false" final="false" visibility="public"
  7705. deprecated="not deprecated">
  7706. </constructor>
  7707. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  7708. static="false" final="false" visibility="public"
  7709. deprecated="not deprecated">
  7710. </constructor>
  7711. <constructor name="ArrayWritable" type="java.lang.String[]"
  7712. static="false" final="false" visibility="public"
  7713. deprecated="not deprecated">
  7714. </constructor>
  7715. <method name="getValueClass" return="java.lang.Class"
  7716. abstract="false" native="false" synchronized="false"
  7717. static="false" final="false" visibility="public"
  7718. deprecated="not deprecated">
  7719. </method>
  7720. <method name="toStrings" return="java.lang.String[]"
  7721. abstract="false" native="false" synchronized="false"
  7722. static="false" final="false" visibility="public"
  7723. deprecated="not deprecated">
  7724. </method>
  7725. <method name="toArray" return="java.lang.Object"
  7726. abstract="false" native="false" synchronized="false"
  7727. static="false" final="false" visibility="public"
  7728. deprecated="not deprecated">
  7729. </method>
  7730. <method name="set"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  7735. </method>
  7736. <method name="get" return="org.apache.hadoop.io.Writable[]"
  7737. abstract="false" native="false" synchronized="false"
  7738. static="false" final="false" visibility="public"
  7739. deprecated="not deprecated">
  7740. </method>
  7741. <method name="readFields"
  7742. abstract="false" native="false" synchronized="false"
  7743. static="false" final="false" visibility="public"
  7744. deprecated="not deprecated">
  7745. <param name="in" type="java.io.DataInput"/>
  7746. <exception name="IOException" type="java.io.IOException"/>
  7747. </method>
  7748. <method name="write"
  7749. abstract="false" native="false" synchronized="false"
  7750. static="false" final="false" visibility="public"
  7751. deprecated="not deprecated">
  7752. <param name="out" type="java.io.DataOutput"/>
  7753. <exception name="IOException" type="java.io.IOException"/>
  7754. </method>
  7755. <doc>
  7756. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  7757. writable must all be instances of the same class. If this writable will be
  7758. the input for a Reducer, you will need to create a subclass that sets the
  7759. value to be of the proper type.
  7760. For example:
  7761. <code>
  7762. public class IntArrayWritable extends ArrayWritable {
  7763. public IntArrayWritable() {
  7764. super(IntWritable.class);
  7765. }
  7766. }
  7767. </code>]]>
  7768. </doc>
  7769. </class>
  7770. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  7771. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  7772. <class name="BooleanWritable" extends="java.lang.Object"
  7773. abstract="false"
  7774. static="false" final="false" visibility="public"
  7775. deprecated="not deprecated">
  7776. <implements name="org.apache.hadoop.io.WritableComparable"/>
  7777. <constructor name="BooleanWritable"
  7778. static="false" final="false" visibility="public"
  7779. deprecated="not deprecated">
  7780. </constructor>
  7781. <constructor name="BooleanWritable" type="boolean"
  7782. static="false" final="false" visibility="public"
  7783. deprecated="not deprecated">
  7784. </constructor>
  7785. <method name="set"
  7786. abstract="false" native="false" synchronized="false"
  7787. static="false" final="false" visibility="public"
  7788. deprecated="not deprecated">
  7789. <param name="value" type="boolean"/>
  7790. <doc>
  7791. <![CDATA[Set the value of the BooleanWritable]]>
  7792. </doc>
  7793. </method>
  7794. <method name="get" return="boolean"
  7795. abstract="false" native="false" synchronized="false"
  7796. static="false" final="false" visibility="public"
  7797. deprecated="not deprecated">
  7798. <doc>
  7799. <![CDATA[Returns the value of the BooleanWritable]]>
  7800. </doc>
  7801. </method>
  7802. <method name="readFields"
  7803. abstract="false" native="false" synchronized="false"
  7804. static="false" final="false" visibility="public"
  7805. deprecated="not deprecated">
  7806. <param name="in" type="java.io.DataInput"/>
  7807. <exception name="IOException" type="java.io.IOException"/>
  7808. </method>
  7809. <method name="write"
  7810. abstract="false" native="false" synchronized="false"
  7811. static="false" final="false" visibility="public"
  7812. deprecated="not deprecated">
  7813. <param name="out" type="java.io.DataOutput"/>
  7814. <exception name="IOException" type="java.io.IOException"/>
  7815. </method>
  7816. <method name="equals" return="boolean"
  7817. abstract="false" native="false" synchronized="false"
  7818. static="false" final="false" visibility="public"
  7819. deprecated="not deprecated">
  7820. <param name="o" type="java.lang.Object"/>
  7821. </method>
  7822. <method name="hashCode" return="int"
  7823. abstract="false" native="false" synchronized="false"
  7824. static="false" final="false" visibility="public"
  7825. deprecated="not deprecated">
  7826. </method>
  7827. <method name="compareTo" return="int"
  7828. abstract="false" native="false" synchronized="false"
  7829. static="false" final="false" visibility="public"
  7830. deprecated="not deprecated">
  7831. <param name="o" type="java.lang.Object"/>
  7832. </method>
  7833. <method name="toString" return="java.lang.String"
  7834. abstract="false" native="false" synchronized="false"
  7835. static="false" final="false" visibility="public"
  7836. deprecated="not deprecated">
  7837. </method>
  7838. <doc>
  7839. <![CDATA[A WritableComparable for booleans.]]>
  7840. </doc>
  7841. </class>
  7842. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  7843. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  7844. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  7845. abstract="false"
  7846. static="true" final="false" visibility="public"
  7847. deprecated="not deprecated">
  7848. <constructor name="BooleanWritable.Comparator"
  7849. static="false" final="false" visibility="public"
  7850. deprecated="not deprecated">
  7851. </constructor>
  7852. <method name="compare" return="int"
  7853. abstract="false" native="false" synchronized="false"
  7854. static="false" final="false" visibility="public"
  7855. deprecated="not deprecated">
  7856. <param name="b1" type="byte[]"/>
  7857. <param name="s1" type="int"/>
  7858. <param name="l1" type="int"/>
  7859. <param name="b2" type="byte[]"/>
  7860. <param name="s2" type="int"/>
  7861. <param name="l2" type="int"/>
  7862. </method>
  7863. <doc>
  7864. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  7865. </doc>
  7866. </class>
  7867. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  7868. <!-- start class org.apache.hadoop.io.BytesWritable -->
  7869. <class name="BytesWritable" extends="java.lang.Object"
  7870. abstract="false"
  7871. static="false" final="false" visibility="public"
  7872. deprecated="not deprecated">
  7873. <implements name="org.apache.hadoop.io.WritableComparable"/>
  7874. <constructor name="BytesWritable"
  7875. static="false" final="false" visibility="public"
  7876. deprecated="not deprecated">
  7877. <doc>
  7878. <![CDATA[Create a zero-size sequence.]]>
  7879. </doc>
  7880. </constructor>
  7881. <constructor name="BytesWritable" type="byte[]"
  7882. static="false" final="false" visibility="public"
  7883. deprecated="not deprecated">
  7884. <doc>
  7885. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  7886. @param bytes This array becomes the backing storage for the object.]]>
  7887. </doc>
  7888. </constructor>
  7889. <method name="get" return="byte[]"
  7890. abstract="false" native="false" synchronized="false"
  7891. static="false" final="false" visibility="public"
  7892. deprecated="not deprecated">
  7893. <doc>
  7894. <![CDATA[Get the data from the BytesWritable.
  7895. @return The data is only valid between 0 and getSize() - 1.]]>
  7896. </doc>
  7897. </method>
  7898. <method name="getSize" return="int"
  7899. abstract="false" native="false" synchronized="false"
  7900. static="false" final="false" visibility="public"
  7901. deprecated="not deprecated">
  7902. <doc>
  7903. <![CDATA[Get the current size of the buffer.]]>
  7904. </doc>
  7905. </method>
  7906. <method name="setSize"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. <param name="size" type="int"/>
  7911. <doc>
  7912. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  7913. and any new values are undefined. The capacity is changed if it is
  7914. necessary.
  7915. @param size The new number of bytes]]>
  7916. </doc>
  7917. </method>
  7918. <method name="getCapacity" return="int"
  7919. abstract="false" native="false" synchronized="false"
  7920. static="false" final="false" visibility="public"
  7921. deprecated="not deprecated">
  7922. <doc>
  7923. <![CDATA[Get the capacity, which is the maximum size that could handled without
  7924. resizing the backing storage.
  7925. @return The number of bytes]]>
  7926. </doc>
  7927. </method>
  7928. <method name="setCapacity"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. <param name="new_cap" type="int"/>
  7933. <doc>
  7934. <![CDATA[Change the capacity of the backing storage.
  7935. The data is preserved.
  7936. @param new_cap The new capacity in bytes.]]>
  7937. </doc>
  7938. </method>
  7939. <method name="set"
  7940. abstract="false" native="false" synchronized="false"
  7941. static="false" final="false" visibility="public"
  7942. deprecated="not deprecated">
  7943. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  7944. <doc>
  7945. <![CDATA[Set the BytesWritable to the contents of the given newData.
  7946. @param newData the value to set this BytesWritable to.]]>
  7947. </doc>
  7948. </method>
  7949. <method name="set"
  7950. abstract="false" native="false" synchronized="false"
  7951. static="false" final="false" visibility="public"
  7952. deprecated="not deprecated">
  7953. <param name="newData" type="byte[]"/>
  7954. <param name="offset" type="int"/>
  7955. <param name="length" type="int"/>
  7956. <doc>
  7957. <![CDATA[Set the value to a copy of the given byte range
  7958. @param newData the new values to copy in
  7959. @param offset the offset in newData to start at
  7960. @param length the number of bytes to copy]]>
  7961. </doc>
  7962. </method>
  7963. <method name="readFields"
  7964. abstract="false" native="false" synchronized="false"
  7965. static="false" final="false" visibility="public"
  7966. deprecated="not deprecated">
  7967. <param name="in" type="java.io.DataInput"/>
  7968. <exception name="IOException" type="java.io.IOException"/>
  7969. </method>
  7970. <method name="write"
  7971. abstract="false" native="false" synchronized="false"
  7972. static="false" final="false" visibility="public"
  7973. deprecated="not deprecated">
  7974. <param name="out" type="java.io.DataOutput"/>
  7975. <exception name="IOException" type="java.io.IOException"/>
  7976. </method>
  7977. <method name="hashCode" return="int"
  7978. abstract="false" native="false" synchronized="false"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="not deprecated">
  7981. </method>
  7982. <method name="compareTo" return="int"
  7983. abstract="false" native="false" synchronized="false"
  7984. static="false" final="false" visibility="public"
  7985. deprecated="not deprecated">
  7986. <param name="right_obj" type="java.lang.Object"/>
  7987. <doc>
  7988. <![CDATA[Define the sort order of the BytesWritable.
  7989. @param right_obj The other bytes writable
  7990. @return Positive if left is bigger than right, 0 if they are equal, and
  7991. negative if left is smaller than right.]]>
  7992. </doc>
  7993. </method>
  7994. <method name="equals" return="boolean"
  7995. abstract="false" native="false" synchronized="false"
  7996. static="false" final="false" visibility="public"
  7997. deprecated="not deprecated">
  7998. <param name="right_obj" type="java.lang.Object"/>
  7999. <doc>
  8000. <![CDATA[Are the two byte sequences equal?]]>
  8001. </doc>
  8002. </method>
  8003. <method name="toString" return="java.lang.String"
  8004. abstract="false" native="false" synchronized="false"
  8005. static="false" final="false" visibility="public"
  8006. deprecated="not deprecated">
  8007. <doc>
  8008. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  8009. </doc>
  8010. </method>
  8011. <doc>
  8012. <![CDATA[A byte sequence that is usable as a key or value.
  8013. It is resizable and distinguishes between the size of the seqeunce and
  8014. the current capacity. The hash function is the front of the md5 of the
  8015. buffer. The sort order is the same as memcmp.]]>
  8016. </doc>
  8017. </class>
  8018. <!-- end class org.apache.hadoop.io.BytesWritable -->
  8019. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  8020. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8021. abstract="false"
  8022. static="true" final="false" visibility="public"
  8023. deprecated="not deprecated">
  8024. <constructor name="BytesWritable.Comparator"
  8025. static="false" final="false" visibility="public"
  8026. deprecated="not deprecated">
  8027. </constructor>
  8028. <method name="compare" return="int"
  8029. abstract="false" native="false" synchronized="false"
  8030. static="false" final="false" visibility="public"
  8031. deprecated="not deprecated">
  8032. <param name="b1" type="byte[]"/>
  8033. <param name="s1" type="int"/>
  8034. <param name="l1" type="int"/>
  8035. <param name="b2" type="byte[]"/>
  8036. <param name="s2" type="int"/>
  8037. <param name="l2" type="int"/>
  8038. <doc>
  8039. <![CDATA[Compare the buffers in serialized form.]]>
  8040. </doc>
  8041. </method>
  8042. <doc>
  8043. <![CDATA[A Comparator optimized for BytesWritable.]]>
  8044. </doc>
  8045. </class>
  8046. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  8047. <!-- start class org.apache.hadoop.io.ByteWritable -->
  8048. <class name="ByteWritable" extends="java.lang.Object"
  8049. abstract="false"
  8050. static="false" final="false" visibility="public"
  8051. deprecated="not deprecated">
  8052. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8053. <constructor name="ByteWritable"
  8054. static="false" final="false" visibility="public"
  8055. deprecated="not deprecated">
  8056. </constructor>
  8057. <constructor name="ByteWritable" type="byte"
  8058. static="false" final="false" visibility="public"
  8059. deprecated="not deprecated">
  8060. </constructor>
  8061. <method name="set"
  8062. abstract="false" native="false" synchronized="false"
  8063. static="false" final="false" visibility="public"
  8064. deprecated="not deprecated">
  8065. <param name="value" type="byte"/>
  8066. <doc>
  8067. <![CDATA[Set the value of this ByteWritable.]]>
  8068. </doc>
  8069. </method>
  8070. <method name="get" return="byte"
  8071. abstract="false" native="false" synchronized="false"
  8072. static="false" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. <doc>
  8075. <![CDATA[Return the value of this ByteWritable.]]>
  8076. </doc>
  8077. </method>
  8078. <method name="readFields"
  8079. abstract="false" native="false" synchronized="false"
  8080. static="false" final="false" visibility="public"
  8081. deprecated="not deprecated">
  8082. <param name="in" type="java.io.DataInput"/>
  8083. <exception name="IOException" type="java.io.IOException"/>
  8084. </method>
  8085. <method name="write"
  8086. abstract="false" native="false" synchronized="false"
  8087. static="false" final="false" visibility="public"
  8088. deprecated="not deprecated">
  8089. <param name="out" type="java.io.DataOutput"/>
  8090. <exception name="IOException" type="java.io.IOException"/>
  8091. </method>
  8092. <method name="equals" return="boolean"
  8093. abstract="false" native="false" synchronized="false"
  8094. static="false" final="false" visibility="public"
  8095. deprecated="not deprecated">
  8096. <param name="o" type="java.lang.Object"/>
  8097. <doc>
  8098. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  8099. </doc>
  8100. </method>
  8101. <method name="hashCode" return="int"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="not deprecated">
  8105. </method>
  8106. <method name="compareTo" return="int"
  8107. abstract="false" native="false" synchronized="false"
  8108. static="false" final="false" visibility="public"
  8109. deprecated="not deprecated">
  8110. <param name="o" type="java.lang.Object"/>
  8111. <doc>
  8112. <![CDATA[Compares two ByteWritables.]]>
  8113. </doc>
  8114. </method>
  8115. <method name="toString" return="java.lang.String"
  8116. abstract="false" native="false" synchronized="false"
  8117. static="false" final="false" visibility="public"
  8118. deprecated="not deprecated">
  8119. </method>
  8120. <doc>
  8121. <![CDATA[A WritableComparable for a single byte.]]>
  8122. </doc>
  8123. </class>
  8124. <!-- end class org.apache.hadoop.io.ByteWritable -->
  8125. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  8126. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8127. abstract="false"
  8128. static="true" final="false" visibility="public"
  8129. deprecated="not deprecated">
  8130. <constructor name="ByteWritable.Comparator"
  8131. static="false" final="false" visibility="public"
  8132. deprecated="not deprecated">
  8133. </constructor>
  8134. <method name="compare" return="int"
  8135. abstract="false" native="false" synchronized="false"
  8136. static="false" final="false" visibility="public"
  8137. deprecated="not deprecated">
  8138. <param name="b1" type="byte[]"/>
  8139. <param name="s1" type="int"/>
  8140. <param name="l1" type="int"/>
  8141. <param name="b2" type="byte[]"/>
  8142. <param name="s2" type="int"/>
  8143. <param name="l2" type="int"/>
  8144. </method>
  8145. <doc>
  8146. <![CDATA[A Comparator optimized for ByteWritable.]]>
  8147. </doc>
  8148. </class>
  8149. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  8150. <!-- start interface org.apache.hadoop.io.Closeable -->
  8151. <interface name="Closeable" abstract="true"
  8152. static="false" final="false" visibility="public"
  8153. deprecated="use java.io.Closeable">
  8154. <implements name="java.io.Closeable"/>
  8155. <doc>
  8156. <![CDATA[@deprecated use java.io.Closeable]]>
  8157. </doc>
  8158. </interface>
  8159. <!-- end interface org.apache.hadoop.io.Closeable -->
  8160. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  8161. <class name="CompressedWritable" extends="java.lang.Object"
  8162. abstract="true"
  8163. static="false" final="false" visibility="public"
  8164. deprecated="not deprecated">
  8165. <implements name="org.apache.hadoop.io.Writable"/>
  8166. <constructor name="CompressedWritable"
  8167. static="false" final="false" visibility="public"
  8168. deprecated="not deprecated">
  8169. </constructor>
  8170. <method name="readFields"
  8171. abstract="false" native="false" synchronized="false"
  8172. static="false" final="true" visibility="public"
  8173. deprecated="not deprecated">
  8174. <param name="in" type="java.io.DataInput"/>
  8175. <exception name="IOException" type="java.io.IOException"/>
  8176. </method>
  8177. <method name="ensureInflated"
  8178. abstract="false" native="false" synchronized="false"
  8179. static="false" final="false" visibility="protected"
  8180. deprecated="not deprecated">
  8181. <doc>
  8182. <![CDATA[Must be called by all methods which access fields to ensure that the data
  8183. has been uncompressed.]]>
  8184. </doc>
  8185. </method>
  8186. <method name="readFieldsCompressed"
  8187. abstract="true" native="false" synchronized="false"
  8188. static="false" final="false" visibility="protected"
  8189. deprecated="not deprecated">
  8190. <param name="in" type="java.io.DataInput"/>
  8191. <exception name="IOException" type="java.io.IOException"/>
  8192. <doc>
  8193. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  8194. </doc>
  8195. </method>
  8196. <method name="write"
  8197. abstract="false" native="false" synchronized="false"
  8198. static="false" final="true" visibility="public"
  8199. deprecated="not deprecated">
  8200. <param name="out" type="java.io.DataOutput"/>
  8201. <exception name="IOException" type="java.io.IOException"/>
  8202. </method>
  8203. <method name="writeCompressed"
  8204. abstract="true" native="false" synchronized="false"
  8205. static="false" final="false" visibility="protected"
  8206. deprecated="not deprecated">
  8207. <param name="out" type="java.io.DataOutput"/>
  8208. <exception name="IOException" type="java.io.IOException"/>
  8209. <doc>
  8210. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  8211. </doc>
  8212. </method>
  8213. <doc>
  8214. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  8215. inflate on field access. This is useful for large objects whose fields are
  8216. not be altered during a map or reduce operation: leaving the field data
  8217. compressed makes copying the instance from one file to another much
  8218. faster.]]>
  8219. </doc>
  8220. </class>
  8221. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  8222. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  8223. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  8224. abstract="false"
  8225. static="false" final="false" visibility="public"
  8226. deprecated="not deprecated">
  8227. <constructor name="DataInputBuffer"
  8228. static="false" final="false" visibility="public"
  8229. deprecated="not deprecated">
  8230. <doc>
  8231. <![CDATA[Constructs a new empty buffer.]]>
  8232. </doc>
  8233. </constructor>
  8234. <method name="reset"
  8235. abstract="false" native="false" synchronized="false"
  8236. static="false" final="false" visibility="public"
  8237. deprecated="not deprecated">
  8238. <param name="input" type="byte[]"/>
  8239. <param name="length" type="int"/>
  8240. <doc>
  8241. <![CDATA[Resets the data that the buffer reads.]]>
  8242. </doc>
  8243. </method>
  8244. <method name="reset"
  8245. abstract="false" native="false" synchronized="false"
  8246. static="false" final="false" visibility="public"
  8247. deprecated="not deprecated">
  8248. <param name="input" type="byte[]"/>
  8249. <param name="start" type="int"/>
  8250. <param name="length" type="int"/>
  8251. <doc>
  8252. <![CDATA[Resets the data that the buffer reads.]]>
  8253. </doc>
  8254. </method>
  8255. <method name="getData" return="byte[]"
  8256. abstract="false" native="false" synchronized="false"
  8257. static="false" final="false" visibility="public"
  8258. deprecated="not deprecated">
  8259. </method>
  8260. <method name="getPosition" return="int"
  8261. abstract="false" native="false" synchronized="false"
  8262. static="false" final="false" visibility="public"
  8263. deprecated="not deprecated">
  8264. <doc>
  8265. <![CDATA[Returns the current position in the input.]]>
  8266. </doc>
  8267. </method>
  8268. <method name="getLength" return="int"
  8269. abstract="false" native="false" synchronized="false"
  8270. static="false" final="false" visibility="public"
  8271. deprecated="not deprecated">
  8272. <doc>
  8273. <![CDATA[Returns the length of the input.]]>
  8274. </doc>
  8275. </method>
  8276. <doc>
  8277. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  8278. buffer.
  8279. <p>This saves memory over creating a new DataInputStream and
  8280. ByteArrayInputStream each time data is read.
  8281. <p>Typical usage is something like the following:<pre>
  8282. DataInputBuffer buffer = new DataInputBuffer();
  8283. while (... loop condition ...) {
  8284. byte[] data = ... get data ...;
  8285. int dataLength = ... get data length ...;
  8286. buffer.reset(data, dataLength);
  8287. ... read buffer using DataInput methods ...
  8288. }
  8289. </pre>]]>
  8290. </doc>
  8291. </class>
  8292. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  8293. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  8294. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  8295. abstract="false"
  8296. static="false" final="false" visibility="public"
  8297. deprecated="not deprecated">
  8298. <constructor name="DataOutputBuffer"
  8299. static="false" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. <doc>
  8302. <![CDATA[Constructs a new empty buffer.]]>
  8303. </doc>
  8304. </constructor>
  8305. <constructor name="DataOutputBuffer" type="int"
  8306. static="false" final="false" visibility="public"
  8307. deprecated="not deprecated">
  8308. </constructor>
  8309. <method name="getData" return="byte[]"
  8310. abstract="false" native="false" synchronized="false"
  8311. static="false" final="false" visibility="public"
  8312. deprecated="not deprecated">
  8313. <doc>
  8314. <![CDATA[Returns the current contents of the buffer.
  8315. Data is only valid to {@link #getLength()}.]]>
  8316. </doc>
  8317. </method>
  8318. <method name="getLength" return="int"
  8319. abstract="false" native="false" synchronized="false"
  8320. static="false" final="false" visibility="public"
  8321. deprecated="not deprecated">
  8322. <doc>
  8323. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  8324. </doc>
  8325. </method>
  8326. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  8327. abstract="false" native="false" synchronized="false"
  8328. static="false" final="false" visibility="public"
  8329. deprecated="not deprecated">
  8330. <doc>
  8331. <![CDATA[Resets the buffer to empty.]]>
  8332. </doc>
  8333. </method>
  8334. <method name="write"
  8335. abstract="false" native="false" synchronized="false"
  8336. static="false" final="false" visibility="public"
  8337. deprecated="not deprecated">
  8338. <param name="in" type="java.io.DataInput"/>
  8339. <param name="length" type="int"/>
  8340. <exception name="IOException" type="java.io.IOException"/>
  8341. <doc>
  8342. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  8343. </doc>
  8344. </method>
  8345. <doc>
  8346. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  8347. buffer.
  8348. <p>This saves memory over creating a new DataOutputStream and
  8349. ByteArrayOutputStream each time data is written.
  8350. <p>Typical usage is something like the following:<pre>
  8351. DataOutputBuffer buffer = new DataOutputBuffer();
  8352. while (... loop condition ...) {
  8353. buffer.reset();
  8354. ... write buffer using DataOutput methods ...
  8355. byte[] data = buffer.getData();
  8356. int dataLength = buffer.getLength();
  8357. ... write data to its ultimate destination ...
  8358. }
  8359. </pre>]]>
  8360. </doc>
  8361. </class>
  8362. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  8363. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  8364. <class name="DefaultStringifier" extends="java.lang.Object"
  8365. abstract="false"
  8366. static="false" final="false" visibility="public"
  8367. deprecated="not deprecated">
  8368. <implements name="org.apache.hadoop.io.Stringifier&lt;T&gt;"/>
  8369. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class&lt;T&gt;"
  8370. static="false" final="false" visibility="public"
  8371. deprecated="not deprecated">
  8372. </constructor>
  8373. <method name="fromString" return="T"
  8374. abstract="false" native="false" synchronized="false"
  8375. static="false" final="false" visibility="public"
  8376. deprecated="not deprecated">
  8377. <param name="str" type="java.lang.String"/>
  8378. <exception name="IOException" type="java.io.IOException"/>
  8379. </method>
  8380. <method name="toString" return="java.lang.String"
  8381. abstract="false" native="false" synchronized="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <param name="obj" type="T"/>
  8385. <exception name="IOException" type="java.io.IOException"/>
  8386. </method>
  8387. <method name="close"
  8388. abstract="false" native="false" synchronized="false"
  8389. static="false" final="false" visibility="public"
  8390. deprecated="not deprecated">
  8391. <exception name="IOException" type="java.io.IOException"/>
  8392. </method>
  8393. <method name="store"
  8394. abstract="false" native="false" synchronized="false"
  8395. static="true" final="false" visibility="public"
  8396. deprecated="not deprecated">
  8397. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8398. <param name="item" type="K"/>
  8399. <param name="keyName" type="java.lang.String"/>
  8400. <exception name="IOException" type="java.io.IOException"/>
  8401. <doc>
  8402. <![CDATA[Stores the item in the configuration with the given keyName.
  8403. @param <K> the class of the item
  8404. @param conf the configuration to store
  8405. @param item the object to be stored
  8406. @param keyName the name of the key to use
  8407. @throws IOException : forwards Exceptions from the underlying
  8408. {@link Serialization} classes.]]>
  8409. </doc>
  8410. </method>
  8411. <method name="load" return="K"
  8412. abstract="false" native="false" synchronized="false"
  8413. static="true" final="false" visibility="public"
  8414. deprecated="not deprecated">
  8415. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8416. <param name="keyName" type="java.lang.String"/>
  8417. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  8418. <exception name="IOException" type="java.io.IOException"/>
  8419. <doc>
  8420. <![CDATA[Restores the object from the configuration.
  8421. @param <K> the class of the item
  8422. @param conf the configuration to use
  8423. @param keyName the name of the key to use
  8424. @param itemClass the class of the item
  8425. @return restored object
  8426. @throws IOException : forwards Exceptions from the underlying
  8427. {@link Serialization} classes.]]>
  8428. </doc>
  8429. </method>
  8430. <method name="storeArray"
  8431. abstract="false" native="false" synchronized="false"
  8432. static="true" final="false" visibility="public"
  8433. deprecated="not deprecated">
  8434. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8435. <param name="items" type="K[]"/>
  8436. <param name="keyName" type="java.lang.String"/>
  8437. <exception name="IOException" type="java.io.IOException"/>
  8438. <doc>
  8439. <![CDATA[Stores the array of items in the configuration with the given keyName.
  8440. @param <K> the class of the item
  8441. @param conf the configuration to use
  8442. @param items the objects to be stored
  8443. @param keyName the name of the key to use
  8444. @throws IndexOutOfBoundsException if the items array is empty
  8445. @throws IOException : forwards Exceptions from the underlying
  8446. {@link Serialization} classes.]]>
  8447. </doc>
  8448. </method>
  8449. <method name="loadArray" return="K[]"
  8450. abstract="false" native="false" synchronized="false"
  8451. static="true" final="false" visibility="public"
  8452. deprecated="not deprecated">
  8453. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8454. <param name="keyName" type="java.lang.String"/>
  8455. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  8456. <exception name="IOException" type="java.io.IOException"/>
  8457. <doc>
  8458. <![CDATA[Restores the array of objects from the configuration.
  8459. @param <K> the class of the item
  8460. @param conf the configuration to use
  8461. @param keyName the name of the key to use
  8462. @param itemClass the class of the item
  8463. @return restored object
  8464. @throws IOException : forwards Exceptions from the underlying
  8465. {@link Serialization} classes.]]>
  8466. </doc>
  8467. </method>
  8468. <doc>
  8469. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  8470. interface which stringifies the objects using base64 encoding of the
  8471. serialized version of the objects. The {@link Serializer} and
  8472. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  8473. <br>
  8474. DefaultStringifier offers convenience methods to store/load objects to/from
  8475. the configuration.
  8476. @param <T> the class of the objects to stringify]]>
  8477. </doc>
  8478. </class>
  8479. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  8480. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  8481. <class name="DoubleWritable" extends="java.lang.Object"
  8482. abstract="false"
  8483. static="false" final="false" visibility="public"
  8484. deprecated="not deprecated">
  8485. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8486. <constructor name="DoubleWritable"
  8487. static="false" final="false" visibility="public"
  8488. deprecated="not deprecated">
  8489. </constructor>
  8490. <constructor name="DoubleWritable" type="double"
  8491. static="false" final="false" visibility="public"
  8492. deprecated="not deprecated">
  8493. </constructor>
  8494. <method name="readFields"
  8495. abstract="false" native="false" synchronized="false"
  8496. static="false" final="false" visibility="public"
  8497. deprecated="not deprecated">
  8498. <param name="in" type="java.io.DataInput"/>
  8499. <exception name="IOException" type="java.io.IOException"/>
  8500. </method>
  8501. <method name="write"
  8502. abstract="false" native="false" synchronized="false"
  8503. static="false" final="false" visibility="public"
  8504. deprecated="not deprecated">
  8505. <param name="out" type="java.io.DataOutput"/>
  8506. <exception name="IOException" type="java.io.IOException"/>
  8507. </method>
  8508. <method name="set"
  8509. abstract="false" native="false" synchronized="false"
  8510. static="false" final="false" visibility="public"
  8511. deprecated="not deprecated">
  8512. <param name="value" type="double"/>
  8513. </method>
  8514. <method name="get" return="double"
  8515. abstract="false" native="false" synchronized="false"
  8516. static="false" final="false" visibility="public"
  8517. deprecated="not deprecated">
  8518. </method>
  8519. <method name="equals" return="boolean"
  8520. abstract="false" native="false" synchronized="false"
  8521. static="false" final="false" visibility="public"
  8522. deprecated="not deprecated">
  8523. <param name="o" type="java.lang.Object"/>
  8524. <doc>
  8525. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  8526. </doc>
  8527. </method>
  8528. <method name="hashCode" return="int"
  8529. abstract="false" native="false" synchronized="false"
  8530. static="false" final="false" visibility="public"
  8531. deprecated="not deprecated">
  8532. </method>
  8533. <method name="compareTo" return="int"
  8534. abstract="false" native="false" synchronized="false"
  8535. static="false" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. <param name="o" type="java.lang.Object"/>
  8538. </method>
  8539. <method name="toString" return="java.lang.String"
  8540. abstract="false" native="false" synchronized="false"
  8541. static="false" final="false" visibility="public"
  8542. deprecated="not deprecated">
  8543. </method>
  8544. <doc>
  8545. <![CDATA[Writable for Double values.]]>
  8546. </doc>
  8547. </class>
  8548. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  8549. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  8550. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8551. abstract="false"
  8552. static="true" final="false" visibility="public"
  8553. deprecated="not deprecated">
  8554. <constructor name="DoubleWritable.Comparator"
  8555. static="false" final="false" visibility="public"
  8556. deprecated="not deprecated">
  8557. </constructor>
  8558. <method name="compare" return="int"
  8559. abstract="false" native="false" synchronized="false"
  8560. static="false" final="false" visibility="public"
  8561. deprecated="not deprecated">
  8562. <param name="b1" type="byte[]"/>
  8563. <param name="s1" type="int"/>
  8564. <param name="l1" type="int"/>
  8565. <param name="b2" type="byte[]"/>
  8566. <param name="s2" type="int"/>
  8567. <param name="l2" type="int"/>
  8568. </method>
  8569. <doc>
  8570. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  8571. </doc>
  8572. </class>
  8573. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  8574. <!-- start class org.apache.hadoop.io.FloatWritable -->
  8575. <class name="FloatWritable" extends="java.lang.Object"
  8576. abstract="false"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8580. <constructor name="FloatWritable"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. </constructor>
  8584. <constructor name="FloatWritable" type="float"
  8585. static="false" final="false" visibility="public"
  8586. deprecated="not deprecated">
  8587. </constructor>
  8588. <method name="set"
  8589. abstract="false" native="false" synchronized="false"
  8590. static="false" final="false" visibility="public"
  8591. deprecated="not deprecated">
  8592. <param name="value" type="float"/>
  8593. <doc>
  8594. <![CDATA[Set the value of this FloatWritable.]]>
  8595. </doc>
  8596. </method>
  8597. <method name="get" return="float"
  8598. abstract="false" native="false" synchronized="false"
  8599. static="false" final="false" visibility="public"
  8600. deprecated="not deprecated">
  8601. <doc>
  8602. <![CDATA[Return the value of this FloatWritable.]]>
  8603. </doc>
  8604. </method>
  8605. <method name="readFields"
  8606. abstract="false" native="false" synchronized="false"
  8607. static="false" final="false" visibility="public"
  8608. deprecated="not deprecated">
  8609. <param name="in" type="java.io.DataInput"/>
  8610. <exception name="IOException" type="java.io.IOException"/>
  8611. </method>
  8612. <method name="write"
  8613. abstract="false" native="false" synchronized="false"
  8614. static="false" final="false" visibility="public"
  8615. deprecated="not deprecated">
  8616. <param name="out" type="java.io.DataOutput"/>
  8617. <exception name="IOException" type="java.io.IOException"/>
  8618. </method>
  8619. <method name="equals" return="boolean"
  8620. abstract="false" native="false" synchronized="false"
  8621. static="false" final="false" visibility="public"
  8622. deprecated="not deprecated">
  8623. <param name="o" type="java.lang.Object"/>
  8624. <doc>
  8625. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  8626. </doc>
  8627. </method>
  8628. <method name="hashCode" return="int"
  8629. abstract="false" native="false" synchronized="false"
  8630. static="false" final="false" visibility="public"
  8631. deprecated="not deprecated">
  8632. </method>
  8633. <method name="compareTo" return="int"
  8634. abstract="false" native="false" synchronized="false"
  8635. static="false" final="false" visibility="public"
  8636. deprecated="not deprecated">
  8637. <param name="o" type="java.lang.Object"/>
  8638. <doc>
  8639. <![CDATA[Compares two FloatWritables.]]>
  8640. </doc>
  8641. </method>
  8642. <method name="toString" return="java.lang.String"
  8643. abstract="false" native="false" synchronized="false"
  8644. static="false" final="false" visibility="public"
  8645. deprecated="not deprecated">
  8646. </method>
  8647. <doc>
  8648. <![CDATA[A WritableComparable for floats.]]>
  8649. </doc>
  8650. </class>
  8651. <!-- end class org.apache.hadoop.io.FloatWritable -->
  8652. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  8653. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8654. abstract="false"
  8655. static="true" final="false" visibility="public"
  8656. deprecated="not deprecated">
  8657. <constructor name="FloatWritable.Comparator"
  8658. static="false" final="false" visibility="public"
  8659. deprecated="not deprecated">
  8660. </constructor>
  8661. <method name="compare" return="int"
  8662. abstract="false" native="false" synchronized="false"
  8663. static="false" final="false" visibility="public"
  8664. deprecated="not deprecated">
  8665. <param name="b1" type="byte[]"/>
  8666. <param name="s1" type="int"/>
  8667. <param name="l1" type="int"/>
  8668. <param name="b2" type="byte[]"/>
  8669. <param name="s2" type="int"/>
  8670. <param name="l2" type="int"/>
  8671. </method>
  8672. <doc>
  8673. <![CDATA[A Comparator optimized for FloatWritable.]]>
  8674. </doc>
  8675. </class>
  8676. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  8677. <!-- start class org.apache.hadoop.io.GenericWritable -->
  8678. <class name="GenericWritable" extends="java.lang.Object"
  8679. abstract="true"
  8680. static="false" final="false" visibility="public"
  8681. deprecated="not deprecated">
  8682. <implements name="org.apache.hadoop.io.Writable"/>
  8683. <implements name="org.apache.hadoop.conf.Configurable"/>
  8684. <constructor name="GenericWritable"
  8685. static="false" final="false" visibility="public"
  8686. deprecated="not deprecated">
  8687. </constructor>
  8688. <method name="set"
  8689. abstract="false" native="false" synchronized="false"
  8690. static="false" final="false" visibility="public"
  8691. deprecated="not deprecated">
  8692. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  8693. <doc>
  8694. <![CDATA[Set the instance that is wrapped.
  8695. @param obj]]>
  8696. </doc>
  8697. </method>
  8698. <method name="get" return="org.apache.hadoop.io.Writable"
  8699. abstract="false" native="false" synchronized="false"
  8700. static="false" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <doc>
  8703. <![CDATA[Return the wrapped instance.]]>
  8704. </doc>
  8705. </method>
  8706. <method name="toString" return="java.lang.String"
  8707. abstract="false" native="false" synchronized="false"
  8708. static="false" final="false" visibility="public"
  8709. deprecated="not deprecated">
  8710. </method>
  8711. <method name="readFields"
  8712. abstract="false" native="false" synchronized="false"
  8713. static="false" final="false" visibility="public"
  8714. deprecated="not deprecated">
  8715. <param name="in" type="java.io.DataInput"/>
  8716. <exception name="IOException" type="java.io.IOException"/>
  8717. </method>
  8718. <method name="write"
  8719. abstract="false" native="false" synchronized="false"
  8720. static="false" final="false" visibility="public"
  8721. deprecated="not deprecated">
  8722. <param name="out" type="java.io.DataOutput"/>
  8723. <exception name="IOException" type="java.io.IOException"/>
  8724. </method>
  8725. <method name="getTypes" return="java.lang.Class[]"
  8726. abstract="true" native="false" synchronized="false"
  8727. static="false" final="false" visibility="protected"
  8728. deprecated="not deprecated">
  8729. <doc>
  8730. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  8731. to return a constant array of classes.]]>
  8732. </doc>
  8733. </method>
  8734. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  8735. abstract="false" native="false" synchronized="false"
  8736. static="false" final="false" visibility="public"
  8737. deprecated="not deprecated">
  8738. </method>
  8739. <method name="setConf"
  8740. abstract="false" native="false" synchronized="false"
  8741. static="false" final="false" visibility="public"
  8742. deprecated="not deprecated">
  8743. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8744. </method>
  8745. <doc>
  8746. <![CDATA[A wrapper for Writable instances.
  8747. <p>
  8748. When two sequence files, which have same Key type but different Value
  8749. types, are mapped out to reduce, multiple Value types is not allowed.
  8750. In this case, this class can help you wrap instances with different types.
  8751. </p>
  8752. <p>
  8753. Compared with <code>ObjectWritable</code>, this class is much more effective,
  8754. because <code>ObjectWritable</code> will append the class declaration as a String
  8755. into the output file in every Key-Value pair.
  8756. </p>
  8757. <p>
  8758. Generic Writable implements {@link Configurable} interface, so that it will be
  8759. configured by the framework. The configuration is passed to the wrapped objects
  8760. implementing {@link Configurable} interface <i>before deserialization</i>.
  8761. </p>
  8762. how to use it: <br>
  8763. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  8764. 2. Implements the abstract method <code>getTypes()</code>, defines
  8765. the classes which will be wrapped in GenericObject in application.
  8766. Attention: this classes defined in <code>getTypes()</code> method, must
  8767. implement <code>Writable</code> interface.
  8768. <br><br>
  8769. The code looks like this:
  8770. <blockquote><pre>
  8771. public class GenericObject extends GenericWritable {
  8772. private static Class[] CLASSES = {
  8773. ClassType1.class,
  8774. ClassType2.class,
  8775. ClassType3.class,
  8776. };
  8777. protected Class[] getTypes() {
  8778. return CLASSES;
  8779. }
  8780. }
  8781. </pre></blockquote>
  8782. @since Nov 8, 2006]]>
  8783. </doc>
  8784. </class>
  8785. <!-- end class org.apache.hadoop.io.GenericWritable -->
  8786. <!-- start class org.apache.hadoop.io.InputBuffer -->
  8787. <class name="InputBuffer" extends="java.io.FilterInputStream"
  8788. abstract="false"
  8789. static="false" final="false" visibility="public"
  8790. deprecated="not deprecated">
  8791. <constructor name="InputBuffer"
  8792. static="false" final="false" visibility="public"
  8793. deprecated="not deprecated">
  8794. <doc>
  8795. <![CDATA[Constructs a new empty buffer.]]>
  8796. </doc>
  8797. </constructor>
  8798. <method name="reset"
  8799. abstract="false" native="false" synchronized="false"
  8800. static="false" final="false" visibility="public"
  8801. deprecated="not deprecated">
  8802. <param name="input" type="byte[]"/>
  8803. <param name="length" type="int"/>
  8804. <doc>
  8805. <![CDATA[Resets the data that the buffer reads.]]>
  8806. </doc>
  8807. </method>
  8808. <method name="reset"
  8809. abstract="false" native="false" synchronized="false"
  8810. static="false" final="false" visibility="public"
  8811. deprecated="not deprecated">
  8812. <param name="input" type="byte[]"/>
  8813. <param name="start" type="int"/>
  8814. <param name="length" type="int"/>
  8815. <doc>
  8816. <![CDATA[Resets the data that the buffer reads.]]>
  8817. </doc>
  8818. </method>
  8819. <method name="getPosition" return="int"
  8820. abstract="false" native="false" synchronized="false"
  8821. static="false" final="false" visibility="public"
  8822. deprecated="not deprecated">
  8823. <doc>
  8824. <![CDATA[Returns the current position in the input.]]>
  8825. </doc>
  8826. </method>
  8827. <method name="getLength" return="int"
  8828. abstract="false" native="false" synchronized="false"
  8829. static="false" final="false" visibility="public"
  8830. deprecated="not deprecated">
  8831. <doc>
  8832. <![CDATA[Returns the length of the input.]]>
  8833. </doc>
  8834. </method>
  8835. <doc>
  8836. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  8837. buffer.
  8838. <p>This saves memory over creating a new InputStream and
  8839. ByteArrayInputStream each time data is read.
  8840. <p>Typical usage is something like the following:<pre>
  8841. InputBuffer buffer = new InputBuffer();
  8842. while (... loop condition ...) {
  8843. byte[] data = ... get data ...;
  8844. int dataLength = ... get data length ...;
  8845. buffer.reset(data, dataLength);
  8846. ... read buffer using InputStream methods ...
  8847. }
  8848. </pre>
  8849. @see DataInputBuffer
  8850. @see DataOutput]]>
  8851. </doc>
  8852. </class>
  8853. <!-- end class org.apache.hadoop.io.InputBuffer -->
  8854. <!-- start class org.apache.hadoop.io.IntWritable -->
  8855. <class name="IntWritable" extends="java.lang.Object"
  8856. abstract="false"
  8857. static="false" final="false" visibility="public"
  8858. deprecated="not deprecated">
  8859. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8860. <constructor name="IntWritable"
  8861. static="false" final="false" visibility="public"
  8862. deprecated="not deprecated">
  8863. </constructor>
  8864. <constructor name="IntWritable" type="int"
  8865. static="false" final="false" visibility="public"
  8866. deprecated="not deprecated">
  8867. </constructor>
  8868. <method name="set"
  8869. abstract="false" native="false" synchronized="false"
  8870. static="false" final="false" visibility="public"
  8871. deprecated="not deprecated">
  8872. <param name="value" type="int"/>
  8873. <doc>
  8874. <![CDATA[Set the value of this IntWritable.]]>
  8875. </doc>
  8876. </method>
  8877. <method name="get" return="int"
  8878. abstract="false" native="false" synchronized="false"
  8879. static="false" final="false" visibility="public"
  8880. deprecated="not deprecated">
  8881. <doc>
  8882. <![CDATA[Return the value of this IntWritable.]]>
  8883. </doc>
  8884. </method>
  8885. <method name="readFields"
  8886. abstract="false" native="false" synchronized="false"
  8887. static="false" final="false" visibility="public"
  8888. deprecated="not deprecated">
  8889. <param name="in" type="java.io.DataInput"/>
  8890. <exception name="IOException" type="java.io.IOException"/>
  8891. </method>
  8892. <method name="write"
  8893. abstract="false" native="false" synchronized="false"
  8894. static="false" final="false" visibility="public"
  8895. deprecated="not deprecated">
  8896. <param name="out" type="java.io.DataOutput"/>
  8897. <exception name="IOException" type="java.io.IOException"/>
  8898. </method>
  8899. <method name="equals" return="boolean"
  8900. abstract="false" native="false" synchronized="false"
  8901. static="false" final="false" visibility="public"
  8902. deprecated="not deprecated">
  8903. <param name="o" type="java.lang.Object"/>
  8904. <doc>
  8905. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  8906. </doc>
  8907. </method>
  8908. <method name="hashCode" return="int"
  8909. abstract="false" native="false" synchronized="false"
  8910. static="false" final="false" visibility="public"
  8911. deprecated="not deprecated">
  8912. </method>
  8913. <method name="compareTo" return="int"
  8914. abstract="false" native="false" synchronized="false"
  8915. static="false" final="false" visibility="public"
  8916. deprecated="not deprecated">
  8917. <param name="o" type="java.lang.Object"/>
  8918. <doc>
  8919. <![CDATA[Compares two IntWritables.]]>
  8920. </doc>
  8921. </method>
  8922. <method name="toString" return="java.lang.String"
  8923. abstract="false" native="false" synchronized="false"
  8924. static="false" final="false" visibility="public"
  8925. deprecated="not deprecated">
  8926. </method>
  8927. <doc>
  8928. <![CDATA[A WritableComparable for ints.]]>
  8929. </doc>
  8930. </class>
  8931. <!-- end class org.apache.hadoop.io.IntWritable -->
  8932. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  8933. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8934. abstract="false"
  8935. static="true" final="false" visibility="public"
  8936. deprecated="not deprecated">
  8937. <constructor name="IntWritable.Comparator"
  8938. static="false" final="false" visibility="public"
  8939. deprecated="not deprecated">
  8940. </constructor>
  8941. <method name="compare" return="int"
  8942. abstract="false" native="false" synchronized="false"
  8943. static="false" final="false" visibility="public"
  8944. deprecated="not deprecated">
  8945. <param name="b1" type="byte[]"/>
  8946. <param name="s1" type="int"/>
  8947. <param name="l1" type="int"/>
  8948. <param name="b2" type="byte[]"/>
  8949. <param name="s2" type="int"/>
  8950. <param name="l2" type="int"/>
  8951. </method>
  8952. <doc>
  8953. <![CDATA[A Comparator optimized for IntWritable.]]>
  8954. </doc>
  8955. </class>
  8956. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  8957. <!-- start class org.apache.hadoop.io.IOUtils -->
  8958. <class name="IOUtils" extends="java.lang.Object"
  8959. abstract="false"
  8960. static="false" final="false" visibility="public"
  8961. deprecated="not deprecated">
  8962. <constructor name="IOUtils"
  8963. static="false" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. </constructor>
  8966. <method name="copyBytes"
  8967. abstract="false" native="false" synchronized="false"
  8968. static="true" final="false" visibility="public"
  8969. deprecated="not deprecated">
  8970. <param name="in" type="java.io.InputStream"/>
  8971. <param name="out" type="java.io.OutputStream"/>
  8972. <param name="buffSize" type="int"/>
  8973. <param name="close" type="boolean"/>
  8974. <exception name="IOException" type="java.io.IOException"/>
  8975. <doc>
  8976. <![CDATA[Copies from one stream to another.
  8977. @param in InputStrem to read from
  8978. @param out OutputStream to write to
  8979. @param buffSize the size of the buffer
  8980. @param close whether or not close the InputStream and
  8981. OutputStream at the end. The streams are closed in the finally clause.]]>
  8982. </doc>
  8983. </method>
  8984. <method name="copyBytes"
  8985. abstract="false" native="false" synchronized="false"
  8986. static="true" final="false" visibility="public"
  8987. deprecated="not deprecated">
  8988. <param name="in" type="java.io.InputStream"/>
  8989. <param name="out" type="java.io.OutputStream"/>
  8990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8991. <exception name="IOException" type="java.io.IOException"/>
  8992. <doc>
  8993. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  8994. at the end</strong>.
  8995. @param in InputStrem to read from
  8996. @param out OutputStream to write to
  8997. @param conf the Configuration object]]>
  8998. </doc>
  8999. </method>
  9000. <method name="copyBytes"
  9001. abstract="false" native="false" synchronized="false"
  9002. static="true" final="false" visibility="public"
  9003. deprecated="not deprecated">
  9004. <param name="in" type="java.io.InputStream"/>
  9005. <param name="out" type="java.io.OutputStream"/>
  9006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9007. <param name="close" type="boolean"/>
  9008. <exception name="IOException" type="java.io.IOException"/>
  9009. <doc>
  9010. <![CDATA[Copies from one stream to another.
  9011. @param in InputStrem to read from
  9012. @param out OutputStream to write to
  9013. @param conf the Configuration object
  9014. @param close whether or not close the InputStream and
  9015. OutputStream at the end. The streams are closed in the finally clause.]]>
  9016. </doc>
  9017. </method>
  9018. <method name="readFully"
  9019. abstract="false" native="false" synchronized="false"
  9020. static="true" final="false" visibility="public"
  9021. deprecated="not deprecated">
  9022. <param name="in" type="java.io.InputStream"/>
  9023. <param name="buf" type="byte[]"/>
  9024. <param name="off" type="int"/>
  9025. <param name="len" type="int"/>
  9026. <exception name="IOException" type="java.io.IOException"/>
  9027. <doc>
  9028. <![CDATA[Reads len bytes in a loop.
  9029. @param in The InputStream to read from
  9030. @param buf The buffer to fill
  9031. @param off offset from the buffer
  9032. @param len the length of bytes to read
  9033. @throws IOException if it could not read requested number of bytes
  9034. for any reason (including EOF)]]>
  9035. </doc>
  9036. </method>
  9037. <method name="skipFully"
  9038. abstract="false" native="false" synchronized="false"
  9039. static="true" final="false" visibility="public"
  9040. deprecated="not deprecated">
  9041. <param name="in" type="java.io.InputStream"/>
  9042. <param name="len" type="long"/>
  9043. <exception name="IOException" type="java.io.IOException"/>
  9044. <doc>
  9045. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  9046. @param in The InputStream to skip bytes from
  9047. @param len number of bytes to skip.
  9048. @throws IOException if it could not skip requested number of bytes
  9049. for any reason (including EOF)]]>
  9050. </doc>
  9051. </method>
  9052. <method name="cleanup"
  9053. abstract="false" native="false" synchronized="false"
  9054. static="true" final="false" visibility="public"
  9055. deprecated="not deprecated">
  9056. <param name="log" type="org.apache.commons.logging.Log"/>
  9057. <param name="closeables" type="java.io.Closeable[]"/>
  9058. <doc>
  9059. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  9060. null pointers. Must only be used for cleanup in exception handlers.
  9061. @param log the log to record problems to at debug level. Can be null.
  9062. @param closeables the objects to close]]>
  9063. </doc>
  9064. </method>
  9065. <method name="closeStream"
  9066. abstract="false" native="false" synchronized="false"
  9067. static="true" final="false" visibility="public"
  9068. deprecated="not deprecated">
  9069. <param name="stream" type="java.io.Closeable"/>
  9070. <doc>
  9071. <![CDATA[Closes the stream ignoring {@link IOException}.
  9072. Must only be called in cleaning up from exception handlers.
  9073. @param stream the Stream to close]]>
  9074. </doc>
  9075. </method>
  9076. <method name="closeSocket"
  9077. abstract="false" native="false" synchronized="false"
  9078. static="true" final="false" visibility="public"
  9079. deprecated="not deprecated">
  9080. <param name="sock" type="java.net.Socket"/>
  9081. <doc>
  9082. <![CDATA[Closes the socket ignoring {@link IOException}
  9083. @param sock the Socket to close]]>
  9084. </doc>
  9085. </method>
  9086. <doc>
  9087. <![CDATA[An utility class for I/O related functionality.]]>
  9088. </doc>
  9089. </class>
  9090. <!-- end class org.apache.hadoop.io.IOUtils -->
  9091. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  9092. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  9093. abstract="false"
  9094. static="true" final="false" visibility="public"
  9095. deprecated="not deprecated">
  9096. <constructor name="IOUtils.NullOutputStream"
  9097. static="false" final="false" visibility="public"
  9098. deprecated="not deprecated">
  9099. </constructor>
  9100. <method name="write"
  9101. abstract="false" native="false" synchronized="false"
  9102. static="false" final="false" visibility="public"
  9103. deprecated="not deprecated">
  9104. <param name="b" type="byte[]"/>
  9105. <param name="off" type="int"/>
  9106. <param name="len" type="int"/>
  9107. <exception name="IOException" type="java.io.IOException"/>
  9108. </method>
  9109. <method name="write"
  9110. abstract="false" native="false" synchronized="false"
  9111. static="false" final="false" visibility="public"
  9112. deprecated="not deprecated">
  9113. <param name="b" type="int"/>
  9114. <exception name="IOException" type="java.io.IOException"/>
  9115. </method>
  9116. <doc>
  9117. <![CDATA[/dev/null of OutputStreams.]]>
  9118. </doc>
  9119. </class>
  9120. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  9121. <!-- start class org.apache.hadoop.io.LongWritable -->
  9122. <class name="LongWritable" extends="java.lang.Object"
  9123. abstract="false"
  9124. static="false" final="false" visibility="public"
  9125. deprecated="not deprecated">
  9126. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9127. <constructor name="LongWritable"
  9128. static="false" final="false" visibility="public"
  9129. deprecated="not deprecated">
  9130. </constructor>
  9131. <constructor name="LongWritable" type="long"
  9132. static="false" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. </constructor>
  9135. <method name="set"
  9136. abstract="false" native="false" synchronized="false"
  9137. static="false" final="false" visibility="public"
  9138. deprecated="not deprecated">
  9139. <param name="value" type="long"/>
  9140. <doc>
  9141. <![CDATA[Set the value of this LongWritable.]]>
  9142. </doc>
  9143. </method>
  9144. <method name="get" return="long"
  9145. abstract="false" native="false" synchronized="false"
  9146. static="false" final="false" visibility="public"
  9147. deprecated="not deprecated">
  9148. <doc>
  9149. <![CDATA[Return the value of this LongWritable.]]>
  9150. </doc>
  9151. </method>
  9152. <method name="readFields"
  9153. abstract="false" native="false" synchronized="false"
  9154. static="false" final="false" visibility="public"
  9155. deprecated="not deprecated">
  9156. <param name="in" type="java.io.DataInput"/>
  9157. <exception name="IOException" type="java.io.IOException"/>
  9158. </method>
  9159. <method name="write"
  9160. abstract="false" native="false" synchronized="false"
  9161. static="false" final="false" visibility="public"
  9162. deprecated="not deprecated">
  9163. <param name="out" type="java.io.DataOutput"/>
  9164. <exception name="IOException" type="java.io.IOException"/>
  9165. </method>
  9166. <method name="equals" return="boolean"
  9167. abstract="false" native="false" synchronized="false"
  9168. static="false" final="false" visibility="public"
  9169. deprecated="not deprecated">
  9170. <param name="o" type="java.lang.Object"/>
  9171. <doc>
  9172. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  9173. </doc>
  9174. </method>
  9175. <method name="hashCode" return="int"
  9176. abstract="false" native="false" synchronized="false"
  9177. static="false" final="false" visibility="public"
  9178. deprecated="not deprecated">
  9179. </method>
  9180. <method name="compareTo" return="int"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="false" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. <param name="o" type="java.lang.Object"/>
  9185. <doc>
  9186. <![CDATA[Compares two LongWritables.]]>
  9187. </doc>
  9188. </method>
  9189. <method name="toString" return="java.lang.String"
  9190. abstract="false" native="false" synchronized="false"
  9191. static="false" final="false" visibility="public"
  9192. deprecated="not deprecated">
  9193. </method>
  9194. <doc>
  9195. <![CDATA[A WritableComparable for longs.]]>
  9196. </doc>
  9197. </class>
  9198. <!-- end class org.apache.hadoop.io.LongWritable -->
  9199. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  9200. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9201. abstract="false"
  9202. static="true" final="false" visibility="public"
  9203. deprecated="not deprecated">
  9204. <constructor name="LongWritable.Comparator"
  9205. static="false" final="false" visibility="public"
  9206. deprecated="not deprecated">
  9207. </constructor>
  9208. <method name="compare" return="int"
  9209. abstract="false" native="false" synchronized="false"
  9210. static="false" final="false" visibility="public"
  9211. deprecated="not deprecated">
  9212. <param name="b1" type="byte[]"/>
  9213. <param name="s1" type="int"/>
  9214. <param name="l1" type="int"/>
  9215. <param name="b2" type="byte[]"/>
  9216. <param name="s2" type="int"/>
  9217. <param name="l2" type="int"/>
  9218. </method>
  9219. <doc>
  9220. <![CDATA[A Comparator optimized for LongWritable.]]>
  9221. </doc>
  9222. </class>
  9223. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  9224. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  9225. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  9226. abstract="false"
  9227. static="true" final="false" visibility="public"
  9228. deprecated="not deprecated">
  9229. <constructor name="LongWritable.DecreasingComparator"
  9230. static="false" final="false" visibility="public"
  9231. deprecated="not deprecated">
  9232. </constructor>
  9233. <method name="compare" return="int"
  9234. abstract="false" native="false" synchronized="false"
  9235. static="false" final="false" visibility="public"
  9236. deprecated="not deprecated">
  9237. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  9238. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  9239. </method>
  9240. <method name="compare" return="int"
  9241. abstract="false" native="false" synchronized="false"
  9242. static="false" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <param name="b1" type="byte[]"/>
  9245. <param name="s1" type="int"/>
  9246. <param name="l1" type="int"/>
  9247. <param name="b2" type="byte[]"/>
  9248. <param name="s2" type="int"/>
  9249. <param name="l2" type="int"/>
  9250. </method>
  9251. <doc>
  9252. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  9253. </doc>
  9254. </class>
  9255. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  9256. <!-- start class org.apache.hadoop.io.MapFile -->
  9257. <class name="MapFile" extends="java.lang.Object"
  9258. abstract="false"
  9259. static="false" final="false" visibility="public"
  9260. deprecated="not deprecated">
  9261. <constructor name="MapFile"
  9262. static="false" final="false" visibility="protected"
  9263. deprecated="not deprecated">
  9264. </constructor>
  9265. <method name="rename"
  9266. abstract="false" native="false" synchronized="false"
  9267. static="true" final="false" visibility="public"
  9268. deprecated="not deprecated">
  9269. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9270. <param name="oldName" type="java.lang.String"/>
  9271. <param name="newName" type="java.lang.String"/>
  9272. <exception name="IOException" type="java.io.IOException"/>
  9273. <doc>
  9274. <![CDATA[Renames an existing map directory.]]>
  9275. </doc>
  9276. </method>
  9277. <method name="delete"
  9278. abstract="false" native="false" synchronized="false"
  9279. static="true" final="false" visibility="public"
  9280. deprecated="not deprecated">
  9281. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9282. <param name="name" type="java.lang.String"/>
  9283. <exception name="IOException" type="java.io.IOException"/>
  9284. <doc>
  9285. <![CDATA[Deletes the named map file.]]>
  9286. </doc>
  9287. </method>
  9288. <method name="fix" return="long"
  9289. abstract="false" native="false" synchronized="false"
  9290. static="true" final="false" visibility="public"
  9291. deprecated="not deprecated">
  9292. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9293. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9294. <param name="keyClass" type="java.lang.Class"/>
  9295. <param name="valueClass" type="java.lang.Class"/>
  9296. <param name="dryrun" type="boolean"/>
  9297. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9298. <exception name="Exception" type="java.lang.Exception"/>
  9299. <doc>
  9300. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  9301. @param fs filesystem
  9302. @param dir directory containing the MapFile data and index
  9303. @param keyClass key class (has to be a subclass of Writable)
  9304. @param valueClass value class (has to be a subclass of Writable)
  9305. @param dryrun do not perform any changes, just report what needs to be done
  9306. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  9307. @throws Exception]]>
  9308. </doc>
  9309. </method>
  9310. <method name="main"
  9311. abstract="false" native="false" synchronized="false"
  9312. static="true" final="false" visibility="public"
  9313. deprecated="not deprecated">
  9314. <param name="args" type="java.lang.String[]"/>
  9315. <exception name="Exception" type="java.lang.Exception"/>
  9316. </method>
  9317. <field name="INDEX_FILE_NAME" type="java.lang.String"
  9318. transient="false" volatile="false"
  9319. static="true" final="true" visibility="public"
  9320. deprecated="not deprecated">
  9321. <doc>
  9322. <![CDATA[The name of the index file.]]>
  9323. </doc>
  9324. </field>
  9325. <field name="DATA_FILE_NAME" type="java.lang.String"
  9326. transient="false" volatile="false"
  9327. static="true" final="true" visibility="public"
  9328. deprecated="not deprecated">
  9329. <doc>
  9330. <![CDATA[The name of the data file.]]>
  9331. </doc>
  9332. </field>
  9333. <doc>
  9334. <![CDATA[A file-based map from keys to values.
  9335. <p>A map is a directory containing two files, the <code>data</code> file,
  9336. containing all keys and values in the map, and a smaller <code>index</code>
  9337. file, containing a fraction of the keys. The fraction is determined by
  9338. {@link Writer#getIndexInterval()}.
  9339. <p>The index file is read entirely into memory. Thus key implementations
  9340. should try to keep themselves small.
  9341. <p>Map files are created by adding entries in-order. To maintain a large
  9342. database, perform updates by copying the previous version of a database and
  9343. merging in a sorted change list, to create a new version of the database in
  9344. a new file. Sorting large change lists can be done with {@link
  9345. SequenceFile.Sorter}.]]>
  9346. </doc>
  9347. </class>
  9348. <!-- end class org.apache.hadoop.io.MapFile -->
  9349. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  9350. <class name="MapFile.Reader" extends="java.lang.Object"
  9351. abstract="false"
  9352. static="true" final="false" visibility="public"
  9353. deprecated="not deprecated">
  9354. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  9355. static="false" final="false" visibility="public"
  9356. deprecated="not deprecated">
  9357. <exception name="IOException" type="java.io.IOException"/>
  9358. <doc>
  9359. <![CDATA[Construct a map reader for the named map.]]>
  9360. </doc>
  9361. </constructor>
  9362. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  9363. static="false" final="false" visibility="public"
  9364. deprecated="not deprecated">
  9365. <exception name="IOException" type="java.io.IOException"/>
  9366. <doc>
  9367. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  9368. </doc>
  9369. </constructor>
  9370. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  9371. static="false" final="false" visibility="protected"
  9372. deprecated="not deprecated">
  9373. <exception name="IOException" type="java.io.IOException"/>
  9374. <doc>
  9375. <![CDATA[Hook to allow subclasses to defer opening streams until further
  9376. initialization is complete.
  9377. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  9378. </doc>
  9379. </constructor>
  9380. <method name="getKeyClass" return="java.lang.Class"
  9381. abstract="false" native="false" synchronized="false"
  9382. static="false" final="false" visibility="public"
  9383. deprecated="not deprecated">
  9384. <doc>
  9385. <![CDATA[Returns the class of keys in this file.]]>
  9386. </doc>
  9387. </method>
  9388. <method name="getValueClass" return="java.lang.Class"
  9389. abstract="false" native="false" synchronized="false"
  9390. static="false" final="false" visibility="public"
  9391. deprecated="not deprecated">
  9392. <doc>
  9393. <![CDATA[Returns the class of values in this file.]]>
  9394. </doc>
  9395. </method>
  9396. <method name="open"
  9397. abstract="false" native="false" synchronized="true"
  9398. static="false" final="false" visibility="protected"
  9399. deprecated="not deprecated">
  9400. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9401. <param name="dirName" type="java.lang.String"/>
  9402. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  9403. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9404. <exception name="IOException" type="java.io.IOException"/>
  9405. </method>
  9406. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  9407. abstract="false" native="false" synchronized="false"
  9408. static="false" final="false" visibility="protected"
  9409. deprecated="not deprecated">
  9410. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9411. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  9412. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9413. <exception name="IOException" type="java.io.IOException"/>
  9414. <doc>
  9415. <![CDATA[Override this method to specialize the type of
  9416. {@link SequenceFile.Reader} returned.]]>
  9417. </doc>
  9418. </method>
  9419. <method name="reset"
  9420. abstract="false" native="false" synchronized="true"
  9421. static="false" final="false" visibility="public"
  9422. deprecated="not deprecated">
  9423. <exception name="IOException" type="java.io.IOException"/>
  9424. <doc>
  9425. <![CDATA[Re-positions the reader before its first key.]]>
  9426. </doc>
  9427. </method>
  9428. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  9429. abstract="false" native="false" synchronized="true"
  9430. static="false" final="false" visibility="public"
  9431. deprecated="not deprecated">
  9432. <exception name="IOException" type="java.io.IOException"/>
  9433. <doc>
  9434. <![CDATA[Get the key at approximately the middle of the file.
  9435. @throws IOException]]>
  9436. </doc>
  9437. </method>
  9438. <method name="finalKey"
  9439. abstract="false" native="false" synchronized="true"
  9440. static="false" final="false" visibility="public"
  9441. deprecated="not deprecated">
  9442. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9443. <exception name="IOException" type="java.io.IOException"/>
  9444. <doc>
  9445. <![CDATA[Reads the final key from the file.
  9446. @param key key to read into]]>
  9447. </doc>
  9448. </method>
  9449. <method name="seek" return="boolean"
  9450. abstract="false" native="false" synchronized="true"
  9451. static="false" final="false" visibility="public"
  9452. deprecated="not deprecated">
  9453. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9454. <exception name="IOException" type="java.io.IOException"/>
  9455. <doc>
  9456. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  9457. first entry after the named key. Returns true iff the named key exists
  9458. in this map.]]>
  9459. </doc>
  9460. </method>
  9461. <method name="next" return="boolean"
  9462. abstract="false" native="false" synchronized="true"
  9463. static="false" final="false" visibility="public"
  9464. deprecated="not deprecated">
  9465. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9466. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9467. <exception name="IOException" type="java.io.IOException"/>
  9468. <doc>
  9469. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  9470. <code>val</code>. Returns true if such a pair exists and false when at
  9471. the end of the map]]>
  9472. </doc>
  9473. </method>
  9474. <method name="get" return="org.apache.hadoop.io.Writable"
  9475. abstract="false" native="false" synchronized="true"
  9476. static="false" final="false" visibility="public"
  9477. deprecated="not deprecated">
  9478. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9479. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9480. <exception name="IOException" type="java.io.IOException"/>
  9481. <doc>
  9482. <![CDATA[Return the value for the named key, or null if none exists.]]>
  9483. </doc>
  9484. </method>
  9485. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  9486. abstract="false" native="false" synchronized="true"
  9487. static="false" final="false" visibility="public"
  9488. deprecated="not deprecated">
  9489. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9490. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9491. <exception name="IOException" type="java.io.IOException"/>
  9492. <doc>
  9493. <![CDATA[Finds the record that is the closest match to the specified key.
  9494. Returns <code>key</code> or if it does not exist, at the first entry
  9495. after the named key.
  9496. - * @param key - key that we're trying to find
  9497. - * @param val - data value if key is found
  9498. - * @return - the key that was the closest match or null if eof.]]>
  9499. </doc>
  9500. </method>
  9501. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  9502. abstract="false" native="false" synchronized="true"
  9503. static="false" final="false" visibility="public"
  9504. deprecated="not deprecated">
  9505. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9506. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9507. <param name="before" type="boolean"/>
  9508. <exception name="IOException" type="java.io.IOException"/>
  9509. <doc>
  9510. <![CDATA[Finds the record that is the closest match to the specified key.
  9511. @param key - key that we're trying to find
  9512. @param val - data value if key is found
  9513. @param before - IF true, and <code>key</code> does not exist, return
  9514. the first entry that falls just before the <code>key</code>. Otherwise,
  9515. return the record that sorts just after.
  9516. @return - the key that was the closest match or null if eof.]]>
  9517. </doc>
  9518. </method>
  9519. <method name="close"
  9520. abstract="false" native="false" synchronized="true"
  9521. static="false" final="false" visibility="public"
  9522. deprecated="not deprecated">
  9523. <exception name="IOException" type="java.io.IOException"/>
  9524. <doc>
  9525. <![CDATA[Close the map.]]>
  9526. </doc>
  9527. </method>
  9528. <doc>
  9529. <![CDATA[Provide access to an existing map.]]>
  9530. </doc>
  9531. </class>
  9532. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  9533. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  9534. <class name="MapFile.Writer" extends="java.lang.Object"
  9535. abstract="false"
  9536. static="true" final="false" visibility="public"
  9537. deprecated="not deprecated">
  9538. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  9539. static="false" final="false" visibility="public"
  9540. deprecated="not deprecated">
  9541. <exception name="IOException" type="java.io.IOException"/>
  9542. <doc>
  9543. <![CDATA[Create the named map for keys of the named class.]]>
  9544. </doc>
  9545. </constructor>
  9546. <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"
  9547. static="false" final="false" visibility="public"
  9548. deprecated="not deprecated">
  9549. <exception name="IOException" type="java.io.IOException"/>
  9550. <doc>
  9551. <![CDATA[Create the named map for keys of the named class.]]>
  9552. </doc>
  9553. </constructor>
  9554. <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"
  9555. static="false" final="false" visibility="public"
  9556. deprecated="not deprecated">
  9557. <exception name="IOException" type="java.io.IOException"/>
  9558. <doc>
  9559. <![CDATA[Create the named map for keys of the named class.]]>
  9560. </doc>
  9561. </constructor>
  9562. <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"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. <doc>
  9567. <![CDATA[Create the named map for keys of the named class.]]>
  9568. </doc>
  9569. </constructor>
  9570. <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"
  9571. static="false" final="false" visibility="public"
  9572. deprecated="not deprecated">
  9573. <exception name="IOException" type="java.io.IOException"/>
  9574. <doc>
  9575. <![CDATA[Create the named map using the named key comparator.]]>
  9576. </doc>
  9577. </constructor>
  9578. <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"
  9579. static="false" final="false" visibility="public"
  9580. deprecated="not deprecated">
  9581. <exception name="IOException" type="java.io.IOException"/>
  9582. <doc>
  9583. <![CDATA[Create the named map using the named key comparator.]]>
  9584. </doc>
  9585. </constructor>
  9586. <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"
  9587. static="false" final="false" visibility="public"
  9588. deprecated="not deprecated">
  9589. <exception name="IOException" type="java.io.IOException"/>
  9590. <doc>
  9591. <![CDATA[Create the named map using the named key comparator.]]>
  9592. </doc>
  9593. </constructor>
  9594. <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"
  9595. static="false" final="false" visibility="public"
  9596. deprecated="not deprecated">
  9597. <exception name="IOException" type="java.io.IOException"/>
  9598. <doc>
  9599. <![CDATA[Create the named map using the named key comparator.]]>
  9600. </doc>
  9601. </constructor>
  9602. <method name="getIndexInterval" return="int"
  9603. abstract="false" native="false" synchronized="false"
  9604. static="false" final="false" visibility="public"
  9605. deprecated="not deprecated">
  9606. <doc>
  9607. <![CDATA[The number of entries that are added before an index entry is added.]]>
  9608. </doc>
  9609. </method>
  9610. <method name="setIndexInterval"
  9611. abstract="false" native="false" synchronized="false"
  9612. static="false" final="false" visibility="public"
  9613. deprecated="not deprecated">
  9614. <param name="interval" type="int"/>
  9615. <doc>
  9616. <![CDATA[Sets the index interval.
  9617. @see #getIndexInterval()]]>
  9618. </doc>
  9619. </method>
  9620. <method name="setIndexInterval"
  9621. abstract="false" native="false" synchronized="false"
  9622. static="true" final="false" visibility="public"
  9623. deprecated="not deprecated">
  9624. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9625. <param name="interval" type="int"/>
  9626. <doc>
  9627. <![CDATA[Sets the index interval and stores it in conf
  9628. @see #getIndexInterval()]]>
  9629. </doc>
  9630. </method>
  9631. <method name="close"
  9632. abstract="false" native="false" synchronized="true"
  9633. static="false" final="false" visibility="public"
  9634. deprecated="not deprecated">
  9635. <exception name="IOException" type="java.io.IOException"/>
  9636. <doc>
  9637. <![CDATA[Close the map.]]>
  9638. </doc>
  9639. </method>
  9640. <method name="append"
  9641. abstract="false" native="false" synchronized="true"
  9642. static="false" final="false" visibility="public"
  9643. deprecated="not deprecated">
  9644. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  9645. <param name="val" type="org.apache.hadoop.io.Writable"/>
  9646. <exception name="IOException" type="java.io.IOException"/>
  9647. <doc>
  9648. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  9649. to the previous key added to the map.]]>
  9650. </doc>
  9651. </method>
  9652. <doc>
  9653. <![CDATA[Writes a new map.]]>
  9654. </doc>
  9655. </class>
  9656. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  9657. <!-- start class org.apache.hadoop.io.MapWritable -->
  9658. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  9659. abstract="false"
  9660. static="false" final="false" visibility="public"
  9661. deprecated="not deprecated">
  9662. <implements name="java.util.Map&lt;org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable&gt;"/>
  9663. <constructor name="MapWritable"
  9664. static="false" final="false" visibility="public"
  9665. deprecated="not deprecated">
  9666. <doc>
  9667. <![CDATA[Default constructor.]]>
  9668. </doc>
  9669. </constructor>
  9670. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  9671. static="false" final="false" visibility="public"
  9672. deprecated="not deprecated">
  9673. <doc>
  9674. <![CDATA[Copy constructor.
  9675. @param other the map to copy from]]>
  9676. </doc>
  9677. </constructor>
  9678. <method name="clear"
  9679. abstract="false" native="false" synchronized="false"
  9680. static="false" final="false" visibility="public"
  9681. deprecated="not deprecated">
  9682. <doc>
  9683. <![CDATA[{@inheritDoc}]]>
  9684. </doc>
  9685. </method>
  9686. <method name="containsKey" return="boolean"
  9687. abstract="false" native="false" synchronized="false"
  9688. static="false" final="false" visibility="public"
  9689. deprecated="not deprecated">
  9690. <param name="key" type="java.lang.Object"/>
  9691. <doc>
  9692. <![CDATA[{@inheritDoc}]]>
  9693. </doc>
  9694. </method>
  9695. <method name="containsValue" return="boolean"
  9696. abstract="false" native="false" synchronized="false"
  9697. static="false" final="false" visibility="public"
  9698. deprecated="not deprecated">
  9699. <param name="value" type="java.lang.Object"/>
  9700. <doc>
  9701. <![CDATA[{@inheritDoc}]]>
  9702. </doc>
  9703. </method>
  9704. <method name="entrySet" return="java.util.Set&lt;java.util.Map.Entry&lt;org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable&gt;&gt;"
  9705. abstract="false" native="false" synchronized="false"
  9706. static="false" final="false" visibility="public"
  9707. deprecated="not deprecated">
  9708. <doc>
  9709. <![CDATA[{@inheritDoc}]]>
  9710. </doc>
  9711. </method>
  9712. <method name="get" return="org.apache.hadoop.io.Writable"
  9713. abstract="false" native="false" synchronized="false"
  9714. static="false" final="false" visibility="public"
  9715. deprecated="not deprecated">
  9716. <param name="key" type="java.lang.Object"/>
  9717. <doc>
  9718. <![CDATA[{@inheritDoc}]]>
  9719. </doc>
  9720. </method>
  9721. <method name="isEmpty" return="boolean"
  9722. abstract="false" native="false" synchronized="false"
  9723. static="false" final="false" visibility="public"
  9724. deprecated="not deprecated">
  9725. <doc>
  9726. <![CDATA[{@inheritDoc}]]>
  9727. </doc>
  9728. </method>
  9729. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.Writable&gt;"
  9730. abstract="false" native="false" synchronized="false"
  9731. static="false" final="false" visibility="public"
  9732. deprecated="not deprecated">
  9733. <doc>
  9734. <![CDATA[{@inheritDoc}]]>
  9735. </doc>
  9736. </method>
  9737. <method name="put" return="org.apache.hadoop.io.Writable"
  9738. abstract="false" native="false" synchronized="false"
  9739. static="false" final="false" visibility="public"
  9740. deprecated="not deprecated">
  9741. <param name="key" type="org.apache.hadoop.io.Writable"/>
  9742. <param name="value" type="org.apache.hadoop.io.Writable"/>
  9743. <doc>
  9744. <![CDATA[{@inheritDoc}]]>
  9745. </doc>
  9746. </method>
  9747. <method name="putAll"
  9748. abstract="false" native="false" synchronized="false"
  9749. static="false" final="false" visibility="public"
  9750. deprecated="not deprecated">
  9751. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.Writable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  9752. <doc>
  9753. <![CDATA[{@inheritDoc}]]>
  9754. </doc>
  9755. </method>
  9756. <method name="remove" return="org.apache.hadoop.io.Writable"
  9757. abstract="false" native="false" synchronized="false"
  9758. static="false" final="false" visibility="public"
  9759. deprecated="not deprecated">
  9760. <param name="key" type="java.lang.Object"/>
  9761. <doc>
  9762. <![CDATA[{@inheritDoc}]]>
  9763. </doc>
  9764. </method>
  9765. <method name="size" return="int"
  9766. abstract="false" native="false" synchronized="false"
  9767. static="false" final="false" visibility="public"
  9768. deprecated="not deprecated">
  9769. <doc>
  9770. <![CDATA[{@inheritDoc}]]>
  9771. </doc>
  9772. </method>
  9773. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  9774. abstract="false" native="false" synchronized="false"
  9775. static="false" final="false" visibility="public"
  9776. deprecated="not deprecated">
  9777. <doc>
  9778. <![CDATA[{@inheritDoc}]]>
  9779. </doc>
  9780. </method>
  9781. <method name="write"
  9782. abstract="false" native="false" synchronized="false"
  9783. static="false" final="false" visibility="public"
  9784. deprecated="not deprecated">
  9785. <param name="out" type="java.io.DataOutput"/>
  9786. <exception name="IOException" type="java.io.IOException"/>
  9787. <doc>
  9788. <![CDATA[{@inheritDoc}]]>
  9789. </doc>
  9790. </method>
  9791. <method name="readFields"
  9792. abstract="false" native="false" synchronized="false"
  9793. static="false" final="false" visibility="public"
  9794. deprecated="not deprecated">
  9795. <param name="in" type="java.io.DataInput"/>
  9796. <exception name="IOException" type="java.io.IOException"/>
  9797. <doc>
  9798. <![CDATA[{@inheritDoc}]]>
  9799. </doc>
  9800. </method>
  9801. <doc>
  9802. <![CDATA[A Writable Map.]]>
  9803. </doc>
  9804. </class>
  9805. <!-- end class org.apache.hadoop.io.MapWritable -->
  9806. <!-- start class org.apache.hadoop.io.MD5Hash -->
  9807. <class name="MD5Hash" extends="java.lang.Object"
  9808. abstract="false"
  9809. static="false" final="false" visibility="public"
  9810. deprecated="not deprecated">
  9811. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9812. <constructor name="MD5Hash"
  9813. static="false" final="false" visibility="public"
  9814. deprecated="not deprecated">
  9815. <doc>
  9816. <![CDATA[Constructs an MD5Hash.]]>
  9817. </doc>
  9818. </constructor>
  9819. <constructor name="MD5Hash" type="java.lang.String"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. <doc>
  9823. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  9824. </doc>
  9825. </constructor>
  9826. <constructor name="MD5Hash" type="byte[]"
  9827. static="false" final="false" visibility="public"
  9828. deprecated="not deprecated">
  9829. <doc>
  9830. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  9831. </doc>
  9832. </constructor>
  9833. <method name="readFields"
  9834. abstract="false" native="false" synchronized="false"
  9835. static="false" final="false" visibility="public"
  9836. deprecated="not deprecated">
  9837. <param name="in" type="java.io.DataInput"/>
  9838. <exception name="IOException" type="java.io.IOException"/>
  9839. </method>
  9840. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  9841. abstract="false" native="false" synchronized="false"
  9842. static="true" final="false" visibility="public"
  9843. deprecated="not deprecated">
  9844. <param name="in" type="java.io.DataInput"/>
  9845. <exception name="IOException" type="java.io.IOException"/>
  9846. <doc>
  9847. <![CDATA[Constructs, reads and returns an instance.]]>
  9848. </doc>
  9849. </method>
  9850. <method name="write"
  9851. abstract="false" native="false" synchronized="false"
  9852. static="false" final="false" visibility="public"
  9853. deprecated="not deprecated">
  9854. <param name="out" type="java.io.DataOutput"/>
  9855. <exception name="IOException" type="java.io.IOException"/>
  9856. </method>
  9857. <method name="set"
  9858. abstract="false" native="false" synchronized="false"
  9859. static="false" final="false" visibility="public"
  9860. deprecated="not deprecated">
  9861. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  9862. <doc>
  9863. <![CDATA[Copy the contents of another instance into this instance.]]>
  9864. </doc>
  9865. </method>
  9866. <method name="getDigest" return="byte[]"
  9867. abstract="false" native="false" synchronized="false"
  9868. static="false" final="false" visibility="public"
  9869. deprecated="not deprecated">
  9870. <doc>
  9871. <![CDATA[Returns the digest bytes.]]>
  9872. </doc>
  9873. </method>
  9874. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  9875. abstract="false" native="false" synchronized="false"
  9876. static="true" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. <param name="data" type="byte[]"/>
  9879. <doc>
  9880. <![CDATA[Construct a hash value for a byte array.]]>
  9881. </doc>
  9882. </method>
  9883. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  9884. abstract="false" native="false" synchronized="false"
  9885. static="true" final="false" visibility="public"
  9886. deprecated="not deprecated">
  9887. <param name="data" type="byte[]"/>
  9888. <param name="start" type="int"/>
  9889. <param name="len" type="int"/>
  9890. <doc>
  9891. <![CDATA[Construct a hash value for a byte array.]]>
  9892. </doc>
  9893. </method>
  9894. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  9895. abstract="false" native="false" synchronized="false"
  9896. static="true" final="false" visibility="public"
  9897. deprecated="not deprecated">
  9898. <param name="string" type="java.lang.String"/>
  9899. <doc>
  9900. <![CDATA[Construct a hash value for a String.]]>
  9901. </doc>
  9902. </method>
  9903. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  9904. abstract="false" native="false" synchronized="false"
  9905. static="true" final="false" visibility="public"
  9906. deprecated="not deprecated">
  9907. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  9908. <doc>
  9909. <![CDATA[Construct a hash value for a String.]]>
  9910. </doc>
  9911. </method>
  9912. <method name="halfDigest" return="long"
  9913. abstract="false" native="false" synchronized="false"
  9914. static="false" final="false" visibility="public"
  9915. deprecated="not deprecated">
  9916. <doc>
  9917. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  9918. </doc>
  9919. </method>
  9920. <method name="quarterDigest" return="int"
  9921. abstract="false" native="false" synchronized="false"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <doc>
  9925. <![CDATA[Return a 32-bit digest of the MD5.
  9926. @return the first 4 bytes of the md5]]>
  9927. </doc>
  9928. </method>
  9929. <method name="equals" return="boolean"
  9930. abstract="false" native="false" synchronized="false"
  9931. static="false" final="false" visibility="public"
  9932. deprecated="not deprecated">
  9933. <param name="o" type="java.lang.Object"/>
  9934. <doc>
  9935. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  9936. same values.]]>
  9937. </doc>
  9938. </method>
  9939. <method name="hashCode" return="int"
  9940. abstract="false" native="false" synchronized="false"
  9941. static="false" final="false" visibility="public"
  9942. deprecated="not deprecated">
  9943. <doc>
  9944. <![CDATA[Returns a hash code value for this object.
  9945. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  9946. </doc>
  9947. </method>
  9948. <method name="compareTo" return="int"
  9949. abstract="false" native="false" synchronized="false"
  9950. static="false" final="false" visibility="public"
  9951. deprecated="not deprecated">
  9952. <param name="o" type="java.lang.Object"/>
  9953. <doc>
  9954. <![CDATA[Compares this object with the specified object for order.]]>
  9955. </doc>
  9956. </method>
  9957. <method name="toString" return="java.lang.String"
  9958. abstract="false" native="false" synchronized="false"
  9959. static="false" final="false" visibility="public"
  9960. deprecated="not deprecated">
  9961. <doc>
  9962. <![CDATA[Returns a string representation of this object.]]>
  9963. </doc>
  9964. </method>
  9965. <method name="setDigest"
  9966. abstract="false" native="false" synchronized="false"
  9967. static="false" final="false" visibility="public"
  9968. deprecated="not deprecated">
  9969. <param name="hex" type="java.lang.String"/>
  9970. <doc>
  9971. <![CDATA[Sets the digest value from a hex string.]]>
  9972. </doc>
  9973. </method>
  9974. <field name="MD5_LEN" type="int"
  9975. transient="false" volatile="false"
  9976. static="true" final="true" visibility="public"
  9977. deprecated="not deprecated">
  9978. </field>
  9979. <doc>
  9980. <![CDATA[A Writable for MD5 hash values.]]>
  9981. </doc>
  9982. </class>
  9983. <!-- end class org.apache.hadoop.io.MD5Hash -->
  9984. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  9985. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9986. abstract="false"
  9987. static="true" final="false" visibility="public"
  9988. deprecated="not deprecated">
  9989. <constructor name="MD5Hash.Comparator"
  9990. static="false" final="false" visibility="public"
  9991. deprecated="not deprecated">
  9992. </constructor>
  9993. <method name="compare" return="int"
  9994. abstract="false" native="false" synchronized="false"
  9995. static="false" final="false" visibility="public"
  9996. deprecated="not deprecated">
  9997. <param name="b1" type="byte[]"/>
  9998. <param name="s1" type="int"/>
  9999. <param name="l1" type="int"/>
  10000. <param name="b2" type="byte[]"/>
  10001. <param name="s2" type="int"/>
  10002. <param name="l2" type="int"/>
  10003. </method>
  10004. <doc>
  10005. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  10006. </doc>
  10007. </class>
  10008. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  10009. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  10010. <class name="MultipleIOException" extends="java.io.IOException"
  10011. abstract="false"
  10012. static="false" final="false" visibility="public"
  10013. deprecated="not deprecated">
  10014. <method name="getExceptions" return="java.util.List&lt;java.io.IOException&gt;"
  10015. abstract="false" native="false" synchronized="false"
  10016. static="false" final="false" visibility="public"
  10017. deprecated="not deprecated">
  10018. <doc>
  10019. <![CDATA[@return the underlying exceptions]]>
  10020. </doc>
  10021. </method>
  10022. <method name="createIOException" return="java.io.IOException"
  10023. abstract="false" native="false" synchronized="false"
  10024. static="true" final="false" visibility="public"
  10025. deprecated="not deprecated">
  10026. <param name="exceptions" type="java.util.List&lt;java.io.IOException&gt;"/>
  10027. <doc>
  10028. <![CDATA[A convenient method to create an {@link IOException}.]]>
  10029. </doc>
  10030. </method>
  10031. <doc>
  10032. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  10033. </doc>
  10034. </class>
  10035. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  10036. <!-- start class org.apache.hadoop.io.NullWritable -->
  10037. <class name="NullWritable" extends="java.lang.Object"
  10038. abstract="false"
  10039. static="false" final="false" visibility="public"
  10040. deprecated="not deprecated">
  10041. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10042. <method name="get" return="org.apache.hadoop.io.NullWritable"
  10043. abstract="false" native="false" synchronized="false"
  10044. static="true" final="false" visibility="public"
  10045. deprecated="not deprecated">
  10046. <doc>
  10047. <![CDATA[Returns the single instance of this class.]]>
  10048. </doc>
  10049. </method>
  10050. <method name="toString" return="java.lang.String"
  10051. abstract="false" native="false" synchronized="false"
  10052. static="false" final="false" visibility="public"
  10053. deprecated="not deprecated">
  10054. </method>
  10055. <method name="hashCode" return="int"
  10056. abstract="false" native="false" synchronized="false"
  10057. static="false" final="false" visibility="public"
  10058. deprecated="not deprecated">
  10059. </method>
  10060. <method name="compareTo" return="int"
  10061. abstract="false" native="false" synchronized="false"
  10062. static="false" final="false" visibility="public"
  10063. deprecated="not deprecated">
  10064. <param name="other" type="java.lang.Object"/>
  10065. </method>
  10066. <method name="equals" return="boolean"
  10067. abstract="false" native="false" synchronized="false"
  10068. static="false" final="false" visibility="public"
  10069. deprecated="not deprecated">
  10070. <param name="other" type="java.lang.Object"/>
  10071. </method>
  10072. <method name="readFields"
  10073. abstract="false" native="false" synchronized="false"
  10074. static="false" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <param name="in" type="java.io.DataInput"/>
  10077. <exception name="IOException" type="java.io.IOException"/>
  10078. </method>
  10079. <method name="write"
  10080. abstract="false" native="false" synchronized="false"
  10081. static="false" final="false" visibility="public"
  10082. deprecated="not deprecated">
  10083. <param name="out" type="java.io.DataOutput"/>
  10084. <exception name="IOException" type="java.io.IOException"/>
  10085. </method>
  10086. <doc>
  10087. <![CDATA[Singleton Writable with no data.]]>
  10088. </doc>
  10089. </class>
  10090. <!-- end class org.apache.hadoop.io.NullWritable -->
  10091. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  10092. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10093. abstract="false"
  10094. static="true" final="false" visibility="public"
  10095. deprecated="not deprecated">
  10096. <constructor name="NullWritable.Comparator"
  10097. static="false" final="false" visibility="public"
  10098. deprecated="not deprecated">
  10099. </constructor>
  10100. <method name="compare" return="int"
  10101. abstract="false" native="false" synchronized="false"
  10102. static="false" final="false" visibility="public"
  10103. deprecated="not deprecated">
  10104. <param name="b1" type="byte[]"/>
  10105. <param name="s1" type="int"/>
  10106. <param name="l1" type="int"/>
  10107. <param name="b2" type="byte[]"/>
  10108. <param name="s2" type="int"/>
  10109. <param name="l2" type="int"/>
  10110. <doc>
  10111. <![CDATA[Compare the buffers in serialized form.]]>
  10112. </doc>
  10113. </method>
  10114. <doc>
  10115. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  10116. </doc>
  10117. </class>
  10118. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  10119. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  10120. <class name="ObjectWritable" extends="java.lang.Object"
  10121. abstract="false"
  10122. static="false" final="false" visibility="public"
  10123. deprecated="not deprecated">
  10124. <implements name="org.apache.hadoop.io.Writable"/>
  10125. <implements name="org.apache.hadoop.conf.Configurable"/>
  10126. <constructor name="ObjectWritable"
  10127. static="false" final="false" visibility="public"
  10128. deprecated="not deprecated">
  10129. </constructor>
  10130. <constructor name="ObjectWritable" type="java.lang.Object"
  10131. static="false" final="false" visibility="public"
  10132. deprecated="not deprecated">
  10133. </constructor>
  10134. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  10135. static="false" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. </constructor>
  10138. <method name="get" return="java.lang.Object"
  10139. abstract="false" native="false" synchronized="false"
  10140. static="false" final="false" visibility="public"
  10141. deprecated="not deprecated">
  10142. <doc>
  10143. <![CDATA[Return the instance, or null if none.]]>
  10144. </doc>
  10145. </method>
  10146. <method name="getDeclaredClass" return="java.lang.Class"
  10147. abstract="false" native="false" synchronized="false"
  10148. static="false" final="false" visibility="public"
  10149. deprecated="not deprecated">
  10150. <doc>
  10151. <![CDATA[Return the class this is meant to be.]]>
  10152. </doc>
  10153. </method>
  10154. <method name="set"
  10155. abstract="false" native="false" synchronized="false"
  10156. static="false" final="false" visibility="public"
  10157. deprecated="not deprecated">
  10158. <param name="instance" type="java.lang.Object"/>
  10159. <doc>
  10160. <![CDATA[Reset the instance.]]>
  10161. </doc>
  10162. </method>
  10163. <method name="toString" return="java.lang.String"
  10164. abstract="false" native="false" synchronized="false"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. </method>
  10168. <method name="readFields"
  10169. abstract="false" native="false" synchronized="false"
  10170. static="false" final="false" visibility="public"
  10171. deprecated="not deprecated">
  10172. <param name="in" type="java.io.DataInput"/>
  10173. <exception name="IOException" type="java.io.IOException"/>
  10174. </method>
  10175. <method name="write"
  10176. abstract="false" native="false" synchronized="false"
  10177. static="false" final="false" visibility="public"
  10178. deprecated="not deprecated">
  10179. <param name="out" type="java.io.DataOutput"/>
  10180. <exception name="IOException" type="java.io.IOException"/>
  10181. </method>
  10182. <method name="writeObject"
  10183. abstract="false" native="false" synchronized="false"
  10184. static="true" final="false" visibility="public"
  10185. deprecated="not deprecated">
  10186. <param name="out" type="java.io.DataOutput"/>
  10187. <param name="instance" type="java.lang.Object"/>
  10188. <param name="declaredClass" type="java.lang.Class"/>
  10189. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10190. <exception name="IOException" type="java.io.IOException"/>
  10191. <doc>
  10192. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  10193. the preceding.]]>
  10194. </doc>
  10195. </method>
  10196. <method name="readObject" return="java.lang.Object"
  10197. abstract="false" native="false" synchronized="false"
  10198. static="true" final="false" visibility="public"
  10199. deprecated="not deprecated">
  10200. <param name="in" type="java.io.DataInput"/>
  10201. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10202. <exception name="IOException" type="java.io.IOException"/>
  10203. <doc>
  10204. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  10205. the preceding.]]>
  10206. </doc>
  10207. </method>
  10208. <method name="readObject" return="java.lang.Object"
  10209. abstract="false" native="false" synchronized="false"
  10210. static="true" final="false" visibility="public"
  10211. deprecated="not deprecated">
  10212. <param name="in" type="java.io.DataInput"/>
  10213. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  10214. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10215. <exception name="IOException" type="java.io.IOException"/>
  10216. <doc>
  10217. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  10218. the preceding.]]>
  10219. </doc>
  10220. </method>
  10221. <method name="setConf"
  10222. abstract="false" native="false" synchronized="false"
  10223. static="false" final="false" visibility="public"
  10224. deprecated="not deprecated">
  10225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10226. </method>
  10227. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  10228. abstract="false" native="false" synchronized="false"
  10229. static="false" final="false" visibility="public"
  10230. deprecated="not deprecated">
  10231. </method>
  10232. <doc>
  10233. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  10234. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  10235. </doc>
  10236. </class>
  10237. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  10238. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  10239. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  10240. abstract="false"
  10241. static="false" final="false" visibility="public"
  10242. deprecated="not deprecated">
  10243. <constructor name="OutputBuffer"
  10244. static="false" final="false" visibility="public"
  10245. deprecated="not deprecated">
  10246. <doc>
  10247. <![CDATA[Constructs a new empty buffer.]]>
  10248. </doc>
  10249. </constructor>
  10250. <method name="getData" return="byte[]"
  10251. abstract="false" native="false" synchronized="false"
  10252. static="false" final="false" visibility="public"
  10253. deprecated="not deprecated">
  10254. <doc>
  10255. <![CDATA[Returns the current contents of the buffer.
  10256. Data is only valid to {@link #getLength()}.]]>
  10257. </doc>
  10258. </method>
  10259. <method name="getLength" return="int"
  10260. abstract="false" native="false" synchronized="false"
  10261. static="false" final="false" visibility="public"
  10262. deprecated="not deprecated">
  10263. <doc>
  10264. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  10265. </doc>
  10266. </method>
  10267. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  10268. abstract="false" native="false" synchronized="false"
  10269. static="false" final="false" visibility="public"
  10270. deprecated="not deprecated">
  10271. <doc>
  10272. <![CDATA[Resets the buffer to empty.]]>
  10273. </doc>
  10274. </method>
  10275. <method name="write"
  10276. abstract="false" native="false" synchronized="false"
  10277. static="false" final="false" visibility="public"
  10278. deprecated="not deprecated">
  10279. <param name="in" type="java.io.InputStream"/>
  10280. <param name="length" type="int"/>
  10281. <exception name="IOException" type="java.io.IOException"/>
  10282. <doc>
  10283. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  10284. </doc>
  10285. </method>
  10286. <doc>
  10287. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  10288. buffer.
  10289. <p>This saves memory over creating a new OutputStream and
  10290. ByteArrayOutputStream each time data is written.
  10291. <p>Typical usage is something like the following:<pre>
  10292. OutputBuffer buffer = new OutputBuffer();
  10293. while (... loop condition ...) {
  10294. buffer.reset();
  10295. ... write buffer using OutputStream methods ...
  10296. byte[] data = buffer.getData();
  10297. int dataLength = buffer.getLength();
  10298. ... write data to its ultimate destination ...
  10299. }
  10300. </pre>
  10301. @see DataOutputBuffer
  10302. @see InputBuffer]]>
  10303. </doc>
  10304. </class>
  10305. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  10306. <!-- start interface org.apache.hadoop.io.RawComparator -->
  10307. <interface name="RawComparator" abstract="true"
  10308. static="false" final="false" visibility="public"
  10309. deprecated="not deprecated">
  10310. <implements name="java.util.Comparator&lt;T&gt;"/>
  10311. <method name="compare" return="int"
  10312. abstract="false" native="false" synchronized="false"
  10313. static="false" final="false" visibility="public"
  10314. deprecated="not deprecated">
  10315. <param name="b1" type="byte[]"/>
  10316. <param name="s1" type="int"/>
  10317. <param name="l1" type="int"/>
  10318. <param name="b2" type="byte[]"/>
  10319. <param name="s2" type="int"/>
  10320. <param name="l2" type="int"/>
  10321. </method>
  10322. <doc>
  10323. <![CDATA[<p>
  10324. A {@link Comparator} that operates directly on byte representations of
  10325. objects.
  10326. </p>
  10327. @param <T>
  10328. @see DeserializerComparator]]>
  10329. </doc>
  10330. </interface>
  10331. <!-- end interface org.apache.hadoop.io.RawComparator -->
  10332. <!-- start class org.apache.hadoop.io.SequenceFile -->
  10333. <class name="SequenceFile" extends="java.lang.Object"
  10334. abstract="false"
  10335. static="false" final="false" visibility="public"
  10336. deprecated="not deprecated">
  10337. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  10338. abstract="false" native="false" synchronized="false"
  10339. static="true" final="false" visibility="public"
  10340. deprecated="Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  10341. to get {@link CompressionType} for intermediate map-outputs or
  10342. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  10343. to get {@link CompressionType} for job-outputs.">
  10344. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  10345. <doc>
  10346. <![CDATA[Get the compression type for the reduce outputs
  10347. @param job the job config to look in
  10348. @return the kind of compression to use
  10349. @deprecated Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  10350. to get {@link CompressionType} for intermediate map-outputs or
  10351. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  10352. to get {@link CompressionType} for job-outputs.]]>
  10353. </doc>
  10354. </method>
  10355. <method name="setCompressionType"
  10356. abstract="false" native="false" synchronized="false"
  10357. static="true" final="false" visibility="public"
  10358. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  10359. the {@link CompressionType} while creating the {@link SequenceFile} or
  10360. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  10361. to specify the {@link CompressionType} for intermediate map-outputs or
  10362. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  10363. to specify the {@link CompressionType} for job-outputs.
  10364. or">
  10365. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  10366. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10367. <doc>
  10368. <![CDATA[Set the compression type for sequence files.
  10369. @param job the configuration to modify
  10370. @param val the new compression type (none, block, record)
  10371. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  10372. the {@link CompressionType} while creating the {@link SequenceFile} or
  10373. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  10374. to specify the {@link CompressionType} for intermediate map-outputs or
  10375. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  10376. to specify the {@link CompressionType} for job-outputs.
  10377. or]]>
  10378. </doc>
  10379. </method>
  10380. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10381. abstract="false" native="false" synchronized="false"
  10382. static="true" final="false" visibility="public"
  10383. deprecated="not deprecated">
  10384. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10386. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10387. <param name="keyClass" type="java.lang.Class"/>
  10388. <param name="valClass" type="java.lang.Class"/>
  10389. <exception name="IOException" type="java.io.IOException"/>
  10390. <doc>
  10391. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10392. @param fs The configured filesystem.
  10393. @param conf The configuration.
  10394. @param name The name of the file.
  10395. @param keyClass The 'key' type.
  10396. @param valClass The 'value' type.
  10397. @return Returns the handle to the constructed SequenceFile Writer.
  10398. @throws IOException]]>
  10399. </doc>
  10400. </method>
  10401. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10402. abstract="false" native="false" synchronized="false"
  10403. static="true" final="false" visibility="public"
  10404. deprecated="not deprecated">
  10405. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10407. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10408. <param name="keyClass" type="java.lang.Class"/>
  10409. <param name="valClass" type="java.lang.Class"/>
  10410. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10411. <exception name="IOException" type="java.io.IOException"/>
  10412. <doc>
  10413. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10414. @param fs The configured filesystem.
  10415. @param conf The configuration.
  10416. @param name The name of the file.
  10417. @param keyClass The 'key' type.
  10418. @param valClass The 'value' type.
  10419. @param compressionType The compression type.
  10420. @return Returns the handle to the constructed SequenceFile Writer.
  10421. @throws IOException]]>
  10422. </doc>
  10423. </method>
  10424. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10425. abstract="false" native="false" synchronized="false"
  10426. static="true" final="false" visibility="public"
  10427. deprecated="not deprecated">
  10428. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10429. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10430. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10431. <param name="keyClass" type="java.lang.Class"/>
  10432. <param name="valClass" type="java.lang.Class"/>
  10433. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10434. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10435. <exception name="IOException" type="java.io.IOException"/>
  10436. <doc>
  10437. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10438. @param fs The configured filesystem.
  10439. @param conf The configuration.
  10440. @param name The name of the file.
  10441. @param keyClass The 'key' type.
  10442. @param valClass The 'value' type.
  10443. @param compressionType The compression type.
  10444. @param progress The Progressable object to track progress.
  10445. @return Returns the handle to the constructed SequenceFile Writer.
  10446. @throws IOException]]>
  10447. </doc>
  10448. </method>
  10449. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10450. abstract="false" native="false" synchronized="false"
  10451. static="true" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10454. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10455. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10456. <param name="keyClass" type="java.lang.Class"/>
  10457. <param name="valClass" type="java.lang.Class"/>
  10458. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10459. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10460. <exception name="IOException" type="java.io.IOException"/>
  10461. <doc>
  10462. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10463. @param fs The configured filesystem.
  10464. @param conf The configuration.
  10465. @param name The name of the file.
  10466. @param keyClass The 'key' type.
  10467. @param valClass The 'value' type.
  10468. @param compressionType The compression type.
  10469. @param codec The compression codec.
  10470. @return Returns the handle to the constructed SequenceFile Writer.
  10471. @throws IOException]]>
  10472. </doc>
  10473. </method>
  10474. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10475. abstract="false" native="false" synchronized="false"
  10476. static="true" final="false" visibility="public"
  10477. deprecated="not deprecated">
  10478. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10479. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10480. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10481. <param name="keyClass" type="java.lang.Class"/>
  10482. <param name="valClass" type="java.lang.Class"/>
  10483. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10484. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10485. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10486. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  10487. <exception name="IOException" type="java.io.IOException"/>
  10488. <doc>
  10489. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10490. @param fs The configured filesystem.
  10491. @param conf The configuration.
  10492. @param name The name of the file.
  10493. @param keyClass The 'key' type.
  10494. @param valClass The 'value' type.
  10495. @param compressionType The compression type.
  10496. @param codec The compression codec.
  10497. @param progress The Progressable object to track progress.
  10498. @param metadata The metadata of the file.
  10499. @return Returns the handle to the constructed SequenceFile Writer.
  10500. @throws IOException]]>
  10501. </doc>
  10502. </method>
  10503. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10504. abstract="false" native="false" synchronized="false"
  10505. static="true" final="false" visibility="public"
  10506. deprecated="not deprecated">
  10507. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10508. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10509. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10510. <param name="keyClass" type="java.lang.Class"/>
  10511. <param name="valClass" type="java.lang.Class"/>
  10512. <param name="bufferSize" type="int"/>
  10513. <param name="replication" type="short"/>
  10514. <param name="blockSize" type="long"/>
  10515. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10516. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10517. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10518. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  10519. <exception name="IOException" type="java.io.IOException"/>
  10520. <doc>
  10521. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10522. @param fs The configured filesystem.
  10523. @param conf The configuration.
  10524. @param name The name of the file.
  10525. @param keyClass The 'key' type.
  10526. @param valClass The 'value' type.
  10527. @param bufferSize buffer size for the underlaying outputstream.
  10528. @param replication replication factor for the file.
  10529. @param blockSize block size for the file.
  10530. @param compressionType The compression type.
  10531. @param codec The compression codec.
  10532. @param progress The Progressable object to track progress.
  10533. @param metadata The metadata of the file.
  10534. @return Returns the handle to the constructed SequenceFile Writer.
  10535. @throws IOException]]>
  10536. </doc>
  10537. </method>
  10538. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10539. abstract="false" native="false" synchronized="false"
  10540. static="true" final="false" visibility="public"
  10541. deprecated="not deprecated">
  10542. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10543. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10544. <param name="name" type="org.apache.hadoop.fs.Path"/>
  10545. <param name="keyClass" type="java.lang.Class"/>
  10546. <param name="valClass" type="java.lang.Class"/>
  10547. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10548. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10549. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10550. <exception name="IOException" type="java.io.IOException"/>
  10551. <doc>
  10552. <![CDATA[Construct the preferred type of SequenceFile Writer.
  10553. @param fs The configured filesystem.
  10554. @param conf The configuration.
  10555. @param name The name of the file.
  10556. @param keyClass The 'key' type.
  10557. @param valClass The 'value' type.
  10558. @param compressionType The compression type.
  10559. @param codec The compression codec.
  10560. @param progress The Progressable object to track progress.
  10561. @return Returns the handle to the constructed SequenceFile Writer.
  10562. @throws IOException]]>
  10563. </doc>
  10564. </method>
  10565. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10566. abstract="false" native="false" synchronized="false"
  10567. static="true" final="false" visibility="public"
  10568. deprecated="not deprecated">
  10569. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10570. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  10571. <param name="keyClass" type="java.lang.Class"/>
  10572. <param name="valClass" type="java.lang.Class"/>
  10573. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10574. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10575. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  10576. <exception name="IOException" type="java.io.IOException"/>
  10577. <doc>
  10578. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  10579. @param conf The configuration.
  10580. @param out The stream on top which the writer is to be constructed.
  10581. @param keyClass The 'key' type.
  10582. @param valClass The 'value' type.
  10583. @param compressionType The compression type.
  10584. @param codec The compression codec.
  10585. @param metadata The metadata of the file.
  10586. @return Returns the handle to the constructed SequenceFile Writer.
  10587. @throws IOException]]>
  10588. </doc>
  10589. </method>
  10590. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  10591. abstract="false" native="false" synchronized="false"
  10592. static="true" final="false" visibility="public"
  10593. deprecated="not deprecated">
  10594. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10595. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  10596. <param name="keyClass" type="java.lang.Class"/>
  10597. <param name="valClass" type="java.lang.Class"/>
  10598. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  10599. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  10600. <exception name="IOException" type="java.io.IOException"/>
  10601. <doc>
  10602. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  10603. @param conf The configuration.
  10604. @param out The stream on top which the writer is to be constructed.
  10605. @param keyClass The 'key' type.
  10606. @param valClass The 'value' type.
  10607. @param compressionType The compression type.
  10608. @param codec The compression codec.
  10609. @return Returns the handle to the constructed SequenceFile Writer.
  10610. @throws IOException]]>
  10611. </doc>
  10612. </method>
  10613. <field name="SYNC_INTERVAL" type="int"
  10614. transient="false" volatile="false"
  10615. static="true" final="true" visibility="public"
  10616. deprecated="not deprecated">
  10617. <doc>
  10618. <![CDATA[The number of bytes between sync points.]]>
  10619. </doc>
  10620. </field>
  10621. <doc>
  10622. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  10623. pairs.
  10624. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  10625. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  10626. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  10627. {@link CompressionType} used to compress key/value pairs:
  10628. <ol>
  10629. <li>
  10630. <code>Writer</code> : Uncompressed records.
  10631. </li>
  10632. <li>
  10633. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  10634. values.
  10635. </li>
  10636. <li>
  10637. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  10638. values are collected in 'blocks'
  10639. separately and compressed. The size of
  10640. the 'block' is configurable.
  10641. </ol>
  10642. <p>The actual compression algorithm used to compress key and/or values can be
  10643. specified by using the appropriate {@link CompressionCodec}.</p>
  10644. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  10645. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  10646. <p>The {@link Reader} acts as the bridge and can read any of the above
  10647. <code>SequenceFile</code> formats.</p>
  10648. <h4 id="Formats">SequenceFile Formats</h4>
  10649. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  10650. depending on the <code>CompressionType</code> specified. All of them share a
  10651. <a href="#Header">common header</a> described below.
  10652. <h5 id="Header">SequenceFile Header</h5>
  10653. <ul>
  10654. <li>
  10655. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  10656. version number (e.g. SEQ4 or SEQ6)
  10657. </li>
  10658. <li>
  10659. keyClassName -key class
  10660. </li>
  10661. <li>
  10662. valueClassName - value class
  10663. </li>
  10664. <li>
  10665. compression - A boolean which specifies if compression is turned on for
  10666. keys/values in this file.
  10667. </li>
  10668. <li>
  10669. blockCompression - A boolean which specifies if block-compression is
  10670. turned on for keys/values in this file.
  10671. </li>
  10672. <li>
  10673. compression codec - <code>CompressionCodec</code> class which is used for
  10674. compression of keys and/or values (if compression is
  10675. enabled).
  10676. </li>
  10677. <li>
  10678. metadata - {@link Metadata} for this file.
  10679. </li>
  10680. <li>
  10681. sync - A sync marker to denote end of the header.
  10682. </li>
  10683. </ul>
  10684. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  10685. <ul>
  10686. <li>
  10687. <a href="#Header">Header</a>
  10688. </li>
  10689. <li>
  10690. Record
  10691. <ul>
  10692. <li>Record length</li>
  10693. <li>Key length</li>
  10694. <li>Key</li>
  10695. <li>Value</li>
  10696. </ul>
  10697. </li>
  10698. <li>
  10699. A sync-marker every few <code>100</code> bytes or so.
  10700. </li>
  10701. </ul>
  10702. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  10703. <ul>
  10704. <li>
  10705. <a href="#Header">Header</a>
  10706. </li>
  10707. <li>
  10708. Record
  10709. <ul>
  10710. <li>Record length</li>
  10711. <li>Key length</li>
  10712. <li>Key</li>
  10713. <li><i>Compressed</i> Value</li>
  10714. </ul>
  10715. </li>
  10716. <li>
  10717. A sync-marker every few <code>100</code> bytes or so.
  10718. </li>
  10719. </ul>
  10720. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  10721. <ul>
  10722. <li>
  10723. <a href="#Header">Header</a>
  10724. </li>
  10725. <li>
  10726. Record <i>Block</i>
  10727. <ul>
  10728. <li>Compressed key-lengths block-size</li>
  10729. <li>Compressed key-lengths block</li>
  10730. <li>Compressed keys block-size</li>
  10731. <li>Compressed keys block</li>
  10732. <li>Compressed value-lengths block-size</li>
  10733. <li>Compressed value-lengths block</li>
  10734. <li>Compressed values block-size</li>
  10735. <li>Compressed values block</li>
  10736. </ul>
  10737. </li>
  10738. <li>
  10739. A sync-marker every few <code>100</code> bytes or so.
  10740. </li>
  10741. </ul>
  10742. <p>The compressed blocks of key lengths and value lengths consist of the
  10743. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  10744. format.</p>
  10745. @see CompressionCodec]]>
  10746. </doc>
  10747. </class>
  10748. <!-- end class org.apache.hadoop.io.SequenceFile -->
  10749. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  10750. <class name="SequenceFile.CompressionType" extends="java.lang.Enum&lt;org.apache.hadoop.io.SequenceFile.CompressionType&gt;"
  10751. abstract="false"
  10752. static="true" final="true" visibility="public"
  10753. deprecated="not deprecated">
  10754. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  10755. abstract="false" native="false" synchronized="false"
  10756. static="true" final="true" visibility="public"
  10757. deprecated="not deprecated">
  10758. </method>
  10759. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  10760. abstract="false" native="false" synchronized="false"
  10761. static="true" final="false" visibility="public"
  10762. deprecated="not deprecated">
  10763. <param name="name" type="java.lang.String"/>
  10764. </method>
  10765. <doc>
  10766. <![CDATA[The compression type used to compress key/value pairs in the
  10767. {@link SequenceFile}.
  10768. @see SequenceFile.Writer]]>
  10769. </doc>
  10770. </class>
  10771. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  10772. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  10773. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  10774. abstract="false"
  10775. static="true" final="false" visibility="public"
  10776. deprecated="not deprecated">
  10777. <implements name="org.apache.hadoop.io.Writable"/>
  10778. <constructor name="SequenceFile.Metadata"
  10779. static="false" final="false" visibility="public"
  10780. deprecated="not deprecated">
  10781. </constructor>
  10782. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  10783. static="false" final="false" visibility="public"
  10784. deprecated="not deprecated">
  10785. </constructor>
  10786. <method name="get" return="org.apache.hadoop.io.Text"
  10787. abstract="false" native="false" synchronized="false"
  10788. static="false" final="false" visibility="public"
  10789. deprecated="not deprecated">
  10790. <param name="name" type="org.apache.hadoop.io.Text"/>
  10791. </method>
  10792. <method name="set"
  10793. abstract="false" native="false" synchronized="false"
  10794. static="false" final="false" visibility="public"
  10795. deprecated="not deprecated">
  10796. <param name="name" type="org.apache.hadoop.io.Text"/>
  10797. <param name="value" type="org.apache.hadoop.io.Text"/>
  10798. </method>
  10799. <method name="getMetadata" return="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  10800. abstract="false" native="false" synchronized="false"
  10801. static="false" final="false" visibility="public"
  10802. deprecated="not deprecated">
  10803. </method>
  10804. <method name="write"
  10805. abstract="false" native="false" synchronized="false"
  10806. static="false" final="false" visibility="public"
  10807. deprecated="not deprecated">
  10808. <param name="out" type="java.io.DataOutput"/>
  10809. <exception name="IOException" type="java.io.IOException"/>
  10810. </method>
  10811. <method name="readFields"
  10812. abstract="false" native="false" synchronized="false"
  10813. static="false" final="false" visibility="public"
  10814. deprecated="not deprecated">
  10815. <param name="in" type="java.io.DataInput"/>
  10816. <exception name="IOException" type="java.io.IOException"/>
  10817. </method>
  10818. <method name="equals" return="boolean"
  10819. abstract="false" native="false" synchronized="false"
  10820. static="false" final="false" visibility="public"
  10821. deprecated="not deprecated">
  10822. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  10823. </method>
  10824. <method name="hashCode" return="int"
  10825. abstract="false" native="false" synchronized="false"
  10826. static="false" final="false" visibility="public"
  10827. deprecated="not deprecated">
  10828. </method>
  10829. <method name="toString" return="java.lang.String"
  10830. abstract="false" native="false" synchronized="false"
  10831. static="false" final="false" visibility="public"
  10832. deprecated="not deprecated">
  10833. </method>
  10834. <doc>
  10835. <![CDATA[The class encapsulating with the metadata of a file.
  10836. The metadata of a file is a list of attribute name/value
  10837. pairs of Text type.]]>
  10838. </doc>
  10839. </class>
  10840. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  10841. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  10842. <class name="SequenceFile.Reader" extends="java.lang.Object"
  10843. abstract="false"
  10844. static="true" final="false" visibility="public"
  10845. deprecated="not deprecated">
  10846. <implements name="java.io.Closeable"/>
  10847. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  10848. static="false" final="false" visibility="public"
  10849. deprecated="not deprecated">
  10850. <exception name="IOException" type="java.io.IOException"/>
  10851. <doc>
  10852. <![CDATA[Open the named file.]]>
  10853. </doc>
  10854. </constructor>
  10855. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  10856. abstract="false" native="false" synchronized="false"
  10857. static="false" final="false" visibility="protected"
  10858. deprecated="not deprecated">
  10859. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10860. <param name="file" type="org.apache.hadoop.fs.Path"/>
  10861. <param name="bufferSize" type="int"/>
  10862. <param name="length" type="long"/>
  10863. <exception name="IOException" type="java.io.IOException"/>
  10864. <doc>
  10865. <![CDATA[Override this method to specialize the type of
  10866. {@link FSDataInputStream} returned.]]>
  10867. </doc>
  10868. </method>
  10869. <method name="close"
  10870. abstract="false" native="false" synchronized="true"
  10871. static="false" final="false" visibility="public"
  10872. deprecated="not deprecated">
  10873. <exception name="IOException" type="java.io.IOException"/>
  10874. <doc>
  10875. <![CDATA[Close the file.]]>
  10876. </doc>
  10877. </method>
  10878. <method name="getKeyClassName" return="java.lang.String"
  10879. abstract="false" native="false" synchronized="false"
  10880. static="false" final="false" visibility="public"
  10881. deprecated="not deprecated">
  10882. <doc>
  10883. <![CDATA[Returns the name of the key class.]]>
  10884. </doc>
  10885. </method>
  10886. <method name="getKeyClass" return="java.lang.Class"
  10887. abstract="false" native="false" synchronized="true"
  10888. static="false" final="false" visibility="public"
  10889. deprecated="not deprecated">
  10890. <doc>
  10891. <![CDATA[Returns the class of keys in this file.]]>
  10892. </doc>
  10893. </method>
  10894. <method name="getValueClassName" return="java.lang.String"
  10895. abstract="false" native="false" synchronized="false"
  10896. static="false" final="false" visibility="public"
  10897. deprecated="not deprecated">
  10898. <doc>
  10899. <![CDATA[Returns the name of the value class.]]>
  10900. </doc>
  10901. </method>
  10902. <method name="getValueClass" return="java.lang.Class"
  10903. abstract="false" native="false" synchronized="true"
  10904. static="false" final="false" visibility="public"
  10905. deprecated="not deprecated">
  10906. <doc>
  10907. <![CDATA[Returns the class of values in this file.]]>
  10908. </doc>
  10909. </method>
  10910. <method name="isCompressed" return="boolean"
  10911. abstract="false" native="false" synchronized="false"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. <doc>
  10915. <![CDATA[Returns true if values are compressed.]]>
  10916. </doc>
  10917. </method>
  10918. <method name="isBlockCompressed" return="boolean"
  10919. abstract="false" native="false" synchronized="false"
  10920. static="false" final="false" visibility="public"
  10921. deprecated="not deprecated">
  10922. <doc>
  10923. <![CDATA[Returns true if records are block-compressed.]]>
  10924. </doc>
  10925. </method>
  10926. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  10927. abstract="false" native="false" synchronized="false"
  10928. static="false" final="false" visibility="public"
  10929. deprecated="not deprecated">
  10930. <doc>
  10931. <![CDATA[Returns the compression codec of data in this file.]]>
  10932. </doc>
  10933. </method>
  10934. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  10935. abstract="false" native="false" synchronized="false"
  10936. static="false" final="false" visibility="public"
  10937. deprecated="not deprecated">
  10938. <doc>
  10939. <![CDATA[Returns the metadata object of the file]]>
  10940. </doc>
  10941. </method>
  10942. <method name="getCurrentValue"
  10943. abstract="false" native="false" synchronized="true"
  10944. static="false" final="false" visibility="public"
  10945. deprecated="not deprecated">
  10946. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10947. <exception name="IOException" type="java.io.IOException"/>
  10948. <doc>
  10949. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  10950. @param val : The 'value' to be read.
  10951. @throws IOException]]>
  10952. </doc>
  10953. </method>
  10954. <method name="getCurrentValue" return="java.lang.Object"
  10955. abstract="false" native="false" synchronized="true"
  10956. static="false" final="false" visibility="public"
  10957. deprecated="not deprecated">
  10958. <param name="val" type="java.lang.Object"/>
  10959. <exception name="IOException" type="java.io.IOException"/>
  10960. <doc>
  10961. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  10962. @param val : The 'value' to be read.
  10963. @throws IOException]]>
  10964. </doc>
  10965. </method>
  10966. <method name="next" return="boolean"
  10967. abstract="false" native="false" synchronized="true"
  10968. static="false" final="false" visibility="public"
  10969. deprecated="not deprecated">
  10970. <param name="key" type="org.apache.hadoop.io.Writable"/>
  10971. <exception name="IOException" type="java.io.IOException"/>
  10972. <doc>
  10973. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  10974. value. True if another entry exists, and false at end of file.]]>
  10975. </doc>
  10976. </method>
  10977. <method name="next" return="boolean"
  10978. abstract="false" native="false" synchronized="true"
  10979. static="false" final="false" visibility="public"
  10980. deprecated="not deprecated">
  10981. <param name="key" type="org.apache.hadoop.io.Writable"/>
  10982. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10983. <exception name="IOException" type="java.io.IOException"/>
  10984. <doc>
  10985. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  10986. <code>val</code>. Returns true if such a pair exists and false when at
  10987. end of file]]>
  10988. </doc>
  10989. </method>
  10990. <method name="next" return="int"
  10991. abstract="false" native="false" synchronized="true"
  10992. static="false" final="false" visibility="public"
  10993. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  10994. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  10995. <exception name="IOException" type="java.io.IOException"/>
  10996. <doc>
  10997. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  10998. </doc>
  10999. </method>
  11000. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  11001. abstract="false" native="false" synchronized="false"
  11002. static="false" final="false" visibility="public"
  11003. deprecated="not deprecated">
  11004. </method>
  11005. <method name="nextRaw" return="int"
  11006. abstract="false" native="false" synchronized="true"
  11007. static="false" final="false" visibility="public"
  11008. deprecated="not deprecated">
  11009. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  11010. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11011. <exception name="IOException" type="java.io.IOException"/>
  11012. <doc>
  11013. <![CDATA[Read 'raw' records.
  11014. @param key - The buffer into which the key is read
  11015. @param val - The 'raw' value
  11016. @return Returns the total record length or -1 for end of file
  11017. @throws IOException]]>
  11018. </doc>
  11019. </method>
  11020. <method name="nextRawKey" return="int"
  11021. abstract="false" native="false" synchronized="false"
  11022. static="false" final="false" visibility="public"
  11023. deprecated="not deprecated">
  11024. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  11025. <exception name="IOException" type="java.io.IOException"/>
  11026. <doc>
  11027. <![CDATA[Read 'raw' keys.
  11028. @param key - The buffer into which the key is read
  11029. @return Returns the key length or -1 for end of file
  11030. @throws IOException]]>
  11031. </doc>
  11032. </method>
  11033. <method name="next" return="java.lang.Object"
  11034. abstract="false" native="false" synchronized="true"
  11035. static="false" final="false" visibility="public"
  11036. deprecated="not deprecated">
  11037. <param name="key" type="java.lang.Object"/>
  11038. <exception name="IOException" type="java.io.IOException"/>
  11039. <doc>
  11040. <![CDATA[Read the next key in the file, skipping its
  11041. value. Return null at end of file.]]>
  11042. </doc>
  11043. </method>
  11044. <method name="nextRawValue" return="int"
  11045. abstract="false" native="false" synchronized="true"
  11046. static="false" final="false" visibility="public"
  11047. deprecated="not deprecated">
  11048. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11049. <exception name="IOException" type="java.io.IOException"/>
  11050. <doc>
  11051. <![CDATA[Read 'raw' values.
  11052. @param val - The 'raw' value
  11053. @return Returns the value length
  11054. @throws IOException]]>
  11055. </doc>
  11056. </method>
  11057. <method name="seek"
  11058. abstract="false" native="false" synchronized="true"
  11059. static="false" final="false" visibility="public"
  11060. deprecated="not deprecated">
  11061. <param name="position" type="long"/>
  11062. <exception name="IOException" type="java.io.IOException"/>
  11063. <doc>
  11064. <![CDATA[Set the current byte position in the input file.
  11065. <p>The position passed must be a position returned by {@link
  11066. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  11067. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  11068. </doc>
  11069. </method>
  11070. <method name="sync"
  11071. abstract="false" native="false" synchronized="true"
  11072. static="false" final="false" visibility="public"
  11073. deprecated="not deprecated">
  11074. <param name="position" type="long"/>
  11075. <exception name="IOException" type="java.io.IOException"/>
  11076. <doc>
  11077. <![CDATA[Seek to the next sync mark past a given position.]]>
  11078. </doc>
  11079. </method>
  11080. <method name="syncSeen" return="boolean"
  11081. abstract="false" native="false" synchronized="false"
  11082. static="false" final="false" visibility="public"
  11083. deprecated="not deprecated">
  11084. <doc>
  11085. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  11086. </doc>
  11087. </method>
  11088. <method name="getPosition" return="long"
  11089. abstract="false" native="false" synchronized="true"
  11090. static="false" final="false" visibility="public"
  11091. deprecated="not deprecated">
  11092. <exception name="IOException" type="java.io.IOException"/>
  11093. <doc>
  11094. <![CDATA[Return the current byte position in the input file.]]>
  11095. </doc>
  11096. </method>
  11097. <method name="toString" return="java.lang.String"
  11098. abstract="false" native="false" synchronized="false"
  11099. static="false" final="false" visibility="public"
  11100. deprecated="not deprecated">
  11101. <doc>
  11102. <![CDATA[Returns the name of the file.]]>
  11103. </doc>
  11104. </method>
  11105. <doc>
  11106. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  11107. </doc>
  11108. </class>
  11109. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  11110. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  11111. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  11112. abstract="false"
  11113. static="true" final="false" visibility="public"
  11114. deprecated="not deprecated">
  11115. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  11116. static="false" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <doc>
  11119. <![CDATA[Sort and merge files containing the named classes.]]>
  11120. </doc>
  11121. </constructor>
  11122. <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"
  11123. static="false" final="false" visibility="public"
  11124. deprecated="not deprecated">
  11125. <doc>
  11126. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  11127. </doc>
  11128. </constructor>
  11129. <method name="setFactor"
  11130. abstract="false" native="false" synchronized="false"
  11131. static="false" final="false" visibility="public"
  11132. deprecated="not deprecated">
  11133. <param name="factor" type="int"/>
  11134. <doc>
  11135. <![CDATA[Set the number of streams to merge at once.]]>
  11136. </doc>
  11137. </method>
  11138. <method name="getFactor" return="int"
  11139. abstract="false" native="false" synchronized="false"
  11140. static="false" final="false" visibility="public"
  11141. deprecated="not deprecated">
  11142. <doc>
  11143. <![CDATA[Get the number of streams to merge at once.]]>
  11144. </doc>
  11145. </method>
  11146. <method name="setMemory"
  11147. abstract="false" native="false" synchronized="false"
  11148. static="false" final="false" visibility="public"
  11149. deprecated="not deprecated">
  11150. <param name="memory" type="int"/>
  11151. <doc>
  11152. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  11153. </doc>
  11154. </method>
  11155. <method name="getMemory" return="int"
  11156. abstract="false" native="false" synchronized="false"
  11157. static="false" final="false" visibility="public"
  11158. deprecated="not deprecated">
  11159. <doc>
  11160. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  11161. </doc>
  11162. </method>
  11163. <method name="setProgressable"
  11164. abstract="false" native="false" synchronized="false"
  11165. static="false" final="false" visibility="public"
  11166. deprecated="not deprecated">
  11167. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  11168. <doc>
  11169. <![CDATA[Set the progressable object in order to report progress.]]>
  11170. </doc>
  11171. </method>
  11172. <method name="sort"
  11173. abstract="false" native="false" synchronized="false"
  11174. static="false" final="false" visibility="public"
  11175. deprecated="not deprecated">
  11176. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  11177. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  11178. <param name="deleteInput" type="boolean"/>
  11179. <exception name="IOException" type="java.io.IOException"/>
  11180. <doc>
  11181. <![CDATA[Perform a file sort from a set of input files into an output file.
  11182. @param inFiles the files to be sorted
  11183. @param outFile the sorted output file
  11184. @param deleteInput should the input files be deleted as they are read?]]>
  11185. </doc>
  11186. </method>
  11187. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11188. abstract="false" native="false" synchronized="false"
  11189. static="false" final="false" visibility="public"
  11190. deprecated="not deprecated">
  11191. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  11192. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  11193. <param name="deleteInput" type="boolean"/>
  11194. <exception name="IOException" type="java.io.IOException"/>
  11195. <doc>
  11196. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  11197. @param inFiles the files to be sorted
  11198. @param tempDir the directory where temp files are created during sort
  11199. @param deleteInput should the input files be deleted as they are read?
  11200. @return iterator the RawKeyValueIterator]]>
  11201. </doc>
  11202. </method>
  11203. <method name="sort"
  11204. abstract="false" native="false" synchronized="false"
  11205. static="false" final="false" visibility="public"
  11206. deprecated="not deprecated">
  11207. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  11208. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  11209. <exception name="IOException" type="java.io.IOException"/>
  11210. <doc>
  11211. <![CDATA[The backwards compatible interface to sort.
  11212. @param inFile the input file to sort
  11213. @param outFile the sorted output file]]>
  11214. </doc>
  11215. </method>
  11216. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11217. abstract="false" native="false" synchronized="false"
  11218. static="false" final="false" visibility="public"
  11219. deprecated="not deprecated">
  11220. <param name="segments" type="java.util.List&lt;org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor&gt;"/>
  11221. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  11222. <exception name="IOException" type="java.io.IOException"/>
  11223. <doc>
  11224. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  11225. @param segments the list of SegmentDescriptors
  11226. @param tmpDir the directory to write temporary files into
  11227. @return RawKeyValueIterator
  11228. @throws IOException]]>
  11229. </doc>
  11230. </method>
  11231. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11232. abstract="false" native="false" synchronized="false"
  11233. static="false" final="false" visibility="public"
  11234. deprecated="not deprecated">
  11235. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  11236. <param name="deleteInputs" type="boolean"/>
  11237. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  11238. <exception name="IOException" type="java.io.IOException"/>
  11239. <doc>
  11240. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  11241. that is already set
  11242. @param inNames the array of path names
  11243. @param deleteInputs true if the input files should be deleted when
  11244. unnecessary
  11245. @param tmpDir the directory to write temporary files into
  11246. @return RawKeyValueIteratorMergeQueue
  11247. @throws IOException]]>
  11248. </doc>
  11249. </method>
  11250. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11251. abstract="false" native="false" synchronized="false"
  11252. static="false" final="false" visibility="public"
  11253. deprecated="not deprecated">
  11254. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  11255. <param name="deleteInputs" type="boolean"/>
  11256. <param name="factor" type="int"/>
  11257. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  11258. <exception name="IOException" type="java.io.IOException"/>
  11259. <doc>
  11260. <![CDATA[Merges the contents of files passed in Path[]
  11261. @param inNames the array of path names
  11262. @param deleteInputs true if the input files should be deleted when
  11263. unnecessary
  11264. @param factor the factor that will be used as the maximum merge fan-in
  11265. @param tmpDir the directory to write temporary files into
  11266. @return RawKeyValueIteratorMergeQueue
  11267. @throws IOException]]>
  11268. </doc>
  11269. </method>
  11270. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11271. abstract="false" native="false" synchronized="false"
  11272. static="false" final="false" visibility="public"
  11273. deprecated="not deprecated">
  11274. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  11275. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  11276. <param name="deleteInputs" type="boolean"/>
  11277. <exception name="IOException" type="java.io.IOException"/>
  11278. <doc>
  11279. <![CDATA[Merges the contents of files passed in Path[]
  11280. @param inNames the array of path names
  11281. @param tempDir the directory for creating temp files during merge
  11282. @param deleteInputs true if the input files should be deleted when
  11283. unnecessary
  11284. @return RawKeyValueIteratorMergeQueue
  11285. @throws IOException]]>
  11286. </doc>
  11287. </method>
  11288. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  11289. abstract="false" native="false" synchronized="false"
  11290. static="false" final="false" visibility="public"
  11291. deprecated="not deprecated">
  11292. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  11293. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  11294. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  11295. <exception name="IOException" type="java.io.IOException"/>
  11296. <doc>
  11297. <![CDATA[Clones the attributes (like compression of the input file and creates a
  11298. corresponding Writer
  11299. @param inputFile the path of the input file whose attributes should be
  11300. cloned
  11301. @param outputFile the path of the output file
  11302. @param prog the Progressable to report status during the file write
  11303. @return Writer
  11304. @throws IOException]]>
  11305. </doc>
  11306. </method>
  11307. <method name="writeFile"
  11308. abstract="false" native="false" synchronized="false"
  11309. static="false" final="false" visibility="public"
  11310. deprecated="not deprecated">
  11311. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  11312. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  11313. <exception name="IOException" type="java.io.IOException"/>
  11314. <doc>
  11315. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  11316. passed writer
  11317. @param records the RawKeyValueIterator
  11318. @param writer the Writer created earlier
  11319. @throws IOException]]>
  11320. </doc>
  11321. </method>
  11322. <method name="merge"
  11323. abstract="false" native="false" synchronized="false"
  11324. static="false" final="false" visibility="public"
  11325. deprecated="not deprecated">
  11326. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  11327. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  11328. <exception name="IOException" type="java.io.IOException"/>
  11329. <doc>
  11330. <![CDATA[Merge the provided files.
  11331. @param inFiles the array of input path names
  11332. @param outFile the final output file
  11333. @throws IOException]]>
  11334. </doc>
  11335. </method>
  11336. <doc>
  11337. <![CDATA[Sorts key/value pairs in a sequence-format file.
  11338. <p>For best performance, applications should make sure that the {@link
  11339. Writable#readFields(DataInput)} implementation of their keys is
  11340. very efficient. In particular, it should avoid allocating memory.]]>
  11341. </doc>
  11342. </class>
  11343. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  11344. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  11345. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  11346. static="true" final="false" visibility="public"
  11347. deprecated="not deprecated">
  11348. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  11349. abstract="false" native="false" synchronized="false"
  11350. static="false" final="false" visibility="public"
  11351. deprecated="not deprecated">
  11352. <exception name="IOException" type="java.io.IOException"/>
  11353. <doc>
  11354. <![CDATA[Gets the current raw key
  11355. @return DataOutputBuffer
  11356. @throws IOException]]>
  11357. </doc>
  11358. </method>
  11359. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  11360. abstract="false" native="false" synchronized="false"
  11361. static="false" final="false" visibility="public"
  11362. deprecated="not deprecated">
  11363. <exception name="IOException" type="java.io.IOException"/>
  11364. <doc>
  11365. <![CDATA[Gets the current raw value
  11366. @return ValueBytes
  11367. @throws IOException]]>
  11368. </doc>
  11369. </method>
  11370. <method name="next" return="boolean"
  11371. abstract="false" native="false" synchronized="false"
  11372. static="false" final="false" visibility="public"
  11373. deprecated="not deprecated">
  11374. <exception name="IOException" type="java.io.IOException"/>
  11375. <doc>
  11376. <![CDATA[Sets up the current key and value (for getKey and getValue)
  11377. @return true if there exists a key/value, false otherwise
  11378. @throws IOException]]>
  11379. </doc>
  11380. </method>
  11381. <method name="close"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="false" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. <exception name="IOException" type="java.io.IOException"/>
  11386. <doc>
  11387. <![CDATA[closes the iterator so that the underlying streams can be closed
  11388. @throws IOException]]>
  11389. </doc>
  11390. </method>
  11391. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  11392. abstract="false" native="false" synchronized="false"
  11393. static="false" final="false" visibility="public"
  11394. deprecated="not deprecated">
  11395. <doc>
  11396. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  11397. indicating the bytes processed by the iterator so far]]>
  11398. </doc>
  11399. </method>
  11400. <doc>
  11401. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  11402. </doc>
  11403. </interface>
  11404. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  11405. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  11406. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  11407. abstract="false"
  11408. static="false" final="false" visibility="public"
  11409. deprecated="not deprecated">
  11410. <implements name="java.lang.Comparable"/>
  11411. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  11412. static="false" final="false" visibility="public"
  11413. deprecated="not deprecated">
  11414. <doc>
  11415. <![CDATA[Constructs a segment
  11416. @param segmentOffset the offset of the segment in the file
  11417. @param segmentLength the length of the segment
  11418. @param segmentPathName the path name of the file containing the segment]]>
  11419. </doc>
  11420. </constructor>
  11421. <method name="doSync"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="false" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <doc>
  11426. <![CDATA[Do the sync checks]]>
  11427. </doc>
  11428. </method>
  11429. <method name="preserveInput"
  11430. abstract="false" native="false" synchronized="false"
  11431. static="false" final="false" visibility="public"
  11432. deprecated="not deprecated">
  11433. <param name="preserve" type="boolean"/>
  11434. <doc>
  11435. <![CDATA[Whether to delete the files when no longer needed]]>
  11436. </doc>
  11437. </method>
  11438. <method name="shouldPreserveInput" return="boolean"
  11439. abstract="false" native="false" synchronized="false"
  11440. static="false" final="false" visibility="public"
  11441. deprecated="not deprecated">
  11442. </method>
  11443. <method name="compareTo" return="int"
  11444. abstract="false" native="false" synchronized="false"
  11445. static="false" final="false" visibility="public"
  11446. deprecated="not deprecated">
  11447. <param name="o" type="java.lang.Object"/>
  11448. </method>
  11449. <method name="equals" return="boolean"
  11450. abstract="false" native="false" synchronized="false"
  11451. static="false" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. <param name="o" type="java.lang.Object"/>
  11454. </method>
  11455. <method name="hashCode" return="int"
  11456. abstract="false" native="false" synchronized="false"
  11457. static="false" final="false" visibility="public"
  11458. deprecated="not deprecated">
  11459. </method>
  11460. <method name="nextRawKey" return="boolean"
  11461. abstract="false" native="false" synchronized="false"
  11462. static="false" final="false" visibility="public"
  11463. deprecated="not deprecated">
  11464. <exception name="IOException" type="java.io.IOException"/>
  11465. <doc>
  11466. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  11467. @return true if there is a key returned; false, otherwise
  11468. @throws IOException]]>
  11469. </doc>
  11470. </method>
  11471. <method name="nextRawValue" return="int"
  11472. abstract="false" native="false" synchronized="false"
  11473. static="false" final="false" visibility="public"
  11474. deprecated="not deprecated">
  11475. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11476. <exception name="IOException" type="java.io.IOException"/>
  11477. <doc>
  11478. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  11479. read earlier
  11480. @param rawValue
  11481. @return the length of the value
  11482. @throws IOException]]>
  11483. </doc>
  11484. </method>
  11485. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  11486. abstract="false" native="false" synchronized="false"
  11487. static="false" final="false" visibility="public"
  11488. deprecated="not deprecated">
  11489. <doc>
  11490. <![CDATA[Returns the stored rawKey]]>
  11491. </doc>
  11492. </method>
  11493. <method name="cleanup"
  11494. abstract="false" native="false" synchronized="false"
  11495. static="false" final="false" visibility="public"
  11496. deprecated="not deprecated">
  11497. <exception name="IOException" type="java.io.IOException"/>
  11498. <doc>
  11499. <![CDATA[The default cleanup. Subclasses can override this with a custom
  11500. cleanup]]>
  11501. </doc>
  11502. </method>
  11503. <doc>
  11504. <![CDATA[This class defines a merge segment. This class can be subclassed to
  11505. provide a customized cleanup method implementation. In this
  11506. implementation, cleanup closes the file handle and deletes the file]]>
  11507. </doc>
  11508. </class>
  11509. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  11510. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  11511. <interface name="SequenceFile.ValueBytes" abstract="true"
  11512. static="true" final="false" visibility="public"
  11513. deprecated="not deprecated">
  11514. <method name="writeUncompressedBytes"
  11515. abstract="false" native="false" synchronized="false"
  11516. static="false" final="false" visibility="public"
  11517. deprecated="not deprecated">
  11518. <param name="outStream" type="java.io.DataOutputStream"/>
  11519. <exception name="IOException" type="java.io.IOException"/>
  11520. <doc>
  11521. <![CDATA[Writes the uncompressed bytes to the outStream.
  11522. @param outStream : Stream to write uncompressed bytes into.
  11523. @throws IOException]]>
  11524. </doc>
  11525. </method>
  11526. <method name="writeCompressedBytes"
  11527. abstract="false" native="false" synchronized="false"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="not deprecated">
  11530. <param name="outStream" type="java.io.DataOutputStream"/>
  11531. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  11532. <exception name="IOException" type="java.io.IOException"/>
  11533. <doc>
  11534. <![CDATA[Write compressed bytes to outStream.
  11535. Note: that it will NOT compress the bytes if they are not compressed.
  11536. @param outStream : Stream to write compressed bytes into.]]>
  11537. </doc>
  11538. </method>
  11539. <method name="getSize" return="int"
  11540. abstract="false" native="false" synchronized="false"
  11541. static="false" final="false" visibility="public"
  11542. deprecated="not deprecated">
  11543. <doc>
  11544. <![CDATA[Size of stored data.]]>
  11545. </doc>
  11546. </method>
  11547. <doc>
  11548. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  11549. </doc>
  11550. </interface>
  11551. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  11552. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  11553. <class name="SequenceFile.Writer" extends="java.lang.Object"
  11554. abstract="false"
  11555. static="true" final="false" visibility="public"
  11556. deprecated="not deprecated">
  11557. <implements name="java.io.Closeable"/>
  11558. <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"
  11559. static="false" final="false" visibility="public"
  11560. deprecated="not deprecated">
  11561. <exception name="IOException" type="java.io.IOException"/>
  11562. <doc>
  11563. <![CDATA[Create the named file.]]>
  11564. </doc>
  11565. </constructor>
  11566. <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"
  11567. static="false" final="false" visibility="public"
  11568. deprecated="not deprecated">
  11569. <exception name="IOException" type="java.io.IOException"/>
  11570. <doc>
  11571. <![CDATA[Create the named file with write-progress reporter.]]>
  11572. </doc>
  11573. </constructor>
  11574. <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"
  11575. static="false" final="false" visibility="public"
  11576. deprecated="not deprecated">
  11577. <exception name="IOException" type="java.io.IOException"/>
  11578. <doc>
  11579. <![CDATA[Create the named file with write-progress reporter.]]>
  11580. </doc>
  11581. </constructor>
  11582. <method name="getKeyClass" return="java.lang.Class"
  11583. abstract="false" native="false" synchronized="false"
  11584. static="false" final="false" visibility="public"
  11585. deprecated="not deprecated">
  11586. <doc>
  11587. <![CDATA[Returns the class of keys in this file.]]>
  11588. </doc>
  11589. </method>
  11590. <method name="getValueClass" return="java.lang.Class"
  11591. abstract="false" native="false" synchronized="false"
  11592. static="false" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. <doc>
  11595. <![CDATA[Returns the class of values in this file.]]>
  11596. </doc>
  11597. </method>
  11598. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  11599. abstract="false" native="false" synchronized="false"
  11600. static="false" final="false" visibility="public"
  11601. deprecated="not deprecated">
  11602. <doc>
  11603. <![CDATA[Returns the compression codec of data in this file.]]>
  11604. </doc>
  11605. </method>
  11606. <method name="sync"
  11607. abstract="false" native="false" synchronized="false"
  11608. static="false" final="false" visibility="public"
  11609. deprecated="not deprecated">
  11610. <exception name="IOException" type="java.io.IOException"/>
  11611. <doc>
  11612. <![CDATA[create a sync point]]>
  11613. </doc>
  11614. </method>
  11615. <method name="close"
  11616. abstract="false" native="false" synchronized="true"
  11617. static="false" final="false" visibility="public"
  11618. deprecated="not deprecated">
  11619. <exception name="IOException" type="java.io.IOException"/>
  11620. <doc>
  11621. <![CDATA[Close the file.]]>
  11622. </doc>
  11623. </method>
  11624. <method name="append"
  11625. abstract="false" native="false" synchronized="true"
  11626. static="false" final="false" visibility="public"
  11627. deprecated="not deprecated">
  11628. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11629. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11630. <exception name="IOException" type="java.io.IOException"/>
  11631. <doc>
  11632. <![CDATA[Append a key/value pair.]]>
  11633. </doc>
  11634. </method>
  11635. <method name="append"
  11636. abstract="false" native="false" synchronized="true"
  11637. static="false" final="false" visibility="public"
  11638. deprecated="not deprecated">
  11639. <param name="key" type="java.lang.Object"/>
  11640. <param name="val" type="java.lang.Object"/>
  11641. <exception name="IOException" type="java.io.IOException"/>
  11642. <doc>
  11643. <![CDATA[Append a key/value pair.]]>
  11644. </doc>
  11645. </method>
  11646. <method name="appendRaw"
  11647. abstract="false" native="false" synchronized="true"
  11648. static="false" final="false" visibility="public"
  11649. deprecated="not deprecated">
  11650. <param name="keyData" type="byte[]"/>
  11651. <param name="keyOffset" type="int"/>
  11652. <param name="keyLength" type="int"/>
  11653. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11654. <exception name="IOException" type="java.io.IOException"/>
  11655. </method>
  11656. <method name="getLength" return="long"
  11657. abstract="false" native="false" synchronized="true"
  11658. static="false" final="false" visibility="public"
  11659. deprecated="not deprecated">
  11660. <exception name="IOException" type="java.io.IOException"/>
  11661. <doc>
  11662. <![CDATA[Returns the current length of the output file.
  11663. <p>This always returns a synchronized position. In other words,
  11664. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  11665. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  11666. the key may be earlier in the file than key last written when this
  11667. method was called (e.g., with block-compression, it may be the first key
  11668. in the block that was being written when this method was called).]]>
  11669. </doc>
  11670. </method>
  11671. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  11672. transient="false" volatile="false"
  11673. static="false" final="false" visibility="protected"
  11674. deprecated="not deprecated">
  11675. </field>
  11676. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  11677. transient="false" volatile="false"
  11678. static="false" final="false" visibility="protected"
  11679. deprecated="not deprecated">
  11680. </field>
  11681. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  11682. transient="false" volatile="false"
  11683. static="false" final="false" visibility="protected"
  11684. deprecated="not deprecated">
  11685. </field>
  11686. <doc>
  11687. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  11688. </doc>
  11689. </class>
  11690. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  11691. <!-- start class org.apache.hadoop.io.SetFile -->
  11692. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  11693. abstract="false"
  11694. static="false" final="false" visibility="public"
  11695. deprecated="not deprecated">
  11696. <constructor name="SetFile"
  11697. static="false" final="false" visibility="protected"
  11698. deprecated="not deprecated">
  11699. </constructor>
  11700. <doc>
  11701. <![CDATA[A file-based set of keys.]]>
  11702. </doc>
  11703. </class>
  11704. <!-- end class org.apache.hadoop.io.SetFile -->
  11705. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  11706. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  11707. abstract="false"
  11708. static="true" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  11711. static="false" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <exception name="IOException" type="java.io.IOException"/>
  11714. <doc>
  11715. <![CDATA[Construct a set reader for the named set.]]>
  11716. </doc>
  11717. </constructor>
  11718. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  11719. static="false" final="false" visibility="public"
  11720. deprecated="not deprecated">
  11721. <exception name="IOException" type="java.io.IOException"/>
  11722. <doc>
  11723. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  11724. </doc>
  11725. </constructor>
  11726. <method name="seek" return="boolean"
  11727. abstract="false" native="false" synchronized="false"
  11728. static="false" final="false" visibility="public"
  11729. deprecated="not deprecated">
  11730. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11731. <exception name="IOException" type="java.io.IOException"/>
  11732. </method>
  11733. <method name="next" return="boolean"
  11734. abstract="false" native="false" synchronized="false"
  11735. static="false" final="false" visibility="public"
  11736. deprecated="not deprecated">
  11737. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11738. <exception name="IOException" type="java.io.IOException"/>
  11739. <doc>
  11740. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  11741. true if such a key exists and false when at the end of the set.]]>
  11742. </doc>
  11743. </method>
  11744. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  11745. abstract="false" native="false" synchronized="false"
  11746. static="false" final="false" visibility="public"
  11747. deprecated="not deprecated">
  11748. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11749. <exception name="IOException" type="java.io.IOException"/>
  11750. <doc>
  11751. <![CDATA[Read the matching key from a set into <code>key</code>.
  11752. Returns <code>key</code>, or null if no match exists.]]>
  11753. </doc>
  11754. </method>
  11755. <doc>
  11756. <![CDATA[Provide access to an existing set file.]]>
  11757. </doc>
  11758. </class>
  11759. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  11760. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  11761. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  11762. abstract="false"
  11763. static="true" final="false" visibility="public"
  11764. deprecated="not deprecated">
  11765. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  11766. static="false" final="false" visibility="public"
  11767. deprecated="pass a Configuration too">
  11768. <exception name="IOException" type="java.io.IOException"/>
  11769. <doc>
  11770. <![CDATA[Create the named set for keys of the named class.
  11771. @deprecated pass a Configuration too]]>
  11772. </doc>
  11773. </constructor>
  11774. <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"
  11775. static="false" final="false" visibility="public"
  11776. deprecated="not deprecated">
  11777. <exception name="IOException" type="java.io.IOException"/>
  11778. <doc>
  11779. <![CDATA[Create a set naming the element class and compression type.]]>
  11780. </doc>
  11781. </constructor>
  11782. <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"
  11783. static="false" final="false" visibility="public"
  11784. deprecated="not deprecated">
  11785. <exception name="IOException" type="java.io.IOException"/>
  11786. <doc>
  11787. <![CDATA[Create a set naming the element comparator and compression type.]]>
  11788. </doc>
  11789. </constructor>
  11790. <method name="append"
  11791. abstract="false" native="false" synchronized="false"
  11792. static="false" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11795. <exception name="IOException" type="java.io.IOException"/>
  11796. <doc>
  11797. <![CDATA[Append a key to a set. The key must be strictly greater than the
  11798. previous key added to the set.]]>
  11799. </doc>
  11800. </method>
  11801. <doc>
  11802. <![CDATA[Write a new set file.]]>
  11803. </doc>
  11804. </class>
  11805. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  11806. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  11807. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  11808. abstract="false"
  11809. static="false" final="false" visibility="public"
  11810. deprecated="not deprecated">
  11811. <implements name="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"/>
  11812. <constructor name="SortedMapWritable"
  11813. static="false" final="false" visibility="public"
  11814. deprecated="not deprecated">
  11815. <doc>
  11816. <![CDATA[default constructor.]]>
  11817. </doc>
  11818. </constructor>
  11819. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  11820. static="false" final="false" visibility="public"
  11821. deprecated="not deprecated">
  11822. <doc>
  11823. <![CDATA[Copy constructor.
  11824. @param other the map to copy from]]>
  11825. </doc>
  11826. </constructor>
  11827. <method name="comparator" return="java.util.Comparator&lt;? super org.apache.hadoop.io.WritableComparable&gt;"
  11828. abstract="false" native="false" synchronized="false"
  11829. static="false" final="false" visibility="public"
  11830. deprecated="not deprecated">
  11831. <doc>
  11832. <![CDATA[{@inheritDoc}]]>
  11833. </doc>
  11834. </method>
  11835. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  11836. abstract="false" native="false" synchronized="false"
  11837. static="false" final="false" visibility="public"
  11838. deprecated="not deprecated">
  11839. <doc>
  11840. <![CDATA[{@inheritDoc}]]>
  11841. </doc>
  11842. </method>
  11843. <method name="headMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  11844. abstract="false" native="false" synchronized="false"
  11845. static="false" final="false" visibility="public"
  11846. deprecated="not deprecated">
  11847. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  11848. <doc>
  11849. <![CDATA[{@inheritDoc}]]>
  11850. </doc>
  11851. </method>
  11852. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  11853. abstract="false" native="false" synchronized="false"
  11854. static="false" final="false" visibility="public"
  11855. deprecated="not deprecated">
  11856. <doc>
  11857. <![CDATA[{@inheritDoc}]]>
  11858. </doc>
  11859. </method>
  11860. <method name="subMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  11861. abstract="false" native="false" synchronized="false"
  11862. static="false" final="false" visibility="public"
  11863. deprecated="not deprecated">
  11864. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  11865. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  11866. <doc>
  11867. <![CDATA[{@inheritDoc}]]>
  11868. </doc>
  11869. </method>
  11870. <method name="tailMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  11871. abstract="false" native="false" synchronized="false"
  11872. static="false" final="false" visibility="public"
  11873. deprecated="not deprecated">
  11874. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  11875. <doc>
  11876. <![CDATA[{@inheritDoc}]]>
  11877. </doc>
  11878. </method>
  11879. <method name="clear"
  11880. abstract="false" native="false" synchronized="false"
  11881. static="false" final="false" visibility="public"
  11882. deprecated="not deprecated">
  11883. <doc>
  11884. <![CDATA[{@inheritDoc}]]>
  11885. </doc>
  11886. </method>
  11887. <method name="containsKey" return="boolean"
  11888. abstract="false" native="false" synchronized="false"
  11889. static="false" final="false" visibility="public"
  11890. deprecated="not deprecated">
  11891. <param name="key" type="java.lang.Object"/>
  11892. <doc>
  11893. <![CDATA[{@inheritDoc}]]>
  11894. </doc>
  11895. </method>
  11896. <method name="containsValue" return="boolean"
  11897. abstract="false" native="false" synchronized="false"
  11898. static="false" final="false" visibility="public"
  11899. deprecated="not deprecated">
  11900. <param name="value" type="java.lang.Object"/>
  11901. <doc>
  11902. <![CDATA[{@inheritDoc}]]>
  11903. </doc>
  11904. </method>
  11905. <method name="entrySet" return="java.util.Set&lt;java.util.Map.Entry&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;&gt;"
  11906. abstract="false" native="false" synchronized="false"
  11907. static="false" final="false" visibility="public"
  11908. deprecated="not deprecated">
  11909. <doc>
  11910. <![CDATA[{@inheritDoc}]]>
  11911. </doc>
  11912. </method>
  11913. <method name="get" return="org.apache.hadoop.io.Writable"
  11914. abstract="false" native="false" synchronized="false"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <param name="key" type="java.lang.Object"/>
  11918. <doc>
  11919. <![CDATA[{@inheritDoc}]]>
  11920. </doc>
  11921. </method>
  11922. <method name="isEmpty" return="boolean"
  11923. abstract="false" native="false" synchronized="false"
  11924. static="false" final="false" visibility="public"
  11925. deprecated="not deprecated">
  11926. <doc>
  11927. <![CDATA[{@inheritDoc}]]>
  11928. </doc>
  11929. </method>
  11930. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.WritableComparable&gt;"
  11931. abstract="false" native="false" synchronized="false"
  11932. static="false" final="false" visibility="public"
  11933. deprecated="not deprecated">
  11934. <doc>
  11935. <![CDATA[{@inheritDoc}]]>
  11936. </doc>
  11937. </method>
  11938. <method name="put" return="org.apache.hadoop.io.Writable"
  11939. abstract="false" native="false" synchronized="false"
  11940. static="false" final="false" visibility="public"
  11941. deprecated="not deprecated">
  11942. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  11943. <param name="value" type="org.apache.hadoop.io.Writable"/>
  11944. <doc>
  11945. <![CDATA[{@inheritDoc}]]>
  11946. </doc>
  11947. </method>
  11948. <method name="putAll"
  11949. abstract="false" native="false" synchronized="false"
  11950. static="false" final="false" visibility="public"
  11951. deprecated="not deprecated">
  11952. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.WritableComparable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  11953. <doc>
  11954. <![CDATA[{@inheritDoc}]]>
  11955. </doc>
  11956. </method>
  11957. <method name="remove" return="org.apache.hadoop.io.Writable"
  11958. abstract="false" native="false" synchronized="false"
  11959. static="false" final="false" visibility="public"
  11960. deprecated="not deprecated">
  11961. <param name="key" type="java.lang.Object"/>
  11962. <doc>
  11963. <![CDATA[{@inheritDoc}]]>
  11964. </doc>
  11965. </method>
  11966. <method name="size" return="int"
  11967. abstract="false" native="false" synchronized="false"
  11968. static="false" final="false" visibility="public"
  11969. deprecated="not deprecated">
  11970. <doc>
  11971. <![CDATA[{@inheritDoc}]]>
  11972. </doc>
  11973. </method>
  11974. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  11975. abstract="false" native="false" synchronized="false"
  11976. static="false" final="false" visibility="public"
  11977. deprecated="not deprecated">
  11978. <doc>
  11979. <![CDATA[{@inheritDoc}]]>
  11980. </doc>
  11981. </method>
  11982. <method name="readFields"
  11983. abstract="false" native="false" synchronized="false"
  11984. static="false" final="false" visibility="public"
  11985. deprecated="not deprecated">
  11986. <param name="in" type="java.io.DataInput"/>
  11987. <exception name="IOException" type="java.io.IOException"/>
  11988. <doc>
  11989. <![CDATA[{@inheritDoc}]]>
  11990. </doc>
  11991. </method>
  11992. <method name="write"
  11993. abstract="false" native="false" synchronized="false"
  11994. static="false" final="false" visibility="public"
  11995. deprecated="not deprecated">
  11996. <param name="out" type="java.io.DataOutput"/>
  11997. <exception name="IOException" type="java.io.IOException"/>
  11998. <doc>
  11999. <![CDATA[{@inheritDoc}]]>
  12000. </doc>
  12001. </method>
  12002. <doc>
  12003. <![CDATA[A Writable SortedMap.]]>
  12004. </doc>
  12005. </class>
  12006. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  12007. <!-- start interface org.apache.hadoop.io.Stringifier -->
  12008. <interface name="Stringifier" abstract="true"
  12009. static="false" final="false" visibility="public"
  12010. deprecated="not deprecated">
  12011. <implements name="java.io.Closeable"/>
  12012. <method name="toString" return="java.lang.String"
  12013. abstract="false" native="false" synchronized="false"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. <param name="obj" type="T"/>
  12017. <exception name="IOException" type="java.io.IOException"/>
  12018. <doc>
  12019. <![CDATA[Converts the object to a string representation
  12020. @param obj the object to convert
  12021. @return the string representation of the object
  12022. @throws IOException if the object cannot be converted]]>
  12023. </doc>
  12024. </method>
  12025. <method name="fromString" return="T"
  12026. abstract="false" native="false" synchronized="false"
  12027. static="false" final="false" visibility="public"
  12028. deprecated="not deprecated">
  12029. <param name="str" type="java.lang.String"/>
  12030. <exception name="IOException" type="java.io.IOException"/>
  12031. <doc>
  12032. <![CDATA[Restores the object from its string representation.
  12033. @param str the string representation of the object
  12034. @return restored object
  12035. @throws IOException if the object cannot be restored]]>
  12036. </doc>
  12037. </method>
  12038. <method name="close"
  12039. abstract="false" native="false" synchronized="false"
  12040. static="false" final="false" visibility="public"
  12041. deprecated="not deprecated">
  12042. <exception name="IOException" type="java.io.IOException"/>
  12043. <doc>
  12044. <![CDATA[Closes this object.
  12045. @throws IOException if an I/O error occurs]]>
  12046. </doc>
  12047. </method>
  12048. <doc>
  12049. <![CDATA[Stringifier interface offers two methods to convert an object
  12050. to a string representation and restore the object given its
  12051. string representation.
  12052. @param <T> the class of the objects to stringify]]>
  12053. </doc>
  12054. </interface>
  12055. <!-- end interface org.apache.hadoop.io.Stringifier -->
  12056. <!-- start class org.apache.hadoop.io.Text -->
  12057. <class name="Text" extends="java.lang.Object"
  12058. abstract="false"
  12059. static="false" final="false" visibility="public"
  12060. deprecated="not deprecated">
  12061. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12062. <constructor name="Text"
  12063. static="false" final="false" visibility="public"
  12064. deprecated="not deprecated">
  12065. </constructor>
  12066. <constructor name="Text" type="java.lang.String"
  12067. static="false" final="false" visibility="public"
  12068. deprecated="not deprecated">
  12069. <doc>
  12070. <![CDATA[Construct from a string.]]>
  12071. </doc>
  12072. </constructor>
  12073. <constructor name="Text" type="org.apache.hadoop.io.Text"
  12074. static="false" final="false" visibility="public"
  12075. deprecated="not deprecated">
  12076. <doc>
  12077. <![CDATA[Construct from another text.]]>
  12078. </doc>
  12079. </constructor>
  12080. <constructor name="Text" type="byte[]"
  12081. static="false" final="false" visibility="public"
  12082. deprecated="not deprecated">
  12083. <doc>
  12084. <![CDATA[Construct from a byte array.]]>
  12085. </doc>
  12086. </constructor>
  12087. <method name="getBytes" return="byte[]"
  12088. abstract="false" native="false" synchronized="false"
  12089. static="false" final="false" visibility="public"
  12090. deprecated="not deprecated">
  12091. <doc>
  12092. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  12093. valid.]]>
  12094. </doc>
  12095. </method>
  12096. <method name="getLength" return="int"
  12097. abstract="false" native="false" synchronized="false"
  12098. static="false" final="false" visibility="public"
  12099. deprecated="not deprecated">
  12100. <doc>
  12101. <![CDATA[Returns the number of bytes in the byte array]]>
  12102. </doc>
  12103. </method>
  12104. <method name="charAt" return="int"
  12105. abstract="false" native="false" synchronized="false"
  12106. static="false" final="false" visibility="public"
  12107. deprecated="not deprecated">
  12108. <param name="position" type="int"/>
  12109. <doc>
  12110. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  12111. for the character at <code>position</code>. Note that this
  12112. method avoids using the converter or doing String instatiation
  12113. @return the Unicode scalar value at position or -1
  12114. if the position is invalid or points to a
  12115. trailing byte]]>
  12116. </doc>
  12117. </method>
  12118. <method name="find" return="int"
  12119. abstract="false" native="false" synchronized="false"
  12120. static="false" final="false" visibility="public"
  12121. deprecated="not deprecated">
  12122. <param name="what" type="java.lang.String"/>
  12123. </method>
  12124. <method name="find" return="int"
  12125. abstract="false" native="false" synchronized="false"
  12126. static="false" final="false" visibility="public"
  12127. deprecated="not deprecated">
  12128. <param name="what" type="java.lang.String"/>
  12129. <param name="start" type="int"/>
  12130. <doc>
  12131. <![CDATA[Finds any occurence of <code>what</code> in the backing
  12132. buffer, starting as position <code>start</code>. The starting
  12133. position is measured in bytes and the return value is in
  12134. terms of byte position in the buffer. The backing buffer is
  12135. not converted to a string for this operation.
  12136. @return byte position of the first occurence of the search
  12137. string in the UTF-8 buffer or -1 if not found]]>
  12138. </doc>
  12139. </method>
  12140. <method name="set"
  12141. abstract="false" native="false" synchronized="false"
  12142. static="false" final="false" visibility="public"
  12143. deprecated="not deprecated">
  12144. <param name="string" type="java.lang.String"/>
  12145. <doc>
  12146. <![CDATA[Set to contain the contents of a string.]]>
  12147. </doc>
  12148. </method>
  12149. <method name="set"
  12150. abstract="false" native="false" synchronized="false"
  12151. static="false" final="false" visibility="public"
  12152. deprecated="not deprecated">
  12153. <param name="utf8" type="byte[]"/>
  12154. <doc>
  12155. <![CDATA[Set to a utf8 byte array]]>
  12156. </doc>
  12157. </method>
  12158. <method name="set"
  12159. abstract="false" native="false" synchronized="false"
  12160. static="false" final="false" visibility="public"
  12161. deprecated="not deprecated">
  12162. <param name="other" type="org.apache.hadoop.io.Text"/>
  12163. <doc>
  12164. <![CDATA[copy a text.]]>
  12165. </doc>
  12166. </method>
  12167. <method name="set"
  12168. abstract="false" native="false" synchronized="false"
  12169. static="false" final="false" visibility="public"
  12170. deprecated="not deprecated">
  12171. <param name="utf8" type="byte[]"/>
  12172. <param name="start" type="int"/>
  12173. <param name="len" type="int"/>
  12174. <doc>
  12175. <![CDATA[Set the Text to range of bytes
  12176. @param utf8 the data to copy from
  12177. @param start the first position of the new string
  12178. @param len the number of bytes of the new string]]>
  12179. </doc>
  12180. </method>
  12181. <method name="append"
  12182. abstract="false" native="false" synchronized="false"
  12183. static="false" final="false" visibility="public"
  12184. deprecated="not deprecated">
  12185. <param name="utf8" type="byte[]"/>
  12186. <param name="start" type="int"/>
  12187. <param name="len" type="int"/>
  12188. <doc>
  12189. <![CDATA[Append a range of bytes to the end of the given text
  12190. @param utf8 the data to copy from
  12191. @param start the first position to append from utf8
  12192. @param len the number of bytes to append]]>
  12193. </doc>
  12194. </method>
  12195. <method name="clear"
  12196. abstract="false" native="false" synchronized="false"
  12197. static="false" final="false" visibility="public"
  12198. deprecated="not deprecated">
  12199. <doc>
  12200. <![CDATA[Clear the string to empty.]]>
  12201. </doc>
  12202. </method>
  12203. <method name="toString" return="java.lang.String"
  12204. abstract="false" native="false" synchronized="false"
  12205. static="false" final="false" visibility="public"
  12206. deprecated="not deprecated">
  12207. <doc>
  12208. <![CDATA[Convert text back to string
  12209. @see java.lang.Object#toString()]]>
  12210. </doc>
  12211. </method>
  12212. <method name="readFields"
  12213. abstract="false" native="false" synchronized="false"
  12214. static="false" final="false" visibility="public"
  12215. deprecated="not deprecated">
  12216. <param name="in" type="java.io.DataInput"/>
  12217. <exception name="IOException" type="java.io.IOException"/>
  12218. <doc>
  12219. <![CDATA[deserialize]]>
  12220. </doc>
  12221. </method>
  12222. <method name="skip"
  12223. abstract="false" native="false" synchronized="false"
  12224. static="true" final="false" visibility="public"
  12225. deprecated="not deprecated">
  12226. <param name="in" type="java.io.DataInput"/>
  12227. <exception name="IOException" type="java.io.IOException"/>
  12228. <doc>
  12229. <![CDATA[Skips over one Text in the input.]]>
  12230. </doc>
  12231. </method>
  12232. <method name="write"
  12233. abstract="false" native="false" synchronized="false"
  12234. static="false" final="false" visibility="public"
  12235. deprecated="not deprecated">
  12236. <param name="out" type="java.io.DataOutput"/>
  12237. <exception name="IOException" type="java.io.IOException"/>
  12238. <doc>
  12239. <![CDATA[serialize
  12240. write this object to out
  12241. length uses zero-compressed encoding
  12242. @see Writable#write(DataOutput)]]>
  12243. </doc>
  12244. </method>
  12245. <method name="compareTo" return="int"
  12246. abstract="false" native="false" synchronized="false"
  12247. static="false" final="false" visibility="public"
  12248. deprecated="not deprecated">
  12249. <param name="o" type="java.lang.Object"/>
  12250. <doc>
  12251. <![CDATA[Compare two Texts bytewise using standard UTF8 ordering.]]>
  12252. </doc>
  12253. </method>
  12254. <method name="equals" return="boolean"
  12255. abstract="false" native="false" synchronized="false"
  12256. static="false" final="false" visibility="public"
  12257. deprecated="not deprecated">
  12258. <param name="o" type="java.lang.Object"/>
  12259. <doc>
  12260. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  12261. </doc>
  12262. </method>
  12263. <method name="hashCode" return="int"
  12264. abstract="false" native="false" synchronized="false"
  12265. static="false" final="false" visibility="public"
  12266. deprecated="not deprecated">
  12267. <doc>
  12268. <![CDATA[hash function]]>
  12269. </doc>
  12270. </method>
  12271. <method name="decode" return="java.lang.String"
  12272. abstract="false" native="false" synchronized="false"
  12273. static="true" final="false" visibility="public"
  12274. deprecated="not deprecated">
  12275. <param name="utf8" type="byte[]"/>
  12276. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  12277. <doc>
  12278. <![CDATA[Converts the provided byte array to a String using the
  12279. UTF-8 encoding. If the input is malformed,
  12280. replace by a default value.]]>
  12281. </doc>
  12282. </method>
  12283. <method name="decode" return="java.lang.String"
  12284. abstract="false" native="false" synchronized="false"
  12285. static="true" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. <param name="utf8" type="byte[]"/>
  12288. <param name="start" type="int"/>
  12289. <param name="length" type="int"/>
  12290. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  12291. </method>
  12292. <method name="decode" return="java.lang.String"
  12293. abstract="false" native="false" synchronized="false"
  12294. static="true" final="false" visibility="public"
  12295. deprecated="not deprecated">
  12296. <param name="utf8" type="byte[]"/>
  12297. <param name="start" type="int"/>
  12298. <param name="length" type="int"/>
  12299. <param name="replace" type="boolean"/>
  12300. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  12301. <doc>
  12302. <![CDATA[Converts the provided byte array to a String using the
  12303. UTF-8 encoding. If <code>replace</code> is true, then
  12304. malformed input is replaced with the
  12305. substitution character, which is U+FFFD. Otherwise the
  12306. method throws a MalformedInputException.]]>
  12307. </doc>
  12308. </method>
  12309. <method name="encode" return="java.nio.ByteBuffer"
  12310. abstract="false" native="false" synchronized="false"
  12311. static="true" final="false" visibility="public"
  12312. deprecated="not deprecated">
  12313. <param name="string" type="java.lang.String"/>
  12314. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  12315. <doc>
  12316. <![CDATA[Converts the provided String to bytes using the
  12317. UTF-8 encoding. If the input is malformed,
  12318. invalid chars are replaced by a default value.
  12319. @return ByteBuffer: bytes stores at ByteBuffer.array()
  12320. and length is ByteBuffer.limit()]]>
  12321. </doc>
  12322. </method>
  12323. <method name="encode" return="java.nio.ByteBuffer"
  12324. abstract="false" native="false" synchronized="false"
  12325. static="true" final="false" visibility="public"
  12326. deprecated="not deprecated">
  12327. <param name="string" type="java.lang.String"/>
  12328. <param name="replace" type="boolean"/>
  12329. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  12330. <doc>
  12331. <![CDATA[Converts the provided String to bytes using the
  12332. UTF-8 encoding. If <code>replace</code> is true, then
  12333. malformed input is replaced with the
  12334. substitution character, which is U+FFFD. Otherwise the
  12335. method throws a MalformedInputException.
  12336. @return ByteBuffer: bytes stores at ByteBuffer.array()
  12337. and length is ByteBuffer.limit()]]>
  12338. </doc>
  12339. </method>
  12340. <method name="readString" return="java.lang.String"
  12341. abstract="false" native="false" synchronized="false"
  12342. static="true" final="false" visibility="public"
  12343. deprecated="not deprecated">
  12344. <param name="in" type="java.io.DataInput"/>
  12345. <exception name="IOException" type="java.io.IOException"/>
  12346. <doc>
  12347. <![CDATA[Read a UTF8 encoded string from in]]>
  12348. </doc>
  12349. </method>
  12350. <method name="writeString" return="int"
  12351. abstract="false" native="false" synchronized="false"
  12352. static="true" final="false" visibility="public"
  12353. deprecated="not deprecated">
  12354. <param name="out" type="java.io.DataOutput"/>
  12355. <param name="s" type="java.lang.String"/>
  12356. <exception name="IOException" type="java.io.IOException"/>
  12357. <doc>
  12358. <![CDATA[Write a UTF8 encoded string to out]]>
  12359. </doc>
  12360. </method>
  12361. <method name="validateUTF8"
  12362. abstract="false" native="false" synchronized="false"
  12363. static="true" final="false" visibility="public"
  12364. deprecated="not deprecated">
  12365. <param name="utf8" type="byte[]"/>
  12366. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  12367. <doc>
  12368. <![CDATA[Check if a byte array contains valid utf-8
  12369. @param utf8 byte array
  12370. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  12371. </doc>
  12372. </method>
  12373. <method name="validateUTF8"
  12374. abstract="false" native="false" synchronized="false"
  12375. static="true" final="false" visibility="public"
  12376. deprecated="not deprecated">
  12377. <param name="utf8" type="byte[]"/>
  12378. <param name="start" type="int"/>
  12379. <param name="len" type="int"/>
  12380. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  12381. <doc>
  12382. <![CDATA[Check to see if a byte array is valid utf-8
  12383. @param utf8 the array of bytes
  12384. @param start the offset of the first byte in the array
  12385. @param len the length of the byte sequence
  12386. @throws MalformedInputException if the byte array contains invalid bytes]]>
  12387. </doc>
  12388. </method>
  12389. <method name="bytesToCodePoint" return="int"
  12390. abstract="false" native="false" synchronized="false"
  12391. static="true" final="false" visibility="public"
  12392. deprecated="not deprecated">
  12393. <param name="bytes" type="java.nio.ByteBuffer"/>
  12394. <doc>
  12395. <![CDATA[Returns the next code point at the current position in
  12396. the buffer. The buffer's position will be incremented.
  12397. Any mark set on this buffer will be changed by this method!]]>
  12398. </doc>
  12399. </method>
  12400. <method name="utf8Length" return="int"
  12401. abstract="false" native="false" synchronized="false"
  12402. static="true" final="false" visibility="public"
  12403. deprecated="not deprecated">
  12404. <param name="string" type="java.lang.String"/>
  12405. <doc>
  12406. <![CDATA[For the given string, returns the number of UTF-8 bytes
  12407. required to encode the string.
  12408. @param string text to encode
  12409. @return number of UTF-8 bytes required to encode]]>
  12410. </doc>
  12411. </method>
  12412. <doc>
  12413. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  12414. to serialize, deserialize, and compare texts at byte level. The type of
  12415. length is integer and is serialized using zero-compressed format. <p>In
  12416. addition, it provides methods for string traversal without converting the
  12417. byte array to a string. <p>Also includes utilities for
  12418. serializing/deserialing a string, coding/decoding a string, checking if a
  12419. byte array contains valid UTF8 code, calculating the length of an encoded
  12420. string.]]>
  12421. </doc>
  12422. </class>
  12423. <!-- end class org.apache.hadoop.io.Text -->
  12424. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  12425. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12426. abstract="false"
  12427. static="true" final="false" visibility="public"
  12428. deprecated="not deprecated">
  12429. <constructor name="Text.Comparator"
  12430. static="false" final="false" visibility="public"
  12431. deprecated="not deprecated">
  12432. </constructor>
  12433. <method name="compare" return="int"
  12434. abstract="false" native="false" synchronized="false"
  12435. static="false" final="false" visibility="public"
  12436. deprecated="not deprecated">
  12437. <param name="b1" type="byte[]"/>
  12438. <param name="s1" type="int"/>
  12439. <param name="l1" type="int"/>
  12440. <param name="b2" type="byte[]"/>
  12441. <param name="s2" type="int"/>
  12442. <param name="l2" type="int"/>
  12443. </method>
  12444. <doc>
  12445. <![CDATA[A WritableComparator optimized for Text keys.]]>
  12446. </doc>
  12447. </class>
  12448. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  12449. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  12450. <class name="TwoDArrayWritable" extends="java.lang.Object"
  12451. abstract="false"
  12452. static="false" final="false" visibility="public"
  12453. deprecated="not deprecated">
  12454. <implements name="org.apache.hadoop.io.Writable"/>
  12455. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  12456. static="false" final="false" visibility="public"
  12457. deprecated="not deprecated">
  12458. </constructor>
  12459. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  12460. static="false" final="false" visibility="public"
  12461. deprecated="not deprecated">
  12462. </constructor>
  12463. <method name="toArray" return="java.lang.Object"
  12464. abstract="false" native="false" synchronized="false"
  12465. static="false" final="false" visibility="public"
  12466. deprecated="not deprecated">
  12467. </method>
  12468. <method name="set"
  12469. abstract="false" native="false" synchronized="false"
  12470. static="false" final="false" visibility="public"
  12471. deprecated="not deprecated">
  12472. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  12473. </method>
  12474. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  12475. abstract="false" native="false" synchronized="false"
  12476. static="false" final="false" visibility="public"
  12477. deprecated="not deprecated">
  12478. </method>
  12479. <method name="readFields"
  12480. abstract="false" native="false" synchronized="false"
  12481. static="false" final="false" visibility="public"
  12482. deprecated="not deprecated">
  12483. <param name="in" type="java.io.DataInput"/>
  12484. <exception name="IOException" type="java.io.IOException"/>
  12485. </method>
  12486. <method name="write"
  12487. abstract="false" native="false" synchronized="false"
  12488. static="false" final="false" visibility="public"
  12489. deprecated="not deprecated">
  12490. <param name="out" type="java.io.DataOutput"/>
  12491. <exception name="IOException" type="java.io.IOException"/>
  12492. </method>
  12493. <doc>
  12494. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  12495. </doc>
  12496. </class>
  12497. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  12498. <!-- start class org.apache.hadoop.io.UTF8 -->
  12499. <class name="UTF8" extends="java.lang.Object"
  12500. abstract="false"
  12501. static="false" final="false" visibility="public"
  12502. deprecated="replaced by Text">
  12503. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12504. <constructor name="UTF8"
  12505. static="false" final="false" visibility="public"
  12506. deprecated="not deprecated">
  12507. </constructor>
  12508. <constructor name="UTF8" type="java.lang.String"
  12509. static="false" final="false" visibility="public"
  12510. deprecated="not deprecated">
  12511. <doc>
  12512. <![CDATA[Construct from a given string.]]>
  12513. </doc>
  12514. </constructor>
  12515. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  12516. static="false" final="false" visibility="public"
  12517. deprecated="not deprecated">
  12518. <doc>
  12519. <![CDATA[Construct from a given string.]]>
  12520. </doc>
  12521. </constructor>
  12522. <method name="getBytes" return="byte[]"
  12523. abstract="false" native="false" synchronized="false"
  12524. static="false" final="false" visibility="public"
  12525. deprecated="not deprecated">
  12526. <doc>
  12527. <![CDATA[The raw bytes.]]>
  12528. </doc>
  12529. </method>
  12530. <method name="getLength" return="int"
  12531. abstract="false" native="false" synchronized="false"
  12532. static="false" final="false" visibility="public"
  12533. deprecated="not deprecated">
  12534. <doc>
  12535. <![CDATA[The number of bytes in the encoded string.]]>
  12536. </doc>
  12537. </method>
  12538. <method name="set"
  12539. abstract="false" native="false" synchronized="false"
  12540. static="false" final="false" visibility="public"
  12541. deprecated="not deprecated">
  12542. <param name="string" type="java.lang.String"/>
  12543. <doc>
  12544. <![CDATA[Set to contain the contents of a string.]]>
  12545. </doc>
  12546. </method>
  12547. <method name="set"
  12548. abstract="false" native="false" synchronized="false"
  12549. static="false" final="false" visibility="public"
  12550. deprecated="not deprecated">
  12551. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  12552. <doc>
  12553. <![CDATA[Set to contain the contents of a string.]]>
  12554. </doc>
  12555. </method>
  12556. <method name="readFields"
  12557. abstract="false" native="false" synchronized="false"
  12558. static="false" final="false" visibility="public"
  12559. deprecated="not deprecated">
  12560. <param name="in" type="java.io.DataInput"/>
  12561. <exception name="IOException" type="java.io.IOException"/>
  12562. </method>
  12563. <method name="skip"
  12564. abstract="false" native="false" synchronized="false"
  12565. static="true" final="false" visibility="public"
  12566. deprecated="not deprecated">
  12567. <param name="in" type="java.io.DataInput"/>
  12568. <exception name="IOException" type="java.io.IOException"/>
  12569. <doc>
  12570. <![CDATA[Skips over one UTF8 in the input.]]>
  12571. </doc>
  12572. </method>
  12573. <method name="write"
  12574. abstract="false" native="false" synchronized="false"
  12575. static="false" final="false" visibility="public"
  12576. deprecated="not deprecated">
  12577. <param name="out" type="java.io.DataOutput"/>
  12578. <exception name="IOException" type="java.io.IOException"/>
  12579. </method>
  12580. <method name="compareTo" return="int"
  12581. abstract="false" native="false" synchronized="false"
  12582. static="false" final="false" visibility="public"
  12583. deprecated="not deprecated">
  12584. <param name="o" type="java.lang.Object"/>
  12585. <doc>
  12586. <![CDATA[Compare two UTF8s.]]>
  12587. </doc>
  12588. </method>
  12589. <method name="toString" return="java.lang.String"
  12590. abstract="false" native="false" synchronized="false"
  12591. static="false" final="false" visibility="public"
  12592. deprecated="not deprecated">
  12593. <doc>
  12594. <![CDATA[Convert to a String.]]>
  12595. </doc>
  12596. </method>
  12597. <method name="equals" return="boolean"
  12598. abstract="false" native="false" synchronized="false"
  12599. static="false" final="false" visibility="public"
  12600. deprecated="not deprecated">
  12601. <param name="o" type="java.lang.Object"/>
  12602. <doc>
  12603. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  12604. </doc>
  12605. </method>
  12606. <method name="hashCode" return="int"
  12607. abstract="false" native="false" synchronized="false"
  12608. static="false" final="false" visibility="public"
  12609. deprecated="not deprecated">
  12610. </method>
  12611. <method name="getBytes" return="byte[]"
  12612. abstract="false" native="false" synchronized="false"
  12613. static="true" final="false" visibility="public"
  12614. deprecated="not deprecated">
  12615. <param name="string" type="java.lang.String"/>
  12616. <doc>
  12617. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  12618. @see String#getBytes(String)]]>
  12619. </doc>
  12620. </method>
  12621. <method name="readString" return="java.lang.String"
  12622. abstract="false" native="false" synchronized="false"
  12623. static="true" final="false" visibility="public"
  12624. deprecated="not deprecated">
  12625. <param name="in" type="java.io.DataInput"/>
  12626. <exception name="IOException" type="java.io.IOException"/>
  12627. <doc>
  12628. <![CDATA[Read a UTF-8 encoded string.
  12629. @see DataInput#readUTF()]]>
  12630. </doc>
  12631. </method>
  12632. <method name="writeString" return="int"
  12633. abstract="false" native="false" synchronized="false"
  12634. static="true" final="false" visibility="public"
  12635. deprecated="not deprecated">
  12636. <param name="out" type="java.io.DataOutput"/>
  12637. <param name="s" type="java.lang.String"/>
  12638. <exception name="IOException" type="java.io.IOException"/>
  12639. <doc>
  12640. <![CDATA[Write a UTF-8 encoded string.
  12641. @see DataOutput#writeUTF(String)]]>
  12642. </doc>
  12643. </method>
  12644. <doc>
  12645. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  12646. <p>Also includes utilities for efficiently reading and writing UTF-8.
  12647. @deprecated replaced by Text]]>
  12648. </doc>
  12649. </class>
  12650. <!-- end class org.apache.hadoop.io.UTF8 -->
  12651. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  12652. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12653. abstract="false"
  12654. static="true" final="false" visibility="public"
  12655. deprecated="not deprecated">
  12656. <constructor name="UTF8.Comparator"
  12657. static="false" final="false" visibility="public"
  12658. deprecated="not deprecated">
  12659. </constructor>
  12660. <method name="compare" return="int"
  12661. abstract="false" native="false" synchronized="false"
  12662. static="false" final="false" visibility="public"
  12663. deprecated="not deprecated">
  12664. <param name="b1" type="byte[]"/>
  12665. <param name="s1" type="int"/>
  12666. <param name="l1" type="int"/>
  12667. <param name="b2" type="byte[]"/>
  12668. <param name="s2" type="int"/>
  12669. <param name="l2" type="int"/>
  12670. </method>
  12671. <doc>
  12672. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  12673. </doc>
  12674. </class>
  12675. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  12676. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  12677. <class name="VersionedWritable" extends="java.lang.Object"
  12678. abstract="true"
  12679. static="false" final="false" visibility="public"
  12680. deprecated="not deprecated">
  12681. <implements name="org.apache.hadoop.io.Writable"/>
  12682. <constructor name="VersionedWritable"
  12683. static="false" final="false" visibility="public"
  12684. deprecated="not deprecated">
  12685. </constructor>
  12686. <method name="getVersion" return="byte"
  12687. abstract="true" native="false" synchronized="false"
  12688. static="false" final="false" visibility="public"
  12689. deprecated="not deprecated">
  12690. <doc>
  12691. <![CDATA[Return the version number of the current implementation.]]>
  12692. </doc>
  12693. </method>
  12694. <method name="write"
  12695. abstract="false" native="false" synchronized="false"
  12696. static="false" final="false" visibility="public"
  12697. deprecated="not deprecated">
  12698. <param name="out" type="java.io.DataOutput"/>
  12699. <exception name="IOException" type="java.io.IOException"/>
  12700. </method>
  12701. <method name="readFields"
  12702. abstract="false" native="false" synchronized="false"
  12703. static="false" final="false" visibility="public"
  12704. deprecated="not deprecated">
  12705. <param name="in" type="java.io.DataInput"/>
  12706. <exception name="IOException" type="java.io.IOException"/>
  12707. </method>
  12708. <doc>
  12709. <![CDATA[A base class for Writables that provides version checking.
  12710. <p>This is useful when a class may evolve, so that instances written by the
  12711. old version of the class may still be processed by the new version. To
  12712. handle this situation, {@link #readFields(DataInput)}
  12713. implementations should catch {@link VersionMismatchException}.]]>
  12714. </doc>
  12715. </class>
  12716. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  12717. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  12718. <class name="VersionMismatchException" extends="java.io.IOException"
  12719. abstract="false"
  12720. static="false" final="false" visibility="public"
  12721. deprecated="not deprecated">
  12722. <constructor name="VersionMismatchException" type="byte, byte"
  12723. static="false" final="false" visibility="public"
  12724. deprecated="not deprecated">
  12725. </constructor>
  12726. <method name="toString" return="java.lang.String"
  12727. abstract="false" native="false" synchronized="false"
  12728. static="false" final="false" visibility="public"
  12729. deprecated="not deprecated">
  12730. <doc>
  12731. <![CDATA[Returns a string representation of this object.]]>
  12732. </doc>
  12733. </method>
  12734. <doc>
  12735. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  12736. version of an object being read does not match the current implementation
  12737. version as returned by {@link VersionedWritable#getVersion()}.]]>
  12738. </doc>
  12739. </class>
  12740. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  12741. <!-- start class org.apache.hadoop.io.VIntWritable -->
  12742. <class name="VIntWritable" extends="java.lang.Object"
  12743. abstract="false"
  12744. static="false" final="false" visibility="public"
  12745. deprecated="not deprecated">
  12746. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12747. <constructor name="VIntWritable"
  12748. static="false" final="false" visibility="public"
  12749. deprecated="not deprecated">
  12750. </constructor>
  12751. <constructor name="VIntWritable" type="int"
  12752. static="false" final="false" visibility="public"
  12753. deprecated="not deprecated">
  12754. </constructor>
  12755. <method name="set"
  12756. abstract="false" native="false" synchronized="false"
  12757. static="false" final="false" visibility="public"
  12758. deprecated="not deprecated">
  12759. <param name="value" type="int"/>
  12760. <doc>
  12761. <![CDATA[Set the value of this VIntWritable.]]>
  12762. </doc>
  12763. </method>
  12764. <method name="get" return="int"
  12765. abstract="false" native="false" synchronized="false"
  12766. static="false" final="false" visibility="public"
  12767. deprecated="not deprecated">
  12768. <doc>
  12769. <![CDATA[Return the value of this VIntWritable.]]>
  12770. </doc>
  12771. </method>
  12772. <method name="readFields"
  12773. abstract="false" native="false" synchronized="false"
  12774. static="false" final="false" visibility="public"
  12775. deprecated="not deprecated">
  12776. <param name="in" type="java.io.DataInput"/>
  12777. <exception name="IOException" type="java.io.IOException"/>
  12778. </method>
  12779. <method name="write"
  12780. abstract="false" native="false" synchronized="false"
  12781. static="false" final="false" visibility="public"
  12782. deprecated="not deprecated">
  12783. <param name="out" type="java.io.DataOutput"/>
  12784. <exception name="IOException" type="java.io.IOException"/>
  12785. </method>
  12786. <method name="equals" return="boolean"
  12787. abstract="false" native="false" synchronized="false"
  12788. static="false" final="false" visibility="public"
  12789. deprecated="not deprecated">
  12790. <param name="o" type="java.lang.Object"/>
  12791. <doc>
  12792. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  12793. </doc>
  12794. </method>
  12795. <method name="hashCode" return="int"
  12796. abstract="false" native="false" synchronized="false"
  12797. static="false" final="false" visibility="public"
  12798. deprecated="not deprecated">
  12799. </method>
  12800. <method name="compareTo" return="int"
  12801. abstract="false" native="false" synchronized="false"
  12802. static="false" final="false" visibility="public"
  12803. deprecated="not deprecated">
  12804. <param name="o" type="java.lang.Object"/>
  12805. <doc>
  12806. <![CDATA[Compares two VIntWritables.]]>
  12807. </doc>
  12808. </method>
  12809. <method name="toString" return="java.lang.String"
  12810. abstract="false" native="false" synchronized="false"
  12811. static="false" final="false" visibility="public"
  12812. deprecated="not deprecated">
  12813. </method>
  12814. <doc>
  12815. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  12816. Such values take between one and five bytes. Smaller values take fewer bytes.
  12817. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  12818. </doc>
  12819. </class>
  12820. <!-- end class org.apache.hadoop.io.VIntWritable -->
  12821. <!-- start class org.apache.hadoop.io.VLongWritable -->
  12822. <class name="VLongWritable" extends="java.lang.Object"
  12823. abstract="false"
  12824. static="false" final="false" visibility="public"
  12825. deprecated="not deprecated">
  12826. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12827. <constructor name="VLongWritable"
  12828. static="false" final="false" visibility="public"
  12829. deprecated="not deprecated">
  12830. </constructor>
  12831. <constructor name="VLongWritable" type="long"
  12832. static="false" final="false" visibility="public"
  12833. deprecated="not deprecated">
  12834. </constructor>
  12835. <method name="set"
  12836. abstract="false" native="false" synchronized="false"
  12837. static="false" final="false" visibility="public"
  12838. deprecated="not deprecated">
  12839. <param name="value" type="long"/>
  12840. <doc>
  12841. <![CDATA[Set the value of this LongWritable.]]>
  12842. </doc>
  12843. </method>
  12844. <method name="get" return="long"
  12845. abstract="false" native="false" synchronized="false"
  12846. static="false" final="false" visibility="public"
  12847. deprecated="not deprecated">
  12848. <doc>
  12849. <![CDATA[Return the value of this LongWritable.]]>
  12850. </doc>
  12851. </method>
  12852. <method name="readFields"
  12853. abstract="false" native="false" synchronized="false"
  12854. static="false" final="false" visibility="public"
  12855. deprecated="not deprecated">
  12856. <param name="in" type="java.io.DataInput"/>
  12857. <exception name="IOException" type="java.io.IOException"/>
  12858. </method>
  12859. <method name="write"
  12860. abstract="false" native="false" synchronized="false"
  12861. static="false" final="false" visibility="public"
  12862. deprecated="not deprecated">
  12863. <param name="out" type="java.io.DataOutput"/>
  12864. <exception name="IOException" type="java.io.IOException"/>
  12865. </method>
  12866. <method name="equals" return="boolean"
  12867. abstract="false" native="false" synchronized="false"
  12868. static="false" final="false" visibility="public"
  12869. deprecated="not deprecated">
  12870. <param name="o" type="java.lang.Object"/>
  12871. <doc>
  12872. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  12873. </doc>
  12874. </method>
  12875. <method name="hashCode" return="int"
  12876. abstract="false" native="false" synchronized="false"
  12877. static="false" final="false" visibility="public"
  12878. deprecated="not deprecated">
  12879. </method>
  12880. <method name="compareTo" return="int"
  12881. abstract="false" native="false" synchronized="false"
  12882. static="false" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. <param name="o" type="java.lang.Object"/>
  12885. <doc>
  12886. <![CDATA[Compares two VLongWritables.]]>
  12887. </doc>
  12888. </method>
  12889. <method name="toString" return="java.lang.String"
  12890. abstract="false" native="false" synchronized="false"
  12891. static="false" final="false" visibility="public"
  12892. deprecated="not deprecated">
  12893. </method>
  12894. <doc>
  12895. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  12896. between one and five bytes. Smaller values take fewer bytes.
  12897. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  12898. </doc>
  12899. </class>
  12900. <!-- end class org.apache.hadoop.io.VLongWritable -->
  12901. <!-- start interface org.apache.hadoop.io.Writable -->
  12902. <interface name="Writable" abstract="true"
  12903. static="false" final="false" visibility="public"
  12904. deprecated="not deprecated">
  12905. <method name="write"
  12906. abstract="false" native="false" synchronized="false"
  12907. static="false" final="false" visibility="public"
  12908. deprecated="not deprecated">
  12909. <param name="out" type="java.io.DataOutput"/>
  12910. <exception name="IOException" type="java.io.IOException"/>
  12911. <doc>
  12912. <![CDATA[Serialize the fields of this object to <code>out</code>.
  12913. @param out <code>DataOuput</code> to serialize this object into.
  12914. @throws IOException]]>
  12915. </doc>
  12916. </method>
  12917. <method name="readFields"
  12918. abstract="false" native="false" synchronized="false"
  12919. static="false" final="false" visibility="public"
  12920. deprecated="not deprecated">
  12921. <param name="in" type="java.io.DataInput"/>
  12922. <exception name="IOException" type="java.io.IOException"/>
  12923. <doc>
  12924. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  12925. <p>For efficiency, implementations should attempt to re-use storage in the
  12926. existing object where possible.</p>
  12927. @param in <code>DataInput</code> to deseriablize this object from.
  12928. @throws IOException]]>
  12929. </doc>
  12930. </method>
  12931. <doc>
  12932. <![CDATA[A serializable object which implements a simple, efficient, serialization
  12933. protocol, based on {@link DataInput} and {@link DataOutput}.
  12934. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  12935. framework implements this interface.</p>
  12936. <p>Implementations typically implement a static <code>read(DataInput)</code>
  12937. method which constructs a new instance, calls {@link #readFields(DataInput)}
  12938. and returns the instance.</p>
  12939. <p>Example:</p>
  12940. <p><blockquote><pre>
  12941. public class MyWritable implements Writable {
  12942. // Some data
  12943. private int counter;
  12944. private long timestamp;
  12945. public void write(DataOutput out) throws IOException {
  12946. out.writeInt(counter);
  12947. out.writeLong(timestamp);
  12948. }
  12949. public void readFields(DataInput in) throws IOException {
  12950. counter = in.readInt();
  12951. timestamp = in.readLong();
  12952. }
  12953. public static MyWritable read(DataInput in) throws IOException {
  12954. MyWritable w = new MyWritable();
  12955. w.readFields(in);
  12956. return w;
  12957. }
  12958. }
  12959. </pre></blockquote></p>]]>
  12960. </doc>
  12961. </interface>
  12962. <!-- end interface org.apache.hadoop.io.Writable -->
  12963. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  12964. <interface name="WritableComparable" abstract="true"
  12965. static="false" final="false" visibility="public"
  12966. deprecated="not deprecated">
  12967. <implements name="org.apache.hadoop.io.Writable"/>
  12968. <implements name="java.lang.Comparable&lt;T&gt;"/>
  12969. <doc>
  12970. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  12971. <p><code>WritableComparable</code>s can be compared to each other, typically
  12972. via <code>Comparator</code>s. Any type which is to be used as a
  12973. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  12974. interface.</p>
  12975. <p>Example:</p>
  12976. <p><blockquote><pre>
  12977. public class MyWritableComparable implements WritableComparable {
  12978. // Some data
  12979. private int counter;
  12980. private long timestamp;
  12981. public void write(DataOutput out) throws IOException {
  12982. out.writeInt(counter);
  12983. out.writeLong(timestamp);
  12984. }
  12985. public void readFields(DataInput in) throws IOException {
  12986. counter = in.readInt();
  12987. timestamp = in.readLong();
  12988. }
  12989. public int compareTo(MyWritableComparable w) {
  12990. int thisValue = this.value;
  12991. int thatValue = ((IntWritable)o).value;
  12992. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  12993. }
  12994. }
  12995. </pre></blockquote></p>]]>
  12996. </doc>
  12997. </interface>
  12998. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  12999. <!-- start class org.apache.hadoop.io.WritableComparator -->
  13000. <class name="WritableComparator" extends="java.lang.Object"
  13001. abstract="false"
  13002. static="false" final="false" visibility="public"
  13003. deprecated="not deprecated">
  13004. <implements name="org.apache.hadoop.io.RawComparator"/>
  13005. <constructor name="WritableComparator" type="java.lang.Class"
  13006. static="false" final="false" visibility="protected"
  13007. deprecated="not deprecated">
  13008. <doc>
  13009. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  13010. </doc>
  13011. </constructor>
  13012. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  13013. static="false" final="false" visibility="protected"
  13014. deprecated="not deprecated">
  13015. </constructor>
  13016. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  13017. abstract="false" native="false" synchronized="true"
  13018. static="true" final="false" visibility="public"
  13019. deprecated="not deprecated">
  13020. <param name="c" type="java.lang.Class"/>
  13021. <doc>
  13022. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  13023. </doc>
  13024. </method>
  13025. <method name="define"
  13026. abstract="false" native="false" synchronized="true"
  13027. static="true" final="false" visibility="public"
  13028. deprecated="not deprecated">
  13029. <param name="c" type="java.lang.Class"/>
  13030. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  13031. <doc>
  13032. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  13033. implementation.]]>
  13034. </doc>
  13035. </method>
  13036. <method name="getKeyClass" return="java.lang.Class"
  13037. abstract="false" native="false" synchronized="false"
  13038. static="false" final="false" visibility="public"
  13039. deprecated="not deprecated">
  13040. <doc>
  13041. <![CDATA[Returns the WritableComparable implementation class.]]>
  13042. </doc>
  13043. </method>
  13044. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  13045. abstract="false" native="false" synchronized="false"
  13046. static="false" final="false" visibility="public"
  13047. deprecated="not deprecated">
  13048. <doc>
  13049. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  13050. </doc>
  13051. </method>
  13052. <method name="compare" return="int"
  13053. abstract="false" native="false" synchronized="false"
  13054. static="false" final="false" visibility="public"
  13055. deprecated="not deprecated">
  13056. <param name="b1" type="byte[]"/>
  13057. <param name="s1" type="int"/>
  13058. <param name="l1" type="int"/>
  13059. <param name="b2" type="byte[]"/>
  13060. <param name="s2" type="int"/>
  13061. <param name="l2" type="int"/>
  13062. <doc>
  13063. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  13064. <p>The default implementation reads the data into two {@link
  13065. WritableComparable}s (using {@link
  13066. Writable#readFields(DataInput)}, then calls {@link
  13067. #compare(WritableComparable,WritableComparable)}.]]>
  13068. </doc>
  13069. </method>
  13070. <method name="compare" return="int"
  13071. abstract="false" native="false" synchronized="false"
  13072. static="false" final="false" visibility="public"
  13073. deprecated="not deprecated">
  13074. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  13075. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  13076. <doc>
  13077. <![CDATA[Compare two WritableComparables.
  13078. <p> The default implementation uses the natural ordering, calling {@link
  13079. Comparable#compareTo(Object)}.]]>
  13080. </doc>
  13081. </method>
  13082. <method name="compare" return="int"
  13083. abstract="false" native="false" synchronized="false"
  13084. static="false" final="false" visibility="public"
  13085. deprecated="not deprecated">
  13086. <param name="a" type="java.lang.Object"/>
  13087. <param name="b" type="java.lang.Object"/>
  13088. </method>
  13089. <method name="compareBytes" return="int"
  13090. abstract="false" native="false" synchronized="false"
  13091. static="true" final="false" visibility="public"
  13092. deprecated="not deprecated">
  13093. <param name="b1" type="byte[]"/>
  13094. <param name="s1" type="int"/>
  13095. <param name="l1" type="int"/>
  13096. <param name="b2" type="byte[]"/>
  13097. <param name="s2" type="int"/>
  13098. <param name="l2" type="int"/>
  13099. <doc>
  13100. <![CDATA[Lexicographic order of binary data.]]>
  13101. </doc>
  13102. </method>
  13103. <method name="hashBytes" return="int"
  13104. abstract="false" native="false" synchronized="false"
  13105. static="true" final="false" visibility="public"
  13106. deprecated="not deprecated">
  13107. <param name="bytes" type="byte[]"/>
  13108. <param name="length" type="int"/>
  13109. <doc>
  13110. <![CDATA[Compute hash for binary data.]]>
  13111. </doc>
  13112. </method>
  13113. <method name="readUnsignedShort" return="int"
  13114. abstract="false" native="false" synchronized="false"
  13115. static="true" final="false" visibility="public"
  13116. deprecated="not deprecated">
  13117. <param name="bytes" type="byte[]"/>
  13118. <param name="start" type="int"/>
  13119. <doc>
  13120. <![CDATA[Parse an unsigned short from a byte array.]]>
  13121. </doc>
  13122. </method>
  13123. <method name="readInt" return="int"
  13124. abstract="false" native="false" synchronized="false"
  13125. static="true" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <param name="bytes" type="byte[]"/>
  13128. <param name="start" type="int"/>
  13129. <doc>
  13130. <![CDATA[Parse an integer from a byte array.]]>
  13131. </doc>
  13132. </method>
  13133. <method name="readFloat" return="float"
  13134. abstract="false" native="false" synchronized="false"
  13135. static="true" final="false" visibility="public"
  13136. deprecated="not deprecated">
  13137. <param name="bytes" type="byte[]"/>
  13138. <param name="start" type="int"/>
  13139. <doc>
  13140. <![CDATA[Parse a float from a byte array.]]>
  13141. </doc>
  13142. </method>
  13143. <method name="readLong" return="long"
  13144. abstract="false" native="false" synchronized="false"
  13145. static="true" final="false" visibility="public"
  13146. deprecated="not deprecated">
  13147. <param name="bytes" type="byte[]"/>
  13148. <param name="start" type="int"/>
  13149. <doc>
  13150. <![CDATA[Parse a long from a byte array.]]>
  13151. </doc>
  13152. </method>
  13153. <method name="readDouble" return="double"
  13154. abstract="false" native="false" synchronized="false"
  13155. static="true" final="false" visibility="public"
  13156. deprecated="not deprecated">
  13157. <param name="bytes" type="byte[]"/>
  13158. <param name="start" type="int"/>
  13159. <doc>
  13160. <![CDATA[Parse a double from a byte array.]]>
  13161. </doc>
  13162. </method>
  13163. <method name="readVLong" return="long"
  13164. abstract="false" native="false" synchronized="false"
  13165. static="true" final="false" visibility="public"
  13166. deprecated="not deprecated">
  13167. <param name="bytes" type="byte[]"/>
  13168. <param name="start" type="int"/>
  13169. <exception name="IOException" type="java.io.IOException"/>
  13170. <doc>
  13171. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  13172. @param bytes byte array with decode long
  13173. @param start starting index
  13174. @throws java.io.IOException
  13175. @return deserialized long]]>
  13176. </doc>
  13177. </method>
  13178. <method name="readVInt" return="int"
  13179. abstract="false" native="false" synchronized="false"
  13180. static="true" final="false" visibility="public"
  13181. deprecated="not deprecated">
  13182. <param name="bytes" type="byte[]"/>
  13183. <param name="start" type="int"/>
  13184. <exception name="IOException" type="java.io.IOException"/>
  13185. <doc>
  13186. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  13187. @param bytes byte array with the encoded integer
  13188. @param start start index
  13189. @throws java.io.IOException
  13190. @return deserialized integer]]>
  13191. </doc>
  13192. </method>
  13193. <doc>
  13194. <![CDATA[A Comparator for {@link WritableComparable}s.
  13195. <p>This base implemenation uses the natural ordering. To define alternate
  13196. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  13197. <p>One may optimize compare-intensive operations by overriding
  13198. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  13199. provided to assist in optimized implementations of this method.]]>
  13200. </doc>
  13201. </class>
  13202. <!-- end class org.apache.hadoop.io.WritableComparator -->
  13203. <!-- start class org.apache.hadoop.io.WritableFactories -->
  13204. <class name="WritableFactories" extends="java.lang.Object"
  13205. abstract="false"
  13206. static="false" final="false" visibility="public"
  13207. deprecated="not deprecated">
  13208. <method name="setFactory"
  13209. abstract="false" native="false" synchronized="true"
  13210. static="true" final="false" visibility="public"
  13211. deprecated="not deprecated">
  13212. <param name="c" type="java.lang.Class"/>
  13213. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  13214. <doc>
  13215. <![CDATA[Define a factory for a class.]]>
  13216. </doc>
  13217. </method>
  13218. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  13219. abstract="false" native="false" synchronized="true"
  13220. static="true" final="false" visibility="public"
  13221. deprecated="not deprecated">
  13222. <param name="c" type="java.lang.Class"/>
  13223. <doc>
  13224. <![CDATA[Define a factory for a class.]]>
  13225. </doc>
  13226. </method>
  13227. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  13228. abstract="false" native="false" synchronized="false"
  13229. static="true" final="false" visibility="public"
  13230. deprecated="not deprecated">
  13231. <param name="c" type="java.lang.Class"/>
  13232. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13233. <doc>
  13234. <![CDATA[Create a new instance of a class with a defined factory.]]>
  13235. </doc>
  13236. </method>
  13237. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  13238. abstract="false" native="false" synchronized="false"
  13239. static="true" final="false" visibility="public"
  13240. deprecated="not deprecated">
  13241. <param name="c" type="java.lang.Class"/>
  13242. <doc>
  13243. <![CDATA[Create a new instance of a class with a defined factory.]]>
  13244. </doc>
  13245. </method>
  13246. <doc>
  13247. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  13248. ObjectWritable} to be able to construct instances of non-public classes.]]>
  13249. </doc>
  13250. </class>
  13251. <!-- end class org.apache.hadoop.io.WritableFactories -->
  13252. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  13253. <interface name="WritableFactory" abstract="true"
  13254. static="false" final="false" visibility="public"
  13255. deprecated="not deprecated">
  13256. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  13257. abstract="false" native="false" synchronized="false"
  13258. static="false" final="false" visibility="public"
  13259. deprecated="not deprecated">
  13260. <doc>
  13261. <![CDATA[Return a new instance.]]>
  13262. </doc>
  13263. </method>
  13264. <doc>
  13265. <![CDATA[A factory for a class of Writable.
  13266. @see WritableFactories]]>
  13267. </doc>
  13268. </interface>
  13269. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  13270. <!-- start class org.apache.hadoop.io.WritableName -->
  13271. <class name="WritableName" extends="java.lang.Object"
  13272. abstract="false"
  13273. static="false" final="false" visibility="public"
  13274. deprecated="not deprecated">
  13275. <method name="setName"
  13276. abstract="false" native="false" synchronized="true"
  13277. static="true" final="false" visibility="public"
  13278. deprecated="not deprecated">
  13279. <param name="writableClass" type="java.lang.Class"/>
  13280. <param name="name" type="java.lang.String"/>
  13281. <doc>
  13282. <![CDATA[Set the name that a class should be known as to something other than the
  13283. class name.]]>
  13284. </doc>
  13285. </method>
  13286. <method name="addName"
  13287. abstract="false" native="false" synchronized="true"
  13288. static="true" final="false" visibility="public"
  13289. deprecated="not deprecated">
  13290. <param name="writableClass" type="java.lang.Class"/>
  13291. <param name="name" type="java.lang.String"/>
  13292. <doc>
  13293. <![CDATA[Add an alternate name for a class.]]>
  13294. </doc>
  13295. </method>
  13296. <method name="getName" return="java.lang.String"
  13297. abstract="false" native="false" synchronized="true"
  13298. static="true" final="false" visibility="public"
  13299. deprecated="not deprecated">
  13300. <param name="writableClass" type="java.lang.Class"/>
  13301. <doc>
  13302. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  13303. </doc>
  13304. </method>
  13305. <method name="getClass" return="java.lang.Class"
  13306. abstract="false" native="false" synchronized="true"
  13307. static="true" final="false" visibility="public"
  13308. deprecated="not deprecated">
  13309. <param name="name" type="java.lang.String"/>
  13310. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13311. <exception name="IOException" type="java.io.IOException"/>
  13312. <doc>
  13313. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  13314. </doc>
  13315. </method>
  13316. <doc>
  13317. <![CDATA[Utility to permit renaming of Writable implementation classes without
  13318. invalidiating files that contain their class name.]]>
  13319. </doc>
  13320. </class>
  13321. <!-- end class org.apache.hadoop.io.WritableName -->
  13322. <!-- start class org.apache.hadoop.io.WritableUtils -->
  13323. <class name="WritableUtils" extends="java.lang.Object"
  13324. abstract="false"
  13325. static="false" final="true" visibility="public"
  13326. deprecated="not deprecated">
  13327. <constructor name="WritableUtils"
  13328. static="false" final="false" visibility="public"
  13329. deprecated="not deprecated">
  13330. </constructor>
  13331. <method name="readCompressedByteArray" return="byte[]"
  13332. abstract="false" native="false" synchronized="false"
  13333. static="true" final="false" visibility="public"
  13334. deprecated="not deprecated">
  13335. <param name="in" type="java.io.DataInput"/>
  13336. <exception name="IOException" type="java.io.IOException"/>
  13337. </method>
  13338. <method name="skipCompressedByteArray"
  13339. abstract="false" native="false" synchronized="false"
  13340. static="true" final="false" visibility="public"
  13341. deprecated="not deprecated">
  13342. <param name="in" type="java.io.DataInput"/>
  13343. <exception name="IOException" type="java.io.IOException"/>
  13344. </method>
  13345. <method name="writeCompressedByteArray" return="int"
  13346. abstract="false" native="false" synchronized="false"
  13347. static="true" final="false" visibility="public"
  13348. deprecated="not deprecated">
  13349. <param name="out" type="java.io.DataOutput"/>
  13350. <param name="bytes" type="byte[]"/>
  13351. <exception name="IOException" type="java.io.IOException"/>
  13352. </method>
  13353. <method name="readCompressedString" return="java.lang.String"
  13354. abstract="false" native="false" synchronized="false"
  13355. static="true" final="false" visibility="public"
  13356. deprecated="not deprecated">
  13357. <param name="in" type="java.io.DataInput"/>
  13358. <exception name="IOException" type="java.io.IOException"/>
  13359. </method>
  13360. <method name="writeCompressedString" return="int"
  13361. abstract="false" native="false" synchronized="false"
  13362. static="true" final="false" visibility="public"
  13363. deprecated="not deprecated">
  13364. <param name="out" type="java.io.DataOutput"/>
  13365. <param name="s" type="java.lang.String"/>
  13366. <exception name="IOException" type="java.io.IOException"/>
  13367. </method>
  13368. <method name="writeString"
  13369. abstract="false" native="false" synchronized="false"
  13370. static="true" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <param name="out" type="java.io.DataOutput"/>
  13373. <param name="s" type="java.lang.String"/>
  13374. <exception name="IOException" type="java.io.IOException"/>
  13375. </method>
  13376. <method name="readString" return="java.lang.String"
  13377. abstract="false" native="false" synchronized="false"
  13378. static="true" final="false" visibility="public"
  13379. deprecated="not deprecated">
  13380. <param name="in" type="java.io.DataInput"/>
  13381. <exception name="IOException" type="java.io.IOException"/>
  13382. </method>
  13383. <method name="writeStringArray"
  13384. abstract="false" native="false" synchronized="false"
  13385. static="true" final="false" visibility="public"
  13386. deprecated="not deprecated">
  13387. <param name="out" type="java.io.DataOutput"/>
  13388. <param name="s" type="java.lang.String[]"/>
  13389. <exception name="IOException" type="java.io.IOException"/>
  13390. </method>
  13391. <method name="writeCompressedStringArray"
  13392. abstract="false" native="false" synchronized="false"
  13393. static="true" final="false" visibility="public"
  13394. deprecated="not deprecated">
  13395. <param name="out" type="java.io.DataOutput"/>
  13396. <param name="s" type="java.lang.String[]"/>
  13397. <exception name="IOException" type="java.io.IOException"/>
  13398. </method>
  13399. <method name="readStringArray" return="java.lang.String[]"
  13400. abstract="false" native="false" synchronized="false"
  13401. static="true" final="false" visibility="public"
  13402. deprecated="not deprecated">
  13403. <param name="in" type="java.io.DataInput"/>
  13404. <exception name="IOException" type="java.io.IOException"/>
  13405. </method>
  13406. <method name="readCompressedStringArray" return="java.lang.String[]"
  13407. abstract="false" native="false" synchronized="false"
  13408. static="true" final="false" visibility="public"
  13409. deprecated="not deprecated">
  13410. <param name="in" type="java.io.DataInput"/>
  13411. <exception name="IOException" type="java.io.IOException"/>
  13412. </method>
  13413. <method name="displayByteArray"
  13414. abstract="false" native="false" synchronized="false"
  13415. static="true" final="false" visibility="public"
  13416. deprecated="not deprecated">
  13417. <param name="record" type="byte[]"/>
  13418. </method>
  13419. <method name="clone" return="org.apache.hadoop.io.Writable"
  13420. abstract="false" native="false" synchronized="false"
  13421. static="true" final="false" visibility="public"
  13422. deprecated="not deprecated">
  13423. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  13424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13425. <doc>
  13426. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  13427. @param orig The object to copy
  13428. @return The copied object]]>
  13429. </doc>
  13430. </method>
  13431. <method name="cloneInto"
  13432. abstract="false" native="false" synchronized="false"
  13433. static="true" final="false" visibility="public"
  13434. deprecated="not deprecated">
  13435. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  13436. <param name="src" type="org.apache.hadoop.io.Writable"/>
  13437. <exception name="IOException" type="java.io.IOException"/>
  13438. <doc>
  13439. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  13440. @param dst the object to copy from
  13441. @param src the object to copy into, which is destroyed
  13442. @throws IOException]]>
  13443. </doc>
  13444. </method>
  13445. <method name="writeVInt"
  13446. abstract="false" native="false" synchronized="false"
  13447. static="true" final="false" visibility="public"
  13448. deprecated="not deprecated">
  13449. <param name="stream" type="java.io.DataOutput"/>
  13450. <param name="i" type="int"/>
  13451. <exception name="IOException" type="java.io.IOException"/>
  13452. <doc>
  13453. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  13454. For -120 <= i <= 127, only one byte is used with the actual value.
  13455. For other values of i, the first byte value indicates whether the
  13456. integer is positive or negative, and the number of bytes that follow.
  13457. If the first byte value v is between -121 and -124, the following integer
  13458. is positive, with number of bytes that follow are -(v+120).
  13459. If the first byte value v is between -125 and -128, the following integer
  13460. is negative, with number of bytes that follow are -(v+124). Bytes are
  13461. stored in the high-non-zero-byte-first order.
  13462. @param stream Binary output stream
  13463. @param i Integer to be serialized
  13464. @throws java.io.IOException]]>
  13465. </doc>
  13466. </method>
  13467. <method name="writeVLong"
  13468. abstract="false" native="false" synchronized="false"
  13469. static="true" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <param name="stream" type="java.io.DataOutput"/>
  13472. <param name="i" type="long"/>
  13473. <exception name="IOException" type="java.io.IOException"/>
  13474. <doc>
  13475. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  13476. For -112 <= i <= 127, only one byte is used with the actual value.
  13477. For other values of i, the first byte value indicates whether the
  13478. long is positive or negative, and the number of bytes that follow.
  13479. If the first byte value v is between -113 and -120, the following long
  13480. is positive, with number of bytes that follow are -(v+112).
  13481. If the first byte value v is between -121 and -128, the following long
  13482. is negative, with number of bytes that follow are -(v+120). Bytes are
  13483. stored in the high-non-zero-byte-first order.
  13484. @param stream Binary output stream
  13485. @param i Long to be serialized
  13486. @throws java.io.IOException]]>
  13487. </doc>
  13488. </method>
  13489. <method name="readVLong" return="long"
  13490. abstract="false" native="false" synchronized="false"
  13491. static="true" final="false" visibility="public"
  13492. deprecated="not deprecated">
  13493. <param name="stream" type="java.io.DataInput"/>
  13494. <exception name="IOException" type="java.io.IOException"/>
  13495. <doc>
  13496. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  13497. @param stream Binary input stream
  13498. @throws java.io.IOException
  13499. @return deserialized long from stream.]]>
  13500. </doc>
  13501. </method>
  13502. <method name="readVInt" return="int"
  13503. abstract="false" native="false" synchronized="false"
  13504. static="true" final="false" visibility="public"
  13505. deprecated="not deprecated">
  13506. <param name="stream" type="java.io.DataInput"/>
  13507. <exception name="IOException" type="java.io.IOException"/>
  13508. <doc>
  13509. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  13510. @param stream Binary input stream
  13511. @throws java.io.IOException
  13512. @return deserialized integer from stream.]]>
  13513. </doc>
  13514. </method>
  13515. <method name="isNegativeVInt" return="boolean"
  13516. abstract="false" native="false" synchronized="false"
  13517. static="true" final="false" visibility="public"
  13518. deprecated="not deprecated">
  13519. <param name="value" type="byte"/>
  13520. <doc>
  13521. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  13522. @param value the first byte
  13523. @return is the value negative]]>
  13524. </doc>
  13525. </method>
  13526. <method name="decodeVIntSize" return="int"
  13527. abstract="false" native="false" synchronized="false"
  13528. static="true" final="false" visibility="public"
  13529. deprecated="not deprecated">
  13530. <param name="value" type="byte"/>
  13531. <doc>
  13532. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  13533. @param value the first byte of the vint/vlong
  13534. @return the total number of bytes (1 to 9)]]>
  13535. </doc>
  13536. </method>
  13537. <method name="getVIntSize" return="int"
  13538. abstract="false" native="false" synchronized="false"
  13539. static="true" final="false" visibility="public"
  13540. deprecated="not deprecated">
  13541. <param name="i" type="long"/>
  13542. <doc>
  13543. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  13544. @return the encoded length]]>
  13545. </doc>
  13546. </method>
  13547. <method name="readEnum" return="T extends java.lang.Enum&lt;T&gt;"
  13548. abstract="false" native="false" synchronized="false"
  13549. static="true" final="false" visibility="public"
  13550. deprecated="not deprecated">
  13551. <param name="in" type="java.io.DataInput"/>
  13552. <param name="enumType" type="java.lang.Class&lt;T&gt;"/>
  13553. <exception name="IOException" type="java.io.IOException"/>
  13554. <doc>
  13555. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  13556. using String values.
  13557. @param <T> Enum type
  13558. @param in DataInput to read from
  13559. @param enumType Class type of Enum
  13560. @return Enum represented by String read from DataInput
  13561. @throws IOException]]>
  13562. </doc>
  13563. </method>
  13564. <method name="writeEnum"
  13565. abstract="false" native="false" synchronized="false"
  13566. static="true" final="false" visibility="public"
  13567. deprecated="not deprecated">
  13568. <param name="out" type="java.io.DataOutput"/>
  13569. <param name="enumVal" type="java.lang.Enum"/>
  13570. <exception name="IOException" type="java.io.IOException"/>
  13571. <doc>
  13572. <![CDATA[writes String value of enum to DataOutput.
  13573. @param out Dataoutput stream
  13574. @param enumVal enum value
  13575. @throws IOException]]>
  13576. </doc>
  13577. </method>
  13578. <method name="skipFully"
  13579. abstract="false" native="false" synchronized="false"
  13580. static="true" final="false" visibility="public"
  13581. deprecated="not deprecated">
  13582. <param name="in" type="java.io.DataInput"/>
  13583. <param name="len" type="int"/>
  13584. <exception name="IOException" type="java.io.IOException"/>
  13585. <doc>
  13586. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  13587. @param in input stream
  13588. @param len number of bytes to skip
  13589. @throws IOException when skipped less number of bytes]]>
  13590. </doc>
  13591. </method>
  13592. </class>
  13593. <!-- end class org.apache.hadoop.io.WritableUtils -->
  13594. </package>
  13595. <package name="org.apache.hadoop.io.compress">
  13596. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  13597. <class name="CodecPool" extends="java.lang.Object"
  13598. abstract="false"
  13599. static="false" final="false" visibility="public"
  13600. deprecated="not deprecated">
  13601. <constructor name="CodecPool"
  13602. static="false" final="false" visibility="public"
  13603. deprecated="not deprecated">
  13604. </constructor>
  13605. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  13606. abstract="false" native="false" synchronized="false"
  13607. static="true" final="false" visibility="public"
  13608. deprecated="not deprecated">
  13609. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13610. <doc>
  13611. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  13612. pool or a new one.
  13613. @param codec the <code>CompressionCodec</code> for which to get the
  13614. <code>Compressor</code>
  13615. @return <code>Compressor</code> for the given
  13616. <code>CompressionCodec</code> from the pool or a new one]]>
  13617. </doc>
  13618. </method>
  13619. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  13620. abstract="false" native="false" synchronized="false"
  13621. static="true" final="false" visibility="public"
  13622. deprecated="not deprecated">
  13623. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  13624. <doc>
  13625. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  13626. pool or a new one.
  13627. @param codec the <code>CompressionCodec</code> for which to get the
  13628. <code>Decompressor</code>
  13629. @return <code>Decompressor</code> for the given
  13630. <code>CompressionCodec</code> the pool or a new one]]>
  13631. </doc>
  13632. </method>
  13633. <method name="returnCompressor"
  13634. abstract="false" native="false" synchronized="false"
  13635. static="true" final="false" visibility="public"
  13636. deprecated="not deprecated">
  13637. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  13638. <doc>
  13639. <![CDATA[Return the {@link Compressor} to the pool.
  13640. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  13641. </doc>
  13642. </method>
  13643. <method name="returnDecompressor"
  13644. abstract="false" native="false" synchronized="false"
  13645. static="true" final="false" visibility="public"
  13646. deprecated="not deprecated">
  13647. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  13648. <doc>
  13649. <![CDATA[Return the {@link Decompressor} to the pool.
  13650. @param decompressor the <code>Decompressor</code> to be returned to the
  13651. pool]]>
  13652. </doc>
  13653. </method>
  13654. <doc>
  13655. <![CDATA[A global compressor/decompressor pool used to save and reuse
  13656. (possibly native) compression/decompression codecs.]]>
  13657. </doc>
  13658. </class>
  13659. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  13660. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  13661. <interface name="CompressionCodec" abstract="true"
  13662. static="false" final="false" visibility="public"
  13663. deprecated="not deprecated">
  13664. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  13665. abstract="false" native="false" synchronized="false"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <param name="out" type="java.io.OutputStream"/>
  13669. <exception name="IOException" type="java.io.IOException"/>
  13670. <doc>
  13671. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  13672. {@link OutputStream}.
  13673. @param out the location for the final output stream
  13674. @return a stream the user can write uncompressed data to have it compressed
  13675. @throws IOException]]>
  13676. </doc>
  13677. </method>
  13678. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  13679. abstract="false" native="false" synchronized="false"
  13680. static="false" final="false" visibility="public"
  13681. deprecated="not deprecated">
  13682. <param name="out" type="java.io.OutputStream"/>
  13683. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  13684. <exception name="IOException" type="java.io.IOException"/>
  13685. <doc>
  13686. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  13687. {@link OutputStream} with the given {@link Compressor}.
  13688. @param out the location for the final output stream
  13689. @param compressor compressor to use
  13690. @return a stream the user can write uncompressed data to have it compressed
  13691. @throws IOException]]>
  13692. </doc>
  13693. </method>
  13694. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  13695. abstract="false" native="false" synchronized="false"
  13696. static="false" final="false" visibility="public"
  13697. deprecated="not deprecated">
  13698. <doc>
  13699. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  13700. @return the type of compressor needed by this codec.]]>
  13701. </doc>
  13702. </method>
  13703. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  13704. abstract="false" native="false" synchronized="false"
  13705. static="false" final="false" visibility="public"
  13706. deprecated="not deprecated">
  13707. <doc>
  13708. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  13709. @return a new compressor for use by this codec]]>
  13710. </doc>
  13711. </method>
  13712. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  13713. abstract="false" native="false" synchronized="false"
  13714. static="false" final="false" visibility="public"
  13715. deprecated="not deprecated">
  13716. <param name="in" type="java.io.InputStream"/>
  13717. <exception name="IOException" type="java.io.IOException"/>
  13718. <doc>
  13719. <![CDATA[Create a stream decompressor that will read from the given input stream.
  13720. @param in the stream to read compressed bytes from
  13721. @return a stream to read uncompressed bytes from
  13722. @throws IOException]]>
  13723. </doc>
  13724. </method>
  13725. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  13726. abstract="false" native="false" synchronized="false"
  13727. static="false" final="false" visibility="public"
  13728. deprecated="not deprecated">
  13729. <param name="in" type="java.io.InputStream"/>
  13730. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  13731. <exception name="IOException" type="java.io.IOException"/>
  13732. <doc>
  13733. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  13734. {@link InputStream} with the given {@link Decompressor}.
  13735. @param in the stream to read compressed bytes from
  13736. @param decompressor decompressor to use
  13737. @return a stream to read uncompressed bytes from
  13738. @throws IOException]]>
  13739. </doc>
  13740. </method>
  13741. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  13742. abstract="false" native="false" synchronized="false"
  13743. static="false" final="false" visibility="public"
  13744. deprecated="not deprecated">
  13745. <doc>
  13746. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  13747. @return the type of decompressor needed by this codec.]]>
  13748. </doc>
  13749. </method>
  13750. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  13751. abstract="false" native="false" synchronized="false"
  13752. static="false" final="false" visibility="public"
  13753. deprecated="not deprecated">
  13754. <doc>
  13755. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  13756. @return a new decompressor for use by this codec]]>
  13757. </doc>
  13758. </method>
  13759. <method name="getDefaultExtension" return="java.lang.String"
  13760. abstract="false" native="false" synchronized="false"
  13761. static="false" final="false" visibility="public"
  13762. deprecated="not deprecated">
  13763. <doc>
  13764. <![CDATA[Get the default filename extension for this kind of compression.
  13765. @return the extension including the '.']]>
  13766. </doc>
  13767. </method>
  13768. <doc>
  13769. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  13770. </doc>
  13771. </interface>
  13772. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  13773. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  13774. <class name="CompressionCodecFactory" extends="java.lang.Object"
  13775. abstract="false"
  13776. static="false" final="false" visibility="public"
  13777. deprecated="not deprecated">
  13778. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  13779. static="false" final="false" visibility="public"
  13780. deprecated="not deprecated">
  13781. <doc>
  13782. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  13783. and register them. Defaults to gzip and zip.]]>
  13784. </doc>
  13785. </constructor>
  13786. <method name="toString" return="java.lang.String"
  13787. abstract="false" native="false" synchronized="false"
  13788. static="false" final="false" visibility="public"
  13789. deprecated="not deprecated">
  13790. <doc>
  13791. <![CDATA[Print the extension map out as a string.]]>
  13792. </doc>
  13793. </method>
  13794. <method name="getCodecClasses" return="java.util.List&lt;java.lang.Class&gt;"
  13795. abstract="false" native="false" synchronized="false"
  13796. static="true" final="false" visibility="public"
  13797. deprecated="not deprecated">
  13798. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13799. <doc>
  13800. <![CDATA[Get the list of codecs listed in the configuration
  13801. @param conf the configuration to look in
  13802. @return a list of the Configuration classes or null if the attribute
  13803. was not set]]>
  13804. </doc>
  13805. </method>
  13806. <method name="setCodecClasses"
  13807. abstract="false" native="false" synchronized="false"
  13808. static="true" final="false" visibility="public"
  13809. deprecated="not deprecated">
  13810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13811. <param name="classes" type="java.util.List&lt;java.lang.Class&gt;"/>
  13812. <doc>
  13813. <![CDATA[Sets a list of codec classes in the configuration.
  13814. @param conf the configuration to modify
  13815. @param classes the list of classes to set]]>
  13816. </doc>
  13817. </method>
  13818. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  13819. abstract="false" native="false" synchronized="false"
  13820. static="false" final="false" visibility="public"
  13821. deprecated="not deprecated">
  13822. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13823. <doc>
  13824. <![CDATA[Find the relevant compression codec for the given file based on its
  13825. filename suffix.
  13826. @param file the filename to check
  13827. @return the codec object]]>
  13828. </doc>
  13829. </method>
  13830. <method name="removeSuffix" return="java.lang.String"
  13831. abstract="false" native="false" synchronized="false"
  13832. static="true" final="false" visibility="public"
  13833. deprecated="not deprecated">
  13834. <param name="filename" type="java.lang.String"/>
  13835. <param name="suffix" type="java.lang.String"/>
  13836. <doc>
  13837. <![CDATA[Removes a suffix from a filename, if it has it.
  13838. @param filename the filename to strip
  13839. @param suffix the suffix to remove
  13840. @return the shortened filename]]>
  13841. </doc>
  13842. </method>
  13843. <method name="main"
  13844. abstract="false" native="false" synchronized="false"
  13845. static="true" final="false" visibility="public"
  13846. deprecated="not deprecated">
  13847. <param name="args" type="java.lang.String[]"/>
  13848. <exception name="Exception" type="java.lang.Exception"/>
  13849. <doc>
  13850. <![CDATA[A little test program.
  13851. @param args]]>
  13852. </doc>
  13853. </method>
  13854. <field name="LOG" type="org.apache.commons.logging.Log"
  13855. transient="false" volatile="false"
  13856. static="true" final="true" visibility="public"
  13857. deprecated="not deprecated">
  13858. </field>
  13859. <doc>
  13860. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  13861. </doc>
  13862. </class>
  13863. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  13864. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  13865. <class name="CompressionInputStream" extends="java.io.InputStream"
  13866. abstract="true"
  13867. static="false" final="false" visibility="public"
  13868. deprecated="not deprecated">
  13869. <constructor name="CompressionInputStream" type="java.io.InputStream"
  13870. static="false" final="false" visibility="protected"
  13871. deprecated="not deprecated">
  13872. <doc>
  13873. <![CDATA[Create a compression input stream that reads
  13874. the decompressed bytes from the given stream.
  13875. @param in The input stream to be compressed.]]>
  13876. </doc>
  13877. </constructor>
  13878. <method name="close"
  13879. abstract="false" native="false" synchronized="false"
  13880. static="false" final="false" visibility="public"
  13881. deprecated="not deprecated">
  13882. <exception name="IOException" type="java.io.IOException"/>
  13883. </method>
  13884. <method name="read" return="int"
  13885. abstract="true" native="false" synchronized="false"
  13886. static="false" final="false" visibility="public"
  13887. deprecated="not deprecated">
  13888. <param name="b" type="byte[]"/>
  13889. <param name="off" type="int"/>
  13890. <param name="len" type="int"/>
  13891. <exception name="IOException" type="java.io.IOException"/>
  13892. <doc>
  13893. <![CDATA[Read bytes from the stream.
  13894. Made abstract to prevent leakage to underlying stream.]]>
  13895. </doc>
  13896. </method>
  13897. <method name="resetState"
  13898. abstract="true" native="false" synchronized="false"
  13899. static="false" final="false" visibility="public"
  13900. deprecated="not deprecated">
  13901. <exception name="IOException" type="java.io.IOException"/>
  13902. <doc>
  13903. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  13904. as the underlying stream may have been repositioned.]]>
  13905. </doc>
  13906. </method>
  13907. <field name="in" type="java.io.InputStream"
  13908. transient="false" volatile="false"
  13909. static="false" final="true" visibility="protected"
  13910. deprecated="not deprecated">
  13911. <doc>
  13912. <![CDATA[The input stream to be compressed.]]>
  13913. </doc>
  13914. </field>
  13915. <doc>
  13916. <![CDATA[A compression input stream.
  13917. <p>Implementations are assumed to be buffered. This permits clients to
  13918. reposition the underlying input stream then call {@link #resetState()},
  13919. without having to also synchronize client buffers.]]>
  13920. </doc>
  13921. </class>
  13922. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  13923. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  13924. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  13925. abstract="true"
  13926. static="false" final="false" visibility="public"
  13927. deprecated="not deprecated">
  13928. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  13929. static="false" final="false" visibility="protected"
  13930. deprecated="not deprecated">
  13931. <doc>
  13932. <![CDATA[Create a compression output stream that writes
  13933. the compressed bytes to the given stream.
  13934. @param out]]>
  13935. </doc>
  13936. </constructor>
  13937. <method name="close"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <exception name="IOException" type="java.io.IOException"/>
  13942. </method>
  13943. <method name="flush"
  13944. abstract="false" native="false" synchronized="false"
  13945. static="false" final="false" visibility="public"
  13946. deprecated="not deprecated">
  13947. <exception name="IOException" type="java.io.IOException"/>
  13948. </method>
  13949. <method name="write"
  13950. abstract="true" native="false" synchronized="false"
  13951. static="false" final="false" visibility="public"
  13952. deprecated="not deprecated">
  13953. <param name="b" type="byte[]"/>
  13954. <param name="off" type="int"/>
  13955. <param name="len" type="int"/>
  13956. <exception name="IOException" type="java.io.IOException"/>
  13957. <doc>
  13958. <![CDATA[Write compressed bytes to the stream.
  13959. Made abstract to prevent leakage to underlying stream.]]>
  13960. </doc>
  13961. </method>
  13962. <method name="finish"
  13963. abstract="true" native="false" synchronized="false"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <exception name="IOException" type="java.io.IOException"/>
  13967. <doc>
  13968. <![CDATA[Finishes writing compressed data to the output stream
  13969. without closing the underlying stream.]]>
  13970. </doc>
  13971. </method>
  13972. <method name="resetState"
  13973. abstract="true" native="false" synchronized="false"
  13974. static="false" final="false" visibility="public"
  13975. deprecated="not deprecated">
  13976. <exception name="IOException" type="java.io.IOException"/>
  13977. <doc>
  13978. <![CDATA[Reset the compression to the initial state.
  13979. Does not reset the underlying stream.]]>
  13980. </doc>
  13981. </method>
  13982. <field name="out" type="java.io.OutputStream"
  13983. transient="false" volatile="false"
  13984. static="false" final="true" visibility="protected"
  13985. deprecated="not deprecated">
  13986. <doc>
  13987. <![CDATA[The output stream to be compressed.]]>
  13988. </doc>
  13989. </field>
  13990. <doc>
  13991. <![CDATA[A compression output stream.]]>
  13992. </doc>
  13993. </class>
  13994. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  13995. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  13996. <interface name="Compressor" abstract="true"
  13997. static="false" final="false" visibility="public"
  13998. deprecated="not deprecated">
  13999. <method name="setInput"
  14000. abstract="false" native="false" synchronized="false"
  14001. static="false" final="false" visibility="public"
  14002. deprecated="not deprecated">
  14003. <param name="b" type="byte[]"/>
  14004. <param name="off" type="int"/>
  14005. <param name="len" type="int"/>
  14006. <doc>
  14007. <![CDATA[Sets input data for compression.
  14008. This should be called whenever #needsInput() returns
  14009. <code>true</code> indicating that more input data is required.
  14010. @param b Input data
  14011. @param off Start offset
  14012. @param len Length]]>
  14013. </doc>
  14014. </method>
  14015. <method name="needsInput" return="boolean"
  14016. abstract="false" native="false" synchronized="false"
  14017. static="false" final="false" visibility="public"
  14018. deprecated="not deprecated">
  14019. <doc>
  14020. <![CDATA[Returns true if the input data buffer is empty and
  14021. #setInput() should be called to provide more input.
  14022. @return <code>true</code> if the input data buffer is empty and
  14023. #setInput() should be called in order to provide more input.]]>
  14024. </doc>
  14025. </method>
  14026. <method name="setDictionary"
  14027. abstract="false" native="false" synchronized="false"
  14028. static="false" final="false" visibility="public"
  14029. deprecated="not deprecated">
  14030. <param name="b" type="byte[]"/>
  14031. <param name="off" type="int"/>
  14032. <param name="len" type="int"/>
  14033. <doc>
  14034. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  14035. is used when the history buffer can be predetermined.
  14036. @param b Dictionary data bytes
  14037. @param off Start offset
  14038. @param len Length]]>
  14039. </doc>
  14040. </method>
  14041. <method name="getBytesRead" return="long"
  14042. abstract="false" native="false" synchronized="false"
  14043. static="false" final="false" visibility="public"
  14044. deprecated="not deprecated">
  14045. <doc>
  14046. <![CDATA[Return number of uncompressed bytes input so far.]]>
  14047. </doc>
  14048. </method>
  14049. <method name="getBytesWritten" return="long"
  14050. abstract="false" native="false" synchronized="false"
  14051. static="false" final="false" visibility="public"
  14052. deprecated="not deprecated">
  14053. <doc>
  14054. <![CDATA[Return number of compressed bytes output so far.]]>
  14055. </doc>
  14056. </method>
  14057. <method name="finish"
  14058. abstract="false" native="false" synchronized="false"
  14059. static="false" final="false" visibility="public"
  14060. deprecated="not deprecated">
  14061. <doc>
  14062. <![CDATA[When called, indicates that compression should end
  14063. with the current contents of the input buffer.]]>
  14064. </doc>
  14065. </method>
  14066. <method name="finished" return="boolean"
  14067. abstract="false" native="false" synchronized="false"
  14068. static="false" final="false" visibility="public"
  14069. deprecated="not deprecated">
  14070. <doc>
  14071. <![CDATA[Returns true if the end of the compressed
  14072. data output stream has been reached.
  14073. @return <code>true</code> if the end of the compressed
  14074. data output stream has been reached.]]>
  14075. </doc>
  14076. </method>
  14077. <method name="compress" return="int"
  14078. abstract="false" native="false" synchronized="false"
  14079. static="false" final="false" visibility="public"
  14080. deprecated="not deprecated">
  14081. <param name="b" type="byte[]"/>
  14082. <param name="off" type="int"/>
  14083. <param name="len" type="int"/>
  14084. <exception name="IOException" type="java.io.IOException"/>
  14085. <doc>
  14086. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  14087. of bytes of compressed data. A return value of 0 indicates that
  14088. needsInput() should be called in order to determine if more input
  14089. data is required.
  14090. @param b Buffer for the compressed data
  14091. @param off Start offset of the data
  14092. @param len Size of the buffer
  14093. @return The actual number of bytes of compressed data.]]>
  14094. </doc>
  14095. </method>
  14096. <method name="reset"
  14097. abstract="false" native="false" synchronized="false"
  14098. static="false" final="false" visibility="public"
  14099. deprecated="not deprecated">
  14100. <doc>
  14101. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  14102. </doc>
  14103. </method>
  14104. <method name="end"
  14105. abstract="false" native="false" synchronized="false"
  14106. static="false" final="false" visibility="public"
  14107. deprecated="not deprecated">
  14108. <doc>
  14109. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  14110. </doc>
  14111. </method>
  14112. <doc>
  14113. <![CDATA[Specification of a stream-based 'compressor' which can be
  14114. plugged into a {@link CompressionOutputStream} to compress data.
  14115. This is modelled after {@link java.util.zip.Deflater}]]>
  14116. </doc>
  14117. </interface>
  14118. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  14119. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  14120. <interface name="Decompressor" abstract="true"
  14121. static="false" final="false" visibility="public"
  14122. deprecated="not deprecated">
  14123. <method name="setInput"
  14124. abstract="false" native="false" synchronized="false"
  14125. static="false" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <param name="b" type="byte[]"/>
  14128. <param name="off" type="int"/>
  14129. <param name="len" type="int"/>
  14130. <doc>
  14131. <![CDATA[Sets input data for decompression.
  14132. This should be called whenever #needsInput() returns
  14133. <code>true</code> indicating that more input data is required.
  14134. @param b Input data
  14135. @param off Start offset
  14136. @param len Length]]>
  14137. </doc>
  14138. </method>
  14139. <method name="needsInput" return="boolean"
  14140. abstract="false" native="false" synchronized="false"
  14141. static="false" final="false" visibility="public"
  14142. deprecated="not deprecated">
  14143. <doc>
  14144. <![CDATA[Returns true if the input data buffer is empty and
  14145. #setInput() should be called to provide more input.
  14146. @return <code>true</code> if the input data buffer is empty and
  14147. #setInput() should be called in order to provide more input.]]>
  14148. </doc>
  14149. </method>
  14150. <method name="setDictionary"
  14151. abstract="false" native="false" synchronized="false"
  14152. static="false" final="false" visibility="public"
  14153. deprecated="not deprecated">
  14154. <param name="b" type="byte[]"/>
  14155. <param name="off" type="int"/>
  14156. <param name="len" type="int"/>
  14157. <doc>
  14158. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  14159. is used when the history buffer can be predetermined.
  14160. @param b Dictionary data bytes
  14161. @param off Start offset
  14162. @param len Length]]>
  14163. </doc>
  14164. </method>
  14165. <method name="needsDictionary" return="boolean"
  14166. abstract="false" native="false" synchronized="false"
  14167. static="false" final="false" visibility="public"
  14168. deprecated="not deprecated">
  14169. <doc>
  14170. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  14171. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  14172. </doc>
  14173. </method>
  14174. <method name="finished" return="boolean"
  14175. abstract="false" native="false" synchronized="false"
  14176. static="false" final="false" visibility="public"
  14177. deprecated="not deprecated">
  14178. <doc>
  14179. <![CDATA[Returns true if the end of the compressed
  14180. data output stream has been reached.
  14181. @return <code>true</code> if the end of the compressed
  14182. data output stream has been reached.]]>
  14183. </doc>
  14184. </method>
  14185. <method name="decompress" return="int"
  14186. abstract="false" native="false" synchronized="false"
  14187. static="false" final="false" visibility="public"
  14188. deprecated="not deprecated">
  14189. <param name="b" type="byte[]"/>
  14190. <param name="off" type="int"/>
  14191. <param name="len" type="int"/>
  14192. <exception name="IOException" type="java.io.IOException"/>
  14193. <doc>
  14194. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  14195. of bytes of uncompressed data. A return value of 0 indicates that
  14196. #needsInput() should be called in order to determine if more input
  14197. data is required.
  14198. @param b Buffer for the compressed data
  14199. @param off Start offset of the data
  14200. @param len Size of the buffer
  14201. @return The actual number of bytes of compressed data.
  14202. @throws IOException]]>
  14203. </doc>
  14204. </method>
  14205. <method name="reset"
  14206. abstract="false" native="false" synchronized="false"
  14207. static="false" final="false" visibility="public"
  14208. deprecated="not deprecated">
  14209. <doc>
  14210. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  14211. </doc>
  14212. </method>
  14213. <method name="end"
  14214. abstract="false" native="false" synchronized="false"
  14215. static="false" final="false" visibility="public"
  14216. deprecated="not deprecated">
  14217. <doc>
  14218. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  14219. </doc>
  14220. </method>
  14221. <doc>
  14222. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  14223. plugged into a {@link CompressionInputStream} to compress data.
  14224. This is modelled after {@link java.util.zip.Inflater}]]>
  14225. </doc>
  14226. </interface>
  14227. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  14228. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  14229. <class name="DefaultCodec" extends="java.lang.Object"
  14230. abstract="false"
  14231. static="false" final="false" visibility="public"
  14232. deprecated="not deprecated">
  14233. <implements name="org.apache.hadoop.conf.Configurable"/>
  14234. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  14235. <constructor name="DefaultCodec"
  14236. static="false" final="false" visibility="public"
  14237. deprecated="not deprecated">
  14238. </constructor>
  14239. <method name="setConf"
  14240. abstract="false" native="false" synchronized="false"
  14241. static="false" final="false" visibility="public"
  14242. deprecated="not deprecated">
  14243. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14244. </method>
  14245. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  14246. abstract="false" native="false" synchronized="false"
  14247. static="false" final="false" visibility="public"
  14248. deprecated="not deprecated">
  14249. </method>
  14250. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14251. abstract="false" native="false" synchronized="false"
  14252. static="false" final="false" visibility="public"
  14253. deprecated="not deprecated">
  14254. <param name="out" type="java.io.OutputStream"/>
  14255. <exception name="IOException" type="java.io.IOException"/>
  14256. </method>
  14257. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14258. abstract="false" native="false" synchronized="false"
  14259. static="false" final="false" visibility="public"
  14260. deprecated="not deprecated">
  14261. <param name="out" type="java.io.OutputStream"/>
  14262. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14263. <exception name="IOException" type="java.io.IOException"/>
  14264. </method>
  14265. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  14266. abstract="false" native="false" synchronized="false"
  14267. static="false" final="false" visibility="public"
  14268. deprecated="not deprecated">
  14269. </method>
  14270. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14271. abstract="false" native="false" synchronized="false"
  14272. static="false" final="false" visibility="public"
  14273. deprecated="not deprecated">
  14274. </method>
  14275. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14276. abstract="false" native="false" synchronized="false"
  14277. static="false" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. <param name="in" type="java.io.InputStream"/>
  14280. <exception name="IOException" type="java.io.IOException"/>
  14281. </method>
  14282. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14283. abstract="false" native="false" synchronized="false"
  14284. static="false" final="false" visibility="public"
  14285. deprecated="not deprecated">
  14286. <param name="in" type="java.io.InputStream"/>
  14287. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14288. <exception name="IOException" type="java.io.IOException"/>
  14289. </method>
  14290. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  14291. abstract="false" native="false" synchronized="false"
  14292. static="false" final="false" visibility="public"
  14293. deprecated="not deprecated">
  14294. </method>
  14295. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14296. abstract="false" native="false" synchronized="false"
  14297. static="false" final="false" visibility="public"
  14298. deprecated="not deprecated">
  14299. </method>
  14300. <method name="getDefaultExtension" return="java.lang.String"
  14301. abstract="false" native="false" synchronized="false"
  14302. static="false" final="false" visibility="public"
  14303. deprecated="not deprecated">
  14304. </method>
  14305. </class>
  14306. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  14307. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  14308. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  14309. abstract="false"
  14310. static="false" final="false" visibility="public"
  14311. deprecated="not deprecated">
  14312. <constructor name="GzipCodec"
  14313. static="false" final="false" visibility="public"
  14314. deprecated="not deprecated">
  14315. </constructor>
  14316. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14317. abstract="false" native="false" synchronized="false"
  14318. static="false" final="false" visibility="public"
  14319. deprecated="not deprecated">
  14320. <param name="out" type="java.io.OutputStream"/>
  14321. <exception name="IOException" type="java.io.IOException"/>
  14322. </method>
  14323. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14324. abstract="false" native="false" synchronized="false"
  14325. static="false" final="false" visibility="public"
  14326. deprecated="not deprecated">
  14327. <param name="out" type="java.io.OutputStream"/>
  14328. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14329. <exception name="IOException" type="java.io.IOException"/>
  14330. </method>
  14331. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14332. abstract="false" native="false" synchronized="false"
  14333. static="false" final="false" visibility="public"
  14334. deprecated="not deprecated">
  14335. </method>
  14336. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  14337. abstract="false" native="false" synchronized="false"
  14338. static="false" final="false" visibility="public"
  14339. deprecated="not deprecated">
  14340. </method>
  14341. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14342. abstract="false" native="false" synchronized="false"
  14343. static="false" final="false" visibility="public"
  14344. deprecated="not deprecated">
  14345. <param name="in" type="java.io.InputStream"/>
  14346. <exception name="IOException" type="java.io.IOException"/>
  14347. </method>
  14348. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14349. abstract="false" native="false" synchronized="false"
  14350. static="false" final="false" visibility="public"
  14351. deprecated="not deprecated">
  14352. <param name="in" type="java.io.InputStream"/>
  14353. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14354. <exception name="IOException" type="java.io.IOException"/>
  14355. </method>
  14356. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14357. abstract="false" native="false" synchronized="false"
  14358. static="false" final="false" visibility="public"
  14359. deprecated="not deprecated">
  14360. </method>
  14361. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  14362. abstract="false" native="false" synchronized="false"
  14363. static="false" final="false" visibility="public"
  14364. deprecated="not deprecated">
  14365. </method>
  14366. <method name="getDefaultExtension" return="java.lang.String"
  14367. abstract="false" native="false" synchronized="false"
  14368. static="false" final="false" visibility="public"
  14369. deprecated="not deprecated">
  14370. </method>
  14371. <doc>
  14372. <![CDATA[This class creates gzip compressors/decompressors.]]>
  14373. </doc>
  14374. </class>
  14375. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  14376. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  14377. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  14378. abstract="false"
  14379. static="true" final="false" visibility="protected"
  14380. deprecated="not deprecated">
  14381. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  14382. static="false" final="false" visibility="public"
  14383. deprecated="not deprecated">
  14384. <exception name="IOException" type="java.io.IOException"/>
  14385. </constructor>
  14386. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  14387. static="false" final="false" visibility="protected"
  14388. deprecated="not deprecated">
  14389. <doc>
  14390. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  14391. </doc>
  14392. </constructor>
  14393. <method name="available" return="int"
  14394. abstract="false" native="false" synchronized="false"
  14395. static="false" final="false" visibility="public"
  14396. deprecated="not deprecated">
  14397. <exception name="IOException" type="java.io.IOException"/>
  14398. </method>
  14399. <method name="close"
  14400. abstract="false" native="false" synchronized="false"
  14401. static="false" final="false" visibility="public"
  14402. deprecated="not deprecated">
  14403. <exception name="IOException" type="java.io.IOException"/>
  14404. </method>
  14405. <method name="read" return="int"
  14406. abstract="false" native="false" synchronized="false"
  14407. static="false" final="false" visibility="public"
  14408. deprecated="not deprecated">
  14409. <exception name="IOException" type="java.io.IOException"/>
  14410. </method>
  14411. <method name="read" return="int"
  14412. abstract="false" native="false" synchronized="false"
  14413. static="false" final="false" visibility="public"
  14414. deprecated="not deprecated">
  14415. <param name="data" type="byte[]"/>
  14416. <param name="offset" type="int"/>
  14417. <param name="len" type="int"/>
  14418. <exception name="IOException" type="java.io.IOException"/>
  14419. </method>
  14420. <method name="skip" return="long"
  14421. abstract="false" native="false" synchronized="false"
  14422. static="false" final="false" visibility="public"
  14423. deprecated="not deprecated">
  14424. <param name="offset" type="long"/>
  14425. <exception name="IOException" type="java.io.IOException"/>
  14426. </method>
  14427. <method name="resetState"
  14428. abstract="false" native="false" synchronized="false"
  14429. static="false" final="false" visibility="public"
  14430. deprecated="not deprecated">
  14431. <exception name="IOException" type="java.io.IOException"/>
  14432. </method>
  14433. </class>
  14434. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  14435. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  14436. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  14437. abstract="false"
  14438. static="true" final="false" visibility="protected"
  14439. deprecated="not deprecated">
  14440. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  14441. static="false" final="false" visibility="public"
  14442. deprecated="not deprecated">
  14443. <exception name="IOException" type="java.io.IOException"/>
  14444. </constructor>
  14445. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  14446. static="false" final="false" visibility="protected"
  14447. deprecated="not deprecated">
  14448. <doc>
  14449. <![CDATA[Allow children types to put a different type in here.
  14450. @param out the Deflater stream to use]]>
  14451. </doc>
  14452. </constructor>
  14453. <method name="close"
  14454. abstract="false" native="false" synchronized="false"
  14455. static="false" final="false" visibility="public"
  14456. deprecated="not deprecated">
  14457. <exception name="IOException" type="java.io.IOException"/>
  14458. </method>
  14459. <method name="flush"
  14460. abstract="false" native="false" synchronized="false"
  14461. static="false" final="false" visibility="public"
  14462. deprecated="not deprecated">
  14463. <exception name="IOException" type="java.io.IOException"/>
  14464. </method>
  14465. <method name="write"
  14466. abstract="false" native="false" synchronized="false"
  14467. static="false" final="false" visibility="public"
  14468. deprecated="not deprecated">
  14469. <param name="b" type="int"/>
  14470. <exception name="IOException" type="java.io.IOException"/>
  14471. </method>
  14472. <method name="write"
  14473. abstract="false" native="false" synchronized="false"
  14474. static="false" final="false" visibility="public"
  14475. deprecated="not deprecated">
  14476. <param name="data" type="byte[]"/>
  14477. <param name="offset" type="int"/>
  14478. <param name="length" type="int"/>
  14479. <exception name="IOException" type="java.io.IOException"/>
  14480. </method>
  14481. <method name="finish"
  14482. abstract="false" native="false" synchronized="false"
  14483. static="false" final="false" visibility="public"
  14484. deprecated="not deprecated">
  14485. <exception name="IOException" type="java.io.IOException"/>
  14486. </method>
  14487. <method name="resetState"
  14488. abstract="false" native="false" synchronized="false"
  14489. static="false" final="false" visibility="public"
  14490. deprecated="not deprecated">
  14491. <exception name="IOException" type="java.io.IOException"/>
  14492. </method>
  14493. <doc>
  14494. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  14495. a CompressionOutputStream.]]>
  14496. </doc>
  14497. </class>
  14498. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  14499. <!-- start class org.apache.hadoop.io.compress.LzoCodec -->
  14500. <class name="LzoCodec" extends="java.lang.Object"
  14501. abstract="false"
  14502. static="false" final="false" visibility="public"
  14503. deprecated="not deprecated">
  14504. <implements name="org.apache.hadoop.conf.Configurable"/>
  14505. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  14506. <constructor name="LzoCodec"
  14507. static="false" final="false" visibility="public"
  14508. deprecated="not deprecated">
  14509. </constructor>
  14510. <method name="setConf"
  14511. abstract="false" native="false" synchronized="false"
  14512. static="false" final="false" visibility="public"
  14513. deprecated="not deprecated">
  14514. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14515. </method>
  14516. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  14517. abstract="false" native="false" synchronized="false"
  14518. static="false" final="false" visibility="public"
  14519. deprecated="not deprecated">
  14520. </method>
  14521. <method name="isNativeLzoLoaded" return="boolean"
  14522. abstract="false" native="false" synchronized="false"
  14523. static="true" final="false" visibility="public"
  14524. deprecated="not deprecated">
  14525. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14526. <doc>
  14527. <![CDATA[Check if native-lzo library is loaded & initialized.
  14528. @param conf configuration
  14529. @return <code>true</code> if native-lzo library is loaded & initialized;
  14530. else <code>false</code>]]>
  14531. </doc>
  14532. </method>
  14533. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14534. abstract="false" native="false" synchronized="false"
  14535. static="false" final="false" visibility="public"
  14536. deprecated="not deprecated">
  14537. <param name="out" type="java.io.OutputStream"/>
  14538. <exception name="IOException" type="java.io.IOException"/>
  14539. </method>
  14540. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14541. abstract="false" native="false" synchronized="false"
  14542. static="false" final="false" visibility="public"
  14543. deprecated="not deprecated">
  14544. <param name="out" type="java.io.OutputStream"/>
  14545. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14546. <exception name="IOException" type="java.io.IOException"/>
  14547. </method>
  14548. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  14549. abstract="false" native="false" synchronized="false"
  14550. static="false" final="false" visibility="public"
  14551. deprecated="not deprecated">
  14552. </method>
  14553. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14554. abstract="false" native="false" synchronized="false"
  14555. static="false" final="false" visibility="public"
  14556. deprecated="not deprecated">
  14557. </method>
  14558. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14559. abstract="false" native="false" synchronized="false"
  14560. static="false" final="false" visibility="public"
  14561. deprecated="not deprecated">
  14562. <param name="in" type="java.io.InputStream"/>
  14563. <exception name="IOException" type="java.io.IOException"/>
  14564. </method>
  14565. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14566. abstract="false" native="false" synchronized="false"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. <param name="in" type="java.io.InputStream"/>
  14570. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14571. <exception name="IOException" type="java.io.IOException"/>
  14572. </method>
  14573. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  14574. abstract="false" native="false" synchronized="false"
  14575. static="false" final="false" visibility="public"
  14576. deprecated="not deprecated">
  14577. </method>
  14578. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14579. abstract="false" native="false" synchronized="false"
  14580. static="false" final="false" visibility="public"
  14581. deprecated="not deprecated">
  14582. </method>
  14583. <method name="getDefaultExtension" return="java.lang.String"
  14584. abstract="false" native="false" synchronized="false"
  14585. static="false" final="false" visibility="public"
  14586. deprecated="not deprecated">
  14587. <doc>
  14588. <![CDATA[Get the default filename extension for this kind of compression.
  14589. @return the extension including the '.']]>
  14590. </doc>
  14591. </method>
  14592. <doc>
  14593. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressionCodec} for a streaming
  14594. <b>lzo</b> compression/decompression pair.
  14595. http://www.oberhumer.com/opensource/lzo/]]>
  14596. </doc>
  14597. </class>
  14598. <!-- end class org.apache.hadoop.io.compress.LzoCodec -->
  14599. </package>
  14600. <package name="org.apache.hadoop.io.compress.lzo">
  14601. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  14602. <class name="LzoCompressor" extends="java.lang.Object"
  14603. abstract="false"
  14604. static="false" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  14607. <constructor name="LzoCompressor" type="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy, int"
  14608. static="false" final="false" visibility="public"
  14609. deprecated="not deprecated">
  14610. <doc>
  14611. <![CDATA[Creates a new compressor using the specified {@link CompressionStrategy}.
  14612. @param strategy lzo compression algorithm to use
  14613. @param directBufferSize size of the direct buffer to be used.]]>
  14614. </doc>
  14615. </constructor>
  14616. <constructor name="LzoCompressor"
  14617. static="false" final="false" visibility="public"
  14618. deprecated="not deprecated">
  14619. <doc>
  14620. <![CDATA[Creates a new compressor with the default lzo1x_1 compression.]]>
  14621. </doc>
  14622. </constructor>
  14623. <method name="isNativeLzoLoaded" return="boolean"
  14624. abstract="false" native="false" synchronized="false"
  14625. static="true" final="false" visibility="public"
  14626. deprecated="not deprecated">
  14627. <doc>
  14628. <![CDATA[Check if lzo compressors are loaded and initialized.
  14629. @return <code>true</code> if lzo compressors are loaded & initialized,
  14630. else <code>false</code>]]>
  14631. </doc>
  14632. </method>
  14633. <method name="setInput"
  14634. abstract="false" native="false" synchronized="true"
  14635. static="false" final="false" visibility="public"
  14636. deprecated="not deprecated">
  14637. <param name="b" type="byte[]"/>
  14638. <param name="off" type="int"/>
  14639. <param name="len" type="int"/>
  14640. </method>
  14641. <method name="setDictionary"
  14642. abstract="false" native="false" synchronized="true"
  14643. static="false" final="false" visibility="public"
  14644. deprecated="not deprecated">
  14645. <param name="b" type="byte[]"/>
  14646. <param name="off" type="int"/>
  14647. <param name="len" type="int"/>
  14648. </method>
  14649. <method name="needsInput" return="boolean"
  14650. abstract="false" native="false" synchronized="false"
  14651. static="false" final="false" visibility="public"
  14652. deprecated="not deprecated">
  14653. <doc>
  14654. <![CDATA[{@inheritDoc}]]>
  14655. </doc>
  14656. </method>
  14657. <method name="finish"
  14658. abstract="false" native="false" synchronized="true"
  14659. static="false" final="false" visibility="public"
  14660. deprecated="not deprecated">
  14661. </method>
  14662. <method name="finished" return="boolean"
  14663. abstract="false" native="false" synchronized="true"
  14664. static="false" final="false" visibility="public"
  14665. deprecated="not deprecated">
  14666. </method>
  14667. <method name="compress" return="int"
  14668. abstract="false" native="false" synchronized="true"
  14669. static="false" final="false" visibility="public"
  14670. deprecated="not deprecated">
  14671. <param name="b" type="byte[]"/>
  14672. <param name="off" type="int"/>
  14673. <param name="len" type="int"/>
  14674. <exception name="IOException" type="java.io.IOException"/>
  14675. </method>
  14676. <method name="reset"
  14677. abstract="false" native="false" synchronized="true"
  14678. static="false" final="false" visibility="public"
  14679. deprecated="not deprecated">
  14680. </method>
  14681. <method name="getBytesRead" return="long"
  14682. abstract="false" native="false" synchronized="true"
  14683. static="false" final="false" visibility="public"
  14684. deprecated="not deprecated">
  14685. <doc>
  14686. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  14687. </doc>
  14688. </method>
  14689. <method name="getBytesWritten" return="long"
  14690. abstract="false" native="false" synchronized="true"
  14691. static="false" final="false" visibility="public"
  14692. deprecated="not deprecated">
  14693. <doc>
  14694. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  14695. </doc>
  14696. </method>
  14697. <method name="end"
  14698. abstract="false" native="false" synchronized="true"
  14699. static="false" final="false" visibility="public"
  14700. deprecated="not deprecated">
  14701. <doc>
  14702. <![CDATA[Noop.]]>
  14703. </doc>
  14704. </method>
  14705. <doc>
  14706. <![CDATA[A {@link Compressor} based on the lzo algorithm.
  14707. http://www.oberhumer.com/opensource/lzo/]]>
  14708. </doc>
  14709. </class>
  14710. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  14711. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  14712. <class name="LzoCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy&gt;"
  14713. abstract="false"
  14714. static="true" final="true" visibility="public"
  14715. deprecated="not deprecated">
  14716. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy[]"
  14717. abstract="false" native="false" synchronized="false"
  14718. static="true" final="true" visibility="public"
  14719. deprecated="not deprecated">
  14720. </method>
  14721. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"
  14722. abstract="false" native="false" synchronized="false"
  14723. static="true" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <param name="name" type="java.lang.String"/>
  14726. </method>
  14727. <doc>
  14728. <![CDATA[The compression algorithm for lzo library.]]>
  14729. </doc>
  14730. </class>
  14731. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  14732. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  14733. <class name="LzoDecompressor" extends="java.lang.Object"
  14734. abstract="false"
  14735. static="false" final="false" visibility="public"
  14736. deprecated="not deprecated">
  14737. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  14738. <constructor name="LzoDecompressor" type="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy, int"
  14739. static="false" final="false" visibility="public"
  14740. deprecated="not deprecated">
  14741. <doc>
  14742. <![CDATA[Creates a new lzo decompressor.
  14743. @param strategy lzo decompression algorithm
  14744. @param directBufferSize size of the direct-buffer]]>
  14745. </doc>
  14746. </constructor>
  14747. <constructor name="LzoDecompressor"
  14748. static="false" final="false" visibility="public"
  14749. deprecated="not deprecated">
  14750. <doc>
  14751. <![CDATA[Creates a new lzo decompressor.]]>
  14752. </doc>
  14753. </constructor>
  14754. <method name="isNativeLzoLoaded" return="boolean"
  14755. abstract="false" native="false" synchronized="false"
  14756. static="true" final="false" visibility="public"
  14757. deprecated="not deprecated">
  14758. <doc>
  14759. <![CDATA[Check if lzo decompressors are loaded and initialized.
  14760. @return <code>true</code> if lzo decompressors are loaded & initialized,
  14761. else <code>false</code>]]>
  14762. </doc>
  14763. </method>
  14764. <method name="setInput"
  14765. abstract="false" native="false" synchronized="true"
  14766. static="false" final="false" visibility="public"
  14767. deprecated="not deprecated">
  14768. <param name="b" type="byte[]"/>
  14769. <param name="off" type="int"/>
  14770. <param name="len" type="int"/>
  14771. </method>
  14772. <method name="setDictionary"
  14773. abstract="false" native="false" synchronized="true"
  14774. static="false" final="false" visibility="public"
  14775. deprecated="not deprecated">
  14776. <param name="b" type="byte[]"/>
  14777. <param name="off" type="int"/>
  14778. <param name="len" type="int"/>
  14779. </method>
  14780. <method name="needsInput" return="boolean"
  14781. abstract="false" native="false" synchronized="true"
  14782. static="false" final="false" visibility="public"
  14783. deprecated="not deprecated">
  14784. </method>
  14785. <method name="needsDictionary" return="boolean"
  14786. abstract="false" native="false" synchronized="true"
  14787. static="false" final="false" visibility="public"
  14788. deprecated="not deprecated">
  14789. </method>
  14790. <method name="finished" return="boolean"
  14791. abstract="false" native="false" synchronized="true"
  14792. static="false" final="false" visibility="public"
  14793. deprecated="not deprecated">
  14794. </method>
  14795. <method name="decompress" return="int"
  14796. abstract="false" native="false" synchronized="true"
  14797. static="false" final="false" visibility="public"
  14798. deprecated="not deprecated">
  14799. <param name="b" type="byte[]"/>
  14800. <param name="off" type="int"/>
  14801. <param name="len" type="int"/>
  14802. <exception name="IOException" type="java.io.IOException"/>
  14803. </method>
  14804. <method name="reset"
  14805. abstract="false" native="false" synchronized="true"
  14806. static="false" final="false" visibility="public"
  14807. deprecated="not deprecated">
  14808. </method>
  14809. <method name="end"
  14810. abstract="false" native="false" synchronized="true"
  14811. static="false" final="false" visibility="public"
  14812. deprecated="not deprecated">
  14813. </method>
  14814. <method name="finalize"
  14815. abstract="false" native="false" synchronized="false"
  14816. static="false" final="false" visibility="protected"
  14817. deprecated="not deprecated">
  14818. </method>
  14819. <doc>
  14820. <![CDATA[A {@link Decompressor} based on the lzo algorithm.
  14821. http://www.oberhumer.com/opensource/lzo/]]>
  14822. </doc>
  14823. </class>
  14824. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  14825. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  14826. <class name="LzoDecompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy&gt;"
  14827. abstract="false"
  14828. static="true" final="true" visibility="public"
  14829. deprecated="not deprecated">
  14830. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy[]"
  14831. abstract="false" native="false" synchronized="false"
  14832. static="true" final="true" visibility="public"
  14833. deprecated="not deprecated">
  14834. </method>
  14835. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy"
  14836. abstract="false" native="false" synchronized="false"
  14837. static="true" final="false" visibility="public"
  14838. deprecated="not deprecated">
  14839. <param name="name" type="java.lang.String"/>
  14840. </method>
  14841. </class>
  14842. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  14843. </package>
  14844. <package name="org.apache.hadoop.io.compress.zlib">
  14845. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  14846. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  14847. abstract="false"
  14848. static="false" final="false" visibility="public"
  14849. deprecated="not deprecated">
  14850. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  14851. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  14852. static="false" final="false" visibility="public"
  14853. deprecated="not deprecated">
  14854. </constructor>
  14855. <constructor name="BuiltInZlibDeflater" type="int"
  14856. static="false" final="false" visibility="public"
  14857. deprecated="not deprecated">
  14858. </constructor>
  14859. <constructor name="BuiltInZlibDeflater"
  14860. static="false" final="false" visibility="public"
  14861. deprecated="not deprecated">
  14862. </constructor>
  14863. <method name="compress" return="int"
  14864. abstract="false" native="false" synchronized="true"
  14865. static="false" final="false" visibility="public"
  14866. deprecated="not deprecated">
  14867. <param name="b" type="byte[]"/>
  14868. <param name="off" type="int"/>
  14869. <param name="len" type="int"/>
  14870. <exception name="IOException" type="java.io.IOException"/>
  14871. </method>
  14872. <doc>
  14873. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  14874. to org.apache.hadoop.io.compress.Compressor interface.]]>
  14875. </doc>
  14876. </class>
  14877. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  14878. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  14879. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  14880. abstract="false"
  14881. static="false" final="false" visibility="public"
  14882. deprecated="not deprecated">
  14883. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  14884. <constructor name="BuiltInZlibInflater" type="boolean"
  14885. static="false" final="false" visibility="public"
  14886. deprecated="not deprecated">
  14887. </constructor>
  14888. <constructor name="BuiltInZlibInflater"
  14889. static="false" final="false" visibility="public"
  14890. deprecated="not deprecated">
  14891. </constructor>
  14892. <method name="decompress" return="int"
  14893. abstract="false" native="false" synchronized="true"
  14894. static="false" final="false" visibility="public"
  14895. deprecated="not deprecated">
  14896. <param name="b" type="byte[]"/>
  14897. <param name="off" type="int"/>
  14898. <param name="len" type="int"/>
  14899. <exception name="IOException" type="java.io.IOException"/>
  14900. </method>
  14901. <doc>
  14902. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  14903. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  14904. </doc>
  14905. </class>
  14906. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  14907. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  14908. <class name="ZlibCompressor" extends="java.lang.Object"
  14909. abstract="false"
  14910. static="false" final="false" visibility="public"
  14911. deprecated="not deprecated">
  14912. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  14913. <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"
  14914. static="false" final="false" visibility="public"
  14915. deprecated="not deprecated">
  14916. <doc>
  14917. <![CDATA[Creates a new compressor using the specified compression level.
  14918. Compressed data will be generated in ZLIB format.
  14919. @param level Compression level #CompressionLevel
  14920. @param strategy Compression strategy #CompressionStrategy
  14921. @param header Compression header #CompressionHeader
  14922. @param directBufferSize Size of the direct buffer to be used.]]>
  14923. </doc>
  14924. </constructor>
  14925. <constructor name="ZlibCompressor"
  14926. static="false" final="false" visibility="public"
  14927. deprecated="not deprecated">
  14928. <doc>
  14929. <![CDATA[Creates a new compressor with the default compression level.
  14930. Compressed data will be generated in ZLIB format.]]>
  14931. </doc>
  14932. </constructor>
  14933. <method name="setInput"
  14934. abstract="false" native="false" synchronized="true"
  14935. static="false" final="false" visibility="public"
  14936. deprecated="not deprecated">
  14937. <param name="b" type="byte[]"/>
  14938. <param name="off" type="int"/>
  14939. <param name="len" type="int"/>
  14940. </method>
  14941. <method name="setDictionary"
  14942. abstract="false" native="false" synchronized="true"
  14943. static="false" final="false" visibility="public"
  14944. deprecated="not deprecated">
  14945. <param name="b" type="byte[]"/>
  14946. <param name="off" type="int"/>
  14947. <param name="len" type="int"/>
  14948. </method>
  14949. <method name="needsInput" return="boolean"
  14950. abstract="false" native="false" synchronized="false"
  14951. static="false" final="false" visibility="public"
  14952. deprecated="not deprecated">
  14953. </method>
  14954. <method name="finish"
  14955. abstract="false" native="false" synchronized="true"
  14956. static="false" final="false" visibility="public"
  14957. deprecated="not deprecated">
  14958. </method>
  14959. <method name="finished" return="boolean"
  14960. abstract="false" native="false" synchronized="true"
  14961. static="false" final="false" visibility="public"
  14962. deprecated="not deprecated">
  14963. </method>
  14964. <method name="compress" return="int"
  14965. abstract="false" native="false" synchronized="true"
  14966. static="false" final="false" visibility="public"
  14967. deprecated="not deprecated">
  14968. <param name="b" type="byte[]"/>
  14969. <param name="off" type="int"/>
  14970. <param name="len" type="int"/>
  14971. <exception name="IOException" type="java.io.IOException"/>
  14972. </method>
  14973. <method name="getBytesWritten" return="long"
  14974. abstract="false" native="false" synchronized="true"
  14975. static="false" final="false" visibility="public"
  14976. deprecated="not deprecated">
  14977. <doc>
  14978. <![CDATA[Returns the total number of compressed bytes output so far.
  14979. @return the total (non-negative) number of compressed bytes output so far]]>
  14980. </doc>
  14981. </method>
  14982. <method name="getBytesRead" return="long"
  14983. abstract="false" native="false" synchronized="true"
  14984. static="false" final="false" visibility="public"
  14985. deprecated="not deprecated">
  14986. <doc>
  14987. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  14988. @return the total (non-negative) number of uncompressed bytes input so far]]>
  14989. </doc>
  14990. </method>
  14991. <method name="reset"
  14992. abstract="false" native="false" synchronized="true"
  14993. static="false" final="false" visibility="public"
  14994. deprecated="not deprecated">
  14995. </method>
  14996. <method name="end"
  14997. abstract="false" native="false" synchronized="true"
  14998. static="false" final="false" visibility="public"
  14999. deprecated="not deprecated">
  15000. </method>
  15001. <doc>
  15002. <![CDATA[A {@link Compressor} based on the popular
  15003. zlib compression algorithm.
  15004. http://www.zlib.net/]]>
  15005. </doc>
  15006. </class>
  15007. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  15008. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  15009. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader&gt;"
  15010. abstract="false"
  15011. static="true" final="true" visibility="public"
  15012. deprecated="not deprecated">
  15013. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  15014. abstract="false" native="false" synchronized="false"
  15015. static="true" final="true" visibility="public"
  15016. deprecated="not deprecated">
  15017. </method>
  15018. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  15019. abstract="false" native="false" synchronized="false"
  15020. static="true" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <param name="name" type="java.lang.String"/>
  15023. </method>
  15024. <method name="windowBits" return="int"
  15025. abstract="false" native="false" synchronized="false"
  15026. static="false" final="false" visibility="public"
  15027. deprecated="not deprecated">
  15028. </method>
  15029. <doc>
  15030. <![CDATA[The type of header for compressed data.]]>
  15031. </doc>
  15032. </class>
  15033. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  15034. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  15035. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel&gt;"
  15036. abstract="false"
  15037. static="true" final="true" visibility="public"
  15038. deprecated="not deprecated">
  15039. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  15040. abstract="false" native="false" synchronized="false"
  15041. static="true" final="true" visibility="public"
  15042. deprecated="not deprecated">
  15043. </method>
  15044. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  15045. abstract="false" native="false" synchronized="false"
  15046. static="true" final="false" visibility="public"
  15047. deprecated="not deprecated">
  15048. <param name="name" type="java.lang.String"/>
  15049. </method>
  15050. <doc>
  15051. <![CDATA[The compression level for zlib library.]]>
  15052. </doc>
  15053. </class>
  15054. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  15055. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  15056. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy&gt;"
  15057. abstract="false"
  15058. static="true" final="true" visibility="public"
  15059. deprecated="not deprecated">
  15060. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  15061. abstract="false" native="false" synchronized="false"
  15062. static="true" final="true" visibility="public"
  15063. deprecated="not deprecated">
  15064. </method>
  15065. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  15066. abstract="false" native="false" synchronized="false"
  15067. static="true" final="false" visibility="public"
  15068. deprecated="not deprecated">
  15069. <param name="name" type="java.lang.String"/>
  15070. </method>
  15071. <doc>
  15072. <![CDATA[The compression level for zlib library.]]>
  15073. </doc>
  15074. </class>
  15075. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  15076. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  15077. <class name="ZlibDecompressor" extends="java.lang.Object"
  15078. abstract="false"
  15079. static="false" final="false" visibility="public"
  15080. deprecated="not deprecated">
  15081. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  15082. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  15083. static="false" final="false" visibility="public"
  15084. deprecated="not deprecated">
  15085. <doc>
  15086. <![CDATA[Creates a new decompressor.]]>
  15087. </doc>
  15088. </constructor>
  15089. <constructor name="ZlibDecompressor"
  15090. static="false" final="false" visibility="public"
  15091. deprecated="not deprecated">
  15092. </constructor>
  15093. <method name="setInput"
  15094. abstract="false" native="false" synchronized="true"
  15095. static="false" final="false" visibility="public"
  15096. deprecated="not deprecated">
  15097. <param name="b" type="byte[]"/>
  15098. <param name="off" type="int"/>
  15099. <param name="len" type="int"/>
  15100. </method>
  15101. <method name="setDictionary"
  15102. abstract="false" native="false" synchronized="true"
  15103. static="false" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <param name="b" type="byte[]"/>
  15106. <param name="off" type="int"/>
  15107. <param name="len" type="int"/>
  15108. </method>
  15109. <method name="needsInput" return="boolean"
  15110. abstract="false" native="false" synchronized="true"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="not deprecated">
  15113. </method>
  15114. <method name="needsDictionary" return="boolean"
  15115. abstract="false" native="false" synchronized="true"
  15116. static="false" final="false" visibility="public"
  15117. deprecated="not deprecated">
  15118. </method>
  15119. <method name="finished" return="boolean"
  15120. abstract="false" native="false" synchronized="true"
  15121. static="false" final="false" visibility="public"
  15122. deprecated="not deprecated">
  15123. </method>
  15124. <method name="decompress" return="int"
  15125. abstract="false" native="false" synchronized="true"
  15126. static="false" final="false" visibility="public"
  15127. deprecated="not deprecated">
  15128. <param name="b" type="byte[]"/>
  15129. <param name="off" type="int"/>
  15130. <param name="len" type="int"/>
  15131. <exception name="IOException" type="java.io.IOException"/>
  15132. </method>
  15133. <method name="getBytesWritten" return="long"
  15134. abstract="false" native="false" synchronized="true"
  15135. static="false" final="false" visibility="public"
  15136. deprecated="not deprecated">
  15137. <doc>
  15138. <![CDATA[Returns the total number of compressed bytes output so far.
  15139. @return the total (non-negative) number of compressed bytes output so far]]>
  15140. </doc>
  15141. </method>
  15142. <method name="getBytesRead" return="long"
  15143. abstract="false" native="false" synchronized="true"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <doc>
  15147. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  15148. @return the total (non-negative) number of uncompressed bytes input so far]]>
  15149. </doc>
  15150. </method>
  15151. <method name="reset"
  15152. abstract="false" native="false" synchronized="true"
  15153. static="false" final="false" visibility="public"
  15154. deprecated="not deprecated">
  15155. </method>
  15156. <method name="end"
  15157. abstract="false" native="false" synchronized="true"
  15158. static="false" final="false" visibility="public"
  15159. deprecated="not deprecated">
  15160. </method>
  15161. <method name="finalize"
  15162. abstract="false" native="false" synchronized="false"
  15163. static="false" final="false" visibility="protected"
  15164. deprecated="not deprecated">
  15165. </method>
  15166. <doc>
  15167. <![CDATA[A {@link Decompressor} based on the popular
  15168. zlib compression algorithm.
  15169. http://www.zlib.net/]]>
  15170. </doc>
  15171. </class>
  15172. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  15173. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  15174. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader&gt;"
  15175. abstract="false"
  15176. static="true" final="true" visibility="public"
  15177. deprecated="not deprecated">
  15178. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  15179. abstract="false" native="false" synchronized="false"
  15180. static="true" final="true" visibility="public"
  15181. deprecated="not deprecated">
  15182. </method>
  15183. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  15184. abstract="false" native="false" synchronized="false"
  15185. static="true" final="false" visibility="public"
  15186. deprecated="not deprecated">
  15187. <param name="name" type="java.lang.String"/>
  15188. </method>
  15189. <method name="windowBits" return="int"
  15190. abstract="false" native="false" synchronized="false"
  15191. static="false" final="false" visibility="public"
  15192. deprecated="not deprecated">
  15193. </method>
  15194. <doc>
  15195. <![CDATA[The headers to detect from compressed data.]]>
  15196. </doc>
  15197. </class>
  15198. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  15199. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  15200. <class name="ZlibFactory" extends="java.lang.Object"
  15201. abstract="false"
  15202. static="false" final="false" visibility="public"
  15203. deprecated="not deprecated">
  15204. <constructor name="ZlibFactory"
  15205. static="false" final="false" visibility="public"
  15206. deprecated="not deprecated">
  15207. </constructor>
  15208. <method name="isNativeZlibLoaded" return="boolean"
  15209. abstract="false" native="false" synchronized="false"
  15210. static="true" final="false" visibility="public"
  15211. deprecated="not deprecated">
  15212. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15213. <doc>
  15214. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  15215. can be loaded for this job.
  15216. @param conf configuration
  15217. @return <code>true</code> if native-zlib is loaded & initialized
  15218. and can be loaded for this job, else <code>false</code>]]>
  15219. </doc>
  15220. </method>
  15221. <method name="getZlibCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  15222. abstract="false" native="false" synchronized="false"
  15223. static="true" final="false" visibility="public"
  15224. deprecated="not deprecated">
  15225. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15226. <doc>
  15227. <![CDATA[Return the appropriate type of the zlib compressor.
  15228. @param conf configuration
  15229. @return the appropriate type of the zlib compressor.]]>
  15230. </doc>
  15231. </method>
  15232. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15233. abstract="false" native="false" synchronized="false"
  15234. static="true" final="false" visibility="public"
  15235. deprecated="not deprecated">
  15236. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15237. <doc>
  15238. <![CDATA[Return the appropriate implementation of the zlib compressor.
  15239. @param conf configuration
  15240. @return the appropriate implementation of the zlib compressor.]]>
  15241. </doc>
  15242. </method>
  15243. <method name="getZlibDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  15244. abstract="false" native="false" synchronized="false"
  15245. static="true" final="false" visibility="public"
  15246. deprecated="not deprecated">
  15247. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15248. <doc>
  15249. <![CDATA[Return the appropriate type of the zlib decompressor.
  15250. @param conf configuration
  15251. @return the appropriate type of the zlib decompressor.]]>
  15252. </doc>
  15253. </method>
  15254. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15255. abstract="false" native="false" synchronized="false"
  15256. static="true" final="false" visibility="public"
  15257. deprecated="not deprecated">
  15258. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15259. <doc>
  15260. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  15261. @param conf configuration
  15262. @return the appropriate implementation of the zlib decompressor.]]>
  15263. </doc>
  15264. </method>
  15265. <doc>
  15266. <![CDATA[A collection of factories to create the right
  15267. zlib/gzip compressor/decompressor instances.]]>
  15268. </doc>
  15269. </class>
  15270. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  15271. </package>
  15272. <package name="org.apache.hadoop.io.retry">
  15273. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  15274. <class name="RetryPolicies" extends="java.lang.Object"
  15275. abstract="false"
  15276. static="false" final="false" visibility="public"
  15277. deprecated="not deprecated">
  15278. <constructor name="RetryPolicies"
  15279. static="false" final="false" visibility="public"
  15280. deprecated="not deprecated">
  15281. </constructor>
  15282. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  15283. abstract="false" native="false" synchronized="false"
  15284. static="true" final="true" visibility="public"
  15285. deprecated="not deprecated">
  15286. <param name="maxRetries" type="int"/>
  15287. <param name="sleepTime" type="long"/>
  15288. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  15289. <doc>
  15290. <![CDATA[<p>
  15291. Keep trying a limited number of times, waiting a fixed time between attempts,
  15292. and then fail by re-throwing the exception.
  15293. </p>]]>
  15294. </doc>
  15295. </method>
  15296. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  15297. abstract="false" native="false" synchronized="false"
  15298. static="true" final="true" visibility="public"
  15299. deprecated="not deprecated">
  15300. <param name="maxTime" type="long"/>
  15301. <param name="sleepTime" type="long"/>
  15302. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  15303. <doc>
  15304. <![CDATA[<p>
  15305. Keep trying for a maximum time, waiting a fixed time between attempts,
  15306. and then fail by re-throwing the exception.
  15307. </p>]]>
  15308. </doc>
  15309. </method>
  15310. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  15311. abstract="false" native="false" synchronized="false"
  15312. static="true" final="true" visibility="public"
  15313. deprecated="not deprecated">
  15314. <param name="maxRetries" type="int"/>
  15315. <param name="sleepTime" type="long"/>
  15316. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  15317. <doc>
  15318. <![CDATA[<p>
  15319. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  15320. and then fail by re-throwing the exception.
  15321. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  15322. </p>]]>
  15323. </doc>
  15324. </method>
  15325. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  15326. abstract="false" native="false" synchronized="false"
  15327. static="true" final="true" visibility="public"
  15328. deprecated="not deprecated">
  15329. <param name="maxRetries" type="int"/>
  15330. <param name="sleepTime" type="long"/>
  15331. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  15332. <doc>
  15333. <![CDATA[<p>
  15334. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  15335. and then fail by re-throwing the exception.
  15336. The time between attempts is <code>sleepTime</code> mutliplied by a random
  15337. number in the range of [0, 2 to the number of retries)
  15338. </p>]]>
  15339. </doc>
  15340. </method>
  15341. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  15342. abstract="false" native="false" synchronized="false"
  15343. static="true" final="true" visibility="public"
  15344. deprecated="not deprecated">
  15345. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  15346. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  15347. <doc>
  15348. <![CDATA[<p>
  15349. Set a default policy with some explicit handlers for specific exceptions.
  15350. </p>]]>
  15351. </doc>
  15352. </method>
  15353. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  15354. abstract="false" native="false" synchronized="false"
  15355. static="true" final="true" visibility="public"
  15356. deprecated="not deprecated">
  15357. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  15358. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  15359. <doc>
  15360. <![CDATA[<p>
  15361. A retry policy for RemoteException
  15362. Set a default policy with some explicit handlers for specific exceptions.
  15363. </p>]]>
  15364. </doc>
  15365. </method>
  15366. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  15367. transient="false" volatile="false"
  15368. static="true" final="true" visibility="public"
  15369. deprecated="not deprecated">
  15370. <doc>
  15371. <![CDATA[<p>
  15372. Try once, and fail by re-throwing the exception.
  15373. This corresponds to having no retry mechanism in place.
  15374. </p>]]>
  15375. </doc>
  15376. </field>
  15377. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  15378. transient="false" volatile="false"
  15379. static="true" final="true" visibility="public"
  15380. deprecated="not deprecated">
  15381. <doc>
  15382. <![CDATA[<p>
  15383. Try once, and fail silently for <code>void</code> methods, or by
  15384. re-throwing the exception for non-<code>void</code> methods.
  15385. </p>]]>
  15386. </doc>
  15387. </field>
  15388. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  15389. transient="false" volatile="false"
  15390. static="true" final="true" visibility="public"
  15391. deprecated="not deprecated">
  15392. <doc>
  15393. <![CDATA[<p>
  15394. Keep trying forever.
  15395. </p>]]>
  15396. </doc>
  15397. </field>
  15398. <doc>
  15399. <![CDATA[<p>
  15400. A collection of useful implementations of {@link RetryPolicy}.
  15401. </p>]]>
  15402. </doc>
  15403. </class>
  15404. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  15405. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  15406. <interface name="RetryPolicy" abstract="true"
  15407. static="false" final="false" visibility="public"
  15408. deprecated="not deprecated">
  15409. <method name="shouldRetry" return="boolean"
  15410. abstract="false" native="false" synchronized="false"
  15411. static="false" final="false" visibility="public"
  15412. deprecated="not deprecated">
  15413. <param name="e" type="java.lang.Exception"/>
  15414. <param name="retries" type="int"/>
  15415. <exception name="Exception" type="java.lang.Exception"/>
  15416. <doc>
  15417. <![CDATA[<p>
  15418. Determines whether the framework should retry a
  15419. method for the given exception, and the number
  15420. of retries that have been made for that operation
  15421. so far.
  15422. </p>
  15423. @param e The exception that caused the method to fail.
  15424. @param retries The number of times the method has been retried.
  15425. @return <code>true</code> if the method should be retried,
  15426. <code>false</code> if the method should not be retried
  15427. but shouldn't fail with an exception (only for void methods).
  15428. @throws Exception The re-thrown exception <code>e</code> indicating
  15429. that the method failed and should not be retried further.]]>
  15430. </doc>
  15431. </method>
  15432. <doc>
  15433. <![CDATA[<p>
  15434. Specifies a policy for retrying method failures.
  15435. Implementations of this interface should be immutable.
  15436. </p>]]>
  15437. </doc>
  15438. </interface>
  15439. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  15440. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  15441. <class name="RetryProxy" extends="java.lang.Object"
  15442. abstract="false"
  15443. static="false" final="false" visibility="public"
  15444. deprecated="not deprecated">
  15445. <constructor name="RetryProxy"
  15446. static="false" final="false" visibility="public"
  15447. deprecated="not deprecated">
  15448. </constructor>
  15449. <method name="create" return="java.lang.Object"
  15450. abstract="false" native="false" synchronized="false"
  15451. static="true" final="false" visibility="public"
  15452. deprecated="not deprecated">
  15453. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  15454. <param name="implementation" type="java.lang.Object"/>
  15455. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  15456. <doc>
  15457. <![CDATA[<p>
  15458. Create a proxy for an interface of an implementation class
  15459. using the same retry policy for each method in the interface.
  15460. </p>
  15461. @param iface the interface that the retry will implement
  15462. @param implementation the instance whose methods should be retried
  15463. @param retryPolicy the policy for retirying method call failures
  15464. @return the retry proxy]]>
  15465. </doc>
  15466. </method>
  15467. <method name="create" return="java.lang.Object"
  15468. abstract="false" native="false" synchronized="false"
  15469. static="true" final="false" visibility="public"
  15470. deprecated="not deprecated">
  15471. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  15472. <param name="implementation" type="java.lang.Object"/>
  15473. <param name="methodNameToPolicyMap" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  15474. <doc>
  15475. <![CDATA[<p>
  15476. Create a proxy for an interface of an implementation class
  15477. using the a set of retry policies specified by method name.
  15478. If no retry policy is defined for a method then a default of
  15479. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  15480. </p>
  15481. @param iface the interface that the retry will implement
  15482. @param implementation the instance whose methods should be retried
  15483. @param methodNameToPolicyMap a map of method names to retry policies
  15484. @return the retry proxy]]>
  15485. </doc>
  15486. </method>
  15487. <doc>
  15488. <![CDATA[<p>
  15489. A factory for creating retry proxies.
  15490. </p>]]>
  15491. </doc>
  15492. </class>
  15493. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  15494. </package>
  15495. <package name="org.apache.hadoop.io.serializer">
  15496. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  15497. <interface name="Deserializer" abstract="true"
  15498. static="false" final="false" visibility="public"
  15499. deprecated="not deprecated">
  15500. <method name="open"
  15501. abstract="false" native="false" synchronized="false"
  15502. static="false" final="false" visibility="public"
  15503. deprecated="not deprecated">
  15504. <param name="in" type="java.io.InputStream"/>
  15505. <exception name="IOException" type="java.io.IOException"/>
  15506. <doc>
  15507. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  15508. </doc>
  15509. </method>
  15510. <method name="deserialize" return="T"
  15511. abstract="false" native="false" synchronized="false"
  15512. static="false" final="false" visibility="public"
  15513. deprecated="not deprecated">
  15514. <param name="t" type="T"/>
  15515. <exception name="IOException" type="java.io.IOException"/>
  15516. <doc>
  15517. <![CDATA[<p>
  15518. Deserialize the next object from the underlying input stream.
  15519. If the object <code>t</code> is non-null then this deserializer
  15520. <i>may</i> set its internal state to the next object read from the input
  15521. stream. Otherwise, if the object <code>t</code> is null a new
  15522. deserialized object will be created.
  15523. </p>
  15524. @return the deserialized object]]>
  15525. </doc>
  15526. </method>
  15527. <method name="close"
  15528. abstract="false" native="false" synchronized="false"
  15529. static="false" final="false" visibility="public"
  15530. deprecated="not deprecated">
  15531. <exception name="IOException" type="java.io.IOException"/>
  15532. <doc>
  15533. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  15534. </doc>
  15535. </method>
  15536. <doc>
  15537. <![CDATA[<p>
  15538. Provides a facility for deserializing objects of type <T> from an
  15539. {@link InputStream}.
  15540. </p>
  15541. <p>
  15542. Deserializers are stateful, but must not buffer the input since
  15543. other producers may read from the input between calls to
  15544. {@link #deserialize(Object)}.
  15545. </p>
  15546. @param <T>]]>
  15547. </doc>
  15548. </interface>
  15549. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  15550. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  15551. <class name="DeserializerComparator" extends="java.lang.Object"
  15552. abstract="true"
  15553. static="false" final="false" visibility="public"
  15554. deprecated="not deprecated">
  15555. <implements name="org.apache.hadoop.io.RawComparator&lt;T&gt;"/>
  15556. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  15557. static="false" final="false" visibility="protected"
  15558. deprecated="not deprecated">
  15559. <exception name="IOException" type="java.io.IOException"/>
  15560. </constructor>
  15561. <method name="compare" return="int"
  15562. abstract="false" native="false" synchronized="false"
  15563. static="false" final="false" visibility="public"
  15564. deprecated="not deprecated">
  15565. <param name="b1" type="byte[]"/>
  15566. <param name="s1" type="int"/>
  15567. <param name="l1" type="int"/>
  15568. <param name="b2" type="byte[]"/>
  15569. <param name="s2" type="int"/>
  15570. <param name="l2" type="int"/>
  15571. </method>
  15572. <doc>
  15573. <![CDATA[<p>
  15574. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  15575. the objects to be compared so that the standard {@link Comparator} can
  15576. be used to compare them.
  15577. </p>
  15578. <p>
  15579. One may optimize compare-intensive operations by using a custom
  15580. implementation of {@link RawComparator} that operates directly
  15581. on byte representations.
  15582. </p>
  15583. @param <T>]]>
  15584. </doc>
  15585. </class>
  15586. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  15587. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  15588. <class name="JavaSerialization" extends="java.lang.Object"
  15589. abstract="false"
  15590. static="false" final="false" visibility="public"
  15591. deprecated="not deprecated">
  15592. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;java.io.Serializable&gt;"/>
  15593. <constructor name="JavaSerialization"
  15594. static="false" final="false" visibility="public"
  15595. deprecated="not deprecated">
  15596. </constructor>
  15597. <method name="accept" return="boolean"
  15598. abstract="false" native="false" synchronized="false"
  15599. static="false" final="false" visibility="public"
  15600. deprecated="not deprecated">
  15601. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  15602. </method>
  15603. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;java.io.Serializable&gt;"
  15604. abstract="false" native="false" synchronized="false"
  15605. static="false" final="false" visibility="public"
  15606. deprecated="not deprecated">
  15607. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  15608. </method>
  15609. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;java.io.Serializable&gt;"
  15610. abstract="false" native="false" synchronized="false"
  15611. static="false" final="false" visibility="public"
  15612. deprecated="not deprecated">
  15613. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  15614. </method>
  15615. <doc>
  15616. <![CDATA[<p>
  15617. An experimental {@link Serialization} for Java {@link Serializable} classes.
  15618. </p>
  15619. @see JavaSerializationComparator]]>
  15620. </doc>
  15621. </class>
  15622. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  15623. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  15624. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator&lt;T&gt;"
  15625. abstract="false"
  15626. static="false" final="false" visibility="public"
  15627. deprecated="not deprecated">
  15628. <constructor name="JavaSerializationComparator"
  15629. static="false" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <exception name="IOException" type="java.io.IOException"/>
  15632. </constructor>
  15633. <method name="compare" return="int"
  15634. abstract="false" native="false" synchronized="false"
  15635. static="false" final="false" visibility="public"
  15636. deprecated="not deprecated">
  15637. <param name="o1" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  15638. <param name="o2" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  15639. </method>
  15640. <doc>
  15641. <![CDATA[<p>
  15642. A {@link RawComparator} that uses a {@link JavaSerialization}
  15643. {@link Deserializer} to deserialize objects that are then compared via
  15644. their {@link Comparable} interfaces.
  15645. </p>
  15646. @param <T>
  15647. @see JavaSerialization]]>
  15648. </doc>
  15649. </class>
  15650. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  15651. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  15652. <interface name="Serialization" abstract="true"
  15653. static="false" final="false" visibility="public"
  15654. deprecated="not deprecated">
  15655. <method name="accept" return="boolean"
  15656. abstract="false" native="false" synchronized="false"
  15657. static="false" final="false" visibility="public"
  15658. deprecated="not deprecated">
  15659. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  15660. <doc>
  15661. <![CDATA[Allows clients to test whether this {@link Serialization}
  15662. supports the given class.]]>
  15663. </doc>
  15664. </method>
  15665. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  15666. abstract="false" native="false" synchronized="false"
  15667. static="false" final="false" visibility="public"
  15668. deprecated="not deprecated">
  15669. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  15670. <doc>
  15671. <![CDATA[@return a {@link Serializer} for the given class.]]>
  15672. </doc>
  15673. </method>
  15674. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  15675. abstract="false" native="false" synchronized="false"
  15676. static="false" final="false" visibility="public"
  15677. deprecated="not deprecated">
  15678. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  15679. <doc>
  15680. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  15681. </doc>
  15682. </method>
  15683. <doc>
  15684. <![CDATA[<p>
  15685. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  15686. </p>
  15687. @param <T>]]>
  15688. </doc>
  15689. </interface>
  15690. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  15691. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  15692. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  15693. abstract="false"
  15694. static="false" final="false" visibility="public"
  15695. deprecated="not deprecated">
  15696. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  15697. static="false" final="false" visibility="public"
  15698. deprecated="not deprecated">
  15699. <doc>
  15700. <![CDATA[<p>
  15701. Serializations are found by reading the <code>io.serializations</code>
  15702. property from <code>conf</code>, which is a comma-delimited list of
  15703. classnames.
  15704. </p>]]>
  15705. </doc>
  15706. </constructor>
  15707. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  15708. abstract="false" native="false" synchronized="false"
  15709. static="false" final="false" visibility="public"
  15710. deprecated="not deprecated">
  15711. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  15712. </method>
  15713. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  15714. abstract="false" native="false" synchronized="false"
  15715. static="false" final="false" visibility="public"
  15716. deprecated="not deprecated">
  15717. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  15718. </method>
  15719. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization&lt;T&gt;"
  15720. abstract="false" native="false" synchronized="false"
  15721. static="false" final="false" visibility="public"
  15722. deprecated="not deprecated">
  15723. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  15724. </method>
  15725. <doc>
  15726. <![CDATA[<p>
  15727. A factory for {@link Serialization}s.
  15728. </p>]]>
  15729. </doc>
  15730. </class>
  15731. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  15732. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  15733. <interface name="Serializer" abstract="true"
  15734. static="false" final="false" visibility="public"
  15735. deprecated="not deprecated">
  15736. <method name="open"
  15737. abstract="false" native="false" synchronized="false"
  15738. static="false" final="false" visibility="public"
  15739. deprecated="not deprecated">
  15740. <param name="out" type="java.io.OutputStream"/>
  15741. <exception name="IOException" type="java.io.IOException"/>
  15742. <doc>
  15743. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  15744. </doc>
  15745. </method>
  15746. <method name="serialize"
  15747. abstract="false" native="false" synchronized="false"
  15748. static="false" final="false" visibility="public"
  15749. deprecated="not deprecated">
  15750. <param name="t" type="T"/>
  15751. <exception name="IOException" type="java.io.IOException"/>
  15752. <doc>
  15753. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  15754. </doc>
  15755. </method>
  15756. <method name="close"
  15757. abstract="false" native="false" synchronized="false"
  15758. static="false" final="false" visibility="public"
  15759. deprecated="not deprecated">
  15760. <exception name="IOException" type="java.io.IOException"/>
  15761. <doc>
  15762. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  15763. </doc>
  15764. </method>
  15765. <doc>
  15766. <![CDATA[<p>
  15767. Provides a facility for serializing objects of type <T> to an
  15768. {@link OutputStream}.
  15769. </p>
  15770. <p>
  15771. Serializers are stateful, but must not buffer the output since
  15772. other producers may write to the output between calls to
  15773. {@link #serialize(Object)}.
  15774. </p>
  15775. @param <T>]]>
  15776. </doc>
  15777. </interface>
  15778. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  15779. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  15780. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  15781. abstract="false"
  15782. static="false" final="false" visibility="public"
  15783. deprecated="not deprecated">
  15784. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;org.apache.hadoop.io.Writable&gt;"/>
  15785. <constructor name="WritableSerialization"
  15786. static="false" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. </constructor>
  15789. <method name="accept" return="boolean"
  15790. abstract="false" native="false" synchronized="false"
  15791. static="false" final="false" visibility="public"
  15792. deprecated="not deprecated">
  15793. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  15794. </method>
  15795. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;org.apache.hadoop.io.Writable&gt;"
  15796. abstract="false" native="false" synchronized="false"
  15797. static="false" final="false" visibility="public"
  15798. deprecated="not deprecated">
  15799. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  15800. </method>
  15801. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;org.apache.hadoop.io.Writable&gt;"
  15802. abstract="false" native="false" synchronized="false"
  15803. static="false" final="false" visibility="public"
  15804. deprecated="not deprecated">
  15805. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  15806. </method>
  15807. <doc>
  15808. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  15809. {@link Writable#write(java.io.DataOutput)} and
  15810. {@link Writable#readFields(java.io.DataInput)}.]]>
  15811. </doc>
  15812. </class>
  15813. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  15814. </package>
  15815. <package name="org.apache.hadoop.ipc">
  15816. <!-- start class org.apache.hadoop.ipc.Client -->
  15817. <class name="Client" extends="java.lang.Object"
  15818. abstract="false"
  15819. static="false" final="false" visibility="public"
  15820. deprecated="not deprecated">
  15821. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  15822. static="false" final="false" visibility="public"
  15823. deprecated="not deprecated">
  15824. <doc>
  15825. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  15826. class.]]>
  15827. </doc>
  15828. </constructor>
  15829. <constructor name="Client" type="java.lang.Class&lt;?&gt;, org.apache.hadoop.conf.Configuration"
  15830. static="false" final="false" visibility="public"
  15831. deprecated="not deprecated">
  15832. <doc>
  15833. <![CDATA[Construct an IPC client with the default SocketFactory
  15834. @param valueClass
  15835. @param conf]]>
  15836. </doc>
  15837. </constructor>
  15838. <method name="setPingInterval"
  15839. abstract="false" native="false" synchronized="false"
  15840. static="true" final="true" visibility="public"
  15841. deprecated="not deprecated">
  15842. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15843. <param name="pingInterval" type="int"/>
  15844. <doc>
  15845. <![CDATA[set the ping interval value in configuration
  15846. @param conf Configuration
  15847. @param pingInterval the ping interval]]>
  15848. </doc>
  15849. </method>
  15850. <method name="stop"
  15851. abstract="false" native="false" synchronized="false"
  15852. static="false" final="false" visibility="public"
  15853. deprecated="not deprecated">
  15854. <doc>
  15855. <![CDATA[Stop all threads related to this client. No further calls may be made
  15856. using this client.]]>
  15857. </doc>
  15858. </method>
  15859. <method name="call" return="org.apache.hadoop.io.Writable"
  15860. abstract="false" native="false" synchronized="false"
  15861. static="false" final="false" visibility="public"
  15862. deprecated="not deprecated">
  15863. <param name="param" type="org.apache.hadoop.io.Writable"/>
  15864. <param name="address" type="java.net.InetSocketAddress"/>
  15865. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  15866. <exception name="IOException" type="java.io.IOException"/>
  15867. <doc>
  15868. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  15869. <code>address</code>, returning the value. Throws exceptions if there are
  15870. network problems or if the remote code threw an exception.]]>
  15871. </doc>
  15872. </method>
  15873. <method name="call" return="org.apache.hadoop.io.Writable"
  15874. abstract="false" native="false" synchronized="false"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <param name="param" type="org.apache.hadoop.io.Writable"/>
  15878. <param name="addr" type="java.net.InetSocketAddress"/>
  15879. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  15880. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  15881. <exception name="IOException" type="java.io.IOException"/>
  15882. </method>
  15883. <method name="call" return="org.apache.hadoop.io.Writable[]"
  15884. abstract="false" native="false" synchronized="false"
  15885. static="false" final="false" visibility="public"
  15886. deprecated="not deprecated">
  15887. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  15888. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  15889. <exception name="IOException" type="java.io.IOException"/>
  15890. <doc>
  15891. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  15892. corresponding address. When all values are available, or have timed out
  15893. or errored, the collected results are returned in an array. The array
  15894. contains nulls for calls that timed out or errored.]]>
  15895. </doc>
  15896. </method>
  15897. <field name="LOG" type="org.apache.commons.logging.Log"
  15898. transient="false" volatile="false"
  15899. static="true" final="true" visibility="public"
  15900. deprecated="not deprecated">
  15901. </field>
  15902. <doc>
  15903. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  15904. parameter, and return a {@link Writable} as their value. A service runs on
  15905. a port and is defined by a parameter class and a value class.
  15906. @see Server]]>
  15907. </doc>
  15908. </class>
  15909. <!-- end class org.apache.hadoop.ipc.Client -->
  15910. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  15911. <class name="RemoteException" extends="java.io.IOException"
  15912. abstract="false"
  15913. static="false" final="false" visibility="public"
  15914. deprecated="not deprecated">
  15915. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  15916. static="false" final="false" visibility="public"
  15917. deprecated="not deprecated">
  15918. </constructor>
  15919. <method name="getClassName" return="java.lang.String"
  15920. abstract="false" native="false" synchronized="false"
  15921. static="false" final="false" visibility="public"
  15922. deprecated="not deprecated">
  15923. </method>
  15924. <method name="unwrapRemoteException" return="java.io.IOException"
  15925. abstract="false" native="false" synchronized="false"
  15926. static="false" final="false" visibility="public"
  15927. deprecated="not deprecated">
  15928. <param name="lookupTypes" type="java.lang.Class[]"/>
  15929. <doc>
  15930. <![CDATA[If this remote exception wraps up one of the lookupTypes
  15931. then return this exception.
  15932. <p>
  15933. Unwraps any IOException.
  15934. @param lookupTypes the desired exception class.
  15935. @return IOException, which is either the lookupClass exception or this.]]>
  15936. </doc>
  15937. </method>
  15938. <method name="unwrapRemoteException" return="java.io.IOException"
  15939. abstract="false" native="false" synchronized="false"
  15940. static="false" final="false" visibility="public"
  15941. deprecated="not deprecated">
  15942. <doc>
  15943. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  15944. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  15945. a <code>String</code> as a parameter.
  15946. Otherwise it returns this.
  15947. @return <code>Throwable]]>
  15948. </doc>
  15949. </method>
  15950. </class>
  15951. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  15952. <!-- start class org.apache.hadoop.ipc.RPC -->
  15953. <class name="RPC" extends="java.lang.Object"
  15954. abstract="false"
  15955. static="false" final="false" visibility="public"
  15956. deprecated="not deprecated">
  15957. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  15958. abstract="false" native="false" synchronized="false"
  15959. static="true" final="false" visibility="public"
  15960. deprecated="not deprecated">
  15961. <param name="protocol" type="java.lang.Class"/>
  15962. <param name="clientVersion" type="long"/>
  15963. <param name="addr" type="java.net.InetSocketAddress"/>
  15964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15965. <exception name="IOException" type="java.io.IOException"/>
  15966. </method>
  15967. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  15968. abstract="false" native="false" synchronized="false"
  15969. static="true" final="false" visibility="public"
  15970. deprecated="not deprecated">
  15971. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  15972. <param name="clientVersion" type="long"/>
  15973. <param name="addr" type="java.net.InetSocketAddress"/>
  15974. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15975. <param name="factory" type="javax.net.SocketFactory"/>
  15976. <exception name="IOException" type="java.io.IOException"/>
  15977. <doc>
  15978. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  15979. talking to a server at the named address.]]>
  15980. </doc>
  15981. </method>
  15982. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  15983. abstract="false" native="false" synchronized="false"
  15984. static="true" final="false" visibility="public"
  15985. deprecated="not deprecated">
  15986. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  15987. <param name="clientVersion" type="long"/>
  15988. <param name="addr" type="java.net.InetSocketAddress"/>
  15989. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  15990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15991. <param name="factory" type="javax.net.SocketFactory"/>
  15992. <exception name="IOException" type="java.io.IOException"/>
  15993. <doc>
  15994. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  15995. talking to a server at the named address.]]>
  15996. </doc>
  15997. </method>
  15998. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  15999. abstract="false" native="false" synchronized="false"
  16000. static="true" final="false" visibility="public"
  16001. deprecated="not deprecated">
  16002. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  16003. <param name="clientVersion" type="long"/>
  16004. <param name="addr" type="java.net.InetSocketAddress"/>
  16005. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16006. <exception name="IOException" type="java.io.IOException"/>
  16007. <doc>
  16008. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  16009. @param protocol
  16010. @param clientVersion
  16011. @param addr
  16012. @param conf
  16013. @return a proxy instance
  16014. @throws IOException]]>
  16015. </doc>
  16016. </method>
  16017. <method name="stopProxy"
  16018. abstract="false" native="false" synchronized="false"
  16019. static="true" final="false" visibility="public"
  16020. deprecated="not deprecated">
  16021. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  16022. <doc>
  16023. <![CDATA[Stop this proxy and release its invoker's resource
  16024. @param proxy the proxy to be stopped]]>
  16025. </doc>
  16026. </method>
  16027. <method name="call" return="java.lang.Object[]"
  16028. abstract="false" native="false" synchronized="false"
  16029. static="true" final="false" visibility="public"
  16030. deprecated="not deprecated">
  16031. <param name="method" type="java.lang.reflect.Method"/>
  16032. <param name="params" type="java.lang.Object[][]"/>
  16033. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  16034. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16035. <exception name="IOException" type="java.io.IOException"/>
  16036. <doc>
  16037. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  16038. </doc>
  16039. </method>
  16040. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  16041. abstract="false" native="false" synchronized="false"
  16042. static="true" final="false" visibility="public"
  16043. deprecated="not deprecated">
  16044. <param name="instance" type="java.lang.Object"/>
  16045. <param name="bindAddress" type="java.lang.String"/>
  16046. <param name="port" type="int"/>
  16047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16048. <exception name="IOException" type="java.io.IOException"/>
  16049. <doc>
  16050. <![CDATA[Construct a server for a protocol implementation instance listening on a
  16051. port and address.]]>
  16052. </doc>
  16053. </method>
  16054. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  16055. abstract="false" native="false" synchronized="false"
  16056. static="true" final="false" visibility="public"
  16057. deprecated="not deprecated">
  16058. <param name="instance" type="java.lang.Object"/>
  16059. <param name="bindAddress" type="java.lang.String"/>
  16060. <param name="port" type="int"/>
  16061. <param name="numHandlers" type="int"/>
  16062. <param name="verbose" type="boolean"/>
  16063. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16064. <exception name="IOException" type="java.io.IOException"/>
  16065. <doc>
  16066. <![CDATA[Construct a server for a protocol implementation instance listening on a
  16067. port and address.]]>
  16068. </doc>
  16069. </method>
  16070. <doc>
  16071. <![CDATA[A simple RPC mechanism.
  16072. A <i>protocol</i> is a Java interface. All parameters and return types must
  16073. be one of:
  16074. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  16075. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  16076. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  16077. <li>a {@link String}; or</li>
  16078. <li>a {@link Writable}; or</li>
  16079. <li>an array of the above types</li> </ul>
  16080. All methods in the protocol should throw only IOException. No field data of
  16081. the protocol instance is transmitted.]]>
  16082. </doc>
  16083. </class>
  16084. <!-- end class org.apache.hadoop.ipc.RPC -->
  16085. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  16086. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  16087. abstract="false"
  16088. static="true" final="false" visibility="public"
  16089. deprecated="not deprecated">
  16090. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  16091. static="false" final="false" visibility="public"
  16092. deprecated="not deprecated">
  16093. <exception name="IOException" type="java.io.IOException"/>
  16094. <doc>
  16095. <![CDATA[Construct an RPC server.
  16096. @param instance the instance whose methods will be called
  16097. @param conf the configuration to use
  16098. @param bindAddress the address to bind on to listen for connection
  16099. @param port the port to listen for connections on]]>
  16100. </doc>
  16101. </constructor>
  16102. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  16103. static="false" final="false" visibility="public"
  16104. deprecated="not deprecated">
  16105. <exception name="IOException" type="java.io.IOException"/>
  16106. <doc>
  16107. <![CDATA[Construct an RPC server.
  16108. @param instance the instance whose methods will be called
  16109. @param conf the configuration to use
  16110. @param bindAddress the address to bind on to listen for connection
  16111. @param port the port to listen for connections on
  16112. @param numHandlers the number of method handler threads to run
  16113. @param verbose whether each call should be logged]]>
  16114. </doc>
  16115. </constructor>
  16116. <method name="call" return="org.apache.hadoop.io.Writable"
  16117. abstract="false" native="false" synchronized="false"
  16118. static="false" final="false" visibility="public"
  16119. deprecated="not deprecated">
  16120. <param name="param" type="org.apache.hadoop.io.Writable"/>
  16121. <param name="receivedTime" type="long"/>
  16122. <exception name="IOException" type="java.io.IOException"/>
  16123. </method>
  16124. <doc>
  16125. <![CDATA[An RPC Server.]]>
  16126. </doc>
  16127. </class>
  16128. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  16129. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  16130. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  16131. abstract="false"
  16132. static="true" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  16135. static="false" final="false" visibility="public"
  16136. deprecated="not deprecated">
  16137. <doc>
  16138. <![CDATA[Create a version mismatch exception
  16139. @param interfaceName the name of the protocol mismatch
  16140. @param clientVersion the client's version of the protocol
  16141. @param serverVersion the server's version of the protocol]]>
  16142. </doc>
  16143. </constructor>
  16144. <method name="getInterfaceName" return="java.lang.String"
  16145. abstract="false" native="false" synchronized="false"
  16146. static="false" final="false" visibility="public"
  16147. deprecated="not deprecated">
  16148. <doc>
  16149. <![CDATA[Get the interface name
  16150. @return the java class name
  16151. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  16152. </doc>
  16153. </method>
  16154. <method name="getClientVersion" return="long"
  16155. abstract="false" native="false" synchronized="false"
  16156. static="false" final="false" visibility="public"
  16157. deprecated="not deprecated">
  16158. <doc>
  16159. <![CDATA[Get the client's preferred version]]>
  16160. </doc>
  16161. </method>
  16162. <method name="getServerVersion" return="long"
  16163. abstract="false" native="false" synchronized="false"
  16164. static="false" final="false" visibility="public"
  16165. deprecated="not deprecated">
  16166. <doc>
  16167. <![CDATA[Get the server's agreed to version.]]>
  16168. </doc>
  16169. </method>
  16170. <doc>
  16171. <![CDATA[A version mismatch for the RPC protocol.]]>
  16172. </doc>
  16173. </class>
  16174. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  16175. <!-- start class org.apache.hadoop.ipc.Server -->
  16176. <class name="Server" extends="java.lang.Object"
  16177. abstract="true"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  16181. static="false" final="false" visibility="protected"
  16182. deprecated="not deprecated">
  16183. <exception name="IOException" type="java.io.IOException"/>
  16184. </constructor>
  16185. <constructor name="Server" type="java.lang.String, int, java.lang.Class&lt;?&gt;, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  16186. static="false" final="false" visibility="protected"
  16187. deprecated="not deprecated">
  16188. <exception name="IOException" type="java.io.IOException"/>
  16189. <doc>
  16190. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  16191. be of the named class. The <code>handlerCount</handlerCount> determines
  16192. the number of handler threads that will be used to process calls.]]>
  16193. </doc>
  16194. </constructor>
  16195. <method name="get" return="org.apache.hadoop.ipc.Server"
  16196. abstract="false" native="false" synchronized="false"
  16197. static="true" final="false" visibility="public"
  16198. deprecated="not deprecated">
  16199. <doc>
  16200. <![CDATA[Returns the server instance called under or null. May be called under
  16201. {@link #call(Writable, long)} implementations, and under {@link Writable}
  16202. methods of paramters and return values. Permits applications to access
  16203. the server context.]]>
  16204. </doc>
  16205. </method>
  16206. <method name="getRemoteIp" return="java.net.InetAddress"
  16207. abstract="false" native="false" synchronized="false"
  16208. static="true" final="false" visibility="public"
  16209. deprecated="not deprecated">
  16210. <doc>
  16211. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  16212. Returns null incase of an error.]]>
  16213. </doc>
  16214. </method>
  16215. <method name="getRemoteAddress" return="java.lang.String"
  16216. abstract="false" native="false" synchronized="false"
  16217. static="true" final="false" visibility="public"
  16218. deprecated="not deprecated">
  16219. <doc>
  16220. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  16221. Returns null in case of an error.]]>
  16222. </doc>
  16223. </method>
  16224. <method name="bind"
  16225. abstract="false" native="false" synchronized="false"
  16226. static="true" final="false" visibility="public"
  16227. deprecated="not deprecated">
  16228. <param name="socket" type="java.net.ServerSocket"/>
  16229. <param name="address" type="java.net.InetSocketAddress"/>
  16230. <param name="backlog" type="int"/>
  16231. <exception name="IOException" type="java.io.IOException"/>
  16232. <doc>
  16233. <![CDATA[A convenience method to bind to a given address and report
  16234. better exceptions if the address is not a valid host.
  16235. @param socket the socket to bind
  16236. @param address the address to bind to
  16237. @param backlog the number of connections allowed in the queue
  16238. @throws BindException if the address can't be bound
  16239. @throws UnknownHostException if the address isn't a valid host name
  16240. @throws IOException other random errors from bind]]>
  16241. </doc>
  16242. </method>
  16243. <method name="setTimeout"
  16244. abstract="false" native="false" synchronized="false"
  16245. static="false" final="false" visibility="public"
  16246. deprecated="not deprecated">
  16247. <param name="len" type="int"/>
  16248. <doc>
  16249. <![CDATA[No longer used.]]>
  16250. </doc>
  16251. </method>
  16252. <method name="setSocketSendBufSize"
  16253. abstract="false" native="false" synchronized="false"
  16254. static="false" final="false" visibility="public"
  16255. deprecated="not deprecated">
  16256. <param name="size" type="int"/>
  16257. <doc>
  16258. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  16259. </doc>
  16260. </method>
  16261. <method name="start"
  16262. abstract="false" native="false" synchronized="true"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <exception name="IOException" type="java.io.IOException"/>
  16266. <doc>
  16267. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  16268. </doc>
  16269. </method>
  16270. <method name="stop"
  16271. abstract="false" native="false" synchronized="true"
  16272. static="false" final="false" visibility="public"
  16273. deprecated="not deprecated">
  16274. <doc>
  16275. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  16276. </doc>
  16277. </method>
  16278. <method name="join"
  16279. abstract="false" native="false" synchronized="true"
  16280. static="false" final="false" visibility="public"
  16281. deprecated="not deprecated">
  16282. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  16283. <doc>
  16284. <![CDATA[Wait for the server to be stopped.
  16285. Does not wait for all subthreads to finish.
  16286. See {@link #stop()}.]]>
  16287. </doc>
  16288. </method>
  16289. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  16290. abstract="false" native="false" synchronized="true"
  16291. static="false" final="false" visibility="public"
  16292. deprecated="not deprecated">
  16293. <doc>
  16294. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  16295. @return the socket (ip+port) on which the RPC server is listening to.]]>
  16296. </doc>
  16297. </method>
  16298. <method name="call" return="org.apache.hadoop.io.Writable"
  16299. abstract="true" native="false" synchronized="false"
  16300. static="false" final="false" visibility="public"
  16301. deprecated="not deprecated">
  16302. <param name="param" type="org.apache.hadoop.io.Writable"/>
  16303. <param name="receiveTime" type="long"/>
  16304. <exception name="IOException" type="java.io.IOException"/>
  16305. <doc>
  16306. <![CDATA[Called for each call.]]>
  16307. </doc>
  16308. </method>
  16309. <method name="getNumOpenConnections" return="int"
  16310. abstract="false" native="false" synchronized="false"
  16311. static="false" final="false" visibility="public"
  16312. deprecated="not deprecated">
  16313. <doc>
  16314. <![CDATA[The number of open RPC conections
  16315. @return the number of open rpc connections]]>
  16316. </doc>
  16317. </method>
  16318. <method name="getCallQueueLen" return="int"
  16319. abstract="false" native="false" synchronized="false"
  16320. static="false" final="false" visibility="public"
  16321. deprecated="not deprecated">
  16322. <doc>
  16323. <![CDATA[The number of rpc calls in the queue.
  16324. @return The number of rpc calls in the queue.]]>
  16325. </doc>
  16326. </method>
  16327. <field name="HEADER" type="java.nio.ByteBuffer"
  16328. transient="false" volatile="false"
  16329. static="true" final="true" visibility="public"
  16330. deprecated="not deprecated">
  16331. <doc>
  16332. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  16333. </doc>
  16334. </field>
  16335. <field name="CURRENT_VERSION" type="byte"
  16336. transient="false" volatile="false"
  16337. static="true" final="true" visibility="public"
  16338. deprecated="not deprecated">
  16339. </field>
  16340. <field name="LOG" type="org.apache.commons.logging.Log"
  16341. transient="false" volatile="false"
  16342. static="true" final="true" visibility="public"
  16343. deprecated="not deprecated">
  16344. </field>
  16345. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  16346. transient="false" volatile="false"
  16347. static="false" final="false" visibility="protected"
  16348. deprecated="not deprecated">
  16349. </field>
  16350. <doc>
  16351. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  16352. parameter, and return a {@link Writable} as their value. A service runs on
  16353. a port and is defined by a parameter class and a value class.
  16354. @see Client]]>
  16355. </doc>
  16356. </class>
  16357. <!-- end class org.apache.hadoop.ipc.Server -->
  16358. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  16359. <interface name="VersionedProtocol" abstract="true"
  16360. static="false" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <method name="getProtocolVersion" return="long"
  16363. abstract="false" native="false" synchronized="false"
  16364. static="false" final="false" visibility="public"
  16365. deprecated="not deprecated">
  16366. <param name="protocol" type="java.lang.String"/>
  16367. <param name="clientVersion" type="long"/>
  16368. <exception name="IOException" type="java.io.IOException"/>
  16369. <doc>
  16370. <![CDATA[Return protocol version corresponding to protocol interface.
  16371. @param protocol The classname of the protocol interface
  16372. @param clientVersion The version of the protocol that the client speaks
  16373. @return the version that the server will speak]]>
  16374. </doc>
  16375. </method>
  16376. <doc>
  16377. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  16378. Subclasses of this interface are also supposed to have
  16379. a static final long versionID field.]]>
  16380. </doc>
  16381. </interface>
  16382. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  16383. </package>
  16384. <package name="org.apache.hadoop.ipc.metrics">
  16385. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  16386. <class name="RpcMetrics" extends="java.lang.Object"
  16387. abstract="false"
  16388. static="false" final="false" visibility="public"
  16389. deprecated="not deprecated">
  16390. <implements name="org.apache.hadoop.metrics.Updater"/>
  16391. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  16392. static="false" final="false" visibility="public"
  16393. deprecated="not deprecated">
  16394. </constructor>
  16395. <method name="doUpdates"
  16396. abstract="false" native="false" synchronized="false"
  16397. static="false" final="false" visibility="public"
  16398. deprecated="not deprecated">
  16399. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  16400. <doc>
  16401. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  16402. </doc>
  16403. </method>
  16404. <method name="shutdown"
  16405. abstract="false" native="false" synchronized="false"
  16406. static="false" final="false" visibility="public"
  16407. deprecated="not deprecated">
  16408. </method>
  16409. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  16410. transient="false" volatile="false"
  16411. static="false" final="false" visibility="public"
  16412. deprecated="not deprecated">
  16413. <doc>
  16414. <![CDATA[The metrics variables are public:
  16415. - they can be set directly by calling their set/inc methods
  16416. -they can also be read directly - e.g. JMX does this.]]>
  16417. </doc>
  16418. </field>
  16419. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  16420. transient="false" volatile="false"
  16421. static="false" final="false" visibility="public"
  16422. deprecated="not deprecated">
  16423. </field>
  16424. <field name="metricsList" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.metrics.util.MetricsTimeVaryingRate&gt;"
  16425. transient="false" volatile="false"
  16426. static="false" final="false" visibility="public"
  16427. deprecated="not deprecated">
  16428. </field>
  16429. <doc>
  16430. <![CDATA[This class is for maintaining the various RPC statistics
  16431. and publishing them through the metrics interfaces.
  16432. This also registers the JMX MBean for RPC.
  16433. <p>
  16434. This class has a number of metrics variables that are publicly accessible;
  16435. these variables (objects) have methods to update their values;
  16436. for example:
  16437. <p> {@link #rpcQueueTime}.inc(time)]]>
  16438. </doc>
  16439. </class>
  16440. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  16441. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  16442. <interface name="RpcMgtMBean" abstract="true"
  16443. static="false" final="false" visibility="public"
  16444. deprecated="not deprecated">
  16445. <method name="getRpcOpsNumber" return="int"
  16446. abstract="false" native="false" synchronized="false"
  16447. static="false" final="false" visibility="public"
  16448. deprecated="not deprecated">
  16449. <doc>
  16450. <![CDATA[Number of RPC Operations in the last interval
  16451. @return number of operations]]>
  16452. </doc>
  16453. </method>
  16454. <method name="getRpcOpsAvgProcessingTime" return="long"
  16455. abstract="false" native="false" synchronized="false"
  16456. static="false" final="false" visibility="public"
  16457. deprecated="not deprecated">
  16458. <doc>
  16459. <![CDATA[Average time for RPC Operations in last interval
  16460. @return time in msec]]>
  16461. </doc>
  16462. </method>
  16463. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  16464. abstract="false" native="false" synchronized="false"
  16465. static="false" final="false" visibility="public"
  16466. deprecated="not deprecated">
  16467. <doc>
  16468. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  16469. @return time in msec]]>
  16470. </doc>
  16471. </method>
  16472. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="false" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <doc>
  16477. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  16478. @return time in msec]]>
  16479. </doc>
  16480. </method>
  16481. <method name="getRpcOpsAvgQueueTime" return="long"
  16482. abstract="false" native="false" synchronized="false"
  16483. static="false" final="false" visibility="public"
  16484. deprecated="not deprecated">
  16485. <doc>
  16486. <![CDATA[The Average RPC Operation Queued Time in the last interval
  16487. @return time in msec]]>
  16488. </doc>
  16489. </method>
  16490. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  16491. abstract="false" native="false" synchronized="false"
  16492. static="false" final="false" visibility="public"
  16493. deprecated="not deprecated">
  16494. <doc>
  16495. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  16496. @return time in msec]]>
  16497. </doc>
  16498. </method>
  16499. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  16500. abstract="false" native="false" synchronized="false"
  16501. static="false" final="false" visibility="public"
  16502. deprecated="not deprecated">
  16503. <doc>
  16504. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  16505. @return time in msec]]>
  16506. </doc>
  16507. </method>
  16508. <method name="resetAllMinMax"
  16509. abstract="false" native="false" synchronized="false"
  16510. static="false" final="false" visibility="public"
  16511. deprecated="not deprecated">
  16512. <doc>
  16513. <![CDATA[Reset all min max times]]>
  16514. </doc>
  16515. </method>
  16516. <method name="getNumOpenConnections" return="int"
  16517. abstract="false" native="false" synchronized="false"
  16518. static="false" final="false" visibility="public"
  16519. deprecated="not deprecated">
  16520. <doc>
  16521. <![CDATA[The number of open RPC conections
  16522. @return the number of open rpc connections]]>
  16523. </doc>
  16524. </method>
  16525. <method name="getCallQueueLen" return="int"
  16526. abstract="false" native="false" synchronized="false"
  16527. static="false" final="false" visibility="public"
  16528. deprecated="not deprecated">
  16529. <doc>
  16530. <![CDATA[The number of rpc calls in the queue.
  16531. @return The number of rpc calls in the queue.]]>
  16532. </doc>
  16533. </method>
  16534. <doc>
  16535. <![CDATA[This is the JMX management interface for the RPC layer.
  16536. Many of the statistics are sampled and averaged on an interval
  16537. which can be specified in the metrics config file.
  16538. <p>
  16539. For the statistics that are sampled and averaged, one must specify
  16540. a metrics context that does periodic update calls. Most do.
  16541. The default Null metrics context however does NOT. So if you aren't
  16542. using any other metrics context then you can turn on the viewing and averaging
  16543. of sampled metrics by specifying the following two lines
  16544. in the hadoop-meterics.properties file:
  16545. <pre>
  16546. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  16547. rpc.period=10
  16548. </pre>
  16549. <p>
  16550. Note that the metrics are collected regardless of the context used.
  16551. The context with the update thread is used to average the data periodically]]>
  16552. </doc>
  16553. </interface>
  16554. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  16555. </package>
  16556. <package name="org.apache.hadoop.log">
  16557. <!-- start class org.apache.hadoop.log.LogLevel -->
  16558. <class name="LogLevel" extends="java.lang.Object"
  16559. abstract="false"
  16560. static="false" final="false" visibility="public"
  16561. deprecated="not deprecated">
  16562. <constructor name="LogLevel"
  16563. static="false" final="false" visibility="public"
  16564. deprecated="not deprecated">
  16565. </constructor>
  16566. <method name="main"
  16567. abstract="false" native="false" synchronized="false"
  16568. static="true" final="false" visibility="public"
  16569. deprecated="not deprecated">
  16570. <param name="args" type="java.lang.String[]"/>
  16571. <doc>
  16572. <![CDATA[A command line implementation]]>
  16573. </doc>
  16574. </method>
  16575. <field name="USAGES" type="java.lang.String"
  16576. transient="false" volatile="false"
  16577. static="true" final="true" visibility="public"
  16578. deprecated="not deprecated">
  16579. </field>
  16580. <doc>
  16581. <![CDATA[Change log level in runtime.]]>
  16582. </doc>
  16583. </class>
  16584. <!-- end class org.apache.hadoop.log.LogLevel -->
  16585. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  16586. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  16587. abstract="false"
  16588. static="true" final="false" visibility="public"
  16589. deprecated="not deprecated">
  16590. <constructor name="LogLevel.Servlet"
  16591. static="false" final="false" visibility="public"
  16592. deprecated="not deprecated">
  16593. </constructor>
  16594. <method name="doGet"
  16595. abstract="false" native="false" synchronized="false"
  16596. static="false" final="false" visibility="public"
  16597. deprecated="not deprecated">
  16598. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  16599. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  16600. <exception name="ServletException" type="javax.servlet.ServletException"/>
  16601. <exception name="IOException" type="java.io.IOException"/>
  16602. </method>
  16603. <doc>
  16604. <![CDATA[A servlet implementation]]>
  16605. </doc>
  16606. </class>
  16607. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  16608. </package>
  16609. <package name="org.apache.hadoop.mapred">
  16610. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  16611. <class name="ClusterStatus" extends="java.lang.Object"
  16612. abstract="false"
  16613. static="false" final="false" visibility="public"
  16614. deprecated="not deprecated">
  16615. <implements name="org.apache.hadoop.io.Writable"/>
  16616. <method name="getTaskTrackers" return="int"
  16617. abstract="false" native="false" synchronized="false"
  16618. static="false" final="false" visibility="public"
  16619. deprecated="not deprecated">
  16620. <doc>
  16621. <![CDATA[Get the number of task trackers in the cluster.
  16622. @return the number of task trackers in the cluster.]]>
  16623. </doc>
  16624. </method>
  16625. <method name="getMapTasks" return="int"
  16626. abstract="false" native="false" synchronized="false"
  16627. static="false" final="false" visibility="public"
  16628. deprecated="not deprecated">
  16629. <doc>
  16630. <![CDATA[Get the number of currently running map tasks in the cluster.
  16631. @return the number of currently running map tasks in the cluster.]]>
  16632. </doc>
  16633. </method>
  16634. <method name="getReduceTasks" return="int"
  16635. abstract="false" native="false" synchronized="false"
  16636. static="false" final="false" visibility="public"
  16637. deprecated="not deprecated">
  16638. <doc>
  16639. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  16640. @return the number of currently running reduce tasks in the cluster.]]>
  16641. </doc>
  16642. </method>
  16643. <method name="getMaxMapTasks" return="int"
  16644. abstract="false" native="false" synchronized="false"
  16645. static="false" final="false" visibility="public"
  16646. deprecated="not deprecated">
  16647. <doc>
  16648. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  16649. @return the maximum capacity for running map tasks in the cluster.]]>
  16650. </doc>
  16651. </method>
  16652. <method name="getMaxReduceTasks" return="int"
  16653. abstract="false" native="false" synchronized="false"
  16654. static="false" final="false" visibility="public"
  16655. deprecated="not deprecated">
  16656. <doc>
  16657. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  16658. @return the maximum capacity for running reduce tasks in the cluster.]]>
  16659. </doc>
  16660. </method>
  16661. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  16662. abstract="false" native="false" synchronized="false"
  16663. static="false" final="false" visibility="public"
  16664. deprecated="not deprecated">
  16665. <doc>
  16666. <![CDATA[Get the current state of the <code>JobTracker</code>,
  16667. as {@link JobTracker.State}
  16668. @return the current state of the <code>JobTracker</code>.]]>
  16669. </doc>
  16670. </method>
  16671. <method name="write"
  16672. abstract="false" native="false" synchronized="false"
  16673. static="false" final="false" visibility="public"
  16674. deprecated="not deprecated">
  16675. <param name="out" type="java.io.DataOutput"/>
  16676. <exception name="IOException" type="java.io.IOException"/>
  16677. </method>
  16678. <method name="readFields"
  16679. abstract="false" native="false" synchronized="false"
  16680. static="false" final="false" visibility="public"
  16681. deprecated="not deprecated">
  16682. <param name="in" type="java.io.DataInput"/>
  16683. <exception name="IOException" type="java.io.IOException"/>
  16684. </method>
  16685. <doc>
  16686. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  16687. <p><code>ClusterStatus</code> provides clients with information such as:
  16688. <ol>
  16689. <li>
  16690. Size of the cluster.
  16691. </li>
  16692. <li>
  16693. Task capacity of the cluster.
  16694. </li>
  16695. <li>
  16696. The number of currently running map & reduce tasks.
  16697. </li>
  16698. <li>
  16699. State of the <code>JobTracker</code>.
  16700. </li>
  16701. </ol></p>
  16702. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  16703. {@link JobClient#getClusterStatus()}.</p>
  16704. @see JobClient]]>
  16705. </doc>
  16706. </class>
  16707. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  16708. <!-- start class org.apache.hadoop.mapred.Counters -->
  16709. <class name="Counters" extends="java.lang.Object"
  16710. abstract="false"
  16711. static="false" final="false" visibility="public"
  16712. deprecated="not deprecated">
  16713. <implements name="org.apache.hadoop.io.Writable"/>
  16714. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Group&gt;"/>
  16715. <constructor name="Counters"
  16716. static="false" final="false" visibility="public"
  16717. deprecated="not deprecated">
  16718. </constructor>
  16719. <method name="getGroupNames" return="java.util.Collection&lt;java.lang.String&gt;"
  16720. abstract="false" native="false" synchronized="true"
  16721. static="false" final="false" visibility="public"
  16722. deprecated="not deprecated">
  16723. <doc>
  16724. <![CDATA[Returns the names of all counter classes.
  16725. @return Set of counter names.]]>
  16726. </doc>
  16727. </method>
  16728. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Group&gt;"
  16729. abstract="false" native="false" synchronized="true"
  16730. static="false" final="false" visibility="public"
  16731. deprecated="not deprecated">
  16732. </method>
  16733. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  16734. abstract="false" native="false" synchronized="true"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. <param name="groupName" type="java.lang.String"/>
  16738. <doc>
  16739. <![CDATA[Returns the named counter group, or an empty group if there is none
  16740. with the specified name.]]>
  16741. </doc>
  16742. </method>
  16743. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  16744. abstract="false" native="false" synchronized="true"
  16745. static="false" final="false" visibility="public"
  16746. deprecated="not deprecated">
  16747. <param name="key" type="java.lang.Enum"/>
  16748. <doc>
  16749. <![CDATA[Find the counter for the given enum. The same enum will always return the
  16750. same counter.
  16751. @param key the counter key
  16752. @return the matching counter object]]>
  16753. </doc>
  16754. </method>
  16755. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  16756. abstract="false" native="false" synchronized="true"
  16757. static="false" final="false" visibility="public"
  16758. deprecated="deprecated, no comment">
  16759. <param name="group" type="java.lang.String"/>
  16760. <param name="id" type="int"/>
  16761. <param name="name" type="java.lang.String"/>
  16762. <doc>
  16763. <![CDATA[Find a counter by using strings
  16764. @param group the name of the group
  16765. @param id the id of the counter within the group (0 to N-1)
  16766. @param name the internal name of the counter
  16767. @return the counter for that name
  16768. @deprecated]]>
  16769. </doc>
  16770. </method>
  16771. <method name="incrCounter"
  16772. abstract="false" native="false" synchronized="true"
  16773. static="false" final="false" visibility="public"
  16774. deprecated="not deprecated">
  16775. <param name="key" type="java.lang.Enum"/>
  16776. <param name="amount" type="long"/>
  16777. <doc>
  16778. <![CDATA[Increments the specified counter by the specified amount, creating it if
  16779. it didn't already exist.
  16780. @param key identifies a counter
  16781. @param amount amount by which counter is to be incremented]]>
  16782. </doc>
  16783. </method>
  16784. <method name="incrCounter"
  16785. abstract="false" native="false" synchronized="true"
  16786. static="false" final="false" visibility="public"
  16787. deprecated="not deprecated">
  16788. <param name="group" type="java.lang.String"/>
  16789. <param name="counter" type="java.lang.String"/>
  16790. <param name="amount" type="long"/>
  16791. <doc>
  16792. <![CDATA[Increments the specified counter by the specified amount, creating it if
  16793. it didn't already exist.
  16794. @param group the name of the group
  16795. @param counter the internal name of the counter
  16796. @param amount amount by which counter is to be incremented]]>
  16797. </doc>
  16798. </method>
  16799. <method name="getCounter" return="long"
  16800. abstract="false" native="false" synchronized="true"
  16801. static="false" final="false" visibility="public"
  16802. deprecated="not deprecated">
  16803. <param name="key" type="java.lang.Enum"/>
  16804. <doc>
  16805. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  16806. does not exist.]]>
  16807. </doc>
  16808. </method>
  16809. <method name="incrAllCounters"
  16810. abstract="false" native="false" synchronized="true"
  16811. static="false" final="false" visibility="public"
  16812. deprecated="not deprecated">
  16813. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  16814. <doc>
  16815. <![CDATA[Increments multiple counters by their amounts in another Counters
  16816. instance.
  16817. @param other the other Counters instance]]>
  16818. </doc>
  16819. </method>
  16820. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  16821. abstract="false" native="false" synchronized="false"
  16822. static="true" final="false" visibility="public"
  16823. deprecated="not deprecated">
  16824. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  16825. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  16826. <doc>
  16827. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  16828. </doc>
  16829. </method>
  16830. <method name="size" return="int"
  16831. abstract="false" native="false" synchronized="true"
  16832. static="false" final="false" visibility="public"
  16833. deprecated="not deprecated">
  16834. <doc>
  16835. <![CDATA[Returns the total number of counters, by summing the number of counters
  16836. in each group.]]>
  16837. </doc>
  16838. </method>
  16839. <method name="write"
  16840. abstract="false" native="false" synchronized="true"
  16841. static="false" final="false" visibility="public"
  16842. deprecated="not deprecated">
  16843. <param name="out" type="java.io.DataOutput"/>
  16844. <exception name="IOException" type="java.io.IOException"/>
  16845. <doc>
  16846. <![CDATA[Write the set of groups.
  16847. The external format is:
  16848. #groups (groupName group)*
  16849. i.e. the number of groups followed by 0 or more groups, where each
  16850. group is of the form:
  16851. groupDisplayName #counters (false | true counter)*
  16852. where each counter is of the form:
  16853. name (false | true displayName) value]]>
  16854. </doc>
  16855. </method>
  16856. <method name="readFields"
  16857. abstract="false" native="false" synchronized="true"
  16858. static="false" final="false" visibility="public"
  16859. deprecated="not deprecated">
  16860. <param name="in" type="java.io.DataInput"/>
  16861. <exception name="IOException" type="java.io.IOException"/>
  16862. <doc>
  16863. <![CDATA[Read a set of groups.]]>
  16864. </doc>
  16865. </method>
  16866. <method name="log"
  16867. abstract="false" native="false" synchronized="false"
  16868. static="false" final="false" visibility="public"
  16869. deprecated="not deprecated">
  16870. <param name="log" type="org.apache.commons.logging.Log"/>
  16871. <doc>
  16872. <![CDATA[Logs the current counter values.
  16873. @param log The log to use.]]>
  16874. </doc>
  16875. </method>
  16876. <method name="toString" return="java.lang.String"
  16877. abstract="false" native="false" synchronized="true"
  16878. static="false" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <doc>
  16881. <![CDATA[Return textual representation of the counter values.]]>
  16882. </doc>
  16883. </method>
  16884. <method name="makeCompactString" return="java.lang.String"
  16885. abstract="false" native="false" synchronized="true"
  16886. static="false" final="false" visibility="public"
  16887. deprecated="not deprecated">
  16888. <doc>
  16889. <![CDATA[Convert a counters object into a single line that is easy to parse.
  16890. @return the string with "name=value" for each counter and separated by ","]]>
  16891. </doc>
  16892. </method>
  16893. <doc>
  16894. <![CDATA[A set of named counters.
  16895. <p><code>Counters</code> represent global counters, defined either by the
  16896. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  16897. any {@link Enum} type.</p>
  16898. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  16899. counters from a particular <code>Enum</code> class.]]>
  16900. </doc>
  16901. </class>
  16902. <!-- end class org.apache.hadoop.mapred.Counters -->
  16903. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  16904. <class name="Counters.Counter" extends="java.lang.Object"
  16905. abstract="false"
  16906. static="true" final="false" visibility="public"
  16907. deprecated="not deprecated">
  16908. <implements name="org.apache.hadoop.io.Writable"/>
  16909. <method name="readFields"
  16910. abstract="false" native="false" synchronized="true"
  16911. static="false" final="false" visibility="public"
  16912. deprecated="not deprecated">
  16913. <param name="in" type="java.io.DataInput"/>
  16914. <exception name="IOException" type="java.io.IOException"/>
  16915. <doc>
  16916. <![CDATA[Read the binary representation of the counter]]>
  16917. </doc>
  16918. </method>
  16919. <method name="write"
  16920. abstract="false" native="false" synchronized="true"
  16921. static="false" final="false" visibility="public"
  16922. deprecated="not deprecated">
  16923. <param name="out" type="java.io.DataOutput"/>
  16924. <exception name="IOException" type="java.io.IOException"/>
  16925. <doc>
  16926. <![CDATA[Write the binary representation of the counter]]>
  16927. </doc>
  16928. </method>
  16929. <method name="getName" return="java.lang.String"
  16930. abstract="false" native="false" synchronized="true"
  16931. static="false" final="false" visibility="public"
  16932. deprecated="not deprecated">
  16933. <doc>
  16934. <![CDATA[Get the internal name of the counter.
  16935. @return the internal name of the counter]]>
  16936. </doc>
  16937. </method>
  16938. <method name="getDisplayName" return="java.lang.String"
  16939. abstract="false" native="false" synchronized="true"
  16940. static="false" final="false" visibility="public"
  16941. deprecated="not deprecated">
  16942. <doc>
  16943. <![CDATA[Get the name of the counter.
  16944. @return the user facing name of the counter]]>
  16945. </doc>
  16946. </method>
  16947. <method name="getCounter" return="long"
  16948. abstract="false" native="false" synchronized="true"
  16949. static="false" final="false" visibility="public"
  16950. deprecated="not deprecated">
  16951. <doc>
  16952. <![CDATA[What is the current value of this counter?
  16953. @return the current value]]>
  16954. </doc>
  16955. </method>
  16956. <method name="increment"
  16957. abstract="false" native="false" synchronized="true"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. <param name="incr" type="long"/>
  16961. <doc>
  16962. <![CDATA[Increment this counter by the given value
  16963. @param incr the value to increase this counter by]]>
  16964. </doc>
  16965. </method>
  16966. <doc>
  16967. <![CDATA[A counter record, comprising its name and value.]]>
  16968. </doc>
  16969. </class>
  16970. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  16971. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  16972. <class name="Counters.Group" extends="java.lang.Object"
  16973. abstract="false"
  16974. static="true" final="false" visibility="public"
  16975. deprecated="not deprecated">
  16976. <implements name="org.apache.hadoop.io.Writable"/>
  16977. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"/>
  16978. <method name="getName" return="java.lang.String"
  16979. abstract="false" native="false" synchronized="false"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. <doc>
  16983. <![CDATA[Returns raw name of the group. This is the name of the enum class
  16984. for this group of counters.]]>
  16985. </doc>
  16986. </method>
  16987. <method name="getDisplayName" return="java.lang.String"
  16988. abstract="false" native="false" synchronized="false"
  16989. static="false" final="false" visibility="public"
  16990. deprecated="not deprecated">
  16991. <doc>
  16992. <![CDATA[Returns localized name of the group. This is the same as getName() by
  16993. default, but different if an appropriate ResourceBundle is found.]]>
  16994. </doc>
  16995. </method>
  16996. <method name="getCounter" return="long"
  16997. abstract="false" native="false" synchronized="true"
  16998. static="false" final="false" visibility="public"
  16999. deprecated="not deprecated">
  17000. <param name="counterName" type="java.lang.String"/>
  17001. <doc>
  17002. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  17003. not exist.]]>
  17004. </doc>
  17005. </method>
  17006. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  17007. abstract="false" native="false" synchronized="true"
  17008. static="false" final="false" visibility="public"
  17009. deprecated="use {@link #getCounter(String)} instead">
  17010. <param name="id" type="int"/>
  17011. <param name="name" type="java.lang.String"/>
  17012. <doc>
  17013. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  17014. @param id the numeric id of the counter within the group
  17015. @param name the internal counter name
  17016. @return the counter
  17017. @deprecated use {@link #getCounter(String)} instead]]>
  17018. </doc>
  17019. </method>
  17020. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  17021. abstract="false" native="false" synchronized="true"
  17022. static="false" final="false" visibility="public"
  17023. deprecated="not deprecated">
  17024. <param name="name" type="java.lang.String"/>
  17025. <doc>
  17026. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  17027. @param name the internal counter name
  17028. @return the counter]]>
  17029. </doc>
  17030. </method>
  17031. <method name="size" return="int"
  17032. abstract="false" native="false" synchronized="true"
  17033. static="false" final="false" visibility="public"
  17034. deprecated="not deprecated">
  17035. <doc>
  17036. <![CDATA[Returns the number of counters in this group.]]>
  17037. </doc>
  17038. </method>
  17039. <method name="write"
  17040. abstract="false" native="false" synchronized="true"
  17041. static="false" final="false" visibility="public"
  17042. deprecated="not deprecated">
  17043. <param name="out" type="java.io.DataOutput"/>
  17044. <exception name="IOException" type="java.io.IOException"/>
  17045. </method>
  17046. <method name="readFields"
  17047. abstract="false" native="false" synchronized="true"
  17048. static="false" final="false" visibility="public"
  17049. deprecated="not deprecated">
  17050. <param name="in" type="java.io.DataInput"/>
  17051. <exception name="IOException" type="java.io.IOException"/>
  17052. </method>
  17053. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"
  17054. abstract="false" native="false" synchronized="true"
  17055. static="false" final="false" visibility="public"
  17056. deprecated="not deprecated">
  17057. </method>
  17058. <doc>
  17059. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  17060. counter {@link Enum} class.
  17061. <p><code>Group</code>handles localization of the class name and the
  17062. counter names.</p>]]>
  17063. </doc>
  17064. </class>
  17065. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  17066. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  17067. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  17068. abstract="false"
  17069. static="false" final="false" visibility="public"
  17070. deprecated="not deprecated">
  17071. <constructor name="DefaultJobHistoryParser"
  17072. static="false" final="false" visibility="public"
  17073. deprecated="not deprecated">
  17074. </constructor>
  17075. <method name="parseJobTasks"
  17076. abstract="false" native="false" synchronized="false"
  17077. static="true" final="false" visibility="public"
  17078. deprecated="not deprecated">
  17079. <param name="jobHistoryFile" type="java.lang.String"/>
  17080. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  17081. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17082. <exception name="IOException" type="java.io.IOException"/>
  17083. <doc>
  17084. <![CDATA[Populates a JobInfo object from the job's history log file.
  17085. @param jobHistoryFile history file for this job.
  17086. @param job a precreated JobInfo object, should be non-null.
  17087. @param fs FileSystem where historyFile is present.
  17088. @throws IOException]]>
  17089. </doc>
  17090. </method>
  17091. <doc>
  17092. <![CDATA[Default parser for job history files. It creates object model from
  17093. job history file.]]>
  17094. </doc>
  17095. </class>
  17096. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  17097. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  17098. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  17099. abstract="false"
  17100. static="false" final="false" visibility="public"
  17101. deprecated="not deprecated">
  17102. <constructor name="FileAlreadyExistsException"
  17103. static="false" final="false" visibility="public"
  17104. deprecated="not deprecated">
  17105. </constructor>
  17106. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  17107. static="false" final="false" visibility="public"
  17108. deprecated="not deprecated">
  17109. </constructor>
  17110. <doc>
  17111. <![CDATA[Used when target file already exists for any operation and
  17112. is not configured to be overwritten.]]>
  17113. </doc>
  17114. </class>
  17115. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  17116. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  17117. <class name="FileInputFormat" extends="java.lang.Object"
  17118. abstract="true"
  17119. static="false" final="false" visibility="public"
  17120. deprecated="not deprecated">
  17121. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  17122. <constructor name="FileInputFormat"
  17123. static="false" final="false" visibility="public"
  17124. deprecated="not deprecated">
  17125. </constructor>
  17126. <method name="setMinSplitSize"
  17127. abstract="false" native="false" synchronized="false"
  17128. static="false" final="false" visibility="protected"
  17129. deprecated="not deprecated">
  17130. <param name="minSplitSize" type="long"/>
  17131. </method>
  17132. <method name="isSplitable" return="boolean"
  17133. abstract="false" native="false" synchronized="false"
  17134. static="false" final="false" visibility="protected"
  17135. deprecated="not deprecated">
  17136. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  17137. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  17138. <doc>
  17139. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  17140. stream compressed, it will not be.
  17141. <code>FileInputFormat</code> implementations can override this and return
  17142. <code>false</code> to ensure that individual input files are never split-up
  17143. so that {@link Mapper}s process entire files.
  17144. @param fs the file system that the file is on
  17145. @param filename the file name to check
  17146. @return is this file splitable?]]>
  17147. </doc>
  17148. </method>
  17149. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  17150. abstract="true" native="false" synchronized="false"
  17151. static="false" final="false" visibility="public"
  17152. deprecated="not deprecated">
  17153. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  17154. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17155. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  17156. <exception name="IOException" type="java.io.IOException"/>
  17157. </method>
  17158. <method name="setInputPathFilter"
  17159. abstract="false" native="false" synchronized="false"
  17160. static="true" final="false" visibility="public"
  17161. deprecated="not deprecated">
  17162. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17163. <param name="filter" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.PathFilter&gt;"/>
  17164. <doc>
  17165. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  17166. @param filter the PathFilter class use for filtering the input paths.]]>
  17167. </doc>
  17168. </method>
  17169. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  17170. abstract="false" native="false" synchronized="false"
  17171. static="true" final="false" visibility="public"
  17172. deprecated="not deprecated">
  17173. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17174. <doc>
  17175. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  17176. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  17177. </doc>
  17178. </method>
  17179. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  17180. abstract="false" native="false" synchronized="false"
  17181. static="false" final="false" visibility="protected"
  17182. deprecated="not deprecated">
  17183. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17184. <exception name="IOException" type="java.io.IOException"/>
  17185. <doc>
  17186. <![CDATA[List input directories.
  17187. Subclasses may override to, e.g., select only files matching a regular
  17188. expression.
  17189. @param job the job to list input paths for
  17190. @return array of FileStatus objects
  17191. @throws IOException if zero items.]]>
  17192. </doc>
  17193. </method>
  17194. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  17195. abstract="false" native="false" synchronized="false"
  17196. static="false" final="false" visibility="protected"
  17197. deprecated="Use {@link #listStatus(JobConf)} instead.">
  17198. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17199. <exception name="IOException" type="java.io.IOException"/>
  17200. <doc>
  17201. <![CDATA[List input directories.
  17202. Subclasses may override to, e.g., select only files matching a regular
  17203. expression.
  17204. @param job the job to list input paths for
  17205. @return array of Path objects
  17206. @throws IOException if zero items.
  17207. @deprecated Use {@link #listStatus(JobConf)} instead.]]>
  17208. </doc>
  17209. </method>
  17210. <method name="validateInput"
  17211. abstract="false" native="false" synchronized="false"
  17212. static="false" final="false" visibility="public"
  17213. deprecated="not deprecated">
  17214. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17215. <exception name="IOException" type="java.io.IOException"/>
  17216. </method>
  17217. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  17218. abstract="false" native="false" synchronized="false"
  17219. static="false" final="false" visibility="public"
  17220. deprecated="not deprecated">
  17221. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17222. <param name="numSplits" type="int"/>
  17223. <exception name="IOException" type="java.io.IOException"/>
  17224. <doc>
  17225. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  17226. they're too big.]]>
  17227. </doc>
  17228. </method>
  17229. <method name="computeSplitSize" return="long"
  17230. abstract="false" native="false" synchronized="false"
  17231. static="false" final="false" visibility="protected"
  17232. deprecated="not deprecated">
  17233. <param name="goalSize" type="long"/>
  17234. <param name="minSize" type="long"/>
  17235. <param name="blockSize" type="long"/>
  17236. </method>
  17237. <method name="getBlockIndex" return="int"
  17238. abstract="false" native="false" synchronized="false"
  17239. static="false" final="false" visibility="protected"
  17240. deprecated="not deprecated">
  17241. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  17242. <param name="offset" type="long"/>
  17243. </method>
  17244. <method name="setInputPaths"
  17245. abstract="false" native="false" synchronized="false"
  17246. static="true" final="false" visibility="public"
  17247. deprecated="not deprecated">
  17248. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17249. <param name="commaSeparatedPaths" type="java.lang.String"/>
  17250. <doc>
  17251. <![CDATA[Sets the given comma separated paths as the list of inputs
  17252. for the map-reduce job.
  17253. @param conf Configuration of the job
  17254. @param commaSeparatedPaths Comma separated paths to be set as
  17255. the list of inputs for the map-reduce job.]]>
  17256. </doc>
  17257. </method>
  17258. <method name="addInputPaths"
  17259. abstract="false" native="false" synchronized="false"
  17260. static="true" final="false" visibility="public"
  17261. deprecated="not deprecated">
  17262. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17263. <param name="commaSeparatedPaths" type="java.lang.String"/>
  17264. <doc>
  17265. <![CDATA[Add the given comma separated paths to the list of inputs for
  17266. the map-reduce job.
  17267. @param conf The configuration of the job
  17268. @param commaSeparatedPaths Comma separated paths to be added to
  17269. the list of inputs for the map-reduce job.]]>
  17270. </doc>
  17271. </method>
  17272. <method name="setInputPaths"
  17273. abstract="false" native="false" synchronized="false"
  17274. static="true" final="false" visibility="public"
  17275. deprecated="not deprecated">
  17276. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17277. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  17278. <doc>
  17279. <![CDATA[Set the array of {@link Path}s as the list of inputs
  17280. for the map-reduce job.
  17281. @param conf Configuration of the job.
  17282. @param inputPaths the {@link Path}s of the input directories/files
  17283. for the map-reduce job.]]>
  17284. </doc>
  17285. </method>
  17286. <method name="addInputPath"
  17287. abstract="false" native="false" synchronized="false"
  17288. static="true" final="false" visibility="public"
  17289. deprecated="not deprecated">
  17290. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17291. <param name="path" type="org.apache.hadoop.fs.Path"/>
  17292. <doc>
  17293. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  17294. @param conf The configuration of the job
  17295. @param path {@link Path} to be added to the list of inputs for
  17296. the map-reduce job.]]>
  17297. </doc>
  17298. </method>
  17299. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  17300. abstract="false" native="false" synchronized="false"
  17301. static="true" final="false" visibility="public"
  17302. deprecated="not deprecated">
  17303. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17304. <doc>
  17305. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  17306. @param conf The configuration of the job
  17307. @return the list of input {@link Path}s for the map-reduce job.]]>
  17308. </doc>
  17309. </method>
  17310. <field name="LOG" type="org.apache.commons.logging.Log"
  17311. transient="false" volatile="false"
  17312. static="true" final="true" visibility="public"
  17313. deprecated="not deprecated">
  17314. </field>
  17315. <doc>
  17316. <![CDATA[A base class for file-based {@link InputFormat}.
  17317. <p><code>FileInputFormat</code> is the base class for all file-based
  17318. <code>InputFormat</code>s. This provides a generic implementation of
  17319. {@link #getSplits(JobConf, int)}.
  17320. Subclasses of <code>FileInputFormat</code> can also override the
  17321. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  17322. not split-up and are processed as a whole by {@link Mapper}s.]]>
  17323. </doc>
  17324. </class>
  17325. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  17326. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  17327. <class name="FileOutputFormat" extends="java.lang.Object"
  17328. abstract="true"
  17329. static="false" final="false" visibility="public"
  17330. deprecated="not deprecated">
  17331. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  17332. <constructor name="FileOutputFormat"
  17333. static="false" final="false" visibility="public"
  17334. deprecated="not deprecated">
  17335. </constructor>
  17336. <method name="setCompressOutput"
  17337. abstract="false" native="false" synchronized="false"
  17338. static="true" final="false" visibility="public"
  17339. deprecated="not deprecated">
  17340. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17341. <param name="compress" type="boolean"/>
  17342. <doc>
  17343. <![CDATA[Set whether the output of the job is compressed.
  17344. @param conf the {@link JobConf} to modify
  17345. @param compress should the output of the job be compressed?]]>
  17346. </doc>
  17347. </method>
  17348. <method name="getCompressOutput" return="boolean"
  17349. abstract="false" native="false" synchronized="false"
  17350. static="true" final="false" visibility="public"
  17351. deprecated="not deprecated">
  17352. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17353. <doc>
  17354. <![CDATA[Is the job output compressed?
  17355. @param conf the {@link JobConf} to look in
  17356. @return <code>true</code> if the job output should be compressed,
  17357. <code>false</code> otherwise]]>
  17358. </doc>
  17359. </method>
  17360. <method name="setOutputCompressorClass"
  17361. abstract="false" native="false" synchronized="false"
  17362. static="true" final="false" visibility="public"
  17363. deprecated="not deprecated">
  17364. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17365. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  17366. <doc>
  17367. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  17368. @param conf the {@link JobConf} to modify
  17369. @param codecClass the {@link CompressionCodec} to be used to
  17370. compress the job outputs]]>
  17371. </doc>
  17372. </method>
  17373. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  17374. abstract="false" native="false" synchronized="false"
  17375. static="true" final="false" visibility="public"
  17376. deprecated="not deprecated">
  17377. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17378. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  17379. <doc>
  17380. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  17381. @param conf the {@link JobConf} to look in
  17382. @param defaultValue the {@link CompressionCodec} to return if not set
  17383. @return the {@link CompressionCodec} to be used to compress the
  17384. job outputs
  17385. @throws IllegalArgumentException if the class was specified, but not found]]>
  17386. </doc>
  17387. </method>
  17388. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  17389. abstract="true" native="false" synchronized="false"
  17390. static="false" final="false" visibility="public"
  17391. deprecated="not deprecated">
  17392. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  17393. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17394. <param name="name" type="java.lang.String"/>
  17395. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  17396. <exception name="IOException" type="java.io.IOException"/>
  17397. </method>
  17398. <method name="checkOutputSpecs"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  17403. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17404. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  17405. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  17406. <exception name="IOException" type="java.io.IOException"/>
  17407. </method>
  17408. <method name="setOutputPath"
  17409. abstract="false" native="false" synchronized="false"
  17410. static="true" final="false" visibility="public"
  17411. deprecated="not deprecated">
  17412. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17413. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  17414. <doc>
  17415. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  17416. @param conf The configuration of the job.
  17417. @param outputDir the {@link Path} of the output directory for
  17418. the map-reduce job.]]>
  17419. </doc>
  17420. </method>
  17421. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  17422. abstract="false" native="false" synchronized="false"
  17423. static="true" final="false" visibility="public"
  17424. deprecated="not deprecated">
  17425. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17426. <doc>
  17427. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  17428. @return the {@link Path} to the output directory for the map-reduce job.
  17429. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  17430. </doc>
  17431. </method>
  17432. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  17433. abstract="false" native="false" synchronized="false"
  17434. static="true" final="false" visibility="public"
  17435. deprecated="not deprecated">
  17436. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17437. <doc>
  17438. <![CDATA[Get the {@link Path} to the task's temporary output directory
  17439. for the map-reduce job
  17440. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  17441. <p>Some applications need to create/write-to side-files, which differ from
  17442. the actual job-outputs.
  17443. <p>In such cases there could be issues with 2 instances of the same TIP
  17444. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  17445. same file (path) on HDFS. Hence the application-writer will have to pick
  17446. unique names per task-attempt (e.g. using the attemptid, say
  17447. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  17448. <p>To get around this the Map-Reduce framework helps the application-writer
  17449. out by maintaining a special
  17450. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  17451. sub-directory for each task-attempt on HDFS where the output of the
  17452. task-attempt goes. On successful completion of the task-attempt the files
  17453. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  17454. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  17455. framework discards the sub-directory of unsuccessful task-attempts. This
  17456. is completely transparent to the application.</p>
  17457. <p>The application-writer can take advantage of this by creating any
  17458. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  17459. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  17460. framework will move them out similarly - thus she doesn't have to pick
  17461. unique paths per task-attempt.</p>
  17462. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  17463. execution of a particular task-attempt is actually
  17464. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  17465. set by the map-reduce framework. So, just create any side-files in the
  17466. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  17467. task to take advantage of this feature.</p>
  17468. <p>The entire discussion holds true for maps of jobs with
  17469. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  17470. goes directly to HDFS.</p>
  17471. @return the {@link Path} to the task's temporary output directory
  17472. for the map-reduce job.]]>
  17473. </doc>
  17474. </method>
  17475. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  17476. abstract="false" native="false" synchronized="false"
  17477. static="true" final="false" visibility="protected"
  17478. deprecated="not deprecated">
  17479. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17480. <param name="name" type="java.lang.String"/>
  17481. <exception name="IOException" type="java.io.IOException"/>
  17482. <doc>
  17483. <![CDATA[Helper function to create the task's temporary output directory and
  17484. return the path to the task's output file.
  17485. @param conf job-configuration
  17486. @param name temporary task-output filename
  17487. @return path to the task's temporary output file
  17488. @throws IOException]]>
  17489. </doc>
  17490. </method>
  17491. <doc>
  17492. <![CDATA[A base class for {@link OutputFormat}.]]>
  17493. </doc>
  17494. </class>
  17495. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  17496. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  17497. <class name="FileSplit" extends="java.lang.Object"
  17498. abstract="false"
  17499. static="false" final="false" visibility="public"
  17500. deprecated="not deprecated">
  17501. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  17502. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  17503. static="false" final="false" visibility="public"
  17504. deprecated="deprecated, no comment">
  17505. <doc>
  17506. <![CDATA[Constructs a split.
  17507. @deprecated
  17508. @param file the file name
  17509. @param start the position of the first byte in the file to process
  17510. @param length the number of bytes in the file to process]]>
  17511. </doc>
  17512. </constructor>
  17513. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  17514. static="false" final="false" visibility="public"
  17515. deprecated="not deprecated">
  17516. <doc>
  17517. <![CDATA[Constructs a split with host information
  17518. @param file the file name
  17519. @param start the position of the first byte in the file to process
  17520. @param length the number of bytes in the file to process
  17521. @param hosts the list of hosts containing the block, possibly null]]>
  17522. </doc>
  17523. </constructor>
  17524. <method name="getPath" return="org.apache.hadoop.fs.Path"
  17525. abstract="false" native="false" synchronized="false"
  17526. static="false" final="false" visibility="public"
  17527. deprecated="not deprecated">
  17528. <doc>
  17529. <![CDATA[The file containing this split's data.]]>
  17530. </doc>
  17531. </method>
  17532. <method name="getStart" return="long"
  17533. abstract="false" native="false" synchronized="false"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <doc>
  17537. <![CDATA[The position of the first byte in the file to process.]]>
  17538. </doc>
  17539. </method>
  17540. <method name="getLength" return="long"
  17541. abstract="false" native="false" synchronized="false"
  17542. static="false" final="false" visibility="public"
  17543. deprecated="not deprecated">
  17544. <doc>
  17545. <![CDATA[The number of bytes in the file to process.]]>
  17546. </doc>
  17547. </method>
  17548. <method name="toString" return="java.lang.String"
  17549. abstract="false" native="false" synchronized="false"
  17550. static="false" final="false" visibility="public"
  17551. deprecated="not deprecated">
  17552. </method>
  17553. <method name="write"
  17554. abstract="false" native="false" synchronized="false"
  17555. static="false" final="false" visibility="public"
  17556. deprecated="not deprecated">
  17557. <param name="out" type="java.io.DataOutput"/>
  17558. <exception name="IOException" type="java.io.IOException"/>
  17559. </method>
  17560. <method name="readFields"
  17561. abstract="false" native="false" synchronized="false"
  17562. static="false" final="false" visibility="public"
  17563. deprecated="not deprecated">
  17564. <param name="in" type="java.io.DataInput"/>
  17565. <exception name="IOException" type="java.io.IOException"/>
  17566. </method>
  17567. <method name="getLocations" return="java.lang.String[]"
  17568. abstract="false" native="false" synchronized="false"
  17569. static="false" final="false" visibility="public"
  17570. deprecated="not deprecated">
  17571. <exception name="IOException" type="java.io.IOException"/>
  17572. </method>
  17573. <doc>
  17574. <![CDATA[A section of an input file. Returned by {@link
  17575. InputFormat#getSplits(JobConf, int)} and passed to
  17576. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  17577. </doc>
  17578. </class>
  17579. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  17580. <!-- start class org.apache.hadoop.mapred.ID -->
  17581. <class name="ID" extends="java.lang.Object"
  17582. abstract="false"
  17583. static="false" final="false" visibility="public"
  17584. deprecated="not deprecated">
  17585. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.mapred.ID&gt;"/>
  17586. <constructor name="ID" type="int"
  17587. static="false" final="false" visibility="public"
  17588. deprecated="not deprecated">
  17589. <doc>
  17590. <![CDATA[constructs an ID object from the given int]]>
  17591. </doc>
  17592. </constructor>
  17593. <constructor name="ID"
  17594. static="false" final="false" visibility="protected"
  17595. deprecated="not deprecated">
  17596. </constructor>
  17597. <method name="getId" return="int"
  17598. abstract="false" native="false" synchronized="false"
  17599. static="false" final="false" visibility="public"
  17600. deprecated="not deprecated">
  17601. <doc>
  17602. <![CDATA[returns the int which represents the identifier]]>
  17603. </doc>
  17604. </method>
  17605. <method name="toString" return="java.lang.String"
  17606. abstract="false" native="false" synchronized="false"
  17607. static="false" final="false" visibility="public"
  17608. deprecated="not deprecated">
  17609. </method>
  17610. <method name="hashCode" return="int"
  17611. abstract="false" native="false" synchronized="false"
  17612. static="false" final="false" visibility="public"
  17613. deprecated="not deprecated">
  17614. </method>
  17615. <method name="equals" return="boolean"
  17616. abstract="false" native="false" synchronized="false"
  17617. static="false" final="false" visibility="public"
  17618. deprecated="not deprecated">
  17619. <param name="o" type="java.lang.Object"/>
  17620. </method>
  17621. <method name="compareTo" return="int"
  17622. abstract="false" native="false" synchronized="false"
  17623. static="false" final="false" visibility="public"
  17624. deprecated="not deprecated">
  17625. <param name="that" type="org.apache.hadoop.mapred.ID"/>
  17626. <doc>
  17627. <![CDATA[Compare IDs by associated numbers]]>
  17628. </doc>
  17629. </method>
  17630. <method name="readFields"
  17631. abstract="false" native="false" synchronized="false"
  17632. static="false" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <param name="in" type="java.io.DataInput"/>
  17635. <exception name="IOException" type="java.io.IOException"/>
  17636. </method>
  17637. <method name="write"
  17638. abstract="false" native="false" synchronized="false"
  17639. static="false" final="false" visibility="public"
  17640. deprecated="not deprecated">
  17641. <param name="out" type="java.io.DataOutput"/>
  17642. <exception name="IOException" type="java.io.IOException"/>
  17643. </method>
  17644. <method name="read" return="org.apache.hadoop.mapred.ID"
  17645. abstract="false" native="false" synchronized="false"
  17646. static="true" final="false" visibility="public"
  17647. deprecated="not deprecated">
  17648. <param name="in" type="java.io.DataInput"/>
  17649. <exception name="IOException" type="java.io.IOException"/>
  17650. </method>
  17651. <method name="forName" return="org.apache.hadoop.mapred.ID"
  17652. abstract="false" native="false" synchronized="false"
  17653. static="true" final="false" visibility="public"
  17654. deprecated="not deprecated">
  17655. <param name="str" type="java.lang.String"/>
  17656. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  17657. <doc>
  17658. <![CDATA[Construct an ID object from given string
  17659. @return constructed Id object or null if the given String is null
  17660. @throws IllegalArgumentException if the given string is malformed]]>
  17661. </doc>
  17662. </method>
  17663. <field name="id" type="int"
  17664. transient="false" volatile="false"
  17665. static="false" final="false" visibility="protected"
  17666. deprecated="not deprecated">
  17667. </field>
  17668. <doc>
  17669. <![CDATA[A general identifier, which internally stores the id
  17670. as an integer. This is the super class of {@link JobID},
  17671. {@link TaskID} and {@link TaskAttemptID}.
  17672. @see JobID
  17673. @see TaskID
  17674. @see TaskAttemptID]]>
  17675. </doc>
  17676. </class>
  17677. <!-- end class org.apache.hadoop.mapred.ID -->
  17678. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  17679. <interface name="InputFormat" abstract="true"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <method name="validateInput"
  17683. abstract="false" native="false" synchronized="false"
  17684. static="false" final="false" visibility="public"
  17685. deprecated="getSplits is called in the client and can perform any
  17686. necessary validation of the input">
  17687. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17688. <exception name="IOException" type="java.io.IOException"/>
  17689. <doc>
  17690. <![CDATA[Check for validity of the input-specification for the job.
  17691. <p>This method is used to validate the input directories when a job is
  17692. submitted so that the {@link JobClient} can fail early, with an useful
  17693. error message, in case of errors. For e.g. input directory does not exist.
  17694. </p>
  17695. @param job job configuration.
  17696. @throws InvalidInputException if the job does not have valid input
  17697. @deprecated getSplits is called in the client and can perform any
  17698. necessary validation of the input]]>
  17699. </doc>
  17700. </method>
  17701. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  17702. abstract="false" native="false" synchronized="false"
  17703. static="false" final="false" visibility="public"
  17704. deprecated="not deprecated">
  17705. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17706. <param name="numSplits" type="int"/>
  17707. <exception name="IOException" type="java.io.IOException"/>
  17708. <doc>
  17709. <![CDATA[Logically split the set of input files for the job.
  17710. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  17711. for processing.</p>
  17712. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  17713. input files are not physically split into chunks. For e.g. a split could
  17714. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  17715. @param job job configuration.
  17716. @param numSplits the desired number of splits, a hint.
  17717. @return an array of {@link InputSplit}s for the job.]]>
  17718. </doc>
  17719. </method>
  17720. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  17721. abstract="false" native="false" synchronized="false"
  17722. static="false" final="false" visibility="public"
  17723. deprecated="not deprecated">
  17724. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  17725. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  17726. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  17727. <exception name="IOException" type="java.io.IOException"/>
  17728. <doc>
  17729. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  17730. <p>It is the responsibility of the <code>RecordReader</code> to respect
  17731. record boundaries while processing the logical split to present a
  17732. record-oriented view to the individual task.</p>
  17733. @param split the {@link InputSplit}
  17734. @param job the job that this split belongs to
  17735. @return a {@link RecordReader}]]>
  17736. </doc>
  17737. </method>
  17738. <doc>
  17739. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  17740. Map-Reduce job.
  17741. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  17742. job to:<p>
  17743. <ol>
  17744. <li>
  17745. Validate the input-specification of the job.
  17746. <li>
  17747. Split-up the input file(s) into logical {@link InputSplit}s, each of
  17748. which is then assigned to an individual {@link Mapper}.
  17749. </li>
  17750. <li>
  17751. Provide the {@link RecordReader} implementation to be used to glean
  17752. input records from the logical <code>InputSplit</code> for processing by
  17753. the {@link Mapper}.
  17754. </li>
  17755. </ol>
  17756. <p>The default behavior of file-based {@link InputFormat}s, typically
  17757. sub-classes of {@link FileInputFormat}, is to split the
  17758. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  17759. bytes, of the input files. However, the {@link FileSystem} blocksize of
  17760. the input files is treated as an upper bound for input splits. A lower bound
  17761. on the split size can be set via
  17762. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  17763. mapred.min.split.size</a>.</p>
  17764. <p>Clearly, logical splits based on input-size is insufficient for many
  17765. applications since record boundaries are to respected. In such cases, the
  17766. application has to also implement a {@link RecordReader} on whom lies the
  17767. responsibilty to respect record-boundaries and present a record-oriented
  17768. view of the logical <code>InputSplit</code> to the individual task.
  17769. @see InputSplit
  17770. @see RecordReader
  17771. @see JobClient
  17772. @see FileInputFormat]]>
  17773. </doc>
  17774. </interface>
  17775. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  17776. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  17777. <interface name="InputSplit" abstract="true"
  17778. static="false" final="false" visibility="public"
  17779. deprecated="not deprecated">
  17780. <implements name="org.apache.hadoop.io.Writable"/>
  17781. <method name="getLength" return="long"
  17782. abstract="false" native="false" synchronized="false"
  17783. static="false" final="false" visibility="public"
  17784. deprecated="not deprecated">
  17785. <exception name="IOException" type="java.io.IOException"/>
  17786. <doc>
  17787. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  17788. @return the number of bytes in the input split.
  17789. @throws IOException]]>
  17790. </doc>
  17791. </method>
  17792. <method name="getLocations" return="java.lang.String[]"
  17793. abstract="false" native="false" synchronized="false"
  17794. static="false" final="false" visibility="public"
  17795. deprecated="not deprecated">
  17796. <exception name="IOException" type="java.io.IOException"/>
  17797. <doc>
  17798. <![CDATA[Get the list of hostnames where the input split is located.
  17799. @return list of hostnames where data of the <code>InputSplit</code> is
  17800. located as an array of <code>String</code>s.
  17801. @throws IOException]]>
  17802. </doc>
  17803. </method>
  17804. <doc>
  17805. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  17806. individual {@link Mapper}.
  17807. <p>Typically, it presents a byte-oriented view on the input and is the
  17808. responsibility of {@link RecordReader} of the job to process this and present
  17809. a record-oriented view.
  17810. @see InputFormat
  17811. @see RecordReader]]>
  17812. </doc>
  17813. </interface>
  17814. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  17815. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  17816. <class name="InvalidFileTypeException" extends="java.io.IOException"
  17817. abstract="false"
  17818. static="false" final="false" visibility="public"
  17819. deprecated="not deprecated">
  17820. <constructor name="InvalidFileTypeException"
  17821. static="false" final="false" visibility="public"
  17822. deprecated="not deprecated">
  17823. </constructor>
  17824. <constructor name="InvalidFileTypeException" type="java.lang.String"
  17825. static="false" final="false" visibility="public"
  17826. deprecated="not deprecated">
  17827. </constructor>
  17828. <doc>
  17829. <![CDATA[Used when file type differs from the desired file type. like
  17830. getting a file when a directory is expected. Or a wrong file type.]]>
  17831. </doc>
  17832. </class>
  17833. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  17834. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  17835. <class name="InvalidInputException" extends="java.io.IOException"
  17836. abstract="false"
  17837. static="false" final="false" visibility="public"
  17838. deprecated="not deprecated">
  17839. <constructor name="InvalidInputException" type="java.util.List&lt;java.io.IOException&gt;"
  17840. static="false" final="false" visibility="public"
  17841. deprecated="not deprecated">
  17842. <doc>
  17843. <![CDATA[Create the exception with the given list.
  17844. @param probs the list of problems to report. this list is not copied.]]>
  17845. </doc>
  17846. </constructor>
  17847. <method name="getProblems" return="java.util.List&lt;java.io.IOException&gt;"
  17848. abstract="false" native="false" synchronized="false"
  17849. static="false" final="false" visibility="public"
  17850. deprecated="not deprecated">
  17851. <doc>
  17852. <![CDATA[Get the complete list of the problems reported.
  17853. @return the list of problems, which must not be modified]]>
  17854. </doc>
  17855. </method>
  17856. <method name="getMessage" return="java.lang.String"
  17857. abstract="false" native="false" synchronized="false"
  17858. static="false" final="false" visibility="public"
  17859. deprecated="not deprecated">
  17860. <doc>
  17861. <![CDATA[Get a summary message of the problems found.
  17862. @return the concatenated messages from all of the problems.]]>
  17863. </doc>
  17864. </method>
  17865. <doc>
  17866. <![CDATA[This class wraps a list of problems with the input, so that the user
  17867. can get a list of problems together instead of finding and fixing them one
  17868. by one.]]>
  17869. </doc>
  17870. </class>
  17871. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  17872. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  17873. <class name="InvalidJobConfException" extends="java.io.IOException"
  17874. abstract="false"
  17875. static="false" final="false" visibility="public"
  17876. deprecated="not deprecated">
  17877. <constructor name="InvalidJobConfException"
  17878. static="false" final="false" visibility="public"
  17879. deprecated="not deprecated">
  17880. </constructor>
  17881. <constructor name="InvalidJobConfException" type="java.lang.String"
  17882. static="false" final="false" visibility="public"
  17883. deprecated="not deprecated">
  17884. </constructor>
  17885. <doc>
  17886. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  17887. or value of some attributes is invalid.]]>
  17888. </doc>
  17889. </class>
  17890. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  17891. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  17892. <class name="IsolationRunner" extends="java.lang.Object"
  17893. abstract="false"
  17894. static="false" final="false" visibility="public"
  17895. deprecated="not deprecated">
  17896. <constructor name="IsolationRunner"
  17897. static="false" final="false" visibility="public"
  17898. deprecated="not deprecated">
  17899. </constructor>
  17900. <method name="main"
  17901. abstract="false" native="false" synchronized="false"
  17902. static="true" final="false" visibility="public"
  17903. deprecated="not deprecated">
  17904. <param name="args" type="java.lang.String[]"/>
  17905. <exception name="IOException" type="java.io.IOException"/>
  17906. <doc>
  17907. <![CDATA[Run a single task
  17908. @param args the first argument is the task directory]]>
  17909. </doc>
  17910. </method>
  17911. </class>
  17912. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  17913. <!-- start class org.apache.hadoop.mapred.JobClient -->
  17914. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  17915. abstract="false"
  17916. static="false" final="false" visibility="public"
  17917. deprecated="not deprecated">
  17918. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  17919. <implements name="org.apache.hadoop.util.Tool"/>
  17920. <constructor name="JobClient"
  17921. static="false" final="false" visibility="public"
  17922. deprecated="not deprecated">
  17923. <doc>
  17924. <![CDATA[Create a job client.]]>
  17925. </doc>
  17926. </constructor>
  17927. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <exception name="IOException" type="java.io.IOException"/>
  17931. <doc>
  17932. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  17933. default {@link JobTracker}.
  17934. @param conf the job configuration.
  17935. @throws IOException]]>
  17936. </doc>
  17937. </constructor>
  17938. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  17939. static="false" final="false" visibility="public"
  17940. deprecated="not deprecated">
  17941. <exception name="IOException" type="java.io.IOException"/>
  17942. <doc>
  17943. <![CDATA[Build a job client, connect to the indicated job tracker.
  17944. @param jobTrackAddr the job tracker to connect to.
  17945. @param conf configuration.]]>
  17946. </doc>
  17947. </constructor>
  17948. <method name="getCommandLineConfig" return="org.apache.hadoop.conf.Configuration"
  17949. abstract="false" native="false" synchronized="true"
  17950. static="true" final="false" visibility="public"
  17951. deprecated="not deprecated">
  17952. <doc>
  17953. <![CDATA[return the command line configuration]]>
  17954. </doc>
  17955. </method>
  17956. <method name="init"
  17957. abstract="false" native="false" synchronized="false"
  17958. static="false" final="false" visibility="public"
  17959. deprecated="not deprecated">
  17960. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  17961. <exception name="IOException" type="java.io.IOException"/>
  17962. <doc>
  17963. <![CDATA[Connect to the default {@link JobTracker}.
  17964. @param conf the job configuration.
  17965. @throws IOException]]>
  17966. </doc>
  17967. </method>
  17968. <method name="close"
  17969. abstract="false" native="false" synchronized="true"
  17970. static="false" final="false" visibility="public"
  17971. deprecated="not deprecated">
  17972. <exception name="IOException" type="java.io.IOException"/>
  17973. <doc>
  17974. <![CDATA[Close the <code>JobClient</code>.]]>
  17975. </doc>
  17976. </method>
  17977. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  17978. abstract="false" native="false" synchronized="true"
  17979. static="false" final="false" visibility="public"
  17980. deprecated="not deprecated">
  17981. <exception name="IOException" type="java.io.IOException"/>
  17982. <doc>
  17983. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  17984. for submission to the MapReduce system.
  17985. @return the filesystem handle.]]>
  17986. </doc>
  17987. </method>
  17988. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  17989. abstract="false" native="false" synchronized="false"
  17990. static="false" final="false" visibility="public"
  17991. deprecated="not deprecated">
  17992. <param name="jobFile" type="java.lang.String"/>
  17993. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  17994. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  17995. <exception name="IOException" type="java.io.IOException"/>
  17996. <doc>
  17997. <![CDATA[Submit a job to the MR system.
  17998. This returns a handle to the {@link RunningJob} which can be used to track
  17999. the running-job.
  18000. @param jobFile the job configuration.
  18001. @return a handle to the {@link RunningJob} which can be used to track the
  18002. running-job.
  18003. @throws FileNotFoundException
  18004. @throws InvalidJobConfException
  18005. @throws IOException]]>
  18006. </doc>
  18007. </method>
  18008. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  18009. abstract="false" native="false" synchronized="false"
  18010. static="false" final="false" visibility="public"
  18011. deprecated="not deprecated">
  18012. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18013. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  18014. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  18015. <exception name="IOException" type="java.io.IOException"/>
  18016. <doc>
  18017. <![CDATA[Submit a job to the MR system.
  18018. This returns a handle to the {@link RunningJob} which can be used to track
  18019. the running-job.
  18020. @param job the job configuration.
  18021. @return a handle to the {@link RunningJob} which can be used to track the
  18022. running-job.
  18023. @throws FileNotFoundException
  18024. @throws InvalidJobConfException
  18025. @throws IOException]]>
  18026. </doc>
  18027. </method>
  18028. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  18029. abstract="false" native="false" synchronized="false"
  18030. static="false" final="false" visibility="public"
  18031. deprecated="not deprecated">
  18032. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  18033. <exception name="IOException" type="java.io.IOException"/>
  18034. <doc>
  18035. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  18036. null if the id does not correspond to any known job.
  18037. @param jobid the jobid of the job.
  18038. @return the {@link RunningJob} handle to track the job, null if the
  18039. <code>jobid</code> doesn't correspond to any known job.
  18040. @throws IOException]]>
  18041. </doc>
  18042. </method>
  18043. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  18044. abstract="false" native="false" synchronized="false"
  18045. static="false" final="false" visibility="public"
  18046. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  18047. <param name="jobid" type="java.lang.String"/>
  18048. <exception name="IOException" type="java.io.IOException"/>
  18049. <doc>
  18050. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  18051. </doc>
  18052. </method>
  18053. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  18054. abstract="false" native="false" synchronized="false"
  18055. static="false" final="false" visibility="public"
  18056. deprecated="not deprecated">
  18057. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  18058. <exception name="IOException" type="java.io.IOException"/>
  18059. <doc>
  18060. <![CDATA[Get the information of the current state of the map tasks of a job.
  18061. @param jobId the job to query.
  18062. @return the list of all of the map tips.
  18063. @throws IOException]]>
  18064. </doc>
  18065. </method>
  18066. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  18067. abstract="false" native="false" synchronized="false"
  18068. static="false" final="false" visibility="public"
  18069. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  18070. <param name="jobId" type="java.lang.String"/>
  18071. <exception name="IOException" type="java.io.IOException"/>
  18072. <doc>
  18073. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  18074. </doc>
  18075. </method>
  18076. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  18077. abstract="false" native="false" synchronized="false"
  18078. static="false" final="false" visibility="public"
  18079. deprecated="not deprecated">
  18080. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  18081. <exception name="IOException" type="java.io.IOException"/>
  18082. <doc>
  18083. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  18084. @param jobId the job to query.
  18085. @return the list of all of the reduce tips.
  18086. @throws IOException]]>
  18087. </doc>
  18088. </method>
  18089. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  18090. abstract="false" native="false" synchronized="false"
  18091. static="false" final="false" visibility="public"
  18092. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  18093. <param name="jobId" type="java.lang.String"/>
  18094. <exception name="IOException" type="java.io.IOException"/>
  18095. <doc>
  18096. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  18097. </doc>
  18098. </method>
  18099. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  18100. abstract="false" native="false" synchronized="false"
  18101. static="false" final="false" visibility="public"
  18102. deprecated="not deprecated">
  18103. <exception name="IOException" type="java.io.IOException"/>
  18104. <doc>
  18105. <![CDATA[Get status information about the Map-Reduce cluster.
  18106. @return the status information about the Map-Reduce cluster as an object
  18107. of {@link ClusterStatus}.
  18108. @throws IOException]]>
  18109. </doc>
  18110. </method>
  18111. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  18112. abstract="false" native="false" synchronized="false"
  18113. static="false" final="false" visibility="public"
  18114. deprecated="not deprecated">
  18115. <exception name="IOException" type="java.io.IOException"/>
  18116. <doc>
  18117. <![CDATA[Get the jobs that are not completed and not failed.
  18118. @return array of {@link JobStatus} for the running/to-be-run jobs.
  18119. @throws IOException]]>
  18120. </doc>
  18121. </method>
  18122. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  18123. abstract="false" native="false" synchronized="false"
  18124. static="false" final="false" visibility="public"
  18125. deprecated="not deprecated">
  18126. <exception name="IOException" type="java.io.IOException"/>
  18127. <doc>
  18128. <![CDATA[Get the jobs that are submitted.
  18129. @return array of {@link JobStatus} for the submitted jobs.
  18130. @throws IOException]]>
  18131. </doc>
  18132. </method>
  18133. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  18134. abstract="false" native="false" synchronized="false"
  18135. static="true" final="false" visibility="public"
  18136. deprecated="not deprecated">
  18137. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18138. <exception name="IOException" type="java.io.IOException"/>
  18139. <doc>
  18140. <![CDATA[Utility that submits a job, then polls for progress until the job is
  18141. complete.
  18142. @param job the job configuration.
  18143. @throws IOException]]>
  18144. </doc>
  18145. </method>
  18146. <method name="setTaskOutputFilter"
  18147. abstract="false" native="false" synchronized="false"
  18148. static="false" final="false" visibility="public"
  18149. deprecated="not deprecated">
  18150. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  18151. <doc>
  18152. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  18153. output matches the filter.
  18154. @param newValue task filter.]]>
  18155. </doc>
  18156. </method>
  18157. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  18158. abstract="false" native="false" synchronized="false"
  18159. static="true" final="false" visibility="public"
  18160. deprecated="not deprecated">
  18161. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18162. <doc>
  18163. <![CDATA[Get the task output filter out of the JobConf.
  18164. @param job the JobConf to examine.
  18165. @return the filter level.]]>
  18166. </doc>
  18167. </method>
  18168. <method name="setTaskOutputFilter"
  18169. abstract="false" native="false" synchronized="false"
  18170. static="true" final="false" visibility="public"
  18171. deprecated="not deprecated">
  18172. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18173. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  18174. <doc>
  18175. <![CDATA[Modify the JobConf to set the task output filter.
  18176. @param job the JobConf to modify.
  18177. @param newValue the value to set.]]>
  18178. </doc>
  18179. </method>
  18180. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  18181. abstract="false" native="false" synchronized="false"
  18182. static="false" final="false" visibility="public"
  18183. deprecated="not deprecated">
  18184. <doc>
  18185. <![CDATA[Returns task output filter.
  18186. @return task filter.]]>
  18187. </doc>
  18188. </method>
  18189. <method name="run" return="int"
  18190. abstract="false" native="false" synchronized="false"
  18191. static="false" final="false" visibility="public"
  18192. deprecated="not deprecated">
  18193. <param name="argv" type="java.lang.String[]"/>
  18194. <exception name="Exception" type="java.lang.Exception"/>
  18195. </method>
  18196. <method name="getDefaultMaps" return="int"
  18197. abstract="false" native="false" synchronized="false"
  18198. static="false" final="false" visibility="public"
  18199. deprecated="not deprecated">
  18200. <exception name="IOException" type="java.io.IOException"/>
  18201. <doc>
  18202. <![CDATA[Get status information about the max available Maps in the cluster.
  18203. @return the max available Maps in the cluster
  18204. @throws IOException]]>
  18205. </doc>
  18206. </method>
  18207. <method name="getDefaultReduces" return="int"
  18208. abstract="false" native="false" synchronized="false"
  18209. static="false" final="false" visibility="public"
  18210. deprecated="not deprecated">
  18211. <exception name="IOException" type="java.io.IOException"/>
  18212. <doc>
  18213. <![CDATA[Get status information about the max available Reduces in the cluster.
  18214. @return the max available Reduces in the cluster
  18215. @throws IOException]]>
  18216. </doc>
  18217. </method>
  18218. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  18219. abstract="false" native="false" synchronized="false"
  18220. static="false" final="false" visibility="public"
  18221. deprecated="not deprecated">
  18222. <doc>
  18223. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  18224. @return the system directory where job-specific files are to be placed.]]>
  18225. </doc>
  18226. </method>
  18227. <method name="main"
  18228. abstract="false" native="false" synchronized="false"
  18229. static="true" final="false" visibility="public"
  18230. deprecated="not deprecated">
  18231. <param name="argv" type="java.lang.String[]"/>
  18232. <exception name="Exception" type="java.lang.Exception"/>
  18233. </method>
  18234. <doc>
  18235. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  18236. with the {@link JobTracker}.
  18237. <code>JobClient</code> provides facilities to submit jobs, track their
  18238. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  18239. status information etc.
  18240. <p>The job submission process involves:
  18241. <ol>
  18242. <li>
  18243. Checking the input and output specifications of the job.
  18244. </li>
  18245. <li>
  18246. Computing the {@link InputSplit}s for the job.
  18247. </li>
  18248. <li>
  18249. Setup the requisite accounting information for the {@link DistributedCache}
  18250. of the job, if necessary.
  18251. </li>
  18252. <li>
  18253. Copying the job's jar and configuration to the map-reduce system directory
  18254. on the distributed file-system.
  18255. </li>
  18256. <li>
  18257. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  18258. it's status.
  18259. </li>
  18260. </ol></p>
  18261. Normally the user creates the application, describes various facets of the
  18262. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  18263. the job and monitor its progress.
  18264. <p>Here is an example on how to use <code>JobClient</code>:</p>
  18265. <p><blockquote><pre>
  18266. // Create a new JobConf
  18267. JobConf job = new JobConf(new Configuration(), MyJob.class);
  18268. // Specify various job-specific parameters
  18269. job.setJobName("myjob");
  18270. job.setInputPath(new Path("in"));
  18271. job.setOutputPath(new Path("out"));
  18272. job.setMapperClass(MyJob.MyMapper.class);
  18273. job.setReducerClass(MyJob.MyReducer.class);
  18274. // Submit the job, then poll for progress until the job is complete
  18275. JobClient.runJob(job);
  18276. </pre></blockquote></p>
  18277. <h4 id="JobControl">Job Control</h4>
  18278. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  18279. which cannot be done via a single map-reduce job. This is fairly easy since
  18280. the output of the job, typically, goes to distributed file-system and that
  18281. can be used as the input for the next job.</p>
  18282. <p>However, this also means that the onus on ensuring jobs are complete
  18283. (success/failure) lies squarely on the clients. In such situations the
  18284. various job-control options are:
  18285. <ol>
  18286. <li>
  18287. {@link #runJob(JobConf)} : submits the job and returns only after
  18288. the job has completed.
  18289. </li>
  18290. <li>
  18291. {@link #submitJob(JobConf)} : only submits the job, then poll the
  18292. returned handle to the {@link RunningJob} to query status and make
  18293. scheduling decisions.
  18294. </li>
  18295. <li>
  18296. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  18297. on job-completion, thus avoiding polling.
  18298. </li>
  18299. </ol></p>
  18300. @see JobConf
  18301. @see ClusterStatus
  18302. @see Tool
  18303. @see DistributedCache]]>
  18304. </doc>
  18305. </class>
  18306. <!-- end class org.apache.hadoop.mapred.JobClient -->
  18307. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  18308. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobClient.TaskStatusFilter&gt;"
  18309. abstract="false"
  18310. static="true" final="true" visibility="public"
  18311. deprecated="not deprecated">
  18312. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  18313. abstract="false" native="false" synchronized="false"
  18314. static="true" final="true" visibility="public"
  18315. deprecated="not deprecated">
  18316. </method>
  18317. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  18318. abstract="false" native="false" synchronized="false"
  18319. static="true" final="false" visibility="public"
  18320. deprecated="not deprecated">
  18321. <param name="name" type="java.lang.String"/>
  18322. </method>
  18323. </class>
  18324. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  18325. <!-- start class org.apache.hadoop.mapred.JobConf -->
  18326. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  18327. abstract="false"
  18328. static="false" final="false" visibility="public"
  18329. deprecated="not deprecated">
  18330. <constructor name="JobConf"
  18331. static="false" final="false" visibility="public"
  18332. deprecated="not deprecated">
  18333. <doc>
  18334. <![CDATA[Construct a map/reduce job configuration.]]>
  18335. </doc>
  18336. </constructor>
  18337. <constructor name="JobConf" type="java.lang.Class"
  18338. static="false" final="false" visibility="public"
  18339. deprecated="not deprecated">
  18340. <doc>
  18341. <![CDATA[Construct a map/reduce job configuration.
  18342. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  18343. </doc>
  18344. </constructor>
  18345. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  18346. static="false" final="false" visibility="public"
  18347. deprecated="not deprecated">
  18348. <doc>
  18349. <![CDATA[Construct a map/reduce job configuration.
  18350. @param conf a Configuration whose settings will be inherited.]]>
  18351. </doc>
  18352. </constructor>
  18353. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  18354. static="false" final="false" visibility="public"
  18355. deprecated="not deprecated">
  18356. <doc>
  18357. <![CDATA[Construct a map/reduce job configuration.
  18358. @param conf a Configuration whose settings will be inherited.
  18359. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  18360. </doc>
  18361. </constructor>
  18362. <constructor name="JobConf" type="java.lang.String"
  18363. static="false" final="false" visibility="public"
  18364. deprecated="not deprecated">
  18365. <doc>
  18366. <![CDATA[Construct a map/reduce configuration.
  18367. @param config a Configuration-format XML job description file.]]>
  18368. </doc>
  18369. </constructor>
  18370. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  18371. static="false" final="false" visibility="public"
  18372. deprecated="not deprecated">
  18373. <doc>
  18374. <![CDATA[Construct a map/reduce configuration.
  18375. @param config a Configuration-format XML job description file.]]>
  18376. </doc>
  18377. </constructor>
  18378. <method name="getJar" return="java.lang.String"
  18379. abstract="false" native="false" synchronized="false"
  18380. static="false" final="false" visibility="public"
  18381. deprecated="not deprecated">
  18382. <doc>
  18383. <![CDATA[Get the user jar for the map-reduce job.
  18384. @return the user jar for the map-reduce job.]]>
  18385. </doc>
  18386. </method>
  18387. <method name="setJar"
  18388. abstract="false" native="false" synchronized="false"
  18389. static="false" final="false" visibility="public"
  18390. deprecated="not deprecated">
  18391. <param name="jar" type="java.lang.String"/>
  18392. <doc>
  18393. <![CDATA[Set the user jar for the map-reduce job.
  18394. @param jar the user jar for the map-reduce job.]]>
  18395. </doc>
  18396. </method>
  18397. <method name="setJarByClass"
  18398. abstract="false" native="false" synchronized="false"
  18399. static="false" final="false" visibility="public"
  18400. deprecated="not deprecated">
  18401. <param name="cls" type="java.lang.Class"/>
  18402. <doc>
  18403. <![CDATA[Set the job's jar file by finding an example class location.
  18404. @param cls the example class.]]>
  18405. </doc>
  18406. </method>
  18407. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  18408. abstract="false" native="false" synchronized="false"
  18409. static="false" final="false" visibility="public"
  18410. deprecated="Use {@link JobClient#getSystemDir()} instead.
  18411. Get the system directory where job-specific files are to be placed.">
  18412. <doc>
  18413. <![CDATA[@deprecated Use {@link JobClient#getSystemDir()} instead.
  18414. Get the system directory where job-specific files are to be placed.
  18415. @return the system directory where job-specific files are to be placed.]]>
  18416. </doc>
  18417. </method>
  18418. <method name="getLocalDirs" return="java.lang.String[]"
  18419. abstract="false" native="false" synchronized="false"
  18420. static="false" final="false" visibility="public"
  18421. deprecated="not deprecated">
  18422. <exception name="IOException" type="java.io.IOException"/>
  18423. </method>
  18424. <method name="deleteLocalFiles"
  18425. abstract="false" native="false" synchronized="false"
  18426. static="false" final="false" visibility="public"
  18427. deprecated="not deprecated">
  18428. <exception name="IOException" type="java.io.IOException"/>
  18429. </method>
  18430. <method name="deleteLocalFiles"
  18431. abstract="false" native="false" synchronized="false"
  18432. static="false" final="false" visibility="public"
  18433. deprecated="not deprecated">
  18434. <param name="subdir" type="java.lang.String"/>
  18435. <exception name="IOException" type="java.io.IOException"/>
  18436. </method>
  18437. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  18438. abstract="false" native="false" synchronized="false"
  18439. static="false" final="false" visibility="public"
  18440. deprecated="not deprecated">
  18441. <param name="pathString" type="java.lang.String"/>
  18442. <exception name="IOException" type="java.io.IOException"/>
  18443. <doc>
  18444. <![CDATA[Constructs a local file name. Files are distributed among configured
  18445. local directories.]]>
  18446. </doc>
  18447. </method>
  18448. <method name="setInputPath"
  18449. abstract="false" native="false" synchronized="false"
  18450. static="false" final="false" visibility="public"
  18451. deprecated="Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  18452. {@link FileInputFormat#setInputPaths(JobConf, String)}">
  18453. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18454. <doc>
  18455. <![CDATA[Set the {@link Path} of the input directory for the map-reduce job.
  18456. @param dir the {@link Path} of the input directory for the map-reduce job.
  18457. @deprecated Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  18458. {@link FileInputFormat#setInputPaths(JobConf, String)}]]>
  18459. </doc>
  18460. </method>
  18461. <method name="addInputPath"
  18462. abstract="false" native="false" synchronized="false"
  18463. static="false" final="false" visibility="public"
  18464. deprecated="Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  18465. {@link FileInputFormat#addInputPaths(JobConf, String)}">
  18466. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18467. <doc>
  18468. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  18469. @param dir {@link Path} to be added to the list of inputs for
  18470. the map-reduce job.
  18471. @deprecated Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  18472. {@link FileInputFormat#addInputPaths(JobConf, String)}]]>
  18473. </doc>
  18474. </method>
  18475. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  18476. abstract="false" native="false" synchronized="false"
  18477. static="false" final="false" visibility="public"
  18478. deprecated="Use {@link FileInputFormat#getInputPaths(JobConf)}">
  18479. <doc>
  18480. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  18481. @return the list of input {@link Path}s for the map-reduce job.
  18482. @deprecated Use {@link FileInputFormat#getInputPaths(JobConf)}]]>
  18483. </doc>
  18484. </method>
  18485. <method name="getUser" return="java.lang.String"
  18486. abstract="false" native="false" synchronized="false"
  18487. static="false" final="false" visibility="public"
  18488. deprecated="not deprecated">
  18489. <doc>
  18490. <![CDATA[Get the reported username for this job.
  18491. @return the username]]>
  18492. </doc>
  18493. </method>
  18494. <method name="setUser"
  18495. abstract="false" native="false" synchronized="false"
  18496. static="false" final="false" visibility="public"
  18497. deprecated="not deprecated">
  18498. <param name="user" type="java.lang.String"/>
  18499. <doc>
  18500. <![CDATA[Set the reported username for this job.
  18501. @param user the username for this job.]]>
  18502. </doc>
  18503. </method>
  18504. <method name="setKeepFailedTaskFiles"
  18505. abstract="false" native="false" synchronized="false"
  18506. static="false" final="false" visibility="public"
  18507. deprecated="not deprecated">
  18508. <param name="keep" type="boolean"/>
  18509. <doc>
  18510. <![CDATA[Set whether the framework should keep the intermediate files for
  18511. failed tasks.
  18512. @param keep <code>true</code> if framework should keep the intermediate files
  18513. for failed tasks, <code>false</code> otherwise.]]>
  18514. </doc>
  18515. </method>
  18516. <method name="getKeepFailedTaskFiles" return="boolean"
  18517. abstract="false" native="false" synchronized="false"
  18518. static="false" final="false" visibility="public"
  18519. deprecated="not deprecated">
  18520. <doc>
  18521. <![CDATA[Should the temporary files for failed tasks be kept?
  18522. @return should the files be kept?]]>
  18523. </doc>
  18524. </method>
  18525. <method name="setKeepTaskFilesPattern"
  18526. abstract="false" native="false" synchronized="false"
  18527. static="false" final="false" visibility="public"
  18528. deprecated="not deprecated">
  18529. <param name="pattern" type="java.lang.String"/>
  18530. <doc>
  18531. <![CDATA[Set a regular expression for task names that should be kept.
  18532. The regular expression ".*_m_000123_0" would keep the files
  18533. for the first instance of map 123 that ran.
  18534. @param pattern the java.util.regex.Pattern to match against the
  18535. task names.]]>
  18536. </doc>
  18537. </method>
  18538. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  18539. abstract="false" native="false" synchronized="false"
  18540. static="false" final="false" visibility="public"
  18541. deprecated="not deprecated">
  18542. <doc>
  18543. <![CDATA[Get the regular expression that is matched against the task names
  18544. to see if we need to keep the files.
  18545. @return the pattern as a string, if it was set, othewise null.]]>
  18546. </doc>
  18547. </method>
  18548. <method name="setWorkingDirectory"
  18549. abstract="false" native="false" synchronized="false"
  18550. static="false" final="false" visibility="public"
  18551. deprecated="not deprecated">
  18552. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18553. <doc>
  18554. <![CDATA[Set the current working directory for the default file system.
  18555. @param dir the new current working directory.]]>
  18556. </doc>
  18557. </method>
  18558. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  18559. abstract="false" native="false" synchronized="false"
  18560. static="false" final="false" visibility="public"
  18561. deprecated="not deprecated">
  18562. <doc>
  18563. <![CDATA[Get the current working directory for the default file system.
  18564. @return the directory name.]]>
  18565. </doc>
  18566. </method>
  18567. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  18568. abstract="false" native="false" synchronized="false"
  18569. static="false" final="false" visibility="public"
  18570. deprecated="Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  18571. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  18572. Get the {@link Path} to the output directory for the map-reduce job.">
  18573. <doc>
  18574. <![CDATA[@deprecated Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  18575. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  18576. Get the {@link Path} to the output directory for the map-reduce job.
  18577. @return the {@link Path} to the output directory for the map-reduce job.]]>
  18578. </doc>
  18579. </method>
  18580. <method name="setOutputPath"
  18581. abstract="false" native="false" synchronized="false"
  18582. static="false" final="false" visibility="public"
  18583. deprecated="Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  18584. Set the {@link Path} of the output directory for the map-reduce job.
  18585. lEsS_tHaNp>lEsS_tHaNi>NotelEsS_tHaN/i>:
  18586. lEsS_tHaN/p>">
  18587. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  18588. <doc>
  18589. <![CDATA[@deprecated Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  18590. Set the {@link Path} of the output directory for the map-reduce job.
  18591. <p><i>Note</i>:
  18592. </p>
  18593. @param dir the {@link Path} of the output directory for the map-reduce job.]]>
  18594. </doc>
  18595. </method>
  18596. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  18597. abstract="false" native="false" synchronized="false"
  18598. static="false" final="false" visibility="public"
  18599. deprecated="not deprecated">
  18600. <doc>
  18601. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  18602. defaults to {@link TextInputFormat} if not specified explicity.
  18603. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  18604. </doc>
  18605. </method>
  18606. <method name="setInputFormat"
  18607. abstract="false" native="false" synchronized="false"
  18608. static="false" final="false" visibility="public"
  18609. deprecated="not deprecated">
  18610. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  18611. <doc>
  18612. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  18613. @param theClass the {@link InputFormat} implementation for the map-reduce
  18614. job.]]>
  18615. </doc>
  18616. </method>
  18617. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  18618. abstract="false" native="false" synchronized="false"
  18619. static="false" final="false" visibility="public"
  18620. deprecated="not deprecated">
  18621. <doc>
  18622. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  18623. defaults to {@link TextOutputFormat} if not specified explicity.
  18624. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  18625. </doc>
  18626. </method>
  18627. <method name="setOutputFormat"
  18628. abstract="false" native="false" synchronized="false"
  18629. static="false" final="false" visibility="public"
  18630. deprecated="not deprecated">
  18631. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  18632. <doc>
  18633. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  18634. @param theClass the {@link OutputFormat} implementation for the map-reduce
  18635. job.]]>
  18636. </doc>
  18637. </method>
  18638. <method name="setCompressMapOutput"
  18639. abstract="false" native="false" synchronized="false"
  18640. static="false" final="false" visibility="public"
  18641. deprecated="not deprecated">
  18642. <param name="compress" type="boolean"/>
  18643. <doc>
  18644. <![CDATA[Should the map outputs be compressed before transfer?
  18645. Uses the SequenceFile compression.
  18646. @param compress should the map outputs be compressed?]]>
  18647. </doc>
  18648. </method>
  18649. <method name="getCompressMapOutput" return="boolean"
  18650. abstract="false" native="false" synchronized="false"
  18651. static="false" final="false" visibility="public"
  18652. deprecated="not deprecated">
  18653. <doc>
  18654. <![CDATA[Are the outputs of the maps be compressed?
  18655. @return <code>true</code> if the outputs of the maps are to be compressed,
  18656. <code>false</code> otherwise.]]>
  18657. </doc>
  18658. </method>
  18659. <method name="setMapOutputCompressionType"
  18660. abstract="false" native="false" synchronized="false"
  18661. static="false" final="false" visibility="public"
  18662. deprecated="{@link CompressionType} is no longer valid for intermediate
  18663. map-outputs.">
  18664. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  18665. <doc>
  18666. <![CDATA[Set the {@link CompressionType} for the map outputs.
  18667. @param style the {@link CompressionType} to control how the map outputs
  18668. are compressed.
  18669. @deprecated {@link CompressionType} is no longer valid for intermediate
  18670. map-outputs.]]>
  18671. </doc>
  18672. </method>
  18673. <method name="getMapOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  18674. abstract="false" native="false" synchronized="false"
  18675. static="false" final="false" visibility="public"
  18676. deprecated="{@link CompressionType} is no longer valid for intermediate
  18677. map-outputs.">
  18678. <doc>
  18679. <![CDATA[Get the {@link CompressionType} for the map outputs.
  18680. @return the {@link CompressionType} for map outputs, defaulting to
  18681. {@link CompressionType#RECORD}.
  18682. @deprecated {@link CompressionType} is no longer valid for intermediate
  18683. map-outputs.]]>
  18684. </doc>
  18685. </method>
  18686. <method name="setMapOutputCompressorClass"
  18687. abstract="false" native="false" synchronized="false"
  18688. static="false" final="false" visibility="public"
  18689. deprecated="not deprecated">
  18690. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  18691. <doc>
  18692. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  18693. @param codecClass the {@link CompressionCodec} class that will compress
  18694. the map outputs.]]>
  18695. </doc>
  18696. </method>
  18697. <method name="getMapOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  18698. abstract="false" native="false" synchronized="false"
  18699. static="false" final="false" visibility="public"
  18700. deprecated="not deprecated">
  18701. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  18702. <doc>
  18703. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  18704. @param defaultValue the {@link CompressionCodec} to return if not set
  18705. @return the {@link CompressionCodec} class that should be used to compress the
  18706. map outputs.
  18707. @throws IllegalArgumentException if the class was specified, but not found]]>
  18708. </doc>
  18709. </method>
  18710. <method name="getMapOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  18711. abstract="false" native="false" synchronized="false"
  18712. static="false" final="false" visibility="public"
  18713. deprecated="not deprecated">
  18714. <doc>
  18715. <![CDATA[Get the key class for the map output data. If it is not set, use the
  18716. (final) output key class. This allows the map output key class to be
  18717. different than the final output key class.
  18718. @return the map output key class.]]>
  18719. </doc>
  18720. </method>
  18721. <method name="setMapOutputKeyClass"
  18722. abstract="false" native="false" synchronized="false"
  18723. static="false" final="false" visibility="public"
  18724. deprecated="not deprecated">
  18725. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  18726. <doc>
  18727. <![CDATA[Set the key class for the map output data. This allows the user to
  18728. specify the map output key class to be different than the final output
  18729. value class.
  18730. @param theClass the map output key class.]]>
  18731. </doc>
  18732. </method>
  18733. <method name="getMapOutputValueClass" return="java.lang.Class&lt;?&gt;"
  18734. abstract="false" native="false" synchronized="false"
  18735. static="false" final="false" visibility="public"
  18736. deprecated="not deprecated">
  18737. <doc>
  18738. <![CDATA[Get the value class for the map output data. If it is not set, use the
  18739. (final) output value class This allows the map output value class to be
  18740. different than the final output value class.
  18741. @return the map output value class.]]>
  18742. </doc>
  18743. </method>
  18744. <method name="setMapOutputValueClass"
  18745. abstract="false" native="false" synchronized="false"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  18749. <doc>
  18750. <![CDATA[Set the value class for the map output data. This allows the user to
  18751. specify the map output value class to be different than the final output
  18752. value class.
  18753. @param theClass the map output value class.]]>
  18754. </doc>
  18755. </method>
  18756. <method name="getOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  18757. abstract="false" native="false" synchronized="false"
  18758. static="false" final="false" visibility="public"
  18759. deprecated="not deprecated">
  18760. <doc>
  18761. <![CDATA[Get the key class for the job output data.
  18762. @return the key class for the job output data.]]>
  18763. </doc>
  18764. </method>
  18765. <method name="setOutputKeyClass"
  18766. abstract="false" native="false" synchronized="false"
  18767. static="false" final="false" visibility="public"
  18768. deprecated="not deprecated">
  18769. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  18770. <doc>
  18771. <![CDATA[Set the key class for the job output data.
  18772. @param theClass the key class for the job output data.]]>
  18773. </doc>
  18774. </method>
  18775. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  18776. abstract="false" native="false" synchronized="false"
  18777. static="false" final="false" visibility="public"
  18778. deprecated="not deprecated">
  18779. <doc>
  18780. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  18781. @return the {@link RawComparator} comparator used to compare keys.]]>
  18782. </doc>
  18783. </method>
  18784. <method name="setOutputKeyComparatorClass"
  18785. abstract="false" native="false" synchronized="false"
  18786. static="false" final="false" visibility="public"
  18787. deprecated="not deprecated">
  18788. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  18789. <doc>
  18790. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  18791. @param theClass the {@link RawComparator} comparator used to
  18792. compare keys.
  18793. @see #setOutputValueGroupingComparator(Class)]]>
  18794. </doc>
  18795. </method>
  18796. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  18797. abstract="false" native="false" synchronized="false"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <doc>
  18801. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  18802. grouping keys of inputs to the reduce.
  18803. @return comparator set by the user for grouping values.
  18804. @see #setOutputValueGroupingComparator(Class) for details.]]>
  18805. </doc>
  18806. </method>
  18807. <method name="setOutputValueGroupingComparator"
  18808. abstract="false" native="false" synchronized="false"
  18809. static="false" final="false" visibility="public"
  18810. deprecated="not deprecated">
  18811. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  18812. <doc>
  18813. <![CDATA[Set the user defined {@link RawComparator} comparator for
  18814. grouping keys in the input to the reduce.
  18815. <p>This comparator should be provided if the equivalence rules for keys
  18816. for sorting the intermediates are different from those for grouping keys
  18817. before each call to
  18818. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  18819. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  18820. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  18821. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  18822. how keys are sorted, this can be used in conjunction to simulate
  18823. <i>secondary sort on values</i>.</p>
  18824. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  18825. <i>stable</i> in any sense. (In any case, with the order of available
  18826. map-outputs to the reduce being non-deterministic, it wouldn't make
  18827. that much sense.)</p>
  18828. @param theClass the comparator class to be used for grouping keys.
  18829. It should implement <code>RawComparator</code>.
  18830. @see #setOutputKeyComparatorClass(Class)]]>
  18831. </doc>
  18832. </method>
  18833. <method name="getOutputValueClass" return="java.lang.Class&lt;?&gt;"
  18834. abstract="false" native="false" synchronized="false"
  18835. static="false" final="false" visibility="public"
  18836. deprecated="not deprecated">
  18837. <doc>
  18838. <![CDATA[Get the value class for job outputs.
  18839. @return the value class for job outputs.]]>
  18840. </doc>
  18841. </method>
  18842. <method name="setOutputValueClass"
  18843. abstract="false" native="false" synchronized="false"
  18844. static="false" final="false" visibility="public"
  18845. deprecated="not deprecated">
  18846. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  18847. <doc>
  18848. <![CDATA[Set the value class for job outputs.
  18849. @param theClass the value class for job outputs.]]>
  18850. </doc>
  18851. </method>
  18852. <method name="getMapperClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"
  18853. abstract="false" native="false" synchronized="false"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <doc>
  18857. <![CDATA[Get the {@link Mapper} class for the job.
  18858. @return the {@link Mapper} class for the job.]]>
  18859. </doc>
  18860. </method>
  18861. <method name="setMapperClass"
  18862. abstract="false" native="false" synchronized="false"
  18863. static="false" final="false" visibility="public"
  18864. deprecated="not deprecated">
  18865. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"/>
  18866. <doc>
  18867. <![CDATA[Set the {@link Mapper} class for the job.
  18868. @param theClass the {@link Mapper} class for the job.]]>
  18869. </doc>
  18870. </method>
  18871. <method name="getMapRunnerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"
  18872. abstract="false" native="false" synchronized="false"
  18873. static="false" final="false" visibility="public"
  18874. deprecated="not deprecated">
  18875. <doc>
  18876. <![CDATA[Get the {@link MapRunnable} class for the job.
  18877. @return the {@link MapRunnable} class for the job.]]>
  18878. </doc>
  18879. </method>
  18880. <method name="setMapRunnerClass"
  18881. abstract="false" native="false" synchronized="false"
  18882. static="false" final="false" visibility="public"
  18883. deprecated="not deprecated">
  18884. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"/>
  18885. <doc>
  18886. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  18887. Typically used to exert greater control on {@link Mapper}s.
  18888. @param theClass the {@link MapRunnable} class for the job.]]>
  18889. </doc>
  18890. </method>
  18891. <method name="getPartitionerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"
  18892. abstract="false" native="false" synchronized="false"
  18893. static="false" final="false" visibility="public"
  18894. deprecated="not deprecated">
  18895. <doc>
  18896. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  18897. to be sent to the {@link Reducer}s.
  18898. @return the {@link Partitioner} used to partition map-outputs.]]>
  18899. </doc>
  18900. </method>
  18901. <method name="setPartitionerClass"
  18902. abstract="false" native="false" synchronized="false"
  18903. static="false" final="false" visibility="public"
  18904. deprecated="not deprecated">
  18905. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"/>
  18906. <doc>
  18907. <![CDATA[Set the {@link Partitioner} class used to partition
  18908. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  18909. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  18910. </doc>
  18911. </method>
  18912. <method name="getReducerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  18913. abstract="false" native="false" synchronized="false"
  18914. static="false" final="false" visibility="public"
  18915. deprecated="not deprecated">
  18916. <doc>
  18917. <![CDATA[Get the {@link Reducer} class for the job.
  18918. @return the {@link Reducer} class for the job.]]>
  18919. </doc>
  18920. </method>
  18921. <method name="setReducerClass"
  18922. abstract="false" native="false" synchronized="false"
  18923. static="false" final="false" visibility="public"
  18924. deprecated="not deprecated">
  18925. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  18926. <doc>
  18927. <![CDATA[Set the {@link Reducer} class for the job.
  18928. @param theClass the {@link Reducer} class for the job.]]>
  18929. </doc>
  18930. </method>
  18931. <method name="getCombinerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  18932. abstract="false" native="false" synchronized="false"
  18933. static="false" final="false" visibility="public"
  18934. deprecated="not deprecated">
  18935. <doc>
  18936. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  18937. before being sent to the reducers. Typically the combiner is same as the
  18938. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  18939. @return the user-defined combiner class used to combine map-outputs.]]>
  18940. </doc>
  18941. </method>
  18942. <method name="setCombinerClass"
  18943. abstract="false" native="false" synchronized="false"
  18944. static="false" final="false" visibility="public"
  18945. deprecated="not deprecated">
  18946. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  18947. <doc>
  18948. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  18949. before being sent to the reducers.
  18950. <p>The combiner is a task-level aggregation operation which, in some cases,
  18951. helps to cut down the amount of data transferred from the {@link Mapper} to
  18952. the {@link Reducer}, leading to better performance.</p>
  18953. <p>Typically the combiner is same as the <code>Reducer</code> for the
  18954. job i.e. {@link #setReducerClass(Class)}.</p>
  18955. @param theClass the user-defined combiner class used to combine
  18956. map-outputs.]]>
  18957. </doc>
  18958. </method>
  18959. <method name="setCombineOnceOnly"
  18960. abstract="false" native="false" synchronized="false"
  18961. static="false" final="false" visibility="public"
  18962. deprecated="not deprecated">
  18963. <param name="value" type="boolean"/>
  18964. <doc>
  18965. <![CDATA[If true, ensures the combiner is run once and only once on output from
  18966. the map. Otherwise, combiner may be run zero or more times.]]>
  18967. </doc>
  18968. </method>
  18969. <method name="getCombineOnceOnly" return="boolean"
  18970. abstract="false" native="false" synchronized="false"
  18971. static="false" final="false" visibility="public"
  18972. deprecated="not deprecated">
  18973. </method>
  18974. <method name="getSpeculativeExecution" return="boolean"
  18975. abstract="false" native="false" synchronized="false"
  18976. static="false" final="false" visibility="public"
  18977. deprecated="not deprecated">
  18978. <doc>
  18979. <![CDATA[Should speculative execution be used for this job?
  18980. Defaults to <code>true</code>.
  18981. @return <code>true</code> if speculative execution be used for this job,
  18982. <code>false</code> otherwise.]]>
  18983. </doc>
  18984. </method>
  18985. <method name="setSpeculativeExecution"
  18986. abstract="false" native="false" synchronized="false"
  18987. static="false" final="false" visibility="public"
  18988. deprecated="not deprecated">
  18989. <param name="speculativeExecution" type="boolean"/>
  18990. <doc>
  18991. <![CDATA[Turn speculative execution on or off for this job.
  18992. @param speculativeExecution <code>true</code> if speculative execution
  18993. should be turned on, else <code>false</code>.]]>
  18994. </doc>
  18995. </method>
  18996. <method name="getMapSpeculativeExecution" return="boolean"
  18997. abstract="false" native="false" synchronized="false"
  18998. static="false" final="false" visibility="public"
  18999. deprecated="not deprecated">
  19000. <doc>
  19001. <![CDATA[Should speculative execution be used for this job for map tasks?
  19002. Defaults to <code>true</code>.
  19003. @return <code>true</code> if speculative execution be
  19004. used for this job for map tasks,
  19005. <code>false</code> otherwise.]]>
  19006. </doc>
  19007. </method>
  19008. <method name="setMapSpeculativeExecution"
  19009. abstract="false" native="false" synchronized="false"
  19010. static="false" final="false" visibility="public"
  19011. deprecated="not deprecated">
  19012. <param name="speculativeExecution" type="boolean"/>
  19013. <doc>
  19014. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  19015. @param speculativeExecution <code>true</code> if speculative execution
  19016. should be turned on for map tasks,
  19017. else <code>false</code>.]]>
  19018. </doc>
  19019. </method>
  19020. <method name="getReduceSpeculativeExecution" return="boolean"
  19021. abstract="false" native="false" synchronized="false"
  19022. static="false" final="false" visibility="public"
  19023. deprecated="not deprecated">
  19024. <doc>
  19025. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  19026. Defaults to <code>true</code>.
  19027. @return <code>true</code> if speculative execution be used
  19028. for reduce tasks for this job,
  19029. <code>false</code> otherwise.]]>
  19030. </doc>
  19031. </method>
  19032. <method name="setReduceSpeculativeExecution"
  19033. abstract="false" native="false" synchronized="false"
  19034. static="false" final="false" visibility="public"
  19035. deprecated="not deprecated">
  19036. <param name="speculativeExecution" type="boolean"/>
  19037. <doc>
  19038. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  19039. @param speculativeExecution <code>true</code> if speculative execution
  19040. should be turned on for reduce tasks,
  19041. else <code>false</code>.]]>
  19042. </doc>
  19043. </method>
  19044. <method name="getNumMapTasks" return="int"
  19045. abstract="false" native="false" synchronized="false"
  19046. static="false" final="false" visibility="public"
  19047. deprecated="not deprecated">
  19048. <doc>
  19049. <![CDATA[Get configured the number of reduce tasks for this job.
  19050. Defaults to <code>1</code>.
  19051. @return the number of reduce tasks for this job.]]>
  19052. </doc>
  19053. </method>
  19054. <method name="setNumMapTasks"
  19055. abstract="false" native="false" synchronized="false"
  19056. static="false" final="false" visibility="public"
  19057. deprecated="not deprecated">
  19058. <param name="n" type="int"/>
  19059. <doc>
  19060. <![CDATA[Set the number of map tasks for this job.
  19061. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  19062. number of spawned map tasks depends on the number of {@link InputSplit}s
  19063. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  19064. A custom {@link InputFormat} is typically used to accurately control
  19065. the number of map tasks for the job.</p>
  19066. <h4 id="NoOfMaps">How many maps?</h4>
  19067. <p>The number of maps is usually driven by the total size of the inputs
  19068. i.e. total number of blocks of the input files.</p>
  19069. <p>The right level of parallelism for maps seems to be around 10-100 maps
  19070. per-node, although it has been set up to 300 or so for very cpu-light map
  19071. tasks. Task setup takes awhile, so it is best if the maps take at least a
  19072. minute to execute.</p>
  19073. <p>The default behavior of file-based {@link InputFormat}s is to split the
  19074. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  19075. bytes, of input files. However, the {@link FileSystem} blocksize of the
  19076. input files is treated as an upper bound for input splits. A lower bound
  19077. on the split size can be set via
  19078. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  19079. mapred.min.split.size</a>.</p>
  19080. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  19081. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  19082. used to set it even higher.</p>
  19083. @param n the number of map tasks for this job.
  19084. @see InputFormat#getSplits(JobConf, int)
  19085. @see FileInputFormat
  19086. @see FileSystem#getDefaultBlockSize()
  19087. @see FileStatus#getBlockSize()]]>
  19088. </doc>
  19089. </method>
  19090. <method name="getNumReduceTasks" return="int"
  19091. abstract="false" native="false" synchronized="false"
  19092. static="false" final="false" visibility="public"
  19093. deprecated="not deprecated">
  19094. <doc>
  19095. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  19096. <code>1</code>.
  19097. @return the number of reduce tasks for this job.]]>
  19098. </doc>
  19099. </method>
  19100. <method name="setNumReduceTasks"
  19101. abstract="false" native="false" synchronized="false"
  19102. static="false" final="false" visibility="public"
  19103. deprecated="not deprecated">
  19104. <param name="n" type="int"/>
  19105. <doc>
  19106. <![CDATA[Set the requisite number of reduce tasks for this job.
  19107. <h4 id="NoOfReduces">How many reduces?</h4>
  19108. <p>The right number of reduces seems to be <code>0.95</code> or
  19109. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  19110. <a href="{@docRoot}/../hadoop-default.html#mapred.tasktracker.reduce.tasks.maximum">
  19111. mapred.tasktracker.reduce.tasks.maximum</a>).
  19112. </p>
  19113. <p>With <code>0.95</code> all of the reduces can launch immediately and
  19114. start transfering map outputs as the maps finish. With <code>1.75</code>
  19115. the faster nodes will finish their first round of reduces and launch a
  19116. second wave of reduces doing a much better job of load balancing.</p>
  19117. <p>Increasing the number of reduces increases the framework overhead, but
  19118. increases load balancing and lowers the cost of failures.</p>
  19119. <p>The scaling factors above are slightly less than whole numbers to
  19120. reserve a few reduce slots in the framework for speculative-tasks, failures
  19121. etc.</p>
  19122. <h4 id="ReducerNone">Reducer NONE</h4>
  19123. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  19124. <p>In this case the output of the map-tasks directly go to distributed
  19125. file-system, to the path set by
  19126. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  19127. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  19128. @param n the number of reduce tasks for this job.]]>
  19129. </doc>
  19130. </method>
  19131. <method name="getMaxMapAttempts" return="int"
  19132. abstract="false" native="false" synchronized="false"
  19133. static="false" final="false" visibility="public"
  19134. deprecated="not deprecated">
  19135. <doc>
  19136. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  19137. map task, as specified by the <code>mapred.map.max.attempts</code>
  19138. property. If this property is not already set, the default is 4 attempts.
  19139. @return the max number of attempts per map task.]]>
  19140. </doc>
  19141. </method>
  19142. <method name="setMaxMapAttempts"
  19143. abstract="false" native="false" synchronized="false"
  19144. static="false" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <param name="n" type="int"/>
  19147. <doc>
  19148. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  19149. map task.
  19150. @param n the number of attempts per map task.]]>
  19151. </doc>
  19152. </method>
  19153. <method name="getMaxReduceAttempts" return="int"
  19154. abstract="false" native="false" synchronized="false"
  19155. static="false" final="false" visibility="public"
  19156. deprecated="not deprecated">
  19157. <doc>
  19158. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  19159. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  19160. property. If this property is not already set, the default is 4 attempts.
  19161. @return the max number of attempts per reduce task.]]>
  19162. </doc>
  19163. </method>
  19164. <method name="setMaxReduceAttempts"
  19165. abstract="false" native="false" synchronized="false"
  19166. static="false" final="false" visibility="public"
  19167. deprecated="not deprecated">
  19168. <param name="n" type="int"/>
  19169. <doc>
  19170. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  19171. reduce task.
  19172. @param n the number of attempts per reduce task.]]>
  19173. </doc>
  19174. </method>
  19175. <method name="getJobName" return="java.lang.String"
  19176. abstract="false" native="false" synchronized="false"
  19177. static="false" final="false" visibility="public"
  19178. deprecated="not deprecated">
  19179. <doc>
  19180. <![CDATA[Get the user-specified job name. This is only used to identify the
  19181. job to the user.
  19182. @return the job's name, defaulting to "".]]>
  19183. </doc>
  19184. </method>
  19185. <method name="setJobName"
  19186. abstract="false" native="false" synchronized="false"
  19187. static="false" final="false" visibility="public"
  19188. deprecated="not deprecated">
  19189. <param name="name" type="java.lang.String"/>
  19190. <doc>
  19191. <![CDATA[Set the user-specified job name.
  19192. @param name the job's new name.]]>
  19193. </doc>
  19194. </method>
  19195. <method name="getSessionId" return="java.lang.String"
  19196. abstract="false" native="false" synchronized="false"
  19197. static="false" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. <doc>
  19200. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  19201. The session identifier is used to tag metric data that is reported to some
  19202. performance metrics system via the org.apache.hadoop.metrics API. The
  19203. session identifier is intended, in particular, for use by Hadoop-On-Demand
  19204. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  19205. HOD will set the session identifier by modifying the hadoop-site.xml file
  19206. before starting the cluster.
  19207. When not running under HOD, this identifer is expected to remain set to
  19208. the empty string.
  19209. @return the session identifier, defaulting to "".]]>
  19210. </doc>
  19211. </method>
  19212. <method name="setSessionId"
  19213. abstract="false" native="false" synchronized="false"
  19214. static="false" final="false" visibility="public"
  19215. deprecated="not deprecated">
  19216. <param name="sessionId" type="java.lang.String"/>
  19217. <doc>
  19218. <![CDATA[Set the user-specified session identifier.
  19219. @param sessionId the new session id.]]>
  19220. </doc>
  19221. </method>
  19222. <method name="setMaxTaskFailuresPerTracker"
  19223. abstract="false" native="false" synchronized="false"
  19224. static="false" final="false" visibility="public"
  19225. deprecated="not deprecated">
  19226. <param name="noFailures" type="int"/>
  19227. <doc>
  19228. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  19229. If the no. of task failures exceeds <code>noFailures</code>, the
  19230. tasktracker is <i>blacklisted</i> for this job.
  19231. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  19232. </doc>
  19233. </method>
  19234. <method name="getMaxTaskFailuresPerTracker" return="int"
  19235. abstract="false" native="false" synchronized="false"
  19236. static="false" final="false" visibility="public"
  19237. deprecated="not deprecated">
  19238. <doc>
  19239. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  19240. If the no. of task failures exceeds this, the tasktracker is
  19241. <i>blacklisted</i> for this job.
  19242. @return the maximum no. of failures of a given job per tasktracker.]]>
  19243. </doc>
  19244. </method>
  19245. <method name="getMaxMapTaskFailuresPercent" return="int"
  19246. abstract="false" native="false" synchronized="false"
  19247. static="false" final="false" visibility="public"
  19248. deprecated="not deprecated">
  19249. <doc>
  19250. <![CDATA[Get the maximum percentage of map tasks that can fail without
  19251. the job being aborted.
  19252. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  19253. attempts before being declared as <i>failed</i>.
  19254. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  19255. the job being declared as {@link JobStatus#FAILED}.
  19256. @return the maximum percentage of map tasks that can fail without
  19257. the job being aborted.]]>
  19258. </doc>
  19259. </method>
  19260. <method name="setMaxMapTaskFailuresPercent"
  19261. abstract="false" native="false" synchronized="false"
  19262. static="false" final="false" visibility="public"
  19263. deprecated="not deprecated">
  19264. <param name="percent" type="int"/>
  19265. <doc>
  19266. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  19267. job being aborted.
  19268. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  19269. before being declared as <i>failed</i>.
  19270. @param percent the maximum percentage of map tasks that can fail without
  19271. the job being aborted.]]>
  19272. </doc>
  19273. </method>
  19274. <method name="getMaxReduceTaskFailuresPercent" return="int"
  19275. abstract="false" native="false" synchronized="false"
  19276. static="false" final="false" visibility="public"
  19277. deprecated="not deprecated">
  19278. <doc>
  19279. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  19280. the job being aborted.
  19281. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  19282. attempts before being declared as <i>failed</i>.
  19283. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  19284. in the job being declared as {@link JobStatus#FAILED}.
  19285. @return the maximum percentage of reduce tasks that can fail without
  19286. the job being aborted.]]>
  19287. </doc>
  19288. </method>
  19289. <method name="setMaxReduceTaskFailuresPercent"
  19290. abstract="false" native="false" synchronized="false"
  19291. static="false" final="false" visibility="public"
  19292. deprecated="not deprecated">
  19293. <param name="percent" type="int"/>
  19294. <doc>
  19295. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  19296. being aborted.
  19297. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  19298. attempts before being declared as <i>failed</i>.
  19299. @param percent the maximum percentage of reduce tasks that can fail without
  19300. the job being aborted.]]>
  19301. </doc>
  19302. </method>
  19303. <method name="setJobPriority"
  19304. abstract="false" native="false" synchronized="false"
  19305. static="false" final="false" visibility="public"
  19306. deprecated="not deprecated">
  19307. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  19308. <doc>
  19309. <![CDATA[Set {@link JobPriority} for this job.
  19310. @param prio the {@link JobPriority} for this job.]]>
  19311. </doc>
  19312. </method>
  19313. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  19314. abstract="false" native="false" synchronized="false"
  19315. static="false" final="false" visibility="public"
  19316. deprecated="not deprecated">
  19317. <doc>
  19318. <![CDATA[Get the {@link JobPriority} for this job.
  19319. @return the {@link JobPriority} for this job.]]>
  19320. </doc>
  19321. </method>
  19322. <method name="getProfileEnabled" return="boolean"
  19323. abstract="false" native="false" synchronized="false"
  19324. static="false" final="false" visibility="public"
  19325. deprecated="not deprecated">
  19326. <doc>
  19327. <![CDATA[Get whether the task profiling is enabled.
  19328. @return true if some tasks will be profiled]]>
  19329. </doc>
  19330. </method>
  19331. <method name="setProfileEnabled"
  19332. abstract="false" native="false" synchronized="false"
  19333. static="false" final="false" visibility="public"
  19334. deprecated="not deprecated">
  19335. <param name="newValue" type="boolean"/>
  19336. <doc>
  19337. <![CDATA[Set whether the system should collect profiler information for some of
  19338. the tasks in this job? The information is stored in the user log
  19339. directory.
  19340. @param newValue true means it should be gathered]]>
  19341. </doc>
  19342. </method>
  19343. <method name="getProfileParams" return="java.lang.String"
  19344. abstract="false" native="false" synchronized="false"
  19345. static="false" final="false" visibility="public"
  19346. deprecated="not deprecated">
  19347. <doc>
  19348. <![CDATA[Get the profiler configuration arguments.
  19349. The default value for this property is
  19350. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  19351. @return the parameters to pass to the task child to configure profiling]]>
  19352. </doc>
  19353. </method>
  19354. <method name="setProfileParams"
  19355. abstract="false" native="false" synchronized="false"
  19356. static="false" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. <param name="value" type="java.lang.String"/>
  19359. <doc>
  19360. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  19361. will be replaced with the name of the profiling output file when the task
  19362. runs.
  19363. This value is passed to the task child JVM on the command line.
  19364. @param value the configuration string]]>
  19365. </doc>
  19366. </method>
  19367. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  19368. abstract="false" native="false" synchronized="false"
  19369. static="false" final="false" visibility="public"
  19370. deprecated="not deprecated">
  19371. <param name="isMap" type="boolean"/>
  19372. <doc>
  19373. <![CDATA[Get the range of maps or reduces to profile.
  19374. @param isMap is the task a map?
  19375. @return the task ranges]]>
  19376. </doc>
  19377. </method>
  19378. <method name="setProfileTaskRange"
  19379. abstract="false" native="false" synchronized="false"
  19380. static="false" final="false" visibility="public"
  19381. deprecated="not deprecated">
  19382. <param name="isMap" type="boolean"/>
  19383. <param name="newValue" type="java.lang.String"/>
  19384. <doc>
  19385. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  19386. must also be called.
  19387. @param newValue a set of integer ranges of the map ids]]>
  19388. </doc>
  19389. </method>
  19390. <method name="setMapDebugScript"
  19391. abstract="false" native="false" synchronized="false"
  19392. static="false" final="false" visibility="public"
  19393. deprecated="not deprecated">
  19394. <param name="mDbgScript" type="java.lang.String"/>
  19395. <doc>
  19396. <![CDATA[Set the debug script to run when the map tasks fail.
  19397. <p>The debug script can aid debugging of failed map tasks. The script is
  19398. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  19399. <p>The debug command, run on the node where the map failed, is:</p>
  19400. <p><pre><blockquote>
  19401. $script $stdout $stderr $syslog $jobconf.
  19402. </blockquote></pre></p>
  19403. <p> The script file is distributed through {@link DistributedCache}
  19404. APIs. The script needs to be symlinked. </p>
  19405. <p>Here is an example on how to submit a script
  19406. <p><blockquote><pre>
  19407. job.setMapDebugScript("./myscript");
  19408. DistributedCache.createSymlink(job);
  19409. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  19410. </pre></blockquote></p>
  19411. @param mDbgScript the script name]]>
  19412. </doc>
  19413. </method>
  19414. <method name="getMapDebugScript" return="java.lang.String"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="false" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. <doc>
  19419. <![CDATA[Get the map task's debug script.
  19420. @return the debug Script for the mapred job for failed map tasks.
  19421. @see #setMapDebugScript(String)]]>
  19422. </doc>
  19423. </method>
  19424. <method name="setReduceDebugScript"
  19425. abstract="false" native="false" synchronized="false"
  19426. static="false" final="false" visibility="public"
  19427. deprecated="not deprecated">
  19428. <param name="rDbgScript" type="java.lang.String"/>
  19429. <doc>
  19430. <![CDATA[Set the debug script to run when the reduce tasks fail.
  19431. <p>The debug script can aid debugging of failed reduce tasks. The script
  19432. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  19433. <p>The debug command, run on the node where the map failed, is:</p>
  19434. <p><pre><blockquote>
  19435. $script $stdout $stderr $syslog $jobconf.
  19436. </blockquote></pre></p>
  19437. <p> The script file is distributed through {@link DistributedCache}
  19438. APIs. The script file needs to be symlinked </p>
  19439. <p>Here is an example on how to submit a script
  19440. <p><blockquote><pre>
  19441. job.setReduceDebugScript("./myscript");
  19442. DistributedCache.createSymlink(job);
  19443. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  19444. </pre></blockquote></p>
  19445. @param rDbgScript the script name]]>
  19446. </doc>
  19447. </method>
  19448. <method name="getReduceDebugScript" return="java.lang.String"
  19449. abstract="false" native="false" synchronized="false"
  19450. static="false" final="false" visibility="public"
  19451. deprecated="not deprecated">
  19452. <doc>
  19453. <![CDATA[Get the reduce task's debug Script
  19454. @return the debug script for the mapred job for failed reduce tasks.
  19455. @see #setReduceDebugScript(String)]]>
  19456. </doc>
  19457. </method>
  19458. <method name="getJobEndNotificationURI" return="java.lang.String"
  19459. abstract="false" native="false" synchronized="false"
  19460. static="false" final="false" visibility="public"
  19461. deprecated="not deprecated">
  19462. <doc>
  19463. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  19464. has completed (success/failure).
  19465. @return the job end notification uri, <code>null</code> if it hasn't
  19466. been set.
  19467. @see #setJobEndNotificationURI(String)]]>
  19468. </doc>
  19469. </method>
  19470. <method name="setJobEndNotificationURI"
  19471. abstract="false" native="false" synchronized="false"
  19472. static="false" final="false" visibility="public"
  19473. deprecated="not deprecated">
  19474. <param name="uri" type="java.lang.String"/>
  19475. <doc>
  19476. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  19477. has completed (success/failure).
  19478. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  19479. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  19480. identifier and completion-status respectively.</p>
  19481. <p>This is typically used by application-writers to implement chaining of
  19482. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  19483. @param uri the job end notification uri
  19484. @see JobStatus
  19485. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  19486. </doc>
  19487. </method>
  19488. <method name="getJobLocalDir" return="java.lang.String"
  19489. abstract="false" native="false" synchronized="false"
  19490. static="false" final="false" visibility="public"
  19491. deprecated="not deprecated">
  19492. <doc>
  19493. <![CDATA[Get job-specific shared directory for use as scratch space
  19494. <p>
  19495. When a job starts, a shared directory is created at location
  19496. <code>
  19497. ${mapred.local.dir}/taskTracker/jobcache/$jobid/work/ </code>.
  19498. This directory is exposed to the users through
  19499. <code>job.local.dir </code>.
  19500. So, the tasks can use this space
  19501. as scratch space and share files among them. </p>
  19502. This value is available as System property also.
  19503. @return The localized job specific shared directory]]>
  19504. </doc>
  19505. </method>
  19506. <doc>
  19507. <![CDATA[A map/reduce job configuration.
  19508. <p><code>JobConf</code> is the primary interface for a user to describe a
  19509. map-reduce job to the Hadoop framework for execution. The framework tries to
  19510. faithfully execute the job as-is described by <code>JobConf</code>, however:
  19511. <ol>
  19512. <li>
  19513. Some configuration parameters might have been marked as
  19514. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  19515. final</a> by administrators and hence cannot be altered.
  19516. </li>
  19517. <li>
  19518. While some job parameters are straight-forward to set
  19519. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  19520. rest of the framework and/or job-configuration and is relatively more
  19521. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  19522. </li>
  19523. </ol></p>
  19524. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  19525. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  19526. {@link OutputFormat} implementations to be used etc.
  19527. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  19528. of the job such as <code>Comparator</code>s to be used, files to be put in
  19529. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  19530. are to be compressed (and how), debugability via user-provided scripts
  19531. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  19532. for doing post-processing on task logs, task's stdout, stderr, syslog.
  19533. and etc.</p>
  19534. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  19535. <p><blockquote><pre>
  19536. // Create a new JobConf
  19537. JobConf job = new JobConf(new Configuration(), MyJob.class);
  19538. // Specify various job-specific parameters
  19539. job.setJobName("myjob");
  19540. FileInputFormat.setInputPaths(job, new Path("in"));
  19541. FileOutputFormat.setOutputPath(job, new Path("out"));
  19542. job.setMapperClass(MyJob.MyMapper.class);
  19543. job.setCombinerClass(MyJob.MyReducer.class);
  19544. job.setReducerClass(MyJob.MyReducer.class);
  19545. job.setInputFormat(SequenceFileInputFormat.class);
  19546. job.setOutputFormat(SequenceFileOutputFormat.class);
  19547. </pre></blockquote></p>
  19548. @see JobClient
  19549. @see ClusterStatus
  19550. @see Tool
  19551. @see DistributedCache]]>
  19552. </doc>
  19553. </class>
  19554. <!-- end class org.apache.hadoop.mapred.JobConf -->
  19555. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  19556. <interface name="JobConfigurable" abstract="true"
  19557. static="false" final="false" visibility="public"
  19558. deprecated="not deprecated">
  19559. <method name="configure"
  19560. abstract="false" native="false" synchronized="false"
  19561. static="false" final="false" visibility="public"
  19562. deprecated="not deprecated">
  19563. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19564. <doc>
  19565. <![CDATA[Initializes a new instance from a {@link JobConf}.
  19566. @param job the configuration]]>
  19567. </doc>
  19568. </method>
  19569. <doc>
  19570. <![CDATA[That what may be configured.]]>
  19571. </doc>
  19572. </interface>
  19573. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  19574. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  19575. <class name="JobEndNotifier" extends="java.lang.Object"
  19576. abstract="false"
  19577. static="false" final="false" visibility="public"
  19578. deprecated="not deprecated">
  19579. <constructor name="JobEndNotifier"
  19580. static="false" final="false" visibility="public"
  19581. deprecated="not deprecated">
  19582. </constructor>
  19583. <method name="startNotifier"
  19584. abstract="false" native="false" synchronized="false"
  19585. static="true" final="false" visibility="public"
  19586. deprecated="not deprecated">
  19587. </method>
  19588. <method name="stopNotifier"
  19589. abstract="false" native="false" synchronized="false"
  19590. static="true" final="false" visibility="public"
  19591. deprecated="not deprecated">
  19592. </method>
  19593. <method name="registerNotification"
  19594. abstract="false" native="false" synchronized="false"
  19595. static="true" final="false" visibility="public"
  19596. deprecated="not deprecated">
  19597. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  19598. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  19599. </method>
  19600. <method name="localRunnerNotification"
  19601. abstract="false" native="false" synchronized="false"
  19602. static="true" final="false" visibility="public"
  19603. deprecated="not deprecated">
  19604. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19605. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  19606. </method>
  19607. </class>
  19608. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  19609. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  19610. <class name="JobHistory" extends="java.lang.Object"
  19611. abstract="false"
  19612. static="false" final="false" visibility="public"
  19613. deprecated="not deprecated">
  19614. <constructor name="JobHistory"
  19615. static="false" final="false" visibility="public"
  19616. deprecated="not deprecated">
  19617. </constructor>
  19618. <method name="init" return="boolean"
  19619. abstract="false" native="false" synchronized="false"
  19620. static="true" final="false" visibility="public"
  19621. deprecated="not deprecated">
  19622. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19623. <param name="hostname" type="java.lang.String"/>
  19624. <doc>
  19625. <![CDATA[Initialize JobHistory files.
  19626. @param conf Jobconf of the job tracker.
  19627. @param hostname jobtracker's hostname
  19628. @return true if intialized properly
  19629. false otherwise]]>
  19630. </doc>
  19631. </method>
  19632. <method name="parseHistoryFromFS"
  19633. abstract="false" native="false" synchronized="false"
  19634. static="true" final="false" visibility="public"
  19635. deprecated="not deprecated">
  19636. <param name="path" type="java.lang.String"/>
  19637. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  19638. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19639. <exception name="IOException" type="java.io.IOException"/>
  19640. <doc>
  19641. <![CDATA[Parses history file and invokes Listener.handle() for
  19642. each line of history. It can be used for looking through history
  19643. files for specific items without having to keep whole history in memory.
  19644. @param path path to history file
  19645. @param l Listener for history events
  19646. @param fs FileSystem where history file is present
  19647. @throws IOException]]>
  19648. </doc>
  19649. </method>
  19650. <method name="isDisableHistory" return="boolean"
  19651. abstract="false" native="false" synchronized="false"
  19652. static="true" final="false" visibility="public"
  19653. deprecated="not deprecated">
  19654. <doc>
  19655. <![CDATA[Returns history disable status. by default history is enabled so this
  19656. method returns false.
  19657. @return true if history logging is disabled, false otherwise.]]>
  19658. </doc>
  19659. </method>
  19660. <method name="setDisableHistory"
  19661. abstract="false" native="false" synchronized="false"
  19662. static="true" final="false" visibility="public"
  19663. deprecated="not deprecated">
  19664. <param name="disableHistory" type="boolean"/>
  19665. <doc>
  19666. <![CDATA[Enable/disable history logging. Default value is false, so history
  19667. is enabled by default.
  19668. @param disableHistory true if history should be disabled, false otherwise.]]>
  19669. </doc>
  19670. </method>
  19671. <field name="JOBTRACKER_START_TIME" type="java.lang.String"
  19672. transient="false" volatile="false"
  19673. static="true" final="true" visibility="public"
  19674. deprecated="not deprecated">
  19675. </field>
  19676. <doc>
  19677. <![CDATA[Provides methods for writing to and reading from job history.
  19678. Job History works in an append mode, JobHistory and its inner classes provide methods
  19679. to log job events.
  19680. JobHistory is split into multiple files, format of each file is plain text where each line
  19681. is of the format [type (key=value)*], where type identifies the type of the record.
  19682. Type maps to UID of one of the inner classes of this class.
  19683. Job history is maintained in a master index which contains star/stop times of all jobs with
  19684. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  19685. file. name of job history files follows the format jobtrackerId_jobid
  19686. For parsing the job history it supports a listener based interface where each line is parsed
  19687. and passed to listener. The listener can create an object model of history or look for specific
  19688. events and discard rest of the history.]]>
  19689. </doc>
  19690. </class>
  19691. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  19692. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  19693. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  19694. abstract="false"
  19695. static="true" final="false" visibility="public"
  19696. deprecated="not deprecated">
  19697. <implements name="java.lang.Runnable"/>
  19698. <constructor name="JobHistory.HistoryCleaner"
  19699. static="false" final="false" visibility="public"
  19700. deprecated="not deprecated">
  19701. </constructor>
  19702. <method name="run"
  19703. abstract="false" native="false" synchronized="false"
  19704. static="false" final="false" visibility="public"
  19705. deprecated="not deprecated">
  19706. <doc>
  19707. <![CDATA[Cleans up history data.]]>
  19708. </doc>
  19709. </method>
  19710. <doc>
  19711. <![CDATA[Delete history files older than one month. Update master index and remove all
  19712. jobs older than one month. Also if a job tracker has no jobs in last one month
  19713. remove reference to the job tracker.]]>
  19714. </doc>
  19715. </class>
  19716. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  19717. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  19718. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  19719. abstract="false"
  19720. static="true" final="false" visibility="public"
  19721. deprecated="not deprecated">
  19722. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  19723. static="false" final="false" visibility="public"
  19724. deprecated="not deprecated">
  19725. <doc>
  19726. <![CDATA[Create new JobInfo]]>
  19727. </doc>
  19728. </constructor>
  19729. <method name="getAllTasks" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.Task&gt;"
  19730. abstract="false" native="false" synchronized="false"
  19731. static="false" final="false" visibility="public"
  19732. deprecated="not deprecated">
  19733. <doc>
  19734. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  19735. </doc>
  19736. </method>
  19737. <method name="getLocalJobFilePath" return="java.lang.String"
  19738. abstract="false" native="false" synchronized="false"
  19739. static="true" final="false" visibility="public"
  19740. deprecated="not deprecated">
  19741. <param name="jobid" type="java.lang.String"/>
  19742. </method>
  19743. <method name="getLocalJobFilePath" return="java.lang.String"
  19744. abstract="false" native="false" synchronized="false"
  19745. static="true" final="false" visibility="public"
  19746. deprecated="not deprecated">
  19747. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19748. <doc>
  19749. <![CDATA[Get the path of the locally stored job file
  19750. @param jobId id of the job
  19751. @return the path of the job file on the local file system]]>
  19752. </doc>
  19753. </method>
  19754. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  19755. abstract="false" native="false" synchronized="false"
  19756. static="true" final="false" visibility="public"
  19757. deprecated="not deprecated">
  19758. <param name="logFile" type="java.lang.String"/>
  19759. <exception name="IOException" type="java.io.IOException"/>
  19760. <doc>
  19761. <![CDATA[Helper function to encode the URL of the path of the job-history
  19762. log file.
  19763. @param logFile path of the job-history file
  19764. @return URL encoded path
  19765. @throws IOException]]>
  19766. </doc>
  19767. </method>
  19768. <method name="encodeJobHistoryFileName" return="java.lang.String"
  19769. abstract="false" native="false" synchronized="false"
  19770. static="true" final="false" visibility="public"
  19771. deprecated="not deprecated">
  19772. <param name="logFileName" type="java.lang.String"/>
  19773. <exception name="IOException" type="java.io.IOException"/>
  19774. <doc>
  19775. <![CDATA[Helper function to encode the URL of the filename of the job-history
  19776. log file.
  19777. @param logFileName file name of the job-history file
  19778. @return URL encoded filename
  19779. @throws IOException]]>
  19780. </doc>
  19781. </method>
  19782. <method name="decodeJobHistoryFileName" return="java.lang.String"
  19783. abstract="false" native="false" synchronized="false"
  19784. static="true" final="false" visibility="public"
  19785. deprecated="not deprecated">
  19786. <param name="logFileName" type="java.lang.String"/>
  19787. <exception name="IOException" type="java.io.IOException"/>
  19788. <doc>
  19789. <![CDATA[Helper function to decode the URL of the filename of the job-history
  19790. log file.
  19791. @param logFileName file name of the job-history file
  19792. @return URL decoded filename
  19793. @throws IOException]]>
  19794. </doc>
  19795. </method>
  19796. <method name="logSubmitted"
  19797. abstract="false" native="false" synchronized="false"
  19798. static="true" final="false" visibility="public"
  19799. deprecated="not deprecated">
  19800. <param name="jobid" type="java.lang.String"/>
  19801. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  19802. <param name="jobConfPath" type="java.lang.String"/>
  19803. <param name="submitTime" type="long"/>
  19804. <exception name="IOException" type="java.io.IOException"/>
  19805. </method>
  19806. <method name="logSubmitted"
  19807. abstract="false" native="false" synchronized="false"
  19808. static="true" final="false" visibility="public"
  19809. deprecated="not deprecated">
  19810. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19811. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  19812. <param name="jobConfPath" type="java.lang.String"/>
  19813. <param name="submitTime" type="long"/>
  19814. <exception name="IOException" type="java.io.IOException"/>
  19815. <doc>
  19816. <![CDATA[Log job submitted event to history. Creates a new file in history
  19817. for the job. if history file creation fails, it disables history
  19818. for all other events.
  19819. @param jobId job id assigned by job tracker.
  19820. @param jobConf job conf of the job
  19821. @param jobConfPath path to job conf xml file in HDFS.
  19822. @param submitTime time when job tracker received the job
  19823. @throws IOException]]>
  19824. </doc>
  19825. </method>
  19826. <method name="logStarted"
  19827. abstract="false" native="false" synchronized="false"
  19828. static="true" final="false" visibility="public"
  19829. deprecated="not deprecated">
  19830. <param name="jobid" type="java.lang.String"/>
  19831. <param name="startTime" type="long"/>
  19832. <param name="totalMaps" type="int"/>
  19833. <param name="totalReduces" type="int"/>
  19834. </method>
  19835. <method name="logStarted"
  19836. abstract="false" native="false" synchronized="false"
  19837. static="true" final="false" visibility="public"
  19838. deprecated="not deprecated">
  19839. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19840. <param name="startTime" type="long"/>
  19841. <param name="totalMaps" type="int"/>
  19842. <param name="totalReduces" type="int"/>
  19843. <doc>
  19844. <![CDATA[Logs launch time of job.
  19845. @param jobId job id, assigned by jobtracker.
  19846. @param startTime start time of job.
  19847. @param totalMaps total maps assigned by jobtracker.
  19848. @param totalReduces total reduces.]]>
  19849. </doc>
  19850. </method>
  19851. <method name="logFinished"
  19852. abstract="false" native="false" synchronized="false"
  19853. static="true" final="false" visibility="public"
  19854. deprecated="not deprecated">
  19855. <param name="jobId" type="java.lang.String"/>
  19856. <param name="finishTime" type="long"/>
  19857. <param name="finishedMaps" type="int"/>
  19858. <param name="finishedReduces" type="int"/>
  19859. <param name="failedMaps" type="int"/>
  19860. <param name="failedReduces" type="int"/>
  19861. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  19862. </method>
  19863. <method name="logFinished"
  19864. abstract="false" native="false" synchronized="false"
  19865. static="true" final="false" visibility="public"
  19866. deprecated="not deprecated">
  19867. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19868. <param name="finishTime" type="long"/>
  19869. <param name="finishedMaps" type="int"/>
  19870. <param name="finishedReduces" type="int"/>
  19871. <param name="failedMaps" type="int"/>
  19872. <param name="failedReduces" type="int"/>
  19873. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  19874. <doc>
  19875. <![CDATA[Log job finished. closes the job file in history.
  19876. @param jobId job id, assigned by jobtracker.
  19877. @param finishTime finish time of job in ms.
  19878. @param finishedMaps no of maps successfully finished.
  19879. @param finishedReduces no of reduces finished sucessfully.
  19880. @param failedMaps no of failed map tasks.
  19881. @param failedReduces no of failed reduce tasks.
  19882. @param counters the counters from the job]]>
  19883. </doc>
  19884. </method>
  19885. <method name="logFailed"
  19886. abstract="false" native="false" synchronized="false"
  19887. static="true" final="false" visibility="public"
  19888. deprecated="not deprecated">
  19889. <param name="jobid" type="java.lang.String"/>
  19890. <param name="timestamp" type="long"/>
  19891. <param name="finishedMaps" type="int"/>
  19892. <param name="finishedReduces" type="int"/>
  19893. </method>
  19894. <method name="logFailed"
  19895. abstract="false" native="false" synchronized="false"
  19896. static="true" final="false" visibility="public"
  19897. deprecated="not deprecated">
  19898. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  19899. <param name="timestamp" type="long"/>
  19900. <param name="finishedMaps" type="int"/>
  19901. <param name="finishedReduces" type="int"/>
  19902. <doc>
  19903. <![CDATA[Logs job failed event. Closes the job history log file.
  19904. @param jobid job id
  19905. @param timestamp time when job failure was detected in ms.
  19906. @param finishedMaps no finished map tasks.
  19907. @param finishedReduces no of finished reduce tasks.]]>
  19908. </doc>
  19909. </method>
  19910. <doc>
  19911. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  19912. </doc>
  19913. </class>
  19914. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  19915. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  19916. <class name="JobHistory.Keys" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Keys&gt;"
  19917. abstract="false"
  19918. static="true" final="true" visibility="public"
  19919. deprecated="not deprecated">
  19920. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  19921. abstract="false" native="false" synchronized="false"
  19922. static="true" final="true" visibility="public"
  19923. deprecated="not deprecated">
  19924. </method>
  19925. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  19926. abstract="false" native="false" synchronized="false"
  19927. static="true" final="false" visibility="public"
  19928. deprecated="not deprecated">
  19929. <param name="name" type="java.lang.String"/>
  19930. </method>
  19931. <doc>
  19932. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  19933. It acts as a global namespace for all keys.]]>
  19934. </doc>
  19935. </class>
  19936. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  19937. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  19938. <interface name="JobHistory.Listener" abstract="true"
  19939. static="true" final="false" visibility="public"
  19940. deprecated="not deprecated">
  19941. <method name="handle"
  19942. abstract="false" native="false" synchronized="false"
  19943. static="false" final="false" visibility="public"
  19944. deprecated="not deprecated">
  19945. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  19946. <param name="values" type="java.util.Map&lt;org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String&gt;"/>
  19947. <exception name="IOException" type="java.io.IOException"/>
  19948. <doc>
  19949. <![CDATA[Callback method for history parser.
  19950. @param recType type of record, which is the first entry in the line.
  19951. @param values a map of key-value pairs as thry appear in history.
  19952. @throws IOException]]>
  19953. </doc>
  19954. </method>
  19955. <doc>
  19956. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  19957. should be implemented and passed to JobHistory.parseHistory()]]>
  19958. </doc>
  19959. </interface>
  19960. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  19961. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  19962. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  19963. abstract="false"
  19964. static="true" final="false" visibility="public"
  19965. deprecated="not deprecated">
  19966. <constructor name="JobHistory.MapAttempt"
  19967. static="false" final="false" visibility="public"
  19968. deprecated="not deprecated">
  19969. </constructor>
  19970. <method name="logStarted"
  19971. abstract="false" native="false" synchronized="false"
  19972. static="true" final="false" visibility="public"
  19973. deprecated="not deprecated">
  19974. <param name="jobid" type="java.lang.String"/>
  19975. <param name="taskid" type="java.lang.String"/>
  19976. <param name="attemptid" type="java.lang.String"/>
  19977. <param name="startTime" type="long"/>
  19978. <param name="hostName" type="java.lang.String"/>
  19979. </method>
  19980. <method name="logStarted"
  19981. abstract="false" native="false" synchronized="false"
  19982. static="true" final="false" visibility="public"
  19983. deprecated="not deprecated">
  19984. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  19985. <param name="startTime" type="long"/>
  19986. <param name="hostName" type="java.lang.String"/>
  19987. <doc>
  19988. <![CDATA[Log start time of this map task attempt.
  19989. @param taskAttemptId task attempt id
  19990. @param startTime start time of task attempt as reported by task tracker.
  19991. @param hostName host name of the task attempt.]]>
  19992. </doc>
  19993. </method>
  19994. <method name="logFinished"
  19995. abstract="false" native="false" synchronized="false"
  19996. static="true" final="false" visibility="public"
  19997. deprecated="not deprecated">
  19998. <param name="jobid" type="java.lang.String"/>
  19999. <param name="taskid" type="java.lang.String"/>
  20000. <param name="attemptid" type="java.lang.String"/>
  20001. <param name="time" type="long"/>
  20002. <param name="host" type="java.lang.String"/>
  20003. </method>
  20004. <method name="logFinished"
  20005. abstract="false" native="false" synchronized="false"
  20006. static="true" final="false" visibility="public"
  20007. deprecated="not deprecated">
  20008. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20009. <param name="finishTime" type="long"/>
  20010. <param name="hostName" type="java.lang.String"/>
  20011. <doc>
  20012. <![CDATA[Log finish time of map task attempt.
  20013. @param taskAttemptId task attempt id
  20014. @param finishTime finish time
  20015. @param hostName host name]]>
  20016. </doc>
  20017. </method>
  20018. <method name="logFailed"
  20019. abstract="false" native="false" synchronized="false"
  20020. static="true" final="false" visibility="public"
  20021. deprecated="not deprecated">
  20022. <param name="jobid" type="java.lang.String"/>
  20023. <param name="taskid" type="java.lang.String"/>
  20024. <param name="attemptid" type="java.lang.String"/>
  20025. <param name="timestamp" type="long"/>
  20026. <param name="host" type="java.lang.String"/>
  20027. <param name="err" type="java.lang.String"/>
  20028. </method>
  20029. <method name="logFailed"
  20030. abstract="false" native="false" synchronized="false"
  20031. static="true" final="false" visibility="public"
  20032. deprecated="not deprecated">
  20033. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20034. <param name="timestamp" type="long"/>
  20035. <param name="hostName" type="java.lang.String"/>
  20036. <param name="error" type="java.lang.String"/>
  20037. <doc>
  20038. <![CDATA[Log task attempt failed event.
  20039. @param taskAttemptId task attempt id
  20040. @param timestamp timestamp
  20041. @param hostName hostname of this task attempt.
  20042. @param error error message if any for this task attempt.]]>
  20043. </doc>
  20044. </method>
  20045. <method name="logKilled"
  20046. abstract="false" native="false" synchronized="false"
  20047. static="true" final="false" visibility="public"
  20048. deprecated="not deprecated">
  20049. <param name="jobid" type="java.lang.String"/>
  20050. <param name="taskid" type="java.lang.String"/>
  20051. <param name="attemptid" type="java.lang.String"/>
  20052. <param name="timestamp" type="long"/>
  20053. <param name="hostname" type="java.lang.String"/>
  20054. <param name="error" type="java.lang.String"/>
  20055. </method>
  20056. <method name="logKilled"
  20057. abstract="false" native="false" synchronized="false"
  20058. static="true" final="false" visibility="public"
  20059. deprecated="not deprecated">
  20060. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20061. <param name="timestamp" type="long"/>
  20062. <param name="hostName" type="java.lang.String"/>
  20063. <param name="error" type="java.lang.String"/>
  20064. <doc>
  20065. <![CDATA[Log task attempt killed event.
  20066. @param taskAttemptId task attempt id
  20067. @param timestamp timestamp
  20068. @param hostName hostname of this task attempt.
  20069. @param error error message if any for this task attempt.]]>
  20070. </doc>
  20071. </method>
  20072. <doc>
  20073. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  20074. a Map Attempt on a node.]]>
  20075. </doc>
  20076. </class>
  20077. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  20078. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  20079. <class name="JobHistory.RecordTypes" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.RecordTypes&gt;"
  20080. abstract="false"
  20081. static="true" final="true" visibility="public"
  20082. deprecated="not deprecated">
  20083. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  20084. abstract="false" native="false" synchronized="false"
  20085. static="true" final="true" visibility="public"
  20086. deprecated="not deprecated">
  20087. </method>
  20088. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  20089. abstract="false" native="false" synchronized="false"
  20090. static="true" final="false" visibility="public"
  20091. deprecated="not deprecated">
  20092. <param name="name" type="java.lang.String"/>
  20093. </method>
  20094. <doc>
  20095. <![CDATA[Record types are identifiers for each line of log in history files.
  20096. A record type appears as the first token in a single line of log.]]>
  20097. </doc>
  20098. </class>
  20099. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  20100. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  20101. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  20102. abstract="false"
  20103. static="true" final="false" visibility="public"
  20104. deprecated="not deprecated">
  20105. <constructor name="JobHistory.ReduceAttempt"
  20106. static="false" final="false" visibility="public"
  20107. deprecated="not deprecated">
  20108. </constructor>
  20109. <method name="logStarted"
  20110. abstract="false" native="false" synchronized="false"
  20111. static="true" final="false" visibility="public"
  20112. deprecated="not deprecated">
  20113. <param name="jobid" type="java.lang.String"/>
  20114. <param name="taskid" type="java.lang.String"/>
  20115. <param name="attemptid" type="java.lang.String"/>
  20116. <param name="startTime" type="long"/>
  20117. <param name="hostName" type="java.lang.String"/>
  20118. </method>
  20119. <method name="logStarted"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="true" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20124. <param name="startTime" type="long"/>
  20125. <param name="hostName" type="java.lang.String"/>
  20126. <doc>
  20127. <![CDATA[Log start time of Reduce task attempt.
  20128. @param taskAttemptId task attempt id
  20129. @param startTime start time
  20130. @param hostName host name]]>
  20131. </doc>
  20132. </method>
  20133. <method name="logFinished"
  20134. abstract="false" native="false" synchronized="false"
  20135. static="true" final="false" visibility="public"
  20136. deprecated="not deprecated">
  20137. <param name="jobid" type="java.lang.String"/>
  20138. <param name="taskid" type="java.lang.String"/>
  20139. <param name="attemptid" type="java.lang.String"/>
  20140. <param name="shuffleFinished" type="long"/>
  20141. <param name="sortFinished" type="long"/>
  20142. <param name="finishTime" type="long"/>
  20143. <param name="hostname" type="java.lang.String"/>
  20144. </method>
  20145. <method name="logFinished"
  20146. abstract="false" native="false" synchronized="false"
  20147. static="true" final="false" visibility="public"
  20148. deprecated="not deprecated">
  20149. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20150. <param name="shuffleFinished" type="long"/>
  20151. <param name="sortFinished" type="long"/>
  20152. <param name="finishTime" type="long"/>
  20153. <param name="hostName" type="java.lang.String"/>
  20154. <doc>
  20155. <![CDATA[Log finished event of this task.
  20156. @param taskAttemptId task attempt id
  20157. @param shuffleFinished shuffle finish time
  20158. @param sortFinished sort finish time
  20159. @param finishTime finish time of task
  20160. @param hostName host name where task attempt executed]]>
  20161. </doc>
  20162. </method>
  20163. <method name="logFailed"
  20164. abstract="false" native="false" synchronized="false"
  20165. static="true" final="false" visibility="public"
  20166. deprecated="not deprecated">
  20167. <param name="jobid" type="java.lang.String"/>
  20168. <param name="taskid" type="java.lang.String"/>
  20169. <param name="attemptid" type="java.lang.String"/>
  20170. <param name="timestamp" type="long"/>
  20171. <param name="hostname" type="java.lang.String"/>
  20172. <param name="error" type="java.lang.String"/>
  20173. </method>
  20174. <method name="logFailed"
  20175. abstract="false" native="false" synchronized="false"
  20176. static="true" final="false" visibility="public"
  20177. deprecated="not deprecated">
  20178. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20179. <param name="timestamp" type="long"/>
  20180. <param name="hostName" type="java.lang.String"/>
  20181. <param name="error" type="java.lang.String"/>
  20182. <doc>
  20183. <![CDATA[Log failed reduce task attempt.
  20184. @param taskAttemptId task attempt id
  20185. @param timestamp time stamp when task failed
  20186. @param hostName host name of the task attempt.
  20187. @param error error message of the task.]]>
  20188. </doc>
  20189. </method>
  20190. <method name="logKilled"
  20191. abstract="false" native="false" synchronized="false"
  20192. static="true" final="false" visibility="public"
  20193. deprecated="not deprecated">
  20194. <param name="jobid" type="java.lang.String"/>
  20195. <param name="taskid" type="java.lang.String"/>
  20196. <param name="attemptid" type="java.lang.String"/>
  20197. <param name="timestamp" type="long"/>
  20198. <param name="hostname" type="java.lang.String"/>
  20199. <param name="error" type="java.lang.String"/>
  20200. </method>
  20201. <method name="logKilled"
  20202. abstract="false" native="false" synchronized="false"
  20203. static="true" final="false" visibility="public"
  20204. deprecated="not deprecated">
  20205. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  20206. <param name="timestamp" type="long"/>
  20207. <param name="hostName" type="java.lang.String"/>
  20208. <param name="error" type="java.lang.String"/>
  20209. <doc>
  20210. <![CDATA[Log killed reduce task attempt.
  20211. @param taskAttemptId task attempt id
  20212. @param timestamp time stamp when task failed
  20213. @param hostName host name of the task attempt.
  20214. @param error error message of the task.]]>
  20215. </doc>
  20216. </method>
  20217. <doc>
  20218. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  20219. a Map Attempt on a node.]]>
  20220. </doc>
  20221. </class>
  20222. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  20223. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  20224. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  20225. abstract="false"
  20226. static="true" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. <constructor name="JobHistory.Task"
  20229. static="false" final="false" visibility="public"
  20230. deprecated="not deprecated">
  20231. </constructor>
  20232. <method name="logStarted"
  20233. abstract="false" native="false" synchronized="false"
  20234. static="true" final="false" visibility="public"
  20235. deprecated="not deprecated">
  20236. <param name="jobId" type="java.lang.String"/>
  20237. <param name="taskId" type="java.lang.String"/>
  20238. <param name="taskType" type="java.lang.String"/>
  20239. <param name="startTime" type="long"/>
  20240. </method>
  20241. <method name="logStarted"
  20242. abstract="false" native="false" synchronized="false"
  20243. static="true" final="false" visibility="public"
  20244. deprecated="not deprecated">
  20245. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  20246. <param name="taskType" type="java.lang.String"/>
  20247. <param name="startTime" type="long"/>
  20248. <param name="splitLocations" type="java.lang.String"/>
  20249. <doc>
  20250. <![CDATA[Log start time of task (TIP).
  20251. @param taskId task id
  20252. @param taskType MAP or REDUCE
  20253. @param startTime startTime of tip.]]>
  20254. </doc>
  20255. </method>
  20256. <method name="logFinished"
  20257. abstract="false" native="false" synchronized="false"
  20258. static="true" final="false" visibility="public"
  20259. deprecated="not deprecated">
  20260. <param name="jobid" type="java.lang.String"/>
  20261. <param name="taskid" type="java.lang.String"/>
  20262. <param name="taskType" type="java.lang.String"/>
  20263. <param name="finishTime" type="long"/>
  20264. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  20265. </method>
  20266. <method name="logFinished"
  20267. abstract="false" native="false" synchronized="false"
  20268. static="true" final="false" visibility="public"
  20269. deprecated="not deprecated">
  20270. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  20271. <param name="taskType" type="java.lang.String"/>
  20272. <param name="finishTime" type="long"/>
  20273. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  20274. <doc>
  20275. <![CDATA[Log finish time of task.
  20276. @param taskId task id
  20277. @param taskType MAP or REDUCE
  20278. @param finishTime finish timeof task in ms]]>
  20279. </doc>
  20280. </method>
  20281. <method name="logFailed"
  20282. abstract="false" native="false" synchronized="false"
  20283. static="true" final="false" visibility="public"
  20284. deprecated="not deprecated">
  20285. <param name="jobid" type="java.lang.String"/>
  20286. <param name="taskid" type="java.lang.String"/>
  20287. <param name="taskType" type="java.lang.String"/>
  20288. <param name="time" type="long"/>
  20289. <param name="error" type="java.lang.String"/>
  20290. </method>
  20291. <method name="logFailed"
  20292. abstract="false" native="false" synchronized="false"
  20293. static="true" final="false" visibility="public"
  20294. deprecated="not deprecated">
  20295. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  20296. <param name="taskType" type="java.lang.String"/>
  20297. <param name="time" type="long"/>
  20298. <param name="error" type="java.lang.String"/>
  20299. <doc>
  20300. <![CDATA[Log job failed event.
  20301. @param taskId task id
  20302. @param taskType MAP or REDUCE.
  20303. @param time timestamp when job failed detected.
  20304. @param error error message for failure.]]>
  20305. </doc>
  20306. </method>
  20307. <method name="getTaskAttempts" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.TaskAttempt&gt;"
  20308. abstract="false" native="false" synchronized="false"
  20309. static="false" final="false" visibility="public"
  20310. deprecated="not deprecated">
  20311. <doc>
  20312. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  20313. </doc>
  20314. </method>
  20315. <doc>
  20316. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  20317. All events logged by this class are logged in a separate file per job in
  20318. job tracker history. These events map to TIPs in jobtracker.]]>
  20319. </doc>
  20320. </class>
  20321. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  20322. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  20323. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  20324. abstract="false"
  20325. static="true" final="false" visibility="public"
  20326. deprecated="not deprecated">
  20327. <constructor name="JobHistory.TaskAttempt"
  20328. static="false" final="false" visibility="public"
  20329. deprecated="not deprecated">
  20330. </constructor>
  20331. <doc>
  20332. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  20333. </doc>
  20334. </class>
  20335. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  20336. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  20337. <class name="JobHistory.Values" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Values&gt;"
  20338. abstract="false"
  20339. static="true" final="true" visibility="public"
  20340. deprecated="not deprecated">
  20341. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  20342. abstract="false" native="false" synchronized="false"
  20343. static="true" final="true" visibility="public"
  20344. deprecated="not deprecated">
  20345. </method>
  20346. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  20347. abstract="false" native="false" synchronized="false"
  20348. static="true" final="false" visibility="public"
  20349. deprecated="not deprecated">
  20350. <param name="name" type="java.lang.String"/>
  20351. </method>
  20352. <doc>
  20353. <![CDATA[This enum contains some of the values commonly used by history log events.
  20354. since values in history can only be strings - Values.name() is used in
  20355. most places in history file.]]>
  20356. </doc>
  20357. </class>
  20358. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  20359. <!-- start class org.apache.hadoop.mapred.JobID -->
  20360. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  20361. abstract="false"
  20362. static="false" final="false" visibility="public"
  20363. deprecated="not deprecated">
  20364. <constructor name="JobID" type="java.lang.String, int"
  20365. static="false" final="false" visibility="public"
  20366. deprecated="not deprecated">
  20367. <doc>
  20368. <![CDATA[Constructs a JobID object
  20369. @param jtIdentifier jobTracker identifier
  20370. @param id job number]]>
  20371. </doc>
  20372. </constructor>
  20373. <method name="getJtIdentifier" return="java.lang.String"
  20374. abstract="false" native="false" synchronized="false"
  20375. static="false" final="false" visibility="public"
  20376. deprecated="not deprecated">
  20377. </method>
  20378. <method name="equals" return="boolean"
  20379. abstract="false" native="false" synchronized="false"
  20380. static="false" final="false" visibility="public"
  20381. deprecated="not deprecated">
  20382. <param name="o" type="java.lang.Object"/>
  20383. </method>
  20384. <method name="compareTo" return="int"
  20385. abstract="false" native="false" synchronized="false"
  20386. static="false" final="false" visibility="public"
  20387. deprecated="not deprecated">
  20388. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  20389. <doc>
  20390. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  20391. </doc>
  20392. </method>
  20393. <method name="toString" return="java.lang.String"
  20394. abstract="false" native="false" synchronized="false"
  20395. static="false" final="false" visibility="public"
  20396. deprecated="not deprecated">
  20397. </method>
  20398. <method name="hashCode" return="int"
  20399. abstract="false" native="false" synchronized="false"
  20400. static="false" final="false" visibility="public"
  20401. deprecated="not deprecated">
  20402. </method>
  20403. <method name="readFields"
  20404. abstract="false" native="false" synchronized="false"
  20405. static="false" final="false" visibility="public"
  20406. deprecated="not deprecated">
  20407. <param name="in" type="java.io.DataInput"/>
  20408. <exception name="IOException" type="java.io.IOException"/>
  20409. </method>
  20410. <method name="write"
  20411. abstract="false" native="false" synchronized="false"
  20412. static="false" final="false" visibility="public"
  20413. deprecated="not deprecated">
  20414. <param name="out" type="java.io.DataOutput"/>
  20415. <exception name="IOException" type="java.io.IOException"/>
  20416. </method>
  20417. <method name="read" return="org.apache.hadoop.mapred.JobID"
  20418. abstract="false" native="false" synchronized="false"
  20419. static="true" final="false" visibility="public"
  20420. deprecated="not deprecated">
  20421. <param name="in" type="java.io.DataInput"/>
  20422. <exception name="IOException" type="java.io.IOException"/>
  20423. </method>
  20424. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  20425. abstract="false" native="false" synchronized="false"
  20426. static="true" final="false" visibility="public"
  20427. deprecated="not deprecated">
  20428. <param name="str" type="java.lang.String"/>
  20429. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  20430. <doc>
  20431. <![CDATA[Construct a JobId object from given string
  20432. @return constructed JobId object or null if the given String is null
  20433. @throws IllegalArgumentException if the given string is malformed]]>
  20434. </doc>
  20435. </method>
  20436. <method name="getJobIDsPattern" return="java.lang.String"
  20437. abstract="false" native="false" synchronized="false"
  20438. static="true" final="false" visibility="public"
  20439. deprecated="not deprecated">
  20440. <param name="jtIdentifier" type="java.lang.String"/>
  20441. <param name="jobId" type="java.lang.Integer"/>
  20442. <doc>
  20443. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  20444. be given null, in which case that part of the regex will be generic.
  20445. For example to obtain a regex matching <i>any job</i>
  20446. run on the jobtracker started at <i>200707121733</i>, we would use :
  20447. <pre>
  20448. JobID.getTaskIDsPattern("200707121733", null);
  20449. </pre>
  20450. which will return :
  20451. <pre> "job_200707121733_[0-9]*" </pre>
  20452. @param jtIdentifier jobTracker identifier, or null
  20453. @param jobId job number, or null
  20454. @return a regex pattern matching JobIDs]]>
  20455. </doc>
  20456. </method>
  20457. <doc>
  20458. <![CDATA[JobID represents the immutable and unique identifier for
  20459. the job. JobID consists of two parts. First part
  20460. represents the jobtracker identifier, so that jobID to jobtracker map
  20461. is defined. For cluster setup this string is the jobtracker
  20462. start time, for local setting, it is "local".
  20463. Second part of the JobID is the job number. <br>
  20464. An example JobID is :
  20465. <code>job_200707121733_0003</code> , which represents the third job
  20466. running at the jobtracker started at <code>200707121733</code>.
  20467. <p>
  20468. Applications should never construct or parse JobID strings, but rather
  20469. use appropriate constructors or {@link #forName(String)} method.
  20470. @see TaskID
  20471. @see TaskAttemptID
  20472. @see JobTracker#getNewJobId()
  20473. @see JobTracker#getStartTime()]]>
  20474. </doc>
  20475. </class>
  20476. <!-- end class org.apache.hadoop.mapred.JobID -->
  20477. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  20478. <class name="JobPriority" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobPriority&gt;"
  20479. abstract="false"
  20480. static="false" final="true" visibility="public"
  20481. deprecated="not deprecated">
  20482. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  20483. abstract="false" native="false" synchronized="false"
  20484. static="true" final="true" visibility="public"
  20485. deprecated="not deprecated">
  20486. </method>
  20487. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  20488. abstract="false" native="false" synchronized="false"
  20489. static="true" final="false" visibility="public"
  20490. deprecated="not deprecated">
  20491. <param name="name" type="java.lang.String"/>
  20492. </method>
  20493. <doc>
  20494. <![CDATA[Used to describe the priority of the running job.]]>
  20495. </doc>
  20496. </class>
  20497. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  20498. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  20499. <class name="JobProfile" extends="java.lang.Object"
  20500. abstract="false"
  20501. static="false" final="false" visibility="public"
  20502. deprecated="not deprecated">
  20503. <implements name="org.apache.hadoop.io.Writable"/>
  20504. <constructor name="JobProfile"
  20505. static="false" final="false" visibility="public"
  20506. deprecated="not deprecated">
  20507. <doc>
  20508. <![CDATA[Construct an empty {@link JobProfile}.]]>
  20509. </doc>
  20510. </constructor>
  20511. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapred.JobID, java.lang.String, java.lang.String, java.lang.String"
  20512. static="false" final="false" visibility="public"
  20513. deprecated="not deprecated">
  20514. <doc>
  20515. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  20516. job config-file, job-details url and job name.
  20517. @param user userid of the person who submitted the job.
  20518. @param jobid id of the job.
  20519. @param jobFile job configuration file.
  20520. @param url link to the web-ui for details of the job.
  20521. @param name user-specified job name.]]>
  20522. </doc>
  20523. </constructor>
  20524. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  20527. <doc>
  20528. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  20529. </doc>
  20530. </constructor>
  20531. <method name="getUser" return="java.lang.String"
  20532. abstract="false" native="false" synchronized="false"
  20533. static="false" final="false" visibility="public"
  20534. deprecated="not deprecated">
  20535. <doc>
  20536. <![CDATA[Get the user id.]]>
  20537. </doc>
  20538. </method>
  20539. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  20540. abstract="false" native="false" synchronized="false"
  20541. static="false" final="false" visibility="public"
  20542. deprecated="not deprecated">
  20543. <doc>
  20544. <![CDATA[Get the job id.]]>
  20545. </doc>
  20546. </method>
  20547. <method name="getJobId" return="java.lang.String"
  20548. abstract="false" native="false" synchronized="false"
  20549. static="false" final="false" visibility="public"
  20550. deprecated="use getJobID() instead">
  20551. <doc>
  20552. <![CDATA[@deprecated use getJobID() instead]]>
  20553. </doc>
  20554. </method>
  20555. <method name="getJobFile" return="java.lang.String"
  20556. abstract="false" native="false" synchronized="false"
  20557. static="false" final="false" visibility="public"
  20558. deprecated="not deprecated">
  20559. <doc>
  20560. <![CDATA[Get the configuration file for the job.]]>
  20561. </doc>
  20562. </method>
  20563. <method name="getURL" return="java.net.URL"
  20564. abstract="false" native="false" synchronized="false"
  20565. static="false" final="false" visibility="public"
  20566. deprecated="not deprecated">
  20567. <doc>
  20568. <![CDATA[Get the link to the web-ui for details of the job.]]>
  20569. </doc>
  20570. </method>
  20571. <method name="getJobName" return="java.lang.String"
  20572. abstract="false" native="false" synchronized="false"
  20573. static="false" final="false" visibility="public"
  20574. deprecated="not deprecated">
  20575. <doc>
  20576. <![CDATA[Get the user-specified job name.]]>
  20577. </doc>
  20578. </method>
  20579. <method name="write"
  20580. abstract="false" native="false" synchronized="false"
  20581. static="false" final="false" visibility="public"
  20582. deprecated="not deprecated">
  20583. <param name="out" type="java.io.DataOutput"/>
  20584. <exception name="IOException" type="java.io.IOException"/>
  20585. </method>
  20586. <method name="readFields"
  20587. abstract="false" native="false" synchronized="false"
  20588. static="false" final="false" visibility="public"
  20589. deprecated="not deprecated">
  20590. <param name="in" type="java.io.DataInput"/>
  20591. <exception name="IOException" type="java.io.IOException"/>
  20592. </method>
  20593. <doc>
  20594. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  20595. whether living or dead.]]>
  20596. </doc>
  20597. </class>
  20598. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  20599. <!-- start class org.apache.hadoop.mapred.JobShell -->
  20600. <class name="JobShell" extends="org.apache.hadoop.conf.Configured"
  20601. abstract="false"
  20602. static="false" final="false" visibility="public"
  20603. deprecated="not deprecated">
  20604. <implements name="org.apache.hadoop.util.Tool"/>
  20605. <constructor name="JobShell"
  20606. static="false" final="false" visibility="public"
  20607. deprecated="not deprecated">
  20608. </constructor>
  20609. <constructor name="JobShell" type="org.apache.hadoop.conf.Configuration"
  20610. static="false" final="false" visibility="public"
  20611. deprecated="not deprecated">
  20612. </constructor>
  20613. <method name="init"
  20614. abstract="false" native="false" synchronized="false"
  20615. static="false" final="false" visibility="protected"
  20616. deprecated="not deprecated">
  20617. <exception name="IOException" type="java.io.IOException"/>
  20618. </method>
  20619. <method name="run" return="int"
  20620. abstract="false" native="false" synchronized="false"
  20621. static="false" final="false" visibility="public"
  20622. deprecated="not deprecated">
  20623. <param name="argv" type="java.lang.String[]"/>
  20624. <exception name="Exception" type="java.lang.Exception"/>
  20625. <doc>
  20626. <![CDATA[run method from Tool]]>
  20627. </doc>
  20628. </method>
  20629. <method name="main"
  20630. abstract="false" native="false" synchronized="false"
  20631. static="true" final="false" visibility="public"
  20632. deprecated="not deprecated">
  20633. <param name="argv" type="java.lang.String[]"/>
  20634. <exception name="Exception" type="java.lang.Exception"/>
  20635. </method>
  20636. <doc>
  20637. <![CDATA[Provide command line parsing for JobSubmission
  20638. job submission looks like
  20639. hadoop jar -libjars <comma seperated jars> -archives <comma seperated archives>
  20640. -files <comma seperated files> inputjar args]]>
  20641. </doc>
  20642. </class>
  20643. <!-- end class org.apache.hadoop.mapred.JobShell -->
  20644. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  20645. <class name="JobStatus" extends="java.lang.Object"
  20646. abstract="false"
  20647. static="false" final="false" visibility="public"
  20648. deprecated="not deprecated">
  20649. <implements name="org.apache.hadoop.io.Writable"/>
  20650. <constructor name="JobStatus"
  20651. static="false" final="false" visibility="public"
  20652. deprecated="not deprecated">
  20653. </constructor>
  20654. <constructor name="JobStatus" type="java.lang.String, float, float, int"
  20655. static="false" final="false" visibility="public"
  20656. deprecated="not deprecated">
  20657. </constructor>
  20658. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  20659. static="false" final="false" visibility="public"
  20660. deprecated="not deprecated">
  20661. <doc>
  20662. <![CDATA[Create a job status object for a given jobid.
  20663. @param jobid The jobid of the job
  20664. @param mapProgress The progress made on the maps
  20665. @param reduceProgress The progress made on the reduces
  20666. @param runState The current state of the job]]>
  20667. </doc>
  20668. </constructor>
  20669. <method name="getJobId" return="java.lang.String"
  20670. abstract="false" native="false" synchronized="false"
  20671. static="false" final="false" visibility="public"
  20672. deprecated="use getJobID instead">
  20673. <doc>
  20674. <![CDATA[@deprecated use getJobID instead]]>
  20675. </doc>
  20676. </method>
  20677. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  20678. abstract="false" native="false" synchronized="false"
  20679. static="false" final="false" visibility="public"
  20680. deprecated="not deprecated">
  20681. <doc>
  20682. <![CDATA[@return The jobid of the Job]]>
  20683. </doc>
  20684. </method>
  20685. <method name="mapProgress" return="float"
  20686. abstract="false" native="false" synchronized="true"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. <doc>
  20690. <![CDATA[@return Percentage of progress in maps]]>
  20691. </doc>
  20692. </method>
  20693. <method name="reduceProgress" return="float"
  20694. abstract="false" native="false" synchronized="true"
  20695. static="false" final="false" visibility="public"
  20696. deprecated="not deprecated">
  20697. <doc>
  20698. <![CDATA[@return Percentage of progress in reduce]]>
  20699. </doc>
  20700. </method>
  20701. <method name="getRunState" return="int"
  20702. abstract="false" native="false" synchronized="true"
  20703. static="false" final="false" visibility="public"
  20704. deprecated="not deprecated">
  20705. <doc>
  20706. <![CDATA[@return running state of the job]]>
  20707. </doc>
  20708. </method>
  20709. <method name="setRunState"
  20710. abstract="false" native="false" synchronized="true"
  20711. static="false" final="false" visibility="public"
  20712. deprecated="not deprecated">
  20713. <param name="state" type="int"/>
  20714. <doc>
  20715. <![CDATA[Change the current run state of the job.]]>
  20716. </doc>
  20717. </method>
  20718. <method name="getStartTime" return="long"
  20719. abstract="false" native="false" synchronized="true"
  20720. static="false" final="false" visibility="public"
  20721. deprecated="not deprecated">
  20722. <doc>
  20723. <![CDATA[@return start time of the job]]>
  20724. </doc>
  20725. </method>
  20726. <method name="getUsername" return="java.lang.String"
  20727. abstract="false" native="false" synchronized="true"
  20728. static="false" final="false" visibility="public"
  20729. deprecated="not deprecated">
  20730. <doc>
  20731. <![CDATA[@return the username of the job]]>
  20732. </doc>
  20733. </method>
  20734. <method name="write"
  20735. abstract="false" native="false" synchronized="false"
  20736. static="false" final="false" visibility="public"
  20737. deprecated="not deprecated">
  20738. <param name="out" type="java.io.DataOutput"/>
  20739. <exception name="IOException" type="java.io.IOException"/>
  20740. </method>
  20741. <method name="readFields"
  20742. abstract="false" native="false" synchronized="false"
  20743. static="false" final="false" visibility="public"
  20744. deprecated="not deprecated">
  20745. <param name="in" type="java.io.DataInput"/>
  20746. <exception name="IOException" type="java.io.IOException"/>
  20747. </method>
  20748. <field name="RUNNING" type="int"
  20749. transient="false" volatile="false"
  20750. static="true" final="true" visibility="public"
  20751. deprecated="not deprecated">
  20752. </field>
  20753. <field name="SUCCEEDED" type="int"
  20754. transient="false" volatile="false"
  20755. static="true" final="true" visibility="public"
  20756. deprecated="not deprecated">
  20757. </field>
  20758. <field name="FAILED" type="int"
  20759. transient="false" volatile="false"
  20760. static="true" final="true" visibility="public"
  20761. deprecated="not deprecated">
  20762. </field>
  20763. <field name="PREP" type="int"
  20764. transient="false" volatile="false"
  20765. static="true" final="true" visibility="public"
  20766. deprecated="not deprecated">
  20767. </field>
  20768. <doc>
  20769. <![CDATA[Describes the current status of a job. This is
  20770. not intended to be a comprehensive piece of data.
  20771. For that, look at JobProfile.]]>
  20772. </doc>
  20773. </class>
  20774. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  20775. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  20776. <class name="JobTracker" extends="java.lang.Object"
  20777. abstract="false"
  20778. static="false" final="false" visibility="public"
  20779. deprecated="not deprecated">
  20780. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  20781. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  20782. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  20783. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  20784. abstract="false" native="false" synchronized="false"
  20785. static="true" final="false" visibility="public"
  20786. deprecated="not deprecated">
  20787. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  20788. <exception name="IOException" type="java.io.IOException"/>
  20789. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  20790. <doc>
  20791. <![CDATA[Start the JobTracker with given configuration.
  20792. The conf will be modified to reflect the actual ports on which
  20793. the JobTracker is up and running if the user passes the port as
  20794. <code>zero</code>.
  20795. @param conf configuration for the JobTracker.
  20796. @throws IOException]]>
  20797. </doc>
  20798. </method>
  20799. <method name="stopTracker"
  20800. abstract="false" native="false" synchronized="false"
  20801. static="false" final="false" visibility="public"
  20802. deprecated="not deprecated">
  20803. <exception name="IOException" type="java.io.IOException"/>
  20804. </method>
  20805. <method name="getProtocolVersion" return="long"
  20806. abstract="false" native="false" synchronized="false"
  20807. static="false" final="false" visibility="public"
  20808. deprecated="not deprecated">
  20809. <param name="protocol" type="java.lang.String"/>
  20810. <param name="clientVersion" type="long"/>
  20811. <exception name="IOException" type="java.io.IOException"/>
  20812. </method>
  20813. <method name="getAddress" return="java.net.InetSocketAddress"
  20814. abstract="false" native="false" synchronized="false"
  20815. static="true" final="false" visibility="public"
  20816. deprecated="not deprecated">
  20817. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20818. </method>
  20819. <method name="offerService"
  20820. abstract="false" native="false" synchronized="false"
  20821. static="false" final="false" visibility="public"
  20822. deprecated="not deprecated">
  20823. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  20824. <doc>
  20825. <![CDATA[Run forever]]>
  20826. </doc>
  20827. </method>
  20828. <method name="getTotalSubmissions" return="int"
  20829. abstract="false" native="false" synchronized="false"
  20830. static="false" final="false" visibility="public"
  20831. deprecated="not deprecated">
  20832. </method>
  20833. <method name="getJobTrackerMachine" return="java.lang.String"
  20834. abstract="false" native="false" synchronized="false"
  20835. static="false" final="false" visibility="public"
  20836. deprecated="not deprecated">
  20837. </method>
  20838. <method name="getTrackerIdentifier" return="java.lang.String"
  20839. abstract="false" native="false" synchronized="false"
  20840. static="false" final="false" visibility="public"
  20841. deprecated="not deprecated">
  20842. <doc>
  20843. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  20844. @return a string with a unique identifier]]>
  20845. </doc>
  20846. </method>
  20847. <method name="getTrackerPort" return="int"
  20848. abstract="false" native="false" synchronized="false"
  20849. static="false" final="false" visibility="public"
  20850. deprecated="not deprecated">
  20851. </method>
  20852. <method name="getInfoPort" return="int"
  20853. abstract="false" native="false" synchronized="false"
  20854. static="false" final="false" visibility="public"
  20855. deprecated="not deprecated">
  20856. </method>
  20857. <method name="getStartTime" return="long"
  20858. abstract="false" native="false" synchronized="false"
  20859. static="false" final="false" visibility="public"
  20860. deprecated="not deprecated">
  20861. </method>
  20862. <method name="runningJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  20863. abstract="false" native="false" synchronized="false"
  20864. static="false" final="false" visibility="public"
  20865. deprecated="not deprecated">
  20866. </method>
  20867. <method name="getRunningJobs" return="java.util.List&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  20868. abstract="false" native="false" synchronized="true"
  20869. static="false" final="false" visibility="public"
  20870. deprecated="not deprecated">
  20871. <doc>
  20872. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  20873. careful to synchronize.]]>
  20874. </doc>
  20875. </method>
  20876. <method name="failedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  20877. abstract="false" native="false" synchronized="false"
  20878. static="false" final="false" visibility="public"
  20879. deprecated="not deprecated">
  20880. </method>
  20881. <method name="completedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  20882. abstract="false" native="false" synchronized="false"
  20883. static="false" final="false" visibility="public"
  20884. deprecated="not deprecated">
  20885. </method>
  20886. <method name="taskTrackers" return="java.util.Collection"
  20887. abstract="false" native="false" synchronized="false"
  20888. static="false" final="false" visibility="public"
  20889. deprecated="not deprecated">
  20890. </method>
  20891. <method name="getTaskTracker" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  20892. abstract="false" native="false" synchronized="false"
  20893. static="false" final="false" visibility="public"
  20894. deprecated="not deprecated">
  20895. <param name="trackerID" type="java.lang.String"/>
  20896. </method>
  20897. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  20898. abstract="false" native="false" synchronized="false"
  20899. static="false" final="false" visibility="public"
  20900. deprecated="not deprecated">
  20901. <param name="name" type="java.lang.String"/>
  20902. </method>
  20903. <method name="getNodesAtMaxLevel" return="java.util.Collection&lt;org.apache.hadoop.net.Node&gt;"
  20904. abstract="false" native="false" synchronized="false"
  20905. static="false" final="false" visibility="public"
  20906. deprecated="not deprecated">
  20907. <doc>
  20908. <![CDATA[Returns a collection of nodes at the max level]]>
  20909. </doc>
  20910. </method>
  20911. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  20912. abstract="false" native="false" synchronized="false"
  20913. static="true" final="false" visibility="public"
  20914. deprecated="not deprecated">
  20915. <param name="node" type="org.apache.hadoop.net.Node"/>
  20916. <param name="level" type="int"/>
  20917. </method>
  20918. <method name="getNode" return="org.apache.hadoop.net.Node"
  20919. abstract="false" native="false" synchronized="false"
  20920. static="false" final="false" visibility="public"
  20921. deprecated="not deprecated">
  20922. <param name="name" type="java.lang.String"/>
  20923. <doc>
  20924. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  20925. </doc>
  20926. </method>
  20927. <method name="getNumTaskCacheLevels" return="int"
  20928. abstract="false" native="false" synchronized="false"
  20929. static="false" final="false" visibility="public"
  20930. deprecated="not deprecated">
  20931. </method>
  20932. <method name="getNumResolvedTaskTrackers" return="int"
  20933. abstract="false" native="false" synchronized="false"
  20934. static="false" final="false" visibility="public"
  20935. deprecated="not deprecated">
  20936. </method>
  20937. <method name="getBuildVersion" return="java.lang.String"
  20938. abstract="false" native="false" synchronized="false"
  20939. static="false" final="false" visibility="public"
  20940. deprecated="not deprecated">
  20941. <exception name="IOException" type="java.io.IOException"/>
  20942. </method>
  20943. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  20944. abstract="false" native="false" synchronized="true"
  20945. static="false" final="false" visibility="public"
  20946. deprecated="not deprecated">
  20947. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  20948. <param name="initialContact" type="boolean"/>
  20949. <param name="acceptNewTasks" type="boolean"/>
  20950. <param name="responseId" type="short"/>
  20951. <exception name="IOException" type="java.io.IOException"/>
  20952. <doc>
  20953. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  20954. the {@link JobTracker}.
  20955. The {@link JobTracker} processes the status information sent by the
  20956. {@link TaskTracker} and responds with instructions to start/stop
  20957. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  20958. </doc>
  20959. </method>
  20960. <method name="getFilesystemName" return="java.lang.String"
  20961. abstract="false" native="false" synchronized="true"
  20962. static="false" final="false" visibility="public"
  20963. deprecated="not deprecated">
  20964. <exception name="IOException" type="java.io.IOException"/>
  20965. <doc>
  20966. <![CDATA[Grab the local fs name]]>
  20967. </doc>
  20968. </method>
  20969. <method name="reportTaskTrackerError"
  20970. abstract="false" native="false" synchronized="false"
  20971. static="false" final="false" visibility="public"
  20972. deprecated="not deprecated">
  20973. <param name="taskTracker" type="java.lang.String"/>
  20974. <param name="errorClass" type="java.lang.String"/>
  20975. <param name="errorMessage" type="java.lang.String"/>
  20976. <exception name="IOException" type="java.io.IOException"/>
  20977. </method>
  20978. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  20979. abstract="false" native="false" synchronized="true"
  20980. static="false" final="false" visibility="public"
  20981. deprecated="not deprecated">
  20982. <exception name="IOException" type="java.io.IOException"/>
  20983. <doc>
  20984. <![CDATA[Allocates a new JobId string.]]>
  20985. </doc>
  20986. </method>
  20987. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  20988. abstract="false" native="false" synchronized="false"
  20989. static="false" final="false" visibility="public"
  20990. deprecated="not deprecated">
  20991. <param name="jobid" type="java.lang.String"/>
  20992. <exception name="IOException" type="java.io.IOException"/>
  20993. </method>
  20994. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  20995. abstract="false" native="false" synchronized="true"
  20996. static="false" final="false" visibility="public"
  20997. deprecated="not deprecated">
  20998. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  20999. <exception name="IOException" type="java.io.IOException"/>
  21000. <doc>
  21001. <![CDATA[JobTracker.submitJob() kicks off a new job.
  21002. Create a 'JobInProgress' object, which contains both JobProfile
  21003. and JobStatus. Those two sub-objects are sometimes shipped outside
  21004. of the JobTracker. But JobInProgress adds info that's useful for
  21005. the JobTracker alone.
  21006. We add the JIP to the jobInitQueue, which is processed
  21007. asynchronously to handle split-computation and build up
  21008. the right TaskTracker/Block mapping.]]>
  21009. </doc>
  21010. </method>
  21011. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  21012. abstract="false" native="false" synchronized="true"
  21013. static="false" final="false" visibility="public"
  21014. deprecated="not deprecated">
  21015. </method>
  21016. <method name="killJob"
  21017. abstract="false" native="false" synchronized="false"
  21018. static="false" final="false" visibility="public"
  21019. deprecated="not deprecated">
  21020. <param name="id" type="java.lang.String"/>
  21021. </method>
  21022. <method name="killJob"
  21023. abstract="false" native="false" synchronized="true"
  21024. static="false" final="false" visibility="public"
  21025. deprecated="not deprecated">
  21026. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21027. </method>
  21028. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  21029. abstract="false" native="false" synchronized="false"
  21030. static="false" final="false" visibility="public"
  21031. deprecated="not deprecated">
  21032. <param name="id" type="java.lang.String"/>
  21033. </method>
  21034. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  21035. abstract="false" native="false" synchronized="true"
  21036. static="false" final="false" visibility="public"
  21037. deprecated="not deprecated">
  21038. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21039. </method>
  21040. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  21041. abstract="false" native="false" synchronized="false"
  21042. static="false" final="false" visibility="public"
  21043. deprecated="not deprecated">
  21044. <param name="id" type="java.lang.String"/>
  21045. </method>
  21046. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  21047. abstract="false" native="false" synchronized="true"
  21048. static="false" final="false" visibility="public"
  21049. deprecated="not deprecated">
  21050. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21051. </method>
  21052. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  21053. abstract="false" native="false" synchronized="false"
  21054. static="false" final="false" visibility="public"
  21055. deprecated="not deprecated">
  21056. <param name="id" type="java.lang.String"/>
  21057. </method>
  21058. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  21059. abstract="false" native="false" synchronized="true"
  21060. static="false" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21063. </method>
  21064. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  21065. abstract="false" native="false" synchronized="false"
  21066. static="false" final="false" visibility="public"
  21067. deprecated="not deprecated">
  21068. <param name="jobid" type="java.lang.String"/>
  21069. </method>
  21070. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  21071. abstract="false" native="false" synchronized="true"
  21072. static="false" final="false" visibility="public"
  21073. deprecated="not deprecated">
  21074. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21075. </method>
  21076. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  21077. abstract="false" native="false" synchronized="false"
  21078. static="false" final="false" visibility="public"
  21079. deprecated="not deprecated">
  21080. <param name="jobid" type="java.lang.String"/>
  21081. </method>
  21082. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  21083. abstract="false" native="false" synchronized="true"
  21084. static="false" final="false" visibility="public"
  21085. deprecated="not deprecated">
  21086. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21087. </method>
  21088. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  21089. abstract="false" native="false" synchronized="false"
  21090. static="false" final="false" visibility="public"
  21091. deprecated="not deprecated">
  21092. <param name="jobid" type="java.lang.String"/>
  21093. <param name="fromid" type="int"/>
  21094. <param name="maxevents" type="int"/>
  21095. <exception name="IOException" type="java.io.IOException"/>
  21096. </method>
  21097. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  21098. abstract="false" native="false" synchronized="true"
  21099. static="false" final="false" visibility="public"
  21100. deprecated="not deprecated">
  21101. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21102. <param name="fromEventId" type="int"/>
  21103. <param name="maxEvents" type="int"/>
  21104. <exception name="IOException" type="java.io.IOException"/>
  21105. </method>
  21106. <method name="getTaskDiagnostics" return="java.lang.String[]"
  21107. abstract="false" native="false" synchronized="false"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. <param name="jobid" type="java.lang.String"/>
  21111. <param name="tipid" type="java.lang.String"/>
  21112. <param name="taskid" type="java.lang.String"/>
  21113. <exception name="IOException" type="java.io.IOException"/>
  21114. </method>
  21115. <method name="getTaskDiagnostics" return="java.lang.String[]"
  21116. abstract="false" native="false" synchronized="true"
  21117. static="false" final="false" visibility="public"
  21118. deprecated="not deprecated">
  21119. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  21120. <exception name="IOException" type="java.io.IOException"/>
  21121. <doc>
  21122. <![CDATA[Get the diagnostics for a given task
  21123. @param taskId the id of the task
  21124. @return an array of the diagnostic messages]]>
  21125. </doc>
  21126. </method>
  21127. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  21128. abstract="false" native="false" synchronized="false"
  21129. static="false" final="false" visibility="public"
  21130. deprecated="not deprecated">
  21131. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  21132. <doc>
  21133. <![CDATA[Returns specified TaskInProgress, or null.]]>
  21134. </doc>
  21135. </method>
  21136. <method name="killTask" return="boolean"
  21137. abstract="false" native="false" synchronized="false"
  21138. static="false" final="false" visibility="public"
  21139. deprecated="not deprecated">
  21140. <param name="taskId" type="java.lang.String"/>
  21141. <param name="shouldFail" type="boolean"/>
  21142. <exception name="IOException" type="java.io.IOException"/>
  21143. </method>
  21144. <method name="killTask" return="boolean"
  21145. abstract="false" native="false" synchronized="true"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="not deprecated">
  21148. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  21149. <param name="shouldFail" type="boolean"/>
  21150. <exception name="IOException" type="java.io.IOException"/>
  21151. <doc>
  21152. <![CDATA[Mark a Task to be killed]]>
  21153. </doc>
  21154. </method>
  21155. <method name="getAssignedTracker" return="java.lang.String"
  21156. abstract="false" native="false" synchronized="false"
  21157. static="false" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. <param name="taskid" type="java.lang.String"/>
  21160. </method>
  21161. <method name="getAssignedTracker" return="java.lang.String"
  21162. abstract="false" native="false" synchronized="true"
  21163. static="false" final="false" visibility="public"
  21164. deprecated="not deprecated">
  21165. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  21166. <doc>
  21167. <![CDATA[Get tracker name for a given task id.
  21168. @param taskId the name of the task
  21169. @return The name of the task tracker]]>
  21170. </doc>
  21171. </method>
  21172. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  21173. abstract="false" native="false" synchronized="false"
  21174. static="false" final="false" visibility="public"
  21175. deprecated="not deprecated">
  21176. </method>
  21177. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  21178. abstract="false" native="false" synchronized="false"
  21179. static="false" final="false" visibility="public"
  21180. deprecated="not deprecated">
  21181. </method>
  21182. <method name="getSystemDir" return="java.lang.String"
  21183. abstract="false" native="false" synchronized="false"
  21184. static="false" final="false" visibility="public"
  21185. deprecated="not deprecated">
  21186. <doc>
  21187. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  21188. </doc>
  21189. </method>
  21190. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  21191. abstract="false" native="false" synchronized="false"
  21192. static="false" final="false" visibility="public"
  21193. deprecated="not deprecated">
  21194. <param name="jobid" type="java.lang.String"/>
  21195. </method>
  21196. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  21197. abstract="false" native="false" synchronized="false"
  21198. static="false" final="false" visibility="public"
  21199. deprecated="not deprecated">
  21200. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21201. </method>
  21202. <method name="getLocalJobFilePath" return="java.lang.String"
  21203. abstract="false" native="false" synchronized="false"
  21204. static="false" final="false" visibility="public"
  21205. deprecated="not deprecated">
  21206. <param name="jobid" type="java.lang.String"/>
  21207. </method>
  21208. <method name="getLocalJobFilePath" return="java.lang.String"
  21209. abstract="false" native="false" synchronized="false"
  21210. static="true" final="false" visibility="public"
  21211. deprecated="not deprecated">
  21212. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21213. <doc>
  21214. <![CDATA[Get the localized job file path on the job trackers local file system
  21215. @param jobId id of the job
  21216. @return the path of the job conf file on the local file system]]>
  21217. </doc>
  21218. </method>
  21219. <method name="main"
  21220. abstract="false" native="false" synchronized="false"
  21221. static="true" final="false" visibility="public"
  21222. deprecated="not deprecated">
  21223. <param name="argv" type="java.lang.String[]"/>
  21224. <exception name="IOException" type="java.io.IOException"/>
  21225. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21226. <doc>
  21227. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  21228. JobTracker should be run as part of the DFS Namenode process.]]>
  21229. </doc>
  21230. </method>
  21231. <field name="LOG" type="org.apache.commons.logging.Log"
  21232. transient="false" volatile="false"
  21233. static="true" final="true" visibility="public"
  21234. deprecated="not deprecated">
  21235. </field>
  21236. <doc>
  21237. <![CDATA[JobTracker is the central location for submitting and
  21238. tracking MR jobs in a network environment.]]>
  21239. </doc>
  21240. </class>
  21241. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  21242. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  21243. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  21244. abstract="false"
  21245. static="true" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  21248. static="false" final="false" visibility="public"
  21249. deprecated="not deprecated">
  21250. </constructor>
  21251. <doc>
  21252. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  21253. </doc>
  21254. </class>
  21255. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  21256. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  21257. <class name="JobTracker.State" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobTracker.State&gt;"
  21258. abstract="false"
  21259. static="true" final="true" visibility="public"
  21260. deprecated="not deprecated">
  21261. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  21262. abstract="false" native="false" synchronized="false"
  21263. static="true" final="true" visibility="public"
  21264. deprecated="not deprecated">
  21265. </method>
  21266. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  21267. abstract="false" native="false" synchronized="false"
  21268. static="true" final="false" visibility="public"
  21269. deprecated="not deprecated">
  21270. <param name="name" type="java.lang.String"/>
  21271. </method>
  21272. </class>
  21273. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  21274. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  21275. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  21276. abstract="false"
  21277. static="false" final="false" visibility="public"
  21278. deprecated="not deprecated">
  21279. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  21280. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  21281. static="false" final="false" visibility="public"
  21282. deprecated="not deprecated">
  21283. <exception name="IOException" type="java.io.IOException"/>
  21284. </constructor>
  21285. <method name="getKeyClass" return="java.lang.Class"
  21286. abstract="false" native="false" synchronized="false"
  21287. static="false" final="false" visibility="public"
  21288. deprecated="not deprecated">
  21289. </method>
  21290. <method name="createKey" return="org.apache.hadoop.io.Text"
  21291. abstract="false" native="false" synchronized="false"
  21292. static="false" final="false" visibility="public"
  21293. deprecated="not deprecated">
  21294. </method>
  21295. <method name="createValue" return="org.apache.hadoop.io.Text"
  21296. abstract="false" native="false" synchronized="false"
  21297. static="false" final="false" visibility="public"
  21298. deprecated="not deprecated">
  21299. </method>
  21300. <method name="findSeparator" return="int"
  21301. abstract="false" native="false" synchronized="false"
  21302. static="true" final="false" visibility="public"
  21303. deprecated="not deprecated">
  21304. <param name="utf" type="byte[]"/>
  21305. <param name="start" type="int"/>
  21306. <param name="length" type="int"/>
  21307. <param name="sep" type="byte"/>
  21308. </method>
  21309. <method name="next" return="boolean"
  21310. abstract="false" native="false" synchronized="true"
  21311. static="false" final="false" visibility="public"
  21312. deprecated="not deprecated">
  21313. <param name="key" type="org.apache.hadoop.io.Text"/>
  21314. <param name="value" type="org.apache.hadoop.io.Text"/>
  21315. <exception name="IOException" type="java.io.IOException"/>
  21316. <doc>
  21317. <![CDATA[Read key/value pair in a line.]]>
  21318. </doc>
  21319. </method>
  21320. <method name="getProgress" return="float"
  21321. abstract="false" native="false" synchronized="false"
  21322. static="false" final="false" visibility="public"
  21323. deprecated="not deprecated">
  21324. </method>
  21325. <method name="getPos" return="long"
  21326. abstract="false" native="false" synchronized="true"
  21327. static="false" final="false" visibility="public"
  21328. deprecated="not deprecated">
  21329. <exception name="IOException" type="java.io.IOException"/>
  21330. </method>
  21331. <method name="close"
  21332. abstract="false" native="false" synchronized="true"
  21333. static="false" final="false" visibility="public"
  21334. deprecated="not deprecated">
  21335. <exception name="IOException" type="java.io.IOException"/>
  21336. </method>
  21337. <doc>
  21338. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  21339. separator character. The separator can be specified in config file
  21340. under the attribute name key.value.separator.in.input.line. The default
  21341. separator is the tab character ('\t').]]>
  21342. </doc>
  21343. </class>
  21344. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  21345. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  21346. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  21347. abstract="false"
  21348. static="false" final="false" visibility="public"
  21349. deprecated="not deprecated">
  21350. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  21351. <constructor name="KeyValueTextInputFormat"
  21352. static="false" final="false" visibility="public"
  21353. deprecated="not deprecated">
  21354. </constructor>
  21355. <method name="configure"
  21356. abstract="false" native="false" synchronized="false"
  21357. static="false" final="false" visibility="public"
  21358. deprecated="not deprecated">
  21359. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21360. </method>
  21361. <method name="isSplitable" return="boolean"
  21362. abstract="false" native="false" synchronized="false"
  21363. static="false" final="false" visibility="protected"
  21364. deprecated="not deprecated">
  21365. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21366. <param name="file" type="org.apache.hadoop.fs.Path"/>
  21367. </method>
  21368. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  21369. abstract="false" native="false" synchronized="false"
  21370. static="false" final="false" visibility="public"
  21371. deprecated="not deprecated">
  21372. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  21373. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21374. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21375. <exception name="IOException" type="java.io.IOException"/>
  21376. </method>
  21377. <doc>
  21378. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  21379. Either linefeed or carriage-return are used to signal end of line. Each line
  21380. is divided into key and value parts by a separator byte. If no such a byte
  21381. exists, the key will be the entire line and value will be empty.]]>
  21382. </doc>
  21383. </class>
  21384. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  21385. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  21386. <class name="LineRecordReader" extends="java.lang.Object"
  21387. abstract="false"
  21388. static="false" final="false" visibility="public"
  21389. deprecated="not deprecated">
  21390. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"/>
  21391. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  21392. static="false" final="false" visibility="public"
  21393. deprecated="not deprecated">
  21394. <exception name="IOException" type="java.io.IOException"/>
  21395. </constructor>
  21396. <constructor name="LineRecordReader" type="java.io.InputStream, long, long"
  21397. static="false" final="false" visibility="public"
  21398. deprecated="not deprecated">
  21399. </constructor>
  21400. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  21401. static="false" final="false" visibility="public"
  21402. deprecated="not deprecated">
  21403. </constructor>
  21404. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  21405. static="false" final="false" visibility="public"
  21406. deprecated="not deprecated">
  21407. <exception name="IOException" type="java.io.IOException"/>
  21408. </constructor>
  21409. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  21410. abstract="false" native="false" synchronized="false"
  21411. static="false" final="false" visibility="public"
  21412. deprecated="not deprecated">
  21413. </method>
  21414. <method name="createValue" return="org.apache.hadoop.io.Text"
  21415. abstract="false" native="false" synchronized="false"
  21416. static="false" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. </method>
  21419. <method name="next" return="boolean"
  21420. abstract="false" native="false" synchronized="true"
  21421. static="false" final="false" visibility="public"
  21422. deprecated="not deprecated">
  21423. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  21424. <param name="value" type="org.apache.hadoop.io.Text"/>
  21425. <exception name="IOException" type="java.io.IOException"/>
  21426. <doc>
  21427. <![CDATA[Read a line.]]>
  21428. </doc>
  21429. </method>
  21430. <method name="getProgress" return="float"
  21431. abstract="false" native="false" synchronized="false"
  21432. static="false" final="false" visibility="public"
  21433. deprecated="not deprecated">
  21434. <doc>
  21435. <![CDATA[Get the progress within the split]]>
  21436. </doc>
  21437. </method>
  21438. <method name="getPos" return="long"
  21439. abstract="false" native="false" synchronized="true"
  21440. static="false" final="false" visibility="public"
  21441. deprecated="not deprecated">
  21442. <exception name="IOException" type="java.io.IOException"/>
  21443. </method>
  21444. <method name="close"
  21445. abstract="false" native="false" synchronized="true"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. <exception name="IOException" type="java.io.IOException"/>
  21449. </method>
  21450. <doc>
  21451. <![CDATA[Treats keys as offset in file and value as line.]]>
  21452. </doc>
  21453. </class>
  21454. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  21455. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  21456. <class name="LineRecordReader.LineReader" extends="java.lang.Object"
  21457. abstract="false"
  21458. static="true" final="false" visibility="public"
  21459. deprecated="not deprecated">
  21460. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  21461. static="false" final="false" visibility="public"
  21462. deprecated="not deprecated">
  21463. <exception name="IOException" type="java.io.IOException"/>
  21464. <doc>
  21465. <![CDATA[Create a line reader that reads from the given stream using the
  21466. <code>io.file.buffer.size</code> specified in the given
  21467. <code>Configuration</code>.
  21468. @param in input stream
  21469. @param conf configuration
  21470. @throws IOException]]>
  21471. </doc>
  21472. </constructor>
  21473. <method name="close"
  21474. abstract="false" native="false" synchronized="false"
  21475. static="false" final="false" visibility="public"
  21476. deprecated="not deprecated">
  21477. <exception name="IOException" type="java.io.IOException"/>
  21478. <doc>
  21479. <![CDATA[Close the underlying stream.
  21480. @throws IOException]]>
  21481. </doc>
  21482. </method>
  21483. <method name="readLine" return="int"
  21484. abstract="false" native="false" synchronized="false"
  21485. static="false" final="false" visibility="public"
  21486. deprecated="not deprecated">
  21487. <param name="str" type="org.apache.hadoop.io.Text"/>
  21488. <param name="maxLineLength" type="int"/>
  21489. <param name="maxBytesToConsume" type="int"/>
  21490. <exception name="IOException" type="java.io.IOException"/>
  21491. <doc>
  21492. <![CDATA[Read from the InputStream into the given Text.
  21493. @param str the object to store the given line
  21494. @param maxLineLength the maximum number of bytes to store into str.
  21495. @param maxBytesToConsume the maximum number of bytes to consume in this call.
  21496. @return the number of bytes read including the newline
  21497. @throws IOException if the underlying stream throws]]>
  21498. </doc>
  21499. </method>
  21500. <method name="readLine" return="int"
  21501. abstract="false" native="false" synchronized="false"
  21502. static="false" final="false" visibility="public"
  21503. deprecated="not deprecated">
  21504. <param name="str" type="org.apache.hadoop.io.Text"/>
  21505. <param name="maxLineLength" type="int"/>
  21506. <exception name="IOException" type="java.io.IOException"/>
  21507. <doc>
  21508. <![CDATA[Read from the InputStream into the given Text.
  21509. @param str the object to store the given line
  21510. @param maxLineLength the maximum number of bytes to store into str.
  21511. @return the number of bytes read including the newline
  21512. @throws IOException if the underlying stream throws]]>
  21513. </doc>
  21514. </method>
  21515. <method name="readLine" return="int"
  21516. abstract="false" native="false" synchronized="false"
  21517. static="false" final="false" visibility="public"
  21518. deprecated="not deprecated">
  21519. <param name="str" type="org.apache.hadoop.io.Text"/>
  21520. <exception name="IOException" type="java.io.IOException"/>
  21521. <doc>
  21522. <![CDATA[Read from the InputStream into the given Text.
  21523. @param str the object to store the given line
  21524. @return the number of bytes read including the newline
  21525. @throws IOException if the underlying stream throws]]>
  21526. </doc>
  21527. </method>
  21528. <doc>
  21529. <![CDATA[A class that provides a line reader from an input stream.]]>
  21530. </doc>
  21531. </class>
  21532. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  21533. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  21534. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  21535. abstract="false"
  21536. static="false" final="false" visibility="public"
  21537. deprecated="not deprecated">
  21538. <constructor name="MapFileOutputFormat"
  21539. static="false" final="false" visibility="public"
  21540. deprecated="not deprecated">
  21541. </constructor>
  21542. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  21543. abstract="false" native="false" synchronized="false"
  21544. static="false" final="false" visibility="public"
  21545. deprecated="not deprecated">
  21546. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21547. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21548. <param name="name" type="java.lang.String"/>
  21549. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  21550. <exception name="IOException" type="java.io.IOException"/>
  21551. </method>
  21552. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  21553. abstract="false" native="false" synchronized="false"
  21554. static="true" final="false" visibility="public"
  21555. deprecated="not deprecated">
  21556. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21557. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  21558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21559. <exception name="IOException" type="java.io.IOException"/>
  21560. <doc>
  21561. <![CDATA[Open the output generated by this format.]]>
  21562. </doc>
  21563. </method>
  21564. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  21565. abstract="false" native="false" synchronized="false"
  21566. static="true" final="false" visibility="public"
  21567. deprecated="not deprecated">
  21568. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  21569. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner&lt;K, V&gt;"/>
  21570. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  21571. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  21572. <exception name="IOException" type="java.io.IOException"/>
  21573. <doc>
  21574. <![CDATA[Get an entry from output generated by this class.]]>
  21575. </doc>
  21576. </method>
  21577. <doc>
  21578. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  21579. </doc>
  21580. </class>
  21581. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  21582. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  21583. <interface name="Mapper" abstract="true"
  21584. static="false" final="false" visibility="public"
  21585. deprecated="not deprecated">
  21586. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  21587. <implements name="org.apache.hadoop.io.Closeable"/>
  21588. <method name="map"
  21589. abstract="false" native="false" synchronized="false"
  21590. static="false" final="false" visibility="public"
  21591. deprecated="not deprecated">
  21592. <param name="key" type="K1"/>
  21593. <param name="value" type="V1"/>
  21594. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  21595. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21596. <exception name="IOException" type="java.io.IOException"/>
  21597. <doc>
  21598. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  21599. <p>Output pairs need not be of the same types as input pairs. A given
  21600. input pair may map to zero or many output pairs. Output pairs are
  21601. collected with calls to
  21602. {@link OutputCollector#collect(Object,Object)}.</p>
  21603. <p>Applications can use the {@link Reporter} provided to report progress
  21604. or just indicate that they are alive. In scenarios where the application
  21605. takes an insignificant amount of time to process individual key/value
  21606. pairs, this is crucial since the framework might assume that the task has
  21607. timed-out and kill that task. The other way of avoiding this is to set
  21608. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  21609. mapred.task.timeout</a> to a high-enough value (or even zero for no
  21610. time-outs).</p>
  21611. @param key the input key.
  21612. @param value the input value.
  21613. @param output collects mapped keys and values.
  21614. @param reporter facility to report progress.]]>
  21615. </doc>
  21616. </method>
  21617. <doc>
  21618. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  21619. <p>Maps are the individual tasks which transform input records into a
  21620. intermediate records. The transformed intermediate records need not be of
  21621. the same type as the input records. A given input pair may map to zero or
  21622. many output pairs.</p>
  21623. <p>The Hadoop Map-Reduce framework spawns one map task for each
  21624. {@link InputSplit} generated by the {@link InputFormat} for the job.
  21625. <code>Mapper</code> implementations can access the {@link JobConf} for the
  21626. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  21627. themselves. Similarly they can use the {@link Closeable#close()} method for
  21628. de-initialization.</p>
  21629. <p>The framework then calls
  21630. {@link #map(Object, Object, OutputCollector, Reporter)}
  21631. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  21632. <p>All intermediate values associated with a given output key are
  21633. subsequently grouped by the framework, and passed to a {@link Reducer} to
  21634. determine the final output. Users can control the grouping by specifying
  21635. a <code>Comparator</code> via
  21636. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  21637. <p>The grouped <code>Mapper</code> outputs are partitioned per
  21638. <code>Reducer</code>. Users can control which keys (and hence records) go to
  21639. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  21640. <p>Users can optionally specify a <code>combiner</code>, via
  21641. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  21642. intermediate outputs, which helps to cut down the amount of data transferred
  21643. from the <code>Mapper</code> to the <code>Reducer</code>.
  21644. <p>The intermediate, grouped outputs are always stored in
  21645. {@link SequenceFile}s. Applications can specify if and how the intermediate
  21646. outputs are to be compressed and which {@link CompressionCodec}s are to be
  21647. used via the <code>JobConf</code>.</p>
  21648. <p>If the job has
  21649. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  21650. reduces</a> then the output of the <code>Mapper</code> is directly written
  21651. to the {@link FileSystem} without grouping by keys.</p>
  21652. <p>Example:</p>
  21653. <p><blockquote><pre>
  21654. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  21655. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  21656. static enum MyCounters { NUM_RECORDS }
  21657. private String mapTaskId;
  21658. private String inputFile;
  21659. private int noRecords = 0;
  21660. public void configure(JobConf job) {
  21661. mapTaskId = job.get("mapred.task.id");
  21662. inputFile = job.get("mapred.input.file");
  21663. }
  21664. public void map(K key, V val,
  21665. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  21666. throws IOException {
  21667. // Process the &lt;key, value&gt; pair (assume this takes a while)
  21668. // ...
  21669. // ...
  21670. // Let the framework know that we are alive, and kicking!
  21671. // reporter.progress();
  21672. // Process some more
  21673. // ...
  21674. // ...
  21675. // Increment the no. of &lt;key, value&gt; pairs processed
  21676. ++noRecords;
  21677. // Increment counters
  21678. reporter.incrCounter(NUM_RECORDS, 1);
  21679. // Every 100 records update application-level status
  21680. if ((noRecords%100) == 0) {
  21681. reporter.setStatus(mapTaskId + " processed " + noRecords +
  21682. " from input-file: " + inputFile);
  21683. }
  21684. // Output the result
  21685. output.collect(key, val);
  21686. }
  21687. }
  21688. </pre></blockquote></p>
  21689. <p>Applications may write a custom {@link MapRunnable} to exert greater
  21690. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  21691. @see JobConf
  21692. @see InputFormat
  21693. @see Partitioner
  21694. @see Reducer
  21695. @see MapReduceBase
  21696. @see MapRunnable
  21697. @see SequenceFile]]>
  21698. </doc>
  21699. </interface>
  21700. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  21701. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  21702. <class name="MapReduceBase" extends="java.lang.Object"
  21703. abstract="false"
  21704. static="false" final="false" visibility="public"
  21705. deprecated="not deprecated">
  21706. <implements name="org.apache.hadoop.io.Closeable"/>
  21707. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  21708. <constructor name="MapReduceBase"
  21709. static="false" final="false" visibility="public"
  21710. deprecated="not deprecated">
  21711. </constructor>
  21712. <method name="close"
  21713. abstract="false" native="false" synchronized="false"
  21714. static="false" final="false" visibility="public"
  21715. deprecated="not deprecated">
  21716. <exception name="IOException" type="java.io.IOException"/>
  21717. <doc>
  21718. <![CDATA[Default implementation that does nothing.]]>
  21719. </doc>
  21720. </method>
  21721. <method name="configure"
  21722. abstract="false" native="false" synchronized="false"
  21723. static="false" final="false" visibility="public"
  21724. deprecated="not deprecated">
  21725. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21726. <doc>
  21727. <![CDATA[Default implementation that does nothing.]]>
  21728. </doc>
  21729. </method>
  21730. <doc>
  21731. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  21732. <p>Provides default no-op implementations for a few methods, most non-trivial
  21733. applications need to override some of them.</p>]]>
  21734. </doc>
  21735. </class>
  21736. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  21737. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  21738. <interface name="MapRunnable" abstract="true"
  21739. static="false" final="false" visibility="public"
  21740. deprecated="not deprecated">
  21741. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  21742. <method name="run"
  21743. abstract="false" native="false" synchronized="false"
  21744. static="false" final="false" visibility="public"
  21745. deprecated="not deprecated">
  21746. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  21747. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  21748. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21749. <exception name="IOException" type="java.io.IOException"/>
  21750. <doc>
  21751. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  21752. <p>Mapping of input records to output records is complete when this method
  21753. returns.</p>
  21754. @param input the {@link RecordReader} to read the input records.
  21755. @param output the {@link OutputCollector} to collect the outputrecords.
  21756. @param reporter {@link Reporter} to report progress, status-updates etc.
  21757. @throws IOException]]>
  21758. </doc>
  21759. </method>
  21760. <doc>
  21761. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  21762. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  21763. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  21764. @see Mapper]]>
  21765. </doc>
  21766. </interface>
  21767. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  21768. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  21769. <class name="MapRunner" extends="java.lang.Object"
  21770. abstract="false"
  21771. static="false" final="false" visibility="public"
  21772. deprecated="not deprecated">
  21773. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  21774. <constructor name="MapRunner"
  21775. static="false" final="false" visibility="public"
  21776. deprecated="not deprecated">
  21777. </constructor>
  21778. <method name="configure"
  21779. abstract="false" native="false" synchronized="false"
  21780. static="false" final="false" visibility="public"
  21781. deprecated="not deprecated">
  21782. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21783. </method>
  21784. <method name="run"
  21785. abstract="false" native="false" synchronized="false"
  21786. static="false" final="false" visibility="public"
  21787. deprecated="not deprecated">
  21788. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  21789. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  21790. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21791. <exception name="IOException" type="java.io.IOException"/>
  21792. </method>
  21793. <doc>
  21794. <![CDATA[Default {@link MapRunnable} implementation.]]>
  21795. </doc>
  21796. </class>
  21797. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  21798. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  21799. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  21800. abstract="true"
  21801. static="false" final="false" visibility="public"
  21802. deprecated="not deprecated">
  21803. <constructor name="MultiFileInputFormat"
  21804. static="false" final="false" visibility="public"
  21805. deprecated="not deprecated">
  21806. </constructor>
  21807. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  21808. abstract="false" native="false" synchronized="false"
  21809. static="false" final="false" visibility="public"
  21810. deprecated="not deprecated">
  21811. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21812. <param name="numSplits" type="int"/>
  21813. <exception name="IOException" type="java.io.IOException"/>
  21814. </method>
  21815. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  21816. abstract="true" native="false" synchronized="false"
  21817. static="false" final="false" visibility="public"
  21818. deprecated="not deprecated">
  21819. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  21820. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21821. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21822. <exception name="IOException" type="java.io.IOException"/>
  21823. </method>
  21824. <doc>
  21825. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  21826. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  21827. the files under the input paths. Each split returned contains <i>nearly</i>
  21828. equal content length. <br>
  21829. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  21830. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  21831. @see MultiFileSplit]]>
  21832. </doc>
  21833. </class>
  21834. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  21835. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  21836. <class name="MultiFileSplit" extends="java.lang.Object"
  21837. abstract="false"
  21838. static="false" final="false" visibility="public"
  21839. deprecated="not deprecated">
  21840. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  21841. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  21842. static="false" final="false" visibility="public"
  21843. deprecated="not deprecated">
  21844. </constructor>
  21845. <method name="getLength" return="long"
  21846. abstract="false" native="false" synchronized="false"
  21847. static="false" final="false" visibility="public"
  21848. deprecated="not deprecated">
  21849. </method>
  21850. <method name="getLengths" return="long[]"
  21851. abstract="false" native="false" synchronized="false"
  21852. static="false" final="false" visibility="public"
  21853. deprecated="not deprecated">
  21854. <doc>
  21855. <![CDATA[Returns an array containing the lengths of the files in
  21856. the split]]>
  21857. </doc>
  21858. </method>
  21859. <method name="getLength" return="long"
  21860. abstract="false" native="false" synchronized="false"
  21861. static="false" final="false" visibility="public"
  21862. deprecated="not deprecated">
  21863. <param name="i" type="int"/>
  21864. <doc>
  21865. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  21866. </doc>
  21867. </method>
  21868. <method name="getNumPaths" return="int"
  21869. abstract="false" native="false" synchronized="false"
  21870. static="false" final="false" visibility="public"
  21871. deprecated="not deprecated">
  21872. <doc>
  21873. <![CDATA[Returns the number of Paths in the split]]>
  21874. </doc>
  21875. </method>
  21876. <method name="getPath" return="org.apache.hadoop.fs.Path"
  21877. abstract="false" native="false" synchronized="false"
  21878. static="false" final="false" visibility="public"
  21879. deprecated="not deprecated">
  21880. <param name="i" type="int"/>
  21881. <doc>
  21882. <![CDATA[Returns the i<sup>th</sup> Path]]>
  21883. </doc>
  21884. </method>
  21885. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  21886. abstract="false" native="false" synchronized="false"
  21887. static="false" final="false" visibility="public"
  21888. deprecated="not deprecated">
  21889. <doc>
  21890. <![CDATA[Returns all the Paths in the split]]>
  21891. </doc>
  21892. </method>
  21893. <method name="getLocations" return="java.lang.String[]"
  21894. abstract="false" native="false" synchronized="false"
  21895. static="false" final="false" visibility="public"
  21896. deprecated="not deprecated">
  21897. <exception name="IOException" type="java.io.IOException"/>
  21898. </method>
  21899. <method name="readFields"
  21900. abstract="false" native="false" synchronized="false"
  21901. static="false" final="false" visibility="public"
  21902. deprecated="not deprecated">
  21903. <param name="in" type="java.io.DataInput"/>
  21904. <exception name="IOException" type="java.io.IOException"/>
  21905. </method>
  21906. <method name="write"
  21907. abstract="false" native="false" synchronized="false"
  21908. static="false" final="false" visibility="public"
  21909. deprecated="not deprecated">
  21910. <param name="out" type="java.io.DataOutput"/>
  21911. <exception name="IOException" type="java.io.IOException"/>
  21912. </method>
  21913. <method name="toString" return="java.lang.String"
  21914. abstract="false" native="false" synchronized="false"
  21915. static="false" final="false" visibility="public"
  21916. deprecated="not deprecated">
  21917. </method>
  21918. <doc>
  21919. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  21920. class does not represent a split of a file, but a split of input files
  21921. into smaller sets. The atomic unit of split is a file. <br>
  21922. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  21923. reading one record per file.
  21924. @see FileSplit
  21925. @see MultiFileInputFormat]]>
  21926. </doc>
  21927. </class>
  21928. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  21929. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  21930. <interface name="OutputCollector" abstract="true"
  21931. static="false" final="false" visibility="public"
  21932. deprecated="not deprecated">
  21933. <method name="collect"
  21934. abstract="false" native="false" synchronized="false"
  21935. static="false" final="false" visibility="public"
  21936. deprecated="not deprecated">
  21937. <param name="key" type="K"/>
  21938. <param name="value" type="V"/>
  21939. <exception name="IOException" type="java.io.IOException"/>
  21940. <doc>
  21941. <![CDATA[Adds a key/value pair to the output.
  21942. @param key the key to collect.
  21943. @param value to value to collect.
  21944. @throws IOException]]>
  21945. </doc>
  21946. </method>
  21947. <doc>
  21948. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  21949. and {@link Reducer}s.
  21950. <p><code>OutputCollector</code> is the generalization of the facility
  21951. provided by the Map-Reduce framework to collect data output by either the
  21952. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  21953. or the output of the job.</p>]]>
  21954. </doc>
  21955. </interface>
  21956. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  21957. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  21958. <interface name="OutputFormat" abstract="true"
  21959. static="false" final="false" visibility="public"
  21960. deprecated="not deprecated">
  21961. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  21962. abstract="false" native="false" synchronized="false"
  21963. static="false" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21966. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21967. <param name="name" type="java.lang.String"/>
  21968. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  21969. <exception name="IOException" type="java.io.IOException"/>
  21970. <doc>
  21971. <![CDATA[Get the {@link RecordWriter} for the given job.
  21972. @param ignored
  21973. @param job configuration for the job whose output is being written.
  21974. @param name the unique name for this part of the output.
  21975. @param progress mechanism for reporting progress while writing to file.
  21976. @return a {@link RecordWriter} to write the output for the job.
  21977. @throws IOException]]>
  21978. </doc>
  21979. </method>
  21980. <method name="checkOutputSpecs"
  21981. abstract="false" native="false" synchronized="false"
  21982. static="false" final="false" visibility="public"
  21983. deprecated="not deprecated">
  21984. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21985. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21986. <exception name="IOException" type="java.io.IOException"/>
  21987. <doc>
  21988. <![CDATA[Check for validity of the output-specification for the job.
  21989. <p>This is to validate the output specification for the job when it is
  21990. a job is submitted. Typically checks that it does not already exist,
  21991. throwing an exception when it already exists, so that output is not
  21992. overwritten.</p>
  21993. @param ignored
  21994. @param job job configuration.
  21995. @throws IOException when output should not be attempted]]>
  21996. </doc>
  21997. </method>
  21998. <doc>
  21999. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  22000. Map-Reduce job.
  22001. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  22002. job to:<p>
  22003. <ol>
  22004. <li>
  22005. Validate the output-specification of the job. For e.g. check that the
  22006. output directory doesn't already exist.
  22007. <li>
  22008. Provide the {@link RecordWriter} implementation to be used to write out
  22009. the output files of the job. Output files are stored in a
  22010. {@link FileSystem}.
  22011. </li>
  22012. </ol>
  22013. @see RecordWriter
  22014. @see JobConf]]>
  22015. </doc>
  22016. </interface>
  22017. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  22018. <!-- start class org.apache.hadoop.mapred.OutputFormatBase -->
  22019. <class name="OutputFormatBase" extends="java.lang.Object"
  22020. abstract="true"
  22021. static="false" final="false" visibility="public"
  22022. deprecated="Use {@link FileOutputFormat}">
  22023. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  22024. <constructor name="OutputFormatBase"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. </constructor>
  22028. <method name="setCompressOutput"
  22029. abstract="false" native="false" synchronized="false"
  22030. static="true" final="false" visibility="public"
  22031. deprecated="not deprecated">
  22032. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22033. <param name="compress" type="boolean"/>
  22034. <doc>
  22035. <![CDATA[Set whether the output of the job is compressed.
  22036. @param conf the {@link JobConf} to modify
  22037. @param compress should the output of the job be compressed?]]>
  22038. </doc>
  22039. </method>
  22040. <method name="getCompressOutput" return="boolean"
  22041. abstract="false" native="false" synchronized="false"
  22042. static="true" final="false" visibility="public"
  22043. deprecated="not deprecated">
  22044. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22045. <doc>
  22046. <![CDATA[Is the job output compressed?
  22047. @param conf the {@link JobConf} to look in
  22048. @return <code>true</code> if the job output should be compressed,
  22049. <code>false</code> otherwise]]>
  22050. </doc>
  22051. </method>
  22052. <method name="setOutputCompressorClass"
  22053. abstract="false" native="false" synchronized="false"
  22054. static="true" final="false" visibility="public"
  22055. deprecated="not deprecated">
  22056. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22057. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  22058. <doc>
  22059. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  22060. @param conf the {@link JobConf} to modify
  22061. @param codecClass the {@link CompressionCodec} to be used to
  22062. compress the job outputs]]>
  22063. </doc>
  22064. </method>
  22065. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  22066. abstract="false" native="false" synchronized="false"
  22067. static="true" final="false" visibility="public"
  22068. deprecated="not deprecated">
  22069. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22070. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  22071. <doc>
  22072. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  22073. @param conf the {@link JobConf} to look in
  22074. @param defaultValue the {@link CompressionCodec} to return if not set
  22075. @return the {@link CompressionCodec} to be used to compress the
  22076. job outputs
  22077. @throws IllegalArgumentException if the class was specified, but not found]]>
  22078. </doc>
  22079. </method>
  22080. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  22081. abstract="true" native="false" synchronized="false"
  22082. static="false" final="false" visibility="public"
  22083. deprecated="not deprecated">
  22084. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  22085. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22086. <param name="name" type="java.lang.String"/>
  22087. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22088. <exception name="IOException" type="java.io.IOException"/>
  22089. </method>
  22090. <method name="checkOutputSpecs"
  22091. abstract="false" native="false" synchronized="false"
  22092. static="false" final="false" visibility="public"
  22093. deprecated="not deprecated">
  22094. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  22095. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22096. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  22097. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  22098. <exception name="IOException" type="java.io.IOException"/>
  22099. </method>
  22100. <doc>
  22101. <![CDATA[A base class for {@link OutputFormat}.
  22102. @deprecated Use {@link FileOutputFormat}]]>
  22103. </doc>
  22104. </class>
  22105. <!-- end class org.apache.hadoop.mapred.OutputFormatBase -->
  22106. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  22107. <class name="OutputLogFilter" extends="java.lang.Object"
  22108. abstract="false"
  22109. static="false" final="false" visibility="public"
  22110. deprecated="not deprecated">
  22111. <implements name="org.apache.hadoop.fs.PathFilter"/>
  22112. <constructor name="OutputLogFilter"
  22113. static="false" final="false" visibility="public"
  22114. deprecated="not deprecated">
  22115. </constructor>
  22116. <method name="accept" return="boolean"
  22117. abstract="false" native="false" synchronized="false"
  22118. static="false" final="false" visibility="public"
  22119. deprecated="not deprecated">
  22120. <param name="path" type="org.apache.hadoop.fs.Path"/>
  22121. </method>
  22122. <doc>
  22123. <![CDATA[This class filters log files from directory given
  22124. It doesnt accept paths having _logs.
  22125. This can be used to list paths of output directory as follows:
  22126. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  22127. new OutputLogFilter()));]]>
  22128. </doc>
  22129. </class>
  22130. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  22131. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  22132. <interface name="Partitioner" abstract="true"
  22133. static="false" final="false" visibility="public"
  22134. deprecated="not deprecated">
  22135. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  22136. <method name="getPartition" return="int"
  22137. abstract="false" native="false" synchronized="false"
  22138. static="false" final="false" visibility="public"
  22139. deprecated="not deprecated">
  22140. <param name="key" type="K2"/>
  22141. <param name="value" type="V2"/>
  22142. <param name="numPartitions" type="int"/>
  22143. <doc>
  22144. <![CDATA[Get the paritition number for a given key (hence record) given the total
  22145. number of partitions i.e. number of reduce-tasks for the job.
  22146. <p>Typically a hash function on a all or a subset of the key.</p>
  22147. @param key the key to be paritioned.
  22148. @param value the entry value.
  22149. @param numPartitions the total number of partitions.
  22150. @return the partition number for the <code>key</code>.]]>
  22151. </doc>
  22152. </method>
  22153. <doc>
  22154. <![CDATA[Partitions the key space.
  22155. <p><code>Partitioner</code> controls the partitioning of the keys of the
  22156. intermediate map-outputs. The key (or a subset of the key) is used to derive
  22157. the partition, typically by a hash function. The total number of partitions
  22158. is the same as the number of reduce tasks for the job. Hence this controls
  22159. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  22160. record) is sent for reduction.</p>
  22161. @see Reducer]]>
  22162. </doc>
  22163. </interface>
  22164. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  22165. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  22166. <interface name="RecordReader" abstract="true"
  22167. static="false" final="false" visibility="public"
  22168. deprecated="not deprecated">
  22169. <method name="next" return="boolean"
  22170. abstract="false" native="false" synchronized="false"
  22171. static="false" final="false" visibility="public"
  22172. deprecated="not deprecated">
  22173. <param name="key" type="K"/>
  22174. <param name="value" type="V"/>
  22175. <exception name="IOException" type="java.io.IOException"/>
  22176. <doc>
  22177. <![CDATA[Reads the next key/value pair from the input for processing.
  22178. @param key the key to read data into
  22179. @param value the value to read data into
  22180. @return true iff a key/value was read, false if at EOF]]>
  22181. </doc>
  22182. </method>
  22183. <method name="createKey" return="K"
  22184. abstract="false" native="false" synchronized="false"
  22185. static="false" final="false" visibility="public"
  22186. deprecated="not deprecated">
  22187. <doc>
  22188. <![CDATA[Create an object of the appropriate type to be used as a key.
  22189. @return a new key object.]]>
  22190. </doc>
  22191. </method>
  22192. <method name="createValue" return="V"
  22193. abstract="false" native="false" synchronized="false"
  22194. static="false" final="false" visibility="public"
  22195. deprecated="not deprecated">
  22196. <doc>
  22197. <![CDATA[Create an object of the appropriate type to be used as a value.
  22198. @return a new value object.]]>
  22199. </doc>
  22200. </method>
  22201. <method name="getPos" return="long"
  22202. abstract="false" native="false" synchronized="false"
  22203. static="false" final="false" visibility="public"
  22204. deprecated="not deprecated">
  22205. <exception name="IOException" type="java.io.IOException"/>
  22206. <doc>
  22207. <![CDATA[Returns the current position in the input.
  22208. @return the current position in the input.
  22209. @throws IOException]]>
  22210. </doc>
  22211. </method>
  22212. <method name="close"
  22213. abstract="false" native="false" synchronized="false"
  22214. static="false" final="false" visibility="public"
  22215. deprecated="not deprecated">
  22216. <exception name="IOException" type="java.io.IOException"/>
  22217. <doc>
  22218. <![CDATA[Close this {@link InputSplit} to future operations.
  22219. @throws IOException]]>
  22220. </doc>
  22221. </method>
  22222. <method name="getProgress" return="float"
  22223. abstract="false" native="false" synchronized="false"
  22224. static="false" final="false" visibility="public"
  22225. deprecated="not deprecated">
  22226. <exception name="IOException" type="java.io.IOException"/>
  22227. <doc>
  22228. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  22229. has been processed by?
  22230. @return progress from <code>0.0</code> to <code>1.0</code>.
  22231. @throws IOException]]>
  22232. </doc>
  22233. </method>
  22234. <doc>
  22235. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  22236. {@link InputSplit}.
  22237. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  22238. the input, provided by the <code>InputSplit</code>, and presents a
  22239. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  22240. processing. It thus assumes the responsibility of processing record
  22241. boundaries and presenting the tasks with keys and values.</p>
  22242. @see InputSplit
  22243. @see InputFormat]]>
  22244. </doc>
  22245. </interface>
  22246. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  22247. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  22248. <interface name="RecordWriter" abstract="true"
  22249. static="false" final="false" visibility="public"
  22250. deprecated="not deprecated">
  22251. <method name="write"
  22252. abstract="false" native="false" synchronized="false"
  22253. static="false" final="false" visibility="public"
  22254. deprecated="not deprecated">
  22255. <param name="key" type="K"/>
  22256. <param name="value" type="V"/>
  22257. <exception name="IOException" type="java.io.IOException"/>
  22258. <doc>
  22259. <![CDATA[Writes a key/value pair.
  22260. @param key the key to write.
  22261. @param value the value to write.
  22262. @throws IOException]]>
  22263. </doc>
  22264. </method>
  22265. <method name="close"
  22266. abstract="false" native="false" synchronized="false"
  22267. static="false" final="false" visibility="public"
  22268. deprecated="not deprecated">
  22269. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  22270. <exception name="IOException" type="java.io.IOException"/>
  22271. <doc>
  22272. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  22273. @param reporter facility to report progress.
  22274. @throws IOException]]>
  22275. </doc>
  22276. </method>
  22277. <doc>
  22278. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  22279. to an output file.
  22280. <p><code>RecordWriter</code> implementations write the job outputs to the
  22281. {@link FileSystem}.
  22282. @see OutputFormat]]>
  22283. </doc>
  22284. </interface>
  22285. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  22286. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  22287. <interface name="Reducer" abstract="true"
  22288. static="false" final="false" visibility="public"
  22289. deprecated="not deprecated">
  22290. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  22291. <implements name="org.apache.hadoop.io.Closeable"/>
  22292. <method name="reduce"
  22293. abstract="false" native="false" synchronized="false"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. <param name="key" type="K2"/>
  22297. <param name="values" type="java.util.Iterator&lt;V2&gt;"/>
  22298. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K3, V3&gt;"/>
  22299. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  22300. <exception name="IOException" type="java.io.IOException"/>
  22301. <doc>
  22302. <![CDATA[<i>Reduces</i> values for a given key.
  22303. <p>The framework calls this method for each
  22304. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  22305. Output values must be of the same type as input values. Input keys must
  22306. not be altered. The framework will <b>reuse</b> the key and value objects
  22307. that are passed into the reduce, therefore the application should clone
  22308. the objects they want to keep a copy of. In many cases, all values are
  22309. combined into zero or one value.
  22310. </p>
  22311. <p>Output pairs are collected with calls to
  22312. {@link OutputCollector#collect(Object,Object)}.</p>
  22313. <p>Applications can use the {@link Reporter} provided to report progress
  22314. or just indicate that they are alive. In scenarios where the application
  22315. takes an insignificant amount of time to process individual key/value
  22316. pairs, this is crucial since the framework might assume that the task has
  22317. timed-out and kill that task. The other way of avoiding this is to set
  22318. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  22319. mapred.task.timeout</a> to a high-enough value (or even zero for no
  22320. time-outs).</p>
  22321. @param key the key.
  22322. @param values the list of values to reduce.
  22323. @param output to collect keys and combined values.
  22324. @param reporter facility to report progress.]]>
  22325. </doc>
  22326. </method>
  22327. <doc>
  22328. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  22329. values.
  22330. <p>The number of <code>Reducer</code>s for the job is set by the user via
  22331. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  22332. can access the {@link JobConf} for the job via the
  22333. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  22334. Similarly they can use the {@link Closeable#close()} method for
  22335. de-initialization.</p>
  22336. <p><code>Reducer</code> has 3 primary phases:</p>
  22337. <ol>
  22338. <li>
  22339. <h4 id="Shuffle">Shuffle</h4>
  22340. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  22341. In the phase the framework, for each <code>Reducer</code>, fetches the
  22342. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  22343. </p>
  22344. </li>
  22345. <li>
  22346. <h4 id="Sort">Sort</h4>
  22347. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  22348. (since different <code>Mapper</code>s may have output the same key) in this
  22349. stage.</p>
  22350. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  22351. being fetched they are merged.</p>
  22352. <h5 id="SecondarySort">SecondarySort</h5>
  22353. <p>If equivalence rules for keys while grouping the intermediates are
  22354. different from those for grouping keys before reduction, then one may
  22355. specify a <code>Comparator</code> via
  22356. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  22357. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  22358. control how intermediate keys are grouped, these can be used in conjunction
  22359. to simulate <i>secondary sort on values</i>.</p>
  22360. For example, say that you want to find duplicate web pages and tag them
  22361. all with the url of the "best" known example. You would set up the job
  22362. like:
  22363. <ul>
  22364. <li>Map Input Key: url</li>
  22365. <li>Map Input Value: document</li>
  22366. <li>Map Output Key: document checksum, url pagerank</li>
  22367. <li>Map Output Value: url</li>
  22368. <li>Partitioner: by checksum</li>
  22369. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  22370. <li>OutputValueGroupingComparator: by checksum</li>
  22371. </ul>
  22372. </li>
  22373. <li>
  22374. <h4 id="Reduce">Reduce</h4>
  22375. <p>In this phase the
  22376. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  22377. method is called for each <code>&lt;key, (list of values)></code> pair in
  22378. the grouped inputs.</p>
  22379. <p>The output of the reduce task is typically written to the
  22380. {@link FileSystem} via
  22381. {@link OutputCollector#collect(Object, Object)}.</p>
  22382. </li>
  22383. </ol>
  22384. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  22385. <p>Example:</p>
  22386. <p><blockquote><pre>
  22387. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  22388. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  22389. static enum MyCounters { NUM_RECORDS }
  22390. private String reduceTaskId;
  22391. private int noKeys = 0;
  22392. public void configure(JobConf job) {
  22393. reduceTaskId = job.get("mapred.task.id");
  22394. }
  22395. public void reduce(K key, Iterator&lt;V&gt; values,
  22396. OutputCollector&lt;K, V&gt; output,
  22397. Reporter reporter)
  22398. throws IOException {
  22399. // Process
  22400. int noValues = 0;
  22401. while (values.hasNext()) {
  22402. V value = values.next();
  22403. // Increment the no. of values for this key
  22404. ++noValues;
  22405. // Process the &lt;key, value&gt; pair (assume this takes a while)
  22406. // ...
  22407. // ...
  22408. // Let the framework know that we are alive, and kicking!
  22409. if ((noValues%10) == 0) {
  22410. reporter.progress();
  22411. }
  22412. // Process some more
  22413. // ...
  22414. // ...
  22415. // Output the &lt;key, value&gt;
  22416. output.collect(key, value);
  22417. }
  22418. // Increment the no. of &lt;key, list of values&gt; pairs processed
  22419. ++noKeys;
  22420. // Increment counters
  22421. reporter.incrCounter(NUM_RECORDS, 1);
  22422. // Every 100 keys update application-level status
  22423. if ((noKeys%100) == 0) {
  22424. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  22425. }
  22426. }
  22427. }
  22428. </pre></blockquote></p>
  22429. @see Mapper
  22430. @see Partitioner
  22431. @see Reporter
  22432. @see MapReduceBase]]>
  22433. </doc>
  22434. </interface>
  22435. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  22436. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  22437. <interface name="Reporter" abstract="true"
  22438. static="false" final="false" visibility="public"
  22439. deprecated="not deprecated">
  22440. <implements name="org.apache.hadoop.util.Progressable"/>
  22441. <method name="setStatus"
  22442. abstract="false" native="false" synchronized="false"
  22443. static="false" final="false" visibility="public"
  22444. deprecated="not deprecated">
  22445. <param name="status" type="java.lang.String"/>
  22446. <doc>
  22447. <![CDATA[Set the status description for the task.
  22448. @param status brief description of the current status.]]>
  22449. </doc>
  22450. </method>
  22451. <method name="incrCounter"
  22452. abstract="false" native="false" synchronized="false"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="not deprecated">
  22455. <param name="key" type="java.lang.Enum"/>
  22456. <param name="amount" type="long"/>
  22457. <doc>
  22458. <![CDATA[Increments the counter identified by the key, which can be of
  22459. any {@link Enum} type, by the specified amount.
  22460. @param key key to identify the counter to be incremented. The key can be
  22461. be any <code>Enum</code>.
  22462. @param amount A non-negative amount by which the counter is to
  22463. be incremented.]]>
  22464. </doc>
  22465. </method>
  22466. <method name="incrCounter"
  22467. abstract="false" native="false" synchronized="false"
  22468. static="false" final="false" visibility="public"
  22469. deprecated="not deprecated">
  22470. <param name="group" type="java.lang.String"/>
  22471. <param name="counter" type="java.lang.String"/>
  22472. <param name="amount" type="long"/>
  22473. <doc>
  22474. <![CDATA[Increments the counter identified by the group and counter name
  22475. by the specified amount.
  22476. @param group name to identify the group of the counter to be incremented.
  22477. @param counter name to identify the counter within the group.
  22478. @param amount A non-negative amount by which the counter is to
  22479. be incremented.]]>
  22480. </doc>
  22481. </method>
  22482. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  22483. abstract="false" native="false" synchronized="false"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  22487. <doc>
  22488. <![CDATA[Get the {@link InputSplit} object for a map.
  22489. @return the <code>InputSplit</code> that the map is reading from.
  22490. @throws UnsupportedOperationException if called outside a mapper]]>
  22491. </doc>
  22492. </method>
  22493. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  22494. transient="false" volatile="false"
  22495. static="true" final="true" visibility="public"
  22496. deprecated="not deprecated">
  22497. <doc>
  22498. <![CDATA[A constant of Reporter type that does nothing.]]>
  22499. </doc>
  22500. </field>
  22501. <doc>
  22502. <![CDATA[A facility for Map-Reduce applications to report progress and update
  22503. counters, status information etc.
  22504. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  22505. provided to report progress or just indicate that they are alive. In
  22506. scenarios where the application takes an insignificant amount of time to
  22507. process individual key/value pairs, this is crucial since the framework
  22508. might assume that the task has timed-out and kill that task.
  22509. <p>Applications can also update {@link Counters} via the provided
  22510. <code>Reporter</code> .</p>
  22511. @see Progressable
  22512. @see Counters]]>
  22513. </doc>
  22514. </interface>
  22515. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  22516. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  22517. <interface name="RunningJob" abstract="true"
  22518. static="false" final="false" visibility="public"
  22519. deprecated="not deprecated">
  22520. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  22521. abstract="false" native="false" synchronized="false"
  22522. static="false" final="false" visibility="public"
  22523. deprecated="not deprecated">
  22524. <doc>
  22525. <![CDATA[Get the job identifier.
  22526. @return the job identifier.]]>
  22527. </doc>
  22528. </method>
  22529. <method name="getJobID" return="java.lang.String"
  22530. abstract="false" native="false" synchronized="false"
  22531. static="false" final="false" visibility="public"
  22532. deprecated="This method is deprecated and will be removed. Applications should
  22533. rather use {@link #getID()}.">
  22534. <doc>
  22535. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  22536. rather use {@link #getID()}.]]>
  22537. </doc>
  22538. </method>
  22539. <method name="getJobName" return="java.lang.String"
  22540. abstract="false" native="false" synchronized="false"
  22541. static="false" final="false" visibility="public"
  22542. deprecated="not deprecated">
  22543. <doc>
  22544. <![CDATA[Get the name of the job.
  22545. @return the name of the job.]]>
  22546. </doc>
  22547. </method>
  22548. <method name="getJobFile" return="java.lang.String"
  22549. abstract="false" native="false" synchronized="false"
  22550. static="false" final="false" visibility="public"
  22551. deprecated="not deprecated">
  22552. <doc>
  22553. <![CDATA[Get the path of the submitted job configuration.
  22554. @return the path of the submitted job configuration.]]>
  22555. </doc>
  22556. </method>
  22557. <method name="getTrackingURL" return="java.lang.String"
  22558. abstract="false" native="false" synchronized="false"
  22559. static="false" final="false" visibility="public"
  22560. deprecated="not deprecated">
  22561. <doc>
  22562. <![CDATA[Get the URL where some job progress information will be displayed.
  22563. @return the URL where some job progress information will be displayed.]]>
  22564. </doc>
  22565. </method>
  22566. <method name="mapProgress" return="float"
  22567. abstract="false" native="false" synchronized="false"
  22568. static="false" final="false" visibility="public"
  22569. deprecated="not deprecated">
  22570. <exception name="IOException" type="java.io.IOException"/>
  22571. <doc>
  22572. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  22573. and 1.0. When all map tasks have completed, the function returns 1.0.
  22574. @return the progress of the job's map-tasks.
  22575. @throws IOException]]>
  22576. </doc>
  22577. </method>
  22578. <method name="reduceProgress" return="float"
  22579. abstract="false" native="false" synchronized="false"
  22580. static="false" final="false" visibility="public"
  22581. deprecated="not deprecated">
  22582. <exception name="IOException" type="java.io.IOException"/>
  22583. <doc>
  22584. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  22585. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  22586. @return the progress of the job's reduce-tasks.
  22587. @throws IOException]]>
  22588. </doc>
  22589. </method>
  22590. <method name="isComplete" return="boolean"
  22591. abstract="false" native="false" synchronized="false"
  22592. static="false" final="false" visibility="public"
  22593. deprecated="not deprecated">
  22594. <exception name="IOException" type="java.io.IOException"/>
  22595. <doc>
  22596. <![CDATA[Check if the job is finished or not.
  22597. This is a non-blocking call.
  22598. @return <code>true</code> if the job is complete, else <code>false</code>.
  22599. @throws IOException]]>
  22600. </doc>
  22601. </method>
  22602. <method name="isSuccessful" return="boolean"
  22603. abstract="false" native="false" synchronized="false"
  22604. static="false" final="false" visibility="public"
  22605. deprecated="not deprecated">
  22606. <exception name="IOException" type="java.io.IOException"/>
  22607. <doc>
  22608. <![CDATA[Check if the job completed successfully.
  22609. @return <code>true</code> if the job succeeded, else <code>false</code>.
  22610. @throws IOException]]>
  22611. </doc>
  22612. </method>
  22613. <method name="waitForCompletion"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="false" visibility="public"
  22616. deprecated="not deprecated">
  22617. <exception name="IOException" type="java.io.IOException"/>
  22618. <doc>
  22619. <![CDATA[Blocks until the job is complete.
  22620. @throws IOException]]>
  22621. </doc>
  22622. </method>
  22623. <method name="killJob"
  22624. abstract="false" native="false" synchronized="false"
  22625. static="false" final="false" visibility="public"
  22626. deprecated="not deprecated">
  22627. <exception name="IOException" type="java.io.IOException"/>
  22628. <doc>
  22629. <![CDATA[Kill the running job. Blocks until all job tasks have been
  22630. killed as well. If the job is no longer running, it simply returns.
  22631. @throws IOException]]>
  22632. </doc>
  22633. </method>
  22634. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  22635. abstract="false" native="false" synchronized="false"
  22636. static="false" final="false" visibility="public"
  22637. deprecated="not deprecated">
  22638. <param name="startFrom" type="int"/>
  22639. <exception name="IOException" type="java.io.IOException"/>
  22640. <doc>
  22641. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  22642. @param startFrom index to start fetching events from
  22643. @return an array of {@link TaskCompletionEvent}s
  22644. @throws IOException]]>
  22645. </doc>
  22646. </method>
  22647. <method name="killTask"
  22648. abstract="false" native="false" synchronized="false"
  22649. static="false" final="false" visibility="public"
  22650. deprecated="not deprecated">
  22651. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22652. <param name="shouldFail" type="boolean"/>
  22653. <exception name="IOException" type="java.io.IOException"/>
  22654. <doc>
  22655. <![CDATA[Kill indicated task attempt.
  22656. @param taskId the id of the task to be terminated.
  22657. @param shouldFail if true the task is failed and added to failed tasks
  22658. list, otherwise it is just killed, w/o affecting
  22659. job failure status.
  22660. @throws IOException]]>
  22661. </doc>
  22662. </method>
  22663. <method name="killTask"
  22664. abstract="false" native="false" synchronized="false"
  22665. static="false" final="false" visibility="public"
  22666. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  22667. <param name="taskId" type="java.lang.String"/>
  22668. <param name="shouldFail" type="boolean"/>
  22669. <exception name="IOException" type="java.io.IOException"/>
  22670. <doc>
  22671. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  22672. </doc>
  22673. </method>
  22674. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  22675. abstract="false" native="false" synchronized="false"
  22676. static="false" final="false" visibility="public"
  22677. deprecated="not deprecated">
  22678. <exception name="IOException" type="java.io.IOException"/>
  22679. <doc>
  22680. <![CDATA[Gets the counters for this job.
  22681. @return the counters for this job.
  22682. @throws IOException]]>
  22683. </doc>
  22684. </method>
  22685. <doc>
  22686. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  22687. running Map-Reduce job.
  22688. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  22689. and then query the running-job for details such as name, configuration,
  22690. progress etc.</p>
  22691. @see JobClient]]>
  22692. </doc>
  22693. </interface>
  22694. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  22695. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  22696. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  22697. abstract="false"
  22698. static="false" final="false" visibility="public"
  22699. deprecated="not deprecated">
  22700. <constructor name="SequenceFileAsBinaryInputFormat"
  22701. static="false" final="false" visibility="public"
  22702. deprecated="not deprecated">
  22703. </constructor>
  22704. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  22705. abstract="false" native="false" synchronized="false"
  22706. static="false" final="false" visibility="public"
  22707. deprecated="not deprecated">
  22708. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  22709. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22710. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  22711. <exception name="IOException" type="java.io.IOException"/>
  22712. </method>
  22713. <doc>
  22714. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  22715. format.]]>
  22716. </doc>
  22717. </class>
  22718. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  22719. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  22720. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  22721. abstract="false"
  22722. static="true" final="false" visibility="public"
  22723. deprecated="not deprecated">
  22724. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"/>
  22725. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  22726. static="false" final="false" visibility="public"
  22727. deprecated="not deprecated">
  22728. <exception name="IOException" type="java.io.IOException"/>
  22729. </constructor>
  22730. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  22731. abstract="false" native="false" synchronized="false"
  22732. static="false" final="false" visibility="public"
  22733. deprecated="not deprecated">
  22734. </method>
  22735. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  22736. abstract="false" native="false" synchronized="false"
  22737. static="false" final="false" visibility="public"
  22738. deprecated="not deprecated">
  22739. </method>
  22740. <method name="getKeyClassName" return="java.lang.String"
  22741. abstract="false" native="false" synchronized="false"
  22742. static="false" final="false" visibility="public"
  22743. deprecated="not deprecated">
  22744. <doc>
  22745. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  22746. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  22747. </doc>
  22748. </method>
  22749. <method name="getValueClassName" return="java.lang.String"
  22750. abstract="false" native="false" synchronized="false"
  22751. static="false" final="false" visibility="public"
  22752. deprecated="not deprecated">
  22753. <doc>
  22754. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  22755. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  22756. </doc>
  22757. </method>
  22758. <method name="next" return="boolean"
  22759. abstract="false" native="false" synchronized="true"
  22760. static="false" final="false" visibility="public"
  22761. deprecated="not deprecated">
  22762. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  22763. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  22764. <exception name="IOException" type="java.io.IOException"/>
  22765. <doc>
  22766. <![CDATA[Read raw bytes from a SequenceFile.]]>
  22767. </doc>
  22768. </method>
  22769. <method name="getPos" return="long"
  22770. abstract="false" native="false" synchronized="false"
  22771. static="false" final="false" visibility="public"
  22772. deprecated="not deprecated">
  22773. <exception name="IOException" type="java.io.IOException"/>
  22774. </method>
  22775. <method name="close"
  22776. abstract="false" native="false" synchronized="false"
  22777. static="false" final="false" visibility="public"
  22778. deprecated="not deprecated">
  22779. <exception name="IOException" type="java.io.IOException"/>
  22780. </method>
  22781. <method name="getProgress" return="float"
  22782. abstract="false" native="false" synchronized="false"
  22783. static="false" final="false" visibility="public"
  22784. deprecated="not deprecated">
  22785. <exception name="IOException" type="java.io.IOException"/>
  22786. <doc>
  22787. <![CDATA[Return the progress within the input split
  22788. @return 0.0 to 1.0 of the input byte range]]>
  22789. </doc>
  22790. </method>
  22791. <doc>
  22792. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  22793. </doc>
  22794. </class>
  22795. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  22796. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  22797. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  22798. abstract="false"
  22799. static="false" final="false" visibility="public"
  22800. deprecated="not deprecated">
  22801. <constructor name="SequenceFileAsBinaryOutputFormat"
  22802. static="false" final="false" visibility="public"
  22803. deprecated="not deprecated">
  22804. </constructor>
  22805. <method name="setSequenceFileOutputKeyClass"
  22806. abstract="false" native="false" synchronized="false"
  22807. static="true" final="false" visibility="public"
  22808. deprecated="not deprecated">
  22809. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22810. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22811. <doc>
  22812. <![CDATA[Set the key class for the {@link SequenceFile}
  22813. <p>This allows the user to specify the key class to be different
  22814. from the actual class ({@link BytesWritable}) used for writing </p>
  22815. @param conf the {@link JobConf} to modify
  22816. @param theClass the SequenceFile output key class.]]>
  22817. </doc>
  22818. </method>
  22819. <method name="setSequenceFileOutputValueClass"
  22820. abstract="false" native="false" synchronized="false"
  22821. static="true" final="false" visibility="public"
  22822. deprecated="not deprecated">
  22823. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22824. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22825. <doc>
  22826. <![CDATA[Set the value class for the {@link SequenceFile}
  22827. <p>This allows the user to specify the value class to be different
  22828. from the actual class ({@link BytesWritable}) used for writing </p>
  22829. @param conf the {@link JobConf} to modify
  22830. @param theClass the SequenceFile output key class.]]>
  22831. </doc>
  22832. </method>
  22833. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  22834. abstract="false" native="false" synchronized="false"
  22835. static="true" final="false" visibility="public"
  22836. deprecated="not deprecated">
  22837. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22838. <doc>
  22839. <![CDATA[Get the key class for the {@link SequenceFile}
  22840. @return the key class of the {@link SequenceFile}]]>
  22841. </doc>
  22842. </method>
  22843. <method name="getSequenceFileOutputValueClass" return="java.lang.Class&lt;?&gt;"
  22844. abstract="false" native="false" synchronized="false"
  22845. static="true" final="false" visibility="public"
  22846. deprecated="not deprecated">
  22847. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22848. <doc>
  22849. <![CDATA[Get the value class for the {@link SequenceFile}
  22850. @return the value class of the {@link SequenceFile}]]>
  22851. </doc>
  22852. </method>
  22853. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  22854. abstract="false" native="false" synchronized="false"
  22855. static="false" final="false" visibility="public"
  22856. deprecated="not deprecated">
  22857. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  22858. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22859. <param name="name" type="java.lang.String"/>
  22860. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  22861. <exception name="IOException" type="java.io.IOException"/>
  22862. </method>
  22863. <method name="checkOutputSpecs"
  22864. abstract="false" native="false" synchronized="false"
  22865. static="false" final="false" visibility="public"
  22866. deprecated="not deprecated">
  22867. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  22868. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22869. <exception name="IOException" type="java.io.IOException"/>
  22870. </method>
  22871. <doc>
  22872. <![CDATA[An {@link OutputFormat} that writes keys, values to
  22873. {@link SequenceFile}s in binary(raw) format]]>
  22874. </doc>
  22875. </class>
  22876. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  22877. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  22878. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  22879. abstract="false"
  22880. static="true" final="false" visibility="protected"
  22881. deprecated="not deprecated">
  22882. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  22883. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  22884. static="false" final="false" visibility="public"
  22885. deprecated="not deprecated">
  22886. </constructor>
  22887. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  22888. static="false" final="false" visibility="public"
  22889. deprecated="not deprecated">
  22890. </constructor>
  22891. <method name="reset"
  22892. abstract="false" native="false" synchronized="false"
  22893. static="false" final="false" visibility="public"
  22894. deprecated="not deprecated">
  22895. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  22896. </method>
  22897. <method name="writeUncompressedBytes"
  22898. abstract="false" native="false" synchronized="false"
  22899. static="false" final="false" visibility="public"
  22900. deprecated="not deprecated">
  22901. <param name="outStream" type="java.io.DataOutputStream"/>
  22902. <exception name="IOException" type="java.io.IOException"/>
  22903. </method>
  22904. <method name="writeCompressedBytes"
  22905. abstract="false" native="false" synchronized="false"
  22906. static="false" final="false" visibility="public"
  22907. deprecated="not deprecated">
  22908. <param name="outStream" type="java.io.DataOutputStream"/>
  22909. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  22910. <exception name="IOException" type="java.io.IOException"/>
  22911. </method>
  22912. <method name="getSize" return="int"
  22913. abstract="false" native="false" synchronized="false"
  22914. static="false" final="false" visibility="public"
  22915. deprecated="not deprecated">
  22916. </method>
  22917. <doc>
  22918. <![CDATA[Inner class used for appendRaw]]>
  22919. </doc>
  22920. </class>
  22921. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  22922. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  22923. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  22924. abstract="false"
  22925. static="false" final="false" visibility="public"
  22926. deprecated="not deprecated">
  22927. <constructor name="SequenceFileAsTextInputFormat"
  22928. static="false" final="false" visibility="public"
  22929. deprecated="not deprecated">
  22930. </constructor>
  22931. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  22932. abstract="false" native="false" synchronized="false"
  22933. static="false" final="false" visibility="public"
  22934. deprecated="not deprecated">
  22935. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  22936. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22937. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  22938. <exception name="IOException" type="java.io.IOException"/>
  22939. </method>
  22940. <doc>
  22941. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  22942. which converts the input keys and values to their String forms by calling toString() method.]]>
  22943. </doc>
  22944. </class>
  22945. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  22946. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  22947. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  22948. abstract="false"
  22949. static="false" final="false" visibility="public"
  22950. deprecated="not deprecated">
  22951. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  22952. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  22953. static="false" final="false" visibility="public"
  22954. deprecated="not deprecated">
  22955. <exception name="IOException" type="java.io.IOException"/>
  22956. </constructor>
  22957. <method name="createKey" return="org.apache.hadoop.io.Text"
  22958. abstract="false" native="false" synchronized="false"
  22959. static="false" final="false" visibility="public"
  22960. deprecated="not deprecated">
  22961. </method>
  22962. <method name="createValue" return="org.apache.hadoop.io.Text"
  22963. abstract="false" native="false" synchronized="false"
  22964. static="false" final="false" visibility="public"
  22965. deprecated="not deprecated">
  22966. </method>
  22967. <method name="next" return="boolean"
  22968. abstract="false" native="false" synchronized="true"
  22969. static="false" final="false" visibility="public"
  22970. deprecated="not deprecated">
  22971. <param name="key" type="org.apache.hadoop.io.Text"/>
  22972. <param name="value" type="org.apache.hadoop.io.Text"/>
  22973. <exception name="IOException" type="java.io.IOException"/>
  22974. <doc>
  22975. <![CDATA[Read key/value pair in a line.]]>
  22976. </doc>
  22977. </method>
  22978. <method name="getProgress" return="float"
  22979. abstract="false" native="false" synchronized="false"
  22980. static="false" final="false" visibility="public"
  22981. deprecated="not deprecated">
  22982. <exception name="IOException" type="java.io.IOException"/>
  22983. </method>
  22984. <method name="getPos" return="long"
  22985. abstract="false" native="false" synchronized="true"
  22986. static="false" final="false" visibility="public"
  22987. deprecated="not deprecated">
  22988. <exception name="IOException" type="java.io.IOException"/>
  22989. </method>
  22990. <method name="close"
  22991. abstract="false" native="false" synchronized="true"
  22992. static="false" final="false" visibility="public"
  22993. deprecated="not deprecated">
  22994. <exception name="IOException" type="java.io.IOException"/>
  22995. </method>
  22996. <doc>
  22997. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  22998. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  22999. class to TextInputFormat class.]]>
  23000. </doc>
  23001. </class>
  23002. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  23003. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  23004. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;K, V&gt;"
  23005. abstract="false"
  23006. static="false" final="false" visibility="public"
  23007. deprecated="not deprecated">
  23008. <constructor name="SequenceFileInputFilter"
  23009. static="false" final="false" visibility="public"
  23010. deprecated="not deprecated">
  23011. </constructor>
  23012. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  23013. abstract="false" native="false" synchronized="false"
  23014. static="false" final="false" visibility="public"
  23015. deprecated="not deprecated">
  23016. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  23017. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23018. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23019. <exception name="IOException" type="java.io.IOException"/>
  23020. <doc>
  23021. <![CDATA[Create a record reader for the given split
  23022. @param split file split
  23023. @param job job configuration
  23024. @param reporter reporter who sends report to task tracker
  23025. @return RecordReader]]>
  23026. </doc>
  23027. </method>
  23028. <method name="setFilterClass"
  23029. abstract="false" native="false" synchronized="false"
  23030. static="true" final="false" visibility="public"
  23031. deprecated="not deprecated">
  23032. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23033. <param name="filterClass" type="java.lang.Class"/>
  23034. <doc>
  23035. <![CDATA[set the filter class
  23036. @param conf application configuration
  23037. @param filterClass filter class]]>
  23038. </doc>
  23039. </method>
  23040. <doc>
  23041. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  23042. The sample is decided by the filter class set by the job.]]>
  23043. </doc>
  23044. </class>
  23045. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  23046. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  23047. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  23048. static="true" final="false" visibility="public"
  23049. deprecated="not deprecated">
  23050. <implements name="org.apache.hadoop.conf.Configurable"/>
  23051. <method name="accept" return="boolean"
  23052. abstract="false" native="false" synchronized="false"
  23053. static="false" final="false" visibility="public"
  23054. deprecated="not deprecated">
  23055. <param name="key" type="java.lang.Object"/>
  23056. <doc>
  23057. <![CDATA[filter function
  23058. Decide if a record should be filtered or not
  23059. @param key record key
  23060. @return true if a record is accepted; return false otherwise]]>
  23061. </doc>
  23062. </method>
  23063. <doc>
  23064. <![CDATA[filter interface]]>
  23065. </doc>
  23066. </interface>
  23067. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  23068. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  23069. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  23070. abstract="true"
  23071. static="true" final="false" visibility="public"
  23072. deprecated="not deprecated">
  23073. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  23074. <constructor name="SequenceFileInputFilter.FilterBase"
  23075. static="false" final="false" visibility="public"
  23076. deprecated="not deprecated">
  23077. </constructor>
  23078. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  23079. abstract="false" native="false" synchronized="false"
  23080. static="false" final="false" visibility="public"
  23081. deprecated="not deprecated">
  23082. </method>
  23083. <doc>
  23084. <![CDATA[base class for Filters]]>
  23085. </doc>
  23086. </class>
  23087. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  23088. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  23089. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  23090. abstract="false"
  23091. static="true" final="false" visibility="public"
  23092. deprecated="not deprecated">
  23093. <constructor name="SequenceFileInputFilter.MD5Filter"
  23094. static="false" final="false" visibility="public"
  23095. deprecated="not deprecated">
  23096. </constructor>
  23097. <method name="setFrequency"
  23098. abstract="false" native="false" synchronized="false"
  23099. static="true" final="false" visibility="public"
  23100. deprecated="not deprecated">
  23101. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23102. <param name="frequency" type="int"/>
  23103. <doc>
  23104. <![CDATA[set the filtering frequency in configuration
  23105. @param conf configuration
  23106. @param frequency filtering frequency]]>
  23107. </doc>
  23108. </method>
  23109. <method name="setConf"
  23110. abstract="false" native="false" synchronized="false"
  23111. static="false" final="false" visibility="public"
  23112. deprecated="not deprecated">
  23113. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23114. <doc>
  23115. <![CDATA[configure the filter according to configuration
  23116. @param conf configuration]]>
  23117. </doc>
  23118. </method>
  23119. <method name="accept" return="boolean"
  23120. abstract="false" native="false" synchronized="false"
  23121. static="false" final="false" visibility="public"
  23122. deprecated="not deprecated">
  23123. <param name="key" type="java.lang.Object"/>
  23124. <doc>
  23125. <![CDATA[Filtering method
  23126. If MD5(key) % frequency==0, return true; otherwise return false
  23127. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  23128. </doc>
  23129. </method>
  23130. <field name="MD5_LEN" type="int"
  23131. transient="false" volatile="false"
  23132. static="true" final="true" visibility="public"
  23133. deprecated="not deprecated">
  23134. </field>
  23135. <doc>
  23136. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  23137. key against a filtering frequency <i>f</i>. The filtering criteria is
  23138. MD5(key) % f == 0.]]>
  23139. </doc>
  23140. </class>
  23141. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  23142. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  23143. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  23144. abstract="false"
  23145. static="true" final="false" visibility="public"
  23146. deprecated="not deprecated">
  23147. <constructor name="SequenceFileInputFilter.PercentFilter"
  23148. static="false" final="false" visibility="public"
  23149. deprecated="not deprecated">
  23150. </constructor>
  23151. <method name="setFrequency"
  23152. abstract="false" native="false" synchronized="false"
  23153. static="true" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23156. <param name="frequency" type="int"/>
  23157. <doc>
  23158. <![CDATA[set the frequency and stores it in conf
  23159. @param conf configuration
  23160. @param frequency filtering frequencey]]>
  23161. </doc>
  23162. </method>
  23163. <method name="setConf"
  23164. abstract="false" native="false" synchronized="false"
  23165. static="false" final="false" visibility="public"
  23166. deprecated="not deprecated">
  23167. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23168. <doc>
  23169. <![CDATA[configure the filter by checking the configuration
  23170. @param conf configuration]]>
  23171. </doc>
  23172. </method>
  23173. <method name="accept" return="boolean"
  23174. abstract="false" native="false" synchronized="false"
  23175. static="false" final="false" visibility="public"
  23176. deprecated="not deprecated">
  23177. <param name="key" type="java.lang.Object"/>
  23178. <doc>
  23179. <![CDATA[Filtering method
  23180. If record# % frequency==0, return true; otherwise return false
  23181. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  23182. </doc>
  23183. </method>
  23184. <doc>
  23185. <![CDATA[This class returns a percentage of records
  23186. The percentage is determined by a filtering frequency <i>f</i> using
  23187. the criteria record# % f == 0.
  23188. For example, if the frequency is 10, one out of 10 records is returned.]]>
  23189. </doc>
  23190. </class>
  23191. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  23192. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  23193. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  23194. abstract="false"
  23195. static="true" final="false" visibility="public"
  23196. deprecated="not deprecated">
  23197. <constructor name="SequenceFileInputFilter.RegexFilter"
  23198. static="false" final="false" visibility="public"
  23199. deprecated="not deprecated">
  23200. </constructor>
  23201. <method name="setPattern"
  23202. abstract="false" native="false" synchronized="false"
  23203. static="true" final="false" visibility="public"
  23204. deprecated="not deprecated">
  23205. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23206. <param name="regex" type="java.lang.String"/>
  23207. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  23208. <doc>
  23209. <![CDATA[Define the filtering regex and stores it in conf
  23210. @param conf where the regex is set
  23211. @param regex regex used as a filter]]>
  23212. </doc>
  23213. </method>
  23214. <method name="setConf"
  23215. abstract="false" native="false" synchronized="false"
  23216. static="false" final="false" visibility="public"
  23217. deprecated="not deprecated">
  23218. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23219. <doc>
  23220. <![CDATA[configure the Filter by checking the configuration]]>
  23221. </doc>
  23222. </method>
  23223. <method name="accept" return="boolean"
  23224. abstract="false" native="false" synchronized="false"
  23225. static="false" final="false" visibility="public"
  23226. deprecated="not deprecated">
  23227. <param name="key" type="java.lang.Object"/>
  23228. <doc>
  23229. <![CDATA[Filtering method
  23230. If key matches the regex, return true; otherwise return false
  23231. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  23232. </doc>
  23233. </method>
  23234. <doc>
  23235. <![CDATA[Records filter by matching key to regex]]>
  23236. </doc>
  23237. </class>
  23238. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  23239. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  23240. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  23241. abstract="false"
  23242. static="false" final="false" visibility="public"
  23243. deprecated="not deprecated">
  23244. <constructor name="SequenceFileInputFormat"
  23245. static="false" final="false" visibility="public"
  23246. deprecated="not deprecated">
  23247. </constructor>
  23248. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  23249. abstract="false" native="false" synchronized="false"
  23250. static="false" final="false" visibility="protected"
  23251. deprecated="not deprecated">
  23252. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23253. <exception name="IOException" type="java.io.IOException"/>
  23254. </method>
  23255. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  23256. abstract="false" native="false" synchronized="false"
  23257. static="false" final="false" visibility="public"
  23258. deprecated="not deprecated">
  23259. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  23260. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23261. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23262. <exception name="IOException" type="java.io.IOException"/>
  23263. </method>
  23264. <doc>
  23265. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  23266. </doc>
  23267. </class>
  23268. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  23269. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  23270. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  23271. abstract="false"
  23272. static="false" final="false" visibility="public"
  23273. deprecated="not deprecated">
  23274. <constructor name="SequenceFileOutputFormat"
  23275. static="false" final="false" visibility="public"
  23276. deprecated="not deprecated">
  23277. </constructor>
  23278. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  23279. abstract="false" native="false" synchronized="false"
  23280. static="false" final="false" visibility="public"
  23281. deprecated="not deprecated">
  23282. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  23283. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23284. <param name="name" type="java.lang.String"/>
  23285. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23286. <exception name="IOException" type="java.io.IOException"/>
  23287. </method>
  23288. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  23289. abstract="false" native="false" synchronized="false"
  23290. static="true" final="false" visibility="public"
  23291. deprecated="not deprecated">
  23292. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23293. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  23294. <exception name="IOException" type="java.io.IOException"/>
  23295. <doc>
  23296. <![CDATA[Open the output generated by this format.]]>
  23297. </doc>
  23298. </method>
  23299. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  23300. abstract="false" native="false" synchronized="false"
  23301. static="true" final="false" visibility="public"
  23302. deprecated="not deprecated">
  23303. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23304. <doc>
  23305. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  23306. @param conf the {@link JobConf}
  23307. @return the {@link CompressionType} for the output {@link SequenceFile},
  23308. defaulting to {@link CompressionType#RECORD}]]>
  23309. </doc>
  23310. </method>
  23311. <method name="setOutputCompressionType"
  23312. abstract="false" native="false" synchronized="false"
  23313. static="true" final="false" visibility="public"
  23314. deprecated="not deprecated">
  23315. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23316. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  23317. <doc>
  23318. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  23319. @param conf the {@link JobConf} to modify
  23320. @param style the {@link CompressionType} for the output
  23321. {@link SequenceFile}]]>
  23322. </doc>
  23323. </method>
  23324. <doc>
  23325. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  23326. </doc>
  23327. </class>
  23328. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  23329. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  23330. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  23331. abstract="false"
  23332. static="false" final="false" visibility="public"
  23333. deprecated="not deprecated">
  23334. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  23335. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  23336. static="false" final="false" visibility="public"
  23337. deprecated="not deprecated">
  23338. <exception name="IOException" type="java.io.IOException"/>
  23339. </constructor>
  23340. <method name="getKeyClass" return="java.lang.Class"
  23341. abstract="false" native="false" synchronized="false"
  23342. static="false" final="false" visibility="public"
  23343. deprecated="not deprecated">
  23344. <doc>
  23345. <![CDATA[The class of key that must be passed to {@link
  23346. #next(Object, Object)}..]]>
  23347. </doc>
  23348. </method>
  23349. <method name="getValueClass" return="java.lang.Class"
  23350. abstract="false" native="false" synchronized="false"
  23351. static="false" final="false" visibility="public"
  23352. deprecated="not deprecated">
  23353. <doc>
  23354. <![CDATA[The class of value that must be passed to {@link
  23355. #next(Object, Object)}..]]>
  23356. </doc>
  23357. </method>
  23358. <method name="createKey" return="K"
  23359. abstract="false" native="false" synchronized="false"
  23360. static="false" final="false" visibility="public"
  23361. deprecated="not deprecated">
  23362. </method>
  23363. <method name="createValue" return="V"
  23364. abstract="false" native="false" synchronized="false"
  23365. static="false" final="false" visibility="public"
  23366. deprecated="not deprecated">
  23367. </method>
  23368. <method name="next" return="boolean"
  23369. abstract="false" native="false" synchronized="true"
  23370. static="false" final="false" visibility="public"
  23371. deprecated="not deprecated">
  23372. <param name="key" type="K"/>
  23373. <param name="value" type="V"/>
  23374. <exception name="IOException" type="java.io.IOException"/>
  23375. </method>
  23376. <method name="next" return="boolean"
  23377. abstract="false" native="false" synchronized="true"
  23378. static="false" final="false" visibility="protected"
  23379. deprecated="not deprecated">
  23380. <param name="key" type="K"/>
  23381. <exception name="IOException" type="java.io.IOException"/>
  23382. </method>
  23383. <method name="getCurrentValue"
  23384. abstract="false" native="false" synchronized="true"
  23385. static="false" final="false" visibility="protected"
  23386. deprecated="not deprecated">
  23387. <param name="value" type="V"/>
  23388. <exception name="IOException" type="java.io.IOException"/>
  23389. </method>
  23390. <method name="getProgress" return="float"
  23391. abstract="false" native="false" synchronized="false"
  23392. static="false" final="false" visibility="public"
  23393. deprecated="not deprecated">
  23394. <exception name="IOException" type="java.io.IOException"/>
  23395. <doc>
  23396. <![CDATA[Return the progress within the input split
  23397. @return 0.0 to 1.0 of the input byte range]]>
  23398. </doc>
  23399. </method>
  23400. <method name="getPos" return="long"
  23401. abstract="false" native="false" synchronized="true"
  23402. static="false" final="false" visibility="public"
  23403. deprecated="not deprecated">
  23404. <exception name="IOException" type="java.io.IOException"/>
  23405. </method>
  23406. <method name="seek"
  23407. abstract="false" native="false" synchronized="true"
  23408. static="false" final="false" visibility="protected"
  23409. deprecated="not deprecated">
  23410. <param name="pos" type="long"/>
  23411. <exception name="IOException" type="java.io.IOException"/>
  23412. </method>
  23413. <method name="close"
  23414. abstract="false" native="false" synchronized="true"
  23415. static="false" final="false" visibility="public"
  23416. deprecated="not deprecated">
  23417. <exception name="IOException" type="java.io.IOException"/>
  23418. </method>
  23419. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  23420. transient="false" volatile="false"
  23421. static="false" final="false" visibility="protected"
  23422. deprecated="not deprecated">
  23423. </field>
  23424. <doc>
  23425. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  23426. </doc>
  23427. </class>
  23428. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  23429. <!-- start class org.apache.hadoop.mapred.StatusHttpServer -->
  23430. <class name="StatusHttpServer" extends="java.lang.Object"
  23431. abstract="false"
  23432. static="false" final="false" visibility="public"
  23433. deprecated="not deprecated">
  23434. <constructor name="StatusHttpServer" type="java.lang.String, java.lang.String, int, boolean"
  23435. static="false" final="false" visibility="public"
  23436. deprecated="not deprecated">
  23437. <exception name="IOException" type="java.io.IOException"/>
  23438. <doc>
  23439. <![CDATA[Create a status server on the given port.
  23440. The jsp scripts are taken from src/webapps/<name>.
  23441. @param name The name of the server
  23442. @param port The port to use on the server
  23443. @param findPort whether the server should start at the given port and
  23444. increment by 1 until it finds a free port.]]>
  23445. </doc>
  23446. </constructor>
  23447. <method name="setAttribute"
  23448. abstract="false" native="false" synchronized="false"
  23449. static="false" final="false" visibility="public"
  23450. deprecated="not deprecated">
  23451. <param name="name" type="java.lang.String"/>
  23452. <param name="value" type="java.lang.Object"/>
  23453. <doc>
  23454. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  23455. pages as "application.getAttribute(name)".
  23456. @param name The name of the attribute
  23457. @param value The value of the attribute]]>
  23458. </doc>
  23459. </method>
  23460. <method name="addServlet"
  23461. abstract="false" native="false" synchronized="false"
  23462. static="false" final="false" visibility="public"
  23463. deprecated="not deprecated">
  23464. <param name="name" type="java.lang.String"/>
  23465. <param name="pathSpec" type="java.lang.String"/>
  23466. <param name="servletClass" type="java.lang.Class&lt;T&gt;"/>
  23467. <doc>
  23468. <![CDATA[Add a servlet in the server.
  23469. @param name The name of the servlet (can be passed as null)
  23470. @param pathSpec The path spec for the servlet
  23471. @param servletClass The servlet class]]>
  23472. </doc>
  23473. </method>
  23474. <method name="getAttribute" return="java.lang.Object"
  23475. abstract="false" native="false" synchronized="false"
  23476. static="false" final="false" visibility="public"
  23477. deprecated="not deprecated">
  23478. <param name="name" type="java.lang.String"/>
  23479. <doc>
  23480. <![CDATA[Get the value in the webapp context.
  23481. @param name The name of the attribute
  23482. @return The value of the attribute]]>
  23483. </doc>
  23484. </method>
  23485. <method name="getPort" return="int"
  23486. abstract="false" native="false" synchronized="false"
  23487. static="false" final="false" visibility="public"
  23488. deprecated="not deprecated">
  23489. <doc>
  23490. <![CDATA[Get the port that the server is on
  23491. @return the port]]>
  23492. </doc>
  23493. </method>
  23494. <method name="setThreads"
  23495. abstract="false" native="false" synchronized="false"
  23496. static="false" final="false" visibility="public"
  23497. deprecated="not deprecated">
  23498. <param name="min" type="int"/>
  23499. <param name="max" type="int"/>
  23500. </method>
  23501. <method name="addSslListener"
  23502. abstract="false" native="false" synchronized="false"
  23503. static="false" final="false" visibility="public"
  23504. deprecated="not deprecated">
  23505. <param name="addr" type="java.net.InetSocketAddress"/>
  23506. <param name="keystore" type="java.lang.String"/>
  23507. <param name="storPass" type="java.lang.String"/>
  23508. <param name="keyPass" type="java.lang.String"/>
  23509. <exception name="IOException" type="java.io.IOException"/>
  23510. <doc>
  23511. <![CDATA[Configure an ssl listener on the server.
  23512. @param addr address to listen on
  23513. @param keystore location of the keystore
  23514. @param storPass password for the keystore
  23515. @param keyPass password for the key]]>
  23516. </doc>
  23517. </method>
  23518. <method name="start"
  23519. abstract="false" native="false" synchronized="false"
  23520. static="false" final="false" visibility="public"
  23521. deprecated="not deprecated">
  23522. <exception name="IOException" type="java.io.IOException"/>
  23523. <doc>
  23524. <![CDATA[Start the server. Does not wait for the server to start.]]>
  23525. </doc>
  23526. </method>
  23527. <method name="stop"
  23528. abstract="false" native="false" synchronized="false"
  23529. static="false" final="false" visibility="public"
  23530. deprecated="not deprecated">
  23531. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23532. <doc>
  23533. <![CDATA[stop the server]]>
  23534. </doc>
  23535. </method>
  23536. <doc>
  23537. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  23538. is to serve up status information for the server.
  23539. There are three contexts:
  23540. "/logs/" -> points to the log directory
  23541. "/static/" -> points to common static files (src/webapps/static)
  23542. "/" -> the jsp server code from (src/webapps/<name>)]]>
  23543. </doc>
  23544. </class>
  23545. <!-- end class org.apache.hadoop.mapred.StatusHttpServer -->
  23546. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  23547. <class name="StatusHttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  23548. abstract="false"
  23549. static="true" final="false" visibility="public"
  23550. deprecated="not deprecated">
  23551. <constructor name="StatusHttpServer.StackServlet"
  23552. static="false" final="false" visibility="public"
  23553. deprecated="not deprecated">
  23554. </constructor>
  23555. <method name="doGet"
  23556. abstract="false" native="false" synchronized="false"
  23557. static="false" final="false" visibility="public"
  23558. deprecated="not deprecated">
  23559. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23560. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23561. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23562. <exception name="IOException" type="java.io.IOException"/>
  23563. </method>
  23564. <doc>
  23565. <![CDATA[A very simple servlet to serve up a text representation of the current
  23566. stack traces. It both returns the stacks to the caller and logs them.
  23567. Currently the stack traces are done sequentially rather than exactly the
  23568. same data.]]>
  23569. </doc>
  23570. </class>
  23571. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  23572. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  23573. <class name="StatusHttpServer.TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  23574. abstract="false"
  23575. static="true" final="false" visibility="public"
  23576. deprecated="not deprecated">
  23577. <constructor name="StatusHttpServer.TaskGraphServlet"
  23578. static="false" final="false" visibility="public"
  23579. deprecated="not deprecated">
  23580. </constructor>
  23581. <method name="doGet"
  23582. abstract="false" native="false" synchronized="false"
  23583. static="false" final="false" visibility="public"
  23584. deprecated="not deprecated">
  23585. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  23586. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  23587. <exception name="ServletException" type="javax.servlet.ServletException"/>
  23588. <exception name="IOException" type="java.io.IOException"/>
  23589. </method>
  23590. <field name="width" type="int"
  23591. transient="false" volatile="false"
  23592. static="true" final="true" visibility="public"
  23593. deprecated="not deprecated">
  23594. <doc>
  23595. <![CDATA[height of the graph w/o margins]]>
  23596. </doc>
  23597. </field>
  23598. <field name="height" type="int"
  23599. transient="false" volatile="false"
  23600. static="true" final="true" visibility="public"
  23601. deprecated="not deprecated">
  23602. <doc>
  23603. <![CDATA[height of the graph w/o margins]]>
  23604. </doc>
  23605. </field>
  23606. <field name="ymargin" type="int"
  23607. transient="false" volatile="false"
  23608. static="true" final="true" visibility="public"
  23609. deprecated="not deprecated">
  23610. <doc>
  23611. <![CDATA[margin space on y axis]]>
  23612. </doc>
  23613. </field>
  23614. <field name="xmargin" type="int"
  23615. transient="false" volatile="false"
  23616. static="true" final="true" visibility="public"
  23617. deprecated="not deprecated">
  23618. <doc>
  23619. <![CDATA[margin space on x axis]]>
  23620. </doc>
  23621. </field>
  23622. <doc>
  23623. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  23624. statuses]]>
  23625. </doc>
  23626. </class>
  23627. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  23628. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  23629. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  23630. abstract="false"
  23631. static="false" final="false" visibility="public"
  23632. deprecated="not deprecated">
  23633. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  23634. static="false" final="false" visibility="public"
  23635. deprecated="not deprecated">
  23636. <doc>
  23637. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  23638. @param taskId TaskID that this task belongs to
  23639. @param id the task attempt number]]>
  23640. </doc>
  23641. </constructor>
  23642. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  23643. static="false" final="false" visibility="public"
  23644. deprecated="not deprecated">
  23645. <doc>
  23646. <![CDATA[Constructs a TaskId object from given parts.
  23647. @param jtIdentifier jobTracker identifier
  23648. @param jobId job number
  23649. @param isMap whether the tip is a map
  23650. @param taskId taskId number
  23651. @param id the task attempt number]]>
  23652. </doc>
  23653. </constructor>
  23654. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  23655. abstract="false" native="false" synchronized="false"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. <doc>
  23659. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  23660. </doc>
  23661. </method>
  23662. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  23663. abstract="false" native="false" synchronized="false"
  23664. static="false" final="false" visibility="public"
  23665. deprecated="not deprecated">
  23666. <doc>
  23667. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  23668. </doc>
  23669. </method>
  23670. <method name="isMap" return="boolean"
  23671. abstract="false" native="false" synchronized="false"
  23672. static="false" final="false" visibility="public"
  23673. deprecated="not deprecated">
  23674. <doc>
  23675. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  23676. </doc>
  23677. </method>
  23678. <method name="equals" return="boolean"
  23679. abstract="false" native="false" synchronized="false"
  23680. static="false" final="false" visibility="public"
  23681. deprecated="not deprecated">
  23682. <param name="o" type="java.lang.Object"/>
  23683. </method>
  23684. <method name="compareTo" return="int"
  23685. abstract="false" native="false" synchronized="false"
  23686. static="false" final="false" visibility="public"
  23687. deprecated="not deprecated">
  23688. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  23689. <doc>
  23690. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  23691. </doc>
  23692. </method>
  23693. <method name="toString" return="java.lang.String"
  23694. abstract="false" native="false" synchronized="false"
  23695. static="false" final="false" visibility="public"
  23696. deprecated="not deprecated">
  23697. </method>
  23698. <method name="hashCode" return="int"
  23699. abstract="false" native="false" synchronized="false"
  23700. static="false" final="false" visibility="public"
  23701. deprecated="not deprecated">
  23702. </method>
  23703. <method name="readFields"
  23704. abstract="false" native="false" synchronized="false"
  23705. static="false" final="false" visibility="public"
  23706. deprecated="not deprecated">
  23707. <param name="in" type="java.io.DataInput"/>
  23708. <exception name="IOException" type="java.io.IOException"/>
  23709. </method>
  23710. <method name="write"
  23711. abstract="false" native="false" synchronized="false"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <param name="out" type="java.io.DataOutput"/>
  23715. <exception name="IOException" type="java.io.IOException"/>
  23716. </method>
  23717. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  23718. abstract="false" native="false" synchronized="false"
  23719. static="true" final="false" visibility="public"
  23720. deprecated="not deprecated">
  23721. <param name="in" type="java.io.DataInput"/>
  23722. <exception name="IOException" type="java.io.IOException"/>
  23723. </method>
  23724. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  23725. abstract="false" native="false" synchronized="false"
  23726. static="true" final="false" visibility="public"
  23727. deprecated="not deprecated">
  23728. <param name="str" type="java.lang.String"/>
  23729. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  23730. <doc>
  23731. <![CDATA[Construct a TaskAttemptID object from given string
  23732. @return constructed TaskAttemptID object or null if the given String is null
  23733. @throws IllegalArgumentException if the given string is malformed]]>
  23734. </doc>
  23735. </method>
  23736. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  23737. abstract="false" native="false" synchronized="false"
  23738. static="true" final="false" visibility="public"
  23739. deprecated="not deprecated">
  23740. <param name="jtIdentifier" type="java.lang.String"/>
  23741. <param name="jobId" type="java.lang.Integer"/>
  23742. <param name="isMap" type="java.lang.Boolean"/>
  23743. <param name="taskId" type="java.lang.Integer"/>
  23744. <param name="attemptId" type="java.lang.Integer"/>
  23745. <doc>
  23746. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  23747. be given null, in which case that part of the regex will be generic.
  23748. For example to obtain a regex matching <i>all task attempt IDs</i>
  23749. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  23750. map task</i>, we would use :
  23751. <pre>
  23752. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  23753. </pre>
  23754. which will return :
  23755. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  23756. @param jtIdentifier jobTracker identifier, or null
  23757. @param jobId job number, or null
  23758. @param isMap whether the tip is a map, or null
  23759. @param taskId taskId number, or null
  23760. @param attemptId the task attempt number, or null
  23761. @return a regex pattern matching TaskAttemptIDs]]>
  23762. </doc>
  23763. </method>
  23764. <doc>
  23765. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  23766. a task attempt. Each task attempt is one particular instance of a Map or
  23767. Reduce Task identified by its TaskID.
  23768. TaskAttemptID consists of 2 parts. First part is the
  23769. {@link TaskID}, that this TaskAttemptID belongs to.
  23770. Second part is the task attempt number. <br>
  23771. An example TaskAttemptID is :
  23772. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  23773. zeroth task attempt for the fifth map task in the third job
  23774. running at the jobtracker started at <code>200707121733</code>.
  23775. <p>
  23776. Applications should never construct or parse TaskAttemptID strings
  23777. , but rather use appropriate constructors or {@link #forName(String)}
  23778. method.
  23779. @see JobID
  23780. @see TaskID]]>
  23781. </doc>
  23782. </class>
  23783. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  23784. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  23785. <class name="TaskCompletionEvent" extends="java.lang.Object"
  23786. abstract="false"
  23787. static="false" final="false" visibility="public"
  23788. deprecated="not deprecated">
  23789. <implements name="org.apache.hadoop.io.Writable"/>
  23790. <constructor name="TaskCompletionEvent"
  23791. static="false" final="false" visibility="public"
  23792. deprecated="not deprecated">
  23793. <doc>
  23794. <![CDATA[Default constructor for Writable.]]>
  23795. </doc>
  23796. </constructor>
  23797. <constructor name="TaskCompletionEvent" type="int, java.lang.String, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  23798. static="false" final="false" visibility="public"
  23799. deprecated="not deprecated">
  23800. </constructor>
  23801. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  23802. static="false" final="false" visibility="public"
  23803. deprecated="not deprecated">
  23804. <doc>
  23805. <![CDATA[Constructor. eventId should be created externally and incremented
  23806. per event for each job.
  23807. @param eventId event id, event id should be unique and assigned in
  23808. incrementally, starting from 0.
  23809. @param taskId task id
  23810. @param status task's status
  23811. @param taskTrackerHttp task tracker's host:port for http.]]>
  23812. </doc>
  23813. </constructor>
  23814. <method name="getEventId" return="int"
  23815. abstract="false" native="false" synchronized="false"
  23816. static="false" final="false" visibility="public"
  23817. deprecated="not deprecated">
  23818. <doc>
  23819. <![CDATA[Returns event Id.
  23820. @return event id]]>
  23821. </doc>
  23822. </method>
  23823. <method name="getTaskId" return="java.lang.String"
  23824. abstract="false" native="false" synchronized="false"
  23825. static="false" final="false" visibility="public"
  23826. deprecated="use {@link #getTaskAttemptId()} instead.">
  23827. <doc>
  23828. <![CDATA[Returns task id.
  23829. @return task id
  23830. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  23831. </doc>
  23832. </method>
  23833. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  23834. abstract="false" native="false" synchronized="false"
  23835. static="false" final="false" visibility="public"
  23836. deprecated="not deprecated">
  23837. <doc>
  23838. <![CDATA[Returns task id.
  23839. @return task id]]>
  23840. </doc>
  23841. </method>
  23842. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  23843. abstract="false" native="false" synchronized="false"
  23844. static="false" final="false" visibility="public"
  23845. deprecated="not deprecated">
  23846. <doc>
  23847. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  23848. @return task tracker status]]>
  23849. </doc>
  23850. </method>
  23851. <method name="getTaskTrackerHttp" return="java.lang.String"
  23852. abstract="false" native="false" synchronized="false"
  23853. static="false" final="false" visibility="public"
  23854. deprecated="not deprecated">
  23855. <doc>
  23856. <![CDATA[http location of the tasktracker where this task ran.
  23857. @return http location of tasktracker user logs]]>
  23858. </doc>
  23859. </method>
  23860. <method name="getTaskRunTime" return="int"
  23861. abstract="false" native="false" synchronized="false"
  23862. static="false" final="false" visibility="public"
  23863. deprecated="not deprecated">
  23864. <doc>
  23865. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  23866. </doc>
  23867. </method>
  23868. <method name="setTaskRunTime"
  23869. abstract="false" native="false" synchronized="false"
  23870. static="false" final="false" visibility="public"
  23871. deprecated="not deprecated">
  23872. <param name="taskCompletionTime" type="int"/>
  23873. <doc>
  23874. <![CDATA[Set the task completion time
  23875. @param taskCompletionTime time (in millisec) the task took to complete]]>
  23876. </doc>
  23877. </method>
  23878. <method name="setEventId"
  23879. abstract="false" native="false" synchronized="false"
  23880. static="false" final="false" visibility="public"
  23881. deprecated="not deprecated">
  23882. <param name="eventId" type="int"/>
  23883. <doc>
  23884. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  23885. @param eventId]]>
  23886. </doc>
  23887. </method>
  23888. <method name="setTaskId"
  23889. abstract="false" native="false" synchronized="false"
  23890. static="false" final="false" visibility="public"
  23891. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  23892. <param name="taskId" type="java.lang.String"/>
  23893. <doc>
  23894. <![CDATA[Sets task id.
  23895. @param taskId
  23896. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  23897. </doc>
  23898. </method>
  23899. <method name="setTaskID"
  23900. abstract="false" native="false" synchronized="false"
  23901. static="false" final="false" visibility="public"
  23902. deprecated="not deprecated">
  23903. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  23904. <doc>
  23905. <![CDATA[Sets task id.
  23906. @param taskId]]>
  23907. </doc>
  23908. </method>
  23909. <method name="setTaskStatus"
  23910. abstract="false" native="false" synchronized="false"
  23911. static="false" final="false" visibility="public"
  23912. deprecated="not deprecated">
  23913. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  23914. <doc>
  23915. <![CDATA[Set task status.
  23916. @param status]]>
  23917. </doc>
  23918. </method>
  23919. <method name="setTaskTrackerHttp"
  23920. abstract="false" native="false" synchronized="false"
  23921. static="false" final="false" visibility="public"
  23922. deprecated="not deprecated">
  23923. <param name="taskTrackerHttp" type="java.lang.String"/>
  23924. <doc>
  23925. <![CDATA[Set task tracker http location.
  23926. @param taskTrackerHttp]]>
  23927. </doc>
  23928. </method>
  23929. <method name="toString" return="java.lang.String"
  23930. abstract="false" native="false" synchronized="false"
  23931. static="false" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. </method>
  23934. <method name="isMapTask" return="boolean"
  23935. abstract="false" native="false" synchronized="false"
  23936. static="false" final="false" visibility="public"
  23937. deprecated="not deprecated">
  23938. </method>
  23939. <method name="idWithinJob" return="int"
  23940. abstract="false" native="false" synchronized="false"
  23941. static="false" final="false" visibility="public"
  23942. deprecated="not deprecated">
  23943. </method>
  23944. <method name="write"
  23945. abstract="false" native="false" synchronized="false"
  23946. static="false" final="false" visibility="public"
  23947. deprecated="not deprecated">
  23948. <param name="out" type="java.io.DataOutput"/>
  23949. <exception name="IOException" type="java.io.IOException"/>
  23950. </method>
  23951. <method name="readFields"
  23952. abstract="false" native="false" synchronized="false"
  23953. static="false" final="false" visibility="public"
  23954. deprecated="not deprecated">
  23955. <param name="in" type="java.io.DataInput"/>
  23956. <exception name="IOException" type="java.io.IOException"/>
  23957. </method>
  23958. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  23959. transient="false" volatile="false"
  23960. static="true" final="true" visibility="public"
  23961. deprecated="not deprecated">
  23962. </field>
  23963. <doc>
  23964. <![CDATA[This is used to track task completion events on
  23965. job tracker.]]>
  23966. </doc>
  23967. </class>
  23968. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  23969. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  23970. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskCompletionEvent.Status&gt;"
  23971. abstract="false"
  23972. static="true" final="true" visibility="public"
  23973. deprecated="not deprecated">
  23974. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  23975. abstract="false" native="false" synchronized="false"
  23976. static="true" final="true" visibility="public"
  23977. deprecated="not deprecated">
  23978. </method>
  23979. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  23980. abstract="false" native="false" synchronized="false"
  23981. static="true" final="false" visibility="public"
  23982. deprecated="not deprecated">
  23983. <param name="name" type="java.lang.String"/>
  23984. </method>
  23985. </class>
  23986. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  23987. <!-- start class org.apache.hadoop.mapred.TaskID -->
  23988. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  23989. abstract="false"
  23990. static="false" final="false" visibility="public"
  23991. deprecated="not deprecated">
  23992. <constructor name="TaskID" type="org.apache.hadoop.mapred.JobID, boolean, int"
  23993. static="false" final="false" visibility="public"
  23994. deprecated="not deprecated">
  23995. <doc>
  23996. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  23997. @param jobId JobID that this tip belongs to
  23998. @param isMap whether the tip is a map
  23999. @param id the tip number]]>
  24000. </doc>
  24001. </constructor>
  24002. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  24003. static="false" final="false" visibility="public"
  24004. deprecated="not deprecated">
  24005. <doc>
  24006. <![CDATA[Constructs a TaskInProgressId object from given parts.
  24007. @param jtIdentifier jobTracker identifier
  24008. @param jobId job number
  24009. @param isMap whether the tip is a map
  24010. @param id the tip number]]>
  24011. </doc>
  24012. </constructor>
  24013. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  24014. abstract="false" native="false" synchronized="false"
  24015. static="false" final="false" visibility="public"
  24016. deprecated="not deprecated">
  24017. <doc>
  24018. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  24019. </doc>
  24020. </method>
  24021. <method name="isMap" return="boolean"
  24022. abstract="false" native="false" synchronized="false"
  24023. static="false" final="false" visibility="public"
  24024. deprecated="not deprecated">
  24025. <doc>
  24026. <![CDATA[Returns whether this TaskID is a map ID]]>
  24027. </doc>
  24028. </method>
  24029. <method name="equals" return="boolean"
  24030. abstract="false" native="false" synchronized="false"
  24031. static="false" final="false" visibility="public"
  24032. deprecated="not deprecated">
  24033. <param name="o" type="java.lang.Object"/>
  24034. </method>
  24035. <method name="compareTo" return="int"
  24036. abstract="false" native="false" synchronized="false"
  24037. static="false" final="false" visibility="public"
  24038. deprecated="not deprecated">
  24039. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  24040. <doc>
  24041. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  24042. defined as greater then maps.]]>
  24043. </doc>
  24044. </method>
  24045. <method name="toString" return="java.lang.String"
  24046. abstract="false" native="false" synchronized="false"
  24047. static="false" final="false" visibility="public"
  24048. deprecated="not deprecated">
  24049. </method>
  24050. <method name="hashCode" return="int"
  24051. abstract="false" native="false" synchronized="false"
  24052. static="false" final="false" visibility="public"
  24053. deprecated="not deprecated">
  24054. </method>
  24055. <method name="readFields"
  24056. abstract="false" native="false" synchronized="false"
  24057. static="false" final="false" visibility="public"
  24058. deprecated="not deprecated">
  24059. <param name="in" type="java.io.DataInput"/>
  24060. <exception name="IOException" type="java.io.IOException"/>
  24061. </method>
  24062. <method name="write"
  24063. abstract="false" native="false" synchronized="false"
  24064. static="false" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <param name="out" type="java.io.DataOutput"/>
  24067. <exception name="IOException" type="java.io.IOException"/>
  24068. </method>
  24069. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  24070. abstract="false" native="false" synchronized="false"
  24071. static="true" final="false" visibility="public"
  24072. deprecated="not deprecated">
  24073. <param name="in" type="java.io.DataInput"/>
  24074. <exception name="IOException" type="java.io.IOException"/>
  24075. </method>
  24076. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  24077. abstract="false" native="false" synchronized="false"
  24078. static="true" final="false" visibility="public"
  24079. deprecated="not deprecated">
  24080. <param name="str" type="java.lang.String"/>
  24081. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  24082. <doc>
  24083. <![CDATA[Construct a TaskID object from given string
  24084. @return constructed TaskID object or null if the given String is null
  24085. @throws IllegalArgumentException if the given string is malformed]]>
  24086. </doc>
  24087. </method>
  24088. <method name="getTaskIDsPattern" return="java.lang.String"
  24089. abstract="false" native="false" synchronized="false"
  24090. static="true" final="false" visibility="public"
  24091. deprecated="not deprecated">
  24092. <param name="jtIdentifier" type="java.lang.String"/>
  24093. <param name="jobId" type="java.lang.Integer"/>
  24094. <param name="isMap" type="java.lang.Boolean"/>
  24095. <param name="taskId" type="java.lang.Integer"/>
  24096. <doc>
  24097. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  24098. be given null, in which case that part of the regex will be generic.
  24099. For example to obtain a regex matching <i>the first map task</i>
  24100. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  24101. <pre>
  24102. TaskID.getTaskIDsPattern(null, null, true, 1);
  24103. </pre>
  24104. which will return :
  24105. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  24106. @param jtIdentifier jobTracker identifier, or null
  24107. @param jobId job number, or null
  24108. @param isMap whether the tip is a map, or null
  24109. @param taskId taskId number, or null
  24110. @return a regex pattern matching TaskIDs]]>
  24111. </doc>
  24112. </method>
  24113. <doc>
  24114. <![CDATA[TaskID represents the immutable and unique identifier for
  24115. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  24116. execute the Map or Reduce Task, each of which are uniquely indentified by
  24117. their TaskAttemptID.
  24118. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  24119. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  24120. representing whether the task is a map task or a reduce task.
  24121. And the third part is the task number. <br>
  24122. An example TaskID is :
  24123. <code>task_200707121733_0003_m_000005</code> , which represents the
  24124. fifth map task in the third job running at the jobtracker
  24125. started at <code>200707121733</code>.
  24126. <p>
  24127. Applications should never construct or parse TaskID strings
  24128. , but rather use appropriate constructors or {@link #forName(String)}
  24129. method.
  24130. @see JobID
  24131. @see TaskAttemptID]]>
  24132. </doc>
  24133. </class>
  24134. <!-- end class org.apache.hadoop.mapred.TaskID -->
  24135. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  24136. <class name="TaskLog" extends="java.lang.Object"
  24137. abstract="false"
  24138. static="false" final="false" visibility="public"
  24139. deprecated="not deprecated">
  24140. <constructor name="TaskLog"
  24141. static="false" final="false" visibility="public"
  24142. deprecated="not deprecated">
  24143. </constructor>
  24144. <method name="getTaskLogFile" return="java.io.File"
  24145. abstract="false" native="false" synchronized="false"
  24146. static="true" final="false" visibility="public"
  24147. deprecated="not deprecated">
  24148. <param name="taskid" type="java.lang.String"/>
  24149. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  24150. </method>
  24151. <method name="getTaskLogFile" return="java.io.File"
  24152. abstract="false" native="false" synchronized="false"
  24153. static="true" final="false" visibility="public"
  24154. deprecated="not deprecated">
  24155. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24156. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  24157. </method>
  24158. <method name="cleanup"
  24159. abstract="false" native="false" synchronized="true"
  24160. static="true" final="false" visibility="public"
  24161. deprecated="not deprecated">
  24162. <param name="logsRetainHours" type="int"/>
  24163. <exception name="IOException" type="java.io.IOException"/>
  24164. <doc>
  24165. <![CDATA[Purge old user logs.
  24166. @throws IOException]]>
  24167. </doc>
  24168. </method>
  24169. <method name="getTaskLogLength" return="long"
  24170. abstract="false" native="false" synchronized="false"
  24171. static="true" final="false" visibility="public"
  24172. deprecated="not deprecated">
  24173. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  24174. <doc>
  24175. <![CDATA[Get the desired maximum length of task's logs.
  24176. @param conf the job to look in
  24177. @return the number of bytes to cap the log files at]]>
  24178. </doc>
  24179. </method>
  24180. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  24181. abstract="false" native="false" synchronized="false"
  24182. static="true" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  24185. <param name="stdoutFilename" type="java.io.File"/>
  24186. <param name="stderrFilename" type="java.io.File"/>
  24187. <param name="tailLength" type="long"/>
  24188. <exception name="IOException" type="java.io.IOException"/>
  24189. <doc>
  24190. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  24191. If the tailLength is 0, the entire output will be saved.
  24192. @param cmd The command and the arguments that should be run
  24193. @param stdoutFilename The filename that stdout should be saved to
  24194. @param stderrFilename The filename that stderr should be saved to
  24195. @param tailLength The length of the tail to be saved.
  24196. @return the modified command that should be run]]>
  24197. </doc>
  24198. </method>
  24199. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  24200. abstract="false" native="false" synchronized="false"
  24201. static="true" final="false" visibility="public"
  24202. deprecated="not deprecated">
  24203. <param name="setup" type="java.util.List&lt;java.lang.String&gt;"/>
  24204. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  24205. <param name="stdoutFilename" type="java.io.File"/>
  24206. <param name="stderrFilename" type="java.io.File"/>
  24207. <param name="tailLength" type="long"/>
  24208. <exception name="IOException" type="java.io.IOException"/>
  24209. <doc>
  24210. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  24211. Setup commands such as setting memory limit can be passed which
  24212. will be executed before exec.
  24213. If the tailLength is 0, the entire output will be saved.
  24214. @param setup The setup commands for the execed process.
  24215. @param cmd The command and the arguments that should be run
  24216. @param stdoutFilename The filename that stdout should be saved to
  24217. @param stderrFilename The filename that stderr should be saved to
  24218. @param tailLength The length of the tail to be saved.
  24219. @return the modified command that should be run]]>
  24220. </doc>
  24221. </method>
  24222. <method name="addCommand" return="java.lang.String"
  24223. abstract="false" native="false" synchronized="false"
  24224. static="true" final="false" visibility="public"
  24225. deprecated="not deprecated">
  24226. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  24227. <param name="isExecutable" type="boolean"/>
  24228. <exception name="IOException" type="java.io.IOException"/>
  24229. <doc>
  24230. <![CDATA[Add quotes to each of the command strings and
  24231. return as a single string
  24232. @param cmd The command to be quoted
  24233. @param isExecutable makes shell path if the first
  24234. argument is executable
  24235. @return returns The quoted string.
  24236. @throws IOException]]>
  24237. </doc>
  24238. </method>
  24239. <method name="captureDebugOut" return="java.util.List&lt;java.lang.String&gt;"
  24240. abstract="false" native="false" synchronized="false"
  24241. static="true" final="false" visibility="public"
  24242. deprecated="not deprecated">
  24243. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  24244. <param name="debugoutFilename" type="java.io.File"/>
  24245. <exception name="IOException" type="java.io.IOException"/>
  24246. <doc>
  24247. <![CDATA[Wrap a command in a shell to capture debug script's
  24248. stdout and stderr to debugout.
  24249. @param cmd The command and the arguments that should be run
  24250. @param debugoutFilename The filename that stdout and stderr
  24251. should be saved to.
  24252. @return the modified command that should be run
  24253. @throws IOException]]>
  24254. </doc>
  24255. </method>
  24256. <doc>
  24257. <![CDATA[A simple logger to handle the task-specific user logs.
  24258. This class uses the system property <code>hadoop.log.dir</code>.]]>
  24259. </doc>
  24260. </class>
  24261. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  24262. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  24263. <class name="TaskLog.LogName" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskLog.LogName&gt;"
  24264. abstract="false"
  24265. static="true" final="true" visibility="public"
  24266. deprecated="not deprecated">
  24267. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  24268. abstract="false" native="false" synchronized="false"
  24269. static="true" final="true" visibility="public"
  24270. deprecated="not deprecated">
  24271. </method>
  24272. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  24273. abstract="false" native="false" synchronized="false"
  24274. static="true" final="false" visibility="public"
  24275. deprecated="not deprecated">
  24276. <param name="name" type="java.lang.String"/>
  24277. </method>
  24278. <method name="toString" return="java.lang.String"
  24279. abstract="false" native="false" synchronized="false"
  24280. static="false" final="false" visibility="public"
  24281. deprecated="not deprecated">
  24282. </method>
  24283. <doc>
  24284. <![CDATA[The filter for userlogs.]]>
  24285. </doc>
  24286. </class>
  24287. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  24288. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  24289. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  24290. abstract="false"
  24291. static="false" final="false" visibility="public"
  24292. deprecated="not deprecated">
  24293. <constructor name="TaskLogAppender"
  24294. static="false" final="false" visibility="public"
  24295. deprecated="not deprecated">
  24296. </constructor>
  24297. <method name="activateOptions"
  24298. abstract="false" native="false" synchronized="false"
  24299. static="false" final="false" visibility="public"
  24300. deprecated="not deprecated">
  24301. </method>
  24302. <method name="append"
  24303. abstract="false" native="false" synchronized="false"
  24304. static="false" final="false" visibility="public"
  24305. deprecated="not deprecated">
  24306. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  24307. </method>
  24308. <method name="close"
  24309. abstract="false" native="false" synchronized="true"
  24310. static="false" final="false" visibility="public"
  24311. deprecated="not deprecated">
  24312. </method>
  24313. <method name="getTaskId" return="java.lang.String"
  24314. abstract="false" native="false" synchronized="false"
  24315. static="false" final="false" visibility="public"
  24316. deprecated="not deprecated">
  24317. <doc>
  24318. <![CDATA[Getter/Setter methods for log4j.]]>
  24319. </doc>
  24320. </method>
  24321. <method name="setTaskId"
  24322. abstract="false" native="false" synchronized="false"
  24323. static="false" final="false" visibility="public"
  24324. deprecated="not deprecated">
  24325. <param name="taskId" type="java.lang.String"/>
  24326. </method>
  24327. <method name="getTotalLogFileSize" return="long"
  24328. abstract="false" native="false" synchronized="false"
  24329. static="false" final="false" visibility="public"
  24330. deprecated="not deprecated">
  24331. </method>
  24332. <method name="setTotalLogFileSize"
  24333. abstract="false" native="false" synchronized="false"
  24334. static="false" final="false" visibility="public"
  24335. deprecated="not deprecated">
  24336. <param name="logSize" type="long"/>
  24337. </method>
  24338. <doc>
  24339. <![CDATA[A simple log4j-appender for the task child's
  24340. map-reduce system logs.]]>
  24341. </doc>
  24342. </class>
  24343. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  24344. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  24345. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  24346. abstract="false"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="not deprecated">
  24349. <constructor name="TaskLogServlet"
  24350. static="false" final="false" visibility="public"
  24351. deprecated="not deprecated">
  24352. </constructor>
  24353. <method name="doGet"
  24354. abstract="false" native="false" synchronized="false"
  24355. static="false" final="false" visibility="public"
  24356. deprecated="not deprecated">
  24357. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24358. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24359. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24360. <exception name="IOException" type="java.io.IOException"/>
  24361. <doc>
  24362. <![CDATA[Get the logs via http.]]>
  24363. </doc>
  24364. </method>
  24365. <doc>
  24366. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  24367. </doc>
  24368. </class>
  24369. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  24370. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  24371. <class name="TaskReport" extends="java.lang.Object"
  24372. abstract="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <implements name="org.apache.hadoop.io.Writable"/>
  24376. <constructor name="TaskReport"
  24377. static="false" final="false" visibility="public"
  24378. deprecated="not deprecated">
  24379. </constructor>
  24380. <method name="getTaskId" return="java.lang.String"
  24381. abstract="false" native="false" synchronized="false"
  24382. static="false" final="false" visibility="public"
  24383. deprecated="use {@link #getTaskID()} instead">
  24384. <doc>
  24385. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  24386. </doc>
  24387. </method>
  24388. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  24389. abstract="false" native="false" synchronized="false"
  24390. static="false" final="false" visibility="public"
  24391. deprecated="not deprecated">
  24392. <doc>
  24393. <![CDATA[The id of the task.]]>
  24394. </doc>
  24395. </method>
  24396. <method name="getProgress" return="float"
  24397. abstract="false" native="false" synchronized="false"
  24398. static="false" final="false" visibility="public"
  24399. deprecated="not deprecated">
  24400. <doc>
  24401. <![CDATA[The amount completed, between zero and one.]]>
  24402. </doc>
  24403. </method>
  24404. <method name="getState" return="java.lang.String"
  24405. abstract="false" native="false" synchronized="false"
  24406. static="false" final="false" visibility="public"
  24407. deprecated="not deprecated">
  24408. <doc>
  24409. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  24410. </doc>
  24411. </method>
  24412. <method name="getDiagnostics" return="java.lang.String[]"
  24413. abstract="false" native="false" synchronized="false"
  24414. static="false" final="false" visibility="public"
  24415. deprecated="not deprecated">
  24416. <doc>
  24417. <![CDATA[A list of error messages.]]>
  24418. </doc>
  24419. </method>
  24420. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  24421. abstract="false" native="false" synchronized="false"
  24422. static="false" final="false" visibility="public"
  24423. deprecated="not deprecated">
  24424. <doc>
  24425. <![CDATA[A table of counters.]]>
  24426. </doc>
  24427. </method>
  24428. <method name="getFinishTime" return="long"
  24429. abstract="false" native="false" synchronized="false"
  24430. static="false" final="false" visibility="public"
  24431. deprecated="not deprecated">
  24432. <doc>
  24433. <![CDATA[Get finish time of task.
  24434. @return 0, if finish time was not set else returns finish time.]]>
  24435. </doc>
  24436. </method>
  24437. <method name="getStartTime" return="long"
  24438. abstract="false" native="false" synchronized="false"
  24439. static="false" final="false" visibility="public"
  24440. deprecated="not deprecated">
  24441. <doc>
  24442. <![CDATA[Get start time of task.
  24443. @return 0 if start time was not set, else start time.]]>
  24444. </doc>
  24445. </method>
  24446. <method name="write"
  24447. abstract="false" native="false" synchronized="false"
  24448. static="false" final="false" visibility="public"
  24449. deprecated="not deprecated">
  24450. <param name="out" type="java.io.DataOutput"/>
  24451. <exception name="IOException" type="java.io.IOException"/>
  24452. </method>
  24453. <method name="readFields"
  24454. abstract="false" native="false" synchronized="false"
  24455. static="false" final="false" visibility="public"
  24456. deprecated="not deprecated">
  24457. <param name="in" type="java.io.DataInput"/>
  24458. <exception name="IOException" type="java.io.IOException"/>
  24459. </method>
  24460. <doc>
  24461. <![CDATA[A report on the state of a task.]]>
  24462. </doc>
  24463. </class>
  24464. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  24465. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  24466. <class name="TaskTracker" extends="java.lang.Object"
  24467. abstract="false"
  24468. static="false" final="false" visibility="public"
  24469. deprecated="not deprecated">
  24470. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  24471. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  24472. <implements name="java.lang.Runnable"/>
  24473. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  24474. static="false" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. <exception name="IOException" type="java.io.IOException"/>
  24477. <doc>
  24478. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  24479. </doc>
  24480. </constructor>
  24481. <method name="getTaskTrackerMetrics" return="org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics"
  24482. abstract="false" native="false" synchronized="false"
  24483. static="false" final="false" visibility="public"
  24484. deprecated="not deprecated">
  24485. </method>
  24486. <method name="getProtocolVersion" return="long"
  24487. abstract="false" native="false" synchronized="false"
  24488. static="false" final="false" visibility="public"
  24489. deprecated="not deprecated">
  24490. <param name="protocol" type="java.lang.String"/>
  24491. <param name="clientVersion" type="long"/>
  24492. <exception name="IOException" type="java.io.IOException"/>
  24493. </method>
  24494. <method name="cleanupStorage"
  24495. abstract="false" native="false" synchronized="false"
  24496. static="false" final="false" visibility="public"
  24497. deprecated="not deprecated">
  24498. <exception name="IOException" type="java.io.IOException"/>
  24499. <doc>
  24500. <![CDATA[Removes all contents of temporary storage. Called upon
  24501. startup, to remove any leftovers from previous run.]]>
  24502. </doc>
  24503. </method>
  24504. <method name="shutdown"
  24505. abstract="false" native="false" synchronized="true"
  24506. static="false" final="false" visibility="public"
  24507. deprecated="not deprecated">
  24508. <exception name="IOException" type="java.io.IOException"/>
  24509. </method>
  24510. <method name="close"
  24511. abstract="false" native="false" synchronized="true"
  24512. static="false" final="false" visibility="public"
  24513. deprecated="not deprecated">
  24514. <exception name="IOException" type="java.io.IOException"/>
  24515. <doc>
  24516. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  24517. any running tasks or threads, and cleanup disk space. A new TaskTracker
  24518. within the same process space might be restarted, so everything must be
  24519. clean.]]>
  24520. </doc>
  24521. </method>
  24522. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  24523. abstract="false" native="false" synchronized="false"
  24524. static="false" final="false" visibility="public"
  24525. deprecated="not deprecated">
  24526. <doc>
  24527. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  24528. for locating remote files.]]>
  24529. </doc>
  24530. </method>
  24531. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  24532. abstract="false" native="false" synchronized="true"
  24533. static="false" final="false" visibility="public"
  24534. deprecated="not deprecated">
  24535. <doc>
  24536. <![CDATA[Return the port at which the tasktracker bound to]]>
  24537. </doc>
  24538. </method>
  24539. <method name="run"
  24540. abstract="false" native="false" synchronized="false"
  24541. static="false" final="false" visibility="public"
  24542. deprecated="not deprecated">
  24543. <doc>
  24544. <![CDATA[The server retry loop.
  24545. This while-loop attempts to connect to the JobTracker. It only
  24546. loops when the old TaskTracker has gone bad (its state is
  24547. stale somehow) and we need to reinitialize everything.]]>
  24548. </doc>
  24549. </method>
  24550. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  24551. abstract="false" native="false" synchronized="false"
  24552. static="false" final="false" visibility="public"
  24553. deprecated="not deprecated">
  24554. <param name="id" type="java.lang.String"/>
  24555. <exception name="IOException" type="java.io.IOException"/>
  24556. </method>
  24557. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  24558. abstract="false" native="false" synchronized="true"
  24559. static="false" final="false" visibility="public"
  24560. deprecated="not deprecated">
  24561. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24562. <exception name="IOException" type="java.io.IOException"/>
  24563. <doc>
  24564. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  24565. </doc>
  24566. </method>
  24567. <method name="statusUpdate" return="boolean"
  24568. abstract="false" native="false" synchronized="false"
  24569. static="false" final="false" visibility="public"
  24570. deprecated="not deprecated">
  24571. <param name="taskid" type="java.lang.String"/>
  24572. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  24573. <exception name="IOException" type="java.io.IOException"/>
  24574. </method>
  24575. <method name="statusUpdate" return="boolean"
  24576. abstract="false" native="false" synchronized="true"
  24577. static="false" final="false" visibility="public"
  24578. deprecated="not deprecated">
  24579. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24580. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  24581. <exception name="IOException" type="java.io.IOException"/>
  24582. <doc>
  24583. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  24584. </doc>
  24585. </method>
  24586. <method name="reportDiagnosticInfo"
  24587. abstract="false" native="false" synchronized="false"
  24588. static="false" final="false" visibility="public"
  24589. deprecated="not deprecated">
  24590. <param name="taskid" type="java.lang.String"/>
  24591. <param name="info" type="java.lang.String"/>
  24592. <exception name="IOException" type="java.io.IOException"/>
  24593. </method>
  24594. <method name="reportDiagnosticInfo"
  24595. abstract="false" native="false" synchronized="true"
  24596. static="false" final="false" visibility="public"
  24597. deprecated="not deprecated">
  24598. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24599. <param name="info" type="java.lang.String"/>
  24600. <exception name="IOException" type="java.io.IOException"/>
  24601. <doc>
  24602. <![CDATA[Called when the task dies before completion, and we want to report back
  24603. diagnostic info]]>
  24604. </doc>
  24605. </method>
  24606. <method name="ping" return="boolean"
  24607. abstract="false" native="false" synchronized="false"
  24608. static="false" final="false" visibility="public"
  24609. deprecated="not deprecated">
  24610. <param name="taskid" type="java.lang.String"/>
  24611. <exception name="IOException" type="java.io.IOException"/>
  24612. </method>
  24613. <method name="ping" return="boolean"
  24614. abstract="false" native="false" synchronized="true"
  24615. static="false" final="false" visibility="public"
  24616. deprecated="not deprecated">
  24617. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24618. <exception name="IOException" type="java.io.IOException"/>
  24619. <doc>
  24620. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  24621. </doc>
  24622. </method>
  24623. <method name="done"
  24624. abstract="false" native="false" synchronized="false"
  24625. static="false" final="false" visibility="public"
  24626. deprecated="not deprecated">
  24627. <param name="taskid" type="java.lang.String"/>
  24628. <param name="shouldPromote" type="boolean"/>
  24629. <exception name="IOException" type="java.io.IOException"/>
  24630. </method>
  24631. <method name="done"
  24632. abstract="false" native="false" synchronized="true"
  24633. static="false" final="false" visibility="public"
  24634. deprecated="not deprecated">
  24635. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24636. <param name="shouldPromote" type="boolean"/>
  24637. <exception name="IOException" type="java.io.IOException"/>
  24638. <doc>
  24639. <![CDATA[The task is done.]]>
  24640. </doc>
  24641. </method>
  24642. <method name="shuffleError"
  24643. abstract="false" native="false" synchronized="false"
  24644. static="false" final="false" visibility="public"
  24645. deprecated="not deprecated">
  24646. <param name="taskid" type="java.lang.String"/>
  24647. <param name="msg" type="java.lang.String"/>
  24648. <exception name="IOException" type="java.io.IOException"/>
  24649. </method>
  24650. <method name="shuffleError"
  24651. abstract="false" native="false" synchronized="true"
  24652. static="false" final="false" visibility="public"
  24653. deprecated="not deprecated">
  24654. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24655. <param name="message" type="java.lang.String"/>
  24656. <exception name="IOException" type="java.io.IOException"/>
  24657. <doc>
  24658. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  24659. </doc>
  24660. </method>
  24661. <method name="fsError"
  24662. abstract="false" native="false" synchronized="false"
  24663. static="false" final="false" visibility="public"
  24664. deprecated="not deprecated">
  24665. <param name="taskid" type="java.lang.String"/>
  24666. <param name="msg" type="java.lang.String"/>
  24667. <exception name="IOException" type="java.io.IOException"/>
  24668. </method>
  24669. <method name="fsError"
  24670. abstract="false" native="false" synchronized="true"
  24671. static="false" final="false" visibility="public"
  24672. deprecated="not deprecated">
  24673. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24674. <param name="message" type="java.lang.String"/>
  24675. <exception name="IOException" type="java.io.IOException"/>
  24676. <doc>
  24677. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  24678. </doc>
  24679. </method>
  24680. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  24681. abstract="false" native="false" synchronized="false"
  24682. static="false" final="false" visibility="public"
  24683. deprecated="not deprecated">
  24684. <param name="jobid" type="java.lang.String"/>
  24685. <param name="fromid" type="int"/>
  24686. <param name="maxlocs" type="int"/>
  24687. <exception name="IOException" type="java.io.IOException"/>
  24688. </method>
  24689. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  24690. abstract="false" native="false" synchronized="false"
  24691. static="false" final="false" visibility="public"
  24692. deprecated="not deprecated">
  24693. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  24694. <param name="fromEventId" type="int"/>
  24695. <param name="maxLocs" type="int"/>
  24696. <exception name="IOException" type="java.io.IOException"/>
  24697. </method>
  24698. <method name="mapOutputLost"
  24699. abstract="false" native="false" synchronized="false"
  24700. static="false" final="false" visibility="public"
  24701. deprecated="not deprecated">
  24702. <param name="taskid" type="java.lang.String"/>
  24703. <param name="msg" type="java.lang.String"/>
  24704. <exception name="IOException" type="java.io.IOException"/>
  24705. </method>
  24706. <method name="mapOutputLost"
  24707. abstract="false" native="false" synchronized="true"
  24708. static="false" final="false" visibility="public"
  24709. deprecated="not deprecated">
  24710. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  24711. <param name="errorMsg" type="java.lang.String"/>
  24712. <exception name="IOException" type="java.io.IOException"/>
  24713. <doc>
  24714. <![CDATA[A completed map task's output has been lost.]]>
  24715. </doc>
  24716. </method>
  24717. <method name="isIdle" return="boolean"
  24718. abstract="false" native="false" synchronized="true"
  24719. static="false" final="false" visibility="public"
  24720. deprecated="not deprecated">
  24721. <doc>
  24722. <![CDATA[Is this task tracker idle?
  24723. @return has this task tracker finished and cleaned up all of its tasks?]]>
  24724. </doc>
  24725. </method>
  24726. <method name="main"
  24727. abstract="false" native="false" synchronized="false"
  24728. static="true" final="false" visibility="public"
  24729. deprecated="not deprecated">
  24730. <param name="argv" type="java.lang.String[]"/>
  24731. <exception name="Exception" type="java.lang.Exception"/>
  24732. <doc>
  24733. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  24734. </doc>
  24735. </method>
  24736. <field name="LOG" type="org.apache.commons.logging.Log"
  24737. transient="false" volatile="false"
  24738. static="true" final="true" visibility="public"
  24739. deprecated="not deprecated">
  24740. </field>
  24741. <doc>
  24742. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  24743. in a networked environment. It contacts the JobTracker
  24744. for Task assignments and reporting results.]]>
  24745. </doc>
  24746. </class>
  24747. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  24748. <!-- start class org.apache.hadoop.mapred.TaskTracker.Child -->
  24749. <class name="TaskTracker.Child" extends="java.lang.Object"
  24750. abstract="false"
  24751. static="true" final="false" visibility="public"
  24752. deprecated="not deprecated">
  24753. <constructor name="TaskTracker.Child"
  24754. static="false" final="false" visibility="public"
  24755. deprecated="not deprecated">
  24756. </constructor>
  24757. <method name="main"
  24758. abstract="false" native="false" synchronized="false"
  24759. static="true" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <param name="args" type="java.lang.String[]"/>
  24762. <exception name="Throwable" type="java.lang.Throwable"/>
  24763. </method>
  24764. <doc>
  24765. <![CDATA[The main() for child processes.]]>
  24766. </doc>
  24767. </class>
  24768. <!-- end class org.apache.hadoop.mapred.TaskTracker.Child -->
  24769. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  24770. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  24771. abstract="false"
  24772. static="true" final="false" visibility="public"
  24773. deprecated="not deprecated">
  24774. <constructor name="TaskTracker.MapOutputServlet"
  24775. static="false" final="false" visibility="public"
  24776. deprecated="not deprecated">
  24777. </constructor>
  24778. <method name="doGet"
  24779. abstract="false" native="false" synchronized="false"
  24780. static="false" final="false" visibility="public"
  24781. deprecated="not deprecated">
  24782. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  24783. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  24784. <exception name="ServletException" type="javax.servlet.ServletException"/>
  24785. <exception name="IOException" type="java.io.IOException"/>
  24786. </method>
  24787. <doc>
  24788. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  24789. to other nodes.]]>
  24790. </doc>
  24791. </class>
  24792. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  24793. <!-- start class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  24794. <class name="TaskTracker.TaskTrackerMetrics" extends="java.lang.Object"
  24795. abstract="false"
  24796. static="false" final="false" visibility="public"
  24797. deprecated="not deprecated">
  24798. <implements name="org.apache.hadoop.metrics.Updater"/>
  24799. <method name="doUpdates"
  24800. abstract="false" native="false" synchronized="false"
  24801. static="false" final="false" visibility="public"
  24802. deprecated="not deprecated">
  24803. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  24804. <doc>
  24805. <![CDATA[Since this object is a registered updater, this method will be called
  24806. periodically, e.g. every 5 seconds.]]>
  24807. </doc>
  24808. </method>
  24809. </class>
  24810. <!-- end class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  24811. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  24812. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  24813. abstract="false"
  24814. static="false" final="false" visibility="public"
  24815. deprecated="not deprecated">
  24816. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  24817. <constructor name="TextInputFormat"
  24818. static="false" final="false" visibility="public"
  24819. deprecated="not deprecated">
  24820. </constructor>
  24821. <method name="configure"
  24822. abstract="false" native="false" synchronized="false"
  24823. static="false" final="false" visibility="public"
  24824. deprecated="not deprecated">
  24825. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  24826. </method>
  24827. <method name="isSplitable" return="boolean"
  24828. abstract="false" native="false" synchronized="false"
  24829. static="false" final="false" visibility="protected"
  24830. deprecated="not deprecated">
  24831. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  24832. <param name="file" type="org.apache.hadoop.fs.Path"/>
  24833. </method>
  24834. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  24835. abstract="false" native="false" synchronized="false"
  24836. static="false" final="false" visibility="public"
  24837. deprecated="not deprecated">
  24838. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  24839. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24840. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24841. <exception name="IOException" type="java.io.IOException"/>
  24842. </method>
  24843. <doc>
  24844. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  24845. Either linefeed or carriage-return are used to signal end of line. Keys are
  24846. the position in the file, and values are the line of text..]]>
  24847. </doc>
  24848. </class>
  24849. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  24850. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  24851. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  24852. abstract="false"
  24853. static="false" final="false" visibility="public"
  24854. deprecated="not deprecated">
  24855. <constructor name="TextOutputFormat"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. </constructor>
  24859. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  24860. abstract="false" native="false" synchronized="false"
  24861. static="false" final="false" visibility="public"
  24862. deprecated="not deprecated">
  24863. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  24864. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24865. <param name="name" type="java.lang.String"/>
  24866. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  24867. <exception name="IOException" type="java.io.IOException"/>
  24868. </method>
  24869. <doc>
  24870. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  24871. </doc>
  24872. </class>
  24873. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  24874. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  24875. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  24876. abstract="false"
  24877. static="true" final="false" visibility="protected"
  24878. deprecated="not deprecated">
  24879. <implements name="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"/>
  24880. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  24881. static="false" final="false" visibility="public"
  24882. deprecated="not deprecated">
  24883. </constructor>
  24884. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  24885. static="false" final="false" visibility="public"
  24886. deprecated="not deprecated">
  24887. </constructor>
  24888. <method name="write"
  24889. abstract="false" native="false" synchronized="true"
  24890. static="false" final="false" visibility="public"
  24891. deprecated="not deprecated">
  24892. <param name="key" type="K"/>
  24893. <param name="value" type="V"/>
  24894. <exception name="IOException" type="java.io.IOException"/>
  24895. </method>
  24896. <method name="close"
  24897. abstract="false" native="false" synchronized="true"
  24898. static="false" final="false" visibility="public"
  24899. deprecated="not deprecated">
  24900. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24901. <exception name="IOException" type="java.io.IOException"/>
  24902. </method>
  24903. </class>
  24904. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  24905. </package>
  24906. <package name="org.apache.hadoop.mapred.jobcontrol">
  24907. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  24908. <class name="Job" extends="java.lang.Object"
  24909. abstract="false"
  24910. static="false" final="false" visibility="public"
  24911. deprecated="not deprecated">
  24912. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  24913. static="false" final="false" visibility="public"
  24914. deprecated="not deprecated">
  24915. <exception name="IOException" type="java.io.IOException"/>
  24916. <doc>
  24917. <![CDATA[Construct a job.
  24918. @param jobConf a mapred job configuration representing a job to be executed.
  24919. @param dependingJobs an array of jobs the current job depends on]]>
  24920. </doc>
  24921. </constructor>
  24922. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  24923. static="false" final="false" visibility="public"
  24924. deprecated="not deprecated">
  24925. <exception name="IOException" type="java.io.IOException"/>
  24926. <doc>
  24927. <![CDATA[Construct a job.
  24928. @param jobConf mapred job configuration representing a job to be executed.
  24929. @throws IOException]]>
  24930. </doc>
  24931. </constructor>
  24932. <method name="toString" return="java.lang.String"
  24933. abstract="false" native="false" synchronized="false"
  24934. static="false" final="false" visibility="public"
  24935. deprecated="not deprecated">
  24936. </method>
  24937. <method name="getJobName" return="java.lang.String"
  24938. abstract="false" native="false" synchronized="false"
  24939. static="false" final="false" visibility="public"
  24940. deprecated="not deprecated">
  24941. <doc>
  24942. <![CDATA[@return the job name of this job]]>
  24943. </doc>
  24944. </method>
  24945. <method name="setJobName"
  24946. abstract="false" native="false" synchronized="false"
  24947. static="false" final="false" visibility="public"
  24948. deprecated="not deprecated">
  24949. <param name="jobName" type="java.lang.String"/>
  24950. <doc>
  24951. <![CDATA[Set the job name for this job.
  24952. @param jobName the job name]]>
  24953. </doc>
  24954. </method>
  24955. <method name="getJobID" return="java.lang.String"
  24956. abstract="false" native="false" synchronized="false"
  24957. static="false" final="false" visibility="public"
  24958. deprecated="not deprecated">
  24959. <doc>
  24960. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  24961. </doc>
  24962. </method>
  24963. <method name="setJobID"
  24964. abstract="false" native="false" synchronized="false"
  24965. static="false" final="false" visibility="public"
  24966. deprecated="not deprecated">
  24967. <param name="id" type="java.lang.String"/>
  24968. <doc>
  24969. <![CDATA[Set the job ID for this job.
  24970. @param id the job ID]]>
  24971. </doc>
  24972. </method>
  24973. <method name="getMapredJobID" return="java.lang.String"
  24974. abstract="false" native="false" synchronized="false"
  24975. static="false" final="false" visibility="public"
  24976. deprecated="use {@link #getAssignedJobID()} instead">
  24977. <doc>
  24978. <![CDATA[@return the mapred ID of this job
  24979. @deprecated use {@link #getAssignedJobID()} instead]]>
  24980. </doc>
  24981. </method>
  24982. <method name="setMapredJobID"
  24983. abstract="false" native="false" synchronized="false"
  24984. static="false" final="false" visibility="public"
  24985. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  24986. <param name="mapredJobID" type="java.lang.String"/>
  24987. <doc>
  24988. <![CDATA[Set the mapred ID for this job.
  24989. @param mapredJobID the mapred job ID for this job.
  24990. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  24991. </doc>
  24992. </method>
  24993. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  24994. abstract="false" native="false" synchronized="false"
  24995. static="false" final="false" visibility="public"
  24996. deprecated="not deprecated">
  24997. <doc>
  24998. <![CDATA[@return the mapred ID of this job as assigned by the
  24999. mapred framework.]]>
  25000. </doc>
  25001. </method>
  25002. <method name="setAssignedJobID"
  25003. abstract="false" native="false" synchronized="false"
  25004. static="false" final="false" visibility="public"
  25005. deprecated="not deprecated">
  25006. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  25007. <doc>
  25008. <![CDATA[Set the mapred ID for this job as assigned by the
  25009. mapred framework.
  25010. @param mapredJobID the mapred job ID for this job.]]>
  25011. </doc>
  25012. </method>
  25013. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  25014. abstract="false" native="false" synchronized="false"
  25015. static="false" final="false" visibility="public"
  25016. deprecated="not deprecated">
  25017. <doc>
  25018. <![CDATA[@return the mapred job conf of this job]]>
  25019. </doc>
  25020. </method>
  25021. <method name="setJobConf"
  25022. abstract="false" native="false" synchronized="false"
  25023. static="false" final="false" visibility="public"
  25024. deprecated="not deprecated">
  25025. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  25026. <doc>
  25027. <![CDATA[Set the mapred job conf for this job.
  25028. @param jobConf the mapred job conf for this job.]]>
  25029. </doc>
  25030. </method>
  25031. <method name="getState" return="int"
  25032. abstract="false" native="false" synchronized="true"
  25033. static="false" final="false" visibility="public"
  25034. deprecated="not deprecated">
  25035. <doc>
  25036. <![CDATA[@return the state of this job]]>
  25037. </doc>
  25038. </method>
  25039. <method name="setState"
  25040. abstract="false" native="false" synchronized="true"
  25041. static="false" final="false" visibility="protected"
  25042. deprecated="not deprecated">
  25043. <param name="state" type="int"/>
  25044. <doc>
  25045. <![CDATA[Set the state for this job.
  25046. @param state the new state for this job.]]>
  25047. </doc>
  25048. </method>
  25049. <method name="getMessage" return="java.lang.String"
  25050. abstract="false" native="false" synchronized="false"
  25051. static="false" final="false" visibility="public"
  25052. deprecated="not deprecated">
  25053. <doc>
  25054. <![CDATA[@return the message of this job]]>
  25055. </doc>
  25056. </method>
  25057. <method name="setMessage"
  25058. abstract="false" native="false" synchronized="false"
  25059. static="false" final="false" visibility="public"
  25060. deprecated="not deprecated">
  25061. <param name="message" type="java.lang.String"/>
  25062. <doc>
  25063. <![CDATA[Set the message for this job.
  25064. @param message the message for this job.]]>
  25065. </doc>
  25066. </method>
  25067. <method name="getDependingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25068. abstract="false" native="false" synchronized="false"
  25069. static="false" final="false" visibility="public"
  25070. deprecated="not deprecated">
  25071. <doc>
  25072. <![CDATA[@return the depending jobs of this job]]>
  25073. </doc>
  25074. </method>
  25075. <method name="addDependingJob" return="boolean"
  25076. abstract="false" native="false" synchronized="true"
  25077. static="false" final="false" visibility="public"
  25078. deprecated="not deprecated">
  25079. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  25080. <doc>
  25081. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  25082. is waiting to run, not during or afterwards.
  25083. @param dependingJob Job that this Job depends on.
  25084. @return <tt>true</tt> if the Job was added.]]>
  25085. </doc>
  25086. </method>
  25087. <method name="isCompleted" return="boolean"
  25088. abstract="false" native="false" synchronized="false"
  25089. static="false" final="false" visibility="public"
  25090. deprecated="not deprecated">
  25091. <doc>
  25092. <![CDATA[@return true if this job is in a complete state]]>
  25093. </doc>
  25094. </method>
  25095. <method name="isReady" return="boolean"
  25096. abstract="false" native="false" synchronized="false"
  25097. static="false" final="false" visibility="public"
  25098. deprecated="not deprecated">
  25099. <doc>
  25100. <![CDATA[@return true if this job is in READY state]]>
  25101. </doc>
  25102. </method>
  25103. <method name="submit"
  25104. abstract="false" native="false" synchronized="true"
  25105. static="false" final="false" visibility="protected"
  25106. deprecated="not deprecated">
  25107. <doc>
  25108. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  25109. is successful, FAILED otherwise.]]>
  25110. </doc>
  25111. </method>
  25112. <field name="SUCCESS" type="int"
  25113. transient="false" volatile="false"
  25114. static="true" final="true" visibility="public"
  25115. deprecated="not deprecated">
  25116. </field>
  25117. <field name="WAITING" type="int"
  25118. transient="false" volatile="false"
  25119. static="true" final="true" visibility="public"
  25120. deprecated="not deprecated">
  25121. </field>
  25122. <field name="RUNNING" type="int"
  25123. transient="false" volatile="false"
  25124. static="true" final="true" visibility="public"
  25125. deprecated="not deprecated">
  25126. </field>
  25127. <field name="READY" type="int"
  25128. transient="false" volatile="false"
  25129. static="true" final="true" visibility="public"
  25130. deprecated="not deprecated">
  25131. </field>
  25132. <field name="FAILED" type="int"
  25133. transient="false" volatile="false"
  25134. static="true" final="true" visibility="public"
  25135. deprecated="not deprecated">
  25136. </field>
  25137. <field name="DEPENDENT_FAILED" type="int"
  25138. transient="false" volatile="false"
  25139. static="true" final="true" visibility="public"
  25140. deprecated="not deprecated">
  25141. </field>
  25142. <doc>
  25143. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  25144. the states of the depending jobs and updates the state of this job.
  25145. A job stats in the WAITING state. If it does not have any deoending jobs, or
  25146. all of the depending jobs are in SUCCESS state, then the job state will become
  25147. READY. If any depending jobs fail, the job will fail too.
  25148. When in READY state, the job can be submitted to Hadoop for execution, with
  25149. the state changing into RUNNING state. From RUNNING state, the job can get into
  25150. SUCCESS or FAILED state, depending the status of the jon execution.]]>
  25151. </doc>
  25152. </class>
  25153. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  25154. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  25155. <class name="JobControl" extends="java.lang.Object"
  25156. abstract="false"
  25157. static="false" final="false" visibility="public"
  25158. deprecated="not deprecated">
  25159. <implements name="java.lang.Runnable"/>
  25160. <constructor name="JobControl" type="java.lang.String"
  25161. static="false" final="false" visibility="public"
  25162. deprecated="not deprecated">
  25163. <doc>
  25164. <![CDATA[Construct a job control for a group of jobs.
  25165. @param groupName a name identifying this group]]>
  25166. </doc>
  25167. </constructor>
  25168. <method name="getWaitingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25169. abstract="false" native="false" synchronized="false"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <doc>
  25173. <![CDATA[@return the jobs in the waiting state]]>
  25174. </doc>
  25175. </method>
  25176. <method name="getRunningJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25177. abstract="false" native="false" synchronized="false"
  25178. static="false" final="false" visibility="public"
  25179. deprecated="not deprecated">
  25180. <doc>
  25181. <![CDATA[@return the jobs in the running state]]>
  25182. </doc>
  25183. </method>
  25184. <method name="getReadyJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25185. abstract="false" native="false" synchronized="false"
  25186. static="false" final="false" visibility="public"
  25187. deprecated="not deprecated">
  25188. <doc>
  25189. <![CDATA[@return the jobs in the ready state]]>
  25190. </doc>
  25191. </method>
  25192. <method name="getSuccessfulJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25193. abstract="false" native="false" synchronized="false"
  25194. static="false" final="false" visibility="public"
  25195. deprecated="not deprecated">
  25196. <doc>
  25197. <![CDATA[@return the jobs in the success state]]>
  25198. </doc>
  25199. </method>
  25200. <method name="getFailedJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  25201. abstract="false" native="false" synchronized="false"
  25202. static="false" final="false" visibility="public"
  25203. deprecated="not deprecated">
  25204. </method>
  25205. <method name="addJob" return="java.lang.String"
  25206. abstract="false" native="false" synchronized="true"
  25207. static="false" final="false" visibility="public"
  25208. deprecated="not deprecated">
  25209. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  25210. <doc>
  25211. <![CDATA[Add a new job.
  25212. @param aJob the new job]]>
  25213. </doc>
  25214. </method>
  25215. <method name="addJobs"
  25216. abstract="false" native="false" synchronized="false"
  25217. static="false" final="false" visibility="public"
  25218. deprecated="not deprecated">
  25219. <param name="jobs" type="java.util.Collection&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"/>
  25220. <doc>
  25221. <![CDATA[Add a collection of jobs
  25222. @param jobs]]>
  25223. </doc>
  25224. </method>
  25225. <method name="getState" return="int"
  25226. abstract="false" native="false" synchronized="false"
  25227. static="false" final="false" visibility="public"
  25228. deprecated="not deprecated">
  25229. <doc>
  25230. <![CDATA[@return the thread state]]>
  25231. </doc>
  25232. </method>
  25233. <method name="stop"
  25234. abstract="false" native="false" synchronized="false"
  25235. static="false" final="false" visibility="public"
  25236. deprecated="not deprecated">
  25237. <doc>
  25238. <![CDATA[set the thread state to STOPPING so that the
  25239. thread will stop when it wakes up.]]>
  25240. </doc>
  25241. </method>
  25242. <method name="suspend"
  25243. abstract="false" native="false" synchronized="false"
  25244. static="false" final="false" visibility="public"
  25245. deprecated="not deprecated">
  25246. <doc>
  25247. <![CDATA[suspend the running thread]]>
  25248. </doc>
  25249. </method>
  25250. <method name="resume"
  25251. abstract="false" native="false" synchronized="false"
  25252. static="false" final="false" visibility="public"
  25253. deprecated="not deprecated">
  25254. <doc>
  25255. <![CDATA[resume the suspended thread]]>
  25256. </doc>
  25257. </method>
  25258. <method name="allFinished" return="boolean"
  25259. abstract="false" native="false" synchronized="true"
  25260. static="false" final="false" visibility="public"
  25261. deprecated="not deprecated">
  25262. </method>
  25263. <method name="run"
  25264. abstract="false" native="false" synchronized="false"
  25265. static="false" final="false" visibility="public"
  25266. deprecated="not deprecated">
  25267. <doc>
  25268. <![CDATA[The main loop for the thread.
  25269. The loop does the following:
  25270. Check the states of the running jobs
  25271. Update the states of waiting jobs
  25272. Submit the jobs in ready state]]>
  25273. </doc>
  25274. </method>
  25275. <doc>
  25276. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  25277. the states of the jobs by placing them into different tables according to their
  25278. states.
  25279. This class provides APIs for the client app to add a job to the group and to get
  25280. the jobs in the group in different states. When a
  25281. job is added, an ID unique to the group is assigned to the job.
  25282. This class has a thread that submits jobs when they become ready, monitors the
  25283. states of the running jobs, and updates the states of jobs based on the state changes
  25284. of their depending jobs states. The class provides APIs for suspending/resuming
  25285. the thread,and for stopping the thread.]]>
  25286. </doc>
  25287. </class>
  25288. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  25289. </package>
  25290. <package name="org.apache.hadoop.mapred.join">
  25291. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  25292. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  25293. abstract="false"
  25294. static="false" final="false" visibility="public"
  25295. deprecated="not deprecated">
  25296. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  25297. <constructor name="ArrayListBackedIterator"
  25298. static="false" final="false" visibility="public"
  25299. deprecated="not deprecated">
  25300. </constructor>
  25301. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList&lt;X&gt;"
  25302. static="false" final="false" visibility="public"
  25303. deprecated="not deprecated">
  25304. </constructor>
  25305. <method name="hasNext" return="boolean"
  25306. abstract="false" native="false" synchronized="false"
  25307. static="false" final="false" visibility="public"
  25308. deprecated="not deprecated">
  25309. </method>
  25310. <method name="next" return="boolean"
  25311. abstract="false" native="false" synchronized="false"
  25312. static="false" final="false" visibility="public"
  25313. deprecated="not deprecated">
  25314. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  25315. <exception name="IOException" type="java.io.IOException"/>
  25316. </method>
  25317. <method name="replay"
  25318. abstract="false" native="false" synchronized="false"
  25319. static="false" final="false" visibility="public"
  25320. deprecated="not deprecated">
  25321. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  25322. <exception name="IOException" type="java.io.IOException"/>
  25323. </method>
  25324. <method name="reset"
  25325. abstract="false" native="false" synchronized="false"
  25326. static="false" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. </method>
  25329. <method name="add"
  25330. abstract="false" native="false" synchronized="false"
  25331. static="false" final="false" visibility="public"
  25332. deprecated="not deprecated">
  25333. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  25334. <exception name="IOException" type="java.io.IOException"/>
  25335. </method>
  25336. <method name="close"
  25337. abstract="false" native="false" synchronized="false"
  25338. static="false" final="false" visibility="public"
  25339. deprecated="not deprecated">
  25340. <exception name="IOException" type="java.io.IOException"/>
  25341. </method>
  25342. <method name="clear"
  25343. abstract="false" native="false" synchronized="false"
  25344. static="false" final="false" visibility="public"
  25345. deprecated="not deprecated">
  25346. </method>
  25347. <doc>
  25348. <![CDATA[This class provides an implementation of ResetableIterator. The
  25349. implementation uses an {@link java.util.ArrayList} to store elements
  25350. added to it, replaying them as requested.
  25351. Prefer {@link StreamBackedIterator}.]]>
  25352. </doc>
  25353. </class>
  25354. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  25355. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  25356. <interface name="ComposableInputFormat" abstract="true"
  25357. static="false" final="false" visibility="public"
  25358. deprecated="not deprecated">
  25359. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  25360. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"
  25361. abstract="false" native="false" synchronized="false"
  25362. static="false" final="false" visibility="public"
  25363. deprecated="not deprecated">
  25364. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25365. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25366. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25367. <exception name="IOException" type="java.io.IOException"/>
  25368. </method>
  25369. <doc>
  25370. <![CDATA[Refinement of InputFormat requiring implementors to provide
  25371. ComposableRecordReader instead of RecordReader.]]>
  25372. </doc>
  25373. </interface>
  25374. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  25375. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  25376. <interface name="ComposableRecordReader" abstract="true"
  25377. static="false" final="false" visibility="public"
  25378. deprecated="not deprecated">
  25379. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  25380. <implements name="java.lang.Comparable&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"/>
  25381. <method name="id" return="int"
  25382. abstract="false" native="false" synchronized="false"
  25383. static="false" final="false" visibility="public"
  25384. deprecated="not deprecated">
  25385. <doc>
  25386. <![CDATA[Return the position in the collector this class occupies.]]>
  25387. </doc>
  25388. </method>
  25389. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  25390. abstract="false" native="false" synchronized="false"
  25391. static="false" final="false" visibility="public"
  25392. deprecated="not deprecated">
  25393. <doc>
  25394. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  25395. </doc>
  25396. </method>
  25397. <method name="key"
  25398. abstract="false" native="false" synchronized="false"
  25399. static="false" final="false" visibility="public"
  25400. deprecated="not deprecated">
  25401. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25402. <exception name="IOException" type="java.io.IOException"/>
  25403. <doc>
  25404. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  25405. </doc>
  25406. </method>
  25407. <method name="hasNext" return="boolean"
  25408. abstract="false" native="false" synchronized="false"
  25409. static="false" final="false" visibility="public"
  25410. deprecated="not deprecated">
  25411. <doc>
  25412. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  25413. a call to next(K,V) will succeed.]]>
  25414. </doc>
  25415. </method>
  25416. <method name="skip"
  25417. abstract="false" native="false" synchronized="false"
  25418. static="false" final="false" visibility="public"
  25419. deprecated="not deprecated">
  25420. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25421. <exception name="IOException" type="java.io.IOException"/>
  25422. <doc>
  25423. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  25424. </doc>
  25425. </method>
  25426. <method name="accept"
  25427. abstract="false" native="false" synchronized="false"
  25428. static="false" final="false" visibility="public"
  25429. deprecated="not deprecated">
  25430. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  25431. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25432. <exception name="IOException" type="java.io.IOException"/>
  25433. <doc>
  25434. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  25435. them with the JoinCollector provided.]]>
  25436. </doc>
  25437. </method>
  25438. <doc>
  25439. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  25440. </doc>
  25441. </interface>
  25442. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  25443. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  25444. <class name="CompositeInputFormat" extends="java.lang.Object"
  25445. abstract="false"
  25446. static="false" final="false" visibility="public"
  25447. deprecated="not deprecated">
  25448. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  25449. <constructor name="CompositeInputFormat"
  25450. static="false" final="false" visibility="public"
  25451. deprecated="not deprecated">
  25452. </constructor>
  25453. <method name="setFormat"
  25454. abstract="false" native="false" synchronized="false"
  25455. static="false" final="false" visibility="public"
  25456. deprecated="not deprecated">
  25457. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25458. <exception name="IOException" type="java.io.IOException"/>
  25459. <doc>
  25460. <![CDATA[Interpret a given string as a composite expression.
  25461. {@code
  25462. func ::= <ident>([<func>,]*<func>)
  25463. func ::= tbl(<class>,"<path>")
  25464. class ::= @see java.lang.Class#forName(java.lang.String)
  25465. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  25466. }
  25467. Reads expression from the <tt>mapred.join.expr</tt> property and
  25468. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  25469. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  25470. InputFormat class listed.
  25471. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  25472. </doc>
  25473. </method>
  25474. <method name="addDefaults"
  25475. abstract="false" native="false" synchronized="false"
  25476. static="false" final="false" visibility="protected"
  25477. deprecated="not deprecated">
  25478. <doc>
  25479. <![CDATA[Adds the default set of identifiers to the parser.]]>
  25480. </doc>
  25481. </method>
  25482. <method name="validateInput"
  25483. abstract="false" native="false" synchronized="false"
  25484. static="false" final="false" visibility="public"
  25485. deprecated="not deprecated">
  25486. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25487. <exception name="IOException" type="java.io.IOException"/>
  25488. <doc>
  25489. <![CDATA[Verify that this composite has children and that all its children
  25490. can validate their input.]]>
  25491. </doc>
  25492. </method>
  25493. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  25494. abstract="false" native="false" synchronized="false"
  25495. static="false" final="false" visibility="public"
  25496. deprecated="not deprecated">
  25497. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25498. <param name="numSplits" type="int"/>
  25499. <exception name="IOException" type="java.io.IOException"/>
  25500. <doc>
  25501. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  25502. ith split from each child to the ith composite split.]]>
  25503. </doc>
  25504. </method>
  25505. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  25506. abstract="false" native="false" synchronized="false"
  25507. static="false" final="false" visibility="public"
  25508. deprecated="not deprecated">
  25509. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25510. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25511. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25512. <exception name="IOException" type="java.io.IOException"/>
  25513. <doc>
  25514. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  25515. as defined in the init expression.
  25516. The outermost join need only be composable, not necessarily a composite.
  25517. Mandating TupleWritable isn't strictly correct.]]>
  25518. </doc>
  25519. </method>
  25520. <method name="compose" return="java.lang.String"
  25521. abstract="false" native="false" synchronized="false"
  25522. static="true" final="false" visibility="public"
  25523. deprecated="not deprecated">
  25524. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  25525. <param name="path" type="java.lang.String"/>
  25526. <doc>
  25527. <![CDATA[Convenience method for constructing composite formats.
  25528. Given InputFormat class (inf), path (p) return:
  25529. {@code tbl(<inf>, <p>) }]]>
  25530. </doc>
  25531. </method>
  25532. <method name="compose" return="java.lang.String"
  25533. abstract="false" native="false" synchronized="false"
  25534. static="true" final="false" visibility="public"
  25535. deprecated="not deprecated">
  25536. <param name="op" type="java.lang.String"/>
  25537. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  25538. <param name="path" type="java.lang.String[]"/>
  25539. <doc>
  25540. <![CDATA[Convenience method for constructing composite formats.
  25541. Given operation (op), Object class (inf), set of paths (p) return:
  25542. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  25543. </doc>
  25544. </method>
  25545. <method name="compose" return="java.lang.String"
  25546. abstract="false" native="false" synchronized="false"
  25547. static="true" final="false" visibility="public"
  25548. deprecated="not deprecated">
  25549. <param name="op" type="java.lang.String"/>
  25550. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  25551. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  25552. <doc>
  25553. <![CDATA[Convenience method for constructing composite formats.
  25554. Given operation (op), Object class (inf), set of paths (p) return:
  25555. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  25556. </doc>
  25557. </method>
  25558. <doc>
  25559. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  25560. and partitioned the same way.
  25561. @see #setFormat
  25562. A user may define new join types by setting the property
  25563. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  25564. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  25565. ComposableRecordReader.
  25566. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  25567. in the join.
  25568. @see JoinRecordReader
  25569. @see MultiFilterRecordReader]]>
  25570. </doc>
  25571. </class>
  25572. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  25573. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  25574. <class name="CompositeInputSplit" extends="java.lang.Object"
  25575. abstract="false"
  25576. static="false" final="false" visibility="public"
  25577. deprecated="not deprecated">
  25578. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  25579. <constructor name="CompositeInputSplit"
  25580. static="false" final="false" visibility="public"
  25581. deprecated="not deprecated">
  25582. </constructor>
  25583. <constructor name="CompositeInputSplit" type="int"
  25584. static="false" final="false" visibility="public"
  25585. deprecated="not deprecated">
  25586. </constructor>
  25587. <method name="add"
  25588. abstract="false" native="false" synchronized="false"
  25589. static="false" final="false" visibility="public"
  25590. deprecated="not deprecated">
  25591. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  25592. <exception name="IOException" type="java.io.IOException"/>
  25593. <doc>
  25594. <![CDATA[Add an InputSplit to this collection.
  25595. @throws IOException If capacity was not specified during construction
  25596. or if capacity has been reached.]]>
  25597. </doc>
  25598. </method>
  25599. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  25600. abstract="false" native="false" synchronized="false"
  25601. static="false" final="false" visibility="public"
  25602. deprecated="not deprecated">
  25603. <param name="i" type="int"/>
  25604. <doc>
  25605. <![CDATA[Get ith child InputSplit.]]>
  25606. </doc>
  25607. </method>
  25608. <method name="getLength" return="long"
  25609. abstract="false" native="false" synchronized="false"
  25610. static="false" final="false" visibility="public"
  25611. deprecated="not deprecated">
  25612. <exception name="IOException" type="java.io.IOException"/>
  25613. <doc>
  25614. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  25615. </doc>
  25616. </method>
  25617. <method name="getLength" return="long"
  25618. abstract="false" native="false" synchronized="false"
  25619. static="false" final="false" visibility="public"
  25620. deprecated="not deprecated">
  25621. <param name="i" type="int"/>
  25622. <exception name="IOException" type="java.io.IOException"/>
  25623. <doc>
  25624. <![CDATA[Get the length of ith child InputSplit.]]>
  25625. </doc>
  25626. </method>
  25627. <method name="getLocations" return="java.lang.String[]"
  25628. abstract="false" native="false" synchronized="false"
  25629. static="false" final="false" visibility="public"
  25630. deprecated="not deprecated">
  25631. <exception name="IOException" type="java.io.IOException"/>
  25632. <doc>
  25633. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  25634. </doc>
  25635. </method>
  25636. <method name="getLocation" return="java.lang.String[]"
  25637. abstract="false" native="false" synchronized="false"
  25638. static="false" final="false" visibility="public"
  25639. deprecated="not deprecated">
  25640. <param name="i" type="int"/>
  25641. <exception name="IOException" type="java.io.IOException"/>
  25642. <doc>
  25643. <![CDATA[getLocations from ith InputSplit.]]>
  25644. </doc>
  25645. </method>
  25646. <method name="write"
  25647. abstract="false" native="false" synchronized="false"
  25648. static="false" final="false" visibility="public"
  25649. deprecated="not deprecated">
  25650. <param name="out" type="java.io.DataOutput"/>
  25651. <exception name="IOException" type="java.io.IOException"/>
  25652. <doc>
  25653. <![CDATA[Write splits in the following format.
  25654. {@code
  25655. <count><class1><class2>...<classn><split1><split2>...<splitn>
  25656. }]]>
  25657. </doc>
  25658. </method>
  25659. <method name="readFields"
  25660. abstract="false" native="false" synchronized="false"
  25661. static="false" final="false" visibility="public"
  25662. deprecated="not deprecated">
  25663. <param name="in" type="java.io.DataInput"/>
  25664. <exception name="IOException" type="java.io.IOException"/>
  25665. <doc>
  25666. <![CDATA[{@inheritDoc}
  25667. @throws IOException If the child InputSplit cannot be read, typically
  25668. for faliing access checks.]]>
  25669. </doc>
  25670. </method>
  25671. <doc>
  25672. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  25673. into this collection must have a public default constructor.]]>
  25674. </doc>
  25675. </class>
  25676. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  25677. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  25678. <class name="CompositeRecordReader" extends="java.lang.Object"
  25679. abstract="true"
  25680. static="false" final="false" visibility="public"
  25681. deprecated="not deprecated">
  25682. <implements name="org.apache.hadoop.conf.Configurable"/>
  25683. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  25684. static="false" final="false" visibility="public"
  25685. deprecated="not deprecated">
  25686. <exception name="IOException" type="java.io.IOException"/>
  25687. <doc>
  25688. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  25689. <tt>id</tt> in the parent reader.
  25690. The id of a root CompositeRecordReader is -1 by convention, but relying
  25691. on this is not recommended.]]>
  25692. </doc>
  25693. </constructor>
  25694. <method name="combine" return="boolean"
  25695. abstract="true" native="false" synchronized="false"
  25696. static="false" final="false" visibility="protected"
  25697. deprecated="not deprecated">
  25698. <param name="srcs" type="java.lang.Object[]"/>
  25699. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25700. </method>
  25701. <method name="id" return="int"
  25702. abstract="false" native="false" synchronized="false"
  25703. static="false" final="false" visibility="public"
  25704. deprecated="not deprecated">
  25705. <doc>
  25706. <![CDATA[Return the position in the collector this class occupies.]]>
  25707. </doc>
  25708. </method>
  25709. <method name="setConf"
  25710. abstract="false" native="false" synchronized="false"
  25711. static="false" final="false" visibility="public"
  25712. deprecated="not deprecated">
  25713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25714. <doc>
  25715. <![CDATA[{@inheritDoc}]]>
  25716. </doc>
  25717. </method>
  25718. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25719. abstract="false" native="false" synchronized="false"
  25720. static="false" final="false" visibility="public"
  25721. deprecated="not deprecated">
  25722. <doc>
  25723. <![CDATA[{@inheritDoc}]]>
  25724. </doc>
  25725. </method>
  25726. <method name="getRecordReaderQueue" return="java.util.PriorityQueue&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"
  25727. abstract="false" native="false" synchronized="false"
  25728. static="false" final="false" visibility="protected"
  25729. deprecated="not deprecated">
  25730. <doc>
  25731. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  25732. </doc>
  25733. </method>
  25734. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  25735. abstract="false" native="false" synchronized="false"
  25736. static="false" final="false" visibility="protected"
  25737. deprecated="not deprecated">
  25738. <doc>
  25739. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  25740. composite.]]>
  25741. </doc>
  25742. </method>
  25743. <method name="add"
  25744. abstract="false" native="false" synchronized="false"
  25745. static="false" final="false" visibility="public"
  25746. deprecated="not deprecated">
  25747. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ? extends V&gt;"/>
  25748. <exception name="IOException" type="java.io.IOException"/>
  25749. <doc>
  25750. <![CDATA[Add a RecordReader to this collection.
  25751. The id() of a RecordReader determines where in the Tuple its
  25752. entry will appear. Adding RecordReaders with the same id has
  25753. undefined behavior.]]>
  25754. </doc>
  25755. </method>
  25756. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  25757. abstract="false" native="false" synchronized="false"
  25758. static="false" final="false" visibility="public"
  25759. deprecated="not deprecated">
  25760. <doc>
  25761. <![CDATA[Return the key for the current join or the value at the top of the
  25762. RecordReader heap.]]>
  25763. </doc>
  25764. </method>
  25765. <method name="key"
  25766. abstract="false" native="false" synchronized="false"
  25767. static="false" final="false" visibility="public"
  25768. deprecated="not deprecated">
  25769. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25770. <exception name="IOException" type="java.io.IOException"/>
  25771. <doc>
  25772. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  25773. </doc>
  25774. </method>
  25775. <method name="hasNext" return="boolean"
  25776. abstract="false" native="false" synchronized="false"
  25777. static="false" final="false" visibility="public"
  25778. deprecated="not deprecated">
  25779. <doc>
  25780. <![CDATA[Return true if it is possible that this could emit more values.]]>
  25781. </doc>
  25782. </method>
  25783. <method name="skip"
  25784. abstract="false" native="false" synchronized="false"
  25785. static="false" final="false" visibility="public"
  25786. deprecated="not deprecated">
  25787. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25788. <exception name="IOException" type="java.io.IOException"/>
  25789. <doc>
  25790. <![CDATA[Pass skip key to child RRs.]]>
  25791. </doc>
  25792. </method>
  25793. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"
  25794. abstract="true" native="false" synchronized="false"
  25795. static="false" final="false" visibility="protected"
  25796. deprecated="not deprecated">
  25797. <doc>
  25798. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  25799. ultimately emitted from this join.]]>
  25800. </doc>
  25801. </method>
  25802. <method name="accept"
  25803. abstract="false" native="false" synchronized="false"
  25804. static="false" final="false" visibility="public"
  25805. deprecated="not deprecated">
  25806. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  25807. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25808. <exception name="IOException" type="java.io.IOException"/>
  25809. <doc>
  25810. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  25811. iterator over values it may emit.]]>
  25812. </doc>
  25813. </method>
  25814. <method name="fillJoinCollector"
  25815. abstract="false" native="false" synchronized="false"
  25816. static="false" final="false" visibility="protected"
  25817. deprecated="not deprecated">
  25818. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25819. <exception name="IOException" type="java.io.IOException"/>
  25820. <doc>
  25821. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  25822. at that position in the JoinCollector.]]>
  25823. </doc>
  25824. </method>
  25825. <method name="compareTo" return="int"
  25826. abstract="false" native="false" synchronized="false"
  25827. static="false" final="false" visibility="public"
  25828. deprecated="not deprecated">
  25829. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  25830. <doc>
  25831. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  25832. with that of another).]]>
  25833. </doc>
  25834. </method>
  25835. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  25836. abstract="false" native="false" synchronized="false"
  25837. static="false" final="false" visibility="public"
  25838. deprecated="not deprecated">
  25839. <doc>
  25840. <![CDATA[Create a new key value common to all child RRs.
  25841. @throws ClassCastException if key classes differ.]]>
  25842. </doc>
  25843. </method>
  25844. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  25845. abstract="false" native="false" synchronized="false"
  25846. static="false" final="false" visibility="protected"
  25847. deprecated="not deprecated">
  25848. <doc>
  25849. <![CDATA[Create a value to be used internally for joins.]]>
  25850. </doc>
  25851. </method>
  25852. <method name="getPos" return="long"
  25853. abstract="false" native="false" synchronized="false"
  25854. static="false" final="false" visibility="public"
  25855. deprecated="not deprecated">
  25856. <exception name="IOException" type="java.io.IOException"/>
  25857. <doc>
  25858. <![CDATA[Unsupported (returns zero in all cases).]]>
  25859. </doc>
  25860. </method>
  25861. <method name="close"
  25862. abstract="false" native="false" synchronized="false"
  25863. static="false" final="false" visibility="public"
  25864. deprecated="not deprecated">
  25865. <exception name="IOException" type="java.io.IOException"/>
  25866. <doc>
  25867. <![CDATA[Close all child RRs.]]>
  25868. </doc>
  25869. </method>
  25870. <method name="getProgress" return="float"
  25871. abstract="false" native="false" synchronized="false"
  25872. static="false" final="false" visibility="public"
  25873. deprecated="not deprecated">
  25874. <exception name="IOException" type="java.io.IOException"/>
  25875. <doc>
  25876. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  25877. </doc>
  25878. </method>
  25879. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, X&gt;.JoinCollector"
  25880. transient="false" volatile="false"
  25881. static="false" final="true" visibility="protected"
  25882. deprecated="not deprecated">
  25883. </field>
  25884. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  25885. transient="false" volatile="false"
  25886. static="false" final="true" visibility="protected"
  25887. deprecated="not deprecated">
  25888. </field>
  25889. <doc>
  25890. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  25891. type and partitioning.]]>
  25892. </doc>
  25893. </class>
  25894. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  25895. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  25896. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  25897. abstract="false"
  25898. static="false" final="false" visibility="public"
  25899. deprecated="not deprecated">
  25900. <method name="combine" return="boolean"
  25901. abstract="false" native="false" synchronized="false"
  25902. static="false" final="false" visibility="protected"
  25903. deprecated="not deprecated">
  25904. <param name="srcs" type="java.lang.Object[]"/>
  25905. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25906. <doc>
  25907. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  25908. </doc>
  25909. </method>
  25910. <doc>
  25911. <![CDATA[Full inner join.]]>
  25912. </doc>
  25913. </class>
  25914. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  25915. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  25916. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  25917. abstract="true"
  25918. static="false" final="false" visibility="public"
  25919. deprecated="not deprecated">
  25920. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  25921. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  25922. static="false" final="false" visibility="public"
  25923. deprecated="not deprecated">
  25924. <exception name="IOException" type="java.io.IOException"/>
  25925. </constructor>
  25926. <method name="next" return="boolean"
  25927. abstract="false" native="false" synchronized="false"
  25928. static="false" final="false" visibility="public"
  25929. deprecated="not deprecated">
  25930. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25931. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25932. <exception name="IOException" type="java.io.IOException"/>
  25933. <doc>
  25934. <![CDATA[Emit the next set of key, value pairs as defined by the child
  25935. RecordReaders and operation associated with this composite RR.]]>
  25936. </doc>
  25937. </method>
  25938. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  25939. abstract="false" native="false" synchronized="false"
  25940. static="false" final="false" visibility="public"
  25941. deprecated="not deprecated">
  25942. <doc>
  25943. <![CDATA[{@inheritDoc}]]>
  25944. </doc>
  25945. </method>
  25946. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"
  25947. abstract="false" native="false" synchronized="false"
  25948. static="false" final="false" visibility="protected"
  25949. deprecated="not deprecated">
  25950. <doc>
  25951. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  25952. </doc>
  25953. </method>
  25954. <doc>
  25955. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  25956. </doc>
  25957. </class>
  25958. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  25959. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  25960. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  25961. abstract="false"
  25962. static="false" final="false" visibility="protected"
  25963. deprecated="not deprecated">
  25964. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  25965. <constructor name="JoinRecordReader.JoinDelegationIterator"
  25966. static="false" final="false" visibility="protected"
  25967. deprecated="not deprecated">
  25968. </constructor>
  25969. <method name="hasNext" return="boolean"
  25970. abstract="false" native="false" synchronized="false"
  25971. static="false" final="false" visibility="public"
  25972. deprecated="not deprecated">
  25973. </method>
  25974. <method name="next" return="boolean"
  25975. abstract="false" native="false" synchronized="false"
  25976. static="false" final="false" visibility="public"
  25977. deprecated="not deprecated">
  25978. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25979. <exception name="IOException" type="java.io.IOException"/>
  25980. </method>
  25981. <method name="replay"
  25982. abstract="false" native="false" synchronized="false"
  25983. static="false" final="false" visibility="public"
  25984. deprecated="not deprecated">
  25985. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25986. <exception name="IOException" type="java.io.IOException"/>
  25987. </method>
  25988. <method name="reset"
  25989. abstract="false" native="false" synchronized="false"
  25990. static="false" final="false" visibility="public"
  25991. deprecated="not deprecated">
  25992. </method>
  25993. <method name="add"
  25994. abstract="false" native="false" synchronized="false"
  25995. static="false" final="false" visibility="public"
  25996. deprecated="not deprecated">
  25997. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  25998. <exception name="IOException" type="java.io.IOException"/>
  25999. </method>
  26000. <method name="close"
  26001. abstract="false" native="false" synchronized="false"
  26002. static="false" final="false" visibility="public"
  26003. deprecated="not deprecated">
  26004. <exception name="IOException" type="java.io.IOException"/>
  26005. </method>
  26006. <method name="clear"
  26007. abstract="false" native="false" synchronized="false"
  26008. static="false" final="false" visibility="public"
  26009. deprecated="not deprecated">
  26010. </method>
  26011. <doc>
  26012. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  26013. provide an iterator proxy wrapping its operation.]]>
  26014. </doc>
  26015. </class>
  26016. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  26017. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  26018. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, V&gt;"
  26019. abstract="true"
  26020. static="false" final="false" visibility="public"
  26021. deprecated="not deprecated">
  26022. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"/>
  26023. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  26024. static="false" final="false" visibility="public"
  26025. deprecated="not deprecated">
  26026. <exception name="IOException" type="java.io.IOException"/>
  26027. </constructor>
  26028. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  26029. abstract="true" native="false" synchronized="false"
  26030. static="false" final="false" visibility="protected"
  26031. deprecated="not deprecated">
  26032. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  26033. <exception name="IOException" type="java.io.IOException"/>
  26034. <doc>
  26035. <![CDATA[For each tuple emitted, return a value (typically one of the values
  26036. in the tuple).
  26037. Modifying the Writables in the tuple is permitted and unlikely to affect
  26038. join behavior in most cases, but it is not recommended. It's safer to
  26039. clone first.]]>
  26040. </doc>
  26041. </method>
  26042. <method name="combine" return="boolean"
  26043. abstract="false" native="false" synchronized="false"
  26044. static="false" final="false" visibility="protected"
  26045. deprecated="not deprecated">
  26046. <param name="srcs" type="java.lang.Object[]"/>
  26047. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  26048. <doc>
  26049. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  26050. collector (the outer join of child RRs).]]>
  26051. </doc>
  26052. </method>
  26053. <method name="next" return="boolean"
  26054. abstract="false" native="false" synchronized="false"
  26055. static="false" final="false" visibility="public"
  26056. deprecated="not deprecated">
  26057. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26058. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  26059. <exception name="IOException" type="java.io.IOException"/>
  26060. <doc>
  26061. <![CDATA[{@inheritDoc}]]>
  26062. </doc>
  26063. </method>
  26064. <method name="createValue" return="V extends org.apache.hadoop.io.Writable"
  26065. abstract="false" native="false" synchronized="false"
  26066. static="false" final="false" visibility="public"
  26067. deprecated="not deprecated">
  26068. <doc>
  26069. <![CDATA[{@inheritDoc}]]>
  26070. </doc>
  26071. </method>
  26072. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"
  26073. abstract="false" native="false" synchronized="false"
  26074. static="false" final="false" visibility="protected"
  26075. deprecated="not deprecated">
  26076. <doc>
  26077. <![CDATA[Return an iterator returning a single value from the tuple.
  26078. @see MultiFilterDelegationIterator]]>
  26079. </doc>
  26080. </method>
  26081. <doc>
  26082. <![CDATA[Base class for Composite join returning values derived from multiple
  26083. sources, but generally not tuples.]]>
  26084. </doc>
  26085. </class>
  26086. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  26087. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  26088. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  26089. abstract="false"
  26090. static="false" final="false" visibility="protected"
  26091. deprecated="not deprecated">
  26092. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"/>
  26093. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  26094. static="false" final="false" visibility="protected"
  26095. deprecated="not deprecated">
  26096. </constructor>
  26097. <method name="hasNext" return="boolean"
  26098. abstract="false" native="false" synchronized="false"
  26099. static="false" final="false" visibility="public"
  26100. deprecated="not deprecated">
  26101. </method>
  26102. <method name="next" return="boolean"
  26103. abstract="false" native="false" synchronized="false"
  26104. static="false" final="false" visibility="public"
  26105. deprecated="not deprecated">
  26106. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  26107. <exception name="IOException" type="java.io.IOException"/>
  26108. </method>
  26109. <method name="replay"
  26110. abstract="false" native="false" synchronized="false"
  26111. static="false" final="false" visibility="public"
  26112. deprecated="not deprecated">
  26113. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  26114. <exception name="IOException" type="java.io.IOException"/>
  26115. </method>
  26116. <method name="reset"
  26117. abstract="false" native="false" synchronized="false"
  26118. static="false" final="false" visibility="public"
  26119. deprecated="not deprecated">
  26120. </method>
  26121. <method name="add"
  26122. abstract="false" native="false" synchronized="false"
  26123. static="false" final="false" visibility="public"
  26124. deprecated="not deprecated">
  26125. <param name="item" type="V extends org.apache.hadoop.io.Writable"/>
  26126. <exception name="IOException" type="java.io.IOException"/>
  26127. </method>
  26128. <method name="close"
  26129. abstract="false" native="false" synchronized="false"
  26130. static="false" final="false" visibility="public"
  26131. deprecated="not deprecated">
  26132. <exception name="IOException" type="java.io.IOException"/>
  26133. </method>
  26134. <method name="clear"
  26135. abstract="false" native="false" synchronized="false"
  26136. static="false" final="false" visibility="public"
  26137. deprecated="not deprecated">
  26138. </method>
  26139. <doc>
  26140. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  26141. </doc>
  26142. </class>
  26143. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  26144. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  26145. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  26146. abstract="false"
  26147. static="false" final="false" visibility="public"
  26148. deprecated="not deprecated">
  26149. <method name="combine" return="boolean"
  26150. abstract="false" native="false" synchronized="false"
  26151. static="false" final="false" visibility="protected"
  26152. deprecated="not deprecated">
  26153. <param name="srcs" type="java.lang.Object[]"/>
  26154. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  26155. <doc>
  26156. <![CDATA[Emit everything from the collector.]]>
  26157. </doc>
  26158. </method>
  26159. <doc>
  26160. <![CDATA[Full outer join.]]>
  26161. </doc>
  26162. </class>
  26163. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  26164. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  26165. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader&lt;K, V&gt;"
  26166. abstract="false"
  26167. static="false" final="false" visibility="public"
  26168. deprecated="not deprecated">
  26169. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  26170. abstract="false" native="false" synchronized="false"
  26171. static="false" final="false" visibility="protected"
  26172. deprecated="not deprecated">
  26173. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  26174. <doc>
  26175. <![CDATA[Emit the value with the highest position in the tuple.]]>
  26176. </doc>
  26177. </method>
  26178. <method name="fillJoinCollector"
  26179. abstract="false" native="false" synchronized="false"
  26180. static="false" final="false" visibility="protected"
  26181. deprecated="not deprecated">
  26182. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26183. <exception name="IOException" type="java.io.IOException"/>
  26184. <doc>
  26185. <![CDATA[Instead of filling the JoinCollector with iterators from all
  26186. data sources, fill only the rightmost for this key.
  26187. This not only saves space by discarding the other sources, but
  26188. it also emits the number of key-value pairs in the preferred
  26189. RecordReader instead of repeating that stream n times, where
  26190. n is the cardinality of the cross product of the discarded
  26191. streams for the given key.]]>
  26192. </doc>
  26193. </method>
  26194. <doc>
  26195. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  26196. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  26197. from S3 over S2, and values from S2 over S1 for all keys
  26198. emitted from all sources.]]>
  26199. </doc>
  26200. </class>
  26201. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  26202. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  26203. <class name="Parser" extends="java.lang.Object"
  26204. abstract="false"
  26205. static="false" final="false" visibility="public"
  26206. deprecated="not deprecated">
  26207. <constructor name="Parser"
  26208. static="false" final="false" visibility="public"
  26209. deprecated="not deprecated">
  26210. </constructor>
  26211. <doc>
  26212. <![CDATA[Very simple shift-reduce parser for join expressions.
  26213. This should be sufficient for the user extension permitted now, but ought to
  26214. be replaced with a parser generator if more complex grammars are supported.
  26215. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  26216. of formals requires a different internal node type, which is responsible for
  26217. interpreting the list of tokens it receives. This is sufficient for the
  26218. current grammar, but it has several annoying properties that might inhibit
  26219. extension. In particular, parenthesis are always function calls; an
  26220. algebraic or filter grammar would not only require a node type, but must
  26221. also work around the internals of this parser.
  26222. For most other cases, adding classes to the hierarchy- particularly by
  26223. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  26224. straightforward. One need only override the relevant method(s) (usually only
  26225. {@link CompositeRecordReader#combine}) and include a property to map its
  26226. value to an identifier in the parser.]]>
  26227. </doc>
  26228. </class>
  26229. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  26230. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  26231. <class name="Parser.Node" extends="java.lang.Object"
  26232. abstract="true"
  26233. static="true" final="false" visibility="public"
  26234. deprecated="not deprecated">
  26235. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  26236. <constructor name="Parser.Node" type="java.lang.String"
  26237. static="false" final="false" visibility="protected"
  26238. deprecated="not deprecated">
  26239. </constructor>
  26240. <method name="addIdentifier"
  26241. abstract="false" native="false" synchronized="false"
  26242. static="true" final="false" visibility="protected"
  26243. deprecated="not deprecated">
  26244. <param name="ident" type="java.lang.String"/>
  26245. <param name="mcstrSig" type="java.lang.Class[]"/>
  26246. <param name="nodetype" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.Parser.Node&gt;"/>
  26247. <param name="cl" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.ComposableRecordReader&gt;"/>
  26248. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  26249. <doc>
  26250. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  26251. tree and to the ComposableRecordReader to be created, including the
  26252. formals required to invoke the constructor.
  26253. The nodetype and constructor signature should be filled in from the
  26254. child node.]]>
  26255. </doc>
  26256. </method>
  26257. <method name="setID"
  26258. abstract="false" native="false" synchronized="false"
  26259. static="false" final="false" visibility="protected"
  26260. deprecated="not deprecated">
  26261. <param name="id" type="int"/>
  26262. </method>
  26263. <method name="setKeyComparator"
  26264. abstract="false" native="false" synchronized="false"
  26265. static="false" final="false" visibility="protected"
  26266. deprecated="not deprecated">
  26267. <param name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"/>
  26268. </method>
  26269. <field name="rrCstrMap" type="java.util.Map&lt;java.lang.String, java.lang.reflect.Constructor&lt;? extends org.apache.hadoop.mapred.join.ComposableRecordReader&gt;&gt;"
  26270. transient="false" volatile="false"
  26271. static="true" final="true" visibility="protected"
  26272. deprecated="not deprecated">
  26273. </field>
  26274. <field name="id" type="int"
  26275. transient="false" volatile="false"
  26276. static="false" final="false" visibility="protected"
  26277. deprecated="not deprecated">
  26278. </field>
  26279. <field name="ident" type="java.lang.String"
  26280. transient="false" volatile="false"
  26281. static="false" final="false" visibility="protected"
  26282. deprecated="not deprecated">
  26283. </field>
  26284. <field name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  26285. transient="false" volatile="false"
  26286. static="false" final="false" visibility="protected"
  26287. deprecated="not deprecated">
  26288. </field>
  26289. </class>
  26290. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  26291. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  26292. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  26293. abstract="false"
  26294. static="true" final="false" visibility="public"
  26295. deprecated="not deprecated">
  26296. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  26297. abstract="false" native="false" synchronized="false"
  26298. static="false" final="false" visibility="public"
  26299. deprecated="not deprecated">
  26300. </method>
  26301. </class>
  26302. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  26303. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  26304. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  26305. abstract="false"
  26306. static="true" final="false" visibility="public"
  26307. deprecated="not deprecated">
  26308. <constructor name="Parser.NumToken" type="double"
  26309. static="false" final="false" visibility="public"
  26310. deprecated="not deprecated">
  26311. </constructor>
  26312. <method name="getNum" return="double"
  26313. abstract="false" native="false" synchronized="false"
  26314. static="false" final="false" visibility="public"
  26315. deprecated="not deprecated">
  26316. </method>
  26317. </class>
  26318. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  26319. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  26320. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  26321. abstract="false"
  26322. static="true" final="false" visibility="public"
  26323. deprecated="not deprecated">
  26324. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  26325. static="false" final="false" visibility="public"
  26326. deprecated="not deprecated">
  26327. </constructor>
  26328. <method name="getStr" return="java.lang.String"
  26329. abstract="false" native="false" synchronized="false"
  26330. static="false" final="false" visibility="public"
  26331. deprecated="not deprecated">
  26332. </method>
  26333. </class>
  26334. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  26335. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  26336. <class name="Parser.Token" extends="java.lang.Object"
  26337. abstract="false"
  26338. static="true" final="false" visibility="public"
  26339. deprecated="not deprecated">
  26340. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  26341. abstract="false" native="false" synchronized="false"
  26342. static="false" final="false" visibility="public"
  26343. deprecated="not deprecated">
  26344. </method>
  26345. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  26346. abstract="false" native="false" synchronized="false"
  26347. static="false" final="false" visibility="public"
  26348. deprecated="not deprecated">
  26349. <exception name="IOException" type="java.io.IOException"/>
  26350. </method>
  26351. <method name="getNum" return="double"
  26352. abstract="false" native="false" synchronized="false"
  26353. static="false" final="false" visibility="public"
  26354. deprecated="not deprecated">
  26355. <exception name="IOException" type="java.io.IOException"/>
  26356. </method>
  26357. <method name="getStr" return="java.lang.String"
  26358. abstract="false" native="false" synchronized="false"
  26359. static="false" final="false" visibility="public"
  26360. deprecated="not deprecated">
  26361. <exception name="IOException" type="java.io.IOException"/>
  26362. </method>
  26363. <doc>
  26364. <![CDATA[Tagged-union type for tokens from the join expression.
  26365. @see Parser.TType]]>
  26366. </doc>
  26367. </class>
  26368. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  26369. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  26370. <class name="Parser.TType" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.join.Parser.TType&gt;"
  26371. abstract="false"
  26372. static="true" final="true" visibility="public"
  26373. deprecated="not deprecated">
  26374. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  26375. abstract="false" native="false" synchronized="false"
  26376. static="true" final="true" visibility="public"
  26377. deprecated="not deprecated">
  26378. </method>
  26379. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  26380. abstract="false" native="false" synchronized="false"
  26381. static="true" final="false" visibility="public"
  26382. deprecated="not deprecated">
  26383. <param name="name" type="java.lang.String"/>
  26384. </method>
  26385. </class>
  26386. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  26387. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  26388. <interface name="ResetableIterator" abstract="true"
  26389. static="false" final="false" visibility="public"
  26390. deprecated="not deprecated">
  26391. <method name="hasNext" return="boolean"
  26392. abstract="false" native="false" synchronized="false"
  26393. static="false" final="false" visibility="public"
  26394. deprecated="not deprecated">
  26395. <doc>
  26396. <![CDATA[True iff a call to next will succeed.]]>
  26397. </doc>
  26398. </method>
  26399. <method name="next" return="boolean"
  26400. abstract="false" native="false" synchronized="false"
  26401. static="false" final="false" visibility="public"
  26402. deprecated="not deprecated">
  26403. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  26404. <exception name="IOException" type="java.io.IOException"/>
  26405. <doc>
  26406. <![CDATA[Assign next value to actual.
  26407. It is required that elements added to a ResetableIterator be returned in
  26408. the same order after a call to {@link #reset} (FIFO).
  26409. Note that a call to this may fail for nested joins (i.e. more elements
  26410. available, but none satisfying the constraints of the join)]]>
  26411. </doc>
  26412. </method>
  26413. <method name="replay"
  26414. abstract="false" native="false" synchronized="false"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  26418. <exception name="IOException" type="java.io.IOException"/>
  26419. <doc>
  26420. <![CDATA[Assign last value returned to actual.]]>
  26421. </doc>
  26422. </method>
  26423. <method name="reset"
  26424. abstract="false" native="false" synchronized="false"
  26425. static="false" final="false" visibility="public"
  26426. deprecated="not deprecated">
  26427. <doc>
  26428. <![CDATA[Set iterator to return to the start of its range. Must be called after
  26429. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  26430. </doc>
  26431. </method>
  26432. <method name="add"
  26433. abstract="false" native="false" synchronized="false"
  26434. static="false" final="false" visibility="public"
  26435. deprecated="not deprecated">
  26436. <param name="item" type="T extends org.apache.hadoop.io.Writable"/>
  26437. <exception name="IOException" type="java.io.IOException"/>
  26438. <doc>
  26439. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  26440. </doc>
  26441. </method>
  26442. <method name="close"
  26443. abstract="false" native="false" synchronized="false"
  26444. static="false" final="false" visibility="public"
  26445. deprecated="not deprecated">
  26446. <exception name="IOException" type="java.io.IOException"/>
  26447. <doc>
  26448. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  26449. after calling close has undefined behavior.]]>
  26450. </doc>
  26451. </method>
  26452. <method name="clear"
  26453. abstract="false" native="false" synchronized="false"
  26454. static="false" final="false" visibility="public"
  26455. deprecated="not deprecated">
  26456. <doc>
  26457. <![CDATA[Close datasources, but do not release internal resources. Calling this
  26458. method should permit the object to be reused with a different datasource.]]>
  26459. </doc>
  26460. </method>
  26461. <doc>
  26462. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  26463. added to it directly.
  26464. Note that this does not extend {@link java.util.Iterator}.]]>
  26465. </doc>
  26466. </interface>
  26467. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  26468. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  26469. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  26470. abstract="false"
  26471. static="true" final="false" visibility="public"
  26472. deprecated="not deprecated">
  26473. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;U&gt;"/>
  26474. <constructor name="ResetableIterator.EMPTY"
  26475. static="false" final="false" visibility="public"
  26476. deprecated="not deprecated">
  26477. </constructor>
  26478. <method name="hasNext" return="boolean"
  26479. abstract="false" native="false" synchronized="false"
  26480. static="false" final="false" visibility="public"
  26481. deprecated="not deprecated">
  26482. </method>
  26483. <method name="reset"
  26484. abstract="false" native="false" synchronized="false"
  26485. static="false" final="false" visibility="public"
  26486. deprecated="not deprecated">
  26487. </method>
  26488. <method name="close"
  26489. abstract="false" native="false" synchronized="false"
  26490. static="false" final="false" visibility="public"
  26491. deprecated="not deprecated">
  26492. <exception name="IOException" type="java.io.IOException"/>
  26493. </method>
  26494. <method name="clear"
  26495. abstract="false" native="false" synchronized="false"
  26496. static="false" final="false" visibility="public"
  26497. deprecated="not deprecated">
  26498. </method>
  26499. <method name="next" return="boolean"
  26500. abstract="false" native="false" synchronized="false"
  26501. static="false" final="false" visibility="public"
  26502. deprecated="not deprecated">
  26503. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  26504. <exception name="IOException" type="java.io.IOException"/>
  26505. </method>
  26506. <method name="replay"
  26507. abstract="false" native="false" synchronized="false"
  26508. static="false" final="false" visibility="public"
  26509. deprecated="not deprecated">
  26510. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  26511. <exception name="IOException" type="java.io.IOException"/>
  26512. </method>
  26513. <method name="add"
  26514. abstract="false" native="false" synchronized="false"
  26515. static="false" final="false" visibility="public"
  26516. deprecated="not deprecated">
  26517. <param name="item" type="U extends org.apache.hadoop.io.Writable"/>
  26518. <exception name="IOException" type="java.io.IOException"/>
  26519. </method>
  26520. </class>
  26521. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  26522. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  26523. <class name="StreamBackedIterator" extends="java.lang.Object"
  26524. abstract="false"
  26525. static="false" final="false" visibility="public"
  26526. deprecated="not deprecated">
  26527. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  26528. <constructor name="StreamBackedIterator"
  26529. static="false" final="false" visibility="public"
  26530. deprecated="not deprecated">
  26531. </constructor>
  26532. <method name="hasNext" return="boolean"
  26533. abstract="false" native="false" synchronized="false"
  26534. static="false" final="false" visibility="public"
  26535. deprecated="not deprecated">
  26536. </method>
  26537. <method name="next" return="boolean"
  26538. abstract="false" native="false" synchronized="false"
  26539. static="false" final="false" visibility="public"
  26540. deprecated="not deprecated">
  26541. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  26542. <exception name="IOException" type="java.io.IOException"/>
  26543. </method>
  26544. <method name="replay"
  26545. abstract="false" native="false" synchronized="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  26549. <exception name="IOException" type="java.io.IOException"/>
  26550. </method>
  26551. <method name="reset"
  26552. abstract="false" native="false" synchronized="false"
  26553. static="false" final="false" visibility="public"
  26554. deprecated="not deprecated">
  26555. </method>
  26556. <method name="add"
  26557. abstract="false" native="false" synchronized="false"
  26558. static="false" final="false" visibility="public"
  26559. deprecated="not deprecated">
  26560. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  26561. <exception name="IOException" type="java.io.IOException"/>
  26562. </method>
  26563. <method name="close"
  26564. abstract="false" native="false" synchronized="false"
  26565. static="false" final="false" visibility="public"
  26566. deprecated="not deprecated">
  26567. <exception name="IOException" type="java.io.IOException"/>
  26568. </method>
  26569. <method name="clear"
  26570. abstract="false" native="false" synchronized="false"
  26571. static="false" final="false" visibility="public"
  26572. deprecated="not deprecated">
  26573. </method>
  26574. <doc>
  26575. <![CDATA[This class provides an implementation of ResetableIterator. This
  26576. implementation uses a byte array to store elements added to it.]]>
  26577. </doc>
  26578. </class>
  26579. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  26580. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  26581. <class name="TupleWritable" extends="java.lang.Object"
  26582. abstract="false"
  26583. static="false" final="false" visibility="public"
  26584. deprecated="not deprecated">
  26585. <implements name="org.apache.hadoop.io.Writable"/>
  26586. <implements name="java.lang.Iterable&lt;org.apache.hadoop.io.Writable&gt;"/>
  26587. <constructor name="TupleWritable"
  26588. static="false" final="false" visibility="public"
  26589. deprecated="not deprecated">
  26590. <doc>
  26591. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  26592. </doc>
  26593. </constructor>
  26594. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  26595. static="false" final="false" visibility="public"
  26596. deprecated="not deprecated">
  26597. <doc>
  26598. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  26599. &quot;written&quot; values.]]>
  26600. </doc>
  26601. </constructor>
  26602. <method name="has" return="boolean"
  26603. abstract="false" native="false" synchronized="false"
  26604. static="false" final="false" visibility="public"
  26605. deprecated="not deprecated">
  26606. <param name="i" type="int"/>
  26607. <doc>
  26608. <![CDATA[Return true if tuple has an element at the position provided.]]>
  26609. </doc>
  26610. </method>
  26611. <method name="get" return="org.apache.hadoop.io.Writable"
  26612. abstract="false" native="false" synchronized="false"
  26613. static="false" final="false" visibility="public"
  26614. deprecated="not deprecated">
  26615. <param name="i" type="int"/>
  26616. <doc>
  26617. <![CDATA[Get ith Writable from Tuple.]]>
  26618. </doc>
  26619. </method>
  26620. <method name="size" return="int"
  26621. abstract="false" native="false" synchronized="false"
  26622. static="false" final="false" visibility="public"
  26623. deprecated="not deprecated">
  26624. <doc>
  26625. <![CDATA[The number of children in this Tuple.]]>
  26626. </doc>
  26627. </method>
  26628. <method name="equals" return="boolean"
  26629. abstract="false" native="false" synchronized="false"
  26630. static="false" final="false" visibility="public"
  26631. deprecated="not deprecated">
  26632. <param name="other" type="java.lang.Object"/>
  26633. <doc>
  26634. <![CDATA[{@inheritDoc}]]>
  26635. </doc>
  26636. </method>
  26637. <method name="hashCode" return="int"
  26638. abstract="false" native="false" synchronized="false"
  26639. static="false" final="false" visibility="public"
  26640. deprecated="not deprecated">
  26641. </method>
  26642. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.io.Writable&gt;"
  26643. abstract="false" native="false" synchronized="false"
  26644. static="false" final="false" visibility="public"
  26645. deprecated="not deprecated">
  26646. <doc>
  26647. <![CDATA[Return an iterator over the elements in this tuple.
  26648. Note that this doesn't flatten the tuple; one may receive tuples
  26649. from this iterator.]]>
  26650. </doc>
  26651. </method>
  26652. <method name="toString" return="java.lang.String"
  26653. abstract="false" native="false" synchronized="false"
  26654. static="false" final="false" visibility="public"
  26655. deprecated="not deprecated">
  26656. <doc>
  26657. <![CDATA[Convert Tuple to String as in the following.
  26658. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  26659. </doc>
  26660. </method>
  26661. <method name="write"
  26662. abstract="false" native="false" synchronized="false"
  26663. static="false" final="false" visibility="public"
  26664. deprecated="not deprecated">
  26665. <param name="out" type="java.io.DataOutput"/>
  26666. <exception name="IOException" type="java.io.IOException"/>
  26667. <doc>
  26668. <![CDATA[Writes each Writable to <code>out</code>.
  26669. TupleWritable format:
  26670. {@code
  26671. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  26672. }]]>
  26673. </doc>
  26674. </method>
  26675. <method name="readFields"
  26676. abstract="false" native="false" synchronized="false"
  26677. static="false" final="false" visibility="public"
  26678. deprecated="not deprecated">
  26679. <param name="in" type="java.io.DataInput"/>
  26680. <exception name="IOException" type="java.io.IOException"/>
  26681. <doc>
  26682. <![CDATA[{@inheritDoc}]]>
  26683. </doc>
  26684. </method>
  26685. <doc>
  26686. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.]]>
  26687. </doc>
  26688. </class>
  26689. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  26690. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  26691. <class name="WrappedRecordReader" extends="java.lang.Object"
  26692. abstract="false"
  26693. static="false" final="false" visibility="public"
  26694. deprecated="not deprecated">
  26695. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, U&gt;"/>
  26696. <method name="id" return="int"
  26697. abstract="false" native="false" synchronized="false"
  26698. static="false" final="false" visibility="public"
  26699. deprecated="not deprecated">
  26700. <doc>
  26701. <![CDATA[{@inheritDoc}]]>
  26702. </doc>
  26703. </method>
  26704. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  26705. abstract="false" native="false" synchronized="false"
  26706. static="false" final="false" visibility="public"
  26707. deprecated="not deprecated">
  26708. <doc>
  26709. <![CDATA[Return the key at the head of this RR.]]>
  26710. </doc>
  26711. </method>
  26712. <method name="key"
  26713. abstract="false" native="false" synchronized="false"
  26714. static="false" final="false" visibility="public"
  26715. deprecated="not deprecated">
  26716. <param name="qkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26717. <exception name="IOException" type="java.io.IOException"/>
  26718. <doc>
  26719. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  26720. </doc>
  26721. </method>
  26722. <method name="hasNext" return="boolean"
  26723. abstract="false" native="false" synchronized="false"
  26724. static="false" final="false" visibility="public"
  26725. deprecated="not deprecated">
  26726. <doc>
  26727. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  26728. is exhausted.]]>
  26729. </doc>
  26730. </method>
  26731. <method name="skip"
  26732. abstract="false" native="false" synchronized="false"
  26733. static="false" final="false" visibility="public"
  26734. deprecated="not deprecated">
  26735. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26736. <exception name="IOException" type="java.io.IOException"/>
  26737. <doc>
  26738. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  26739. </doc>
  26740. </method>
  26741. <method name="next" return="boolean"
  26742. abstract="false" native="false" synchronized="false"
  26743. static="false" final="false" visibility="protected"
  26744. deprecated="not deprecated">
  26745. <exception name="IOException" type="java.io.IOException"/>
  26746. <doc>
  26747. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  26748. the RR and this are exhausted.]]>
  26749. </doc>
  26750. </method>
  26751. <method name="accept"
  26752. abstract="false" native="false" synchronized="false"
  26753. static="false" final="false" visibility="public"
  26754. deprecated="not deprecated">
  26755. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  26756. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26757. <exception name="IOException" type="java.io.IOException"/>
  26758. <doc>
  26759. <![CDATA[Add an iterator to the collector at the position occupied by this
  26760. RecordReader over the values in this stream paired with the key
  26761. provided (ie register a stream of values from this source matching K
  26762. with a collector).]]>
  26763. </doc>
  26764. </method>
  26765. <method name="next" return="boolean"
  26766. abstract="false" native="false" synchronized="false"
  26767. static="false" final="false" visibility="public"
  26768. deprecated="not deprecated">
  26769. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  26770. <param name="value" type="U extends org.apache.hadoop.io.Writable"/>
  26771. <exception name="IOException" type="java.io.IOException"/>
  26772. <doc>
  26773. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  26774. get next key-value pair from proxied RR.]]>
  26775. </doc>
  26776. </method>
  26777. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  26778. abstract="false" native="false" synchronized="false"
  26779. static="false" final="false" visibility="public"
  26780. deprecated="not deprecated">
  26781. <doc>
  26782. <![CDATA[Request new key from proxied RR.]]>
  26783. </doc>
  26784. </method>
  26785. <method name="createValue" return="U extends org.apache.hadoop.io.Writable"
  26786. abstract="false" native="false" synchronized="false"
  26787. static="false" final="false" visibility="public"
  26788. deprecated="not deprecated">
  26789. <doc>
  26790. <![CDATA[Request new value from proxied RR.]]>
  26791. </doc>
  26792. </method>
  26793. <method name="getProgress" return="float"
  26794. abstract="false" native="false" synchronized="false"
  26795. static="false" final="false" visibility="public"
  26796. deprecated="not deprecated">
  26797. <exception name="IOException" type="java.io.IOException"/>
  26798. <doc>
  26799. <![CDATA[Request progress from proxied RR.]]>
  26800. </doc>
  26801. </method>
  26802. <method name="getPos" return="long"
  26803. abstract="false" native="false" synchronized="false"
  26804. static="false" final="false" visibility="public"
  26805. deprecated="not deprecated">
  26806. <exception name="IOException" type="java.io.IOException"/>
  26807. <doc>
  26808. <![CDATA[Request position from proxied RR.]]>
  26809. </doc>
  26810. </method>
  26811. <method name="close"
  26812. abstract="false" native="false" synchronized="false"
  26813. static="false" final="false" visibility="public"
  26814. deprecated="not deprecated">
  26815. <exception name="IOException" type="java.io.IOException"/>
  26816. <doc>
  26817. <![CDATA[Forward close request to proxied RR.]]>
  26818. </doc>
  26819. </method>
  26820. <method name="compareTo" return="int"
  26821. abstract="false" native="false" synchronized="false"
  26822. static="false" final="false" visibility="public"
  26823. deprecated="not deprecated">
  26824. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  26825. <doc>
  26826. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  26827. with that of another).]]>
  26828. </doc>
  26829. </method>
  26830. <method name="equals" return="boolean"
  26831. abstract="false" native="false" synchronized="false"
  26832. static="false" final="false" visibility="public"
  26833. deprecated="not deprecated">
  26834. <param name="other" type="java.lang.Object"/>
  26835. <doc>
  26836. <![CDATA[Return true iff compareTo(other) retn true.]]>
  26837. </doc>
  26838. </method>
  26839. <method name="hashCode" return="int"
  26840. abstract="false" native="false" synchronized="false"
  26841. static="false" final="false" visibility="public"
  26842. deprecated="not deprecated">
  26843. </method>
  26844. <doc>
  26845. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  26846. This class keeps track of the &quot;head&quot; key-value pair for the
  26847. provided RecordReader and keeps a store of values matching a key when
  26848. this source is participating in a join.]]>
  26849. </doc>
  26850. </class>
  26851. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  26852. </package>
  26853. <package name="org.apache.hadoop.mapred.lib">
  26854. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  26855. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  26856. abstract="false"
  26857. static="false" final="false" visibility="public"
  26858. deprecated="not deprecated">
  26859. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  26860. <implements name="org.apache.hadoop.mapred.Reducer&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  26861. <constructor name="FieldSelectionMapReduce"
  26862. static="false" final="false" visibility="public"
  26863. deprecated="not deprecated">
  26864. </constructor>
  26865. <method name="map"
  26866. abstract="false" native="false" synchronized="false"
  26867. static="false" final="false" visibility="public"
  26868. deprecated="not deprecated">
  26869. <param name="key" type="K"/>
  26870. <param name="val" type="V"/>
  26871. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  26872. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26873. <exception name="IOException" type="java.io.IOException"/>
  26874. <doc>
  26875. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  26876. </doc>
  26877. </method>
  26878. <method name="configure"
  26879. abstract="false" native="false" synchronized="false"
  26880. static="false" final="false" visibility="public"
  26881. deprecated="not deprecated">
  26882. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  26883. </method>
  26884. <method name="close"
  26885. abstract="false" native="false" synchronized="false"
  26886. static="false" final="false" visibility="public"
  26887. deprecated="not deprecated">
  26888. <exception name="IOException" type="java.io.IOException"/>
  26889. </method>
  26890. <method name="reduce"
  26891. abstract="false" native="false" synchronized="false"
  26892. static="false" final="false" visibility="public"
  26893. deprecated="not deprecated">
  26894. <param name="key" type="org.apache.hadoop.io.Text"/>
  26895. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  26896. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  26897. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26898. <exception name="IOException" type="java.io.IOException"/>
  26899. </method>
  26900. <field name="LOG" type="org.apache.commons.logging.Log"
  26901. transient="false" volatile="false"
  26902. static="true" final="true" visibility="public"
  26903. deprecated="not deprecated">
  26904. </field>
  26905. <doc>
  26906. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  26907. field selections in a manner similar to unix cut. The input data is treated
  26908. as fields separated by a user specified separator (the default value is
  26909. "\t"). The user can specify a list of fields that form the map output keys,
  26910. and a list of fields that form the map output values. If the inputformat is
  26911. TextInputFormat, the mapper will ignore the key to the map function. and the
  26912. fields are from the value only. Otherwise, the fields are the union of those
  26913. from the key and those from the value.
  26914. The field separator is under attribute "mapred.data.field.separator"
  26915. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  26916. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  26917. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  26918. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  26919. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  26920. the fields starting from field 3. The open range field spec applies value fields only.
  26921. They have no effect on the key fields.
  26922. 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,
  26923. and use fields 6,5,1,2,3,7 and above for values.
  26924. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  26925. The reducer extracts output key/value pairs in a similar manner, except that
  26926. the key is never ignored.]]>
  26927. </doc>
  26928. </class>
  26929. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  26930. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  26931. <class name="HashPartitioner" extends="java.lang.Object"
  26932. abstract="false"
  26933. static="false" final="false" visibility="public"
  26934. deprecated="not deprecated">
  26935. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  26936. <constructor name="HashPartitioner"
  26937. static="false" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. </constructor>
  26940. <method name="configure"
  26941. abstract="false" native="false" synchronized="false"
  26942. static="false" final="false" visibility="public"
  26943. deprecated="not deprecated">
  26944. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  26945. </method>
  26946. <method name="getPartition" return="int"
  26947. abstract="false" native="false" synchronized="false"
  26948. static="false" final="false" visibility="public"
  26949. deprecated="not deprecated">
  26950. <param name="key" type="K2"/>
  26951. <param name="value" type="V2"/>
  26952. <param name="numReduceTasks" type="int"/>
  26953. <doc>
  26954. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  26955. </doc>
  26956. </method>
  26957. <doc>
  26958. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  26959. </doc>
  26960. </class>
  26961. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  26962. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  26963. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  26964. abstract="false"
  26965. static="false" final="false" visibility="public"
  26966. deprecated="not deprecated">
  26967. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, K, V&gt;"/>
  26968. <constructor name="IdentityMapper"
  26969. static="false" final="false" visibility="public"
  26970. deprecated="not deprecated">
  26971. </constructor>
  26972. <method name="map"
  26973. abstract="false" native="false" synchronized="false"
  26974. static="false" final="false" visibility="public"
  26975. deprecated="not deprecated">
  26976. <param name="key" type="K"/>
  26977. <param name="val" type="V"/>
  26978. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  26979. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26980. <exception name="IOException" type="java.io.IOException"/>
  26981. <doc>
  26982. <![CDATA[The identify function. Input key/value pair is written directly to
  26983. output.]]>
  26984. </doc>
  26985. </method>
  26986. <doc>
  26987. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  26988. </doc>
  26989. </class>
  26990. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  26991. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  26992. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  26993. abstract="false"
  26994. static="false" final="false" visibility="public"
  26995. deprecated="not deprecated">
  26996. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, V, K, V&gt;"/>
  26997. <constructor name="IdentityReducer"
  26998. static="false" final="false" visibility="public"
  26999. deprecated="not deprecated">
  27000. </constructor>
  27001. <method name="reduce"
  27002. abstract="false" native="false" synchronized="false"
  27003. static="false" final="false" visibility="public"
  27004. deprecated="not deprecated">
  27005. <param name="key" type="K"/>
  27006. <param name="values" type="java.util.Iterator&lt;V&gt;"/>
  27007. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  27008. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27009. <exception name="IOException" type="java.io.IOException"/>
  27010. <doc>
  27011. <![CDATA[Writes all keys and values directly to output.]]>
  27012. </doc>
  27013. </method>
  27014. <doc>
  27015. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  27016. </doc>
  27017. </class>
  27018. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  27019. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  27020. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  27021. abstract="false"
  27022. static="false" final="false" visibility="public"
  27023. deprecated="not deprecated">
  27024. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, V, K&gt;"/>
  27025. <constructor name="InverseMapper"
  27026. static="false" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. </constructor>
  27029. <method name="map"
  27030. abstract="false" native="false" synchronized="false"
  27031. static="false" final="false" visibility="public"
  27032. deprecated="not deprecated">
  27033. <param name="key" type="K"/>
  27034. <param name="value" type="V"/>
  27035. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;V, K&gt;"/>
  27036. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27037. <exception name="IOException" type="java.io.IOException"/>
  27038. <doc>
  27039. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  27040. </doc>
  27041. </method>
  27042. <doc>
  27043. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  27044. </doc>
  27045. </class>
  27046. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  27047. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  27048. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  27049. abstract="false"
  27050. static="false" final="false" visibility="public"
  27051. deprecated="not deprecated">
  27052. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  27053. <constructor name="KeyFieldBasedPartitioner"
  27054. static="false" final="false" visibility="public"
  27055. deprecated="not deprecated">
  27056. </constructor>
  27057. <method name="configure"
  27058. abstract="false" native="false" synchronized="false"
  27059. static="false" final="false" visibility="public"
  27060. deprecated="not deprecated">
  27061. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27062. </method>
  27063. <method name="getPartition" return="int"
  27064. abstract="false" native="false" synchronized="false"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. <param name="key" type="K2"/>
  27068. <param name="value" type="V2"/>
  27069. <param name="numReduceTasks" type="int"/>
  27070. <doc>
  27071. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  27072. </doc>
  27073. </method>
  27074. </class>
  27075. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  27076. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  27077. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  27078. abstract="false"
  27079. static="false" final="false" visibility="public"
  27080. deprecated="not deprecated">
  27081. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, org.apache.hadoop.io.LongWritable, K, org.apache.hadoop.io.LongWritable&gt;"/>
  27082. <constructor name="LongSumReducer"
  27083. static="false" final="false" visibility="public"
  27084. deprecated="not deprecated">
  27085. </constructor>
  27086. <method name="reduce"
  27087. abstract="false" native="false" synchronized="false"
  27088. static="false" final="false" visibility="public"
  27089. deprecated="not deprecated">
  27090. <param name="key" type="K"/>
  27091. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.LongWritable&gt;"/>
  27092. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, org.apache.hadoop.io.LongWritable&gt;"/>
  27093. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27094. <exception name="IOException" type="java.io.IOException"/>
  27095. </method>
  27096. <doc>
  27097. <![CDATA[A {@link Reducer} that sums long values.]]>
  27098. </doc>
  27099. </class>
  27100. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  27101. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  27102. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  27103. abstract="true"
  27104. static="false" final="false" visibility="public"
  27105. deprecated="not deprecated">
  27106. <constructor name="MultipleOutputFormat"
  27107. static="false" final="false" visibility="public"
  27108. deprecated="not deprecated">
  27109. </constructor>
  27110. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27111. abstract="false" native="false" synchronized="false"
  27112. static="false" final="false" visibility="public"
  27113. deprecated="not deprecated">
  27114. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27115. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27116. <param name="name" type="java.lang.String"/>
  27117. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  27118. <exception name="IOException" type="java.io.IOException"/>
  27119. <doc>
  27120. <![CDATA[Create a composite record writer that can write key/value data to different
  27121. output files
  27122. @param fs
  27123. the file system to use
  27124. @param job
  27125. the job conf for the job
  27126. @param name
  27127. the leaf file name for the output file (such as part-00000")
  27128. @param arg3
  27129. a progressable for reporting progress.
  27130. @return a composite record writer
  27131. @throws IOException]]>
  27132. </doc>
  27133. </method>
  27134. <method name="generateLeafFileName" return="java.lang.String"
  27135. abstract="false" native="false" synchronized="false"
  27136. static="false" final="false" visibility="protected"
  27137. deprecated="not deprecated">
  27138. <param name="name" type="java.lang.String"/>
  27139. <doc>
  27140. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  27141. not change the leaf file name (such as part-00000)
  27142. @param name
  27143. the leaf file name for the output file
  27144. @return the given leaf file name]]>
  27145. </doc>
  27146. </method>
  27147. <method name="generateFileNameForKeyValue" return="java.lang.String"
  27148. abstract="false" native="false" synchronized="false"
  27149. static="false" final="false" visibility="protected"
  27150. deprecated="not deprecated">
  27151. <param name="key" type="K"/>
  27152. <param name="value" type="V"/>
  27153. <param name="name" type="java.lang.String"/>
  27154. <doc>
  27155. <![CDATA[Generate the file output file name based on the given key and the leaf file
  27156. name. The default behavior is that the file name does not depend on the
  27157. key.
  27158. @param key
  27159. the key of the output data
  27160. @param name
  27161. the leaf file name
  27162. @return generated file name]]>
  27163. </doc>
  27164. </method>
  27165. <method name="generateActualKey" return="K"
  27166. abstract="false" native="false" synchronized="false"
  27167. static="false" final="false" visibility="protected"
  27168. deprecated="not deprecated">
  27169. <param name="key" type="K"/>
  27170. <param name="value" type="V"/>
  27171. <doc>
  27172. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  27173. the actual key is equal to the given key
  27174. @param key
  27175. the key of the output data
  27176. @param value
  27177. the value of the output data
  27178. @return the actual key derived from the given key/value]]>
  27179. </doc>
  27180. </method>
  27181. <method name="generateActualValue" return="V"
  27182. abstract="false" native="false" synchronized="false"
  27183. static="false" final="false" visibility="protected"
  27184. deprecated="not deprecated">
  27185. <param name="key" type="K"/>
  27186. <param name="value" type="V"/>
  27187. <doc>
  27188. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  27189. the actual value is equal to the given value
  27190. @param key
  27191. the key of the output data
  27192. @param value
  27193. the value of the output data
  27194. @return the actual value derived from the given key/value]]>
  27195. </doc>
  27196. </method>
  27197. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  27198. abstract="false" native="false" synchronized="false"
  27199. static="false" final="false" visibility="protected"
  27200. deprecated="not deprecated">
  27201. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27202. <param name="name" type="java.lang.String"/>
  27203. <doc>
  27204. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  27205. the map input file does not exists (i.e. this is not for a map only job),
  27206. the given name is returned unchanged. If the config value for
  27207. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  27208. name is returned unchanged. Otherwise, return a file name consisting of the
  27209. N trailing legs of the input file name where N is the config value for
  27210. "num.of.trailing.legs.to.use".
  27211. @param job
  27212. the job config
  27213. @param name
  27214. the output file name
  27215. @return the outfile name based on a given anme and the input file name.]]>
  27216. </doc>
  27217. </method>
  27218. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27219. abstract="true" native="false" synchronized="false"
  27220. static="false" final="false" visibility="protected"
  27221. deprecated="not deprecated">
  27222. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27223. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27224. <param name="name" type="java.lang.String"/>
  27225. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  27226. <exception name="IOException" type="java.io.IOException"/>
  27227. <doc>
  27228. <![CDATA[@param fs
  27229. the file system to use
  27230. @param job
  27231. a job conf object
  27232. @param name
  27233. the name of the file over which a record writer object will be
  27234. constructed
  27235. @param arg3
  27236. a progressable object
  27237. @return A RecordWriter object over the given file
  27238. @throws IOException]]>
  27239. </doc>
  27240. </method>
  27241. <doc>
  27242. <![CDATA[This abstract class extends the OutputFormatBase, allowing to write the
  27243. output data to different output files. There are three basic use cases for
  27244. this class.
  27245. Case one: This class is used for a map reduce job with at least one reducer.
  27246. The reducer wants to write data to different files depending on the actual
  27247. keys. It is assumed that a key (or value) encodes the actual key (value)
  27248. and the desired location for the actual key (value).
  27249. Case two: This class is used for a map only job. The job wants to use an
  27250. output file name that is either a part of the input file name of the input
  27251. data, or some derivation of it.
  27252. Case three: This class is used for a map only job. The job wants to use an
  27253. output file name that depends on both the keys and the input file name,]]>
  27254. </doc>
  27255. </class>
  27256. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  27257. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  27258. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  27259. abstract="false"
  27260. static="false" final="false" visibility="public"
  27261. deprecated="not deprecated">
  27262. <constructor name="MultipleSequenceFileOutputFormat"
  27263. static="false" final="false" visibility="public"
  27264. deprecated="not deprecated">
  27265. </constructor>
  27266. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27267. abstract="false" native="false" synchronized="false"
  27268. static="false" final="false" visibility="protected"
  27269. deprecated="not deprecated">
  27270. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27271. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27272. <param name="name" type="java.lang.String"/>
  27273. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  27274. <exception name="IOException" type="java.io.IOException"/>
  27275. </method>
  27276. <doc>
  27277. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  27278. to different output files in sequence file output format.]]>
  27279. </doc>
  27280. </class>
  27281. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  27282. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  27283. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  27284. abstract="false"
  27285. static="false" final="false" visibility="public"
  27286. deprecated="not deprecated">
  27287. <constructor name="MultipleTextOutputFormat"
  27288. static="false" final="false" visibility="public"
  27289. deprecated="not deprecated">
  27290. </constructor>
  27291. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27292. abstract="false" native="false" synchronized="false"
  27293. static="false" final="false" visibility="protected"
  27294. deprecated="not deprecated">
  27295. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27296. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27297. <param name="name" type="java.lang.String"/>
  27298. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  27299. <exception name="IOException" type="java.io.IOException"/>
  27300. </method>
  27301. <doc>
  27302. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  27303. data to different output files in Text output format.]]>
  27304. </doc>
  27305. </class>
  27306. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  27307. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  27308. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  27309. abstract="false"
  27310. static="false" final="false" visibility="public"
  27311. deprecated="not deprecated">
  27312. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  27313. <constructor name="MultithreadedMapRunner"
  27314. static="false" final="false" visibility="public"
  27315. deprecated="not deprecated">
  27316. </constructor>
  27317. <method name="configure"
  27318. abstract="false" native="false" synchronized="false"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  27322. </method>
  27323. <method name="run"
  27324. abstract="false" native="false" synchronized="false"
  27325. static="false" final="false" visibility="public"
  27326. deprecated="not deprecated">
  27327. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  27328. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  27329. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27330. <exception name="IOException" type="java.io.IOException"/>
  27331. </method>
  27332. <doc>
  27333. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  27334. <p>
  27335. It can be used instead of the default implementation,
  27336. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  27337. bound in order to improve throughput.
  27338. <p>
  27339. Map implementations using this MapRunnable must be thread-safe.
  27340. <p>
  27341. The Map-Reduce job has to be configured to use this MapRunnable class (using
  27342. the JobConf.setMapRunnerClass method) and
  27343. the number of thread the thread-pool can use with the
  27344. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  27345. value is 10 threads.
  27346. <p>]]>
  27347. </doc>
  27348. </class>
  27349. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  27350. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  27351. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  27352. abstract="false"
  27353. static="false" final="false" visibility="public"
  27354. deprecated="not deprecated">
  27355. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27356. <constructor name="NLineInputFormat"
  27357. static="false" final="false" visibility="public"
  27358. deprecated="not deprecated">
  27359. </constructor>
  27360. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  27361. abstract="false" native="false" synchronized="false"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  27365. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27366. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27367. <exception name="IOException" type="java.io.IOException"/>
  27368. </method>
  27369. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  27370. abstract="false" native="false" synchronized="false"
  27371. static="false" final="false" visibility="public"
  27372. deprecated="not deprecated">
  27373. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27374. <param name="numSplits" type="int"/>
  27375. <exception name="IOException" type="java.io.IOException"/>
  27376. <doc>
  27377. <![CDATA[Logically splits the set of input files for the job, splits N lines
  27378. of the input as one split.
  27379. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  27380. </doc>
  27381. </method>
  27382. <method name="configure"
  27383. abstract="false" native="false" synchronized="false"
  27384. static="false" final="false" visibility="public"
  27385. deprecated="not deprecated">
  27386. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27387. </method>
  27388. <doc>
  27389. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  27390. In many "pleasantly" parallel applications, each process/mapper
  27391. processes the same input file (s), but with computations are
  27392. controlled by different parameters.(Referred to as "parameter sweeps").
  27393. One way to achieve this, is to specify a set of parameters
  27394. (one set per line) as input in a control file
  27395. (which is the input path to the map-reduce application,
  27396. where as the input dataset is specified
  27397. via a config variable in JobConf.).
  27398. The NLineInputFormat can be used in such applications, that splits
  27399. the input file such that by default, one line is fed as
  27400. a value to one map task, and key is the offset.
  27401. i.e. (k,v) is (LongWritable, Text).
  27402. The location hints will span the whole mapred cluster.]]>
  27403. </doc>
  27404. </class>
  27405. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  27406. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  27407. <class name="NullOutputFormat" extends="java.lang.Object"
  27408. abstract="false"
  27409. static="false" final="false" visibility="public"
  27410. deprecated="not deprecated">
  27411. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  27412. <constructor name="NullOutputFormat"
  27413. static="false" final="false" visibility="public"
  27414. deprecated="not deprecated">
  27415. </constructor>
  27416. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27417. abstract="false" native="false" synchronized="false"
  27418. static="false" final="false" visibility="public"
  27419. deprecated="not deprecated">
  27420. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27421. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27422. <param name="name" type="java.lang.String"/>
  27423. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  27424. </method>
  27425. <method name="checkOutputSpecs"
  27426. abstract="false" native="false" synchronized="false"
  27427. static="false" final="false" visibility="public"
  27428. deprecated="not deprecated">
  27429. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27430. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27431. </method>
  27432. <doc>
  27433. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  27434. </doc>
  27435. </class>
  27436. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  27437. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  27438. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  27439. abstract="false"
  27440. static="false" final="false" visibility="public"
  27441. deprecated="not deprecated">
  27442. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  27443. <constructor name="RegexMapper"
  27444. static="false" final="false" visibility="public"
  27445. deprecated="not deprecated">
  27446. </constructor>
  27447. <method name="configure"
  27448. abstract="false" native="false" synchronized="false"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27452. </method>
  27453. <method name="map"
  27454. abstract="false" native="false" synchronized="false"
  27455. static="false" final="false" visibility="public"
  27456. deprecated="not deprecated">
  27457. <param name="key" type="K"/>
  27458. <param name="value" type="org.apache.hadoop.io.Text"/>
  27459. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  27460. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27461. <exception name="IOException" type="java.io.IOException"/>
  27462. </method>
  27463. <doc>
  27464. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  27465. </doc>
  27466. </class>
  27467. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  27468. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  27469. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  27470. abstract="false"
  27471. static="false" final="false" visibility="public"
  27472. deprecated="not deprecated">
  27473. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  27474. <constructor name="TokenCountMapper"
  27475. static="false" final="false" visibility="public"
  27476. deprecated="not deprecated">
  27477. </constructor>
  27478. <method name="map"
  27479. abstract="false" native="false" synchronized="false"
  27480. static="false" final="false" visibility="public"
  27481. deprecated="not deprecated">
  27482. <param name="key" type="K"/>
  27483. <param name="value" type="org.apache.hadoop.io.Text"/>
  27484. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  27485. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27486. <exception name="IOException" type="java.io.IOException"/>
  27487. </method>
  27488. <doc>
  27489. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  27490. {@link StringTokenizer} to break text into tokens.]]>
  27491. </doc>
  27492. </class>
  27493. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  27494. </package>
  27495. <package name="org.apache.hadoop.mapred.lib.aggregate">
  27496. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  27497. <class name="DoubleValueSum" extends="java.lang.Object"
  27498. abstract="false"
  27499. static="false" final="false" visibility="public"
  27500. deprecated="not deprecated">
  27501. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27502. <constructor name="DoubleValueSum"
  27503. static="false" final="false" visibility="public"
  27504. deprecated="not deprecated">
  27505. <doc>
  27506. <![CDATA[The default constructor]]>
  27507. </doc>
  27508. </constructor>
  27509. <method name="addNextValue"
  27510. abstract="false" native="false" synchronized="false"
  27511. static="false" final="false" visibility="public"
  27512. deprecated="not deprecated">
  27513. <param name="val" type="java.lang.Object"/>
  27514. <doc>
  27515. <![CDATA[add a value to the aggregator
  27516. @param val
  27517. an object whose string representation represents a double value.]]>
  27518. </doc>
  27519. </method>
  27520. <method name="addNextValue"
  27521. abstract="false" native="false" synchronized="false"
  27522. static="false" final="false" visibility="public"
  27523. deprecated="not deprecated">
  27524. <param name="val" type="double"/>
  27525. <doc>
  27526. <![CDATA[add a value to the aggregator
  27527. @param val
  27528. a double value.]]>
  27529. </doc>
  27530. </method>
  27531. <method name="getReport" return="java.lang.String"
  27532. abstract="false" native="false" synchronized="false"
  27533. static="false" final="false" visibility="public"
  27534. deprecated="not deprecated">
  27535. <doc>
  27536. <![CDATA[@return the string representation of the aggregated value]]>
  27537. </doc>
  27538. </method>
  27539. <method name="getSum" return="double"
  27540. abstract="false" native="false" synchronized="false"
  27541. static="false" final="false" visibility="public"
  27542. deprecated="not deprecated">
  27543. <doc>
  27544. <![CDATA[@return the aggregated value]]>
  27545. </doc>
  27546. </method>
  27547. <method name="reset"
  27548. abstract="false" native="false" synchronized="false"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <doc>
  27552. <![CDATA[reset the aggregator]]>
  27553. </doc>
  27554. </method>
  27555. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27556. abstract="false" native="false" synchronized="false"
  27557. static="false" final="false" visibility="public"
  27558. deprecated="not deprecated">
  27559. <doc>
  27560. <![CDATA[@return return an array of one element. The element is a string
  27561. representation of the aggregated value. The return value is
  27562. expected to be used by the a combiner.]]>
  27563. </doc>
  27564. </method>
  27565. <doc>
  27566. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  27567. values.]]>
  27568. </doc>
  27569. </class>
  27570. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  27571. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  27572. <class name="LongValueMax" extends="java.lang.Object"
  27573. abstract="false"
  27574. static="false" final="false" visibility="public"
  27575. deprecated="not deprecated">
  27576. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27577. <constructor name="LongValueMax"
  27578. static="false" final="false" visibility="public"
  27579. deprecated="not deprecated">
  27580. <doc>
  27581. <![CDATA[the default constructor]]>
  27582. </doc>
  27583. </constructor>
  27584. <method name="addNextValue"
  27585. abstract="false" native="false" synchronized="false"
  27586. static="false" final="false" visibility="public"
  27587. deprecated="not deprecated">
  27588. <param name="val" type="java.lang.Object"/>
  27589. <doc>
  27590. <![CDATA[add a value to the aggregator
  27591. @param val
  27592. an object whose string representation represents a long value.]]>
  27593. </doc>
  27594. </method>
  27595. <method name="addNextValue"
  27596. abstract="false" native="false" synchronized="false"
  27597. static="false" final="false" visibility="public"
  27598. deprecated="not deprecated">
  27599. <param name="newVal" type="long"/>
  27600. <doc>
  27601. <![CDATA[add a value to the aggregator
  27602. @param newVal
  27603. a long value.]]>
  27604. </doc>
  27605. </method>
  27606. <method name="getVal" return="long"
  27607. abstract="false" native="false" synchronized="false"
  27608. static="false" final="false" visibility="public"
  27609. deprecated="not deprecated">
  27610. <doc>
  27611. <![CDATA[@return the aggregated value]]>
  27612. </doc>
  27613. </method>
  27614. <method name="getReport" return="java.lang.String"
  27615. abstract="false" native="false" synchronized="false"
  27616. static="false" final="false" visibility="public"
  27617. deprecated="not deprecated">
  27618. <doc>
  27619. <![CDATA[@return the string representation of the aggregated value]]>
  27620. </doc>
  27621. </method>
  27622. <method name="reset"
  27623. abstract="false" native="false" synchronized="false"
  27624. static="false" final="false" visibility="public"
  27625. deprecated="not deprecated">
  27626. <doc>
  27627. <![CDATA[reset the aggregator]]>
  27628. </doc>
  27629. </method>
  27630. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27631. abstract="false" native="false" synchronized="false"
  27632. static="false" final="false" visibility="public"
  27633. deprecated="not deprecated">
  27634. <doc>
  27635. <![CDATA[@return return an array of one element. The element is a string
  27636. representation of the aggregated value. The return value is
  27637. expected to be used by the a combiner.]]>
  27638. </doc>
  27639. </method>
  27640. <doc>
  27641. <![CDATA[This class implements a value aggregator that maintain the maximum of
  27642. a sequence of long values.]]>
  27643. </doc>
  27644. </class>
  27645. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  27646. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  27647. <class name="LongValueMin" extends="java.lang.Object"
  27648. abstract="false"
  27649. static="false" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27652. <constructor name="LongValueMin"
  27653. static="false" final="false" visibility="public"
  27654. deprecated="not deprecated">
  27655. <doc>
  27656. <![CDATA[the default constructor]]>
  27657. </doc>
  27658. </constructor>
  27659. <method name="addNextValue"
  27660. abstract="false" native="false" synchronized="false"
  27661. static="false" final="false" visibility="public"
  27662. deprecated="not deprecated">
  27663. <param name="val" type="java.lang.Object"/>
  27664. <doc>
  27665. <![CDATA[add a value to the aggregator
  27666. @param val
  27667. an object whose string representation represents a long value.]]>
  27668. </doc>
  27669. </method>
  27670. <method name="addNextValue"
  27671. abstract="false" native="false" synchronized="false"
  27672. static="false" final="false" visibility="public"
  27673. deprecated="not deprecated">
  27674. <param name="newVal" type="long"/>
  27675. <doc>
  27676. <![CDATA[add a value to the aggregator
  27677. @param newVal
  27678. a long value.]]>
  27679. </doc>
  27680. </method>
  27681. <method name="getVal" return="long"
  27682. abstract="false" native="false" synchronized="false"
  27683. static="false" final="false" visibility="public"
  27684. deprecated="not deprecated">
  27685. <doc>
  27686. <![CDATA[@return the aggregated value]]>
  27687. </doc>
  27688. </method>
  27689. <method name="getReport" return="java.lang.String"
  27690. abstract="false" native="false" synchronized="false"
  27691. static="false" final="false" visibility="public"
  27692. deprecated="not deprecated">
  27693. <doc>
  27694. <![CDATA[@return the string representation of the aggregated value]]>
  27695. </doc>
  27696. </method>
  27697. <method name="reset"
  27698. abstract="false" native="false" synchronized="false"
  27699. static="false" final="false" visibility="public"
  27700. deprecated="not deprecated">
  27701. <doc>
  27702. <![CDATA[reset the aggregator]]>
  27703. </doc>
  27704. </method>
  27705. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27706. abstract="false" native="false" synchronized="false"
  27707. static="false" final="false" visibility="public"
  27708. deprecated="not deprecated">
  27709. <doc>
  27710. <![CDATA[@return return an array of one element. The element is a string
  27711. representation of the aggregated value. The return value is
  27712. expected to be used by the a combiner.]]>
  27713. </doc>
  27714. </method>
  27715. <doc>
  27716. <![CDATA[This class implements a value aggregator that maintain the minimum of
  27717. a sequence of long values.]]>
  27718. </doc>
  27719. </class>
  27720. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  27721. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  27722. <class name="LongValueSum" extends="java.lang.Object"
  27723. abstract="false"
  27724. static="false" final="false" visibility="public"
  27725. deprecated="not deprecated">
  27726. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27727. <constructor name="LongValueSum"
  27728. static="false" final="false" visibility="public"
  27729. deprecated="not deprecated">
  27730. <doc>
  27731. <![CDATA[the default constructor]]>
  27732. </doc>
  27733. </constructor>
  27734. <method name="addNextValue"
  27735. abstract="false" native="false" synchronized="false"
  27736. static="false" final="false" visibility="public"
  27737. deprecated="not deprecated">
  27738. <param name="val" type="java.lang.Object"/>
  27739. <doc>
  27740. <![CDATA[add a value to the aggregator
  27741. @param val
  27742. an object whose string representation represents a long value.]]>
  27743. </doc>
  27744. </method>
  27745. <method name="addNextValue"
  27746. abstract="false" native="false" synchronized="false"
  27747. static="false" final="false" visibility="public"
  27748. deprecated="not deprecated">
  27749. <param name="val" type="long"/>
  27750. <doc>
  27751. <![CDATA[add a value to the aggregator
  27752. @param val
  27753. a long value.]]>
  27754. </doc>
  27755. </method>
  27756. <method name="getSum" return="long"
  27757. abstract="false" native="false" synchronized="false"
  27758. static="false" final="false" visibility="public"
  27759. deprecated="not deprecated">
  27760. <doc>
  27761. <![CDATA[@return the aggregated value]]>
  27762. </doc>
  27763. </method>
  27764. <method name="getReport" return="java.lang.String"
  27765. abstract="false" native="false" synchronized="false"
  27766. static="false" final="false" visibility="public"
  27767. deprecated="not deprecated">
  27768. <doc>
  27769. <![CDATA[@return the string representation of the aggregated value]]>
  27770. </doc>
  27771. </method>
  27772. <method name="reset"
  27773. abstract="false" native="false" synchronized="false"
  27774. static="false" final="false" visibility="public"
  27775. deprecated="not deprecated">
  27776. <doc>
  27777. <![CDATA[reset the aggregator]]>
  27778. </doc>
  27779. </method>
  27780. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27781. abstract="false" native="false" synchronized="false"
  27782. static="false" final="false" visibility="public"
  27783. deprecated="not deprecated">
  27784. <doc>
  27785. <![CDATA[@return return an array of one element. The element is a string
  27786. representation of the aggregated value. The return value is
  27787. expected to be used by the a combiner.]]>
  27788. </doc>
  27789. </method>
  27790. <doc>
  27791. <![CDATA[This class implements a value aggregator that sums up
  27792. a sequence of long values.]]>
  27793. </doc>
  27794. </class>
  27795. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  27796. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  27797. <class name="StringValueMax" extends="java.lang.Object"
  27798. abstract="false"
  27799. static="false" final="false" visibility="public"
  27800. deprecated="not deprecated">
  27801. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27802. <constructor name="StringValueMax"
  27803. static="false" final="false" visibility="public"
  27804. deprecated="not deprecated">
  27805. <doc>
  27806. <![CDATA[the default constructor]]>
  27807. </doc>
  27808. </constructor>
  27809. <method name="addNextValue"
  27810. abstract="false" native="false" synchronized="false"
  27811. static="false" final="false" visibility="public"
  27812. deprecated="not deprecated">
  27813. <param name="val" type="java.lang.Object"/>
  27814. <doc>
  27815. <![CDATA[add a value to the aggregator
  27816. @param val
  27817. a string.]]>
  27818. </doc>
  27819. </method>
  27820. <method name="getVal" return="java.lang.String"
  27821. abstract="false" native="false" synchronized="false"
  27822. static="false" final="false" visibility="public"
  27823. deprecated="not deprecated">
  27824. <doc>
  27825. <![CDATA[@return the aggregated value]]>
  27826. </doc>
  27827. </method>
  27828. <method name="getReport" return="java.lang.String"
  27829. abstract="false" native="false" synchronized="false"
  27830. static="false" final="false" visibility="public"
  27831. deprecated="not deprecated">
  27832. <doc>
  27833. <![CDATA[@return the string representation of the aggregated value]]>
  27834. </doc>
  27835. </method>
  27836. <method name="reset"
  27837. abstract="false" native="false" synchronized="false"
  27838. static="false" final="false" visibility="public"
  27839. deprecated="not deprecated">
  27840. <doc>
  27841. <![CDATA[reset the aggregator]]>
  27842. </doc>
  27843. </method>
  27844. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27845. abstract="false" native="false" synchronized="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="not deprecated">
  27848. <doc>
  27849. <![CDATA[@return return an array of one element. The element is a string
  27850. representation of the aggregated value. The return value is
  27851. expected to be used by the a combiner.]]>
  27852. </doc>
  27853. </method>
  27854. <doc>
  27855. <![CDATA[This class implements a value aggregator that maintain the biggest of
  27856. a sequence of strings.]]>
  27857. </doc>
  27858. </class>
  27859. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  27860. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  27861. <class name="StringValueMin" extends="java.lang.Object"
  27862. abstract="false"
  27863. static="false" final="false" visibility="public"
  27864. deprecated="not deprecated">
  27865. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27866. <constructor name="StringValueMin"
  27867. static="false" final="false" visibility="public"
  27868. deprecated="not deprecated">
  27869. <doc>
  27870. <![CDATA[the default constructor]]>
  27871. </doc>
  27872. </constructor>
  27873. <method name="addNextValue"
  27874. abstract="false" native="false" synchronized="false"
  27875. static="false" final="false" visibility="public"
  27876. deprecated="not deprecated">
  27877. <param name="val" type="java.lang.Object"/>
  27878. <doc>
  27879. <![CDATA[add a value to the aggregator
  27880. @param val
  27881. a string.]]>
  27882. </doc>
  27883. </method>
  27884. <method name="getVal" return="java.lang.String"
  27885. abstract="false" native="false" synchronized="false"
  27886. static="false" final="false" visibility="public"
  27887. deprecated="not deprecated">
  27888. <doc>
  27889. <![CDATA[@return the aggregated value]]>
  27890. </doc>
  27891. </method>
  27892. <method name="getReport" return="java.lang.String"
  27893. abstract="false" native="false" synchronized="false"
  27894. static="false" final="false" visibility="public"
  27895. deprecated="not deprecated">
  27896. <doc>
  27897. <![CDATA[@return the string representation of the aggregated value]]>
  27898. </doc>
  27899. </method>
  27900. <method name="reset"
  27901. abstract="false" native="false" synchronized="false"
  27902. static="false" final="false" visibility="public"
  27903. deprecated="not deprecated">
  27904. <doc>
  27905. <![CDATA[reset the aggregator]]>
  27906. </doc>
  27907. </method>
  27908. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  27909. abstract="false" native="false" synchronized="false"
  27910. static="false" final="false" visibility="public"
  27911. deprecated="not deprecated">
  27912. <doc>
  27913. <![CDATA[@return return an array of one element. The element is a string
  27914. representation of the aggregated value. The return value is
  27915. expected to be used by the a combiner.]]>
  27916. </doc>
  27917. </method>
  27918. <doc>
  27919. <![CDATA[This class implements a value aggregator that maintain the smallest of
  27920. a sequence of strings.]]>
  27921. </doc>
  27922. </class>
  27923. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  27924. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  27925. <class name="UniqValueCount" extends="java.lang.Object"
  27926. abstract="false"
  27927. static="false" final="false" visibility="public"
  27928. deprecated="not deprecated">
  27929. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  27930. <constructor name="UniqValueCount"
  27931. static="false" final="false" visibility="public"
  27932. deprecated="not deprecated">
  27933. <doc>
  27934. <![CDATA[the default constructor]]>
  27935. </doc>
  27936. </constructor>
  27937. <constructor name="UniqValueCount" type="long"
  27938. static="false" final="false" visibility="public"
  27939. deprecated="not deprecated">
  27940. <doc>
  27941. <![CDATA[constructor
  27942. @param maxNum the limit in the number of unique values to keep.]]>
  27943. </doc>
  27944. </constructor>
  27945. <method name="setMaxItems" return="long"
  27946. abstract="false" native="false" synchronized="false"
  27947. static="false" final="false" visibility="public"
  27948. deprecated="not deprecated">
  27949. <param name="n" type="long"/>
  27950. <doc>
  27951. <![CDATA[Set the limit on the number of unique values
  27952. @param n the desired limit on the number of unique values
  27953. @return the new limit on the number of unique values]]>
  27954. </doc>
  27955. </method>
  27956. <method name="addNextValue"
  27957. abstract="false" native="false" synchronized="false"
  27958. static="false" final="false" visibility="public"
  27959. deprecated="not deprecated">
  27960. <param name="val" type="java.lang.Object"/>
  27961. <doc>
  27962. <![CDATA[add a value to the aggregator
  27963. @param val
  27964. an object.]]>
  27965. </doc>
  27966. </method>
  27967. <method name="getReport" return="java.lang.String"
  27968. abstract="false" native="false" synchronized="false"
  27969. static="false" final="false" visibility="public"
  27970. deprecated="not deprecated">
  27971. <doc>
  27972. <![CDATA[@return return the number of unique objects aggregated]]>
  27973. </doc>
  27974. </method>
  27975. <method name="getUniqueItems" return="java.util.Set"
  27976. abstract="false" native="false" synchronized="false"
  27977. static="false" final="false" visibility="public"
  27978. deprecated="not deprecated">
  27979. <doc>
  27980. <![CDATA[@return the set of the unique objects]]>
  27981. </doc>
  27982. </method>
  27983. <method name="reset"
  27984. abstract="false" native="false" synchronized="false"
  27985. static="false" final="false" visibility="public"
  27986. deprecated="not deprecated">
  27987. <doc>
  27988. <![CDATA[reset the aggregator]]>
  27989. </doc>
  27990. </method>
  27991. <method name="getCombinerOutput" return="java.util.ArrayList"
  27992. abstract="false" native="false" synchronized="false"
  27993. static="false" final="false" visibility="public"
  27994. deprecated="not deprecated">
  27995. <doc>
  27996. <![CDATA[@return return an array of the unique objects. The return value is
  27997. expected to be used by the a combiner.]]>
  27998. </doc>
  27999. </method>
  28000. <doc>
  28001. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  28002. </doc>
  28003. </class>
  28004. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  28005. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  28006. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  28007. abstract="false"
  28008. static="false" final="false" visibility="public"
  28009. deprecated="not deprecated">
  28010. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  28011. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  28012. static="false" final="false" visibility="public"
  28013. deprecated="not deprecated">
  28014. <doc>
  28015. <![CDATA[@param className the class name of the user defined descriptor class
  28016. @param job a configure object used for decriptor configuration]]>
  28017. </doc>
  28018. </constructor>
  28019. <method name="createInstance" return="java.lang.Object"
  28020. abstract="false" native="false" synchronized="false"
  28021. static="true" final="false" visibility="public"
  28022. deprecated="not deprecated">
  28023. <param name="className" type="java.lang.String"/>
  28024. <doc>
  28025. <![CDATA[Create an instance of the given class
  28026. @param className the name of the class
  28027. @return a dynamically created instance of the given class]]>
  28028. </doc>
  28029. </method>
  28030. <method name="generateKeyValPairs" return="java.util.ArrayList&lt;java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;&gt;"
  28031. abstract="false" native="false" synchronized="false"
  28032. static="false" final="false" visibility="public"
  28033. deprecated="not deprecated">
  28034. <param name="key" type="java.lang.Object"/>
  28035. <param name="val" type="java.lang.Object"/>
  28036. <doc>
  28037. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  28038. by delegating the invocation to the real object.
  28039. @param key
  28040. input key
  28041. @param val
  28042. input value
  28043. @return a list of aggregation id/value pairs. An aggregation id encodes an
  28044. aggregation type which is used to guide the way to aggregate the
  28045. value in the reduce/combiner phrase of an Aggregate based job.]]>
  28046. </doc>
  28047. </method>
  28048. <method name="toString" return="java.lang.String"
  28049. abstract="false" native="false" synchronized="false"
  28050. static="false" final="false" visibility="public"
  28051. deprecated="not deprecated">
  28052. <doc>
  28053. <![CDATA[@return the string representation of this object.]]>
  28054. </doc>
  28055. </method>
  28056. <method name="configure"
  28057. abstract="false" native="false" synchronized="false"
  28058. static="false" final="false" visibility="public"
  28059. deprecated="not deprecated">
  28060. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28061. <doc>
  28062. <![CDATA[Do nothing.]]>
  28063. </doc>
  28064. </method>
  28065. <doc>
  28066. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  28067. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  28068. name of a user defined class that may be dynamically loaded. The other is to
  28069. deligate inviokations of generateKeyValPairs function to the created object.]]>
  28070. </doc>
  28071. </class>
  28072. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  28073. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  28074. <interface name="ValueAggregator" abstract="true"
  28075. static="false" final="false" visibility="public"
  28076. deprecated="not deprecated">
  28077. <method name="addNextValue"
  28078. abstract="false" native="false" synchronized="false"
  28079. static="false" final="false" visibility="public"
  28080. deprecated="not deprecated">
  28081. <param name="val" type="java.lang.Object"/>
  28082. <doc>
  28083. <![CDATA[add a value to the aggregator
  28084. @param val the value to be added]]>
  28085. </doc>
  28086. </method>
  28087. <method name="reset"
  28088. abstract="false" native="false" synchronized="false"
  28089. static="false" final="false" visibility="public"
  28090. deprecated="not deprecated">
  28091. <doc>
  28092. <![CDATA[reset the aggregator]]>
  28093. </doc>
  28094. </method>
  28095. <method name="getReport" return="java.lang.String"
  28096. abstract="false" native="false" synchronized="false"
  28097. static="false" final="false" visibility="public"
  28098. deprecated="not deprecated">
  28099. <doc>
  28100. <![CDATA[@return the string representation of the agregator]]>
  28101. </doc>
  28102. </method>
  28103. <method name="getCombinerOutput" return="java.util.ArrayList"
  28104. abstract="false" native="false" synchronized="false"
  28105. static="false" final="false" visibility="public"
  28106. deprecated="not deprecated">
  28107. <doc>
  28108. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  28109. </doc>
  28110. </method>
  28111. <doc>
  28112. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  28113. </doc>
  28114. </interface>
  28115. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  28116. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  28117. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  28118. abstract="false"
  28119. static="false" final="false" visibility="public"
  28120. deprecated="not deprecated">
  28121. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  28122. <constructor name="ValueAggregatorBaseDescriptor"
  28123. static="false" final="false" visibility="public"
  28124. deprecated="not deprecated">
  28125. </constructor>
  28126. <method name="generateEntry" return="java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  28127. abstract="false" native="false" synchronized="false"
  28128. static="true" final="false" visibility="public"
  28129. deprecated="not deprecated">
  28130. <param name="type" type="java.lang.String"/>
  28131. <param name="id" type="java.lang.String"/>
  28132. <param name="val" type="org.apache.hadoop.io.Text"/>
  28133. <doc>
  28134. <![CDATA[@param type the aggregation type
  28135. @param id the aggregation id
  28136. @param val the val associated with the id to be aggregated
  28137. @return an Entry whose key is the aggregation id prefixed with
  28138. the aggregation type.]]>
  28139. </doc>
  28140. </method>
  28141. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  28142. abstract="false" native="false" synchronized="false"
  28143. static="true" final="false" visibility="public"
  28144. deprecated="not deprecated">
  28145. <param name="type" type="java.lang.String"/>
  28146. <doc>
  28147. <![CDATA[@param type the aggregation type
  28148. @return a value aggregator of the given type.]]>
  28149. </doc>
  28150. </method>
  28151. <method name="generateKeyValPairs" return="java.util.ArrayList&lt;java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;&gt;"
  28152. abstract="false" native="false" synchronized="false"
  28153. static="false" final="false" visibility="public"
  28154. deprecated="not deprecated">
  28155. <param name="key" type="java.lang.Object"/>
  28156. <param name="val" type="java.lang.Object"/>
  28157. <doc>
  28158. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  28159. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  28160. its aggregation id. If the input is a file split,
  28161. the second id of the same type will be generated too, with the file name
  28162. as its aggregation id. This achieves the behavior of counting the total number
  28163. of records in the input data, and the number of records in each input file.
  28164. @param key
  28165. input key
  28166. @param val
  28167. input value
  28168. @return a list of aggregation id/value pairs. An aggregation id encodes an
  28169. aggregation type which is used to guide the way to aggregate the
  28170. value in the reduce/combiner phrase of an Aggregate based job.]]>
  28171. </doc>
  28172. </method>
  28173. <method name="configure"
  28174. abstract="false" native="false" synchronized="false"
  28175. static="false" final="false" visibility="public"
  28176. deprecated="not deprecated">
  28177. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28178. <doc>
  28179. <![CDATA[get the input file name.
  28180. @param job a job configuration object]]>
  28181. </doc>
  28182. </method>
  28183. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  28184. transient="false" volatile="false"
  28185. static="true" final="true" visibility="public"
  28186. deprecated="not deprecated">
  28187. </field>
  28188. <field name="LONG_VALUE_SUM" type="java.lang.String"
  28189. transient="false" volatile="false"
  28190. static="true" final="true" visibility="public"
  28191. deprecated="not deprecated">
  28192. </field>
  28193. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  28194. transient="false" volatile="false"
  28195. static="true" final="true" visibility="public"
  28196. deprecated="not deprecated">
  28197. </field>
  28198. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  28199. transient="false" volatile="false"
  28200. static="true" final="true" visibility="public"
  28201. deprecated="not deprecated">
  28202. </field>
  28203. <field name="LONG_VALUE_MAX" type="java.lang.String"
  28204. transient="false" volatile="false"
  28205. static="true" final="true" visibility="public"
  28206. deprecated="not deprecated">
  28207. </field>
  28208. <field name="LONG_VALUE_MIN" type="java.lang.String"
  28209. transient="false" volatile="false"
  28210. static="true" final="true" visibility="public"
  28211. deprecated="not deprecated">
  28212. </field>
  28213. <field name="STRING_VALUE_MAX" type="java.lang.String"
  28214. transient="false" volatile="false"
  28215. static="true" final="true" visibility="public"
  28216. deprecated="not deprecated">
  28217. </field>
  28218. <field name="STRING_VALUE_MIN" type="java.lang.String"
  28219. transient="false" volatile="false"
  28220. static="true" final="true" visibility="public"
  28221. deprecated="not deprecated">
  28222. </field>
  28223. <field name="inputFile" type="java.lang.String"
  28224. transient="false" volatile="false"
  28225. static="false" final="false" visibility="public"
  28226. deprecated="not deprecated">
  28227. </field>
  28228. <doc>
  28229. <![CDATA[This class implements the common functionalities of
  28230. the subclasses of ValueAggregatorDescriptor class.]]>
  28231. </doc>
  28232. </class>
  28233. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  28234. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  28235. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  28236. abstract="false"
  28237. static="false" final="false" visibility="public"
  28238. deprecated="not deprecated">
  28239. <constructor name="ValueAggregatorCombiner"
  28240. static="false" final="false" visibility="public"
  28241. deprecated="not deprecated">
  28242. </constructor>
  28243. <method name="configure"
  28244. abstract="false" native="false" synchronized="false"
  28245. static="false" final="false" visibility="public"
  28246. deprecated="not deprecated">
  28247. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28248. <doc>
  28249. <![CDATA[Combiner does not need to configure.]]>
  28250. </doc>
  28251. </method>
  28252. <method name="reduce"
  28253. abstract="false" native="false" synchronized="false"
  28254. static="false" final="false" visibility="public"
  28255. deprecated="not deprecated">
  28256. <param name="key" type="org.apache.hadoop.io.Text"/>
  28257. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  28258. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28259. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28260. <exception name="IOException" type="java.io.IOException"/>
  28261. <doc>
  28262. <![CDATA[Combines values for a given key.
  28263. @param key the key is expected to be a Text object, whose prefix indicates
  28264. the type of aggregation to aggregate the values.
  28265. @param values the values to combine
  28266. @param output to collect combined values]]>
  28267. </doc>
  28268. </method>
  28269. <method name="close"
  28270. abstract="false" native="false" synchronized="false"
  28271. static="false" final="false" visibility="public"
  28272. deprecated="not deprecated">
  28273. <exception name="IOException" type="java.io.IOException"/>
  28274. <doc>
  28275. <![CDATA[Do nothing.]]>
  28276. </doc>
  28277. </method>
  28278. <method name="map"
  28279. abstract="false" native="false" synchronized="false"
  28280. static="false" final="false" visibility="public"
  28281. deprecated="not deprecated">
  28282. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  28283. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  28284. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28285. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  28286. <exception name="IOException" type="java.io.IOException"/>
  28287. <doc>
  28288. <![CDATA[Do nothing. Should not be called.]]>
  28289. </doc>
  28290. </method>
  28291. <doc>
  28292. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  28293. </doc>
  28294. </class>
  28295. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  28296. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  28297. <interface name="ValueAggregatorDescriptor" abstract="true"
  28298. static="false" final="false" visibility="public"
  28299. deprecated="not deprecated">
  28300. <method name="generateKeyValPairs" return="java.util.ArrayList&lt;java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;&gt;"
  28301. abstract="false" native="false" synchronized="false"
  28302. static="false" final="false" visibility="public"
  28303. deprecated="not deprecated">
  28304. <param name="key" type="java.lang.Object"/>
  28305. <param name="val" type="java.lang.Object"/>
  28306. <doc>
  28307. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  28308. This function is usually called by the mapper of an Aggregate based job.
  28309. @param key
  28310. input key
  28311. @param val
  28312. input value
  28313. @return a list of aggregation id/value pairs. An aggregation id encodes an
  28314. aggregation type which is used to guide the way to aggregate the
  28315. value in the reduce/combiner phrase of an Aggregate based job.]]>
  28316. </doc>
  28317. </method>
  28318. <method name="configure"
  28319. abstract="false" native="false" synchronized="false"
  28320. static="false" final="false" visibility="public"
  28321. deprecated="not deprecated">
  28322. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28323. <doc>
  28324. <![CDATA[Configure the object
  28325. @param job
  28326. a JobConf object that may contain the information that can be used
  28327. to configure the object.]]>
  28328. </doc>
  28329. </method>
  28330. <field name="TYPE_SEPARATOR" type="java.lang.String"
  28331. transient="false" volatile="false"
  28332. static="true" final="true" visibility="public"
  28333. deprecated="not deprecated">
  28334. </field>
  28335. <field name="ONE" type="org.apache.hadoop.io.Text"
  28336. transient="false" volatile="false"
  28337. static="true" final="true" visibility="public"
  28338. deprecated="not deprecated">
  28339. </field>
  28340. <doc>
  28341. <![CDATA[This interface defines the contract a value aggregator descriptor must
  28342. support. Such a descriptor can be configured with a JobConf object. Its main
  28343. function is to generate a list of aggregation-id/value pairs. An aggregation
  28344. id encodes an aggregation type which is used to guide the way to aggregate
  28345. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  28346. an Aggregate based map/reduce job may create one or more of
  28347. ValueAggregatorDescriptor objects at configuration time. For each input
  28348. key/value pair, the mapper will use those objects to create aggregation
  28349. id/value pairs.]]>
  28350. </doc>
  28351. </interface>
  28352. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  28353. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  28354. <class name="ValueAggregatorJob" extends="java.lang.Object"
  28355. abstract="false"
  28356. static="false" final="false" visibility="public"
  28357. deprecated="not deprecated">
  28358. <constructor name="ValueAggregatorJob"
  28359. static="false" final="false" visibility="public"
  28360. deprecated="not deprecated">
  28361. </constructor>
  28362. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  28363. abstract="false" native="false" synchronized="false"
  28364. static="true" final="false" visibility="public"
  28365. deprecated="not deprecated">
  28366. <param name="args" type="java.lang.String[]"/>
  28367. <param name="descriptors" type="java.lang.Class[]"/>
  28368. <exception name="IOException" type="java.io.IOException"/>
  28369. </method>
  28370. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  28371. abstract="false" native="false" synchronized="false"
  28372. static="true" final="false" visibility="public"
  28373. deprecated="not deprecated">
  28374. <param name="args" type="java.lang.String[]"/>
  28375. <exception name="IOException" type="java.io.IOException"/>
  28376. </method>
  28377. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  28378. abstract="false" native="false" synchronized="false"
  28379. static="true" final="false" visibility="public"
  28380. deprecated="not deprecated">
  28381. <param name="args" type="java.lang.String[]"/>
  28382. <exception name="IOException" type="java.io.IOException"/>
  28383. <doc>
  28384. <![CDATA[Create an Aggregate based map/reduce job.
  28385. @param args the arguments used for job creation. Generic hadoop
  28386. arguments are accepted.
  28387. @return a JobConf object ready for submission.
  28388. @throws IOException
  28389. @see GenericOptionsParser]]>
  28390. </doc>
  28391. </method>
  28392. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  28393. abstract="false" native="false" synchronized="false"
  28394. static="true" final="false" visibility="public"
  28395. deprecated="not deprecated">
  28396. <param name="args" type="java.lang.String[]"/>
  28397. <param name="descriptors" type="java.lang.Class[]"/>
  28398. <exception name="IOException" type="java.io.IOException"/>
  28399. </method>
  28400. <method name="setAggregatorDescriptors"
  28401. abstract="false" native="false" synchronized="false"
  28402. static="true" final="false" visibility="public"
  28403. deprecated="not deprecated">
  28404. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28405. <param name="descriptors" type="java.lang.Class[]"/>
  28406. </method>
  28407. <method name="main"
  28408. abstract="false" native="false" synchronized="false"
  28409. static="true" final="false" visibility="public"
  28410. deprecated="not deprecated">
  28411. <param name="args" type="java.lang.String[]"/>
  28412. <exception name="IOException" type="java.io.IOException"/>
  28413. <doc>
  28414. <![CDATA[create and run an Aggregate based map/reduce job.
  28415. @param args the arguments used for job creation
  28416. @throws IOException]]>
  28417. </doc>
  28418. </method>
  28419. <doc>
  28420. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  28421. framework. The Aggregate is a specialization of map/reduce framework,
  28422. specilizing for performing various simple aggregations.
  28423. Generally speaking, in order to implement an application using Map/Reduce
  28424. model, the developer is to implement Map and Reduce functions (and possibly
  28425. combine function). However, a lot of applications related to counting and
  28426. statistics computing have very similar characteristics. Aggregate abstracts
  28427. out the general patterns of these functions and implementing those patterns.
  28428. In particular, the package provides generic mapper/redducer/combiner classes,
  28429. and a set of built-in value aggregators, and a generic utility class that
  28430. helps user create map/reduce jobs using the generic class. The built-in
  28431. aggregators include:
  28432. sum over numeric values count the number of distinct values compute the
  28433. histogram of values compute the minimum, maximum, media,average, standard
  28434. deviation of numeric values
  28435. The developer using Aggregate will need only to provide a plugin class
  28436. conforming to the following interface:
  28437. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  28438. generateKeyValPairs(Object key, Object value); public void
  28439. configure(JobConfjob); }
  28440. The package also provides a base class, ValueAggregatorBaseDescriptor,
  28441. implementing the above interface. The user can extend the base class and
  28442. implement generateKeyValPairs accordingly.
  28443. The primary work of generateKeyValPairs is to emit one or more key/value
  28444. pairs based on the input key/value pair. The key in an output key/value pair
  28445. encode two pieces of information: aggregation type and aggregation id. The
  28446. value will be aggregated onto the aggregation id according the aggregation
  28447. type.
  28448. This class offers a function to generate a map/reduce job using Aggregate
  28449. framework. The function takes the following parameters: input directory spec
  28450. input format (text or sequence file) output directory a file specifying the
  28451. user plugin class]]>
  28452. </doc>
  28453. </class>
  28454. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  28455. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  28456. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  28457. abstract="true"
  28458. static="false" final="false" visibility="public"
  28459. deprecated="not deprecated">
  28460. <implements name="org.apache.hadoop.mapred.Mapper&lt;K1, V1, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28461. <implements name="org.apache.hadoop.mapred.Reducer&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28462. <constructor name="ValueAggregatorJobBase"
  28463. static="false" final="false" visibility="public"
  28464. deprecated="not deprecated">
  28465. </constructor>
  28466. <method name="configure"
  28467. abstract="false" native="false" synchronized="false"
  28468. static="false" final="false" visibility="public"
  28469. deprecated="not deprecated">
  28470. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28471. </method>
  28472. <method name="logSpec"
  28473. abstract="false" native="false" synchronized="false"
  28474. static="false" final="false" visibility="protected"
  28475. deprecated="not deprecated">
  28476. </method>
  28477. <method name="close"
  28478. abstract="false" native="false" synchronized="false"
  28479. static="false" final="false" visibility="public"
  28480. deprecated="not deprecated">
  28481. <exception name="IOException" type="java.io.IOException"/>
  28482. </method>
  28483. <field name="aggregatorDescriptorList" type="java.util.ArrayList&lt;org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor&gt;"
  28484. transient="false" volatile="false"
  28485. static="false" final="false" visibility="protected"
  28486. deprecated="not deprecated">
  28487. </field>
  28488. <doc>
  28489. <![CDATA[This abstract class implements some common functionalities of the
  28490. the generic mapper, reducer and combiner classes of Aggregate.]]>
  28491. </doc>
  28492. </class>
  28493. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  28494. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  28495. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  28496. abstract="false"
  28497. static="false" final="false" visibility="public"
  28498. deprecated="not deprecated">
  28499. <constructor name="ValueAggregatorMapper"
  28500. static="false" final="false" visibility="public"
  28501. deprecated="not deprecated">
  28502. </constructor>
  28503. <method name="map"
  28504. abstract="false" native="false" synchronized="false"
  28505. static="false" final="false" visibility="public"
  28506. deprecated="not deprecated">
  28507. <param name="key" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  28508. <param name="value" type="V1 extends org.apache.hadoop.io.Writable"/>
  28509. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28510. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28511. <exception name="IOException" type="java.io.IOException"/>
  28512. <doc>
  28513. <![CDATA[the map function. It iterates through the value aggregator descriptor
  28514. list to generate aggregation id/value pairs and emit them.]]>
  28515. </doc>
  28516. </method>
  28517. <method name="reduce"
  28518. abstract="false" native="false" synchronized="false"
  28519. static="false" final="false" visibility="public"
  28520. deprecated="not deprecated">
  28521. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  28522. <param name="arg1" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  28523. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28524. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  28525. <exception name="IOException" type="java.io.IOException"/>
  28526. <doc>
  28527. <![CDATA[Do nothing. Should not be called.]]>
  28528. </doc>
  28529. </method>
  28530. <doc>
  28531. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  28532. </doc>
  28533. </class>
  28534. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  28535. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  28536. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  28537. abstract="false"
  28538. static="false" final="false" visibility="public"
  28539. deprecated="not deprecated">
  28540. <constructor name="ValueAggregatorReducer"
  28541. static="false" final="false" visibility="public"
  28542. deprecated="not deprecated">
  28543. </constructor>
  28544. <method name="reduce"
  28545. abstract="false" native="false" synchronized="false"
  28546. static="false" final="false" visibility="public"
  28547. deprecated="not deprecated">
  28548. <param name="key" type="org.apache.hadoop.io.Text"/>
  28549. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  28550. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28551. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28552. <exception name="IOException" type="java.io.IOException"/>
  28553. <doc>
  28554. <![CDATA[@param key
  28555. the key is expected to be a Text object, whose prefix indicates
  28556. the type of aggregation to aggregate the values. In effect, data
  28557. driven computing is achieved. It is assumed that each aggregator's
  28558. getReport method emits appropriate output for the aggregator. This
  28559. may be further customiized.
  28560. @value the values to be aggregated]]>
  28561. </doc>
  28562. </method>
  28563. <method name="map"
  28564. abstract="false" native="false" synchronized="false"
  28565. static="false" final="false" visibility="public"
  28566. deprecated="not deprecated">
  28567. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  28568. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  28569. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28570. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  28571. <exception name="IOException" type="java.io.IOException"/>
  28572. <doc>
  28573. <![CDATA[Do nothing. Should not be called]]>
  28574. </doc>
  28575. </method>
  28576. <doc>
  28577. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  28578. </doc>
  28579. </class>
  28580. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  28581. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  28582. <class name="ValueHistogram" extends="java.lang.Object"
  28583. abstract="false"
  28584. static="false" final="false" visibility="public"
  28585. deprecated="not deprecated">
  28586. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  28587. <constructor name="ValueHistogram"
  28588. static="false" final="false" visibility="public"
  28589. deprecated="not deprecated">
  28590. </constructor>
  28591. <method name="addNextValue"
  28592. abstract="false" native="false" synchronized="false"
  28593. static="false" final="false" visibility="public"
  28594. deprecated="not deprecated">
  28595. <param name="val" type="java.lang.Object"/>
  28596. <doc>
  28597. <![CDATA[add the given val to the aggregator.
  28598. @param val the value to be added. It is expected to be a string
  28599. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  28600. </doc>
  28601. </method>
  28602. <method name="getReport" return="java.lang.String"
  28603. abstract="false" native="false" synchronized="false"
  28604. static="false" final="false" visibility="public"
  28605. deprecated="not deprecated">
  28606. <doc>
  28607. <![CDATA[@return the string representation of this aggregator.
  28608. It includes the following basic statistics of the histogram:
  28609. the number of unique values
  28610. the minimum value
  28611. the media value
  28612. the maximum value
  28613. the average value
  28614. the standard deviation]]>
  28615. </doc>
  28616. </method>
  28617. <method name="getReportDetails" 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[@return a string representation of the list of value/frequence pairs of
  28623. the histogram]]>
  28624. </doc>
  28625. </method>
  28626. <method name="getCombinerOutput" return="java.util.ArrayList"
  28627. abstract="false" native="false" synchronized="false"
  28628. static="false" final="false" visibility="public"
  28629. deprecated="not deprecated">
  28630. <doc>
  28631. <![CDATA[@return a list value/frequence pairs.
  28632. The return value is expected to be used by the reducer.]]>
  28633. </doc>
  28634. </method>
  28635. <method name="getReportItems" return="java.util.TreeMap"
  28636. abstract="false" native="false" synchronized="false"
  28637. static="false" final="false" visibility="public"
  28638. deprecated="not deprecated">
  28639. <doc>
  28640. <![CDATA[@return a TreeMap representation of the histogram]]>
  28641. </doc>
  28642. </method>
  28643. <method name="reset"
  28644. abstract="false" native="false" synchronized="false"
  28645. static="false" final="false" visibility="public"
  28646. deprecated="not deprecated">
  28647. <doc>
  28648. <![CDATA[reset the aggregator]]>
  28649. </doc>
  28650. </method>
  28651. <doc>
  28652. <![CDATA[This class implements a value aggregator that computes the
  28653. histogram of a sequence of strings.]]>
  28654. </doc>
  28655. </class>
  28656. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  28657. </package>
  28658. <package name="org.apache.hadoop.mapred.pipes">
  28659. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  28660. <class name="Submitter" extends="java.lang.Object"
  28661. abstract="false"
  28662. static="false" final="false" visibility="public"
  28663. deprecated="not deprecated">
  28664. <constructor name="Submitter"
  28665. static="false" final="false" visibility="public"
  28666. deprecated="not deprecated">
  28667. </constructor>
  28668. <method name="getExecutable" return="java.lang.String"
  28669. abstract="false" native="false" synchronized="false"
  28670. static="true" final="false" visibility="public"
  28671. deprecated="not deprecated">
  28672. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28673. <doc>
  28674. <![CDATA[Get the URI of the application's executable.
  28675. @param conf
  28676. @return the URI where the application's executable is located]]>
  28677. </doc>
  28678. </method>
  28679. <method name="setExecutable"
  28680. abstract="false" native="false" synchronized="false"
  28681. static="true" final="false" visibility="public"
  28682. deprecated="not deprecated">
  28683. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28684. <param name="executable" type="java.lang.String"/>
  28685. <doc>
  28686. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  28687. location.
  28688. @param conf
  28689. @param executable The URI of the application's executable.]]>
  28690. </doc>
  28691. </method>
  28692. <method name="setIsJavaRecordReader"
  28693. abstract="false" native="false" synchronized="false"
  28694. static="true" final="false" visibility="public"
  28695. deprecated="not deprecated">
  28696. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28697. <param name="value" type="boolean"/>
  28698. <doc>
  28699. <![CDATA[Set whether the job is using a Java RecordReader.
  28700. @param conf the configuration to modify
  28701. @param value the new value]]>
  28702. </doc>
  28703. </method>
  28704. <method name="getIsJavaRecordReader" return="boolean"
  28705. abstract="false" native="false" synchronized="false"
  28706. static="true" final="false" visibility="public"
  28707. deprecated="not deprecated">
  28708. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28709. <doc>
  28710. <![CDATA[Check whether the job is using a Java RecordReader
  28711. @param conf the configuration to check
  28712. @return is it a Java RecordReader?]]>
  28713. </doc>
  28714. </method>
  28715. <method name="setIsJavaMapper"
  28716. abstract="false" native="false" synchronized="false"
  28717. static="true" final="false" visibility="public"
  28718. deprecated="not deprecated">
  28719. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28720. <param name="value" type="boolean"/>
  28721. <doc>
  28722. <![CDATA[Set whether the Mapper is written in Java.
  28723. @param conf the configuration to modify
  28724. @param value the new value]]>
  28725. </doc>
  28726. </method>
  28727. <method name="getIsJavaMapper" return="boolean"
  28728. abstract="false" native="false" synchronized="false"
  28729. static="true" final="false" visibility="public"
  28730. deprecated="not deprecated">
  28731. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28732. <doc>
  28733. <![CDATA[Check whether the job is using a Java Mapper.
  28734. @param conf the configuration to check
  28735. @return is it a Java Mapper?]]>
  28736. </doc>
  28737. </method>
  28738. <method name="setIsJavaReducer"
  28739. abstract="false" native="false" synchronized="false"
  28740. static="true" final="false" visibility="public"
  28741. deprecated="not deprecated">
  28742. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28743. <param name="value" type="boolean"/>
  28744. <doc>
  28745. <![CDATA[Set whether the Reducer is written in Java.
  28746. @param conf the configuration to modify
  28747. @param value the new value]]>
  28748. </doc>
  28749. </method>
  28750. <method name="getIsJavaReducer" return="boolean"
  28751. abstract="false" native="false" synchronized="false"
  28752. static="true" final="false" visibility="public"
  28753. deprecated="not deprecated">
  28754. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28755. <doc>
  28756. <![CDATA[Check whether the job is using a Java Reducer.
  28757. @param conf the configuration to check
  28758. @return is it a Java Reducer?]]>
  28759. </doc>
  28760. </method>
  28761. <method name="setIsJavaRecordWriter"
  28762. abstract="false" native="false" synchronized="false"
  28763. static="true" final="false" visibility="public"
  28764. deprecated="not deprecated">
  28765. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28766. <param name="value" type="boolean"/>
  28767. <doc>
  28768. <![CDATA[Set whether the job will use a Java RecordWriter.
  28769. @param conf the configuration to modify
  28770. @param value the new value to set]]>
  28771. </doc>
  28772. </method>
  28773. <method name="getIsJavaRecordWriter" return="boolean"
  28774. abstract="false" native="false" synchronized="false"
  28775. static="true" final="false" visibility="public"
  28776. deprecated="not deprecated">
  28777. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28778. <doc>
  28779. <![CDATA[Will the reduce use a Java RecordWriter?
  28780. @param conf the configuration to check
  28781. @return true, if the output of the job will be written by Java]]>
  28782. </doc>
  28783. </method>
  28784. <method name="getKeepCommandFile" return="boolean"
  28785. abstract="false" native="false" synchronized="false"
  28786. static="true" final="false" visibility="public"
  28787. deprecated="not deprecated">
  28788. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28789. <doc>
  28790. <![CDATA[Does the user want to keep the command file for debugging? If this is
  28791. true, pipes will write a copy of the command data to a file in the
  28792. task directory named "downlink.data", which may be used to run the C++
  28793. program under the debugger. You probably also want to set
  28794. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  28795. being deleted.
  28796. To run using the data file, set the environment variable
  28797. "hadoop.pipes.command.file" to point to the file.
  28798. @param conf the configuration to check
  28799. @return will the framework save the command file?]]>
  28800. </doc>
  28801. </method>
  28802. <method name="setKeepCommandFile"
  28803. abstract="false" native="false" synchronized="false"
  28804. static="true" final="false" visibility="public"
  28805. deprecated="not deprecated">
  28806. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28807. <param name="keep" type="boolean"/>
  28808. <doc>
  28809. <![CDATA[Set whether to keep the command file for debugging
  28810. @param conf the configuration to modify
  28811. @param keep the new value]]>
  28812. </doc>
  28813. </method>
  28814. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  28815. abstract="false" native="false" synchronized="false"
  28816. static="true" final="false" visibility="public"
  28817. deprecated="not deprecated">
  28818. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28819. <exception name="IOException" type="java.io.IOException"/>
  28820. <doc>
  28821. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  28822. to the job to run under pipes are made to the configuration.
  28823. @param conf the job to submit to the cluster (MODIFIED)
  28824. @throws IOException]]>
  28825. </doc>
  28826. </method>
  28827. <method name="main"
  28828. abstract="false" native="false" synchronized="false"
  28829. static="true" final="false" visibility="public"
  28830. deprecated="not deprecated">
  28831. <param name="args" type="java.lang.String[]"/>
  28832. <exception name="Exception" type="java.lang.Exception"/>
  28833. <doc>
  28834. <![CDATA[Submit a pipes job based on the command line arguments.
  28835. @param args]]>
  28836. </doc>
  28837. </method>
  28838. <doc>
  28839. <![CDATA[The main entry point and job submitter. It may either be used as a command
  28840. line-based or API-based method to launch Pipes jobs.]]>
  28841. </doc>
  28842. </class>
  28843. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  28844. </package>
  28845. <package name="org.apache.hadoop.metrics">
  28846. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  28847. <class name="ContextFactory" extends="java.lang.Object"
  28848. abstract="false"
  28849. static="false" final="false" visibility="public"
  28850. deprecated="not deprecated">
  28851. <constructor name="ContextFactory"
  28852. static="false" final="false" visibility="protected"
  28853. deprecated="not deprecated">
  28854. <doc>
  28855. <![CDATA[Creates a new instance of ContextFactory]]>
  28856. </doc>
  28857. </constructor>
  28858. <method name="getAttribute" return="java.lang.Object"
  28859. abstract="false" native="false" synchronized="false"
  28860. static="false" final="false" visibility="public"
  28861. deprecated="not deprecated">
  28862. <param name="attributeName" type="java.lang.String"/>
  28863. <doc>
  28864. <![CDATA[Returns the value of the named attribute, or null if there is no
  28865. attribute of that name.
  28866. @param attributeName the attribute name
  28867. @return the attribute value]]>
  28868. </doc>
  28869. </method>
  28870. <method name="getAttributeNames" return="java.lang.String[]"
  28871. abstract="false" native="false" synchronized="false"
  28872. static="false" final="false" visibility="public"
  28873. deprecated="not deprecated">
  28874. <doc>
  28875. <![CDATA[Returns the names of all the factory's attributes.
  28876. @return the attribute names]]>
  28877. </doc>
  28878. </method>
  28879. <method name="setAttribute"
  28880. abstract="false" native="false" synchronized="false"
  28881. static="false" final="false" visibility="public"
  28882. deprecated="not deprecated">
  28883. <param name="attributeName" type="java.lang.String"/>
  28884. <param name="value" type="java.lang.Object"/>
  28885. <doc>
  28886. <![CDATA[Sets the named factory attribute to the specified value, creating it
  28887. if it did not already exist. If the value is null, this is the same as
  28888. calling removeAttribute.
  28889. @param attributeName the attribute name
  28890. @param value the new attribute value]]>
  28891. </doc>
  28892. </method>
  28893. <method name="removeAttribute"
  28894. abstract="false" native="false" synchronized="false"
  28895. static="false" final="false" visibility="public"
  28896. deprecated="not deprecated">
  28897. <param name="attributeName" type="java.lang.String"/>
  28898. <doc>
  28899. <![CDATA[Removes the named attribute if it exists.
  28900. @param attributeName the attribute name]]>
  28901. </doc>
  28902. </method>
  28903. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  28904. abstract="false" native="false" synchronized="true"
  28905. static="false" final="false" visibility="public"
  28906. deprecated="not deprecated">
  28907. <param name="contextName" type="java.lang.String"/>
  28908. <exception name="IOException" type="java.io.IOException"/>
  28909. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  28910. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  28911. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  28912. <doc>
  28913. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  28914. using the factory's current configuration attributes. <p/>
  28915. When constructing the instance, if the factory property
  28916. <i>contextName</i>.class</code> exists,
  28917. its value is taken to be the name of the class to instantiate. Otherwise,
  28918. the default is to create an instance of
  28919. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  28920. dummy "no-op" context which will cause all metric data to be discarded.
  28921. @param contextName the name of the context
  28922. @return the named MetricsContext]]>
  28923. </doc>
  28924. </method>
  28925. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  28926. abstract="false" native="false" synchronized="true"
  28927. static="true" final="false" visibility="public"
  28928. deprecated="not deprecated">
  28929. <param name="contextName" type="java.lang.String"/>
  28930. <doc>
  28931. <![CDATA[Returns a "null" context - one which does nothing.]]>
  28932. </doc>
  28933. </method>
  28934. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  28935. abstract="false" native="false" synchronized="true"
  28936. static="true" final="false" visibility="public"
  28937. deprecated="not deprecated">
  28938. <exception name="IOException" type="java.io.IOException"/>
  28939. <doc>
  28940. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  28941. necessary. <p/>
  28942. When the instance is constructed, this method checks if the file
  28943. <code>hadoop-metrics.properties</code> exists on the class path. If it
  28944. exists, it must be in the format defined by java.util.Properties, and all
  28945. the properties in the file are set as attributes on the newly created
  28946. ContextFactory instance.
  28947. @return the singleton ContextFactory instance]]>
  28948. </doc>
  28949. </method>
  28950. <doc>
  28951. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  28952. of this class, use the static <code>getFactory()</code> method.]]>
  28953. </doc>
  28954. </class>
  28955. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  28956. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  28957. <interface name="MetricsContext" abstract="true"
  28958. static="false" final="false" visibility="public"
  28959. deprecated="not deprecated">
  28960. <method name="getContextName" return="java.lang.String"
  28961. abstract="false" native="false" synchronized="false"
  28962. static="false" final="false" visibility="public"
  28963. deprecated="not deprecated">
  28964. <doc>
  28965. <![CDATA[Returns the context name.
  28966. @return the context name]]>
  28967. </doc>
  28968. </method>
  28969. <method name="startMonitoring"
  28970. abstract="false" native="false" synchronized="false"
  28971. static="false" final="false" visibility="public"
  28972. deprecated="not deprecated">
  28973. <exception name="IOException" type="java.io.IOException"/>
  28974. <doc>
  28975. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  28976. updated.]]>
  28977. </doc>
  28978. </method>
  28979. <method name="stopMonitoring"
  28980. abstract="false" native="false" synchronized="false"
  28981. static="false" final="false" visibility="public"
  28982. deprecated="not deprecated">
  28983. <doc>
  28984. <![CDATA[Stops monitoring. This does not free any data that the implementation
  28985. may have buffered for sending at the next timer event. It
  28986. is OK to call <code>startMonitoring()</code> again after calling
  28987. this.
  28988. @see #close()]]>
  28989. </doc>
  28990. </method>
  28991. <method name="isMonitoring" return="boolean"
  28992. abstract="false" native="false" synchronized="false"
  28993. static="false" final="false" visibility="public"
  28994. deprecated="not deprecated">
  28995. <doc>
  28996. <![CDATA[Returns true if monitoring is currently in progress.]]>
  28997. </doc>
  28998. </method>
  28999. <method name="close"
  29000. abstract="false" native="false" synchronized="false"
  29001. static="false" final="false" visibility="public"
  29002. deprecated="not deprecated">
  29003. <doc>
  29004. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  29005. object to its initial state.]]>
  29006. </doc>
  29007. </method>
  29008. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  29009. abstract="false" native="false" synchronized="false"
  29010. static="false" final="false" visibility="public"
  29011. deprecated="not deprecated">
  29012. <param name="recordName" type="java.lang.String"/>
  29013. <doc>
  29014. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  29015. Throws an exception if the metrics implementation is configured with a fixed
  29016. set of record names and <code>recordName</code> is not in that set.
  29017. @param recordName the name of the record
  29018. @throws MetricsException if recordName conflicts with configuration data]]>
  29019. </doc>
  29020. </method>
  29021. <method name="registerUpdater"
  29022. abstract="false" native="false" synchronized="false"
  29023. static="false" final="false" visibility="public"
  29024. deprecated="not deprecated">
  29025. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  29026. <doc>
  29027. <![CDATA[Registers a callback to be called at regular time intervals, as
  29028. determined by the implementation-class specific configuration.
  29029. @param updater object to be run periodically; it should updated
  29030. some metrics records and then return]]>
  29031. </doc>
  29032. </method>
  29033. <method name="unregisterUpdater"
  29034. abstract="false" native="false" synchronized="false"
  29035. static="false" final="false" visibility="public"
  29036. deprecated="not deprecated">
  29037. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  29038. <doc>
  29039. <![CDATA[Removes a callback, if it exists.
  29040. @param updater object to be removed from the callback list]]>
  29041. </doc>
  29042. </method>
  29043. <field name="DEFAULT_PERIOD" type="int"
  29044. transient="false" volatile="false"
  29045. static="true" final="true" visibility="public"
  29046. deprecated="not deprecated">
  29047. <doc>
  29048. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  29049. </doc>
  29050. </field>
  29051. <doc>
  29052. <![CDATA[The main interface to the metrics package.]]>
  29053. </doc>
  29054. </interface>
  29055. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  29056. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  29057. <class name="MetricsException" extends="java.lang.RuntimeException"
  29058. abstract="false"
  29059. static="false" final="false" visibility="public"
  29060. deprecated="not deprecated">
  29061. <constructor name="MetricsException"
  29062. static="false" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. <doc>
  29065. <![CDATA[Creates a new instance of MetricsException]]>
  29066. </doc>
  29067. </constructor>
  29068. <constructor name="MetricsException" type="java.lang.String"
  29069. static="false" final="false" visibility="public"
  29070. deprecated="not deprecated">
  29071. <doc>
  29072. <![CDATA[Creates a new instance of MetricsException
  29073. @param message an error message]]>
  29074. </doc>
  29075. </constructor>
  29076. <doc>
  29077. <![CDATA[General-purpose, unchecked metrics exception.]]>
  29078. </doc>
  29079. </class>
  29080. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  29081. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  29082. <interface name="MetricsRecord" abstract="true"
  29083. static="false" final="false" visibility="public"
  29084. deprecated="not deprecated">
  29085. <method name="getRecordName" return="java.lang.String"
  29086. abstract="false" native="false" synchronized="false"
  29087. static="false" final="false" visibility="public"
  29088. deprecated="not deprecated">
  29089. <doc>
  29090. <![CDATA[Returns the record name.
  29091. @return the record name]]>
  29092. </doc>
  29093. </method>
  29094. <method name="setTag"
  29095. abstract="false" native="false" synchronized="false"
  29096. static="false" final="false" visibility="public"
  29097. deprecated="not deprecated">
  29098. <param name="tagName" type="java.lang.String"/>
  29099. <param name="tagValue" type="java.lang.String"/>
  29100. <doc>
  29101. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  29102. which is treated the same as an empty String.
  29103. @param tagName name of the tag
  29104. @param tagValue new value of the tag
  29105. @throws MetricsException if the tagName conflicts with the configuration]]>
  29106. </doc>
  29107. </method>
  29108. <method name="setTag"
  29109. abstract="false" native="false" synchronized="false"
  29110. static="false" final="false" visibility="public"
  29111. deprecated="not deprecated">
  29112. <param name="tagName" type="java.lang.String"/>
  29113. <param name="tagValue" type="int"/>
  29114. <doc>
  29115. <![CDATA[Sets the named tag to the specified value.
  29116. @param tagName name of the tag
  29117. @param tagValue new value of the tag
  29118. @throws MetricsException if the tagName conflicts with the configuration]]>
  29119. </doc>
  29120. </method>
  29121. <method name="setTag"
  29122. abstract="false" native="false" synchronized="false"
  29123. static="false" final="false" visibility="public"
  29124. deprecated="not deprecated">
  29125. <param name="tagName" type="java.lang.String"/>
  29126. <param name="tagValue" type="long"/>
  29127. <doc>
  29128. <![CDATA[Sets the named tag to the specified value.
  29129. @param tagName name of the tag
  29130. @param tagValue new value of the tag
  29131. @throws MetricsException if the tagName conflicts with the configuration]]>
  29132. </doc>
  29133. </method>
  29134. <method name="setTag"
  29135. abstract="false" native="false" synchronized="false"
  29136. static="false" final="false" visibility="public"
  29137. deprecated="not deprecated">
  29138. <param name="tagName" type="java.lang.String"/>
  29139. <param name="tagValue" type="short"/>
  29140. <doc>
  29141. <![CDATA[Sets the named tag to the specified value.
  29142. @param tagName name of the tag
  29143. @param tagValue new value of the tag
  29144. @throws MetricsException if the tagName conflicts with the configuration]]>
  29145. </doc>
  29146. </method>
  29147. <method name="setTag"
  29148. abstract="false" native="false" synchronized="false"
  29149. static="false" final="false" visibility="public"
  29150. deprecated="not deprecated">
  29151. <param name="tagName" type="java.lang.String"/>
  29152. <param name="tagValue" type="byte"/>
  29153. <doc>
  29154. <![CDATA[Sets the named tag to the specified value.
  29155. @param tagName name of the tag
  29156. @param tagValue new value of the tag
  29157. @throws MetricsException if the tagName conflicts with the configuration]]>
  29158. </doc>
  29159. </method>
  29160. <method name="removeTag"
  29161. abstract="false" native="false" synchronized="false"
  29162. static="false" final="false" visibility="public"
  29163. deprecated="not deprecated">
  29164. <param name="tagName" type="java.lang.String"/>
  29165. <doc>
  29166. <![CDATA[Removes any tag of the specified name.
  29167. @param tagName name of a tag]]>
  29168. </doc>
  29169. </method>
  29170. <method name="setMetric"
  29171. abstract="false" native="false" synchronized="false"
  29172. static="false" final="false" visibility="public"
  29173. deprecated="not deprecated">
  29174. <param name="metricName" type="java.lang.String"/>
  29175. <param name="metricValue" type="int"/>
  29176. <doc>
  29177. <![CDATA[Sets the named metric to the specified value.
  29178. @param metricName name of the metric
  29179. @param metricValue new value of the metric
  29180. @throws MetricsException if the metricName or the type of the metricValue
  29181. conflicts with the configuration]]>
  29182. </doc>
  29183. </method>
  29184. <method name="setMetric"
  29185. abstract="false" native="false" synchronized="false"
  29186. static="false" final="false" visibility="public"
  29187. deprecated="not deprecated">
  29188. <param name="metricName" type="java.lang.String"/>
  29189. <param name="metricValue" type="long"/>
  29190. <doc>
  29191. <![CDATA[Sets the named metric to the specified value.
  29192. @param metricName name of the metric
  29193. @param metricValue new value of the metric
  29194. @throws MetricsException if the metricName or the type of the metricValue
  29195. conflicts with the configuration]]>
  29196. </doc>
  29197. </method>
  29198. <method name="setMetric"
  29199. abstract="false" native="false" synchronized="false"
  29200. static="false" final="false" visibility="public"
  29201. deprecated="not deprecated">
  29202. <param name="metricName" type="java.lang.String"/>
  29203. <param name="metricValue" type="short"/>
  29204. <doc>
  29205. <![CDATA[Sets the named metric to the specified value.
  29206. @param metricName name of the metric
  29207. @param metricValue new value of the metric
  29208. @throws MetricsException if the metricName or the type of the metricValue
  29209. conflicts with the configuration]]>
  29210. </doc>
  29211. </method>
  29212. <method name="setMetric"
  29213. abstract="false" native="false" synchronized="false"
  29214. static="false" final="false" visibility="public"
  29215. deprecated="not deprecated">
  29216. <param name="metricName" type="java.lang.String"/>
  29217. <param name="metricValue" type="byte"/>
  29218. <doc>
  29219. <![CDATA[Sets the named metric to the specified value.
  29220. @param metricName name of the metric
  29221. @param metricValue new value of the metric
  29222. @throws MetricsException if the metricName or the type of the metricValue
  29223. conflicts with the configuration]]>
  29224. </doc>
  29225. </method>
  29226. <method name="setMetric"
  29227. abstract="false" native="false" synchronized="false"
  29228. static="false" final="false" visibility="public"
  29229. deprecated="not deprecated">
  29230. <param name="metricName" type="java.lang.String"/>
  29231. <param name="metricValue" type="float"/>
  29232. <doc>
  29233. <![CDATA[Sets the named metric to the specified value.
  29234. @param metricName name of the metric
  29235. @param metricValue new value of the metric
  29236. @throws MetricsException if the metricName or the type of the metricValue
  29237. conflicts with the configuration]]>
  29238. </doc>
  29239. </method>
  29240. <method name="incrMetric"
  29241. abstract="false" native="false" synchronized="false"
  29242. static="false" final="false" visibility="public"
  29243. deprecated="not deprecated">
  29244. <param name="metricName" type="java.lang.String"/>
  29245. <param name="metricValue" type="int"/>
  29246. <doc>
  29247. <![CDATA[Increments the named metric by the specified value.
  29248. @param metricName name of the metric
  29249. @param metricValue incremental value
  29250. @throws MetricsException if the metricName or the type of the metricValue
  29251. conflicts with the configuration]]>
  29252. </doc>
  29253. </method>
  29254. <method name="incrMetric"
  29255. abstract="false" native="false" synchronized="false"
  29256. static="false" final="false" visibility="public"
  29257. deprecated="not deprecated">
  29258. <param name="metricName" type="java.lang.String"/>
  29259. <param name="metricValue" type="long"/>
  29260. <doc>
  29261. <![CDATA[Increments the named metric by the specified value.
  29262. @param metricName name of the metric
  29263. @param metricValue incremental value
  29264. @throws MetricsException if the metricName or the type of the metricValue
  29265. conflicts with the configuration]]>
  29266. </doc>
  29267. </method>
  29268. <method name="incrMetric"
  29269. abstract="false" native="false" synchronized="false"
  29270. static="false" final="false" visibility="public"
  29271. deprecated="not deprecated">
  29272. <param name="metricName" type="java.lang.String"/>
  29273. <param name="metricValue" type="short"/>
  29274. <doc>
  29275. <![CDATA[Increments the named metric by the specified value.
  29276. @param metricName name of the metric
  29277. @param metricValue incremental value
  29278. @throws MetricsException if the metricName or the type of the metricValue
  29279. conflicts with the configuration]]>
  29280. </doc>
  29281. </method>
  29282. <method name="incrMetric"
  29283. abstract="false" native="false" synchronized="false"
  29284. static="false" final="false" visibility="public"
  29285. deprecated="not deprecated">
  29286. <param name="metricName" type="java.lang.String"/>
  29287. <param name="metricValue" type="byte"/>
  29288. <doc>
  29289. <![CDATA[Increments the named metric by the specified value.
  29290. @param metricName name of the metric
  29291. @param metricValue incremental value
  29292. @throws MetricsException if the metricName or the type of the metricValue
  29293. conflicts with the configuration]]>
  29294. </doc>
  29295. </method>
  29296. <method name="incrMetric"
  29297. abstract="false" native="false" synchronized="false"
  29298. static="false" final="false" visibility="public"
  29299. deprecated="not deprecated">
  29300. <param name="metricName" type="java.lang.String"/>
  29301. <param name="metricValue" type="float"/>
  29302. <doc>
  29303. <![CDATA[Increments the named metric by the specified value.
  29304. @param metricName name of the metric
  29305. @param metricValue incremental value
  29306. @throws MetricsException if the metricName or the type of the metricValue
  29307. conflicts with the configuration]]>
  29308. </doc>
  29309. </method>
  29310. <method name="update"
  29311. abstract="false" native="false" synchronized="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. <doc>
  29315. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  29316. If the tag values match an existing row, that row is updated;
  29317. otherwise, a new row is added.]]>
  29318. </doc>
  29319. </method>
  29320. <method name="remove"
  29321. abstract="false" native="false" synchronized="false"
  29322. static="false" final="false" visibility="public"
  29323. deprecated="not deprecated">
  29324. <doc>
  29325. <![CDATA[Removes, from the buffered data table, all rows having tags
  29326. that equal the tags that have been set on this record. For example,
  29327. if there are no tags on this record, all rows for this record name
  29328. would be removed. Or, if there is a single tag on this record, then
  29329. just rows containing a tag with the same name and value would be removed.]]>
  29330. </doc>
  29331. </method>
  29332. <doc>
  29333. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  29334. system. <p/>
  29335. A record name identifies the kind of data to be reported. For example, a
  29336. program reporting statistics relating to the disks on a computer might use
  29337. a record name "diskStats".<p/>
  29338. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  29339. continue the example, the "diskStats" record might use a tag named
  29340. "diskName" to identify a particular disk. Sometimes it is useful to have
  29341. more than one tag, so there might also be a "diskType" with value "ide" or
  29342. "scsi" or whatever.<p/>
  29343. A record also has zero or more <i>metrics</i>. These are the named
  29344. values that are to be reported to the metrics system. In the "diskStats"
  29345. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  29346. "kbReadPerSecond", etc.<p/>
  29347. The general procedure for using a MetricsRecord is to fill in its tag and
  29348. metric values, and then call <code>update()</code> to pass the record to the
  29349. client library.
  29350. Metric data is not immediately sent to the metrics system
  29351. each time that <code>update()</code> is called.
  29352. An internal table is maintained, identified by the record name. This
  29353. table has columns
  29354. corresponding to the tag and the metric names, and rows
  29355. corresponding to each unique set of tag values. An update
  29356. either modifies an existing row in the table, or adds a new row with a set of
  29357. tag values that are different from all the other rows. Note that if there
  29358. are no tags, then there can be at most one row in the table. <p/>
  29359. Once a row is added to the table, its data will be sent to the metrics system
  29360. on every timer period, whether or not it has been updated since the previous
  29361. timer period. If this is inappropriate, for example if metrics were being
  29362. reported by some transient object in an application, the <code>remove()</code>
  29363. method can be used to remove the row and thus stop the data from being
  29364. sent.<p/>
  29365. Note that the <code>update()</code> method is atomic. This means that it is
  29366. safe for different threads to be updating the same metric. More precisely,
  29367. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  29368. with the same set of tag names and tag values. Different threads should
  29369. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  29370. </doc>
  29371. </interface>
  29372. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  29373. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  29374. <class name="MetricsUtil" extends="java.lang.Object"
  29375. abstract="false"
  29376. static="false" final="false" visibility="public"
  29377. deprecated="not deprecated">
  29378. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  29379. abstract="false" native="false" synchronized="false"
  29380. static="true" final="false" visibility="public"
  29381. deprecated="not deprecated">
  29382. <param name="contextName" type="java.lang.String"/>
  29383. <doc>
  29384. <![CDATA[Utility method to return the named context.
  29385. If the desired context cannot be created for any reason, the exception
  29386. is logged, and a null context is returned.]]>
  29387. </doc>
  29388. </method>
  29389. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  29390. abstract="false" native="false" synchronized="false"
  29391. static="true" final="false" visibility="public"
  29392. deprecated="not deprecated">
  29393. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  29394. <param name="recordName" type="java.lang.String"/>
  29395. <doc>
  29396. <![CDATA[Utility method to create and return new metrics record instance within the
  29397. given context. This record is tagged with the host name.
  29398. @param context the context
  29399. @param recordName name of the record
  29400. @return newly created metrics record]]>
  29401. </doc>
  29402. </method>
  29403. <doc>
  29404. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  29405. For examples of usage, see {@link org.apache.hadoop.dfs.DataNode}.
  29406. @see org.apache.hadoop.metrics.MetricsRecord
  29407. @see org.apache.hadoop.metrics.MetricsContext
  29408. @see org.apache.hadoop.metrics.ContextFactory]]>
  29409. </doc>
  29410. </class>
  29411. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  29412. <!-- start interface org.apache.hadoop.metrics.Updater -->
  29413. <interface name="Updater" abstract="true"
  29414. static="false" final="false" visibility="public"
  29415. deprecated="not deprecated">
  29416. <method name="doUpdates"
  29417. abstract="false" native="false" synchronized="false"
  29418. static="false" final="false" visibility="public"
  29419. deprecated="not deprecated">
  29420. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  29421. <doc>
  29422. <![CDATA[Timer-based call-back from the metric library.]]>
  29423. </doc>
  29424. </method>
  29425. <doc>
  29426. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  29427. </doc>
  29428. </interface>
  29429. <!-- end interface org.apache.hadoop.metrics.Updater -->
  29430. </package>
  29431. <package name="org.apache.hadoop.metrics.file">
  29432. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  29433. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  29434. abstract="false"
  29435. static="false" final="false" visibility="public"
  29436. deprecated="not deprecated">
  29437. <constructor name="FileContext"
  29438. static="false" final="false" visibility="public"
  29439. deprecated="not deprecated">
  29440. <doc>
  29441. <![CDATA[Creates a new instance of FileContext]]>
  29442. </doc>
  29443. </constructor>
  29444. <method name="init"
  29445. abstract="false" native="false" synchronized="false"
  29446. static="false" final="false" visibility="public"
  29447. deprecated="not deprecated">
  29448. <param name="contextName" type="java.lang.String"/>
  29449. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  29450. </method>
  29451. <method name="getFileName" return="java.lang.String"
  29452. abstract="false" native="false" synchronized="false"
  29453. static="false" final="false" visibility="public"
  29454. deprecated="not deprecated">
  29455. <doc>
  29456. <![CDATA[Returns the configured file name, or null.]]>
  29457. </doc>
  29458. </method>
  29459. <method name="startMonitoring"
  29460. abstract="false" native="false" synchronized="false"
  29461. static="false" final="false" visibility="public"
  29462. deprecated="not deprecated">
  29463. <exception name="IOException" type="java.io.IOException"/>
  29464. <doc>
  29465. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  29466. file specified by the <code>fileName</code> attribute,
  29467. if specified. Otherwise the data will be written to standard
  29468. output.]]>
  29469. </doc>
  29470. </method>
  29471. <method name="stopMonitoring"
  29472. abstract="false" native="false" synchronized="false"
  29473. static="false" final="false" visibility="public"
  29474. deprecated="not deprecated">
  29475. <doc>
  29476. <![CDATA[Stops monitoring, closing the file.
  29477. @see #close()]]>
  29478. </doc>
  29479. </method>
  29480. <method name="emitRecord"
  29481. abstract="false" native="false" synchronized="false"
  29482. static="false" final="false" visibility="public"
  29483. deprecated="not deprecated">
  29484. <param name="contextName" type="java.lang.String"/>
  29485. <param name="recordName" type="java.lang.String"/>
  29486. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  29487. <doc>
  29488. <![CDATA[Emits a metrics record to a file.]]>
  29489. </doc>
  29490. </method>
  29491. <method name="flush"
  29492. abstract="false" native="false" synchronized="false"
  29493. static="false" final="false" visibility="public"
  29494. deprecated="not deprecated">
  29495. <doc>
  29496. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  29497. </doc>
  29498. </method>
  29499. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  29500. transient="false" volatile="false"
  29501. static="true" final="true" visibility="protected"
  29502. deprecated="not deprecated">
  29503. </field>
  29504. <field name="PERIOD_PROPERTY" type="java.lang.String"
  29505. transient="false" volatile="false"
  29506. static="true" final="true" visibility="protected"
  29507. deprecated="not deprecated">
  29508. </field>
  29509. <doc>
  29510. <![CDATA[Metrics context for writing metrics to a file.<p/>
  29511. This class is configured by setting ContextFactory attributes which in turn
  29512. are usually configured through a properties file. All the attributes are
  29513. prefixed by the contextName. For example, the properties file might contain:
  29514. <pre>
  29515. myContextName.fileName=/tmp/metrics.log
  29516. myContextName.period=5
  29517. </pre>]]>
  29518. </doc>
  29519. </class>
  29520. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  29521. </package>
  29522. <package name="org.apache.hadoop.metrics.ganglia">
  29523. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  29524. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  29525. abstract="false"
  29526. static="false" final="false" visibility="public"
  29527. deprecated="not deprecated">
  29528. <constructor name="GangliaContext"
  29529. static="false" final="false" visibility="public"
  29530. deprecated="not deprecated">
  29531. <doc>
  29532. <![CDATA[Creates a new instance of GangliaContext]]>
  29533. </doc>
  29534. </constructor>
  29535. <method name="init"
  29536. abstract="false" native="false" synchronized="false"
  29537. static="false" final="false" visibility="public"
  29538. deprecated="not deprecated">
  29539. <param name="contextName" type="java.lang.String"/>
  29540. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  29541. </method>
  29542. <method name="emitRecord"
  29543. abstract="false" native="false" synchronized="false"
  29544. static="false" final="false" visibility="public"
  29545. deprecated="not deprecated">
  29546. <param name="contextName" type="java.lang.String"/>
  29547. <param name="recordName" type="java.lang.String"/>
  29548. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  29549. <exception name="IOException" type="java.io.IOException"/>
  29550. </method>
  29551. <doc>
  29552. <![CDATA[Context for sending metrics to Ganglia.]]>
  29553. </doc>
  29554. </class>
  29555. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  29556. </package>
  29557. <package name="org.apache.hadoop.metrics.jvm">
  29558. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  29559. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  29560. abstract="false"
  29561. static="false" final="false" visibility="public"
  29562. deprecated="not deprecated">
  29563. <constructor name="EventCounter"
  29564. static="false" final="false" visibility="public"
  29565. deprecated="not deprecated">
  29566. </constructor>
  29567. <method name="getFatal" return="long"
  29568. abstract="false" native="false" synchronized="false"
  29569. static="true" final="false" visibility="public"
  29570. deprecated="not deprecated">
  29571. </method>
  29572. <method name="getError" return="long"
  29573. abstract="false" native="false" synchronized="false"
  29574. static="true" final="false" visibility="public"
  29575. deprecated="not deprecated">
  29576. </method>
  29577. <method name="getWarn" return="long"
  29578. abstract="false" native="false" synchronized="false"
  29579. static="true" final="false" visibility="public"
  29580. deprecated="not deprecated">
  29581. </method>
  29582. <method name="getInfo" return="long"
  29583. abstract="false" native="false" synchronized="false"
  29584. static="true" final="false" visibility="public"
  29585. deprecated="not deprecated">
  29586. </method>
  29587. <method name="append"
  29588. abstract="false" native="false" synchronized="false"
  29589. static="false" final="false" visibility="public"
  29590. deprecated="not deprecated">
  29591. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  29592. </method>
  29593. <method name="close"
  29594. abstract="false" native="false" synchronized="false"
  29595. static="false" final="false" visibility="public"
  29596. deprecated="not deprecated">
  29597. </method>
  29598. <method name="requiresLayout" return="boolean"
  29599. abstract="false" native="false" synchronized="false"
  29600. static="false" final="false" visibility="public"
  29601. deprecated="not deprecated">
  29602. </method>
  29603. <doc>
  29604. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  29605. fatal, error and warn.]]>
  29606. </doc>
  29607. </class>
  29608. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  29609. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  29610. <class name="JvmMetrics" extends="java.lang.Object"
  29611. abstract="false"
  29612. static="false" final="false" visibility="public"
  29613. deprecated="not deprecated">
  29614. <implements name="org.apache.hadoop.metrics.Updater"/>
  29615. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  29616. abstract="false" native="false" synchronized="true"
  29617. static="true" final="false" visibility="public"
  29618. deprecated="not deprecated">
  29619. <param name="processName" type="java.lang.String"/>
  29620. <param name="sessionId" type="java.lang.String"/>
  29621. </method>
  29622. <method name="doUpdates"
  29623. abstract="false" native="false" synchronized="false"
  29624. static="false" final="false" visibility="public"
  29625. deprecated="not deprecated">
  29626. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  29627. <doc>
  29628. <![CDATA[This will be called periodically (with the period being configuration
  29629. dependent).]]>
  29630. </doc>
  29631. </method>
  29632. <doc>
  29633. <![CDATA[Singleton class which eports Java Virtual Machine metrics to the metrics API.
  29634. Any application can create an instance of this class in order to emit
  29635. Java VM metrics.]]>
  29636. </doc>
  29637. </class>
  29638. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  29639. </package>
  29640. <package name="org.apache.hadoop.metrics.spi">
  29641. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  29642. <class name="AbstractMetricsContext" extends="java.lang.Object"
  29643. abstract="true"
  29644. static="false" final="false" visibility="public"
  29645. deprecated="not deprecated">
  29646. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  29647. <constructor name="AbstractMetricsContext"
  29648. static="false" final="false" visibility="protected"
  29649. deprecated="not deprecated">
  29650. <doc>
  29651. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  29652. </doc>
  29653. </constructor>
  29654. <method name="init"
  29655. abstract="false" native="false" synchronized="false"
  29656. static="false" final="false" visibility="public"
  29657. deprecated="not deprecated">
  29658. <param name="contextName" type="java.lang.String"/>
  29659. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  29660. <doc>
  29661. <![CDATA[Initializes the context.]]>
  29662. </doc>
  29663. </method>
  29664. <method name="getAttribute" return="java.lang.String"
  29665. abstract="false" native="false" synchronized="false"
  29666. static="false" final="false" visibility="protected"
  29667. deprecated="not deprecated">
  29668. <param name="attributeName" type="java.lang.String"/>
  29669. <doc>
  29670. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  29671. </doc>
  29672. </method>
  29673. <method name="getAttributeTable" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  29674. abstract="false" native="false" synchronized="false"
  29675. static="false" final="false" visibility="protected"
  29676. deprecated="not deprecated">
  29677. <param name="tableName" type="java.lang.String"/>
  29678. <doc>
  29679. <![CDATA[Returns an attribute-value map derived from the factory attributes
  29680. by finding all factory attributes that begin with
  29681. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  29682. those attributes with the contextName and tableName stripped off.]]>
  29683. </doc>
  29684. </method>
  29685. <method name="getContextName" return="java.lang.String"
  29686. abstract="false" native="false" synchronized="false"
  29687. static="false" final="false" visibility="public"
  29688. deprecated="not deprecated">
  29689. <doc>
  29690. <![CDATA[Returns the context name.]]>
  29691. </doc>
  29692. </method>
  29693. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  29694. abstract="false" native="false" synchronized="false"
  29695. static="false" final="false" visibility="public"
  29696. deprecated="not deprecated">
  29697. <doc>
  29698. <![CDATA[Returns the factory by which this context was created.]]>
  29699. </doc>
  29700. </method>
  29701. <method name="startMonitoring"
  29702. abstract="false" native="false" synchronized="true"
  29703. static="false" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. <exception name="IOException" type="java.io.IOException"/>
  29706. <doc>
  29707. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  29708. </doc>
  29709. </method>
  29710. <method name="stopMonitoring"
  29711. abstract="false" native="false" synchronized="true"
  29712. static="false" final="false" visibility="public"
  29713. deprecated="not deprecated">
  29714. <doc>
  29715. <![CDATA[Stops monitoring. This does not free buffered data.
  29716. @see #close()]]>
  29717. </doc>
  29718. </method>
  29719. <method name="isMonitoring" return="boolean"
  29720. abstract="false" native="false" synchronized="false"
  29721. static="false" final="false" visibility="public"
  29722. deprecated="not deprecated">
  29723. <doc>
  29724. <![CDATA[Returns true if monitoring is currently in progress.]]>
  29725. </doc>
  29726. </method>
  29727. <method name="close"
  29728. abstract="false" native="false" synchronized="true"
  29729. static="false" final="false" visibility="public"
  29730. deprecated="not deprecated">
  29731. <doc>
  29732. <![CDATA[Stops monitoring and frees buffered data, returning this
  29733. object to its initial state.]]>
  29734. </doc>
  29735. </method>
  29736. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  29737. abstract="false" native="false" synchronized="true"
  29738. static="false" final="true" visibility="public"
  29739. deprecated="not deprecated">
  29740. <param name="recordName" type="java.lang.String"/>
  29741. <doc>
  29742. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  29743. Throws an exception if the metrics implementation is configured with a fixed
  29744. set of record names and <code>recordName</code> is not in that set.
  29745. @param recordName the name of the record
  29746. @throws MetricsException if recordName conflicts with configuration data]]>
  29747. </doc>
  29748. </method>
  29749. <method name="newRecord" return="org.apache.hadoop.metrics.spi.MetricsRecordImpl"
  29750. abstract="false" native="false" synchronized="false"
  29751. static="false" final="false" visibility="protected"
  29752. deprecated="not deprecated">
  29753. <param name="recordName" type="java.lang.String"/>
  29754. <doc>
  29755. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  29756. @param recordName the name of the record
  29757. @return newly created instance of MetricsRecordImpl or subclass]]>
  29758. </doc>
  29759. </method>
  29760. <method name="registerUpdater"
  29761. abstract="false" native="false" synchronized="true"
  29762. static="false" final="false" visibility="public"
  29763. deprecated="not deprecated">
  29764. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  29765. <doc>
  29766. <![CDATA[Registers a callback to be called at time intervals determined by
  29767. the configuration.
  29768. @param updater object to be run periodically; it should update
  29769. some metrics records]]>
  29770. </doc>
  29771. </method>
  29772. <method name="unregisterUpdater"
  29773. abstract="false" native="false" synchronized="true"
  29774. static="false" final="false" visibility="public"
  29775. deprecated="not deprecated">
  29776. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  29777. <doc>
  29778. <![CDATA[Removes a callback, if it exists.
  29779. @param updater object to be removed from the callback list]]>
  29780. </doc>
  29781. </method>
  29782. <method name="emitRecord"
  29783. abstract="true" native="false" synchronized="false"
  29784. static="false" final="false" visibility="protected"
  29785. deprecated="not deprecated">
  29786. <param name="contextName" type="java.lang.String"/>
  29787. <param name="recordName" type="java.lang.String"/>
  29788. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  29789. <exception name="IOException" type="java.io.IOException"/>
  29790. <doc>
  29791. <![CDATA[Sends a record to the metrics system.]]>
  29792. </doc>
  29793. </method>
  29794. <method name="flush"
  29795. abstract="false" native="false" synchronized="false"
  29796. static="false" final="false" visibility="protected"
  29797. deprecated="not deprecated">
  29798. <exception name="IOException" type="java.io.IOException"/>
  29799. <doc>
  29800. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  29801. Subclasses may override it in order to perform some kind of flush.]]>
  29802. </doc>
  29803. </method>
  29804. <method name="update"
  29805. abstract="false" native="false" synchronized="false"
  29806. static="false" final="false" visibility="protected"
  29807. deprecated="not deprecated">
  29808. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  29809. <doc>
  29810. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  29811. the internal table of metric data.]]>
  29812. </doc>
  29813. </method>
  29814. <method name="remove"
  29815. abstract="false" native="false" synchronized="false"
  29816. static="false" final="false" visibility="protected"
  29817. deprecated="not deprecated">
  29818. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  29819. <doc>
  29820. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  29821. the internal table of metric data. A row matches if it has the same
  29822. tag names and values as record, but it may also have additional
  29823. tags.]]>
  29824. </doc>
  29825. </method>
  29826. <method name="getPeriod" return="int"
  29827. abstract="false" native="false" synchronized="false"
  29828. static="false" final="false" visibility="public"
  29829. deprecated="not deprecated">
  29830. <doc>
  29831. <![CDATA[Returns the timer period.]]>
  29832. </doc>
  29833. </method>
  29834. <method name="setPeriod"
  29835. abstract="false" native="false" synchronized="false"
  29836. static="false" final="false" visibility="protected"
  29837. deprecated="not deprecated">
  29838. <param name="period" type="int"/>
  29839. <doc>
  29840. <![CDATA[Sets the timer period]]>
  29841. </doc>
  29842. </method>
  29843. <doc>
  29844. <![CDATA[The main class of the Service Provider Interface. This class should be
  29845. extended in order to integrate the Metrics API with a specific metrics
  29846. client library. <p/>
  29847. This class implements the internal table of metric data, and the timer
  29848. on which data is to be sent to the metrics system. Subclasses must
  29849. override the abstract <code>emitRecord</code> method in order to transmit
  29850. the data. <p/>]]>
  29851. </doc>
  29852. </class>
  29853. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  29854. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  29855. <class name="MetricsRecordImpl" extends="java.lang.Object"
  29856. abstract="false"
  29857. static="false" final="false" visibility="public"
  29858. deprecated="not deprecated">
  29859. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  29860. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  29861. static="false" final="false" visibility="protected"
  29862. deprecated="not deprecated">
  29863. <doc>
  29864. <![CDATA[Creates a new instance of FileRecord]]>
  29865. </doc>
  29866. </constructor>
  29867. <method name="getRecordName" return="java.lang.String"
  29868. abstract="false" native="false" synchronized="false"
  29869. static="false" final="false" visibility="public"
  29870. deprecated="not deprecated">
  29871. <doc>
  29872. <![CDATA[Returns the record name.
  29873. @return the record name]]>
  29874. </doc>
  29875. </method>
  29876. <method name="setTag"
  29877. abstract="false" native="false" synchronized="false"
  29878. static="false" final="false" visibility="public"
  29879. deprecated="not deprecated">
  29880. <param name="tagName" type="java.lang.String"/>
  29881. <param name="tagValue" type="java.lang.String"/>
  29882. <doc>
  29883. <![CDATA[Sets the named tag to the specified value.
  29884. @param tagName name of the tag
  29885. @param tagValue new value of the tag
  29886. @throws MetricsException if the tagName conflicts with the configuration]]>
  29887. </doc>
  29888. </method>
  29889. <method name="setTag"
  29890. abstract="false" native="false" synchronized="false"
  29891. static="false" final="false" visibility="public"
  29892. deprecated="not deprecated">
  29893. <param name="tagName" type="java.lang.String"/>
  29894. <param name="tagValue" type="int"/>
  29895. <doc>
  29896. <![CDATA[Sets the named tag to the specified value.
  29897. @param tagName name of the tag
  29898. @param tagValue new value of the tag
  29899. @throws MetricsException if the tagName conflicts with the configuration]]>
  29900. </doc>
  29901. </method>
  29902. <method name="setTag"
  29903. abstract="false" native="false" synchronized="false"
  29904. static="false" final="false" visibility="public"
  29905. deprecated="not deprecated">
  29906. <param name="tagName" type="java.lang.String"/>
  29907. <param name="tagValue" type="long"/>
  29908. <doc>
  29909. <![CDATA[Sets the named tag to the specified value.
  29910. @param tagName name of the tag
  29911. @param tagValue new value of the tag
  29912. @throws MetricsException if the tagName conflicts with the configuration]]>
  29913. </doc>
  29914. </method>
  29915. <method name="setTag"
  29916. abstract="false" native="false" synchronized="false"
  29917. static="false" final="false" visibility="public"
  29918. deprecated="not deprecated">
  29919. <param name="tagName" type="java.lang.String"/>
  29920. <param name="tagValue" type="short"/>
  29921. <doc>
  29922. <![CDATA[Sets the named tag to the specified value.
  29923. @param tagName name of the tag
  29924. @param tagValue new value of the tag
  29925. @throws MetricsException if the tagName conflicts with the configuration]]>
  29926. </doc>
  29927. </method>
  29928. <method name="setTag"
  29929. abstract="false" native="false" synchronized="false"
  29930. static="false" final="false" visibility="public"
  29931. deprecated="not deprecated">
  29932. <param name="tagName" type="java.lang.String"/>
  29933. <param name="tagValue" type="byte"/>
  29934. <doc>
  29935. <![CDATA[Sets the named tag to the specified value.
  29936. @param tagName name of the tag
  29937. @param tagValue new value of the tag
  29938. @throws MetricsException if the tagName conflicts with the configuration]]>
  29939. </doc>
  29940. </method>
  29941. <method name="removeTag"
  29942. abstract="false" native="false" synchronized="false"
  29943. static="false" final="false" visibility="public"
  29944. deprecated="not deprecated">
  29945. <param name="tagName" type="java.lang.String"/>
  29946. <doc>
  29947. <![CDATA[Removes any tag of the specified name.]]>
  29948. </doc>
  29949. </method>
  29950. <method name="setMetric"
  29951. abstract="false" native="false" synchronized="false"
  29952. static="false" final="false" visibility="public"
  29953. deprecated="not deprecated">
  29954. <param name="metricName" type="java.lang.String"/>
  29955. <param name="metricValue" type="int"/>
  29956. <doc>
  29957. <![CDATA[Sets the named metric to the specified value.
  29958. @param metricName name of the metric
  29959. @param metricValue new value of the metric
  29960. @throws MetricsException if the metricName or the type of the metricValue
  29961. conflicts with the configuration]]>
  29962. </doc>
  29963. </method>
  29964. <method name="setMetric"
  29965. abstract="false" native="false" synchronized="false"
  29966. static="false" final="false" visibility="public"
  29967. deprecated="not deprecated">
  29968. <param name="metricName" type="java.lang.String"/>
  29969. <param name="metricValue" type="long"/>
  29970. <doc>
  29971. <![CDATA[Sets the named metric to the specified value.
  29972. @param metricName name of the metric
  29973. @param metricValue new value of the metric
  29974. @throws MetricsException if the metricName or the type of the metricValue
  29975. conflicts with the configuration]]>
  29976. </doc>
  29977. </method>
  29978. <method name="setMetric"
  29979. abstract="false" native="false" synchronized="false"
  29980. static="false" final="false" visibility="public"
  29981. deprecated="not deprecated">
  29982. <param name="metricName" type="java.lang.String"/>
  29983. <param name="metricValue" type="short"/>
  29984. <doc>
  29985. <![CDATA[Sets the named metric to the specified value.
  29986. @param metricName name of the metric
  29987. @param metricValue new value of the metric
  29988. @throws MetricsException if the metricName or the type of the metricValue
  29989. conflicts with the configuration]]>
  29990. </doc>
  29991. </method>
  29992. <method name="setMetric"
  29993. abstract="false" native="false" synchronized="false"
  29994. static="false" final="false" visibility="public"
  29995. deprecated="not deprecated">
  29996. <param name="metricName" type="java.lang.String"/>
  29997. <param name="metricValue" type="byte"/>
  29998. <doc>
  29999. <![CDATA[Sets the named metric to the specified value.
  30000. @param metricName name of the metric
  30001. @param metricValue new value of the metric
  30002. @throws MetricsException if the metricName or the type of the metricValue
  30003. conflicts with the configuration]]>
  30004. </doc>
  30005. </method>
  30006. <method name="setMetric"
  30007. abstract="false" native="false" synchronized="false"
  30008. static="false" final="false" visibility="public"
  30009. deprecated="not deprecated">
  30010. <param name="metricName" type="java.lang.String"/>
  30011. <param name="metricValue" type="float"/>
  30012. <doc>
  30013. <![CDATA[Sets the named metric to the specified value.
  30014. @param metricName name of the metric
  30015. @param metricValue new value of the metric
  30016. @throws MetricsException if the metricName or the type of the metricValue
  30017. conflicts with the configuration]]>
  30018. </doc>
  30019. </method>
  30020. <method name="incrMetric"
  30021. abstract="false" native="false" synchronized="false"
  30022. static="false" final="false" visibility="public"
  30023. deprecated="not deprecated">
  30024. <param name="metricName" type="java.lang.String"/>
  30025. <param name="metricValue" type="int"/>
  30026. <doc>
  30027. <![CDATA[Increments the named metric by the specified value.
  30028. @param metricName name of the metric
  30029. @param metricValue incremental value
  30030. @throws MetricsException if the metricName or the type of the metricValue
  30031. conflicts with the configuration]]>
  30032. </doc>
  30033. </method>
  30034. <method name="incrMetric"
  30035. abstract="false" native="false" synchronized="false"
  30036. static="false" final="false" visibility="public"
  30037. deprecated="not deprecated">
  30038. <param name="metricName" type="java.lang.String"/>
  30039. <param name="metricValue" type="long"/>
  30040. <doc>
  30041. <![CDATA[Increments the named metric by the specified value.
  30042. @param metricName name of the metric
  30043. @param metricValue incremental value
  30044. @throws MetricsException if the metricName or the type of the metricValue
  30045. conflicts with the configuration]]>
  30046. </doc>
  30047. </method>
  30048. <method name="incrMetric"
  30049. abstract="false" native="false" synchronized="false"
  30050. static="false" final="false" visibility="public"
  30051. deprecated="not deprecated">
  30052. <param name="metricName" type="java.lang.String"/>
  30053. <param name="metricValue" type="short"/>
  30054. <doc>
  30055. <![CDATA[Increments the named metric by the specified value.
  30056. @param metricName name of the metric
  30057. @param metricValue incremental value
  30058. @throws MetricsException if the metricName or the type of the metricValue
  30059. conflicts with the configuration]]>
  30060. </doc>
  30061. </method>
  30062. <method name="incrMetric"
  30063. abstract="false" native="false" synchronized="false"
  30064. static="false" final="false" visibility="public"
  30065. deprecated="not deprecated">
  30066. <param name="metricName" type="java.lang.String"/>
  30067. <param name="metricValue" type="byte"/>
  30068. <doc>
  30069. <![CDATA[Increments the named metric by the specified value.
  30070. @param metricName name of the metric
  30071. @param metricValue incremental value
  30072. @throws MetricsException if the metricName or the type of the metricValue
  30073. conflicts with the configuration]]>
  30074. </doc>
  30075. </method>
  30076. <method name="incrMetric"
  30077. abstract="false" native="false" synchronized="false"
  30078. static="false" final="false" visibility="public"
  30079. deprecated="not deprecated">
  30080. <param name="metricName" type="java.lang.String"/>
  30081. <param name="metricValue" type="float"/>
  30082. <doc>
  30083. <![CDATA[Increments the named metric by the specified value.
  30084. @param metricName name of the metric
  30085. @param metricValue incremental value
  30086. @throws MetricsException if the metricName or the type of the metricValue
  30087. conflicts with the configuration]]>
  30088. </doc>
  30089. </method>
  30090. <method name="update"
  30091. abstract="false" native="false" synchronized="false"
  30092. static="false" final="false" visibility="public"
  30093. deprecated="not deprecated">
  30094. <doc>
  30095. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  30096. If the tag values match an existing row, that row is updated;
  30097. otherwise, a new row is added.]]>
  30098. </doc>
  30099. </method>
  30100. <method name="remove"
  30101. abstract="false" native="false" synchronized="false"
  30102. static="false" final="false" visibility="public"
  30103. deprecated="not deprecated">
  30104. <doc>
  30105. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  30106. that equal the tags that have been set on this record.]]>
  30107. </doc>
  30108. </method>
  30109. <doc>
  30110. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  30111. from which it was created, and delegates back to it on <code>update</code>
  30112. and <code>remove()</code>.]]>
  30113. </doc>
  30114. </class>
  30115. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  30116. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  30117. <class name="MetricValue" extends="java.lang.Object"
  30118. abstract="false"
  30119. static="false" final="false" visibility="public"
  30120. deprecated="not deprecated">
  30121. <constructor name="MetricValue" type="java.lang.Number, boolean"
  30122. static="false" final="false" visibility="public"
  30123. deprecated="not deprecated">
  30124. <doc>
  30125. <![CDATA[Creates a new instance of MetricValue]]>
  30126. </doc>
  30127. </constructor>
  30128. <method name="isIncrement" return="boolean"
  30129. abstract="false" native="false" synchronized="false"
  30130. static="false" final="false" visibility="public"
  30131. deprecated="not deprecated">
  30132. </method>
  30133. <method name="isAbsolute" return="boolean"
  30134. abstract="false" native="false" synchronized="false"
  30135. static="false" final="false" visibility="public"
  30136. deprecated="not deprecated">
  30137. </method>
  30138. <method name="getNumber" return="java.lang.Number"
  30139. abstract="false" native="false" synchronized="false"
  30140. static="false" final="false" visibility="public"
  30141. deprecated="not deprecated">
  30142. </method>
  30143. <field name="ABSOLUTE" type="boolean"
  30144. transient="false" volatile="false"
  30145. static="true" final="true" visibility="public"
  30146. deprecated="not deprecated">
  30147. </field>
  30148. <field name="INCREMENT" type="boolean"
  30149. transient="false" volatile="false"
  30150. static="true" final="true" visibility="public"
  30151. deprecated="not deprecated">
  30152. </field>
  30153. <doc>
  30154. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  30155. </doc>
  30156. </class>
  30157. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  30158. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  30159. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30160. abstract="false"
  30161. static="false" final="false" visibility="public"
  30162. deprecated="not deprecated">
  30163. <constructor name="NullContext"
  30164. static="false" final="false" visibility="public"
  30165. deprecated="not deprecated">
  30166. <doc>
  30167. <![CDATA[Creates a new instance of NullContext]]>
  30168. </doc>
  30169. </constructor>
  30170. <method name="startMonitoring"
  30171. abstract="false" native="false" synchronized="false"
  30172. static="false" final="false" visibility="public"
  30173. deprecated="not deprecated">
  30174. <doc>
  30175. <![CDATA[Do-nothing version of startMonitoring]]>
  30176. </doc>
  30177. </method>
  30178. <method name="emitRecord"
  30179. abstract="false" native="false" synchronized="false"
  30180. static="false" final="false" visibility="protected"
  30181. deprecated="not deprecated">
  30182. <param name="contextName" type="java.lang.String"/>
  30183. <param name="recordName" type="java.lang.String"/>
  30184. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30185. <doc>
  30186. <![CDATA[Do-nothing version of emitRecord]]>
  30187. </doc>
  30188. </method>
  30189. <method name="update"
  30190. abstract="false" native="false" synchronized="false"
  30191. static="false" final="false" visibility="protected"
  30192. deprecated="not deprecated">
  30193. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30194. <doc>
  30195. <![CDATA[Do-nothing version of update]]>
  30196. </doc>
  30197. </method>
  30198. <method name="remove"
  30199. abstract="false" native="false" synchronized="false"
  30200. static="false" final="false" visibility="protected"
  30201. deprecated="not deprecated">
  30202. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30203. <doc>
  30204. <![CDATA[Do-nothing version of remove]]>
  30205. </doc>
  30206. </method>
  30207. <doc>
  30208. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  30209. default context, so that no performance data is emitted if no configuration
  30210. data is found.]]>
  30211. </doc>
  30212. </class>
  30213. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  30214. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  30215. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  30216. abstract="false"
  30217. static="false" final="false" visibility="public"
  30218. deprecated="not deprecated">
  30219. <constructor name="NullContextWithUpdateThread"
  30220. static="false" final="false" visibility="public"
  30221. deprecated="not deprecated">
  30222. <doc>
  30223. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  30224. </doc>
  30225. </constructor>
  30226. <method name="init"
  30227. abstract="false" native="false" synchronized="false"
  30228. static="false" final="false" visibility="public"
  30229. deprecated="not deprecated">
  30230. <param name="contextName" type="java.lang.String"/>
  30231. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  30232. </method>
  30233. <method name="emitRecord"
  30234. abstract="false" native="false" synchronized="false"
  30235. static="false" final="false" visibility="protected"
  30236. deprecated="not deprecated">
  30237. <param name="contextName" type="java.lang.String"/>
  30238. <param name="recordName" type="java.lang.String"/>
  30239. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  30240. <doc>
  30241. <![CDATA[Do-nothing version of emitRecord]]>
  30242. </doc>
  30243. </method>
  30244. <method name="update"
  30245. abstract="false" native="false" synchronized="false"
  30246. static="false" final="false" visibility="protected"
  30247. deprecated="not deprecated">
  30248. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30249. <doc>
  30250. <![CDATA[Do-nothing version of update]]>
  30251. </doc>
  30252. </method>
  30253. <method name="remove"
  30254. abstract="false" native="false" synchronized="false"
  30255. static="false" final="false" visibility="protected"
  30256. deprecated="not deprecated">
  30257. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  30258. <doc>
  30259. <![CDATA[Do-nothing version of remove]]>
  30260. </doc>
  30261. </method>
  30262. <doc>
  30263. <![CDATA[A null context which has a thread calling
  30264. periodically when monitoring is started. This keeps the data sampled
  30265. correctly.
  30266. In all other respects, this is like the NULL context: No data is emitted.
  30267. This is suitable for Monitoring systems like JMX which reads the metrics
  30268. when someone reads the data from JMX.
  30269. The default impl of start and stop monitoring:
  30270. is the AbstractMetricsContext is good enough.]]>
  30271. </doc>
  30272. </class>
  30273. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  30274. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  30275. <class name="OutputRecord" extends="java.lang.Object"
  30276. abstract="false"
  30277. static="false" final="false" visibility="public"
  30278. deprecated="not deprecated">
  30279. <method name="getTagNames" return="java.util.Set&lt;java.lang.String&gt;"
  30280. abstract="false" native="false" synchronized="false"
  30281. static="false" final="false" visibility="public"
  30282. deprecated="not deprecated">
  30283. <doc>
  30284. <![CDATA[Returns the set of tag names]]>
  30285. </doc>
  30286. </method>
  30287. <method name="getTag" return="java.lang.Object"
  30288. abstract="false" native="false" synchronized="false"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <param name="name" type="java.lang.String"/>
  30292. <doc>
  30293. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  30294. @return the tag value, or null if there is no such tag]]>
  30295. </doc>
  30296. </method>
  30297. <method name="getMetricNames" return="java.util.Set&lt;java.lang.String&gt;"
  30298. abstract="false" native="false" synchronized="false"
  30299. static="false" final="false" visibility="public"
  30300. deprecated="not deprecated">
  30301. <doc>
  30302. <![CDATA[Returns the set of metric names.]]>
  30303. </doc>
  30304. </method>
  30305. <method name="getMetric" return="java.lang.Number"
  30306. abstract="false" native="false" synchronized="false"
  30307. static="false" final="false" visibility="public"
  30308. deprecated="not deprecated">
  30309. <param name="name" type="java.lang.String"/>
  30310. <doc>
  30311. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  30312. </doc>
  30313. </method>
  30314. <doc>
  30315. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  30316. </doc>
  30317. </class>
  30318. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  30319. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  30320. <class name="Util" extends="java.lang.Object"
  30321. abstract="false"
  30322. static="false" final="false" visibility="public"
  30323. deprecated="not deprecated">
  30324. <method name="parse" return="java.util.List&lt;java.net.InetSocketAddress&gt;"
  30325. abstract="false" native="false" synchronized="false"
  30326. static="true" final="false" visibility="public"
  30327. deprecated="not deprecated">
  30328. <param name="specs" type="java.lang.String"/>
  30329. <param name="defaultPort" type="int"/>
  30330. <doc>
  30331. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  30332. of the form <i>hostname</i> or <i>hostname:port</i>. If
  30333. the specs string is null, defaults to localhost:defaultPort.
  30334. @return a list of InetSocketAddress objects.]]>
  30335. </doc>
  30336. </method>
  30337. <doc>
  30338. <![CDATA[Static utility methods]]>
  30339. </doc>
  30340. </class>
  30341. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  30342. </package>
  30343. <package name="org.apache.hadoop.metrics.util">
  30344. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  30345. <class name="MBeanUtil" extends="java.lang.Object"
  30346. abstract="false"
  30347. static="false" final="false" visibility="public"
  30348. deprecated="not deprecated">
  30349. <constructor name="MBeanUtil"
  30350. static="false" final="false" visibility="public"
  30351. deprecated="not deprecated">
  30352. </constructor>
  30353. <method name="registerMBean" return="javax.management.ObjectName"
  30354. abstract="false" native="false" synchronized="false"
  30355. static="true" final="false" visibility="public"
  30356. deprecated="not deprecated">
  30357. <param name="serviceName" type="java.lang.String"/>
  30358. <param name="nameName" type="java.lang.String"/>
  30359. <param name="theMbean" type="java.lang.Object"/>
  30360. <doc>
  30361. <![CDATA[Register the mbean using out standard MBeanName format
  30362. "hadoop.dfs:service=<serviceName>,name=<nameName>"
  30363. Where the <serviceName> and <nameName> are the supplied parameters
  30364. @param serviceName
  30365. @param nameName
  30366. @param theMbean - the MBean to register
  30367. @return the named used to register the MBean]]>
  30368. </doc>
  30369. </method>
  30370. <method name="unregisterMBean"
  30371. abstract="false" native="false" synchronized="false"
  30372. static="true" final="false" visibility="public"
  30373. deprecated="not deprecated">
  30374. <param name="mbeanName" type="javax.management.ObjectName"/>
  30375. </method>
  30376. <doc>
  30377. <![CDATA[This util class provides a method to register an MBean using
  30378. our standard naming convention as described in the doc
  30379. for {link {@link #registerMBean(String, String, Object)}]]>
  30380. </doc>
  30381. </class>
  30382. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  30383. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  30384. <class name="MetricsIntValue" extends="java.lang.Object"
  30385. abstract="false"
  30386. static="false" final="false" visibility="public"
  30387. deprecated="not deprecated">
  30388. <constructor name="MetricsIntValue" type="java.lang.String"
  30389. static="false" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <doc>
  30392. <![CDATA[Constructor - create a new metric
  30393. @param nam the name of the metrics to be used to publish the metric]]>
  30394. </doc>
  30395. </constructor>
  30396. <method name="set"
  30397. abstract="false" native="false" synchronized="true"
  30398. static="false" final="false" visibility="public"
  30399. deprecated="not deprecated">
  30400. <param name="newValue" type="int"/>
  30401. <doc>
  30402. <![CDATA[Set the value
  30403. @param newValue]]>
  30404. </doc>
  30405. </method>
  30406. <method name="get" return="int"
  30407. abstract="false" native="false" synchronized="true"
  30408. static="false" final="false" visibility="public"
  30409. deprecated="not deprecated">
  30410. <doc>
  30411. <![CDATA[Get value
  30412. @return the value last set]]>
  30413. </doc>
  30414. </method>
  30415. <method name="inc"
  30416. abstract="false" native="false" synchronized="true"
  30417. static="false" final="false" visibility="public"
  30418. deprecated="not deprecated">
  30419. <param name="incr" type="int"/>
  30420. <doc>
  30421. <![CDATA[Inc metrics for incr vlaue
  30422. @param incr - value to be added]]>
  30423. </doc>
  30424. </method>
  30425. <method name="inc"
  30426. abstract="false" native="false" synchronized="true"
  30427. static="false" final="false" visibility="public"
  30428. deprecated="not deprecated">
  30429. <doc>
  30430. <![CDATA[Inc metrics by one]]>
  30431. </doc>
  30432. </method>
  30433. <method name="dec"
  30434. abstract="false" native="false" synchronized="true"
  30435. static="false" final="false" visibility="public"
  30436. deprecated="not deprecated">
  30437. <param name="decr" type="int"/>
  30438. <doc>
  30439. <![CDATA[Inc metrics for incr vlaue
  30440. @param decr - value to subtract]]>
  30441. </doc>
  30442. </method>
  30443. <method name="dec"
  30444. abstract="false" native="false" synchronized="true"
  30445. static="false" final="false" visibility="public"
  30446. deprecated="not deprecated">
  30447. <doc>
  30448. <![CDATA[Dec metrics by one]]>
  30449. </doc>
  30450. </method>
  30451. <method name="pushMetric"
  30452. abstract="false" native="false" synchronized="true"
  30453. static="false" final="false" visibility="public"
  30454. deprecated="not deprecated">
  30455. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  30456. <doc>
  30457. <![CDATA[Push the metric to the mr.
  30458. The metric is pushed only if it was updated since last push
  30459. Note this does NOT push to JMX
  30460. (JMX gets the info via {@link #get()}
  30461. @param mr]]>
  30462. </doc>
  30463. </method>
  30464. <doc>
  30465. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  30466. but changes only when it is set.
  30467. Each time its value is set, it is published only *once* at the next update
  30468. call.]]>
  30469. </doc>
  30470. </class>
  30471. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  30472. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  30473. <class name="MetricsLongValue" extends="java.lang.Object"
  30474. abstract="false"
  30475. static="false" final="false" visibility="public"
  30476. deprecated="not deprecated">
  30477. <constructor name="MetricsLongValue" type="java.lang.String"
  30478. static="false" final="false" visibility="public"
  30479. deprecated="not deprecated">
  30480. <doc>
  30481. <![CDATA[Constructor - create a new metric
  30482. @param nam the name of the metrics to be used to publish the metric]]>
  30483. </doc>
  30484. </constructor>
  30485. <method name="set"
  30486. abstract="false" native="false" synchronized="true"
  30487. static="false" final="false" visibility="public"
  30488. deprecated="not deprecated">
  30489. <param name="newValue" type="long"/>
  30490. <doc>
  30491. <![CDATA[Set the value
  30492. @param newValue]]>
  30493. </doc>
  30494. </method>
  30495. <method name="get" return="long"
  30496. abstract="false" native="false" synchronized="true"
  30497. static="false" final="false" visibility="public"
  30498. deprecated="not deprecated">
  30499. <doc>
  30500. <![CDATA[Get value
  30501. @return the value last set]]>
  30502. </doc>
  30503. </method>
  30504. <method name="inc"
  30505. abstract="false" native="false" synchronized="true"
  30506. static="false" final="false" visibility="public"
  30507. deprecated="not deprecated">
  30508. <param name="incr" type="long"/>
  30509. <doc>
  30510. <![CDATA[Inc metrics for incr vlaue
  30511. @param incr - value to be added]]>
  30512. </doc>
  30513. </method>
  30514. <method name="inc"
  30515. abstract="false" native="false" synchronized="true"
  30516. static="false" final="false" visibility="public"
  30517. deprecated="not deprecated">
  30518. <doc>
  30519. <![CDATA[Inc metrics by one]]>
  30520. </doc>
  30521. </method>
  30522. <method name="dec"
  30523. abstract="false" native="false" synchronized="true"
  30524. static="false" final="false" visibility="public"
  30525. deprecated="not deprecated">
  30526. <param name="decr" type="long"/>
  30527. <doc>
  30528. <![CDATA[Inc metrics for incr vlaue
  30529. @param decr - value to subtract]]>
  30530. </doc>
  30531. </method>
  30532. <method name="dec"
  30533. abstract="false" native="false" synchronized="true"
  30534. static="false" final="false" visibility="public"
  30535. deprecated="not deprecated">
  30536. <doc>
  30537. <![CDATA[Dec metrics by one]]>
  30538. </doc>
  30539. </method>
  30540. <method name="pushMetric"
  30541. abstract="false" native="false" synchronized="true"
  30542. static="false" final="false" visibility="public"
  30543. deprecated="not deprecated">
  30544. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  30545. <doc>
  30546. <![CDATA[Push the metric to the mr.
  30547. The metric is pushed only if it was updated since last push
  30548. Note this does NOT push to JMX
  30549. (JMX gets the info via {@link #get()}
  30550. @param mr]]>
  30551. </doc>
  30552. </method>
  30553. <doc>
  30554. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  30555. but changes only when it is set.
  30556. Each time its value is set, it is published only *once* at the next update
  30557. call.]]>
  30558. </doc>
  30559. </class>
  30560. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  30561. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  30562. <class name="MetricsTimeVaryingInt" extends="java.lang.Object"
  30563. abstract="false"
  30564. static="false" final="false" visibility="public"
  30565. deprecated="not deprecated">
  30566. <constructor name="MetricsTimeVaryingInt" type="java.lang.String"
  30567. static="false" final="false" visibility="public"
  30568. deprecated="not deprecated">
  30569. <doc>
  30570. <![CDATA[Constructor - create a new metric
  30571. @param nam the name of the metrics to be used to publish the metric]]>
  30572. </doc>
  30573. </constructor>
  30574. <method name="inc"
  30575. abstract="false" native="false" synchronized="true"
  30576. static="false" final="false" visibility="public"
  30577. deprecated="not deprecated">
  30578. <param name="incr" type="int"/>
  30579. <doc>
  30580. <![CDATA[Inc metrics for incr vlaue
  30581. @param incr - number of operations]]>
  30582. </doc>
  30583. </method>
  30584. <method name="inc"
  30585. abstract="false" native="false" synchronized="true"
  30586. static="false" final="false" visibility="public"
  30587. deprecated="not deprecated">
  30588. <doc>
  30589. <![CDATA[Inc metrics by one]]>
  30590. </doc>
  30591. </method>
  30592. <method name="pushMetric"
  30593. abstract="false" native="false" synchronized="true"
  30594. static="false" final="false" visibility="public"
  30595. deprecated="not deprecated">
  30596. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  30597. <doc>
  30598. <![CDATA[Push the delta metrics to the mr.
  30599. The delta is since the last push/interval.
  30600. Note this does NOT push to JMX
  30601. (JMX gets the info via {@link #previousIntervalValue}
  30602. @param mr]]>
  30603. </doc>
  30604. </method>
  30605. <method name="getPreviousIntervalValue" return="int"
  30606. abstract="false" native="false" synchronized="true"
  30607. static="false" final="false" visibility="public"
  30608. deprecated="not deprecated">
  30609. <doc>
  30610. <![CDATA[The Value at the Previous interval
  30611. @return prev interval value]]>
  30612. </doc>
  30613. </method>
  30614. <doc>
  30615. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  30616. varies over time (e.g. number of files created).
  30617. The metric is is published at interval heart beat (the interval
  30618. is set in the metrics config file).
  30619. Note if one wants a time associated with the metric then use
  30620. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  30621. </doc>
  30622. </class>
  30623. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  30624. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  30625. <class name="MetricsTimeVaryingRate" extends="java.lang.Object"
  30626. abstract="false"
  30627. static="false" final="false" visibility="public"
  30628. deprecated="not deprecated">
  30629. <constructor name="MetricsTimeVaryingRate" type="java.lang.String"
  30630. static="false" final="false" visibility="public"
  30631. deprecated="not deprecated">
  30632. <doc>
  30633. <![CDATA[Constructor - create a new metric
  30634. @param n the name of the metrics to be used to publish the metric]]>
  30635. </doc>
  30636. </constructor>
  30637. <method name="inc"
  30638. abstract="false" native="false" synchronized="true"
  30639. static="false" final="false" visibility="public"
  30640. deprecated="not deprecated">
  30641. <param name="numOps" type="int"/>
  30642. <param name="time" type="long"/>
  30643. <doc>
  30644. <![CDATA[Increment the metrics for numOps operations
  30645. @param numOps - number of operations
  30646. @param time - time for numOps operations]]>
  30647. </doc>
  30648. </method>
  30649. <method name="inc"
  30650. abstract="false" native="false" synchronized="true"
  30651. static="false" final="false" visibility="public"
  30652. deprecated="not deprecated">
  30653. <param name="time" type="long"/>
  30654. <doc>
  30655. <![CDATA[Increment the metrics for one operation
  30656. @param time for one operation]]>
  30657. </doc>
  30658. </method>
  30659. <method name="pushMetric"
  30660. abstract="false" native="false" synchronized="true"
  30661. static="false" final="false" visibility="public"
  30662. deprecated="not deprecated">
  30663. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  30664. <doc>
  30665. <![CDATA[Push the delta metrics to the mr.
  30666. The delta is since the last push/interval.
  30667. Note this does NOT push to JMX
  30668. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  30669. {@link #getPreviousIntervalNumOps()}
  30670. @param mr]]>
  30671. </doc>
  30672. </method>
  30673. <method name="getPreviousIntervalNumOps" return="int"
  30674. abstract="false" native="false" synchronized="true"
  30675. static="false" final="false" visibility="public"
  30676. deprecated="not deprecated">
  30677. <doc>
  30678. <![CDATA[The number of operations in the previous interval
  30679. @return - ops in prev interval]]>
  30680. </doc>
  30681. </method>
  30682. <method name="getPreviousIntervalAverageTime" return="long"
  30683. abstract="false" native="false" synchronized="true"
  30684. static="false" final="false" visibility="public"
  30685. deprecated="not deprecated">
  30686. <doc>
  30687. <![CDATA[The average rate of an operation in the previous interval
  30688. @return - the average rate.]]>
  30689. </doc>
  30690. </method>
  30691. <method name="getMinTime" return="long"
  30692. abstract="false" native="false" synchronized="true"
  30693. static="false" final="false" visibility="public"
  30694. deprecated="not deprecated">
  30695. <doc>
  30696. <![CDATA[The min time for a single operation since the last reset
  30697. {@link #resetMinMax()}
  30698. @return min time for an operation]]>
  30699. </doc>
  30700. </method>
  30701. <method name="getMaxTime" return="long"
  30702. abstract="false" native="false" synchronized="true"
  30703. static="false" final="false" visibility="public"
  30704. deprecated="not deprecated">
  30705. <doc>
  30706. <![CDATA[The max time for a single operation since the last reset
  30707. {@link #resetMinMax()}
  30708. @return max time for an operation]]>
  30709. </doc>
  30710. </method>
  30711. <method name="resetMinMax"
  30712. abstract="false" native="false" synchronized="true"
  30713. static="false" final="false" visibility="public"
  30714. deprecated="not deprecated">
  30715. <doc>
  30716. <![CDATA[Reset the min max values]]>
  30717. </doc>
  30718. </method>
  30719. <doc>
  30720. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  30721. naturally varies over time (e.g. time taken to create a file).
  30722. The rate is averaged at each interval heart beat (the interval
  30723. is set in the metrics config file).
  30724. This class also keeps track of the min and max rates along with
  30725. a method to reset the min-max.]]>
  30726. </doc>
  30727. </class>
  30728. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  30729. </package>
  30730. <package name="org.apache.hadoop.net">
  30731. <!-- start class org.apache.hadoop.net.DNS -->
  30732. <class name="DNS" extends="java.lang.Object"
  30733. abstract="false"
  30734. static="false" final="false" visibility="public"
  30735. deprecated="not deprecated">
  30736. <constructor name="DNS"
  30737. static="false" final="false" visibility="public"
  30738. deprecated="not deprecated">
  30739. </constructor>
  30740. <method name="reverseDns" return="java.lang.String"
  30741. abstract="false" native="false" synchronized="false"
  30742. static="true" final="false" visibility="public"
  30743. deprecated="not deprecated">
  30744. <param name="hostIp" type="java.net.InetAddress"/>
  30745. <param name="ns" type="java.lang.String"/>
  30746. <exception name="NamingException" type="javax.naming.NamingException"/>
  30747. <doc>
  30748. <![CDATA[Returns the hostname associated with the specified IP address by the
  30749. provided nameserver.
  30750. @param hostIp
  30751. The address to reverse lookup
  30752. @param ns
  30753. The host name of a reachable DNS server
  30754. @return The host name associated with the provided IP
  30755. @throws NamingException
  30756. If a NamingException is encountered]]>
  30757. </doc>
  30758. </method>
  30759. <method name="getIPs" return="java.lang.String[]"
  30760. abstract="false" native="false" synchronized="false"
  30761. static="true" final="false" visibility="public"
  30762. deprecated="not deprecated">
  30763. <param name="strInterface" type="java.lang.String"/>
  30764. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30765. <doc>
  30766. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  30767. textual form.
  30768. @param strInterface
  30769. The name of the network interface to query (e.g. eth0)
  30770. @return A string vector of all the IPs associated with the provided
  30771. interface
  30772. @throws UnknownHostException
  30773. If an UnknownHostException is encountered in querying the
  30774. default interface]]>
  30775. </doc>
  30776. </method>
  30777. <method name="getDefaultIP" return="java.lang.String"
  30778. abstract="false" native="false" synchronized="false"
  30779. static="true" final="false" visibility="public"
  30780. deprecated="not deprecated">
  30781. <param name="strInterface" type="java.lang.String"/>
  30782. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30783. <doc>
  30784. <![CDATA[Returns the first available IP address associated with the provided
  30785. network interface
  30786. @param strInterface
  30787. The name of the network interface to query (e.g. eth0)
  30788. @return The IP address in text form
  30789. @throws UnknownHostException
  30790. If one is encountered in querying the default interface]]>
  30791. </doc>
  30792. </method>
  30793. <method name="getHosts" return="java.lang.String[]"
  30794. abstract="false" native="false" synchronized="false"
  30795. static="true" final="false" visibility="public"
  30796. deprecated="not deprecated">
  30797. <param name="strInterface" type="java.lang.String"/>
  30798. <param name="nameserver" type="java.lang.String"/>
  30799. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30800. <doc>
  30801. <![CDATA[Returns all the host names associated by the provided nameserver with the
  30802. address bound to the specified network interface
  30803. @param strInterface
  30804. The name of the network interface to query (e.g. eth0)
  30805. @param nameserver
  30806. The DNS host name
  30807. @return A string vector of all host names associated with the IPs tied to
  30808. the specified interface
  30809. @throws UnknownHostException]]>
  30810. </doc>
  30811. </method>
  30812. <method name="getHosts" return="java.lang.String[]"
  30813. abstract="false" native="false" synchronized="false"
  30814. static="true" final="false" visibility="public"
  30815. deprecated="not deprecated">
  30816. <param name="strInterface" type="java.lang.String"/>
  30817. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30818. <doc>
  30819. <![CDATA[Returns all the host names associated by the default nameserver with the
  30820. address bound to the specified network interface
  30821. @param strInterface
  30822. The name of the network interface to query (e.g. eth0)
  30823. @return The list of host names associated with IPs bound to the network
  30824. interface
  30825. @throws UnknownHostException
  30826. If one is encountered while querying the deault interface]]>
  30827. </doc>
  30828. </method>
  30829. <method name="getDefaultHost" return="java.lang.String"
  30830. abstract="false" native="false" synchronized="false"
  30831. static="true" final="false" visibility="public"
  30832. deprecated="not deprecated">
  30833. <param name="strInterface" type="java.lang.String"/>
  30834. <param name="nameserver" type="java.lang.String"/>
  30835. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30836. <doc>
  30837. <![CDATA[Returns the default (first) host name associated by the provided
  30838. nameserver with the address bound to the specified network interface
  30839. @param strInterface
  30840. The name of the network interface to query (e.g. eth0)
  30841. @param nameserver
  30842. The DNS host name
  30843. @return The default host names associated with IPs bound to the network
  30844. interface
  30845. @throws UnknownHostException
  30846. If one is encountered while querying the deault interface]]>
  30847. </doc>
  30848. </method>
  30849. <method name="getDefaultHost" return="java.lang.String"
  30850. abstract="false" native="false" synchronized="false"
  30851. static="true" final="false" visibility="public"
  30852. deprecated="not deprecated">
  30853. <param name="strInterface" type="java.lang.String"/>
  30854. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  30855. <doc>
  30856. <![CDATA[Returns the default (first) host name associated by the default
  30857. nameserver with the address bound to the specified network interface
  30858. @param strInterface
  30859. The name of the network interface to query (e.g. eth0)
  30860. @return The default host name associated with IPs bound to the network
  30861. interface
  30862. @throws UnknownHostException
  30863. If one is encountered while querying the deault interface]]>
  30864. </doc>
  30865. </method>
  30866. <doc>
  30867. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  30868. the querying of specific network interfaces or nameservers.]]>
  30869. </doc>
  30870. </class>
  30871. <!-- end class org.apache.hadoop.net.DNS -->
  30872. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  30873. <interface name="DNSToSwitchMapping" abstract="true"
  30874. static="false" final="false" visibility="public"
  30875. deprecated="not deprecated">
  30876. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  30877. abstract="false" native="false" synchronized="false"
  30878. static="false" final="false" visibility="public"
  30879. deprecated="not deprecated">
  30880. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  30881. <doc>
  30882. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  30883. switch information (network paths). One-to-one correspondence must be
  30884. maintained between the elements in the lists.
  30885. Consider an element in the argument list - x.y.com. The switch information
  30886. that is returned must be a network path of the form /foo/rack,
  30887. where / is the root, and 'foo' is the switch where 'rack' is connected.
  30888. Note the hostname/ip-address is not part of the returned path.
  30889. The network topology of the cluster would determine the number of
  30890. components in the network path.
  30891. @param names
  30892. @return list of resolved network paths]]>
  30893. </doc>
  30894. </method>
  30895. <doc>
  30896. <![CDATA[An interface that should be implemented to allow pluggable
  30897. DNS-name/IP-address to RackID resolvers.]]>
  30898. </doc>
  30899. </interface>
  30900. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  30901. <!-- start class org.apache.hadoop.net.NetUtils -->
  30902. <class name="NetUtils" extends="java.lang.Object"
  30903. abstract="false"
  30904. static="false" final="false" visibility="public"
  30905. deprecated="not deprecated">
  30906. <constructor name="NetUtils"
  30907. static="false" final="false" visibility="public"
  30908. deprecated="not deprecated">
  30909. </constructor>
  30910. <method name="getSocketFactory" return="javax.net.SocketFactory"
  30911. abstract="false" native="false" synchronized="false"
  30912. static="true" final="false" visibility="public"
  30913. deprecated="not deprecated">
  30914. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30915. <param name="clazz" type="java.lang.Class&lt;?&gt;"/>
  30916. <doc>
  30917. <![CDATA[Get the socket factory for the given class according to its
  30918. configuration parameter
  30919. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  30920. such parameter exists then fall back on the default socket factory as
  30921. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  30922. this default socket factory is not configured, then fall back on the JVM
  30923. default socket factory.
  30924. @param conf the configuration
  30925. @param clazz the class (usually a {@link VersionedProtocol})
  30926. @return a socket factory]]>
  30927. </doc>
  30928. </method>
  30929. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  30930. abstract="false" native="false" synchronized="false"
  30931. static="true" final="false" visibility="public"
  30932. deprecated="not deprecated">
  30933. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30934. <doc>
  30935. <![CDATA[Get the default socket factory as specified by the configuration
  30936. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  30937. @param conf the configuration
  30938. @return the default socket factory as specified in the configuration or
  30939. the JVM default socket factory if the configuration does not
  30940. contain a default socket factory property.]]>
  30941. </doc>
  30942. </method>
  30943. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  30944. abstract="false" native="false" synchronized="false"
  30945. static="true" final="false" visibility="public"
  30946. deprecated="not deprecated">
  30947. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30948. <param name="propValue" type="java.lang.String"/>
  30949. <doc>
  30950. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  30951. given proxy URI corresponds to an absence of configuration parameter,
  30952. returns null. If the URI is malformed raises an exception.
  30953. @param propValue the property which is the class name of the
  30954. SocketFactory to instantiate; assumed non null and non empty.
  30955. @return a socket factory as defined in the property value.]]>
  30956. </doc>
  30957. </method>
  30958. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  30959. abstract="false" native="false" synchronized="false"
  30960. static="true" final="false" visibility="public"
  30961. deprecated="not deprecated">
  30962. <param name="target" type="java.lang.String"/>
  30963. <doc>
  30964. <![CDATA[Util method to build socket addr from either:
  30965. <host>:<post>
  30966. <fs>://<host>:<port>/<path>]]>
  30967. </doc>
  30968. </method>
  30969. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  30970. abstract="false" native="false" synchronized="false"
  30971. static="true" final="false" visibility="public"
  30972. deprecated="not deprecated">
  30973. <param name="target" type="java.lang.String"/>
  30974. <param name="defaultPort" type="int"/>
  30975. <doc>
  30976. <![CDATA[Util method to build socket addr from either:
  30977. <host>
  30978. <host>:<post>
  30979. <fs>://<host>:<port>/<path>]]>
  30980. </doc>
  30981. </method>
  30982. <method name="getServerAddress" return="java.lang.String"
  30983. abstract="false" native="false" synchronized="false"
  30984. static="true" final="false" visibility="public"
  30985. deprecated="not deprecated">
  30986. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30987. <param name="oldBindAddressName" type="java.lang.String"/>
  30988. <param name="oldPortName" type="java.lang.String"/>
  30989. <param name="newBindAddressName" type="java.lang.String"/>
  30990. <doc>
  30991. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  30992. to a single colon separated one.
  30993. @param conf the configuration to check
  30994. @param oldBindAddressName the old address attribute name
  30995. @param oldPortName the old port attribute name
  30996. @param newBindAddressName the new combined name
  30997. @return the complete address from the configuration]]>
  30998. </doc>
  30999. </method>
  31000. <method name="addStaticResolution"
  31001. abstract="false" native="false" synchronized="false"
  31002. static="true" final="false" visibility="public"
  31003. deprecated="not deprecated">
  31004. <param name="host" type="java.lang.String"/>
  31005. <param name="resolvedName" type="java.lang.String"/>
  31006. <doc>
  31007. <![CDATA[Adds a static resolution for host. This can be used for setting up
  31008. hostnames with names that are fake to point to a well known host. For e.g.
  31009. in some testcases we require to have daemons with different hostnames
  31010. running on the same machine. In order to create connections to these
  31011. daemons, one can set up mappings from those hostnames to "localhost".
  31012. {@link NetUtils#getStaticResolution(String)} can be used to query for
  31013. the actual hostname.
  31014. @param host
  31015. @param resolvedName]]>
  31016. </doc>
  31017. </method>
  31018. <method name="getStaticResolution" return="java.lang.String"
  31019. abstract="false" native="false" synchronized="false"
  31020. static="true" final="false" visibility="public"
  31021. deprecated="not deprecated">
  31022. <param name="host" type="java.lang.String"/>
  31023. <doc>
  31024. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  31025. have been set earlier using
  31026. {@link NetUtils#addStaticResolution(String, String)}
  31027. @param host
  31028. @return the resolution]]>
  31029. </doc>
  31030. </method>
  31031. <method name="getAllStaticResolutions" return="java.util.List&lt;java.lang.String[]&gt;"
  31032. abstract="false" native="false" synchronized="false"
  31033. static="true" final="false" visibility="public"
  31034. deprecated="not deprecated">
  31035. <doc>
  31036. <![CDATA[This is used to get all the resolutions that were added using
  31037. {@link NetUtils#addStaticResolution(String, String)}. The return
  31038. value is a List each element of which contains an array of String
  31039. of the form String[0]=hostname, String[1]=resolved-hostname
  31040. @return the list of resolutions]]>
  31041. </doc>
  31042. </method>
  31043. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  31044. abstract="false" native="false" synchronized="false"
  31045. static="true" final="false" visibility="public"
  31046. deprecated="not deprecated">
  31047. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  31048. <doc>
  31049. <![CDATA[Returns InetSocketAddress that a client can use to
  31050. connect to the server. Server.getListenerAddress() is not correct when
  31051. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  31052. the getListenerAddress() returns "0.0.0.0:port".
  31053. @param server
  31054. @return socket address that a client can use to connect to the server.]]>
  31055. </doc>
  31056. </method>
  31057. <method name="getInputStream" return="java.io.InputStream"
  31058. abstract="false" native="false" synchronized="false"
  31059. static="true" final="false" visibility="public"
  31060. deprecated="not deprecated">
  31061. <param name="socket" type="java.net.Socket"/>
  31062. <exception name="IOException" type="java.io.IOException"/>
  31063. <doc>
  31064. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  31065. From documentation for {@link #getInputStream(Socket, long)}:<br>
  31066. Returns InputStream for the socket. If the socket has an associated
  31067. SocketChannel then it returns a
  31068. {@link SocketInputStream} with the given timeout. If the socket does not
  31069. have a channel, {@link Socket#getInputStream()} is returned. In the later
  31070. case, the timeout argument is ignored and the timeout set with
  31071. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  31072. Any socket created using socket factories returned by {@link #NetUtils},
  31073. must use this interface instead of {@link Socket#getInputStream()}.
  31074. @see #getInputStream(Socket, long)
  31075. @param socket
  31076. @return InputStream for reading from the socket.
  31077. @throws IOException]]>
  31078. </doc>
  31079. </method>
  31080. <method name="getInputStream" return="java.io.InputStream"
  31081. abstract="false" native="false" synchronized="false"
  31082. static="true" final="false" visibility="public"
  31083. deprecated="not deprecated">
  31084. <param name="socket" type="java.net.Socket"/>
  31085. <param name="timeout" type="long"/>
  31086. <exception name="IOException" type="java.io.IOException"/>
  31087. <doc>
  31088. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  31089. SocketChannel then it returns a
  31090. {@link SocketInputStream} with the given timeout. If the socket does not
  31091. have a channel, {@link Socket#getInputStream()} is returned. In the later
  31092. case, the timeout argument is ignored and the timeout set with
  31093. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  31094. Any socket created using socket factories returned by {@link #NetUtils},
  31095. must use this interface instead of {@link Socket#getInputStream()}.
  31096. @see Socket#getChannel()
  31097. @param socket
  31098. @param timeout timeout in milliseconds. This may not always apply. zero
  31099. for waiting as long as necessary.
  31100. @return InputStream for reading from the socket.
  31101. @throws IOException]]>
  31102. </doc>
  31103. </method>
  31104. <method name="getOutputStream" return="java.io.OutputStream"
  31105. abstract="false" native="false" synchronized="false"
  31106. static="true" final="false" visibility="public"
  31107. deprecated="not deprecated">
  31108. <param name="socket" type="java.net.Socket"/>
  31109. <exception name="IOException" type="java.io.IOException"/>
  31110. <doc>
  31111. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  31112. wait until data is available.<br><br>
  31113. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  31114. Returns OutputStream for the socket. If the socket has an associated
  31115. SocketChannel then it returns a
  31116. {@link SocketOutputStream} with the given timeout. If the socket does not
  31117. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  31118. case, the timeout argument is ignored and the write will wait until
  31119. data is available.<br><br>
  31120. Any socket created using socket factories returned by {@link #NetUtils},
  31121. must use this interface instead of {@link Socket#getOutputStream()}.
  31122. @see #getOutputStream(Socket, long)
  31123. @param socket
  31124. @return OutputStream for writing to the socket.
  31125. @throws IOException]]>
  31126. </doc>
  31127. </method>
  31128. <method name="getOutputStream" return="java.io.OutputStream"
  31129. abstract="false" native="false" synchronized="false"
  31130. static="true" final="false" visibility="public"
  31131. deprecated="not deprecated">
  31132. <param name="socket" type="java.net.Socket"/>
  31133. <param name="timeout" type="long"/>
  31134. <exception name="IOException" type="java.io.IOException"/>
  31135. <doc>
  31136. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  31137. SocketChannel then it returns a
  31138. {@link SocketOutputStream} with the given timeout. If the socket does not
  31139. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  31140. case, the timeout argument is ignored and the write will wait until
  31141. data is available.<br><br>
  31142. Any socket created using socket factories returned by {@link #NetUtils},
  31143. must use this interface instead of {@link Socket#getOutputStream()}.
  31144. @see Socket#getChannel()
  31145. @param socket
  31146. @param timeout timeout in milliseconds. This may not always apply. zero
  31147. for waiting as long as necessary.
  31148. @return OutputStream for writing to the socket.
  31149. @throws IOException]]>
  31150. </doc>
  31151. </method>
  31152. </class>
  31153. <!-- end class org.apache.hadoop.net.NetUtils -->
  31154. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  31155. <class name="NetworkTopology" extends="java.lang.Object"
  31156. abstract="false"
  31157. static="false" final="false" visibility="public"
  31158. deprecated="not deprecated">
  31159. <constructor name="NetworkTopology"
  31160. static="false" final="false" visibility="public"
  31161. deprecated="not deprecated">
  31162. </constructor>
  31163. <method name="add"
  31164. abstract="false" native="false" synchronized="false"
  31165. static="false" final="false" visibility="public"
  31166. deprecated="not deprecated">
  31167. <param name="node" type="org.apache.hadoop.net.Node"/>
  31168. <doc>
  31169. <![CDATA[Add a leaf node
  31170. Update node counter & rack counter if neccessary
  31171. @param node
  31172. node to be added
  31173. @exception IllegalArgumentException if add a node to a leave
  31174. or node to be added is not a leaf]]>
  31175. </doc>
  31176. </method>
  31177. <method name="remove"
  31178. abstract="false" native="false" synchronized="false"
  31179. static="false" final="false" visibility="public"
  31180. deprecated="not deprecated">
  31181. <param name="node" type="org.apache.hadoop.net.Node"/>
  31182. <doc>
  31183. <![CDATA[Remove a node
  31184. Update node counter & rack counter if neccessary
  31185. @param node
  31186. node to be removed]]>
  31187. </doc>
  31188. </method>
  31189. <method name="contains" return="boolean"
  31190. abstract="false" native="false" synchronized="false"
  31191. static="false" final="false" visibility="public"
  31192. deprecated="not deprecated">
  31193. <param name="node" type="org.apache.hadoop.net.Node"/>
  31194. <doc>
  31195. <![CDATA[Check if the tree contains node <i>node</i>
  31196. @param node
  31197. a node
  31198. @return true if <i>node</i> is already in the tree; false otherwise]]>
  31199. </doc>
  31200. </method>
  31201. <method name="getNode" return="org.apache.hadoop.net.Node"
  31202. abstract="false" native="false" synchronized="false"
  31203. static="false" final="false" visibility="public"
  31204. deprecated="not deprecated">
  31205. <param name="loc" type="java.lang.String"/>
  31206. <doc>
  31207. <![CDATA[Given a string representation of a node, return its reference
  31208. @param loc
  31209. a path-like string representation of a node
  31210. @return a reference to the node; null if the node is not in the tree]]>
  31211. </doc>
  31212. </method>
  31213. <method name="getNumOfRacks" return="int"
  31214. abstract="false" native="false" synchronized="false"
  31215. static="false" final="false" visibility="public"
  31216. deprecated="not deprecated">
  31217. <doc>
  31218. <![CDATA[Return the total number of racks]]>
  31219. </doc>
  31220. </method>
  31221. <method name="getNumOfLeaves" return="int"
  31222. abstract="false" native="false" synchronized="false"
  31223. static="false" final="false" visibility="public"
  31224. deprecated="not deprecated">
  31225. <doc>
  31226. <![CDATA[Return the total number of nodes]]>
  31227. </doc>
  31228. </method>
  31229. <method name="getDistance" return="int"
  31230. abstract="false" native="false" synchronized="false"
  31231. static="false" final="false" visibility="public"
  31232. deprecated="not deprecated">
  31233. <param name="node1" type="org.apache.hadoop.net.Node"/>
  31234. <param name="node2" type="org.apache.hadoop.net.Node"/>
  31235. <doc>
  31236. <![CDATA[Return the distance between two nodes
  31237. It is assumed that the distance from one node to its parent is 1
  31238. The distance between two nodes is calculated by summing up their distances
  31239. to their closest common ancestor.
  31240. @param node1 one node
  31241. @param node2 another node
  31242. @return the distance between node1 and node2
  31243. node1 or node2 do not belong to the cluster]]>
  31244. </doc>
  31245. </method>
  31246. <method name="isOnSameRack" return="boolean"
  31247. abstract="false" native="false" synchronized="false"
  31248. static="false" final="false" visibility="public"
  31249. deprecated="not deprecated">
  31250. <param name="node1" type="org.apache.hadoop.net.Node"/>
  31251. <param name="node2" type="org.apache.hadoop.net.Node"/>
  31252. <doc>
  31253. <![CDATA[Check if two nodes are on the same rack
  31254. @param node1 one node
  31255. @param node2 another node
  31256. @return true if node1 and node2 are pm the same rack; false otherwise
  31257. @exception IllegalArgumentException when either node1 or node2 is null, or
  31258. node1 or node2 do not belong to the cluster]]>
  31259. </doc>
  31260. </method>
  31261. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  31262. abstract="false" native="false" synchronized="false"
  31263. static="false" final="false" visibility="public"
  31264. deprecated="not deprecated">
  31265. <param name="scope" type="java.lang.String"/>
  31266. <doc>
  31267. <![CDATA[randomly choose one node from <i>scope</i>
  31268. if scope starts with ~, choose one from the all nodes except for the
  31269. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  31270. @param scope range of nodes from which a node will be choosen
  31271. @return the choosen node]]>
  31272. </doc>
  31273. </method>
  31274. <method name="countNumOfAvailableNodes" return="int"
  31275. abstract="false" native="false" synchronized="false"
  31276. static="false" final="false" visibility="public"
  31277. deprecated="not deprecated">
  31278. <param name="scope" type="java.lang.String"/>
  31279. <param name="excludedNodes" type="java.util.List&lt;org.apache.hadoop.net.Node&gt;"/>
  31280. <doc>
  31281. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  31282. if scope starts with ~, return the number of nodes that are not
  31283. in <i>scope</i> and <i>excludedNodes</i>;
  31284. @param scope a path string that may start with ~
  31285. @param excludedNodes a list of nodes
  31286. @return number of available nodes]]>
  31287. </doc>
  31288. </method>
  31289. <method name="toString" return="java.lang.String"
  31290. abstract="false" native="false" synchronized="false"
  31291. static="false" final="false" visibility="public"
  31292. deprecated="not deprecated">
  31293. <doc>
  31294. <![CDATA[convert a network tree to a string]]>
  31295. </doc>
  31296. </method>
  31297. <method name="pseudoSortByDistance"
  31298. abstract="false" native="false" synchronized="true"
  31299. static="false" final="false" visibility="public"
  31300. deprecated="not deprecated">
  31301. <param name="reader" type="org.apache.hadoop.net.Node"/>
  31302. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  31303. <doc>
  31304. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  31305. It linearly scans the array, if a local node is found, swap it with
  31306. the first element of the array.
  31307. If a local rack node is found, swap it with the first element following
  31308. the local node.
  31309. If neither local node or local rack node is found, put a random replica
  31310. location at postion 0.
  31311. It leaves the rest nodes untouched.]]>
  31312. </doc>
  31313. </method>
  31314. <field name="DEFAULT_RACK" type="java.lang.String"
  31315. transient="false" volatile="false"
  31316. static="true" final="true" visibility="public"
  31317. deprecated="not deprecated">
  31318. </field>
  31319. <field name="UNRESOLVED" type="java.lang.String"
  31320. transient="false" volatile="false"
  31321. static="true" final="true" visibility="public"
  31322. deprecated="not deprecated">
  31323. </field>
  31324. <field name="DEFAULT_HOST_LEVEL" type="int"
  31325. transient="false" volatile="false"
  31326. static="true" final="true" visibility="public"
  31327. deprecated="not deprecated">
  31328. </field>
  31329. <field name="LOG" type="org.apache.commons.logging.Log"
  31330. transient="false" volatile="false"
  31331. static="true" final="true" visibility="public"
  31332. deprecated="not deprecated">
  31333. </field>
  31334. <doc>
  31335. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  31336. network topology.
  31337. For example, a cluster may be consists of many data centers filled
  31338. with racks of computers.
  31339. In a network topology, leaves represent data nodes (computers) and inner
  31340. nodes represent switches/routers that manage traffic in/out of data centers
  31341. or racks.]]>
  31342. </doc>
  31343. </class>
  31344. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  31345. <!-- start interface org.apache.hadoop.net.Node -->
  31346. <interface name="Node" abstract="true"
  31347. static="false" final="false" visibility="public"
  31348. deprecated="not deprecated">
  31349. <method name="getNetworkLocation" return="java.lang.String"
  31350. abstract="false" native="false" synchronized="false"
  31351. static="false" final="false" visibility="public"
  31352. deprecated="not deprecated">
  31353. <doc>
  31354. <![CDATA[Return the string representation of this node's network location]]>
  31355. </doc>
  31356. </method>
  31357. <method name="setNetworkLocation"
  31358. abstract="false" native="false" synchronized="false"
  31359. static="false" final="false" visibility="public"
  31360. deprecated="not deprecated">
  31361. <param name="location" type="java.lang.String"/>
  31362. <doc>
  31363. <![CDATA[Set the node's network location]]>
  31364. </doc>
  31365. </method>
  31366. <method name="getName" return="java.lang.String"
  31367. abstract="false" native="false" synchronized="false"
  31368. static="false" final="false" visibility="public"
  31369. deprecated="not deprecated">
  31370. <doc>
  31371. <![CDATA[Return this node's name]]>
  31372. </doc>
  31373. </method>
  31374. <method name="getParent" return="org.apache.hadoop.net.Node"
  31375. abstract="false" native="false" synchronized="false"
  31376. static="false" final="false" visibility="public"
  31377. deprecated="not deprecated">
  31378. <doc>
  31379. <![CDATA[Return this node's parent]]>
  31380. </doc>
  31381. </method>
  31382. <method name="setParent"
  31383. abstract="false" native="false" synchronized="false"
  31384. static="false" final="false" visibility="public"
  31385. deprecated="not deprecated">
  31386. <param name="parent" type="org.apache.hadoop.net.Node"/>
  31387. <doc>
  31388. <![CDATA[Set this node's parent]]>
  31389. </doc>
  31390. </method>
  31391. <method name="getLevel" return="int"
  31392. abstract="false" native="false" synchronized="false"
  31393. static="false" final="false" visibility="public"
  31394. deprecated="not deprecated">
  31395. <doc>
  31396. <![CDATA[Return this node's level in the tree.
  31397. E.g. the root of a tree returns 0 and its children return 1]]>
  31398. </doc>
  31399. </method>
  31400. <method name="setLevel"
  31401. abstract="false" native="false" synchronized="false"
  31402. static="false" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. <param name="i" type="int"/>
  31405. <doc>
  31406. <![CDATA[Set this node's level in the tree.]]>
  31407. </doc>
  31408. </method>
  31409. <doc>
  31410. <![CDATA[The interface defines a node in a network topology.
  31411. A node may be a leave representing a data node or an inner
  31412. node representing a datacenter or rack.
  31413. Each data has a name and its location in the network is
  31414. decided by a string with syntax similar to a file name.
  31415. For example, a data node's name is hostname:port# and if it's located at
  31416. rack "orange" in datacenter "dog", the string representation of its
  31417. network location is /dog/orange]]>
  31418. </doc>
  31419. </interface>
  31420. <!-- end interface org.apache.hadoop.net.Node -->
  31421. <!-- start class org.apache.hadoop.net.NodeBase -->
  31422. <class name="NodeBase" extends="java.lang.Object"
  31423. abstract="false"
  31424. static="false" final="false" visibility="public"
  31425. deprecated="not deprecated">
  31426. <implements name="org.apache.hadoop.net.Node"/>
  31427. <constructor name="NodeBase"
  31428. static="false" final="false" visibility="public"
  31429. deprecated="not deprecated">
  31430. <doc>
  31431. <![CDATA[Default constructor]]>
  31432. </doc>
  31433. </constructor>
  31434. <constructor name="NodeBase" type="java.lang.String"
  31435. static="false" final="false" visibility="public"
  31436. deprecated="not deprecated">
  31437. <doc>
  31438. <![CDATA[Construct a node from its path
  31439. @param path
  31440. a concatenation of this node's location, the path seperator, and its name]]>
  31441. </doc>
  31442. </constructor>
  31443. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  31444. static="false" final="false" visibility="public"
  31445. deprecated="not deprecated">
  31446. <doc>
  31447. <![CDATA[Construct a node from its name and its location
  31448. @param name this node's name
  31449. @param location this node's location]]>
  31450. </doc>
  31451. </constructor>
  31452. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  31453. static="false" final="false" visibility="public"
  31454. deprecated="not deprecated">
  31455. <doc>
  31456. <![CDATA[Construct a node from its name and its location
  31457. @param name this node's name
  31458. @param location this node's location
  31459. @param parent this node's parent node
  31460. @param level this node's level in the tree]]>
  31461. </doc>
  31462. </constructor>
  31463. <method name="getName" return="java.lang.String"
  31464. abstract="false" native="false" synchronized="false"
  31465. static="false" final="false" visibility="public"
  31466. deprecated="not deprecated">
  31467. <doc>
  31468. <![CDATA[Return this node's name]]>
  31469. </doc>
  31470. </method>
  31471. <method name="getNetworkLocation" return="java.lang.String"
  31472. abstract="false" native="false" synchronized="false"
  31473. static="false" final="false" visibility="public"
  31474. deprecated="not deprecated">
  31475. <doc>
  31476. <![CDATA[Return this node's network location]]>
  31477. </doc>
  31478. </method>
  31479. <method name="setNetworkLocation"
  31480. abstract="false" native="false" synchronized="false"
  31481. static="false" final="false" visibility="public"
  31482. deprecated="not deprecated">
  31483. <param name="location" type="java.lang.String"/>
  31484. <doc>
  31485. <![CDATA[Set this node's network location]]>
  31486. </doc>
  31487. </method>
  31488. <method name="getPath" return="java.lang.String"
  31489. abstract="false" native="false" synchronized="false"
  31490. static="true" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <param name="node" type="org.apache.hadoop.net.Node"/>
  31493. <doc>
  31494. <![CDATA[Return this node's path]]>
  31495. </doc>
  31496. </method>
  31497. <method name="toString" return="java.lang.String"
  31498. abstract="false" native="false" synchronized="false"
  31499. static="false" final="false" visibility="public"
  31500. deprecated="not deprecated">
  31501. <doc>
  31502. <![CDATA[Return this node's string representation]]>
  31503. </doc>
  31504. </method>
  31505. <method name="normalize" return="java.lang.String"
  31506. abstract="false" native="false" synchronized="false"
  31507. static="true" final="false" visibility="public"
  31508. deprecated="not deprecated">
  31509. <param name="path" type="java.lang.String"/>
  31510. <doc>
  31511. <![CDATA[Normalize a path]]>
  31512. </doc>
  31513. </method>
  31514. <method name="getParent" return="org.apache.hadoop.net.Node"
  31515. abstract="false" native="false" synchronized="false"
  31516. static="false" final="false" visibility="public"
  31517. deprecated="not deprecated">
  31518. <doc>
  31519. <![CDATA[Return this node's parent]]>
  31520. </doc>
  31521. </method>
  31522. <method name="setParent"
  31523. abstract="false" native="false" synchronized="false"
  31524. static="false" final="false" visibility="public"
  31525. deprecated="not deprecated">
  31526. <param name="parent" type="org.apache.hadoop.net.Node"/>
  31527. <doc>
  31528. <![CDATA[Set this node's parent]]>
  31529. </doc>
  31530. </method>
  31531. <method name="getLevel" return="int"
  31532. abstract="false" native="false" synchronized="false"
  31533. static="false" final="false" visibility="public"
  31534. deprecated="not deprecated">
  31535. <doc>
  31536. <![CDATA[Return this node's level in the tree.
  31537. E.g. the root of a tree returns 0 and its children return 1]]>
  31538. </doc>
  31539. </method>
  31540. <method name="setLevel"
  31541. abstract="false" native="false" synchronized="false"
  31542. static="false" final="false" visibility="public"
  31543. deprecated="not deprecated">
  31544. <param name="level" type="int"/>
  31545. <doc>
  31546. <![CDATA[Set this node's level in the tree]]>
  31547. </doc>
  31548. </method>
  31549. <field name="PATH_SEPARATOR" type="char"
  31550. transient="false" volatile="false"
  31551. static="true" final="true" visibility="public"
  31552. deprecated="not deprecated">
  31553. </field>
  31554. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  31555. transient="false" volatile="false"
  31556. static="true" final="false" visibility="public"
  31557. deprecated="not deprecated">
  31558. </field>
  31559. <field name="ROOT" type="java.lang.String"
  31560. transient="false" volatile="false"
  31561. static="true" final="true" visibility="public"
  31562. deprecated="not deprecated">
  31563. </field>
  31564. <field name="name" type="java.lang.String"
  31565. transient="false" volatile="false"
  31566. static="false" final="false" visibility="protected"
  31567. deprecated="not deprecated">
  31568. </field>
  31569. <field name="location" type="java.lang.String"
  31570. transient="false" volatile="false"
  31571. static="false" final="false" visibility="protected"
  31572. deprecated="not deprecated">
  31573. </field>
  31574. <field name="level" type="int"
  31575. transient="false" volatile="false"
  31576. static="false" final="false" visibility="protected"
  31577. deprecated="not deprecated">
  31578. </field>
  31579. <field name="parent" type="org.apache.hadoop.net.Node"
  31580. transient="false" volatile="false"
  31581. static="false" final="false" visibility="protected"
  31582. deprecated="not deprecated">
  31583. </field>
  31584. <doc>
  31585. <![CDATA[A base class that implements interface Node]]>
  31586. </doc>
  31587. </class>
  31588. <!-- end class org.apache.hadoop.net.NodeBase -->
  31589. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  31590. <class name="ScriptBasedMapping" extends="java.lang.Object"
  31591. abstract="false"
  31592. static="false" final="true" visibility="public"
  31593. deprecated="not deprecated">
  31594. <implements name="org.apache.hadoop.conf.Configurable"/>
  31595. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  31596. <constructor name="ScriptBasedMapping"
  31597. static="false" final="false" visibility="public"
  31598. deprecated="not deprecated">
  31599. </constructor>
  31600. <method name="setConf"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31605. </method>
  31606. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31607. abstract="false" native="false" synchronized="false"
  31608. static="false" final="false" visibility="public"
  31609. deprecated="not deprecated">
  31610. </method>
  31611. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  31612. abstract="false" native="false" synchronized="false"
  31613. static="false" final="false" visibility="public"
  31614. deprecated="not deprecated">
  31615. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  31616. </method>
  31617. <doc>
  31618. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  31619. script configured via topology.script.file.name .]]>
  31620. </doc>
  31621. </class>
  31622. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  31623. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  31624. <class name="SocketInputStream" extends="java.io.InputStream"
  31625. abstract="false"
  31626. static="false" final="false" visibility="public"
  31627. deprecated="not deprecated">
  31628. <implements name="java.nio.channels.ReadableByteChannel"/>
  31629. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  31630. static="false" final="false" visibility="public"
  31631. deprecated="not deprecated">
  31632. <exception name="IOException" type="java.io.IOException"/>
  31633. <doc>
  31634. <![CDATA[Create a new input stream with the given timeout. If the timeout
  31635. is zero, it will be treated as infinite timeout. The socket's
  31636. channel will be configured to be non-blocking.
  31637. @param channel
  31638. Channel for reading, should also be a {@link SelectableChannel}.
  31639. The channel will be configured to be non-blocking.
  31640. @param timeout timeout in milliseconds. must not be negative.
  31641. @throws IOException]]>
  31642. </doc>
  31643. </constructor>
  31644. <constructor name="SocketInputStream" type="java.net.Socket, long"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <exception name="IOException" type="java.io.IOException"/>
  31648. <doc>
  31649. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  31650. Create a new input stream with the given timeout. If the timeout
  31651. is zero, it will be treated as infinite timeout. The socket's
  31652. channel will be configured to be non-blocking.
  31653. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31654. @param socket should have a channel associated with it.
  31655. @param timeout timeout timeout in milliseconds. must not be negative.
  31656. @throws IOException]]>
  31657. </doc>
  31658. </constructor>
  31659. <constructor name="SocketInputStream" type="java.net.Socket"
  31660. static="false" final="false" visibility="public"
  31661. deprecated="not deprecated">
  31662. <exception name="IOException" type="java.io.IOException"/>
  31663. <doc>
  31664. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  31665. :<br><br>
  31666. Create a new input stream with the given timeout. If the timeout
  31667. is zero, it will be treated as infinite timeout. The socket's
  31668. channel will be configured to be non-blocking.
  31669. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  31670. @param socket should have a channel associated with it.
  31671. @throws IOException]]>
  31672. </doc>
  31673. </constructor>
  31674. <method name="read" return="int"
  31675. abstract="false" native="false" synchronized="false"
  31676. static="false" final="false" visibility="public"
  31677. deprecated="not deprecated">
  31678. <exception name="IOException" type="java.io.IOException"/>
  31679. </method>
  31680. <method name="read" return="int"
  31681. abstract="false" native="false" synchronized="false"
  31682. static="false" final="false" visibility="public"
  31683. deprecated="not deprecated">
  31684. <param name="b" type="byte[]"/>
  31685. <param name="off" type="int"/>
  31686. <param name="len" type="int"/>
  31687. <exception name="IOException" type="java.io.IOException"/>
  31688. </method>
  31689. <method name="close"
  31690. abstract="false" native="false" synchronized="true"
  31691. static="false" final="false" visibility="public"
  31692. deprecated="not deprecated">
  31693. <exception name="IOException" type="java.io.IOException"/>
  31694. </method>
  31695. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  31696. abstract="false" native="false" synchronized="false"
  31697. static="false" final="false" visibility="public"
  31698. deprecated="not deprecated">
  31699. <doc>
  31700. <![CDATA[Returns underlying channel used by inputstream.
  31701. This is useful in certain cases like channel for
  31702. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  31703. </doc>
  31704. </method>
  31705. <method name="isOpen" return="boolean"
  31706. abstract="false" native="false" synchronized="false"
  31707. static="false" final="false" visibility="public"
  31708. deprecated="not deprecated">
  31709. </method>
  31710. <method name="read" return="int"
  31711. abstract="false" native="false" synchronized="false"
  31712. static="false" final="false" visibility="public"
  31713. deprecated="not deprecated">
  31714. <param name="dst" type="java.nio.ByteBuffer"/>
  31715. <exception name="IOException" type="java.io.IOException"/>
  31716. </method>
  31717. <method name="waitForReadable"
  31718. abstract="false" native="false" synchronized="false"
  31719. static="false" final="false" visibility="public"
  31720. deprecated="not deprecated">
  31721. <exception name="IOException" type="java.io.IOException"/>
  31722. <doc>
  31723. <![CDATA[waits for the underlying channel to be ready for reading.
  31724. The timeout specified for this stream applies to this wait.
  31725. @throws SocketTimeoutException
  31726. if select on the channel times out.
  31727. @throws IOException
  31728. if any other I/O error occurs.]]>
  31729. </doc>
  31730. </method>
  31731. <doc>
  31732. <![CDATA[This implements an input stream that can have a timeout while reading.
  31733. This sets non-blocking flag on the socket channel.
  31734. So after create this object, read() on
  31735. {@link Socket#getInputStream()} and write() on
  31736. {@link Socket#getOutputStream()} for the associated socket will throw
  31737. IllegalBlockingModeException.
  31738. Please use {@link SocketOutputStream} for writing.]]>
  31739. </doc>
  31740. </class>
  31741. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  31742. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  31743. <class name="SocketOutputStream" extends="java.io.OutputStream"
  31744. abstract="false"
  31745. static="false" final="false" visibility="public"
  31746. deprecated="not deprecated">
  31747. <implements name="java.nio.channels.WritableByteChannel"/>
  31748. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  31749. static="false" final="false" visibility="public"
  31750. deprecated="not deprecated">
  31751. <exception name="IOException" type="java.io.IOException"/>
  31752. <doc>
  31753. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  31754. is zero, it will be treated as infinite timeout. The socket's
  31755. channel will be configured to be non-blocking.
  31756. @param channel
  31757. Channel for writing, should also be a {@link SelectableChannel}.
  31758. The channel will be configured to be non-blocking.
  31759. @param timeout timeout in milliseconds. must not be negative.
  31760. @throws IOException]]>
  31761. </doc>
  31762. </constructor>
  31763. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  31764. static="false" final="false" visibility="public"
  31765. deprecated="not deprecated">
  31766. <exception name="IOException" type="java.io.IOException"/>
  31767. <doc>
  31768. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  31769. Create a new ouput stream with the given timeout. If the timeout
  31770. is zero, it will be treated as infinite timeout. The socket's
  31771. channel will be configured to be non-blocking.
  31772. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  31773. @param socket should have a channel associated with it.
  31774. @param timeout timeout timeout in milliseconds. must not be negative.
  31775. @throws IOException]]>
  31776. </doc>
  31777. </constructor>
  31778. <method name="write"
  31779. abstract="false" native="false" synchronized="false"
  31780. static="false" final="false" visibility="public"
  31781. deprecated="not deprecated">
  31782. <param name="b" type="int"/>
  31783. <exception name="IOException" type="java.io.IOException"/>
  31784. </method>
  31785. <method name="write"
  31786. abstract="false" native="false" synchronized="false"
  31787. static="false" final="false" visibility="public"
  31788. deprecated="not deprecated">
  31789. <param name="b" type="byte[]"/>
  31790. <param name="off" type="int"/>
  31791. <param name="len" type="int"/>
  31792. <exception name="IOException" type="java.io.IOException"/>
  31793. </method>
  31794. <method name="close"
  31795. abstract="false" native="false" synchronized="true"
  31796. static="false" final="false" visibility="public"
  31797. deprecated="not deprecated">
  31798. <exception name="IOException" type="java.io.IOException"/>
  31799. </method>
  31800. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  31801. abstract="false" native="false" synchronized="false"
  31802. static="false" final="false" visibility="public"
  31803. deprecated="not deprecated">
  31804. <doc>
  31805. <![CDATA[Returns underlying channel used by this stream.
  31806. This is useful in certain cases like channel for
  31807. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  31808. </doc>
  31809. </method>
  31810. <method name="isOpen" return="boolean"
  31811. abstract="false" native="false" synchronized="false"
  31812. static="false" final="false" visibility="public"
  31813. deprecated="not deprecated">
  31814. </method>
  31815. <method name="write" return="int"
  31816. abstract="false" native="false" synchronized="false"
  31817. static="false" final="false" visibility="public"
  31818. deprecated="not deprecated">
  31819. <param name="src" type="java.nio.ByteBuffer"/>
  31820. <exception name="IOException" type="java.io.IOException"/>
  31821. </method>
  31822. <method name="waitForWritable"
  31823. abstract="false" native="false" synchronized="false"
  31824. static="false" final="false" visibility="public"
  31825. deprecated="not deprecated">
  31826. <exception name="IOException" type="java.io.IOException"/>
  31827. <doc>
  31828. <![CDATA[waits for the underlying channel to be ready for writing.
  31829. The timeout specified for this stream applies to this wait.
  31830. @throws SocketTimeoutException
  31831. if select on the channel times out.
  31832. @throws IOException
  31833. if any other I/O error occurs.]]>
  31834. </doc>
  31835. </method>
  31836. <method name="transferToFully"
  31837. abstract="false" native="false" synchronized="false"
  31838. static="false" final="false" visibility="public"
  31839. deprecated="not deprecated">
  31840. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  31841. <param name="position" type="long"/>
  31842. <param name="count" type="int"/>
  31843. <exception name="IOException" type="java.io.IOException"/>
  31844. <doc>
  31845. <![CDATA[Transfers data from FileChannel using
  31846. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  31847. Similar to readFully(), this waits till requested amount of
  31848. data is transfered.
  31849. @param fileCh FileChannel to transfer data from.
  31850. @param position position within the channel where the transfer begins
  31851. @param count number of bytes to transfer.
  31852. @throws EOFException
  31853. If end of input file is reached before requested number of
  31854. bytes are transfered.
  31855. @throws SocketTimeoutException
  31856. If this channel blocks transfer longer than timeout for
  31857. this stream.
  31858. @throws IOException Includes any exception thrown by
  31859. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  31860. </doc>
  31861. </method>
  31862. <doc>
  31863. <![CDATA[This implements an output stream that can have a timeout while writing.
  31864. This sets non-blocking flag on the socket channel.
  31865. So after creating this object , read() on
  31866. {@link Socket#getInputStream()} and write() on
  31867. {@link Socket#getOutputStream()} on the associated socket will throw
  31868. llegalBlockingModeException.
  31869. Please use {@link SocketInputStream} for reading.]]>
  31870. </doc>
  31871. </class>
  31872. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  31873. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  31874. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  31875. abstract="false"
  31876. static="false" final="false" visibility="public"
  31877. deprecated="not deprecated">
  31878. <implements name="org.apache.hadoop.conf.Configurable"/>
  31879. <constructor name="SocksSocketFactory"
  31880. static="false" final="false" visibility="public"
  31881. deprecated="not deprecated">
  31882. <doc>
  31883. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31884. </doc>
  31885. </constructor>
  31886. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  31887. static="false" final="false" visibility="public"
  31888. deprecated="not deprecated">
  31889. <doc>
  31890. <![CDATA[Constructor with a supplied Proxy
  31891. @param proxy the proxy to use to create sockets]]>
  31892. </doc>
  31893. </constructor>
  31894. <method name="createSocket" return="java.net.Socket"
  31895. abstract="false" native="false" synchronized="false"
  31896. static="false" final="false" visibility="public"
  31897. deprecated="not deprecated">
  31898. <exception name="IOException" type="java.io.IOException"/>
  31899. </method>
  31900. <method name="createSocket" return="java.net.Socket"
  31901. abstract="false" native="false" synchronized="false"
  31902. static="false" final="false" visibility="public"
  31903. deprecated="not deprecated">
  31904. <param name="addr" type="java.net.InetAddress"/>
  31905. <param name="port" type="int"/>
  31906. <exception name="IOException" type="java.io.IOException"/>
  31907. </method>
  31908. <method name="createSocket" return="java.net.Socket"
  31909. abstract="false" native="false" synchronized="false"
  31910. static="false" final="false" visibility="public"
  31911. deprecated="not deprecated">
  31912. <param name="addr" type="java.net.InetAddress"/>
  31913. <param name="port" type="int"/>
  31914. <param name="localHostAddr" type="java.net.InetAddress"/>
  31915. <param name="localPort" type="int"/>
  31916. <exception name="IOException" type="java.io.IOException"/>
  31917. </method>
  31918. <method name="createSocket" return="java.net.Socket"
  31919. abstract="false" native="false" synchronized="false"
  31920. static="false" final="false" visibility="public"
  31921. deprecated="not deprecated">
  31922. <param name="host" type="java.lang.String"/>
  31923. <param name="port" type="int"/>
  31924. <exception name="IOException" type="java.io.IOException"/>
  31925. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31926. </method>
  31927. <method name="createSocket" return="java.net.Socket"
  31928. abstract="false" native="false" synchronized="false"
  31929. static="false" final="false" visibility="public"
  31930. deprecated="not deprecated">
  31931. <param name="host" type="java.lang.String"/>
  31932. <param name="port" type="int"/>
  31933. <param name="localHostAddr" type="java.net.InetAddress"/>
  31934. <param name="localPort" type="int"/>
  31935. <exception name="IOException" type="java.io.IOException"/>
  31936. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  31937. </method>
  31938. <method name="hashCode" return="int"
  31939. abstract="false" native="false" synchronized="false"
  31940. static="false" final="false" visibility="public"
  31941. deprecated="not deprecated">
  31942. </method>
  31943. <method name="equals" return="boolean"
  31944. abstract="false" native="false" synchronized="false"
  31945. static="false" final="false" visibility="public"
  31946. deprecated="not deprecated">
  31947. <param name="obj" type="java.lang.Object"/>
  31948. </method>
  31949. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31950. abstract="false" native="false" synchronized="false"
  31951. static="false" final="false" visibility="public"
  31952. deprecated="not deprecated">
  31953. </method>
  31954. <method name="setConf"
  31955. abstract="false" native="false" synchronized="false"
  31956. static="false" final="false" visibility="public"
  31957. deprecated="not deprecated">
  31958. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31959. </method>
  31960. <doc>
  31961. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  31962. </doc>
  31963. </class>
  31964. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  31965. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  31966. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  31967. abstract="false"
  31968. static="false" final="false" visibility="public"
  31969. deprecated="not deprecated">
  31970. <constructor name="StandardSocketFactory"
  31971. static="false" final="false" visibility="public"
  31972. deprecated="not deprecated">
  31973. <doc>
  31974. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  31975. </doc>
  31976. </constructor>
  31977. <method name="createSocket" return="java.net.Socket"
  31978. abstract="false" native="false" synchronized="false"
  31979. static="false" final="false" visibility="public"
  31980. deprecated="not deprecated">
  31981. <exception name="IOException" type="java.io.IOException"/>
  31982. </method>
  31983. <method name="createSocket" return="java.net.Socket"
  31984. abstract="false" native="false" synchronized="false"
  31985. static="false" final="false" visibility="public"
  31986. deprecated="not deprecated">
  31987. <param name="addr" type="java.net.InetAddress"/>
  31988. <param name="port" type="int"/>
  31989. <exception name="IOException" type="java.io.IOException"/>
  31990. </method>
  31991. <method name="createSocket" return="java.net.Socket"
  31992. abstract="false" native="false" synchronized="false"
  31993. static="false" final="false" visibility="public"
  31994. deprecated="not deprecated">
  31995. <param name="addr" type="java.net.InetAddress"/>
  31996. <param name="port" type="int"/>
  31997. <param name="localHostAddr" type="java.net.InetAddress"/>
  31998. <param name="localPort" type="int"/>
  31999. <exception name="IOException" type="java.io.IOException"/>
  32000. </method>
  32001. <method name="createSocket" return="java.net.Socket"
  32002. abstract="false" native="false" synchronized="false"
  32003. static="false" final="false" visibility="public"
  32004. deprecated="not deprecated">
  32005. <param name="host" type="java.lang.String"/>
  32006. <param name="port" type="int"/>
  32007. <exception name="IOException" type="java.io.IOException"/>
  32008. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  32009. </method>
  32010. <method name="createSocket" return="java.net.Socket"
  32011. abstract="false" native="false" synchronized="false"
  32012. static="false" final="false" visibility="public"
  32013. deprecated="not deprecated">
  32014. <param name="host" type="java.lang.String"/>
  32015. <param name="port" type="int"/>
  32016. <param name="localHostAddr" type="java.net.InetAddress"/>
  32017. <param name="localPort" type="int"/>
  32018. <exception name="IOException" type="java.io.IOException"/>
  32019. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  32020. </method>
  32021. <method name="equals" return="boolean"
  32022. abstract="false" native="false" synchronized="false"
  32023. static="false" final="false" visibility="public"
  32024. deprecated="not deprecated">
  32025. <param name="obj" type="java.lang.Object"/>
  32026. </method>
  32027. <method name="hashCode" return="int"
  32028. abstract="false" native="false" synchronized="false"
  32029. static="false" final="false" visibility="public"
  32030. deprecated="not deprecated">
  32031. </method>
  32032. <doc>
  32033. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  32034. </doc>
  32035. </class>
  32036. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  32037. </package>
  32038. <package name="org.apache.hadoop.record">
  32039. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  32040. <class name="BinaryRecordInput" extends="java.lang.Object"
  32041. abstract="false"
  32042. static="false" final="false" visibility="public"
  32043. deprecated="not deprecated">
  32044. <implements name="org.apache.hadoop.record.RecordInput"/>
  32045. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  32046. static="false" final="false" visibility="public"
  32047. deprecated="not deprecated">
  32048. <doc>
  32049. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  32050. </doc>
  32051. </constructor>
  32052. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  32053. static="false" final="false" visibility="public"
  32054. deprecated="not deprecated">
  32055. <doc>
  32056. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  32057. </doc>
  32058. </constructor>
  32059. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  32060. abstract="false" native="false" synchronized="false"
  32061. static="true" final="false" visibility="public"
  32062. deprecated="not deprecated">
  32063. <param name="inp" type="java.io.DataInput"/>
  32064. <doc>
  32065. <![CDATA[Get a thread-local record input for the supplied DataInput.
  32066. @param inp data input stream
  32067. @return binary record input corresponding to the supplied DataInput.]]>
  32068. </doc>
  32069. </method>
  32070. <method name="readByte" return="byte"
  32071. abstract="false" native="false" synchronized="false"
  32072. static="false" final="false" visibility="public"
  32073. deprecated="not deprecated">
  32074. <param name="tag" type="java.lang.String"/>
  32075. <exception name="IOException" type="java.io.IOException"/>
  32076. </method>
  32077. <method name="readBool" return="boolean"
  32078. abstract="false" native="false" synchronized="false"
  32079. static="false" final="false" visibility="public"
  32080. deprecated="not deprecated">
  32081. <param name="tag" type="java.lang.String"/>
  32082. <exception name="IOException" type="java.io.IOException"/>
  32083. </method>
  32084. <method name="readInt" return="int"
  32085. abstract="false" native="false" synchronized="false"
  32086. static="false" final="false" visibility="public"
  32087. deprecated="not deprecated">
  32088. <param name="tag" type="java.lang.String"/>
  32089. <exception name="IOException" type="java.io.IOException"/>
  32090. </method>
  32091. <method name="readLong" return="long"
  32092. abstract="false" native="false" synchronized="false"
  32093. static="false" final="false" visibility="public"
  32094. deprecated="not deprecated">
  32095. <param name="tag" type="java.lang.String"/>
  32096. <exception name="IOException" type="java.io.IOException"/>
  32097. </method>
  32098. <method name="readFloat" return="float"
  32099. abstract="false" native="false" synchronized="false"
  32100. static="false" final="false" visibility="public"
  32101. deprecated="not deprecated">
  32102. <param name="tag" type="java.lang.String"/>
  32103. <exception name="IOException" type="java.io.IOException"/>
  32104. </method>
  32105. <method name="readDouble" return="double"
  32106. abstract="false" native="false" synchronized="false"
  32107. static="false" final="false" visibility="public"
  32108. deprecated="not deprecated">
  32109. <param name="tag" type="java.lang.String"/>
  32110. <exception name="IOException" type="java.io.IOException"/>
  32111. </method>
  32112. <method name="readString" return="java.lang.String"
  32113. abstract="false" native="false" synchronized="false"
  32114. static="false" final="false" visibility="public"
  32115. deprecated="not deprecated">
  32116. <param name="tag" type="java.lang.String"/>
  32117. <exception name="IOException" type="java.io.IOException"/>
  32118. </method>
  32119. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32120. abstract="false" native="false" synchronized="false"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. <param name="tag" type="java.lang.String"/>
  32124. <exception name="IOException" type="java.io.IOException"/>
  32125. </method>
  32126. <method name="startRecord"
  32127. abstract="false" native="false" synchronized="false"
  32128. static="false" final="false" visibility="public"
  32129. deprecated="not deprecated">
  32130. <param name="tag" type="java.lang.String"/>
  32131. <exception name="IOException" type="java.io.IOException"/>
  32132. </method>
  32133. <method name="endRecord"
  32134. abstract="false" native="false" synchronized="false"
  32135. static="false" final="false" visibility="public"
  32136. deprecated="not deprecated">
  32137. <param name="tag" type="java.lang.String"/>
  32138. <exception name="IOException" type="java.io.IOException"/>
  32139. </method>
  32140. <method name="startVector" return="org.apache.hadoop.record.Index"
  32141. abstract="false" native="false" synchronized="false"
  32142. static="false" final="false" visibility="public"
  32143. deprecated="not deprecated">
  32144. <param name="tag" type="java.lang.String"/>
  32145. <exception name="IOException" type="java.io.IOException"/>
  32146. </method>
  32147. <method name="endVector"
  32148. abstract="false" native="false" synchronized="false"
  32149. static="false" final="false" visibility="public"
  32150. deprecated="not deprecated">
  32151. <param name="tag" type="java.lang.String"/>
  32152. <exception name="IOException" type="java.io.IOException"/>
  32153. </method>
  32154. <method name="startMap" return="org.apache.hadoop.record.Index"
  32155. abstract="false" native="false" synchronized="false"
  32156. static="false" final="false" visibility="public"
  32157. deprecated="not deprecated">
  32158. <param name="tag" type="java.lang.String"/>
  32159. <exception name="IOException" type="java.io.IOException"/>
  32160. </method>
  32161. <method name="endMap"
  32162. abstract="false" native="false" synchronized="false"
  32163. static="false" final="false" visibility="public"
  32164. deprecated="not deprecated">
  32165. <param name="tag" type="java.lang.String"/>
  32166. <exception name="IOException" type="java.io.IOException"/>
  32167. </method>
  32168. </class>
  32169. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  32170. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  32171. <class name="BinaryRecordOutput" extends="java.lang.Object"
  32172. abstract="false"
  32173. static="false" final="false" visibility="public"
  32174. deprecated="not deprecated">
  32175. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32176. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  32177. static="false" final="false" visibility="public"
  32178. deprecated="not deprecated">
  32179. <doc>
  32180. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  32181. </doc>
  32182. </constructor>
  32183. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  32184. static="false" final="false" visibility="public"
  32185. deprecated="not deprecated">
  32186. <doc>
  32187. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  32188. </doc>
  32189. </constructor>
  32190. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  32191. abstract="false" native="false" synchronized="false"
  32192. static="true" final="false" visibility="public"
  32193. deprecated="not deprecated">
  32194. <param name="out" type="java.io.DataOutput"/>
  32195. <doc>
  32196. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  32197. @param out data output stream
  32198. @return binary record output corresponding to the supplied DataOutput.]]>
  32199. </doc>
  32200. </method>
  32201. <method name="writeByte"
  32202. abstract="false" native="false" synchronized="false"
  32203. static="false" final="false" visibility="public"
  32204. deprecated="not deprecated">
  32205. <param name="b" type="byte"/>
  32206. <param name="tag" type="java.lang.String"/>
  32207. <exception name="IOException" type="java.io.IOException"/>
  32208. </method>
  32209. <method name="writeBool"
  32210. abstract="false" native="false" synchronized="false"
  32211. static="false" final="false" visibility="public"
  32212. deprecated="not deprecated">
  32213. <param name="b" type="boolean"/>
  32214. <param name="tag" type="java.lang.String"/>
  32215. <exception name="IOException" type="java.io.IOException"/>
  32216. </method>
  32217. <method name="writeInt"
  32218. abstract="false" native="false" synchronized="false"
  32219. static="false" final="false" visibility="public"
  32220. deprecated="not deprecated">
  32221. <param name="i" type="int"/>
  32222. <param name="tag" type="java.lang.String"/>
  32223. <exception name="IOException" type="java.io.IOException"/>
  32224. </method>
  32225. <method name="writeLong"
  32226. abstract="false" native="false" synchronized="false"
  32227. static="false" final="false" visibility="public"
  32228. deprecated="not deprecated">
  32229. <param name="l" type="long"/>
  32230. <param name="tag" type="java.lang.String"/>
  32231. <exception name="IOException" type="java.io.IOException"/>
  32232. </method>
  32233. <method name="writeFloat"
  32234. abstract="false" native="false" synchronized="false"
  32235. static="false" final="false" visibility="public"
  32236. deprecated="not deprecated">
  32237. <param name="f" type="float"/>
  32238. <param name="tag" type="java.lang.String"/>
  32239. <exception name="IOException" type="java.io.IOException"/>
  32240. </method>
  32241. <method name="writeDouble"
  32242. abstract="false" native="false" synchronized="false"
  32243. static="false" final="false" visibility="public"
  32244. deprecated="not deprecated">
  32245. <param name="d" type="double"/>
  32246. <param name="tag" type="java.lang.String"/>
  32247. <exception name="IOException" type="java.io.IOException"/>
  32248. </method>
  32249. <method name="writeString"
  32250. abstract="false" native="false" synchronized="false"
  32251. static="false" final="false" visibility="public"
  32252. deprecated="not deprecated">
  32253. <param name="s" type="java.lang.String"/>
  32254. <param name="tag" type="java.lang.String"/>
  32255. <exception name="IOException" type="java.io.IOException"/>
  32256. </method>
  32257. <method name="writeBuffer"
  32258. abstract="false" native="false" synchronized="false"
  32259. static="false" final="false" visibility="public"
  32260. deprecated="not deprecated">
  32261. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32262. <param name="tag" type="java.lang.String"/>
  32263. <exception name="IOException" type="java.io.IOException"/>
  32264. </method>
  32265. <method name="startRecord"
  32266. abstract="false" native="false" synchronized="false"
  32267. static="false" final="false" visibility="public"
  32268. deprecated="not deprecated">
  32269. <param name="r" type="org.apache.hadoop.record.Record"/>
  32270. <param name="tag" type="java.lang.String"/>
  32271. <exception name="IOException" type="java.io.IOException"/>
  32272. </method>
  32273. <method name="endRecord"
  32274. abstract="false" native="false" synchronized="false"
  32275. static="false" final="false" visibility="public"
  32276. deprecated="not deprecated">
  32277. <param name="r" type="org.apache.hadoop.record.Record"/>
  32278. <param name="tag" type="java.lang.String"/>
  32279. <exception name="IOException" type="java.io.IOException"/>
  32280. </method>
  32281. <method name="startVector"
  32282. abstract="false" native="false" synchronized="false"
  32283. static="false" final="false" visibility="public"
  32284. deprecated="not deprecated">
  32285. <param name="v" type="java.util.ArrayList"/>
  32286. <param name="tag" type="java.lang.String"/>
  32287. <exception name="IOException" type="java.io.IOException"/>
  32288. </method>
  32289. <method name="endVector"
  32290. abstract="false" native="false" synchronized="false"
  32291. static="false" final="false" visibility="public"
  32292. deprecated="not deprecated">
  32293. <param name="v" type="java.util.ArrayList"/>
  32294. <param name="tag" type="java.lang.String"/>
  32295. <exception name="IOException" type="java.io.IOException"/>
  32296. </method>
  32297. <method name="startMap"
  32298. abstract="false" native="false" synchronized="false"
  32299. static="false" final="false" visibility="public"
  32300. deprecated="not deprecated">
  32301. <param name="v" type="java.util.TreeMap"/>
  32302. <param name="tag" type="java.lang.String"/>
  32303. <exception name="IOException" type="java.io.IOException"/>
  32304. </method>
  32305. <method name="endMap"
  32306. abstract="false" native="false" synchronized="false"
  32307. static="false" final="false" visibility="public"
  32308. deprecated="not deprecated">
  32309. <param name="v" type="java.util.TreeMap"/>
  32310. <param name="tag" type="java.lang.String"/>
  32311. <exception name="IOException" type="java.io.IOException"/>
  32312. </method>
  32313. </class>
  32314. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  32315. <!-- start class org.apache.hadoop.record.Buffer -->
  32316. <class name="Buffer" extends="java.lang.Object"
  32317. abstract="false"
  32318. static="false" final="false" visibility="public"
  32319. deprecated="not deprecated">
  32320. <implements name="java.lang.Comparable"/>
  32321. <implements name="java.lang.Cloneable"/>
  32322. <constructor name="Buffer"
  32323. static="false" final="false" visibility="public"
  32324. deprecated="not deprecated">
  32325. <doc>
  32326. <![CDATA[Create a zero-count sequence.]]>
  32327. </doc>
  32328. </constructor>
  32329. <constructor name="Buffer" type="byte[]"
  32330. static="false" final="false" visibility="public"
  32331. deprecated="not deprecated">
  32332. <doc>
  32333. <![CDATA[Create a Buffer using the byte array as the initial value.
  32334. @param bytes This array becomes the backing storage for the object.]]>
  32335. </doc>
  32336. </constructor>
  32337. <constructor name="Buffer" type="byte[], int, int"
  32338. static="false" final="false" visibility="public"
  32339. deprecated="not deprecated">
  32340. <doc>
  32341. <![CDATA[Create a Buffer using the byte range as the initial value.
  32342. @param bytes Copy of this array becomes the backing storage for the object.
  32343. @param offset offset into byte array
  32344. @param length length of data]]>
  32345. </doc>
  32346. </constructor>
  32347. <method name="set"
  32348. abstract="false" native="false" synchronized="false"
  32349. static="false" final="false" visibility="public"
  32350. deprecated="not deprecated">
  32351. <param name="bytes" type="byte[]"/>
  32352. <doc>
  32353. <![CDATA[Use the specified bytes array as underlying sequence.
  32354. @param bytes byte sequence]]>
  32355. </doc>
  32356. </method>
  32357. <method name="copy"
  32358. abstract="false" native="false" synchronized="false"
  32359. static="false" final="true" visibility="public"
  32360. deprecated="not deprecated">
  32361. <param name="bytes" type="byte[]"/>
  32362. <param name="offset" type="int"/>
  32363. <param name="length" type="int"/>
  32364. <doc>
  32365. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  32366. @param bytes byte array to be assigned
  32367. @param offset offset into byte array
  32368. @param length length of data]]>
  32369. </doc>
  32370. </method>
  32371. <method name="get" return="byte[]"
  32372. abstract="false" native="false" synchronized="false"
  32373. static="false" final="false" visibility="public"
  32374. deprecated="not deprecated">
  32375. <doc>
  32376. <![CDATA[Get the data from the Buffer.
  32377. @return The data is only valid between 0 and getCount() - 1.]]>
  32378. </doc>
  32379. </method>
  32380. <method name="getCount" return="int"
  32381. abstract="false" native="false" synchronized="false"
  32382. static="false" final="false" visibility="public"
  32383. deprecated="not deprecated">
  32384. <doc>
  32385. <![CDATA[Get the current count of the buffer.]]>
  32386. </doc>
  32387. </method>
  32388. <method name="getCapacity" return="int"
  32389. abstract="false" native="false" synchronized="false"
  32390. static="false" final="false" visibility="public"
  32391. deprecated="not deprecated">
  32392. <doc>
  32393. <![CDATA[Get the capacity, which is the maximum count that could handled without
  32394. resizing the backing storage.
  32395. @return The number of bytes]]>
  32396. </doc>
  32397. </method>
  32398. <method name="setCapacity"
  32399. abstract="false" native="false" synchronized="false"
  32400. static="false" final="false" visibility="public"
  32401. deprecated="not deprecated">
  32402. <param name="newCapacity" type="int"/>
  32403. <doc>
  32404. <![CDATA[Change the capacity of the backing storage.
  32405. The data is preserved if newCapacity >= getCount().
  32406. @param newCapacity The new capacity in bytes.]]>
  32407. </doc>
  32408. </method>
  32409. <method name="reset"
  32410. abstract="false" native="false" synchronized="false"
  32411. static="false" final="false" visibility="public"
  32412. deprecated="not deprecated">
  32413. <doc>
  32414. <![CDATA[Reset the buffer to 0 size]]>
  32415. </doc>
  32416. </method>
  32417. <method name="truncate"
  32418. abstract="false" native="false" synchronized="false"
  32419. static="false" final="false" visibility="public"
  32420. deprecated="not deprecated">
  32421. <doc>
  32422. <![CDATA[Change the capacity of the backing store to be the same as the current
  32423. count of buffer.]]>
  32424. </doc>
  32425. </method>
  32426. <method name="append"
  32427. abstract="false" native="false" synchronized="false"
  32428. static="false" final="false" visibility="public"
  32429. deprecated="not deprecated">
  32430. <param name="bytes" type="byte[]"/>
  32431. <param name="offset" type="int"/>
  32432. <param name="length" type="int"/>
  32433. <doc>
  32434. <![CDATA[Append specified bytes to the buffer.
  32435. @param bytes byte array to be appended
  32436. @param offset offset into byte array
  32437. @param length length of data]]>
  32438. </doc>
  32439. </method>
  32440. <method name="append"
  32441. abstract="false" native="false" synchronized="false"
  32442. static="false" final="false" visibility="public"
  32443. deprecated="not deprecated">
  32444. <param name="bytes" type="byte[]"/>
  32445. <doc>
  32446. <![CDATA[Append specified bytes to the buffer
  32447. @param bytes byte array to be appended]]>
  32448. </doc>
  32449. </method>
  32450. <method name="hashCode" return="int"
  32451. abstract="false" native="false" synchronized="false"
  32452. static="false" final="false" visibility="public"
  32453. deprecated="not deprecated">
  32454. </method>
  32455. <method name="compareTo" return="int"
  32456. abstract="false" native="false" synchronized="false"
  32457. static="false" final="false" visibility="public"
  32458. deprecated="not deprecated">
  32459. <param name="other" type="java.lang.Object"/>
  32460. <doc>
  32461. <![CDATA[Define the sort order of the Buffer.
  32462. @param other The other buffer
  32463. @return Positive if this is bigger than other, 0 if they are equal, and
  32464. negative if this is smaller than other.]]>
  32465. </doc>
  32466. </method>
  32467. <method name="equals" return="boolean"
  32468. abstract="false" native="false" synchronized="false"
  32469. static="false" final="false" visibility="public"
  32470. deprecated="not deprecated">
  32471. <param name="other" type="java.lang.Object"/>
  32472. </method>
  32473. <method name="toString" return="java.lang.String"
  32474. abstract="false" native="false" synchronized="false"
  32475. static="false" final="false" visibility="public"
  32476. deprecated="not deprecated">
  32477. </method>
  32478. <method name="toString" return="java.lang.String"
  32479. abstract="false" native="false" synchronized="false"
  32480. static="false" final="false" visibility="public"
  32481. deprecated="not deprecated">
  32482. <param name="charsetName" type="java.lang.String"/>
  32483. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  32484. <doc>
  32485. <![CDATA[Convert the byte buffer to a string an specific character encoding
  32486. @param charsetName Valid Java Character Set Name]]>
  32487. </doc>
  32488. </method>
  32489. <method name="clone" return="java.lang.Object"
  32490. abstract="false" native="false" synchronized="false"
  32491. static="false" final="false" visibility="public"
  32492. deprecated="not deprecated">
  32493. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  32494. </method>
  32495. <doc>
  32496. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  32497. It is resizable and distinguishes between the count of the seqeunce and
  32498. the current capacity.]]>
  32499. </doc>
  32500. </class>
  32501. <!-- end class org.apache.hadoop.record.Buffer -->
  32502. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  32503. <class name="CsvRecordInput" extends="java.lang.Object"
  32504. abstract="false"
  32505. static="false" final="false" visibility="public"
  32506. deprecated="not deprecated">
  32507. <implements name="org.apache.hadoop.record.RecordInput"/>
  32508. <constructor name="CsvRecordInput" type="java.io.InputStream"
  32509. static="false" final="false" visibility="public"
  32510. deprecated="not deprecated">
  32511. <doc>
  32512. <![CDATA[Creates a new instance of CsvRecordInput]]>
  32513. </doc>
  32514. </constructor>
  32515. <method name="readByte" return="byte"
  32516. abstract="false" native="false" synchronized="false"
  32517. static="false" final="false" visibility="public"
  32518. deprecated="not deprecated">
  32519. <param name="tag" type="java.lang.String"/>
  32520. <exception name="IOException" type="java.io.IOException"/>
  32521. </method>
  32522. <method name="readBool" return="boolean"
  32523. abstract="false" native="false" synchronized="false"
  32524. static="false" final="false" visibility="public"
  32525. deprecated="not deprecated">
  32526. <param name="tag" type="java.lang.String"/>
  32527. <exception name="IOException" type="java.io.IOException"/>
  32528. </method>
  32529. <method name="readInt" return="int"
  32530. abstract="false" native="false" synchronized="false"
  32531. static="false" final="false" visibility="public"
  32532. deprecated="not deprecated">
  32533. <param name="tag" type="java.lang.String"/>
  32534. <exception name="IOException" type="java.io.IOException"/>
  32535. </method>
  32536. <method name="readLong" return="long"
  32537. abstract="false" native="false" synchronized="false"
  32538. static="false" final="false" visibility="public"
  32539. deprecated="not deprecated">
  32540. <param name="tag" type="java.lang.String"/>
  32541. <exception name="IOException" type="java.io.IOException"/>
  32542. </method>
  32543. <method name="readFloat" return="float"
  32544. abstract="false" native="false" synchronized="false"
  32545. static="false" final="false" visibility="public"
  32546. deprecated="not deprecated">
  32547. <param name="tag" type="java.lang.String"/>
  32548. <exception name="IOException" type="java.io.IOException"/>
  32549. </method>
  32550. <method name="readDouble" return="double"
  32551. abstract="false" native="false" synchronized="false"
  32552. static="false" final="false" visibility="public"
  32553. deprecated="not deprecated">
  32554. <param name="tag" type="java.lang.String"/>
  32555. <exception name="IOException" type="java.io.IOException"/>
  32556. </method>
  32557. <method name="readString" return="java.lang.String"
  32558. abstract="false" native="false" synchronized="false"
  32559. static="false" final="false" visibility="public"
  32560. deprecated="not deprecated">
  32561. <param name="tag" type="java.lang.String"/>
  32562. <exception name="IOException" type="java.io.IOException"/>
  32563. </method>
  32564. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32565. abstract="false" native="false" synchronized="false"
  32566. static="false" final="false" visibility="public"
  32567. deprecated="not deprecated">
  32568. <param name="tag" type="java.lang.String"/>
  32569. <exception name="IOException" type="java.io.IOException"/>
  32570. </method>
  32571. <method name="startRecord"
  32572. abstract="false" native="false" synchronized="false"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. <param name="tag" type="java.lang.String"/>
  32576. <exception name="IOException" type="java.io.IOException"/>
  32577. </method>
  32578. <method name="endRecord"
  32579. abstract="false" native="false" synchronized="false"
  32580. static="false" final="false" visibility="public"
  32581. deprecated="not deprecated">
  32582. <param name="tag" type="java.lang.String"/>
  32583. <exception name="IOException" type="java.io.IOException"/>
  32584. </method>
  32585. <method name="startVector" return="org.apache.hadoop.record.Index"
  32586. abstract="false" native="false" synchronized="false"
  32587. static="false" final="false" visibility="public"
  32588. deprecated="not deprecated">
  32589. <param name="tag" type="java.lang.String"/>
  32590. <exception name="IOException" type="java.io.IOException"/>
  32591. </method>
  32592. <method name="endVector"
  32593. abstract="false" native="false" synchronized="false"
  32594. static="false" final="false" visibility="public"
  32595. deprecated="not deprecated">
  32596. <param name="tag" type="java.lang.String"/>
  32597. <exception name="IOException" type="java.io.IOException"/>
  32598. </method>
  32599. <method name="startMap" return="org.apache.hadoop.record.Index"
  32600. abstract="false" native="false" synchronized="false"
  32601. static="false" final="false" visibility="public"
  32602. deprecated="not deprecated">
  32603. <param name="tag" type="java.lang.String"/>
  32604. <exception name="IOException" type="java.io.IOException"/>
  32605. </method>
  32606. <method name="endMap"
  32607. abstract="false" native="false" synchronized="false"
  32608. static="false" final="false" visibility="public"
  32609. deprecated="not deprecated">
  32610. <param name="tag" type="java.lang.String"/>
  32611. <exception name="IOException" type="java.io.IOException"/>
  32612. </method>
  32613. </class>
  32614. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  32615. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  32616. <class name="CsvRecordOutput" extends="java.lang.Object"
  32617. abstract="false"
  32618. static="false" final="false" visibility="public"
  32619. deprecated="not deprecated">
  32620. <implements name="org.apache.hadoop.record.RecordOutput"/>
  32621. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  32622. static="false" final="false" visibility="public"
  32623. deprecated="not deprecated">
  32624. <doc>
  32625. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  32626. </doc>
  32627. </constructor>
  32628. <method name="writeByte"
  32629. abstract="false" native="false" synchronized="false"
  32630. static="false" final="false" visibility="public"
  32631. deprecated="not deprecated">
  32632. <param name="b" type="byte"/>
  32633. <param name="tag" type="java.lang.String"/>
  32634. <exception name="IOException" type="java.io.IOException"/>
  32635. </method>
  32636. <method name="writeBool"
  32637. abstract="false" native="false" synchronized="false"
  32638. static="false" final="false" visibility="public"
  32639. deprecated="not deprecated">
  32640. <param name="b" type="boolean"/>
  32641. <param name="tag" type="java.lang.String"/>
  32642. <exception name="IOException" type="java.io.IOException"/>
  32643. </method>
  32644. <method name="writeInt"
  32645. abstract="false" native="false" synchronized="false"
  32646. static="false" final="false" visibility="public"
  32647. deprecated="not deprecated">
  32648. <param name="i" type="int"/>
  32649. <param name="tag" type="java.lang.String"/>
  32650. <exception name="IOException" type="java.io.IOException"/>
  32651. </method>
  32652. <method name="writeLong"
  32653. abstract="false" native="false" synchronized="false"
  32654. static="false" final="false" visibility="public"
  32655. deprecated="not deprecated">
  32656. <param name="l" type="long"/>
  32657. <param name="tag" type="java.lang.String"/>
  32658. <exception name="IOException" type="java.io.IOException"/>
  32659. </method>
  32660. <method name="writeFloat"
  32661. abstract="false" native="false" synchronized="false"
  32662. static="false" final="false" visibility="public"
  32663. deprecated="not deprecated">
  32664. <param name="f" type="float"/>
  32665. <param name="tag" type="java.lang.String"/>
  32666. <exception name="IOException" type="java.io.IOException"/>
  32667. </method>
  32668. <method name="writeDouble"
  32669. abstract="false" native="false" synchronized="false"
  32670. static="false" final="false" visibility="public"
  32671. deprecated="not deprecated">
  32672. <param name="d" type="double"/>
  32673. <param name="tag" type="java.lang.String"/>
  32674. <exception name="IOException" type="java.io.IOException"/>
  32675. </method>
  32676. <method name="writeString"
  32677. abstract="false" native="false" synchronized="false"
  32678. static="false" final="false" visibility="public"
  32679. deprecated="not deprecated">
  32680. <param name="s" type="java.lang.String"/>
  32681. <param name="tag" type="java.lang.String"/>
  32682. <exception name="IOException" type="java.io.IOException"/>
  32683. </method>
  32684. <method name="writeBuffer"
  32685. abstract="false" native="false" synchronized="false"
  32686. static="false" final="false" visibility="public"
  32687. deprecated="not deprecated">
  32688. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  32689. <param name="tag" type="java.lang.String"/>
  32690. <exception name="IOException" type="java.io.IOException"/>
  32691. </method>
  32692. <method name="startRecord"
  32693. abstract="false" native="false" synchronized="false"
  32694. static="false" final="false" visibility="public"
  32695. deprecated="not deprecated">
  32696. <param name="r" type="org.apache.hadoop.record.Record"/>
  32697. <param name="tag" type="java.lang.String"/>
  32698. <exception name="IOException" type="java.io.IOException"/>
  32699. </method>
  32700. <method name="endRecord"
  32701. abstract="false" native="false" synchronized="false"
  32702. static="false" final="false" visibility="public"
  32703. deprecated="not deprecated">
  32704. <param name="r" type="org.apache.hadoop.record.Record"/>
  32705. <param name="tag" type="java.lang.String"/>
  32706. <exception name="IOException" type="java.io.IOException"/>
  32707. </method>
  32708. <method name="startVector"
  32709. abstract="false" native="false" synchronized="false"
  32710. static="false" final="false" visibility="public"
  32711. deprecated="not deprecated">
  32712. <param name="v" type="java.util.ArrayList"/>
  32713. <param name="tag" type="java.lang.String"/>
  32714. <exception name="IOException" type="java.io.IOException"/>
  32715. </method>
  32716. <method name="endVector"
  32717. abstract="false" native="false" synchronized="false"
  32718. static="false" final="false" visibility="public"
  32719. deprecated="not deprecated">
  32720. <param name="v" type="java.util.ArrayList"/>
  32721. <param name="tag" type="java.lang.String"/>
  32722. <exception name="IOException" type="java.io.IOException"/>
  32723. </method>
  32724. <method name="startMap"
  32725. abstract="false" native="false" synchronized="false"
  32726. static="false" final="false" visibility="public"
  32727. deprecated="not deprecated">
  32728. <param name="v" type="java.util.TreeMap"/>
  32729. <param name="tag" type="java.lang.String"/>
  32730. <exception name="IOException" type="java.io.IOException"/>
  32731. </method>
  32732. <method name="endMap"
  32733. abstract="false" native="false" synchronized="false"
  32734. static="false" final="false" visibility="public"
  32735. deprecated="not deprecated">
  32736. <param name="v" type="java.util.TreeMap"/>
  32737. <param name="tag" type="java.lang.String"/>
  32738. <exception name="IOException" type="java.io.IOException"/>
  32739. </method>
  32740. </class>
  32741. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  32742. <!-- start interface org.apache.hadoop.record.Index -->
  32743. <interface name="Index" abstract="true"
  32744. static="false" final="false" visibility="public"
  32745. deprecated="not deprecated">
  32746. <method name="done" return="boolean"
  32747. abstract="false" native="false" synchronized="false"
  32748. static="false" final="false" visibility="public"
  32749. deprecated="not deprecated">
  32750. </method>
  32751. <method name="incr"
  32752. abstract="false" native="false" synchronized="false"
  32753. static="false" final="false" visibility="public"
  32754. deprecated="not deprecated">
  32755. </method>
  32756. <doc>
  32757. <![CDATA[Interface that acts as an iterator for deserializing maps.
  32758. The deserializer returns an instance that the record uses to
  32759. read vectors and maps. An example of usage is as follows:
  32760. <code>
  32761. Index idx = startVector(...);
  32762. while (!idx.done()) {
  32763. .... // read element of a vector
  32764. idx.incr();
  32765. }
  32766. </code>]]>
  32767. </doc>
  32768. </interface>
  32769. <!-- end interface org.apache.hadoop.record.Index -->
  32770. <!-- start class org.apache.hadoop.record.Record -->
  32771. <class name="Record" extends="java.lang.Object"
  32772. abstract="true"
  32773. static="false" final="false" visibility="public"
  32774. deprecated="not deprecated">
  32775. <implements name="org.apache.hadoop.io.WritableComparable"/>
  32776. <implements name="java.lang.Cloneable"/>
  32777. <constructor name="Record"
  32778. static="false" final="false" visibility="public"
  32779. deprecated="not deprecated">
  32780. </constructor>
  32781. <method name="serialize"
  32782. abstract="true" native="false" synchronized="false"
  32783. static="false" final="false" visibility="public"
  32784. deprecated="not deprecated">
  32785. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32786. <param name="tag" type="java.lang.String"/>
  32787. <exception name="IOException" type="java.io.IOException"/>
  32788. <doc>
  32789. <![CDATA[Serialize a record with tag (ususally field name)
  32790. @param rout Record output destination
  32791. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  32792. </doc>
  32793. </method>
  32794. <method name="deserialize"
  32795. abstract="true" native="false" synchronized="false"
  32796. static="false" final="false" visibility="public"
  32797. deprecated="not deprecated">
  32798. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32799. <param name="tag" type="java.lang.String"/>
  32800. <exception name="IOException" type="java.io.IOException"/>
  32801. <doc>
  32802. <![CDATA[Deserialize a record with a tag (usually field name)
  32803. @param rin Record input source
  32804. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  32805. </doc>
  32806. </method>
  32807. <method name="compareTo" return="int"
  32808. abstract="true" native="false" synchronized="false"
  32809. static="false" final="false" visibility="public"
  32810. deprecated="not deprecated">
  32811. <param name="peer" type="java.lang.Object"/>
  32812. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  32813. </method>
  32814. <method name="serialize"
  32815. abstract="false" native="false" synchronized="false"
  32816. static="false" final="false" visibility="public"
  32817. deprecated="not deprecated">
  32818. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  32819. <exception name="IOException" type="java.io.IOException"/>
  32820. <doc>
  32821. <![CDATA[Serialize a record without a tag
  32822. @param rout Record output destination]]>
  32823. </doc>
  32824. </method>
  32825. <method name="deserialize"
  32826. abstract="false" native="false" synchronized="false"
  32827. static="false" final="false" visibility="public"
  32828. deprecated="not deprecated">
  32829. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  32830. <exception name="IOException" type="java.io.IOException"/>
  32831. <doc>
  32832. <![CDATA[Deserialize a record without a tag
  32833. @param rin Record input source]]>
  32834. </doc>
  32835. </method>
  32836. <method name="write"
  32837. abstract="false" native="false" synchronized="false"
  32838. static="false" final="false" visibility="public"
  32839. deprecated="not deprecated">
  32840. <param name="out" type="java.io.DataOutput"/>
  32841. <exception name="IOException" type="java.io.IOException"/>
  32842. </method>
  32843. <method name="readFields"
  32844. abstract="false" native="false" synchronized="false"
  32845. static="false" final="false" visibility="public"
  32846. deprecated="not deprecated">
  32847. <param name="din" type="java.io.DataInput"/>
  32848. <exception name="IOException" type="java.io.IOException"/>
  32849. </method>
  32850. <method name="toString" return="java.lang.String"
  32851. abstract="false" native="false" synchronized="false"
  32852. static="false" final="false" visibility="public"
  32853. deprecated="not deprecated">
  32854. </method>
  32855. <doc>
  32856. <![CDATA[Abstract class that is extended by generated classes.]]>
  32857. </doc>
  32858. </class>
  32859. <!-- end class org.apache.hadoop.record.Record -->
  32860. <!-- start class org.apache.hadoop.record.RecordComparator -->
  32861. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  32862. abstract="true"
  32863. static="false" final="false" visibility="public"
  32864. deprecated="not deprecated">
  32865. <constructor name="RecordComparator" type="java.lang.Class"
  32866. static="false" final="false" visibility="protected"
  32867. deprecated="not deprecated">
  32868. <doc>
  32869. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  32870. </doc>
  32871. </constructor>
  32872. <method name="compare" return="int"
  32873. abstract="true" native="false" synchronized="false"
  32874. static="false" final="false" visibility="public"
  32875. deprecated="not deprecated">
  32876. <param name="b1" type="byte[]"/>
  32877. <param name="s1" type="int"/>
  32878. <param name="l1" type="int"/>
  32879. <param name="b2" type="byte[]"/>
  32880. <param name="s2" type="int"/>
  32881. <param name="l2" type="int"/>
  32882. </method>
  32883. <method name="define"
  32884. abstract="false" native="false" synchronized="true"
  32885. static="true" final="false" visibility="public"
  32886. deprecated="not deprecated">
  32887. <param name="c" type="java.lang.Class"/>
  32888. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  32889. <doc>
  32890. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  32891. @param c record classs for which a raw comparator is provided
  32892. @param comparator Raw comparator instance for class c]]>
  32893. </doc>
  32894. </method>
  32895. <doc>
  32896. <![CDATA[A raw record comparator base class]]>
  32897. </doc>
  32898. </class>
  32899. <!-- end class org.apache.hadoop.record.RecordComparator -->
  32900. <!-- start interface org.apache.hadoop.record.RecordInput -->
  32901. <interface name="RecordInput" abstract="true"
  32902. static="false" final="false" visibility="public"
  32903. deprecated="not deprecated">
  32904. <method name="readByte" return="byte"
  32905. abstract="false" native="false" synchronized="false"
  32906. static="false" final="false" visibility="public"
  32907. deprecated="not deprecated">
  32908. <param name="tag" type="java.lang.String"/>
  32909. <exception name="IOException" type="java.io.IOException"/>
  32910. <doc>
  32911. <![CDATA[Read a byte from serialized record.
  32912. @param tag Used by tagged serialization formats (such as XML)
  32913. @return value read from serialized record.]]>
  32914. </doc>
  32915. </method>
  32916. <method name="readBool" return="boolean"
  32917. abstract="false" native="false" synchronized="false"
  32918. static="false" final="false" visibility="public"
  32919. deprecated="not deprecated">
  32920. <param name="tag" type="java.lang.String"/>
  32921. <exception name="IOException" type="java.io.IOException"/>
  32922. <doc>
  32923. <![CDATA[Read a boolean from serialized record.
  32924. @param tag Used by tagged serialization formats (such as XML)
  32925. @return value read from serialized record.]]>
  32926. </doc>
  32927. </method>
  32928. <method name="readInt" return="int"
  32929. abstract="false" native="false" synchronized="false"
  32930. static="false" final="false" visibility="public"
  32931. deprecated="not deprecated">
  32932. <param name="tag" type="java.lang.String"/>
  32933. <exception name="IOException" type="java.io.IOException"/>
  32934. <doc>
  32935. <![CDATA[Read an integer from serialized record.
  32936. @param tag Used by tagged serialization formats (such as XML)
  32937. @return value read from serialized record.]]>
  32938. </doc>
  32939. </method>
  32940. <method name="readLong" return="long"
  32941. abstract="false" native="false" synchronized="false"
  32942. static="false" final="false" visibility="public"
  32943. deprecated="not deprecated">
  32944. <param name="tag" type="java.lang.String"/>
  32945. <exception name="IOException" type="java.io.IOException"/>
  32946. <doc>
  32947. <![CDATA[Read a long integer from serialized record.
  32948. @param tag Used by tagged serialization formats (such as XML)
  32949. @return value read from serialized record.]]>
  32950. </doc>
  32951. </method>
  32952. <method name="readFloat" return="float"
  32953. abstract="false" native="false" synchronized="false"
  32954. static="false" final="false" visibility="public"
  32955. deprecated="not deprecated">
  32956. <param name="tag" type="java.lang.String"/>
  32957. <exception name="IOException" type="java.io.IOException"/>
  32958. <doc>
  32959. <![CDATA[Read a single-precision float from serialized record.
  32960. @param tag Used by tagged serialization formats (such as XML)
  32961. @return value read from serialized record.]]>
  32962. </doc>
  32963. </method>
  32964. <method name="readDouble" return="double"
  32965. abstract="false" native="false" synchronized="false"
  32966. static="false" final="false" visibility="public"
  32967. deprecated="not deprecated">
  32968. <param name="tag" type="java.lang.String"/>
  32969. <exception name="IOException" type="java.io.IOException"/>
  32970. <doc>
  32971. <![CDATA[Read a double-precision number from serialized record.
  32972. @param tag Used by tagged serialization formats (such as XML)
  32973. @return value read from serialized record.]]>
  32974. </doc>
  32975. </method>
  32976. <method name="readString" return="java.lang.String"
  32977. abstract="false" native="false" synchronized="false"
  32978. static="false" final="false" visibility="public"
  32979. deprecated="not deprecated">
  32980. <param name="tag" type="java.lang.String"/>
  32981. <exception name="IOException" type="java.io.IOException"/>
  32982. <doc>
  32983. <![CDATA[Read a UTF-8 encoded string from serialized record.
  32984. @param tag Used by tagged serialization formats (such as XML)
  32985. @return value read from serialized record.]]>
  32986. </doc>
  32987. </method>
  32988. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  32989. abstract="false" native="false" synchronized="false"
  32990. static="false" final="false" visibility="public"
  32991. deprecated="not deprecated">
  32992. <param name="tag" type="java.lang.String"/>
  32993. <exception name="IOException" type="java.io.IOException"/>
  32994. <doc>
  32995. <![CDATA[Read byte array from serialized record.
  32996. @param tag Used by tagged serialization formats (such as XML)
  32997. @return value read from serialized record.]]>
  32998. </doc>
  32999. </method>
  33000. <method name="startRecord"
  33001. abstract="false" native="false" synchronized="false"
  33002. static="false" final="false" visibility="public"
  33003. deprecated="not deprecated">
  33004. <param name="tag" type="java.lang.String"/>
  33005. <exception name="IOException" type="java.io.IOException"/>
  33006. <doc>
  33007. <![CDATA[Check the mark for start of the serialized record.
  33008. @param tag Used by tagged serialization formats (such as XML)]]>
  33009. </doc>
  33010. </method>
  33011. <method name="endRecord"
  33012. abstract="false" native="false" synchronized="false"
  33013. static="false" final="false" visibility="public"
  33014. deprecated="not deprecated">
  33015. <param name="tag" type="java.lang.String"/>
  33016. <exception name="IOException" type="java.io.IOException"/>
  33017. <doc>
  33018. <![CDATA[Check the mark for end of the serialized record.
  33019. @param tag Used by tagged serialization formats (such as XML)]]>
  33020. </doc>
  33021. </method>
  33022. <method name="startVector" return="org.apache.hadoop.record.Index"
  33023. abstract="false" native="false" synchronized="false"
  33024. static="false" final="false" visibility="public"
  33025. deprecated="not deprecated">
  33026. <param name="tag" type="java.lang.String"/>
  33027. <exception name="IOException" type="java.io.IOException"/>
  33028. <doc>
  33029. <![CDATA[Check the mark for start of the serialized vector.
  33030. @param tag Used by tagged serialization formats (such as XML)
  33031. @return Index that is used to count the number of elements.]]>
  33032. </doc>
  33033. </method>
  33034. <method name="endVector"
  33035. abstract="false" native="false" synchronized="false"
  33036. static="false" final="false" visibility="public"
  33037. deprecated="not deprecated">
  33038. <param name="tag" type="java.lang.String"/>
  33039. <exception name="IOException" type="java.io.IOException"/>
  33040. <doc>
  33041. <![CDATA[Check the mark for end of the serialized vector.
  33042. @param tag Used by tagged serialization formats (such as XML)]]>
  33043. </doc>
  33044. </method>
  33045. <method name="startMap" return="org.apache.hadoop.record.Index"
  33046. abstract="false" native="false" synchronized="false"
  33047. static="false" final="false" visibility="public"
  33048. deprecated="not deprecated">
  33049. <param name="tag" type="java.lang.String"/>
  33050. <exception name="IOException" type="java.io.IOException"/>
  33051. <doc>
  33052. <![CDATA[Check the mark for start of the serialized map.
  33053. @param tag Used by tagged serialization formats (such as XML)
  33054. @return Index that is used to count the number of map entries.]]>
  33055. </doc>
  33056. </method>
  33057. <method name="endMap"
  33058. abstract="false" native="false" synchronized="false"
  33059. static="false" final="false" visibility="public"
  33060. deprecated="not deprecated">
  33061. <param name="tag" type="java.lang.String"/>
  33062. <exception name="IOException" type="java.io.IOException"/>
  33063. <doc>
  33064. <![CDATA[Check the mark for end of the serialized map.
  33065. @param tag Used by tagged serialization formats (such as XML)]]>
  33066. </doc>
  33067. </method>
  33068. <doc>
  33069. <![CDATA[Interface that all the Deserializers have to implement.]]>
  33070. </doc>
  33071. </interface>
  33072. <!-- end interface org.apache.hadoop.record.RecordInput -->
  33073. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  33074. <interface name="RecordOutput" abstract="true"
  33075. static="false" final="false" visibility="public"
  33076. deprecated="not deprecated">
  33077. <method name="writeByte"
  33078. abstract="false" native="false" synchronized="false"
  33079. static="false" final="false" visibility="public"
  33080. deprecated="not deprecated">
  33081. <param name="b" type="byte"/>
  33082. <param name="tag" type="java.lang.String"/>
  33083. <exception name="IOException" type="java.io.IOException"/>
  33084. <doc>
  33085. <![CDATA[Write a byte to serialized record.
  33086. @param b Byte to be serialized
  33087. @param tag Used by tagged serialization formats (such as XML)
  33088. @throws IOException Indicates error in serialization]]>
  33089. </doc>
  33090. </method>
  33091. <method name="writeBool"
  33092. abstract="false" native="false" synchronized="false"
  33093. static="false" final="false" visibility="public"
  33094. deprecated="not deprecated">
  33095. <param name="b" type="boolean"/>
  33096. <param name="tag" type="java.lang.String"/>
  33097. <exception name="IOException" type="java.io.IOException"/>
  33098. <doc>
  33099. <![CDATA[Write a boolean to serialized record.
  33100. @param b Boolean to be serialized
  33101. @param tag Used by tagged serialization formats (such as XML)
  33102. @throws IOException Indicates error in serialization]]>
  33103. </doc>
  33104. </method>
  33105. <method name="writeInt"
  33106. abstract="false" native="false" synchronized="false"
  33107. static="false" final="false" visibility="public"
  33108. deprecated="not deprecated">
  33109. <param name="i" type="int"/>
  33110. <param name="tag" type="java.lang.String"/>
  33111. <exception name="IOException" type="java.io.IOException"/>
  33112. <doc>
  33113. <![CDATA[Write an integer to serialized record.
  33114. @param i Integer to be serialized
  33115. @param tag Used by tagged serialization formats (such as XML)
  33116. @throws IOException Indicates error in serialization]]>
  33117. </doc>
  33118. </method>
  33119. <method name="writeLong"
  33120. abstract="false" native="false" synchronized="false"
  33121. static="false" final="false" visibility="public"
  33122. deprecated="not deprecated">
  33123. <param name="l" type="long"/>
  33124. <param name="tag" type="java.lang.String"/>
  33125. <exception name="IOException" type="java.io.IOException"/>
  33126. <doc>
  33127. <![CDATA[Write a long integer to serialized record.
  33128. @param l Long to be serialized
  33129. @param tag Used by tagged serialization formats (such as XML)
  33130. @throws IOException Indicates error in serialization]]>
  33131. </doc>
  33132. </method>
  33133. <method name="writeFloat"
  33134. abstract="false" native="false" synchronized="false"
  33135. static="false" final="false" visibility="public"
  33136. deprecated="not deprecated">
  33137. <param name="f" type="float"/>
  33138. <param name="tag" type="java.lang.String"/>
  33139. <exception name="IOException" type="java.io.IOException"/>
  33140. <doc>
  33141. <![CDATA[Write a single-precision float to serialized record.
  33142. @param f Float to be serialized
  33143. @param tag Used by tagged serialization formats (such as XML)
  33144. @throws IOException Indicates error in serialization]]>
  33145. </doc>
  33146. </method>
  33147. <method name="writeDouble"
  33148. abstract="false" native="false" synchronized="false"
  33149. static="false" final="false" visibility="public"
  33150. deprecated="not deprecated">
  33151. <param name="d" type="double"/>
  33152. <param name="tag" type="java.lang.String"/>
  33153. <exception name="IOException" type="java.io.IOException"/>
  33154. <doc>
  33155. <![CDATA[Write a double precision floating point number to serialized record.
  33156. @param d Double to be serialized
  33157. @param tag Used by tagged serialization formats (such as XML)
  33158. @throws IOException Indicates error in serialization]]>
  33159. </doc>
  33160. </method>
  33161. <method name="writeString"
  33162. abstract="false" native="false" synchronized="false"
  33163. static="false" final="false" visibility="public"
  33164. deprecated="not deprecated">
  33165. <param name="s" type="java.lang.String"/>
  33166. <param name="tag" type="java.lang.String"/>
  33167. <exception name="IOException" type="java.io.IOException"/>
  33168. <doc>
  33169. <![CDATA[Write a unicode string to serialized record.
  33170. @param s String to be serialized
  33171. @param tag Used by tagged serialization formats (such as XML)
  33172. @throws IOException Indicates error in serialization]]>
  33173. </doc>
  33174. </method>
  33175. <method name="writeBuffer"
  33176. abstract="false" native="false" synchronized="false"
  33177. static="false" final="false" visibility="public"
  33178. deprecated="not deprecated">
  33179. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  33180. <param name="tag" type="java.lang.String"/>
  33181. <exception name="IOException" type="java.io.IOException"/>
  33182. <doc>
  33183. <![CDATA[Write a buffer to serialized record.
  33184. @param buf Buffer to be serialized
  33185. @param tag Used by tagged serialization formats (such as XML)
  33186. @throws IOException Indicates error in serialization]]>
  33187. </doc>
  33188. </method>
  33189. <method name="startRecord"
  33190. abstract="false" native="false" synchronized="false"
  33191. static="false" final="false" visibility="public"
  33192. deprecated="not deprecated">
  33193. <param name="r" type="org.apache.hadoop.record.Record"/>
  33194. <param name="tag" type="java.lang.String"/>
  33195. <exception name="IOException" type="java.io.IOException"/>
  33196. <doc>
  33197. <![CDATA[Mark the start of a record to be serialized.
  33198. @param r Record to be serialized
  33199. @param tag Used by tagged serialization formats (such as XML)
  33200. @throws IOException Indicates error in serialization]]>
  33201. </doc>
  33202. </method>
  33203. <method name="endRecord"
  33204. abstract="false" native="false" synchronized="false"
  33205. static="false" final="false" visibility="public"
  33206. deprecated="not deprecated">
  33207. <param name="r" type="org.apache.hadoop.record.Record"/>
  33208. <param name="tag" type="java.lang.String"/>
  33209. <exception name="IOException" type="java.io.IOException"/>
  33210. <doc>
  33211. <![CDATA[Mark the end of a serialized record.
  33212. @param r Record to be serialized
  33213. @param tag Used by tagged serialization formats (such as XML)
  33214. @throws IOException Indicates error in serialization]]>
  33215. </doc>
  33216. </method>
  33217. <method name="startVector"
  33218. abstract="false" native="false" synchronized="false"
  33219. static="false" final="false" visibility="public"
  33220. deprecated="not deprecated">
  33221. <param name="v" type="java.util.ArrayList"/>
  33222. <param name="tag" type="java.lang.String"/>
  33223. <exception name="IOException" type="java.io.IOException"/>
  33224. <doc>
  33225. <![CDATA[Mark the start of a vector to be serialized.
  33226. @param v Vector to be serialized
  33227. @param tag Used by tagged serialization formats (such as XML)
  33228. @throws IOException Indicates error in serialization]]>
  33229. </doc>
  33230. </method>
  33231. <method name="endVector"
  33232. abstract="false" native="false" synchronized="false"
  33233. static="false" final="false" visibility="public"
  33234. deprecated="not deprecated">
  33235. <param name="v" type="java.util.ArrayList"/>
  33236. <param name="tag" type="java.lang.String"/>
  33237. <exception name="IOException" type="java.io.IOException"/>
  33238. <doc>
  33239. <![CDATA[Mark the end of a serialized vector.
  33240. @param v Vector to be serialized
  33241. @param tag Used by tagged serialization formats (such as XML)
  33242. @throws IOException Indicates error in serialization]]>
  33243. </doc>
  33244. </method>
  33245. <method name="startMap"
  33246. abstract="false" native="false" synchronized="false"
  33247. static="false" final="false" visibility="public"
  33248. deprecated="not deprecated">
  33249. <param name="m" type="java.util.TreeMap"/>
  33250. <param name="tag" type="java.lang.String"/>
  33251. <exception name="IOException" type="java.io.IOException"/>
  33252. <doc>
  33253. <![CDATA[Mark the start of a map to be serialized.
  33254. @param m Map to be serialized
  33255. @param tag Used by tagged serialization formats (such as XML)
  33256. @throws IOException Indicates error in serialization]]>
  33257. </doc>
  33258. </method>
  33259. <method name="endMap"
  33260. abstract="false" native="false" synchronized="false"
  33261. static="false" final="false" visibility="public"
  33262. deprecated="not deprecated">
  33263. <param name="m" type="java.util.TreeMap"/>
  33264. <param name="tag" type="java.lang.String"/>
  33265. <exception name="IOException" type="java.io.IOException"/>
  33266. <doc>
  33267. <![CDATA[Mark the end of a serialized map.
  33268. @param m Map to be serialized
  33269. @param tag Used by tagged serialization formats (such as XML)
  33270. @throws IOException Indicates error in serialization]]>
  33271. </doc>
  33272. </method>
  33273. <doc>
  33274. <![CDATA[Interface that alll the serializers have to implement.]]>
  33275. </doc>
  33276. </interface>
  33277. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  33278. <!-- start class org.apache.hadoop.record.Utils -->
  33279. <class name="Utils" extends="java.lang.Object"
  33280. abstract="false"
  33281. static="false" final="false" visibility="public"
  33282. deprecated="not deprecated">
  33283. <method name="readFloat" return="float"
  33284. abstract="false" native="false" synchronized="false"
  33285. static="true" final="false" visibility="public"
  33286. deprecated="not deprecated">
  33287. <param name="bytes" type="byte[]"/>
  33288. <param name="start" type="int"/>
  33289. <doc>
  33290. <![CDATA[Parse a float from a byte array.]]>
  33291. </doc>
  33292. </method>
  33293. <method name="readDouble" return="double"
  33294. abstract="false" native="false" synchronized="false"
  33295. static="true" final="false" visibility="public"
  33296. deprecated="not deprecated">
  33297. <param name="bytes" type="byte[]"/>
  33298. <param name="start" type="int"/>
  33299. <doc>
  33300. <![CDATA[Parse a double from a byte array.]]>
  33301. </doc>
  33302. </method>
  33303. <method name="readVLong" return="long"
  33304. abstract="false" native="false" synchronized="false"
  33305. static="true" final="false" visibility="public"
  33306. deprecated="not deprecated">
  33307. <param name="bytes" type="byte[]"/>
  33308. <param name="start" type="int"/>
  33309. <exception name="IOException" type="java.io.IOException"/>
  33310. <doc>
  33311. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  33312. @param bytes byte array with decode long
  33313. @param start starting index
  33314. @throws java.io.IOException
  33315. @return deserialized long]]>
  33316. </doc>
  33317. </method>
  33318. <method name="readVInt" return="int"
  33319. abstract="false" native="false" synchronized="false"
  33320. static="true" final="false" visibility="public"
  33321. deprecated="not deprecated">
  33322. <param name="bytes" type="byte[]"/>
  33323. <param name="start" type="int"/>
  33324. <exception name="IOException" type="java.io.IOException"/>
  33325. <doc>
  33326. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  33327. @param bytes byte array with the encoded integer
  33328. @param start start index
  33329. @throws java.io.IOException
  33330. @return deserialized integer]]>
  33331. </doc>
  33332. </method>
  33333. <method name="readVLong" return="long"
  33334. abstract="false" native="false" synchronized="false"
  33335. static="true" final="false" visibility="public"
  33336. deprecated="not deprecated">
  33337. <param name="in" type="java.io.DataInput"/>
  33338. <exception name="IOException" type="java.io.IOException"/>
  33339. <doc>
  33340. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  33341. @param in input stream
  33342. @throws java.io.IOException
  33343. @return deserialized long]]>
  33344. </doc>
  33345. </method>
  33346. <method name="readVInt" return="int"
  33347. abstract="false" native="false" synchronized="false"
  33348. static="true" final="false" visibility="public"
  33349. deprecated="not deprecated">
  33350. <param name="in" type="java.io.DataInput"/>
  33351. <exception name="IOException" type="java.io.IOException"/>
  33352. <doc>
  33353. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  33354. @param in input stream
  33355. @throws java.io.IOException
  33356. @return deserialized integer]]>
  33357. </doc>
  33358. </method>
  33359. <method name="getVIntSize" return="int"
  33360. abstract="false" native="false" synchronized="false"
  33361. static="true" final="false" visibility="public"
  33362. deprecated="not deprecated">
  33363. <param name="i" type="long"/>
  33364. <doc>
  33365. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  33366. @return the encoded length]]>
  33367. </doc>
  33368. </method>
  33369. <method name="writeVLong"
  33370. abstract="false" native="false" synchronized="false"
  33371. static="true" final="false" visibility="public"
  33372. deprecated="not deprecated">
  33373. <param name="stream" type="java.io.DataOutput"/>
  33374. <param name="i" type="long"/>
  33375. <exception name="IOException" type="java.io.IOException"/>
  33376. <doc>
  33377. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  33378. For -112 <= i <= 127, only one byte is used with the actual value.
  33379. For other values of i, the first byte value indicates whether the
  33380. long is positive or negative, and the number of bytes that follow.
  33381. If the first byte value v is between -113 and -120, the following long
  33382. is positive, with number of bytes that follow are -(v+112).
  33383. If the first byte value v is between -121 and -128, the following long
  33384. is negative, with number of bytes that follow are -(v+120). Bytes are
  33385. stored in the high-non-zero-byte-first order.
  33386. @param stream Binary output stream
  33387. @param i Long to be serialized
  33388. @throws java.io.IOException]]>
  33389. </doc>
  33390. </method>
  33391. <method name="writeVInt"
  33392. abstract="false" native="false" synchronized="false"
  33393. static="true" final="false" visibility="public"
  33394. deprecated="not deprecated">
  33395. <param name="stream" type="java.io.DataOutput"/>
  33396. <param name="i" type="int"/>
  33397. <exception name="IOException" type="java.io.IOException"/>
  33398. <doc>
  33399. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  33400. @param stream Binary output stream
  33401. @param i int to be serialized
  33402. @throws java.io.IOException]]>
  33403. </doc>
  33404. </method>
  33405. <method name="compareBytes" return="int"
  33406. abstract="false" native="false" synchronized="false"
  33407. static="true" final="false" visibility="public"
  33408. deprecated="not deprecated">
  33409. <param name="b1" type="byte[]"/>
  33410. <param name="s1" type="int"/>
  33411. <param name="l1" type="int"/>
  33412. <param name="b2" type="byte[]"/>
  33413. <param name="s2" type="int"/>
  33414. <param name="l2" type="int"/>
  33415. <doc>
  33416. <![CDATA[Lexicographic order of binary data.]]>
  33417. </doc>
  33418. </method>
  33419. <field name="hexchars" type="char[]"
  33420. transient="false" volatile="false"
  33421. static="true" final="true" visibility="public"
  33422. deprecated="not deprecated">
  33423. </field>
  33424. <doc>
  33425. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  33426. </doc>
  33427. </class>
  33428. <!-- end class org.apache.hadoop.record.Utils -->
  33429. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  33430. <class name="XmlRecordInput" extends="java.lang.Object"
  33431. abstract="false"
  33432. static="false" final="false" visibility="public"
  33433. deprecated="not deprecated">
  33434. <implements name="org.apache.hadoop.record.RecordInput"/>
  33435. <constructor name="XmlRecordInput" type="java.io.InputStream"
  33436. static="false" final="false" visibility="public"
  33437. deprecated="not deprecated">
  33438. <doc>
  33439. <![CDATA[Creates a new instance of XmlRecordInput]]>
  33440. </doc>
  33441. </constructor>
  33442. <method name="readByte" return="byte"
  33443. abstract="false" native="false" synchronized="false"
  33444. static="false" final="false" visibility="public"
  33445. deprecated="not deprecated">
  33446. <param name="tag" type="java.lang.String"/>
  33447. <exception name="IOException" type="java.io.IOException"/>
  33448. </method>
  33449. <method name="readBool" return="boolean"
  33450. abstract="false" native="false" synchronized="false"
  33451. static="false" final="false" visibility="public"
  33452. deprecated="not deprecated">
  33453. <param name="tag" type="java.lang.String"/>
  33454. <exception name="IOException" type="java.io.IOException"/>
  33455. </method>
  33456. <method name="readInt" return="int"
  33457. abstract="false" native="false" synchronized="false"
  33458. static="false" final="false" visibility="public"
  33459. deprecated="not deprecated">
  33460. <param name="tag" type="java.lang.String"/>
  33461. <exception name="IOException" type="java.io.IOException"/>
  33462. </method>
  33463. <method name="readLong" return="long"
  33464. abstract="false" native="false" synchronized="false"
  33465. static="false" final="false" visibility="public"
  33466. deprecated="not deprecated">
  33467. <param name="tag" type="java.lang.String"/>
  33468. <exception name="IOException" type="java.io.IOException"/>
  33469. </method>
  33470. <method name="readFloat" return="float"
  33471. abstract="false" native="false" synchronized="false"
  33472. static="false" final="false" visibility="public"
  33473. deprecated="not deprecated">
  33474. <param name="tag" type="java.lang.String"/>
  33475. <exception name="IOException" type="java.io.IOException"/>
  33476. </method>
  33477. <method name="readDouble" return="double"
  33478. abstract="false" native="false" synchronized="false"
  33479. static="false" final="false" visibility="public"
  33480. deprecated="not deprecated">
  33481. <param name="tag" type="java.lang.String"/>
  33482. <exception name="IOException" type="java.io.IOException"/>
  33483. </method>
  33484. <method name="readString" return="java.lang.String"
  33485. abstract="false" native="false" synchronized="false"
  33486. static="false" final="false" visibility="public"
  33487. deprecated="not deprecated">
  33488. <param name="tag" type="java.lang.String"/>
  33489. <exception name="IOException" type="java.io.IOException"/>
  33490. </method>
  33491. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  33492. abstract="false" native="false" synchronized="false"
  33493. static="false" final="false" visibility="public"
  33494. deprecated="not deprecated">
  33495. <param name="tag" type="java.lang.String"/>
  33496. <exception name="IOException" type="java.io.IOException"/>
  33497. </method>
  33498. <method name="startRecord"
  33499. abstract="false" native="false" synchronized="false"
  33500. static="false" final="false" visibility="public"
  33501. deprecated="not deprecated">
  33502. <param name="tag" type="java.lang.String"/>
  33503. <exception name="IOException" type="java.io.IOException"/>
  33504. </method>
  33505. <method name="endRecord"
  33506. abstract="false" native="false" synchronized="false"
  33507. static="false" final="false" visibility="public"
  33508. deprecated="not deprecated">
  33509. <param name="tag" type="java.lang.String"/>
  33510. <exception name="IOException" type="java.io.IOException"/>
  33511. </method>
  33512. <method name="startVector" return="org.apache.hadoop.record.Index"
  33513. abstract="false" native="false" synchronized="false"
  33514. static="false" final="false" visibility="public"
  33515. deprecated="not deprecated">
  33516. <param name="tag" type="java.lang.String"/>
  33517. <exception name="IOException" type="java.io.IOException"/>
  33518. </method>
  33519. <method name="endVector"
  33520. abstract="false" native="false" synchronized="false"
  33521. static="false" final="false" visibility="public"
  33522. deprecated="not deprecated">
  33523. <param name="tag" type="java.lang.String"/>
  33524. <exception name="IOException" type="java.io.IOException"/>
  33525. </method>
  33526. <method name="startMap" return="org.apache.hadoop.record.Index"
  33527. abstract="false" native="false" synchronized="false"
  33528. static="false" final="false" visibility="public"
  33529. deprecated="not deprecated">
  33530. <param name="tag" type="java.lang.String"/>
  33531. <exception name="IOException" type="java.io.IOException"/>
  33532. </method>
  33533. <method name="endMap"
  33534. abstract="false" native="false" synchronized="false"
  33535. static="false" final="false" visibility="public"
  33536. deprecated="not deprecated">
  33537. <param name="tag" type="java.lang.String"/>
  33538. <exception name="IOException" type="java.io.IOException"/>
  33539. </method>
  33540. <doc>
  33541. <![CDATA[XML Deserializer.]]>
  33542. </doc>
  33543. </class>
  33544. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  33545. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  33546. <class name="XmlRecordOutput" extends="java.lang.Object"
  33547. abstract="false"
  33548. static="false" final="false" visibility="public"
  33549. deprecated="not deprecated">
  33550. <implements name="org.apache.hadoop.record.RecordOutput"/>
  33551. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  33552. static="false" final="false" visibility="public"
  33553. deprecated="not deprecated">
  33554. <doc>
  33555. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  33556. </doc>
  33557. </constructor>
  33558. <method name="writeByte"
  33559. abstract="false" native="false" synchronized="false"
  33560. static="false" final="false" visibility="public"
  33561. deprecated="not deprecated">
  33562. <param name="b" type="byte"/>
  33563. <param name="tag" type="java.lang.String"/>
  33564. <exception name="IOException" type="java.io.IOException"/>
  33565. </method>
  33566. <method name="writeBool"
  33567. abstract="false" native="false" synchronized="false"
  33568. static="false" final="false" visibility="public"
  33569. deprecated="not deprecated">
  33570. <param name="b" type="boolean"/>
  33571. <param name="tag" type="java.lang.String"/>
  33572. <exception name="IOException" type="java.io.IOException"/>
  33573. </method>
  33574. <method name="writeInt"
  33575. abstract="false" native="false" synchronized="false"
  33576. static="false" final="false" visibility="public"
  33577. deprecated="not deprecated">
  33578. <param name="i" type="int"/>
  33579. <param name="tag" type="java.lang.String"/>
  33580. <exception name="IOException" type="java.io.IOException"/>
  33581. </method>
  33582. <method name="writeLong"
  33583. abstract="false" native="false" synchronized="false"
  33584. static="false" final="false" visibility="public"
  33585. deprecated="not deprecated">
  33586. <param name="l" type="long"/>
  33587. <param name="tag" type="java.lang.String"/>
  33588. <exception name="IOException" type="java.io.IOException"/>
  33589. </method>
  33590. <method name="writeFloat"
  33591. abstract="false" native="false" synchronized="false"
  33592. static="false" final="false" visibility="public"
  33593. deprecated="not deprecated">
  33594. <param name="f" type="float"/>
  33595. <param name="tag" type="java.lang.String"/>
  33596. <exception name="IOException" type="java.io.IOException"/>
  33597. </method>
  33598. <method name="writeDouble"
  33599. abstract="false" native="false" synchronized="false"
  33600. static="false" final="false" visibility="public"
  33601. deprecated="not deprecated">
  33602. <param name="d" type="double"/>
  33603. <param name="tag" type="java.lang.String"/>
  33604. <exception name="IOException" type="java.io.IOException"/>
  33605. </method>
  33606. <method name="writeString"
  33607. abstract="false" native="false" synchronized="false"
  33608. static="false" final="false" visibility="public"
  33609. deprecated="not deprecated">
  33610. <param name="s" type="java.lang.String"/>
  33611. <param name="tag" type="java.lang.String"/>
  33612. <exception name="IOException" type="java.io.IOException"/>
  33613. </method>
  33614. <method name="writeBuffer"
  33615. abstract="false" native="false" synchronized="false"
  33616. static="false" final="false" visibility="public"
  33617. deprecated="not deprecated">
  33618. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  33619. <param name="tag" type="java.lang.String"/>
  33620. <exception name="IOException" type="java.io.IOException"/>
  33621. </method>
  33622. <method name="startRecord"
  33623. abstract="false" native="false" synchronized="false"
  33624. static="false" final="false" visibility="public"
  33625. deprecated="not deprecated">
  33626. <param name="r" type="org.apache.hadoop.record.Record"/>
  33627. <param name="tag" type="java.lang.String"/>
  33628. <exception name="IOException" type="java.io.IOException"/>
  33629. </method>
  33630. <method name="endRecord"
  33631. abstract="false" native="false" synchronized="false"
  33632. static="false" final="false" visibility="public"
  33633. deprecated="not deprecated">
  33634. <param name="r" type="org.apache.hadoop.record.Record"/>
  33635. <param name="tag" type="java.lang.String"/>
  33636. <exception name="IOException" type="java.io.IOException"/>
  33637. </method>
  33638. <method name="startVector"
  33639. abstract="false" native="false" synchronized="false"
  33640. static="false" final="false" visibility="public"
  33641. deprecated="not deprecated">
  33642. <param name="v" type="java.util.ArrayList"/>
  33643. <param name="tag" type="java.lang.String"/>
  33644. <exception name="IOException" type="java.io.IOException"/>
  33645. </method>
  33646. <method name="endVector"
  33647. abstract="false" native="false" synchronized="false"
  33648. static="false" final="false" visibility="public"
  33649. deprecated="not deprecated">
  33650. <param name="v" type="java.util.ArrayList"/>
  33651. <param name="tag" type="java.lang.String"/>
  33652. <exception name="IOException" type="java.io.IOException"/>
  33653. </method>
  33654. <method name="startMap"
  33655. abstract="false" native="false" synchronized="false"
  33656. static="false" final="false" visibility="public"
  33657. deprecated="not deprecated">
  33658. <param name="v" type="java.util.TreeMap"/>
  33659. <param name="tag" type="java.lang.String"/>
  33660. <exception name="IOException" type="java.io.IOException"/>
  33661. </method>
  33662. <method name="endMap"
  33663. abstract="false" native="false" synchronized="false"
  33664. static="false" final="false" visibility="public"
  33665. deprecated="not deprecated">
  33666. <param name="v" type="java.util.TreeMap"/>
  33667. <param name="tag" type="java.lang.String"/>
  33668. <exception name="IOException" type="java.io.IOException"/>
  33669. </method>
  33670. <doc>
  33671. <![CDATA[XML Serializer.]]>
  33672. </doc>
  33673. </class>
  33674. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  33675. </package>
  33676. <package name="org.apache.hadoop.record.compiler">
  33677. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  33678. <class name="CodeBuffer" extends="java.lang.Object"
  33679. abstract="false"
  33680. static="false" final="false" visibility="public"
  33681. deprecated="not deprecated">
  33682. <method name="toString" return="java.lang.String"
  33683. abstract="false" native="false" synchronized="false"
  33684. static="false" final="false" visibility="public"
  33685. deprecated="not deprecated">
  33686. </method>
  33687. <doc>
  33688. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  33689. </doc>
  33690. </class>
  33691. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  33692. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  33693. <class name="Consts" extends="java.lang.Object"
  33694. abstract="false"
  33695. static="false" final="false" visibility="public"
  33696. deprecated="not deprecated">
  33697. <field name="RIO_PREFIX" type="java.lang.String"
  33698. transient="false" volatile="false"
  33699. static="true" final="true" visibility="public"
  33700. deprecated="not deprecated">
  33701. </field>
  33702. <field name="RTI_VAR" type="java.lang.String"
  33703. transient="false" volatile="false"
  33704. static="true" final="true" visibility="public"
  33705. deprecated="not deprecated">
  33706. </field>
  33707. <field name="RTI_FILTER" type="java.lang.String"
  33708. transient="false" volatile="false"
  33709. static="true" final="true" visibility="public"
  33710. deprecated="not deprecated">
  33711. </field>
  33712. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  33713. transient="false" volatile="false"
  33714. static="true" final="true" visibility="public"
  33715. deprecated="not deprecated">
  33716. </field>
  33717. <field name="RECORD_OUTPUT" type="java.lang.String"
  33718. transient="false" volatile="false"
  33719. static="true" final="true" visibility="public"
  33720. deprecated="not deprecated">
  33721. </field>
  33722. <field name="RECORD_INPUT" type="java.lang.String"
  33723. transient="false" volatile="false"
  33724. static="true" final="true" visibility="public"
  33725. deprecated="not deprecated">
  33726. </field>
  33727. <field name="TAG" type="java.lang.String"
  33728. transient="false" volatile="false"
  33729. static="true" final="true" visibility="public"
  33730. deprecated="not deprecated">
  33731. </field>
  33732. <doc>
  33733. <![CDATA[const definitions for Record I/O compiler]]>
  33734. </doc>
  33735. </class>
  33736. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  33737. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  33738. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  33739. abstract="false"
  33740. static="false" final="false" visibility="public"
  33741. deprecated="not deprecated">
  33742. <constructor name="JBoolean"
  33743. static="false" final="false" visibility="public"
  33744. deprecated="not deprecated">
  33745. <doc>
  33746. <![CDATA[Creates a new instance of JBoolean]]>
  33747. </doc>
  33748. </constructor>
  33749. </class>
  33750. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  33751. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  33752. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  33753. abstract="false"
  33754. static="false" final="false" visibility="public"
  33755. deprecated="not deprecated">
  33756. <constructor name="JBuffer"
  33757. static="false" final="false" visibility="public"
  33758. deprecated="not deprecated">
  33759. <doc>
  33760. <![CDATA[Creates a new instance of JBuffer]]>
  33761. </doc>
  33762. </constructor>
  33763. <doc>
  33764. <![CDATA[Code generator for "buffer" type.]]>
  33765. </doc>
  33766. </class>
  33767. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  33768. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  33769. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  33770. abstract="false"
  33771. static="false" final="false" visibility="public"
  33772. deprecated="not deprecated">
  33773. <constructor name="JByte"
  33774. static="false" final="false" visibility="public"
  33775. deprecated="not deprecated">
  33776. </constructor>
  33777. <doc>
  33778. <![CDATA[Code generator for "byte" type.]]>
  33779. </doc>
  33780. </class>
  33781. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  33782. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  33783. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  33784. abstract="false"
  33785. static="false" final="false" visibility="public"
  33786. deprecated="not deprecated">
  33787. <constructor name="JDouble"
  33788. static="false" final="false" visibility="public"
  33789. deprecated="not deprecated">
  33790. <doc>
  33791. <![CDATA[Creates a new instance of JDouble]]>
  33792. </doc>
  33793. </constructor>
  33794. </class>
  33795. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  33796. <!-- start class org.apache.hadoop.record.compiler.JField -->
  33797. <class name="JField" extends="java.lang.Object"
  33798. abstract="false"
  33799. static="false" final="false" visibility="public"
  33800. deprecated="not deprecated">
  33801. <constructor name="JField" type="java.lang.String, T"
  33802. static="false" final="false" visibility="public"
  33803. deprecated="not deprecated">
  33804. <doc>
  33805. <![CDATA[Creates a new instance of JField]]>
  33806. </doc>
  33807. </constructor>
  33808. <doc>
  33809. <![CDATA[A thin wrappper around record field.]]>
  33810. </doc>
  33811. </class>
  33812. <!-- end class org.apache.hadoop.record.compiler.JField -->
  33813. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  33814. <class name="JFile" extends="java.lang.Object"
  33815. abstract="false"
  33816. static="false" final="false" visibility="public"
  33817. deprecated="not deprecated">
  33818. <constructor name="JFile" type="java.lang.String, java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JFile&gt;, java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  33819. static="false" final="false" visibility="public"
  33820. deprecated="not deprecated">
  33821. <doc>
  33822. <![CDATA[Creates a new instance of JFile
  33823. @param name possibly full pathname to the file
  33824. @param inclFiles included files (as JFile)
  33825. @param recList List of records defined within this file]]>
  33826. </doc>
  33827. </constructor>
  33828. <method name="genCode" return="int"
  33829. abstract="false" native="false" synchronized="false"
  33830. static="false" final="false" visibility="public"
  33831. deprecated="not deprecated">
  33832. <param name="language" type="java.lang.String"/>
  33833. <param name="destDir" type="java.lang.String"/>
  33834. <param name="options" type="java.util.ArrayList&lt;java.lang.String&gt;"/>
  33835. <exception name="IOException" type="java.io.IOException"/>
  33836. <doc>
  33837. <![CDATA[Generate record code in given language. Language should be all
  33838. lowercase.]]>
  33839. </doc>
  33840. </method>
  33841. <doc>
  33842. <![CDATA[Container for the Hadoop Record DDL.
  33843. The main components of the file are filename, list of included files,
  33844. and records defined in that file.]]>
  33845. </doc>
  33846. </class>
  33847. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  33848. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  33849. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  33850. abstract="false"
  33851. static="false" final="false" visibility="public"
  33852. deprecated="not deprecated">
  33853. <constructor name="JFloat"
  33854. static="false" final="false" visibility="public"
  33855. deprecated="not deprecated">
  33856. <doc>
  33857. <![CDATA[Creates a new instance of JFloat]]>
  33858. </doc>
  33859. </constructor>
  33860. </class>
  33861. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  33862. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  33863. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  33864. abstract="false"
  33865. static="false" final="false" visibility="public"
  33866. deprecated="not deprecated">
  33867. <constructor name="JInt"
  33868. static="false" final="false" visibility="public"
  33869. deprecated="not deprecated">
  33870. <doc>
  33871. <![CDATA[Creates a new instance of JInt]]>
  33872. </doc>
  33873. </constructor>
  33874. <doc>
  33875. <![CDATA[Code generator for "int" type]]>
  33876. </doc>
  33877. </class>
  33878. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  33879. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  33880. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  33881. abstract="false"
  33882. static="false" final="false" visibility="public"
  33883. deprecated="not deprecated">
  33884. <constructor name="JLong"
  33885. static="false" final="false" visibility="public"
  33886. deprecated="not deprecated">
  33887. <doc>
  33888. <![CDATA[Creates a new instance of JLong]]>
  33889. </doc>
  33890. </constructor>
  33891. <doc>
  33892. <![CDATA[Code generator for "long" type]]>
  33893. </doc>
  33894. </class>
  33895. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  33896. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  33897. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  33898. abstract="false"
  33899. static="false" final="false" visibility="public"
  33900. deprecated="not deprecated">
  33901. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  33902. static="false" final="false" visibility="public"
  33903. deprecated="not deprecated">
  33904. <doc>
  33905. <![CDATA[Creates a new instance of JMap]]>
  33906. </doc>
  33907. </constructor>
  33908. </class>
  33909. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  33910. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  33911. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  33912. abstract="false"
  33913. static="false" final="false" visibility="public"
  33914. deprecated="not deprecated">
  33915. <constructor name="JRecord" type="java.lang.String, java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JField&lt;org.apache.hadoop.record.compiler.JType&gt;&gt;"
  33916. static="false" final="false" visibility="public"
  33917. deprecated="not deprecated">
  33918. <doc>
  33919. <![CDATA[Creates a new instance of JRecord]]>
  33920. </doc>
  33921. </constructor>
  33922. </class>
  33923. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  33924. <!-- start class org.apache.hadoop.record.compiler.JString -->
  33925. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  33926. abstract="false"
  33927. static="false" final="false" visibility="public"
  33928. deprecated="not deprecated">
  33929. <constructor name="JString"
  33930. static="false" final="false" visibility="public"
  33931. deprecated="not deprecated">
  33932. <doc>
  33933. <![CDATA[Creates a new instance of JString]]>
  33934. </doc>
  33935. </constructor>
  33936. </class>
  33937. <!-- end class org.apache.hadoop.record.compiler.JString -->
  33938. <!-- start class org.apache.hadoop.record.compiler.JType -->
  33939. <class name="JType" extends="java.lang.Object"
  33940. abstract="true"
  33941. static="false" final="false" visibility="public"
  33942. deprecated="not deprecated">
  33943. <constructor name="JType"
  33944. static="false" final="false" visibility="public"
  33945. deprecated="not deprecated">
  33946. </constructor>
  33947. <doc>
  33948. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  33949. </doc>
  33950. </class>
  33951. <!-- end class org.apache.hadoop.record.compiler.JType -->
  33952. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  33953. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  33954. abstract="false"
  33955. static="false" final="false" visibility="public"
  33956. deprecated="not deprecated">
  33957. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  33958. static="false" final="false" visibility="public"
  33959. deprecated="not deprecated">
  33960. <doc>
  33961. <![CDATA[Creates a new instance of JVector]]>
  33962. </doc>
  33963. </constructor>
  33964. </class>
  33965. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  33966. </package>
  33967. <package name="org.apache.hadoop.record.compiler.ant">
  33968. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  33969. <class name="RccTask" extends="org.apache.tools.ant.Task"
  33970. abstract="false"
  33971. static="false" final="false" visibility="public"
  33972. deprecated="not deprecated">
  33973. <constructor name="RccTask"
  33974. static="false" final="false" visibility="public"
  33975. deprecated="not deprecated">
  33976. <doc>
  33977. <![CDATA[Creates a new instance of RccTask]]>
  33978. </doc>
  33979. </constructor>
  33980. <method name="setLanguage"
  33981. abstract="false" native="false" synchronized="false"
  33982. static="false" final="false" visibility="public"
  33983. deprecated="not deprecated">
  33984. <param name="language" type="java.lang.String"/>
  33985. <doc>
  33986. <![CDATA[Sets the output language option
  33987. @param language "java"/"c++"]]>
  33988. </doc>
  33989. </method>
  33990. <method name="setFile"
  33991. abstract="false" native="false" synchronized="false"
  33992. static="false" final="false" visibility="public"
  33993. deprecated="not deprecated">
  33994. <param name="file" type="java.io.File"/>
  33995. <doc>
  33996. <![CDATA[Sets the record definition file attribute
  33997. @param file record definition file]]>
  33998. </doc>
  33999. </method>
  34000. <method name="setFailonerror"
  34001. abstract="false" native="false" synchronized="false"
  34002. static="false" final="false" visibility="public"
  34003. deprecated="not deprecated">
  34004. <param name="flag" type="boolean"/>
  34005. <doc>
  34006. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  34007. @param flag true will throw build exception in case of failure (default)]]>
  34008. </doc>
  34009. </method>
  34010. <method name="setDestdir"
  34011. abstract="false" native="false" synchronized="false"
  34012. static="false" final="false" visibility="public"
  34013. deprecated="not deprecated">
  34014. <param name="dir" type="java.io.File"/>
  34015. <doc>
  34016. <![CDATA[Sets directory where output files will be generated
  34017. @param dir output directory]]>
  34018. </doc>
  34019. </method>
  34020. <method name="addFileset"
  34021. abstract="false" native="false" synchronized="false"
  34022. static="false" final="false" visibility="public"
  34023. deprecated="not deprecated">
  34024. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  34025. <doc>
  34026. <![CDATA[Adds a fileset that can consist of one or more files
  34027. @param set Set of record definition files]]>
  34028. </doc>
  34029. </method>
  34030. <method name="execute"
  34031. abstract="false" native="false" synchronized="false"
  34032. static="false" final="false" visibility="public"
  34033. deprecated="not deprecated">
  34034. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  34035. <doc>
  34036. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  34037. </doc>
  34038. </method>
  34039. <doc>
  34040. <![CDATA[Hadoop record compiler ant Task
  34041. <p> This task takes the given record definition files and compiles them into
  34042. java or c++
  34043. files. It is then up to the user to compile the generated files.
  34044. <p> The task requires the <code>file</code> or the nested fileset element to be
  34045. specified. Optional attributes are <code>language</code> (set the output
  34046. language, default is "java"),
  34047. <code>destdir</code> (name of the destination directory for generated java/c++
  34048. code, default is ".") and <code>failonerror</code> (specifies error handling
  34049. behavior. default is true).
  34050. <p><h4>Usage</h4>
  34051. <pre>
  34052. &lt;recordcc
  34053. destdir="${basedir}/gensrc"
  34054. language="java"&gt;
  34055. &lt;fileset include="**\/*.jr" /&gt;
  34056. &lt;/recordcc&gt;
  34057. </pre>]]>
  34058. </doc>
  34059. </class>
  34060. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  34061. </package>
  34062. <package name="org.apache.hadoop.record.compiler.generated">
  34063. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  34064. <class name="ParseException" extends="java.lang.Exception"
  34065. abstract="false"
  34066. static="false" final="false" visibility="public"
  34067. deprecated="not deprecated">
  34068. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  34069. static="false" final="false" visibility="public"
  34070. deprecated="not deprecated">
  34071. <doc>
  34072. <![CDATA[This constructor is used by the method "generateParseException"
  34073. in the generated parser. Calling this constructor generates
  34074. a new object of this type with the fields "currentToken",
  34075. "expectedTokenSequences", and "tokenImage" set. The boolean
  34076. flag "specialConstructor" is also set to true to indicate that
  34077. this constructor was used to create this object.
  34078. This constructor calls its super class with the empty string
  34079. to force the "toString" method of parent class "Throwable" to
  34080. print the error message in the form:
  34081. ParseException: <result of getMessage>]]>
  34082. </doc>
  34083. </constructor>
  34084. <constructor name="ParseException"
  34085. static="false" final="false" visibility="public"
  34086. deprecated="not deprecated">
  34087. <doc>
  34088. <![CDATA[The following constructors are for use by you for whatever
  34089. purpose you can think of. Constructing the exception in this
  34090. manner makes the exception behave in the normal way - i.e., as
  34091. documented in the class "Throwable". The fields "errorToken",
  34092. "expectedTokenSequences", and "tokenImage" do not contain
  34093. relevant information. The JavaCC generated code does not use
  34094. these constructors.]]>
  34095. </doc>
  34096. </constructor>
  34097. <constructor name="ParseException" type="java.lang.String"
  34098. static="false" final="false" visibility="public"
  34099. deprecated="not deprecated">
  34100. </constructor>
  34101. <method name="getMessage" return="java.lang.String"
  34102. abstract="false" native="false" synchronized="false"
  34103. static="false" final="false" visibility="public"
  34104. deprecated="not deprecated">
  34105. <doc>
  34106. <![CDATA[This method has the standard behavior when this object has been
  34107. created using the standard constructors. Otherwise, it uses
  34108. "currentToken" and "expectedTokenSequences" to generate a parse
  34109. error message and returns it. If this object has been created
  34110. due to a parse error, and you do not catch it (it gets thrown
  34111. from the parser), then this method is called during the printing
  34112. of the final stack trace, and hence the correct error message
  34113. gets displayed.]]>
  34114. </doc>
  34115. </method>
  34116. <method name="add_escapes" return="java.lang.String"
  34117. abstract="false" native="false" synchronized="false"
  34118. static="false" final="false" visibility="protected"
  34119. deprecated="not deprecated">
  34120. <param name="str" type="java.lang.String"/>
  34121. <doc>
  34122. <![CDATA[Used to convert raw characters to their escaped version
  34123. when these raw version cannot be used as part of an ASCII
  34124. string literal.]]>
  34125. </doc>
  34126. </method>
  34127. <field name="specialConstructor" type="boolean"
  34128. transient="false" volatile="false"
  34129. static="false" final="false" visibility="protected"
  34130. deprecated="not deprecated">
  34131. <doc>
  34132. <![CDATA[This variable determines which constructor was used to create
  34133. this object and thereby affects the semantics of the
  34134. "getMessage" method (see below).]]>
  34135. </doc>
  34136. </field>
  34137. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  34138. transient="false" volatile="false"
  34139. static="false" final="false" visibility="public"
  34140. deprecated="not deprecated">
  34141. <doc>
  34142. <![CDATA[This is the last token that has been consumed successfully. If
  34143. this object has been created due to a parse error, the token
  34144. followng this token will (therefore) be the first error token.]]>
  34145. </doc>
  34146. </field>
  34147. <field name="expectedTokenSequences" type="int[][]"
  34148. transient="false" volatile="false"
  34149. static="false" final="false" visibility="public"
  34150. deprecated="not deprecated">
  34151. <doc>
  34152. <![CDATA[Each entry in this array is an array of integers. Each array
  34153. of integers represents a sequence of tokens (by their ordinal
  34154. values) that is expected at this point of the parse.]]>
  34155. </doc>
  34156. </field>
  34157. <field name="tokenImage" type="java.lang.String[]"
  34158. transient="false" volatile="false"
  34159. static="false" final="false" visibility="public"
  34160. deprecated="not deprecated">
  34161. <doc>
  34162. <![CDATA[This is a reference to the "tokenImage" array of the generated
  34163. parser within which the parse error occurred. This array is
  34164. defined in the generated ...Constants interface.]]>
  34165. </doc>
  34166. </field>
  34167. <field name="eol" type="java.lang.String"
  34168. transient="false" volatile="false"
  34169. static="false" final="false" visibility="protected"
  34170. deprecated="not deprecated">
  34171. <doc>
  34172. <![CDATA[The end of line string for this machine.]]>
  34173. </doc>
  34174. </field>
  34175. <doc>
  34176. <![CDATA[This exception is thrown when parse errors are encountered.
  34177. You can explicitly create objects of this exception type by
  34178. calling the method generateParseException in the generated
  34179. parser.
  34180. You can modify this class to customize your error reporting
  34181. mechanisms so long as you retain the public fields.]]>
  34182. </doc>
  34183. </class>
  34184. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  34185. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  34186. <class name="Rcc" extends="java.lang.Object"
  34187. abstract="false"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  34191. <constructor name="Rcc" type="java.io.InputStream"
  34192. static="false" final="false" visibility="public"
  34193. deprecated="not deprecated">
  34194. </constructor>
  34195. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  34196. static="false" final="false" visibility="public"
  34197. deprecated="not deprecated">
  34198. </constructor>
  34199. <constructor name="Rcc" type="java.io.Reader"
  34200. static="false" final="false" visibility="public"
  34201. deprecated="not deprecated">
  34202. </constructor>
  34203. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  34204. static="false" final="false" visibility="public"
  34205. deprecated="not deprecated">
  34206. </constructor>
  34207. <method name="main"
  34208. abstract="false" native="false" synchronized="false"
  34209. static="true" final="false" visibility="public"
  34210. deprecated="not deprecated">
  34211. <param name="args" type="java.lang.String[]"/>
  34212. </method>
  34213. <method name="usage"
  34214. abstract="false" native="false" synchronized="false"
  34215. static="true" final="false" visibility="public"
  34216. deprecated="not deprecated">
  34217. </method>
  34218. <method name="driver" return="int"
  34219. abstract="false" native="false" synchronized="false"
  34220. static="true" final="false" visibility="public"
  34221. deprecated="not deprecated">
  34222. <param name="args" type="java.lang.String[]"/>
  34223. </method>
  34224. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  34225. abstract="false" native="false" synchronized="false"
  34226. static="false" final="true" visibility="public"
  34227. deprecated="not deprecated">
  34228. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34229. </method>
  34230. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  34231. abstract="false" native="false" synchronized="false"
  34232. static="false" final="true" visibility="public"
  34233. deprecated="not deprecated">
  34234. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34235. </method>
  34236. <method name="Module" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  34237. abstract="false" native="false" synchronized="false"
  34238. static="false" final="true" visibility="public"
  34239. deprecated="not deprecated">
  34240. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34241. </method>
  34242. <method name="ModuleName" return="java.lang.String"
  34243. abstract="false" native="false" synchronized="false"
  34244. static="false" final="true" visibility="public"
  34245. deprecated="not deprecated">
  34246. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34247. </method>
  34248. <method name="RecordList" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  34249. abstract="false" native="false" synchronized="false"
  34250. static="false" final="true" visibility="public"
  34251. deprecated="not deprecated">
  34252. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34253. </method>
  34254. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  34255. abstract="false" native="false" synchronized="false"
  34256. static="false" final="true" visibility="public"
  34257. deprecated="not deprecated">
  34258. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34259. </method>
  34260. <method name="Field" return="org.apache.hadoop.record.compiler.JField&lt;org.apache.hadoop.record.compiler.JType&gt;"
  34261. abstract="false" native="false" synchronized="false"
  34262. static="false" final="true" visibility="public"
  34263. deprecated="not deprecated">
  34264. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34265. </method>
  34266. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  34267. abstract="false" native="false" synchronized="false"
  34268. static="false" final="true" visibility="public"
  34269. deprecated="not deprecated">
  34270. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34271. </method>
  34272. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  34273. abstract="false" native="false" synchronized="false"
  34274. static="false" final="true" visibility="public"
  34275. deprecated="not deprecated">
  34276. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34277. </method>
  34278. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  34279. abstract="false" native="false" synchronized="false"
  34280. static="false" final="true" visibility="public"
  34281. deprecated="not deprecated">
  34282. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  34283. </method>
  34284. <method name="ReInit"
  34285. abstract="false" native="false" synchronized="false"
  34286. static="false" final="false" visibility="public"
  34287. deprecated="not deprecated">
  34288. <param name="stream" type="java.io.InputStream"/>
  34289. </method>
  34290. <method name="ReInit"
  34291. abstract="false" native="false" synchronized="false"
  34292. static="false" final="false" visibility="public"
  34293. deprecated="not deprecated">
  34294. <param name="stream" type="java.io.InputStream"/>
  34295. <param name="encoding" type="java.lang.String"/>
  34296. </method>
  34297. <method name="ReInit"
  34298. abstract="false" native="false" synchronized="false"
  34299. static="false" final="false" visibility="public"
  34300. deprecated="not deprecated">
  34301. <param name="stream" type="java.io.Reader"/>
  34302. </method>
  34303. <method name="ReInit"
  34304. abstract="false" native="false" synchronized="false"
  34305. static="false" final="false" visibility="public"
  34306. deprecated="not deprecated">
  34307. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  34308. </method>
  34309. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34310. abstract="false" native="false" synchronized="false"
  34311. static="false" final="true" visibility="public"
  34312. deprecated="not deprecated">
  34313. </method>
  34314. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34315. abstract="false" native="false" synchronized="false"
  34316. static="false" final="true" visibility="public"
  34317. deprecated="not deprecated">
  34318. <param name="index" type="int"/>
  34319. </method>
  34320. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  34321. abstract="false" native="false" synchronized="false"
  34322. static="false" final="false" visibility="public"
  34323. deprecated="not deprecated">
  34324. </method>
  34325. <method name="enable_tracing"
  34326. abstract="false" native="false" synchronized="false"
  34327. static="false" final="true" visibility="public"
  34328. deprecated="not deprecated">
  34329. </method>
  34330. <method name="disable_tracing"
  34331. abstract="false" native="false" synchronized="false"
  34332. static="false" final="true" visibility="public"
  34333. deprecated="not deprecated">
  34334. </method>
  34335. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  34336. transient="false" volatile="false"
  34337. static="false" final="false" visibility="public"
  34338. deprecated="not deprecated">
  34339. </field>
  34340. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  34341. transient="false" volatile="false"
  34342. static="false" final="false" visibility="public"
  34343. deprecated="not deprecated">
  34344. </field>
  34345. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  34346. transient="false" volatile="false"
  34347. static="false" final="false" visibility="public"
  34348. deprecated="not deprecated">
  34349. </field>
  34350. </class>
  34351. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  34352. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  34353. <interface name="RccConstants" abstract="true"
  34354. static="false" final="false" visibility="public"
  34355. deprecated="not deprecated">
  34356. <field name="EOF" type="int"
  34357. transient="false" volatile="false"
  34358. static="true" final="true" visibility="public"
  34359. deprecated="not deprecated">
  34360. </field>
  34361. <field name="MODULE_TKN" type="int"
  34362. transient="false" volatile="false"
  34363. static="true" final="true" visibility="public"
  34364. deprecated="not deprecated">
  34365. </field>
  34366. <field name="RECORD_TKN" type="int"
  34367. transient="false" volatile="false"
  34368. static="true" final="true" visibility="public"
  34369. deprecated="not deprecated">
  34370. </field>
  34371. <field name="INCLUDE_TKN" type="int"
  34372. transient="false" volatile="false"
  34373. static="true" final="true" visibility="public"
  34374. deprecated="not deprecated">
  34375. </field>
  34376. <field name="BYTE_TKN" type="int"
  34377. transient="false" volatile="false"
  34378. static="true" final="true" visibility="public"
  34379. deprecated="not deprecated">
  34380. </field>
  34381. <field name="BOOLEAN_TKN" type="int"
  34382. transient="false" volatile="false"
  34383. static="true" final="true" visibility="public"
  34384. deprecated="not deprecated">
  34385. </field>
  34386. <field name="INT_TKN" type="int"
  34387. transient="false" volatile="false"
  34388. static="true" final="true" visibility="public"
  34389. deprecated="not deprecated">
  34390. </field>
  34391. <field name="LONG_TKN" type="int"
  34392. transient="false" volatile="false"
  34393. static="true" final="true" visibility="public"
  34394. deprecated="not deprecated">
  34395. </field>
  34396. <field name="FLOAT_TKN" type="int"
  34397. transient="false" volatile="false"
  34398. static="true" final="true" visibility="public"
  34399. deprecated="not deprecated">
  34400. </field>
  34401. <field name="DOUBLE_TKN" type="int"
  34402. transient="false" volatile="false"
  34403. static="true" final="true" visibility="public"
  34404. deprecated="not deprecated">
  34405. </field>
  34406. <field name="USTRING_TKN" type="int"
  34407. transient="false" volatile="false"
  34408. static="true" final="true" visibility="public"
  34409. deprecated="not deprecated">
  34410. </field>
  34411. <field name="BUFFER_TKN" type="int"
  34412. transient="false" volatile="false"
  34413. static="true" final="true" visibility="public"
  34414. deprecated="not deprecated">
  34415. </field>
  34416. <field name="VECTOR_TKN" type="int"
  34417. transient="false" volatile="false"
  34418. static="true" final="true" visibility="public"
  34419. deprecated="not deprecated">
  34420. </field>
  34421. <field name="MAP_TKN" type="int"
  34422. transient="false" volatile="false"
  34423. static="true" final="true" visibility="public"
  34424. deprecated="not deprecated">
  34425. </field>
  34426. <field name="LBRACE_TKN" type="int"
  34427. transient="false" volatile="false"
  34428. static="true" final="true" visibility="public"
  34429. deprecated="not deprecated">
  34430. </field>
  34431. <field name="RBRACE_TKN" type="int"
  34432. transient="false" volatile="false"
  34433. static="true" final="true" visibility="public"
  34434. deprecated="not deprecated">
  34435. </field>
  34436. <field name="LT_TKN" type="int"
  34437. transient="false" volatile="false"
  34438. static="true" final="true" visibility="public"
  34439. deprecated="not deprecated">
  34440. </field>
  34441. <field name="GT_TKN" type="int"
  34442. transient="false" volatile="false"
  34443. static="true" final="true" visibility="public"
  34444. deprecated="not deprecated">
  34445. </field>
  34446. <field name="SEMICOLON_TKN" type="int"
  34447. transient="false" volatile="false"
  34448. static="true" final="true" visibility="public"
  34449. deprecated="not deprecated">
  34450. </field>
  34451. <field name="COMMA_TKN" type="int"
  34452. transient="false" volatile="false"
  34453. static="true" final="true" visibility="public"
  34454. deprecated="not deprecated">
  34455. </field>
  34456. <field name="DOT_TKN" type="int"
  34457. transient="false" volatile="false"
  34458. static="true" final="true" visibility="public"
  34459. deprecated="not deprecated">
  34460. </field>
  34461. <field name="CSTRING_TKN" type="int"
  34462. transient="false" volatile="false"
  34463. static="true" final="true" visibility="public"
  34464. deprecated="not deprecated">
  34465. </field>
  34466. <field name="IDENT_TKN" type="int"
  34467. transient="false" volatile="false"
  34468. static="true" final="true" visibility="public"
  34469. deprecated="not deprecated">
  34470. </field>
  34471. <field name="DEFAULT" type="int"
  34472. transient="false" volatile="false"
  34473. static="true" final="true" visibility="public"
  34474. deprecated="not deprecated">
  34475. </field>
  34476. <field name="WithinOneLineComment" type="int"
  34477. transient="false" volatile="false"
  34478. static="true" final="true" visibility="public"
  34479. deprecated="not deprecated">
  34480. </field>
  34481. <field name="WithinMultiLineComment" type="int"
  34482. transient="false" volatile="false"
  34483. static="true" final="true" visibility="public"
  34484. deprecated="not deprecated">
  34485. </field>
  34486. <field name="tokenImage" type="java.lang.String[]"
  34487. transient="false" volatile="false"
  34488. static="true" final="true" visibility="public"
  34489. deprecated="not deprecated">
  34490. </field>
  34491. </interface>
  34492. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  34493. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  34494. <class name="RccTokenManager" extends="java.lang.Object"
  34495. abstract="false"
  34496. static="false" final="false" visibility="public"
  34497. deprecated="not deprecated">
  34498. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  34499. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  34500. static="false" final="false" visibility="public"
  34501. deprecated="not deprecated">
  34502. </constructor>
  34503. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  34504. static="false" final="false" visibility="public"
  34505. deprecated="not deprecated">
  34506. </constructor>
  34507. <method name="setDebugStream"
  34508. abstract="false" native="false" synchronized="false"
  34509. static="false" final="false" visibility="public"
  34510. deprecated="not deprecated">
  34511. <param name="ds" type="java.io.PrintStream"/>
  34512. </method>
  34513. <method name="ReInit"
  34514. abstract="false" native="false" synchronized="false"
  34515. static="false" final="false" visibility="public"
  34516. deprecated="not deprecated">
  34517. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  34518. </method>
  34519. <method name="ReInit"
  34520. abstract="false" native="false" synchronized="false"
  34521. static="false" final="false" visibility="public"
  34522. deprecated="not deprecated">
  34523. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  34524. <param name="lexState" type="int"/>
  34525. </method>
  34526. <method name="SwitchTo"
  34527. abstract="false" native="false" synchronized="false"
  34528. static="false" final="false" visibility="public"
  34529. deprecated="not deprecated">
  34530. <param name="lexState" type="int"/>
  34531. </method>
  34532. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34533. abstract="false" native="false" synchronized="false"
  34534. static="false" final="false" visibility="protected"
  34535. deprecated="not deprecated">
  34536. </method>
  34537. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34538. abstract="false" native="false" synchronized="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. </method>
  34542. <field name="debugStream" type="java.io.PrintStream"
  34543. transient="false" volatile="false"
  34544. static="false" final="false" visibility="public"
  34545. deprecated="not deprecated">
  34546. </field>
  34547. <field name="jjstrLiteralImages" type="java.lang.String[]"
  34548. transient="false" volatile="false"
  34549. static="true" final="true" visibility="public"
  34550. deprecated="not deprecated">
  34551. </field>
  34552. <field name="lexStateNames" type="java.lang.String[]"
  34553. transient="false" volatile="false"
  34554. static="true" final="true" visibility="public"
  34555. deprecated="not deprecated">
  34556. </field>
  34557. <field name="jjnewLexState" type="int[]"
  34558. transient="false" volatile="false"
  34559. static="true" final="true" visibility="public"
  34560. deprecated="not deprecated">
  34561. </field>
  34562. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  34563. transient="false" volatile="false"
  34564. static="false" final="false" visibility="protected"
  34565. deprecated="not deprecated">
  34566. </field>
  34567. <field name="curChar" type="char"
  34568. transient="false" volatile="false"
  34569. static="false" final="false" visibility="protected"
  34570. deprecated="not deprecated">
  34571. </field>
  34572. </class>
  34573. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  34574. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34575. <class name="SimpleCharStream" extends="java.lang.Object"
  34576. abstract="false"
  34577. static="false" final="false" visibility="public"
  34578. deprecated="not deprecated">
  34579. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  34580. static="false" final="false" visibility="public"
  34581. deprecated="not deprecated">
  34582. </constructor>
  34583. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  34584. static="false" final="false" visibility="public"
  34585. deprecated="not deprecated">
  34586. </constructor>
  34587. <constructor name="SimpleCharStream" type="java.io.Reader"
  34588. static="false" final="false" visibility="public"
  34589. deprecated="not deprecated">
  34590. </constructor>
  34591. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  34592. static="false" final="false" visibility="public"
  34593. deprecated="not deprecated">
  34594. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34595. </constructor>
  34596. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  34597. static="false" final="false" visibility="public"
  34598. deprecated="not deprecated">
  34599. </constructor>
  34600. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  34601. static="false" final="false" visibility="public"
  34602. deprecated="not deprecated">
  34603. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34604. </constructor>
  34605. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  34606. static="false" final="false" visibility="public"
  34607. deprecated="not deprecated">
  34608. </constructor>
  34609. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  34610. static="false" final="false" visibility="public"
  34611. deprecated="not deprecated">
  34612. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34613. </constructor>
  34614. <constructor name="SimpleCharStream" type="java.io.InputStream"
  34615. static="false" final="false" visibility="public"
  34616. deprecated="not deprecated">
  34617. </constructor>
  34618. <method name="setTabSize"
  34619. abstract="false" native="false" synchronized="false"
  34620. static="false" final="false" visibility="protected"
  34621. deprecated="not deprecated">
  34622. <param name="i" type="int"/>
  34623. </method>
  34624. <method name="getTabSize" return="int"
  34625. abstract="false" native="false" synchronized="false"
  34626. static="false" final="false" visibility="protected"
  34627. deprecated="not deprecated">
  34628. <param name="i" type="int"/>
  34629. </method>
  34630. <method name="ExpandBuff"
  34631. abstract="false" native="false" synchronized="false"
  34632. static="false" final="false" visibility="protected"
  34633. deprecated="not deprecated">
  34634. <param name="wrapAround" type="boolean"/>
  34635. </method>
  34636. <method name="FillBuff"
  34637. abstract="false" native="false" synchronized="false"
  34638. static="false" final="false" visibility="protected"
  34639. deprecated="not deprecated">
  34640. <exception name="IOException" type="java.io.IOException"/>
  34641. </method>
  34642. <method name="BeginToken" return="char"
  34643. abstract="false" native="false" synchronized="false"
  34644. static="false" final="false" visibility="public"
  34645. deprecated="not deprecated">
  34646. <exception name="IOException" type="java.io.IOException"/>
  34647. </method>
  34648. <method name="UpdateLineColumn"
  34649. abstract="false" native="false" synchronized="false"
  34650. static="false" final="false" visibility="protected"
  34651. deprecated="not deprecated">
  34652. <param name="c" type="char"/>
  34653. </method>
  34654. <method name="readChar" return="char"
  34655. abstract="false" native="false" synchronized="false"
  34656. static="false" final="false" visibility="public"
  34657. deprecated="not deprecated">
  34658. <exception name="IOException" type="java.io.IOException"/>
  34659. </method>
  34660. <method name="getEndColumn" return="int"
  34661. abstract="false" native="false" synchronized="false"
  34662. static="false" final="false" visibility="public"
  34663. deprecated="not deprecated">
  34664. </method>
  34665. <method name="getEndLine" return="int"
  34666. abstract="false" native="false" synchronized="false"
  34667. static="false" final="false" visibility="public"
  34668. deprecated="not deprecated">
  34669. </method>
  34670. <method name="getBeginColumn" return="int"
  34671. abstract="false" native="false" synchronized="false"
  34672. static="false" final="false" visibility="public"
  34673. deprecated="not deprecated">
  34674. </method>
  34675. <method name="getBeginLine" return="int"
  34676. abstract="false" native="false" synchronized="false"
  34677. static="false" final="false" visibility="public"
  34678. deprecated="not deprecated">
  34679. </method>
  34680. <method name="backup"
  34681. abstract="false" native="false" synchronized="false"
  34682. static="false" final="false" visibility="public"
  34683. deprecated="not deprecated">
  34684. <param name="amount" type="int"/>
  34685. </method>
  34686. <method name="ReInit"
  34687. abstract="false" native="false" synchronized="false"
  34688. static="false" final="false" visibility="public"
  34689. deprecated="not deprecated">
  34690. <param name="dstream" type="java.io.Reader"/>
  34691. <param name="startline" type="int"/>
  34692. <param name="startcolumn" type="int"/>
  34693. <param name="buffersize" type="int"/>
  34694. </method>
  34695. <method name="ReInit"
  34696. abstract="false" native="false" synchronized="false"
  34697. static="false" final="false" visibility="public"
  34698. deprecated="not deprecated">
  34699. <param name="dstream" type="java.io.Reader"/>
  34700. <param name="startline" type="int"/>
  34701. <param name="startcolumn" type="int"/>
  34702. </method>
  34703. <method name="ReInit"
  34704. abstract="false" native="false" synchronized="false"
  34705. static="false" final="false" visibility="public"
  34706. deprecated="not deprecated">
  34707. <param name="dstream" type="java.io.Reader"/>
  34708. </method>
  34709. <method name="ReInit"
  34710. abstract="false" native="false" synchronized="false"
  34711. static="false" final="false" visibility="public"
  34712. deprecated="not deprecated">
  34713. <param name="dstream" type="java.io.InputStream"/>
  34714. <param name="encoding" type="java.lang.String"/>
  34715. <param name="startline" type="int"/>
  34716. <param name="startcolumn" type="int"/>
  34717. <param name="buffersize" type="int"/>
  34718. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34719. </method>
  34720. <method name="ReInit"
  34721. abstract="false" native="false" synchronized="false"
  34722. static="false" final="false" visibility="public"
  34723. deprecated="not deprecated">
  34724. <param name="dstream" type="java.io.InputStream"/>
  34725. <param name="startline" type="int"/>
  34726. <param name="startcolumn" type="int"/>
  34727. <param name="buffersize" type="int"/>
  34728. </method>
  34729. <method name="ReInit"
  34730. abstract="false" native="false" synchronized="false"
  34731. static="false" final="false" visibility="public"
  34732. deprecated="not deprecated">
  34733. <param name="dstream" type="java.io.InputStream"/>
  34734. <param name="encoding" type="java.lang.String"/>
  34735. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34736. </method>
  34737. <method name="ReInit"
  34738. abstract="false" native="false" synchronized="false"
  34739. static="false" final="false" visibility="public"
  34740. deprecated="not deprecated">
  34741. <param name="dstream" type="java.io.InputStream"/>
  34742. </method>
  34743. <method name="ReInit"
  34744. abstract="false" native="false" synchronized="false"
  34745. static="false" final="false" visibility="public"
  34746. deprecated="not deprecated">
  34747. <param name="dstream" type="java.io.InputStream"/>
  34748. <param name="encoding" type="java.lang.String"/>
  34749. <param name="startline" type="int"/>
  34750. <param name="startcolumn" type="int"/>
  34751. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  34752. </method>
  34753. <method name="ReInit"
  34754. abstract="false" native="false" synchronized="false"
  34755. static="false" final="false" visibility="public"
  34756. deprecated="not deprecated">
  34757. <param name="dstream" type="java.io.InputStream"/>
  34758. <param name="startline" type="int"/>
  34759. <param name="startcolumn" type="int"/>
  34760. </method>
  34761. <method name="GetImage" return="java.lang.String"
  34762. abstract="false" native="false" synchronized="false"
  34763. static="false" final="false" visibility="public"
  34764. deprecated="not deprecated">
  34765. </method>
  34766. <method name="GetSuffix" return="char[]"
  34767. abstract="false" native="false" synchronized="false"
  34768. static="false" final="false" visibility="public"
  34769. deprecated="not deprecated">
  34770. <param name="len" type="int"/>
  34771. </method>
  34772. <method name="Done"
  34773. abstract="false" native="false" synchronized="false"
  34774. static="false" final="false" visibility="public"
  34775. deprecated="not deprecated">
  34776. </method>
  34777. <method name="adjustBeginLineColumn"
  34778. abstract="false" native="false" synchronized="false"
  34779. static="false" final="false" visibility="public"
  34780. deprecated="not deprecated">
  34781. <param name="newLine" type="int"/>
  34782. <param name="newCol" type="int"/>
  34783. <doc>
  34784. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  34785. </doc>
  34786. </method>
  34787. <field name="staticFlag" type="boolean"
  34788. transient="false" volatile="false"
  34789. static="true" final="true" visibility="public"
  34790. deprecated="not deprecated">
  34791. </field>
  34792. <field name="bufpos" type="int"
  34793. transient="false" volatile="false"
  34794. static="false" final="false" visibility="public"
  34795. deprecated="not deprecated">
  34796. </field>
  34797. <field name="bufline" type="int[]"
  34798. transient="false" volatile="false"
  34799. static="false" final="false" visibility="protected"
  34800. deprecated="not deprecated">
  34801. </field>
  34802. <field name="bufcolumn" type="int[]"
  34803. transient="false" volatile="false"
  34804. static="false" final="false" visibility="protected"
  34805. deprecated="not deprecated">
  34806. </field>
  34807. <field name="column" type="int"
  34808. transient="false" volatile="false"
  34809. static="false" final="false" visibility="protected"
  34810. deprecated="not deprecated">
  34811. </field>
  34812. <field name="line" type="int"
  34813. transient="false" volatile="false"
  34814. static="false" final="false" visibility="protected"
  34815. deprecated="not deprecated">
  34816. </field>
  34817. <field name="prevCharIsCR" type="boolean"
  34818. transient="false" volatile="false"
  34819. static="false" final="false" visibility="protected"
  34820. deprecated="not deprecated">
  34821. </field>
  34822. <field name="prevCharIsLF" type="boolean"
  34823. transient="false" volatile="false"
  34824. static="false" final="false" visibility="protected"
  34825. deprecated="not deprecated">
  34826. </field>
  34827. <field name="inputStream" type="java.io.Reader"
  34828. transient="false" volatile="false"
  34829. static="false" final="false" visibility="protected"
  34830. deprecated="not deprecated">
  34831. </field>
  34832. <field name="buffer" type="char[]"
  34833. transient="false" volatile="false"
  34834. static="false" final="false" visibility="protected"
  34835. deprecated="not deprecated">
  34836. </field>
  34837. <field name="maxNextCharInd" type="int"
  34838. transient="false" volatile="false"
  34839. static="false" final="false" visibility="protected"
  34840. deprecated="not deprecated">
  34841. </field>
  34842. <field name="inBuf" type="int"
  34843. transient="false" volatile="false"
  34844. static="false" final="false" visibility="protected"
  34845. deprecated="not deprecated">
  34846. </field>
  34847. <field name="tabSize" type="int"
  34848. transient="false" volatile="false"
  34849. static="false" final="false" visibility="protected"
  34850. deprecated="not deprecated">
  34851. </field>
  34852. <doc>
  34853. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  34854. contain only ASCII characters (without unicode processing).]]>
  34855. </doc>
  34856. </class>
  34857. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  34858. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  34859. <class name="Token" extends="java.lang.Object"
  34860. abstract="false"
  34861. static="false" final="false" visibility="public"
  34862. deprecated="not deprecated">
  34863. <constructor name="Token"
  34864. static="false" final="false" visibility="public"
  34865. deprecated="not deprecated">
  34866. </constructor>
  34867. <method name="toString" return="java.lang.String"
  34868. abstract="false" native="false" synchronized="false"
  34869. static="false" final="false" visibility="public"
  34870. deprecated="not deprecated">
  34871. <doc>
  34872. <![CDATA[Returns the image.]]>
  34873. </doc>
  34874. </method>
  34875. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  34876. abstract="false" native="false" synchronized="false"
  34877. static="true" final="true" visibility="public"
  34878. deprecated="not deprecated">
  34879. <param name="ofKind" type="int"/>
  34880. <doc>
  34881. <![CDATA[Returns a new Token object, by default. However, if you want, you
  34882. can create and return subclass objects based on the value of ofKind.
  34883. Simply add the cases to the switch for all those special cases.
  34884. For example, if you have a subclass of Token called IDToken that
  34885. you want to create if ofKind is ID, simlpy add something like :
  34886. case MyParserConstants.ID : return new IDToken();
  34887. to the following switch statement. Then you can cast matchedToken
  34888. variable to the appropriate type and use it in your lexical actions.]]>
  34889. </doc>
  34890. </method>
  34891. <field name="kind" type="int"
  34892. transient="false" volatile="false"
  34893. static="false" final="false" visibility="public"
  34894. deprecated="not deprecated">
  34895. <doc>
  34896. <![CDATA[An integer that describes the kind of this token. This numbering
  34897. system is determined by JavaCCParser, and a table of these numbers is
  34898. stored in the file ...Constants.java.]]>
  34899. </doc>
  34900. </field>
  34901. <field name="beginLine" type="int"
  34902. transient="false" volatile="false"
  34903. static="false" final="false" visibility="public"
  34904. deprecated="not deprecated">
  34905. <doc>
  34906. <![CDATA[beginLine and beginColumn describe the position of the first character
  34907. of this token; endLine and endColumn describe the position of the
  34908. last character of this token.]]>
  34909. </doc>
  34910. </field>
  34911. <field name="beginColumn" type="int"
  34912. transient="false" volatile="false"
  34913. static="false" final="false" visibility="public"
  34914. deprecated="not deprecated">
  34915. <doc>
  34916. <![CDATA[beginLine and beginColumn describe the position of the first character
  34917. of this token; endLine and endColumn describe the position of the
  34918. last character of this token.]]>
  34919. </doc>
  34920. </field>
  34921. <field name="endLine" type="int"
  34922. transient="false" volatile="false"
  34923. static="false" final="false" visibility="public"
  34924. deprecated="not deprecated">
  34925. <doc>
  34926. <![CDATA[beginLine and beginColumn describe the position of the first character
  34927. of this token; endLine and endColumn describe the position of the
  34928. last character of this token.]]>
  34929. </doc>
  34930. </field>
  34931. <field name="endColumn" type="int"
  34932. transient="false" volatile="false"
  34933. static="false" final="false" visibility="public"
  34934. deprecated="not deprecated">
  34935. <doc>
  34936. <![CDATA[beginLine and beginColumn describe the position of the first character
  34937. of this token; endLine and endColumn describe the position of the
  34938. last character of this token.]]>
  34939. </doc>
  34940. </field>
  34941. <field name="image" type="java.lang.String"
  34942. transient="false" volatile="false"
  34943. static="false" final="false" visibility="public"
  34944. deprecated="not deprecated">
  34945. <doc>
  34946. <![CDATA[The string image of the token.]]>
  34947. </doc>
  34948. </field>
  34949. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  34950. transient="false" volatile="false"
  34951. static="false" final="false" visibility="public"
  34952. deprecated="not deprecated">
  34953. <doc>
  34954. <![CDATA[A reference to the next regular (non-special) token from the input
  34955. stream. If this is the last token from the input stream, or if the
  34956. token manager has not read tokens beyond this one, this field is
  34957. set to null. This is true only if this token is also a regular
  34958. token. Otherwise, see below for a description of the contents of
  34959. this field.]]>
  34960. </doc>
  34961. </field>
  34962. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  34963. transient="false" volatile="false"
  34964. static="false" final="false" visibility="public"
  34965. deprecated="not deprecated">
  34966. <doc>
  34967. <![CDATA[This field is used to access special tokens that occur prior to this
  34968. token, but after the immediately preceding regular (non-special) token.
  34969. If there are no such special tokens, this field is set to null.
  34970. When there are more than one such special token, this field refers
  34971. to the last of these special tokens, which in turn refers to the next
  34972. previous special token through its specialToken field, and so on
  34973. until the first special token (whose specialToken field is null).
  34974. The next fields of special tokens refer to other special tokens that
  34975. immediately follow it (without an intervening regular token). If there
  34976. is no such token, this field is null.]]>
  34977. </doc>
  34978. </field>
  34979. <doc>
  34980. <![CDATA[Describes the input token stream.]]>
  34981. </doc>
  34982. </class>
  34983. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  34984. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  34985. <class name="TokenMgrError" extends="java.lang.Error"
  34986. abstract="false"
  34987. static="false" final="false" visibility="public"
  34988. deprecated="not deprecated">
  34989. <constructor name="TokenMgrError"
  34990. static="false" final="false" visibility="public"
  34991. deprecated="not deprecated">
  34992. </constructor>
  34993. <constructor name="TokenMgrError" type="java.lang.String, int"
  34994. static="false" final="false" visibility="public"
  34995. deprecated="not deprecated">
  34996. </constructor>
  34997. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  34998. static="false" final="false" visibility="public"
  34999. deprecated="not deprecated">
  35000. </constructor>
  35001. <method name="addEscapes" return="java.lang.String"
  35002. abstract="false" native="false" synchronized="false"
  35003. static="true" final="true" visibility="protected"
  35004. deprecated="not deprecated">
  35005. <param name="str" type="java.lang.String"/>
  35006. <doc>
  35007. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  35008. equivalents in the given string]]>
  35009. </doc>
  35010. </method>
  35011. <method name="LexicalError" return="java.lang.String"
  35012. abstract="false" native="false" synchronized="false"
  35013. static="true" final="false" visibility="protected"
  35014. deprecated="not deprecated">
  35015. <param name="EOFSeen" type="boolean"/>
  35016. <param name="lexState" type="int"/>
  35017. <param name="errorLine" type="int"/>
  35018. <param name="errorColumn" type="int"/>
  35019. <param name="errorAfter" type="java.lang.String"/>
  35020. <param name="curChar" type="char"/>
  35021. <doc>
  35022. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  35023. token manager to indicate a lexical error.
  35024. Parameters :
  35025. EOFSeen : indicates if EOF caused the lexicl error
  35026. curLexState : lexical state in which this error occured
  35027. errorLine : line number when the error occured
  35028. errorColumn : column number when the error occured
  35029. errorAfter : prefix that was seen before this error occured
  35030. curchar : the offending character
  35031. Note: You can customize the lexical error message by modifying this method.]]>
  35032. </doc>
  35033. </method>
  35034. <method name="getMessage" return="java.lang.String"
  35035. abstract="false" native="false" synchronized="false"
  35036. static="false" final="false" visibility="public"
  35037. deprecated="not deprecated">
  35038. <doc>
  35039. <![CDATA[You can also modify the body of this method to customize your error messages.
  35040. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  35041. of end-users concern, so you can return something like :
  35042. "Internal Error : Please file a bug report .... "
  35043. from this method for such cases in the release version of your parser.]]>
  35044. </doc>
  35045. </method>
  35046. </class>
  35047. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  35048. </package>
  35049. <package name="org.apache.hadoop.record.meta">
  35050. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  35051. <class name="FieldTypeInfo" extends="java.lang.Object"
  35052. abstract="false"
  35053. static="false" final="false" visibility="public"
  35054. deprecated="not deprecated">
  35055. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  35056. abstract="false" native="false" synchronized="false"
  35057. static="false" final="false" visibility="public"
  35058. deprecated="not deprecated">
  35059. <doc>
  35060. <![CDATA[get the field's TypeID object]]>
  35061. </doc>
  35062. </method>
  35063. <method name="getFieldID" return="java.lang.String"
  35064. abstract="false" native="false" synchronized="false"
  35065. static="false" final="false" visibility="public"
  35066. deprecated="not deprecated">
  35067. <doc>
  35068. <![CDATA[get the field's id (name)]]>
  35069. </doc>
  35070. </method>
  35071. <method name="equals" return="boolean"
  35072. abstract="false" native="false" synchronized="false"
  35073. static="false" final="false" visibility="public"
  35074. deprecated="not deprecated">
  35075. <param name="o" type="java.lang.Object"/>
  35076. <doc>
  35077. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  35078. </doc>
  35079. </method>
  35080. <method name="hashCode" return="int"
  35081. abstract="false" native="false" synchronized="false"
  35082. static="false" final="false" visibility="public"
  35083. deprecated="not deprecated">
  35084. <doc>
  35085. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  35086. be used as a hashmap key]]>
  35087. </doc>
  35088. </method>
  35089. <method name="equals" return="boolean"
  35090. abstract="false" native="false" synchronized="false"
  35091. static="false" final="false" visibility="public"
  35092. deprecated="not deprecated">
  35093. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  35094. </method>
  35095. <doc>
  35096. <![CDATA[Represents a type information for a field, which is made up of its
  35097. ID (name) and its type (a TypeID object).]]>
  35098. </doc>
  35099. </class>
  35100. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  35101. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  35102. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  35103. abstract="false"
  35104. static="false" final="false" visibility="public"
  35105. deprecated="not deprecated">
  35106. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  35107. static="false" final="false" visibility="public"
  35108. deprecated="not deprecated">
  35109. </constructor>
  35110. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  35111. abstract="false" native="false" synchronized="false"
  35112. static="false" final="false" visibility="public"
  35113. deprecated="not deprecated">
  35114. <doc>
  35115. <![CDATA[get the TypeID of the map's key element]]>
  35116. </doc>
  35117. </method>
  35118. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  35119. abstract="false" native="false" synchronized="false"
  35120. static="false" final="false" visibility="public"
  35121. deprecated="not deprecated">
  35122. <doc>
  35123. <![CDATA[get the TypeID of the map's value element]]>
  35124. </doc>
  35125. </method>
  35126. <method name="equals" return="boolean"
  35127. abstract="false" native="false" synchronized="false"
  35128. static="false" final="false" visibility="public"
  35129. deprecated="not deprecated">
  35130. <param name="o" type="java.lang.Object"/>
  35131. <doc>
  35132. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  35133. same type]]>
  35134. </doc>
  35135. </method>
  35136. <method name="hashCode" return="int"
  35137. abstract="false" native="false" synchronized="false"
  35138. static="false" final="false" visibility="public"
  35139. deprecated="not deprecated">
  35140. <doc>
  35141. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  35142. be used as a hashmap key]]>
  35143. </doc>
  35144. </method>
  35145. <doc>
  35146. <![CDATA[Represents typeID for a Map]]>
  35147. </doc>
  35148. </class>
  35149. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  35150. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  35151. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  35152. abstract="false"
  35153. static="false" final="false" visibility="public"
  35154. deprecated="not deprecated">
  35155. <constructor name="RecordTypeInfo"
  35156. static="false" final="false" visibility="public"
  35157. deprecated="not deprecated">
  35158. <doc>
  35159. <![CDATA[Create an empty RecordTypeInfo object.]]>
  35160. </doc>
  35161. </constructor>
  35162. <constructor name="RecordTypeInfo" type="java.lang.String"
  35163. static="false" final="false" visibility="public"
  35164. deprecated="not deprecated">
  35165. <doc>
  35166. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  35167. @param name Name of the record]]>
  35168. </doc>
  35169. </constructor>
  35170. <method name="getName" return="java.lang.String"
  35171. abstract="false" native="false" synchronized="false"
  35172. static="false" final="false" visibility="public"
  35173. deprecated="not deprecated">
  35174. <doc>
  35175. <![CDATA[return the name of the record]]>
  35176. </doc>
  35177. </method>
  35178. <method name="setName"
  35179. abstract="false" native="false" synchronized="false"
  35180. static="false" final="false" visibility="public"
  35181. deprecated="not deprecated">
  35182. <param name="name" type="java.lang.String"/>
  35183. <doc>
  35184. <![CDATA[set the name of the record]]>
  35185. </doc>
  35186. </method>
  35187. <method name="addField"
  35188. abstract="false" native="false" synchronized="false"
  35189. static="false" final="false" visibility="public"
  35190. deprecated="not deprecated">
  35191. <param name="fieldName" type="java.lang.String"/>
  35192. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  35193. <doc>
  35194. <![CDATA[Add a field.
  35195. @param fieldName Name of the field
  35196. @param tid Type ID of the field]]>
  35197. </doc>
  35198. </method>
  35199. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  35200. abstract="false" native="false" synchronized="false"
  35201. static="false" final="false" visibility="public"
  35202. deprecated="not deprecated">
  35203. <doc>
  35204. <![CDATA[Return a collection of field type infos]]>
  35205. </doc>
  35206. </method>
  35207. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  35208. abstract="false" native="false" synchronized="false"
  35209. static="false" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <param name="name" type="java.lang.String"/>
  35212. <doc>
  35213. <![CDATA[Return the type info of a nested record. We only consider nesting
  35214. to one level.
  35215. @param name Name of the nested record]]>
  35216. </doc>
  35217. </method>
  35218. <method name="serialize"
  35219. abstract="false" native="false" synchronized="false"
  35220. static="false" final="false" visibility="public"
  35221. deprecated="not deprecated">
  35222. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  35223. <param name="tag" type="java.lang.String"/>
  35224. <exception name="IOException" type="java.io.IOException"/>
  35225. <doc>
  35226. <![CDATA[Serialize the type information for a record]]>
  35227. </doc>
  35228. </method>
  35229. <method name="deserialize"
  35230. abstract="false" native="false" synchronized="false"
  35231. static="false" final="false" visibility="public"
  35232. deprecated="not deprecated">
  35233. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  35234. <param name="tag" type="java.lang.String"/>
  35235. <exception name="IOException" type="java.io.IOException"/>
  35236. <doc>
  35237. <![CDATA[Deserialize the type information for a record]]>
  35238. </doc>
  35239. </method>
  35240. <method name="compareTo" return="int"
  35241. abstract="false" native="false" synchronized="false"
  35242. static="false" final="false" visibility="public"
  35243. deprecated="not deprecated">
  35244. <param name="peer_" type="java.lang.Object"/>
  35245. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  35246. <doc>
  35247. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  35248. for anything besides de/serializing.
  35249. So we always throw an exception.
  35250. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  35251. </doc>
  35252. </method>
  35253. <doc>
  35254. <![CDATA[A record's Type Information object which can read/write itself.
  35255. Type information for a record comprises metadata about the record,
  35256. as well as a collection of type information for each field in the record.]]>
  35257. </doc>
  35258. </class>
  35259. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  35260. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  35261. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  35262. abstract="false"
  35263. static="false" final="false" visibility="public"
  35264. deprecated="not deprecated">
  35265. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  35266. static="false" final="false" visibility="public"
  35267. deprecated="not deprecated">
  35268. <doc>
  35269. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  35270. </doc>
  35271. </constructor>
  35272. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  35273. abstract="false" native="false" synchronized="false"
  35274. static="false" final="false" visibility="public"
  35275. deprecated="not deprecated">
  35276. </method>
  35277. <doc>
  35278. <![CDATA[Represents typeID for a struct]]>
  35279. </doc>
  35280. </class>
  35281. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  35282. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  35283. <class name="TypeID" extends="java.lang.Object"
  35284. abstract="false"
  35285. static="false" final="false" visibility="public"
  35286. deprecated="not deprecated">
  35287. <method name="getTypeVal" return="byte"
  35288. abstract="false" native="false" synchronized="false"
  35289. static="false" final="false" visibility="public"
  35290. deprecated="not deprecated">
  35291. <doc>
  35292. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  35293. </doc>
  35294. </method>
  35295. <method name="equals" return="boolean"
  35296. abstract="false" native="false" synchronized="false"
  35297. static="false" final="false" visibility="public"
  35298. deprecated="not deprecated">
  35299. <param name="o" type="java.lang.Object"/>
  35300. <doc>
  35301. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  35302. </doc>
  35303. </method>
  35304. <method name="hashCode" return="int"
  35305. abstract="false" native="false" synchronized="false"
  35306. static="false" final="false" visibility="public"
  35307. deprecated="not deprecated">
  35308. <doc>
  35309. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  35310. be used as a hashmap key]]>
  35311. </doc>
  35312. </method>
  35313. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35314. transient="false" volatile="false"
  35315. static="true" final="true" visibility="public"
  35316. deprecated="not deprecated">
  35317. <doc>
  35318. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  35319. </doc>
  35320. </field>
  35321. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35322. transient="false" volatile="false"
  35323. static="true" final="true" visibility="public"
  35324. deprecated="not deprecated">
  35325. </field>
  35326. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35327. transient="false" volatile="false"
  35328. static="true" final="true" visibility="public"
  35329. deprecated="not deprecated">
  35330. </field>
  35331. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35332. transient="false" volatile="false"
  35333. static="true" final="true" visibility="public"
  35334. deprecated="not deprecated">
  35335. </field>
  35336. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35337. transient="false" volatile="false"
  35338. static="true" final="true" visibility="public"
  35339. deprecated="not deprecated">
  35340. </field>
  35341. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35342. transient="false" volatile="false"
  35343. static="true" final="true" visibility="public"
  35344. deprecated="not deprecated">
  35345. </field>
  35346. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35347. transient="false" volatile="false"
  35348. static="true" final="true" visibility="public"
  35349. deprecated="not deprecated">
  35350. </field>
  35351. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35352. transient="false" volatile="false"
  35353. static="true" final="true" visibility="public"
  35354. deprecated="not deprecated">
  35355. </field>
  35356. <field name="typeVal" type="byte"
  35357. transient="false" volatile="false"
  35358. static="false" final="false" visibility="protected"
  35359. deprecated="not deprecated">
  35360. </field>
  35361. <doc>
  35362. <![CDATA[Represents typeID for basic types.]]>
  35363. </doc>
  35364. </class>
  35365. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  35366. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  35367. <class name="TypeID.RIOType" extends="java.lang.Object"
  35368. abstract="false"
  35369. static="true" final="true" visibility="public"
  35370. deprecated="not deprecated">
  35371. <constructor name="TypeID.RIOType"
  35372. static="false" final="false" visibility="public"
  35373. deprecated="not deprecated">
  35374. </constructor>
  35375. <field name="BOOL" type="byte"
  35376. transient="false" volatile="false"
  35377. static="true" final="true" visibility="public"
  35378. deprecated="not deprecated">
  35379. </field>
  35380. <field name="BUFFER" type="byte"
  35381. transient="false" volatile="false"
  35382. static="true" final="true" visibility="public"
  35383. deprecated="not deprecated">
  35384. </field>
  35385. <field name="BYTE" type="byte"
  35386. transient="false" volatile="false"
  35387. static="true" final="true" visibility="public"
  35388. deprecated="not deprecated">
  35389. </field>
  35390. <field name="DOUBLE" type="byte"
  35391. transient="false" volatile="false"
  35392. static="true" final="true" visibility="public"
  35393. deprecated="not deprecated">
  35394. </field>
  35395. <field name="FLOAT" type="byte"
  35396. transient="false" volatile="false"
  35397. static="true" final="true" visibility="public"
  35398. deprecated="not deprecated">
  35399. </field>
  35400. <field name="INT" type="byte"
  35401. transient="false" volatile="false"
  35402. static="true" final="true" visibility="public"
  35403. deprecated="not deprecated">
  35404. </field>
  35405. <field name="LONG" type="byte"
  35406. transient="false" volatile="false"
  35407. static="true" final="true" visibility="public"
  35408. deprecated="not deprecated">
  35409. </field>
  35410. <field name="MAP" type="byte"
  35411. transient="false" volatile="false"
  35412. static="true" final="true" visibility="public"
  35413. deprecated="not deprecated">
  35414. </field>
  35415. <field name="STRING" type="byte"
  35416. transient="false" volatile="false"
  35417. static="true" final="true" visibility="public"
  35418. deprecated="not deprecated">
  35419. </field>
  35420. <field name="STRUCT" type="byte"
  35421. transient="false" volatile="false"
  35422. static="true" final="true" visibility="public"
  35423. deprecated="not deprecated">
  35424. </field>
  35425. <field name="VECTOR" type="byte"
  35426. transient="false" volatile="false"
  35427. static="true" final="true" visibility="public"
  35428. deprecated="not deprecated">
  35429. </field>
  35430. <doc>
  35431. <![CDATA[constants representing the IDL types we support]]>
  35432. </doc>
  35433. </class>
  35434. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  35435. <!-- start class org.apache.hadoop.record.meta.Utils -->
  35436. <class name="Utils" extends="java.lang.Object"
  35437. abstract="false"
  35438. static="false" final="false" visibility="public"
  35439. deprecated="not deprecated">
  35440. <method name="skip"
  35441. abstract="false" native="false" synchronized="false"
  35442. static="true" final="false" visibility="public"
  35443. deprecated="not deprecated">
  35444. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  35445. <param name="tag" type="java.lang.String"/>
  35446. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  35447. <exception name="IOException" type="java.io.IOException"/>
  35448. <doc>
  35449. <![CDATA[read/skip bytes from stream based on a type]]>
  35450. </doc>
  35451. </method>
  35452. <doc>
  35453. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  35454. </doc>
  35455. </class>
  35456. <!-- end class org.apache.hadoop.record.meta.Utils -->
  35457. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  35458. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  35459. abstract="false"
  35460. static="false" final="false" visibility="public"
  35461. deprecated="not deprecated">
  35462. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  35463. static="false" final="false" visibility="public"
  35464. deprecated="not deprecated">
  35465. </constructor>
  35466. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  35467. abstract="false" native="false" synchronized="false"
  35468. static="false" final="false" visibility="public"
  35469. deprecated="not deprecated">
  35470. </method>
  35471. <method name="equals" return="boolean"
  35472. abstract="false" native="false" synchronized="false"
  35473. static="false" final="false" visibility="public"
  35474. deprecated="not deprecated">
  35475. <param name="o" type="java.lang.Object"/>
  35476. <doc>
  35477. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  35478. same type]]>
  35479. </doc>
  35480. </method>
  35481. <method name="hashCode" return="int"
  35482. abstract="false" native="false" synchronized="false"
  35483. static="false" final="false" visibility="public"
  35484. deprecated="not deprecated">
  35485. <doc>
  35486. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  35487. be used as a hashmap key]]>
  35488. </doc>
  35489. </method>
  35490. <doc>
  35491. <![CDATA[Represents typeID for vector.]]>
  35492. </doc>
  35493. </class>
  35494. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  35495. </package>
  35496. <package name="org.apache.hadoop.security">
  35497. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  35498. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  35499. abstract="false"
  35500. static="false" final="false" visibility="public"
  35501. deprecated="not deprecated">
  35502. <constructor name="UnixUserGroupInformation"
  35503. static="false" final="false" visibility="public"
  35504. deprecated="not deprecated">
  35505. <doc>
  35506. <![CDATA[Default constructor]]>
  35507. </doc>
  35508. </constructor>
  35509. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  35510. static="false" final="false" visibility="public"
  35511. deprecated="not deprecated">
  35512. <doc>
  35513. <![CDATA[Constructor with parameters user name and its group names.
  35514. The first entry in the groups list is the default group.
  35515. @param userName a user's name
  35516. @param groupNames groups list, first of which is the default group
  35517. @exception IllegalArgumentException if any argument is null]]>
  35518. </doc>
  35519. </constructor>
  35520. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  35521. static="false" final="false" visibility="public"
  35522. deprecated="not deprecated">
  35523. <doc>
  35524. <![CDATA[Constructor with parameter user/group names
  35525. @param ugi an array containing user/group names, the first
  35526. element of which is the user name, the second of
  35527. which is the default group name.
  35528. @exception IllegalArgumentException if the array size is less than 2
  35529. or any element is null.]]>
  35530. </doc>
  35531. </constructor>
  35532. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  35533. abstract="false" native="false" synchronized="false"
  35534. static="true" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. <param name="ugi" type="java.lang.String[]"/>
  35537. <doc>
  35538. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  35539. </doc>
  35540. </method>
  35541. <method name="getGroupNames" return="java.lang.String[]"
  35542. abstract="false" native="false" synchronized="false"
  35543. static="false" final="false" visibility="public"
  35544. deprecated="not deprecated">
  35545. <doc>
  35546. <![CDATA[Return an array of group names]]>
  35547. </doc>
  35548. </method>
  35549. <method name="getUserName" return="java.lang.String"
  35550. abstract="false" native="false" synchronized="false"
  35551. static="false" final="false" visibility="public"
  35552. deprecated="not deprecated">
  35553. <doc>
  35554. <![CDATA[Return the user's name]]>
  35555. </doc>
  35556. </method>
  35557. <method name="readFields"
  35558. abstract="false" native="false" synchronized="false"
  35559. static="false" final="false" visibility="public"
  35560. deprecated="not deprecated">
  35561. <param name="in" type="java.io.DataInput"/>
  35562. <exception name="IOException" type="java.io.IOException"/>
  35563. <doc>
  35564. <![CDATA[Deserialize this object
  35565. First check if this is a UGI in the string format.
  35566. If no, throw an IOException; otherwise
  35567. set this object's fields by reading them from the given data input
  35568. @param in input stream
  35569. @exception IOException is thrown if encounter any error when reading]]>
  35570. </doc>
  35571. </method>
  35572. <method name="write"
  35573. abstract="false" native="false" synchronized="false"
  35574. static="false" final="false" visibility="public"
  35575. deprecated="not deprecated">
  35576. <param name="out" type="java.io.DataOutput"/>
  35577. <exception name="IOException" type="java.io.IOException"/>
  35578. <doc>
  35579. <![CDATA[Serialize this object
  35580. First write a string marking that this is a UGI in the string format,
  35581. then write this object's serialized form to the given data output
  35582. @param out output stream
  35583. @exception IOException if encounter any error during writing]]>
  35584. </doc>
  35585. </method>
  35586. <method name="saveToConf"
  35587. abstract="false" native="false" synchronized="false"
  35588. static="true" final="false" visibility="public"
  35589. deprecated="not deprecated">
  35590. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35591. <param name="attr" type="java.lang.String"/>
  35592. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  35593. <doc>
  35594. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  35595. <code>conf</code> as a property <code>attr</code>
  35596. The String starts with the user name followed by the default group names,
  35597. and other group names.
  35598. @param conf configuration
  35599. @param attr property name
  35600. @param ugi a UnixUserGroupInformation]]>
  35601. </doc>
  35602. </method>
  35603. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  35604. abstract="false" native="false" synchronized="false"
  35605. static="true" final="false" visibility="public"
  35606. deprecated="not deprecated">
  35607. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35608. <param name="attr" type="java.lang.String"/>
  35609. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35610. <doc>
  35611. <![CDATA[Read a UGI from the given <code>conf</code>
  35612. The object is expected to store with the property name <code>attr</code>
  35613. as a comma separated string that starts
  35614. with the user name followed by group names.
  35615. If the property name is not defined, return null.
  35616. It's assumed that there is only one UGI per user. If this user already
  35617. has a UGI in the ugi map, return the ugi in the map.
  35618. Otherwise, construct a UGI from the configuration, store it in the
  35619. ugi map and return it.
  35620. @param conf configuration
  35621. @param attr property name
  35622. @return a UnixUGI
  35623. @throws LoginException if the stored string is ill-formatted.]]>
  35624. </doc>
  35625. </method>
  35626. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  35627. abstract="false" native="false" synchronized="false"
  35628. static="true" final="false" visibility="public"
  35629. deprecated="not deprecated">
  35630. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35631. <doc>
  35632. <![CDATA[Get current user's name and the names of all its groups from Unix.
  35633. It's assumed that there is only one UGI per user. If this user already
  35634. has a UGI in the ugi map, return the ugi in the map.
  35635. Otherwise get the current user's information from Unix, store it
  35636. in the map, and return it.]]>
  35637. </doc>
  35638. </method>
  35639. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  35640. abstract="false" native="false" synchronized="false"
  35641. static="true" final="false" visibility="public"
  35642. deprecated="not deprecated">
  35643. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35644. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35645. <doc>
  35646. <![CDATA[Equivalent to login(conf, false).]]>
  35647. </doc>
  35648. </method>
  35649. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  35650. abstract="false" native="false" synchronized="false"
  35651. static="true" final="false" visibility="public"
  35652. deprecated="not deprecated">
  35653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35654. <param name="save" type="boolean"/>
  35655. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35656. <doc>
  35657. <![CDATA[Get a user's name & its group names from the given configuration;
  35658. If it is not defined in the configuration, get the current user's
  35659. information from Unix.
  35660. If the user has a UGI in the ugi map, return the one in
  35661. the UGI map.
  35662. @param conf either a job configuration or client's configuration
  35663. @param save saving it to conf?
  35664. @return UnixUserGroupInformation a user/group information
  35665. @exception LoginException if not able to get the user/group information]]>
  35666. </doc>
  35667. </method>
  35668. <method name="equals" return="boolean"
  35669. abstract="false" native="false" synchronized="false"
  35670. static="false" final="false" visibility="public"
  35671. deprecated="not deprecated">
  35672. <param name="other" type="java.lang.Object"/>
  35673. <doc>
  35674. <![CDATA[Decide if two UGIs are the same
  35675. @param other other object
  35676. @return true if they are the same; false otherwise.]]>
  35677. </doc>
  35678. </method>
  35679. <method name="hashCode" return="int"
  35680. abstract="false" native="false" synchronized="false"
  35681. static="false" final="false" visibility="public"
  35682. deprecated="not deprecated">
  35683. <doc>
  35684. <![CDATA[Returns a hash code for this UGI.
  35685. The hash code for a UGI is the hash code of its user name string.
  35686. @return a hash code value for this UGI.]]>
  35687. </doc>
  35688. </method>
  35689. <method name="toString" return="java.lang.String"
  35690. abstract="false" native="false" synchronized="false"
  35691. static="false" final="false" visibility="public"
  35692. deprecated="not deprecated">
  35693. <doc>
  35694. <![CDATA[Convert this object to a string
  35695. @return a comma separated string containing the user name and group names]]>
  35696. </doc>
  35697. </method>
  35698. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  35699. transient="false" volatile="false"
  35700. static="true" final="true" visibility="public"
  35701. deprecated="not deprecated">
  35702. </field>
  35703. <doc>
  35704. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  35705. </doc>
  35706. </class>
  35707. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  35708. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  35709. <class name="UserGroupInformation" extends="java.lang.Object"
  35710. abstract="true"
  35711. static="false" final="false" visibility="public"
  35712. deprecated="not deprecated">
  35713. <implements name="org.apache.hadoop.io.Writable"/>
  35714. <constructor name="UserGroupInformation"
  35715. static="false" final="false" visibility="public"
  35716. deprecated="not deprecated">
  35717. </constructor>
  35718. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  35719. abstract="false" native="false" synchronized="false"
  35720. static="true" final="false" visibility="public"
  35721. deprecated="not deprecated">
  35722. <doc>
  35723. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  35724. </doc>
  35725. </method>
  35726. <method name="setCurrentUGI"
  35727. abstract="false" native="false" synchronized="false"
  35728. static="true" final="false" visibility="public"
  35729. deprecated="not deprecated">
  35730. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  35731. <doc>
  35732. <![CDATA[Set the {@link UserGroupInformation} for the current thread]]>
  35733. </doc>
  35734. </method>
  35735. <method name="getUserName" return="java.lang.String"
  35736. abstract="true" native="false" synchronized="false"
  35737. static="false" final="false" visibility="public"
  35738. deprecated="not deprecated">
  35739. <doc>
  35740. <![CDATA[Get username
  35741. @return the user's name]]>
  35742. </doc>
  35743. </method>
  35744. <method name="getGroupNames" return="java.lang.String[]"
  35745. abstract="true" native="false" synchronized="false"
  35746. static="false" final="false" visibility="public"
  35747. deprecated="not deprecated">
  35748. <doc>
  35749. <![CDATA[Get the name of the groups that the user belong to
  35750. @return an array of group names]]>
  35751. </doc>
  35752. </method>
  35753. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  35754. abstract="false" native="false" synchronized="false"
  35755. static="true" final="false" visibility="public"
  35756. deprecated="not deprecated">
  35757. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35758. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  35759. <doc>
  35760. <![CDATA[Login and return a UserGroupInformation object.]]>
  35761. </doc>
  35762. </method>
  35763. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  35764. abstract="false" native="false" synchronized="false"
  35765. static="true" final="false" visibility="public"
  35766. deprecated="not deprecated">
  35767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35768. <exception name="IOException" type="java.io.IOException"/>
  35769. <doc>
  35770. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  35771. </doc>
  35772. </method>
  35773. <field name="LOG" type="org.apache.commons.logging.Log"
  35774. transient="false" volatile="false"
  35775. static="true" final="true" visibility="public"
  35776. deprecated="not deprecated">
  35777. </field>
  35778. <doc>
  35779. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  35780. </doc>
  35781. </class>
  35782. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  35783. </package>
  35784. <package name="org.apache.hadoop.tools">
  35785. <!-- start class org.apache.hadoop.tools.DistCp -->
  35786. <class name="DistCp" extends="java.lang.Object"
  35787. abstract="false"
  35788. static="false" final="false" visibility="public"
  35789. deprecated="not deprecated">
  35790. <implements name="org.apache.hadoop.util.Tool"/>
  35791. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  35792. static="false" final="false" visibility="public"
  35793. deprecated="not deprecated">
  35794. </constructor>
  35795. <method name="setConf"
  35796. abstract="false" native="false" synchronized="false"
  35797. static="false" final="false" visibility="public"
  35798. deprecated="not deprecated">
  35799. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35800. </method>
  35801. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35802. abstract="false" native="false" synchronized="false"
  35803. static="false" final="false" visibility="public"
  35804. deprecated="not deprecated">
  35805. </method>
  35806. <method name="copy"
  35807. abstract="false" native="false" synchronized="false"
  35808. static="true" final="false" visibility="public"
  35809. deprecated="not deprecated">
  35810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35811. <param name="srcPath" type="java.lang.String"/>
  35812. <param name="destPath" type="java.lang.String"/>
  35813. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  35814. <param name="srcAsList" type="boolean"/>
  35815. <param name="ignoreReadFailures" type="boolean"/>
  35816. <exception name="IOException" type="java.io.IOException"/>
  35817. </method>
  35818. <method name="run" return="int"
  35819. abstract="false" native="false" synchronized="false"
  35820. static="false" final="false" visibility="public"
  35821. deprecated="not deprecated">
  35822. <param name="args" type="java.lang.String[]"/>
  35823. <exception name="Exception" type="java.lang.Exception"/>
  35824. <doc>
  35825. <![CDATA[This is the main driver for recursively copying directories
  35826. across file systems. It takes at least two cmdline parameters. A source
  35827. URL and a destination URL. It then essentially does an "ls -lR" on the
  35828. source URL, and writes the output in a round-robin manner to all the map
  35829. input files. The mapper actually copies the files allotted to it. The
  35830. reduce is empty.]]>
  35831. </doc>
  35832. </method>
  35833. <method name="main"
  35834. abstract="false" native="false" synchronized="false"
  35835. static="true" final="false" visibility="public"
  35836. deprecated="not deprecated">
  35837. <param name="args" type="java.lang.String[]"/>
  35838. <exception name="Exception" type="java.lang.Exception"/>
  35839. </method>
  35840. <method name="getRandomId" return="java.lang.String"
  35841. abstract="false" native="false" synchronized="false"
  35842. static="true" final="false" visibility="public"
  35843. deprecated="not deprecated">
  35844. </method>
  35845. <doc>
  35846. <![CDATA[A Map-reduce program to recursively copy directories between
  35847. different file-systems.]]>
  35848. </doc>
  35849. </class>
  35850. <!-- end class org.apache.hadoop.tools.DistCp -->
  35851. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  35852. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  35853. abstract="false"
  35854. static="true" final="false" visibility="public"
  35855. deprecated="not deprecated">
  35856. <field name="ERROR_CODE" type="int"
  35857. transient="false" volatile="false"
  35858. static="true" final="true" visibility="public"
  35859. deprecated="not deprecated">
  35860. <doc>
  35861. <![CDATA[Error code for this exception]]>
  35862. </doc>
  35863. </field>
  35864. <doc>
  35865. <![CDATA[An exception class for duplicated source files.]]>
  35866. </doc>
  35867. </class>
  35868. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  35869. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  35870. <class name="HadoopArchives" extends="java.lang.Object"
  35871. abstract="false"
  35872. static="false" final="false" visibility="public"
  35873. deprecated="not deprecated">
  35874. <implements name="org.apache.hadoop.util.Tool"/>
  35875. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  35876. static="false" final="false" visibility="public"
  35877. deprecated="not deprecated">
  35878. </constructor>
  35879. <method name="setConf"
  35880. abstract="false" native="false" synchronized="false"
  35881. static="false" final="false" visibility="public"
  35882. deprecated="not deprecated">
  35883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35884. </method>
  35885. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35886. abstract="false" native="false" synchronized="false"
  35887. static="false" final="false" visibility="public"
  35888. deprecated="not deprecated">
  35889. </method>
  35890. <method name="archive"
  35891. abstract="false" native="false" synchronized="false"
  35892. static="false" final="false" visibility="public"
  35893. deprecated="not deprecated">
  35894. <param name="srcPaths" type="java.util.List&lt;org.apache.hadoop.fs.Path&gt;"/>
  35895. <param name="archiveName" type="java.lang.String"/>
  35896. <param name="dest" type="org.apache.hadoop.fs.Path"/>
  35897. <exception name="IOException" type="java.io.IOException"/>
  35898. <doc>
  35899. <![CDATA[archive the given source paths into
  35900. the dest
  35901. @param srcPaths the src paths to be archived
  35902. @param dest the dest dir that will contain the archive]]>
  35903. </doc>
  35904. </method>
  35905. <method name="run" return="int"
  35906. abstract="false" native="false" synchronized="false"
  35907. static="false" final="false" visibility="public"
  35908. deprecated="not deprecated">
  35909. <param name="args" type="java.lang.String[]"/>
  35910. <exception name="Exception" type="java.lang.Exception"/>
  35911. <doc>
  35912. <![CDATA[the main driver for creating the archives
  35913. it takes at least two command line parameters. The src and the
  35914. dest. It does an lsr on the source paths.
  35915. The mapper created archuves and the reducer creates
  35916. the archive index.]]>
  35917. </doc>
  35918. </method>
  35919. <method name="main"
  35920. abstract="false" native="false" synchronized="false"
  35921. static="true" final="false" visibility="public"
  35922. deprecated="not deprecated">
  35923. <param name="args" type="java.lang.String[]"/>
  35924. <doc>
  35925. <![CDATA[the main functions]]>
  35926. </doc>
  35927. </method>
  35928. <doc>
  35929. <![CDATA[a archive creation utility.
  35930. This class provides methods that can be used
  35931. to create hadoop archives. For understanding of
  35932. Hadoop archives look at {@link HarFileSystem}.]]>
  35933. </doc>
  35934. </class>
  35935. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  35936. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  35937. <class name="Logalyzer" extends="java.lang.Object"
  35938. abstract="false"
  35939. static="false" final="false" visibility="public"
  35940. deprecated="not deprecated">
  35941. <constructor name="Logalyzer"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. </constructor>
  35945. <method name="doArchive"
  35946. abstract="false" native="false" synchronized="false"
  35947. static="false" final="false" visibility="public"
  35948. deprecated="not deprecated">
  35949. <param name="logListURI" type="java.lang.String"/>
  35950. <param name="archiveDirectory" type="java.lang.String"/>
  35951. <exception name="IOException" type="java.io.IOException"/>
  35952. <doc>
  35953. <![CDATA[doArchive: Workhorse function to archive log-files.
  35954. @param logListURI : The uri which will serve list of log-files to archive.
  35955. @param archiveDirectory : The directory to store archived logfiles.
  35956. @throws IOException]]>
  35957. </doc>
  35958. </method>
  35959. <method name="doAnalyze"
  35960. abstract="false" native="false" synchronized="false"
  35961. static="false" final="false" visibility="public"
  35962. deprecated="not deprecated">
  35963. <param name="inputFilesDirectory" type="java.lang.String"/>
  35964. <param name="outputDirectory" type="java.lang.String"/>
  35965. <param name="grepPattern" type="java.lang.String"/>
  35966. <param name="sortColumns" type="java.lang.String"/>
  35967. <param name="columnSeparator" type="java.lang.String"/>
  35968. <exception name="IOException" type="java.io.IOException"/>
  35969. <doc>
  35970. <![CDATA[doAnalyze:
  35971. @param inputFilesDirectory : Directory containing the files to be analyzed.
  35972. @param outputDirectory : Directory to store analysis (output).
  35973. @param grepPattern : Pattern to *grep* for.
  35974. @param sortColumns : Sort specification for output.
  35975. @param columnSeparator : Column separator.
  35976. @throws IOException]]>
  35977. </doc>
  35978. </method>
  35979. <method name="main"
  35980. abstract="false" native="false" synchronized="false"
  35981. static="true" final="false" visibility="public"
  35982. deprecated="not deprecated">
  35983. <param name="args" type="java.lang.String[]"/>
  35984. </method>
  35985. <doc>
  35986. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  35987. <p>
  35988. This tool supports archiving and anaylzing (sort/grep) of log-files.
  35989. It takes as input
  35990. a) Input uri which will serve uris of the logs to be archived.
  35991. b) Output directory (not mandatory).
  35992. b) Directory on dfs to archive the logs.
  35993. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  35994. Usage:
  35995. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  35996. <p>]]>
  35997. </doc>
  35998. </class>
  35999. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  36000. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  36001. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  36002. abstract="false"
  36003. static="true" final="false" visibility="public"
  36004. deprecated="not deprecated">
  36005. <implements name="org.apache.hadoop.conf.Configurable"/>
  36006. <constructor name="Logalyzer.LogComparator"
  36007. static="false" final="false" visibility="public"
  36008. deprecated="not deprecated">
  36009. </constructor>
  36010. <method name="setConf"
  36011. abstract="false" native="false" synchronized="false"
  36012. static="false" final="false" visibility="public"
  36013. deprecated="not deprecated">
  36014. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36015. </method>
  36016. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  36017. abstract="false" native="false" synchronized="false"
  36018. static="false" final="false" visibility="public"
  36019. deprecated="not deprecated">
  36020. </method>
  36021. <method name="compare" return="int"
  36022. abstract="false" native="false" synchronized="false"
  36023. static="false" final="false" visibility="public"
  36024. deprecated="not deprecated">
  36025. <param name="b1" type="byte[]"/>
  36026. <param name="s1" type="int"/>
  36027. <param name="l1" type="int"/>
  36028. <param name="b2" type="byte[]"/>
  36029. <param name="s2" type="int"/>
  36030. <param name="l2" type="int"/>
  36031. </method>
  36032. <doc>
  36033. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  36034. </doc>
  36035. </class>
  36036. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  36037. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  36038. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  36039. abstract="false"
  36040. static="true" final="false" visibility="public"
  36041. deprecated="not deprecated">
  36042. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  36043. <constructor name="Logalyzer.LogRegexMapper"
  36044. static="false" final="false" visibility="public"
  36045. deprecated="not deprecated">
  36046. </constructor>
  36047. <method name="configure"
  36048. abstract="false" native="false" synchronized="false"
  36049. static="false" final="false" visibility="public"
  36050. deprecated="not deprecated">
  36051. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  36052. </method>
  36053. <method name="map"
  36054. abstract="false" native="false" synchronized="false"
  36055. static="false" final="false" visibility="public"
  36056. deprecated="not deprecated">
  36057. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  36058. <param name="value" type="org.apache.hadoop.io.Text"/>
  36059. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  36060. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  36061. <exception name="IOException" type="java.io.IOException"/>
  36062. </method>
  36063. <doc>
  36064. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  36065. </doc>
  36066. </class>
  36067. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  36068. </package>
  36069. <package name="org.apache.hadoop.util">
  36070. <!-- start class org.apache.hadoop.util.Daemon -->
  36071. <class name="Daemon" extends="java.lang.Thread"
  36072. abstract="false"
  36073. static="false" final="false" visibility="public"
  36074. deprecated="not deprecated">
  36075. <constructor name="Daemon"
  36076. static="false" final="false" visibility="public"
  36077. deprecated="not deprecated">
  36078. <doc>
  36079. <![CDATA[Construct a daemon thread.]]>
  36080. </doc>
  36081. </constructor>
  36082. <constructor name="Daemon" type="java.lang.Runnable"
  36083. static="false" final="false" visibility="public"
  36084. deprecated="not deprecated">
  36085. <doc>
  36086. <![CDATA[Construct a daemon thread.]]>
  36087. </doc>
  36088. </constructor>
  36089. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  36090. static="false" final="false" visibility="public"
  36091. deprecated="not deprecated">
  36092. <doc>
  36093. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  36094. </doc>
  36095. </constructor>
  36096. <method name="getRunnable" return="java.lang.Runnable"
  36097. abstract="false" native="false" synchronized="false"
  36098. static="false" final="false" visibility="public"
  36099. deprecated="not deprecated">
  36100. </method>
  36101. <doc>
  36102. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  36103. </doc>
  36104. </class>
  36105. <!-- end class org.apache.hadoop.util.Daemon -->
  36106. <!-- start class org.apache.hadoop.util.DiskChecker -->
  36107. <class name="DiskChecker" extends="java.lang.Object"
  36108. abstract="false"
  36109. static="false" final="false" visibility="public"
  36110. deprecated="not deprecated">
  36111. <constructor name="DiskChecker"
  36112. static="false" final="false" visibility="public"
  36113. deprecated="not deprecated">
  36114. </constructor>
  36115. <method name="mkdirsWithExistsCheck" return="boolean"
  36116. abstract="false" native="false" synchronized="false"
  36117. static="true" final="false" visibility="public"
  36118. deprecated="not deprecated">
  36119. <param name="dir" type="java.io.File"/>
  36120. <doc>
  36121. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  36122. method provided in the Sun's java.io.File class in the following way:
  36123. While creating the non-existent parent directories, this method checks for
  36124. the existence of those directories if the mkdir fails at any point (since
  36125. that directory might have just been created by some other process).
  36126. If both mkdir() and the exists() check fails for any seemingly
  36127. non-existent directory, then we signal an error; Sun's mkdir would signal
  36128. an error (return false) if a directory it is attempting to create already
  36129. exists or the mkdir fails.
  36130. @param dir
  36131. @return true on success, false on failure]]>
  36132. </doc>
  36133. </method>
  36134. <method name="checkDir"
  36135. abstract="false" native="false" synchronized="false"
  36136. static="true" final="false" visibility="public"
  36137. deprecated="not deprecated">
  36138. <param name="dir" type="java.io.File"/>
  36139. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  36140. </method>
  36141. <doc>
  36142. <![CDATA[Class that provides utility functions for checking disk problem]]>
  36143. </doc>
  36144. </class>
  36145. <!-- end class org.apache.hadoop.util.DiskChecker -->
  36146. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  36147. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  36148. abstract="false"
  36149. static="true" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  36152. static="false" final="false" visibility="public"
  36153. deprecated="not deprecated">
  36154. </constructor>
  36155. </class>
  36156. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  36157. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  36158. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  36159. abstract="false"
  36160. static="true" final="false" visibility="public"
  36161. deprecated="not deprecated">
  36162. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  36163. static="false" final="false" visibility="public"
  36164. deprecated="not deprecated">
  36165. </constructor>
  36166. </class>
  36167. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  36168. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  36169. <class name="GenericOptionsParser" extends="java.lang.Object"
  36170. abstract="false"
  36171. static="false" final="false" visibility="public"
  36172. deprecated="not deprecated">
  36173. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  36174. static="false" final="false" visibility="public"
  36175. deprecated="not deprecated">
  36176. <doc>
  36177. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  36178. arguments.
  36179. The array of string arguments other than the generic arguments can be
  36180. obtained by {@link #getRemainingArgs()}.
  36181. @param conf the <code>Configuration</code> to modify.
  36182. @param args command-line arguments.]]>
  36183. </doc>
  36184. </constructor>
  36185. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  36186. static="false" final="false" visibility="public"
  36187. deprecated="not deprecated">
  36188. <doc>
  36189. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  36190. as generic Hadoop options.
  36191. The resulting <code>CommandLine</code> object can be obtained by
  36192. {@link #getCommandLine()}.
  36193. @param conf the configuration to modify
  36194. @param options options built by the caller
  36195. @param args User-specified arguments]]>
  36196. </doc>
  36197. </constructor>
  36198. <method name="getRemainingArgs" return="java.lang.String[]"
  36199. abstract="false" native="false" synchronized="false"
  36200. static="false" final="false" visibility="public"
  36201. deprecated="not deprecated">
  36202. <doc>
  36203. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  36204. @return array of <code>String</code>s containing the un-parsed arguments
  36205. or <strong>empty array</strong> if commandLine was not defined.]]>
  36206. </doc>
  36207. </method>
  36208. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  36209. abstract="false" native="false" synchronized="false"
  36210. static="false" final="false" visibility="public"
  36211. deprecated="not deprecated">
  36212. <doc>
  36213. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  36214. to process the parsed arguments.
  36215. Note: If the object is created with
  36216. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  36217. object will only contain parsed generic options.
  36218. @return <code>CommandLine</code> representing list of arguments
  36219. parsed against Options descriptor.]]>
  36220. </doc>
  36221. </method>
  36222. <method name="printGenericCommandUsage"
  36223. abstract="false" native="false" synchronized="false"
  36224. static="true" final="false" visibility="public"
  36225. deprecated="not deprecated">
  36226. <param name="out" type="java.io.PrintStream"/>
  36227. <doc>
  36228. <![CDATA[Print the usage message for generic command-line options supported.
  36229. @param out stream to print the usage message to.]]>
  36230. </doc>
  36231. </method>
  36232. <doc>
  36233. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  36234. arguments generic to the Hadoop framework.
  36235. <code>GenericOptionsParser</code> recognizes several standarad command
  36236. line arguments, enabling applications to easily specify a namenode, a
  36237. jobtracker, additional configuration resources etc.
  36238. <h4 id="GenericOptions">Generic Options</h4>
  36239. <p>The supported generic options are:</p>
  36240. <p><blockquote><pre>
  36241. -conf &lt;configuration file&gt; specify a configuration file
  36242. -D &lt;property=value&gt; use value for given property
  36243. -fs &lt;local|namenode:port&gt; specify a namenode
  36244. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  36245. -files &lt;comma separated list of files&gt; specify comma separated
  36246. files to be copied to the map reduce cluster
  36247. -libjars &lt;comma separated list of jars&gt; specify comma separated
  36248. jar files to include in the classpath.
  36249. -archives &lt;comma separated list of archives&gt; specify comma
  36250. separated archives to be unarchived on the compute machines.
  36251. </pre></blockquote></p>
  36252. <p>The general command line syntax is:</p>
  36253. <p><tt><pre>
  36254. bin/hadoop command [genericOptions] [commandOptions]
  36255. </pre></tt></p>
  36256. <p>Generic command line arguments <strong>might</strong> modify
  36257. <code>Configuration </code> objects, given to constructors.</p>
  36258. <p>The functionality is implemented using Commons CLI.</p>
  36259. <p>Examples:</p>
  36260. <p><blockquote><pre>
  36261. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  36262. list /data directory in dfs with namenode darwin:8020
  36263. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  36264. list /data directory in dfs with namenode darwin:8020
  36265. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  36266. list /data directory in dfs with conf specified in hadoop-site.xml
  36267. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  36268. submit a job to job tracker darwin:50020
  36269. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  36270. submit a job to job tracker darwin:50020
  36271. $ bin/hadoop job -jt local -submit job.xml
  36272. submit a job to local runner
  36273. $ bin/hadoop jar -libjars testlib.jar
  36274. -archives test.tgz -files file.txt inputjar args
  36275. job submission with libjars, files and archives
  36276. </pre></blockquote></p>
  36277. @see Tool
  36278. @see ToolRunner]]>
  36279. </doc>
  36280. </class>
  36281. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  36282. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  36283. <class name="GenericsUtil" extends="java.lang.Object"
  36284. abstract="false"
  36285. static="false" final="false" visibility="public"
  36286. deprecated="not deprecated">
  36287. <constructor name="GenericsUtil"
  36288. static="false" final="false" visibility="public"
  36289. deprecated="not deprecated">
  36290. </constructor>
  36291. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  36292. abstract="false" native="false" synchronized="false"
  36293. static="true" final="false" visibility="public"
  36294. deprecated="not deprecated">
  36295. <param name="t" type="T"/>
  36296. <doc>
  36297. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  36298. argument of type <code>T</code>.
  36299. @param <T> The type of the argument
  36300. @param t the object to get it class
  36301. @return <code>Class&lt;T&gt;</code>]]>
  36302. </doc>
  36303. </method>
  36304. <method name="toArray" return="T[]"
  36305. abstract="false" native="false" synchronized="false"
  36306. static="true" final="false" visibility="public"
  36307. deprecated="not deprecated">
  36308. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  36309. <param name="list" type="java.util.List&lt;T&gt;"/>
  36310. <doc>
  36311. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  36312. <code>T[]</code>.
  36313. @param c the Class object of the items in the list
  36314. @param list the list to convert]]>
  36315. </doc>
  36316. </method>
  36317. <method name="toArray" return="T[]"
  36318. abstract="false" native="false" synchronized="false"
  36319. static="true" final="false" visibility="public"
  36320. deprecated="not deprecated">
  36321. <param name="list" type="java.util.List&lt;T&gt;"/>
  36322. <doc>
  36323. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  36324. <code>T[]</code>.
  36325. @param list the list to convert
  36326. @throws ArrayIndexOutOfBoundsException if the list is empty.
  36327. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  36328. </doc>
  36329. </method>
  36330. <doc>
  36331. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  36332. </doc>
  36333. </class>
  36334. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  36335. <!-- start class org.apache.hadoop.util.HeapSort -->
  36336. <class name="HeapSort" extends="java.lang.Object"
  36337. abstract="false"
  36338. static="false" final="true" visibility="public"
  36339. deprecated="not deprecated">
  36340. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  36341. <constructor name="HeapSort"
  36342. static="false" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. </constructor>
  36345. <method name="sort"
  36346. abstract="false" native="false" synchronized="false"
  36347. static="false" final="false" visibility="public"
  36348. deprecated="not deprecated">
  36349. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36350. <param name="p" type="int"/>
  36351. <param name="r" type="int"/>
  36352. <doc>
  36353. <![CDATA[Sort the given range of items using heap sort.
  36354. {@inheritDoc}]]>
  36355. </doc>
  36356. </method>
  36357. <method name="sort"
  36358. abstract="false" native="false" synchronized="false"
  36359. static="false" final="false" visibility="public"
  36360. deprecated="not deprecated">
  36361. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36362. <param name="p" type="int"/>
  36363. <param name="r" type="int"/>
  36364. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  36365. <doc>
  36366. <![CDATA[{@inheritDoc}]]>
  36367. </doc>
  36368. </method>
  36369. <doc>
  36370. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  36371. </doc>
  36372. </class>
  36373. <!-- end class org.apache.hadoop.util.HeapSort -->
  36374. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  36375. <class name="HostsFileReader" extends="java.lang.Object"
  36376. abstract="false"
  36377. static="false" final="false" visibility="public"
  36378. deprecated="not deprecated">
  36379. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  36380. static="false" final="false" visibility="public"
  36381. deprecated="not deprecated">
  36382. <exception name="IOException" type="java.io.IOException"/>
  36383. </constructor>
  36384. <method name="refresh"
  36385. abstract="false" native="false" synchronized="false"
  36386. static="false" final="false" visibility="public"
  36387. deprecated="not deprecated">
  36388. <exception name="IOException" type="java.io.IOException"/>
  36389. </method>
  36390. <method name="getHosts" return="java.util.Set&lt;java.lang.String&gt;"
  36391. abstract="false" native="false" synchronized="false"
  36392. static="false" final="false" visibility="public"
  36393. deprecated="not deprecated">
  36394. </method>
  36395. <method name="getExcludedHosts" return="java.util.Set&lt;java.lang.String&gt;"
  36396. abstract="false" native="false" synchronized="false"
  36397. static="false" final="false" visibility="public"
  36398. deprecated="not deprecated">
  36399. </method>
  36400. </class>
  36401. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  36402. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  36403. <interface name="IndexedSortable" abstract="true"
  36404. static="false" final="false" visibility="public"
  36405. deprecated="not deprecated">
  36406. <method name="compare" return="int"
  36407. abstract="false" native="false" synchronized="false"
  36408. static="false" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. <param name="i" type="int"/>
  36411. <param name="j" type="int"/>
  36412. <doc>
  36413. <![CDATA[Compare items at the given addresses consistent with the semantics of
  36414. {@link java.util.Comparable#compare}.]]>
  36415. </doc>
  36416. </method>
  36417. <method name="swap"
  36418. abstract="false" native="false" synchronized="false"
  36419. static="false" final="false" visibility="public"
  36420. deprecated="not deprecated">
  36421. <param name="i" type="int"/>
  36422. <param name="j" type="int"/>
  36423. <doc>
  36424. <![CDATA[Swap items at the given addresses.]]>
  36425. </doc>
  36426. </method>
  36427. <doc>
  36428. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  36429. algorithms.]]>
  36430. </doc>
  36431. </interface>
  36432. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  36433. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  36434. <interface name="IndexedSorter" abstract="true"
  36435. static="false" final="false" visibility="public"
  36436. deprecated="not deprecated">
  36437. <method name="sort"
  36438. abstract="false" native="false" synchronized="false"
  36439. static="false" final="false" visibility="public"
  36440. deprecated="not deprecated">
  36441. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36442. <param name="l" type="int"/>
  36443. <param name="r" type="int"/>
  36444. <doc>
  36445. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  36446. range of logical indices. From the perspective of the sort algorithm,
  36447. each index between l (inclusive) and r (exclusive) is an addressable
  36448. entry.
  36449. @see IndexedSortable#compare
  36450. @see IndexedSortable#swap]]>
  36451. </doc>
  36452. </method>
  36453. <method name="sort"
  36454. abstract="false" native="false" synchronized="false"
  36455. static="false" final="false" visibility="public"
  36456. deprecated="not deprecated">
  36457. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36458. <param name="l" type="int"/>
  36459. <param name="r" type="int"/>
  36460. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  36461. <doc>
  36462. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  36463. periodically.
  36464. @see #sort(IndexedSortable,int,int)]]>
  36465. </doc>
  36466. </method>
  36467. <doc>
  36468. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  36469. A sort algorithm implementing this interface may only
  36470. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  36471. for a range of indices to effect a sort across that range.]]>
  36472. </doc>
  36473. </interface>
  36474. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  36475. <!-- start class org.apache.hadoop.util.MergeSort -->
  36476. <class name="MergeSort" extends="java.lang.Object"
  36477. abstract="false"
  36478. static="false" final="false" visibility="public"
  36479. deprecated="not deprecated">
  36480. <constructor name="MergeSort" type="java.util.Comparator&lt;org.apache.hadoop.io.IntWritable&gt;"
  36481. static="false" final="false" visibility="public"
  36482. deprecated="not deprecated">
  36483. </constructor>
  36484. <method name="mergeSort"
  36485. abstract="false" native="false" synchronized="false"
  36486. static="false" final="false" visibility="public"
  36487. deprecated="not deprecated">
  36488. <param name="src" type="int[]"/>
  36489. <param name="dest" type="int[]"/>
  36490. <param name="low" type="int"/>
  36491. <param name="high" type="int"/>
  36492. </method>
  36493. <doc>
  36494. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  36495. </doc>
  36496. </class>
  36497. <!-- end class org.apache.hadoop.util.MergeSort -->
  36498. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  36499. <class name="NativeCodeLoader" extends="java.lang.Object"
  36500. abstract="false"
  36501. static="false" final="false" visibility="public"
  36502. deprecated="not deprecated">
  36503. <constructor name="NativeCodeLoader"
  36504. static="false" final="false" visibility="public"
  36505. deprecated="not deprecated">
  36506. </constructor>
  36507. <method name="isNativeCodeLoaded" return="boolean"
  36508. abstract="false" native="false" synchronized="false"
  36509. static="true" final="false" visibility="public"
  36510. deprecated="not deprecated">
  36511. <doc>
  36512. <![CDATA[Check if native-hadoop code is loaded for this platform.
  36513. @return <code>true</code> if native-hadoop is loaded,
  36514. else <code>false</code>]]>
  36515. </doc>
  36516. </method>
  36517. <method name="getLoadNativeLibraries" return="boolean"
  36518. abstract="false" native="false" synchronized="false"
  36519. static="false" final="false" visibility="public"
  36520. deprecated="not deprecated">
  36521. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  36522. <doc>
  36523. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  36524. @param jobConf job configuration
  36525. @return <code>true</code> if native hadoop libraries, if present, can be
  36526. used for this job; <code>false</code> otherwise.]]>
  36527. </doc>
  36528. </method>
  36529. <method name="setLoadNativeLibraries"
  36530. abstract="false" native="false" synchronized="false"
  36531. static="false" final="false" visibility="public"
  36532. deprecated="not deprecated">
  36533. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  36534. <param name="loadNativeLibraries" type="boolean"/>
  36535. <doc>
  36536. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  36537. @param jobConf job configuration
  36538. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  36539. </doc>
  36540. </method>
  36541. <doc>
  36542. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  36543. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  36544. or the default java implementations where appropriate.]]>
  36545. </doc>
  36546. </class>
  36547. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  36548. <!-- start class org.apache.hadoop.util.PlatformName -->
  36549. <class name="PlatformName" extends="java.lang.Object"
  36550. abstract="false"
  36551. static="false" final="false" visibility="public"
  36552. deprecated="not deprecated">
  36553. <constructor name="PlatformName"
  36554. static="false" final="false" visibility="public"
  36555. deprecated="not deprecated">
  36556. </constructor>
  36557. <method name="getPlatformName" return="java.lang.String"
  36558. abstract="false" native="false" synchronized="false"
  36559. static="true" final="false" visibility="public"
  36560. deprecated="not deprecated">
  36561. <doc>
  36562. <![CDATA[Get the complete platform as per the java-vm.
  36563. @return returns the complete platform as per the java-vm.]]>
  36564. </doc>
  36565. </method>
  36566. <method name="main"
  36567. abstract="false" native="false" synchronized="false"
  36568. static="true" final="false" visibility="public"
  36569. deprecated="not deprecated">
  36570. <param name="args" type="java.lang.String[]"/>
  36571. </method>
  36572. <doc>
  36573. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  36574. </doc>
  36575. </class>
  36576. <!-- end class org.apache.hadoop.util.PlatformName -->
  36577. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  36578. <class name="PrintJarMainClass" extends="java.lang.Object"
  36579. abstract="false"
  36580. static="false" final="false" visibility="public"
  36581. deprecated="not deprecated">
  36582. <constructor name="PrintJarMainClass"
  36583. static="false" final="false" visibility="public"
  36584. deprecated="not deprecated">
  36585. </constructor>
  36586. <method name="main"
  36587. abstract="false" native="false" synchronized="false"
  36588. static="true" final="false" visibility="public"
  36589. deprecated="not deprecated">
  36590. <param name="args" type="java.lang.String[]"/>
  36591. <doc>
  36592. <![CDATA[@param args]]>
  36593. </doc>
  36594. </method>
  36595. <doc>
  36596. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  36597. </doc>
  36598. </class>
  36599. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  36600. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  36601. <class name="PriorityQueue" extends="java.lang.Object"
  36602. abstract="true"
  36603. static="false" final="false" visibility="public"
  36604. deprecated="not deprecated">
  36605. <constructor name="PriorityQueue"
  36606. static="false" final="false" visibility="public"
  36607. deprecated="not deprecated">
  36608. </constructor>
  36609. <method name="lessThan" return="boolean"
  36610. abstract="true" native="false" synchronized="false"
  36611. static="false" final="false" visibility="protected"
  36612. deprecated="not deprecated">
  36613. <param name="a" type="java.lang.Object"/>
  36614. <param name="b" type="java.lang.Object"/>
  36615. <doc>
  36616. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  36617. must define this one method.]]>
  36618. </doc>
  36619. </method>
  36620. <method name="initialize"
  36621. abstract="false" native="false" synchronized="false"
  36622. static="false" final="true" visibility="protected"
  36623. deprecated="not deprecated">
  36624. <param name="maxSize" type="int"/>
  36625. <doc>
  36626. <![CDATA[Subclass constructors must call this.]]>
  36627. </doc>
  36628. </method>
  36629. <method name="put"
  36630. abstract="false" native="false" synchronized="false"
  36631. static="false" final="true" visibility="public"
  36632. deprecated="not deprecated">
  36633. <param name="element" type="java.lang.Object"/>
  36634. <doc>
  36635. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  36636. If one tries to add more objects than maxSize from initialize
  36637. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  36638. </doc>
  36639. </method>
  36640. <method name="insert" return="boolean"
  36641. abstract="false" native="false" synchronized="false"
  36642. static="false" final="false" visibility="public"
  36643. deprecated="not deprecated">
  36644. <param name="element" type="java.lang.Object"/>
  36645. <doc>
  36646. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  36647. the PriorityQueue is not full, or not lessThan(element, top()).
  36648. @param element
  36649. @return true if element is added, false otherwise.]]>
  36650. </doc>
  36651. </method>
  36652. <method name="top" return="java.lang.Object"
  36653. abstract="false" native="false" synchronized="false"
  36654. static="false" final="true" visibility="public"
  36655. deprecated="not deprecated">
  36656. <doc>
  36657. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  36658. </doc>
  36659. </method>
  36660. <method name="pop" return="java.lang.Object"
  36661. abstract="false" native="false" synchronized="false"
  36662. static="false" final="true" visibility="public"
  36663. deprecated="not deprecated">
  36664. <doc>
  36665. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  36666. time.]]>
  36667. </doc>
  36668. </method>
  36669. <method name="adjustTop"
  36670. abstract="false" native="false" synchronized="false"
  36671. static="false" final="true" visibility="public"
  36672. deprecated="not deprecated">
  36673. <doc>
  36674. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  36675. worst case, but it's at least twice as fast to <pre>
  36676. { pq.top().change(); pq.adjustTop(); }
  36677. </pre> instead of <pre>
  36678. { o = pq.pop(); o.change(); pq.push(o); }
  36679. </pre>]]>
  36680. </doc>
  36681. </method>
  36682. <method name="size" return="int"
  36683. abstract="false" native="false" synchronized="false"
  36684. static="false" final="true" visibility="public"
  36685. deprecated="not deprecated">
  36686. <doc>
  36687. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  36688. </doc>
  36689. </method>
  36690. <method name="clear"
  36691. abstract="false" native="false" synchronized="false"
  36692. static="false" final="true" visibility="public"
  36693. deprecated="not deprecated">
  36694. <doc>
  36695. <![CDATA[Removes all entries from the PriorityQueue.]]>
  36696. </doc>
  36697. </method>
  36698. <doc>
  36699. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  36700. least element can always be found in constant time. Put()'s and pop()'s
  36701. require log(size) time.]]>
  36702. </doc>
  36703. </class>
  36704. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  36705. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  36706. <class name="ProgramDriver" extends="java.lang.Object"
  36707. abstract="false"
  36708. static="false" final="false" visibility="public"
  36709. deprecated="not deprecated">
  36710. <constructor name="ProgramDriver"
  36711. static="false" final="false" visibility="public"
  36712. deprecated="not deprecated">
  36713. </constructor>
  36714. <method name="addClass"
  36715. abstract="false" native="false" synchronized="false"
  36716. static="false" final="false" visibility="public"
  36717. deprecated="not deprecated">
  36718. <param name="name" type="java.lang.String"/>
  36719. <param name="mainClass" type="java.lang.Class"/>
  36720. <param name="description" type="java.lang.String"/>
  36721. <exception name="Throwable" type="java.lang.Throwable"/>
  36722. <doc>
  36723. <![CDATA[This is the method that adds the classed to the repository
  36724. @param name The name of the string you want the class instance to be called with
  36725. @param mainClass The class that you want to add to the repository
  36726. @param description The description of the class
  36727. @throws NoSuchMethodException
  36728. @throws SecurityException]]>
  36729. </doc>
  36730. </method>
  36731. <method name="driver"
  36732. abstract="false" native="false" synchronized="false"
  36733. static="false" final="false" visibility="public"
  36734. deprecated="not deprecated">
  36735. <param name="args" type="java.lang.String[]"/>
  36736. <exception name="Throwable" type="java.lang.Throwable"/>
  36737. <doc>
  36738. <![CDATA[This is a driver for the example programs.
  36739. It looks at the first command line argument and tries to find an
  36740. example program with that name.
  36741. If it is found, it calls the main method in that class with the rest
  36742. of the command line arguments.
  36743. @param args The argument from the user. args[0] is the command to run.
  36744. @throws NoSuchMethodException
  36745. @throws SecurityException
  36746. @throws IllegalAccessException
  36747. @throws IllegalArgumentException
  36748. @throws Throwable Anything thrown by the example program's main]]>
  36749. </doc>
  36750. </method>
  36751. <doc>
  36752. <![CDATA[A driver that is used to run programs added to it]]>
  36753. </doc>
  36754. </class>
  36755. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  36756. <!-- start class org.apache.hadoop.util.Progress -->
  36757. <class name="Progress" extends="java.lang.Object"
  36758. abstract="false"
  36759. static="false" final="false" visibility="public"
  36760. deprecated="not deprecated">
  36761. <constructor name="Progress"
  36762. static="false" final="false" visibility="public"
  36763. deprecated="not deprecated">
  36764. <doc>
  36765. <![CDATA[Creates a new root node.]]>
  36766. </doc>
  36767. </constructor>
  36768. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  36769. abstract="false" native="false" synchronized="false"
  36770. static="false" final="false" visibility="public"
  36771. deprecated="not deprecated">
  36772. <param name="status" type="java.lang.String"/>
  36773. <doc>
  36774. <![CDATA[Adds a named node to the tree.]]>
  36775. </doc>
  36776. </method>
  36777. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  36778. abstract="false" native="false" synchronized="true"
  36779. static="false" final="false" visibility="public"
  36780. deprecated="not deprecated">
  36781. <doc>
  36782. <![CDATA[Adds a node to the tree.]]>
  36783. </doc>
  36784. </method>
  36785. <method name="startNextPhase"
  36786. abstract="false" native="false" synchronized="true"
  36787. static="false" final="false" visibility="public"
  36788. deprecated="not deprecated">
  36789. <doc>
  36790. <![CDATA[Called during execution to move to the next phase at this level in the
  36791. tree.]]>
  36792. </doc>
  36793. </method>
  36794. <method name="phase" return="org.apache.hadoop.util.Progress"
  36795. abstract="false" native="false" synchronized="true"
  36796. static="false" final="false" visibility="public"
  36797. deprecated="not deprecated">
  36798. <doc>
  36799. <![CDATA[Returns the current sub-node executing.]]>
  36800. </doc>
  36801. </method>
  36802. <method name="complete"
  36803. abstract="false" native="false" synchronized="false"
  36804. static="false" final="false" visibility="public"
  36805. deprecated="not deprecated">
  36806. <doc>
  36807. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  36808. </doc>
  36809. </method>
  36810. <method name="set"
  36811. abstract="false" native="false" synchronized="true"
  36812. static="false" final="false" visibility="public"
  36813. deprecated="not deprecated">
  36814. <param name="progress" type="float"/>
  36815. <doc>
  36816. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  36817. </doc>
  36818. </method>
  36819. <method name="get" return="float"
  36820. abstract="false" native="false" synchronized="true"
  36821. static="false" final="false" visibility="public"
  36822. deprecated="not deprecated">
  36823. <doc>
  36824. <![CDATA[Returns the overall progress of the root.]]>
  36825. </doc>
  36826. </method>
  36827. <method name="setStatus"
  36828. abstract="false" native="false" synchronized="true"
  36829. static="false" final="false" visibility="public"
  36830. deprecated="not deprecated">
  36831. <param name="status" type="java.lang.String"/>
  36832. </method>
  36833. <method name="toString" return="java.lang.String"
  36834. abstract="false" native="false" synchronized="false"
  36835. static="false" final="false" visibility="public"
  36836. deprecated="not deprecated">
  36837. </method>
  36838. <doc>
  36839. <![CDATA[Utility to assist with generation of progress reports. Applications build
  36840. a hierarchy of {@link Progress} instances, each modelling a phase of
  36841. execution. The root is constructed with {@link #Progress()}. Nodes for
  36842. sub-phases are created by calling {@link #addPhase()}.]]>
  36843. </doc>
  36844. </class>
  36845. <!-- end class org.apache.hadoop.util.Progress -->
  36846. <!-- start interface org.apache.hadoop.util.Progressable -->
  36847. <interface name="Progressable" abstract="true"
  36848. static="false" final="false" visibility="public"
  36849. deprecated="not deprecated">
  36850. <method name="progress"
  36851. abstract="false" native="false" synchronized="false"
  36852. static="false" final="false" visibility="public"
  36853. deprecated="not deprecated">
  36854. <doc>
  36855. <![CDATA[Report progress to the Hadoop framework.]]>
  36856. </doc>
  36857. </method>
  36858. <doc>
  36859. <![CDATA[A facility for reporting progress.
  36860. <p>Clients and/or applications can use the provided <code>Progressable</code>
  36861. to explicitly report progress to the Hadoop framework. This is especially
  36862. important for operations which take an insignificant amount of time since,
  36863. in-lieu of the reported progress, the framework has to assume that an error
  36864. has occured and time-out the operation.</p>]]>
  36865. </doc>
  36866. </interface>
  36867. <!-- end interface org.apache.hadoop.util.Progressable -->
  36868. <!-- start class org.apache.hadoop.util.QuickSort -->
  36869. <class name="QuickSort" extends="java.lang.Object"
  36870. abstract="false"
  36871. static="false" final="true" visibility="public"
  36872. deprecated="not deprecated">
  36873. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  36874. <constructor name="QuickSort"
  36875. static="false" final="false" visibility="public"
  36876. deprecated="not deprecated">
  36877. </constructor>
  36878. <method name="getMaxDepth" return="int"
  36879. abstract="false" native="false" synchronized="false"
  36880. static="true" final="false" visibility="protected"
  36881. deprecated="not deprecated">
  36882. <param name="x" type="int"/>
  36883. <doc>
  36884. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  36885. Returns 2 * ceil(log(n)).]]>
  36886. </doc>
  36887. </method>
  36888. <method name="sort"
  36889. abstract="false" native="false" synchronized="false"
  36890. static="false" final="false" visibility="public"
  36891. deprecated="not deprecated">
  36892. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36893. <param name="p" type="int"/>
  36894. <param name="r" type="int"/>
  36895. <doc>
  36896. <![CDATA[Sort the given range of items using quick sort.
  36897. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  36898. then switch to {@link HeapSort}.]]>
  36899. </doc>
  36900. </method>
  36901. <method name="sort"
  36902. abstract="false" native="false" synchronized="false"
  36903. static="false" final="false" visibility="public"
  36904. deprecated="not deprecated">
  36905. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  36906. <param name="p" type="int"/>
  36907. <param name="r" type="int"/>
  36908. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  36909. <doc>
  36910. <![CDATA[{@inheritDoc}]]>
  36911. </doc>
  36912. </method>
  36913. <doc>
  36914. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  36915. </doc>
  36916. </class>
  36917. <!-- end class org.apache.hadoop.util.QuickSort -->
  36918. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  36919. <class name="ReflectionUtils" extends="java.lang.Object"
  36920. abstract="false"
  36921. static="false" final="false" visibility="public"
  36922. deprecated="not deprecated">
  36923. <constructor name="ReflectionUtils"
  36924. static="false" final="false" visibility="public"
  36925. deprecated="not deprecated">
  36926. </constructor>
  36927. <method name="setConf"
  36928. abstract="false" native="false" synchronized="false"
  36929. static="true" final="false" visibility="public"
  36930. deprecated="not deprecated">
  36931. <param name="theObject" type="java.lang.Object"/>
  36932. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36933. <doc>
  36934. <![CDATA[Check and set 'configuration' if necessary.
  36935. @param theObject object for which to set configuration
  36936. @param conf Configuration]]>
  36937. </doc>
  36938. </method>
  36939. <method name="newInstance" return="java.lang.Object"
  36940. abstract="false" native="false" synchronized="false"
  36941. static="true" final="false" visibility="public"
  36942. deprecated="not deprecated">
  36943. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  36944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36945. <doc>
  36946. <![CDATA[Create an object for the given class and initialize it from conf
  36947. @param theClass class of which an object is created
  36948. @param conf Configuration
  36949. @return a new object]]>
  36950. </doc>
  36951. </method>
  36952. <method name="setContentionTracing"
  36953. abstract="false" native="false" synchronized="false"
  36954. static="true" final="false" visibility="public"
  36955. deprecated="not deprecated">
  36956. <param name="val" type="boolean"/>
  36957. </method>
  36958. <method name="printThreadInfo"
  36959. abstract="false" native="false" synchronized="false"
  36960. static="true" final="false" visibility="public"
  36961. deprecated="not deprecated">
  36962. <param name="stream" type="java.io.PrintWriter"/>
  36963. <param name="title" type="java.lang.String"/>
  36964. <doc>
  36965. <![CDATA[Print all of the thread's information and stack traces.
  36966. @param stream the stream to
  36967. @param title a string title for the stack trace]]>
  36968. </doc>
  36969. </method>
  36970. <method name="logThreadInfo"
  36971. abstract="false" native="false" synchronized="false"
  36972. static="true" final="false" visibility="public"
  36973. deprecated="not deprecated">
  36974. <param name="log" type="org.apache.commons.logging.Log"/>
  36975. <param name="title" type="java.lang.String"/>
  36976. <param name="minInterval" type="long"/>
  36977. <doc>
  36978. <![CDATA[Log the current thread stacks at INFO level.
  36979. @param log the logger that logs the stack trace
  36980. @param title a descriptive title for the call stacks
  36981. @param minInterval the minimum time from the last]]>
  36982. </doc>
  36983. </method>
  36984. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  36985. abstract="false" native="false" synchronized="false"
  36986. static="true" final="false" visibility="public"
  36987. deprecated="not deprecated">
  36988. <param name="o" type="T"/>
  36989. <doc>
  36990. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  36991. @param o object whose correctly-typed <code>Class</code> is to be obtained
  36992. @return the correctly typed <code>Class</code> of the given object.]]>
  36993. </doc>
  36994. </method>
  36995. <doc>
  36996. <![CDATA[General reflection utils]]>
  36997. </doc>
  36998. </class>
  36999. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  37000. <!-- start class org.apache.hadoop.util.RunJar -->
  37001. <class name="RunJar" extends="java.lang.Object"
  37002. abstract="false"
  37003. static="false" final="false" visibility="public"
  37004. deprecated="not deprecated">
  37005. <constructor name="RunJar"
  37006. static="false" final="false" visibility="public"
  37007. deprecated="not deprecated">
  37008. </constructor>
  37009. <method name="unJar"
  37010. abstract="false" native="false" synchronized="false"
  37011. static="true" final="false" visibility="public"
  37012. deprecated="not deprecated">
  37013. <param name="jarFile" type="java.io.File"/>
  37014. <param name="toDir" type="java.io.File"/>
  37015. <exception name="IOException" type="java.io.IOException"/>
  37016. <doc>
  37017. <![CDATA[Unpack a jar file into a directory.]]>
  37018. </doc>
  37019. </method>
  37020. <method name="main"
  37021. abstract="false" native="false" synchronized="false"
  37022. static="true" final="false" visibility="public"
  37023. deprecated="not deprecated">
  37024. <param name="args" type="java.lang.String[]"/>
  37025. <exception name="Throwable" type="java.lang.Throwable"/>
  37026. <doc>
  37027. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  37028. then it must be provided on the command line.]]>
  37029. </doc>
  37030. </method>
  37031. <doc>
  37032. <![CDATA[Run a Hadoop job jar.]]>
  37033. </doc>
  37034. </class>
  37035. <!-- end class org.apache.hadoop.util.RunJar -->
  37036. <!-- start class org.apache.hadoop.util.ServletUtil -->
  37037. <class name="ServletUtil" extends="java.lang.Object"
  37038. abstract="false"
  37039. static="false" final="false" visibility="public"
  37040. deprecated="not deprecated">
  37041. <constructor name="ServletUtil"
  37042. static="false" final="false" visibility="public"
  37043. deprecated="not deprecated">
  37044. </constructor>
  37045. <method name="initHTML" return="java.io.PrintWriter"
  37046. abstract="false" native="false" synchronized="false"
  37047. static="true" final="false" visibility="public"
  37048. deprecated="not deprecated">
  37049. <param name="response" type="javax.servlet.ServletResponse"/>
  37050. <param name="title" type="java.lang.String"/>
  37051. <exception name="IOException" type="java.io.IOException"/>
  37052. <doc>
  37053. <![CDATA[Initial HTML header]]>
  37054. </doc>
  37055. </method>
  37056. <method name="getParameter" return="java.lang.String"
  37057. abstract="false" native="false" synchronized="false"
  37058. static="true" final="false" visibility="public"
  37059. deprecated="not deprecated">
  37060. <param name="request" type="javax.servlet.ServletRequest"/>
  37061. <param name="name" type="java.lang.String"/>
  37062. <doc>
  37063. <![CDATA[Get a parameter from a ServletRequest.
  37064. Return null if the parameter contains only white spaces.]]>
  37065. </doc>
  37066. </method>
  37067. <method name="htmlFooter" return="java.lang.String"
  37068. abstract="false" native="false" synchronized="false"
  37069. static="true" final="false" visibility="public"
  37070. deprecated="not deprecated">
  37071. <doc>
  37072. <![CDATA[HTML footer to be added in the jsps.
  37073. @return the HTML footer.]]>
  37074. </doc>
  37075. </method>
  37076. <field name="HTML_TAIL" type="java.lang.String"
  37077. transient="false" volatile="false"
  37078. static="true" final="true" visibility="public"
  37079. deprecated="not deprecated">
  37080. </field>
  37081. </class>
  37082. <!-- end class org.apache.hadoop.util.ServletUtil -->
  37083. <!-- start class org.apache.hadoop.util.Shell -->
  37084. <class name="Shell" extends="java.lang.Object"
  37085. abstract="true"
  37086. static="false" final="false" visibility="public"
  37087. deprecated="not deprecated">
  37088. <constructor name="Shell"
  37089. static="false" final="false" visibility="public"
  37090. deprecated="not deprecated">
  37091. </constructor>
  37092. <constructor name="Shell" type="long"
  37093. static="false" final="false" visibility="public"
  37094. deprecated="not deprecated">
  37095. <doc>
  37096. <![CDATA[@param interval the minimum duration to wait before re-executing the
  37097. command.]]>
  37098. </doc>
  37099. </constructor>
  37100. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  37101. abstract="false" native="false" synchronized="false"
  37102. static="true" final="false" visibility="public"
  37103. deprecated="not deprecated">
  37104. <doc>
  37105. <![CDATA[a Unix command to get the current user's groups list]]>
  37106. </doc>
  37107. </method>
  37108. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  37109. abstract="false" native="false" synchronized="false"
  37110. static="true" final="false" visibility="public"
  37111. deprecated="not deprecated">
  37112. <doc>
  37113. <![CDATA[Return a Unix command to get permission information.]]>
  37114. </doc>
  37115. </method>
  37116. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  37117. abstract="false" native="false" synchronized="false"
  37118. static="true" final="false" visibility="public"
  37119. deprecated="not deprecated">
  37120. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  37121. <doc>
  37122. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  37123. to a given child process. This is only relevant when we are forking a
  37124. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  37125. {@link org.apache.hadoop.mapred.Reducer} implementations
  37126. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  37127. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  37128. It also checks to ensure that we are running on a *nix platform else
  37129. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  37130. @param job job configuration
  37131. @return a <code>String[]</code> with the ulimit command arguments or
  37132. <code>null</code> if we are running on a non *nix platform or
  37133. if the limit is unspecified.]]>
  37134. </doc>
  37135. </method>
  37136. <method name="setEnvironment"
  37137. abstract="false" native="false" synchronized="false"
  37138. static="false" final="false" visibility="protected"
  37139. deprecated="not deprecated">
  37140. <param name="env" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  37141. <doc>
  37142. <![CDATA[set the environment for the command
  37143. @param env Mapping of environment variables]]>
  37144. </doc>
  37145. </method>
  37146. <method name="setWorkingDirectory"
  37147. abstract="false" native="false" synchronized="false"
  37148. static="false" final="false" visibility="protected"
  37149. deprecated="not deprecated">
  37150. <param name="dir" type="java.io.File"/>
  37151. <doc>
  37152. <![CDATA[set the working directory
  37153. @param dir The directory where the command would be executed]]>
  37154. </doc>
  37155. </method>
  37156. <method name="run"
  37157. abstract="false" native="false" synchronized="false"
  37158. static="false" final="false" visibility="protected"
  37159. deprecated="not deprecated">
  37160. <exception name="IOException" type="java.io.IOException"/>
  37161. <doc>
  37162. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  37163. </doc>
  37164. </method>
  37165. <method name="getExecString" return="java.lang.String[]"
  37166. abstract="true" native="false" synchronized="false"
  37167. static="false" final="false" visibility="protected"
  37168. deprecated="not deprecated">
  37169. <doc>
  37170. <![CDATA[return an array containing the command name & its parameters]]>
  37171. </doc>
  37172. </method>
  37173. <method name="parseExecResult"
  37174. abstract="true" native="false" synchronized="false"
  37175. static="false" final="false" visibility="protected"
  37176. deprecated="not deprecated">
  37177. <param name="lines" type="java.io.BufferedReader"/>
  37178. <exception name="IOException" type="java.io.IOException"/>
  37179. <doc>
  37180. <![CDATA[Parse the execution result]]>
  37181. </doc>
  37182. </method>
  37183. <method name="getProcess" return="java.lang.Process"
  37184. abstract="false" native="false" synchronized="false"
  37185. static="false" final="false" visibility="public"
  37186. deprecated="not deprecated">
  37187. <doc>
  37188. <![CDATA[get the current sub-process executing the given command
  37189. @return process executing the command]]>
  37190. </doc>
  37191. </method>
  37192. <method name="getExitCode" return="int"
  37193. abstract="false" native="false" synchronized="false"
  37194. static="false" final="false" visibility="public"
  37195. deprecated="not deprecated">
  37196. <doc>
  37197. <![CDATA[get the exit code
  37198. @return the exit code of the process]]>
  37199. </doc>
  37200. </method>
  37201. <method name="execCommand" return="java.lang.String"
  37202. abstract="false" native="false" synchronized="false"
  37203. static="true" final="false" visibility="public"
  37204. deprecated="not deprecated">
  37205. <param name="cmd" type="java.lang.String[]"/>
  37206. <exception name="IOException" type="java.io.IOException"/>
  37207. <doc>
  37208. <![CDATA[Static method to execute a shell command.
  37209. Covers most of the simple cases without requiring the user to implement
  37210. the <code>Shell</code> interface.
  37211. @param cmd shell command to execute.
  37212. @return the output of the executed command.]]>
  37213. </doc>
  37214. </method>
  37215. <field name="LOG" type="org.apache.commons.logging.Log"
  37216. transient="false" volatile="false"
  37217. static="true" final="true" visibility="public"
  37218. deprecated="not deprecated">
  37219. </field>
  37220. <field name="USER_NAME_COMMAND" type="java.lang.String"
  37221. transient="false" volatile="false"
  37222. static="true" final="true" visibility="public"
  37223. deprecated="not deprecated">
  37224. <doc>
  37225. <![CDATA[a Unix command to get the current user's name]]>
  37226. </doc>
  37227. </field>
  37228. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  37229. transient="false" volatile="false"
  37230. static="true" final="true" visibility="public"
  37231. deprecated="not deprecated">
  37232. <doc>
  37233. <![CDATA[a Unix command to set permission]]>
  37234. </doc>
  37235. </field>
  37236. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  37237. transient="false" volatile="false"
  37238. static="true" final="true" visibility="public"
  37239. deprecated="not deprecated">
  37240. <doc>
  37241. <![CDATA[a Unix command to set owner]]>
  37242. </doc>
  37243. </field>
  37244. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  37245. transient="false" volatile="false"
  37246. static="true" final="true" visibility="public"
  37247. deprecated="not deprecated">
  37248. </field>
  37249. <field name="WINDOWS" type="boolean"
  37250. transient="false" volatile="false"
  37251. static="true" final="true" visibility="public"
  37252. deprecated="not deprecated">
  37253. <doc>
  37254. <![CDATA[Set to true on Windows platforms]]>
  37255. </doc>
  37256. </field>
  37257. <doc>
  37258. <![CDATA[A base class for running a Unix command.
  37259. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  37260. <code>df</code>. It also offers facilities to gate commands by
  37261. time-intervals.]]>
  37262. </doc>
  37263. </class>
  37264. <!-- end class org.apache.hadoop.util.Shell -->
  37265. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  37266. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  37267. abstract="false"
  37268. static="true" final="false" visibility="public"
  37269. deprecated="not deprecated">
  37270. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  37271. static="false" final="false" visibility="public"
  37272. deprecated="not deprecated">
  37273. </constructor>
  37274. <method name="getExitCode" return="int"
  37275. abstract="false" native="false" synchronized="false"
  37276. static="false" final="false" visibility="public"
  37277. deprecated="not deprecated">
  37278. </method>
  37279. <doc>
  37280. <![CDATA[This is an IOException with exit code added.]]>
  37281. </doc>
  37282. </class>
  37283. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  37284. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  37285. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  37286. abstract="false"
  37287. static="true" final="false" visibility="public"
  37288. deprecated="not deprecated">
  37289. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  37290. static="false" final="false" visibility="public"
  37291. deprecated="not deprecated">
  37292. </constructor>
  37293. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  37294. static="false" final="false" visibility="public"
  37295. deprecated="not deprecated">
  37296. </constructor>
  37297. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  37298. static="false" final="false" visibility="public"
  37299. deprecated="not deprecated">
  37300. </constructor>
  37301. <method name="execute"
  37302. abstract="false" native="false" synchronized="false"
  37303. static="false" final="false" visibility="public"
  37304. deprecated="not deprecated">
  37305. <exception name="IOException" type="java.io.IOException"/>
  37306. <doc>
  37307. <![CDATA[Execute the shell command.]]>
  37308. </doc>
  37309. </method>
  37310. <method name="getExecString" return="java.lang.String[]"
  37311. abstract="false" native="false" synchronized="false"
  37312. static="false" final="false" visibility="protected"
  37313. deprecated="not deprecated">
  37314. </method>
  37315. <method name="parseExecResult"
  37316. abstract="false" native="false" synchronized="false"
  37317. static="false" final="false" visibility="protected"
  37318. deprecated="not deprecated">
  37319. <param name="lines" type="java.io.BufferedReader"/>
  37320. <exception name="IOException" type="java.io.IOException"/>
  37321. </method>
  37322. <method name="getOutput" return="java.lang.String"
  37323. abstract="false" native="false" synchronized="false"
  37324. static="false" final="false" visibility="public"
  37325. deprecated="not deprecated">
  37326. <doc>
  37327. <![CDATA[Get the output of the shell command.]]>
  37328. </doc>
  37329. </method>
  37330. <doc>
  37331. <![CDATA[A simple shell command executor.
  37332. <code>ShellCommandExecutor</code>should be used in cases where the output
  37333. of the command needs no explicit parsing and where the command, working
  37334. directory and the environment remains unchanged. The output of the command
  37335. is stored as-is and is expected to be small.]]>
  37336. </doc>
  37337. </class>
  37338. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  37339. <!-- start class org.apache.hadoop.util.StringUtils -->
  37340. <class name="StringUtils" extends="java.lang.Object"
  37341. abstract="false"
  37342. static="false" final="false" visibility="public"
  37343. deprecated="not deprecated">
  37344. <constructor name="StringUtils"
  37345. static="false" final="false" visibility="public"
  37346. deprecated="not deprecated">
  37347. </constructor>
  37348. <method name="stringifyException" return="java.lang.String"
  37349. abstract="false" native="false" synchronized="false"
  37350. static="true" final="false" visibility="public"
  37351. deprecated="not deprecated">
  37352. <param name="e" type="java.lang.Throwable"/>
  37353. <doc>
  37354. <![CDATA[Make a string representation of the exception.
  37355. @param e The exception to stringify
  37356. @return A string with exception name and call stack.]]>
  37357. </doc>
  37358. </method>
  37359. <method name="simpleHostname" return="java.lang.String"
  37360. abstract="false" native="false" synchronized="false"
  37361. static="true" final="false" visibility="public"
  37362. deprecated="not deprecated">
  37363. <param name="fullHostname" type="java.lang.String"/>
  37364. <doc>
  37365. <![CDATA[Given a full hostname, return the word upto the first dot.
  37366. @param fullHostname the full hostname
  37367. @return the hostname to the first dot]]>
  37368. </doc>
  37369. </method>
  37370. <method name="humanReadableInt" return="java.lang.String"
  37371. abstract="false" native="false" synchronized="false"
  37372. static="true" final="false" visibility="public"
  37373. deprecated="not deprecated">
  37374. <param name="number" type="long"/>
  37375. <doc>
  37376. <![CDATA[Given an integer, return a string that is in an approximate, but human
  37377. readable format.
  37378. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  37379. @param number the number to format
  37380. @return a human readable form of the integer]]>
  37381. </doc>
  37382. </method>
  37383. <method name="formatPercent" return="java.lang.String"
  37384. abstract="false" native="false" synchronized="false"
  37385. static="true" final="false" visibility="public"
  37386. deprecated="not deprecated">
  37387. <param name="done" type="double"/>
  37388. <param name="digits" type="int"/>
  37389. <doc>
  37390. <![CDATA[Format a percentage for presentation to the user.
  37391. @param done the percentage to format (0.0 to 1.0)
  37392. @param digits the number of digits past the decimal point
  37393. @return a string representation of the percentage]]>
  37394. </doc>
  37395. </method>
  37396. <method name="arrayToString" return="java.lang.String"
  37397. abstract="false" native="false" synchronized="false"
  37398. static="true" final="false" visibility="public"
  37399. deprecated="not deprecated">
  37400. <param name="strs" type="java.lang.String[]"/>
  37401. <doc>
  37402. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  37403. @param strs Array of strings
  37404. @return Empty string if strs.length is 0, comma separated list of strings
  37405. otherwise]]>
  37406. </doc>
  37407. </method>
  37408. <method name="byteToHexString" return="java.lang.String"
  37409. abstract="false" native="false" synchronized="false"
  37410. static="true" final="false" visibility="public"
  37411. deprecated="not deprecated">
  37412. <param name="bytes" type="byte[]"/>
  37413. <doc>
  37414. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  37415. representation of the bytes
  37416. @param bytes
  37417. @return hex string representation of the byte array]]>
  37418. </doc>
  37419. </method>
  37420. <method name="hexStringToByte" return="byte[]"
  37421. abstract="false" native="false" synchronized="false"
  37422. static="true" final="false" visibility="public"
  37423. deprecated="not deprecated">
  37424. <param name="hex" type="java.lang.String"/>
  37425. <doc>
  37426. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  37427. string
  37428. @param hex the hex String array
  37429. @return a byte array that is a hex string representation of the given
  37430. string. The size of the byte array is therefore hex.length/2]]>
  37431. </doc>
  37432. </method>
  37433. <method name="uriToString" return="java.lang.String"
  37434. abstract="false" native="false" synchronized="false"
  37435. static="true" final="false" visibility="public"
  37436. deprecated="not deprecated">
  37437. <param name="uris" type="java.net.URI[]"/>
  37438. <doc>
  37439. <![CDATA[@param uris]]>
  37440. </doc>
  37441. </method>
  37442. <method name="stringToURI" return="java.net.URI[]"
  37443. abstract="false" native="false" synchronized="false"
  37444. static="true" final="false" visibility="public"
  37445. deprecated="not deprecated">
  37446. <param name="str" type="java.lang.String[]"/>
  37447. <doc>
  37448. <![CDATA[@param str]]>
  37449. </doc>
  37450. </method>
  37451. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  37452. abstract="false" native="false" synchronized="false"
  37453. static="true" final="false" visibility="public"
  37454. deprecated="not deprecated">
  37455. <param name="str" type="java.lang.String[]"/>
  37456. <doc>
  37457. <![CDATA[@param str]]>
  37458. </doc>
  37459. </method>
  37460. <method name="formatTimeDiff" return="java.lang.String"
  37461. abstract="false" native="false" synchronized="false"
  37462. static="true" final="false" visibility="public"
  37463. deprecated="not deprecated">
  37464. <param name="finishTime" type="long"/>
  37465. <param name="startTime" type="long"/>
  37466. <doc>
  37467. <![CDATA[Given a finish and start time in long milliseconds, returns a
  37468. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  37469. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  37470. @param finishTime finish time
  37471. @param startTime start time]]>
  37472. </doc>
  37473. </method>
  37474. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  37475. abstract="false" native="false" synchronized="false"
  37476. static="true" final="false" visibility="public"
  37477. deprecated="not deprecated">
  37478. <param name="dateFormat" type="java.text.DateFormat"/>
  37479. <param name="finishTime" type="long"/>
  37480. <param name="startTime" type="long"/>
  37481. <doc>
  37482. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  37483. as returned by formatTimeDiff().
  37484. If finish time is 0, empty string is returned, if start time is 0
  37485. then difference is not appended to return value.
  37486. @param dateFormat date format to use
  37487. @param finishTime fnish time
  37488. @param startTime start time
  37489. @return formatted value.]]>
  37490. </doc>
  37491. </method>
  37492. <method name="getStrings" return="java.lang.String[]"
  37493. abstract="false" native="false" synchronized="false"
  37494. static="true" final="false" visibility="public"
  37495. deprecated="not deprecated">
  37496. <param name="str" type="java.lang.String"/>
  37497. <doc>
  37498. <![CDATA[Returns an arraylist of strings.
  37499. @param str the comma seperated string values
  37500. @return the arraylist of the comma seperated string values]]>
  37501. </doc>
  37502. </method>
  37503. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  37504. abstract="false" native="false" synchronized="false"
  37505. static="true" final="false" visibility="public"
  37506. deprecated="not deprecated">
  37507. <param name="str" type="java.lang.String"/>
  37508. <doc>
  37509. <![CDATA[Returns a collection of strings.
  37510. @param str comma seperated string values
  37511. @return an <code>ArrayList</code> of string values]]>
  37512. </doc>
  37513. </method>
  37514. <method name="split" return="java.lang.String[]"
  37515. abstract="false" native="false" synchronized="false"
  37516. static="true" final="false" visibility="public"
  37517. deprecated="not deprecated">
  37518. <param name="str" type="java.lang.String"/>
  37519. <doc>
  37520. <![CDATA[Split a string using the default separator
  37521. @param str a string that may have escaped separator
  37522. @return an array of strings]]>
  37523. </doc>
  37524. </method>
  37525. <method name="split" return="java.lang.String[]"
  37526. abstract="false" native="false" synchronized="false"
  37527. static="true" final="false" visibility="public"
  37528. deprecated="not deprecated">
  37529. <param name="str" type="java.lang.String"/>
  37530. <param name="escapeChar" type="char"/>
  37531. <param name="separator" type="char"/>
  37532. <doc>
  37533. <![CDATA[Split a string using the given separator
  37534. @param str a string that may have escaped separator
  37535. @param escapeChar a char that be used to escape the separator
  37536. @param separator a separator char
  37537. @return an array of strings]]>
  37538. </doc>
  37539. </method>
  37540. <method name="escapeString" return="java.lang.String"
  37541. abstract="false" native="false" synchronized="false"
  37542. static="true" final="false" visibility="public"
  37543. deprecated="not deprecated">
  37544. <param name="str" type="java.lang.String"/>
  37545. <doc>
  37546. <![CDATA[Escape commas in the string using the default escape char
  37547. @param str a string
  37548. @return an escaped string]]>
  37549. </doc>
  37550. </method>
  37551. <method name="escapeString" return="java.lang.String"
  37552. abstract="false" native="false" synchronized="false"
  37553. static="true" final="false" visibility="public"
  37554. deprecated="not deprecated">
  37555. <param name="str" type="java.lang.String"/>
  37556. <param name="escapeChar" type="char"/>
  37557. <param name="charToEscape" type="char"/>
  37558. <doc>
  37559. <![CDATA[Escape <code>charToEscape</code> in the string
  37560. with the escape char <code>escapeChar</code>
  37561. @param str string
  37562. @param escapeChar escape char
  37563. @param charToEscape the char to be escaped
  37564. @return an escaped string]]>
  37565. </doc>
  37566. </method>
  37567. <method name="unEscapeString" return="java.lang.String"
  37568. abstract="false" native="false" synchronized="false"
  37569. static="true" final="false" visibility="public"
  37570. deprecated="not deprecated">
  37571. <param name="str" type="java.lang.String"/>
  37572. <doc>
  37573. <![CDATA[Unescape commas in the string using the default escape char
  37574. @param str a string
  37575. @return an unescaped string]]>
  37576. </doc>
  37577. </method>
  37578. <method name="unEscapeString" return="java.lang.String"
  37579. abstract="false" native="false" synchronized="false"
  37580. static="true" final="false" visibility="public"
  37581. deprecated="not deprecated">
  37582. <param name="str" type="java.lang.String"/>
  37583. <param name="escapeChar" type="char"/>
  37584. <param name="charToEscape" type="char"/>
  37585. <doc>
  37586. <![CDATA[Unescape <code>charToEscape</code> in the string
  37587. with the escape char <code>escapeChar</code>
  37588. @param str string
  37589. @param escapeChar escape char
  37590. @param charToEscape the escaped char
  37591. @return an unescaped string]]>
  37592. </doc>
  37593. </method>
  37594. <method name="getHostname" return="java.lang.String"
  37595. abstract="false" native="false" synchronized="false"
  37596. static="true" final="false" visibility="public"
  37597. deprecated="not deprecated">
  37598. <doc>
  37599. <![CDATA[Return hostname without throwing exception.
  37600. @return hostname]]>
  37601. </doc>
  37602. </method>
  37603. <method name="startupShutdownMessage"
  37604. abstract="false" native="false" synchronized="false"
  37605. static="true" final="false" visibility="public"
  37606. deprecated="not deprecated">
  37607. <param name="clazz" type="java.lang.Class"/>
  37608. <param name="args" type="java.lang.String[]"/>
  37609. <param name="LOG" type="org.apache.commons.logging.Log"/>
  37610. <doc>
  37611. <![CDATA[Print a log message for starting up and shutting down
  37612. @param clazz the class of the server
  37613. @param args arguments
  37614. @param LOG the target log object]]>
  37615. </doc>
  37616. </method>
  37617. <field name="COMMA" type="char"
  37618. transient="false" volatile="false"
  37619. static="true" final="true" visibility="public"
  37620. deprecated="not deprecated">
  37621. </field>
  37622. <field name="COMMA_STR" type="java.lang.String"
  37623. transient="false" volatile="false"
  37624. static="true" final="true" visibility="public"
  37625. deprecated="not deprecated">
  37626. </field>
  37627. <field name="ESCAPE_CHAR" type="char"
  37628. transient="false" volatile="false"
  37629. static="true" final="true" visibility="public"
  37630. deprecated="not deprecated">
  37631. </field>
  37632. <doc>
  37633. <![CDATA[General string utils]]>
  37634. </doc>
  37635. </class>
  37636. <!-- end class org.apache.hadoop.util.StringUtils -->
  37637. <!-- start interface org.apache.hadoop.util.Tool -->
  37638. <interface name="Tool" abstract="true"
  37639. static="false" final="false" visibility="public"
  37640. deprecated="not deprecated">
  37641. <implements name="org.apache.hadoop.conf.Configurable"/>
  37642. <method name="run" return="int"
  37643. abstract="false" native="false" synchronized="false"
  37644. static="false" final="false" visibility="public"
  37645. deprecated="not deprecated">
  37646. <param name="args" type="java.lang.String[]"/>
  37647. <exception name="Exception" type="java.lang.Exception"/>
  37648. <doc>
  37649. <![CDATA[Execute the command with the given arguments.
  37650. @param args command specific arguments.
  37651. @return exit code.
  37652. @throws Exception]]>
  37653. </doc>
  37654. </method>
  37655. <doc>
  37656. <![CDATA[A tool interface that supports handling of generic command-line options.
  37657. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  37658. The tool/application should delegate the handling of
  37659. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  37660. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  37661. and only handle its custom arguments.</p>
  37662. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  37663. <p><blockquote><pre>
  37664. public class MyApp extends Configured implements Tool {
  37665. public int run(String[] args) throws Exception {
  37666. // <code>Configuration</code> processed by <code>ToolRunner</code>
  37667. Configuration conf = getConf();
  37668. // Create a JobConf using the processed <code>conf</code>
  37669. JobConf job = new JobConf(conf, MyApp.class);
  37670. // Process custom command-line options
  37671. Path in = new Path(args[1]);
  37672. Path out = new Path(args[2]);
  37673. // Specify various job-specific parameters
  37674. job.setJobName("my-app");
  37675. job.setInputPath(in);
  37676. job.setOutputPath(out);
  37677. job.setMapperClass(MyApp.MyMapper.class);
  37678. job.setReducerClass(MyApp.MyReducer.class);
  37679. // Submit the job, then poll for progress until the job is complete
  37680. JobClient.runJob(job);
  37681. }
  37682. public static void main(String[] args) throws Exception {
  37683. // Let <code>ToolRunner</code> handle generic command-line options
  37684. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  37685. System.exit(res);
  37686. }
  37687. }
  37688. </pre></blockquote></p>
  37689. @see GenericOptionsParser
  37690. @see ToolRunner]]>
  37691. </doc>
  37692. </interface>
  37693. <!-- end interface org.apache.hadoop.util.Tool -->
  37694. <!-- start class org.apache.hadoop.util.ToolRunner -->
  37695. <class name="ToolRunner" extends="java.lang.Object"
  37696. abstract="false"
  37697. static="false" final="false" visibility="public"
  37698. deprecated="not deprecated">
  37699. <constructor name="ToolRunner"
  37700. static="false" final="false" visibility="public"
  37701. deprecated="not deprecated">
  37702. </constructor>
  37703. <method name="run" return="int"
  37704. abstract="false" native="false" synchronized="false"
  37705. static="true" final="false" visibility="public"
  37706. deprecated="not deprecated">
  37707. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37708. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  37709. <param name="args" type="java.lang.String[]"/>
  37710. <exception name="Exception" type="java.lang.Exception"/>
  37711. <doc>
  37712. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  37713. parsing with the given generic arguments. Uses the given
  37714. <code>Configuration</code>, or builds one if null.
  37715. Sets the <code>Tool</code>'s configuration with the possibly modified
  37716. version of the <code>conf</code>.
  37717. @param conf <code>Configuration</code> for the <code>Tool</code>.
  37718. @param tool <code>Tool</code> to run.
  37719. @param args command-line arguments to the tool.
  37720. @return exit code of the {@link Tool#run(String[])} method.]]>
  37721. </doc>
  37722. </method>
  37723. <method name="run" return="int"
  37724. abstract="false" native="false" synchronized="false"
  37725. static="true" final="false" visibility="public"
  37726. deprecated="not deprecated">
  37727. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  37728. <param name="args" type="java.lang.String[]"/>
  37729. <exception name="Exception" type="java.lang.Exception"/>
  37730. <doc>
  37731. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  37732. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  37733. @param tool <code>Tool</code> to run.
  37734. @param args command-line arguments to the tool.
  37735. @return exit code of the {@link Tool#run(String[])} method.]]>
  37736. </doc>
  37737. </method>
  37738. <method name="printGenericCommandUsage"
  37739. abstract="false" native="false" synchronized="false"
  37740. static="true" final="false" visibility="public"
  37741. deprecated="not deprecated">
  37742. <param name="out" type="java.io.PrintStream"/>
  37743. <doc>
  37744. <![CDATA[Prints generic command-line argurments and usage information.
  37745. @param out stream to write usage information to.]]>
  37746. </doc>
  37747. </method>
  37748. <doc>
  37749. <![CDATA[A utility to help run {@link Tool}s.
  37750. <p><code>ToolRunner</code> can be used to run classes implementing
  37751. <code>Tool</code> interface. It works in conjunction with
  37752. {@link GenericOptionsParser} to parse the
  37753. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  37754. generic hadoop command line arguments</a> and modifies the
  37755. <code>Configuration</code> of the <code>Tool</code>. The
  37756. application-specific options are passed along without being modified.
  37757. </p>
  37758. @see Tool
  37759. @see GenericOptionsParser]]>
  37760. </doc>
  37761. </class>
  37762. <!-- end class org.apache.hadoop.util.ToolRunner -->
  37763. <!-- start class org.apache.hadoop.util.VersionInfo -->
  37764. <class name="VersionInfo" extends="java.lang.Object"
  37765. abstract="false"
  37766. static="false" final="false" visibility="public"
  37767. deprecated="not deprecated">
  37768. <constructor name="VersionInfo"
  37769. static="false" final="false" visibility="public"
  37770. deprecated="not deprecated">
  37771. </constructor>
  37772. <method name="getVersion" return="java.lang.String"
  37773. abstract="false" native="false" synchronized="false"
  37774. static="true" final="false" visibility="public"
  37775. deprecated="not deprecated">
  37776. <doc>
  37777. <![CDATA[Get the Hadoop version.
  37778. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  37779. </doc>
  37780. </method>
  37781. <method name="getRevision" return="java.lang.String"
  37782. abstract="false" native="false" synchronized="false"
  37783. static="true" final="false" visibility="public"
  37784. deprecated="not deprecated">
  37785. <doc>
  37786. <![CDATA[Get the subversion revision number for the root directory
  37787. @return the revision number, eg. "451451"]]>
  37788. </doc>
  37789. </method>
  37790. <method name="getDate" return="java.lang.String"
  37791. abstract="false" native="false" synchronized="false"
  37792. static="true" final="false" visibility="public"
  37793. deprecated="not deprecated">
  37794. <doc>
  37795. <![CDATA[The date that Hadoop was compiled.
  37796. @return the compilation date in unix date format]]>
  37797. </doc>
  37798. </method>
  37799. <method name="getUser" return="java.lang.String"
  37800. abstract="false" native="false" synchronized="false"
  37801. static="true" final="false" visibility="public"
  37802. deprecated="not deprecated">
  37803. <doc>
  37804. <![CDATA[The user that compiled Hadoop.
  37805. @return the username of the user]]>
  37806. </doc>
  37807. </method>
  37808. <method name="getUrl" return="java.lang.String"
  37809. abstract="false" native="false" synchronized="false"
  37810. static="true" final="false" visibility="public"
  37811. deprecated="not deprecated">
  37812. <doc>
  37813. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  37814. </doc>
  37815. </method>
  37816. <method name="getBuildVersion" return="java.lang.String"
  37817. abstract="false" native="false" synchronized="false"
  37818. static="true" final="false" visibility="public"
  37819. deprecated="not deprecated">
  37820. <doc>
  37821. <![CDATA[Returns the buildVersion which includes version,
  37822. revision, user and date.]]>
  37823. </doc>
  37824. </method>
  37825. <method name="main"
  37826. abstract="false" native="false" synchronized="false"
  37827. static="true" final="false" visibility="public"
  37828. deprecated="not deprecated">
  37829. <param name="args" type="java.lang.String[]"/>
  37830. </method>
  37831. <doc>
  37832. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  37833. information.]]>
  37834. </doc>
  37835. </class>
  37836. <!-- end class org.apache.hadoop.util.VersionInfo -->
  37837. <!-- start class org.apache.hadoop.util.XMLUtils -->
  37838. <class name="XMLUtils" extends="java.lang.Object"
  37839. abstract="false"
  37840. static="false" final="false" visibility="public"
  37841. deprecated="not deprecated">
  37842. <constructor name="XMLUtils"
  37843. static="false" final="false" visibility="public"
  37844. deprecated="not deprecated">
  37845. </constructor>
  37846. <method name="transform"
  37847. abstract="false" native="false" synchronized="false"
  37848. static="true" final="false" visibility="public"
  37849. deprecated="not deprecated">
  37850. <param name="styleSheet" type="java.io.InputStream"/>
  37851. <param name="xml" type="java.io.InputStream"/>
  37852. <param name="out" type="java.io.Writer"/>
  37853. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  37854. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  37855. <doc>
  37856. <![CDATA[Transform input xml given a stylesheet.
  37857. @param styleSheet the style-sheet
  37858. @param xml input xml data
  37859. @param out output
  37860. @throws TransformerConfigurationException
  37861. @throws TransformerException]]>
  37862. </doc>
  37863. </method>
  37864. <doc>
  37865. <![CDATA[General xml utilities.]]>
  37866. </doc>
  37867. </class>
  37868. <!-- end class org.apache.hadoop.util.XMLUtils -->
  37869. </package>
  37870. </api>