hadoop_0.19.1.xml 1.8 MB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250192511925219253192541925519256192571925819259192601926119262192631926419265192661926719268192691927019271192721927319274192751927619277192781927919280192811928219283192841928519286192871928819289192901929119292192931929419295192961929719298192991930019301193021930319304193051930619307193081930919310193111931219313193141931519316193171931819319193201932119322193231932419325193261932719328193291933019331193321933319334193351933619337193381933919340193411934219343193441934519346193471934819349193501935119352193531935419355193561935719358193591936019361193621936319364193651936619367193681936919370193711937219373193741937519376193771937819379193801938119382193831938419385193861938719388193891939019391193921939319394193951939619397193981939919400194011940219403194041940519406194071940819409194101941119412194131941419415194161941719418194191942019421194221942319424194251942619427194281942919430194311943219433194341943519436194371943819439194401944119442194431944419445194461944719448194491945019451194521945319454194551945619457194581945919460194611946219463194641946519466194671946819469194701947119472194731947419475194761947719478194791948019481194821948319484194851948619487194881948919490194911949219493194941949519496194971949819499195001950119502195031950419505195061950719508195091951019511195121951319514195151951619517195181951919520195211952219523195241952519526195271952819529195301953119532195331953419535195361953719538195391954019541195421954319544195451954619547195481954919550195511955219553195541955519556195571955819559195601956119562195631956419565195661956719568195691957019571195721957319574195751957619577195781957919580195811958219583195841958519586195871958819589195901959119592195931959419595195961959719598195991960019601196021960319604196051960619607196081960919610196111961219613196141961519616196171961819619196201962119622196231962419625196261962719628196291963019631196321963319634196351963619637196381963919640196411964219643196441964519646196471964819649196501965119652196531965419655196561965719658196591966019661196621966319664196651966619667196681966919670196711967219673196741967519676196771967819679196801968119682196831968419685196861968719688196891969019691196921969319694196951969619697196981969919700197011970219703197041970519706197071970819709197101971119712197131971419715197161971719718197191972019721197221972319724197251972619727197281972919730197311973219733197341973519736197371973819739197401974119742197431974419745197461974719748197491975019751197521975319754197551975619757197581975919760197611976219763197641976519766197671976819769197701977119772197731977419775197761977719778197791978019781197821978319784197851978619787197881978919790197911979219793197941979519796197971979819799198001980119802198031980419805198061980719808198091981019811198121981319814198151981619817198181981919820198211982219823198241982519826198271982819829198301983119832198331983419835198361983719838198391984019841198421984319844198451984619847198481984919850198511985219853198541985519856198571985819859198601986119862198631986419865198661986719868198691987019871198721987319874198751987619877198781987919880198811988219883198841988519886198871988819889198901989119892198931989419895198961989719898198991990019901199021990319904199051990619907199081990919910199111991219913199141991519916199171991819919199201992119922199231992419925199261992719928199291993019931199321993319934199351993619937199381993919940199411994219943199441994519946199471994819949199501995119952199531995419955199561995719958199591996019961199621996319964199651996619967199681996919970199711997219973199741997519976199771997819979199801998119982199831998419985199861998719988199891999019991199921999319994199951999619997199981999920000200012000220003200042000520006200072000820009200102001120012200132001420015200162001720018200192002020021200222002320024200252002620027200282002920030200312003220033200342003520036200372003820039200402004120042200432004420045200462004720048200492005020051200522005320054200552005620057200582005920060200612006220063200642006520066200672006820069200702007120072200732007420075200762007720078200792008020081200822008320084200852008620087200882008920090200912009220093200942009520096200972009820099201002010120102201032010420105201062010720108201092011020111201122011320114201152011620117201182011920120201212012220123201242012520126201272012820129201302013120132201332013420135201362013720138201392014020141201422014320144201452014620147201482014920150201512015220153201542015520156201572015820159201602016120162201632016420165201662016720168201692017020171201722017320174201752017620177201782017920180201812018220183201842018520186201872018820189201902019120192201932019420195201962019720198201992020020201202022020320204202052020620207202082020920210202112021220213202142021520216202172021820219202202022120222202232022420225202262022720228202292023020231202322023320234202352023620237202382023920240202412024220243202442024520246202472024820249202502025120252202532025420255202562025720258202592026020261202622026320264202652026620267202682026920270202712027220273202742027520276202772027820279202802028120282202832028420285202862028720288202892029020291202922029320294202952029620297202982029920300203012030220303203042030520306203072030820309203102031120312203132031420315203162031720318203192032020321203222032320324203252032620327203282032920330203312033220333203342033520336203372033820339203402034120342203432034420345203462034720348203492035020351203522035320354203552035620357203582035920360203612036220363203642036520366203672036820369203702037120372203732037420375203762037720378203792038020381203822038320384203852038620387203882038920390203912039220393203942039520396203972039820399204002040120402204032040420405204062040720408204092041020411204122041320414204152041620417204182041920420204212042220423204242042520426204272042820429204302043120432204332043420435204362043720438204392044020441204422044320444204452044620447204482044920450204512045220453204542045520456204572045820459204602046120462204632046420465204662046720468204692047020471204722047320474204752047620477204782047920480204812048220483204842048520486204872048820489204902049120492204932049420495204962049720498204992050020501205022050320504205052050620507205082050920510205112051220513205142051520516205172051820519205202052120522205232052420525205262052720528205292053020531205322053320534205352053620537205382053920540205412054220543205442054520546205472054820549205502055120552205532055420555205562055720558205592056020561205622056320564205652056620567205682056920570205712057220573205742057520576205772057820579205802058120582205832058420585205862058720588205892059020591205922059320594205952059620597205982059920600206012060220603206042060520606206072060820609206102061120612206132061420615206162061720618206192062020621206222062320624206252062620627206282062920630206312063220633206342063520636206372063820639206402064120642206432064420645206462064720648206492065020651206522065320654206552065620657206582065920660206612066220663206642066520666206672066820669206702067120672206732067420675206762067720678206792068020681206822068320684206852068620687206882068920690206912069220693206942069520696206972069820699207002070120702207032070420705207062070720708207092071020711207122071320714207152071620717207182071920720207212072220723207242072520726207272072820729207302073120732207332073420735207362073720738207392074020741207422074320744207452074620747207482074920750207512075220753207542075520756207572075820759207602076120762207632076420765207662076720768207692077020771207722077320774207752077620777207782077920780207812078220783207842078520786207872078820789207902079120792207932079420795207962079720798207992080020801208022080320804208052080620807208082080920810208112081220813208142081520816208172081820819208202082120822208232082420825208262082720828208292083020831208322083320834208352083620837208382083920840208412084220843208442084520846208472084820849208502085120852208532085420855208562085720858208592086020861208622086320864208652086620867208682086920870208712087220873208742087520876208772087820879208802088120882208832088420885208862088720888208892089020891208922089320894208952089620897208982089920900209012090220903209042090520906209072090820909209102091120912209132091420915209162091720918209192092020921209222092320924209252092620927209282092920930209312093220933209342093520936209372093820939209402094120942209432094420945209462094720948209492095020951209522095320954209552095620957209582095920960209612096220963209642096520966209672096820969209702097120972209732097420975209762097720978209792098020981209822098320984209852098620987209882098920990209912099220993209942099520996209972099820999210002100121002210032100421005210062100721008210092101021011210122101321014210152101621017210182101921020210212102221023210242102521026210272102821029210302103121032210332103421035210362103721038210392104021041210422104321044210452104621047210482104921050210512105221053210542105521056210572105821059210602106121062210632106421065210662106721068210692107021071210722107321074210752107621077210782107921080210812108221083210842108521086210872108821089210902109121092210932109421095210962109721098210992110021101211022110321104211052110621107211082110921110211112111221113211142111521116211172111821119211202112121122211232112421125211262112721128211292113021131211322113321134211352113621137211382113921140211412114221143211442114521146211472114821149211502115121152211532115421155211562115721158211592116021161211622116321164211652116621167211682116921170211712117221173211742117521176211772117821179211802118121182211832118421185211862118721188211892119021191211922119321194211952119621197211982119921200212012120221203212042120521206212072120821209212102121121212212132121421215212162121721218212192122021221212222122321224212252122621227212282122921230212312123221233212342123521236212372123821239212402124121242212432124421245212462124721248212492125021251212522125321254212552125621257212582125921260212612126221263212642126521266212672126821269212702127121272212732127421275212762127721278212792128021281212822128321284212852128621287212882128921290212912129221293212942129521296212972129821299213002130121302213032130421305213062130721308213092131021311213122131321314213152131621317213182131921320213212132221323213242132521326213272132821329213302133121332213332133421335213362133721338213392134021341213422134321344213452134621347213482134921350213512135221353213542135521356213572135821359213602136121362213632136421365213662136721368213692137021371213722137321374213752137621377213782137921380213812138221383213842138521386213872138821389213902139121392213932139421395213962139721398213992140021401214022140321404214052140621407214082140921410214112141221413214142141521416214172141821419214202142121422214232142421425214262142721428214292143021431214322143321434214352143621437214382143921440214412144221443214442144521446214472144821449214502145121452214532145421455214562145721458214592146021461214622146321464214652146621467214682146921470214712147221473214742147521476214772147821479214802148121482214832148421485214862148721488214892149021491214922149321494214952149621497214982149921500215012150221503215042150521506215072150821509215102151121512215132151421515215162151721518215192152021521215222152321524215252152621527215282152921530215312153221533215342153521536215372153821539215402154121542215432154421545215462154721548215492155021551215522155321554215552155621557215582155921560215612156221563215642156521566215672156821569215702157121572215732157421575215762157721578215792158021581215822158321584215852158621587215882158921590215912159221593215942159521596215972159821599216002160121602216032160421605216062160721608216092161021611216122161321614216152161621617216182161921620216212162221623216242162521626216272162821629216302163121632216332163421635216362163721638216392164021641216422164321644216452164621647216482164921650216512165221653216542165521656216572165821659216602166121662216632166421665216662166721668216692167021671216722167321674216752167621677216782167921680216812168221683216842168521686216872168821689216902169121692216932169421695216962169721698216992170021701217022170321704217052170621707217082170921710217112171221713217142171521716217172171821719217202172121722217232172421725217262172721728217292173021731217322173321734217352173621737217382173921740217412174221743217442174521746217472174821749217502175121752217532175421755217562175721758217592176021761217622176321764217652176621767217682176921770217712177221773217742177521776217772177821779217802178121782217832178421785217862178721788217892179021791217922179321794217952179621797217982179921800218012180221803218042180521806218072180821809218102181121812218132181421815218162181721818218192182021821218222182321824218252182621827218282182921830218312183221833218342183521836218372183821839218402184121842218432184421845218462184721848218492185021851218522185321854218552185621857218582185921860218612186221863218642186521866218672186821869218702187121872218732187421875218762187721878218792188021881218822188321884218852188621887218882188921890218912189221893218942189521896218972189821899219002190121902219032190421905219062190721908219092191021911219122191321914219152191621917219182191921920219212192221923219242192521926219272192821929219302193121932219332193421935219362193721938219392194021941219422194321944219452194621947219482194921950219512195221953219542195521956219572195821959219602196121962219632196421965219662196721968219692197021971219722197321974219752197621977219782197921980219812198221983219842198521986219872198821989219902199121992219932199421995219962199721998219992200022001220022200322004220052200622007220082200922010220112201222013220142201522016220172201822019220202202122022220232202422025220262202722028220292203022031220322203322034220352203622037220382203922040220412204222043220442204522046220472204822049220502205122052220532205422055220562205722058220592206022061220622206322064220652206622067220682206922070220712207222073220742207522076220772207822079220802208122082220832208422085220862208722088220892209022091220922209322094220952209622097220982209922100221012210222103221042210522106221072210822109221102211122112221132211422115221162211722118221192212022121221222212322124221252212622127221282212922130221312213222133221342213522136221372213822139221402214122142221432214422145221462214722148221492215022151221522215322154221552215622157221582215922160221612216222163221642216522166221672216822169221702217122172221732217422175221762217722178221792218022181221822218322184221852218622187221882218922190221912219222193221942219522196221972219822199222002220122202222032220422205222062220722208222092221022211222122221322214222152221622217222182221922220222212222222223222242222522226222272222822229222302223122232222332223422235222362223722238222392224022241222422224322244222452224622247222482224922250222512225222253222542225522256222572225822259222602226122262222632226422265222662226722268222692227022271222722227322274222752227622277222782227922280222812228222283222842228522286222872228822289222902229122292222932229422295222962229722298222992230022301223022230322304223052230622307223082230922310223112231222313223142231522316223172231822319223202232122322223232232422325223262232722328223292233022331223322233322334223352233622337223382233922340223412234222343223442234522346223472234822349223502235122352223532235422355223562235722358223592236022361223622236322364223652236622367223682236922370223712237222373223742237522376223772237822379223802238122382223832238422385223862238722388223892239022391223922239322394223952239622397223982239922400224012240222403224042240522406224072240822409224102241122412224132241422415224162241722418224192242022421224222242322424224252242622427224282242922430224312243222433224342243522436224372243822439224402244122442224432244422445224462244722448224492245022451224522245322454224552245622457224582245922460224612246222463224642246522466224672246822469224702247122472224732247422475224762247722478224792248022481224822248322484224852248622487224882248922490224912249222493224942249522496224972249822499225002250122502225032250422505225062250722508225092251022511225122251322514225152251622517225182251922520225212252222523225242252522526225272252822529225302253122532225332253422535225362253722538225392254022541225422254322544225452254622547225482254922550225512255222553225542255522556225572255822559225602256122562225632256422565225662256722568225692257022571225722257322574225752257622577225782257922580225812258222583225842258522586225872258822589225902259122592225932259422595225962259722598225992260022601226022260322604226052260622607226082260922610226112261222613226142261522616226172261822619226202262122622226232262422625226262262722628226292263022631226322263322634226352263622637226382263922640226412264222643226442264522646226472264822649226502265122652226532265422655226562265722658226592266022661226622266322664226652266622667226682266922670226712267222673226742267522676226772267822679226802268122682226832268422685226862268722688226892269022691226922269322694226952269622697226982269922700227012270222703227042270522706227072270822709227102271122712227132271422715227162271722718227192272022721227222272322724227252272622727227282272922730227312273222733227342273522736227372273822739227402274122742227432274422745227462274722748227492275022751227522275322754227552275622757227582275922760227612276222763227642276522766227672276822769227702277122772227732277422775227762277722778227792278022781227822278322784227852278622787227882278922790227912279222793227942279522796227972279822799228002280122802228032280422805228062280722808228092281022811228122281322814228152281622817228182281922820228212282222823228242282522826228272282822829228302283122832228332283422835228362283722838228392284022841228422284322844228452284622847228482284922850228512285222853228542285522856228572285822859228602286122862228632286422865228662286722868228692287022871228722287322874228752287622877228782287922880228812288222883228842288522886228872288822889228902289122892228932289422895228962289722898228992290022901229022290322904229052290622907229082290922910229112291222913229142291522916229172291822919229202292122922229232292422925229262292722928229292293022931229322293322934229352293622937229382293922940229412294222943229442294522946229472294822949229502295122952229532295422955229562295722958229592296022961229622296322964229652296622967229682296922970229712297222973229742297522976229772297822979229802298122982229832298422985229862298722988229892299022991229922299322994229952299622997229982299923000230012300223003230042300523006230072300823009230102301123012230132301423015230162301723018230192302023021230222302323024230252302623027230282302923030230312303223033230342303523036230372303823039230402304123042230432304423045230462304723048230492305023051230522305323054230552305623057230582305923060230612306223063230642306523066230672306823069230702307123072230732307423075230762307723078230792308023081230822308323084230852308623087230882308923090230912309223093230942309523096230972309823099231002310123102231032310423105231062310723108231092311023111231122311323114231152311623117231182311923120231212312223123231242312523126231272312823129231302313123132231332313423135231362313723138231392314023141231422314323144231452314623147231482314923150231512315223153231542315523156231572315823159231602316123162231632316423165231662316723168231692317023171231722317323174231752317623177231782317923180231812318223183231842318523186231872318823189231902319123192231932319423195231962319723198231992320023201232022320323204232052320623207232082320923210232112321223213232142321523216232172321823219232202322123222232232322423225232262322723228232292323023231232322323323234232352323623237232382323923240232412324223243232442324523246232472324823249232502325123252232532325423255232562325723258232592326023261232622326323264232652326623267232682326923270232712327223273232742327523276232772327823279232802328123282232832328423285232862328723288232892329023291232922329323294232952329623297232982329923300233012330223303233042330523306233072330823309233102331123312233132331423315233162331723318233192332023321233222332323324233252332623327233282332923330233312333223333233342333523336233372333823339233402334123342233432334423345233462334723348233492335023351233522335323354233552335623357233582335923360233612336223363233642336523366233672336823369233702337123372233732337423375233762337723378233792338023381233822338323384233852338623387233882338923390233912339223393233942339523396233972339823399234002340123402234032340423405234062340723408234092341023411234122341323414234152341623417234182341923420234212342223423234242342523426234272342823429234302343123432234332343423435234362343723438234392344023441234422344323444234452344623447234482344923450234512345223453234542345523456234572345823459234602346123462234632346423465234662346723468234692347023471234722347323474234752347623477234782347923480234812348223483234842348523486234872348823489234902349123492234932349423495234962349723498234992350023501235022350323504235052350623507235082350923510235112351223513235142351523516235172351823519235202352123522235232352423525235262352723528235292353023531235322353323534235352353623537235382353923540235412354223543235442354523546235472354823549235502355123552235532355423555235562355723558235592356023561235622356323564235652356623567235682356923570235712357223573235742357523576235772357823579235802358123582235832358423585235862358723588235892359023591235922359323594235952359623597235982359923600236012360223603236042360523606236072360823609236102361123612236132361423615236162361723618236192362023621236222362323624236252362623627236282362923630236312363223633236342363523636236372363823639236402364123642236432364423645236462364723648236492365023651236522365323654236552365623657236582365923660236612366223663236642366523666236672366823669236702367123672236732367423675236762367723678236792368023681236822368323684236852368623687236882368923690236912369223693236942369523696236972369823699237002370123702237032370423705237062370723708237092371023711237122371323714237152371623717237182371923720237212372223723237242372523726237272372823729237302373123732237332373423735237362373723738237392374023741237422374323744237452374623747237482374923750237512375223753237542375523756237572375823759237602376123762237632376423765237662376723768237692377023771237722377323774237752377623777237782377923780237812378223783237842378523786237872378823789237902379123792237932379423795237962379723798237992380023801238022380323804238052380623807238082380923810238112381223813238142381523816238172381823819238202382123822238232382423825238262382723828238292383023831238322383323834238352383623837238382383923840238412384223843238442384523846238472384823849238502385123852238532385423855238562385723858238592386023861238622386323864238652386623867238682386923870238712387223873238742387523876238772387823879238802388123882238832388423885238862388723888238892389023891238922389323894238952389623897238982389923900239012390223903239042390523906239072390823909239102391123912239132391423915239162391723918239192392023921239222392323924239252392623927239282392923930239312393223933239342393523936239372393823939239402394123942239432394423945239462394723948239492395023951239522395323954239552395623957239582395923960239612396223963239642396523966239672396823969239702397123972239732397423975239762397723978239792398023981239822398323984239852398623987239882398923990239912399223993239942399523996239972399823999240002400124002240032400424005240062400724008240092401024011240122401324014240152401624017240182401924020240212402224023240242402524026240272402824029240302403124032240332403424035240362403724038240392404024041240422404324044240452404624047240482404924050240512405224053240542405524056240572405824059240602406124062240632406424065240662406724068240692407024071240722407324074240752407624077240782407924080240812408224083240842408524086240872408824089240902409124092240932409424095240962409724098240992410024101241022410324104241052410624107241082410924110241112411224113241142411524116241172411824119241202412124122241232412424125241262412724128241292413024131241322413324134241352413624137241382413924140241412414224143241442414524146241472414824149241502415124152241532415424155241562415724158241592416024161241622416324164241652416624167241682416924170241712417224173241742417524176241772417824179241802418124182241832418424185241862418724188241892419024191241922419324194241952419624197241982419924200242012420224203242042420524206242072420824209242102421124212242132421424215242162421724218242192422024221242222422324224242252422624227242282422924230242312423224233242342423524236242372423824239242402424124242242432424424245242462424724248242492425024251242522425324254242552425624257242582425924260242612426224263242642426524266242672426824269242702427124272242732427424275242762427724278242792428024281242822428324284242852428624287242882428924290242912429224293242942429524296242972429824299243002430124302243032430424305243062430724308243092431024311243122431324314243152431624317243182431924320243212432224323243242432524326243272432824329243302433124332243332433424335243362433724338243392434024341243422434324344243452434624347243482434924350243512435224353243542435524356243572435824359243602436124362243632436424365243662436724368243692437024371243722437324374243752437624377243782437924380243812438224383243842438524386243872438824389243902439124392243932439424395243962439724398243992440024401244022440324404244052440624407244082440924410244112441224413244142441524416244172441824419244202442124422244232442424425244262442724428244292443024431244322443324434244352443624437244382443924440244412444224443244442444524446244472444824449244502445124452244532445424455244562445724458244592446024461244622446324464244652446624467244682446924470244712447224473244742447524476244772447824479244802448124482244832448424485244862448724488244892449024491244922449324494244952449624497244982449924500245012450224503245042450524506245072450824509245102451124512245132451424515245162451724518245192452024521245222452324524245252452624527245282452924530245312453224533245342453524536245372453824539245402454124542245432454424545245462454724548245492455024551245522455324554245552455624557245582455924560245612456224563245642456524566245672456824569245702457124572245732457424575245762457724578245792458024581245822458324584245852458624587245882458924590245912459224593245942459524596245972459824599246002460124602246032460424605246062460724608246092461024611246122461324614246152461624617246182461924620246212462224623246242462524626246272462824629246302463124632246332463424635246362463724638246392464024641246422464324644246452464624647246482464924650246512465224653246542465524656246572465824659246602466124662246632466424665246662466724668246692467024671246722467324674246752467624677246782467924680246812468224683246842468524686246872468824689246902469124692246932469424695246962469724698246992470024701247022470324704247052470624707247082470924710247112471224713247142471524716247172471824719247202472124722247232472424725247262472724728247292473024731247322473324734247352473624737247382473924740247412474224743247442474524746247472474824749247502475124752247532475424755247562475724758247592476024761247622476324764247652476624767247682476924770247712477224773247742477524776247772477824779247802478124782247832478424785247862478724788247892479024791247922479324794247952479624797247982479924800248012480224803248042480524806248072480824809248102481124812248132481424815248162481724818248192482024821248222482324824248252482624827248282482924830248312483224833248342483524836248372483824839248402484124842248432484424845248462484724848248492485024851248522485324854248552485624857248582485924860248612486224863248642486524866248672486824869248702487124872248732487424875248762487724878248792488024881248822488324884248852488624887248882488924890248912489224893248942489524896248972489824899249002490124902249032490424905249062490724908249092491024911249122491324914249152491624917249182491924920249212492224923249242492524926249272492824929249302493124932249332493424935249362493724938249392494024941249422494324944249452494624947249482494924950249512495224953249542495524956249572495824959249602496124962249632496424965249662496724968249692497024971249722497324974249752497624977249782497924980249812498224983249842498524986249872498824989249902499124992249932499424995249962499724998249992500025001250022500325004250052500625007250082500925010250112501225013250142501525016250172501825019250202502125022250232502425025250262502725028250292503025031250322503325034250352503625037250382503925040250412504225043250442504525046250472504825049250502505125052250532505425055250562505725058250592506025061250622506325064250652506625067250682506925070250712507225073250742507525076250772507825079250802508125082250832508425085250862508725088250892509025091250922509325094250952509625097250982509925100251012510225103251042510525106251072510825109251102511125112251132511425115251162511725118251192512025121251222512325124251252512625127251282512925130251312513225133251342513525136251372513825139251402514125142251432514425145251462514725148251492515025151251522515325154251552515625157251582515925160251612516225163251642516525166251672516825169251702517125172251732517425175251762517725178251792518025181251822518325184251852518625187251882518925190251912519225193251942519525196251972519825199252002520125202252032520425205252062520725208252092521025211252122521325214252152521625217252182521925220252212522225223252242522525226252272522825229252302523125232252332523425235252362523725238252392524025241252422524325244252452524625247252482524925250252512525225253252542525525256252572525825259252602526125262252632526425265252662526725268252692527025271252722527325274252752527625277252782527925280252812528225283252842528525286252872528825289252902529125292252932529425295252962529725298252992530025301253022530325304253052530625307253082530925310253112531225313253142531525316253172531825319253202532125322253232532425325253262532725328253292533025331253322533325334253352533625337253382533925340253412534225343253442534525346253472534825349253502535125352253532535425355253562535725358253592536025361253622536325364253652536625367253682536925370253712537225373253742537525376253772537825379253802538125382253832538425385253862538725388253892539025391253922539325394253952539625397253982539925400254012540225403254042540525406254072540825409254102541125412254132541425415254162541725418254192542025421254222542325424254252542625427254282542925430254312543225433254342543525436254372543825439254402544125442254432544425445254462544725448254492545025451254522545325454254552545625457254582545925460254612546225463254642546525466254672546825469254702547125472254732547425475254762547725478254792548025481254822548325484254852548625487254882548925490254912549225493254942549525496254972549825499255002550125502255032550425505255062550725508255092551025511255122551325514255152551625517255182551925520255212552225523255242552525526255272552825529255302553125532255332553425535255362553725538255392554025541255422554325544255452554625547255482554925550255512555225553255542555525556255572555825559255602556125562255632556425565255662556725568255692557025571255722557325574255752557625577255782557925580255812558225583255842558525586255872558825589255902559125592255932559425595255962559725598255992560025601256022560325604256052560625607256082560925610256112561225613256142561525616256172561825619256202562125622256232562425625256262562725628256292563025631256322563325634256352563625637256382563925640256412564225643256442564525646256472564825649256502565125652256532565425655256562565725658256592566025661256622566325664256652566625667256682566925670256712567225673256742567525676256772567825679256802568125682256832568425685256862568725688256892569025691256922569325694256952569625697256982569925700257012570225703257042570525706257072570825709257102571125712257132571425715257162571725718257192572025721257222572325724257252572625727257282572925730257312573225733257342573525736257372573825739257402574125742257432574425745257462574725748257492575025751257522575325754257552575625757257582575925760257612576225763257642576525766257672576825769257702577125772257732577425775257762577725778257792578025781257822578325784257852578625787257882578925790257912579225793257942579525796257972579825799258002580125802258032580425805258062580725808258092581025811258122581325814258152581625817258182581925820258212582225823258242582525826258272582825829258302583125832258332583425835258362583725838258392584025841258422584325844258452584625847258482584925850258512585225853258542585525856258572585825859258602586125862258632586425865258662586725868258692587025871258722587325874258752587625877258782587925880258812588225883258842588525886258872588825889258902589125892258932589425895258962589725898258992590025901259022590325904259052590625907259082590925910259112591225913259142591525916259172591825919259202592125922259232592425925259262592725928259292593025931259322593325934259352593625937259382593925940259412594225943259442594525946259472594825949259502595125952259532595425955259562595725958259592596025961259622596325964259652596625967259682596925970259712597225973259742597525976259772597825979259802598125982259832598425985259862598725988259892599025991259922599325994259952599625997259982599926000260012600226003260042600526006260072600826009260102601126012260132601426015260162601726018260192602026021260222602326024260252602626027260282602926030260312603226033260342603526036260372603826039260402604126042260432604426045260462604726048260492605026051260522605326054260552605626057260582605926060260612606226063260642606526066260672606826069260702607126072260732607426075260762607726078260792608026081260822608326084260852608626087260882608926090260912609226093260942609526096260972609826099261002610126102261032610426105261062610726108261092611026111261122611326114261152611626117261182611926120261212612226123261242612526126261272612826129261302613126132261332613426135261362613726138261392614026141261422614326144261452614626147261482614926150261512615226153261542615526156261572615826159261602616126162261632616426165261662616726168261692617026171261722617326174261752617626177261782617926180261812618226183261842618526186261872618826189261902619126192261932619426195261962619726198261992620026201262022620326204262052620626207262082620926210262112621226213262142621526216262172621826219262202622126222262232622426225262262622726228262292623026231262322623326234262352623626237262382623926240262412624226243262442624526246262472624826249262502625126252262532625426255262562625726258262592626026261262622626326264262652626626267262682626926270262712627226273262742627526276262772627826279262802628126282262832628426285262862628726288262892629026291262922629326294262952629626297262982629926300263012630226303263042630526306263072630826309263102631126312263132631426315263162631726318263192632026321263222632326324263252632626327263282632926330263312633226333263342633526336263372633826339263402634126342263432634426345263462634726348263492635026351263522635326354263552635626357263582635926360263612636226363263642636526366263672636826369263702637126372263732637426375263762637726378263792638026381263822638326384263852638626387263882638926390263912639226393263942639526396263972639826399264002640126402264032640426405264062640726408264092641026411264122641326414264152641626417264182641926420264212642226423264242642526426264272642826429264302643126432264332643426435264362643726438264392644026441264422644326444264452644626447264482644926450264512645226453264542645526456264572645826459264602646126462264632646426465264662646726468264692647026471264722647326474264752647626477264782647926480264812648226483264842648526486264872648826489264902649126492264932649426495264962649726498264992650026501265022650326504265052650626507265082650926510265112651226513265142651526516265172651826519265202652126522265232652426525265262652726528265292653026531265322653326534265352653626537265382653926540265412654226543265442654526546265472654826549265502655126552265532655426555265562655726558265592656026561265622656326564265652656626567265682656926570265712657226573265742657526576265772657826579265802658126582265832658426585265862658726588265892659026591265922659326594265952659626597265982659926600266012660226603266042660526606266072660826609266102661126612266132661426615266162661726618266192662026621266222662326624266252662626627266282662926630266312663226633266342663526636266372663826639266402664126642266432664426645266462664726648266492665026651266522665326654266552665626657266582665926660266612666226663266642666526666266672666826669266702667126672266732667426675266762667726678266792668026681266822668326684266852668626687266882668926690266912669226693266942669526696266972669826699267002670126702267032670426705267062670726708267092671026711267122671326714267152671626717267182671926720267212672226723267242672526726267272672826729267302673126732267332673426735267362673726738267392674026741267422674326744267452674626747267482674926750267512675226753267542675526756267572675826759267602676126762267632676426765267662676726768267692677026771267722677326774267752677626777267782677926780267812678226783267842678526786267872678826789267902679126792267932679426795267962679726798267992680026801268022680326804268052680626807268082680926810268112681226813268142681526816268172681826819268202682126822268232682426825268262682726828268292683026831268322683326834268352683626837268382683926840268412684226843268442684526846268472684826849268502685126852268532685426855268562685726858268592686026861268622686326864268652686626867268682686926870268712687226873268742687526876268772687826879268802688126882268832688426885268862688726888268892689026891268922689326894268952689626897268982689926900269012690226903269042690526906269072690826909269102691126912269132691426915269162691726918269192692026921269222692326924269252692626927269282692926930269312693226933269342693526936269372693826939269402694126942269432694426945269462694726948269492695026951269522695326954269552695626957269582695926960269612696226963269642696526966269672696826969269702697126972269732697426975269762697726978269792698026981269822698326984269852698626987269882698926990269912699226993269942699526996269972699826999270002700127002270032700427005270062700727008270092701027011270122701327014270152701627017270182701927020270212702227023270242702527026270272702827029270302703127032270332703427035270362703727038270392704027041270422704327044270452704627047270482704927050270512705227053270542705527056270572705827059270602706127062270632706427065270662706727068270692707027071270722707327074270752707627077270782707927080270812708227083270842708527086270872708827089270902709127092270932709427095270962709727098270992710027101271022710327104271052710627107271082710927110271112711227113271142711527116271172711827119271202712127122271232712427125271262712727128271292713027131271322713327134271352713627137271382713927140271412714227143271442714527146271472714827149271502715127152271532715427155271562715727158271592716027161271622716327164271652716627167271682716927170271712717227173271742717527176271772717827179271802718127182271832718427185271862718727188271892719027191271922719327194271952719627197271982719927200272012720227203272042720527206272072720827209272102721127212272132721427215272162721727218272192722027221272222722327224272252722627227272282722927230272312723227233272342723527236272372723827239272402724127242272432724427245272462724727248272492725027251272522725327254272552725627257272582725927260272612726227263272642726527266272672726827269272702727127272272732727427275272762727727278272792728027281272822728327284272852728627287272882728927290272912729227293272942729527296272972729827299273002730127302273032730427305273062730727308273092731027311273122731327314273152731627317273182731927320273212732227323273242732527326273272732827329273302733127332273332733427335273362733727338273392734027341273422734327344273452734627347273482734927350273512735227353273542735527356273572735827359273602736127362273632736427365273662736727368273692737027371273722737327374273752737627377273782737927380273812738227383273842738527386273872738827389273902739127392273932739427395273962739727398273992740027401274022740327404274052740627407274082740927410274112741227413274142741527416274172741827419274202742127422274232742427425274262742727428274292743027431274322743327434274352743627437274382743927440274412744227443274442744527446274472744827449274502745127452274532745427455274562745727458274592746027461274622746327464274652746627467274682746927470274712747227473274742747527476274772747827479274802748127482274832748427485274862748727488274892749027491274922749327494274952749627497274982749927500275012750227503275042750527506275072750827509275102751127512275132751427515275162751727518275192752027521275222752327524275252752627527275282752927530275312753227533275342753527536275372753827539275402754127542275432754427545275462754727548275492755027551275522755327554275552755627557275582755927560275612756227563275642756527566275672756827569275702757127572275732757427575275762757727578275792758027581275822758327584275852758627587275882758927590275912759227593275942759527596275972759827599276002760127602276032760427605276062760727608276092761027611276122761327614276152761627617276182761927620276212762227623276242762527626276272762827629276302763127632276332763427635276362763727638276392764027641276422764327644276452764627647276482764927650276512765227653276542765527656276572765827659276602766127662276632766427665276662766727668276692767027671276722767327674276752767627677276782767927680276812768227683276842768527686276872768827689276902769127692276932769427695276962769727698276992770027701277022770327704277052770627707277082770927710277112771227713277142771527716277172771827719277202772127722277232772427725277262772727728277292773027731277322773327734277352773627737277382773927740277412774227743277442774527746277472774827749277502775127752277532775427755277562775727758277592776027761277622776327764277652776627767277682776927770277712777227773277742777527776277772777827779277802778127782277832778427785277862778727788277892779027791277922779327794277952779627797277982779927800278012780227803278042780527806278072780827809278102781127812278132781427815278162781727818278192782027821278222782327824278252782627827278282782927830278312783227833278342783527836278372783827839278402784127842278432784427845278462784727848278492785027851278522785327854278552785627857278582785927860278612786227863278642786527866278672786827869278702787127872278732787427875278762787727878278792788027881278822788327884278852788627887278882788927890278912789227893278942789527896278972789827899279002790127902279032790427905279062790727908279092791027911279122791327914279152791627917279182791927920279212792227923279242792527926279272792827929279302793127932279332793427935279362793727938279392794027941279422794327944279452794627947279482794927950279512795227953279542795527956279572795827959279602796127962279632796427965279662796727968279692797027971279722797327974279752797627977279782797927980279812798227983279842798527986279872798827989279902799127992279932799427995279962799727998279992800028001280022800328004280052800628007280082800928010280112801228013280142801528016280172801828019280202802128022280232802428025280262802728028280292803028031280322803328034280352803628037280382803928040280412804228043280442804528046280472804828049280502805128052280532805428055280562805728058280592806028061280622806328064280652806628067280682806928070280712807228073280742807528076280772807828079280802808128082280832808428085280862808728088280892809028091280922809328094280952809628097280982809928100281012810228103281042810528106281072810828109281102811128112281132811428115281162811728118281192812028121281222812328124281252812628127281282812928130281312813228133281342813528136281372813828139281402814128142281432814428145281462814728148281492815028151281522815328154281552815628157281582815928160281612816228163281642816528166281672816828169281702817128172281732817428175281762817728178281792818028181281822818328184281852818628187281882818928190281912819228193281942819528196281972819828199282002820128202282032820428205282062820728208282092821028211282122821328214282152821628217282182821928220282212822228223282242822528226282272822828229282302823128232282332823428235282362823728238282392824028241282422824328244282452824628247282482824928250282512825228253282542825528256282572825828259282602826128262282632826428265282662826728268282692827028271282722827328274282752827628277282782827928280282812828228283282842828528286282872828828289282902829128292282932829428295282962829728298282992830028301283022830328304283052830628307283082830928310283112831228313283142831528316283172831828319283202832128322283232832428325283262832728328283292833028331283322833328334283352833628337283382833928340283412834228343283442834528346283472834828349283502835128352283532835428355283562835728358283592836028361283622836328364283652836628367283682836928370283712837228373283742837528376283772837828379283802838128382283832838428385283862838728388283892839028391283922839328394283952839628397283982839928400284012840228403284042840528406284072840828409284102841128412284132841428415284162841728418284192842028421284222842328424284252842628427284282842928430284312843228433284342843528436284372843828439284402844128442284432844428445284462844728448284492845028451284522845328454284552845628457284582845928460284612846228463284642846528466284672846828469284702847128472284732847428475284762847728478284792848028481284822848328484284852848628487284882848928490284912849228493284942849528496284972849828499285002850128502285032850428505285062850728508285092851028511285122851328514285152851628517285182851928520285212852228523285242852528526285272852828529285302853128532285332853428535285362853728538285392854028541285422854328544285452854628547285482854928550285512855228553285542855528556285572855828559285602856128562285632856428565285662856728568285692857028571285722857328574285752857628577285782857928580285812858228583285842858528586285872858828589285902859128592285932859428595285962859728598285992860028601286022860328604286052860628607286082860928610286112861228613286142861528616286172861828619286202862128622286232862428625286262862728628286292863028631286322863328634286352863628637286382863928640286412864228643286442864528646286472864828649286502865128652286532865428655286562865728658286592866028661286622866328664286652866628667286682866928670286712867228673286742867528676286772867828679286802868128682286832868428685286862868728688286892869028691286922869328694286952869628697286982869928700287012870228703287042870528706287072870828709287102871128712287132871428715287162871728718287192872028721287222872328724287252872628727287282872928730287312873228733287342873528736287372873828739287402874128742287432874428745287462874728748287492875028751287522875328754287552875628757287582875928760287612876228763287642876528766287672876828769287702877128772287732877428775287762877728778287792878028781287822878328784287852878628787287882878928790287912879228793287942879528796287972879828799288002880128802288032880428805288062880728808288092881028811288122881328814288152881628817288182881928820288212882228823288242882528826288272882828829288302883128832288332883428835288362883728838288392884028841288422884328844288452884628847288482884928850288512885228853288542885528856288572885828859288602886128862288632886428865288662886728868288692887028871288722887328874288752887628877288782887928880288812888228883288842888528886288872888828889288902889128892288932889428895288962889728898288992890028901289022890328904289052890628907289082890928910289112891228913289142891528916289172891828919289202892128922289232892428925289262892728928289292893028931289322893328934289352893628937289382893928940289412894228943289442894528946289472894828949289502895128952289532895428955289562895728958289592896028961289622896328964289652896628967289682896928970289712897228973289742897528976289772897828979289802898128982289832898428985289862898728988289892899028991289922899328994289952899628997289982899929000290012900229003290042900529006290072900829009290102901129012290132901429015290162901729018290192902029021290222902329024290252902629027290282902929030290312903229033290342903529036290372903829039290402904129042290432904429045290462904729048290492905029051290522905329054290552905629057290582905929060290612906229063290642906529066290672906829069290702907129072290732907429075290762907729078290792908029081290822908329084290852908629087290882908929090290912909229093290942909529096290972909829099291002910129102291032910429105291062910729108291092911029111291122911329114291152911629117291182911929120291212912229123291242912529126291272912829129291302913129132291332913429135291362913729138291392914029141291422914329144291452914629147291482914929150291512915229153291542915529156291572915829159291602916129162291632916429165291662916729168291692917029171291722917329174291752917629177291782917929180291812918229183291842918529186291872918829189291902919129192291932919429195291962919729198291992920029201292022920329204292052920629207292082920929210292112921229213292142921529216292172921829219292202922129222292232922429225292262922729228292292923029231292322923329234292352923629237292382923929240292412924229243292442924529246292472924829249292502925129252292532925429255292562925729258292592926029261292622926329264292652926629267292682926929270292712927229273292742927529276292772927829279292802928129282292832928429285292862928729288292892929029291292922929329294292952929629297292982929929300293012930229303293042930529306293072930829309293102931129312293132931429315293162931729318293192932029321293222932329324293252932629327293282932929330293312933229333293342933529336293372933829339293402934129342293432934429345293462934729348293492935029351293522935329354293552935629357293582935929360293612936229363293642936529366293672936829369293702937129372293732937429375293762937729378293792938029381293822938329384293852938629387293882938929390293912939229393293942939529396293972939829399294002940129402294032940429405294062940729408294092941029411294122941329414294152941629417294182941929420294212942229423294242942529426294272942829429294302943129432294332943429435294362943729438294392944029441294422944329444294452944629447294482944929450294512945229453294542945529456294572945829459294602946129462294632946429465294662946729468294692947029471294722947329474294752947629477294782947929480294812948229483294842948529486294872948829489294902949129492294932949429495294962949729498294992950029501295022950329504295052950629507295082950929510295112951229513295142951529516295172951829519295202952129522295232952429525295262952729528295292953029531295322953329534295352953629537295382953929540295412954229543295442954529546295472954829549295502955129552295532955429555295562955729558295592956029561295622956329564295652956629567295682956929570295712957229573295742957529576295772957829579295802958129582295832958429585295862958729588295892959029591295922959329594295952959629597295982959929600296012960229603296042960529606296072960829609296102961129612296132961429615296162961729618296192962029621296222962329624296252962629627296282962929630296312963229633296342963529636296372963829639296402964129642296432964429645296462964729648296492965029651296522965329654296552965629657296582965929660296612966229663296642966529666296672966829669296702967129672296732967429675296762967729678296792968029681296822968329684296852968629687296882968929690296912969229693296942969529696296972969829699297002970129702297032970429705297062970729708297092971029711297122971329714297152971629717297182971929720297212972229723297242972529726297272972829729297302973129732297332973429735297362973729738297392974029741297422974329744297452974629747297482974929750297512975229753297542975529756297572975829759297602976129762297632976429765297662976729768297692977029771297722977329774297752977629777297782977929780297812978229783297842978529786297872978829789297902979129792297932979429795297962979729798297992980029801298022980329804298052980629807298082980929810298112981229813298142981529816298172981829819298202982129822298232982429825298262982729828298292983029831298322983329834298352983629837298382983929840298412984229843298442984529846298472984829849298502985129852298532985429855298562985729858298592986029861298622986329864298652986629867298682986929870298712987229873298742987529876298772987829879298802988129882298832988429885298862988729888298892989029891298922989329894298952989629897298982989929900299012990229903299042990529906299072990829909299102991129912299132991429915299162991729918299192992029921299222992329924299252992629927299282992929930299312993229933299342993529936299372993829939299402994129942299432994429945299462994729948299492995029951299522995329954299552995629957299582995929960299612996229963299642996529966299672996829969299702997129972299732997429975299762997729978299792998029981299822998329984299852998629987299882998929990299912999229993299942999529996299972999829999300003000130002300033000430005300063000730008300093001030011300123001330014300153001630017300183001930020300213002230023300243002530026300273002830029300303003130032300333003430035300363003730038300393004030041300423004330044300453004630047300483004930050300513005230053300543005530056300573005830059300603006130062300633006430065300663006730068300693007030071300723007330074300753007630077300783007930080300813008230083300843008530086300873008830089300903009130092300933009430095300963009730098300993010030101301023010330104301053010630107301083010930110301113011230113301143011530116301173011830119301203012130122301233012430125301263012730128301293013030131301323013330134301353013630137301383013930140301413014230143301443014530146301473014830149301503015130152301533015430155301563015730158301593016030161301623016330164301653016630167301683016930170301713017230173301743017530176301773017830179301803018130182301833018430185301863018730188301893019030191301923019330194301953019630197301983019930200302013020230203302043020530206302073020830209302103021130212302133021430215302163021730218302193022030221302223022330224302253022630227302283022930230302313023230233302343023530236302373023830239302403024130242302433024430245302463024730248302493025030251302523025330254302553025630257302583025930260302613026230263302643026530266302673026830269302703027130272302733027430275302763027730278302793028030281302823028330284302853028630287302883028930290302913029230293302943029530296302973029830299303003030130302303033030430305303063030730308303093031030311303123031330314303153031630317303183031930320303213032230323303243032530326303273032830329303303033130332303333033430335303363033730338303393034030341303423034330344303453034630347303483034930350303513035230353303543035530356303573035830359303603036130362303633036430365303663036730368303693037030371303723037330374303753037630377303783037930380303813038230383303843038530386303873038830389303903039130392303933039430395303963039730398303993040030401304023040330404304053040630407304083040930410304113041230413304143041530416304173041830419304203042130422304233042430425304263042730428304293043030431304323043330434304353043630437304383043930440304413044230443304443044530446304473044830449304503045130452304533045430455304563045730458304593046030461304623046330464304653046630467304683046930470304713047230473304743047530476304773047830479304803048130482304833048430485304863048730488304893049030491304923049330494304953049630497304983049930500305013050230503305043050530506305073050830509305103051130512305133051430515305163051730518305193052030521305223052330524305253052630527305283052930530305313053230533305343053530536305373053830539305403054130542305433054430545305463054730548305493055030551305523055330554305553055630557305583055930560305613056230563305643056530566305673056830569305703057130572305733057430575305763057730578305793058030581305823058330584305853058630587305883058930590305913059230593305943059530596305973059830599306003060130602306033060430605306063060730608306093061030611306123061330614306153061630617306183061930620306213062230623306243062530626306273062830629306303063130632306333063430635306363063730638306393064030641306423064330644306453064630647306483064930650306513065230653306543065530656306573065830659306603066130662306633066430665306663066730668306693067030671306723067330674306753067630677306783067930680306813068230683306843068530686306873068830689306903069130692306933069430695306963069730698306993070030701307023070330704307053070630707307083070930710307113071230713307143071530716307173071830719307203072130722307233072430725307263072730728307293073030731307323073330734307353073630737307383073930740307413074230743307443074530746307473074830749307503075130752307533075430755307563075730758307593076030761307623076330764307653076630767307683076930770307713077230773307743077530776307773077830779307803078130782307833078430785307863078730788307893079030791307923079330794307953079630797307983079930800308013080230803308043080530806308073080830809308103081130812308133081430815308163081730818308193082030821308223082330824308253082630827308283082930830308313083230833308343083530836308373083830839308403084130842308433084430845308463084730848308493085030851308523085330854308553085630857308583085930860308613086230863308643086530866308673086830869308703087130872308733087430875308763087730878308793088030881308823088330884308853088630887308883088930890308913089230893308943089530896308973089830899309003090130902309033090430905309063090730908309093091030911309123091330914309153091630917309183091930920309213092230923309243092530926309273092830929309303093130932309333093430935309363093730938309393094030941309423094330944309453094630947309483094930950309513095230953309543095530956309573095830959309603096130962309633096430965309663096730968309693097030971309723097330974309753097630977309783097930980309813098230983309843098530986309873098830989309903099130992309933099430995309963099730998309993100031001310023100331004310053100631007310083100931010310113101231013310143101531016310173101831019310203102131022310233102431025310263102731028310293103031031310323103331034310353103631037310383103931040310413104231043310443104531046310473104831049310503105131052310533105431055310563105731058310593106031061310623106331064310653106631067310683106931070310713107231073310743107531076310773107831079310803108131082310833108431085310863108731088310893109031091310923109331094310953109631097310983109931100311013110231103311043110531106311073110831109311103111131112311133111431115311163111731118311193112031121311223112331124311253112631127311283112931130311313113231133311343113531136311373113831139311403114131142311433114431145311463114731148311493115031151311523115331154311553115631157311583115931160311613116231163311643116531166311673116831169311703117131172311733117431175311763117731178311793118031181311823118331184311853118631187311883118931190311913119231193311943119531196311973119831199312003120131202312033120431205312063120731208312093121031211312123121331214312153121631217312183121931220312213122231223312243122531226312273122831229312303123131232312333123431235312363123731238312393124031241312423124331244312453124631247312483124931250312513125231253312543125531256312573125831259312603126131262312633126431265312663126731268312693127031271312723127331274312753127631277312783127931280312813128231283312843128531286312873128831289312903129131292312933129431295312963129731298312993130031301313023130331304313053130631307313083130931310313113131231313313143131531316313173131831319313203132131322313233132431325313263132731328313293133031331313323133331334313353133631337313383133931340313413134231343313443134531346313473134831349313503135131352313533135431355313563135731358313593136031361313623136331364313653136631367313683136931370313713137231373313743137531376313773137831379313803138131382313833138431385313863138731388313893139031391313923139331394313953139631397313983139931400314013140231403314043140531406314073140831409314103141131412314133141431415314163141731418314193142031421314223142331424314253142631427314283142931430314313143231433314343143531436314373143831439314403144131442314433144431445314463144731448314493145031451314523145331454314553145631457314583145931460314613146231463314643146531466314673146831469314703147131472314733147431475314763147731478314793148031481314823148331484314853148631487314883148931490314913149231493314943149531496314973149831499315003150131502315033150431505315063150731508315093151031511315123151331514315153151631517315183151931520315213152231523315243152531526315273152831529315303153131532315333153431535315363153731538315393154031541315423154331544315453154631547315483154931550315513155231553315543155531556315573155831559315603156131562315633156431565315663156731568315693157031571315723157331574315753157631577315783157931580315813158231583315843158531586315873158831589315903159131592315933159431595315963159731598315993160031601316023160331604316053160631607316083160931610316113161231613316143161531616316173161831619316203162131622316233162431625316263162731628316293163031631316323163331634316353163631637316383163931640316413164231643316443164531646316473164831649316503165131652316533165431655316563165731658316593166031661316623166331664316653166631667316683166931670316713167231673316743167531676316773167831679316803168131682316833168431685316863168731688316893169031691316923169331694316953169631697316983169931700317013170231703317043170531706317073170831709317103171131712317133171431715317163171731718317193172031721317223172331724317253172631727317283172931730317313173231733317343173531736317373173831739317403174131742317433174431745317463174731748317493175031751317523175331754317553175631757317583175931760317613176231763317643176531766317673176831769317703177131772317733177431775317763177731778317793178031781317823178331784317853178631787317883178931790317913179231793317943179531796317973179831799318003180131802318033180431805318063180731808318093181031811318123181331814318153181631817318183181931820318213182231823318243182531826318273182831829318303183131832318333183431835318363183731838318393184031841318423184331844318453184631847318483184931850318513185231853318543185531856318573185831859318603186131862318633186431865318663186731868318693187031871318723187331874318753187631877318783187931880318813188231883318843188531886318873188831889318903189131892318933189431895318963189731898318993190031901319023190331904319053190631907319083190931910319113191231913319143191531916319173191831919319203192131922319233192431925319263192731928319293193031931319323193331934319353193631937319383193931940319413194231943319443194531946319473194831949319503195131952319533195431955319563195731958319593196031961319623196331964319653196631967319683196931970319713197231973319743197531976319773197831979319803198131982319833198431985319863198731988319893199031991319923199331994319953199631997319983199932000320013200232003320043200532006320073200832009320103201132012320133201432015320163201732018320193202032021320223202332024320253202632027320283202932030320313203232033320343203532036320373203832039320403204132042320433204432045320463204732048320493205032051320523205332054320553205632057320583205932060320613206232063320643206532066320673206832069320703207132072320733207432075320763207732078320793208032081320823208332084320853208632087320883208932090320913209232093320943209532096320973209832099321003210132102321033210432105321063210732108321093211032111321123211332114321153211632117321183211932120321213212232123321243212532126321273212832129321303213132132321333213432135321363213732138321393214032141321423214332144321453214632147321483214932150321513215232153321543215532156321573215832159321603216132162321633216432165321663216732168321693217032171321723217332174321753217632177321783217932180321813218232183321843218532186321873218832189321903219132192321933219432195321963219732198321993220032201322023220332204322053220632207322083220932210322113221232213322143221532216322173221832219322203222132222322233222432225322263222732228322293223032231322323223332234322353223632237322383223932240322413224232243322443224532246322473224832249322503225132252322533225432255322563225732258322593226032261322623226332264322653226632267322683226932270322713227232273322743227532276322773227832279322803228132282322833228432285322863228732288322893229032291322923229332294322953229632297322983229932300323013230232303323043230532306323073230832309323103231132312323133231432315323163231732318323193232032321323223232332324323253232632327323283232932330323313233232333323343233532336323373233832339323403234132342323433234432345323463234732348323493235032351323523235332354323553235632357323583235932360323613236232363323643236532366323673236832369323703237132372323733237432375323763237732378323793238032381323823238332384323853238632387323883238932390323913239232393323943239532396323973239832399324003240132402324033240432405324063240732408324093241032411324123241332414324153241632417324183241932420324213242232423324243242532426324273242832429324303243132432324333243432435324363243732438324393244032441324423244332444324453244632447324483244932450324513245232453324543245532456324573245832459324603246132462324633246432465324663246732468324693247032471324723247332474324753247632477324783247932480324813248232483324843248532486324873248832489324903249132492324933249432495324963249732498324993250032501325023250332504325053250632507325083250932510325113251232513325143251532516325173251832519325203252132522325233252432525325263252732528325293253032531325323253332534325353253632537325383253932540325413254232543325443254532546325473254832549325503255132552325533255432555325563255732558325593256032561325623256332564325653256632567325683256932570325713257232573325743257532576325773257832579325803258132582325833258432585325863258732588325893259032591325923259332594325953259632597325983259932600326013260232603326043260532606326073260832609326103261132612326133261432615326163261732618326193262032621326223262332624326253262632627326283262932630326313263232633326343263532636326373263832639326403264132642326433264432645326463264732648326493265032651326523265332654326553265632657326583265932660326613266232663326643266532666326673266832669326703267132672326733267432675326763267732678326793268032681326823268332684326853268632687326883268932690326913269232693326943269532696326973269832699327003270132702327033270432705327063270732708327093271032711327123271332714327153271632717327183271932720327213272232723327243272532726327273272832729327303273132732327333273432735327363273732738327393274032741327423274332744327453274632747327483274932750327513275232753327543275532756327573275832759327603276132762327633276432765327663276732768327693277032771327723277332774327753277632777327783277932780327813278232783327843278532786327873278832789327903279132792327933279432795327963279732798327993280032801328023280332804328053280632807328083280932810328113281232813328143281532816328173281832819328203282132822328233282432825328263282732828328293283032831328323283332834328353283632837328383283932840328413284232843328443284532846328473284832849328503285132852328533285432855328563285732858328593286032861328623286332864328653286632867328683286932870328713287232873328743287532876328773287832879328803288132882328833288432885328863288732888328893289032891328923289332894328953289632897328983289932900329013290232903329043290532906329073290832909329103291132912329133291432915329163291732918329193292032921329223292332924329253292632927329283292932930329313293232933329343293532936329373293832939329403294132942329433294432945329463294732948329493295032951329523295332954329553295632957329583295932960329613296232963329643296532966329673296832969329703297132972329733297432975329763297732978329793298032981329823298332984329853298632987329883298932990329913299232993329943299532996329973299832999330003300133002330033300433005330063300733008330093301033011330123301333014330153301633017330183301933020330213302233023330243302533026330273302833029330303303133032330333303433035330363303733038330393304033041330423304333044330453304633047330483304933050330513305233053330543305533056330573305833059330603306133062330633306433065330663306733068330693307033071330723307333074330753307633077330783307933080330813308233083330843308533086330873308833089330903309133092330933309433095330963309733098330993310033101331023310333104331053310633107331083310933110331113311233113331143311533116331173311833119331203312133122331233312433125331263312733128331293313033131331323313333134331353313633137331383313933140331413314233143331443314533146331473314833149331503315133152331533315433155331563315733158331593316033161331623316333164331653316633167331683316933170331713317233173331743317533176331773317833179331803318133182331833318433185331863318733188331893319033191331923319333194331953319633197331983319933200332013320233203332043320533206332073320833209332103321133212332133321433215332163321733218332193322033221332223322333224332253322633227332283322933230332313323233233332343323533236332373323833239332403324133242332433324433245332463324733248332493325033251332523325333254332553325633257332583325933260332613326233263332643326533266332673326833269332703327133272332733327433275332763327733278332793328033281332823328333284332853328633287332883328933290332913329233293332943329533296332973329833299333003330133302333033330433305333063330733308333093331033311333123331333314333153331633317333183331933320333213332233323333243332533326333273332833329333303333133332333333333433335333363333733338333393334033341333423334333344333453334633347333483334933350333513335233353333543335533356333573335833359333603336133362333633336433365333663336733368333693337033371333723337333374333753337633377333783337933380333813338233383333843338533386333873338833389333903339133392333933339433395333963339733398333993340033401334023340333404334053340633407334083340933410334113341233413334143341533416334173341833419334203342133422334233342433425334263342733428334293343033431334323343333434334353343633437334383343933440334413344233443334443344533446334473344833449334503345133452334533345433455334563345733458334593346033461334623346333464334653346633467334683346933470334713347233473334743347533476334773347833479334803348133482334833348433485334863348733488334893349033491334923349333494334953349633497334983349933500335013350233503335043350533506335073350833509335103351133512335133351433515335163351733518335193352033521335223352333524335253352633527335283352933530335313353233533335343353533536335373353833539335403354133542335433354433545335463354733548335493355033551335523355333554335553355633557335583355933560335613356233563335643356533566335673356833569335703357133572335733357433575335763357733578335793358033581335823358333584335853358633587335883358933590335913359233593335943359533596335973359833599336003360133602336033360433605336063360733608336093361033611336123361333614336153361633617336183361933620336213362233623336243362533626336273362833629336303363133632336333363433635336363363733638336393364033641336423364333644336453364633647336483364933650336513365233653336543365533656336573365833659336603366133662336633366433665336663366733668336693367033671336723367333674336753367633677336783367933680336813368233683336843368533686336873368833689336903369133692336933369433695336963369733698336993370033701337023370333704337053370633707337083370933710337113371233713337143371533716337173371833719337203372133722337233372433725337263372733728337293373033731337323373333734337353373633737337383373933740337413374233743337443374533746337473374833749337503375133752337533375433755337563375733758337593376033761337623376333764337653376633767337683376933770337713377233773337743377533776337773377833779337803378133782337833378433785337863378733788337893379033791337923379333794337953379633797337983379933800338013380233803338043380533806338073380833809338103381133812338133381433815338163381733818338193382033821338223382333824338253382633827338283382933830338313383233833338343383533836338373383833839338403384133842338433384433845338463384733848338493385033851338523385333854338553385633857338583385933860338613386233863338643386533866338673386833869338703387133872338733387433875338763387733878338793388033881338823388333884338853388633887338883388933890338913389233893338943389533896338973389833899339003390133902339033390433905339063390733908339093391033911339123391333914339153391633917339183391933920339213392233923339243392533926339273392833929339303393133932339333393433935339363393733938339393394033941339423394333944339453394633947339483394933950339513395233953339543395533956339573395833959339603396133962339633396433965339663396733968339693397033971339723397333974339753397633977339783397933980339813398233983339843398533986339873398833989339903399133992339933399433995339963399733998339993400034001340023400334004340053400634007340083400934010340113401234013340143401534016340173401834019340203402134022340233402434025340263402734028340293403034031340323403334034340353403634037340383403934040340413404234043340443404534046340473404834049340503405134052340533405434055340563405734058340593406034061340623406334064340653406634067340683406934070340713407234073340743407534076340773407834079340803408134082340833408434085340863408734088340893409034091340923409334094340953409634097340983409934100341013410234103341043410534106341073410834109341103411134112341133411434115341163411734118341193412034121341223412334124341253412634127341283412934130341313413234133341343413534136341373413834139341403414134142341433414434145341463414734148341493415034151341523415334154341553415634157341583415934160341613416234163341643416534166341673416834169341703417134172341733417434175341763417734178341793418034181341823418334184341853418634187341883418934190341913419234193341943419534196341973419834199342003420134202342033420434205342063420734208342093421034211342123421334214342153421634217342183421934220342213422234223342243422534226342273422834229342303423134232342333423434235342363423734238342393424034241342423424334244342453424634247342483424934250342513425234253342543425534256342573425834259342603426134262342633426434265342663426734268342693427034271342723427334274342753427634277342783427934280342813428234283342843428534286342873428834289342903429134292342933429434295342963429734298342993430034301343023430334304343053430634307343083430934310343113431234313343143431534316343173431834319343203432134322343233432434325343263432734328343293433034331343323433334334343353433634337343383433934340343413434234343343443434534346343473434834349343503435134352343533435434355343563435734358343593436034361343623436334364343653436634367343683436934370343713437234373343743437534376343773437834379343803438134382343833438434385343863438734388343893439034391343923439334394343953439634397343983439934400344013440234403344043440534406344073440834409344103441134412344133441434415344163441734418344193442034421344223442334424344253442634427344283442934430344313443234433344343443534436344373443834439344403444134442344433444434445344463444734448344493445034451344523445334454344553445634457344583445934460344613446234463344643446534466344673446834469344703447134472344733447434475344763447734478344793448034481344823448334484344853448634487344883448934490344913449234493344943449534496344973449834499345003450134502345033450434505345063450734508345093451034511345123451334514345153451634517345183451934520345213452234523345243452534526345273452834529345303453134532345333453434535345363453734538345393454034541345423454334544345453454634547345483454934550345513455234553345543455534556345573455834559345603456134562345633456434565345663456734568345693457034571345723457334574345753457634577345783457934580345813458234583345843458534586345873458834589345903459134592345933459434595345963459734598345993460034601346023460334604346053460634607346083460934610346113461234613346143461534616346173461834619346203462134622346233462434625346263462734628346293463034631346323463334634346353463634637346383463934640346413464234643346443464534646346473464834649346503465134652346533465434655346563465734658346593466034661346623466334664346653466634667346683466934670346713467234673346743467534676346773467834679346803468134682346833468434685346863468734688346893469034691346923469334694346953469634697346983469934700347013470234703347043470534706347073470834709347103471134712347133471434715347163471734718347193472034721347223472334724347253472634727347283472934730347313473234733347343473534736347373473834739347403474134742347433474434745347463474734748347493475034751347523475334754347553475634757347583475934760347613476234763347643476534766347673476834769347703477134772347733477434775347763477734778347793478034781347823478334784347853478634787347883478934790347913479234793347943479534796347973479834799348003480134802348033480434805348063480734808348093481034811348123481334814348153481634817348183481934820348213482234823348243482534826348273482834829348303483134832348333483434835348363483734838348393484034841348423484334844348453484634847348483484934850348513485234853348543485534856348573485834859348603486134862348633486434865348663486734868348693487034871348723487334874348753487634877348783487934880348813488234883348843488534886348873488834889348903489134892348933489434895348963489734898348993490034901349023490334904349053490634907349083490934910349113491234913349143491534916349173491834919349203492134922349233492434925349263492734928349293493034931349323493334934349353493634937349383493934940349413494234943349443494534946349473494834949349503495134952349533495434955349563495734958349593496034961349623496334964349653496634967349683496934970349713497234973349743497534976349773497834979349803498134982349833498434985349863498734988349893499034991349923499334994349953499634997349983499935000350013500235003350043500535006350073500835009350103501135012350133501435015350163501735018350193502035021350223502335024350253502635027350283502935030350313503235033350343503535036350373503835039350403504135042350433504435045350463504735048350493505035051350523505335054350553505635057350583505935060350613506235063350643506535066350673506835069350703507135072350733507435075350763507735078350793508035081350823508335084350853508635087350883508935090350913509235093350943509535096350973509835099351003510135102351033510435105351063510735108351093511035111351123511335114351153511635117351183511935120351213512235123351243512535126351273512835129351303513135132351333513435135351363513735138351393514035141351423514335144351453514635147351483514935150351513515235153351543515535156351573515835159351603516135162351633516435165351663516735168351693517035171351723517335174351753517635177351783517935180351813518235183351843518535186351873518835189351903519135192351933519435195351963519735198351993520035201352023520335204352053520635207352083520935210352113521235213352143521535216352173521835219352203522135222352233522435225352263522735228352293523035231352323523335234352353523635237352383523935240352413524235243352443524535246352473524835249352503525135252352533525435255352563525735258352593526035261352623526335264352653526635267352683526935270352713527235273352743527535276352773527835279352803528135282352833528435285352863528735288352893529035291352923529335294352953529635297352983529935300353013530235303353043530535306353073530835309353103531135312353133531435315353163531735318353193532035321353223532335324353253532635327353283532935330353313533235333353343533535336353373533835339353403534135342353433534435345353463534735348353493535035351353523535335354353553535635357353583535935360353613536235363353643536535366353673536835369353703537135372353733537435375353763537735378353793538035381353823538335384353853538635387353883538935390353913539235393353943539535396353973539835399354003540135402354033540435405354063540735408354093541035411354123541335414354153541635417354183541935420354213542235423354243542535426354273542835429354303543135432354333543435435354363543735438354393544035441354423544335444354453544635447354483544935450354513545235453354543545535456354573545835459354603546135462354633546435465354663546735468354693547035471354723547335474354753547635477354783547935480354813548235483354843548535486354873548835489354903549135492354933549435495354963549735498354993550035501355023550335504355053550635507355083550935510355113551235513355143551535516355173551835519355203552135522355233552435525355263552735528355293553035531355323553335534355353553635537355383553935540355413554235543355443554535546355473554835549355503555135552355533555435555355563555735558355593556035561355623556335564355653556635567355683556935570355713557235573355743557535576355773557835579355803558135582355833558435585355863558735588355893559035591355923559335594355953559635597355983559935600356013560235603356043560535606356073560835609356103561135612356133561435615356163561735618356193562035621356223562335624356253562635627356283562935630356313563235633356343563535636356373563835639356403564135642356433564435645356463564735648356493565035651356523565335654356553565635657356583565935660356613566235663356643566535666356673566835669356703567135672356733567435675356763567735678356793568035681356823568335684356853568635687356883568935690356913569235693356943569535696356973569835699357003570135702357033570435705357063570735708357093571035711357123571335714357153571635717357183571935720357213572235723357243572535726357273572835729357303573135732357333573435735357363573735738357393574035741357423574335744357453574635747357483574935750357513575235753357543575535756357573575835759357603576135762357633576435765357663576735768357693577035771357723577335774357753577635777357783577935780357813578235783357843578535786357873578835789357903579135792357933579435795357963579735798357993580035801358023580335804358053580635807358083580935810358113581235813358143581535816358173581835819358203582135822358233582435825358263582735828358293583035831358323583335834358353583635837358383583935840358413584235843358443584535846358473584835849358503585135852358533585435855358563585735858358593586035861358623586335864358653586635867358683586935870358713587235873358743587535876358773587835879358803588135882358833588435885358863588735888358893589035891358923589335894358953589635897358983589935900359013590235903359043590535906359073590835909359103591135912359133591435915359163591735918359193592035921359223592335924359253592635927359283592935930359313593235933359343593535936359373593835939359403594135942359433594435945359463594735948359493595035951359523595335954359553595635957359583595935960359613596235963359643596535966359673596835969359703597135972359733597435975359763597735978359793598035981359823598335984359853598635987359883598935990359913599235993359943599535996359973599835999360003600136002360033600436005360063600736008360093601036011360123601336014360153601636017360183601936020360213602236023360243602536026360273602836029360303603136032360333603436035360363603736038360393604036041360423604336044360453604636047360483604936050360513605236053360543605536056360573605836059360603606136062360633606436065360663606736068360693607036071360723607336074360753607636077360783607936080360813608236083360843608536086360873608836089360903609136092360933609436095360963609736098360993610036101361023610336104361053610636107361083610936110361113611236113361143611536116361173611836119361203612136122361233612436125361263612736128361293613036131361323613336134361353613636137361383613936140361413614236143361443614536146361473614836149361503615136152361533615436155361563615736158361593616036161361623616336164361653616636167361683616936170361713617236173361743617536176361773617836179361803618136182361833618436185361863618736188361893619036191361923619336194361953619636197361983619936200362013620236203362043620536206362073620836209362103621136212362133621436215362163621736218362193622036221362223622336224362253622636227362283622936230362313623236233362343623536236362373623836239362403624136242362433624436245362463624736248362493625036251362523625336254362553625636257362583625936260362613626236263362643626536266362673626836269362703627136272362733627436275362763627736278362793628036281362823628336284362853628636287362883628936290362913629236293362943629536296362973629836299363003630136302363033630436305363063630736308363093631036311363123631336314363153631636317363183631936320363213632236323363243632536326363273632836329363303633136332363333633436335363363633736338363393634036341363423634336344363453634636347363483634936350363513635236353363543635536356363573635836359363603636136362363633636436365363663636736368363693637036371363723637336374363753637636377363783637936380363813638236383363843638536386363873638836389363903639136392363933639436395363963639736398363993640036401364023640336404364053640636407364083640936410364113641236413364143641536416364173641836419364203642136422364233642436425364263642736428364293643036431364323643336434364353643636437364383643936440364413644236443364443644536446364473644836449364503645136452364533645436455364563645736458364593646036461364623646336464364653646636467364683646936470364713647236473364743647536476364773647836479364803648136482364833648436485364863648736488364893649036491364923649336494364953649636497364983649936500365013650236503365043650536506365073650836509365103651136512365133651436515365163651736518365193652036521365223652336524365253652636527365283652936530365313653236533365343653536536365373653836539365403654136542365433654436545365463654736548365493655036551365523655336554365553655636557365583655936560365613656236563365643656536566365673656836569365703657136572365733657436575365763657736578365793658036581365823658336584365853658636587365883658936590365913659236593365943659536596365973659836599366003660136602366033660436605366063660736608366093661036611366123661336614366153661636617366183661936620366213662236623366243662536626366273662836629366303663136632366333663436635366363663736638366393664036641366423664336644366453664636647366483664936650366513665236653366543665536656366573665836659366603666136662366633666436665366663666736668366693667036671366723667336674366753667636677366783667936680366813668236683366843668536686366873668836689366903669136692366933669436695366963669736698366993670036701367023670336704367053670636707367083670936710367113671236713367143671536716367173671836719367203672136722367233672436725367263672736728367293673036731367323673336734367353673636737367383673936740367413674236743367443674536746367473674836749367503675136752367533675436755367563675736758367593676036761367623676336764367653676636767367683676936770367713677236773367743677536776367773677836779367803678136782367833678436785367863678736788367893679036791367923679336794367953679636797367983679936800368013680236803368043680536806368073680836809368103681136812368133681436815368163681736818368193682036821368223682336824368253682636827368283682936830368313683236833368343683536836368373683836839368403684136842368433684436845368463684736848368493685036851368523685336854368553685636857368583685936860368613686236863368643686536866368673686836869368703687136872368733687436875368763687736878368793688036881368823688336884368853688636887368883688936890368913689236893368943689536896368973689836899369003690136902369033690436905369063690736908369093691036911369123691336914369153691636917369183691936920369213692236923369243692536926369273692836929369303693136932369333693436935369363693736938369393694036941369423694336944369453694636947369483694936950369513695236953369543695536956369573695836959369603696136962369633696436965369663696736968369693697036971369723697336974369753697636977369783697936980369813698236983369843698536986369873698836989369903699136992369933699436995369963699736998369993700037001370023700337004370053700637007370083700937010370113701237013370143701537016370173701837019370203702137022370233702437025370263702737028370293703037031370323703337034370353703637037370383703937040370413704237043370443704537046370473704837049370503705137052370533705437055370563705737058370593706037061370623706337064370653706637067370683706937070370713707237073370743707537076370773707837079370803708137082370833708437085370863708737088370893709037091370923709337094370953709637097370983709937100371013710237103371043710537106371073710837109371103711137112371133711437115371163711737118371193712037121371223712337124371253712637127371283712937130371313713237133371343713537136371373713837139371403714137142371433714437145371463714737148371493715037151371523715337154371553715637157371583715937160371613716237163371643716537166371673716837169371703717137172371733717437175371763717737178371793718037181371823718337184371853718637187371883718937190371913719237193371943719537196371973719837199372003720137202372033720437205372063720737208372093721037211372123721337214372153721637217372183721937220372213722237223372243722537226372273722837229372303723137232372333723437235372363723737238372393724037241372423724337244372453724637247372483724937250372513725237253372543725537256372573725837259372603726137262372633726437265372663726737268372693727037271372723727337274372753727637277372783727937280372813728237283372843728537286372873728837289372903729137292372933729437295372963729737298372993730037301373023730337304373053730637307373083730937310373113731237313373143731537316373173731837319373203732137322373233732437325373263732737328373293733037331373323733337334373353733637337373383733937340373413734237343373443734537346373473734837349373503735137352373533735437355373563735737358373593736037361373623736337364373653736637367373683736937370373713737237373373743737537376373773737837379373803738137382373833738437385373863738737388373893739037391373923739337394373953739637397373983739937400374013740237403374043740537406374073740837409374103741137412374133741437415374163741737418374193742037421374223742337424374253742637427374283742937430374313743237433374343743537436374373743837439374403744137442374433744437445374463744737448374493745037451374523745337454374553745637457374583745937460374613746237463374643746537466374673746837469374703747137472374733747437475374763747737478374793748037481374823748337484374853748637487374883748937490374913749237493374943749537496374973749837499375003750137502375033750437505375063750737508375093751037511375123751337514375153751637517375183751937520375213752237523375243752537526375273752837529375303753137532375333753437535375363753737538375393754037541375423754337544375453754637547375483754937550375513755237553375543755537556375573755837559375603756137562375633756437565375663756737568375693757037571375723757337574375753757637577375783757937580375813758237583375843758537586375873758837589375903759137592375933759437595375963759737598375993760037601376023760337604376053760637607376083760937610376113761237613376143761537616376173761837619376203762137622376233762437625376263762737628376293763037631376323763337634376353763637637376383763937640376413764237643376443764537646376473764837649376503765137652376533765437655376563765737658376593766037661376623766337664376653766637667376683766937670376713767237673376743767537676376773767837679376803768137682376833768437685376863768737688376893769037691376923769337694376953769637697376983769937700377013770237703377043770537706377073770837709377103771137712377133771437715377163771737718377193772037721377223772337724377253772637727377283772937730377313773237733377343773537736377373773837739377403774137742377433774437745377463774737748377493775037751377523775337754377553775637757377583775937760377613776237763377643776537766377673776837769377703777137772377733777437775377763777737778377793778037781377823778337784377853778637787377883778937790377913779237793377943779537796377973779837799378003780137802378033780437805378063780737808378093781037811378123781337814378153781637817378183781937820378213782237823378243782537826378273782837829378303783137832378333783437835378363783737838378393784037841378423784337844378453784637847378483784937850378513785237853378543785537856378573785837859378603786137862378633786437865378663786737868378693787037871378723787337874378753787637877378783787937880378813788237883378843788537886378873788837889378903789137892378933789437895378963789737898378993790037901379023790337904379053790637907379083790937910379113791237913379143791537916379173791837919379203792137922379233792437925379263792737928379293793037931379323793337934379353793637937379383793937940379413794237943379443794537946379473794837949379503795137952379533795437955379563795737958379593796037961379623796337964379653796637967379683796937970379713797237973379743797537976379773797837979379803798137982379833798437985379863798737988379893799037991379923799337994379953799637997379983799938000380013800238003380043800538006380073800838009380103801138012380133801438015380163801738018380193802038021380223802338024380253802638027380283802938030380313803238033380343803538036380373803838039380403804138042380433804438045380463804738048380493805038051380523805338054380553805638057380583805938060380613806238063380643806538066380673806838069380703807138072380733807438075380763807738078380793808038081380823808338084380853808638087380883808938090380913809238093380943809538096380973809838099381003810138102381033810438105381063810738108381093811038111381123811338114381153811638117381183811938120381213812238123381243812538126381273812838129381303813138132381333813438135381363813738138381393814038141381423814338144381453814638147381483814938150381513815238153381543815538156381573815838159381603816138162381633816438165381663816738168381693817038171381723817338174381753817638177381783817938180381813818238183381843818538186381873818838189381903819138192381933819438195381963819738198381993820038201382023820338204382053820638207382083820938210382113821238213382143821538216382173821838219382203822138222382233822438225382263822738228382293823038231382323823338234382353823638237382383823938240382413824238243382443824538246382473824838249382503825138252382533825438255382563825738258382593826038261382623826338264382653826638267382683826938270382713827238273382743827538276382773827838279382803828138282382833828438285382863828738288382893829038291382923829338294382953829638297382983829938300383013830238303383043830538306383073830838309383103831138312383133831438315383163831738318383193832038321383223832338324383253832638327383283832938330383313833238333383343833538336383373833838339383403834138342383433834438345383463834738348383493835038351383523835338354383553835638357383583835938360383613836238363383643836538366383673836838369383703837138372383733837438375383763837738378383793838038381383823838338384383853838638387383883838938390383913839238393383943839538396383973839838399384003840138402384033840438405384063840738408384093841038411384123841338414384153841638417384183841938420384213842238423384243842538426384273842838429384303843138432384333843438435384363843738438384393844038441384423844338444384453844638447384483844938450384513845238453384543845538456384573845838459384603846138462384633846438465384663846738468384693847038471384723847338474384753847638477384783847938480384813848238483384843848538486384873848838489384903849138492384933849438495384963849738498384993850038501385023850338504385053850638507385083850938510385113851238513385143851538516385173851838519385203852138522385233852438525385263852738528385293853038531385323853338534385353853638537385383853938540385413854238543385443854538546385473854838549385503855138552385533855438555385563855738558385593856038561385623856338564385653856638567385683856938570385713857238573385743857538576385773857838579385803858138582385833858438585385863858738588385893859038591385923859338594385953859638597385983859938600386013860238603386043860538606386073860838609386103861138612386133861438615386163861738618386193862038621386223862338624386253862638627386283862938630386313863238633386343863538636386373863838639386403864138642386433864438645386463864738648386493865038651386523865338654386553865638657386583865938660386613866238663386643866538666386673866838669386703867138672386733867438675386763867738678386793868038681386823868338684386853868638687386883868938690386913869238693386943869538696386973869838699387003870138702387033870438705387063870738708387093871038711387123871338714387153871638717387183871938720387213872238723387243872538726387273872838729387303873138732387333873438735387363873738738387393874038741387423874338744387453874638747387483874938750387513875238753387543875538756387573875838759387603876138762387633876438765387663876738768387693877038771387723877338774387753877638777387783877938780387813878238783387843878538786387873878838789387903879138792387933879438795387963879738798387993880038801388023880338804388053880638807388083880938810388113881238813388143881538816388173881838819388203882138822388233882438825388263882738828388293883038831388323883338834388353883638837388383883938840388413884238843388443884538846388473884838849388503885138852388533885438855388563885738858388593886038861388623886338864388653886638867388683886938870388713887238873388743887538876388773887838879388803888138882388833888438885388863888738888388893889038891388923889338894388953889638897388983889938900389013890238903389043890538906389073890838909389103891138912389133891438915389163891738918389193892038921389223892338924389253892638927389283892938930389313893238933389343893538936389373893838939389403894138942389433894438945389463894738948389493895038951389523895338954389553895638957389583895938960389613896238963389643896538966389673896838969389703897138972389733897438975389763897738978389793898038981389823898338984389853898638987389883898938990389913899238993389943899538996389973899838999390003900139002390033900439005390063900739008390093901039011390123901339014390153901639017390183901939020390213902239023390243902539026390273902839029390303903139032390333903439035390363903739038390393904039041390423904339044390453904639047390483904939050390513905239053390543905539056390573905839059390603906139062390633906439065390663906739068390693907039071390723907339074390753907639077390783907939080390813908239083390843908539086390873908839089390903909139092390933909439095390963909739098390993910039101391023910339104391053910639107391083910939110391113911239113391143911539116391173911839119391203912139122391233912439125391263912739128391293913039131391323913339134391353913639137391383913939140391413914239143391443914539146391473914839149391503915139152391533915439155391563915739158391593916039161391623916339164391653916639167391683916939170391713917239173391743917539176391773917839179391803918139182391833918439185391863918739188391893919039191391923919339194391953919639197391983919939200392013920239203392043920539206392073920839209392103921139212392133921439215392163921739218392193922039221392223922339224392253922639227392283922939230392313923239233392343923539236392373923839239392403924139242392433924439245392463924739248392493925039251392523925339254392553925639257392583925939260392613926239263392643926539266392673926839269392703927139272392733927439275392763927739278392793928039281392823928339284392853928639287392883928939290392913929239293392943929539296392973929839299393003930139302393033930439305393063930739308393093931039311393123931339314393153931639317393183931939320393213932239323393243932539326393273932839329393303933139332393333933439335393363933739338393393934039341393423934339344393453934639347393483934939350393513935239353393543935539356393573935839359393603936139362393633936439365393663936739368393693937039371393723937339374393753937639377393783937939380393813938239383393843938539386393873938839389393903939139392393933939439395393963939739398393993940039401394023940339404394053940639407394083940939410394113941239413394143941539416394173941839419394203942139422394233942439425394263942739428394293943039431394323943339434394353943639437394383943939440394413944239443394443944539446394473944839449394503945139452394533945439455394563945739458394593946039461394623946339464394653946639467394683946939470394713947239473394743947539476394773947839479394803948139482394833948439485394863948739488394893949039491394923949339494394953949639497394983949939500395013950239503395043950539506395073950839509395103951139512395133951439515395163951739518395193952039521395223952339524395253952639527395283952939530395313953239533395343953539536395373953839539395403954139542395433954439545395463954739548395493955039551395523955339554395553955639557395583955939560395613956239563395643956539566395673956839569395703957139572395733957439575395763957739578395793958039581395823958339584395853958639587395883958939590395913959239593395943959539596395973959839599396003960139602396033960439605396063960739608396093961039611396123961339614396153961639617396183961939620396213962239623396243962539626396273962839629396303963139632396333963439635396363963739638396393964039641396423964339644396453964639647396483964939650396513965239653396543965539656396573965839659396603966139662396633966439665396663966739668396693967039671396723967339674396753967639677396783967939680396813968239683396843968539686396873968839689396903969139692396933969439695396963969739698396993970039701397023970339704397053970639707397083970939710397113971239713397143971539716397173971839719397203972139722397233972439725397263972739728397293973039731397323973339734397353973639737397383973939740397413974239743397443974539746397473974839749397503975139752397533975439755397563975739758397593976039761397623976339764397653976639767397683976939770397713977239773397743977539776397773977839779397803978139782397833978439785397863978739788397893979039791397923979339794397953979639797397983979939800398013980239803398043980539806398073980839809398103981139812398133981439815398163981739818398193982039821398223982339824398253982639827398283982939830398313983239833398343983539836398373983839839398403984139842398433984439845398463984739848398493985039851398523985339854398553985639857398583985939860398613986239863398643986539866398673986839869398703987139872398733987439875398763987739878398793988039881398823988339884398853988639887398883988939890398913989239893398943989539896398973989839899399003990139902399033990439905399063990739908399093991039911399123991339914399153991639917399183991939920399213992239923399243992539926399273992839929399303993139932399333993439935399363993739938399393994039941399423994339944399453994639947399483994939950399513995239953399543995539956399573995839959399603996139962399633996439965399663996739968399693997039971399723997339974399753997639977399783997939980399813998239983399843998539986399873998839989399903999139992399933999439995399963999739998399994000040001400024000340004400054000640007400084000940010400114001240013400144001540016400174001840019400204002140022400234002440025400264002740028400294003040031400324003340034400354003640037400384003940040400414004240043400444004540046400474004840049400504005140052400534005440055400564005740058400594006040061400624006340064400654006640067400684006940070400714007240073400744007540076400774007840079400804008140082400834008440085400864008740088400894009040091400924009340094400954009640097400984009940100401014010240103401044010540106401074010840109401104011140112401134011440115401164011740118401194012040121401224012340124401254012640127401284012940130401314013240133401344013540136401374013840139401404014140142401434014440145401464014740148401494015040151401524015340154401554015640157401584015940160401614016240163401644016540166401674016840169401704017140172401734017440175401764017740178401794018040181401824018340184401854018640187401884018940190401914019240193401944019540196401974019840199402004020140202402034020440205402064020740208402094021040211402124021340214402154021640217402184021940220402214022240223402244022540226402274022840229402304023140232402334023440235402364023740238402394024040241402424024340244402454024640247402484024940250402514025240253402544025540256402574025840259402604026140262402634026440265402664026740268402694027040271402724027340274402754027640277402784027940280402814028240283402844028540286402874028840289402904029140292402934029440295402964029740298402994030040301403024030340304403054030640307403084030940310403114031240313403144031540316403174031840319403204032140322403234032440325403264032740328403294033040331403324033340334403354033640337403384033940340403414034240343403444034540346403474034840349403504035140352403534035440355403564035740358403594036040361403624036340364403654036640367403684036940370403714037240373403744037540376403774037840379403804038140382403834038440385403864038740388403894039040391403924039340394403954039640397403984039940400404014040240403404044040540406404074040840409404104041140412404134041440415404164041740418404194042040421404224042340424404254042640427404284042940430404314043240433404344043540436404374043840439404404044140442404434044440445404464044740448404494045040451404524045340454404554045640457404584045940460404614046240463404644046540466404674046840469404704047140472404734047440475404764047740478404794048040481404824048340484404854048640487404884048940490404914049240493404944049540496404974049840499405004050140502405034050440505405064050740508405094051040511405124051340514405154051640517405184051940520405214052240523405244052540526405274052840529405304053140532405334053440535405364053740538405394054040541405424054340544405454054640547405484054940550405514055240553405544055540556405574055840559405604056140562405634056440565405664056740568405694057040571405724057340574405754057640577405784057940580405814058240583405844058540586405874058840589405904059140592405934059440595405964059740598405994060040601406024060340604406054060640607406084060940610406114061240613406144061540616406174061840619406204062140622406234062440625406264062740628406294063040631406324063340634406354063640637406384063940640406414064240643406444064540646406474064840649406504065140652406534065440655406564065740658406594066040661406624066340664406654066640667406684066940670406714067240673406744067540676406774067840679406804068140682406834068440685406864068740688406894069040691406924069340694406954069640697406984069940700407014070240703407044070540706407074070840709407104071140712407134071440715407164071740718407194072040721407224072340724407254072640727407284072940730407314073240733407344073540736407374073840739407404074140742407434074440745407464074740748407494075040751407524075340754407554075640757407584075940760407614076240763407644076540766407674076840769407704077140772407734077440775407764077740778407794078040781407824078340784407854078640787407884078940790407914079240793407944079540796407974079840799408004080140802408034080440805408064080740808408094081040811408124081340814408154081640817408184081940820408214082240823408244082540826408274082840829408304083140832408334083440835408364083740838408394084040841408424084340844408454084640847408484084940850408514085240853408544085540856408574085840859408604086140862408634086440865408664086740868408694087040871408724087340874408754087640877408784087940880408814088240883408844088540886408874088840889408904089140892408934089440895408964089740898408994090040901409024090340904409054090640907409084090940910409114091240913409144091540916409174091840919409204092140922409234092440925409264092740928409294093040931409324093340934409354093640937409384093940940409414094240943409444094540946409474094840949409504095140952409534095440955409564095740958409594096040961409624096340964409654096640967409684096940970409714097240973409744097540976409774097840979409804098140982409834098440985409864098740988409894099040991409924099340994409954099640997409984099941000410014100241003410044100541006410074100841009410104101141012410134101441015410164101741018410194102041021410224102341024410254102641027410284102941030410314103241033410344103541036410374103841039410404104141042410434104441045410464104741048410494105041051410524105341054410554105641057410584105941060410614106241063410644106541066410674106841069410704107141072410734107441075410764107741078410794108041081410824108341084410854108641087410884108941090410914109241093410944109541096410974109841099411004110141102411034110441105411064110741108411094111041111411124111341114411154111641117411184111941120411214112241123411244112541126411274112841129411304113141132411334113441135411364113741138411394114041141411424114341144411454114641147411484114941150411514115241153411544115541156411574115841159411604116141162411634116441165411664116741168411694117041171411724117341174411754117641177411784117941180411814118241183411844118541186411874118841189411904119141192411934119441195411964119741198411994120041201412024120341204412054120641207412084120941210412114121241213412144121541216412174121841219412204122141222412234122441225412264122741228412294123041231412324123341234412354123641237412384123941240412414124241243412444124541246412474124841249412504125141252412534125441255412564125741258412594126041261412624126341264412654126641267412684126941270412714127241273412744127541276412774127841279412804128141282412834128441285412864128741288412894129041291412924129341294412954129641297412984129941300413014130241303413044130541306413074130841309413104131141312413134131441315413164131741318413194132041321413224132341324413254132641327413284132941330413314133241333413344133541336413374133841339413404134141342413434134441345413464134741348413494135041351413524135341354413554135641357413584135941360413614136241363413644136541366413674136841369413704137141372413734137441375413764137741378413794138041381413824138341384413854138641387413884138941390413914139241393413944139541396413974139841399414004140141402414034140441405414064140741408414094141041411414124141341414414154141641417414184141941420414214142241423414244142541426414274142841429414304143141432414334143441435414364143741438414394144041441414424144341444414454144641447414484144941450414514145241453414544145541456414574145841459414604146141462414634146441465414664146741468414694147041471414724147341474414754147641477414784147941480414814148241483414844148541486414874148841489414904149141492414934149441495414964149741498414994150041501415024150341504415054150641507415084150941510415114151241513415144151541516415174151841519415204152141522415234152441525415264152741528415294153041531415324153341534415354153641537415384153941540415414154241543415444154541546415474154841549415504155141552415534155441555415564155741558415594156041561415624156341564415654156641567415684156941570415714157241573415744157541576415774157841579415804158141582415834158441585415864158741588415894159041591415924159341594415954159641597415984159941600416014160241603416044160541606416074160841609416104161141612416134161441615416164161741618416194162041621416224162341624416254162641627416284162941630416314163241633416344163541636416374163841639416404164141642416434164441645416464164741648416494165041651416524165341654416554165641657416584165941660416614166241663416644166541666416674166841669416704167141672416734167441675416764167741678416794168041681416824168341684416854168641687416884168941690416914169241693416944169541696416974169841699417004170141702417034170441705417064170741708417094171041711417124171341714417154171641717417184171941720417214172241723417244172541726417274172841729417304173141732417334173441735417364173741738417394174041741417424174341744417454174641747417484174941750417514175241753417544175541756417574175841759417604176141762417634176441765417664176741768417694177041771417724177341774417754177641777417784177941780417814178241783417844178541786417874178841789417904179141792417934179441795417964179741798417994180041801418024180341804418054180641807418084180941810418114181241813418144181541816418174181841819418204182141822418234182441825418264182741828418294183041831418324183341834418354183641837418384183941840418414184241843418444184541846418474184841849418504185141852418534185441855418564185741858418594186041861418624186341864418654186641867418684186941870418714187241873418744187541876418774187841879418804188141882418834188441885418864188741888418894189041891418924189341894418954189641897418984189941900419014190241903419044190541906419074190841909419104191141912419134191441915419164191741918419194192041921419224192341924419254192641927419284192941930419314193241933419344193541936419374193841939419404194141942419434194441945419464194741948419494195041951419524195341954419554195641957419584195941960419614196241963419644196541966419674196841969419704197141972419734197441975419764197741978419794198041981419824198341984419854198641987419884198941990419914199241993419944199541996419974199841999420004200142002420034200442005420064200742008420094201042011420124201342014420154201642017420184201942020420214202242023420244202542026420274202842029420304203142032420334203442035420364203742038420394204042041420424204342044420454204642047420484204942050420514205242053420544205542056420574205842059420604206142062420634206442065420664206742068420694207042071420724207342074420754207642077420784207942080420814208242083420844208542086420874208842089420904209142092420934209442095420964209742098420994210042101421024210342104421054210642107421084210942110421114211242113421144211542116421174211842119421204212142122421234212442125421264212742128421294213042131421324213342134421354213642137421384213942140421414214242143421444214542146421474214842149421504215142152421534215442155421564215742158421594216042161421624216342164421654216642167421684216942170421714217242173421744217542176421774217842179421804218142182421834218442185421864218742188421894219042191421924219342194421954219642197421984219942200422014220242203422044220542206422074220842209422104221142212422134221442215422164221742218422194222042221422224222342224422254222642227422284222942230422314223242233422344223542236422374223842239422404224142242422434224442245422464224742248422494225042251422524225342254422554225642257422584225942260422614226242263422644226542266422674226842269422704227142272422734227442275422764227742278422794228042281422824228342284422854228642287422884228942290422914229242293422944229542296422974229842299423004230142302423034230442305423064230742308423094231042311423124231342314423154231642317423184231942320423214232242323423244232542326423274232842329423304233142332423334233442335423364233742338423394234042341423424234342344423454234642347423484234942350423514235242353423544235542356423574235842359423604236142362423634236442365423664236742368423694237042371423724237342374423754237642377423784237942380423814238242383423844238542386423874238842389423904239142392423934239442395423964239742398423994240042401424024240342404424054240642407424084240942410424114241242413424144241542416424174241842419424204242142422424234242442425424264242742428424294243042431424324243342434424354243642437424384243942440424414244242443424444244542446424474244842449424504245142452424534245442455424564245742458424594246042461424624246342464424654246642467424684246942470424714247242473424744247542476424774247842479424804248142482424834248442485424864248742488424894249042491424924249342494424954249642497424984249942500425014250242503425044250542506425074250842509425104251142512425134251442515425164251742518425194252042521425224252342524425254252642527425284252942530425314253242533425344253542536425374253842539425404254142542425434254442545425464254742548425494255042551425524255342554425554255642557425584255942560425614256242563425644256542566425674256842569425704257142572425734257442575425764257742578425794258042581425824258342584425854258642587425884258942590425914259242593425944259542596425974259842599426004260142602426034260442605426064260742608426094261042611426124261342614426154261642617426184261942620426214262242623426244262542626426274262842629426304263142632426334263442635426364263742638426394264042641426424264342644426454264642647426484264942650426514265242653426544265542656426574265842659426604266142662426634266442665426664266742668426694267042671426724267342674426754267642677426784267942680426814268242683426844268542686426874268842689426904269142692426934269442695426964269742698426994270042701427024270342704427054270642707427084270942710427114271242713427144271542716427174271842719427204272142722427234272442725427264272742728427294273042731427324273342734427354273642737427384273942740427414274242743427444274542746427474274842749427504275142752427534275442755427564275742758427594276042761427624276342764427654276642767427684276942770427714277242773427744277542776427774277842779427804278142782427834278442785427864278742788427894279042791427924279342794427954279642797427984279942800428014280242803428044280542806428074280842809428104281142812428134281442815428164281742818428194282042821428224282342824428254282642827428284282942830428314283242833428344283542836428374283842839428404284142842428434284442845428464284742848428494285042851428524285342854428554285642857428584285942860428614286242863428644286542866428674286842869428704287142872428734287442875428764287742878428794288042881428824288342884428854288642887428884288942890428914289242893428944289542896428974289842899429004290142902429034290442905429064290742908429094291042911429124291342914429154291642917429184291942920429214292242923429244292542926429274292842929429304293142932429334293442935429364293742938429394294042941429424294342944429454294642947429484294942950429514295242953429544295542956429574295842959429604296142962429634296442965429664296742968429694297042971429724297342974429754297642977429784297942980429814298242983429844298542986429874298842989429904299142992429934299442995429964299742998429994300043001430024300343004430054300643007430084300943010430114301243013430144301543016430174301843019430204302143022430234302443025430264302743028430294303043031430324303343034430354303643037430384303943040430414304243043430444304543046430474304843049430504305143052430534305443055430564305743058430594306043061430624306343064430654306643067430684306943070430714307243073430744307543076430774307843079430804308143082430834308443085430864308743088430894309043091430924309343094430954309643097430984309943100431014310243103431044310543106431074310843109431104311143112431134311443115431164311743118431194312043121431224312343124431254312643127431284312943130431314313243133431344313543136431374313843139431404314143142431434314443145431464314743148431494315043151431524315343154431554315643157431584315943160431614316243163431644316543166431674316843169431704317143172431734317443175431764317743178431794318043181431824318343184431854318643187431884318943190431914319243193431944319543196431974319843199432004320143202432034320443205432064320743208432094321043211432124321343214432154321643217432184321943220432214322243223432244322543226432274322843229432304323143232432334323443235432364323743238432394324043241432424324343244432454324643247432484324943250432514325243253432544325543256432574325843259432604326143262432634326443265432664326743268432694327043271432724327343274432754327643277432784327943280432814328243283432844328543286432874328843289432904329143292432934329443295432964329743298432994330043301433024330343304433054330643307433084330943310433114331243313433144331543316433174331843319433204332143322433234332443325433264332743328433294333043331433324333343334433354333643337433384333943340433414334243343433444334543346433474334843349433504335143352433534335443355433564335743358433594336043361433624336343364433654336643367433684336943370433714337243373433744337543376433774337843379433804338143382433834338443385433864338743388433894339043391433924339343394433954339643397433984339943400434014340243403434044340543406434074340843409434104341143412434134341443415434164341743418434194342043421434224342343424434254342643427434284342943430434314343243433434344343543436434374343843439434404344143442434434344443445434464344743448434494345043451434524345343454434554345643457434584345943460434614346243463434644346543466434674346843469434704347143472434734347443475434764347743478434794348043481434824348343484434854348643487434884348943490434914349243493434944349543496434974349843499435004350143502435034350443505435064350743508435094351043511435124351343514435154351643517435184351943520435214352243523435244352543526435274352843529435304353143532435334353443535435364353743538435394354043541435424354343544435454354643547435484354943550435514355243553435544355543556435574355843559435604356143562435634356443565435664356743568435694357043571435724357343574435754357643577435784357943580435814358243583435844358543586435874358843589435904359143592435934359443595435964359743598435994360043601436024360343604436054360643607436084360943610436114361243613436144361543616436174361843619436204362143622436234362443625436264362743628436294363043631436324363343634436354363643637436384363943640436414364243643436444364543646436474364843649436504365143652436534365443655436564365743658436594366043661436624366343664436654366643667436684366943670436714367243673436744367543676436774367843679436804368143682436834368443685436864368743688436894369043691436924369343694436954369643697436984369943700437014370243703437044370543706437074370843709437104371143712437134371443715437164371743718437194372043721437224372343724437254372643727437284372943730437314373243733437344373543736437374373843739437404374143742437434374443745437464374743748437494375043751437524375343754437554375643757437584375943760437614376243763437644376543766437674376843769437704377143772437734377443775437764377743778437794378043781437824378343784437854378643787437884378943790437914379243793437944379543796437974379843799438004380143802438034380443805438064380743808438094381043811438124381343814438154381643817438184381943820438214382243823438244382543826438274382843829438304383143832438334383443835438364383743838438394384043841438424384343844438454384643847438484384943850438514385243853438544385543856438574385843859438604386143862438634386443865438664386743868438694387043871438724387343874438754387643877438784387943880438814388243883438844388543886438874388843889438904389143892438934389443895438964389743898438994390043901439024390343904439054390643907439084390943910439114391243913439144391543916439174391843919439204392143922439234392443925439264392743928439294393043931439324393343934439354393643937439384393943940439414394243943439444394543946439474394843949439504395143952439534395443955439564395743958439594396043961439624396343964439654396643967439684396943970439714397243973439744397543976439774397843979439804398143982439834398443985439864398743988439894399043991439924399343994439954399643997439984399944000440014400244003440044400544006440074400844009440104401144012440134401444015440164401744018440194402044021440224402344024440254402644027440284402944030440314403244033440344403544036440374403844039440404404144042440434404444045440464404744048440494405044051440524405344054440554405644057440584405944060440614406244063440644406544066440674406844069440704407144072440734407444075440764407744078440794408044081440824408344084440854408644087440884408944090440914409244093440944409544096440974409844099441004410144102441034410444105441064410744108441094411044111441124411344114441154411644117441184411944120441214412244123441244412544126441274412844129441304413144132441334413444135441364413744138441394414044141441424414344144441454414644147441484414944150441514415244153441544415544156441574415844159441604416144162441634416444165441664416744168441694417044171441724417344174441754417644177441784417944180441814418244183441844418544186441874418844189441904419144192441934419444195
  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 Fri Feb 20 00:10:24 UTC 2009 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.19.1"
  9. jdversion="1.1.1">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/hadoopqa/tools/jdiff/latest/jdiff.jar:/home/hadoopqa/tools/jdiff/latest/xerces.jar -classpath /home/ndaley/hadoop/branch-0.19/build/classes:/home/ndaley/hadoop/branch-0.19/lib/commons-cli-2.0-SNAPSHOT.jar:/home/ndaley/hadoop/branch-0.19/lib/commons-codec-1.3.jar:/home/ndaley/hadoop/branch-0.19/lib/commons-httpclient-3.0.1.jar:/home/ndaley/hadoop/branch-0.19/lib/commons-logging-1.0.4.jar:/home/ndaley/hadoop/branch-0.19/lib/commons-logging-api-1.0.4.jar:/home/ndaley/hadoop/branch-0.19/lib/commons-net-1.4.1.jar:/home/ndaley/hadoop/branch-0.19/lib/hsqldb-1.8.0.10.jar:/home/ndaley/hadoop/branch-0.19/lib/jets3t-0.6.1.jar:/home/ndaley/hadoop/branch-0.19/lib/jetty-5.1.4.jar:/home/ndaley/hadoop/branch-0.19/lib/jetty-ext/commons-el.jar:/home/ndaley/hadoop/branch-0.19/lib/jetty-ext/jasper-compiler.jar:/home/ndaley/hadoop/branch-0.19/lib/jetty-ext/jasper-runtime.jar:/home/ndaley/hadoop/branch-0.19/lib/jetty-ext/jsp-api.jar:/home/ndaley/hadoop/branch-0.19/lib/junit-3.8.1.jar:/home/ndaley/hadoop/branch-0.19/lib/kfs-0.2.0.jar:/home/ndaley/hadoop/branch-0.19/lib/log4j-1.2.15.jar:/home/ndaley/hadoop/branch-0.19/lib/oro-2.0.8.jar:/home/ndaley/hadoop/branch-0.19/lib/servlet-api.jar:/home/ndaley/hadoop/branch-0.19/lib/slf4j-api-1.4.3.jar:/home/ndaley/hadoop/branch-0.19/lib/slf4j-log4j12-1.4.3.jar:/home/ndaley/hadoop/branch-0.19/lib/xmlenc-0.52.jar:/home/ndaley/hadoop/branch-0.19/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.6.0_07-32bit/lib/tools.jar -sourcepath /home/ndaley/hadoop/branch-0.19/src/core:/home/ndaley/hadoop/branch-0.19/src/mapred:/home/ndaley/hadoop/branch-0.19/src/tools -apidir /home/ndaley/hadoop/branch-0.19/docs/jdiff -apiname hadoop 0.19.1 -->
  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. <implements name="org.apache.hadoop.io.Writable"/>
  57. <constructor name="Configuration"
  58. static="false" final="false" visibility="public"
  59. deprecated="not deprecated">
  60. <doc>
  61. <![CDATA[A new configuration.]]>
  62. </doc>
  63. </constructor>
  64. <constructor name="Configuration" type="boolean"
  65. static="false" final="false" visibility="public"
  66. deprecated="not deprecated">
  67. <doc>
  68. <![CDATA[A new configuration where the behavior of reading from the default
  69. resources can be turned off.
  70. If the parameter {@code loadDefaults} is false, the new instance
  71. will not load resources from the default files.
  72. @param loadDefaults specifies whether to load from the default files]]>
  73. </doc>
  74. </constructor>
  75. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  76. static="false" final="false" visibility="public"
  77. deprecated="not deprecated">
  78. <doc>
  79. <![CDATA[A new configuration with the same settings cloned from another.
  80. @param other the configuration from which to clone settings.]]>
  81. </doc>
  82. </constructor>
  83. <method name="addResource"
  84. abstract="false" native="false" synchronized="false"
  85. static="false" final="false" visibility="public"
  86. deprecated="not deprecated">
  87. <param name="name" type="java.lang.String"/>
  88. <doc>
  89. <![CDATA[Add a configuration resource.
  90. The properties of this resource will override properties of previously
  91. added resources, unless they were marked <a href="#Final">final</a>.
  92. @param name resource to be added, the classpath is examined for a file
  93. with that name.]]>
  94. </doc>
  95. </method>
  96. <method name="addResource"
  97. abstract="false" native="false" synchronized="false"
  98. static="false" final="false" visibility="public"
  99. deprecated="not deprecated">
  100. <param name="url" type="java.net.URL"/>
  101. <doc>
  102. <![CDATA[Add a configuration resource.
  103. The properties of this resource will override properties of previously
  104. added resources, unless they were marked <a href="#Final">final</a>.
  105. @param url url of the resource to be added, the local filesystem is
  106. examined directly to find the resource, without referring to
  107. the classpath.]]>
  108. </doc>
  109. </method>
  110. <method name="addResource"
  111. abstract="false" native="false" synchronized="false"
  112. static="false" final="false" visibility="public"
  113. deprecated="not deprecated">
  114. <param name="file" type="org.apache.hadoop.fs.Path"/>
  115. <doc>
  116. <![CDATA[Add a configuration resource.
  117. The properties of this resource will override properties of previously
  118. added resources, unless they were marked <a href="#Final">final</a>.
  119. @param file file-path of resource to be added, the local filesystem is
  120. examined directly to find the resource, without referring to
  121. the classpath.]]>
  122. </doc>
  123. </method>
  124. <method name="addResource"
  125. abstract="false" native="false" synchronized="false"
  126. static="false" final="false" visibility="public"
  127. deprecated="not deprecated">
  128. <param name="in" type="java.io.InputStream"/>
  129. <doc>
  130. <![CDATA[Add a configuration resource.
  131. The properties of this resource will override properties of previously
  132. added resources, unless they were marked <a href="#Final">final</a>.
  133. @param in InputStream to deserialize the object from.]]>
  134. </doc>
  135. </method>
  136. <method name="reloadConfiguration"
  137. abstract="false" native="false" synchronized="true"
  138. static="false" final="false" visibility="public"
  139. deprecated="not deprecated">
  140. <doc>
  141. <![CDATA[Reload configuration from previously added resources.
  142. This method will clear all the configuration read from the added
  143. resources, and final parameters. This will make the resources to
  144. be read again before accessing the values. Values that are added
  145. via set methods will overlay values read from the resources.]]>
  146. </doc>
  147. </method>
  148. <method name="get" return="java.lang.String"
  149. abstract="false" native="false" synchronized="false"
  150. static="false" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <param name="name" type="java.lang.String"/>
  153. <doc>
  154. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  155. no such property exists.
  156. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  157. before being returned.
  158. @param name the property name.
  159. @return the value of the <code>name</code> property,
  160. or null if no such property exists.]]>
  161. </doc>
  162. </method>
  163. <method name="getRaw" return="java.lang.String"
  164. abstract="false" native="false" synchronized="false"
  165. static="false" final="false" visibility="public"
  166. deprecated="not deprecated">
  167. <param name="name" type="java.lang.String"/>
  168. <doc>
  169. <![CDATA[Get the value of the <code>name</code> property, without doing
  170. <a href="#VariableExpansion">variable expansion</a>.
  171. @param name the property name.
  172. @return the value of the <code>name</code> property,
  173. or null if no such property exists.]]>
  174. </doc>
  175. </method>
  176. <method name="set"
  177. abstract="false" native="false" synchronized="false"
  178. static="false" final="false" visibility="public"
  179. deprecated="not deprecated">
  180. <param name="name" type="java.lang.String"/>
  181. <param name="value" type="java.lang.String"/>
  182. <doc>
  183. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  184. @param name property name.
  185. @param value property value.]]>
  186. </doc>
  187. </method>
  188. <method name="get" return="java.lang.String"
  189. abstract="false" native="false" synchronized="false"
  190. static="false" final="false" visibility="public"
  191. deprecated="not deprecated">
  192. <param name="name" type="java.lang.String"/>
  193. <param name="defaultValue" type="java.lang.String"/>
  194. <doc>
  195. <![CDATA[Get the value of the <code>name</code> property. If no such property
  196. exists, then <code>defaultValue</code> is returned.
  197. @param name property name.
  198. @param defaultValue default value.
  199. @return property value, or <code>defaultValue</code> if the property
  200. doesn't exist.]]>
  201. </doc>
  202. </method>
  203. <method name="getInt" return="int"
  204. abstract="false" native="false" synchronized="false"
  205. static="false" final="false" visibility="public"
  206. deprecated="not deprecated">
  207. <param name="name" type="java.lang.String"/>
  208. <param name="defaultValue" type="int"/>
  209. <doc>
  210. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  211. If no such property exists, or if the specified value is not a valid
  212. <code>int</code>, then <code>defaultValue</code> is returned.
  213. @param name property name.
  214. @param defaultValue default value.
  215. @return property value as an <code>int</code>,
  216. or <code>defaultValue</code>.]]>
  217. </doc>
  218. </method>
  219. <method name="setInt"
  220. abstract="false" native="false" synchronized="false"
  221. static="false" final="false" visibility="public"
  222. deprecated="not deprecated">
  223. <param name="name" type="java.lang.String"/>
  224. <param name="value" type="int"/>
  225. <doc>
  226. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  227. @param name property name.
  228. @param value <code>int</code> value of the property.]]>
  229. </doc>
  230. </method>
  231. <method name="getLong" return="long"
  232. abstract="false" native="false" synchronized="false"
  233. static="false" final="false" visibility="public"
  234. deprecated="not deprecated">
  235. <param name="name" type="java.lang.String"/>
  236. <param name="defaultValue" type="long"/>
  237. <doc>
  238. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  239. If no such property is specified, or if the specified value is not a valid
  240. <code>long</code>, then <code>defaultValue</code> is returned.
  241. @param name property name.
  242. @param defaultValue default value.
  243. @return property value as a <code>long</code>,
  244. or <code>defaultValue</code>.]]>
  245. </doc>
  246. </method>
  247. <method name="setLong"
  248. abstract="false" native="false" synchronized="false"
  249. static="false" final="false" visibility="public"
  250. deprecated="not deprecated">
  251. <param name="name" type="java.lang.String"/>
  252. <param name="value" type="long"/>
  253. <doc>
  254. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  255. @param name property name.
  256. @param value <code>long</code> value of the property.]]>
  257. </doc>
  258. </method>
  259. <method name="getFloat" return="float"
  260. abstract="false" native="false" synchronized="false"
  261. static="false" final="false" visibility="public"
  262. deprecated="not deprecated">
  263. <param name="name" type="java.lang.String"/>
  264. <param name="defaultValue" type="float"/>
  265. <doc>
  266. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  267. If no such property is specified, or if the specified value is not a valid
  268. <code>float</code>, then <code>defaultValue</code> is returned.
  269. @param name property name.
  270. @param defaultValue default value.
  271. @return property value as a <code>float</code>,
  272. or <code>defaultValue</code>.]]>
  273. </doc>
  274. </method>
  275. <method name="getBoolean" return="boolean"
  276. abstract="false" native="false" synchronized="false"
  277. static="false" final="false" visibility="public"
  278. deprecated="not deprecated">
  279. <param name="name" type="java.lang.String"/>
  280. <param name="defaultValue" type="boolean"/>
  281. <doc>
  282. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  283. If no such property is specified, or if the specified value is not a valid
  284. <code>boolean</code>, then <code>defaultValue</code> is returned.
  285. @param name property name.
  286. @param defaultValue default value.
  287. @return property value as a <code>boolean</code>,
  288. or <code>defaultValue</code>.]]>
  289. </doc>
  290. </method>
  291. <method name="setBoolean"
  292. abstract="false" native="false" synchronized="false"
  293. static="false" final="false" visibility="public"
  294. deprecated="not deprecated">
  295. <param name="name" type="java.lang.String"/>
  296. <param name="value" type="boolean"/>
  297. <doc>
  298. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  299. @param name property name.
  300. @param value <code>boolean</code> value of the property.]]>
  301. </doc>
  302. </method>
  303. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  304. abstract="false" native="false" synchronized="false"
  305. static="false" final="false" visibility="public"
  306. deprecated="not deprecated">
  307. <param name="name" type="java.lang.String"/>
  308. <param name="defaultValue" type="java.lang.String"/>
  309. <doc>
  310. <![CDATA[Parse the given attribute as a set of integer ranges
  311. @param name the attribute name
  312. @param defaultValue the default value if it is not set
  313. @return a new set of ranges from the configured value]]>
  314. </doc>
  315. </method>
  316. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  317. abstract="false" native="false" synchronized="false"
  318. static="false" final="false" visibility="public"
  319. deprecated="not deprecated">
  320. <param name="name" type="java.lang.String"/>
  321. <doc>
  322. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  323. a collection of <code>String</code>s.
  324. If no such property is specified then empty collection is returned.
  325. <p>
  326. This is an optimized version of {@link #getStrings(String)}
  327. @param name property name.
  328. @return property value as a collection of <code>String</code>s.]]>
  329. </doc>
  330. </method>
  331. <method name="getStrings" return="java.lang.String[]"
  332. abstract="false" native="false" synchronized="false"
  333. static="false" final="false" visibility="public"
  334. deprecated="not deprecated">
  335. <param name="name" type="java.lang.String"/>
  336. <doc>
  337. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  338. an array of <code>String</code>s.
  339. If no such property is specified then <code>null</code> is returned.
  340. @param name property name.
  341. @return property value as an array of <code>String</code>s,
  342. or <code>null</code>.]]>
  343. </doc>
  344. </method>
  345. <method name="getStrings" return="java.lang.String[]"
  346. abstract="false" native="false" synchronized="false"
  347. static="false" final="false" visibility="public"
  348. deprecated="not deprecated">
  349. <param name="name" type="java.lang.String"/>
  350. <param name="defaultValue" type="java.lang.String[]"/>
  351. <doc>
  352. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  353. an array of <code>String</code>s.
  354. If no such property is specified then default value is returned.
  355. @param name property name.
  356. @param defaultValue The default value
  357. @return property value as an array of <code>String</code>s,
  358. or default value.]]>
  359. </doc>
  360. </method>
  361. <method name="setStrings"
  362. abstract="false" native="false" synchronized="false"
  363. static="false" final="false" visibility="public"
  364. deprecated="not deprecated">
  365. <param name="name" type="java.lang.String"/>
  366. <param name="values" type="java.lang.String[]"/>
  367. <doc>
  368. <![CDATA[Set the array of string values for the <code>name</code> property as
  369. as comma delimited values.
  370. @param name property name.
  371. @param values The values]]>
  372. </doc>
  373. </method>
  374. <method name="getClassByName" return="java.lang.Class&lt;?&gt;"
  375. abstract="false" native="false" synchronized="false"
  376. static="false" final="false" visibility="public"
  377. deprecated="not deprecated">
  378. <param name="name" type="java.lang.String"/>
  379. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  380. <doc>
  381. <![CDATA[Load a class by name.
  382. @param name the class name.
  383. @return the class object.
  384. @throws ClassNotFoundException if the class is not found.]]>
  385. </doc>
  386. </method>
  387. <method name="getClasses" return="java.lang.Class[]"
  388. abstract="false" native="false" synchronized="false"
  389. static="false" final="false" visibility="public"
  390. deprecated="not deprecated">
  391. <param name="name" type="java.lang.String"/>
  392. <param name="defaultValue" type="java.lang.Class[]"/>
  393. <doc>
  394. <![CDATA[Get the value of the <code>name</code> property
  395. as an array of <code>Class</code>.
  396. The value of the property specifies a list of comma separated class names.
  397. If no such property is specified, then <code>defaultValue</code> is
  398. returned.
  399. @param name the property name.
  400. @param defaultValue default value.
  401. @return property value as a <code>Class[]</code>,
  402. or <code>defaultValue</code>.]]>
  403. </doc>
  404. </method>
  405. <method name="getClass" return="java.lang.Class&lt;?&gt;"
  406. abstract="false" native="false" synchronized="false"
  407. static="false" final="false" visibility="public"
  408. deprecated="not deprecated">
  409. <param name="name" type="java.lang.String"/>
  410. <param name="defaultValue" type="java.lang.Class&lt;?&gt;"/>
  411. <doc>
  412. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  413. If no such property is specified, then <code>defaultValue</code> is
  414. returned.
  415. @param name the class name.
  416. @param defaultValue default value.
  417. @return property value as a <code>Class</code>,
  418. or <code>defaultValue</code>.]]>
  419. </doc>
  420. </method>
  421. <method name="getClass" return="java.lang.Class&lt;? extends U&gt;"
  422. abstract="false" native="false" synchronized="false"
  423. static="false" final="false" visibility="public"
  424. deprecated="not deprecated">
  425. <param name="name" type="java.lang.String"/>
  426. <param name="defaultValue" type="java.lang.Class&lt;? extends U&gt;"/>
  427. <param name="xface" type="java.lang.Class&lt;U&gt;"/>
  428. <doc>
  429. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  430. implementing the interface specified by <code>xface</code>.
  431. If no such property is specified, then <code>defaultValue</code> is
  432. returned.
  433. An exception is thrown if the returned class does not implement the named
  434. interface.
  435. @param name the class name.
  436. @param defaultValue default value.
  437. @param xface the interface implemented by the named class.
  438. @return property value as a <code>Class</code>,
  439. or <code>defaultValue</code>.]]>
  440. </doc>
  441. </method>
  442. <method name="setClass"
  443. abstract="false" native="false" synchronized="false"
  444. static="false" final="false" visibility="public"
  445. deprecated="not deprecated">
  446. <param name="name" type="java.lang.String"/>
  447. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  448. <param name="xface" type="java.lang.Class&lt;?&gt;"/>
  449. <doc>
  450. <![CDATA[Set the value of the <code>name</code> property to the name of a
  451. <code>theClass</code> implementing the given interface <code>xface</code>.
  452. An exception is thrown if <code>theClass</code> does not implement the
  453. interface <code>xface</code>.
  454. @param name property name.
  455. @param theClass property value.
  456. @param xface the interface implemented by the named class.]]>
  457. </doc>
  458. </method>
  459. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  460. abstract="false" native="false" synchronized="false"
  461. static="false" final="false" visibility="public"
  462. deprecated="not deprecated">
  463. <param name="dirsProp" type="java.lang.String"/>
  464. <param name="path" type="java.lang.String"/>
  465. <exception name="IOException" type="java.io.IOException"/>
  466. <doc>
  467. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  468. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  469. then one is chosen based on <i>path</i>'s hash code. If the selected
  470. directory does not exist, an attempt is made to create it.
  471. @param dirsProp directory in which to locate the file.
  472. @param path file-path.
  473. @return local file under the directory with the given path.]]>
  474. </doc>
  475. </method>
  476. <method name="getFile" return="java.io.File"
  477. abstract="false" native="false" synchronized="false"
  478. static="false" final="false" visibility="public"
  479. deprecated="not deprecated">
  480. <param name="dirsProp" type="java.lang.String"/>
  481. <param name="path" type="java.lang.String"/>
  482. <exception name="IOException" type="java.io.IOException"/>
  483. <doc>
  484. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  485. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  486. then one is chosen based on <i>path</i>'s hash code. If the selected
  487. directory does not exist, an attempt is made to create it.
  488. @param dirsProp directory in which to locate the file.
  489. @param path file-path.
  490. @return local file under the directory with the given path.]]>
  491. </doc>
  492. </method>
  493. <method name="getResource" return="java.net.URL"
  494. abstract="false" native="false" synchronized="false"
  495. static="false" final="false" visibility="public"
  496. deprecated="not deprecated">
  497. <param name="name" type="java.lang.String"/>
  498. <doc>
  499. <![CDATA[Get the {@link URL} for the named resource.
  500. @param name resource name.
  501. @return the url for the named resource.]]>
  502. </doc>
  503. </method>
  504. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  505. abstract="false" native="false" synchronized="false"
  506. static="false" final="false" visibility="public"
  507. deprecated="not deprecated">
  508. <param name="name" type="java.lang.String"/>
  509. <doc>
  510. <![CDATA[Get an input stream attached to the configuration resource with the
  511. given <code>name</code>.
  512. @param name configuration resource name.
  513. @return an input stream attached to the resource.]]>
  514. </doc>
  515. </method>
  516. <method name="getConfResourceAsReader" return="java.io.Reader"
  517. abstract="false" native="false" synchronized="false"
  518. static="false" final="false" visibility="public"
  519. deprecated="not deprecated">
  520. <param name="name" type="java.lang.String"/>
  521. <doc>
  522. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  523. given <code>name</code>.
  524. @param name configuration resource name.
  525. @return a reader attached to the resource.]]>
  526. </doc>
  527. </method>
  528. <method name="size" return="int"
  529. abstract="false" native="false" synchronized="false"
  530. static="false" final="false" visibility="public"
  531. deprecated="not deprecated">
  532. <doc>
  533. <![CDATA[Return the number of keys in the configuration.
  534. @return number of keys in the configuration.]]>
  535. </doc>
  536. </method>
  537. <method name="clear"
  538. abstract="false" native="false" synchronized="false"
  539. static="false" final="false" visibility="public"
  540. deprecated="not deprecated">
  541. <doc>
  542. <![CDATA[Clears all keys from the configuration.]]>
  543. </doc>
  544. </method>
  545. <method name="iterator" return="java.util.Iterator&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"
  546. abstract="false" native="false" synchronized="false"
  547. static="false" final="false" visibility="public"
  548. deprecated="not deprecated">
  549. <doc>
  550. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  551. key-value pairs in the configuration.
  552. @return an iterator over the entries.]]>
  553. </doc>
  554. </method>
  555. <method name="writeXml"
  556. abstract="false" native="false" synchronized="false"
  557. static="false" final="false" visibility="public"
  558. deprecated="not deprecated">
  559. <param name="out" type="java.io.OutputStream"/>
  560. <exception name="IOException" type="java.io.IOException"/>
  561. <doc>
  562. <![CDATA[Write out the non-default properties in this configuration to the give
  563. {@link OutputStream}.
  564. @param out the output stream to write to.]]>
  565. </doc>
  566. </method>
  567. <method name="getClassLoader" return="java.lang.ClassLoader"
  568. abstract="false" native="false" synchronized="false"
  569. static="false" final="false" visibility="public"
  570. deprecated="not deprecated">
  571. <doc>
  572. <![CDATA[Get the {@link ClassLoader} for this job.
  573. @return the correct class loader.]]>
  574. </doc>
  575. </method>
  576. <method name="setClassLoader"
  577. abstract="false" native="false" synchronized="false"
  578. static="false" final="false" visibility="public"
  579. deprecated="not deprecated">
  580. <param name="classLoader" type="java.lang.ClassLoader"/>
  581. <doc>
  582. <![CDATA[Set the class loader that will be used to load the various objects.
  583. @param classLoader the new class loader.]]>
  584. </doc>
  585. </method>
  586. <method name="toString" return="java.lang.String"
  587. abstract="false" native="false" synchronized="false"
  588. static="false" final="false" visibility="public"
  589. deprecated="not deprecated">
  590. </method>
  591. <method name="setQuietMode"
  592. abstract="false" native="false" synchronized="true"
  593. static="false" final="false" visibility="public"
  594. deprecated="not deprecated">
  595. <param name="quietmode" type="boolean"/>
  596. <doc>
  597. <![CDATA[Set the quiteness-mode.
  598. In the the quite-mode error and informational messages might not be logged.
  599. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  600. to turn it off.]]>
  601. </doc>
  602. </method>
  603. <method name="main"
  604. abstract="false" native="false" synchronized="false"
  605. static="true" final="false" visibility="public"
  606. deprecated="not deprecated">
  607. <param name="args" type="java.lang.String[]"/>
  608. <exception name="Exception" type="java.lang.Exception"/>
  609. <doc>
  610. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  611. </doc>
  612. </method>
  613. <method name="readFields"
  614. abstract="false" native="false" synchronized="false"
  615. static="false" final="false" visibility="public"
  616. deprecated="not deprecated">
  617. <param name="in" type="java.io.DataInput"/>
  618. <exception name="IOException" type="java.io.IOException"/>
  619. </method>
  620. <method name="write"
  621. abstract="false" native="false" synchronized="false"
  622. static="false" final="false" visibility="public"
  623. deprecated="not deprecated">
  624. <param name="out" type="java.io.DataOutput"/>
  625. <exception name="IOException" type="java.io.IOException"/>
  626. </method>
  627. <doc>
  628. <![CDATA[Provides access to configuration parameters.
  629. <h4 id="Resources">Resources</h4>
  630. <p>Configurations are specified by resources. A resource contains a set of
  631. name/value pairs as XML data. Each resource is named by either a
  632. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  633. then the classpath is examined for a file with that name. If named by a
  634. <code>Path</code>, then the local filesystem is examined directly, without
  635. referring to the classpath.
  636. <p>Unless explicitly turned off, Hadoop by default specifies two
  637. resources, loaded in-order from the classpath: <ol>
  638. <li><tt><a href="{@docRoot}/../hadoop-default.html">hadoop-default.xml</a>
  639. </tt>: Read-only defaults for hadoop.</li>
  640. <li><tt>hadoop-site.xml</tt>: Site-specific configuration for a given hadoop
  641. installation.</li>
  642. </ol>
  643. Applications may add additional resources, which are loaded
  644. subsequent to these resources in the order they are added.
  645. <h4 id="FinalParams">Final Parameters</h4>
  646. <p>Configuration parameters may be declared <i>final</i>.
  647. Once a resource declares a value final, no subsequently-loaded
  648. resource can alter that value.
  649. For example, one might define a final parameter with:
  650. <tt><pre>
  651. &lt;property&gt;
  652. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  653. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  654. <b>&lt;final&gt;true&lt;/final&gt;</b>
  655. &lt;/property&gt;</pre></tt>
  656. Administrators typically define parameters as final in
  657. <tt>hadoop-site.xml</tt> for values that user applications may not alter.
  658. <h4 id="VariableExpansion">Variable Expansion</h4>
  659. <p>Value strings are first processed for <i>variable expansion</i>. The
  660. available properties are:<ol>
  661. <li>Other properties defined in this Configuration; and, if a name is
  662. undefined here,</li>
  663. <li>Properties in {@link System#getProperties()}.</li>
  664. </ol>
  665. <p>For example, if a configuration resource contains the following property
  666. definitions:
  667. <tt><pre>
  668. &lt;property&gt;
  669. &lt;name&gt;basedir&lt;/name&gt;
  670. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  671. &lt;/property&gt;
  672. &lt;property&gt;
  673. &lt;name&gt;tempdir&lt;/name&gt;
  674. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  675. &lt;/property&gt;</pre></tt>
  676. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  677. will be resolved to another property in this Configuration, while
  678. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  679. of the System property with that name.]]>
  680. </doc>
  681. </class>
  682. <!-- end class org.apache.hadoop.conf.Configuration -->
  683. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  684. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  685. abstract="false"
  686. static="true" final="false" visibility="public"
  687. deprecated="not deprecated">
  688. <constructor name="Configuration.IntegerRanges"
  689. static="false" final="false" visibility="public"
  690. deprecated="not deprecated">
  691. </constructor>
  692. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  693. static="false" final="false" visibility="public"
  694. deprecated="not deprecated">
  695. </constructor>
  696. <method name="isIncluded" return="boolean"
  697. abstract="false" native="false" synchronized="false"
  698. static="false" final="false" visibility="public"
  699. deprecated="not deprecated">
  700. <param name="value" type="int"/>
  701. <doc>
  702. <![CDATA[Is the given value in the set of ranges
  703. @param value the value to check
  704. @return is the value in the ranges?]]>
  705. </doc>
  706. </method>
  707. <method name="toString" return="java.lang.String"
  708. abstract="false" native="false" synchronized="false"
  709. static="false" final="false" visibility="public"
  710. deprecated="not deprecated">
  711. </method>
  712. <doc>
  713. <![CDATA[A class that represents a set of positive integer ranges. It parses
  714. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  715. the lower/upper bounds are separated by dash. Either the lower or upper
  716. bound may be omitted meaning all values up to or over. So the string
  717. above means 2, 3, 5, and 7, 8, 9, ...]]>
  718. </doc>
  719. </class>
  720. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  721. <!-- start class org.apache.hadoop.conf.Configured -->
  722. <class name="Configured" extends="java.lang.Object"
  723. abstract="false"
  724. static="false" final="false" visibility="public"
  725. deprecated="not deprecated">
  726. <implements name="org.apache.hadoop.conf.Configurable"/>
  727. <constructor name="Configured"
  728. static="false" final="false" visibility="public"
  729. deprecated="not deprecated">
  730. <doc>
  731. <![CDATA[Construct a Configured.]]>
  732. </doc>
  733. </constructor>
  734. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  735. static="false" final="false" visibility="public"
  736. deprecated="not deprecated">
  737. <doc>
  738. <![CDATA[Construct a Configured.]]>
  739. </doc>
  740. </constructor>
  741. <method name="setConf"
  742. abstract="false" native="false" synchronized="false"
  743. static="false" final="false" visibility="public"
  744. deprecated="not deprecated">
  745. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  746. </method>
  747. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  748. abstract="false" native="false" synchronized="false"
  749. static="false" final="false" visibility="public"
  750. deprecated="not deprecated">
  751. </method>
  752. <doc>
  753. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  754. </doc>
  755. </class>
  756. <!-- end class org.apache.hadoop.conf.Configured -->
  757. </package>
  758. <package name="org.apache.hadoop.filecache">
  759. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  760. <class name="DistributedCache" extends="java.lang.Object"
  761. abstract="false"
  762. static="false" final="false" visibility="public"
  763. deprecated="not deprecated">
  764. <constructor name="DistributedCache"
  765. static="false" final="false" visibility="public"
  766. deprecated="not deprecated">
  767. </constructor>
  768. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  769. abstract="false" native="false" synchronized="false"
  770. static="true" final="false" visibility="public"
  771. deprecated="not deprecated">
  772. <param name="cache" type="java.net.URI"/>
  773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  774. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  775. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  776. <param name="isArchive" type="boolean"/>
  777. <param name="confFileStamp" type="long"/>
  778. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  779. <exception name="IOException" type="java.io.IOException"/>
  780. <doc>
  781. <![CDATA[Get the locally cached file or archive; it could either be
  782. previously cached (and valid) or copy it from the {@link FileSystem} now.
  783. @param cache the cache to be localized, this should be specified as
  784. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  785. or hostname:port is provided the file is assumed to be in the filesystem
  786. being used in the Configuration
  787. @param conf The Confguration file which contains the filesystem
  788. @param baseDir The base cache Dir where you wnat to localize the files/archives
  789. @param fileStatus The file status on the dfs.
  790. @param isArchive if the cache is an archive or a file. In case it is an
  791. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  792. be unzipped/unjarred/untarred automatically
  793. and the directory where the archive is unzipped/unjarred/untarred is
  794. returned as the Path.
  795. In case of a file, the path to the file is returned
  796. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  797. file to be cached hasn't changed since the job started
  798. @param currentWorkDir this is the directory where you would want to create symlinks
  799. for the locally cached files/archives
  800. @return the path to directory where the archives are unjarred in case of archives,
  801. the path to the file where the file is copied locally
  802. @throws IOException]]>
  803. </doc>
  804. </method>
  805. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  806. abstract="false" native="false" synchronized="false"
  807. static="true" final="false" visibility="public"
  808. deprecated="not deprecated">
  809. <param name="cache" type="java.net.URI"/>
  810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  811. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  812. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  813. <param name="isArchive" type="boolean"/>
  814. <param name="confFileStamp" type="long"/>
  815. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  816. <param name="honorSymLinkConf" type="boolean"/>
  817. <exception name="IOException" type="java.io.IOException"/>
  818. <doc>
  819. <![CDATA[Get the locally cached file or archive; it could either be
  820. previously cached (and valid) or copy it from the {@link FileSystem} now.
  821. @param cache the cache to be localized, this should be specified as
  822. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  823. or hostname:port is provided the file is assumed to be in the filesystem
  824. being used in the Configuration
  825. @param conf The Confguration file which contains the filesystem
  826. @param baseDir The base cache Dir where you wnat to localize the files/archives
  827. @param fileStatus The file status on the dfs.
  828. @param isArchive if the cache is an archive or a file. In case it is an
  829. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  830. be unzipped/unjarred/untarred automatically
  831. and the directory where the archive is unzipped/unjarred/untarred is
  832. returned as the Path.
  833. In case of a file, the path to the file is returned
  834. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  835. file to be cached hasn't changed since the job started
  836. @param currentWorkDir this is the directory where you would want to create symlinks
  837. for the locally cached files/archives
  838. @param honorSymLinkConf if this is false, then the symlinks are not
  839. created even if conf says so (this is required for an optimization in task
  840. launches
  841. @return the path to directory where the archives are unjarred in case of archives,
  842. the path to the file where the file is copied locally
  843. @throws IOException]]>
  844. </doc>
  845. </method>
  846. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  847. abstract="false" native="false" synchronized="false"
  848. static="true" final="false" visibility="public"
  849. deprecated="not deprecated">
  850. <param name="cache" type="java.net.URI"/>
  851. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  852. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  853. <param name="isArchive" type="boolean"/>
  854. <param name="confFileStamp" type="long"/>
  855. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  856. <exception name="IOException" type="java.io.IOException"/>
  857. <doc>
  858. <![CDATA[Get the locally cached file or archive; it could either be
  859. previously cached (and valid) or copy it from the {@link FileSystem} now.
  860. @param cache the cache to be localized, this should be specified as
  861. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  862. or hostname:port is provided the file is assumed to be in the filesystem
  863. being used in the Configuration
  864. @param conf The Confguration file which contains the filesystem
  865. @param baseDir The base cache Dir where you wnat to localize the files/archives
  866. @param isArchive if the cache is an archive or a file. In case it is an
  867. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  868. be unzipped/unjarred/untarred automatically
  869. and the directory where the archive is unzipped/unjarred/untarred
  870. is returned as the Path.
  871. In case of a file, the path to the file is returned
  872. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  873. file to be cached hasn't changed since the job started
  874. @param currentWorkDir this is the directory where you would want to create symlinks
  875. for the locally cached files/archives
  876. @return the path to directory where the archives are unjarred in case of archives,
  877. the path to the file where the file is copied locally
  878. @throws IOException]]>
  879. </doc>
  880. </method>
  881. <method name="releaseCache"
  882. abstract="false" native="false" synchronized="false"
  883. static="true" final="false" visibility="public"
  884. deprecated="not deprecated">
  885. <param name="cache" type="java.net.URI"/>
  886. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  887. <exception name="IOException" type="java.io.IOException"/>
  888. <doc>
  889. <![CDATA[This is the opposite of getlocalcache. When you are done with
  890. using the cache, you need to release the cache
  891. @param cache The cache URI to be released
  892. @param conf configuration which contains the filesystem the cache
  893. is contained in.
  894. @throws IOException]]>
  895. </doc>
  896. </method>
  897. <method name="makeRelative" return="java.lang.String"
  898. abstract="false" native="false" synchronized="false"
  899. static="true" final="false" visibility="public"
  900. deprecated="not deprecated">
  901. <param name="cache" type="java.net.URI"/>
  902. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  903. <exception name="IOException" type="java.io.IOException"/>
  904. </method>
  905. <method name="getTimestamp" return="long"
  906. abstract="false" native="false" synchronized="false"
  907. static="true" final="false" visibility="public"
  908. deprecated="not deprecated">
  909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  910. <param name="cache" type="java.net.URI"/>
  911. <exception name="IOException" type="java.io.IOException"/>
  912. <doc>
  913. <![CDATA[Returns mtime of a given cache file on hdfs.
  914. @param conf configuration
  915. @param cache cache file
  916. @return mtime of a given cache file on hdfs
  917. @throws IOException]]>
  918. </doc>
  919. </method>
  920. <method name="createAllSymlink"
  921. abstract="false" native="false" synchronized="false"
  922. static="true" final="false" visibility="public"
  923. deprecated="not deprecated">
  924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  925. <param name="jobCacheDir" type="java.io.File"/>
  926. <param name="workDir" type="java.io.File"/>
  927. <exception name="IOException" type="java.io.IOException"/>
  928. <doc>
  929. <![CDATA[This method create symlinks for all files in a given dir in another directory
  930. @param conf the configuration
  931. @param jobCacheDir the target directory for creating symlinks
  932. @param workDir the directory in which the symlinks are created
  933. @throws IOException]]>
  934. </doc>
  935. </method>
  936. <method name="setCacheArchives"
  937. abstract="false" native="false" synchronized="false"
  938. static="true" final="false" visibility="public"
  939. deprecated="not deprecated">
  940. <param name="archives" type="java.net.URI[]"/>
  941. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  942. <doc>
  943. <![CDATA[Set the configuration with the given set of archives
  944. @param archives The list of archives that need to be localized
  945. @param conf Configuration which will be changed]]>
  946. </doc>
  947. </method>
  948. <method name="setCacheFiles"
  949. abstract="false" native="false" synchronized="false"
  950. static="true" final="false" visibility="public"
  951. deprecated="not deprecated">
  952. <param name="files" type="java.net.URI[]"/>
  953. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  954. <doc>
  955. <![CDATA[Set the configuration with the given set of files
  956. @param files The list of files that need to be localized
  957. @param conf Configuration which will be changed]]>
  958. </doc>
  959. </method>
  960. <method name="getCacheArchives" return="java.net.URI[]"
  961. abstract="false" native="false" synchronized="false"
  962. static="true" final="false" visibility="public"
  963. deprecated="not deprecated">
  964. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  965. <exception name="IOException" type="java.io.IOException"/>
  966. <doc>
  967. <![CDATA[Get cache archives set in the Configuration
  968. @param conf The configuration which contains the archives
  969. @return A URI array of the caches set in the Configuration
  970. @throws IOException]]>
  971. </doc>
  972. </method>
  973. <method name="getCacheFiles" return="java.net.URI[]"
  974. abstract="false" native="false" synchronized="false"
  975. static="true" final="false" visibility="public"
  976. deprecated="not deprecated">
  977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  978. <exception name="IOException" type="java.io.IOException"/>
  979. <doc>
  980. <![CDATA[Get cache files set in the Configuration
  981. @param conf The configuration which contains the files
  982. @return A URI array of the files set in the Configuration
  983. @throws IOException]]>
  984. </doc>
  985. </method>
  986. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  987. abstract="false" native="false" synchronized="false"
  988. static="true" final="false" visibility="public"
  989. deprecated="not deprecated">
  990. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  991. <exception name="IOException" type="java.io.IOException"/>
  992. <doc>
  993. <![CDATA[Return the path array of the localized caches
  994. @param conf Configuration that contains the localized archives
  995. @return A path array of localized caches
  996. @throws IOException]]>
  997. </doc>
  998. </method>
  999. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  1000. abstract="false" native="false" synchronized="false"
  1001. static="true" final="false" visibility="public"
  1002. deprecated="not deprecated">
  1003. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1004. <exception name="IOException" type="java.io.IOException"/>
  1005. <doc>
  1006. <![CDATA[Return the path array of the localized files
  1007. @param conf Configuration that contains the localized files
  1008. @return A path array of localized files
  1009. @throws IOException]]>
  1010. </doc>
  1011. </method>
  1012. <method name="getArchiveTimestamps" return="java.lang.String[]"
  1013. abstract="false" native="false" synchronized="false"
  1014. static="true" final="false" visibility="public"
  1015. deprecated="not deprecated">
  1016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1017. <doc>
  1018. <![CDATA[Get the timestamps of the archives
  1019. @param conf The configuration which stored the timestamps
  1020. @return a string array of timestamps
  1021. @throws IOException]]>
  1022. </doc>
  1023. </method>
  1024. <method name="getFileTimestamps" return="java.lang.String[]"
  1025. abstract="false" native="false" synchronized="false"
  1026. static="true" final="false" visibility="public"
  1027. deprecated="not deprecated">
  1028. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1029. <doc>
  1030. <![CDATA[Get the timestamps of the files
  1031. @param conf The configuration which stored the timestamps
  1032. @return a string array of timestamps
  1033. @throws IOException]]>
  1034. </doc>
  1035. </method>
  1036. <method name="setArchiveTimestamps"
  1037. abstract="false" native="false" synchronized="false"
  1038. static="true" final="false" visibility="public"
  1039. deprecated="not deprecated">
  1040. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1041. <param name="timestamps" type="java.lang.String"/>
  1042. <doc>
  1043. <![CDATA[This is to check the timestamp of the archives to be localized
  1044. @param conf Configuration which stores the timestamp's
  1045. @param timestamps comma separated list of timestamps of archives.
  1046. The order should be the same as the order in which the archives are added.]]>
  1047. </doc>
  1048. </method>
  1049. <method name="setFileTimestamps"
  1050. abstract="false" native="false" synchronized="false"
  1051. static="true" final="false" visibility="public"
  1052. deprecated="not deprecated">
  1053. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1054. <param name="timestamps" type="java.lang.String"/>
  1055. <doc>
  1056. <![CDATA[This is to check the timestamp of the files to be localized
  1057. @param conf Configuration which stores the timestamp's
  1058. @param timestamps comma separated list of timestamps of files.
  1059. The order should be the same as the order in which the files are added.]]>
  1060. </doc>
  1061. </method>
  1062. <method name="setLocalArchives"
  1063. abstract="false" native="false" synchronized="false"
  1064. static="true" final="false" visibility="public"
  1065. deprecated="not deprecated">
  1066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1067. <param name="str" type="java.lang.String"/>
  1068. <doc>
  1069. <![CDATA[Set the conf to contain the location for localized archives
  1070. @param conf The conf to modify to contain the localized caches
  1071. @param str a comma separated list of local archives]]>
  1072. </doc>
  1073. </method>
  1074. <method name="setLocalFiles"
  1075. abstract="false" native="false" synchronized="false"
  1076. static="true" final="false" visibility="public"
  1077. deprecated="not deprecated">
  1078. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1079. <param name="str" type="java.lang.String"/>
  1080. <doc>
  1081. <![CDATA[Set the conf to contain the location for localized files
  1082. @param conf The conf to modify to contain the localized caches
  1083. @param str a comma separated list of local files]]>
  1084. </doc>
  1085. </method>
  1086. <method name="addCacheArchive"
  1087. abstract="false" native="false" synchronized="false"
  1088. static="true" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <param name="uri" type="java.net.URI"/>
  1091. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1092. <doc>
  1093. <![CDATA[Add a archives to be localized to the conf
  1094. @param uri The uri of the cache to be localized
  1095. @param conf Configuration to add the cache to]]>
  1096. </doc>
  1097. </method>
  1098. <method name="addCacheFile"
  1099. abstract="false" native="false" synchronized="false"
  1100. static="true" final="false" visibility="public"
  1101. deprecated="not deprecated">
  1102. <param name="uri" type="java.net.URI"/>
  1103. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1104. <doc>
  1105. <![CDATA[Add a file to be localized to the conf
  1106. @param uri The uri of the cache to be localized
  1107. @param conf Configuration to add the cache to]]>
  1108. </doc>
  1109. </method>
  1110. <method name="addFileToClassPath"
  1111. abstract="false" native="false" synchronized="false"
  1112. static="true" final="false" visibility="public"
  1113. deprecated="not deprecated">
  1114. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1115. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1116. <exception name="IOException" type="java.io.IOException"/>
  1117. <doc>
  1118. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  1119. to cache as well.
  1120. @param file Path of the file to be added
  1121. @param conf Configuration that contains the classpath setting]]>
  1122. </doc>
  1123. </method>
  1124. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  1125. abstract="false" native="false" synchronized="false"
  1126. static="true" final="false" visibility="public"
  1127. deprecated="not deprecated">
  1128. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1129. <doc>
  1130. <![CDATA[Get the file entries in classpath as an array of Path
  1131. @param conf Configuration that contains the classpath setting]]>
  1132. </doc>
  1133. </method>
  1134. <method name="addArchiveToClassPath"
  1135. abstract="false" native="false" synchronized="false"
  1136. static="true" final="false" visibility="public"
  1137. deprecated="not deprecated">
  1138. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  1139. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1140. <exception name="IOException" type="java.io.IOException"/>
  1141. <doc>
  1142. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  1143. archive to cache as well.
  1144. @param archive Path of the archive to be added
  1145. @param conf Configuration that contains the classpath setting]]>
  1146. </doc>
  1147. </method>
  1148. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  1149. abstract="false" native="false" synchronized="false"
  1150. static="true" final="false" visibility="public"
  1151. deprecated="not deprecated">
  1152. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1153. <doc>
  1154. <![CDATA[Get the archive entries in classpath as an array of Path
  1155. @param conf Configuration that contains the classpath setting]]>
  1156. </doc>
  1157. </method>
  1158. <method name="createSymlink"
  1159. abstract="false" native="false" synchronized="false"
  1160. static="true" final="false" visibility="public"
  1161. deprecated="not deprecated">
  1162. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1163. <doc>
  1164. <![CDATA[This method allows you to create symlinks in the current working directory
  1165. of the task to all the cache files/archives
  1166. @param conf the jobconf]]>
  1167. </doc>
  1168. </method>
  1169. <method name="getSymlink" return="boolean"
  1170. abstract="false" native="false" synchronized="false"
  1171. static="true" final="false" visibility="public"
  1172. deprecated="not deprecated">
  1173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1174. <doc>
  1175. <![CDATA[This method checks to see if symlinks are to be create for the
  1176. localized cache files in the current working directory
  1177. @param conf the jobconf
  1178. @return true if symlinks are to be created- else return false]]>
  1179. </doc>
  1180. </method>
  1181. <method name="checkURIs" return="boolean"
  1182. abstract="false" native="false" synchronized="false"
  1183. static="true" final="false" visibility="public"
  1184. deprecated="not deprecated">
  1185. <param name="uriFiles" type="java.net.URI[]"/>
  1186. <param name="uriArchives" type="java.net.URI[]"/>
  1187. <doc>
  1188. <![CDATA[This method checks if there is a conflict in the fragment names
  1189. of the uris. Also makes sure that each uri has a fragment. It
  1190. is only to be called if you want to create symlinks for
  1191. the various archives and files.
  1192. @param uriFiles The uri array of urifiles
  1193. @param uriArchives the uri array of uri archives]]>
  1194. </doc>
  1195. </method>
  1196. <method name="purgeCache"
  1197. abstract="false" native="false" synchronized="false"
  1198. static="true" final="false" visibility="public"
  1199. deprecated="not deprecated">
  1200. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1201. <exception name="IOException" type="java.io.IOException"/>
  1202. <doc>
  1203. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  1204. should only be used when the server is reinitializing, because the users
  1205. are going to lose their files.]]>
  1206. </doc>
  1207. </method>
  1208. <doc>
  1209. <![CDATA[Distribute application-specific large, read-only files efficiently.
  1210. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  1211. framework to cache files (text, archives, jars etc.) needed by applications.
  1212. </p>
  1213. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  1214. via the {@link org.apache.hadoop.mapred.JobConf}.
  1215. The <code>DistributedCache</code> assumes that the
  1216. files specified via hdfs:// urls are already present on the
  1217. {@link FileSystem} at the path specified by the url.</p>
  1218. <p>The framework will copy the necessary files on to the slave node before
  1219. any tasks for the job are executed on that node. Its efficiency stems from
  1220. the fact that the files are only copied once per job and the ability to
  1221. cache archives which are un-archived on the slaves.</p>
  1222. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  1223. data/text files and/or more complex types such as archives, jars etc.
  1224. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  1225. Jars may be optionally added to the classpath of the tasks, a rudimentary
  1226. software distribution mechanism. Files have execution permissions.
  1227. Optionally users can also direct it to symlink the distributed cache file(s)
  1228. into the working directory of the task.</p>
  1229. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  1230. files. Clearly the cache files should not be modified by the application
  1231. or externally while the job is executing.</p>
  1232. <p>Here is an illustrative example on how to use the
  1233. <code>DistributedCache</code>:</p>
  1234. <p><blockquote><pre>
  1235. // Setting up the cache for the application
  1236. 1. Copy the requisite files to the <code>FileSystem</code>:
  1237. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  1238. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  1239. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  1240. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  1241. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  1242. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  1243. 2. Setup the application's <code>JobConf</code>:
  1244. JobConf job = new JobConf();
  1245. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  1246. job);
  1247. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  1248. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  1249. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  1250. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  1251. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  1252. 3. Use the cached files in the {@link org.apache.hadoop.mapred.Mapper}
  1253. or {@link org.apache.hadoop.mapred.Reducer}:
  1254. public static class MapClass extends MapReduceBase
  1255. implements Mapper&lt;K, V, K, V&gt; {
  1256. private Path[] localArchives;
  1257. private Path[] localFiles;
  1258. public void configure(JobConf job) {
  1259. // Get the cached archives/files
  1260. localArchives = DistributedCache.getLocalCacheArchives(job);
  1261. localFiles = DistributedCache.getLocalCacheFiles(job);
  1262. }
  1263. public void map(K key, V value,
  1264. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  1265. throws IOException {
  1266. // Use data from the cached archives/files here
  1267. // ...
  1268. // ...
  1269. output.collect(k, v);
  1270. }
  1271. }
  1272. </pre></blockquote></p>
  1273. @see org.apache.hadoop.mapred.JobConf
  1274. @see org.apache.hadoop.mapred.JobClient]]>
  1275. </doc>
  1276. </class>
  1277. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  1278. </package>
  1279. <package name="org.apache.hadoop.fs">
  1280. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  1281. <class name="BlockLocation" extends="java.lang.Object"
  1282. abstract="false"
  1283. static="false" final="false" visibility="public"
  1284. deprecated="not deprecated">
  1285. <implements name="org.apache.hadoop.io.Writable"/>
  1286. <constructor name="BlockLocation"
  1287. static="false" final="false" visibility="public"
  1288. deprecated="not deprecated">
  1289. <doc>
  1290. <![CDATA[Default Constructor]]>
  1291. </doc>
  1292. </constructor>
  1293. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  1294. static="false" final="false" visibility="public"
  1295. deprecated="not deprecated">
  1296. <doc>
  1297. <![CDATA[Constructor with host, name, offset and length]]>
  1298. </doc>
  1299. </constructor>
  1300. <method name="getHosts" return="java.lang.String[]"
  1301. abstract="false" native="false" synchronized="false"
  1302. static="false" final="false" visibility="public"
  1303. deprecated="not deprecated">
  1304. <exception name="IOException" type="java.io.IOException"/>
  1305. <doc>
  1306. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  1307. </doc>
  1308. </method>
  1309. <method name="getNames" return="java.lang.String[]"
  1310. abstract="false" native="false" synchronized="false"
  1311. static="false" final="false" visibility="public"
  1312. deprecated="not deprecated">
  1313. <exception name="IOException" type="java.io.IOException"/>
  1314. <doc>
  1315. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  1316. </doc>
  1317. </method>
  1318. <method name="getOffset" return="long"
  1319. abstract="false" native="false" synchronized="false"
  1320. static="false" final="false" visibility="public"
  1321. deprecated="not deprecated">
  1322. <doc>
  1323. <![CDATA[Get the start offset of file associated with this block]]>
  1324. </doc>
  1325. </method>
  1326. <method name="getLength" return="long"
  1327. abstract="false" native="false" synchronized="false"
  1328. static="false" final="false" visibility="public"
  1329. deprecated="not deprecated">
  1330. <doc>
  1331. <![CDATA[Get the length of the block]]>
  1332. </doc>
  1333. </method>
  1334. <method name="setOffset"
  1335. abstract="false" native="false" synchronized="false"
  1336. static="false" final="false" visibility="public"
  1337. deprecated="not deprecated">
  1338. <param name="offset" type="long"/>
  1339. <doc>
  1340. <![CDATA[Set the start offset of file associated with this block]]>
  1341. </doc>
  1342. </method>
  1343. <method name="setLength"
  1344. abstract="false" native="false" synchronized="false"
  1345. static="false" final="false" visibility="public"
  1346. deprecated="not deprecated">
  1347. <param name="length" type="long"/>
  1348. <doc>
  1349. <![CDATA[Set the length of block]]>
  1350. </doc>
  1351. </method>
  1352. <method name="setHosts"
  1353. abstract="false" native="false" synchronized="false"
  1354. static="false" final="false" visibility="public"
  1355. deprecated="not deprecated">
  1356. <param name="hosts" type="java.lang.String[]"/>
  1357. <exception name="IOException" type="java.io.IOException"/>
  1358. <doc>
  1359. <![CDATA[Set the hosts hosting this block]]>
  1360. </doc>
  1361. </method>
  1362. <method name="setNames"
  1363. abstract="false" native="false" synchronized="false"
  1364. static="false" final="false" visibility="public"
  1365. deprecated="not deprecated">
  1366. <param name="names" type="java.lang.String[]"/>
  1367. <exception name="IOException" type="java.io.IOException"/>
  1368. <doc>
  1369. <![CDATA[Set the names (host:port) hosting this block]]>
  1370. </doc>
  1371. </method>
  1372. <method name="write"
  1373. abstract="false" native="false" synchronized="false"
  1374. static="false" final="false" visibility="public"
  1375. deprecated="not deprecated">
  1376. <param name="out" type="java.io.DataOutput"/>
  1377. <exception name="IOException" type="java.io.IOException"/>
  1378. <doc>
  1379. <![CDATA[Implement write of Writable]]>
  1380. </doc>
  1381. </method>
  1382. <method name="readFields"
  1383. abstract="false" native="false" synchronized="false"
  1384. static="false" final="false" visibility="public"
  1385. deprecated="not deprecated">
  1386. <param name="in" type="java.io.DataInput"/>
  1387. <exception name="IOException" type="java.io.IOException"/>
  1388. <doc>
  1389. <![CDATA[Implement readFields of Writable]]>
  1390. </doc>
  1391. </method>
  1392. <method name="toString" return="java.lang.String"
  1393. abstract="false" native="false" synchronized="false"
  1394. static="false" final="false" visibility="public"
  1395. deprecated="not deprecated">
  1396. </method>
  1397. </class>
  1398. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  1399. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  1400. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  1401. abstract="false"
  1402. static="false" final="false" visibility="public"
  1403. deprecated="not deprecated">
  1404. <implements name="org.apache.hadoop.fs.Seekable"/>
  1405. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  1406. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  1407. static="false" final="false" visibility="public"
  1408. deprecated="not deprecated">
  1409. <doc>
  1410. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  1411. with the specified buffer size,
  1412. and saves its argument, the input stream
  1413. <code>in</code>, for later use. An internal
  1414. buffer array of length <code>size</code>
  1415. is created and stored in <code>buf</code>.
  1416. @param in the underlying input stream.
  1417. @param size the buffer size.
  1418. @exception IllegalArgumentException if size <= 0.]]>
  1419. </doc>
  1420. </constructor>
  1421. <method name="getPos" return="long"
  1422. abstract="false" native="false" synchronized="false"
  1423. static="false" final="false" visibility="public"
  1424. deprecated="not deprecated">
  1425. <exception name="IOException" type="java.io.IOException"/>
  1426. </method>
  1427. <method name="skip" return="long"
  1428. abstract="false" native="false" synchronized="false"
  1429. static="false" final="false" visibility="public"
  1430. deprecated="not deprecated">
  1431. <param name="n" type="long"/>
  1432. <exception name="IOException" type="java.io.IOException"/>
  1433. </method>
  1434. <method name="seek"
  1435. abstract="false" native="false" synchronized="false"
  1436. static="false" final="false" visibility="public"
  1437. deprecated="not deprecated">
  1438. <param name="pos" type="long"/>
  1439. <exception name="IOException" type="java.io.IOException"/>
  1440. </method>
  1441. <method name="seekToNewSource" return="boolean"
  1442. abstract="false" native="false" synchronized="false"
  1443. static="false" final="false" visibility="public"
  1444. deprecated="not deprecated">
  1445. <param name="targetPos" type="long"/>
  1446. <exception name="IOException" type="java.io.IOException"/>
  1447. </method>
  1448. <method name="read" return="int"
  1449. abstract="false" native="false" synchronized="false"
  1450. static="false" final="false" visibility="public"
  1451. deprecated="not deprecated">
  1452. <param name="position" type="long"/>
  1453. <param name="buffer" type="byte[]"/>
  1454. <param name="offset" type="int"/>
  1455. <param name="length" type="int"/>
  1456. <exception name="IOException" type="java.io.IOException"/>
  1457. </method>
  1458. <method name="readFully"
  1459. abstract="false" native="false" synchronized="false"
  1460. static="false" final="false" visibility="public"
  1461. deprecated="not deprecated">
  1462. <param name="position" type="long"/>
  1463. <param name="buffer" type="byte[]"/>
  1464. <param name="offset" type="int"/>
  1465. <param name="length" type="int"/>
  1466. <exception name="IOException" type="java.io.IOException"/>
  1467. </method>
  1468. <method name="readFully"
  1469. abstract="false" native="false" synchronized="false"
  1470. static="false" final="false" visibility="public"
  1471. deprecated="not deprecated">
  1472. <param name="position" type="long"/>
  1473. <param name="buffer" type="byte[]"/>
  1474. <exception name="IOException" type="java.io.IOException"/>
  1475. </method>
  1476. <doc>
  1477. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  1478. </doc>
  1479. </class>
  1480. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  1481. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  1482. <class name="ChecksumException" extends="java.io.IOException"
  1483. abstract="false"
  1484. static="false" final="false" visibility="public"
  1485. deprecated="not deprecated">
  1486. <constructor name="ChecksumException" type="java.lang.String, long"
  1487. static="false" final="false" visibility="public"
  1488. deprecated="not deprecated">
  1489. </constructor>
  1490. <method name="getPos" return="long"
  1491. abstract="false" native="false" synchronized="false"
  1492. static="false" final="false" visibility="public"
  1493. deprecated="not deprecated">
  1494. </method>
  1495. <doc>
  1496. <![CDATA[Thrown for checksum errors.]]>
  1497. </doc>
  1498. </class>
  1499. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  1500. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  1501. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  1502. abstract="true"
  1503. static="false" final="false" visibility="public"
  1504. deprecated="not deprecated">
  1505. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  1506. static="false" final="false" visibility="public"
  1507. deprecated="not deprecated">
  1508. </constructor>
  1509. <method name="getApproxChkSumLength" return="double"
  1510. abstract="false" native="false" synchronized="false"
  1511. static="true" final="false" visibility="public"
  1512. deprecated="not deprecated">
  1513. <param name="size" type="long"/>
  1514. </method>
  1515. <method name="setConf"
  1516. abstract="false" native="false" synchronized="false"
  1517. static="false" final="false" visibility="public"
  1518. deprecated="not deprecated">
  1519. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1520. </method>
  1521. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  1522. abstract="false" native="false" synchronized="false"
  1523. static="false" final="false" visibility="public"
  1524. deprecated="not deprecated">
  1525. <doc>
  1526. <![CDATA[get the raw file system]]>
  1527. </doc>
  1528. </method>
  1529. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  1530. abstract="false" native="false" synchronized="false"
  1531. static="false" final="false" visibility="public"
  1532. deprecated="not deprecated">
  1533. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1534. <doc>
  1535. <![CDATA[Return the name of the checksum file associated with a file.]]>
  1536. </doc>
  1537. </method>
  1538. <method name="isChecksumFile" return="boolean"
  1539. abstract="false" native="false" synchronized="false"
  1540. static="true" final="false" visibility="public"
  1541. deprecated="not deprecated">
  1542. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1543. <doc>
  1544. <![CDATA[Return true iff file is a checksum file name.]]>
  1545. </doc>
  1546. </method>
  1547. <method name="getChecksumFileLength" return="long"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <param name="file" type="org.apache.hadoop.fs.Path"/>
  1552. <param name="fileSize" type="long"/>
  1553. <doc>
  1554. <![CDATA[Return the length of the checksum file given the size of the
  1555. actual file.]]>
  1556. </doc>
  1557. </method>
  1558. <method name="getBytesPerSum" return="int"
  1559. abstract="false" native="false" synchronized="false"
  1560. static="false" final="false" visibility="public"
  1561. deprecated="not deprecated">
  1562. <doc>
  1563. <![CDATA[Return the bytes Per Checksum]]>
  1564. </doc>
  1565. </method>
  1566. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1567. abstract="false" native="false" synchronized="false"
  1568. static="false" final="false" visibility="public"
  1569. deprecated="not deprecated">
  1570. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1571. <param name="bufferSize" type="int"/>
  1572. <exception name="IOException" type="java.io.IOException"/>
  1573. <doc>
  1574. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  1575. @param f the file name to open
  1576. @param bufferSize the size of the buffer to be used.]]>
  1577. </doc>
  1578. </method>
  1579. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1580. abstract="false" native="false" synchronized="false"
  1581. static="false" final="false" visibility="public"
  1582. deprecated="not deprecated">
  1583. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1584. <param name="bufferSize" type="int"/>
  1585. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1586. <exception name="IOException" type="java.io.IOException"/>
  1587. <doc>
  1588. <![CDATA[{@inheritDoc}]]>
  1589. </doc>
  1590. </method>
  1591. <method name="getChecksumLength" return="long"
  1592. abstract="false" native="false" synchronized="false"
  1593. static="true" final="false" visibility="public"
  1594. deprecated="not deprecated">
  1595. <param name="size" type="long"/>
  1596. <param name="bytesPerSum" type="int"/>
  1597. <doc>
  1598. <![CDATA[Calculated the length of the checksum file in bytes.
  1599. @param size the length of the data file in bytes
  1600. @param bytesPerSum the number of bytes in a checksum block
  1601. @return the number of bytes in the checksum file]]>
  1602. </doc>
  1603. </method>
  1604. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1605. abstract="false" native="false" synchronized="false"
  1606. static="false" final="false" visibility="public"
  1607. deprecated="not deprecated">
  1608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1609. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1610. <param name="overwrite" type="boolean"/>
  1611. <param name="bufferSize" type="int"/>
  1612. <param name="replication" type="short"/>
  1613. <param name="blockSize" type="long"/>
  1614. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1615. <exception name="IOException" type="java.io.IOException"/>
  1616. <doc>
  1617. <![CDATA[{@inheritDoc}]]>
  1618. </doc>
  1619. </method>
  1620. <method name="setReplication" return="boolean"
  1621. abstract="false" native="false" synchronized="false"
  1622. static="false" final="false" visibility="public"
  1623. deprecated="not deprecated">
  1624. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1625. <param name="replication" type="short"/>
  1626. <exception name="IOException" type="java.io.IOException"/>
  1627. <doc>
  1628. <![CDATA[Set replication for an existing file.
  1629. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  1630. @param src file name
  1631. @param replication new replication
  1632. @throws IOException
  1633. @return true if successful;
  1634. false if file does not exist or is a directory]]>
  1635. </doc>
  1636. </method>
  1637. <method name="rename" return="boolean"
  1638. abstract="false" native="false" synchronized="false"
  1639. static="false" final="false" visibility="public"
  1640. deprecated="not deprecated">
  1641. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1642. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1643. <exception name="IOException" type="java.io.IOException"/>
  1644. <doc>
  1645. <![CDATA[Rename files/dirs]]>
  1646. </doc>
  1647. </method>
  1648. <method name="delete" return="boolean"
  1649. abstract="false" native="false" synchronized="false"
  1650. static="false" final="false" visibility="public"
  1651. deprecated="not deprecated">
  1652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1653. <param name="recursive" type="boolean"/>
  1654. <exception name="IOException" type="java.io.IOException"/>
  1655. <doc>
  1656. <![CDATA[Implement the delete(Path, boolean) in checksum
  1657. file system.]]>
  1658. </doc>
  1659. </method>
  1660. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1661. abstract="false" native="false" synchronized="false"
  1662. static="false" final="false" visibility="public"
  1663. deprecated="not deprecated">
  1664. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1665. <exception name="IOException" type="java.io.IOException"/>
  1666. <doc>
  1667. <![CDATA[List the statuses of the files/directories in the given path if the path is
  1668. a directory.
  1669. @param f
  1670. given path
  1671. @return the statuses of the files/directories in the given patch
  1672. @throws IOException]]>
  1673. </doc>
  1674. </method>
  1675. <method name="mkdirs" return="boolean"
  1676. abstract="false" native="false" synchronized="false"
  1677. static="false" final="false" visibility="public"
  1678. deprecated="not deprecated">
  1679. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1680. <exception name="IOException" type="java.io.IOException"/>
  1681. </method>
  1682. <method name="copyFromLocalFile"
  1683. abstract="false" native="false" synchronized="false"
  1684. static="false" final="false" visibility="public"
  1685. deprecated="not deprecated">
  1686. <param name="delSrc" type="boolean"/>
  1687. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1688. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1689. <exception name="IOException" type="java.io.IOException"/>
  1690. </method>
  1691. <method name="copyToLocalFile"
  1692. abstract="false" native="false" synchronized="false"
  1693. static="false" final="false" visibility="public"
  1694. deprecated="not deprecated">
  1695. <param name="delSrc" type="boolean"/>
  1696. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1697. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1698. <exception name="IOException" type="java.io.IOException"/>
  1699. <doc>
  1700. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1701. Copy it from FS control to the local dst name.]]>
  1702. </doc>
  1703. </method>
  1704. <method name="copyToLocalFile"
  1705. abstract="false" native="false" synchronized="false"
  1706. static="false" final="false" visibility="public"
  1707. deprecated="not deprecated">
  1708. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1709. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1710. <param name="copyCrc" type="boolean"/>
  1711. <exception name="IOException" type="java.io.IOException"/>
  1712. <doc>
  1713. <![CDATA[The src file is under FS, and the dst is on the local disk.
  1714. Copy it from FS control to the local dst name.
  1715. If src and dst are directories, the copyCrc parameter
  1716. determines whether to copy CRC files.]]>
  1717. </doc>
  1718. </method>
  1719. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  1720. abstract="false" native="false" synchronized="false"
  1721. static="false" final="false" visibility="public"
  1722. deprecated="not deprecated">
  1723. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1724. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1725. <exception name="IOException" type="java.io.IOException"/>
  1726. </method>
  1727. <method name="completeLocalOutput"
  1728. abstract="false" native="false" synchronized="false"
  1729. static="false" final="false" visibility="public"
  1730. deprecated="not deprecated">
  1731. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  1732. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  1733. <exception name="IOException" type="java.io.IOException"/>
  1734. </method>
  1735. <method name="reportChecksumFailure" return="boolean"
  1736. abstract="false" native="false" synchronized="false"
  1737. static="false" final="false" visibility="public"
  1738. deprecated="not deprecated">
  1739. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1740. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1741. <param name="inPos" type="long"/>
  1742. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1743. <param name="sumsPos" type="long"/>
  1744. <doc>
  1745. <![CDATA[Report a checksum error to the file system.
  1746. @param f the file name containing the error
  1747. @param in the stream open on the file
  1748. @param inPos the position of the beginning of the bad data in the file
  1749. @param sums the stream open on the checksum file
  1750. @param sumsPos the position of the beginning of the bad data in the checksum file
  1751. @return if retry is neccessary]]>
  1752. </doc>
  1753. </method>
  1754. <doc>
  1755. <![CDATA[Abstract Checksumed FileSystem.
  1756. It provide a basice implementation of a Checksumed FileSystem,
  1757. which creates a checksum file for each raw file.
  1758. It generates & verifies checksums at the client side.]]>
  1759. </doc>
  1760. </class>
  1761. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  1762. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  1763. <class name="ContentSummary" extends="java.lang.Object"
  1764. abstract="false"
  1765. static="false" final="false" visibility="public"
  1766. deprecated="not deprecated">
  1767. <implements name="org.apache.hadoop.io.Writable"/>
  1768. <constructor name="ContentSummary"
  1769. static="false" final="false" visibility="public"
  1770. deprecated="not deprecated">
  1771. <doc>
  1772. <![CDATA[Constructor]]>
  1773. </doc>
  1774. </constructor>
  1775. <constructor name="ContentSummary" type="long, long, long"
  1776. static="false" final="false" visibility="public"
  1777. deprecated="not deprecated">
  1778. <doc>
  1779. <![CDATA[Constructor]]>
  1780. </doc>
  1781. </constructor>
  1782. <constructor name="ContentSummary" type="long, long, long, long, long, long"
  1783. static="false" final="false" visibility="public"
  1784. deprecated="not deprecated">
  1785. <doc>
  1786. <![CDATA[Constructor]]>
  1787. </doc>
  1788. </constructor>
  1789. <method name="getLength" return="long"
  1790. abstract="false" native="false" synchronized="false"
  1791. static="false" final="false" visibility="public"
  1792. deprecated="not deprecated">
  1793. <doc>
  1794. <![CDATA[@return the length]]>
  1795. </doc>
  1796. </method>
  1797. <method name="getDirectoryCount" return="long"
  1798. abstract="false" native="false" synchronized="false"
  1799. static="false" final="false" visibility="public"
  1800. deprecated="not deprecated">
  1801. <doc>
  1802. <![CDATA[@return the directory count]]>
  1803. </doc>
  1804. </method>
  1805. <method name="getFileCount" return="long"
  1806. abstract="false" native="false" synchronized="false"
  1807. static="false" final="false" visibility="public"
  1808. deprecated="not deprecated">
  1809. <doc>
  1810. <![CDATA[@return the file count]]>
  1811. </doc>
  1812. </method>
  1813. <method name="getQuota" return="long"
  1814. abstract="false" native="false" synchronized="false"
  1815. static="false" final="false" visibility="public"
  1816. deprecated="not deprecated">
  1817. <doc>
  1818. <![CDATA[Return the directory quota]]>
  1819. </doc>
  1820. </method>
  1821. <method name="getSpaceConsumed" return="long"
  1822. abstract="false" native="false" synchronized="false"
  1823. static="false" final="false" visibility="public"
  1824. deprecated="not deprecated">
  1825. <doc>
  1826. <![CDATA[Retuns (disk) space consumed]]>
  1827. </doc>
  1828. </method>
  1829. <method name="getSpaceQuota" return="long"
  1830. abstract="false" native="false" synchronized="false"
  1831. static="false" final="false" visibility="public"
  1832. deprecated="not deprecated">
  1833. <doc>
  1834. <![CDATA[Returns (disk) space quota]]>
  1835. </doc>
  1836. </method>
  1837. <method name="write"
  1838. abstract="false" native="false" synchronized="false"
  1839. static="false" final="false" visibility="public"
  1840. deprecated="not deprecated">
  1841. <param name="out" type="java.io.DataOutput"/>
  1842. <exception name="IOException" type="java.io.IOException"/>
  1843. <doc>
  1844. <![CDATA[{@inheritDoc}]]>
  1845. </doc>
  1846. </method>
  1847. <method name="readFields"
  1848. abstract="false" native="false" synchronized="false"
  1849. static="false" final="false" visibility="public"
  1850. deprecated="not deprecated">
  1851. <param name="in" type="java.io.DataInput"/>
  1852. <exception name="IOException" type="java.io.IOException"/>
  1853. <doc>
  1854. <![CDATA[{@inheritDoc}]]>
  1855. </doc>
  1856. </method>
  1857. <method name="getHeader" return="java.lang.String"
  1858. abstract="false" native="false" synchronized="false"
  1859. static="true" final="false" visibility="public"
  1860. deprecated="not deprecated">
  1861. <param name="qOption" type="boolean"/>
  1862. <doc>
  1863. <![CDATA[Return the header of the output.
  1864. if qOption is false, output directory count, file count, and content size;
  1865. if qOption is true, output quota and remaining quota as well.
  1866. @param qOption a flag indicating if quota needs to be printed or not
  1867. @return the header of the output]]>
  1868. </doc>
  1869. </method>
  1870. <method name="toString" return="java.lang.String"
  1871. abstract="false" native="false" synchronized="false"
  1872. static="false" final="false" visibility="public"
  1873. deprecated="not deprecated">
  1874. <doc>
  1875. <![CDATA[{@inheritDoc}]]>
  1876. </doc>
  1877. </method>
  1878. <method name="toString" return="java.lang.String"
  1879. abstract="false" native="false" synchronized="false"
  1880. static="false" final="false" visibility="public"
  1881. deprecated="not deprecated">
  1882. <param name="qOption" type="boolean"/>
  1883. <doc>
  1884. <![CDATA[Return the string representation of the object in the output format.
  1885. if qOption is false, output directory count, file count, and content size;
  1886. if qOption is true, output quota and remaining quota as well.
  1887. @param qOption a flag indicating if quota needs to be printed or not
  1888. @return the string representation of the object]]>
  1889. </doc>
  1890. </method>
  1891. <doc>
  1892. <![CDATA[Store the summary of a content (a directory or a file).]]>
  1893. </doc>
  1894. </class>
  1895. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  1896. <!-- start class org.apache.hadoop.fs.DF -->
  1897. <class name="DF" extends="org.apache.hadoop.util.Shell"
  1898. abstract="false"
  1899. static="false" final="false" visibility="public"
  1900. deprecated="not deprecated">
  1901. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  1902. static="false" final="false" visibility="public"
  1903. deprecated="not deprecated">
  1904. <exception name="IOException" type="java.io.IOException"/>
  1905. </constructor>
  1906. <constructor name="DF" type="java.io.File, long"
  1907. static="false" final="false" visibility="public"
  1908. deprecated="not deprecated">
  1909. <exception name="IOException" type="java.io.IOException"/>
  1910. </constructor>
  1911. <method name="getDirPath" return="java.lang.String"
  1912. abstract="false" native="false" synchronized="false"
  1913. static="false" final="false" visibility="public"
  1914. deprecated="not deprecated">
  1915. </method>
  1916. <method name="getFilesystem" return="java.lang.String"
  1917. abstract="false" native="false" synchronized="false"
  1918. static="false" final="false" visibility="public"
  1919. deprecated="not deprecated">
  1920. <exception name="IOException" type="java.io.IOException"/>
  1921. </method>
  1922. <method name="getCapacity" return="long"
  1923. abstract="false" native="false" synchronized="false"
  1924. static="false" final="false" visibility="public"
  1925. deprecated="not deprecated">
  1926. <exception name="IOException" type="java.io.IOException"/>
  1927. </method>
  1928. <method name="getUsed" return="long"
  1929. abstract="false" native="false" synchronized="false"
  1930. static="false" final="false" visibility="public"
  1931. deprecated="not deprecated">
  1932. <exception name="IOException" type="java.io.IOException"/>
  1933. </method>
  1934. <method name="getAvailable" return="long"
  1935. abstract="false" native="false" synchronized="false"
  1936. static="false" final="false" visibility="public"
  1937. deprecated="not deprecated">
  1938. <exception name="IOException" type="java.io.IOException"/>
  1939. </method>
  1940. <method name="getPercentUsed" return="int"
  1941. abstract="false" native="false" synchronized="false"
  1942. static="false" final="false" visibility="public"
  1943. deprecated="not deprecated">
  1944. <exception name="IOException" type="java.io.IOException"/>
  1945. </method>
  1946. <method name="getMount" return="java.lang.String"
  1947. abstract="false" native="false" synchronized="false"
  1948. static="false" final="false" visibility="public"
  1949. deprecated="not deprecated">
  1950. <exception name="IOException" type="java.io.IOException"/>
  1951. </method>
  1952. <method name="toString" return="java.lang.String"
  1953. abstract="false" native="false" synchronized="false"
  1954. static="false" final="false" visibility="public"
  1955. deprecated="not deprecated">
  1956. </method>
  1957. <method name="getExecString" return="java.lang.String[]"
  1958. abstract="false" native="false" synchronized="false"
  1959. static="false" final="false" visibility="protected"
  1960. deprecated="not deprecated">
  1961. </method>
  1962. <method name="parseExecResult"
  1963. abstract="false" native="false" synchronized="false"
  1964. static="false" final="false" visibility="protected"
  1965. deprecated="not deprecated">
  1966. <param name="lines" type="java.io.BufferedReader"/>
  1967. <exception name="IOException" type="java.io.IOException"/>
  1968. </method>
  1969. <method name="main"
  1970. abstract="false" native="false" synchronized="false"
  1971. static="true" final="false" visibility="public"
  1972. deprecated="not deprecated">
  1973. <param name="args" type="java.lang.String[]"/>
  1974. <exception name="Exception" type="java.lang.Exception"/>
  1975. </method>
  1976. <field name="DF_INTERVAL_DEFAULT" type="long"
  1977. transient="false" volatile="false"
  1978. static="true" final="true" visibility="public"
  1979. deprecated="not deprecated">
  1980. </field>
  1981. <doc>
  1982. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  1983. Tested on Linux, FreeBSD, Cygwin.]]>
  1984. </doc>
  1985. </class>
  1986. <!-- end class org.apache.hadoop.fs.DF -->
  1987. <!-- start class org.apache.hadoop.fs.DU -->
  1988. <class name="DU" extends="org.apache.hadoop.util.Shell"
  1989. abstract="false"
  1990. static="false" final="false" visibility="public"
  1991. deprecated="not deprecated">
  1992. <constructor name="DU" type="java.io.File, long"
  1993. static="false" final="false" visibility="public"
  1994. deprecated="not deprecated">
  1995. <exception name="IOException" type="java.io.IOException"/>
  1996. <doc>
  1997. <![CDATA[Keeps track of disk usage.
  1998. @param path the path to check disk usage in
  1999. @param interval refresh the disk usage at this interval
  2000. @throws IOException if we fail to refresh the disk usage]]>
  2001. </doc>
  2002. </constructor>
  2003. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  2004. static="false" final="false" visibility="public"
  2005. deprecated="not deprecated">
  2006. <exception name="IOException" type="java.io.IOException"/>
  2007. <doc>
  2008. <![CDATA[Keeps track of disk usage.
  2009. @param path the path to check disk usage in
  2010. @param conf configuration object
  2011. @throws IOException if we fail to refresh the disk usage]]>
  2012. </doc>
  2013. </constructor>
  2014. <method name="decDfsUsed"
  2015. abstract="false" native="false" synchronized="false"
  2016. static="false" final="false" visibility="public"
  2017. deprecated="not deprecated">
  2018. <param name="value" type="long"/>
  2019. <doc>
  2020. <![CDATA[Decrease how much disk space we use.
  2021. @param value decrease by this value]]>
  2022. </doc>
  2023. </method>
  2024. <method name="incDfsUsed"
  2025. abstract="false" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. <param name="value" type="long"/>
  2029. <doc>
  2030. <![CDATA[Increase how much disk space we use.
  2031. @param value increase by this value]]>
  2032. </doc>
  2033. </method>
  2034. <method name="getUsed" return="long"
  2035. abstract="false" native="false" synchronized="false"
  2036. static="false" final="false" visibility="public"
  2037. deprecated="not deprecated">
  2038. <exception name="IOException" type="java.io.IOException"/>
  2039. <doc>
  2040. <![CDATA[@return disk space used
  2041. @throws IOException if the shell command fails]]>
  2042. </doc>
  2043. </method>
  2044. <method name="getDirPath" return="java.lang.String"
  2045. abstract="false" native="false" synchronized="false"
  2046. static="false" final="false" visibility="public"
  2047. deprecated="not deprecated">
  2048. <doc>
  2049. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  2050. </doc>
  2051. </method>
  2052. <method name="start"
  2053. abstract="false" native="false" synchronized="false"
  2054. static="false" final="false" visibility="public"
  2055. deprecated="not deprecated">
  2056. <doc>
  2057. <![CDATA[Start the disk usage checking thread.]]>
  2058. </doc>
  2059. </method>
  2060. <method name="shutdown"
  2061. abstract="false" native="false" synchronized="false"
  2062. static="false" final="false" visibility="public"
  2063. deprecated="not deprecated">
  2064. <doc>
  2065. <![CDATA[Shut down the refreshing thread.]]>
  2066. </doc>
  2067. </method>
  2068. <method name="toString" return="java.lang.String"
  2069. abstract="false" native="false" synchronized="false"
  2070. static="false" final="false" visibility="public"
  2071. deprecated="not deprecated">
  2072. </method>
  2073. <method name="getExecString" return="java.lang.String[]"
  2074. abstract="false" native="false" synchronized="false"
  2075. static="false" final="false" visibility="protected"
  2076. deprecated="not deprecated">
  2077. </method>
  2078. <method name="parseExecResult"
  2079. abstract="false" native="false" synchronized="false"
  2080. static="false" final="false" visibility="protected"
  2081. deprecated="not deprecated">
  2082. <param name="lines" type="java.io.BufferedReader"/>
  2083. <exception name="IOException" type="java.io.IOException"/>
  2084. </method>
  2085. <method name="main"
  2086. abstract="false" native="false" synchronized="false"
  2087. static="true" final="false" visibility="public"
  2088. deprecated="not deprecated">
  2089. <param name="args" type="java.lang.String[]"/>
  2090. <exception name="Exception" type="java.lang.Exception"/>
  2091. </method>
  2092. <doc>
  2093. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  2094. </doc>
  2095. </class>
  2096. <!-- end class org.apache.hadoop.fs.DU -->
  2097. <!-- start class org.apache.hadoop.fs.FileChecksum -->
  2098. <class name="FileChecksum" extends="java.lang.Object"
  2099. abstract="true"
  2100. static="false" final="false" visibility="public"
  2101. deprecated="not deprecated">
  2102. <implements name="org.apache.hadoop.io.Writable"/>
  2103. <constructor name="FileChecksum"
  2104. static="false" final="false" visibility="public"
  2105. deprecated="not deprecated">
  2106. </constructor>
  2107. <method name="getAlgorithmName" return="java.lang.String"
  2108. abstract="true" native="false" synchronized="false"
  2109. static="false" final="false" visibility="public"
  2110. deprecated="not deprecated">
  2111. <doc>
  2112. <![CDATA[The checksum algorithm name]]>
  2113. </doc>
  2114. </method>
  2115. <method name="getLength" return="int"
  2116. abstract="true" native="false" synchronized="false"
  2117. static="false" final="false" visibility="public"
  2118. deprecated="not deprecated">
  2119. <doc>
  2120. <![CDATA[The length of the checksum in bytes]]>
  2121. </doc>
  2122. </method>
  2123. <method name="getBytes" return="byte[]"
  2124. abstract="true" native="false" synchronized="false"
  2125. static="false" final="false" visibility="public"
  2126. deprecated="not deprecated">
  2127. <doc>
  2128. <![CDATA[The value of the checksum in bytes]]>
  2129. </doc>
  2130. </method>
  2131. <method name="equals" return="boolean"
  2132. abstract="false" native="false" synchronized="false"
  2133. static="false" final="false" visibility="public"
  2134. deprecated="not deprecated">
  2135. <param name="other" type="java.lang.Object"/>
  2136. <doc>
  2137. <![CDATA[Return true if both the algorithms and the values are the same.]]>
  2138. </doc>
  2139. </method>
  2140. <method name="hashCode" return="int"
  2141. abstract="false" native="false" synchronized="false"
  2142. static="false" final="false" visibility="public"
  2143. deprecated="not deprecated">
  2144. <doc>
  2145. <![CDATA[{@inheritDoc}]]>
  2146. </doc>
  2147. </method>
  2148. <doc>
  2149. <![CDATA[An abstract class representing file checksums for files.]]>
  2150. </doc>
  2151. </class>
  2152. <!-- end class org.apache.hadoop.fs.FileChecksum -->
  2153. <!-- start class org.apache.hadoop.fs.FileStatus -->
  2154. <class name="FileStatus" extends="java.lang.Object"
  2155. abstract="false"
  2156. static="false" final="false" visibility="public"
  2157. deprecated="not deprecated">
  2158. <implements name="org.apache.hadoop.io.Writable"/>
  2159. <implements name="java.lang.Comparable"/>
  2160. <constructor name="FileStatus"
  2161. static="false" final="false" visibility="public"
  2162. deprecated="not deprecated">
  2163. </constructor>
  2164. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  2165. static="false" final="false" visibility="public"
  2166. deprecated="not deprecated">
  2167. </constructor>
  2168. <constructor name="FileStatus" type="long, boolean, int, long, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path"
  2169. static="false" final="false" visibility="public"
  2170. deprecated="not deprecated">
  2171. </constructor>
  2172. <method name="getLen" return="long"
  2173. abstract="false" native="false" synchronized="false"
  2174. static="false" final="false" visibility="public"
  2175. deprecated="not deprecated">
  2176. </method>
  2177. <method name="isDir" return="boolean"
  2178. abstract="false" native="false" synchronized="false"
  2179. static="false" final="false" visibility="public"
  2180. deprecated="not deprecated">
  2181. <doc>
  2182. <![CDATA[Is this a directory?
  2183. @return true if this is a directory]]>
  2184. </doc>
  2185. </method>
  2186. <method name="getBlockSize" return="long"
  2187. abstract="false" native="false" synchronized="false"
  2188. static="false" final="false" visibility="public"
  2189. deprecated="not deprecated">
  2190. <doc>
  2191. <![CDATA[Get the block size of the file.
  2192. @return the number of bytes]]>
  2193. </doc>
  2194. </method>
  2195. <method name="getReplication" return="short"
  2196. abstract="false" native="false" synchronized="false"
  2197. static="false" final="false" visibility="public"
  2198. deprecated="not deprecated">
  2199. <doc>
  2200. <![CDATA[Get the replication factor of a file.
  2201. @return the replication factor of a file.]]>
  2202. </doc>
  2203. </method>
  2204. <method name="getModificationTime" return="long"
  2205. abstract="false" native="false" synchronized="false"
  2206. static="false" final="false" visibility="public"
  2207. deprecated="not deprecated">
  2208. <doc>
  2209. <![CDATA[Get the modification time of the file.
  2210. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  2211. </doc>
  2212. </method>
  2213. <method name="getAccessTime" return="long"
  2214. abstract="false" native="false" synchronized="false"
  2215. static="false" final="false" visibility="public"
  2216. deprecated="not deprecated">
  2217. <doc>
  2218. <![CDATA[Get the access time of the file.
  2219. @return the access time of file in milliseconds since January 1, 1970 UTC.]]>
  2220. </doc>
  2221. </method>
  2222. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  2223. abstract="false" native="false" synchronized="false"
  2224. static="false" final="false" visibility="public"
  2225. deprecated="not deprecated">
  2226. <doc>
  2227. <![CDATA[Get FsPermission associated with the file.
  2228. @return permssion. If a filesystem does not have a notion of permissions
  2229. or if permissions could not be determined, then default
  2230. permissions equivalent of "rwxrwxrwx" is returned.]]>
  2231. </doc>
  2232. </method>
  2233. <method name="getOwner" return="java.lang.String"
  2234. abstract="false" native="false" synchronized="false"
  2235. static="false" final="false" visibility="public"
  2236. deprecated="not deprecated">
  2237. <doc>
  2238. <![CDATA[Get the owner of the file.
  2239. @return owner of the file. The string could be empty if there is no
  2240. notion of owner of a file in a filesystem or if it could not
  2241. be determined (rare).]]>
  2242. </doc>
  2243. </method>
  2244. <method name="getGroup" return="java.lang.String"
  2245. abstract="false" native="false" synchronized="false"
  2246. static="false" final="false" visibility="public"
  2247. deprecated="not deprecated">
  2248. <doc>
  2249. <![CDATA[Get the group associated with the file.
  2250. @return group for the file. The string could be empty if there is no
  2251. notion of group of a file in a filesystem or if it could not
  2252. be determined (rare).]]>
  2253. </doc>
  2254. </method>
  2255. <method name="getPath" return="org.apache.hadoop.fs.Path"
  2256. abstract="false" native="false" synchronized="false"
  2257. static="false" final="false" visibility="public"
  2258. deprecated="not deprecated">
  2259. </method>
  2260. <method name="setPermission"
  2261. abstract="false" native="false" synchronized="false"
  2262. static="false" final="false" visibility="protected"
  2263. deprecated="not deprecated">
  2264. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2265. <doc>
  2266. <![CDATA[Sets permission.
  2267. @param permission if permission is null, default value is set]]>
  2268. </doc>
  2269. </method>
  2270. <method name="setOwner"
  2271. abstract="false" native="false" synchronized="false"
  2272. static="false" final="false" visibility="protected"
  2273. deprecated="not deprecated">
  2274. <param name="owner" type="java.lang.String"/>
  2275. <doc>
  2276. <![CDATA[Sets owner.
  2277. @param owner if it is null, default value is set]]>
  2278. </doc>
  2279. </method>
  2280. <method name="setGroup"
  2281. abstract="false" native="false" synchronized="false"
  2282. static="false" final="false" visibility="protected"
  2283. deprecated="not deprecated">
  2284. <param name="group" type="java.lang.String"/>
  2285. <doc>
  2286. <![CDATA[Sets group.
  2287. @param group if it is null, default value is set]]>
  2288. </doc>
  2289. </method>
  2290. <method name="write"
  2291. abstract="false" native="false" synchronized="false"
  2292. static="false" final="false" visibility="public"
  2293. deprecated="not deprecated">
  2294. <param name="out" type="java.io.DataOutput"/>
  2295. <exception name="IOException" type="java.io.IOException"/>
  2296. </method>
  2297. <method name="readFields"
  2298. abstract="false" native="false" synchronized="false"
  2299. static="false" final="false" visibility="public"
  2300. deprecated="not deprecated">
  2301. <param name="in" type="java.io.DataInput"/>
  2302. <exception name="IOException" type="java.io.IOException"/>
  2303. </method>
  2304. <method name="compareTo" return="int"
  2305. abstract="false" native="false" synchronized="false"
  2306. static="false" final="false" visibility="public"
  2307. deprecated="not deprecated">
  2308. <param name="o" type="java.lang.Object"/>
  2309. <doc>
  2310. <![CDATA[Compare this object to another object
  2311. @param o the object to be compared.
  2312. @return a negative integer, zero, or a positive integer as this object
  2313. is less than, equal to, or greater than the specified object.
  2314. @throws ClassCastException if the specified object's is not of
  2315. type FileStatus]]>
  2316. </doc>
  2317. </method>
  2318. <method name="equals" return="boolean"
  2319. abstract="false" native="false" synchronized="false"
  2320. static="false" final="false" visibility="public"
  2321. deprecated="not deprecated">
  2322. <param name="o" type="java.lang.Object"/>
  2323. <doc>
  2324. <![CDATA[Compare if this object is equal to another object
  2325. @param o the object to be compared.
  2326. @return true if two file status has the same path name; false if not.]]>
  2327. </doc>
  2328. </method>
  2329. <method name="hashCode" return="int"
  2330. abstract="false" native="false" synchronized="false"
  2331. static="false" final="false" visibility="public"
  2332. deprecated="not deprecated">
  2333. <doc>
  2334. <![CDATA[Returns a hash code value for the object, which is defined as
  2335. the hash code of the path name.
  2336. @return a hash code value for the path name.]]>
  2337. </doc>
  2338. </method>
  2339. <doc>
  2340. <![CDATA[Interface that represents the client side information for a file.]]>
  2341. </doc>
  2342. </class>
  2343. <!-- end class org.apache.hadoop.fs.FileStatus -->
  2344. <!-- start class org.apache.hadoop.fs.FileSystem -->
  2345. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  2346. abstract="true"
  2347. static="false" final="false" visibility="public"
  2348. deprecated="not deprecated">
  2349. <implements name="java.io.Closeable"/>
  2350. <constructor name="FileSystem"
  2351. static="false" final="false" visibility="protected"
  2352. deprecated="not deprecated">
  2353. </constructor>
  2354. <method name="parseArgs" return="org.apache.hadoop.fs.FileSystem"
  2355. abstract="false" native="false" synchronized="false"
  2356. static="true" final="false" visibility="public"
  2357. deprecated="Consider using {@link GenericOptionsParser} instead.">
  2358. <param name="argv" type="java.lang.String[]"/>
  2359. <param name="i" type="int"/>
  2360. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2361. <exception name="IOException" type="java.io.IOException"/>
  2362. <doc>
  2363. <![CDATA[Parse the cmd-line args, starting at i. Remove consumed args
  2364. from array. We expect param in the form:
  2365. '-local | -dfs <namenode:port>'
  2366. @deprecated Consider using {@link GenericOptionsParser} instead.]]>
  2367. </doc>
  2368. </method>
  2369. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2370. abstract="false" native="false" synchronized="false"
  2371. static="true" final="false" visibility="public"
  2372. deprecated="not deprecated">
  2373. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2374. <exception name="IOException" type="java.io.IOException"/>
  2375. <doc>
  2376. <![CDATA[Returns the configured filesystem implementation.]]>
  2377. </doc>
  2378. </method>
  2379. <method name="getDefaultUri" return="java.net.URI"
  2380. abstract="false" native="false" synchronized="false"
  2381. static="true" final="false" visibility="public"
  2382. deprecated="not deprecated">
  2383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2384. <doc>
  2385. <![CDATA[Get the default filesystem URI from a configuration.
  2386. @param conf the configuration to access
  2387. @return the uri of the default filesystem]]>
  2388. </doc>
  2389. </method>
  2390. <method name="setDefaultUri"
  2391. abstract="false" native="false" synchronized="false"
  2392. static="true" final="false" visibility="public"
  2393. deprecated="not deprecated">
  2394. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2395. <param name="uri" type="java.net.URI"/>
  2396. <doc>
  2397. <![CDATA[Set the default filesystem URI in a configuration.
  2398. @param conf the configuration to alter
  2399. @param uri the new default filesystem uri]]>
  2400. </doc>
  2401. </method>
  2402. <method name="setDefaultUri"
  2403. abstract="false" native="false" synchronized="false"
  2404. static="true" final="false" visibility="public"
  2405. deprecated="not deprecated">
  2406. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2407. <param name="uri" type="java.lang.String"/>
  2408. <doc>
  2409. <![CDATA[Set the default filesystem URI in a configuration.
  2410. @param conf the configuration to alter
  2411. @param uri the new default filesystem uri]]>
  2412. </doc>
  2413. </method>
  2414. <method name="initialize"
  2415. abstract="true" native="false" synchronized="false"
  2416. static="false" final="false" visibility="public"
  2417. deprecated="not deprecated">
  2418. <param name="name" type="java.net.URI"/>
  2419. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2420. <exception name="IOException" type="java.io.IOException"/>
  2421. <doc>
  2422. <![CDATA[Called after a new FileSystem instance is constructed.
  2423. @param name a uri whose authority section names the host, port, etc.
  2424. for this FileSystem
  2425. @param conf the configuration]]>
  2426. </doc>
  2427. </method>
  2428. <method name="getUri" return="java.net.URI"
  2429. abstract="true" native="false" synchronized="false"
  2430. static="false" final="false" visibility="public"
  2431. deprecated="not deprecated">
  2432. <doc>
  2433. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  2434. </doc>
  2435. </method>
  2436. <method name="getName" return="java.lang.String"
  2437. abstract="false" native="false" synchronized="false"
  2438. static="false" final="false" visibility="public"
  2439. deprecated="call #getUri() instead.">
  2440. <doc>
  2441. <![CDATA[@deprecated call #getUri() instead.]]>
  2442. </doc>
  2443. </method>
  2444. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  2445. abstract="false" native="false" synchronized="false"
  2446. static="true" final="false" visibility="public"
  2447. deprecated="call #get(URI,Configuration) instead.">
  2448. <param name="name" type="java.lang.String"/>
  2449. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2450. <exception name="IOException" type="java.io.IOException"/>
  2451. <doc>
  2452. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  2453. </doc>
  2454. </method>
  2455. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  2456. abstract="false" native="false" synchronized="false"
  2457. static="true" final="false" visibility="public"
  2458. deprecated="not deprecated">
  2459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2460. <exception name="IOException" type="java.io.IOException"/>
  2461. <doc>
  2462. <![CDATA[Get the local file syste
  2463. @param conf the configuration to configure the file system with
  2464. @return a LocalFileSystem]]>
  2465. </doc>
  2466. </method>
  2467. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  2468. abstract="false" native="false" synchronized="false"
  2469. static="true" final="false" visibility="public"
  2470. deprecated="not deprecated">
  2471. <param name="uri" type="java.net.URI"/>
  2472. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2473. <exception name="IOException" type="java.io.IOException"/>
  2474. <doc>
  2475. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  2476. of the URI determines a configuration property name,
  2477. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  2478. The entire URI is passed to the FileSystem instance's initialize method.]]>
  2479. </doc>
  2480. </method>
  2481. <method name="closeAll"
  2482. abstract="false" native="false" synchronized="false"
  2483. static="true" final="false" visibility="public"
  2484. deprecated="not deprecated">
  2485. <exception name="IOException" type="java.io.IOException"/>
  2486. <doc>
  2487. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  2488. used anymore.
  2489. @throws IOException]]>
  2490. </doc>
  2491. </method>
  2492. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  2493. abstract="false" native="false" synchronized="false"
  2494. static="false" final="false" visibility="public"
  2495. deprecated="not deprecated">
  2496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2497. <doc>
  2498. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  2499. </doc>
  2500. </method>
  2501. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2502. abstract="false" native="false" synchronized="false"
  2503. static="true" final="false" visibility="public"
  2504. deprecated="not deprecated">
  2505. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2506. <param name="file" type="org.apache.hadoop.fs.Path"/>
  2507. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2508. <exception name="IOException" type="java.io.IOException"/>
  2509. <doc>
  2510. <![CDATA[create a file with the provided permission
  2511. The permission of the file is set to be the provided permission as in
  2512. setPermission, not permission&~umask
  2513. It is implemented using two RPCs. It is understood that it is inefficient,
  2514. but the implementation is thread-safe. The other option is to change the
  2515. value of umask in configuration to be 0, but it is not thread-safe.
  2516. @param fs file system handle
  2517. @param file the name of the file to be created
  2518. @param permission the permission of the file
  2519. @return an output stream
  2520. @throws IOException]]>
  2521. </doc>
  2522. </method>
  2523. <method name="mkdirs" return="boolean"
  2524. abstract="false" native="false" synchronized="false"
  2525. static="true" final="false" visibility="public"
  2526. deprecated="not deprecated">
  2527. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  2528. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2529. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2530. <exception name="IOException" type="java.io.IOException"/>
  2531. <doc>
  2532. <![CDATA[create a directory with the provided permission
  2533. The permission of the directory is set to be the provided permission as in
  2534. setPermission, not permission&~umask
  2535. @see #create(FileSystem, Path, FsPermission)
  2536. @param fs file system handle
  2537. @param dir the name of the directory to be created
  2538. @param permission the permission of the directory
  2539. @return true if the directory creation succeeds; false otherwise
  2540. @throws IOException]]>
  2541. </doc>
  2542. </method>
  2543. <method name="checkPath"
  2544. abstract="false" native="false" synchronized="false"
  2545. static="false" final="false" visibility="protected"
  2546. deprecated="not deprecated">
  2547. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2548. <doc>
  2549. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  2550. </doc>
  2551. </method>
  2552. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2553. abstract="false" native="false" synchronized="false"
  2554. static="false" final="false" visibility="public"
  2555. deprecated="not deprecated">
  2556. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2557. <param name="start" type="long"/>
  2558. <param name="len" type="long"/>
  2559. <exception name="IOException" type="java.io.IOException"/>
  2560. <doc>
  2561. <![CDATA[Return an array containing hostnames, offset and size of
  2562. portions of the given file. For a nonexistent
  2563. file or regions, null will be returned.
  2564. This call is most helpful with DFS, where it returns
  2565. hostnames of machines that contain the given file.
  2566. The FileSystem will simply return an elt containing 'localhost'.]]>
  2567. </doc>
  2568. </method>
  2569. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2570. abstract="true" native="false" synchronized="false"
  2571. static="false" final="false" visibility="public"
  2572. deprecated="not deprecated">
  2573. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2574. <param name="bufferSize" type="int"/>
  2575. <exception name="IOException" type="java.io.IOException"/>
  2576. <doc>
  2577. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2578. @param f the file name to open
  2579. @param bufferSize the size of the buffer to be used.]]>
  2580. </doc>
  2581. </method>
  2582. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2583. abstract="false" native="false" synchronized="false"
  2584. static="false" final="false" visibility="public"
  2585. deprecated="not deprecated">
  2586. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2587. <exception name="IOException" type="java.io.IOException"/>
  2588. <doc>
  2589. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  2590. @param f the file to open]]>
  2591. </doc>
  2592. </method>
  2593. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2594. abstract="false" native="false" synchronized="false"
  2595. static="false" final="false" visibility="public"
  2596. deprecated="not deprecated">
  2597. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2598. <exception name="IOException" type="java.io.IOException"/>
  2599. <doc>
  2600. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2601. Files are overwritten by default.]]>
  2602. </doc>
  2603. </method>
  2604. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2605. abstract="false" native="false" synchronized="false"
  2606. static="false" final="false" visibility="public"
  2607. deprecated="not deprecated">
  2608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2609. <param name="overwrite" type="boolean"/>
  2610. <exception name="IOException" type="java.io.IOException"/>
  2611. <doc>
  2612. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  2613. </doc>
  2614. </method>
  2615. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2616. abstract="false" native="false" synchronized="false"
  2617. static="false" final="false" visibility="public"
  2618. deprecated="not deprecated">
  2619. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2620. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2621. <exception name="IOException" type="java.io.IOException"/>
  2622. <doc>
  2623. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  2624. reporting.
  2625. Files are overwritten by default.]]>
  2626. </doc>
  2627. </method>
  2628. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2629. abstract="false" native="false" synchronized="false"
  2630. static="false" final="false" visibility="public"
  2631. deprecated="not deprecated">
  2632. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2633. <param name="replication" type="short"/>
  2634. <exception name="IOException" type="java.io.IOException"/>
  2635. <doc>
  2636. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2637. Files are overwritten by default.]]>
  2638. </doc>
  2639. </method>
  2640. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2641. abstract="false" native="false" synchronized="false"
  2642. static="false" final="false" visibility="public"
  2643. deprecated="not deprecated">
  2644. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2645. <param name="replication" type="short"/>
  2646. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2647. <exception name="IOException" type="java.io.IOException"/>
  2648. <doc>
  2649. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2650. reporting.
  2651. Files are overwritten by default.]]>
  2652. </doc>
  2653. </method>
  2654. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2655. abstract="false" native="false" synchronized="false"
  2656. static="false" final="false" visibility="public"
  2657. deprecated="not deprecated">
  2658. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2659. <param name="overwrite" type="boolean"/>
  2660. <param name="bufferSize" type="int"/>
  2661. <exception name="IOException" type="java.io.IOException"/>
  2662. <doc>
  2663. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2664. @param f the file name to open
  2665. @param overwrite if a file with this name already exists, then if true,
  2666. the file will be overwritten, and if false an error will be thrown.
  2667. @param bufferSize the size of the buffer to be used.]]>
  2668. </doc>
  2669. </method>
  2670. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2671. abstract="false" 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="overwrite" type="boolean"/>
  2676. <param name="bufferSize" type="int"/>
  2677. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2678. <exception name="IOException" type="java.io.IOException"/>
  2679. <doc>
  2680. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2681. reporting.
  2682. @param f the file name to open
  2683. @param overwrite if a file with this name already exists, then if true,
  2684. the file will be overwritten, and if false an error will be thrown.
  2685. @param bufferSize the size of the buffer to be used.]]>
  2686. </doc>
  2687. </method>
  2688. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2689. abstract="false" native="false" synchronized="false"
  2690. static="false" final="false" visibility="public"
  2691. deprecated="not deprecated">
  2692. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2693. <param name="overwrite" type="boolean"/>
  2694. <param name="bufferSize" type="int"/>
  2695. <param name="replication" type="short"/>
  2696. <param name="blockSize" type="long"/>
  2697. <exception name="IOException" type="java.io.IOException"/>
  2698. <doc>
  2699. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  2700. @param f the file name to open
  2701. @param overwrite if a file with this name already exists, then if true,
  2702. the file will be overwritten, and if false an error will be thrown.
  2703. @param bufferSize the size of the buffer to be used.
  2704. @param replication required block replication for the file.]]>
  2705. </doc>
  2706. </method>
  2707. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2708. abstract="false" native="false" synchronized="false"
  2709. static="false" final="false" visibility="public"
  2710. deprecated="not deprecated">
  2711. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2712. <param name="overwrite" type="boolean"/>
  2713. <param name="bufferSize" type="int"/>
  2714. <param name="replication" type="short"/>
  2715. <param name="blockSize" type="long"/>
  2716. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2717. <exception name="IOException" type="java.io.IOException"/>
  2718. <doc>
  2719. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2720. reporting.
  2721. @param f the file name to open
  2722. @param overwrite if a file with this name already exists, then if true,
  2723. the file will be overwritten, and if false an error will be thrown.
  2724. @param bufferSize the size of the buffer to be used.
  2725. @param replication required block replication for the file.]]>
  2726. </doc>
  2727. </method>
  2728. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2729. abstract="true" native="false" synchronized="false"
  2730. static="false" final="false" visibility="public"
  2731. deprecated="not deprecated">
  2732. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2733. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2734. <param name="overwrite" type="boolean"/>
  2735. <param name="bufferSize" type="int"/>
  2736. <param name="replication" type="short"/>
  2737. <param name="blockSize" type="long"/>
  2738. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2739. <exception name="IOException" type="java.io.IOException"/>
  2740. <doc>
  2741. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  2742. reporting.
  2743. @param f the file name to open
  2744. @param permission
  2745. @param overwrite if a file with this name already exists, then if true,
  2746. the file will be overwritten, and if false an error will be thrown.
  2747. @param bufferSize the size of the buffer to be used.
  2748. @param replication required block replication for the file.
  2749. @param blockSize
  2750. @param progress
  2751. @throws IOException
  2752. @see #setPermission(Path, FsPermission)]]>
  2753. </doc>
  2754. </method>
  2755. <method name="createNewFile" return="boolean"
  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[Creates the given Path as a brand-new zero-length file. If
  2763. create fails, or if it already existed, return false.]]>
  2764. </doc>
  2765. </method>
  2766. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2767. abstract="false" native="false" synchronized="false"
  2768. static="false" final="false" visibility="public"
  2769. deprecated="not deprecated">
  2770. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2771. <exception name="IOException" type="java.io.IOException"/>
  2772. <doc>
  2773. <![CDATA[Append to an existing file (optional operation).
  2774. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  2775. @param f the existing file to be appended.
  2776. @throws IOException]]>
  2777. </doc>
  2778. </method>
  2779. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2780. abstract="false" native="false" synchronized="false"
  2781. static="false" final="false" visibility="public"
  2782. deprecated="not deprecated">
  2783. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2784. <param name="bufferSize" type="int"/>
  2785. <exception name="IOException" type="java.io.IOException"/>
  2786. <doc>
  2787. <![CDATA[Append to an existing file (optional operation).
  2788. Same as append(f, bufferSize, null).
  2789. @param f the existing file to be appended.
  2790. @param bufferSize the size of the buffer to be used.
  2791. @throws IOException]]>
  2792. </doc>
  2793. </method>
  2794. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2795. abstract="true" native="false" synchronized="false"
  2796. static="false" final="false" visibility="public"
  2797. deprecated="not deprecated">
  2798. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2799. <param name="bufferSize" type="int"/>
  2800. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2801. <exception name="IOException" type="java.io.IOException"/>
  2802. <doc>
  2803. <![CDATA[Append to an existing file (optional operation).
  2804. @param f the existing file to be appended.
  2805. @param bufferSize the size of the buffer to be used.
  2806. @param progress for reporting progress if it is not null.
  2807. @throws IOException]]>
  2808. </doc>
  2809. </method>
  2810. <method name="getReplication" return="short"
  2811. abstract="false" native="false" synchronized="false"
  2812. static="false" final="false" visibility="public"
  2813. deprecated="Use getFileStatus() instead">
  2814. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2815. <exception name="IOException" type="java.io.IOException"/>
  2816. <doc>
  2817. <![CDATA[Get replication.
  2818. @deprecated Use getFileStatus() instead
  2819. @param src file name
  2820. @return file replication
  2821. @throws IOException]]>
  2822. </doc>
  2823. </method>
  2824. <method name="setReplication" return="boolean"
  2825. abstract="false" native="false" synchronized="false"
  2826. static="false" final="false" visibility="public"
  2827. deprecated="not deprecated">
  2828. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2829. <param name="replication" type="short"/>
  2830. <exception name="IOException" type="java.io.IOException"/>
  2831. <doc>
  2832. <![CDATA[Set replication for an existing file.
  2833. @param src file name
  2834. @param replication new replication
  2835. @throws IOException
  2836. @return true if successful;
  2837. false if file does not exist or is a directory]]>
  2838. </doc>
  2839. </method>
  2840. <method name="rename" return="boolean"
  2841. abstract="true" native="false" synchronized="false"
  2842. static="false" final="false" visibility="public"
  2843. deprecated="not deprecated">
  2844. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2845. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2846. <exception name="IOException" type="java.io.IOException"/>
  2847. <doc>
  2848. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  2849. or remote DFS.]]>
  2850. </doc>
  2851. </method>
  2852. <method name="delete" return="boolean"
  2853. abstract="true" native="false" synchronized="false"
  2854. static="false" final="false" visibility="public"
  2855. deprecated="Use delete(Path, boolean) instead">
  2856. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2857. <exception name="IOException" type="java.io.IOException"/>
  2858. <doc>
  2859. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  2860. </doc>
  2861. </method>
  2862. <method name="delete" return="boolean"
  2863. abstract="true" native="false" synchronized="false"
  2864. static="false" final="false" visibility="public"
  2865. deprecated="not deprecated">
  2866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2867. <param name="recursive" type="boolean"/>
  2868. <exception name="IOException" type="java.io.IOException"/>
  2869. <doc>
  2870. <![CDATA[Delete a file.
  2871. @param f the path to delete.
  2872. @param recursive if path is a directory and set to
  2873. true, the directory is deleted else throws an exception. In
  2874. case of a file the recursive can be set to either true or false.
  2875. @return true if delete is successful else false.
  2876. @throws IOException]]>
  2877. </doc>
  2878. </method>
  2879. <method name="deleteOnExit" return="boolean"
  2880. abstract="false" native="false" synchronized="false"
  2881. static="false" final="false" visibility="public"
  2882. deprecated="not deprecated">
  2883. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2884. <exception name="IOException" type="java.io.IOException"/>
  2885. <doc>
  2886. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  2887. When the JVM shuts down,
  2888. all FileSystem objects will be closed automatically.
  2889. Then,
  2890. the marked path will be deleted as a result of closing the FileSystem.
  2891. The path has to exist in the file system.
  2892. @param f the path to delete.
  2893. @return true if deleteOnExit is successful, otherwise false.
  2894. @throws IOException]]>
  2895. </doc>
  2896. </method>
  2897. <method name="processDeleteOnExit"
  2898. abstract="false" native="false" synchronized="false"
  2899. static="false" final="false" visibility="protected"
  2900. deprecated="not deprecated">
  2901. <doc>
  2902. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  2903. deletes all files in the specified paths.]]>
  2904. </doc>
  2905. </method>
  2906. <method name="exists" return="boolean"
  2907. abstract="false" native="false" synchronized="false"
  2908. static="false" final="false" visibility="public"
  2909. deprecated="not deprecated">
  2910. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2911. <exception name="IOException" type="java.io.IOException"/>
  2912. <doc>
  2913. <![CDATA[Check if exists.
  2914. @param f source file]]>
  2915. </doc>
  2916. </method>
  2917. <method name="isDirectory" return="boolean"
  2918. abstract="false" native="false" synchronized="false"
  2919. static="false" final="false" visibility="public"
  2920. deprecated="Use getFileStatus() instead">
  2921. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2922. <exception name="IOException" type="java.io.IOException"/>
  2923. <doc>
  2924. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2925. </doc>
  2926. </method>
  2927. <method name="isFile" return="boolean"
  2928. abstract="false" native="false" synchronized="false"
  2929. static="false" final="false" visibility="public"
  2930. deprecated="not deprecated">
  2931. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2932. <exception name="IOException" type="java.io.IOException"/>
  2933. <doc>
  2934. <![CDATA[True iff the named path is a regular file.]]>
  2935. </doc>
  2936. </method>
  2937. <method name="getLength" return="long"
  2938. abstract="false" native="false" synchronized="false"
  2939. static="false" final="false" visibility="public"
  2940. deprecated="Use getFileStatus() instead">
  2941. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2942. <exception name="IOException" type="java.io.IOException"/>
  2943. <doc>
  2944. <![CDATA[@deprecated Use getFileStatus() instead]]>
  2945. </doc>
  2946. </method>
  2947. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2948. abstract="false" 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. <exception name="IOException" type="java.io.IOException"/>
  2953. <doc>
  2954. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  2955. </doc>
  2956. </method>
  2957. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2958. abstract="true" native="false" synchronized="false"
  2959. static="false" final="false" visibility="public"
  2960. deprecated="not deprecated">
  2961. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2962. <exception name="IOException" type="java.io.IOException"/>
  2963. <doc>
  2964. <![CDATA[List the statuses of the files/directories in the given path if the path is
  2965. a directory.
  2966. @param f
  2967. given path
  2968. @return the statuses of the files/directories in the given patch
  2969. @throws IOException]]>
  2970. </doc>
  2971. </method>
  2972. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2973. abstract="false" native="false" synchronized="false"
  2974. static="false" final="false" visibility="public"
  2975. deprecated="not deprecated">
  2976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2977. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  2978. <exception name="IOException" type="java.io.IOException"/>
  2979. <doc>
  2980. <![CDATA[Filter files/directories in the given path using the user-supplied path
  2981. filter.
  2982. @param f
  2983. a path name
  2984. @param filter
  2985. the user-supplied path filter
  2986. @return an array of FileStatus objects for the files under the given path
  2987. after applying the filter
  2988. @throws IOException
  2989. if encounter any problem while fetching the status]]>
  2990. </doc>
  2991. </method>
  2992. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2993. abstract="false" native="false" synchronized="false"
  2994. static="false" final="false" visibility="public"
  2995. deprecated="not deprecated">
  2996. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  2997. <exception name="IOException" type="java.io.IOException"/>
  2998. <doc>
  2999. <![CDATA[Filter files/directories in the given list of paths using default
  3000. path filter.
  3001. @param files
  3002. a list of paths
  3003. @return a list of statuses for the files under the given paths after
  3004. applying the filter default Path filter
  3005. @exception IOException]]>
  3006. </doc>
  3007. </method>
  3008. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3009. abstract="false" native="false" synchronized="false"
  3010. static="false" final="false" visibility="public"
  3011. deprecated="not deprecated">
  3012. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  3013. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3014. <exception name="IOException" type="java.io.IOException"/>
  3015. <doc>
  3016. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  3017. path filter.
  3018. @param files
  3019. a list of paths
  3020. @param filter
  3021. the user-supplied path filter
  3022. @return a list of statuses for the files under the given paths after
  3023. applying the filter
  3024. @exception IOException]]>
  3025. </doc>
  3026. </method>
  3027. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3028. abstract="false" native="false" synchronized="false"
  3029. static="false" final="false" visibility="public"
  3030. deprecated="not deprecated">
  3031. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3032. <exception name="IOException" type="java.io.IOException"/>
  3033. <doc>
  3034. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  3035. files. Results are sorted by their names.
  3036. <p>
  3037. A filename pattern is composed of <i>regular</i> characters and
  3038. <i>special pattern matching</i> characters, which are:
  3039. <dl>
  3040. <dd>
  3041. <dl>
  3042. <p>
  3043. <dt> <tt> ? </tt>
  3044. <dd> Matches any single character.
  3045. <p>
  3046. <dt> <tt> * </tt>
  3047. <dd> Matches zero or more characters.
  3048. <p>
  3049. <dt> <tt> [<i>abc</i>] </tt>
  3050. <dd> Matches a single character from character set
  3051. <tt>{<i>a,b,c</i>}</tt>.
  3052. <p>
  3053. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  3054. <dd> Matches a single character from the character range
  3055. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  3056. lexicographically less than or equal to character <tt><i>b</i></tt>.
  3057. <p>
  3058. <dt> <tt> [^<i>a</i>] </tt>
  3059. <dd> Matches a single character that is not from character set or range
  3060. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  3061. immediately to the right of the opening bracket.
  3062. <p>
  3063. <dt> <tt> \<i>c</i> </tt>
  3064. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  3065. <p>
  3066. <dt> <tt> {ab,cd} </tt>
  3067. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  3068. <p>
  3069. <dt> <tt> {ab,c{de,fh}} </tt>
  3070. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  3071. </dl>
  3072. </dd>
  3073. </dl>
  3074. @param pathPattern a regular expression specifying a pth pattern
  3075. @return an array of paths that match the path pattern
  3076. @throws IOException]]>
  3077. </doc>
  3078. </method>
  3079. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3080. abstract="false" native="false" synchronized="false"
  3081. static="false" final="false" visibility="public"
  3082. deprecated="not deprecated">
  3083. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  3084. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  3085. <exception name="IOException" type="java.io.IOException"/>
  3086. <doc>
  3087. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  3088. and is accepted by the user-supplied path filter. Results are sorted by
  3089. their path names.
  3090. Return null if pathPattern has no glob and the path does not exist.
  3091. Return an empty array if pathPattern has a glob and no path matches it.
  3092. @param pathPattern
  3093. a regular expression specifying the path pattern
  3094. @param filter
  3095. a user-supplied path filter
  3096. @return an array of FileStatus objects
  3097. @throws IOException if any I/O error occurs when fetching file status]]>
  3098. </doc>
  3099. </method>
  3100. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  3101. abstract="false" native="false" synchronized="false"
  3102. static="false" final="false" visibility="public"
  3103. deprecated="not deprecated">
  3104. <doc>
  3105. <![CDATA[Return the current user's home directory in this filesystem.
  3106. The default implementation returns "/user/$USER/".]]>
  3107. </doc>
  3108. </method>
  3109. <method name="setWorkingDirectory"
  3110. abstract="true" native="false" synchronized="false"
  3111. static="false" final="false" visibility="public"
  3112. deprecated="not deprecated">
  3113. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  3114. <doc>
  3115. <![CDATA[Set the current working directory for the given file system. All relative
  3116. paths will be resolved relative to it.
  3117. @param new_dir]]>
  3118. </doc>
  3119. </method>
  3120. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3121. abstract="true" native="false" synchronized="false"
  3122. static="false" final="false" visibility="public"
  3123. deprecated="not deprecated">
  3124. <doc>
  3125. <![CDATA[Get the current working directory for the given file system
  3126. @return the directory pathname]]>
  3127. </doc>
  3128. </method>
  3129. <method name="mkdirs" return="boolean"
  3130. abstract="false" native="false" synchronized="false"
  3131. static="false" final="false" visibility="public"
  3132. deprecated="not deprecated">
  3133. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3134. <exception name="IOException" type="java.io.IOException"/>
  3135. <doc>
  3136. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  3137. </doc>
  3138. </method>
  3139. <method name="mkdirs" return="boolean"
  3140. abstract="true" native="false" synchronized="false"
  3141. static="false" final="false" visibility="public"
  3142. deprecated="not deprecated">
  3143. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3144. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3145. <exception name="IOException" type="java.io.IOException"/>
  3146. <doc>
  3147. <![CDATA[Make the given file and all non-existent parents into
  3148. directories. Has the semantics of Unix 'mkdir -p'.
  3149. Existence of the directory hierarchy is not an error.]]>
  3150. </doc>
  3151. </method>
  3152. <method name="copyFromLocalFile"
  3153. abstract="false" native="false" synchronized="false"
  3154. static="false" final="false" visibility="public"
  3155. deprecated="not deprecated">
  3156. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3157. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3158. <exception name="IOException" type="java.io.IOException"/>
  3159. <doc>
  3160. <![CDATA[The src file is on the local disk. Add it to FS at
  3161. the given dst name and the source is kept intact afterwards]]>
  3162. </doc>
  3163. </method>
  3164. <method name="moveFromLocalFile"
  3165. abstract="false" native="false" synchronized="false"
  3166. static="false" final="false" visibility="public"
  3167. deprecated="not deprecated">
  3168. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3169. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3170. <exception name="IOException" type="java.io.IOException"/>
  3171. <doc>
  3172. <![CDATA[The src files is on the local disk. Add it to FS at
  3173. the given dst name, removing the source afterwards.]]>
  3174. </doc>
  3175. </method>
  3176. <method name="moveFromLocalFile"
  3177. abstract="false" native="false" synchronized="false"
  3178. static="false" final="false" visibility="public"
  3179. deprecated="not deprecated">
  3180. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3181. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3182. <exception name="IOException" type="java.io.IOException"/>
  3183. <doc>
  3184. <![CDATA[The src file is on the local disk. Add it to FS at
  3185. the given dst name, removing the source afterwards.]]>
  3186. </doc>
  3187. </method>
  3188. <method name="copyFromLocalFile"
  3189. abstract="false" native="false" synchronized="false"
  3190. static="false" final="false" visibility="public"
  3191. deprecated="not deprecated">
  3192. <param name="delSrc" type="boolean"/>
  3193. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3194. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3195. <exception name="IOException" type="java.io.IOException"/>
  3196. <doc>
  3197. <![CDATA[The src file is on the local disk. Add it to FS at
  3198. the given dst name.
  3199. delSrc indicates if the source should be removed]]>
  3200. </doc>
  3201. </method>
  3202. <method name="copyFromLocalFile"
  3203. abstract="false" native="false" synchronized="false"
  3204. static="false" final="false" visibility="public"
  3205. deprecated="not deprecated">
  3206. <param name="delSrc" type="boolean"/>
  3207. <param name="overwrite" type="boolean"/>
  3208. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3209. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3210. <exception name="IOException" type="java.io.IOException"/>
  3211. <doc>
  3212. <![CDATA[The src files are on the local disk. Add it to FS at
  3213. the given dst name.
  3214. delSrc indicates if the source should be removed]]>
  3215. </doc>
  3216. </method>
  3217. <method name="copyFromLocalFile"
  3218. abstract="false" native="false" synchronized="false"
  3219. static="false" final="false" visibility="public"
  3220. deprecated="not deprecated">
  3221. <param name="delSrc" type="boolean"/>
  3222. <param name="overwrite" type="boolean"/>
  3223. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3224. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3225. <exception name="IOException" type="java.io.IOException"/>
  3226. <doc>
  3227. <![CDATA[The src file is on the local disk. Add it to FS at
  3228. the given dst name.
  3229. delSrc indicates if the source should be removed]]>
  3230. </doc>
  3231. </method>
  3232. <method name="copyToLocalFile"
  3233. abstract="false" native="false" synchronized="false"
  3234. static="false" final="false" visibility="public"
  3235. deprecated="not deprecated">
  3236. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3237. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3238. <exception name="IOException" type="java.io.IOException"/>
  3239. <doc>
  3240. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3241. Copy it from FS control to the local dst name.]]>
  3242. </doc>
  3243. </method>
  3244. <method name="moveToLocalFile"
  3245. abstract="false" native="false" synchronized="false"
  3246. static="false" final="false" visibility="public"
  3247. deprecated="not deprecated">
  3248. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3249. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3250. <exception name="IOException" type="java.io.IOException"/>
  3251. <doc>
  3252. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3253. Copy it from FS control to the local dst name.
  3254. Remove the source afterwards]]>
  3255. </doc>
  3256. </method>
  3257. <method name="copyToLocalFile"
  3258. abstract="false" native="false" synchronized="false"
  3259. static="false" final="false" visibility="public"
  3260. deprecated="not deprecated">
  3261. <param name="delSrc" type="boolean"/>
  3262. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3263. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3264. <exception name="IOException" type="java.io.IOException"/>
  3265. <doc>
  3266. <![CDATA[The src file is under FS, and the dst is on the local disk.
  3267. Copy it from FS control to the local dst name.
  3268. delSrc indicates if the src will be removed or not.]]>
  3269. </doc>
  3270. </method>
  3271. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  3272. abstract="false" native="false" synchronized="false"
  3273. static="false" final="false" visibility="public"
  3274. deprecated="not deprecated">
  3275. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3276. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3277. <exception name="IOException" type="java.io.IOException"/>
  3278. <doc>
  3279. <![CDATA[Returns a local File that the user can write output to. The caller
  3280. provides both the eventual FS target name and the local working
  3281. file. If the FS is local, we write directly into the target. If
  3282. the FS is remote, we write into the tmp local area.]]>
  3283. </doc>
  3284. </method>
  3285. <method name="completeLocalOutput"
  3286. abstract="false" native="false" synchronized="false"
  3287. static="false" final="false" visibility="public"
  3288. deprecated="not deprecated">
  3289. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  3290. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  3291. <exception name="IOException" type="java.io.IOException"/>
  3292. <doc>
  3293. <![CDATA[Called when we're all done writing to the target. A local FS will
  3294. do nothing, because we've written to exactly the right place. A remote
  3295. FS will copy the contents of tmpLocalFile to the correct target at
  3296. fsOutputFile.]]>
  3297. </doc>
  3298. </method>
  3299. <method name="close"
  3300. abstract="false" native="false" synchronized="false"
  3301. static="false" final="false" visibility="public"
  3302. deprecated="not deprecated">
  3303. <exception name="IOException" type="java.io.IOException"/>
  3304. <doc>
  3305. <![CDATA[No more filesystem operations are needed. Will
  3306. release any held locks.]]>
  3307. </doc>
  3308. </method>
  3309. <method name="getUsed" return="long"
  3310. abstract="false" native="false" synchronized="false"
  3311. static="false" final="false" visibility="public"
  3312. deprecated="not deprecated">
  3313. <exception name="IOException" type="java.io.IOException"/>
  3314. <doc>
  3315. <![CDATA[Return the total size of all files in the filesystem.]]>
  3316. </doc>
  3317. </method>
  3318. <method name="getBlockSize" return="long"
  3319. abstract="false" native="false" synchronized="false"
  3320. static="false" final="false" visibility="public"
  3321. deprecated="Use getFileStatus() instead">
  3322. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3323. <exception name="IOException" type="java.io.IOException"/>
  3324. <doc>
  3325. <![CDATA[@deprecated Use getFileStatus() instead]]>
  3326. </doc>
  3327. </method>
  3328. <method name="getDefaultBlockSize" return="long"
  3329. abstract="false" native="false" synchronized="false"
  3330. static="false" final="false" visibility="public"
  3331. deprecated="not deprecated">
  3332. <doc>
  3333. <![CDATA[Return the number of bytes that large input files should be optimally
  3334. be split into to minimize i/o time.]]>
  3335. </doc>
  3336. </method>
  3337. <method name="getDefaultReplication" return="short"
  3338. abstract="false" native="false" synchronized="false"
  3339. static="false" final="false" visibility="public"
  3340. deprecated="not deprecated">
  3341. <doc>
  3342. <![CDATA[Get the default replication.]]>
  3343. </doc>
  3344. </method>
  3345. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3346. abstract="true" native="false" synchronized="false"
  3347. static="false" final="false" visibility="public"
  3348. deprecated="not deprecated">
  3349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3350. <exception name="IOException" type="java.io.IOException"/>
  3351. <doc>
  3352. <![CDATA[Return a file status object that represents the path.
  3353. @param f The path we want information from
  3354. @return a FileStatus object
  3355. @throws FileNotFoundException when the path does not exist;
  3356. IOException see specific implementation]]>
  3357. </doc>
  3358. </method>
  3359. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  3360. abstract="false" native="false" synchronized="false"
  3361. static="false" final="false" visibility="public"
  3362. deprecated="not deprecated">
  3363. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3364. <exception name="IOException" type="java.io.IOException"/>
  3365. <doc>
  3366. <![CDATA[Get the checksum of a file.
  3367. @param f The file path
  3368. @return The file checksum. The default return value is null,
  3369. which indicates that no checksum algorithm is implemented
  3370. in the corresponding FileSystem.]]>
  3371. </doc>
  3372. </method>
  3373. <method name="setPermission"
  3374. abstract="false" native="false" synchronized="false"
  3375. static="false" final="false" visibility="public"
  3376. deprecated="not deprecated">
  3377. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3378. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3379. <exception name="IOException" type="java.io.IOException"/>
  3380. <doc>
  3381. <![CDATA[Set permission of a path.
  3382. @param p
  3383. @param permission]]>
  3384. </doc>
  3385. </method>
  3386. <method name="setOwner"
  3387. abstract="false" native="false" synchronized="false"
  3388. static="false" final="false" visibility="public"
  3389. deprecated="not deprecated">
  3390. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3391. <param name="username" type="java.lang.String"/>
  3392. <param name="groupname" type="java.lang.String"/>
  3393. <exception name="IOException" type="java.io.IOException"/>
  3394. <doc>
  3395. <![CDATA[Set owner of a path (i.e. a file or a directory).
  3396. The parameters username and groupname cannot both be null.
  3397. @param p The path
  3398. @param username If it is null, the original username remains unchanged.
  3399. @param groupname If it is null, the original groupname remains unchanged.]]>
  3400. </doc>
  3401. </method>
  3402. <method name="setTimes"
  3403. abstract="false" native="false" synchronized="false"
  3404. static="false" final="false" visibility="public"
  3405. deprecated="not deprecated">
  3406. <param name="p" type="org.apache.hadoop.fs.Path"/>
  3407. <param name="mtime" type="long"/>
  3408. <param name="atime" type="long"/>
  3409. <exception name="IOException" type="java.io.IOException"/>
  3410. <doc>
  3411. <![CDATA[Set access time of a file
  3412. @param p The path
  3413. @param mtime Set the modification time of this file.
  3414. The number of milliseconds since Jan 1, 1970.
  3415. A value of -1 means that this call should not set modification time.
  3416. @param atime Set the access time of this file.
  3417. The number of milliseconds since Jan 1, 1970.
  3418. A value of -1 means that this call should not set access time.]]>
  3419. </doc>
  3420. </method>
  3421. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  3422. abstract="false" native="false" synchronized="true"
  3423. static="true" final="false" visibility="public"
  3424. deprecated="not deprecated">
  3425. <param name="cls" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.FileSystem&gt;"/>
  3426. <doc>
  3427. <![CDATA[Get the statistics for a particular file system
  3428. @param cls the class to lookup
  3429. @return a statistics object]]>
  3430. </doc>
  3431. </method>
  3432. <method name="printStatistics"
  3433. abstract="false" native="false" synchronized="true"
  3434. static="true" final="false" visibility="public"
  3435. deprecated="not deprecated">
  3436. <exception name="IOException" type="java.io.IOException"/>
  3437. </method>
  3438. <field name="LOG" type="org.apache.commons.logging.Log"
  3439. transient="false" volatile="false"
  3440. static="true" final="true" visibility="public"
  3441. deprecated="not deprecated">
  3442. </field>
  3443. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  3444. transient="false" volatile="false"
  3445. static="false" final="true" visibility="protected"
  3446. deprecated="not deprecated">
  3447. <doc>
  3448. <![CDATA[The statistics for this file system.]]>
  3449. </doc>
  3450. </field>
  3451. <doc>
  3452. <![CDATA[An abstract base class for a fairly generic filesystem. It
  3453. may be implemented as a distributed filesystem, or as a "local"
  3454. one that reflects the locally-connected disk. The local version
  3455. exists for small Hadoop instances and for testing.
  3456. <p>
  3457. All user code that may potentially use the Hadoop Distributed
  3458. File System should be written to use a FileSystem object. The
  3459. Hadoop DFS is a multi-machine system that appears as a single
  3460. disk. It's useful because of its fault tolerance and potentially
  3461. very large capacity.
  3462. <p>
  3463. The local implementation is {@link LocalFileSystem} and distributed
  3464. implementation is DistributedFileSystem.]]>
  3465. </doc>
  3466. </class>
  3467. <!-- end class org.apache.hadoop.fs.FileSystem -->
  3468. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  3469. <class name="FileSystem.Statistics" extends="java.lang.Object"
  3470. abstract="false"
  3471. static="true" final="true" visibility="public"
  3472. deprecated="not deprecated">
  3473. <constructor name="FileSystem.Statistics"
  3474. static="false" final="false" visibility="public"
  3475. deprecated="not deprecated">
  3476. </constructor>
  3477. <method name="incrementBytesRead"
  3478. abstract="false" native="false" synchronized="false"
  3479. static="false" final="false" visibility="public"
  3480. deprecated="not deprecated">
  3481. <param name="newBytes" type="long"/>
  3482. <doc>
  3483. <![CDATA[Increment the bytes read in the statistics
  3484. @param newBytes the additional bytes read]]>
  3485. </doc>
  3486. </method>
  3487. <method name="incrementBytesWritten"
  3488. abstract="false" native="false" synchronized="false"
  3489. static="false" final="false" visibility="public"
  3490. deprecated="not deprecated">
  3491. <param name="newBytes" type="long"/>
  3492. <doc>
  3493. <![CDATA[Increment the bytes written in the statistics
  3494. @param newBytes the additional bytes written]]>
  3495. </doc>
  3496. </method>
  3497. <method name="getBytesRead" return="long"
  3498. abstract="false" native="false" synchronized="false"
  3499. static="false" final="false" visibility="public"
  3500. deprecated="not deprecated">
  3501. <doc>
  3502. <![CDATA[Get the total number of bytes read
  3503. @return the number of bytes]]>
  3504. </doc>
  3505. </method>
  3506. <method name="getBytesWritten" return="long"
  3507. abstract="false" native="false" synchronized="false"
  3508. static="false" final="false" visibility="public"
  3509. deprecated="not deprecated">
  3510. <doc>
  3511. <![CDATA[Get the total number of bytes written
  3512. @return the number of bytes]]>
  3513. </doc>
  3514. </method>
  3515. <method name="toString" return="java.lang.String"
  3516. abstract="false" native="false" synchronized="false"
  3517. static="false" final="false" visibility="public"
  3518. deprecated="not deprecated">
  3519. </method>
  3520. </class>
  3521. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  3522. <!-- start class org.apache.hadoop.fs.FileUtil -->
  3523. <class name="FileUtil" extends="java.lang.Object"
  3524. abstract="false"
  3525. static="false" final="false" visibility="public"
  3526. deprecated="not deprecated">
  3527. <constructor name="FileUtil"
  3528. static="false" final="false" visibility="public"
  3529. deprecated="not deprecated">
  3530. </constructor>
  3531. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3532. abstract="false" native="false" synchronized="false"
  3533. static="true" final="false" visibility="public"
  3534. deprecated="not deprecated">
  3535. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3536. <doc>
  3537. <![CDATA[convert an array of FileStatus to an array of Path
  3538. @param stats
  3539. an array of FileStatus objects
  3540. @return an array of paths corresponding to the input]]>
  3541. </doc>
  3542. </method>
  3543. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  3544. abstract="false" native="false" synchronized="false"
  3545. static="true" final="false" visibility="public"
  3546. deprecated="not deprecated">
  3547. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  3548. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3549. <doc>
  3550. <![CDATA[convert an array of FileStatus to an array of Path.
  3551. If stats if null, return path
  3552. @param stats
  3553. an array of FileStatus objects
  3554. @param path
  3555. default path to return in stats is null
  3556. @return an array of paths corresponding to the input]]>
  3557. </doc>
  3558. </method>
  3559. <method name="fullyDelete" return="boolean"
  3560. abstract="false" native="false" synchronized="false"
  3561. static="true" final="false" visibility="public"
  3562. deprecated="not deprecated">
  3563. <param name="dir" type="java.io.File"/>
  3564. <exception name="IOException" type="java.io.IOException"/>
  3565. <doc>
  3566. <![CDATA[Delete a directory and all its contents. If
  3567. we return false, the directory may be partially-deleted.]]>
  3568. </doc>
  3569. </method>
  3570. <method name="fullyDelete"
  3571. abstract="false" native="false" synchronized="false"
  3572. static="true" final="false" visibility="public"
  3573. deprecated="Use {@link FileSystem#delete(Path, boolean)}">
  3574. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  3575. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  3576. <exception name="IOException" type="java.io.IOException"/>
  3577. <doc>
  3578. <![CDATA[Recursively delete a directory.
  3579. @param fs {@link FileSystem} on which the path is present
  3580. @param dir directory to recursively delete
  3581. @throws IOException
  3582. @deprecated Use {@link FileSystem#delete(Path, boolean)}]]>
  3583. </doc>
  3584. </method>
  3585. <method name="copy" return="boolean"
  3586. abstract="false" native="false" synchronized="false"
  3587. static="true" final="false" visibility="public"
  3588. deprecated="not deprecated">
  3589. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3590. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3591. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3592. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3593. <param name="deleteSource" type="boolean"/>
  3594. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3595. <exception name="IOException" type="java.io.IOException"/>
  3596. <doc>
  3597. <![CDATA[Copy files between FileSystems.]]>
  3598. </doc>
  3599. </method>
  3600. <method name="copy" return="boolean"
  3601. abstract="false" native="false" synchronized="false"
  3602. static="true" final="false" visibility="public"
  3603. deprecated="not deprecated">
  3604. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3605. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  3606. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3607. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3608. <param name="deleteSource" type="boolean"/>
  3609. <param name="overwrite" type="boolean"/>
  3610. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3611. <exception name="IOException" type="java.io.IOException"/>
  3612. </method>
  3613. <method name="copy" return="boolean"
  3614. abstract="false" native="false" synchronized="false"
  3615. static="true" final="false" visibility="public"
  3616. deprecated="not deprecated">
  3617. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3618. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3619. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3620. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3621. <param name="deleteSource" type="boolean"/>
  3622. <param name="overwrite" type="boolean"/>
  3623. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3624. <exception name="IOException" type="java.io.IOException"/>
  3625. <doc>
  3626. <![CDATA[Copy files between FileSystems.]]>
  3627. </doc>
  3628. </method>
  3629. <method name="copyMerge" return="boolean"
  3630. abstract="false" native="false" synchronized="false"
  3631. static="true" final="false" visibility="public"
  3632. deprecated="not deprecated">
  3633. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3634. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  3635. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3636. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  3637. <param name="deleteSource" type="boolean"/>
  3638. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3639. <param name="addString" type="java.lang.String"/>
  3640. <exception name="IOException" type="java.io.IOException"/>
  3641. <doc>
  3642. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  3643. </doc>
  3644. </method>
  3645. <method name="copy" return="boolean"
  3646. abstract="false" native="false" synchronized="false"
  3647. static="true" final="false" visibility="public"
  3648. deprecated="not deprecated">
  3649. <param name="src" type="java.io.File"/>
  3650. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  3651. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3652. <param name="deleteSource" type="boolean"/>
  3653. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3654. <exception name="IOException" type="java.io.IOException"/>
  3655. <doc>
  3656. <![CDATA[Copy local files to a FileSystem.]]>
  3657. </doc>
  3658. </method>
  3659. <method name="copy" return="boolean"
  3660. abstract="false" native="false" synchronized="false"
  3661. static="true" final="false" visibility="public"
  3662. deprecated="not deprecated">
  3663. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  3664. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3665. <param name="dst" type="java.io.File"/>
  3666. <param name="deleteSource" type="boolean"/>
  3667. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3668. <exception name="IOException" type="java.io.IOException"/>
  3669. <doc>
  3670. <![CDATA[Copy FileSystem files to local files.]]>
  3671. </doc>
  3672. </method>
  3673. <method name="makeShellPath" return="java.lang.String"
  3674. abstract="false" native="false" synchronized="false"
  3675. static="true" final="false" visibility="public"
  3676. deprecated="not deprecated">
  3677. <param name="filename" type="java.lang.String"/>
  3678. <exception name="IOException" type="java.io.IOException"/>
  3679. <doc>
  3680. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3681. @param filename The filename to convert
  3682. @return The unix pathname
  3683. @throws IOException on windows, there can be problems with the subprocess]]>
  3684. </doc>
  3685. </method>
  3686. <method name="makeShellPath" return="java.lang.String"
  3687. abstract="false" native="false" synchronized="false"
  3688. static="true" final="false" visibility="public"
  3689. deprecated="not deprecated">
  3690. <param name="file" type="java.io.File"/>
  3691. <exception name="IOException" type="java.io.IOException"/>
  3692. <doc>
  3693. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3694. @param file The filename to convert
  3695. @return The unix pathname
  3696. @throws IOException on windows, there can be problems with the subprocess]]>
  3697. </doc>
  3698. </method>
  3699. <method name="makeShellPath" return="java.lang.String"
  3700. abstract="false" native="false" synchronized="false"
  3701. static="true" final="false" visibility="public"
  3702. deprecated="not deprecated">
  3703. <param name="file" type="java.io.File"/>
  3704. <param name="makeCanonicalPath" type="boolean"/>
  3705. <exception name="IOException" type="java.io.IOException"/>
  3706. <doc>
  3707. <![CDATA[Convert a os-native filename to a path that works for the shell.
  3708. @param file The filename to convert
  3709. @param makeCanonicalPath
  3710. Whether to make canonical path for the file passed
  3711. @return The unix pathname
  3712. @throws IOException on windows, there can be problems with the subprocess]]>
  3713. </doc>
  3714. </method>
  3715. <method name="getDU" return="long"
  3716. abstract="false" native="false" synchronized="false"
  3717. static="true" final="false" visibility="public"
  3718. deprecated="not deprecated">
  3719. <param name="dir" type="java.io.File"/>
  3720. <doc>
  3721. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  3722. implementation.
  3723. @param dir
  3724. The input dir to get the disk space of this local dir
  3725. @return The total disk space of the input local directory]]>
  3726. </doc>
  3727. </method>
  3728. <method name="unZip"
  3729. abstract="false" native="false" synchronized="false"
  3730. static="true" final="false" visibility="public"
  3731. deprecated="not deprecated">
  3732. <param name="inFile" type="java.io.File"/>
  3733. <param name="unzipDir" type="java.io.File"/>
  3734. <exception name="IOException" type="java.io.IOException"/>
  3735. <doc>
  3736. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  3737. passed as the second parameter
  3738. @param inFile The zip file as input
  3739. @param unzipDir The unzip directory where to unzip the zip file.
  3740. @throws IOException]]>
  3741. </doc>
  3742. </method>
  3743. <method name="unTar"
  3744. abstract="false" native="false" synchronized="false"
  3745. static="true" final="false" visibility="public"
  3746. deprecated="not deprecated">
  3747. <param name="inFile" type="java.io.File"/>
  3748. <param name="untarDir" type="java.io.File"/>
  3749. <exception name="IOException" type="java.io.IOException"/>
  3750. <doc>
  3751. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  3752. passed as the second parameter
  3753. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  3754. @param inFile The tar file as input.
  3755. @param untarDir The untar directory where to untar the tar file.
  3756. @throws IOException]]>
  3757. </doc>
  3758. </method>
  3759. <method name="symLink" return="int"
  3760. abstract="false" native="false" synchronized="false"
  3761. static="true" final="false" visibility="public"
  3762. deprecated="not deprecated">
  3763. <param name="target" type="java.lang.String"/>
  3764. <param name="linkname" type="java.lang.String"/>
  3765. <exception name="IOException" type="java.io.IOException"/>
  3766. <doc>
  3767. <![CDATA[Create a soft link between a src and destination
  3768. only on a local disk. HDFS does not support this
  3769. @param target the target for symlink
  3770. @param linkname the symlink
  3771. @return value returned by the command]]>
  3772. </doc>
  3773. </method>
  3774. <method name="chmod" return="int"
  3775. abstract="false" native="false" synchronized="false"
  3776. static="true" final="false" visibility="public"
  3777. deprecated="not deprecated">
  3778. <param name="filename" type="java.lang.String"/>
  3779. <param name="perm" type="java.lang.String"/>
  3780. <exception name="IOException" type="java.io.IOException"/>
  3781. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  3782. <doc>
  3783. <![CDATA[Change the permissions on a filename.
  3784. @param filename the name of the file to change
  3785. @param perm the permission string
  3786. @return the exit code from the command
  3787. @throws IOException
  3788. @throws InterruptedException]]>
  3789. </doc>
  3790. </method>
  3791. <method name="createLocalTempFile" return="java.io.File"
  3792. abstract="false" native="false" synchronized="false"
  3793. static="true" final="true" visibility="public"
  3794. deprecated="not deprecated">
  3795. <param name="basefile" type="java.io.File"/>
  3796. <param name="prefix" type="java.lang.String"/>
  3797. <param name="isDeleteOnExit" type="boolean"/>
  3798. <exception name="IOException" type="java.io.IOException"/>
  3799. <doc>
  3800. <![CDATA[Create a tmp file for a base file.
  3801. @param basefile the base file of the tmp
  3802. @param prefix file name prefix of tmp
  3803. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  3804. @return a newly created tmp file
  3805. @exception IOException If a tmp file cannot created
  3806. @see java.io.File#createTempFile(String, String, File)
  3807. @see java.io.File#deleteOnExit()]]>
  3808. </doc>
  3809. </method>
  3810. <method name="replaceFile"
  3811. abstract="false" native="false" synchronized="false"
  3812. static="true" final="false" visibility="public"
  3813. deprecated="not deprecated">
  3814. <param name="src" type="java.io.File"/>
  3815. <param name="target" type="java.io.File"/>
  3816. <exception name="IOException" type="java.io.IOException"/>
  3817. <doc>
  3818. <![CDATA[Move the src file to the name specified by target.
  3819. @param src the source file
  3820. @param target the target file
  3821. @exception IOException If this operation fails]]>
  3822. </doc>
  3823. </method>
  3824. <doc>
  3825. <![CDATA[A collection of file-processing util methods]]>
  3826. </doc>
  3827. </class>
  3828. <!-- end class org.apache.hadoop.fs.FileUtil -->
  3829. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  3830. <class name="FileUtil.HardLink" extends="java.lang.Object"
  3831. abstract="false"
  3832. static="true" final="false" visibility="public"
  3833. deprecated="not deprecated">
  3834. <constructor name="FileUtil.HardLink"
  3835. static="false" final="false" visibility="public"
  3836. deprecated="not deprecated">
  3837. </constructor>
  3838. <method name="createHardLink"
  3839. abstract="false" native="false" synchronized="false"
  3840. static="true" final="false" visibility="public"
  3841. deprecated="not deprecated">
  3842. <param name="target" type="java.io.File"/>
  3843. <param name="linkName" type="java.io.File"/>
  3844. <exception name="IOException" type="java.io.IOException"/>
  3845. <doc>
  3846. <![CDATA[Creates a hardlink]]>
  3847. </doc>
  3848. </method>
  3849. <method name="getLinkCount" return="int"
  3850. abstract="false" native="false" synchronized="false"
  3851. static="true" final="false" visibility="public"
  3852. deprecated="not deprecated">
  3853. <param name="fileName" type="java.io.File"/>
  3854. <exception name="IOException" type="java.io.IOException"/>
  3855. <doc>
  3856. <![CDATA[Retrieves the number of links to the specified file.]]>
  3857. </doc>
  3858. </method>
  3859. <doc>
  3860. <![CDATA[Class for creating hardlinks.
  3861. Supports Unix, Cygwin, WindXP.]]>
  3862. </doc>
  3863. </class>
  3864. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  3865. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  3866. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  3867. abstract="false"
  3868. static="false" final="false" visibility="public"
  3869. deprecated="not deprecated">
  3870. <constructor name="FilterFileSystem"
  3871. static="false" final="false" visibility="public"
  3872. deprecated="not deprecated">
  3873. </constructor>
  3874. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  3875. static="false" final="false" visibility="public"
  3876. deprecated="not deprecated">
  3877. </constructor>
  3878. <method name="initialize"
  3879. abstract="false" native="false" synchronized="false"
  3880. static="false" final="false" visibility="public"
  3881. deprecated="not deprecated">
  3882. <param name="name" type="java.net.URI"/>
  3883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3884. <exception name="IOException" type="java.io.IOException"/>
  3885. <doc>
  3886. <![CDATA[Called after a new FileSystem instance is constructed.
  3887. @param name a uri whose authority section names the host, port, etc.
  3888. for this FileSystem
  3889. @param conf the configuration]]>
  3890. </doc>
  3891. </method>
  3892. <method name="getUri" return="java.net.URI"
  3893. abstract="false" native="false" synchronized="false"
  3894. static="false" final="false" visibility="public"
  3895. deprecated="not deprecated">
  3896. <doc>
  3897. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  3898. </doc>
  3899. </method>
  3900. <method name="getName" return="java.lang.String"
  3901. abstract="false" native="false" synchronized="false"
  3902. static="false" final="false" visibility="public"
  3903. deprecated="call #getUri() instead.">
  3904. <doc>
  3905. <![CDATA[@deprecated call #getUri() instead.]]>
  3906. </doc>
  3907. </method>
  3908. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  3909. abstract="false" native="false" synchronized="false"
  3910. static="false" final="false" visibility="public"
  3911. deprecated="not deprecated">
  3912. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3913. <doc>
  3914. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  3915. </doc>
  3916. </method>
  3917. <method name="checkPath"
  3918. abstract="false" native="false" synchronized="false"
  3919. static="false" final="false" visibility="protected"
  3920. deprecated="not deprecated">
  3921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  3922. <doc>
  3923. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  3924. </doc>
  3925. </method>
  3926. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  3927. abstract="false" native="false" synchronized="false"
  3928. static="false" final="false" visibility="public"
  3929. deprecated="not deprecated">
  3930. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  3931. <param name="start" type="long"/>
  3932. <param name="len" type="long"/>
  3933. <exception name="IOException" type="java.io.IOException"/>
  3934. </method>
  3935. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3936. abstract="false" native="false" synchronized="false"
  3937. static="false" final="false" visibility="public"
  3938. deprecated="not deprecated">
  3939. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3940. <param name="bufferSize" type="int"/>
  3941. <exception name="IOException" type="java.io.IOException"/>
  3942. <doc>
  3943. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  3944. @param f the file name to open
  3945. @param bufferSize the size of the buffer to be used.]]>
  3946. </doc>
  3947. </method>
  3948. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3949. abstract="false" native="false" synchronized="false"
  3950. static="false" final="false" visibility="public"
  3951. deprecated="not deprecated">
  3952. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3953. <param name="bufferSize" type="int"/>
  3954. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3955. <exception name="IOException" type="java.io.IOException"/>
  3956. <doc>
  3957. <![CDATA[{@inheritDoc}]]>
  3958. </doc>
  3959. </method>
  3960. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3961. abstract="false" native="false" synchronized="false"
  3962. static="false" final="false" visibility="public"
  3963. deprecated="not deprecated">
  3964. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3965. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3966. <param name="overwrite" type="boolean"/>
  3967. <param name="bufferSize" type="int"/>
  3968. <param name="replication" type="short"/>
  3969. <param name="blockSize" type="long"/>
  3970. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3971. <exception name="IOException" type="java.io.IOException"/>
  3972. <doc>
  3973. <![CDATA[{@inheritDoc}]]>
  3974. </doc>
  3975. </method>
  3976. <method name="setReplication" return="boolean"
  3977. abstract="false" native="false" synchronized="false"
  3978. static="false" final="false" visibility="public"
  3979. deprecated="not deprecated">
  3980. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3981. <param name="replication" type="short"/>
  3982. <exception name="IOException" type="java.io.IOException"/>
  3983. <doc>
  3984. <![CDATA[Set replication for an existing file.
  3985. @param src file name
  3986. @param replication new replication
  3987. @throws IOException
  3988. @return true if successful;
  3989. false if file does not exist or is a directory]]>
  3990. </doc>
  3991. </method>
  3992. <method name="rename" return="boolean"
  3993. abstract="false" native="false" synchronized="false"
  3994. static="false" final="false" visibility="public"
  3995. deprecated="not deprecated">
  3996. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3997. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3998. <exception name="IOException" type="java.io.IOException"/>
  3999. <doc>
  4000. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  4001. or remote DFS.]]>
  4002. </doc>
  4003. </method>
  4004. <method name="delete" return="boolean"
  4005. abstract="false" native="false" synchronized="false"
  4006. static="false" final="false" visibility="public"
  4007. deprecated="not deprecated">
  4008. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4009. <exception name="IOException" type="java.io.IOException"/>
  4010. <doc>
  4011. <![CDATA[Delete a file]]>
  4012. </doc>
  4013. </method>
  4014. <method name="delete" return="boolean"
  4015. abstract="false" native="false" synchronized="false"
  4016. static="false" final="false" visibility="public"
  4017. deprecated="not deprecated">
  4018. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4019. <param name="recursive" type="boolean"/>
  4020. <exception name="IOException" type="java.io.IOException"/>
  4021. <doc>
  4022. <![CDATA[Delete a file]]>
  4023. </doc>
  4024. </method>
  4025. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  4026. abstract="false" native="false" synchronized="false"
  4027. static="false" final="false" visibility="public"
  4028. deprecated="not deprecated">
  4029. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4030. <exception name="IOException" type="java.io.IOException"/>
  4031. <doc>
  4032. <![CDATA[List files in a directory.]]>
  4033. </doc>
  4034. </method>
  4035. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  4036. abstract="false" native="false" synchronized="false"
  4037. static="false" final="false" visibility="public"
  4038. deprecated="not deprecated">
  4039. </method>
  4040. <method name="setWorkingDirectory"
  4041. abstract="false" native="false" synchronized="false"
  4042. static="false" final="false" visibility="public"
  4043. deprecated="not deprecated">
  4044. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  4045. <doc>
  4046. <![CDATA[Set the current working directory for the given file system. All relative
  4047. paths will be resolved relative to it.
  4048. @param newDir]]>
  4049. </doc>
  4050. </method>
  4051. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4052. abstract="false" native="false" synchronized="false"
  4053. static="false" final="false" visibility="public"
  4054. deprecated="not deprecated">
  4055. <doc>
  4056. <![CDATA[Get the current working directory for the given file system
  4057. @return the directory pathname]]>
  4058. </doc>
  4059. </method>
  4060. <method name="mkdirs" return="boolean"
  4061. abstract="false" native="false" synchronized="false"
  4062. static="false" final="false" visibility="public"
  4063. deprecated="not deprecated">
  4064. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4065. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4066. <exception name="IOException" type="java.io.IOException"/>
  4067. <doc>
  4068. <![CDATA[{@inheritDoc}]]>
  4069. </doc>
  4070. </method>
  4071. <method name="copyFromLocalFile"
  4072. abstract="false" native="false" synchronized="false"
  4073. static="false" final="false" visibility="public"
  4074. deprecated="not deprecated">
  4075. <param name="delSrc" type="boolean"/>
  4076. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4077. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4078. <exception name="IOException" type="java.io.IOException"/>
  4079. <doc>
  4080. <![CDATA[The src file is on the local disk. Add it to FS at
  4081. the given dst name.
  4082. delSrc indicates if the source should be removed]]>
  4083. </doc>
  4084. </method>
  4085. <method name="copyToLocalFile"
  4086. abstract="false" native="false" synchronized="false"
  4087. static="false" final="false" visibility="public"
  4088. deprecated="not deprecated">
  4089. <param name="delSrc" type="boolean"/>
  4090. <param name="src" type="org.apache.hadoop.fs.Path"/>
  4091. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  4092. <exception name="IOException" type="java.io.IOException"/>
  4093. <doc>
  4094. <![CDATA[The src file is under FS, and the dst is on the local disk.
  4095. Copy it from FS control to the local dst name.
  4096. delSrc indicates if the src will be removed or not.]]>
  4097. </doc>
  4098. </method>
  4099. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  4100. abstract="false" native="false" synchronized="false"
  4101. static="false" final="false" visibility="public"
  4102. deprecated="not deprecated">
  4103. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4104. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4105. <exception name="IOException" type="java.io.IOException"/>
  4106. <doc>
  4107. <![CDATA[Returns a local File that the user can write output to. The caller
  4108. provides both the eventual FS target name and the local working
  4109. file. If the FS is local, we write directly into the target. If
  4110. the FS is remote, we write into the tmp local area.]]>
  4111. </doc>
  4112. </method>
  4113. <method name="completeLocalOutput"
  4114. abstract="false" native="false" synchronized="false"
  4115. static="false" final="false" visibility="public"
  4116. deprecated="not deprecated">
  4117. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  4118. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  4119. <exception name="IOException" type="java.io.IOException"/>
  4120. <doc>
  4121. <![CDATA[Called when we're all done writing to the target. A local FS will
  4122. do nothing, because we've written to exactly the right place. A remote
  4123. FS will copy the contents of tmpLocalFile to the correct target at
  4124. fsOutputFile.]]>
  4125. </doc>
  4126. </method>
  4127. <method name="getDefaultBlockSize" return="long"
  4128. abstract="false" native="false" synchronized="false"
  4129. static="false" final="false" visibility="public"
  4130. deprecated="not deprecated">
  4131. <doc>
  4132. <![CDATA[Return the number of bytes that large input files should be optimally
  4133. be split into to minimize i/o time.]]>
  4134. </doc>
  4135. </method>
  4136. <method name="getDefaultReplication" return="short"
  4137. abstract="false" native="false" synchronized="false"
  4138. static="false" final="false" visibility="public"
  4139. deprecated="not deprecated">
  4140. <doc>
  4141. <![CDATA[Get the default replication.]]>
  4142. </doc>
  4143. </method>
  4144. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4145. abstract="false" native="false" synchronized="false"
  4146. static="false" final="false" visibility="public"
  4147. deprecated="not deprecated">
  4148. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4149. <exception name="IOException" type="java.io.IOException"/>
  4150. <doc>
  4151. <![CDATA[Get file status.]]>
  4152. </doc>
  4153. </method>
  4154. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  4155. abstract="false" native="false" synchronized="false"
  4156. static="false" final="false" visibility="public"
  4157. deprecated="not deprecated">
  4158. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4159. <exception name="IOException" type="java.io.IOException"/>
  4160. <doc>
  4161. <![CDATA[{@inheritDoc}]]>
  4162. </doc>
  4163. </method>
  4164. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  4165. abstract="false" native="false" synchronized="false"
  4166. static="false" final="false" visibility="public"
  4167. deprecated="not deprecated">
  4168. </method>
  4169. <method name="close"
  4170. abstract="false" native="false" synchronized="false"
  4171. static="false" final="false" visibility="public"
  4172. deprecated="not deprecated">
  4173. <exception name="IOException" type="java.io.IOException"/>
  4174. </method>
  4175. <method name="setOwner"
  4176. abstract="false" native="false" synchronized="false"
  4177. static="false" final="false" visibility="public"
  4178. deprecated="not deprecated">
  4179. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4180. <param name="username" type="java.lang.String"/>
  4181. <param name="groupname" type="java.lang.String"/>
  4182. <exception name="IOException" type="java.io.IOException"/>
  4183. <doc>
  4184. <![CDATA[{@inheritDoc}]]>
  4185. </doc>
  4186. </method>
  4187. <method name="setPermission"
  4188. abstract="false" native="false" synchronized="false"
  4189. static="false" final="false" visibility="public"
  4190. deprecated="not deprecated">
  4191. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4192. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4193. <exception name="IOException" type="java.io.IOException"/>
  4194. <doc>
  4195. <![CDATA[{@inheritDoc}]]>
  4196. </doc>
  4197. </method>
  4198. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4199. transient="false" volatile="false"
  4200. static="false" final="false" visibility="protected"
  4201. deprecated="not deprecated">
  4202. </field>
  4203. <doc>
  4204. <![CDATA[A <code>FilterFileSystem</code> contains
  4205. some other file system, which it uses as
  4206. its basic file system, possibly transforming
  4207. the data along the way or providing additional
  4208. functionality. The class <code>FilterFileSystem</code>
  4209. itself simply overrides all methods of
  4210. <code>FileSystem</code> with versions that
  4211. pass all requests to the contained file
  4212. system. Subclasses of <code>FilterFileSystem</code>
  4213. may further override some of these methods
  4214. and may also provide additional methods
  4215. and fields.]]>
  4216. </doc>
  4217. </class>
  4218. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  4219. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  4220. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  4221. abstract="false"
  4222. static="false" final="false" visibility="public"
  4223. deprecated="not deprecated">
  4224. <implements name="org.apache.hadoop.fs.Seekable"/>
  4225. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4226. <constructor name="FSDataInputStream" type="java.io.InputStream"
  4227. static="false" final="false" visibility="public"
  4228. deprecated="not deprecated">
  4229. <exception name="IOException" type="java.io.IOException"/>
  4230. </constructor>
  4231. <method name="seek"
  4232. abstract="false" native="false" synchronized="true"
  4233. static="false" final="false" visibility="public"
  4234. deprecated="not deprecated">
  4235. <param name="desired" type="long"/>
  4236. <exception name="IOException" type="java.io.IOException"/>
  4237. </method>
  4238. <method name="getPos" return="long"
  4239. abstract="false" native="false" synchronized="false"
  4240. static="false" final="false" visibility="public"
  4241. deprecated="not deprecated">
  4242. <exception name="IOException" type="java.io.IOException"/>
  4243. </method>
  4244. <method name="read" return="int"
  4245. abstract="false" native="false" synchronized="false"
  4246. static="false" final="false" visibility="public"
  4247. deprecated="not deprecated">
  4248. <param name="position" type="long"/>
  4249. <param name="buffer" type="byte[]"/>
  4250. <param name="offset" type="int"/>
  4251. <param name="length" type="int"/>
  4252. <exception name="IOException" type="java.io.IOException"/>
  4253. </method>
  4254. <method name="readFully"
  4255. abstract="false" native="false" synchronized="false"
  4256. static="false" final="false" visibility="public"
  4257. deprecated="not deprecated">
  4258. <param name="position" type="long"/>
  4259. <param name="buffer" type="byte[]"/>
  4260. <param name="offset" type="int"/>
  4261. <param name="length" type="int"/>
  4262. <exception name="IOException" type="java.io.IOException"/>
  4263. </method>
  4264. <method name="readFully"
  4265. abstract="false" native="false" synchronized="false"
  4266. static="false" final="false" visibility="public"
  4267. deprecated="not deprecated">
  4268. <param name="position" type="long"/>
  4269. <param name="buffer" type="byte[]"/>
  4270. <exception name="IOException" type="java.io.IOException"/>
  4271. </method>
  4272. <method name="seekToNewSource" return="boolean"
  4273. abstract="false" native="false" synchronized="false"
  4274. static="false" final="false" visibility="public"
  4275. deprecated="not deprecated">
  4276. <param name="targetPos" type="long"/>
  4277. <exception name="IOException" type="java.io.IOException"/>
  4278. </method>
  4279. <doc>
  4280. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  4281. and buffers input through a {@link BufferedInputStream}.]]>
  4282. </doc>
  4283. </class>
  4284. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  4285. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  4286. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  4287. abstract="false"
  4288. static="false" final="false" visibility="public"
  4289. deprecated="not deprecated">
  4290. <implements name="org.apache.hadoop.fs.Syncable"/>
  4291. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  4292. static="false" final="false" visibility="public"
  4293. deprecated="not deprecated">
  4294. <exception name="IOException" type="java.io.IOException"/>
  4295. </constructor>
  4296. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  4297. static="false" final="false" visibility="public"
  4298. deprecated="not deprecated">
  4299. <exception name="IOException" type="java.io.IOException"/>
  4300. </constructor>
  4301. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics, long"
  4302. static="false" final="false" visibility="public"
  4303. deprecated="not deprecated">
  4304. <exception name="IOException" type="java.io.IOException"/>
  4305. </constructor>
  4306. <method name="getPos" return="long"
  4307. abstract="false" native="false" synchronized="false"
  4308. static="false" final="false" visibility="public"
  4309. deprecated="not deprecated">
  4310. <exception name="IOException" type="java.io.IOException"/>
  4311. </method>
  4312. <method name="close"
  4313. abstract="false" native="false" synchronized="false"
  4314. static="false" final="false" visibility="public"
  4315. deprecated="not deprecated">
  4316. <exception name="IOException" type="java.io.IOException"/>
  4317. </method>
  4318. <method name="getWrappedStream" return="java.io.OutputStream"
  4319. abstract="false" native="false" synchronized="false"
  4320. static="false" final="false" visibility="public"
  4321. deprecated="not deprecated">
  4322. </method>
  4323. <method name="sync"
  4324. abstract="false" native="false" synchronized="false"
  4325. static="false" final="false" visibility="public"
  4326. deprecated="not deprecated">
  4327. <exception name="IOException" type="java.io.IOException"/>
  4328. <doc>
  4329. <![CDATA[{@inheritDoc}]]>
  4330. </doc>
  4331. </method>
  4332. <doc>
  4333. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  4334. buffers output through a {@link BufferedOutputStream} and creates a checksum
  4335. file.]]>
  4336. </doc>
  4337. </class>
  4338. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  4339. <!-- start class org.apache.hadoop.fs.FSError -->
  4340. <class name="FSError" extends="java.lang.Error"
  4341. abstract="false"
  4342. static="false" final="false" visibility="public"
  4343. deprecated="not deprecated">
  4344. <doc>
  4345. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  4346. in the native filesystem.]]>
  4347. </doc>
  4348. </class>
  4349. <!-- end class org.apache.hadoop.fs.FSError -->
  4350. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  4351. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  4352. abstract="true"
  4353. static="false" final="false" visibility="public"
  4354. deprecated="not deprecated">
  4355. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  4356. static="false" final="false" visibility="protected"
  4357. deprecated="not deprecated">
  4358. <doc>
  4359. <![CDATA[Constructor
  4360. @param file The name of the file to be read
  4361. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  4362. </doc>
  4363. </constructor>
  4364. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  4365. static="false" final="false" visibility="protected"
  4366. deprecated="not deprecated">
  4367. <doc>
  4368. <![CDATA[Constructor
  4369. @param file The name of the file to be read
  4370. @param numOfRetries Number of read retries when ChecksumError occurs
  4371. @param sum the type of Checksum engine
  4372. @param chunkSize maximun chunk size
  4373. @param checksumSize the number byte of each checksum]]>
  4374. </doc>
  4375. </constructor>
  4376. <method name="readChunk" return="int"
  4377. abstract="true" native="false" synchronized="false"
  4378. static="false" final="false" visibility="protected"
  4379. deprecated="not deprecated">
  4380. <param name="pos" type="long"/>
  4381. <param name="buf" type="byte[]"/>
  4382. <param name="offset" type="int"/>
  4383. <param name="len" type="int"/>
  4384. <param name="checksum" type="byte[]"/>
  4385. <exception name="IOException" type="java.io.IOException"/>
  4386. <doc>
  4387. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  4388. and checksum into <code>checksum</code>.
  4389. The method is used for implementing read, therefore, it should be optimized
  4390. for sequential reading
  4391. @param pos chunkPos
  4392. @param buf desitination buffer
  4393. @param offset offset in buf at which to store data
  4394. @param len maximun number of bytes to read
  4395. @return number of bytes read]]>
  4396. </doc>
  4397. </method>
  4398. <method name="getChunkPosition" return="long"
  4399. abstract="true" native="false" synchronized="false"
  4400. static="false" final="false" visibility="protected"
  4401. deprecated="not deprecated">
  4402. <param name="pos" type="long"/>
  4403. <doc>
  4404. <![CDATA[Return position of beginning of chunk containing pos.
  4405. @param pos a postion in the file
  4406. @return the starting position of the chunk which contains the byte]]>
  4407. </doc>
  4408. </method>
  4409. <method name="needChecksum" return="boolean"
  4410. abstract="false" native="false" synchronized="true"
  4411. static="false" final="false" visibility="protected"
  4412. deprecated="not deprecated">
  4413. <doc>
  4414. <![CDATA[Return true if there is a need for checksum verification]]>
  4415. </doc>
  4416. </method>
  4417. <method name="read" return="int"
  4418. abstract="false" native="false" synchronized="true"
  4419. static="false" final="false" visibility="public"
  4420. deprecated="not deprecated">
  4421. <exception name="IOException" type="java.io.IOException"/>
  4422. <doc>
  4423. <![CDATA[Read one checksum-verified byte
  4424. @return the next byte of data, or <code>-1</code> if the end of the
  4425. stream is reached.
  4426. @exception IOException if an I/O error occurs.]]>
  4427. </doc>
  4428. </method>
  4429. <method name="read" return="int"
  4430. abstract="false" native="false" synchronized="true"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. <param name="b" type="byte[]"/>
  4434. <param name="off" type="int"/>
  4435. <param name="len" type="int"/>
  4436. <exception name="IOException" type="java.io.IOException"/>
  4437. <doc>
  4438. <![CDATA[Read checksum verified bytes from this byte-input stream into
  4439. the specified byte array, starting at the given offset.
  4440. <p> This method implements the general contract of the corresponding
  4441. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  4442. the <code>{@link InputStream}</code> class. As an additional
  4443. convenience, it attempts to read as many bytes as possible by repeatedly
  4444. invoking the <code>read</code> method of the underlying stream. This
  4445. iterated <code>read</code> continues until one of the following
  4446. conditions becomes true: <ul>
  4447. <li> The specified number of bytes have been read,
  4448. <li> The <code>read</code> method of the underlying stream returns
  4449. <code>-1</code>, indicating end-of-file.
  4450. </ul> If the first <code>read</code> on the underlying stream returns
  4451. <code>-1</code> to indicate end-of-file then this method returns
  4452. <code>-1</code>. Otherwise this method returns the number of bytes
  4453. actually read.
  4454. @param b destination buffer.
  4455. @param off offset at which to start storing bytes.
  4456. @param len maximum number of bytes to read.
  4457. @return the number of bytes read, or <code>-1</code> if the end of
  4458. the stream has been reached.
  4459. @exception IOException if an I/O error occurs.
  4460. ChecksumException if any checksum error occurs]]>
  4461. </doc>
  4462. </method>
  4463. <method name="checksum2long" return="long"
  4464. abstract="false" native="false" synchronized="false"
  4465. static="true" final="false" visibility="public"
  4466. deprecated="not deprecated">
  4467. <param name="checksum" type="byte[]"/>
  4468. <doc>
  4469. <![CDATA[Convert a checksum byte array to a long]]>
  4470. </doc>
  4471. </method>
  4472. <method name="getPos" return="long"
  4473. abstract="false" native="false" synchronized="true"
  4474. static="false" final="false" visibility="public"
  4475. deprecated="not deprecated">
  4476. <exception name="IOException" type="java.io.IOException"/>
  4477. </method>
  4478. <method name="available" return="int"
  4479. abstract="false" native="false" synchronized="true"
  4480. static="false" final="false" visibility="public"
  4481. deprecated="not deprecated">
  4482. <exception name="IOException" type="java.io.IOException"/>
  4483. </method>
  4484. <method name="skip" return="long"
  4485. abstract="false" native="false" synchronized="true"
  4486. static="false" final="false" visibility="public"
  4487. deprecated="not deprecated">
  4488. <param name="n" type="long"/>
  4489. <exception name="IOException" type="java.io.IOException"/>
  4490. <doc>
  4491. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  4492. input stream.
  4493. <p>This method may skip more bytes than are remaining in the backing
  4494. file. This produces no exception and the number of bytes skipped
  4495. may include some number of bytes that were beyond the EOF of the
  4496. backing file. Attempting to read from the stream after skipping past
  4497. the end will result in -1 indicating the end of the file.
  4498. <p>If <code>n</code> is negative, no bytes are skipped.
  4499. @param n the number of bytes to be skipped.
  4500. @return the actual number of bytes skipped.
  4501. @exception IOException if an I/O error occurs.
  4502. ChecksumException if the chunk to skip to is corrupted]]>
  4503. </doc>
  4504. </method>
  4505. <method name="seek"
  4506. abstract="false" native="false" synchronized="true"
  4507. static="false" final="false" visibility="public"
  4508. deprecated="not deprecated">
  4509. <param name="pos" type="long"/>
  4510. <exception name="IOException" type="java.io.IOException"/>
  4511. <doc>
  4512. <![CDATA[Seek to the given position in the stream.
  4513. The next read() will be from that position.
  4514. <p>This method may seek past the end of the file.
  4515. This produces no exception and an attempt to read from
  4516. the stream will result in -1 indicating the end of the file.
  4517. @param pos the postion to seek to.
  4518. @exception IOException if an I/O error occurs.
  4519. ChecksumException if the chunk to seek to is corrupted]]>
  4520. </doc>
  4521. </method>
  4522. <method name="readFully" return="int"
  4523. abstract="false" native="false" synchronized="false"
  4524. static="true" final="false" visibility="protected"
  4525. deprecated="not deprecated">
  4526. <param name="stm" type="java.io.InputStream"/>
  4527. <param name="buf" type="byte[]"/>
  4528. <param name="offset" type="int"/>
  4529. <param name="len" type="int"/>
  4530. <exception name="IOException" type="java.io.IOException"/>
  4531. <doc>
  4532. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  4533. <code>stm</code>
  4534. @param stm an input stream
  4535. @param buf destiniation buffer
  4536. @param offset offset at which to store data
  4537. @param len number of bytes to read
  4538. @return actual number of bytes read
  4539. @throws IOException if there is any IO error]]>
  4540. </doc>
  4541. </method>
  4542. <method name="set"
  4543. abstract="false" native="false" synchronized="true"
  4544. static="false" final="true" visibility="protected"
  4545. deprecated="not deprecated">
  4546. <param name="sum" type="java.util.zip.Checksum"/>
  4547. <param name="maxChunkSize" type="int"/>
  4548. <param name="checksumSize" type="int"/>
  4549. <doc>
  4550. <![CDATA[Set the checksum related parameters
  4551. @param sum which type of checksum to use
  4552. @param maxChunkSize maximun chunk size
  4553. @param checksumSize checksum size]]>
  4554. </doc>
  4555. </method>
  4556. <method name="markSupported" return="boolean"
  4557. abstract="false" native="false" synchronized="false"
  4558. static="false" final="true" visibility="public"
  4559. deprecated="not deprecated">
  4560. </method>
  4561. <method name="mark"
  4562. abstract="false" native="false" synchronized="false"
  4563. static="false" final="true" visibility="public"
  4564. deprecated="not deprecated">
  4565. <param name="readlimit" type="int"/>
  4566. </method>
  4567. <method name="reset"
  4568. abstract="false" native="false" synchronized="false"
  4569. static="false" final="true" visibility="public"
  4570. deprecated="not deprecated">
  4571. <exception name="IOException" type="java.io.IOException"/>
  4572. </method>
  4573. <field name="LOG" type="org.apache.commons.logging.Log"
  4574. transient="false" volatile="false"
  4575. static="true" final="true" visibility="public"
  4576. deprecated="not deprecated">
  4577. </field>
  4578. <field name="file" type="org.apache.hadoop.fs.Path"
  4579. transient="false" volatile="false"
  4580. static="false" final="false" visibility="protected"
  4581. deprecated="not deprecated">
  4582. <doc>
  4583. <![CDATA[The file name from which data is read from]]>
  4584. </doc>
  4585. </field>
  4586. <doc>
  4587. <![CDATA[This is a generic input stream for verifying checksums for
  4588. data before it is read by a user.]]>
  4589. </doc>
  4590. </class>
  4591. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  4592. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  4593. <class name="FSInputStream" extends="java.io.InputStream"
  4594. abstract="true"
  4595. static="false" final="false" visibility="public"
  4596. deprecated="not deprecated">
  4597. <implements name="org.apache.hadoop.fs.Seekable"/>
  4598. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  4599. <constructor name="FSInputStream"
  4600. static="false" final="false" visibility="public"
  4601. deprecated="not deprecated">
  4602. </constructor>
  4603. <method name="seek"
  4604. abstract="true" native="false" synchronized="false"
  4605. static="false" final="false" visibility="public"
  4606. deprecated="not deprecated">
  4607. <param name="pos" type="long"/>
  4608. <exception name="IOException" type="java.io.IOException"/>
  4609. <doc>
  4610. <![CDATA[Seek to the given offset from the start of the file.
  4611. The next read() will be from that location. Can't
  4612. seek past the end of the file.]]>
  4613. </doc>
  4614. </method>
  4615. <method name="getPos" return="long"
  4616. abstract="true" native="false" synchronized="false"
  4617. static="false" final="false" visibility="public"
  4618. deprecated="not deprecated">
  4619. <exception name="IOException" type="java.io.IOException"/>
  4620. <doc>
  4621. <![CDATA[Return the current offset from the start of the file]]>
  4622. </doc>
  4623. </method>
  4624. <method name="seekToNewSource" return="boolean"
  4625. abstract="true" native="false" synchronized="false"
  4626. static="false" final="false" visibility="public"
  4627. deprecated="not deprecated">
  4628. <param name="targetPos" type="long"/>
  4629. <exception name="IOException" type="java.io.IOException"/>
  4630. <doc>
  4631. <![CDATA[Seeks a different copy of the data. Returns true if
  4632. found a new source, false otherwise.]]>
  4633. </doc>
  4634. </method>
  4635. <method name="read" return="int"
  4636. abstract="false" native="false" synchronized="false"
  4637. static="false" final="false" visibility="public"
  4638. deprecated="not deprecated">
  4639. <param name="position" type="long"/>
  4640. <param name="buffer" type="byte[]"/>
  4641. <param name="offset" type="int"/>
  4642. <param name="length" type="int"/>
  4643. <exception name="IOException" type="java.io.IOException"/>
  4644. </method>
  4645. <method name="readFully"
  4646. abstract="false" native="false" synchronized="false"
  4647. static="false" final="false" visibility="public"
  4648. deprecated="not deprecated">
  4649. <param name="position" type="long"/>
  4650. <param name="buffer" type="byte[]"/>
  4651. <param name="offset" type="int"/>
  4652. <param name="length" type="int"/>
  4653. <exception name="IOException" type="java.io.IOException"/>
  4654. </method>
  4655. <method name="readFully"
  4656. abstract="false" native="false" synchronized="false"
  4657. static="false" final="false" visibility="public"
  4658. deprecated="not deprecated">
  4659. <param name="position" type="long"/>
  4660. <param name="buffer" type="byte[]"/>
  4661. <exception name="IOException" type="java.io.IOException"/>
  4662. </method>
  4663. <doc>
  4664. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  4665. of RAF-style seek ability.]]>
  4666. </doc>
  4667. </class>
  4668. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  4669. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  4670. <class name="FSOutputSummer" extends="java.io.OutputStream"
  4671. abstract="true"
  4672. static="false" final="false" visibility="public"
  4673. deprecated="not deprecated">
  4674. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  4675. static="false" final="false" visibility="protected"
  4676. deprecated="not deprecated">
  4677. </constructor>
  4678. <method name="writeChunk"
  4679. abstract="true" native="false" synchronized="false"
  4680. static="false" final="false" visibility="protected"
  4681. deprecated="not deprecated">
  4682. <param name="b" type="byte[]"/>
  4683. <param name="offset" type="int"/>
  4684. <param name="len" type="int"/>
  4685. <param name="checksum" type="byte[]"/>
  4686. <exception name="IOException" type="java.io.IOException"/>
  4687. </method>
  4688. <method name="write"
  4689. abstract="false" native="false" synchronized="true"
  4690. static="false" final="false" visibility="public"
  4691. deprecated="not deprecated">
  4692. <param name="b" type="int"/>
  4693. <exception name="IOException" type="java.io.IOException"/>
  4694. <doc>
  4695. <![CDATA[Write one byte]]>
  4696. </doc>
  4697. </method>
  4698. <method name="write"
  4699. abstract="false" native="false" synchronized="true"
  4700. static="false" final="false" visibility="public"
  4701. deprecated="not deprecated">
  4702. <param name="b" type="byte[]"/>
  4703. <param name="off" type="int"/>
  4704. <param name="len" type="int"/>
  4705. <exception name="IOException" type="java.io.IOException"/>
  4706. <doc>
  4707. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  4708. starting at offset <code>off</code> and generate a checksum for
  4709. each data chunk.
  4710. <p> This method stores bytes from the given array into this
  4711. stream's buffer before it gets checksumed. The buffer gets checksumed
  4712. and flushed to the underlying output stream when all data
  4713. in a checksum chunk are in the buffer. If the buffer is empty and
  4714. requested length is at least as large as the size of next checksum chunk
  4715. size, this method will checksum and write the chunk directly
  4716. to the underlying output stream. Thus it avoids uneccessary data copy.
  4717. @param b the data.
  4718. @param off the start offset in the data.
  4719. @param len the number of bytes to write.
  4720. @exception IOException if an I/O error occurs.]]>
  4721. </doc>
  4722. </method>
  4723. <method name="flushBuffer"
  4724. abstract="false" native="false" synchronized="true"
  4725. static="false" final="false" visibility="protected"
  4726. deprecated="not deprecated">
  4727. <exception name="IOException" type="java.io.IOException"/>
  4728. </method>
  4729. <method name="flushBuffer"
  4730. abstract="false" native="false" synchronized="true"
  4731. static="false" final="false" visibility="protected"
  4732. deprecated="not deprecated">
  4733. <param name="keep" type="boolean"/>
  4734. <exception name="IOException" type="java.io.IOException"/>
  4735. </method>
  4736. <method name="convertToByteStream" return="byte[]"
  4737. abstract="false" native="false" synchronized="false"
  4738. static="true" final="false" visibility="public"
  4739. deprecated="not deprecated">
  4740. <param name="sum" type="java.util.zip.Checksum"/>
  4741. <param name="checksumSize" type="int"/>
  4742. <doc>
  4743. <![CDATA[Converts a checksum integer value to a byte stream]]>
  4744. </doc>
  4745. </method>
  4746. <method name="resetChecksumChunk"
  4747. abstract="false" native="false" synchronized="true"
  4748. static="false" final="false" visibility="protected"
  4749. deprecated="not deprecated">
  4750. <param name="size" type="int"/>
  4751. <doc>
  4752. <![CDATA[Resets existing buffer with a new one of the specified size.]]>
  4753. </doc>
  4754. </method>
  4755. <doc>
  4756. <![CDATA[This is a generic output stream for generating checksums for
  4757. data before it is written to the underlying stream]]>
  4758. </doc>
  4759. </class>
  4760. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  4761. <!-- start class org.apache.hadoop.fs.FsShell -->
  4762. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  4763. abstract="false"
  4764. static="false" final="false" visibility="public"
  4765. deprecated="not deprecated">
  4766. <implements name="org.apache.hadoop.util.Tool"/>
  4767. <constructor name="FsShell"
  4768. static="false" final="false" visibility="public"
  4769. deprecated="not deprecated">
  4770. </constructor>
  4771. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  4772. static="false" final="false" visibility="public"
  4773. deprecated="not deprecated">
  4774. </constructor>
  4775. <method name="init"
  4776. abstract="false" native="false" synchronized="false"
  4777. static="false" final="false" visibility="protected"
  4778. deprecated="not deprecated">
  4779. <exception name="IOException" type="java.io.IOException"/>
  4780. </method>
  4781. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  4782. abstract="false" native="false" synchronized="false"
  4783. static="false" final="false" visibility="public"
  4784. deprecated="not deprecated">
  4785. <doc>
  4786. <![CDATA[Returns the Trash object associated with this shell.]]>
  4787. </doc>
  4788. </method>
  4789. <method name="byteDesc" return="java.lang.String"
  4790. abstract="false" native="false" synchronized="false"
  4791. static="true" final="false" visibility="public"
  4792. deprecated="not deprecated">
  4793. <param name="len" type="long"/>
  4794. <doc>
  4795. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  4796. </doc>
  4797. </method>
  4798. <method name="limitDecimalTo2" return="java.lang.String"
  4799. abstract="false" native="false" synchronized="true"
  4800. static="true" final="false" visibility="public"
  4801. deprecated="not deprecated">
  4802. <param name="d" type="double"/>
  4803. </method>
  4804. <method name="run" return="int"
  4805. abstract="false" native="false" synchronized="false"
  4806. static="false" final="false" visibility="public"
  4807. deprecated="not deprecated">
  4808. <param name="argv" type="java.lang.String[]"/>
  4809. <exception name="Exception" type="java.lang.Exception"/>
  4810. <doc>
  4811. <![CDATA[run]]>
  4812. </doc>
  4813. </method>
  4814. <method name="close"
  4815. abstract="false" native="false" synchronized="false"
  4816. static="false" final="false" visibility="public"
  4817. deprecated="not deprecated">
  4818. <exception name="IOException" type="java.io.IOException"/>
  4819. </method>
  4820. <method name="main"
  4821. abstract="false" native="false" synchronized="false"
  4822. static="true" final="false" visibility="public"
  4823. deprecated="not deprecated">
  4824. <param name="argv" type="java.lang.String[]"/>
  4825. <exception name="Exception" type="java.lang.Exception"/>
  4826. <doc>
  4827. <![CDATA[main() has some simple utility methods]]>
  4828. </doc>
  4829. </method>
  4830. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  4831. transient="false" volatile="false"
  4832. static="false" final="false" visibility="protected"
  4833. deprecated="not deprecated">
  4834. </field>
  4835. <field name="dateForm" type="java.text.SimpleDateFormat"
  4836. transient="false" volatile="false"
  4837. static="true" final="true" visibility="public"
  4838. deprecated="not deprecated">
  4839. </field>
  4840. <field name="modifFmt" type="java.text.SimpleDateFormat"
  4841. transient="false" volatile="false"
  4842. static="true" final="true" visibility="protected"
  4843. deprecated="not deprecated">
  4844. </field>
  4845. <doc>
  4846. <![CDATA[Provide command line access to a FileSystem.]]>
  4847. </doc>
  4848. </class>
  4849. <!-- end class org.apache.hadoop.fs.FsShell -->
  4850. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4851. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  4852. abstract="false"
  4853. static="false" final="false" visibility="public"
  4854. deprecated="not deprecated">
  4855. <implements name="java.net.URLStreamHandlerFactory"/>
  4856. <constructor name="FsUrlStreamHandlerFactory"
  4857. static="false" final="false" visibility="public"
  4858. deprecated="not deprecated">
  4859. </constructor>
  4860. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  4861. static="false" final="false" visibility="public"
  4862. deprecated="not deprecated">
  4863. </constructor>
  4864. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  4865. abstract="false" native="false" synchronized="false"
  4866. static="false" final="false" visibility="public"
  4867. deprecated="not deprecated">
  4868. <param name="protocol" type="java.lang.String"/>
  4869. </method>
  4870. <doc>
  4871. <![CDATA[Factory for URL stream handlers.
  4872. There is only one handler whose job is to create UrlConnections. A
  4873. FsUrlConnection relies on FileSystem to choose the appropriate FS
  4874. implementation.
  4875. Before returning our handler, we make sure that FileSystem knows an
  4876. implementation for the requested scheme/protocol.]]>
  4877. </doc>
  4878. </class>
  4879. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  4880. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  4881. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  4882. abstract="false"
  4883. static="false" final="false" visibility="public"
  4884. deprecated="not deprecated">
  4885. <constructor name="HarFileSystem"
  4886. static="false" final="false" visibility="public"
  4887. deprecated="not deprecated">
  4888. <doc>
  4889. <![CDATA[public construction of harfilesystem]]>
  4890. </doc>
  4891. </constructor>
  4892. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  4893. static="false" final="false" visibility="public"
  4894. deprecated="not deprecated">
  4895. <doc>
  4896. <![CDATA[Constructor to create a HarFileSystem with an
  4897. underlying filesystem.
  4898. @param fs]]>
  4899. </doc>
  4900. </constructor>
  4901. <method name="initialize"
  4902. abstract="false" native="false" synchronized="false"
  4903. static="false" final="false" visibility="public"
  4904. deprecated="not deprecated">
  4905. <param name="name" type="java.net.URI"/>
  4906. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4907. <exception name="IOException" type="java.io.IOException"/>
  4908. <doc>
  4909. <![CDATA[Initialize a Har filesystem per har archive. The
  4910. archive home directory is the top level directory
  4911. in the filesystem that contains the HAR archive.
  4912. Be careful with this method, you do not want to go
  4913. on creating new Filesystem instances per call to
  4914. path.getFileSystem().
  4915. the uri of Har is
  4916. har://underlyingfsscheme-host:port/archivepath.
  4917. or
  4918. har:///archivepath. This assumes the underlying filesystem
  4919. to be used in case not specified.]]>
  4920. </doc>
  4921. </method>
  4922. <method name="getHarVersion" return="int"
  4923. abstract="false" native="false" synchronized="false"
  4924. static="false" final="false" visibility="public"
  4925. deprecated="not deprecated">
  4926. <exception name="IOException" type="java.io.IOException"/>
  4927. </method>
  4928. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  4929. abstract="false" native="false" synchronized="false"
  4930. static="false" final="false" visibility="public"
  4931. deprecated="not deprecated">
  4932. <doc>
  4933. <![CDATA[return the top level archive.]]>
  4934. </doc>
  4935. </method>
  4936. <method name="getUri" return="java.net.URI"
  4937. abstract="false" native="false" synchronized="false"
  4938. static="false" final="false" visibility="public"
  4939. deprecated="not deprecated">
  4940. <doc>
  4941. <![CDATA[Returns the uri of this filesystem.
  4942. The uri is of the form
  4943. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  4944. </doc>
  4945. </method>
  4946. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  4947. abstract="false" native="false" synchronized="false"
  4948. static="false" final="false" visibility="public"
  4949. deprecated="not deprecated">
  4950. <param name="path" type="org.apache.hadoop.fs.Path"/>
  4951. </method>
  4952. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  4953. abstract="false" native="false" synchronized="false"
  4954. static="false" final="false" visibility="public"
  4955. deprecated="not deprecated">
  4956. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  4957. <param name="start" type="long"/>
  4958. <param name="len" type="long"/>
  4959. <exception name="IOException" type="java.io.IOException"/>
  4960. <doc>
  4961. <![CDATA[get block locations from the underlying fs
  4962. @param file the input filestatus to get block locations
  4963. @param start the start in the file
  4964. @param len the length in the file
  4965. @return block locations for this segment of file
  4966. @throws IOException]]>
  4967. </doc>
  4968. </method>
  4969. <method name="getHarHash" return="int"
  4970. abstract="false" native="false" synchronized="false"
  4971. static="true" final="false" visibility="public"
  4972. deprecated="not deprecated">
  4973. <param name="p" type="org.apache.hadoop.fs.Path"/>
  4974. <doc>
  4975. <![CDATA[the hash of the path p inside iniside
  4976. the filesystem
  4977. @param p the path in the harfilesystem
  4978. @return the hash code of the path.]]>
  4979. </doc>
  4980. </method>
  4981. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  4982. abstract="false" native="false" synchronized="false"
  4983. static="false" final="false" visibility="public"
  4984. deprecated="not deprecated">
  4985. <param name="f" type="org.apache.hadoop.fs.Path"/>
  4986. <exception name="IOException" type="java.io.IOException"/>
  4987. <doc>
  4988. <![CDATA[return the filestatus of files in har archive.
  4989. The permission returned are that of the archive
  4990. index files. The permissions are not persisted
  4991. while creating a hadoop archive.
  4992. @param f the path in har filesystem
  4993. @return filestatus.
  4994. @throws IOException]]>
  4995. </doc>
  4996. </method>
  4997. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  4998. abstract="false" native="false" synchronized="false"
  4999. static="false" final="false" visibility="public"
  5000. deprecated="not deprecated">
  5001. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5002. <param name="bufferSize" type="int"/>
  5003. <exception name="IOException" type="java.io.IOException"/>
  5004. <doc>
  5005. <![CDATA[Returns a har input stream which fakes end of
  5006. file. It reads the index files to get the part
  5007. file name and the size and start of the file.]]>
  5008. </doc>
  5009. </method>
  5010. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5011. abstract="false" native="false" synchronized="false"
  5012. static="false" final="false" visibility="public"
  5013. deprecated="not deprecated">
  5014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5015. <param name="bufferSize" type="int"/>
  5016. <exception name="IOException" type="java.io.IOException"/>
  5017. </method>
  5018. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5019. abstract="false" native="false" synchronized="false"
  5020. static="false" final="false" visibility="public"
  5021. deprecated="not deprecated">
  5022. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5023. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5024. <param name="overwrite" type="boolean"/>
  5025. <param name="bufferSize" type="int"/>
  5026. <param name="replication" type="short"/>
  5027. <param name="blockSize" type="long"/>
  5028. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5029. <exception name="IOException" type="java.io.IOException"/>
  5030. </method>
  5031. <method name="close"
  5032. abstract="false" native="false" synchronized="false"
  5033. static="false" final="false" visibility="public"
  5034. deprecated="not deprecated">
  5035. <exception name="IOException" type="java.io.IOException"/>
  5036. </method>
  5037. <method name="setReplication" return="boolean"
  5038. abstract="false" native="false" synchronized="false"
  5039. static="false" final="false" visibility="public"
  5040. deprecated="not deprecated">
  5041. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5042. <param name="replication" type="short"/>
  5043. <exception name="IOException" type="java.io.IOException"/>
  5044. <doc>
  5045. <![CDATA[Not implemented.]]>
  5046. </doc>
  5047. </method>
  5048. <method name="delete" return="boolean"
  5049. abstract="false" native="false" synchronized="false"
  5050. static="false" final="false" visibility="public"
  5051. deprecated="not deprecated">
  5052. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5053. <param name="recursive" type="boolean"/>
  5054. <exception name="IOException" type="java.io.IOException"/>
  5055. <doc>
  5056. <![CDATA[Not implemented.]]>
  5057. </doc>
  5058. </method>
  5059. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5060. abstract="false" native="false" synchronized="false"
  5061. static="false" final="false" visibility="public"
  5062. deprecated="not deprecated">
  5063. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5064. <exception name="IOException" type="java.io.IOException"/>
  5065. <doc>
  5066. <![CDATA[liststatus returns the children of a directory
  5067. after looking up the index files.]]>
  5068. </doc>
  5069. </method>
  5070. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5071. abstract="false" native="false" synchronized="false"
  5072. static="false" final="false" visibility="public"
  5073. deprecated="not deprecated">
  5074. <doc>
  5075. <![CDATA[return the top level archive path.]]>
  5076. </doc>
  5077. </method>
  5078. <method name="setWorkingDirectory"
  5079. abstract="false" native="false" synchronized="false"
  5080. static="false" final="false" visibility="public"
  5081. deprecated="not deprecated">
  5082. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5083. </method>
  5084. <method name="mkdirs" return="boolean"
  5085. abstract="false" native="false" synchronized="false"
  5086. static="false" final="false" visibility="public"
  5087. deprecated="not deprecated">
  5088. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5089. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5090. <exception name="IOException" type="java.io.IOException"/>
  5091. <doc>
  5092. <![CDATA[not implemented.]]>
  5093. </doc>
  5094. </method>
  5095. <method name="copyFromLocalFile"
  5096. abstract="false" native="false" synchronized="false"
  5097. static="false" final="false" visibility="public"
  5098. deprecated="not deprecated">
  5099. <param name="delSrc" type="boolean"/>
  5100. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5101. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5102. <exception name="IOException" type="java.io.IOException"/>
  5103. <doc>
  5104. <![CDATA[not implemented.]]>
  5105. </doc>
  5106. </method>
  5107. <method name="copyToLocalFile"
  5108. abstract="false" native="false" synchronized="false"
  5109. static="false" final="false" visibility="public"
  5110. deprecated="not deprecated">
  5111. <param name="delSrc" type="boolean"/>
  5112. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5113. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5114. <exception name="IOException" type="java.io.IOException"/>
  5115. <doc>
  5116. <![CDATA[copies the file in the har filesystem to a local file.]]>
  5117. </doc>
  5118. </method>
  5119. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5120. abstract="false" native="false" synchronized="false"
  5121. static="false" final="false" visibility="public"
  5122. deprecated="not deprecated">
  5123. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5124. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5125. <exception name="IOException" type="java.io.IOException"/>
  5126. <doc>
  5127. <![CDATA[not implemented.]]>
  5128. </doc>
  5129. </method>
  5130. <method name="completeLocalOutput"
  5131. abstract="false" native="false" synchronized="false"
  5132. static="false" final="false" visibility="public"
  5133. deprecated="not deprecated">
  5134. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5135. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5136. <exception name="IOException" type="java.io.IOException"/>
  5137. <doc>
  5138. <![CDATA[not implemented.]]>
  5139. </doc>
  5140. </method>
  5141. <method name="setOwner"
  5142. abstract="false" native="false" synchronized="false"
  5143. static="false" final="false" visibility="public"
  5144. deprecated="not deprecated">
  5145. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5146. <param name="username" type="java.lang.String"/>
  5147. <param name="groupname" type="java.lang.String"/>
  5148. <exception name="IOException" type="java.io.IOException"/>
  5149. <doc>
  5150. <![CDATA[not implemented.]]>
  5151. </doc>
  5152. </method>
  5153. <method name="setPermission"
  5154. abstract="false" native="false" synchronized="false"
  5155. static="false" final="false" visibility="public"
  5156. deprecated="not deprecated">
  5157. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5158. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5159. <exception name="IOException" type="java.io.IOException"/>
  5160. <doc>
  5161. <![CDATA[Not implemented.]]>
  5162. </doc>
  5163. </method>
  5164. <field name="VERSION" type="int"
  5165. transient="false" volatile="false"
  5166. static="true" final="true" visibility="public"
  5167. deprecated="not deprecated">
  5168. </field>
  5169. <doc>
  5170. <![CDATA[This is an implementation of the Hadoop Archive
  5171. Filesystem. This archive Filesystem has index files
  5172. of the form _index* and has contents of the form
  5173. part-*. The index files store the indexes of the
  5174. real files. The index files are of the form _masterindex
  5175. and _index. The master index is a level of indirection
  5176. in to the index file to make the look ups faster. the index
  5177. file is sorted with hash code of the paths that it contains
  5178. and the master index contains pointers to the positions in
  5179. index for ranges of hashcodes.]]>
  5180. </doc>
  5181. </class>
  5182. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  5183. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  5184. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5185. abstract="false"
  5186. static="false" final="false" visibility="public"
  5187. deprecated="not deprecated">
  5188. <constructor name="InMemoryFileSystem"
  5189. static="false" final="false" visibility="public"
  5190. deprecated="not deprecated">
  5191. </constructor>
  5192. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  5193. static="false" final="false" visibility="public"
  5194. deprecated="not deprecated">
  5195. </constructor>
  5196. <method name="reserveSpaceWithCheckSum" return="boolean"
  5197. abstract="false" native="false" synchronized="false"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5201. <param name="size" type="long"/>
  5202. <doc>
  5203. <![CDATA[Register a file with its size. This will also register a checksum for the
  5204. file that the user is trying to create. This is required since none of
  5205. the FileSystem APIs accept the size of the file as argument. But since it
  5206. is required for us to apriori know the size of the file we are going to
  5207. create, the user must call this method for each file he wants to create
  5208. and reserve memory for that file. We either succeed in reserving memory
  5209. for both the main file and the checksum file and return true, or return
  5210. false.]]>
  5211. </doc>
  5212. </method>
  5213. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  5214. abstract="false" native="false" synchronized="false"
  5215. static="false" final="false" visibility="public"
  5216. deprecated="not deprecated">
  5217. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5218. </method>
  5219. <method name="getNumFiles" return="int"
  5220. abstract="false" native="false" synchronized="false"
  5221. static="false" final="false" visibility="public"
  5222. deprecated="not deprecated">
  5223. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  5224. </method>
  5225. <method name="getFSSize" return="long"
  5226. abstract="false" native="false" synchronized="false"
  5227. static="false" final="false" visibility="public"
  5228. deprecated="not deprecated">
  5229. </method>
  5230. <method name="getPercentUsed" return="float"
  5231. abstract="false" native="false" synchronized="false"
  5232. static="false" final="false" visibility="public"
  5233. deprecated="not deprecated">
  5234. </method>
  5235. <doc>
  5236. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  5237. that the file lengths are known ahead of time and the total lengths of all
  5238. the files is below a certain number (like 100 MB, configurable). Use the API
  5239. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  5240. the API for reserving space in the FS. The uri of this filesystem starts with
  5241. ramfs:// .]]>
  5242. </doc>
  5243. </class>
  5244. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  5245. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  5246. <class name="LocalDirAllocator" extends="java.lang.Object"
  5247. abstract="false"
  5248. static="false" final="false" visibility="public"
  5249. deprecated="not deprecated">
  5250. <constructor name="LocalDirAllocator" type="java.lang.String"
  5251. static="false" final="false" visibility="public"
  5252. deprecated="not deprecated">
  5253. <doc>
  5254. <![CDATA[Create an allocator object
  5255. @param contextCfgItemName]]>
  5256. </doc>
  5257. </constructor>
  5258. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  5259. abstract="false" native="false" synchronized="false"
  5260. static="false" final="false" visibility="public"
  5261. deprecated="not deprecated">
  5262. <param name="pathStr" type="java.lang.String"/>
  5263. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5264. <exception name="IOException" type="java.io.IOException"/>
  5265. <doc>
  5266. <![CDATA[Get a path from the local FS. This method should be used if the size of
  5267. the file is not known apriori. We go round-robin over the set of disks
  5268. (via the configured dirs) and return the first complete path where
  5269. we could create the parent directory of the passed path.
  5270. @param pathStr the requested path (this will be created on the first
  5271. available disk)
  5272. @param conf the Configuration object
  5273. @return the complete path to the file on a local disk
  5274. @throws IOException]]>
  5275. </doc>
  5276. </method>
  5277. <method name="getLocalPathForWrite" 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="pathStr" type="java.lang.String"/>
  5282. <param name="size" type="long"/>
  5283. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5284. <exception name="IOException" type="java.io.IOException"/>
  5285. <doc>
  5286. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  5287. round-robin over the set of disks (via the configured dirs) and return
  5288. the first complete path which has enough space
  5289. @param pathStr the requested path (this will be created on the first
  5290. available disk)
  5291. @param size the size of the file that is going to be written
  5292. @param conf the Configuration object
  5293. @return the complete path to the file on a local disk
  5294. @throws IOException]]>
  5295. </doc>
  5296. </method>
  5297. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  5298. abstract="false" native="false" synchronized="false"
  5299. static="false" final="false" visibility="public"
  5300. deprecated="not deprecated">
  5301. <param name="pathStr" type="java.lang.String"/>
  5302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5303. <exception name="IOException" type="java.io.IOException"/>
  5304. <doc>
  5305. <![CDATA[Get a path from the local FS for reading. We search through all the
  5306. configured dirs for the file's existence and return the complete
  5307. path to the file when we find one
  5308. @param pathStr the requested file (this will be searched)
  5309. @param conf the Configuration object
  5310. @return the complete path to the file on a local disk
  5311. @throws IOException]]>
  5312. </doc>
  5313. </method>
  5314. <method name="createTmpFileForWrite" return="java.io.File"
  5315. abstract="false" native="false" synchronized="false"
  5316. static="false" final="false" visibility="public"
  5317. deprecated="not deprecated">
  5318. <param name="pathStr" type="java.lang.String"/>
  5319. <param name="size" type="long"/>
  5320. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5321. <exception name="IOException" type="java.io.IOException"/>
  5322. <doc>
  5323. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  5324. apriori. We round-robin over the set of disks (via the configured dirs)
  5325. and select the first complete path which has enough space. A file is
  5326. created on this directory. The file is guaranteed to go away when the
  5327. JVM exits.
  5328. @param pathStr prefix for the temporary file
  5329. @param size the size of the file that is going to be written
  5330. @param conf the Configuration object
  5331. @return a unique temporary file
  5332. @throws IOException]]>
  5333. </doc>
  5334. </method>
  5335. <method name="isContextValid" return="boolean"
  5336. abstract="false" native="false" synchronized="false"
  5337. static="true" final="false" visibility="public"
  5338. deprecated="not deprecated">
  5339. <param name="contextCfgItemName" type="java.lang.String"/>
  5340. <doc>
  5341. <![CDATA[Method to check whether a context is valid
  5342. @param contextCfgItemName
  5343. @return true/false]]>
  5344. </doc>
  5345. </method>
  5346. <method name="ifExists" return="boolean"
  5347. abstract="false" native="false" synchronized="false"
  5348. static="false" final="false" visibility="public"
  5349. deprecated="not deprecated">
  5350. <param name="pathStr" type="java.lang.String"/>
  5351. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5352. <doc>
  5353. <![CDATA[We search through all the configured dirs for the file's existence
  5354. and return true when we find
  5355. @param pathStr the requested file (this will be searched)
  5356. @param conf the Configuration object
  5357. @return true if files exist. false otherwise
  5358. @throws IOException]]>
  5359. </doc>
  5360. </method>
  5361. <doc>
  5362. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  5363. files. The way it works is that it is kept track what disk was last
  5364. allocated for a file write. For the current request, the next disk from
  5365. the set of disks would be allocated if the free space on the disk is
  5366. sufficient enough to accomodate the file that is being considered for
  5367. creation. If the space requirements cannot be met, the next disk in order
  5368. would be tried and so on till a disk is found with sufficient capacity.
  5369. Once a disk with sufficient space is identified, a check is done to make
  5370. sure that the disk is writable. Also, there is an API provided that doesn't
  5371. take the space requirements into consideration but just checks whether the
  5372. disk under consideration is writable (this should be used for cases where
  5373. the file size is not known apriori). An API is provided to read a path that
  5374. was created earlier. That API works by doing a scan of all the disks for the
  5375. input pathname.
  5376. This implementation also provides the functionality of having multiple
  5377. allocators per JVM (one for each unique functionality or context, like
  5378. mapred, dfs-client, etc.). It ensures that there is only one instance of
  5379. an allocator per context per JVM.
  5380. Note:
  5381. 1. The contexts referred above are actually the configuration items defined
  5382. in the Configuration class like "mapred.local.dir" (for which we want to
  5383. control the dir allocations). The context-strings are exactly those
  5384. configuration items.
  5385. 2. This implementation does not take into consideration cases where
  5386. a disk becomes read-only or goes out of space while a file is being written
  5387. to (disks are shared between multiple processes, and so the latter situation
  5388. is probable).
  5389. 3. In the class implementation, "Disk" is referred to as "Dir", which
  5390. actually points to the configured directory on the Disk which will be the
  5391. parent for all file write/read allocations.]]>
  5392. </doc>
  5393. </class>
  5394. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  5395. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  5396. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  5397. abstract="false"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. <constructor name="LocalFileSystem"
  5401. static="false" final="false" visibility="public"
  5402. deprecated="not deprecated">
  5403. </constructor>
  5404. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  5405. static="false" final="false" visibility="public"
  5406. deprecated="not deprecated">
  5407. </constructor>
  5408. <method name="getRaw" return="org.apache.hadoop.fs.FileSystem"
  5409. abstract="false" native="false" synchronized="false"
  5410. static="false" final="false" visibility="public"
  5411. deprecated="not deprecated">
  5412. </method>
  5413. <method name="pathToFile" return="java.io.File"
  5414. abstract="false" native="false" synchronized="false"
  5415. static="false" final="false" visibility="public"
  5416. deprecated="not deprecated">
  5417. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5418. <doc>
  5419. <![CDATA[Convert a path to a File.]]>
  5420. </doc>
  5421. </method>
  5422. <method name="copyFromLocalFile"
  5423. abstract="false" native="false" synchronized="false"
  5424. static="false" final="false" visibility="public"
  5425. deprecated="not deprecated">
  5426. <param name="delSrc" type="boolean"/>
  5427. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5428. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5429. <exception name="IOException" type="java.io.IOException"/>
  5430. </method>
  5431. <method name="copyToLocalFile"
  5432. abstract="false" native="false" synchronized="false"
  5433. static="false" final="false" visibility="public"
  5434. deprecated="not deprecated">
  5435. <param name="delSrc" type="boolean"/>
  5436. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5437. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5438. <exception name="IOException" type="java.io.IOException"/>
  5439. </method>
  5440. <method name="reportChecksumFailure" return="boolean"
  5441. abstract="false" native="false" synchronized="false"
  5442. static="false" final="false" visibility="public"
  5443. deprecated="not deprecated">
  5444. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5445. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5446. <param name="inPos" type="long"/>
  5447. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  5448. <param name="sumsPos" type="long"/>
  5449. <doc>
  5450. <![CDATA[Moves files to a bad file directory on the same device, so that their
  5451. storage will not be reused.]]>
  5452. </doc>
  5453. </method>
  5454. <doc>
  5455. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  5456. </doc>
  5457. </class>
  5458. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  5459. <!-- start class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5460. <class name="MD5MD5CRC32FileChecksum" extends="org.apache.hadoop.fs.FileChecksum"
  5461. abstract="false"
  5462. static="false" final="false" visibility="public"
  5463. deprecated="not deprecated">
  5464. <constructor name="MD5MD5CRC32FileChecksum"
  5465. static="false" final="false" visibility="public"
  5466. deprecated="not deprecated">
  5467. <doc>
  5468. <![CDATA[Same as this(0, 0, null)]]>
  5469. </doc>
  5470. </constructor>
  5471. <constructor name="MD5MD5CRC32FileChecksum" type="int, long, org.apache.hadoop.io.MD5Hash"
  5472. static="false" final="false" visibility="public"
  5473. deprecated="not deprecated">
  5474. <doc>
  5475. <![CDATA[Create a MD5FileChecksum]]>
  5476. </doc>
  5477. </constructor>
  5478. <method name="getAlgorithmName" return="java.lang.String"
  5479. abstract="false" native="false" synchronized="false"
  5480. static="false" final="false" visibility="public"
  5481. deprecated="not deprecated">
  5482. <doc>
  5483. <![CDATA[{@inheritDoc}]]>
  5484. </doc>
  5485. </method>
  5486. <method name="getLength" return="int"
  5487. abstract="false" native="false" synchronized="false"
  5488. static="false" final="false" visibility="public"
  5489. deprecated="not deprecated">
  5490. <doc>
  5491. <![CDATA[{@inheritDoc}]]>
  5492. </doc>
  5493. </method>
  5494. <method name="getBytes" return="byte[]"
  5495. abstract="false" native="false" synchronized="false"
  5496. static="false" final="false" visibility="public"
  5497. deprecated="not deprecated">
  5498. <doc>
  5499. <![CDATA[{@inheritDoc}]]>
  5500. </doc>
  5501. </method>
  5502. <method name="readFields"
  5503. abstract="false" native="false" synchronized="false"
  5504. static="false" final="false" visibility="public"
  5505. deprecated="not deprecated">
  5506. <param name="in" type="java.io.DataInput"/>
  5507. <exception name="IOException" type="java.io.IOException"/>
  5508. <doc>
  5509. <![CDATA[{@inheritDoc}]]>
  5510. </doc>
  5511. </method>
  5512. <method name="write"
  5513. abstract="false" native="false" synchronized="false"
  5514. static="false" final="false" visibility="public"
  5515. deprecated="not deprecated">
  5516. <param name="out" type="java.io.DataOutput"/>
  5517. <exception name="IOException" type="java.io.IOException"/>
  5518. <doc>
  5519. <![CDATA[{@inheritDoc}]]>
  5520. </doc>
  5521. </method>
  5522. <method name="write"
  5523. abstract="false" native="false" synchronized="false"
  5524. static="true" final="false" visibility="public"
  5525. deprecated="not deprecated">
  5526. <param name="xml" type="org.znerd.xmlenc.XMLOutputter"/>
  5527. <param name="that" type="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"/>
  5528. <exception name="IOException" type="java.io.IOException"/>
  5529. <doc>
  5530. <![CDATA[Write that object to xml output.]]>
  5531. </doc>
  5532. </method>
  5533. <method name="valueOf" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  5534. abstract="false" native="false" synchronized="false"
  5535. static="true" final="false" visibility="public"
  5536. deprecated="not deprecated">
  5537. <param name="attrs" type="org.xml.sax.Attributes"/>
  5538. <exception name="SAXException" type="org.xml.sax.SAXException"/>
  5539. <doc>
  5540. <![CDATA[Return the object represented in the attributes.]]>
  5541. </doc>
  5542. </method>
  5543. <method name="toString" return="java.lang.String"
  5544. abstract="false" native="false" synchronized="false"
  5545. static="false" final="false" visibility="public"
  5546. deprecated="not deprecated">
  5547. <doc>
  5548. <![CDATA[{@inheritDoc}]]>
  5549. </doc>
  5550. </method>
  5551. <field name="LENGTH" type="int"
  5552. transient="false" volatile="false"
  5553. static="true" final="true" visibility="public"
  5554. deprecated="not deprecated">
  5555. </field>
  5556. <doc>
  5557. <![CDATA[MD5 of MD5 of CRC32.]]>
  5558. </doc>
  5559. </class>
  5560. <!-- end class org.apache.hadoop.fs.MD5MD5CRC32FileChecksum -->
  5561. <!-- start class org.apache.hadoop.fs.Path -->
  5562. <class name="Path" extends="java.lang.Object"
  5563. abstract="false"
  5564. static="false" final="false" visibility="public"
  5565. deprecated="not deprecated">
  5566. <implements name="java.lang.Comparable"/>
  5567. <constructor name="Path" type="java.lang.String, java.lang.String"
  5568. static="false" final="false" visibility="public"
  5569. deprecated="not deprecated">
  5570. <doc>
  5571. <![CDATA[Resolve a child path against a parent path.]]>
  5572. </doc>
  5573. </constructor>
  5574. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  5575. static="false" final="false" visibility="public"
  5576. deprecated="not deprecated">
  5577. <doc>
  5578. <![CDATA[Resolve a child path against a parent path.]]>
  5579. </doc>
  5580. </constructor>
  5581. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  5582. static="false" final="false" visibility="public"
  5583. deprecated="not deprecated">
  5584. <doc>
  5585. <![CDATA[Resolve a child path against a parent path.]]>
  5586. </doc>
  5587. </constructor>
  5588. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  5589. static="false" final="false" visibility="public"
  5590. deprecated="not deprecated">
  5591. <doc>
  5592. <![CDATA[Resolve a child path against a parent path.]]>
  5593. </doc>
  5594. </constructor>
  5595. <constructor name="Path" type="java.lang.String"
  5596. static="false" final="false" visibility="public"
  5597. deprecated="not deprecated">
  5598. <doc>
  5599. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  5600. unescaped elements and some additional normalization.]]>
  5601. </doc>
  5602. </constructor>
  5603. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  5604. static="false" final="false" visibility="public"
  5605. deprecated="not deprecated">
  5606. <doc>
  5607. <![CDATA[Construct a Path from components.]]>
  5608. </doc>
  5609. </constructor>
  5610. <method name="toUri" return="java.net.URI"
  5611. abstract="false" native="false" synchronized="false"
  5612. static="false" final="false" visibility="public"
  5613. deprecated="not deprecated">
  5614. <doc>
  5615. <![CDATA[Convert this to a URI.]]>
  5616. </doc>
  5617. </method>
  5618. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  5619. abstract="false" native="false" synchronized="false"
  5620. static="false" final="false" visibility="public"
  5621. deprecated="not deprecated">
  5622. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5623. <exception name="IOException" type="java.io.IOException"/>
  5624. <doc>
  5625. <![CDATA[Return the FileSystem that owns this Path.]]>
  5626. </doc>
  5627. </method>
  5628. <method name="isAbsolute" return="boolean"
  5629. abstract="false" native="false" synchronized="false"
  5630. static="false" final="false" visibility="public"
  5631. deprecated="not deprecated">
  5632. <doc>
  5633. <![CDATA[True if the directory of this path is absolute.]]>
  5634. </doc>
  5635. </method>
  5636. <method name="getName" return="java.lang.String"
  5637. abstract="false" native="false" synchronized="false"
  5638. static="false" final="false" visibility="public"
  5639. deprecated="not deprecated">
  5640. <doc>
  5641. <![CDATA[Returns the final component of this path.]]>
  5642. </doc>
  5643. </method>
  5644. <method name="getParent" return="org.apache.hadoop.fs.Path"
  5645. abstract="false" native="false" synchronized="false"
  5646. static="false" final="false" visibility="public"
  5647. deprecated="not deprecated">
  5648. <doc>
  5649. <![CDATA[Returns the parent of a path or null if at root.]]>
  5650. </doc>
  5651. </method>
  5652. <method name="suffix" return="org.apache.hadoop.fs.Path"
  5653. abstract="false" native="false" synchronized="false"
  5654. static="false" final="false" visibility="public"
  5655. deprecated="not deprecated">
  5656. <param name="suffix" type="java.lang.String"/>
  5657. <doc>
  5658. <![CDATA[Adds a suffix to the final name in the path.]]>
  5659. </doc>
  5660. </method>
  5661. <method name="toString" return="java.lang.String"
  5662. abstract="false" native="false" synchronized="false"
  5663. static="false" final="false" visibility="public"
  5664. deprecated="not deprecated">
  5665. </method>
  5666. <method name="equals" return="boolean"
  5667. abstract="false" native="false" synchronized="false"
  5668. static="false" final="false" visibility="public"
  5669. deprecated="not deprecated">
  5670. <param name="o" type="java.lang.Object"/>
  5671. </method>
  5672. <method name="hashCode" return="int"
  5673. abstract="false" native="false" synchronized="false"
  5674. static="false" final="false" visibility="public"
  5675. deprecated="not deprecated">
  5676. </method>
  5677. <method name="compareTo" return="int"
  5678. abstract="false" native="false" synchronized="false"
  5679. static="false" final="false" visibility="public"
  5680. deprecated="not deprecated">
  5681. <param name="o" type="java.lang.Object"/>
  5682. </method>
  5683. <method name="depth" return="int"
  5684. abstract="false" native="false" synchronized="false"
  5685. static="false" final="false" visibility="public"
  5686. deprecated="not deprecated">
  5687. <doc>
  5688. <![CDATA[Return the number of elements in this path.]]>
  5689. </doc>
  5690. </method>
  5691. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  5692. abstract="false" native="false" synchronized="false"
  5693. static="false" final="false" visibility="public"
  5694. deprecated="not deprecated">
  5695. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  5696. <doc>
  5697. <![CDATA[Returns a qualified path object.]]>
  5698. </doc>
  5699. </method>
  5700. <field name="SEPARATOR" type="java.lang.String"
  5701. transient="false" volatile="false"
  5702. static="true" final="true" visibility="public"
  5703. deprecated="not deprecated">
  5704. <doc>
  5705. <![CDATA[The directory separator, a slash.]]>
  5706. </doc>
  5707. </field>
  5708. <field name="SEPARATOR_CHAR" type="char"
  5709. transient="false" volatile="false"
  5710. static="true" final="true" visibility="public"
  5711. deprecated="not deprecated">
  5712. </field>
  5713. <field name="CUR_DIR" type="java.lang.String"
  5714. transient="false" volatile="false"
  5715. static="true" final="true" visibility="public"
  5716. deprecated="not deprecated">
  5717. </field>
  5718. <doc>
  5719. <![CDATA[Names a file or directory in a {@link FileSystem}.
  5720. Path strings use slash as the directory separator. A path string is
  5721. absolute if it begins with a slash.]]>
  5722. </doc>
  5723. </class>
  5724. <!-- end class org.apache.hadoop.fs.Path -->
  5725. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  5726. <interface name="PathFilter" abstract="true"
  5727. static="false" final="false" visibility="public"
  5728. deprecated="not deprecated">
  5729. <method name="accept" return="boolean"
  5730. abstract="false" native="false" synchronized="false"
  5731. static="false" final="false" visibility="public"
  5732. deprecated="not deprecated">
  5733. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5734. <doc>
  5735. <![CDATA[Tests whether or not the specified abstract pathname should be
  5736. included in a pathname list.
  5737. @param path The abstract pathname to be tested
  5738. @return <code>true</code> if and only if <code>pathname</code>
  5739. should be included]]>
  5740. </doc>
  5741. </method>
  5742. </interface>
  5743. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  5744. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  5745. <interface name="PositionedReadable" abstract="true"
  5746. static="false" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <method name="read" return="int"
  5749. abstract="false" native="false" synchronized="false"
  5750. static="false" final="false" visibility="public"
  5751. deprecated="not deprecated">
  5752. <param name="position" type="long"/>
  5753. <param name="buffer" type="byte[]"/>
  5754. <param name="offset" type="int"/>
  5755. <param name="length" type="int"/>
  5756. <exception name="IOException" type="java.io.IOException"/>
  5757. <doc>
  5758. <![CDATA[Read upto the specified number of bytes, from a given
  5759. position within a file, and return the number of bytes read. This does not
  5760. change the current offset of a file, and is thread-safe.]]>
  5761. </doc>
  5762. </method>
  5763. <method name="readFully"
  5764. abstract="false" native="false" synchronized="false"
  5765. static="false" final="false" visibility="public"
  5766. deprecated="not deprecated">
  5767. <param name="position" type="long"/>
  5768. <param name="buffer" type="byte[]"/>
  5769. <param name="offset" type="int"/>
  5770. <param name="length" type="int"/>
  5771. <exception name="IOException" type="java.io.IOException"/>
  5772. <doc>
  5773. <![CDATA[Read the specified number of bytes, from a given
  5774. position within a file. This does not
  5775. change the current offset of a file, and is thread-safe.]]>
  5776. </doc>
  5777. </method>
  5778. <method name="readFully"
  5779. abstract="false" native="false" synchronized="false"
  5780. static="false" final="false" visibility="public"
  5781. deprecated="not deprecated">
  5782. <param name="position" type="long"/>
  5783. <param name="buffer" type="byte[]"/>
  5784. <exception name="IOException" type="java.io.IOException"/>
  5785. <doc>
  5786. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  5787. position within a file. This does not
  5788. change the current offset of a file, and is thread-safe.]]>
  5789. </doc>
  5790. </method>
  5791. <doc>
  5792. <![CDATA[Stream that permits positional reading.]]>
  5793. </doc>
  5794. </interface>
  5795. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  5796. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  5797. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  5798. abstract="false"
  5799. static="false" final="false" visibility="public"
  5800. deprecated="not deprecated">
  5801. <constructor name="RawLocalFileSystem"
  5802. static="false" final="false" visibility="public"
  5803. deprecated="not deprecated">
  5804. </constructor>
  5805. <method name="pathToFile" return="java.io.File"
  5806. abstract="false" native="false" synchronized="false"
  5807. static="false" final="false" visibility="public"
  5808. deprecated="not deprecated">
  5809. <param name="path" type="org.apache.hadoop.fs.Path"/>
  5810. <doc>
  5811. <![CDATA[Convert a path to a File.]]>
  5812. </doc>
  5813. </method>
  5814. <method name="getName" return="java.lang.String"
  5815. abstract="false" native="false" synchronized="false"
  5816. static="false" final="false" visibility="public"
  5817. deprecated="deprecated, no comment">
  5818. <doc>
  5819. <![CDATA[@deprecated]]>
  5820. </doc>
  5821. </method>
  5822. <method name="getUri" return="java.net.URI"
  5823. abstract="false" native="false" synchronized="false"
  5824. static="false" final="false" visibility="public"
  5825. deprecated="not deprecated">
  5826. </method>
  5827. <method name="initialize"
  5828. abstract="false" native="false" synchronized="false"
  5829. static="false" final="false" visibility="public"
  5830. deprecated="not deprecated">
  5831. <param name="uri" type="java.net.URI"/>
  5832. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5833. </method>
  5834. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  5835. abstract="false" native="false" synchronized="false"
  5836. static="false" final="false" visibility="public"
  5837. deprecated="not deprecated">
  5838. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5839. <param name="bufferSize" type="int"/>
  5840. <exception name="IOException" type="java.io.IOException"/>
  5841. </method>
  5842. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  5843. abstract="false" native="false" synchronized="false"
  5844. static="false" final="false" visibility="public"
  5845. deprecated="not deprecated">
  5846. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5847. <param name="bufferSize" type="int"/>
  5848. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5849. <exception name="IOException" type="java.io.IOException"/>
  5850. <doc>
  5851. <![CDATA[{@inheritDoc}]]>
  5852. </doc>
  5853. </method>
  5854. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5855. abstract="false" native="false" synchronized="false"
  5856. static="false" final="false" visibility="public"
  5857. deprecated="not deprecated">
  5858. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5859. <param name="overwrite" type="boolean"/>
  5860. <param name="bufferSize" type="int"/>
  5861. <param name="replication" type="short"/>
  5862. <param name="blockSize" type="long"/>
  5863. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5864. <exception name="IOException" type="java.io.IOException"/>
  5865. <doc>
  5866. <![CDATA[{@inheritDoc}]]>
  5867. </doc>
  5868. </method>
  5869. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  5870. abstract="false" native="false" synchronized="false"
  5871. static="false" final="false" visibility="public"
  5872. deprecated="not deprecated">
  5873. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5874. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5875. <param name="overwrite" type="boolean"/>
  5876. <param name="bufferSize" type="int"/>
  5877. <param name="replication" type="short"/>
  5878. <param name="blockSize" type="long"/>
  5879. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  5880. <exception name="IOException" type="java.io.IOException"/>
  5881. <doc>
  5882. <![CDATA[{@inheritDoc}]]>
  5883. </doc>
  5884. </method>
  5885. <method name="rename" return="boolean"
  5886. abstract="false" native="false" synchronized="false"
  5887. static="false" final="false" visibility="public"
  5888. deprecated="not deprecated">
  5889. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5890. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5891. <exception name="IOException" type="java.io.IOException"/>
  5892. </method>
  5893. <method name="delete" return="boolean"
  5894. abstract="false" native="false" synchronized="false"
  5895. static="false" final="false" visibility="public"
  5896. deprecated="not deprecated">
  5897. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5898. <exception name="IOException" type="java.io.IOException"/>
  5899. </method>
  5900. <method name="delete" return="boolean"
  5901. abstract="false" native="false" synchronized="false"
  5902. static="false" final="false" visibility="public"
  5903. deprecated="not deprecated">
  5904. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5905. <param name="recursive" type="boolean"/>
  5906. <exception name="IOException" type="java.io.IOException"/>
  5907. </method>
  5908. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  5909. abstract="false" native="false" synchronized="false"
  5910. static="false" final="false" visibility="public"
  5911. deprecated="not deprecated">
  5912. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5913. <exception name="IOException" type="java.io.IOException"/>
  5914. </method>
  5915. <method name="mkdirs" return="boolean"
  5916. abstract="false" native="false" synchronized="false"
  5917. static="false" final="false" visibility="public"
  5918. deprecated="not deprecated">
  5919. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5920. <exception name="IOException" type="java.io.IOException"/>
  5921. <doc>
  5922. <![CDATA[Creates the specified directory hierarchy. Does not
  5923. treat existence as an error.]]>
  5924. </doc>
  5925. </method>
  5926. <method name="mkdirs" return="boolean"
  5927. abstract="false" native="false" synchronized="false"
  5928. static="false" final="false" visibility="public"
  5929. deprecated="not deprecated">
  5930. <param name="f" type="org.apache.hadoop.fs.Path"/>
  5931. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  5932. <exception name="IOException" type="java.io.IOException"/>
  5933. <doc>
  5934. <![CDATA[{@inheritDoc}]]>
  5935. </doc>
  5936. </method>
  5937. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  5938. abstract="false" native="false" synchronized="false"
  5939. static="false" final="false" visibility="public"
  5940. deprecated="not deprecated">
  5941. </method>
  5942. <method name="setWorkingDirectory"
  5943. abstract="false" native="false" synchronized="false"
  5944. static="false" final="false" visibility="public"
  5945. deprecated="not deprecated">
  5946. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  5947. <doc>
  5948. <![CDATA[Set the working directory to the given directory.]]>
  5949. </doc>
  5950. </method>
  5951. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  5952. abstract="false" native="false" synchronized="false"
  5953. static="false" final="false" visibility="public"
  5954. deprecated="not deprecated">
  5955. </method>
  5956. <method name="lock"
  5957. abstract="false" native="false" synchronized="false"
  5958. static="false" final="false" visibility="public"
  5959. deprecated="deprecated, no comment">
  5960. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5961. <param name="shared" type="boolean"/>
  5962. <exception name="IOException" type="java.io.IOException"/>
  5963. <doc>
  5964. <![CDATA[@deprecated]]>
  5965. </doc>
  5966. </method>
  5967. <method name="release"
  5968. abstract="false" native="false" synchronized="false"
  5969. static="false" final="false" visibility="public"
  5970. deprecated="deprecated, no comment">
  5971. <param name="p" type="org.apache.hadoop.fs.Path"/>
  5972. <exception name="IOException" type="java.io.IOException"/>
  5973. <doc>
  5974. <![CDATA[@deprecated]]>
  5975. </doc>
  5976. </method>
  5977. <method name="moveFromLocalFile"
  5978. abstract="false" native="false" synchronized="false"
  5979. static="false" final="false" visibility="public"
  5980. deprecated="not deprecated">
  5981. <param name="src" type="org.apache.hadoop.fs.Path"/>
  5982. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  5983. <exception name="IOException" type="java.io.IOException"/>
  5984. </method>
  5985. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  5986. abstract="false" native="false" synchronized="false"
  5987. static="false" final="false" visibility="public"
  5988. deprecated="not deprecated">
  5989. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  5990. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5991. <exception name="IOException" type="java.io.IOException"/>
  5992. </method>
  5993. <method name="completeLocalOutput"
  5994. abstract="false" native="false" synchronized="false"
  5995. static="false" final="false" visibility="public"
  5996. deprecated="not deprecated">
  5997. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  5998. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  5999. <exception name="IOException" type="java.io.IOException"/>
  6000. </method>
  6001. <method name="close"
  6002. abstract="false" native="false" synchronized="false"
  6003. static="false" final="false" visibility="public"
  6004. deprecated="not deprecated">
  6005. <exception name="IOException" type="java.io.IOException"/>
  6006. </method>
  6007. <method name="toString" return="java.lang.String"
  6008. abstract="false" native="false" synchronized="false"
  6009. static="false" final="false" visibility="public"
  6010. deprecated="not deprecated">
  6011. </method>
  6012. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6013. abstract="false" native="false" synchronized="false"
  6014. static="false" final="false" visibility="public"
  6015. deprecated="not deprecated">
  6016. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6017. <exception name="IOException" type="java.io.IOException"/>
  6018. </method>
  6019. <method name="setOwner"
  6020. abstract="false" native="false" synchronized="false"
  6021. static="false" final="false" visibility="public"
  6022. deprecated="not deprecated">
  6023. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6024. <param name="username" type="java.lang.String"/>
  6025. <param name="groupname" type="java.lang.String"/>
  6026. <exception name="IOException" type="java.io.IOException"/>
  6027. <doc>
  6028. <![CDATA[Use the command chown to set owner.]]>
  6029. </doc>
  6030. </method>
  6031. <method name="setPermission"
  6032. abstract="false" native="false" synchronized="false"
  6033. static="false" final="false" visibility="public"
  6034. deprecated="not deprecated">
  6035. <param name="p" type="org.apache.hadoop.fs.Path"/>
  6036. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6037. <exception name="IOException" type="java.io.IOException"/>
  6038. <doc>
  6039. <![CDATA[Use the command chmod to set permission.]]>
  6040. </doc>
  6041. </method>
  6042. <doc>
  6043. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  6044. </doc>
  6045. </class>
  6046. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  6047. <!-- start interface org.apache.hadoop.fs.Seekable -->
  6048. <interface name="Seekable" abstract="true"
  6049. static="false" final="false" visibility="public"
  6050. deprecated="not deprecated">
  6051. <method name="seek"
  6052. abstract="false" native="false" synchronized="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. <param name="pos" type="long"/>
  6056. <exception name="IOException" type="java.io.IOException"/>
  6057. <doc>
  6058. <![CDATA[Seek to the given offset from the start of the file.
  6059. The next read() will be from that location. Can't
  6060. seek past the end of the file.]]>
  6061. </doc>
  6062. </method>
  6063. <method name="getPos" return="long"
  6064. abstract="false" native="false" synchronized="false"
  6065. static="false" final="false" visibility="public"
  6066. deprecated="not deprecated">
  6067. <exception name="IOException" type="java.io.IOException"/>
  6068. <doc>
  6069. <![CDATA[Return the current offset from the start of the file]]>
  6070. </doc>
  6071. </method>
  6072. <method name="seekToNewSource" return="boolean"
  6073. abstract="false" native="false" synchronized="false"
  6074. static="false" final="false" visibility="public"
  6075. deprecated="not deprecated">
  6076. <param name="targetPos" type="long"/>
  6077. <exception name="IOException" type="java.io.IOException"/>
  6078. <doc>
  6079. <![CDATA[Seeks a different copy of the data. Returns true if
  6080. found a new source, false otherwise.]]>
  6081. </doc>
  6082. </method>
  6083. <doc>
  6084. <![CDATA[Stream that permits seeking.]]>
  6085. </doc>
  6086. </interface>
  6087. <!-- end interface org.apache.hadoop.fs.Seekable -->
  6088. <!-- start interface org.apache.hadoop.fs.Syncable -->
  6089. <interface name="Syncable" abstract="true"
  6090. static="false" final="false" visibility="public"
  6091. deprecated="not deprecated">
  6092. <method name="sync"
  6093. abstract="false" native="false" synchronized="false"
  6094. static="false" final="false" visibility="public"
  6095. deprecated="not deprecated">
  6096. <exception name="IOException" type="java.io.IOException"/>
  6097. <doc>
  6098. <![CDATA[Synchronize all buffer with the underlying devices.
  6099. @throws IOException]]>
  6100. </doc>
  6101. </method>
  6102. <doc>
  6103. <![CDATA[This interface declare the sync() operation.]]>
  6104. </doc>
  6105. </interface>
  6106. <!-- end interface org.apache.hadoop.fs.Syncable -->
  6107. <!-- start class org.apache.hadoop.fs.Trash -->
  6108. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  6109. abstract="false"
  6110. static="false" final="false" visibility="public"
  6111. deprecated="not deprecated">
  6112. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  6113. static="false" final="false" visibility="public"
  6114. deprecated="not deprecated">
  6115. <exception name="IOException" type="java.io.IOException"/>
  6116. <doc>
  6117. <![CDATA[Construct a trash can accessor.
  6118. @param conf a Configuration]]>
  6119. </doc>
  6120. </constructor>
  6121. <constructor name="Trash" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.conf.Configuration"
  6122. static="false" final="false" visibility="public"
  6123. deprecated="not deprecated">
  6124. <exception name="IOException" type="java.io.IOException"/>
  6125. <doc>
  6126. <![CDATA[Construct a trash can accessor for the FileSystem provided.]]>
  6127. </doc>
  6128. </constructor>
  6129. <method name="moveToTrash" return="boolean"
  6130. abstract="false" native="false" synchronized="false"
  6131. static="false" final="false" visibility="public"
  6132. deprecated="not deprecated">
  6133. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6134. <exception name="IOException" type="java.io.IOException"/>
  6135. <doc>
  6136. <![CDATA[Move a file or directory to the current trash directory.
  6137. @return false if the item is already in the trash or trash is disabled]]>
  6138. </doc>
  6139. </method>
  6140. <method name="checkpoint"
  6141. abstract="false" native="false" synchronized="false"
  6142. static="false" final="false" visibility="public"
  6143. deprecated="not deprecated">
  6144. <exception name="IOException" type="java.io.IOException"/>
  6145. <doc>
  6146. <![CDATA[Create a trash checkpoint.]]>
  6147. </doc>
  6148. </method>
  6149. <method name="expunge"
  6150. abstract="false" native="false" synchronized="false"
  6151. static="false" final="false" visibility="public"
  6152. deprecated="not deprecated">
  6153. <exception name="IOException" type="java.io.IOException"/>
  6154. <doc>
  6155. <![CDATA[Delete old checkpoints.]]>
  6156. </doc>
  6157. </method>
  6158. <method name="getEmptier" return="java.lang.Runnable"
  6159. abstract="false" native="false" synchronized="false"
  6160. static="false" final="false" visibility="public"
  6161. deprecated="not deprecated">
  6162. <exception name="IOException" type="java.io.IOException"/>
  6163. <doc>
  6164. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  6165. users, intended to be run by the superuser. Only one checkpoint is kept
  6166. at a time.]]>
  6167. </doc>
  6168. </method>
  6169. <method name="main"
  6170. abstract="false" native="false" synchronized="false"
  6171. static="true" final="false" visibility="public"
  6172. deprecated="not deprecated">
  6173. <param name="args" type="java.lang.String[]"/>
  6174. <exception name="Exception" type="java.lang.Exception"/>
  6175. <doc>
  6176. <![CDATA[Run an emptier.]]>
  6177. </doc>
  6178. </method>
  6179. <doc>
  6180. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  6181. directory, a subdirectory of their home directory named ".Trash". Files are
  6182. initially moved to a <i>current</i> sub-directory of the trash directory.
  6183. Within that sub-directory their original path is preserved. Periodically
  6184. one may checkpoint the current trash and remove older checkpoints. (This
  6185. design permits trash management without enumeration of the full trash
  6186. content, without date support in the filesystem, and without clock
  6187. synchronization.)]]>
  6188. </doc>
  6189. </class>
  6190. <!-- end class org.apache.hadoop.fs.Trash -->
  6191. </package>
  6192. <package name="org.apache.hadoop.fs.ftp">
  6193. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  6194. <class name="FTPException" extends="java.lang.RuntimeException"
  6195. abstract="false"
  6196. static="false" final="false" visibility="public"
  6197. deprecated="not deprecated">
  6198. <constructor name="FTPException" type="java.lang.String"
  6199. static="false" final="false" visibility="public"
  6200. deprecated="not deprecated">
  6201. </constructor>
  6202. <constructor name="FTPException" type="java.lang.Throwable"
  6203. static="false" final="false" visibility="public"
  6204. deprecated="not deprecated">
  6205. </constructor>
  6206. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  6207. static="false" final="false" visibility="public"
  6208. deprecated="not deprecated">
  6209. </constructor>
  6210. <doc>
  6211. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  6212. </doc>
  6213. </class>
  6214. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  6215. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6216. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6217. abstract="false"
  6218. static="false" final="false" visibility="public"
  6219. deprecated="not deprecated">
  6220. <constructor name="FTPFileSystem"
  6221. static="false" final="false" visibility="public"
  6222. deprecated="not deprecated">
  6223. </constructor>
  6224. <method name="initialize"
  6225. abstract="false" native="false" synchronized="false"
  6226. static="false" final="false" visibility="public"
  6227. deprecated="not deprecated">
  6228. <param name="uri" type="java.net.URI"/>
  6229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6230. <exception name="IOException" type="java.io.IOException"/>
  6231. </method>
  6232. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6233. abstract="false" native="false" synchronized="false"
  6234. static="false" final="false" visibility="public"
  6235. deprecated="not deprecated">
  6236. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6237. <param name="bufferSize" type="int"/>
  6238. <exception name="IOException" type="java.io.IOException"/>
  6239. </method>
  6240. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6241. abstract="false" native="false" synchronized="false"
  6242. static="false" final="false" visibility="public"
  6243. deprecated="not deprecated">
  6244. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6245. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6246. <param name="overwrite" type="boolean"/>
  6247. <param name="bufferSize" type="int"/>
  6248. <param name="replication" type="short"/>
  6249. <param name="blockSize" type="long"/>
  6250. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6251. <exception name="IOException" type="java.io.IOException"/>
  6252. <doc>
  6253. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  6254. this class or else the invocation will block.]]>
  6255. </doc>
  6256. </method>
  6257. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6258. abstract="false" native="false" synchronized="false"
  6259. static="false" final="false" visibility="public"
  6260. deprecated="not deprecated">
  6261. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6262. <param name="bufferSize" type="int"/>
  6263. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6264. <exception name="IOException" type="java.io.IOException"/>
  6265. <doc>
  6266. <![CDATA[This optional operation is not yet supported.]]>
  6267. </doc>
  6268. </method>
  6269. <method name="delete" return="boolean"
  6270. abstract="false" native="false" synchronized="false"
  6271. static="false" final="false" visibility="public"
  6272. deprecated="Use delete(Path, boolean) instead">
  6273. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6274. <exception name="IOException" type="java.io.IOException"/>
  6275. <doc>
  6276. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  6277. </doc>
  6278. </method>
  6279. <method name="delete" return="boolean"
  6280. abstract="false" native="false" synchronized="false"
  6281. static="false" final="false" visibility="public"
  6282. deprecated="not deprecated">
  6283. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6284. <param name="recursive" type="boolean"/>
  6285. <exception name="IOException" type="java.io.IOException"/>
  6286. </method>
  6287. <method name="getUri" return="java.net.URI"
  6288. abstract="false" native="false" synchronized="false"
  6289. static="false" final="false" visibility="public"
  6290. deprecated="not deprecated">
  6291. </method>
  6292. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6293. abstract="false" native="false" synchronized="false"
  6294. static="false" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6297. <exception name="IOException" type="java.io.IOException"/>
  6298. </method>
  6299. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6304. <exception name="IOException" type="java.io.IOException"/>
  6305. </method>
  6306. <method name="mkdirs" return="boolean"
  6307. abstract="false" native="false" synchronized="false"
  6308. static="false" final="false" visibility="public"
  6309. deprecated="not deprecated">
  6310. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6311. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6312. <exception name="IOException" type="java.io.IOException"/>
  6313. </method>
  6314. <method name="rename" return="boolean"
  6315. abstract="false" native="false" synchronized="false"
  6316. static="false" final="false" visibility="public"
  6317. deprecated="not deprecated">
  6318. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6319. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6320. <exception name="IOException" type="java.io.IOException"/>
  6321. </method>
  6322. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6323. abstract="false" native="false" synchronized="false"
  6324. static="false" final="false" visibility="public"
  6325. deprecated="not deprecated">
  6326. </method>
  6327. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  6328. abstract="false" native="false" synchronized="false"
  6329. static="false" final="false" visibility="public"
  6330. deprecated="not deprecated">
  6331. </method>
  6332. <method name="setWorkingDirectory"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="false" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  6337. </method>
  6338. <field name="LOG" type="org.apache.commons.logging.Log"
  6339. transient="false" volatile="false"
  6340. static="true" final="true" visibility="public"
  6341. deprecated="not deprecated">
  6342. </field>
  6343. <field name="DEFAULT_BUFFER_SIZE" type="int"
  6344. transient="false" volatile="false"
  6345. static="true" final="true" visibility="public"
  6346. deprecated="not deprecated">
  6347. </field>
  6348. <field name="DEFAULT_BLOCK_SIZE" type="int"
  6349. transient="false" volatile="false"
  6350. static="true" final="true" visibility="public"
  6351. deprecated="not deprecated">
  6352. </field>
  6353. <doc>
  6354. <![CDATA[<p>
  6355. A {@link FileSystem} backed by an FTP client provided by <a
  6356. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  6357. </p>]]>
  6358. </doc>
  6359. </class>
  6360. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  6361. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6362. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  6363. abstract="false"
  6364. static="false" final="false" visibility="public"
  6365. deprecated="not deprecated">
  6366. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  6367. static="false" final="false" visibility="public"
  6368. deprecated="not deprecated">
  6369. </constructor>
  6370. <method name="getPos" return="long"
  6371. abstract="false" native="false" synchronized="false"
  6372. static="false" final="false" visibility="public"
  6373. deprecated="not deprecated">
  6374. <exception name="IOException" type="java.io.IOException"/>
  6375. </method>
  6376. <method name="seek"
  6377. abstract="false" native="false" synchronized="false"
  6378. static="false" final="false" visibility="public"
  6379. deprecated="not deprecated">
  6380. <param name="pos" type="long"/>
  6381. <exception name="IOException" type="java.io.IOException"/>
  6382. </method>
  6383. <method name="seekToNewSource" return="boolean"
  6384. abstract="false" native="false" synchronized="false"
  6385. static="false" final="false" visibility="public"
  6386. deprecated="not deprecated">
  6387. <param name="targetPos" type="long"/>
  6388. <exception name="IOException" type="java.io.IOException"/>
  6389. </method>
  6390. <method name="read" return="int"
  6391. abstract="false" native="false" synchronized="true"
  6392. static="false" final="false" visibility="public"
  6393. deprecated="not deprecated">
  6394. <exception name="IOException" type="java.io.IOException"/>
  6395. </method>
  6396. <method name="read" return="int"
  6397. abstract="false" native="false" synchronized="true"
  6398. static="false" final="false" visibility="public"
  6399. deprecated="not deprecated">
  6400. <param name="buf" type="byte[]"/>
  6401. <param name="off" type="int"/>
  6402. <param name="len" type="int"/>
  6403. <exception name="IOException" type="java.io.IOException"/>
  6404. </method>
  6405. <method name="close"
  6406. abstract="false" native="false" synchronized="true"
  6407. static="false" final="false" visibility="public"
  6408. deprecated="not deprecated">
  6409. <exception name="IOException" type="java.io.IOException"/>
  6410. </method>
  6411. <method name="markSupported" return="boolean"
  6412. abstract="false" native="false" synchronized="false"
  6413. static="false" final="false" visibility="public"
  6414. deprecated="not deprecated">
  6415. </method>
  6416. <method name="mark"
  6417. abstract="false" native="false" synchronized="false"
  6418. static="false" final="false" visibility="public"
  6419. deprecated="not deprecated">
  6420. <param name="readLimit" type="int"/>
  6421. </method>
  6422. <method name="reset"
  6423. abstract="false" native="false" synchronized="false"
  6424. static="false" final="false" visibility="public"
  6425. deprecated="not deprecated">
  6426. <exception name="IOException" type="java.io.IOException"/>
  6427. </method>
  6428. </class>
  6429. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  6430. </package>
  6431. <package name="org.apache.hadoop.fs.kfs">
  6432. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6433. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  6434. abstract="false"
  6435. static="false" final="false" visibility="public"
  6436. deprecated="not deprecated">
  6437. <constructor name="KosmosFileSystem"
  6438. static="false" final="false" visibility="public"
  6439. deprecated="not deprecated">
  6440. </constructor>
  6441. <method name="getUri" return="java.net.URI"
  6442. abstract="false" native="false" synchronized="false"
  6443. static="false" final="false" visibility="public"
  6444. deprecated="not deprecated">
  6445. </method>
  6446. <method name="initialize"
  6447. abstract="false" native="false" synchronized="false"
  6448. static="false" final="false" visibility="public"
  6449. deprecated="not deprecated">
  6450. <param name="uri" type="java.net.URI"/>
  6451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6452. <exception name="IOException" type="java.io.IOException"/>
  6453. </method>
  6454. <method name="getName" return="java.lang.String"
  6455. abstract="false" native="false" synchronized="false"
  6456. static="false" final="false" visibility="public"
  6457. deprecated="not deprecated">
  6458. </method>
  6459. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  6460. abstract="false" native="false" synchronized="false"
  6461. static="false" final="false" visibility="public"
  6462. deprecated="not deprecated">
  6463. </method>
  6464. <method name="setWorkingDirectory"
  6465. abstract="false" native="false" synchronized="false"
  6466. static="false" final="false" visibility="public"
  6467. deprecated="not deprecated">
  6468. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  6469. </method>
  6470. <method name="mkdirs" return="boolean"
  6471. abstract="false" native="false" synchronized="false"
  6472. static="false" final="false" visibility="public"
  6473. deprecated="not deprecated">
  6474. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6475. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6476. <exception name="IOException" type="java.io.IOException"/>
  6477. </method>
  6478. <method name="isDirectory" return="boolean"
  6479. abstract="false" native="false" synchronized="false"
  6480. static="false" final="false" visibility="public"
  6481. deprecated="not deprecated">
  6482. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6483. <exception name="IOException" type="java.io.IOException"/>
  6484. </method>
  6485. <method name="isFile" return="boolean"
  6486. abstract="false" native="false" synchronized="false"
  6487. static="false" final="false" visibility="public"
  6488. deprecated="not deprecated">
  6489. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6490. <exception name="IOException" type="java.io.IOException"/>
  6491. </method>
  6492. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  6493. abstract="false" native="false" synchronized="false"
  6494. static="false" final="false" visibility="public"
  6495. deprecated="not deprecated">
  6496. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6497. <exception name="IOException" type="java.io.IOException"/>
  6498. </method>
  6499. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  6500. abstract="false" native="false" synchronized="false"
  6501. static="false" final="false" visibility="public"
  6502. deprecated="not deprecated">
  6503. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6504. <exception name="IOException" type="java.io.IOException"/>
  6505. </method>
  6506. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  6507. abstract="false" native="false" synchronized="false"
  6508. static="false" final="false" visibility="public"
  6509. deprecated="not deprecated">
  6510. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6511. <param name="bufferSize" type="int"/>
  6512. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6513. <exception name="IOException" type="java.io.IOException"/>
  6514. <doc>
  6515. <![CDATA[This optional operation is not yet supported.]]>
  6516. </doc>
  6517. </method>
  6518. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6519. abstract="false" native="false" synchronized="false"
  6520. static="false" final="false" visibility="public"
  6521. deprecated="not deprecated">
  6522. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6523. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6524. <param name="overwrite" type="boolean"/>
  6525. <param name="bufferSize" type="int"/>
  6526. <param name="replication" type="short"/>
  6527. <param name="blockSize" type="long"/>
  6528. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  6529. <exception name="IOException" type="java.io.IOException"/>
  6530. </method>
  6531. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6532. abstract="false" native="false" synchronized="false"
  6533. static="false" final="false" visibility="public"
  6534. deprecated="not deprecated">
  6535. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6536. <param name="bufferSize" type="int"/>
  6537. <exception name="IOException" type="java.io.IOException"/>
  6538. </method>
  6539. <method name="rename" return="boolean"
  6540. abstract="false" native="false" synchronized="false"
  6541. static="false" final="false" visibility="public"
  6542. deprecated="not deprecated">
  6543. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6544. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6545. <exception name="IOException" type="java.io.IOException"/>
  6546. </method>
  6547. <method name="delete" return="boolean"
  6548. abstract="false" native="false" synchronized="false"
  6549. static="false" final="false" visibility="public"
  6550. deprecated="not deprecated">
  6551. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6552. <param name="recursive" type="boolean"/>
  6553. <exception name="IOException" type="java.io.IOException"/>
  6554. </method>
  6555. <method name="delete" return="boolean"
  6556. abstract="false" native="false" synchronized="false"
  6557. static="false" final="false" visibility="public"
  6558. deprecated="not deprecated">
  6559. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6560. <exception name="IOException" type="java.io.IOException"/>
  6561. </method>
  6562. <method name="getLength" return="long"
  6563. abstract="false" native="false" synchronized="false"
  6564. static="false" final="false" visibility="public"
  6565. deprecated="not deprecated">
  6566. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6567. <exception name="IOException" type="java.io.IOException"/>
  6568. </method>
  6569. <method name="getReplication" return="short"
  6570. abstract="false" native="false" synchronized="false"
  6571. static="false" final="false" visibility="public"
  6572. deprecated="not deprecated">
  6573. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6574. <exception name="IOException" type="java.io.IOException"/>
  6575. </method>
  6576. <method name="getDefaultReplication" return="short"
  6577. abstract="false" native="false" synchronized="false"
  6578. static="false" final="false" visibility="public"
  6579. deprecated="not deprecated">
  6580. </method>
  6581. <method name="setReplication" return="boolean"
  6582. abstract="false" native="false" synchronized="false"
  6583. static="false" final="false" visibility="public"
  6584. deprecated="not deprecated">
  6585. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6586. <param name="replication" type="short"/>
  6587. <exception name="IOException" type="java.io.IOException"/>
  6588. </method>
  6589. <method name="getDefaultBlockSize" return="long"
  6590. abstract="false" native="false" synchronized="false"
  6591. static="false" final="false" visibility="public"
  6592. deprecated="not deprecated">
  6593. </method>
  6594. <method name="lock"
  6595. abstract="false" native="false" synchronized="false"
  6596. static="false" final="false" visibility="public"
  6597. deprecated="not deprecated">
  6598. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6599. <param name="shared" type="boolean"/>
  6600. <exception name="IOException" type="java.io.IOException"/>
  6601. </method>
  6602. <method name="release"
  6603. abstract="false" native="false" synchronized="false"
  6604. static="false" final="false" visibility="public"
  6605. deprecated="not deprecated">
  6606. <param name="path" type="org.apache.hadoop.fs.Path"/>
  6607. <exception name="IOException" type="java.io.IOException"/>
  6608. </method>
  6609. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  6610. abstract="false" native="false" synchronized="false"
  6611. static="false" final="false" visibility="public"
  6612. deprecated="not deprecated">
  6613. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  6614. <param name="start" type="long"/>
  6615. <param name="len" type="long"/>
  6616. <exception name="IOException" type="java.io.IOException"/>
  6617. <doc>
  6618. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  6619. locations of the various chunks of the file file from KFS.]]>
  6620. </doc>
  6621. </method>
  6622. <method name="copyFromLocalFile"
  6623. abstract="false" native="false" synchronized="false"
  6624. static="false" final="false" visibility="public"
  6625. deprecated="not deprecated">
  6626. <param name="delSrc" type="boolean"/>
  6627. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6628. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6629. <exception name="IOException" type="java.io.IOException"/>
  6630. </method>
  6631. <method name="copyToLocalFile"
  6632. abstract="false" native="false" synchronized="false"
  6633. static="false" final="false" visibility="public"
  6634. deprecated="not deprecated">
  6635. <param name="delSrc" type="boolean"/>
  6636. <param name="src" type="org.apache.hadoop.fs.Path"/>
  6637. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  6638. <exception name="IOException" type="java.io.IOException"/>
  6639. </method>
  6640. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  6641. abstract="false" native="false" synchronized="false"
  6642. static="false" final="false" visibility="public"
  6643. deprecated="not deprecated">
  6644. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6645. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6646. <exception name="IOException" type="java.io.IOException"/>
  6647. </method>
  6648. <method name="completeLocalOutput"
  6649. abstract="false" native="false" synchronized="false"
  6650. static="false" final="false" visibility="public"
  6651. deprecated="not deprecated">
  6652. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  6653. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  6654. <exception name="IOException" type="java.io.IOException"/>
  6655. </method>
  6656. <doc>
  6657. <![CDATA[A FileSystem backed by KFS.]]>
  6658. </doc>
  6659. </class>
  6660. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  6661. </package>
  6662. <package name="org.apache.hadoop.fs.permission">
  6663. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  6664. <class name="AccessControlException" extends="java.io.IOException"
  6665. abstract="false"
  6666. static="false" final="false" visibility="public"
  6667. deprecated="not deprecated">
  6668. <constructor name="AccessControlException"
  6669. static="false" final="false" visibility="public"
  6670. deprecated="not deprecated">
  6671. <doc>
  6672. <![CDATA[Default constructor is needed for unwrapping from
  6673. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  6674. </doc>
  6675. </constructor>
  6676. <constructor name="AccessControlException" type="java.lang.String"
  6677. static="false" final="false" visibility="public"
  6678. deprecated="not deprecated">
  6679. <doc>
  6680. <![CDATA[Constructs an {@link AccessControlException}
  6681. with the specified detail message.
  6682. @param s the detail message.]]>
  6683. </doc>
  6684. </constructor>
  6685. </class>
  6686. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  6687. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  6688. <class name="FsAction" extends="java.lang.Enum&lt;org.apache.hadoop.fs.permission.FsAction&gt;"
  6689. abstract="false"
  6690. static="false" final="true" visibility="public"
  6691. deprecated="not deprecated">
  6692. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  6693. abstract="false" native="false" synchronized="false"
  6694. static="true" final="false" visibility="public"
  6695. deprecated="not deprecated">
  6696. </method>
  6697. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  6698. abstract="false" native="false" synchronized="false"
  6699. static="true" final="false" visibility="public"
  6700. deprecated="not deprecated">
  6701. <param name="name" type="java.lang.String"/>
  6702. </method>
  6703. <method name="implies" return="boolean"
  6704. abstract="false" native="false" synchronized="false"
  6705. static="false" final="false" visibility="public"
  6706. deprecated="not deprecated">
  6707. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6708. <doc>
  6709. <![CDATA[Return true if this action implies that action.
  6710. @param that]]>
  6711. </doc>
  6712. </method>
  6713. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  6714. abstract="false" native="false" synchronized="false"
  6715. static="false" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6718. <doc>
  6719. <![CDATA[AND operation.]]>
  6720. </doc>
  6721. </method>
  6722. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  6723. abstract="false" native="false" synchronized="false"
  6724. static="false" final="false" visibility="public"
  6725. deprecated="not deprecated">
  6726. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  6727. <doc>
  6728. <![CDATA[OR operation.]]>
  6729. </doc>
  6730. </method>
  6731. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  6732. abstract="false" native="false" synchronized="false"
  6733. static="false" final="false" visibility="public"
  6734. deprecated="not deprecated">
  6735. <doc>
  6736. <![CDATA[NOT operation.]]>
  6737. </doc>
  6738. </method>
  6739. <field name="INDEX" type="int"
  6740. transient="false" volatile="false"
  6741. static="false" final="true" visibility="public"
  6742. deprecated="not deprecated">
  6743. <doc>
  6744. <![CDATA[Octal representation]]>
  6745. </doc>
  6746. </field>
  6747. <field name="SYMBOL" type="java.lang.String"
  6748. transient="false" volatile="false"
  6749. static="false" final="true" visibility="public"
  6750. deprecated="not deprecated">
  6751. <doc>
  6752. <![CDATA[Symbolic representation]]>
  6753. </doc>
  6754. </field>
  6755. <doc>
  6756. <![CDATA[File system actions, e.g. read, write, etc.]]>
  6757. </doc>
  6758. </class>
  6759. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  6760. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  6761. <class name="FsPermission" extends="java.lang.Object"
  6762. abstract="false"
  6763. static="false" final="false" visibility="public"
  6764. deprecated="not deprecated">
  6765. <implements name="org.apache.hadoop.io.Writable"/>
  6766. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  6767. static="false" final="false" visibility="public"
  6768. deprecated="not deprecated">
  6769. <doc>
  6770. <![CDATA[Construct by the given {@link FsAction}.
  6771. @param u user action
  6772. @param g group action
  6773. @param o other action]]>
  6774. </doc>
  6775. </constructor>
  6776. <constructor name="FsPermission" type="short"
  6777. static="false" final="false" visibility="public"
  6778. deprecated="not deprecated">
  6779. <doc>
  6780. <![CDATA[Construct by the given mode.
  6781. @param mode
  6782. @see #toShort()]]>
  6783. </doc>
  6784. </constructor>
  6785. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  6786. static="false" final="false" visibility="public"
  6787. deprecated="not deprecated">
  6788. <doc>
  6789. <![CDATA[Copy constructor
  6790. @param other other permission]]>
  6791. </doc>
  6792. </constructor>
  6793. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  6794. abstract="false" native="false" synchronized="false"
  6795. static="true" final="false" visibility="public"
  6796. deprecated="not deprecated">
  6797. <param name="permission" type="short"/>
  6798. <doc>
  6799. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  6800. </doc>
  6801. </method>
  6802. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  6803. abstract="false" native="false" synchronized="false"
  6804. static="false" final="false" visibility="public"
  6805. deprecated="not deprecated">
  6806. <doc>
  6807. <![CDATA[Return user {@link FsAction}.]]>
  6808. </doc>
  6809. </method>
  6810. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  6811. abstract="false" native="false" synchronized="false"
  6812. static="false" final="false" visibility="public"
  6813. deprecated="not deprecated">
  6814. <doc>
  6815. <![CDATA[Return group {@link FsAction}.]]>
  6816. </doc>
  6817. </method>
  6818. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  6819. abstract="false" native="false" synchronized="false"
  6820. static="false" final="false" visibility="public"
  6821. deprecated="not deprecated">
  6822. <doc>
  6823. <![CDATA[Return other {@link FsAction}.]]>
  6824. </doc>
  6825. </method>
  6826. <method name="fromShort"
  6827. abstract="false" native="false" synchronized="false"
  6828. static="false" final="false" visibility="public"
  6829. deprecated="not deprecated">
  6830. <param name="n" type="short"/>
  6831. </method>
  6832. <method name="write"
  6833. abstract="false" native="false" synchronized="false"
  6834. static="false" final="false" visibility="public"
  6835. deprecated="not deprecated">
  6836. <param name="out" type="java.io.DataOutput"/>
  6837. <exception name="IOException" type="java.io.IOException"/>
  6838. <doc>
  6839. <![CDATA[{@inheritDoc}]]>
  6840. </doc>
  6841. </method>
  6842. <method name="readFields"
  6843. abstract="false" native="false" synchronized="false"
  6844. static="false" final="false" visibility="public"
  6845. deprecated="not deprecated">
  6846. <param name="in" type="java.io.DataInput"/>
  6847. <exception name="IOException" type="java.io.IOException"/>
  6848. <doc>
  6849. <![CDATA[{@inheritDoc}]]>
  6850. </doc>
  6851. </method>
  6852. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  6853. abstract="false" native="false" synchronized="false"
  6854. static="true" final="false" visibility="public"
  6855. deprecated="not deprecated">
  6856. <param name="in" type="java.io.DataInput"/>
  6857. <exception name="IOException" type="java.io.IOException"/>
  6858. <doc>
  6859. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  6860. </doc>
  6861. </method>
  6862. <method name="toShort" return="short"
  6863. abstract="false" native="false" synchronized="false"
  6864. static="false" final="false" visibility="public"
  6865. deprecated="not deprecated">
  6866. <doc>
  6867. <![CDATA[Encode the object to a short.]]>
  6868. </doc>
  6869. </method>
  6870. <method name="equals" return="boolean"
  6871. abstract="false" native="false" synchronized="false"
  6872. static="false" final="false" visibility="public"
  6873. deprecated="not deprecated">
  6874. <param name="obj" type="java.lang.Object"/>
  6875. <doc>
  6876. <![CDATA[{@inheritDoc}]]>
  6877. </doc>
  6878. </method>
  6879. <method name="hashCode" return="int"
  6880. abstract="false" native="false" synchronized="false"
  6881. static="false" final="false" visibility="public"
  6882. deprecated="not deprecated">
  6883. <doc>
  6884. <![CDATA[{@inheritDoc}]]>
  6885. </doc>
  6886. </method>
  6887. <method name="toString" return="java.lang.String"
  6888. abstract="false" native="false" synchronized="false"
  6889. static="false" final="false" visibility="public"
  6890. deprecated="not deprecated">
  6891. <doc>
  6892. <![CDATA[{@inheritDoc}]]>
  6893. </doc>
  6894. </method>
  6895. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6896. abstract="false" native="false" synchronized="false"
  6897. static="false" final="false" visibility="public"
  6898. deprecated="not deprecated">
  6899. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6900. <doc>
  6901. <![CDATA[Apply a umask to this permission and return a new one]]>
  6902. </doc>
  6903. </method>
  6904. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  6905. abstract="false" native="false" synchronized="false"
  6906. static="true" final="false" visibility="public"
  6907. deprecated="not deprecated">
  6908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6909. <doc>
  6910. <![CDATA[Get the user file creation mask (umask)]]>
  6911. </doc>
  6912. </method>
  6913. <method name="setUMask"
  6914. abstract="false" native="false" synchronized="false"
  6915. static="true" final="false" visibility="public"
  6916. deprecated="not deprecated">
  6917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6918. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6919. <doc>
  6920. <![CDATA[Set the user file creation mask (umask)]]>
  6921. </doc>
  6922. </method>
  6923. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  6924. abstract="false" native="false" synchronized="false"
  6925. static="true" final="false" visibility="public"
  6926. deprecated="not deprecated">
  6927. <doc>
  6928. <![CDATA[Get the default permission.]]>
  6929. </doc>
  6930. </method>
  6931. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  6932. abstract="false" native="false" synchronized="false"
  6933. static="true" final="false" visibility="public"
  6934. deprecated="not deprecated">
  6935. <param name="unixSymbolicPermission" type="java.lang.String"/>
  6936. <doc>
  6937. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  6938. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  6939. </doc>
  6940. </method>
  6941. <field name="UMASK_LABEL" type="java.lang.String"
  6942. transient="false" volatile="false"
  6943. static="true" final="true" visibility="public"
  6944. deprecated="not deprecated">
  6945. <doc>
  6946. <![CDATA[umask property label]]>
  6947. </doc>
  6948. </field>
  6949. <field name="DEFAULT_UMASK" type="int"
  6950. transient="false" volatile="false"
  6951. static="true" final="true" visibility="public"
  6952. deprecated="not deprecated">
  6953. </field>
  6954. <doc>
  6955. <![CDATA[A class for file/directory permissions.]]>
  6956. </doc>
  6957. </class>
  6958. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  6959. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  6960. <class name="PermissionStatus" extends="java.lang.Object"
  6961. abstract="false"
  6962. static="false" final="false" visibility="public"
  6963. deprecated="not deprecated">
  6964. <implements name="org.apache.hadoop.io.Writable"/>
  6965. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  6966. static="false" final="false" visibility="public"
  6967. deprecated="not deprecated">
  6968. <doc>
  6969. <![CDATA[Constructor]]>
  6970. </doc>
  6971. </constructor>
  6972. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  6973. abstract="false" native="false" synchronized="false"
  6974. static="true" final="false" visibility="public"
  6975. deprecated="not deprecated">
  6976. <param name="user" type="java.lang.String"/>
  6977. <param name="group" type="java.lang.String"/>
  6978. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6979. <doc>
  6980. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  6981. </doc>
  6982. </method>
  6983. <method name="getUserName" return="java.lang.String"
  6984. abstract="false" native="false" synchronized="false"
  6985. static="false" final="false" visibility="public"
  6986. deprecated="not deprecated">
  6987. <doc>
  6988. <![CDATA[Return user name]]>
  6989. </doc>
  6990. </method>
  6991. <method name="getGroupName" return="java.lang.String"
  6992. abstract="false" native="false" synchronized="false"
  6993. static="false" final="false" visibility="public"
  6994. deprecated="not deprecated">
  6995. <doc>
  6996. <![CDATA[Return group name]]>
  6997. </doc>
  6998. </method>
  6999. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7000. abstract="false" native="false" synchronized="false"
  7001. static="false" final="false" visibility="public"
  7002. deprecated="not deprecated">
  7003. <doc>
  7004. <![CDATA[Return permission]]>
  7005. </doc>
  7006. </method>
  7007. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7008. abstract="false" native="false" synchronized="false"
  7009. static="false" final="false" visibility="public"
  7010. deprecated="not deprecated">
  7011. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7012. <doc>
  7013. <![CDATA[Apply umask.
  7014. @see FsPermission#applyUMask(FsPermission)]]>
  7015. </doc>
  7016. </method>
  7017. <method name="readFields"
  7018. abstract="false" native="false" synchronized="false"
  7019. static="false" final="false" visibility="public"
  7020. deprecated="not deprecated">
  7021. <param name="in" type="java.io.DataInput"/>
  7022. <exception name="IOException" type="java.io.IOException"/>
  7023. <doc>
  7024. <![CDATA[{@inheritDoc}]]>
  7025. </doc>
  7026. </method>
  7027. <method name="write"
  7028. abstract="false" native="false" synchronized="false"
  7029. static="false" final="false" visibility="public"
  7030. deprecated="not deprecated">
  7031. <param name="out" type="java.io.DataOutput"/>
  7032. <exception name="IOException" type="java.io.IOException"/>
  7033. <doc>
  7034. <![CDATA[{@inheritDoc}]]>
  7035. </doc>
  7036. </method>
  7037. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  7038. abstract="false" native="false" synchronized="false"
  7039. static="true" final="false" visibility="public"
  7040. deprecated="not deprecated">
  7041. <param name="in" type="java.io.DataInput"/>
  7042. <exception name="IOException" type="java.io.IOException"/>
  7043. <doc>
  7044. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  7045. </doc>
  7046. </method>
  7047. <method name="write"
  7048. abstract="false" native="false" synchronized="false"
  7049. static="true" final="false" visibility="public"
  7050. deprecated="not deprecated">
  7051. <param name="out" type="java.io.DataOutput"/>
  7052. <param name="username" type="java.lang.String"/>
  7053. <param name="groupname" type="java.lang.String"/>
  7054. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7055. <exception name="IOException" type="java.io.IOException"/>
  7056. <doc>
  7057. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  7058. </doc>
  7059. </method>
  7060. <method name="toString" return="java.lang.String"
  7061. abstract="false" native="false" synchronized="false"
  7062. static="false" final="false" visibility="public"
  7063. deprecated="not deprecated">
  7064. <doc>
  7065. <![CDATA[{@inheritDoc}]]>
  7066. </doc>
  7067. </method>
  7068. <doc>
  7069. <![CDATA[Store permission related information.]]>
  7070. </doc>
  7071. </class>
  7072. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  7073. </package>
  7074. <package name="org.apache.hadoop.fs.s3">
  7075. <!-- start class org.apache.hadoop.fs.s3.Block -->
  7076. <class name="Block" extends="java.lang.Object"
  7077. abstract="false"
  7078. static="false" final="false" visibility="public"
  7079. deprecated="not deprecated">
  7080. <constructor name="Block" type="long, long"
  7081. static="false" final="false" visibility="public"
  7082. deprecated="not deprecated">
  7083. </constructor>
  7084. <method name="getId" return="long"
  7085. abstract="false" native="false" synchronized="false"
  7086. static="false" final="false" visibility="public"
  7087. deprecated="not deprecated">
  7088. </method>
  7089. <method name="getLength" return="long"
  7090. abstract="false" native="false" synchronized="false"
  7091. static="false" final="false" visibility="public"
  7092. deprecated="not deprecated">
  7093. </method>
  7094. <method name="toString" return="java.lang.String"
  7095. abstract="false" native="false" synchronized="false"
  7096. static="false" final="false" visibility="public"
  7097. deprecated="not deprecated">
  7098. </method>
  7099. <doc>
  7100. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  7101. </doc>
  7102. </class>
  7103. <!-- end class org.apache.hadoop.fs.s3.Block -->
  7104. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7105. <interface name="FileSystemStore" abstract="true"
  7106. static="false" final="false" visibility="public"
  7107. deprecated="not deprecated">
  7108. <method name="initialize"
  7109. abstract="false" native="false" synchronized="false"
  7110. static="false" final="false" visibility="public"
  7111. deprecated="not deprecated">
  7112. <param name="uri" type="java.net.URI"/>
  7113. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7114. <exception name="IOException" type="java.io.IOException"/>
  7115. </method>
  7116. <method name="getVersion" return="java.lang.String"
  7117. abstract="false" native="false" synchronized="false"
  7118. static="false" final="false" visibility="public"
  7119. deprecated="not deprecated">
  7120. <exception name="IOException" type="java.io.IOException"/>
  7121. </method>
  7122. <method name="storeINode"
  7123. abstract="false" native="false" synchronized="false"
  7124. static="false" final="false" visibility="public"
  7125. deprecated="not deprecated">
  7126. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7127. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  7128. <exception name="IOException" type="java.io.IOException"/>
  7129. </method>
  7130. <method name="storeBlock"
  7131. abstract="false" native="false" synchronized="false"
  7132. static="false" final="false" visibility="public"
  7133. deprecated="not deprecated">
  7134. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7135. <param name="file" type="java.io.File"/>
  7136. <exception name="IOException" type="java.io.IOException"/>
  7137. </method>
  7138. <method name="inodeExists" return="boolean"
  7139. abstract="false" native="false" synchronized="false"
  7140. static="false" final="false" visibility="public"
  7141. deprecated="not deprecated">
  7142. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7143. <exception name="IOException" type="java.io.IOException"/>
  7144. </method>
  7145. <method name="blockExists" return="boolean"
  7146. abstract="false" native="false" synchronized="false"
  7147. static="false" final="false" visibility="public"
  7148. deprecated="not deprecated">
  7149. <param name="blockId" type="long"/>
  7150. <exception name="IOException" type="java.io.IOException"/>
  7151. </method>
  7152. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  7153. abstract="false" native="false" synchronized="false"
  7154. static="false" final="false" visibility="public"
  7155. deprecated="not deprecated">
  7156. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7157. <exception name="IOException" type="java.io.IOException"/>
  7158. </method>
  7159. <method name="retrieveBlock" return="java.io.File"
  7160. abstract="false" native="false" synchronized="false"
  7161. static="false" final="false" visibility="public"
  7162. deprecated="not deprecated">
  7163. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7164. <param name="byteRangeStart" type="long"/>
  7165. <exception name="IOException" type="java.io.IOException"/>
  7166. </method>
  7167. <method name="deleteINode"
  7168. abstract="false" native="false" synchronized="false"
  7169. static="false" final="false" visibility="public"
  7170. deprecated="not deprecated">
  7171. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7172. <exception name="IOException" type="java.io.IOException"/>
  7173. </method>
  7174. <method name="deleteBlock"
  7175. abstract="false" native="false" synchronized="false"
  7176. static="false" final="false" visibility="public"
  7177. deprecated="not deprecated">
  7178. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  7179. <exception name="IOException" type="java.io.IOException"/>
  7180. </method>
  7181. <method name="listSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  7182. abstract="false" native="false" synchronized="false"
  7183. static="false" final="false" visibility="public"
  7184. deprecated="not deprecated">
  7185. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7186. <exception name="IOException" type="java.io.IOException"/>
  7187. </method>
  7188. <method name="listDeepSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  7189. abstract="false" native="false" synchronized="false"
  7190. static="false" final="false" visibility="public"
  7191. deprecated="not deprecated">
  7192. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7193. <exception name="IOException" type="java.io.IOException"/>
  7194. </method>
  7195. <method name="purge"
  7196. abstract="false" native="false" synchronized="false"
  7197. static="false" final="false" visibility="public"
  7198. deprecated="not deprecated">
  7199. <exception name="IOException" type="java.io.IOException"/>
  7200. <doc>
  7201. <![CDATA[Delete everything. Used for testing.
  7202. @throws IOException]]>
  7203. </doc>
  7204. </method>
  7205. <method name="dump"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. <exception name="IOException" type="java.io.IOException"/>
  7210. <doc>
  7211. <![CDATA[Diagnostic method to dump all INodes to the console.
  7212. @throws IOException]]>
  7213. </doc>
  7214. </method>
  7215. <doc>
  7216. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  7217. </doc>
  7218. </interface>
  7219. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  7220. <!-- start class org.apache.hadoop.fs.s3.INode -->
  7221. <class name="INode" extends="java.lang.Object"
  7222. abstract="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  7226. static="false" final="false" visibility="public"
  7227. deprecated="not deprecated">
  7228. </constructor>
  7229. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  7230. abstract="false" native="false" synchronized="false"
  7231. static="false" final="false" visibility="public"
  7232. deprecated="not deprecated">
  7233. </method>
  7234. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  7235. abstract="false" native="false" synchronized="false"
  7236. static="false" final="false" visibility="public"
  7237. deprecated="not deprecated">
  7238. </method>
  7239. <method name="isDirectory" return="boolean"
  7240. abstract="false" native="false" synchronized="false"
  7241. static="false" final="false" visibility="public"
  7242. deprecated="not deprecated">
  7243. </method>
  7244. <method name="isFile" return="boolean"
  7245. abstract="false" native="false" synchronized="false"
  7246. static="false" final="false" visibility="public"
  7247. deprecated="not deprecated">
  7248. </method>
  7249. <method name="getSerializedLength" return="long"
  7250. abstract="false" native="false" synchronized="false"
  7251. static="false" final="false" visibility="public"
  7252. deprecated="not deprecated">
  7253. </method>
  7254. <method name="serialize" return="java.io.InputStream"
  7255. abstract="false" native="false" synchronized="false"
  7256. static="false" final="false" visibility="public"
  7257. deprecated="not deprecated">
  7258. <exception name="IOException" type="java.io.IOException"/>
  7259. </method>
  7260. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  7261. abstract="false" native="false" synchronized="false"
  7262. static="true" final="false" visibility="public"
  7263. deprecated="not deprecated">
  7264. <param name="in" type="java.io.InputStream"/>
  7265. <exception name="IOException" type="java.io.IOException"/>
  7266. </method>
  7267. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  7268. transient="false" volatile="false"
  7269. static="true" final="true" visibility="public"
  7270. deprecated="not deprecated">
  7271. </field>
  7272. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  7273. transient="false" volatile="false"
  7274. static="true" final="true" visibility="public"
  7275. deprecated="not deprecated">
  7276. </field>
  7277. <doc>
  7278. <![CDATA[Holds file metadata including type (regular file, or directory),
  7279. and the list of blocks that are pointers to the data.]]>
  7280. </doc>
  7281. </class>
  7282. <!-- end class org.apache.hadoop.fs.s3.INode -->
  7283. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  7284. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  7285. abstract="false"
  7286. static="false" final="false" visibility="public"
  7287. deprecated="not deprecated">
  7288. <implements name="org.apache.hadoop.util.Tool"/>
  7289. <constructor name="MigrationTool"
  7290. static="false" final="false" visibility="public"
  7291. deprecated="not deprecated">
  7292. </constructor>
  7293. <method name="main"
  7294. abstract="false" native="false" synchronized="false"
  7295. static="true" final="false" visibility="public"
  7296. deprecated="not deprecated">
  7297. <param name="args" type="java.lang.String[]"/>
  7298. <exception name="Exception" type="java.lang.Exception"/>
  7299. </method>
  7300. <method name="run" return="int"
  7301. abstract="false" native="false" synchronized="false"
  7302. static="false" final="false" visibility="public"
  7303. deprecated="not deprecated">
  7304. <param name="args" type="java.lang.String[]"/>
  7305. <exception name="Exception" type="java.lang.Exception"/>
  7306. </method>
  7307. <method name="initialize"
  7308. abstract="false" native="false" synchronized="false"
  7309. static="false" final="false" visibility="public"
  7310. deprecated="not deprecated">
  7311. <param name="uri" type="java.net.URI"/>
  7312. <exception name="IOException" type="java.io.IOException"/>
  7313. </method>
  7314. <doc>
  7315. <![CDATA[<p>
  7316. This class is a tool for migrating data from an older to a newer version
  7317. of an S3 filesystem.
  7318. </p>
  7319. <p>
  7320. All files in the filesystem are migrated by re-writing the block metadata
  7321. - no datafiles are touched.
  7322. </p>]]>
  7323. </doc>
  7324. </class>
  7325. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  7326. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  7327. <class name="S3Credentials" extends="java.lang.Object"
  7328. abstract="false"
  7329. static="false" final="false" visibility="public"
  7330. deprecated="not deprecated">
  7331. <constructor name="S3Credentials"
  7332. static="false" final="false" visibility="public"
  7333. deprecated="not deprecated">
  7334. </constructor>
  7335. <method name="initialize"
  7336. abstract="false" native="false" synchronized="false"
  7337. static="false" final="false" visibility="public"
  7338. deprecated="not deprecated">
  7339. <param name="uri" type="java.net.URI"/>
  7340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7341. <doc>
  7342. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  7343. determined.]]>
  7344. </doc>
  7345. </method>
  7346. <method name="getAccessKey" return="java.lang.String"
  7347. abstract="false" native="false" synchronized="false"
  7348. static="false" final="false" visibility="public"
  7349. deprecated="not deprecated">
  7350. </method>
  7351. <method name="getSecretAccessKey" return="java.lang.String"
  7352. abstract="false" native="false" synchronized="false"
  7353. static="false" final="false" visibility="public"
  7354. deprecated="not deprecated">
  7355. </method>
  7356. <doc>
  7357. <![CDATA[<p>
  7358. Extracts AWS credentials from the filesystem URI or configuration.
  7359. </p>]]>
  7360. </doc>
  7361. </class>
  7362. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  7363. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  7364. <class name="S3Exception" extends="java.lang.RuntimeException"
  7365. abstract="false"
  7366. static="false" final="false" visibility="public"
  7367. deprecated="not deprecated">
  7368. <constructor name="S3Exception" type="java.lang.Throwable"
  7369. static="false" final="false" visibility="public"
  7370. deprecated="not deprecated">
  7371. </constructor>
  7372. <doc>
  7373. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  7374. </doc>
  7375. </class>
  7376. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  7377. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  7378. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7379. abstract="false"
  7380. static="false" final="false" visibility="public"
  7381. deprecated="not deprecated">
  7382. <constructor name="S3FileSystem"
  7383. static="false" final="false" visibility="public"
  7384. deprecated="not deprecated">
  7385. </constructor>
  7386. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  7387. static="false" final="false" visibility="public"
  7388. deprecated="not deprecated">
  7389. </constructor>
  7390. <method name="getUri" return="java.net.URI"
  7391. abstract="false" native="false" synchronized="false"
  7392. static="false" final="false" visibility="public"
  7393. deprecated="not deprecated">
  7394. </method>
  7395. <method name="initialize"
  7396. abstract="false" native="false" synchronized="false"
  7397. static="false" final="false" visibility="public"
  7398. deprecated="not deprecated">
  7399. <param name="uri" type="java.net.URI"/>
  7400. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7401. <exception name="IOException" type="java.io.IOException"/>
  7402. </method>
  7403. <method name="getName" return="java.lang.String"
  7404. abstract="false" native="false" synchronized="false"
  7405. static="false" final="false" visibility="public"
  7406. deprecated="not deprecated">
  7407. </method>
  7408. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7409. abstract="false" native="false" synchronized="false"
  7410. static="false" final="false" visibility="public"
  7411. deprecated="not deprecated">
  7412. </method>
  7413. <method name="setWorkingDirectory"
  7414. abstract="false" native="false" synchronized="false"
  7415. static="false" final="false" visibility="public"
  7416. deprecated="not deprecated">
  7417. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7418. </method>
  7419. <method name="mkdirs" return="boolean"
  7420. abstract="false" native="false" synchronized="false"
  7421. static="false" final="false" visibility="public"
  7422. deprecated="not deprecated">
  7423. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7424. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7425. <exception name="IOException" type="java.io.IOException"/>
  7426. <doc>
  7427. <![CDATA[@param permission Currently ignored.]]>
  7428. </doc>
  7429. </method>
  7430. <method name="isFile" return="boolean"
  7431. abstract="false" native="false" synchronized="false"
  7432. static="false" final="false" visibility="public"
  7433. deprecated="not deprecated">
  7434. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7435. <exception name="IOException" type="java.io.IOException"/>
  7436. </method>
  7437. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7438. abstract="false" native="false" synchronized="false"
  7439. static="false" final="false" visibility="public"
  7440. deprecated="not deprecated">
  7441. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7442. <exception name="IOException" type="java.io.IOException"/>
  7443. </method>
  7444. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7445. abstract="false" native="false" synchronized="false"
  7446. static="false" final="false" visibility="public"
  7447. deprecated="not deprecated">
  7448. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7449. <param name="bufferSize" type="int"/>
  7450. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7451. <exception name="IOException" type="java.io.IOException"/>
  7452. <doc>
  7453. <![CDATA[This optional operation is not yet supported.]]>
  7454. </doc>
  7455. </method>
  7456. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7457. abstract="false" native="false" synchronized="false"
  7458. static="false" final="false" visibility="public"
  7459. deprecated="not deprecated">
  7460. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7461. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7462. <param name="overwrite" type="boolean"/>
  7463. <param name="bufferSize" type="int"/>
  7464. <param name="replication" type="short"/>
  7465. <param name="blockSize" type="long"/>
  7466. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7467. <exception name="IOException" type="java.io.IOException"/>
  7468. <doc>
  7469. <![CDATA[@param permission Currently ignored.]]>
  7470. </doc>
  7471. </method>
  7472. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7473. abstract="false" native="false" synchronized="false"
  7474. static="false" final="false" visibility="public"
  7475. deprecated="not deprecated">
  7476. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7477. <param name="bufferSize" type="int"/>
  7478. <exception name="IOException" type="java.io.IOException"/>
  7479. </method>
  7480. <method name="rename" return="boolean"
  7481. abstract="false" native="false" synchronized="false"
  7482. static="false" final="false" visibility="public"
  7483. deprecated="not deprecated">
  7484. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7485. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7486. <exception name="IOException" type="java.io.IOException"/>
  7487. </method>
  7488. <method name="delete" return="boolean"
  7489. abstract="false" native="false" synchronized="false"
  7490. static="false" final="false" visibility="public"
  7491. deprecated="not deprecated">
  7492. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7493. <param name="recursive" type="boolean"/>
  7494. <exception name="IOException" type="java.io.IOException"/>
  7495. </method>
  7496. <method name="delete" return="boolean"
  7497. abstract="false" native="false" synchronized="false"
  7498. static="false" final="false" visibility="public"
  7499. deprecated="not deprecated">
  7500. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7501. <exception name="IOException" type="java.io.IOException"/>
  7502. </method>
  7503. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7504. abstract="false" native="false" synchronized="false"
  7505. static="false" final="false" visibility="public"
  7506. deprecated="not deprecated">
  7507. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7508. <exception name="IOException" type="java.io.IOException"/>
  7509. <doc>
  7510. <![CDATA[FileStatus for S3 file systems.]]>
  7511. </doc>
  7512. </method>
  7513. <doc>
  7514. <![CDATA[<p>
  7515. A block-based {@link FileSystem} backed by
  7516. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7517. </p>
  7518. @see NativeS3FileSystem]]>
  7519. </doc>
  7520. </class>
  7521. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  7522. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7523. <class name="S3FileSystemException" extends="java.io.IOException"
  7524. abstract="false"
  7525. static="false" final="false" visibility="public"
  7526. deprecated="not deprecated">
  7527. <constructor name="S3FileSystemException" type="java.lang.String"
  7528. static="false" final="false" visibility="public"
  7529. deprecated="not deprecated">
  7530. </constructor>
  7531. <doc>
  7532. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  7533. </doc>
  7534. </class>
  7535. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  7536. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7537. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  7538. abstract="false"
  7539. static="false" final="false" visibility="public"
  7540. deprecated="not deprecated">
  7541. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  7542. static="false" final="false" visibility="public"
  7543. deprecated="not deprecated">
  7544. </constructor>
  7545. <doc>
  7546. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  7547. in {@link S3FileSystem}.]]>
  7548. </doc>
  7549. </class>
  7550. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  7551. </package>
  7552. <package name="org.apache.hadoop.fs.s3native">
  7553. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7554. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  7555. abstract="false"
  7556. static="false" final="false" visibility="public"
  7557. deprecated="not deprecated">
  7558. <constructor name="NativeS3FileSystem"
  7559. static="false" final="false" visibility="public"
  7560. deprecated="not deprecated">
  7561. </constructor>
  7562. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  7563. static="false" final="false" visibility="public"
  7564. deprecated="not deprecated">
  7565. </constructor>
  7566. <method name="initialize"
  7567. abstract="false" native="false" synchronized="false"
  7568. static="false" final="false" visibility="public"
  7569. deprecated="not deprecated">
  7570. <param name="uri" type="java.net.URI"/>
  7571. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7572. <exception name="IOException" type="java.io.IOException"/>
  7573. </method>
  7574. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  7575. abstract="false" native="false" synchronized="false"
  7576. static="false" final="false" visibility="public"
  7577. deprecated="not deprecated">
  7578. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7579. <param name="bufferSize" type="int"/>
  7580. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7581. <exception name="IOException" type="java.io.IOException"/>
  7582. <doc>
  7583. <![CDATA[This optional operation is not yet supported.]]>
  7584. </doc>
  7585. </method>
  7586. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7587. abstract="false" native="false" synchronized="false"
  7588. static="false" final="false" visibility="public"
  7589. deprecated="not deprecated">
  7590. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7591. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7592. <param name="overwrite" type="boolean"/>
  7593. <param name="bufferSize" type="int"/>
  7594. <param name="replication" type="short"/>
  7595. <param name="blockSize" type="long"/>
  7596. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7597. <exception name="IOException" type="java.io.IOException"/>
  7598. </method>
  7599. <method name="delete" return="boolean"
  7600. abstract="false" native="false" synchronized="false"
  7601. static="false" final="false" visibility="public"
  7602. deprecated="not deprecated">
  7603. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7604. <exception name="IOException" type="java.io.IOException"/>
  7605. </method>
  7606. <method name="delete" return="boolean"
  7607. abstract="false" native="false" synchronized="false"
  7608. static="false" final="false" visibility="public"
  7609. deprecated="not deprecated">
  7610. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7611. <param name="recursive" type="boolean"/>
  7612. <exception name="IOException" type="java.io.IOException"/>
  7613. </method>
  7614. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  7615. abstract="false" native="false" synchronized="false"
  7616. static="false" final="false" visibility="public"
  7617. deprecated="not deprecated">
  7618. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7619. <exception name="IOException" type="java.io.IOException"/>
  7620. </method>
  7621. <method name="getUri" return="java.net.URI"
  7622. abstract="false" native="false" synchronized="false"
  7623. static="false" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. </method>
  7626. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7627. abstract="false" native="false" synchronized="false"
  7628. static="false" final="false" visibility="public"
  7629. deprecated="not deprecated">
  7630. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7631. <exception name="IOException" type="java.io.IOException"/>
  7632. <doc>
  7633. <![CDATA[<p>
  7634. If <code>f</code> is a file, this method will make a single call to S3.
  7635. If <code>f</code> is a directory, this method will make a maximum of
  7636. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  7637. files and directories contained directly in <code>f</code>.
  7638. </p>]]>
  7639. </doc>
  7640. </method>
  7641. <method name="mkdirs" return="boolean"
  7642. abstract="false" native="false" synchronized="false"
  7643. static="false" final="false" visibility="public"
  7644. deprecated="not deprecated">
  7645. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7646. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7647. <exception name="IOException" type="java.io.IOException"/>
  7648. </method>
  7649. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7650. abstract="false" native="false" synchronized="false"
  7651. static="false" final="false" visibility="public"
  7652. deprecated="not deprecated">
  7653. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7654. <param name="bufferSize" type="int"/>
  7655. <exception name="IOException" type="java.io.IOException"/>
  7656. </method>
  7657. <method name="rename" return="boolean"
  7658. abstract="false" native="false" synchronized="false"
  7659. static="false" final="false" visibility="public"
  7660. deprecated="not deprecated">
  7661. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7662. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7663. <exception name="IOException" type="java.io.IOException"/>
  7664. </method>
  7665. <method name="setWorkingDirectory"
  7666. abstract="false" native="false" synchronized="false"
  7667. static="false" final="false" visibility="public"
  7668. deprecated="not deprecated">
  7669. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  7670. <doc>
  7671. <![CDATA[Set the working directory to the given directory.]]>
  7672. </doc>
  7673. </method>
  7674. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  7675. abstract="false" native="false" synchronized="false"
  7676. static="false" final="false" visibility="public"
  7677. deprecated="not deprecated">
  7678. </method>
  7679. <field name="LOG" type="org.apache.commons.logging.Log"
  7680. transient="false" volatile="false"
  7681. static="true" final="true" visibility="public"
  7682. deprecated="not deprecated">
  7683. </field>
  7684. <doc>
  7685. <![CDATA[<p>
  7686. A {@link FileSystem} for reading and writing files stored on
  7687. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  7688. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  7689. stores files on S3 in their
  7690. native form so they can be read by other S3 tools.
  7691. </p>
  7692. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  7693. </doc>
  7694. </class>
  7695. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  7696. </package>
  7697. <package name="org.apache.hadoop.fs.shell">
  7698. <!-- start class org.apache.hadoop.fs.shell.Command -->
  7699. <class name="Command" extends="org.apache.hadoop.conf.Configured"
  7700. abstract="true"
  7701. static="false" final="false" visibility="public"
  7702. deprecated="not deprecated">
  7703. <constructor name="Command" type="org.apache.hadoop.conf.Configuration"
  7704. static="false" final="false" visibility="protected"
  7705. deprecated="not deprecated">
  7706. <doc>
  7707. <![CDATA[Constructor]]>
  7708. </doc>
  7709. </constructor>
  7710. <method name="getCommandName" return="java.lang.String"
  7711. abstract="true" native="false" synchronized="false"
  7712. static="false" final="false" visibility="public"
  7713. deprecated="not deprecated">
  7714. <doc>
  7715. <![CDATA[Return the command's name excluding the leading character -]]>
  7716. </doc>
  7717. </method>
  7718. <method name="run"
  7719. abstract="true" native="false" synchronized="false"
  7720. static="false" final="false" visibility="protected"
  7721. deprecated="not deprecated">
  7722. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7723. <exception name="IOException" type="java.io.IOException"/>
  7724. <doc>
  7725. <![CDATA[Execute the command on the input path
  7726. @param path the input path
  7727. @throws IOException if any error occurs]]>
  7728. </doc>
  7729. </method>
  7730. <method name="runAll" return="int"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <doc>
  7735. <![CDATA[For each source path, execute the command
  7736. @return 0 if it runs successfully; -1 if it fails]]>
  7737. </doc>
  7738. </method>
  7739. <field name="args" type="java.lang.String[]"
  7740. transient="false" volatile="false"
  7741. static="false" final="false" visibility="protected"
  7742. deprecated="not deprecated">
  7743. </field>
  7744. <doc>
  7745. <![CDATA[An abstract class for the execution of a file system command]]>
  7746. </doc>
  7747. </class>
  7748. <!-- end class org.apache.hadoop.fs.shell.Command -->
  7749. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  7750. <class name="CommandFormat" extends="java.lang.Object"
  7751. abstract="false"
  7752. static="false" final="false" visibility="public"
  7753. deprecated="not deprecated">
  7754. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  7755. static="false" final="false" visibility="public"
  7756. deprecated="not deprecated">
  7757. <doc>
  7758. <![CDATA[constructor]]>
  7759. </doc>
  7760. </constructor>
  7761. <method name="parse" return="java.util.List&lt;java.lang.String&gt;"
  7762. abstract="false" native="false" synchronized="false"
  7763. static="false" final="false" visibility="public"
  7764. deprecated="not deprecated">
  7765. <param name="args" type="java.lang.String[]"/>
  7766. <param name="pos" type="int"/>
  7767. <doc>
  7768. <![CDATA[Parse parameters starting from the given position
  7769. @param args an array of input arguments
  7770. @param pos the position at which starts to parse
  7771. @return a list of parameters]]>
  7772. </doc>
  7773. </method>
  7774. <method name="getOpt" return="boolean"
  7775. abstract="false" native="false" synchronized="false"
  7776. static="false" final="false" visibility="public"
  7777. deprecated="not deprecated">
  7778. <param name="option" type="java.lang.String"/>
  7779. <doc>
  7780. <![CDATA[Return if the option is set or not
  7781. @param option String representation of an option
  7782. @return true is the option is set; false otherwise]]>
  7783. </doc>
  7784. </method>
  7785. <doc>
  7786. <![CDATA[Parse the args of a command and check the format of args.]]>
  7787. </doc>
  7788. </class>
  7789. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  7790. <!-- start class org.apache.hadoop.fs.shell.Count -->
  7791. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  7792. abstract="false"
  7793. static="false" final="false" visibility="public"
  7794. deprecated="not deprecated">
  7795. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.conf.Configuration"
  7796. static="false" final="false" visibility="public"
  7797. deprecated="not deprecated">
  7798. <doc>
  7799. <![CDATA[Constructor
  7800. @param cmd the count command
  7801. @param pos the starting index of the arguments]]>
  7802. </doc>
  7803. </constructor>
  7804. <method name="matches" return="boolean"
  7805. abstract="false" native="false" synchronized="false"
  7806. static="true" final="false" visibility="public"
  7807. deprecated="not deprecated">
  7808. <param name="cmd" type="java.lang.String"/>
  7809. <doc>
  7810. <![CDATA[Check if a command is the count command
  7811. @param cmd A string representation of a command starting with "-"
  7812. @return true if this is a count command; false otherwise]]>
  7813. </doc>
  7814. </method>
  7815. <method name="getCommandName" return="java.lang.String"
  7816. abstract="false" native="false" synchronized="false"
  7817. static="false" final="false" visibility="public"
  7818. deprecated="not deprecated">
  7819. </method>
  7820. <method name="run"
  7821. abstract="false" native="false" synchronized="false"
  7822. static="false" final="false" visibility="protected"
  7823. deprecated="not deprecated">
  7824. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7825. <exception name="IOException" type="java.io.IOException"/>
  7826. </method>
  7827. <field name="NAME" type="java.lang.String"
  7828. transient="false" volatile="false"
  7829. static="true" final="true" visibility="public"
  7830. deprecated="not deprecated">
  7831. </field>
  7832. <field name="USAGE" type="java.lang.String"
  7833. transient="false" volatile="false"
  7834. static="true" final="true" visibility="public"
  7835. deprecated="not deprecated">
  7836. </field>
  7837. <field name="DESCRIPTION" type="java.lang.String"
  7838. transient="false" volatile="false"
  7839. static="true" final="true" visibility="public"
  7840. deprecated="not deprecated">
  7841. </field>
  7842. <doc>
  7843. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  7844. </doc>
  7845. </class>
  7846. <!-- end class org.apache.hadoop.fs.shell.Count -->
  7847. </package>
  7848. <package name="org.apache.hadoop.http">
  7849. <!-- start interface org.apache.hadoop.http.FilterContainer -->
  7850. <interface name="FilterContainer" abstract="true"
  7851. static="false" final="false" visibility="public"
  7852. deprecated="not deprecated">
  7853. <method name="addFilter"
  7854. abstract="false" native="false" synchronized="false"
  7855. static="false" final="false" visibility="public"
  7856. deprecated="not deprecated">
  7857. <param name="name" type="java.lang.String"/>
  7858. <param name="classname" type="java.lang.String"/>
  7859. <param name="parameters" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  7860. <doc>
  7861. <![CDATA[Add a filter to the container.
  7862. @param name Filter name
  7863. @param classname Filter class name
  7864. @param parameters a map from parameter names to initial values]]>
  7865. </doc>
  7866. </method>
  7867. <doc>
  7868. <![CDATA[A container class for javax.servlet.Filter.]]>
  7869. </doc>
  7870. </interface>
  7871. <!-- end interface org.apache.hadoop.http.FilterContainer -->
  7872. <!-- start class org.apache.hadoop.http.FilterInitializer -->
  7873. <class name="FilterInitializer" extends="java.lang.Object"
  7874. abstract="true"
  7875. static="false" final="false" visibility="public"
  7876. deprecated="not deprecated">
  7877. <constructor name="FilterInitializer"
  7878. static="false" final="false" visibility="public"
  7879. deprecated="not deprecated">
  7880. </constructor>
  7881. <doc>
  7882. <![CDATA[Initialize a javax.servlet.Filter.]]>
  7883. </doc>
  7884. </class>
  7885. <!-- end class org.apache.hadoop.http.FilterInitializer -->
  7886. <!-- start class org.apache.hadoop.http.HttpServer -->
  7887. <class name="HttpServer" extends="java.lang.Object"
  7888. abstract="false"
  7889. static="false" final="false" visibility="public"
  7890. deprecated="not deprecated">
  7891. <implements name="org.apache.hadoop.http.FilterContainer"/>
  7892. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. <exception name="IOException" type="java.io.IOException"/>
  7896. <doc>
  7897. <![CDATA[Same as this(name, bindAddress, port, findPort, null);]]>
  7898. </doc>
  7899. </constructor>
  7900. <constructor name="HttpServer" type="java.lang.String, java.lang.String, int, boolean, org.apache.hadoop.conf.Configuration"
  7901. static="false" final="false" visibility="public"
  7902. deprecated="not deprecated">
  7903. <exception name="IOException" type="java.io.IOException"/>
  7904. <doc>
  7905. <![CDATA[Create a status server on the given port.
  7906. The jsp scripts are taken from src/webapps/<name>.
  7907. @param name The name of the server
  7908. @param port The port to use on the server
  7909. @param findPort whether the server should start at the given port and
  7910. increment by 1 until it finds a free port.
  7911. @param conf Configuration]]>
  7912. </doc>
  7913. </constructor>
  7914. <method name="addDefaultApps"
  7915. abstract="false" native="false" synchronized="false"
  7916. static="false" final="false" visibility="protected"
  7917. deprecated="not deprecated">
  7918. <param name="appDir" type="java.lang.String"/>
  7919. <exception name="IOException" type="java.io.IOException"/>
  7920. <doc>
  7921. <![CDATA[Add default apps.
  7922. @param appDir The application directory
  7923. @throws IOException]]>
  7924. </doc>
  7925. </method>
  7926. <method name="addDefaultServlets"
  7927. abstract="false" native="false" synchronized="false"
  7928. static="false" final="false" visibility="protected"
  7929. deprecated="not deprecated">
  7930. <doc>
  7931. <![CDATA[Add default servlets.]]>
  7932. </doc>
  7933. </method>
  7934. <method name="addContext"
  7935. abstract="false" native="false" synchronized="false"
  7936. static="false" final="false" visibility="protected"
  7937. deprecated="not deprecated">
  7938. <param name="pathSpec" type="java.lang.String"/>
  7939. <param name="dir" type="java.lang.String"/>
  7940. <param name="isFiltered" type="boolean"/>
  7941. <exception name="IOException" type="java.io.IOException"/>
  7942. <doc>
  7943. <![CDATA[Add a context
  7944. @param pathSpec The path spec for the context
  7945. @param dir The directory containing the context
  7946. @param isFiltered if true, the servlet is added to the filter path mapping
  7947. @throws IOException]]>
  7948. </doc>
  7949. </method>
  7950. <method name="setAttribute"
  7951. abstract="false" native="false" synchronized="false"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. <param name="name" type="java.lang.String"/>
  7955. <param name="value" type="java.lang.Object"/>
  7956. <doc>
  7957. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  7958. pages as "application.getAttribute(name)".
  7959. @param name The name of the attribute
  7960. @param value The value of the attribute]]>
  7961. </doc>
  7962. </method>
  7963. <method name="addServlet"
  7964. abstract="false" native="false" synchronized="false"
  7965. static="false" final="false" visibility="public"
  7966. deprecated="not deprecated">
  7967. <param name="name" type="java.lang.String"/>
  7968. <param name="pathSpec" type="java.lang.String"/>
  7969. <param name="clazz" type="java.lang.Class&lt;? extends javax.servlet.http.HttpServlet&gt;"/>
  7970. <doc>
  7971. <![CDATA[Add a servlet in the server.
  7972. @param name The name of the servlet (can be passed as null)
  7973. @param pathSpec The path spec for the servlet
  7974. @param clazz The servlet class]]>
  7975. </doc>
  7976. </method>
  7977. <method name="addInternalServlet"
  7978. abstract="false" native="false" synchronized="false"
  7979. static="false" final="false" visibility="public"
  7980. deprecated="this is a temporary method">
  7981. <param name="name" type="java.lang.String"/>
  7982. <param name="pathSpec" type="java.lang.String"/>
  7983. <param name="clazz" type="java.lang.Class&lt;? extends javax.servlet.http.HttpServlet&gt;"/>
  7984. <doc>
  7985. <![CDATA[Add an internal servlet in the server.
  7986. @param name The name of the servlet (can be passed as null)
  7987. @param pathSpec The path spec for the servlet
  7988. @param clazz The servlet class
  7989. @deprecated this is a temporary method]]>
  7990. </doc>
  7991. </method>
  7992. <method name="addFilter"
  7993. abstract="false" native="false" synchronized="false"
  7994. static="false" final="false" visibility="public"
  7995. deprecated="not deprecated">
  7996. <param name="name" type="java.lang.String"/>
  7997. <param name="classname" type="java.lang.String"/>
  7998. <param name="parameters" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  7999. <doc>
  8000. <![CDATA[{@inheritDoc}]]>
  8001. </doc>
  8002. </method>
  8003. <method name="defineFilter"
  8004. abstract="false" native="false" synchronized="false"
  8005. static="false" final="false" visibility="protected"
  8006. deprecated="not deprecated">
  8007. <param name="ctx" type="org.mortbay.jetty.servlet.WebApplicationContext"/>
  8008. <param name="name" type="java.lang.String"/>
  8009. <param name="classname" type="java.lang.String"/>
  8010. <param name="parameters" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  8011. <param name="urls" type="java.lang.String[]"/>
  8012. <doc>
  8013. <![CDATA[Define a filter for a context and set up default url mappings.]]>
  8014. </doc>
  8015. </method>
  8016. <method name="addFilterPathMapping"
  8017. abstract="false" native="false" synchronized="false"
  8018. static="false" final="false" visibility="protected"
  8019. deprecated="not deprecated">
  8020. <param name="pathSpec" type="java.lang.String"/>
  8021. <doc>
  8022. <![CDATA[Add the path spec to the filter path mapping.
  8023. @param pathSpec The path spec]]>
  8024. </doc>
  8025. </method>
  8026. <method name="getAttribute" return="java.lang.Object"
  8027. abstract="false" native="false" synchronized="false"
  8028. static="false" final="false" visibility="public"
  8029. deprecated="not deprecated">
  8030. <param name="name" type="java.lang.String"/>
  8031. <doc>
  8032. <![CDATA[Get the value in the webapp context.
  8033. @param name The name of the attribute
  8034. @return The value of the attribute]]>
  8035. </doc>
  8036. </method>
  8037. <method name="getWebAppsPath" return="java.lang.String"
  8038. abstract="false" native="false" synchronized="false"
  8039. static="false" final="false" visibility="protected"
  8040. deprecated="not deprecated">
  8041. <exception name="IOException" type="java.io.IOException"/>
  8042. <doc>
  8043. <![CDATA[Get the pathname to the webapps files.
  8044. @return the pathname as a URL
  8045. @throws IOException if 'webapps' directory cannot be found on CLASSPATH.]]>
  8046. </doc>
  8047. </method>
  8048. <method name="getPort" return="int"
  8049. abstract="false" native="false" synchronized="false"
  8050. static="false" final="false" visibility="public"
  8051. deprecated="not deprecated">
  8052. <doc>
  8053. <![CDATA[Get the port that the server is on
  8054. @return the port]]>
  8055. </doc>
  8056. </method>
  8057. <method name="setThreads"
  8058. abstract="false" native="false" synchronized="false"
  8059. static="false" final="false" visibility="public"
  8060. deprecated="not deprecated">
  8061. <param name="min" type="int"/>
  8062. <param name="max" type="int"/>
  8063. </method>
  8064. <method name="addSslListener"
  8065. abstract="false" native="false" synchronized="false"
  8066. static="false" final="false" visibility="public"
  8067. deprecated="not deprecated">
  8068. <param name="addr" type="java.net.InetSocketAddress"/>
  8069. <param name="keystore" type="java.lang.String"/>
  8070. <param name="storPass" type="java.lang.String"/>
  8071. <param name="keyPass" type="java.lang.String"/>
  8072. <exception name="IOException" type="java.io.IOException"/>
  8073. <doc>
  8074. <![CDATA[Configure an ssl listener on the server.
  8075. @param addr address to listen on
  8076. @param keystore location of the keystore
  8077. @param storPass password for the keystore
  8078. @param keyPass password for the key]]>
  8079. </doc>
  8080. </method>
  8081. <method name="start"
  8082. abstract="false" native="false" synchronized="false"
  8083. static="false" final="false" visibility="public"
  8084. deprecated="not deprecated">
  8085. <exception name="IOException" type="java.io.IOException"/>
  8086. <doc>
  8087. <![CDATA[Start the server. Does not wait for the server to start.]]>
  8088. </doc>
  8089. </method>
  8090. <method name="stop"
  8091. abstract="false" native="false" synchronized="false"
  8092. static="false" final="false" visibility="public"
  8093. deprecated="not deprecated">
  8094. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8095. <doc>
  8096. <![CDATA[stop the server]]>
  8097. </doc>
  8098. </method>
  8099. <field name="LOG" type="org.apache.commons.logging.Log"
  8100. transient="false" volatile="false"
  8101. static="true" final="true" visibility="public"
  8102. deprecated="not deprecated">
  8103. </field>
  8104. <field name="webServer" type="org.mortbay.jetty.Server"
  8105. transient="false" volatile="false"
  8106. static="false" final="true" visibility="protected"
  8107. deprecated="not deprecated">
  8108. </field>
  8109. <field name="webAppContext" type="org.mortbay.jetty.servlet.WebApplicationContext"
  8110. transient="false" volatile="false"
  8111. static="false" final="true" visibility="protected"
  8112. deprecated="not deprecated">
  8113. </field>
  8114. <field name="defaultContexts" type="java.util.Map&lt;org.mortbay.jetty.servlet.WebApplicationContext, java.lang.Boolean&gt;"
  8115. transient="false" volatile="false"
  8116. static="false" final="true" visibility="protected"
  8117. deprecated="not deprecated">
  8118. </field>
  8119. <field name="findPort" type="boolean"
  8120. transient="false" volatile="false"
  8121. static="false" final="true" visibility="protected"
  8122. deprecated="not deprecated">
  8123. </field>
  8124. <field name="listener" type="org.mortbay.http.SocketListener"
  8125. transient="false" volatile="false"
  8126. static="false" final="true" visibility="protected"
  8127. deprecated="not deprecated">
  8128. </field>
  8129. <field name="filterNames" type="java.util.List&lt;java.lang.String&gt;"
  8130. transient="false" volatile="false"
  8131. static="false" final="true" visibility="protected"
  8132. deprecated="not deprecated">
  8133. </field>
  8134. <doc>
  8135. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  8136. is to serve up status information for the server.
  8137. There are three contexts:
  8138. "/logs/" -> points to the log directory
  8139. "/static/" -> points to common static files (src/webapps/static)
  8140. "/" -> the jsp server code from (src/webapps/<name>)]]>
  8141. </doc>
  8142. </class>
  8143. <!-- end class org.apache.hadoop.http.HttpServer -->
  8144. <!-- start class org.apache.hadoop.http.HttpServer.StackServlet -->
  8145. <class name="HttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  8146. abstract="false"
  8147. static="true" final="false" visibility="public"
  8148. deprecated="not deprecated">
  8149. <constructor name="HttpServer.StackServlet"
  8150. static="false" final="false" visibility="public"
  8151. deprecated="not deprecated">
  8152. </constructor>
  8153. <method name="doGet"
  8154. abstract="false" native="false" synchronized="false"
  8155. static="false" final="false" visibility="public"
  8156. deprecated="not deprecated">
  8157. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8158. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8159. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8160. <exception name="IOException" type="java.io.IOException"/>
  8161. </method>
  8162. <doc>
  8163. <![CDATA[A very simple servlet to serve up a text representation of the current
  8164. stack traces. It both returns the stacks to the caller and logs them.
  8165. Currently the stack traces are done sequentially rather than exactly the
  8166. same data.]]>
  8167. </doc>
  8168. </class>
  8169. <!-- end class org.apache.hadoop.http.HttpServer.StackServlet -->
  8170. </package>
  8171. <package name="org.apache.hadoop.io">
  8172. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  8173. <class name="AbstractMapWritable" extends="java.lang.Object"
  8174. abstract="true"
  8175. static="false" final="false" visibility="public"
  8176. deprecated="not deprecated">
  8177. <implements name="org.apache.hadoop.io.Writable"/>
  8178. <implements name="org.apache.hadoop.conf.Configurable"/>
  8179. <constructor name="AbstractMapWritable"
  8180. static="false" final="false" visibility="protected"
  8181. deprecated="not deprecated">
  8182. <doc>
  8183. <![CDATA[constructor.]]>
  8184. </doc>
  8185. </constructor>
  8186. <method name="addToMap"
  8187. abstract="false" native="false" synchronized="true"
  8188. static="false" final="false" visibility="protected"
  8189. deprecated="not deprecated">
  8190. <param name="clazz" type="java.lang.Class"/>
  8191. <doc>
  8192. <![CDATA[Add a Class to the maps if it is not already present.]]>
  8193. </doc>
  8194. </method>
  8195. <method name="getClass" return="java.lang.Class"
  8196. abstract="false" native="false" synchronized="false"
  8197. static="false" final="false" visibility="protected"
  8198. deprecated="not deprecated">
  8199. <param name="id" type="byte"/>
  8200. <doc>
  8201. <![CDATA[@return the Class class for the specified id]]>
  8202. </doc>
  8203. </method>
  8204. <method name="getId" return="byte"
  8205. abstract="false" native="false" synchronized="false"
  8206. static="false" final="false" visibility="protected"
  8207. deprecated="not deprecated">
  8208. <param name="clazz" type="java.lang.Class"/>
  8209. <doc>
  8210. <![CDATA[@return the id for the specified Class]]>
  8211. </doc>
  8212. </method>
  8213. <method name="copy"
  8214. abstract="false" native="false" synchronized="true"
  8215. static="false" final="false" visibility="protected"
  8216. deprecated="not deprecated">
  8217. <param name="other" type="org.apache.hadoop.io.Writable"/>
  8218. <doc>
  8219. <![CDATA[Used by child copy constructors.]]>
  8220. </doc>
  8221. </method>
  8222. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  8223. abstract="false" native="false" synchronized="false"
  8224. static="false" final="false" visibility="public"
  8225. deprecated="not deprecated">
  8226. <doc>
  8227. <![CDATA[@return the conf]]>
  8228. </doc>
  8229. </method>
  8230. <method name="setConf"
  8231. abstract="false" native="false" synchronized="false"
  8232. static="false" final="false" visibility="public"
  8233. deprecated="not deprecated">
  8234. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8235. <doc>
  8236. <![CDATA[@param conf the conf to set]]>
  8237. </doc>
  8238. </method>
  8239. <method name="write"
  8240. abstract="false" native="false" synchronized="false"
  8241. static="false" final="false" visibility="public"
  8242. deprecated="not deprecated">
  8243. <param name="out" type="java.io.DataOutput"/>
  8244. <exception name="IOException" type="java.io.IOException"/>
  8245. <doc>
  8246. <![CDATA[{@inheritDoc}]]>
  8247. </doc>
  8248. </method>
  8249. <method name="readFields"
  8250. abstract="false" native="false" synchronized="false"
  8251. static="false" final="false" visibility="public"
  8252. deprecated="not deprecated">
  8253. <param name="in" type="java.io.DataInput"/>
  8254. <exception name="IOException" type="java.io.IOException"/>
  8255. <doc>
  8256. <![CDATA[{@inheritDoc}]]>
  8257. </doc>
  8258. </method>
  8259. <doc>
  8260. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  8261. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  8262. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  8263. maps travel with the class instead of being static.
  8264. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  8265. in any specific map instance.]]>
  8266. </doc>
  8267. </class>
  8268. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  8269. <!-- start class org.apache.hadoop.io.ArrayFile -->
  8270. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  8271. abstract="false"
  8272. static="false" final="false" visibility="public"
  8273. deprecated="not deprecated">
  8274. <constructor name="ArrayFile"
  8275. static="false" final="false" visibility="protected"
  8276. deprecated="not deprecated">
  8277. </constructor>
  8278. <doc>
  8279. <![CDATA[A dense file-based mapping from integers to values.]]>
  8280. </doc>
  8281. </class>
  8282. <!-- end class org.apache.hadoop.io.ArrayFile -->
  8283. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  8284. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  8285. abstract="false"
  8286. static="true" final="false" visibility="public"
  8287. deprecated="not deprecated">
  8288. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  8289. static="false" final="false" visibility="public"
  8290. deprecated="not deprecated">
  8291. <exception name="IOException" type="java.io.IOException"/>
  8292. <doc>
  8293. <![CDATA[Construct an array reader for the named file.]]>
  8294. </doc>
  8295. </constructor>
  8296. <method name="seek"
  8297. abstract="false" native="false" synchronized="true"
  8298. static="false" final="false" visibility="public"
  8299. deprecated="not deprecated">
  8300. <param name="n" type="long"/>
  8301. <exception name="IOException" type="java.io.IOException"/>
  8302. <doc>
  8303. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  8304. </doc>
  8305. </method>
  8306. <method name="next" return="org.apache.hadoop.io.Writable"
  8307. abstract="false" native="false" synchronized="true"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8311. <exception name="IOException" type="java.io.IOException"/>
  8312. <doc>
  8313. <![CDATA[Read and return the next value in the file.]]>
  8314. </doc>
  8315. </method>
  8316. <method name="key" return="long"
  8317. abstract="false" native="false" synchronized="true"
  8318. static="false" final="false" visibility="public"
  8319. deprecated="not deprecated">
  8320. <exception name="IOException" type="java.io.IOException"/>
  8321. <doc>
  8322. <![CDATA[Returns the key associated with the most recent call to {@link
  8323. #seek(long)}, {@link #next(Writable)}, or {@link
  8324. #get(long,Writable)}.]]>
  8325. </doc>
  8326. </method>
  8327. <method name="get" return="org.apache.hadoop.io.Writable"
  8328. abstract="false" native="false" synchronized="true"
  8329. static="false" final="false" visibility="public"
  8330. deprecated="not deprecated">
  8331. <param name="n" type="long"/>
  8332. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8333. <exception name="IOException" type="java.io.IOException"/>
  8334. <doc>
  8335. <![CDATA[Return the <code>n</code>th value in the file.]]>
  8336. </doc>
  8337. </method>
  8338. <doc>
  8339. <![CDATA[Provide access to an existing array file.]]>
  8340. </doc>
  8341. </class>
  8342. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  8343. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  8344. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  8345. abstract="false"
  8346. static="true" final="false" visibility="public"
  8347. deprecated="not deprecated">
  8348. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"
  8349. static="false" final="false" visibility="public"
  8350. deprecated="not deprecated">
  8351. <exception name="IOException" type="java.io.IOException"/>
  8352. <doc>
  8353. <![CDATA[Create the named file for values of the named class.]]>
  8354. </doc>
  8355. </constructor>
  8356. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  8357. static="false" final="false" visibility="public"
  8358. deprecated="not deprecated">
  8359. <exception name="IOException" type="java.io.IOException"/>
  8360. <doc>
  8361. <![CDATA[Create the named file for values of the named class.]]>
  8362. </doc>
  8363. </constructor>
  8364. <method name="append"
  8365. abstract="false" native="false" synchronized="true"
  8366. static="false" final="false" visibility="public"
  8367. deprecated="not deprecated">
  8368. <param name="value" type="org.apache.hadoop.io.Writable"/>
  8369. <exception name="IOException" type="java.io.IOException"/>
  8370. <doc>
  8371. <![CDATA[Append a value to the file.]]>
  8372. </doc>
  8373. </method>
  8374. <doc>
  8375. <![CDATA[Write a new array file.]]>
  8376. </doc>
  8377. </class>
  8378. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  8379. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  8380. <class name="ArrayWritable" extends="java.lang.Object"
  8381. abstract="false"
  8382. static="false" final="false" visibility="public"
  8383. deprecated="not deprecated">
  8384. <implements name="org.apache.hadoop.io.Writable"/>
  8385. <constructor name="ArrayWritable" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"
  8386. static="false" final="false" visibility="public"
  8387. deprecated="not deprecated">
  8388. </constructor>
  8389. <constructor name="ArrayWritable" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, org.apache.hadoop.io.Writable[]"
  8390. static="false" final="false" visibility="public"
  8391. deprecated="not deprecated">
  8392. </constructor>
  8393. <constructor name="ArrayWritable" type="java.lang.String[]"
  8394. static="false" final="false" visibility="public"
  8395. deprecated="not deprecated">
  8396. </constructor>
  8397. <method name="getValueClass" return="java.lang.Class"
  8398. abstract="false" native="false" synchronized="false"
  8399. static="false" final="false" visibility="public"
  8400. deprecated="not deprecated">
  8401. </method>
  8402. <method name="toStrings" return="java.lang.String[]"
  8403. abstract="false" native="false" synchronized="false"
  8404. static="false" final="false" visibility="public"
  8405. deprecated="not deprecated">
  8406. </method>
  8407. <method name="toArray" return="java.lang.Object"
  8408. abstract="false" native="false" synchronized="false"
  8409. static="false" final="false" visibility="public"
  8410. deprecated="not deprecated">
  8411. </method>
  8412. <method name="set"
  8413. abstract="false" native="false" synchronized="false"
  8414. static="false" final="false" visibility="public"
  8415. deprecated="not deprecated">
  8416. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  8417. </method>
  8418. <method name="get" return="org.apache.hadoop.io.Writable[]"
  8419. abstract="false" native="false" synchronized="false"
  8420. static="false" final="false" visibility="public"
  8421. deprecated="not deprecated">
  8422. </method>
  8423. <method name="readFields"
  8424. abstract="false" native="false" synchronized="false"
  8425. static="false" final="false" visibility="public"
  8426. deprecated="not deprecated">
  8427. <param name="in" type="java.io.DataInput"/>
  8428. <exception name="IOException" type="java.io.IOException"/>
  8429. </method>
  8430. <method name="write"
  8431. abstract="false" native="false" synchronized="false"
  8432. static="false" final="false" visibility="public"
  8433. deprecated="not deprecated">
  8434. <param name="out" type="java.io.DataOutput"/>
  8435. <exception name="IOException" type="java.io.IOException"/>
  8436. </method>
  8437. <doc>
  8438. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  8439. writable must all be instances of the same class. If this writable will be
  8440. the input for a Reducer, you will need to create a subclass that sets the
  8441. value to be of the proper type.
  8442. For example:
  8443. <code>
  8444. public class IntArrayWritable extends ArrayWritable {
  8445. public IntArrayWritable() {
  8446. super(IntWritable.class);
  8447. }
  8448. }
  8449. </code>]]>
  8450. </doc>
  8451. </class>
  8452. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  8453. <!-- start class org.apache.hadoop.io.BinaryComparable -->
  8454. <class name="BinaryComparable" extends="java.lang.Object"
  8455. abstract="true"
  8456. static="false" final="false" visibility="public"
  8457. deprecated="not deprecated">
  8458. <implements name="java.lang.Comparable&lt;org.apache.hadoop.io.BinaryComparable&gt;"/>
  8459. <constructor name="BinaryComparable"
  8460. static="false" final="false" visibility="public"
  8461. deprecated="not deprecated">
  8462. </constructor>
  8463. <method name="getLength" return="int"
  8464. abstract="true" native="false" synchronized="false"
  8465. static="false" final="false" visibility="public"
  8466. deprecated="not deprecated">
  8467. <doc>
  8468. <![CDATA[Return n st bytes 0..n-1 from {#getBytes()} are valid.]]>
  8469. </doc>
  8470. </method>
  8471. <method name="getBytes" return="byte[]"
  8472. abstract="true" native="false" synchronized="false"
  8473. static="false" final="false" visibility="public"
  8474. deprecated="not deprecated">
  8475. <doc>
  8476. <![CDATA[Return representative byte array for this instance.]]>
  8477. </doc>
  8478. </method>
  8479. <method name="compareTo" return="int"
  8480. abstract="false" native="false" synchronized="false"
  8481. static="false" final="false" visibility="public"
  8482. deprecated="not deprecated">
  8483. <param name="other" type="org.apache.hadoop.io.BinaryComparable"/>
  8484. <doc>
  8485. <![CDATA[Compare bytes from {#getBytes()}.
  8486. @see org.apache.hadoop.io.WritableComparator#compareBytes(byte[],int,int,byte[],int,int)]]>
  8487. </doc>
  8488. </method>
  8489. <method name="compareTo" return="int"
  8490. abstract="false" native="false" synchronized="false"
  8491. static="false" final="false" visibility="public"
  8492. deprecated="not deprecated">
  8493. <param name="other" type="byte[]"/>
  8494. <param name="off" type="int"/>
  8495. <param name="len" type="int"/>
  8496. <doc>
  8497. <![CDATA[Compare bytes from {#getBytes()} to those provided.]]>
  8498. </doc>
  8499. </method>
  8500. <method name="equals" return="boolean"
  8501. abstract="false" native="false" synchronized="false"
  8502. static="false" final="false" visibility="public"
  8503. deprecated="not deprecated">
  8504. <param name="other" type="java.lang.Object"/>
  8505. <doc>
  8506. <![CDATA[Return true if bytes from {#getBytes()} match.]]>
  8507. </doc>
  8508. </method>
  8509. <method name="hashCode" return="int"
  8510. abstract="false" native="false" synchronized="false"
  8511. static="false" final="false" visibility="public"
  8512. deprecated="not deprecated">
  8513. <doc>
  8514. <![CDATA[Return a hash of the bytes returned from {#getBytes()}.
  8515. @see org.apache.hadoop.io.WritableComparator#hashBytes(byte[],int)]]>
  8516. </doc>
  8517. </method>
  8518. <doc>
  8519. <![CDATA[Interface supported by {@link org.apache.hadoop.io.WritableComparable}
  8520. types supporting ordering/permutation by a representative set of bytes.]]>
  8521. </doc>
  8522. </class>
  8523. <!-- end class org.apache.hadoop.io.BinaryComparable -->
  8524. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  8525. <class name="BooleanWritable" extends="java.lang.Object"
  8526. abstract="false"
  8527. static="false" final="false" visibility="public"
  8528. deprecated="not deprecated">
  8529. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8530. <constructor name="BooleanWritable"
  8531. static="false" final="false" visibility="public"
  8532. deprecated="not deprecated">
  8533. </constructor>
  8534. <constructor name="BooleanWritable" type="boolean"
  8535. static="false" final="false" visibility="public"
  8536. deprecated="not deprecated">
  8537. </constructor>
  8538. <method name="set"
  8539. abstract="false" native="false" synchronized="false"
  8540. static="false" final="false" visibility="public"
  8541. deprecated="not deprecated">
  8542. <param name="value" type="boolean"/>
  8543. <doc>
  8544. <![CDATA[Set the value of the BooleanWritable]]>
  8545. </doc>
  8546. </method>
  8547. <method name="get" return="boolean"
  8548. abstract="false" native="false" synchronized="false"
  8549. static="false" final="false" visibility="public"
  8550. deprecated="not deprecated">
  8551. <doc>
  8552. <![CDATA[Returns the value of the BooleanWritable]]>
  8553. </doc>
  8554. </method>
  8555. <method name="readFields"
  8556. abstract="false" native="false" synchronized="false"
  8557. static="false" final="false" visibility="public"
  8558. deprecated="not deprecated">
  8559. <param name="in" type="java.io.DataInput"/>
  8560. <exception name="IOException" type="java.io.IOException"/>
  8561. </method>
  8562. <method name="write"
  8563. abstract="false" native="false" synchronized="false"
  8564. static="false" final="false" visibility="public"
  8565. deprecated="not deprecated">
  8566. <param name="out" type="java.io.DataOutput"/>
  8567. <exception name="IOException" type="java.io.IOException"/>
  8568. </method>
  8569. <method name="equals" return="boolean"
  8570. abstract="false" native="false" synchronized="false"
  8571. static="false" final="false" visibility="public"
  8572. deprecated="not deprecated">
  8573. <param name="o" type="java.lang.Object"/>
  8574. </method>
  8575. <method name="hashCode" return="int"
  8576. abstract="false" native="false" synchronized="false"
  8577. static="false" final="false" visibility="public"
  8578. deprecated="not deprecated">
  8579. </method>
  8580. <method name="compareTo" return="int"
  8581. abstract="false" native="false" synchronized="false"
  8582. static="false" final="false" visibility="public"
  8583. deprecated="not deprecated">
  8584. <param name="o" type="java.lang.Object"/>
  8585. </method>
  8586. <method name="toString" return="java.lang.String"
  8587. abstract="false" native="false" synchronized="false"
  8588. static="false" final="false" visibility="public"
  8589. deprecated="not deprecated">
  8590. </method>
  8591. <doc>
  8592. <![CDATA[A WritableComparable for booleans.]]>
  8593. </doc>
  8594. </class>
  8595. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  8596. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  8597. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8598. abstract="false"
  8599. static="true" final="false" visibility="public"
  8600. deprecated="not deprecated">
  8601. <constructor name="BooleanWritable.Comparator"
  8602. static="false" final="false" visibility="public"
  8603. deprecated="not deprecated">
  8604. </constructor>
  8605. <method name="compare" return="int"
  8606. abstract="false" native="false" synchronized="false"
  8607. static="false" final="false" visibility="public"
  8608. deprecated="not deprecated">
  8609. <param name="b1" type="byte[]"/>
  8610. <param name="s1" type="int"/>
  8611. <param name="l1" type="int"/>
  8612. <param name="b2" type="byte[]"/>
  8613. <param name="s2" type="int"/>
  8614. <param name="l2" type="int"/>
  8615. </method>
  8616. <doc>
  8617. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  8618. </doc>
  8619. </class>
  8620. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  8621. <!-- start class org.apache.hadoop.io.BytesWritable -->
  8622. <class name="BytesWritable" extends="org.apache.hadoop.io.BinaryComparable"
  8623. abstract="false"
  8624. static="false" final="false" visibility="public"
  8625. deprecated="not deprecated">
  8626. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.io.BinaryComparable&gt;"/>
  8627. <constructor name="BytesWritable"
  8628. static="false" final="false" visibility="public"
  8629. deprecated="not deprecated">
  8630. <doc>
  8631. <![CDATA[Create a zero-size sequence.]]>
  8632. </doc>
  8633. </constructor>
  8634. <constructor name="BytesWritable" type="byte[]"
  8635. static="false" final="false" visibility="public"
  8636. deprecated="not deprecated">
  8637. <doc>
  8638. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  8639. @param bytes This array becomes the backing storage for the object.]]>
  8640. </doc>
  8641. </constructor>
  8642. <method name="getBytes" return="byte[]"
  8643. abstract="false" native="false" synchronized="false"
  8644. static="false" final="false" visibility="public"
  8645. deprecated="not deprecated">
  8646. <doc>
  8647. <![CDATA[Get the data from the BytesWritable.
  8648. @return The data is only valid between 0 and getLength() - 1.]]>
  8649. </doc>
  8650. </method>
  8651. <method name="get" return="byte[]"
  8652. abstract="false" native="false" synchronized="false"
  8653. static="false" final="false" visibility="public"
  8654. deprecated="Use {@link #getBytes()} instead.">
  8655. <doc>
  8656. <![CDATA[Get the data from the BytesWritable.
  8657. @deprecated Use {@link #getBytes()} instead.]]>
  8658. </doc>
  8659. </method>
  8660. <method name="getLength" return="int"
  8661. abstract="false" native="false" synchronized="false"
  8662. static="false" final="false" visibility="public"
  8663. deprecated="not deprecated">
  8664. <doc>
  8665. <![CDATA[Get the current size of the buffer.]]>
  8666. </doc>
  8667. </method>
  8668. <method name="getSize" return="int"
  8669. abstract="false" native="false" synchronized="false"
  8670. static="false" final="false" visibility="public"
  8671. deprecated="Use {@link #getLength()} instead.">
  8672. <doc>
  8673. <![CDATA[Get the current size of the buffer.
  8674. @deprecated Use {@link #getLength()} instead.]]>
  8675. </doc>
  8676. </method>
  8677. <method name="setSize"
  8678. abstract="false" native="false" synchronized="false"
  8679. static="false" final="false" visibility="public"
  8680. deprecated="not deprecated">
  8681. <param name="size" type="int"/>
  8682. <doc>
  8683. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  8684. and any new values are undefined. The capacity is changed if it is
  8685. necessary.
  8686. @param size The new number of bytes]]>
  8687. </doc>
  8688. </method>
  8689. <method name="getCapacity" return="int"
  8690. abstract="false" native="false" synchronized="false"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. <doc>
  8694. <![CDATA[Get the capacity, which is the maximum size that could handled without
  8695. resizing the backing storage.
  8696. @return The number of bytes]]>
  8697. </doc>
  8698. </method>
  8699. <method name="setCapacity"
  8700. abstract="false" native="false" synchronized="false"
  8701. static="false" final="false" visibility="public"
  8702. deprecated="not deprecated">
  8703. <param name="new_cap" type="int"/>
  8704. <doc>
  8705. <![CDATA[Change the capacity of the backing storage.
  8706. The data is preserved.
  8707. @param new_cap The new capacity in bytes.]]>
  8708. </doc>
  8709. </method>
  8710. <method name="set"
  8711. abstract="false" native="false" synchronized="false"
  8712. static="false" final="false" visibility="public"
  8713. deprecated="not deprecated">
  8714. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  8715. <doc>
  8716. <![CDATA[Set the BytesWritable to the contents of the given newData.
  8717. @param newData the value to set this BytesWritable to.]]>
  8718. </doc>
  8719. </method>
  8720. <method name="set"
  8721. abstract="false" native="false" synchronized="false"
  8722. static="false" final="false" visibility="public"
  8723. deprecated="not deprecated">
  8724. <param name="newData" type="byte[]"/>
  8725. <param name="offset" type="int"/>
  8726. <param name="length" type="int"/>
  8727. <doc>
  8728. <![CDATA[Set the value to a copy of the given byte range
  8729. @param newData the new values to copy in
  8730. @param offset the offset in newData to start at
  8731. @param length the number of bytes to copy]]>
  8732. </doc>
  8733. </method>
  8734. <method name="readFields"
  8735. abstract="false" native="false" synchronized="false"
  8736. static="false" final="false" visibility="public"
  8737. deprecated="not deprecated">
  8738. <param name="in" type="java.io.DataInput"/>
  8739. <exception name="IOException" type="java.io.IOException"/>
  8740. </method>
  8741. <method name="write"
  8742. abstract="false" native="false" synchronized="false"
  8743. static="false" final="false" visibility="public"
  8744. deprecated="not deprecated">
  8745. <param name="out" type="java.io.DataOutput"/>
  8746. <exception name="IOException" type="java.io.IOException"/>
  8747. </method>
  8748. <method name="hashCode" return="int"
  8749. abstract="false" native="false" synchronized="false"
  8750. static="false" final="false" visibility="public"
  8751. deprecated="not deprecated">
  8752. </method>
  8753. <method name="equals" return="boolean"
  8754. abstract="false" native="false" synchronized="false"
  8755. static="false" final="false" visibility="public"
  8756. deprecated="not deprecated">
  8757. <param name="right_obj" type="java.lang.Object"/>
  8758. <doc>
  8759. <![CDATA[Are the two byte sequences equal?]]>
  8760. </doc>
  8761. </method>
  8762. <method name="toString" return="java.lang.String"
  8763. abstract="false" native="false" synchronized="false"
  8764. static="false" final="false" visibility="public"
  8765. deprecated="not deprecated">
  8766. <doc>
  8767. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  8768. </doc>
  8769. </method>
  8770. <doc>
  8771. <![CDATA[A byte sequence that is usable as a key or value.
  8772. It is resizable and distinguishes between the size of the seqeunce and
  8773. the current capacity. The hash function is the front of the md5 of the
  8774. buffer. The sort order is the same as memcmp.]]>
  8775. </doc>
  8776. </class>
  8777. <!-- end class org.apache.hadoop.io.BytesWritable -->
  8778. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  8779. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8780. abstract="false"
  8781. static="true" final="false" visibility="public"
  8782. deprecated="not deprecated">
  8783. <constructor name="BytesWritable.Comparator"
  8784. static="false" final="false" visibility="public"
  8785. deprecated="not deprecated">
  8786. </constructor>
  8787. <method name="compare" return="int"
  8788. abstract="false" native="false" synchronized="false"
  8789. static="false" final="false" visibility="public"
  8790. deprecated="not deprecated">
  8791. <param name="b1" type="byte[]"/>
  8792. <param name="s1" type="int"/>
  8793. <param name="l1" type="int"/>
  8794. <param name="b2" type="byte[]"/>
  8795. <param name="s2" type="int"/>
  8796. <param name="l2" type="int"/>
  8797. <doc>
  8798. <![CDATA[Compare the buffers in serialized form.]]>
  8799. </doc>
  8800. </method>
  8801. <doc>
  8802. <![CDATA[A Comparator optimized for BytesWritable.]]>
  8803. </doc>
  8804. </class>
  8805. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  8806. <!-- start class org.apache.hadoop.io.ByteWritable -->
  8807. <class name="ByteWritable" extends="java.lang.Object"
  8808. abstract="false"
  8809. static="false" final="false" visibility="public"
  8810. deprecated="not deprecated">
  8811. <implements name="org.apache.hadoop.io.WritableComparable"/>
  8812. <constructor name="ByteWritable"
  8813. static="false" final="false" visibility="public"
  8814. deprecated="not deprecated">
  8815. </constructor>
  8816. <constructor name="ByteWritable" type="byte"
  8817. static="false" final="false" visibility="public"
  8818. deprecated="not deprecated">
  8819. </constructor>
  8820. <method name="set"
  8821. abstract="false" native="false" synchronized="false"
  8822. static="false" final="false" visibility="public"
  8823. deprecated="not deprecated">
  8824. <param name="value" type="byte"/>
  8825. <doc>
  8826. <![CDATA[Set the value of this ByteWritable.]]>
  8827. </doc>
  8828. </method>
  8829. <method name="get" return="byte"
  8830. abstract="false" native="false" synchronized="false"
  8831. static="false" final="false" visibility="public"
  8832. deprecated="not deprecated">
  8833. <doc>
  8834. <![CDATA[Return the value of this ByteWritable.]]>
  8835. </doc>
  8836. </method>
  8837. <method name="readFields"
  8838. abstract="false" native="false" synchronized="false"
  8839. static="false" final="false" visibility="public"
  8840. deprecated="not deprecated">
  8841. <param name="in" type="java.io.DataInput"/>
  8842. <exception name="IOException" type="java.io.IOException"/>
  8843. </method>
  8844. <method name="write"
  8845. abstract="false" native="false" synchronized="false"
  8846. static="false" final="false" visibility="public"
  8847. deprecated="not deprecated">
  8848. <param name="out" type="java.io.DataOutput"/>
  8849. <exception name="IOException" type="java.io.IOException"/>
  8850. </method>
  8851. <method name="equals" return="boolean"
  8852. abstract="false" native="false" synchronized="false"
  8853. static="false" final="false" visibility="public"
  8854. deprecated="not deprecated">
  8855. <param name="o" type="java.lang.Object"/>
  8856. <doc>
  8857. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  8858. </doc>
  8859. </method>
  8860. <method name="hashCode" return="int"
  8861. abstract="false" native="false" synchronized="false"
  8862. static="false" final="false" visibility="public"
  8863. deprecated="not deprecated">
  8864. </method>
  8865. <method name="compareTo" return="int"
  8866. abstract="false" native="false" synchronized="false"
  8867. static="false" final="false" visibility="public"
  8868. deprecated="not deprecated">
  8869. <param name="o" type="java.lang.Object"/>
  8870. <doc>
  8871. <![CDATA[Compares two ByteWritables.]]>
  8872. </doc>
  8873. </method>
  8874. <method name="toString" return="java.lang.String"
  8875. abstract="false" native="false" synchronized="false"
  8876. static="false" final="false" visibility="public"
  8877. deprecated="not deprecated">
  8878. </method>
  8879. <doc>
  8880. <![CDATA[A WritableComparable for a single byte.]]>
  8881. </doc>
  8882. </class>
  8883. <!-- end class org.apache.hadoop.io.ByteWritable -->
  8884. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  8885. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  8886. abstract="false"
  8887. static="true" final="false" visibility="public"
  8888. deprecated="not deprecated">
  8889. <constructor name="ByteWritable.Comparator"
  8890. static="false" final="false" visibility="public"
  8891. deprecated="not deprecated">
  8892. </constructor>
  8893. <method name="compare" return="int"
  8894. abstract="false" native="false" synchronized="false"
  8895. static="false" final="false" visibility="public"
  8896. deprecated="not deprecated">
  8897. <param name="b1" type="byte[]"/>
  8898. <param name="s1" type="int"/>
  8899. <param name="l1" type="int"/>
  8900. <param name="b2" type="byte[]"/>
  8901. <param name="s2" type="int"/>
  8902. <param name="l2" type="int"/>
  8903. </method>
  8904. <doc>
  8905. <![CDATA[A Comparator optimized for ByteWritable.]]>
  8906. </doc>
  8907. </class>
  8908. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  8909. <!-- start interface org.apache.hadoop.io.Closeable -->
  8910. <interface name="Closeable" abstract="true"
  8911. static="false" final="false" visibility="public"
  8912. deprecated="use java.io.Closeable">
  8913. <implements name="java.io.Closeable"/>
  8914. <doc>
  8915. <![CDATA[@deprecated use java.io.Closeable]]>
  8916. </doc>
  8917. </interface>
  8918. <!-- end interface org.apache.hadoop.io.Closeable -->
  8919. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  8920. <class name="CompressedWritable" extends="java.lang.Object"
  8921. abstract="true"
  8922. static="false" final="false" visibility="public"
  8923. deprecated="not deprecated">
  8924. <implements name="org.apache.hadoop.io.Writable"/>
  8925. <constructor name="CompressedWritable"
  8926. static="false" final="false" visibility="public"
  8927. deprecated="not deprecated">
  8928. </constructor>
  8929. <method name="readFields"
  8930. abstract="false" native="false" synchronized="false"
  8931. static="false" final="true" visibility="public"
  8932. deprecated="not deprecated">
  8933. <param name="in" type="java.io.DataInput"/>
  8934. <exception name="IOException" type="java.io.IOException"/>
  8935. </method>
  8936. <method name="ensureInflated"
  8937. abstract="false" native="false" synchronized="false"
  8938. static="false" final="false" visibility="protected"
  8939. deprecated="not deprecated">
  8940. <doc>
  8941. <![CDATA[Must be called by all methods which access fields to ensure that the data
  8942. has been uncompressed.]]>
  8943. </doc>
  8944. </method>
  8945. <method name="readFieldsCompressed"
  8946. abstract="true" native="false" synchronized="false"
  8947. static="false" final="false" visibility="protected"
  8948. deprecated="not deprecated">
  8949. <param name="in" type="java.io.DataInput"/>
  8950. <exception name="IOException" type="java.io.IOException"/>
  8951. <doc>
  8952. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  8953. </doc>
  8954. </method>
  8955. <method name="write"
  8956. abstract="false" native="false" synchronized="false"
  8957. static="false" final="true" visibility="public"
  8958. deprecated="not deprecated">
  8959. <param name="out" type="java.io.DataOutput"/>
  8960. <exception name="IOException" type="java.io.IOException"/>
  8961. </method>
  8962. <method name="writeCompressed"
  8963. abstract="true" native="false" synchronized="false"
  8964. static="false" final="false" visibility="protected"
  8965. deprecated="not deprecated">
  8966. <param name="out" type="java.io.DataOutput"/>
  8967. <exception name="IOException" type="java.io.IOException"/>
  8968. <doc>
  8969. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  8970. </doc>
  8971. </method>
  8972. <doc>
  8973. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  8974. inflate on field access. This is useful for large objects whose fields are
  8975. not be altered during a map or reduce operation: leaving the field data
  8976. compressed makes copying the instance from one file to another much
  8977. faster.]]>
  8978. </doc>
  8979. </class>
  8980. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  8981. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  8982. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  8983. abstract="false"
  8984. static="false" final="false" visibility="public"
  8985. deprecated="not deprecated">
  8986. <constructor name="DataInputBuffer"
  8987. static="false" final="false" visibility="public"
  8988. deprecated="not deprecated">
  8989. <doc>
  8990. <![CDATA[Constructs a new empty buffer.]]>
  8991. </doc>
  8992. </constructor>
  8993. <method name="reset"
  8994. abstract="false" native="false" synchronized="false"
  8995. static="false" final="false" visibility="public"
  8996. deprecated="not deprecated">
  8997. <param name="input" type="byte[]"/>
  8998. <param name="length" type="int"/>
  8999. <doc>
  9000. <![CDATA[Resets the data that the buffer reads.]]>
  9001. </doc>
  9002. </method>
  9003. <method name="reset"
  9004. abstract="false" native="false" synchronized="false"
  9005. static="false" final="false" visibility="public"
  9006. deprecated="not deprecated">
  9007. <param name="input" type="byte[]"/>
  9008. <param name="start" type="int"/>
  9009. <param name="length" type="int"/>
  9010. <doc>
  9011. <![CDATA[Resets the data that the buffer reads.]]>
  9012. </doc>
  9013. </method>
  9014. <method name="getData" return="byte[]"
  9015. abstract="false" native="false" synchronized="false"
  9016. static="false" final="false" visibility="public"
  9017. deprecated="not deprecated">
  9018. </method>
  9019. <method name="getPosition" return="int"
  9020. abstract="false" native="false" synchronized="false"
  9021. static="false" final="false" visibility="public"
  9022. deprecated="not deprecated">
  9023. <doc>
  9024. <![CDATA[Returns the current position in the input.]]>
  9025. </doc>
  9026. </method>
  9027. <method name="getLength" return="int"
  9028. abstract="false" native="false" synchronized="false"
  9029. static="false" final="false" visibility="public"
  9030. deprecated="not deprecated">
  9031. <doc>
  9032. <![CDATA[Returns the length of the input.]]>
  9033. </doc>
  9034. </method>
  9035. <doc>
  9036. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  9037. buffer.
  9038. <p>This saves memory over creating a new DataInputStream and
  9039. ByteArrayInputStream each time data is read.
  9040. <p>Typical usage is something like the following:<pre>
  9041. DataInputBuffer buffer = new DataInputBuffer();
  9042. while (... loop condition ...) {
  9043. byte[] data = ... get data ...;
  9044. int dataLength = ... get data length ...;
  9045. buffer.reset(data, dataLength);
  9046. ... read buffer using DataInput methods ...
  9047. }
  9048. </pre>]]>
  9049. </doc>
  9050. </class>
  9051. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  9052. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  9053. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  9054. abstract="false"
  9055. static="false" final="false" visibility="public"
  9056. deprecated="not deprecated">
  9057. <constructor name="DataOutputBuffer"
  9058. static="false" final="false" visibility="public"
  9059. deprecated="not deprecated">
  9060. <doc>
  9061. <![CDATA[Constructs a new empty buffer.]]>
  9062. </doc>
  9063. </constructor>
  9064. <constructor name="DataOutputBuffer" type="int"
  9065. static="false" final="false" visibility="public"
  9066. deprecated="not deprecated">
  9067. </constructor>
  9068. <method name="getData" return="byte[]"
  9069. abstract="false" native="false" synchronized="false"
  9070. static="false" final="false" visibility="public"
  9071. deprecated="not deprecated">
  9072. <doc>
  9073. <![CDATA[Returns the current contents of the buffer.
  9074. Data is only valid to {@link #getLength()}.]]>
  9075. </doc>
  9076. </method>
  9077. <method name="getLength" return="int"
  9078. abstract="false" native="false" synchronized="false"
  9079. static="false" final="false" visibility="public"
  9080. deprecated="not deprecated">
  9081. <doc>
  9082. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  9083. </doc>
  9084. </method>
  9085. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  9086. abstract="false" native="false" synchronized="false"
  9087. static="false" final="false" visibility="public"
  9088. deprecated="not deprecated">
  9089. <doc>
  9090. <![CDATA[Resets the buffer to empty.]]>
  9091. </doc>
  9092. </method>
  9093. <method name="write"
  9094. abstract="false" native="false" synchronized="false"
  9095. static="false" final="false" visibility="public"
  9096. deprecated="not deprecated">
  9097. <param name="in" type="java.io.DataInput"/>
  9098. <param name="length" type="int"/>
  9099. <exception name="IOException" type="java.io.IOException"/>
  9100. <doc>
  9101. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  9102. </doc>
  9103. </method>
  9104. <method name="writeTo"
  9105. abstract="false" native="false" synchronized="false"
  9106. static="false" final="false" visibility="public"
  9107. deprecated="not deprecated">
  9108. <param name="out" type="java.io.OutputStream"/>
  9109. <exception name="IOException" type="java.io.IOException"/>
  9110. <doc>
  9111. <![CDATA[Write to a file stream]]>
  9112. </doc>
  9113. </method>
  9114. <doc>
  9115. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  9116. buffer.
  9117. <p>This saves memory over creating a new DataOutputStream and
  9118. ByteArrayOutputStream each time data is written.
  9119. <p>Typical usage is something like the following:<pre>
  9120. DataOutputBuffer buffer = new DataOutputBuffer();
  9121. while (... loop condition ...) {
  9122. buffer.reset();
  9123. ... write buffer using DataOutput methods ...
  9124. byte[] data = buffer.getData();
  9125. int dataLength = buffer.getLength();
  9126. ... write data to its ultimate destination ...
  9127. }
  9128. </pre>]]>
  9129. </doc>
  9130. </class>
  9131. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  9132. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  9133. <class name="DefaultStringifier" extends="java.lang.Object"
  9134. abstract="false"
  9135. static="false" final="false" visibility="public"
  9136. deprecated="not deprecated">
  9137. <implements name="org.apache.hadoop.io.Stringifier&lt;T&gt;"/>
  9138. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class&lt;T&gt;"
  9139. static="false" final="false" visibility="public"
  9140. deprecated="not deprecated">
  9141. </constructor>
  9142. <method name="fromString" return="T"
  9143. abstract="false" native="false" synchronized="false"
  9144. static="false" final="false" visibility="public"
  9145. deprecated="not deprecated">
  9146. <param name="str" type="java.lang.String"/>
  9147. <exception name="IOException" type="java.io.IOException"/>
  9148. </method>
  9149. <method name="toString" return="java.lang.String"
  9150. abstract="false" native="false" synchronized="false"
  9151. static="false" final="false" visibility="public"
  9152. deprecated="not deprecated">
  9153. <param name="obj" type="T"/>
  9154. <exception name="IOException" type="java.io.IOException"/>
  9155. </method>
  9156. <method name="close"
  9157. abstract="false" native="false" synchronized="false"
  9158. static="false" final="false" visibility="public"
  9159. deprecated="not deprecated">
  9160. <exception name="IOException" type="java.io.IOException"/>
  9161. </method>
  9162. <method name="store"
  9163. abstract="false" native="false" synchronized="false"
  9164. static="true" final="false" visibility="public"
  9165. deprecated="not deprecated">
  9166. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9167. <param name="item" type="K"/>
  9168. <param name="keyName" type="java.lang.String"/>
  9169. <exception name="IOException" type="java.io.IOException"/>
  9170. <doc>
  9171. <![CDATA[Stores the item in the configuration with the given keyName.
  9172. @param <K> the class of the item
  9173. @param conf the configuration to store
  9174. @param item the object to be stored
  9175. @param keyName the name of the key to use
  9176. @throws IOException : forwards Exceptions from the underlying
  9177. {@link Serialization} classes.]]>
  9178. </doc>
  9179. </method>
  9180. <method name="load" return="K"
  9181. abstract="false" native="false" synchronized="false"
  9182. static="true" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9185. <param name="keyName" type="java.lang.String"/>
  9186. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  9187. <exception name="IOException" type="java.io.IOException"/>
  9188. <doc>
  9189. <![CDATA[Restores the object from the configuration.
  9190. @param <K> the class of the item
  9191. @param conf the configuration to use
  9192. @param keyName the name of the key to use
  9193. @param itemClass the class of the item
  9194. @return restored object
  9195. @throws IOException : forwards Exceptions from the underlying
  9196. {@link Serialization} classes.]]>
  9197. </doc>
  9198. </method>
  9199. <method name="storeArray"
  9200. abstract="false" native="false" synchronized="false"
  9201. static="true" final="false" visibility="public"
  9202. deprecated="not deprecated">
  9203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9204. <param name="items" type="K[]"/>
  9205. <param name="keyName" type="java.lang.String"/>
  9206. <exception name="IOException" type="java.io.IOException"/>
  9207. <doc>
  9208. <![CDATA[Stores the array of items in the configuration with the given keyName.
  9209. @param <K> the class of the item
  9210. @param conf the configuration to use
  9211. @param items the objects to be stored
  9212. @param keyName the name of the key to use
  9213. @throws IndexOutOfBoundsException if the items array is empty
  9214. @throws IOException : forwards Exceptions from the underlying
  9215. {@link Serialization} classes.]]>
  9216. </doc>
  9217. </method>
  9218. <method name="loadArray" return="K[]"
  9219. abstract="false" native="false" synchronized="false"
  9220. static="true" final="false" visibility="public"
  9221. deprecated="not deprecated">
  9222. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9223. <param name="keyName" type="java.lang.String"/>
  9224. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  9225. <exception name="IOException" type="java.io.IOException"/>
  9226. <doc>
  9227. <![CDATA[Restores the array of objects from the configuration.
  9228. @param <K> the class of the item
  9229. @param conf the configuration to use
  9230. @param keyName the name of the key to use
  9231. @param itemClass the class of the item
  9232. @return restored object
  9233. @throws IOException : forwards Exceptions from the underlying
  9234. {@link Serialization} classes.]]>
  9235. </doc>
  9236. </method>
  9237. <doc>
  9238. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  9239. interface which stringifies the objects using base64 encoding of the
  9240. serialized version of the objects. The {@link Serializer} and
  9241. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  9242. <br>
  9243. DefaultStringifier offers convenience methods to store/load objects to/from
  9244. the configuration.
  9245. @param <T> the class of the objects to stringify]]>
  9246. </doc>
  9247. </class>
  9248. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  9249. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  9250. <class name="DoubleWritable" extends="java.lang.Object"
  9251. abstract="false"
  9252. static="false" final="false" visibility="public"
  9253. deprecated="not deprecated">
  9254. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9255. <constructor name="DoubleWritable"
  9256. static="false" final="false" visibility="public"
  9257. deprecated="not deprecated">
  9258. </constructor>
  9259. <constructor name="DoubleWritable" type="double"
  9260. static="false" final="false" visibility="public"
  9261. deprecated="not deprecated">
  9262. </constructor>
  9263. <method name="readFields"
  9264. abstract="false" native="false" synchronized="false"
  9265. static="false" final="false" visibility="public"
  9266. deprecated="not deprecated">
  9267. <param name="in" type="java.io.DataInput"/>
  9268. <exception name="IOException" type="java.io.IOException"/>
  9269. </method>
  9270. <method name="write"
  9271. abstract="false" native="false" synchronized="false"
  9272. static="false" final="false" visibility="public"
  9273. deprecated="not deprecated">
  9274. <param name="out" type="java.io.DataOutput"/>
  9275. <exception name="IOException" type="java.io.IOException"/>
  9276. </method>
  9277. <method name="set"
  9278. abstract="false" native="false" synchronized="false"
  9279. static="false" final="false" visibility="public"
  9280. deprecated="not deprecated">
  9281. <param name="value" type="double"/>
  9282. </method>
  9283. <method name="get" return="double"
  9284. abstract="false" native="false" synchronized="false"
  9285. static="false" final="false" visibility="public"
  9286. deprecated="not deprecated">
  9287. </method>
  9288. <method name="equals" return="boolean"
  9289. abstract="false" native="false" synchronized="false"
  9290. static="false" final="false" visibility="public"
  9291. deprecated="not deprecated">
  9292. <param name="o" type="java.lang.Object"/>
  9293. <doc>
  9294. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  9295. </doc>
  9296. </method>
  9297. <method name="hashCode" return="int"
  9298. abstract="false" native="false" synchronized="false"
  9299. static="false" final="false" visibility="public"
  9300. deprecated="not deprecated">
  9301. </method>
  9302. <method name="compareTo" return="int"
  9303. abstract="false" native="false" synchronized="false"
  9304. static="false" final="false" visibility="public"
  9305. deprecated="not deprecated">
  9306. <param name="o" type="java.lang.Object"/>
  9307. </method>
  9308. <method name="toString" return="java.lang.String"
  9309. abstract="false" native="false" synchronized="false"
  9310. static="false" final="false" visibility="public"
  9311. deprecated="not deprecated">
  9312. </method>
  9313. <doc>
  9314. <![CDATA[Writable for Double values.]]>
  9315. </doc>
  9316. </class>
  9317. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  9318. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9319. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9320. abstract="false"
  9321. static="true" final="false" visibility="public"
  9322. deprecated="not deprecated">
  9323. <constructor name="DoubleWritable.Comparator"
  9324. static="false" final="false" visibility="public"
  9325. deprecated="not deprecated">
  9326. </constructor>
  9327. <method name="compare" return="int"
  9328. abstract="false" native="false" synchronized="false"
  9329. static="false" final="false" visibility="public"
  9330. deprecated="not deprecated">
  9331. <param name="b1" type="byte[]"/>
  9332. <param name="s1" type="int"/>
  9333. <param name="l1" type="int"/>
  9334. <param name="b2" type="byte[]"/>
  9335. <param name="s2" type="int"/>
  9336. <param name="l2" type="int"/>
  9337. </method>
  9338. <doc>
  9339. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  9340. </doc>
  9341. </class>
  9342. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  9343. <!-- start class org.apache.hadoop.io.FloatWritable -->
  9344. <class name="FloatWritable" extends="java.lang.Object"
  9345. abstract="false"
  9346. static="false" final="false" visibility="public"
  9347. deprecated="not deprecated">
  9348. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9349. <constructor name="FloatWritable"
  9350. static="false" final="false" visibility="public"
  9351. deprecated="not deprecated">
  9352. </constructor>
  9353. <constructor name="FloatWritable" type="float"
  9354. static="false" final="false" visibility="public"
  9355. deprecated="not deprecated">
  9356. </constructor>
  9357. <method name="set"
  9358. abstract="false" native="false" synchronized="false"
  9359. static="false" final="false" visibility="public"
  9360. deprecated="not deprecated">
  9361. <param name="value" type="float"/>
  9362. <doc>
  9363. <![CDATA[Set the value of this FloatWritable.]]>
  9364. </doc>
  9365. </method>
  9366. <method name="get" return="float"
  9367. abstract="false" native="false" synchronized="false"
  9368. static="false" final="false" visibility="public"
  9369. deprecated="not deprecated">
  9370. <doc>
  9371. <![CDATA[Return the value of this FloatWritable.]]>
  9372. </doc>
  9373. </method>
  9374. <method name="readFields"
  9375. abstract="false" native="false" synchronized="false"
  9376. static="false" final="false" visibility="public"
  9377. deprecated="not deprecated">
  9378. <param name="in" type="java.io.DataInput"/>
  9379. <exception name="IOException" type="java.io.IOException"/>
  9380. </method>
  9381. <method name="write"
  9382. abstract="false" native="false" synchronized="false"
  9383. static="false" final="false" visibility="public"
  9384. deprecated="not deprecated">
  9385. <param name="out" type="java.io.DataOutput"/>
  9386. <exception name="IOException" type="java.io.IOException"/>
  9387. </method>
  9388. <method name="equals" return="boolean"
  9389. abstract="false" native="false" synchronized="false"
  9390. static="false" final="false" visibility="public"
  9391. deprecated="not deprecated">
  9392. <param name="o" type="java.lang.Object"/>
  9393. <doc>
  9394. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  9395. </doc>
  9396. </method>
  9397. <method name="hashCode" return="int"
  9398. abstract="false" native="false" synchronized="false"
  9399. static="false" final="false" visibility="public"
  9400. deprecated="not deprecated">
  9401. </method>
  9402. <method name="compareTo" return="int"
  9403. abstract="false" native="false" synchronized="false"
  9404. static="false" final="false" visibility="public"
  9405. deprecated="not deprecated">
  9406. <param name="o" type="java.lang.Object"/>
  9407. <doc>
  9408. <![CDATA[Compares two FloatWritables.]]>
  9409. </doc>
  9410. </method>
  9411. <method name="toString" return="java.lang.String"
  9412. abstract="false" native="false" synchronized="false"
  9413. static="false" final="false" visibility="public"
  9414. deprecated="not deprecated">
  9415. </method>
  9416. <doc>
  9417. <![CDATA[A WritableComparable for floats.]]>
  9418. </doc>
  9419. </class>
  9420. <!-- end class org.apache.hadoop.io.FloatWritable -->
  9421. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  9422. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9423. abstract="false"
  9424. static="true" final="false" visibility="public"
  9425. deprecated="not deprecated">
  9426. <constructor name="FloatWritable.Comparator"
  9427. static="false" final="false" visibility="public"
  9428. deprecated="not deprecated">
  9429. </constructor>
  9430. <method name="compare" return="int"
  9431. abstract="false" native="false" synchronized="false"
  9432. static="false" final="false" visibility="public"
  9433. deprecated="not deprecated">
  9434. <param name="b1" type="byte[]"/>
  9435. <param name="s1" type="int"/>
  9436. <param name="l1" type="int"/>
  9437. <param name="b2" type="byte[]"/>
  9438. <param name="s2" type="int"/>
  9439. <param name="l2" type="int"/>
  9440. </method>
  9441. <doc>
  9442. <![CDATA[A Comparator optimized for FloatWritable.]]>
  9443. </doc>
  9444. </class>
  9445. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  9446. <!-- start class org.apache.hadoop.io.GenericWritable -->
  9447. <class name="GenericWritable" extends="java.lang.Object"
  9448. abstract="true"
  9449. static="false" final="false" visibility="public"
  9450. deprecated="not deprecated">
  9451. <implements name="org.apache.hadoop.io.Writable"/>
  9452. <implements name="org.apache.hadoop.conf.Configurable"/>
  9453. <constructor name="GenericWritable"
  9454. static="false" final="false" visibility="public"
  9455. deprecated="not deprecated">
  9456. </constructor>
  9457. <method name="set"
  9458. abstract="false" native="false" synchronized="false"
  9459. static="false" final="false" visibility="public"
  9460. deprecated="not deprecated">
  9461. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  9462. <doc>
  9463. <![CDATA[Set the instance that is wrapped.
  9464. @param obj]]>
  9465. </doc>
  9466. </method>
  9467. <method name="get" return="org.apache.hadoop.io.Writable"
  9468. abstract="false" native="false" synchronized="false"
  9469. static="false" final="false" visibility="public"
  9470. deprecated="not deprecated">
  9471. <doc>
  9472. <![CDATA[Return the wrapped instance.]]>
  9473. </doc>
  9474. </method>
  9475. <method name="toString" return="java.lang.String"
  9476. abstract="false" native="false" synchronized="false"
  9477. static="false" final="false" visibility="public"
  9478. deprecated="not deprecated">
  9479. </method>
  9480. <method name="readFields"
  9481. abstract="false" native="false" synchronized="false"
  9482. static="false" final="false" visibility="public"
  9483. deprecated="not deprecated">
  9484. <param name="in" type="java.io.DataInput"/>
  9485. <exception name="IOException" type="java.io.IOException"/>
  9486. </method>
  9487. <method name="write"
  9488. abstract="false" native="false" synchronized="false"
  9489. static="false" final="false" visibility="public"
  9490. deprecated="not deprecated">
  9491. <param name="out" type="java.io.DataOutput"/>
  9492. <exception name="IOException" type="java.io.IOException"/>
  9493. </method>
  9494. <method name="getTypes" return="java.lang.Class[]"
  9495. abstract="true" native="false" synchronized="false"
  9496. static="false" final="false" visibility="protected"
  9497. deprecated="not deprecated">
  9498. <doc>
  9499. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  9500. to return a constant array of classes.]]>
  9501. </doc>
  9502. </method>
  9503. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9504. abstract="false" native="false" synchronized="false"
  9505. static="false" final="false" visibility="public"
  9506. deprecated="not deprecated">
  9507. </method>
  9508. <method name="setConf"
  9509. abstract="false" native="false" synchronized="false"
  9510. static="false" final="false" visibility="public"
  9511. deprecated="not deprecated">
  9512. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9513. </method>
  9514. <doc>
  9515. <![CDATA[A wrapper for Writable instances.
  9516. <p>
  9517. When two sequence files, which have same Key type but different Value
  9518. types, are mapped out to reduce, multiple Value types is not allowed.
  9519. In this case, this class can help you wrap instances with different types.
  9520. </p>
  9521. <p>
  9522. Compared with <code>ObjectWritable</code>, this class is much more effective,
  9523. because <code>ObjectWritable</code> will append the class declaration as a String
  9524. into the output file in every Key-Value pair.
  9525. </p>
  9526. <p>
  9527. Generic Writable implements {@link Configurable} interface, so that it will be
  9528. configured by the framework. The configuration is passed to the wrapped objects
  9529. implementing {@link Configurable} interface <i>before deserialization</i>.
  9530. </p>
  9531. how to use it: <br>
  9532. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  9533. 2. Implements the abstract method <code>getTypes()</code>, defines
  9534. the classes which will be wrapped in GenericObject in application.
  9535. Attention: this classes defined in <code>getTypes()</code> method, must
  9536. implement <code>Writable</code> interface.
  9537. <br><br>
  9538. The code looks like this:
  9539. <blockquote><pre>
  9540. public class GenericObject extends GenericWritable {
  9541. private static Class[] CLASSES = {
  9542. ClassType1.class,
  9543. ClassType2.class,
  9544. ClassType3.class,
  9545. };
  9546. protected Class[] getTypes() {
  9547. return CLASSES;
  9548. }
  9549. }
  9550. </pre></blockquote>
  9551. @since Nov 8, 2006]]>
  9552. </doc>
  9553. </class>
  9554. <!-- end class org.apache.hadoop.io.GenericWritable -->
  9555. <!-- start class org.apache.hadoop.io.InputBuffer -->
  9556. <class name="InputBuffer" extends="java.io.FilterInputStream"
  9557. abstract="false"
  9558. static="false" final="false" visibility="public"
  9559. deprecated="not deprecated">
  9560. <constructor name="InputBuffer"
  9561. static="false" final="false" visibility="public"
  9562. deprecated="not deprecated">
  9563. <doc>
  9564. <![CDATA[Constructs a new empty buffer.]]>
  9565. </doc>
  9566. </constructor>
  9567. <method name="reset"
  9568. abstract="false" native="false" synchronized="false"
  9569. static="false" final="false" visibility="public"
  9570. deprecated="not deprecated">
  9571. <param name="input" type="byte[]"/>
  9572. <param name="length" type="int"/>
  9573. <doc>
  9574. <![CDATA[Resets the data that the buffer reads.]]>
  9575. </doc>
  9576. </method>
  9577. <method name="reset"
  9578. abstract="false" native="false" synchronized="false"
  9579. static="false" final="false" visibility="public"
  9580. deprecated="not deprecated">
  9581. <param name="input" type="byte[]"/>
  9582. <param name="start" type="int"/>
  9583. <param name="length" type="int"/>
  9584. <doc>
  9585. <![CDATA[Resets the data that the buffer reads.]]>
  9586. </doc>
  9587. </method>
  9588. <method name="getPosition" return="int"
  9589. abstract="false" native="false" synchronized="false"
  9590. static="false" final="false" visibility="public"
  9591. deprecated="not deprecated">
  9592. <doc>
  9593. <![CDATA[Returns the current position in the input.]]>
  9594. </doc>
  9595. </method>
  9596. <method name="getLength" return="int"
  9597. abstract="false" native="false" synchronized="false"
  9598. static="false" final="false" visibility="public"
  9599. deprecated="not deprecated">
  9600. <doc>
  9601. <![CDATA[Returns the length of the input.]]>
  9602. </doc>
  9603. </method>
  9604. <doc>
  9605. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  9606. buffer.
  9607. <p>This saves memory over creating a new InputStream and
  9608. ByteArrayInputStream each time data is read.
  9609. <p>Typical usage is something like the following:<pre>
  9610. InputBuffer buffer = new InputBuffer();
  9611. while (... loop condition ...) {
  9612. byte[] data = ... get data ...;
  9613. int dataLength = ... get data length ...;
  9614. buffer.reset(data, dataLength);
  9615. ... read buffer using InputStream methods ...
  9616. }
  9617. </pre>
  9618. @see DataInputBuffer
  9619. @see DataOutput]]>
  9620. </doc>
  9621. </class>
  9622. <!-- end class org.apache.hadoop.io.InputBuffer -->
  9623. <!-- start class org.apache.hadoop.io.IntWritable -->
  9624. <class name="IntWritable" extends="java.lang.Object"
  9625. abstract="false"
  9626. static="false" final="false" visibility="public"
  9627. deprecated="not deprecated">
  9628. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9629. <constructor name="IntWritable"
  9630. static="false" final="false" visibility="public"
  9631. deprecated="not deprecated">
  9632. </constructor>
  9633. <constructor name="IntWritable" type="int"
  9634. static="false" final="false" visibility="public"
  9635. deprecated="not deprecated">
  9636. </constructor>
  9637. <method name="set"
  9638. abstract="false" native="false" synchronized="false"
  9639. static="false" final="false" visibility="public"
  9640. deprecated="not deprecated">
  9641. <param name="value" type="int"/>
  9642. <doc>
  9643. <![CDATA[Set the value of this IntWritable.]]>
  9644. </doc>
  9645. </method>
  9646. <method name="get" return="int"
  9647. abstract="false" native="false" synchronized="false"
  9648. static="false" final="false" visibility="public"
  9649. deprecated="not deprecated">
  9650. <doc>
  9651. <![CDATA[Return the value of this IntWritable.]]>
  9652. </doc>
  9653. </method>
  9654. <method name="readFields"
  9655. abstract="false" native="false" synchronized="false"
  9656. static="false" final="false" visibility="public"
  9657. deprecated="not deprecated">
  9658. <param name="in" type="java.io.DataInput"/>
  9659. <exception name="IOException" type="java.io.IOException"/>
  9660. </method>
  9661. <method name="write"
  9662. abstract="false" native="false" synchronized="false"
  9663. static="false" final="false" visibility="public"
  9664. deprecated="not deprecated">
  9665. <param name="out" type="java.io.DataOutput"/>
  9666. <exception name="IOException" type="java.io.IOException"/>
  9667. </method>
  9668. <method name="equals" return="boolean"
  9669. abstract="false" native="false" synchronized="false"
  9670. static="false" final="false" visibility="public"
  9671. deprecated="not deprecated">
  9672. <param name="o" type="java.lang.Object"/>
  9673. <doc>
  9674. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  9675. </doc>
  9676. </method>
  9677. <method name="hashCode" return="int"
  9678. abstract="false" native="false" synchronized="false"
  9679. static="false" final="false" visibility="public"
  9680. deprecated="not deprecated">
  9681. </method>
  9682. <method name="compareTo" return="int"
  9683. abstract="false" native="false" synchronized="false"
  9684. static="false" final="false" visibility="public"
  9685. deprecated="not deprecated">
  9686. <param name="o" type="java.lang.Object"/>
  9687. <doc>
  9688. <![CDATA[Compares two IntWritables.]]>
  9689. </doc>
  9690. </method>
  9691. <method name="toString" return="java.lang.String"
  9692. abstract="false" native="false" synchronized="false"
  9693. static="false" final="false" visibility="public"
  9694. deprecated="not deprecated">
  9695. </method>
  9696. <doc>
  9697. <![CDATA[A WritableComparable for ints.]]>
  9698. </doc>
  9699. </class>
  9700. <!-- end class org.apache.hadoop.io.IntWritable -->
  9701. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  9702. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9703. abstract="false"
  9704. static="true" final="false" visibility="public"
  9705. deprecated="not deprecated">
  9706. <constructor name="IntWritable.Comparator"
  9707. static="false" final="false" visibility="public"
  9708. deprecated="not deprecated">
  9709. </constructor>
  9710. <method name="compare" return="int"
  9711. abstract="false" native="false" synchronized="false"
  9712. static="false" final="false" visibility="public"
  9713. deprecated="not deprecated">
  9714. <param name="b1" type="byte[]"/>
  9715. <param name="s1" type="int"/>
  9716. <param name="l1" type="int"/>
  9717. <param name="b2" type="byte[]"/>
  9718. <param name="s2" type="int"/>
  9719. <param name="l2" type="int"/>
  9720. </method>
  9721. <doc>
  9722. <![CDATA[A Comparator optimized for IntWritable.]]>
  9723. </doc>
  9724. </class>
  9725. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  9726. <!-- start class org.apache.hadoop.io.IOUtils -->
  9727. <class name="IOUtils" extends="java.lang.Object"
  9728. abstract="false"
  9729. static="false" final="false" visibility="public"
  9730. deprecated="not deprecated">
  9731. <constructor name="IOUtils"
  9732. static="false" final="false" visibility="public"
  9733. deprecated="not deprecated">
  9734. </constructor>
  9735. <method name="copyBytes"
  9736. abstract="false" native="false" synchronized="false"
  9737. static="true" final="false" visibility="public"
  9738. deprecated="not deprecated">
  9739. <param name="in" type="java.io.InputStream"/>
  9740. <param name="out" type="java.io.OutputStream"/>
  9741. <param name="buffSize" type="int"/>
  9742. <param name="close" type="boolean"/>
  9743. <exception name="IOException" type="java.io.IOException"/>
  9744. <doc>
  9745. <![CDATA[Copies from one stream to another.
  9746. @param in InputStrem to read from
  9747. @param out OutputStream to write to
  9748. @param buffSize the size of the buffer
  9749. @param close whether or not close the InputStream and
  9750. OutputStream at the end. The streams are closed in the finally clause.]]>
  9751. </doc>
  9752. </method>
  9753. <method name="copyBytes"
  9754. abstract="false" native="false" synchronized="false"
  9755. static="true" final="false" visibility="public"
  9756. deprecated="not deprecated">
  9757. <param name="in" type="java.io.InputStream"/>
  9758. <param name="out" type="java.io.OutputStream"/>
  9759. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9760. <exception name="IOException" type="java.io.IOException"/>
  9761. <doc>
  9762. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  9763. at the end</strong>.
  9764. @param in InputStrem to read from
  9765. @param out OutputStream to write to
  9766. @param conf the Configuration object]]>
  9767. </doc>
  9768. </method>
  9769. <method name="copyBytes"
  9770. abstract="false" native="false" synchronized="false"
  9771. static="true" final="false" visibility="public"
  9772. deprecated="not deprecated">
  9773. <param name="in" type="java.io.InputStream"/>
  9774. <param name="out" type="java.io.OutputStream"/>
  9775. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9776. <param name="close" type="boolean"/>
  9777. <exception name="IOException" type="java.io.IOException"/>
  9778. <doc>
  9779. <![CDATA[Copies from one stream to another.
  9780. @param in InputStrem to read from
  9781. @param out OutputStream to write to
  9782. @param conf the Configuration object
  9783. @param close whether or not close the InputStream and
  9784. OutputStream at the end. The streams are closed in the finally clause.]]>
  9785. </doc>
  9786. </method>
  9787. <method name="readFully"
  9788. abstract="false" native="false" synchronized="false"
  9789. static="true" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <param name="in" type="java.io.InputStream"/>
  9792. <param name="buf" type="byte[]"/>
  9793. <param name="off" type="int"/>
  9794. <param name="len" type="int"/>
  9795. <exception name="IOException" type="java.io.IOException"/>
  9796. <doc>
  9797. <![CDATA[Reads len bytes in a loop.
  9798. @param in The InputStream to read from
  9799. @param buf The buffer to fill
  9800. @param off offset from the buffer
  9801. @param len the length of bytes to read
  9802. @throws IOException if it could not read requested number of bytes
  9803. for any reason (including EOF)]]>
  9804. </doc>
  9805. </method>
  9806. <method name="skipFully"
  9807. abstract="false" native="false" synchronized="false"
  9808. static="true" final="false" visibility="public"
  9809. deprecated="not deprecated">
  9810. <param name="in" type="java.io.InputStream"/>
  9811. <param name="len" type="long"/>
  9812. <exception name="IOException" type="java.io.IOException"/>
  9813. <doc>
  9814. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  9815. @param in The InputStream to skip bytes from
  9816. @param len number of bytes to skip.
  9817. @throws IOException if it could not skip requested number of bytes
  9818. for any reason (including EOF)]]>
  9819. </doc>
  9820. </method>
  9821. <method name="cleanup"
  9822. abstract="false" native="false" synchronized="false"
  9823. static="true" final="false" visibility="public"
  9824. deprecated="not deprecated">
  9825. <param name="log" type="org.apache.commons.logging.Log"/>
  9826. <param name="closeables" type="java.io.Closeable[]"/>
  9827. <doc>
  9828. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  9829. null pointers. Must only be used for cleanup in exception handlers.
  9830. @param log the log to record problems to at debug level. Can be null.
  9831. @param closeables the objects to close]]>
  9832. </doc>
  9833. </method>
  9834. <method name="closeStream"
  9835. abstract="false" native="false" synchronized="false"
  9836. static="true" final="false" visibility="public"
  9837. deprecated="not deprecated">
  9838. <param name="stream" type="java.io.Closeable"/>
  9839. <doc>
  9840. <![CDATA[Closes the stream ignoring {@link IOException}.
  9841. Must only be called in cleaning up from exception handlers.
  9842. @param stream the Stream to close]]>
  9843. </doc>
  9844. </method>
  9845. <method name="closeSocket"
  9846. abstract="false" native="false" synchronized="false"
  9847. static="true" final="false" visibility="public"
  9848. deprecated="not deprecated">
  9849. <param name="sock" type="java.net.Socket"/>
  9850. <doc>
  9851. <![CDATA[Closes the socket ignoring {@link IOException}
  9852. @param sock the Socket to close]]>
  9853. </doc>
  9854. </method>
  9855. <doc>
  9856. <![CDATA[An utility class for I/O related functionality.]]>
  9857. </doc>
  9858. </class>
  9859. <!-- end class org.apache.hadoop.io.IOUtils -->
  9860. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  9861. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  9862. abstract="false"
  9863. static="true" final="false" visibility="public"
  9864. deprecated="not deprecated">
  9865. <constructor name="IOUtils.NullOutputStream"
  9866. static="false" final="false" visibility="public"
  9867. deprecated="not deprecated">
  9868. </constructor>
  9869. <method name="write"
  9870. abstract="false" native="false" synchronized="false"
  9871. static="false" final="false" visibility="public"
  9872. deprecated="not deprecated">
  9873. <param name="b" type="byte[]"/>
  9874. <param name="off" type="int"/>
  9875. <param name="len" type="int"/>
  9876. <exception name="IOException" type="java.io.IOException"/>
  9877. </method>
  9878. <method name="write"
  9879. abstract="false" native="false" synchronized="false"
  9880. static="false" final="false" visibility="public"
  9881. deprecated="not deprecated">
  9882. <param name="b" type="int"/>
  9883. <exception name="IOException" type="java.io.IOException"/>
  9884. </method>
  9885. <doc>
  9886. <![CDATA[/dev/null of OutputStreams.]]>
  9887. </doc>
  9888. </class>
  9889. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  9890. <!-- start class org.apache.hadoop.io.LongWritable -->
  9891. <class name="LongWritable" extends="java.lang.Object"
  9892. abstract="false"
  9893. static="false" final="false" visibility="public"
  9894. deprecated="not deprecated">
  9895. <implements name="org.apache.hadoop.io.WritableComparable"/>
  9896. <constructor name="LongWritable"
  9897. static="false" final="false" visibility="public"
  9898. deprecated="not deprecated">
  9899. </constructor>
  9900. <constructor name="LongWritable" type="long"
  9901. static="false" final="false" visibility="public"
  9902. deprecated="not deprecated">
  9903. </constructor>
  9904. <method name="set"
  9905. abstract="false" native="false" synchronized="false"
  9906. static="false" final="false" visibility="public"
  9907. deprecated="not deprecated">
  9908. <param name="value" type="long"/>
  9909. <doc>
  9910. <![CDATA[Set the value of this LongWritable.]]>
  9911. </doc>
  9912. </method>
  9913. <method name="get" return="long"
  9914. abstract="false" native="false" synchronized="false"
  9915. static="false" final="false" visibility="public"
  9916. deprecated="not deprecated">
  9917. <doc>
  9918. <![CDATA[Return the value of this LongWritable.]]>
  9919. </doc>
  9920. </method>
  9921. <method name="readFields"
  9922. abstract="false" native="false" synchronized="false"
  9923. static="false" final="false" visibility="public"
  9924. deprecated="not deprecated">
  9925. <param name="in" type="java.io.DataInput"/>
  9926. <exception name="IOException" type="java.io.IOException"/>
  9927. </method>
  9928. <method name="write"
  9929. abstract="false" native="false" synchronized="false"
  9930. static="false" final="false" visibility="public"
  9931. deprecated="not deprecated">
  9932. <param name="out" type="java.io.DataOutput"/>
  9933. <exception name="IOException" type="java.io.IOException"/>
  9934. </method>
  9935. <method name="equals" return="boolean"
  9936. abstract="false" native="false" synchronized="false"
  9937. static="false" final="false" visibility="public"
  9938. deprecated="not deprecated">
  9939. <param name="o" type="java.lang.Object"/>
  9940. <doc>
  9941. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  9942. </doc>
  9943. </method>
  9944. <method name="hashCode" return="int"
  9945. abstract="false" native="false" synchronized="false"
  9946. static="false" final="false" visibility="public"
  9947. deprecated="not deprecated">
  9948. </method>
  9949. <method name="compareTo" return="int"
  9950. abstract="false" native="false" synchronized="false"
  9951. static="false" final="false" visibility="public"
  9952. deprecated="not deprecated">
  9953. <param name="o" type="java.lang.Object"/>
  9954. <doc>
  9955. <![CDATA[Compares two LongWritables.]]>
  9956. </doc>
  9957. </method>
  9958. <method name="toString" return="java.lang.String"
  9959. abstract="false" native="false" synchronized="false"
  9960. static="false" final="false" visibility="public"
  9961. deprecated="not deprecated">
  9962. </method>
  9963. <doc>
  9964. <![CDATA[A WritableComparable for longs.]]>
  9965. </doc>
  9966. </class>
  9967. <!-- end class org.apache.hadoop.io.LongWritable -->
  9968. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  9969. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  9970. abstract="false"
  9971. static="true" final="false" visibility="public"
  9972. deprecated="not deprecated">
  9973. <constructor name="LongWritable.Comparator"
  9974. static="false" final="false" visibility="public"
  9975. deprecated="not deprecated">
  9976. </constructor>
  9977. <method name="compare" return="int"
  9978. abstract="false" native="false" synchronized="false"
  9979. static="false" final="false" visibility="public"
  9980. deprecated="not deprecated">
  9981. <param name="b1" type="byte[]"/>
  9982. <param name="s1" type="int"/>
  9983. <param name="l1" type="int"/>
  9984. <param name="b2" type="byte[]"/>
  9985. <param name="s2" type="int"/>
  9986. <param name="l2" type="int"/>
  9987. </method>
  9988. <doc>
  9989. <![CDATA[A Comparator optimized for LongWritable.]]>
  9990. </doc>
  9991. </class>
  9992. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  9993. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  9994. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  9995. abstract="false"
  9996. static="true" final="false" visibility="public"
  9997. deprecated="not deprecated">
  9998. <constructor name="LongWritable.DecreasingComparator"
  9999. static="false" final="false" visibility="public"
  10000. deprecated="not deprecated">
  10001. </constructor>
  10002. <method name="compare" return="int"
  10003. abstract="false" native="false" synchronized="false"
  10004. static="false" final="false" visibility="public"
  10005. deprecated="not deprecated">
  10006. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  10007. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  10008. </method>
  10009. <method name="compare" return="int"
  10010. abstract="false" native="false" synchronized="false"
  10011. static="false" final="false" visibility="public"
  10012. deprecated="not deprecated">
  10013. <param name="b1" type="byte[]"/>
  10014. <param name="s1" type="int"/>
  10015. <param name="l1" type="int"/>
  10016. <param name="b2" type="byte[]"/>
  10017. <param name="s2" type="int"/>
  10018. <param name="l2" type="int"/>
  10019. </method>
  10020. <doc>
  10021. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  10022. </doc>
  10023. </class>
  10024. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  10025. <!-- start class org.apache.hadoop.io.MapFile -->
  10026. <class name="MapFile" extends="java.lang.Object"
  10027. abstract="false"
  10028. static="false" final="false" visibility="public"
  10029. deprecated="not deprecated">
  10030. <constructor name="MapFile"
  10031. static="false" final="false" visibility="protected"
  10032. deprecated="not deprecated">
  10033. </constructor>
  10034. <method name="rename"
  10035. abstract="false" native="false" synchronized="false"
  10036. static="true" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10039. <param name="oldName" type="java.lang.String"/>
  10040. <param name="newName" type="java.lang.String"/>
  10041. <exception name="IOException" type="java.io.IOException"/>
  10042. <doc>
  10043. <![CDATA[Renames an existing map directory.]]>
  10044. </doc>
  10045. </method>
  10046. <method name="delete"
  10047. abstract="false" native="false" synchronized="false"
  10048. static="true" final="false" visibility="public"
  10049. deprecated="not deprecated">
  10050. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10051. <param name="name" type="java.lang.String"/>
  10052. <exception name="IOException" type="java.io.IOException"/>
  10053. <doc>
  10054. <![CDATA[Deletes the named map file.]]>
  10055. </doc>
  10056. </method>
  10057. <method name="fix" return="long"
  10058. abstract="false" native="false" synchronized="false"
  10059. static="true" final="false" visibility="public"
  10060. deprecated="not deprecated">
  10061. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10062. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10063. <param name="keyClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"/>
  10064. <param name="valueClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"/>
  10065. <param name="dryrun" type="boolean"/>
  10066. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10067. <exception name="Exception" type="java.lang.Exception"/>
  10068. <doc>
  10069. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  10070. @param fs filesystem
  10071. @param dir directory containing the MapFile data and index
  10072. @param keyClass key class (has to be a subclass of Writable)
  10073. @param valueClass value class (has to be a subclass of Writable)
  10074. @param dryrun do not perform any changes, just report what needs to be done
  10075. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  10076. @throws Exception]]>
  10077. </doc>
  10078. </method>
  10079. <method name="main"
  10080. abstract="false" native="false" synchronized="false"
  10081. static="true" final="false" visibility="public"
  10082. deprecated="not deprecated">
  10083. <param name="args" type="java.lang.String[]"/>
  10084. <exception name="Exception" type="java.lang.Exception"/>
  10085. </method>
  10086. <field name="INDEX_FILE_NAME" type="java.lang.String"
  10087. transient="false" volatile="false"
  10088. static="true" final="true" visibility="public"
  10089. deprecated="not deprecated">
  10090. <doc>
  10091. <![CDATA[The name of the index file.]]>
  10092. </doc>
  10093. </field>
  10094. <field name="DATA_FILE_NAME" type="java.lang.String"
  10095. transient="false" volatile="false"
  10096. static="true" final="true" visibility="public"
  10097. deprecated="not deprecated">
  10098. <doc>
  10099. <![CDATA[The name of the data file.]]>
  10100. </doc>
  10101. </field>
  10102. <doc>
  10103. <![CDATA[A file-based map from keys to values.
  10104. <p>A map is a directory containing two files, the <code>data</code> file,
  10105. containing all keys and values in the map, and a smaller <code>index</code>
  10106. file, containing a fraction of the keys. The fraction is determined by
  10107. {@link Writer#getIndexInterval()}.
  10108. <p>The index file is read entirely into memory. Thus key implementations
  10109. should try to keep themselves small.
  10110. <p>Map files are created by adding entries in-order. To maintain a large
  10111. database, perform updates by copying the previous version of a database and
  10112. merging in a sorted change list, to create a new version of the database in
  10113. a new file. Sorting large change lists can be done with {@link
  10114. SequenceFile.Sorter}.]]>
  10115. </doc>
  10116. </class>
  10117. <!-- end class org.apache.hadoop.io.MapFile -->
  10118. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  10119. <class name="MapFile.Reader" extends="java.lang.Object"
  10120. abstract="false"
  10121. static="true" final="false" visibility="public"
  10122. deprecated="not deprecated">
  10123. <implements name="java.io.Closeable"/>
  10124. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. <exception name="IOException" type="java.io.IOException"/>
  10128. <doc>
  10129. <![CDATA[Construct a map reader for the named map.]]>
  10130. </doc>
  10131. </constructor>
  10132. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  10133. static="false" final="false" visibility="public"
  10134. deprecated="not deprecated">
  10135. <exception name="IOException" type="java.io.IOException"/>
  10136. <doc>
  10137. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  10138. </doc>
  10139. </constructor>
  10140. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  10141. static="false" final="false" visibility="protected"
  10142. deprecated="not deprecated">
  10143. <exception name="IOException" type="java.io.IOException"/>
  10144. <doc>
  10145. <![CDATA[Hook to allow subclasses to defer opening streams until further
  10146. initialization is complete.
  10147. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  10148. </doc>
  10149. </constructor>
  10150. <method name="getKeyClass" return="java.lang.Class&lt;?&gt;"
  10151. abstract="false" native="false" synchronized="false"
  10152. static="false" final="false" visibility="public"
  10153. deprecated="not deprecated">
  10154. <doc>
  10155. <![CDATA[Returns the class of keys in this file.]]>
  10156. </doc>
  10157. </method>
  10158. <method name="getValueClass" return="java.lang.Class&lt;?&gt;"
  10159. abstract="false" native="false" synchronized="false"
  10160. static="false" final="false" visibility="public"
  10161. deprecated="not deprecated">
  10162. <doc>
  10163. <![CDATA[Returns the class of values in this file.]]>
  10164. </doc>
  10165. </method>
  10166. <method name="open"
  10167. abstract="false" native="false" synchronized="true"
  10168. static="false" final="false" visibility="protected"
  10169. deprecated="not deprecated">
  10170. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10171. <param name="dirName" type="java.lang.String"/>
  10172. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  10173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10174. <exception name="IOException" type="java.io.IOException"/>
  10175. </method>
  10176. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  10177. abstract="false" native="false" synchronized="false"
  10178. static="false" final="false" visibility="protected"
  10179. deprecated="not deprecated">
  10180. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10181. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  10182. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10183. <exception name="IOException" type="java.io.IOException"/>
  10184. <doc>
  10185. <![CDATA[Override this method to specialize the type of
  10186. {@link SequenceFile.Reader} returned.]]>
  10187. </doc>
  10188. </method>
  10189. <method name="reset"
  10190. abstract="false" native="false" synchronized="true"
  10191. static="false" final="false" visibility="public"
  10192. deprecated="not deprecated">
  10193. <exception name="IOException" type="java.io.IOException"/>
  10194. <doc>
  10195. <![CDATA[Re-positions the reader before its first key.]]>
  10196. </doc>
  10197. </method>
  10198. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  10199. abstract="false" native="false" synchronized="true"
  10200. static="false" final="false" visibility="public"
  10201. deprecated="not deprecated">
  10202. <exception name="IOException" type="java.io.IOException"/>
  10203. <doc>
  10204. <![CDATA[Get the key at approximately the middle of the file.
  10205. @throws IOException]]>
  10206. </doc>
  10207. </method>
  10208. <method name="finalKey"
  10209. abstract="false" native="false" synchronized="true"
  10210. static="false" final="false" visibility="public"
  10211. deprecated="not deprecated">
  10212. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10213. <exception name="IOException" type="java.io.IOException"/>
  10214. <doc>
  10215. <![CDATA[Reads the final key from the file.
  10216. @param key key to read into]]>
  10217. </doc>
  10218. </method>
  10219. <method name="seek" return="boolean"
  10220. abstract="false" native="false" synchronized="true"
  10221. static="false" final="false" visibility="public"
  10222. deprecated="not deprecated">
  10223. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10224. <exception name="IOException" type="java.io.IOException"/>
  10225. <doc>
  10226. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  10227. first entry after the named key. Returns true iff the named key exists
  10228. in this map.]]>
  10229. </doc>
  10230. </method>
  10231. <method name="next" return="boolean"
  10232. abstract="false" native="false" synchronized="true"
  10233. static="false" final="false" visibility="public"
  10234. deprecated="not deprecated">
  10235. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10236. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10237. <exception name="IOException" type="java.io.IOException"/>
  10238. <doc>
  10239. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  10240. <code>val</code>. Returns true if such a pair exists and false when at
  10241. the end of the map]]>
  10242. </doc>
  10243. </method>
  10244. <method name="get" return="org.apache.hadoop.io.Writable"
  10245. abstract="false" native="false" synchronized="true"
  10246. static="false" final="false" visibility="public"
  10247. deprecated="not deprecated">
  10248. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10249. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10250. <exception name="IOException" type="java.io.IOException"/>
  10251. <doc>
  10252. <![CDATA[Return the value for the named key, or null if none exists.]]>
  10253. </doc>
  10254. </method>
  10255. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10256. abstract="false" native="false" synchronized="true"
  10257. static="false" final="false" visibility="public"
  10258. deprecated="not deprecated">
  10259. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10260. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10261. <exception name="IOException" type="java.io.IOException"/>
  10262. <doc>
  10263. <![CDATA[Finds the record that is the closest match to the specified key.
  10264. Returns <code>key</code> or if it does not exist, at the first entry
  10265. after the named key.
  10266. - * @param key - key that we're trying to find
  10267. - * @param val - data value if key is found
  10268. - * @return - the key that was the closest match or null if eof.]]>
  10269. </doc>
  10270. </method>
  10271. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  10272. abstract="false" native="false" synchronized="true"
  10273. static="false" final="false" visibility="public"
  10274. deprecated="not deprecated">
  10275. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10276. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10277. <param name="before" type="boolean"/>
  10278. <exception name="IOException" type="java.io.IOException"/>
  10279. <doc>
  10280. <![CDATA[Finds the record that is the closest match to the specified key.
  10281. @param key - key that we're trying to find
  10282. @param val - data value if key is found
  10283. @param before - IF true, and <code>key</code> does not exist, return
  10284. the first entry that falls just before the <code>key</code>. Otherwise,
  10285. return the record that sorts just after.
  10286. @return - the key that was the closest match or null if eof.]]>
  10287. </doc>
  10288. </method>
  10289. <method name="close"
  10290. abstract="false" native="false" synchronized="true"
  10291. static="false" final="false" visibility="public"
  10292. deprecated="not deprecated">
  10293. <exception name="IOException" type="java.io.IOException"/>
  10294. <doc>
  10295. <![CDATA[Close the map.]]>
  10296. </doc>
  10297. </method>
  10298. <doc>
  10299. <![CDATA[Provide access to an existing map.]]>
  10300. </doc>
  10301. </class>
  10302. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  10303. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  10304. <class name="MapFile.Writer" extends="java.lang.Object"
  10305. abstract="false"
  10306. static="true" final="false" visibility="public"
  10307. deprecated="not deprecated">
  10308. <implements name="java.io.Closeable"/>
  10309. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, java.lang.Class"
  10310. static="false" final="false" visibility="public"
  10311. deprecated="not deprecated">
  10312. <exception name="IOException" type="java.io.IOException"/>
  10313. <doc>
  10314. <![CDATA[Create the named map for keys of the named class.]]>
  10315. </doc>
  10316. </constructor>
  10317. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  10318. static="false" final="false" visibility="public"
  10319. deprecated="not deprecated">
  10320. <exception name="IOException" type="java.io.IOException"/>
  10321. <doc>
  10322. <![CDATA[Create the named map for keys of the named class.]]>
  10323. </doc>
  10324. </constructor>
  10325. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  10326. static="false" final="false" visibility="public"
  10327. deprecated="not deprecated">
  10328. <exception name="IOException" type="java.io.IOException"/>
  10329. <doc>
  10330. <![CDATA[Create the named map for keys of the named class.]]>
  10331. </doc>
  10332. </constructor>
  10333. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  10334. static="false" final="false" visibility="public"
  10335. deprecated="not deprecated">
  10336. <exception name="IOException" type="java.io.IOException"/>
  10337. <doc>
  10338. <![CDATA[Create the named map for keys of the named class.]]>
  10339. </doc>
  10340. </constructor>
  10341. <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"
  10342. static="false" final="false" visibility="public"
  10343. deprecated="not deprecated">
  10344. <exception name="IOException" type="java.io.IOException"/>
  10345. <doc>
  10346. <![CDATA[Create the named map using the named key comparator.]]>
  10347. </doc>
  10348. </constructor>
  10349. <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"
  10350. static="false" final="false" visibility="public"
  10351. deprecated="not deprecated">
  10352. <exception name="IOException" type="java.io.IOException"/>
  10353. <doc>
  10354. <![CDATA[Create the named map using the named key comparator.]]>
  10355. </doc>
  10356. </constructor>
  10357. <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"
  10358. static="false" final="false" visibility="public"
  10359. deprecated="not deprecated">
  10360. <exception name="IOException" type="java.io.IOException"/>
  10361. <doc>
  10362. <![CDATA[Create the named map using the named key comparator.]]>
  10363. </doc>
  10364. </constructor>
  10365. <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"
  10366. static="false" final="false" visibility="public"
  10367. deprecated="not deprecated">
  10368. <exception name="IOException" type="java.io.IOException"/>
  10369. <doc>
  10370. <![CDATA[Create the named map using the named key comparator.]]>
  10371. </doc>
  10372. </constructor>
  10373. <method name="getIndexInterval" return="int"
  10374. abstract="false" native="false" synchronized="false"
  10375. static="false" final="false" visibility="public"
  10376. deprecated="not deprecated">
  10377. <doc>
  10378. <![CDATA[The number of entries that are added before an index entry is added.]]>
  10379. </doc>
  10380. </method>
  10381. <method name="setIndexInterval"
  10382. abstract="false" native="false" synchronized="false"
  10383. static="false" final="false" visibility="public"
  10384. deprecated="not deprecated">
  10385. <param name="interval" type="int"/>
  10386. <doc>
  10387. <![CDATA[Sets the index interval.
  10388. @see #getIndexInterval()]]>
  10389. </doc>
  10390. </method>
  10391. <method name="setIndexInterval"
  10392. abstract="false" native="false" synchronized="false"
  10393. static="true" final="false" visibility="public"
  10394. deprecated="not deprecated">
  10395. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10396. <param name="interval" type="int"/>
  10397. <doc>
  10398. <![CDATA[Sets the index interval and stores it in conf
  10399. @see #getIndexInterval()]]>
  10400. </doc>
  10401. </method>
  10402. <method name="close"
  10403. abstract="false" native="false" synchronized="true"
  10404. static="false" final="false" visibility="public"
  10405. deprecated="not deprecated">
  10406. <exception name="IOException" type="java.io.IOException"/>
  10407. <doc>
  10408. <![CDATA[Close the map.]]>
  10409. </doc>
  10410. </method>
  10411. <method name="append"
  10412. abstract="false" native="false" synchronized="true"
  10413. static="false" final="false" visibility="public"
  10414. deprecated="not deprecated">
  10415. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  10416. <param name="val" type="org.apache.hadoop.io.Writable"/>
  10417. <exception name="IOException" type="java.io.IOException"/>
  10418. <doc>
  10419. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  10420. to the previous key added to the map.]]>
  10421. </doc>
  10422. </method>
  10423. <doc>
  10424. <![CDATA[Writes a new map.]]>
  10425. </doc>
  10426. </class>
  10427. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  10428. <!-- start class org.apache.hadoop.io.MapWritable -->
  10429. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  10430. abstract="false"
  10431. static="false" final="false" visibility="public"
  10432. deprecated="not deprecated">
  10433. <implements name="java.util.Map&lt;org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable&gt;"/>
  10434. <constructor name="MapWritable"
  10435. static="false" final="false" visibility="public"
  10436. deprecated="not deprecated">
  10437. <doc>
  10438. <![CDATA[Default constructor.]]>
  10439. </doc>
  10440. </constructor>
  10441. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  10442. static="false" final="false" visibility="public"
  10443. deprecated="not deprecated">
  10444. <doc>
  10445. <![CDATA[Copy constructor.
  10446. @param other the map to copy from]]>
  10447. </doc>
  10448. </constructor>
  10449. <method name="clear"
  10450. abstract="false" native="false" synchronized="false"
  10451. static="false" final="false" visibility="public"
  10452. deprecated="not deprecated">
  10453. <doc>
  10454. <![CDATA[{@inheritDoc}]]>
  10455. </doc>
  10456. </method>
  10457. <method name="containsKey" return="boolean"
  10458. abstract="false" native="false" synchronized="false"
  10459. static="false" final="false" visibility="public"
  10460. deprecated="not deprecated">
  10461. <param name="key" type="java.lang.Object"/>
  10462. <doc>
  10463. <![CDATA[{@inheritDoc}]]>
  10464. </doc>
  10465. </method>
  10466. <method name="containsValue" return="boolean"
  10467. abstract="false" native="false" synchronized="false"
  10468. static="false" final="false" visibility="public"
  10469. deprecated="not deprecated">
  10470. <param name="value" type="java.lang.Object"/>
  10471. <doc>
  10472. <![CDATA[{@inheritDoc}]]>
  10473. </doc>
  10474. </method>
  10475. <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;"
  10476. abstract="false" native="false" synchronized="false"
  10477. static="false" final="false" visibility="public"
  10478. deprecated="not deprecated">
  10479. <doc>
  10480. <![CDATA[{@inheritDoc}]]>
  10481. </doc>
  10482. </method>
  10483. <method name="get" return="org.apache.hadoop.io.Writable"
  10484. abstract="false" native="false" synchronized="false"
  10485. static="false" final="false" visibility="public"
  10486. deprecated="not deprecated">
  10487. <param name="key" type="java.lang.Object"/>
  10488. <doc>
  10489. <![CDATA[{@inheritDoc}]]>
  10490. </doc>
  10491. </method>
  10492. <method name="isEmpty" return="boolean"
  10493. abstract="false" native="false" synchronized="false"
  10494. static="false" final="false" visibility="public"
  10495. deprecated="not deprecated">
  10496. <doc>
  10497. <![CDATA[{@inheritDoc}]]>
  10498. </doc>
  10499. </method>
  10500. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.Writable&gt;"
  10501. abstract="false" native="false" synchronized="false"
  10502. static="false" final="false" visibility="public"
  10503. deprecated="not deprecated">
  10504. <doc>
  10505. <![CDATA[{@inheritDoc}]]>
  10506. </doc>
  10507. </method>
  10508. <method name="put" return="org.apache.hadoop.io.Writable"
  10509. abstract="false" native="false" synchronized="false"
  10510. static="false" final="false" visibility="public"
  10511. deprecated="not deprecated">
  10512. <param name="key" type="org.apache.hadoop.io.Writable"/>
  10513. <param name="value" type="org.apache.hadoop.io.Writable"/>
  10514. <doc>
  10515. <![CDATA[{@inheritDoc}]]>
  10516. </doc>
  10517. </method>
  10518. <method name="putAll"
  10519. abstract="false" native="false" synchronized="false"
  10520. static="false" final="false" visibility="public"
  10521. deprecated="not deprecated">
  10522. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.Writable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  10523. <doc>
  10524. <![CDATA[{@inheritDoc}]]>
  10525. </doc>
  10526. </method>
  10527. <method name="remove" return="org.apache.hadoop.io.Writable"
  10528. abstract="false" native="false" synchronized="false"
  10529. static="false" final="false" visibility="public"
  10530. deprecated="not deprecated">
  10531. <param name="key" type="java.lang.Object"/>
  10532. <doc>
  10533. <![CDATA[{@inheritDoc}]]>
  10534. </doc>
  10535. </method>
  10536. <method name="size" return="int"
  10537. abstract="false" native="false" synchronized="false"
  10538. static="false" final="false" visibility="public"
  10539. deprecated="not deprecated">
  10540. <doc>
  10541. <![CDATA[{@inheritDoc}]]>
  10542. </doc>
  10543. </method>
  10544. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  10545. abstract="false" native="false" synchronized="false"
  10546. static="false" final="false" visibility="public"
  10547. deprecated="not deprecated">
  10548. <doc>
  10549. <![CDATA[{@inheritDoc}]]>
  10550. </doc>
  10551. </method>
  10552. <method name="write"
  10553. abstract="false" native="false" synchronized="false"
  10554. static="false" final="false" visibility="public"
  10555. deprecated="not deprecated">
  10556. <param name="out" type="java.io.DataOutput"/>
  10557. <exception name="IOException" type="java.io.IOException"/>
  10558. <doc>
  10559. <![CDATA[{@inheritDoc}]]>
  10560. </doc>
  10561. </method>
  10562. <method name="readFields"
  10563. abstract="false" native="false" synchronized="false"
  10564. static="false" final="false" visibility="public"
  10565. deprecated="not deprecated">
  10566. <param name="in" type="java.io.DataInput"/>
  10567. <exception name="IOException" type="java.io.IOException"/>
  10568. <doc>
  10569. <![CDATA[{@inheritDoc}]]>
  10570. </doc>
  10571. </method>
  10572. <doc>
  10573. <![CDATA[A Writable Map.]]>
  10574. </doc>
  10575. </class>
  10576. <!-- end class org.apache.hadoop.io.MapWritable -->
  10577. <!-- start class org.apache.hadoop.io.MD5Hash -->
  10578. <class name="MD5Hash" extends="java.lang.Object"
  10579. abstract="false"
  10580. static="false" final="false" visibility="public"
  10581. deprecated="not deprecated">
  10582. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.io.MD5Hash&gt;"/>
  10583. <constructor name="MD5Hash"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="not deprecated">
  10586. <doc>
  10587. <![CDATA[Constructs an MD5Hash.]]>
  10588. </doc>
  10589. </constructor>
  10590. <constructor name="MD5Hash" type="java.lang.String"
  10591. static="false" final="false" visibility="public"
  10592. deprecated="not deprecated">
  10593. <doc>
  10594. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  10595. </doc>
  10596. </constructor>
  10597. <constructor name="MD5Hash" type="byte[]"
  10598. static="false" final="false" visibility="public"
  10599. deprecated="not deprecated">
  10600. <doc>
  10601. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  10602. </doc>
  10603. </constructor>
  10604. <method name="readFields"
  10605. abstract="false" native="false" synchronized="false"
  10606. static="false" final="false" visibility="public"
  10607. deprecated="not deprecated">
  10608. <param name="in" type="java.io.DataInput"/>
  10609. <exception name="IOException" type="java.io.IOException"/>
  10610. </method>
  10611. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  10612. abstract="false" native="false" synchronized="false"
  10613. static="true" final="false" visibility="public"
  10614. deprecated="not deprecated">
  10615. <param name="in" type="java.io.DataInput"/>
  10616. <exception name="IOException" type="java.io.IOException"/>
  10617. <doc>
  10618. <![CDATA[Constructs, reads and returns an instance.]]>
  10619. </doc>
  10620. </method>
  10621. <method name="write"
  10622. abstract="false" native="false" synchronized="false"
  10623. static="false" final="false" visibility="public"
  10624. deprecated="not deprecated">
  10625. <param name="out" type="java.io.DataOutput"/>
  10626. <exception name="IOException" type="java.io.IOException"/>
  10627. </method>
  10628. <method name="set"
  10629. abstract="false" native="false" synchronized="false"
  10630. static="false" final="false" visibility="public"
  10631. deprecated="not deprecated">
  10632. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  10633. <doc>
  10634. <![CDATA[Copy the contents of another instance into this instance.]]>
  10635. </doc>
  10636. </method>
  10637. <method name="getDigest" return="byte[]"
  10638. abstract="false" native="false" synchronized="false"
  10639. static="false" final="false" visibility="public"
  10640. deprecated="not deprecated">
  10641. <doc>
  10642. <![CDATA[Returns the digest bytes.]]>
  10643. </doc>
  10644. </method>
  10645. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  10646. abstract="false" native="false" synchronized="false"
  10647. static="true" final="false" visibility="public"
  10648. deprecated="not deprecated">
  10649. <param name="data" type="byte[]"/>
  10650. <doc>
  10651. <![CDATA[Construct a hash value for a byte array.]]>
  10652. </doc>
  10653. </method>
  10654. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  10655. abstract="false" native="false" synchronized="false"
  10656. static="true" final="false" visibility="public"
  10657. deprecated="not deprecated">
  10658. <param name="in" type="java.io.InputStream"/>
  10659. <exception name="IOException" type="java.io.IOException"/>
  10660. <doc>
  10661. <![CDATA[Construct a hash value for the content from the InputStream.]]>
  10662. </doc>
  10663. </method>
  10664. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  10665. abstract="false" native="false" synchronized="false"
  10666. static="true" final="false" visibility="public"
  10667. deprecated="not deprecated">
  10668. <param name="data" type="byte[]"/>
  10669. <param name="start" type="int"/>
  10670. <param name="len" type="int"/>
  10671. <doc>
  10672. <![CDATA[Construct a hash value for a byte array.]]>
  10673. </doc>
  10674. </method>
  10675. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  10676. abstract="false" native="false" synchronized="false"
  10677. static="true" final="false" visibility="public"
  10678. deprecated="not deprecated">
  10679. <param name="string" type="java.lang.String"/>
  10680. <doc>
  10681. <![CDATA[Construct a hash value for a String.]]>
  10682. </doc>
  10683. </method>
  10684. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  10685. abstract="false" native="false" synchronized="false"
  10686. static="true" final="false" visibility="public"
  10687. deprecated="not deprecated">
  10688. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  10689. <doc>
  10690. <![CDATA[Construct a hash value for a String.]]>
  10691. </doc>
  10692. </method>
  10693. <method name="halfDigest" return="long"
  10694. abstract="false" native="false" synchronized="false"
  10695. static="false" final="false" visibility="public"
  10696. deprecated="not deprecated">
  10697. <doc>
  10698. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  10699. </doc>
  10700. </method>
  10701. <method name="quarterDigest" return="int"
  10702. abstract="false" native="false" synchronized="false"
  10703. static="false" final="false" visibility="public"
  10704. deprecated="not deprecated">
  10705. <doc>
  10706. <![CDATA[Return a 32-bit digest of the MD5.
  10707. @return the first 4 bytes of the md5]]>
  10708. </doc>
  10709. </method>
  10710. <method name="equals" return="boolean"
  10711. abstract="false" native="false" synchronized="false"
  10712. static="false" final="false" visibility="public"
  10713. deprecated="not deprecated">
  10714. <param name="o" type="java.lang.Object"/>
  10715. <doc>
  10716. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  10717. same values.]]>
  10718. </doc>
  10719. </method>
  10720. <method name="hashCode" return="int"
  10721. abstract="false" native="false" synchronized="false"
  10722. static="false" final="false" visibility="public"
  10723. deprecated="not deprecated">
  10724. <doc>
  10725. <![CDATA[Returns a hash code value for this object.
  10726. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  10727. </doc>
  10728. </method>
  10729. <method name="compareTo" return="int"
  10730. abstract="false" native="false" synchronized="false"
  10731. static="false" final="false" visibility="public"
  10732. deprecated="not deprecated">
  10733. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  10734. <doc>
  10735. <![CDATA[Compares this object with the specified object for order.]]>
  10736. </doc>
  10737. </method>
  10738. <method name="toString" return="java.lang.String"
  10739. abstract="false" native="false" synchronized="false"
  10740. static="false" final="false" visibility="public"
  10741. deprecated="not deprecated">
  10742. <doc>
  10743. <![CDATA[Returns a string representation of this object.]]>
  10744. </doc>
  10745. </method>
  10746. <method name="setDigest"
  10747. abstract="false" native="false" synchronized="false"
  10748. static="false" final="false" visibility="public"
  10749. deprecated="not deprecated">
  10750. <param name="hex" type="java.lang.String"/>
  10751. <doc>
  10752. <![CDATA[Sets the digest value from a hex string.]]>
  10753. </doc>
  10754. </method>
  10755. <field name="MD5_LEN" type="int"
  10756. transient="false" volatile="false"
  10757. static="true" final="true" visibility="public"
  10758. deprecated="not deprecated">
  10759. </field>
  10760. <doc>
  10761. <![CDATA[A Writable for MD5 hash values.]]>
  10762. </doc>
  10763. </class>
  10764. <!-- end class org.apache.hadoop.io.MD5Hash -->
  10765. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  10766. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10767. abstract="false"
  10768. static="true" final="false" visibility="public"
  10769. deprecated="not deprecated">
  10770. <constructor name="MD5Hash.Comparator"
  10771. static="false" final="false" visibility="public"
  10772. deprecated="not deprecated">
  10773. </constructor>
  10774. <method name="compare" return="int"
  10775. abstract="false" native="false" synchronized="false"
  10776. static="false" final="false" visibility="public"
  10777. deprecated="not deprecated">
  10778. <param name="b1" type="byte[]"/>
  10779. <param name="s1" type="int"/>
  10780. <param name="l1" type="int"/>
  10781. <param name="b2" type="byte[]"/>
  10782. <param name="s2" type="int"/>
  10783. <param name="l2" type="int"/>
  10784. </method>
  10785. <doc>
  10786. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  10787. </doc>
  10788. </class>
  10789. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  10790. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  10791. <class name="MultipleIOException" extends="java.io.IOException"
  10792. abstract="false"
  10793. static="false" final="false" visibility="public"
  10794. deprecated="not deprecated">
  10795. <method name="getExceptions" return="java.util.List&lt;java.io.IOException&gt;"
  10796. abstract="false" native="false" synchronized="false"
  10797. static="false" final="false" visibility="public"
  10798. deprecated="not deprecated">
  10799. <doc>
  10800. <![CDATA[@return the underlying exceptions]]>
  10801. </doc>
  10802. </method>
  10803. <method name="createIOException" return="java.io.IOException"
  10804. abstract="false" native="false" synchronized="false"
  10805. static="true" final="false" visibility="public"
  10806. deprecated="not deprecated">
  10807. <param name="exceptions" type="java.util.List&lt;java.io.IOException&gt;"/>
  10808. <doc>
  10809. <![CDATA[A convenient method to create an {@link IOException}.]]>
  10810. </doc>
  10811. </method>
  10812. <doc>
  10813. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  10814. </doc>
  10815. </class>
  10816. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  10817. <!-- start class org.apache.hadoop.io.NullWritable -->
  10818. <class name="NullWritable" extends="java.lang.Object"
  10819. abstract="false"
  10820. static="false" final="false" visibility="public"
  10821. deprecated="not deprecated">
  10822. <implements name="org.apache.hadoop.io.WritableComparable"/>
  10823. <method name="get" return="org.apache.hadoop.io.NullWritable"
  10824. abstract="false" native="false" synchronized="false"
  10825. static="true" final="false" visibility="public"
  10826. deprecated="not deprecated">
  10827. <doc>
  10828. <![CDATA[Returns the single instance of this class.]]>
  10829. </doc>
  10830. </method>
  10831. <method name="toString" return="java.lang.String"
  10832. abstract="false" native="false" synchronized="false"
  10833. static="false" final="false" visibility="public"
  10834. deprecated="not deprecated">
  10835. </method>
  10836. <method name="hashCode" return="int"
  10837. abstract="false" native="false" synchronized="false"
  10838. static="false" final="false" visibility="public"
  10839. deprecated="not deprecated">
  10840. </method>
  10841. <method name="compareTo" return="int"
  10842. abstract="false" native="false" synchronized="false"
  10843. static="false" final="false" visibility="public"
  10844. deprecated="not deprecated">
  10845. <param name="other" type="java.lang.Object"/>
  10846. </method>
  10847. <method name="equals" return="boolean"
  10848. abstract="false" native="false" synchronized="false"
  10849. static="false" final="false" visibility="public"
  10850. deprecated="not deprecated">
  10851. <param name="other" type="java.lang.Object"/>
  10852. </method>
  10853. <method name="readFields"
  10854. abstract="false" native="false" synchronized="false"
  10855. static="false" final="false" visibility="public"
  10856. deprecated="not deprecated">
  10857. <param name="in" type="java.io.DataInput"/>
  10858. <exception name="IOException" type="java.io.IOException"/>
  10859. </method>
  10860. <method name="write"
  10861. abstract="false" native="false" synchronized="false"
  10862. static="false" final="false" visibility="public"
  10863. deprecated="not deprecated">
  10864. <param name="out" type="java.io.DataOutput"/>
  10865. <exception name="IOException" type="java.io.IOException"/>
  10866. </method>
  10867. <doc>
  10868. <![CDATA[Singleton Writable with no data.]]>
  10869. </doc>
  10870. </class>
  10871. <!-- end class org.apache.hadoop.io.NullWritable -->
  10872. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  10873. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  10874. abstract="false"
  10875. static="true" final="false" visibility="public"
  10876. deprecated="not deprecated">
  10877. <constructor name="NullWritable.Comparator"
  10878. static="false" final="false" visibility="public"
  10879. deprecated="not deprecated">
  10880. </constructor>
  10881. <method name="compare" return="int"
  10882. abstract="false" native="false" synchronized="false"
  10883. static="false" final="false" visibility="public"
  10884. deprecated="not deprecated">
  10885. <param name="b1" type="byte[]"/>
  10886. <param name="s1" type="int"/>
  10887. <param name="l1" type="int"/>
  10888. <param name="b2" type="byte[]"/>
  10889. <param name="s2" type="int"/>
  10890. <param name="l2" type="int"/>
  10891. <doc>
  10892. <![CDATA[Compare the buffers in serialized form.]]>
  10893. </doc>
  10894. </method>
  10895. <doc>
  10896. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  10897. </doc>
  10898. </class>
  10899. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  10900. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  10901. <class name="ObjectWritable" extends="java.lang.Object"
  10902. abstract="false"
  10903. static="false" final="false" visibility="public"
  10904. deprecated="not deprecated">
  10905. <implements name="org.apache.hadoop.io.Writable"/>
  10906. <implements name="org.apache.hadoop.conf.Configurable"/>
  10907. <constructor name="ObjectWritable"
  10908. static="false" final="false" visibility="public"
  10909. deprecated="not deprecated">
  10910. </constructor>
  10911. <constructor name="ObjectWritable" type="java.lang.Object"
  10912. static="false" final="false" visibility="public"
  10913. deprecated="not deprecated">
  10914. </constructor>
  10915. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  10916. static="false" final="false" visibility="public"
  10917. deprecated="not deprecated">
  10918. </constructor>
  10919. <method name="get" return="java.lang.Object"
  10920. abstract="false" native="false" synchronized="false"
  10921. static="false" final="false" visibility="public"
  10922. deprecated="not deprecated">
  10923. <doc>
  10924. <![CDATA[Return the instance, or null if none.]]>
  10925. </doc>
  10926. </method>
  10927. <method name="getDeclaredClass" return="java.lang.Class"
  10928. abstract="false" native="false" synchronized="false"
  10929. static="false" final="false" visibility="public"
  10930. deprecated="not deprecated">
  10931. <doc>
  10932. <![CDATA[Return the class this is meant to be.]]>
  10933. </doc>
  10934. </method>
  10935. <method name="set"
  10936. abstract="false" native="false" synchronized="false"
  10937. static="false" final="false" visibility="public"
  10938. deprecated="not deprecated">
  10939. <param name="instance" type="java.lang.Object"/>
  10940. <doc>
  10941. <![CDATA[Reset the instance.]]>
  10942. </doc>
  10943. </method>
  10944. <method name="toString" return="java.lang.String"
  10945. abstract="false" native="false" synchronized="false"
  10946. static="false" final="false" visibility="public"
  10947. deprecated="not deprecated">
  10948. </method>
  10949. <method name="readFields"
  10950. abstract="false" native="false" synchronized="false"
  10951. static="false" final="false" visibility="public"
  10952. deprecated="not deprecated">
  10953. <param name="in" type="java.io.DataInput"/>
  10954. <exception name="IOException" type="java.io.IOException"/>
  10955. </method>
  10956. <method name="write"
  10957. abstract="false" native="false" synchronized="false"
  10958. static="false" final="false" visibility="public"
  10959. deprecated="not deprecated">
  10960. <param name="out" type="java.io.DataOutput"/>
  10961. <exception name="IOException" type="java.io.IOException"/>
  10962. </method>
  10963. <method name="writeObject"
  10964. abstract="false" native="false" synchronized="false"
  10965. static="true" final="false" visibility="public"
  10966. deprecated="not deprecated">
  10967. <param name="out" type="java.io.DataOutput"/>
  10968. <param name="instance" type="java.lang.Object"/>
  10969. <param name="declaredClass" type="java.lang.Class"/>
  10970. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10971. <exception name="IOException" type="java.io.IOException"/>
  10972. <doc>
  10973. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  10974. the preceding.]]>
  10975. </doc>
  10976. </method>
  10977. <method name="readObject" return="java.lang.Object"
  10978. abstract="false" native="false" synchronized="false"
  10979. static="true" final="false" visibility="public"
  10980. deprecated="not deprecated">
  10981. <param name="in" type="java.io.DataInput"/>
  10982. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10983. <exception name="IOException" type="java.io.IOException"/>
  10984. <doc>
  10985. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  10986. the preceding.]]>
  10987. </doc>
  10988. </method>
  10989. <method name="readObject" return="java.lang.Object"
  10990. abstract="false" native="false" synchronized="false"
  10991. static="true" final="false" visibility="public"
  10992. deprecated="not deprecated">
  10993. <param name="in" type="java.io.DataInput"/>
  10994. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  10995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10996. <exception name="IOException" type="java.io.IOException"/>
  10997. <doc>
  10998. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  10999. the preceding.]]>
  11000. </doc>
  11001. </method>
  11002. <method name="setConf"
  11003. abstract="false" native="false" synchronized="false"
  11004. static="false" final="false" visibility="public"
  11005. deprecated="not deprecated">
  11006. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11007. </method>
  11008. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  11009. abstract="false" native="false" synchronized="false"
  11010. static="false" final="false" visibility="public"
  11011. deprecated="not deprecated">
  11012. </method>
  11013. <doc>
  11014. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  11015. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  11016. </doc>
  11017. </class>
  11018. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  11019. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  11020. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  11021. abstract="false"
  11022. static="false" final="false" visibility="public"
  11023. deprecated="not deprecated">
  11024. <constructor name="OutputBuffer"
  11025. static="false" final="false" visibility="public"
  11026. deprecated="not deprecated">
  11027. <doc>
  11028. <![CDATA[Constructs a new empty buffer.]]>
  11029. </doc>
  11030. </constructor>
  11031. <method name="getData" return="byte[]"
  11032. abstract="false" native="false" synchronized="false"
  11033. static="false" final="false" visibility="public"
  11034. deprecated="not deprecated">
  11035. <doc>
  11036. <![CDATA[Returns the current contents of the buffer.
  11037. Data is only valid to {@link #getLength()}.]]>
  11038. </doc>
  11039. </method>
  11040. <method name="getLength" return="int"
  11041. abstract="false" native="false" synchronized="false"
  11042. static="false" final="false" visibility="public"
  11043. deprecated="not deprecated">
  11044. <doc>
  11045. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  11046. </doc>
  11047. </method>
  11048. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  11049. abstract="false" native="false" synchronized="false"
  11050. static="false" final="false" visibility="public"
  11051. deprecated="not deprecated">
  11052. <doc>
  11053. <![CDATA[Resets the buffer to empty.]]>
  11054. </doc>
  11055. </method>
  11056. <method name="write"
  11057. abstract="false" native="false" synchronized="false"
  11058. static="false" final="false" visibility="public"
  11059. deprecated="not deprecated">
  11060. <param name="in" type="java.io.InputStream"/>
  11061. <param name="length" type="int"/>
  11062. <exception name="IOException" type="java.io.IOException"/>
  11063. <doc>
  11064. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  11065. </doc>
  11066. </method>
  11067. <doc>
  11068. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  11069. buffer.
  11070. <p>This saves memory over creating a new OutputStream and
  11071. ByteArrayOutputStream each time data is written.
  11072. <p>Typical usage is something like the following:<pre>
  11073. OutputBuffer buffer = new OutputBuffer();
  11074. while (... loop condition ...) {
  11075. buffer.reset();
  11076. ... write buffer using OutputStream methods ...
  11077. byte[] data = buffer.getData();
  11078. int dataLength = buffer.getLength();
  11079. ... write data to its ultimate destination ...
  11080. }
  11081. </pre>
  11082. @see DataOutputBuffer
  11083. @see InputBuffer]]>
  11084. </doc>
  11085. </class>
  11086. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  11087. <!-- start interface org.apache.hadoop.io.RawComparator -->
  11088. <interface name="RawComparator" abstract="true"
  11089. static="false" final="false" visibility="public"
  11090. deprecated="not deprecated">
  11091. <implements name="java.util.Comparator&lt;T&gt;"/>
  11092. <method name="compare" return="int"
  11093. abstract="false" native="false" synchronized="false"
  11094. static="false" final="false" visibility="public"
  11095. deprecated="not deprecated">
  11096. <param name="b1" type="byte[]"/>
  11097. <param name="s1" type="int"/>
  11098. <param name="l1" type="int"/>
  11099. <param name="b2" type="byte[]"/>
  11100. <param name="s2" type="int"/>
  11101. <param name="l2" type="int"/>
  11102. </method>
  11103. <doc>
  11104. <![CDATA[<p>
  11105. A {@link Comparator} that operates directly on byte representations of
  11106. objects.
  11107. </p>
  11108. @param <T>
  11109. @see DeserializerComparator]]>
  11110. </doc>
  11111. </interface>
  11112. <!-- end interface org.apache.hadoop.io.RawComparator -->
  11113. <!-- start class org.apache.hadoop.io.SequenceFile -->
  11114. <class name="SequenceFile" extends="java.lang.Object"
  11115. abstract="false"
  11116. static="false" final="false" visibility="public"
  11117. deprecated="not deprecated">
  11118. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11119. abstract="false" native="false" synchronized="false"
  11120. static="true" final="false" visibility="public"
  11121. deprecated="Use
  11122. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11123. to get {@link CompressionType} for job-outputs.">
  11124. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11125. <doc>
  11126. <![CDATA[Get the compression type for the reduce outputs
  11127. @param job the job config to look in
  11128. @return the kind of compression to use
  11129. @deprecated Use
  11130. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  11131. to get {@link CompressionType} for job-outputs.]]>
  11132. </doc>
  11133. </method>
  11134. <method name="setCompressionType"
  11135. abstract="false" native="false" synchronized="false"
  11136. static="true" final="false" visibility="public"
  11137. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  11138. the {@link CompressionType} while creating the {@link SequenceFile} or
  11139. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11140. to specify the {@link CompressionType} for job-outputs.
  11141. or">
  11142. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  11143. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11144. <doc>
  11145. <![CDATA[Set the compression type for sequence files.
  11146. @param job the configuration to modify
  11147. @param val the new compression type (none, block, record)
  11148. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  11149. the {@link CompressionType} while creating the {@link SequenceFile} or
  11150. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  11151. to specify the {@link CompressionType} for job-outputs.
  11152. or]]>
  11153. </doc>
  11154. </method>
  11155. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11156. abstract="false" native="false" synchronized="false"
  11157. static="true" final="false" visibility="public"
  11158. deprecated="not deprecated">
  11159. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11160. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11161. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11162. <param name="keyClass" type="java.lang.Class"/>
  11163. <param name="valClass" type="java.lang.Class"/>
  11164. <exception name="IOException" type="java.io.IOException"/>
  11165. <doc>
  11166. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11167. @param fs The configured filesystem.
  11168. @param conf The configuration.
  11169. @param name The name of the file.
  11170. @param keyClass The 'key' type.
  11171. @param valClass The 'value' type.
  11172. @return Returns the handle to the constructed SequenceFile Writer.
  11173. @throws IOException]]>
  11174. </doc>
  11175. </method>
  11176. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11177. abstract="false" native="false" synchronized="false"
  11178. static="true" final="false" visibility="public"
  11179. deprecated="not deprecated">
  11180. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11182. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11183. <param name="keyClass" type="java.lang.Class"/>
  11184. <param name="valClass" type="java.lang.Class"/>
  11185. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11186. <exception name="IOException" type="java.io.IOException"/>
  11187. <doc>
  11188. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11189. @param fs The configured filesystem.
  11190. @param conf The configuration.
  11191. @param name The name of the file.
  11192. @param keyClass The 'key' type.
  11193. @param valClass The 'value' type.
  11194. @param compressionType The compression type.
  11195. @return Returns the handle to the constructed SequenceFile Writer.
  11196. @throws IOException]]>
  11197. </doc>
  11198. </method>
  11199. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11200. abstract="false" native="false" synchronized="false"
  11201. static="true" final="false" visibility="public"
  11202. deprecated="not deprecated">
  11203. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11204. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11205. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11206. <param name="keyClass" type="java.lang.Class"/>
  11207. <param name="valClass" type="java.lang.Class"/>
  11208. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11209. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11210. <exception name="IOException" type="java.io.IOException"/>
  11211. <doc>
  11212. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11213. @param fs The configured filesystem.
  11214. @param conf The configuration.
  11215. @param name The name of the file.
  11216. @param keyClass The 'key' type.
  11217. @param valClass The 'value' type.
  11218. @param compressionType The compression type.
  11219. @param progress The Progressable object to track progress.
  11220. @return Returns the handle to the constructed SequenceFile Writer.
  11221. @throws IOException]]>
  11222. </doc>
  11223. </method>
  11224. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11225. abstract="false" native="false" synchronized="false"
  11226. static="true" final="false" visibility="public"
  11227. deprecated="not deprecated">
  11228. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11229. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11230. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11231. <param name="keyClass" type="java.lang.Class"/>
  11232. <param name="valClass" type="java.lang.Class"/>
  11233. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11234. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11235. <exception name="IOException" type="java.io.IOException"/>
  11236. <doc>
  11237. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11238. @param fs The configured filesystem.
  11239. @param conf The configuration.
  11240. @param name The name of the file.
  11241. @param keyClass The 'key' type.
  11242. @param valClass The 'value' type.
  11243. @param compressionType The compression type.
  11244. @param codec The compression codec.
  11245. @return Returns the handle to the constructed SequenceFile Writer.
  11246. @throws IOException]]>
  11247. </doc>
  11248. </method>
  11249. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11250. abstract="false" native="false" synchronized="false"
  11251. static="true" final="false" visibility="public"
  11252. deprecated="not deprecated">
  11253. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11254. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11255. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11256. <param name="keyClass" type="java.lang.Class"/>
  11257. <param name="valClass" type="java.lang.Class"/>
  11258. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11259. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11260. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11261. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11262. <exception name="IOException" type="java.io.IOException"/>
  11263. <doc>
  11264. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11265. @param fs The configured filesystem.
  11266. @param conf The configuration.
  11267. @param name The name of the file.
  11268. @param keyClass The 'key' type.
  11269. @param valClass The 'value' type.
  11270. @param compressionType The compression type.
  11271. @param codec The compression codec.
  11272. @param progress The Progressable object to track progress.
  11273. @param metadata The metadata of the file.
  11274. @return Returns the handle to the constructed SequenceFile Writer.
  11275. @throws IOException]]>
  11276. </doc>
  11277. </method>
  11278. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11279. abstract="false" native="false" synchronized="false"
  11280. static="true" final="false" visibility="public"
  11281. deprecated="not deprecated">
  11282. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11283. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11284. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11285. <param name="keyClass" type="java.lang.Class"/>
  11286. <param name="valClass" type="java.lang.Class"/>
  11287. <param name="bufferSize" type="int"/>
  11288. <param name="replication" type="short"/>
  11289. <param name="blockSize" type="long"/>
  11290. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11291. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11292. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11293. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11294. <exception name="IOException" type="java.io.IOException"/>
  11295. <doc>
  11296. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11297. @param fs The configured filesystem.
  11298. @param conf The configuration.
  11299. @param name The name of the file.
  11300. @param keyClass The 'key' type.
  11301. @param valClass The 'value' type.
  11302. @param bufferSize buffer size for the underlaying outputstream.
  11303. @param replication replication factor for the file.
  11304. @param blockSize block size for the file.
  11305. @param compressionType The compression type.
  11306. @param codec The compression codec.
  11307. @param progress The Progressable object to track progress.
  11308. @param metadata The metadata of the file.
  11309. @return Returns the handle to the constructed SequenceFile Writer.
  11310. @throws IOException]]>
  11311. </doc>
  11312. </method>
  11313. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11314. abstract="false" native="false" synchronized="false"
  11315. static="true" final="false" visibility="public"
  11316. deprecated="not deprecated">
  11317. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11319. <param name="name" type="org.apache.hadoop.fs.Path"/>
  11320. <param name="keyClass" type="java.lang.Class"/>
  11321. <param name="valClass" type="java.lang.Class"/>
  11322. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11323. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11324. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11325. <exception name="IOException" type="java.io.IOException"/>
  11326. <doc>
  11327. <![CDATA[Construct the preferred type of SequenceFile Writer.
  11328. @param fs The configured filesystem.
  11329. @param conf The configuration.
  11330. @param name The name of the file.
  11331. @param keyClass The 'key' type.
  11332. @param valClass The 'value' type.
  11333. @param compressionType The compression type.
  11334. @param codec The compression codec.
  11335. @param progress The Progressable object to track progress.
  11336. @return Returns the handle to the constructed SequenceFile Writer.
  11337. @throws IOException]]>
  11338. </doc>
  11339. </method>
  11340. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11341. abstract="false" native="false" synchronized="false"
  11342. static="true" final="false" visibility="public"
  11343. deprecated="not deprecated">
  11344. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11345. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11346. <param name="keyClass" type="java.lang.Class"/>
  11347. <param name="valClass" type="java.lang.Class"/>
  11348. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11349. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11350. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11351. <exception name="IOException" type="java.io.IOException"/>
  11352. <doc>
  11353. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11354. @param conf The configuration.
  11355. @param out The stream on top which the writer is to be constructed.
  11356. @param keyClass The 'key' type.
  11357. @param valClass The 'value' type.
  11358. @param compressionType The compression type.
  11359. @param codec The compression codec.
  11360. @param metadata The metadata of the file.
  11361. @return Returns the handle to the constructed SequenceFile Writer.
  11362. @throws IOException]]>
  11363. </doc>
  11364. </method>
  11365. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  11366. abstract="false" native="false" synchronized="false"
  11367. static="true" final="false" visibility="public"
  11368. deprecated="not deprecated">
  11369. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11370. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  11371. <param name="keyClass" type="java.lang.Class"/>
  11372. <param name="valClass" type="java.lang.Class"/>
  11373. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  11374. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  11375. <exception name="IOException" type="java.io.IOException"/>
  11376. <doc>
  11377. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  11378. @param conf The configuration.
  11379. @param out The stream on top which the writer is to be constructed.
  11380. @param keyClass The 'key' type.
  11381. @param valClass The 'value' type.
  11382. @param compressionType The compression type.
  11383. @param codec The compression codec.
  11384. @return Returns the handle to the constructed SequenceFile Writer.
  11385. @throws IOException]]>
  11386. </doc>
  11387. </method>
  11388. <field name="SYNC_INTERVAL" type="int"
  11389. transient="false" volatile="false"
  11390. static="true" final="true" visibility="public"
  11391. deprecated="not deprecated">
  11392. <doc>
  11393. <![CDATA[The number of bytes between sync points.]]>
  11394. </doc>
  11395. </field>
  11396. <doc>
  11397. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  11398. pairs.
  11399. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  11400. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  11401. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  11402. {@link CompressionType} used to compress key/value pairs:
  11403. <ol>
  11404. <li>
  11405. <code>Writer</code> : Uncompressed records.
  11406. </li>
  11407. <li>
  11408. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  11409. values.
  11410. </li>
  11411. <li>
  11412. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  11413. values are collected in 'blocks'
  11414. separately and compressed. The size of
  11415. the 'block' is configurable.
  11416. </ol>
  11417. <p>The actual compression algorithm used to compress key and/or values can be
  11418. specified by using the appropriate {@link CompressionCodec}.</p>
  11419. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  11420. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  11421. <p>The {@link Reader} acts as the bridge and can read any of the above
  11422. <code>SequenceFile</code> formats.</p>
  11423. <h4 id="Formats">SequenceFile Formats</h4>
  11424. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  11425. depending on the <code>CompressionType</code> specified. All of them share a
  11426. <a href="#Header">common header</a> described below.
  11427. <h5 id="Header">SequenceFile Header</h5>
  11428. <ul>
  11429. <li>
  11430. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  11431. version number (e.g. SEQ4 or SEQ6)
  11432. </li>
  11433. <li>
  11434. keyClassName -key class
  11435. </li>
  11436. <li>
  11437. valueClassName - value class
  11438. </li>
  11439. <li>
  11440. compression - A boolean which specifies if compression is turned on for
  11441. keys/values in this file.
  11442. </li>
  11443. <li>
  11444. blockCompression - A boolean which specifies if block-compression is
  11445. turned on for keys/values in this file.
  11446. </li>
  11447. <li>
  11448. compression codec - <code>CompressionCodec</code> class which is used for
  11449. compression of keys and/or values (if compression is
  11450. enabled).
  11451. </li>
  11452. <li>
  11453. metadata - {@link Metadata} for this file.
  11454. </li>
  11455. <li>
  11456. sync - A sync marker to denote end of the header.
  11457. </li>
  11458. </ul>
  11459. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  11460. <ul>
  11461. <li>
  11462. <a href="#Header">Header</a>
  11463. </li>
  11464. <li>
  11465. Record
  11466. <ul>
  11467. <li>Record length</li>
  11468. <li>Key length</li>
  11469. <li>Key</li>
  11470. <li>Value</li>
  11471. </ul>
  11472. </li>
  11473. <li>
  11474. A sync-marker every few <code>100</code> bytes or so.
  11475. </li>
  11476. </ul>
  11477. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  11478. <ul>
  11479. <li>
  11480. <a href="#Header">Header</a>
  11481. </li>
  11482. <li>
  11483. Record
  11484. <ul>
  11485. <li>Record length</li>
  11486. <li>Key length</li>
  11487. <li>Key</li>
  11488. <li><i>Compressed</i> Value</li>
  11489. </ul>
  11490. </li>
  11491. <li>
  11492. A sync-marker every few <code>100</code> bytes or so.
  11493. </li>
  11494. </ul>
  11495. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  11496. <ul>
  11497. <li>
  11498. <a href="#Header">Header</a>
  11499. </li>
  11500. <li>
  11501. Record <i>Block</i>
  11502. <ul>
  11503. <li>Compressed key-lengths block-size</li>
  11504. <li>Compressed key-lengths block</li>
  11505. <li>Compressed keys block-size</li>
  11506. <li>Compressed keys block</li>
  11507. <li>Compressed value-lengths block-size</li>
  11508. <li>Compressed value-lengths block</li>
  11509. <li>Compressed values block-size</li>
  11510. <li>Compressed values block</li>
  11511. </ul>
  11512. </li>
  11513. <li>
  11514. A sync-marker every few <code>100</code> bytes or so.
  11515. </li>
  11516. </ul>
  11517. <p>The compressed blocks of key lengths and value lengths consist of the
  11518. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  11519. format.</p>
  11520. @see CompressionCodec]]>
  11521. </doc>
  11522. </class>
  11523. <!-- end class org.apache.hadoop.io.SequenceFile -->
  11524. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  11525. <class name="SequenceFile.CompressionType" extends="java.lang.Enum&lt;org.apache.hadoop.io.SequenceFile.CompressionType&gt;"
  11526. abstract="false"
  11527. static="true" final="true" visibility="public"
  11528. deprecated="not deprecated">
  11529. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  11530. abstract="false" native="false" synchronized="false"
  11531. static="true" final="false" visibility="public"
  11532. deprecated="not deprecated">
  11533. </method>
  11534. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  11535. abstract="false" native="false" synchronized="false"
  11536. static="true" final="false" visibility="public"
  11537. deprecated="not deprecated">
  11538. <param name="name" type="java.lang.String"/>
  11539. </method>
  11540. <doc>
  11541. <![CDATA[The compression type used to compress key/value pairs in the
  11542. {@link SequenceFile}.
  11543. @see SequenceFile.Writer]]>
  11544. </doc>
  11545. </class>
  11546. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  11547. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  11548. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  11549. abstract="false"
  11550. static="true" final="false" visibility="public"
  11551. deprecated="not deprecated">
  11552. <implements name="org.apache.hadoop.io.Writable"/>
  11553. <constructor name="SequenceFile.Metadata"
  11554. static="false" final="false" visibility="public"
  11555. deprecated="not deprecated">
  11556. </constructor>
  11557. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  11558. static="false" final="false" visibility="public"
  11559. deprecated="not deprecated">
  11560. </constructor>
  11561. <method name="get" return="org.apache.hadoop.io.Text"
  11562. abstract="false" native="false" synchronized="false"
  11563. static="false" final="false" visibility="public"
  11564. deprecated="not deprecated">
  11565. <param name="name" type="org.apache.hadoop.io.Text"/>
  11566. </method>
  11567. <method name="set"
  11568. abstract="false" native="false" synchronized="false"
  11569. static="false" final="false" visibility="public"
  11570. deprecated="not deprecated">
  11571. <param name="name" type="org.apache.hadoop.io.Text"/>
  11572. <param name="value" type="org.apache.hadoop.io.Text"/>
  11573. </method>
  11574. <method name="getMetadata" return="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  11575. abstract="false" native="false" synchronized="false"
  11576. static="false" final="false" visibility="public"
  11577. deprecated="not deprecated">
  11578. </method>
  11579. <method name="write"
  11580. abstract="false" native="false" synchronized="false"
  11581. static="false" final="false" visibility="public"
  11582. deprecated="not deprecated">
  11583. <param name="out" type="java.io.DataOutput"/>
  11584. <exception name="IOException" type="java.io.IOException"/>
  11585. </method>
  11586. <method name="readFields"
  11587. abstract="false" native="false" synchronized="false"
  11588. static="false" final="false" visibility="public"
  11589. deprecated="not deprecated">
  11590. <param name="in" type="java.io.DataInput"/>
  11591. <exception name="IOException" type="java.io.IOException"/>
  11592. </method>
  11593. <method name="equals" return="boolean"
  11594. abstract="false" native="false" synchronized="false"
  11595. static="false" final="false" visibility="public"
  11596. deprecated="not deprecated">
  11597. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  11598. </method>
  11599. <method name="hashCode" return="int"
  11600. abstract="false" native="false" synchronized="false"
  11601. static="false" final="false" visibility="public"
  11602. deprecated="not deprecated">
  11603. </method>
  11604. <method name="toString" return="java.lang.String"
  11605. abstract="false" native="false" synchronized="false"
  11606. static="false" final="false" visibility="public"
  11607. deprecated="not deprecated">
  11608. </method>
  11609. <doc>
  11610. <![CDATA[The class encapsulating with the metadata of a file.
  11611. The metadata of a file is a list of attribute name/value
  11612. pairs of Text type.]]>
  11613. </doc>
  11614. </class>
  11615. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  11616. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  11617. <class name="SequenceFile.Reader" extends="java.lang.Object"
  11618. abstract="false"
  11619. static="true" final="false" visibility="public"
  11620. deprecated="not deprecated">
  11621. <implements name="java.io.Closeable"/>
  11622. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  11623. static="false" final="false" visibility="public"
  11624. deprecated="not deprecated">
  11625. <exception name="IOException" type="java.io.IOException"/>
  11626. <doc>
  11627. <![CDATA[Open the named file.]]>
  11628. </doc>
  11629. </constructor>
  11630. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  11631. abstract="false" native="false" synchronized="false"
  11632. static="false" final="false" visibility="protected"
  11633. deprecated="not deprecated">
  11634. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11635. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11636. <param name="bufferSize" type="int"/>
  11637. <param name="length" type="long"/>
  11638. <exception name="IOException" type="java.io.IOException"/>
  11639. <doc>
  11640. <![CDATA[Override this method to specialize the type of
  11641. {@link FSDataInputStream} returned.]]>
  11642. </doc>
  11643. </method>
  11644. <method name="close"
  11645. abstract="false" native="false" synchronized="true"
  11646. static="false" final="false" visibility="public"
  11647. deprecated="not deprecated">
  11648. <exception name="IOException" type="java.io.IOException"/>
  11649. <doc>
  11650. <![CDATA[Close the file.]]>
  11651. </doc>
  11652. </method>
  11653. <method name="getKeyClassName" return="java.lang.String"
  11654. abstract="false" native="false" synchronized="false"
  11655. static="false" final="false" visibility="public"
  11656. deprecated="not deprecated">
  11657. <doc>
  11658. <![CDATA[Returns the name of the key class.]]>
  11659. </doc>
  11660. </method>
  11661. <method name="getKeyClass" return="java.lang.Class&lt;?&gt;"
  11662. abstract="false" native="false" synchronized="true"
  11663. static="false" final="false" visibility="public"
  11664. deprecated="not deprecated">
  11665. <doc>
  11666. <![CDATA[Returns the class of keys in this file.]]>
  11667. </doc>
  11668. </method>
  11669. <method name="getValueClassName" return="java.lang.String"
  11670. abstract="false" native="false" synchronized="false"
  11671. static="false" final="false" visibility="public"
  11672. deprecated="not deprecated">
  11673. <doc>
  11674. <![CDATA[Returns the name of the value class.]]>
  11675. </doc>
  11676. </method>
  11677. <method name="getValueClass" return="java.lang.Class&lt;?&gt;"
  11678. abstract="false" native="false" synchronized="true"
  11679. static="false" final="false" visibility="public"
  11680. deprecated="not deprecated">
  11681. <doc>
  11682. <![CDATA[Returns the class of values in this file.]]>
  11683. </doc>
  11684. </method>
  11685. <method name="isCompressed" return="boolean"
  11686. abstract="false" native="false" synchronized="false"
  11687. static="false" final="false" visibility="public"
  11688. deprecated="not deprecated">
  11689. <doc>
  11690. <![CDATA[Returns true if values are compressed.]]>
  11691. </doc>
  11692. </method>
  11693. <method name="isBlockCompressed" return="boolean"
  11694. abstract="false" native="false" synchronized="false"
  11695. static="false" final="false" visibility="public"
  11696. deprecated="not deprecated">
  11697. <doc>
  11698. <![CDATA[Returns true if records are block-compressed.]]>
  11699. </doc>
  11700. </method>
  11701. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  11702. abstract="false" native="false" synchronized="false"
  11703. static="false" final="false" visibility="public"
  11704. deprecated="not deprecated">
  11705. <doc>
  11706. <![CDATA[Returns the compression codec of data in this file.]]>
  11707. </doc>
  11708. </method>
  11709. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  11710. abstract="false" native="false" synchronized="false"
  11711. static="false" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <doc>
  11714. <![CDATA[Returns the metadata object of the file]]>
  11715. </doc>
  11716. </method>
  11717. <method name="getCurrentValue"
  11718. abstract="false" native="false" synchronized="true"
  11719. static="false" final="false" visibility="public"
  11720. deprecated="not deprecated">
  11721. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11722. <exception name="IOException" type="java.io.IOException"/>
  11723. <doc>
  11724. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  11725. @param val : The 'value' to be read.
  11726. @throws IOException]]>
  11727. </doc>
  11728. </method>
  11729. <method name="getCurrentValue" return="java.lang.Object"
  11730. abstract="false" native="false" synchronized="true"
  11731. static="false" final="false" visibility="public"
  11732. deprecated="not deprecated">
  11733. <param name="val" type="java.lang.Object"/>
  11734. <exception name="IOException" type="java.io.IOException"/>
  11735. <doc>
  11736. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  11737. @param val : The 'value' to be read.
  11738. @throws IOException]]>
  11739. </doc>
  11740. </method>
  11741. <method name="next" return="boolean"
  11742. abstract="false" native="false" synchronized="true"
  11743. static="false" final="false" visibility="public"
  11744. deprecated="not deprecated">
  11745. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11746. <exception name="IOException" type="java.io.IOException"/>
  11747. <doc>
  11748. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  11749. value. True if another entry exists, and false at end of file.]]>
  11750. </doc>
  11751. </method>
  11752. <method name="next" return="boolean"
  11753. abstract="false" native="false" synchronized="true"
  11754. static="false" final="false" visibility="public"
  11755. deprecated="not deprecated">
  11756. <param name="key" type="org.apache.hadoop.io.Writable"/>
  11757. <param name="val" type="org.apache.hadoop.io.Writable"/>
  11758. <exception name="IOException" type="java.io.IOException"/>
  11759. <doc>
  11760. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  11761. <code>val</code>. Returns true if such a pair exists and false when at
  11762. end of file]]>
  11763. </doc>
  11764. </method>
  11765. <method name="next" return="int"
  11766. abstract="false" native="false" synchronized="true"
  11767. static="false" final="false" visibility="public"
  11768. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  11769. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  11770. <exception name="IOException" type="java.io.IOException"/>
  11771. <doc>
  11772. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  11773. </doc>
  11774. </method>
  11775. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  11776. abstract="false" native="false" synchronized="false"
  11777. static="false" final="false" visibility="public"
  11778. deprecated="not deprecated">
  11779. </method>
  11780. <method name="nextRaw" return="int"
  11781. abstract="false" native="false" synchronized="true"
  11782. static="false" final="false" visibility="public"
  11783. deprecated="not deprecated">
  11784. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  11785. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11786. <exception name="IOException" type="java.io.IOException"/>
  11787. <doc>
  11788. <![CDATA[Read 'raw' records.
  11789. @param key - The buffer into which the key is read
  11790. @param val - The 'raw' value
  11791. @return Returns the total record length or -1 for end of file
  11792. @throws IOException]]>
  11793. </doc>
  11794. </method>
  11795. <method name="nextRawKey" return="int"
  11796. abstract="false" native="false" synchronized="false"
  11797. static="false" final="false" visibility="public"
  11798. deprecated="not deprecated">
  11799. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  11800. <exception name="IOException" type="java.io.IOException"/>
  11801. <doc>
  11802. <![CDATA[Read 'raw' keys.
  11803. @param key - The buffer into which the key is read
  11804. @return Returns the key length or -1 for end of file
  11805. @throws IOException]]>
  11806. </doc>
  11807. </method>
  11808. <method name="next" return="java.lang.Object"
  11809. abstract="false" native="false" synchronized="true"
  11810. static="false" final="false" visibility="public"
  11811. deprecated="not deprecated">
  11812. <param name="key" type="java.lang.Object"/>
  11813. <exception name="IOException" type="java.io.IOException"/>
  11814. <doc>
  11815. <![CDATA[Read the next key in the file, skipping its
  11816. value. Return null at end of file.]]>
  11817. </doc>
  11818. </method>
  11819. <method name="nextRawValue" return="int"
  11820. abstract="false" native="false" synchronized="true"
  11821. static="false" final="false" visibility="public"
  11822. deprecated="not deprecated">
  11823. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  11824. <exception name="IOException" type="java.io.IOException"/>
  11825. <doc>
  11826. <![CDATA[Read 'raw' values.
  11827. @param val - The 'raw' value
  11828. @return Returns the value length
  11829. @throws IOException]]>
  11830. </doc>
  11831. </method>
  11832. <method name="seek"
  11833. abstract="false" native="false" synchronized="true"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <param name="position" type="long"/>
  11837. <exception name="IOException" type="java.io.IOException"/>
  11838. <doc>
  11839. <![CDATA[Set the current byte position in the input file.
  11840. <p>The position passed must be a position returned by {@link
  11841. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  11842. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  11843. </doc>
  11844. </method>
  11845. <method name="sync"
  11846. abstract="false" native="false" synchronized="true"
  11847. static="false" final="false" visibility="public"
  11848. deprecated="not deprecated">
  11849. <param name="position" type="long"/>
  11850. <exception name="IOException" type="java.io.IOException"/>
  11851. <doc>
  11852. <![CDATA[Seek to the next sync mark past a given position.]]>
  11853. </doc>
  11854. </method>
  11855. <method name="syncSeen" return="boolean"
  11856. abstract="false" native="false" synchronized="false"
  11857. static="false" final="false" visibility="public"
  11858. deprecated="not deprecated">
  11859. <doc>
  11860. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  11861. </doc>
  11862. </method>
  11863. <method name="getPosition" return="long"
  11864. abstract="false" native="false" synchronized="true"
  11865. static="false" final="false" visibility="public"
  11866. deprecated="not deprecated">
  11867. <exception name="IOException" type="java.io.IOException"/>
  11868. <doc>
  11869. <![CDATA[Return the current byte position in the input file.]]>
  11870. </doc>
  11871. </method>
  11872. <method name="toString" return="java.lang.String"
  11873. abstract="false" native="false" synchronized="false"
  11874. static="false" final="false" visibility="public"
  11875. deprecated="not deprecated">
  11876. <doc>
  11877. <![CDATA[Returns the name of the file.]]>
  11878. </doc>
  11879. </method>
  11880. <doc>
  11881. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  11882. </doc>
  11883. </class>
  11884. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  11885. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  11886. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  11887. abstract="false"
  11888. static="true" final="false" visibility="public"
  11889. deprecated="not deprecated">
  11890. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, java.lang.Class, org.apache.hadoop.conf.Configuration"
  11891. static="false" final="false" visibility="public"
  11892. deprecated="not deprecated">
  11893. <doc>
  11894. <![CDATA[Sort and merge files containing the named classes.]]>
  11895. </doc>
  11896. </constructor>
  11897. <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"
  11898. static="false" final="false" visibility="public"
  11899. deprecated="not deprecated">
  11900. <doc>
  11901. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  11902. </doc>
  11903. </constructor>
  11904. <method name="setFactor"
  11905. abstract="false" native="false" synchronized="false"
  11906. static="false" final="false" visibility="public"
  11907. deprecated="not deprecated">
  11908. <param name="factor" type="int"/>
  11909. <doc>
  11910. <![CDATA[Set the number of streams to merge at once.]]>
  11911. </doc>
  11912. </method>
  11913. <method name="getFactor" return="int"
  11914. abstract="false" native="false" synchronized="false"
  11915. static="false" final="false" visibility="public"
  11916. deprecated="not deprecated">
  11917. <doc>
  11918. <![CDATA[Get the number of streams to merge at once.]]>
  11919. </doc>
  11920. </method>
  11921. <method name="setMemory"
  11922. abstract="false" native="false" synchronized="false"
  11923. static="false" final="false" visibility="public"
  11924. deprecated="not deprecated">
  11925. <param name="memory" type="int"/>
  11926. <doc>
  11927. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  11928. </doc>
  11929. </method>
  11930. <method name="getMemory" return="int"
  11931. abstract="false" native="false" synchronized="false"
  11932. static="false" final="false" visibility="public"
  11933. deprecated="not deprecated">
  11934. <doc>
  11935. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  11936. </doc>
  11937. </method>
  11938. <method name="setProgressable"
  11939. abstract="false" native="false" synchronized="false"
  11940. static="false" final="false" visibility="public"
  11941. deprecated="not deprecated">
  11942. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  11943. <doc>
  11944. <![CDATA[Set the progressable object in order to report progress.]]>
  11945. </doc>
  11946. </method>
  11947. <method name="sort"
  11948. abstract="false" native="false" synchronized="false"
  11949. static="false" final="false" visibility="public"
  11950. deprecated="not deprecated">
  11951. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  11952. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  11953. <param name="deleteInput" type="boolean"/>
  11954. <exception name="IOException" type="java.io.IOException"/>
  11955. <doc>
  11956. <![CDATA[Perform a file sort from a set of input files into an output file.
  11957. @param inFiles the files to be sorted
  11958. @param outFile the sorted output file
  11959. @param deleteInput should the input files be deleted as they are read?]]>
  11960. </doc>
  11961. </method>
  11962. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11963. abstract="false" native="false" synchronized="false"
  11964. static="false" final="false" visibility="public"
  11965. deprecated="not deprecated">
  11966. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  11967. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  11968. <param name="deleteInput" type="boolean"/>
  11969. <exception name="IOException" type="java.io.IOException"/>
  11970. <doc>
  11971. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  11972. @param inFiles the files to be sorted
  11973. @param tempDir the directory where temp files are created during sort
  11974. @param deleteInput should the input files be deleted as they are read?
  11975. @return iterator the RawKeyValueIterator]]>
  11976. </doc>
  11977. </method>
  11978. <method name="sort"
  11979. abstract="false" native="false" synchronized="false"
  11980. static="false" final="false" visibility="public"
  11981. deprecated="not deprecated">
  11982. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  11983. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  11984. <exception name="IOException" type="java.io.IOException"/>
  11985. <doc>
  11986. <![CDATA[The backwards compatible interface to sort.
  11987. @param inFile the input file to sort
  11988. @param outFile the sorted output file]]>
  11989. </doc>
  11990. </method>
  11991. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  11992. abstract="false" native="false" synchronized="false"
  11993. static="false" final="false" visibility="public"
  11994. deprecated="not deprecated">
  11995. <param name="segments" type="java.util.List&lt;org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor&gt;"/>
  11996. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  11997. <exception name="IOException" type="java.io.IOException"/>
  11998. <doc>
  11999. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  12000. @param segments the list of SegmentDescriptors
  12001. @param tmpDir the directory to write temporary files into
  12002. @return RawKeyValueIterator
  12003. @throws IOException]]>
  12004. </doc>
  12005. </method>
  12006. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12007. abstract="false" native="false" synchronized="false"
  12008. static="false" final="false" visibility="public"
  12009. deprecated="not deprecated">
  12010. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12011. <param name="deleteInputs" type="boolean"/>
  12012. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12013. <exception name="IOException" type="java.io.IOException"/>
  12014. <doc>
  12015. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  12016. that is already set
  12017. @param inNames the array of path names
  12018. @param deleteInputs true if the input files should be deleted when
  12019. unnecessary
  12020. @param tmpDir the directory to write temporary files into
  12021. @return RawKeyValueIteratorMergeQueue
  12022. @throws IOException]]>
  12023. </doc>
  12024. </method>
  12025. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12026. abstract="false" native="false" synchronized="false"
  12027. static="false" final="false" visibility="public"
  12028. deprecated="not deprecated">
  12029. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12030. <param name="deleteInputs" type="boolean"/>
  12031. <param name="factor" type="int"/>
  12032. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  12033. <exception name="IOException" type="java.io.IOException"/>
  12034. <doc>
  12035. <![CDATA[Merges the contents of files passed in Path[]
  12036. @param inNames the array of path names
  12037. @param deleteInputs true if the input files should be deleted when
  12038. unnecessary
  12039. @param factor the factor that will be used as the maximum merge fan-in
  12040. @param tmpDir the directory to write temporary files into
  12041. @return RawKeyValueIteratorMergeQueue
  12042. @throws IOException]]>
  12043. </doc>
  12044. </method>
  12045. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  12046. abstract="false" native="false" synchronized="false"
  12047. static="false" final="false" visibility="public"
  12048. deprecated="not deprecated">
  12049. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  12050. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  12051. <param name="deleteInputs" type="boolean"/>
  12052. <exception name="IOException" type="java.io.IOException"/>
  12053. <doc>
  12054. <![CDATA[Merges the contents of files passed in Path[]
  12055. @param inNames the array of path names
  12056. @param tempDir the directory for creating temp files during merge
  12057. @param deleteInputs true if the input files should be deleted when
  12058. unnecessary
  12059. @return RawKeyValueIteratorMergeQueue
  12060. @throws IOException]]>
  12061. </doc>
  12062. </method>
  12063. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  12064. abstract="false" native="false" synchronized="false"
  12065. static="false" final="false" visibility="public"
  12066. deprecated="not deprecated">
  12067. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  12068. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  12069. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  12070. <exception name="IOException" type="java.io.IOException"/>
  12071. <doc>
  12072. <![CDATA[Clones the attributes (like compression of the input file and creates a
  12073. corresponding Writer
  12074. @param inputFile the path of the input file whose attributes should be
  12075. cloned
  12076. @param outputFile the path of the output file
  12077. @param prog the Progressable to report status during the file write
  12078. @return Writer
  12079. @throws IOException]]>
  12080. </doc>
  12081. </method>
  12082. <method name="writeFile"
  12083. abstract="false" native="false" synchronized="false"
  12084. static="false" final="false" visibility="public"
  12085. deprecated="not deprecated">
  12086. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  12087. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  12088. <exception name="IOException" type="java.io.IOException"/>
  12089. <doc>
  12090. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  12091. passed writer
  12092. @param records the RawKeyValueIterator
  12093. @param writer the Writer created earlier
  12094. @throws IOException]]>
  12095. </doc>
  12096. </method>
  12097. <method name="merge"
  12098. abstract="false" native="false" synchronized="false"
  12099. static="false" final="false" visibility="public"
  12100. deprecated="not deprecated">
  12101. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  12102. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  12103. <exception name="IOException" type="java.io.IOException"/>
  12104. <doc>
  12105. <![CDATA[Merge the provided files.
  12106. @param inFiles the array of input path names
  12107. @param outFile the final output file
  12108. @throws IOException]]>
  12109. </doc>
  12110. </method>
  12111. <doc>
  12112. <![CDATA[Sorts key/value pairs in a sequence-format file.
  12113. <p>For best performance, applications should make sure that the {@link
  12114. Writable#readFields(DataInput)} implementation of their keys is
  12115. very efficient. In particular, it should avoid allocating memory.]]>
  12116. </doc>
  12117. </class>
  12118. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  12119. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12120. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  12121. static="true" final="false" visibility="public"
  12122. deprecated="not deprecated">
  12123. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12124. abstract="false" native="false" synchronized="false"
  12125. static="false" final="false" visibility="public"
  12126. deprecated="not deprecated">
  12127. <exception name="IOException" type="java.io.IOException"/>
  12128. <doc>
  12129. <![CDATA[Gets the current raw key
  12130. @return DataOutputBuffer
  12131. @throws IOException]]>
  12132. </doc>
  12133. </method>
  12134. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  12135. abstract="false" native="false" synchronized="false"
  12136. static="false" final="false" visibility="public"
  12137. deprecated="not deprecated">
  12138. <exception name="IOException" type="java.io.IOException"/>
  12139. <doc>
  12140. <![CDATA[Gets the current raw value
  12141. @return ValueBytes
  12142. @throws IOException]]>
  12143. </doc>
  12144. </method>
  12145. <method name="next" return="boolean"
  12146. abstract="false" native="false" synchronized="false"
  12147. static="false" final="false" visibility="public"
  12148. deprecated="not deprecated">
  12149. <exception name="IOException" type="java.io.IOException"/>
  12150. <doc>
  12151. <![CDATA[Sets up the current key and value (for getKey and getValue)
  12152. @return true if there exists a key/value, false otherwise
  12153. @throws IOException]]>
  12154. </doc>
  12155. </method>
  12156. <method name="close"
  12157. abstract="false" native="false" synchronized="false"
  12158. static="false" final="false" visibility="public"
  12159. deprecated="not deprecated">
  12160. <exception name="IOException" type="java.io.IOException"/>
  12161. <doc>
  12162. <![CDATA[closes the iterator so that the underlying streams can be closed
  12163. @throws IOException]]>
  12164. </doc>
  12165. </method>
  12166. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  12167. abstract="false" native="false" synchronized="false"
  12168. static="false" final="false" visibility="public"
  12169. deprecated="not deprecated">
  12170. <doc>
  12171. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  12172. indicating the bytes processed by the iterator so far]]>
  12173. </doc>
  12174. </method>
  12175. <doc>
  12176. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  12177. </doc>
  12178. </interface>
  12179. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  12180. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12181. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  12182. abstract="false"
  12183. static="false" final="false" visibility="public"
  12184. deprecated="not deprecated">
  12185. <implements name="java.lang.Comparable"/>
  12186. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  12187. static="false" final="false" visibility="public"
  12188. deprecated="not deprecated">
  12189. <doc>
  12190. <![CDATA[Constructs a segment
  12191. @param segmentOffset the offset of the segment in the file
  12192. @param segmentLength the length of the segment
  12193. @param segmentPathName the path name of the file containing the segment]]>
  12194. </doc>
  12195. </constructor>
  12196. <method name="doSync"
  12197. abstract="false" native="false" synchronized="false"
  12198. static="false" final="false" visibility="public"
  12199. deprecated="not deprecated">
  12200. <doc>
  12201. <![CDATA[Do the sync checks]]>
  12202. </doc>
  12203. </method>
  12204. <method name="preserveInput"
  12205. abstract="false" native="false" synchronized="false"
  12206. static="false" final="false" visibility="public"
  12207. deprecated="not deprecated">
  12208. <param name="preserve" type="boolean"/>
  12209. <doc>
  12210. <![CDATA[Whether to delete the files when no longer needed]]>
  12211. </doc>
  12212. </method>
  12213. <method name="shouldPreserveInput" return="boolean"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. </method>
  12218. <method name="compareTo" return="int"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="false" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. <param name="o" type="java.lang.Object"/>
  12223. </method>
  12224. <method name="equals" return="boolean"
  12225. abstract="false" native="false" synchronized="false"
  12226. static="false" final="false" visibility="public"
  12227. deprecated="not deprecated">
  12228. <param name="o" type="java.lang.Object"/>
  12229. </method>
  12230. <method name="hashCode" return="int"
  12231. abstract="false" native="false" synchronized="false"
  12232. static="false" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. </method>
  12235. <method name="nextRawKey" return="boolean"
  12236. abstract="false" native="false" synchronized="false"
  12237. static="false" final="false" visibility="public"
  12238. deprecated="not deprecated">
  12239. <exception name="IOException" type="java.io.IOException"/>
  12240. <doc>
  12241. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  12242. @return true if there is a key returned; false, otherwise
  12243. @throws IOException]]>
  12244. </doc>
  12245. </method>
  12246. <method name="nextRawValue" return="int"
  12247. abstract="false" native="false" synchronized="false"
  12248. static="false" final="false" visibility="public"
  12249. deprecated="not deprecated">
  12250. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12251. <exception name="IOException" type="java.io.IOException"/>
  12252. <doc>
  12253. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  12254. read earlier
  12255. @param rawValue
  12256. @return the length of the value
  12257. @throws IOException]]>
  12258. </doc>
  12259. </method>
  12260. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  12261. abstract="false" native="false" synchronized="false"
  12262. static="false" final="false" visibility="public"
  12263. deprecated="not deprecated">
  12264. <doc>
  12265. <![CDATA[Returns the stored rawKey]]>
  12266. </doc>
  12267. </method>
  12268. <method name="cleanup"
  12269. abstract="false" native="false" synchronized="false"
  12270. static="false" final="false" visibility="public"
  12271. deprecated="not deprecated">
  12272. <exception name="IOException" type="java.io.IOException"/>
  12273. <doc>
  12274. <![CDATA[The default cleanup. Subclasses can override this with a custom
  12275. cleanup]]>
  12276. </doc>
  12277. </method>
  12278. <doc>
  12279. <![CDATA[This class defines a merge segment. This class can be subclassed to
  12280. provide a customized cleanup method implementation. In this
  12281. implementation, cleanup closes the file handle and deletes the file]]>
  12282. </doc>
  12283. </class>
  12284. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  12285. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12286. <interface name="SequenceFile.ValueBytes" abstract="true"
  12287. static="true" final="false" visibility="public"
  12288. deprecated="not deprecated">
  12289. <method name="writeUncompressedBytes"
  12290. abstract="false" native="false" synchronized="false"
  12291. static="false" final="false" visibility="public"
  12292. deprecated="not deprecated">
  12293. <param name="outStream" type="java.io.DataOutputStream"/>
  12294. <exception name="IOException" type="java.io.IOException"/>
  12295. <doc>
  12296. <![CDATA[Writes the uncompressed bytes to the outStream.
  12297. @param outStream : Stream to write uncompressed bytes into.
  12298. @throws IOException]]>
  12299. </doc>
  12300. </method>
  12301. <method name="writeCompressedBytes"
  12302. abstract="false" native="false" synchronized="false"
  12303. static="false" final="false" visibility="public"
  12304. deprecated="not deprecated">
  12305. <param name="outStream" type="java.io.DataOutputStream"/>
  12306. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  12307. <exception name="IOException" type="java.io.IOException"/>
  12308. <doc>
  12309. <![CDATA[Write compressed bytes to outStream.
  12310. Note: that it will NOT compress the bytes if they are not compressed.
  12311. @param outStream : Stream to write compressed bytes into.]]>
  12312. </doc>
  12313. </method>
  12314. <method name="getSize" return="int"
  12315. abstract="false" native="false" synchronized="false"
  12316. static="false" final="false" visibility="public"
  12317. deprecated="not deprecated">
  12318. <doc>
  12319. <![CDATA[Size of stored data.]]>
  12320. </doc>
  12321. </method>
  12322. <doc>
  12323. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  12324. </doc>
  12325. </interface>
  12326. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  12327. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  12328. <class name="SequenceFile.Writer" extends="java.lang.Object"
  12329. abstract="false"
  12330. static="true" final="false" visibility="public"
  12331. deprecated="not deprecated">
  12332. <implements name="java.io.Closeable"/>
  12333. <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"
  12334. static="false" final="false" visibility="public"
  12335. deprecated="not deprecated">
  12336. <exception name="IOException" type="java.io.IOException"/>
  12337. <doc>
  12338. <![CDATA[Create the named file.]]>
  12339. </doc>
  12340. </constructor>
  12341. <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"
  12342. static="false" final="false" visibility="public"
  12343. deprecated="not deprecated">
  12344. <exception name="IOException" type="java.io.IOException"/>
  12345. <doc>
  12346. <![CDATA[Create the named file with write-progress reporter.]]>
  12347. </doc>
  12348. </constructor>
  12349. <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"
  12350. static="false" final="false" visibility="public"
  12351. deprecated="not deprecated">
  12352. <exception name="IOException" type="java.io.IOException"/>
  12353. <doc>
  12354. <![CDATA[Create the named file with write-progress reporter.]]>
  12355. </doc>
  12356. </constructor>
  12357. <method name="getKeyClass" return="java.lang.Class"
  12358. abstract="false" native="false" synchronized="false"
  12359. static="false" final="false" visibility="public"
  12360. deprecated="not deprecated">
  12361. <doc>
  12362. <![CDATA[Returns the class of keys in this file.]]>
  12363. </doc>
  12364. </method>
  12365. <method name="getValueClass" return="java.lang.Class"
  12366. abstract="false" native="false" synchronized="false"
  12367. static="false" final="false" visibility="public"
  12368. deprecated="not deprecated">
  12369. <doc>
  12370. <![CDATA[Returns the class of values in this file.]]>
  12371. </doc>
  12372. </method>
  12373. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  12374. abstract="false" native="false" synchronized="false"
  12375. static="false" final="false" visibility="public"
  12376. deprecated="not deprecated">
  12377. <doc>
  12378. <![CDATA[Returns the compression codec of data in this file.]]>
  12379. </doc>
  12380. </method>
  12381. <method name="sync"
  12382. abstract="false" native="false" synchronized="false"
  12383. static="false" final="false" visibility="public"
  12384. deprecated="not deprecated">
  12385. <exception name="IOException" type="java.io.IOException"/>
  12386. <doc>
  12387. <![CDATA[create a sync point]]>
  12388. </doc>
  12389. </method>
  12390. <method name="close"
  12391. abstract="false" native="false" synchronized="true"
  12392. static="false" final="false" visibility="public"
  12393. deprecated="not deprecated">
  12394. <exception name="IOException" type="java.io.IOException"/>
  12395. <doc>
  12396. <![CDATA[Close the file.]]>
  12397. </doc>
  12398. </method>
  12399. <method name="append"
  12400. abstract="false" native="false" synchronized="true"
  12401. static="false" final="false" visibility="public"
  12402. deprecated="not deprecated">
  12403. <param name="key" type="org.apache.hadoop.io.Writable"/>
  12404. <param name="val" type="org.apache.hadoop.io.Writable"/>
  12405. <exception name="IOException" type="java.io.IOException"/>
  12406. <doc>
  12407. <![CDATA[Append a key/value pair.]]>
  12408. </doc>
  12409. </method>
  12410. <method name="append"
  12411. abstract="false" native="false" synchronized="true"
  12412. static="false" final="false" visibility="public"
  12413. deprecated="not deprecated">
  12414. <param name="key" type="java.lang.Object"/>
  12415. <param name="val" type="java.lang.Object"/>
  12416. <exception name="IOException" type="java.io.IOException"/>
  12417. <doc>
  12418. <![CDATA[Append a key/value pair.]]>
  12419. </doc>
  12420. </method>
  12421. <method name="appendRaw"
  12422. abstract="false" native="false" synchronized="true"
  12423. static="false" final="false" visibility="public"
  12424. deprecated="not deprecated">
  12425. <param name="keyData" type="byte[]"/>
  12426. <param name="keyOffset" type="int"/>
  12427. <param name="keyLength" type="int"/>
  12428. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  12429. <exception name="IOException" type="java.io.IOException"/>
  12430. </method>
  12431. <method name="getLength" return="long"
  12432. abstract="false" native="false" synchronized="true"
  12433. static="false" final="false" visibility="public"
  12434. deprecated="not deprecated">
  12435. <exception name="IOException" type="java.io.IOException"/>
  12436. <doc>
  12437. <![CDATA[Returns the current length of the output file.
  12438. <p>This always returns a synchronized position. In other words,
  12439. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  12440. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  12441. the key may be earlier in the file than key last written when this
  12442. method was called (e.g., with block-compression, it may be the first key
  12443. in the block that was being written when this method was called).]]>
  12444. </doc>
  12445. </method>
  12446. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12447. transient="false" volatile="false"
  12448. static="false" final="false" visibility="protected"
  12449. deprecated="not deprecated">
  12450. </field>
  12451. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12452. transient="false" volatile="false"
  12453. static="false" final="false" visibility="protected"
  12454. deprecated="not deprecated">
  12455. </field>
  12456. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  12457. transient="false" volatile="false"
  12458. static="false" final="false" visibility="protected"
  12459. deprecated="not deprecated">
  12460. </field>
  12461. <doc>
  12462. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  12463. </doc>
  12464. </class>
  12465. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  12466. <!-- start class org.apache.hadoop.io.SetFile -->
  12467. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  12468. abstract="false"
  12469. static="false" final="false" visibility="public"
  12470. deprecated="not deprecated">
  12471. <constructor name="SetFile"
  12472. static="false" final="false" visibility="protected"
  12473. deprecated="not deprecated">
  12474. </constructor>
  12475. <doc>
  12476. <![CDATA[A file-based set of keys.]]>
  12477. </doc>
  12478. </class>
  12479. <!-- end class org.apache.hadoop.io.SetFile -->
  12480. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  12481. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  12482. abstract="false"
  12483. static="true" final="false" visibility="public"
  12484. deprecated="not deprecated">
  12485. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  12486. static="false" final="false" visibility="public"
  12487. deprecated="not deprecated">
  12488. <exception name="IOException" type="java.io.IOException"/>
  12489. <doc>
  12490. <![CDATA[Construct a set reader for the named set.]]>
  12491. </doc>
  12492. </constructor>
  12493. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  12494. static="false" final="false" visibility="public"
  12495. deprecated="not deprecated">
  12496. <exception name="IOException" type="java.io.IOException"/>
  12497. <doc>
  12498. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  12499. </doc>
  12500. </constructor>
  12501. <method name="seek" return="boolean"
  12502. abstract="false" native="false" synchronized="false"
  12503. static="false" final="false" visibility="public"
  12504. deprecated="not deprecated">
  12505. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12506. <exception name="IOException" type="java.io.IOException"/>
  12507. </method>
  12508. <method name="next" return="boolean"
  12509. abstract="false" native="false" synchronized="false"
  12510. static="false" final="false" visibility="public"
  12511. deprecated="not deprecated">
  12512. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12513. <exception name="IOException" type="java.io.IOException"/>
  12514. <doc>
  12515. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  12516. true if such a key exists and false when at the end of the set.]]>
  12517. </doc>
  12518. </method>
  12519. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  12520. abstract="false" native="false" synchronized="false"
  12521. static="false" final="false" visibility="public"
  12522. deprecated="not deprecated">
  12523. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12524. <exception name="IOException" type="java.io.IOException"/>
  12525. <doc>
  12526. <![CDATA[Read the matching key from a set into <code>key</code>.
  12527. Returns <code>key</code>, or null if no match exists.]]>
  12528. </doc>
  12529. </method>
  12530. <doc>
  12531. <![CDATA[Provide access to an existing set file.]]>
  12532. </doc>
  12533. </class>
  12534. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  12535. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  12536. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  12537. abstract="false"
  12538. static="true" final="false" visibility="public"
  12539. deprecated="not deprecated">
  12540. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  12541. static="false" final="false" visibility="public"
  12542. deprecated="pass a Configuration too">
  12543. <exception name="IOException" type="java.io.IOException"/>
  12544. <doc>
  12545. <![CDATA[Create the named set for keys of the named class.
  12546. @deprecated pass a Configuration too]]>
  12547. </doc>
  12548. </constructor>
  12549. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, org.apache.hadoop.io.SequenceFile.CompressionType"
  12550. static="false" final="false" visibility="public"
  12551. deprecated="not deprecated">
  12552. <exception name="IOException" type="java.io.IOException"/>
  12553. <doc>
  12554. <![CDATA[Create a set naming the element class and compression type.]]>
  12555. </doc>
  12556. </constructor>
  12557. <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"
  12558. static="false" final="false" visibility="public"
  12559. deprecated="not deprecated">
  12560. <exception name="IOException" type="java.io.IOException"/>
  12561. <doc>
  12562. <![CDATA[Create a set naming the element comparator and compression type.]]>
  12563. </doc>
  12564. </constructor>
  12565. <method name="append"
  12566. abstract="false" native="false" synchronized="false"
  12567. static="false" final="false" visibility="public"
  12568. deprecated="not deprecated">
  12569. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12570. <exception name="IOException" type="java.io.IOException"/>
  12571. <doc>
  12572. <![CDATA[Append a key to a set. The key must be strictly greater than the
  12573. previous key added to the set.]]>
  12574. </doc>
  12575. </method>
  12576. <doc>
  12577. <![CDATA[Write a new set file.]]>
  12578. </doc>
  12579. </class>
  12580. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  12581. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  12582. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  12583. abstract="false"
  12584. static="false" final="false" visibility="public"
  12585. deprecated="not deprecated">
  12586. <implements name="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"/>
  12587. <constructor name="SortedMapWritable"
  12588. static="false" final="false" visibility="public"
  12589. deprecated="not deprecated">
  12590. <doc>
  12591. <![CDATA[default constructor.]]>
  12592. </doc>
  12593. </constructor>
  12594. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  12595. static="false" final="false" visibility="public"
  12596. deprecated="not deprecated">
  12597. <doc>
  12598. <![CDATA[Copy constructor.
  12599. @param other the map to copy from]]>
  12600. </doc>
  12601. </constructor>
  12602. <method name="comparator" return="java.util.Comparator&lt;? super org.apache.hadoop.io.WritableComparable&gt;"
  12603. abstract="false" native="false" synchronized="false"
  12604. static="false" final="false" visibility="public"
  12605. deprecated="not deprecated">
  12606. <doc>
  12607. <![CDATA[{@inheritDoc}]]>
  12608. </doc>
  12609. </method>
  12610. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  12611. abstract="false" native="false" synchronized="false"
  12612. static="false" final="false" visibility="public"
  12613. deprecated="not deprecated">
  12614. <doc>
  12615. <![CDATA[{@inheritDoc}]]>
  12616. </doc>
  12617. </method>
  12618. <method name="headMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  12619. abstract="false" native="false" synchronized="false"
  12620. static="false" final="false" visibility="public"
  12621. deprecated="not deprecated">
  12622. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  12623. <doc>
  12624. <![CDATA[{@inheritDoc}]]>
  12625. </doc>
  12626. </method>
  12627. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  12628. abstract="false" native="false" synchronized="false"
  12629. static="false" final="false" visibility="public"
  12630. deprecated="not deprecated">
  12631. <doc>
  12632. <![CDATA[{@inheritDoc}]]>
  12633. </doc>
  12634. </method>
  12635. <method name="subMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  12636. abstract="false" native="false" synchronized="false"
  12637. static="false" final="false" visibility="public"
  12638. deprecated="not deprecated">
  12639. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  12640. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  12641. <doc>
  12642. <![CDATA[{@inheritDoc}]]>
  12643. </doc>
  12644. </method>
  12645. <method name="tailMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  12646. abstract="false" native="false" synchronized="false"
  12647. static="false" final="false" visibility="public"
  12648. deprecated="not deprecated">
  12649. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  12650. <doc>
  12651. <![CDATA[{@inheritDoc}]]>
  12652. </doc>
  12653. </method>
  12654. <method name="clear"
  12655. abstract="false" native="false" synchronized="false"
  12656. static="false" final="false" visibility="public"
  12657. deprecated="not deprecated">
  12658. <doc>
  12659. <![CDATA[{@inheritDoc}]]>
  12660. </doc>
  12661. </method>
  12662. <method name="containsKey" return="boolean"
  12663. abstract="false" native="false" synchronized="false"
  12664. static="false" final="false" visibility="public"
  12665. deprecated="not deprecated">
  12666. <param name="key" type="java.lang.Object"/>
  12667. <doc>
  12668. <![CDATA[{@inheritDoc}]]>
  12669. </doc>
  12670. </method>
  12671. <method name="containsValue" return="boolean"
  12672. abstract="false" native="false" synchronized="false"
  12673. static="false" final="false" visibility="public"
  12674. deprecated="not deprecated">
  12675. <param name="value" type="java.lang.Object"/>
  12676. <doc>
  12677. <![CDATA[{@inheritDoc}]]>
  12678. </doc>
  12679. </method>
  12680. <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;"
  12681. abstract="false" native="false" synchronized="false"
  12682. static="false" final="false" visibility="public"
  12683. deprecated="not deprecated">
  12684. <doc>
  12685. <![CDATA[{@inheritDoc}]]>
  12686. </doc>
  12687. </method>
  12688. <method name="get" return="org.apache.hadoop.io.Writable"
  12689. abstract="false" native="false" synchronized="false"
  12690. static="false" final="false" visibility="public"
  12691. deprecated="not deprecated">
  12692. <param name="key" type="java.lang.Object"/>
  12693. <doc>
  12694. <![CDATA[{@inheritDoc}]]>
  12695. </doc>
  12696. </method>
  12697. <method name="isEmpty" return="boolean"
  12698. abstract="false" native="false" synchronized="false"
  12699. static="false" final="false" visibility="public"
  12700. deprecated="not deprecated">
  12701. <doc>
  12702. <![CDATA[{@inheritDoc}]]>
  12703. </doc>
  12704. </method>
  12705. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.WritableComparable&gt;"
  12706. abstract="false" native="false" synchronized="false"
  12707. static="false" final="false" visibility="public"
  12708. deprecated="not deprecated">
  12709. <doc>
  12710. <![CDATA[{@inheritDoc}]]>
  12711. </doc>
  12712. </method>
  12713. <method name="put" return="org.apache.hadoop.io.Writable"
  12714. abstract="false" native="false" synchronized="false"
  12715. static="false" final="false" visibility="public"
  12716. deprecated="not deprecated">
  12717. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  12718. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12719. <doc>
  12720. <![CDATA[{@inheritDoc}]]>
  12721. </doc>
  12722. </method>
  12723. <method name="putAll"
  12724. abstract="false" native="false" synchronized="false"
  12725. static="false" final="false" visibility="public"
  12726. deprecated="not deprecated">
  12727. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.WritableComparable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  12728. <doc>
  12729. <![CDATA[{@inheritDoc}]]>
  12730. </doc>
  12731. </method>
  12732. <method name="remove" return="org.apache.hadoop.io.Writable"
  12733. abstract="false" native="false" synchronized="false"
  12734. static="false" final="false" visibility="public"
  12735. deprecated="not deprecated">
  12736. <param name="key" type="java.lang.Object"/>
  12737. <doc>
  12738. <![CDATA[{@inheritDoc}]]>
  12739. </doc>
  12740. </method>
  12741. <method name="size" return="int"
  12742. abstract="false" native="false" synchronized="false"
  12743. static="false" final="false" visibility="public"
  12744. deprecated="not deprecated">
  12745. <doc>
  12746. <![CDATA[{@inheritDoc}]]>
  12747. </doc>
  12748. </method>
  12749. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  12750. abstract="false" native="false" synchronized="false"
  12751. static="false" final="false" visibility="public"
  12752. deprecated="not deprecated">
  12753. <doc>
  12754. <![CDATA[{@inheritDoc}]]>
  12755. </doc>
  12756. </method>
  12757. <method name="readFields"
  12758. abstract="false" native="false" synchronized="false"
  12759. static="false" final="false" visibility="public"
  12760. deprecated="not deprecated">
  12761. <param name="in" type="java.io.DataInput"/>
  12762. <exception name="IOException" type="java.io.IOException"/>
  12763. <doc>
  12764. <![CDATA[{@inheritDoc}]]>
  12765. </doc>
  12766. </method>
  12767. <method name="write"
  12768. abstract="false" native="false" synchronized="false"
  12769. static="false" final="false" visibility="public"
  12770. deprecated="not deprecated">
  12771. <param name="out" type="java.io.DataOutput"/>
  12772. <exception name="IOException" type="java.io.IOException"/>
  12773. <doc>
  12774. <![CDATA[{@inheritDoc}]]>
  12775. </doc>
  12776. </method>
  12777. <doc>
  12778. <![CDATA[A Writable SortedMap.]]>
  12779. </doc>
  12780. </class>
  12781. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  12782. <!-- start interface org.apache.hadoop.io.Stringifier -->
  12783. <interface name="Stringifier" abstract="true"
  12784. static="false" final="false" visibility="public"
  12785. deprecated="not deprecated">
  12786. <implements name="java.io.Closeable"/>
  12787. <method name="toString" return="java.lang.String"
  12788. abstract="false" native="false" synchronized="false"
  12789. static="false" final="false" visibility="public"
  12790. deprecated="not deprecated">
  12791. <param name="obj" type="T"/>
  12792. <exception name="IOException" type="java.io.IOException"/>
  12793. <doc>
  12794. <![CDATA[Converts the object to a string representation
  12795. @param obj the object to convert
  12796. @return the string representation of the object
  12797. @throws IOException if the object cannot be converted]]>
  12798. </doc>
  12799. </method>
  12800. <method name="fromString" return="T"
  12801. abstract="false" native="false" synchronized="false"
  12802. static="false" final="false" visibility="public"
  12803. deprecated="not deprecated">
  12804. <param name="str" type="java.lang.String"/>
  12805. <exception name="IOException" type="java.io.IOException"/>
  12806. <doc>
  12807. <![CDATA[Restores the object from its string representation.
  12808. @param str the string representation of the object
  12809. @return restored object
  12810. @throws IOException if the object cannot be restored]]>
  12811. </doc>
  12812. </method>
  12813. <method name="close"
  12814. abstract="false" native="false" synchronized="false"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. <exception name="IOException" type="java.io.IOException"/>
  12818. <doc>
  12819. <![CDATA[Closes this object.
  12820. @throws IOException if an I/O error occurs]]>
  12821. </doc>
  12822. </method>
  12823. <doc>
  12824. <![CDATA[Stringifier interface offers two methods to convert an object
  12825. to a string representation and restore the object given its
  12826. string representation.
  12827. @param <T> the class of the objects to stringify]]>
  12828. </doc>
  12829. </interface>
  12830. <!-- end interface org.apache.hadoop.io.Stringifier -->
  12831. <!-- start class org.apache.hadoop.io.Text -->
  12832. <class name="Text" extends="org.apache.hadoop.io.BinaryComparable"
  12833. abstract="false"
  12834. static="false" final="false" visibility="public"
  12835. deprecated="not deprecated">
  12836. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.io.BinaryComparable&gt;"/>
  12837. <constructor name="Text"
  12838. static="false" final="false" visibility="public"
  12839. deprecated="not deprecated">
  12840. </constructor>
  12841. <constructor name="Text" type="java.lang.String"
  12842. static="false" final="false" visibility="public"
  12843. deprecated="not deprecated">
  12844. <doc>
  12845. <![CDATA[Construct from a string.]]>
  12846. </doc>
  12847. </constructor>
  12848. <constructor name="Text" type="org.apache.hadoop.io.Text"
  12849. static="false" final="false" visibility="public"
  12850. deprecated="not deprecated">
  12851. <doc>
  12852. <![CDATA[Construct from another text.]]>
  12853. </doc>
  12854. </constructor>
  12855. <constructor name="Text" type="byte[]"
  12856. static="false" final="false" visibility="public"
  12857. deprecated="not deprecated">
  12858. <doc>
  12859. <![CDATA[Construct from a byte array.]]>
  12860. </doc>
  12861. </constructor>
  12862. <method name="getBytes" return="byte[]"
  12863. abstract="false" native="false" synchronized="false"
  12864. static="false" final="false" visibility="public"
  12865. deprecated="not deprecated">
  12866. <doc>
  12867. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  12868. valid.]]>
  12869. </doc>
  12870. </method>
  12871. <method name="getLength" return="int"
  12872. abstract="false" native="false" synchronized="false"
  12873. static="false" final="false" visibility="public"
  12874. deprecated="not deprecated">
  12875. <doc>
  12876. <![CDATA[Returns the number of bytes in the byte array]]>
  12877. </doc>
  12878. </method>
  12879. <method name="charAt" return="int"
  12880. abstract="false" native="false" synchronized="false"
  12881. static="false" final="false" visibility="public"
  12882. deprecated="not deprecated">
  12883. <param name="position" type="int"/>
  12884. <doc>
  12885. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  12886. for the character at <code>position</code>. Note that this
  12887. method avoids using the converter or doing String instatiation
  12888. @return the Unicode scalar value at position or -1
  12889. if the position is invalid or points to a
  12890. trailing byte]]>
  12891. </doc>
  12892. </method>
  12893. <method name="find" return="int"
  12894. abstract="false" native="false" synchronized="false"
  12895. static="false" final="false" visibility="public"
  12896. deprecated="not deprecated">
  12897. <param name="what" type="java.lang.String"/>
  12898. </method>
  12899. <method name="find" return="int"
  12900. abstract="false" native="false" synchronized="false"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. <param name="what" type="java.lang.String"/>
  12904. <param name="start" type="int"/>
  12905. <doc>
  12906. <![CDATA[Finds any occurence of <code>what</code> in the backing
  12907. buffer, starting as position <code>start</code>. The starting
  12908. position is measured in bytes and the return value is in
  12909. terms of byte position in the buffer. The backing buffer is
  12910. not converted to a string for this operation.
  12911. @return byte position of the first occurence of the search
  12912. string in the UTF-8 buffer or -1 if not found]]>
  12913. </doc>
  12914. </method>
  12915. <method name="set"
  12916. abstract="false" native="false" synchronized="false"
  12917. static="false" final="false" visibility="public"
  12918. deprecated="not deprecated">
  12919. <param name="string" type="java.lang.String"/>
  12920. <doc>
  12921. <![CDATA[Set to contain the contents of a string.]]>
  12922. </doc>
  12923. </method>
  12924. <method name="set"
  12925. abstract="false" native="false" synchronized="false"
  12926. static="false" final="false" visibility="public"
  12927. deprecated="not deprecated">
  12928. <param name="utf8" type="byte[]"/>
  12929. <doc>
  12930. <![CDATA[Set to a utf8 byte array]]>
  12931. </doc>
  12932. </method>
  12933. <method name="set"
  12934. abstract="false" native="false" synchronized="false"
  12935. static="false" final="false" visibility="public"
  12936. deprecated="not deprecated">
  12937. <param name="other" type="org.apache.hadoop.io.Text"/>
  12938. <doc>
  12939. <![CDATA[copy a text.]]>
  12940. </doc>
  12941. </method>
  12942. <method name="set"
  12943. abstract="false" native="false" synchronized="false"
  12944. static="false" final="false" visibility="public"
  12945. deprecated="not deprecated">
  12946. <param name="utf8" type="byte[]"/>
  12947. <param name="start" type="int"/>
  12948. <param name="len" type="int"/>
  12949. <doc>
  12950. <![CDATA[Set the Text to range of bytes
  12951. @param utf8 the data to copy from
  12952. @param start the first position of the new string
  12953. @param len the number of bytes of the new string]]>
  12954. </doc>
  12955. </method>
  12956. <method name="append"
  12957. abstract="false" native="false" synchronized="false"
  12958. static="false" final="false" visibility="public"
  12959. deprecated="not deprecated">
  12960. <param name="utf8" type="byte[]"/>
  12961. <param name="start" type="int"/>
  12962. <param name="len" type="int"/>
  12963. <doc>
  12964. <![CDATA[Append a range of bytes to the end of the given text
  12965. @param utf8 the data to copy from
  12966. @param start the first position to append from utf8
  12967. @param len the number of bytes to append]]>
  12968. </doc>
  12969. </method>
  12970. <method name="clear"
  12971. abstract="false" native="false" synchronized="false"
  12972. static="false" final="false" visibility="public"
  12973. deprecated="not deprecated">
  12974. <doc>
  12975. <![CDATA[Clear the string to empty.]]>
  12976. </doc>
  12977. </method>
  12978. <method name="toString" return="java.lang.String"
  12979. abstract="false" native="false" synchronized="false"
  12980. static="false" final="false" visibility="public"
  12981. deprecated="not deprecated">
  12982. <doc>
  12983. <![CDATA[Convert text back to string
  12984. @see java.lang.Object#toString()]]>
  12985. </doc>
  12986. </method>
  12987. <method name="readFields"
  12988. abstract="false" native="false" synchronized="false"
  12989. static="false" final="false" visibility="public"
  12990. deprecated="not deprecated">
  12991. <param name="in" type="java.io.DataInput"/>
  12992. <exception name="IOException" type="java.io.IOException"/>
  12993. <doc>
  12994. <![CDATA[deserialize]]>
  12995. </doc>
  12996. </method>
  12997. <method name="skip"
  12998. abstract="false" native="false" synchronized="false"
  12999. static="true" final="false" visibility="public"
  13000. deprecated="not deprecated">
  13001. <param name="in" type="java.io.DataInput"/>
  13002. <exception name="IOException" type="java.io.IOException"/>
  13003. <doc>
  13004. <![CDATA[Skips over one Text in the input.]]>
  13005. </doc>
  13006. </method>
  13007. <method name="write"
  13008. abstract="false" native="false" synchronized="false"
  13009. static="false" final="false" visibility="public"
  13010. deprecated="not deprecated">
  13011. <param name="out" type="java.io.DataOutput"/>
  13012. <exception name="IOException" type="java.io.IOException"/>
  13013. <doc>
  13014. <![CDATA[serialize
  13015. write this object to out
  13016. length uses zero-compressed encoding
  13017. @see Writable#write(DataOutput)]]>
  13018. </doc>
  13019. </method>
  13020. <method name="equals" return="boolean"
  13021. abstract="false" native="false" synchronized="false"
  13022. static="false" final="false" visibility="public"
  13023. deprecated="not deprecated">
  13024. <param name="o" type="java.lang.Object"/>
  13025. <doc>
  13026. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  13027. </doc>
  13028. </method>
  13029. <method name="hashCode" return="int"
  13030. abstract="false" native="false" synchronized="false"
  13031. static="false" final="false" visibility="public"
  13032. deprecated="not deprecated">
  13033. </method>
  13034. <method name="decode" return="java.lang.String"
  13035. abstract="false" native="false" synchronized="false"
  13036. static="true" final="false" visibility="public"
  13037. deprecated="not deprecated">
  13038. <param name="utf8" type="byte[]"/>
  13039. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13040. <doc>
  13041. <![CDATA[Converts the provided byte array to a String using the
  13042. UTF-8 encoding. If the input is malformed,
  13043. replace by a default value.]]>
  13044. </doc>
  13045. </method>
  13046. <method name="decode" return="java.lang.String"
  13047. abstract="false" native="false" synchronized="false"
  13048. static="true" final="false" visibility="public"
  13049. deprecated="not deprecated">
  13050. <param name="utf8" type="byte[]"/>
  13051. <param name="start" type="int"/>
  13052. <param name="length" type="int"/>
  13053. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13054. </method>
  13055. <method name="decode" return="java.lang.String"
  13056. abstract="false" native="false" synchronized="false"
  13057. static="true" final="false" visibility="public"
  13058. deprecated="not deprecated">
  13059. <param name="utf8" type="byte[]"/>
  13060. <param name="start" type="int"/>
  13061. <param name="length" type="int"/>
  13062. <param name="replace" type="boolean"/>
  13063. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13064. <doc>
  13065. <![CDATA[Converts the provided byte array to a String using the
  13066. UTF-8 encoding. If <code>replace</code> is true, then
  13067. malformed input is replaced with the
  13068. substitution character, which is U+FFFD. Otherwise the
  13069. method throws a MalformedInputException.]]>
  13070. </doc>
  13071. </method>
  13072. <method name="encode" return="java.nio.ByteBuffer"
  13073. abstract="false" native="false" synchronized="false"
  13074. static="true" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <param name="string" type="java.lang.String"/>
  13077. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13078. <doc>
  13079. <![CDATA[Converts the provided String to bytes using the
  13080. UTF-8 encoding. If the input is malformed,
  13081. invalid chars are replaced by a default value.
  13082. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13083. and length is ByteBuffer.limit()]]>
  13084. </doc>
  13085. </method>
  13086. <method name="encode" return="java.nio.ByteBuffer"
  13087. abstract="false" native="false" synchronized="false"
  13088. static="true" final="false" visibility="public"
  13089. deprecated="not deprecated">
  13090. <param name="string" type="java.lang.String"/>
  13091. <param name="replace" type="boolean"/>
  13092. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  13093. <doc>
  13094. <![CDATA[Converts the provided String to bytes using the
  13095. UTF-8 encoding. If <code>replace</code> is true, then
  13096. malformed input is replaced with the
  13097. substitution character, which is U+FFFD. Otherwise the
  13098. method throws a MalformedInputException.
  13099. @return ByteBuffer: bytes stores at ByteBuffer.array()
  13100. and length is ByteBuffer.limit()]]>
  13101. </doc>
  13102. </method>
  13103. <method name="readString" return="java.lang.String"
  13104. abstract="false" native="false" synchronized="false"
  13105. static="true" final="false" visibility="public"
  13106. deprecated="not deprecated">
  13107. <param name="in" type="java.io.DataInput"/>
  13108. <exception name="IOException" type="java.io.IOException"/>
  13109. <doc>
  13110. <![CDATA[Read a UTF8 encoded string from in]]>
  13111. </doc>
  13112. </method>
  13113. <method name="writeString" return="int"
  13114. abstract="false" native="false" synchronized="false"
  13115. static="true" final="false" visibility="public"
  13116. deprecated="not deprecated">
  13117. <param name="out" type="java.io.DataOutput"/>
  13118. <param name="s" type="java.lang.String"/>
  13119. <exception name="IOException" type="java.io.IOException"/>
  13120. <doc>
  13121. <![CDATA[Write a UTF8 encoded string to out]]>
  13122. </doc>
  13123. </method>
  13124. <method name="validateUTF8"
  13125. abstract="false" native="false" synchronized="false"
  13126. static="true" final="false" visibility="public"
  13127. deprecated="not deprecated">
  13128. <param name="utf8" type="byte[]"/>
  13129. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13130. <doc>
  13131. <![CDATA[Check if a byte array contains valid utf-8
  13132. @param utf8 byte array
  13133. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  13134. </doc>
  13135. </method>
  13136. <method name="validateUTF8"
  13137. abstract="false" native="false" synchronized="false"
  13138. static="true" final="false" visibility="public"
  13139. deprecated="not deprecated">
  13140. <param name="utf8" type="byte[]"/>
  13141. <param name="start" type="int"/>
  13142. <param name="len" type="int"/>
  13143. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  13144. <doc>
  13145. <![CDATA[Check to see if a byte array is valid utf-8
  13146. @param utf8 the array of bytes
  13147. @param start the offset of the first byte in the array
  13148. @param len the length of the byte sequence
  13149. @throws MalformedInputException if the byte array contains invalid bytes]]>
  13150. </doc>
  13151. </method>
  13152. <method name="bytesToCodePoint" return="int"
  13153. abstract="false" native="false" synchronized="false"
  13154. static="true" final="false" visibility="public"
  13155. deprecated="not deprecated">
  13156. <param name="bytes" type="java.nio.ByteBuffer"/>
  13157. <doc>
  13158. <![CDATA[Returns the next code point at the current position in
  13159. the buffer. The buffer's position will be incremented.
  13160. Any mark set on this buffer will be changed by this method!]]>
  13161. </doc>
  13162. </method>
  13163. <method name="utf8Length" return="int"
  13164. abstract="false" native="false" synchronized="false"
  13165. static="true" final="false" visibility="public"
  13166. deprecated="not deprecated">
  13167. <param name="string" type="java.lang.String"/>
  13168. <doc>
  13169. <![CDATA[For the given string, returns the number of UTF-8 bytes
  13170. required to encode the string.
  13171. @param string text to encode
  13172. @return number of UTF-8 bytes required to encode]]>
  13173. </doc>
  13174. </method>
  13175. <doc>
  13176. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  13177. to serialize, deserialize, and compare texts at byte level. The type of
  13178. length is integer and is serialized using zero-compressed format. <p>In
  13179. addition, it provides methods for string traversal without converting the
  13180. byte array to a string. <p>Also includes utilities for
  13181. serializing/deserialing a string, coding/decoding a string, checking if a
  13182. byte array contains valid UTF8 code, calculating the length of an encoded
  13183. string.]]>
  13184. </doc>
  13185. </class>
  13186. <!-- end class org.apache.hadoop.io.Text -->
  13187. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  13188. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13189. abstract="false"
  13190. static="true" final="false" visibility="public"
  13191. deprecated="not deprecated">
  13192. <constructor name="Text.Comparator"
  13193. static="false" final="false" visibility="public"
  13194. deprecated="not deprecated">
  13195. </constructor>
  13196. <method name="compare" return="int"
  13197. abstract="false" native="false" synchronized="false"
  13198. static="false" final="false" visibility="public"
  13199. deprecated="not deprecated">
  13200. <param name="b1" type="byte[]"/>
  13201. <param name="s1" type="int"/>
  13202. <param name="l1" type="int"/>
  13203. <param name="b2" type="byte[]"/>
  13204. <param name="s2" type="int"/>
  13205. <param name="l2" type="int"/>
  13206. </method>
  13207. <doc>
  13208. <![CDATA[A WritableComparator optimized for Text keys.]]>
  13209. </doc>
  13210. </class>
  13211. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  13212. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  13213. <class name="TwoDArrayWritable" extends="java.lang.Object"
  13214. abstract="false"
  13215. static="false" final="false" visibility="public"
  13216. deprecated="not deprecated">
  13217. <implements name="org.apache.hadoop.io.Writable"/>
  13218. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  13219. static="false" final="false" visibility="public"
  13220. deprecated="not deprecated">
  13221. </constructor>
  13222. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  13223. static="false" final="false" visibility="public"
  13224. deprecated="not deprecated">
  13225. </constructor>
  13226. <method name="toArray" return="java.lang.Object"
  13227. abstract="false" native="false" synchronized="false"
  13228. static="false" final="false" visibility="public"
  13229. deprecated="not deprecated">
  13230. </method>
  13231. <method name="set"
  13232. abstract="false" native="false" synchronized="false"
  13233. static="false" final="false" visibility="public"
  13234. deprecated="not deprecated">
  13235. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  13236. </method>
  13237. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  13238. abstract="false" native="false" synchronized="false"
  13239. static="false" final="false" visibility="public"
  13240. deprecated="not deprecated">
  13241. </method>
  13242. <method name="readFields"
  13243. abstract="false" native="false" synchronized="false"
  13244. static="false" final="false" visibility="public"
  13245. deprecated="not deprecated">
  13246. <param name="in" type="java.io.DataInput"/>
  13247. <exception name="IOException" type="java.io.IOException"/>
  13248. </method>
  13249. <method name="write"
  13250. abstract="false" native="false" synchronized="false"
  13251. static="false" final="false" visibility="public"
  13252. deprecated="not deprecated">
  13253. <param name="out" type="java.io.DataOutput"/>
  13254. <exception name="IOException" type="java.io.IOException"/>
  13255. </method>
  13256. <doc>
  13257. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  13258. </doc>
  13259. </class>
  13260. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  13261. <!-- start class org.apache.hadoop.io.UTF8 -->
  13262. <class name="UTF8" extends="java.lang.Object"
  13263. abstract="false"
  13264. static="false" final="false" visibility="public"
  13265. deprecated="replaced by Text">
  13266. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13267. <constructor name="UTF8"
  13268. static="false" final="false" visibility="public"
  13269. deprecated="not deprecated">
  13270. </constructor>
  13271. <constructor name="UTF8" type="java.lang.String"
  13272. static="false" final="false" visibility="public"
  13273. deprecated="not deprecated">
  13274. <doc>
  13275. <![CDATA[Construct from a given string.]]>
  13276. </doc>
  13277. </constructor>
  13278. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  13279. static="false" final="false" visibility="public"
  13280. deprecated="not deprecated">
  13281. <doc>
  13282. <![CDATA[Construct from a given string.]]>
  13283. </doc>
  13284. </constructor>
  13285. <method name="getBytes" return="byte[]"
  13286. abstract="false" native="false" synchronized="false"
  13287. static="false" final="false" visibility="public"
  13288. deprecated="not deprecated">
  13289. <doc>
  13290. <![CDATA[The raw bytes.]]>
  13291. </doc>
  13292. </method>
  13293. <method name="getLength" return="int"
  13294. abstract="false" native="false" synchronized="false"
  13295. static="false" final="false" visibility="public"
  13296. deprecated="not deprecated">
  13297. <doc>
  13298. <![CDATA[The number of bytes in the encoded string.]]>
  13299. </doc>
  13300. </method>
  13301. <method name="set"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="false" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="string" type="java.lang.String"/>
  13306. <doc>
  13307. <![CDATA[Set to contain the contents of a string.]]>
  13308. </doc>
  13309. </method>
  13310. <method name="set"
  13311. abstract="false" native="false" synchronized="false"
  13312. static="false" final="false" visibility="public"
  13313. deprecated="not deprecated">
  13314. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  13315. <doc>
  13316. <![CDATA[Set to contain the contents of a string.]]>
  13317. </doc>
  13318. </method>
  13319. <method name="readFields"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="false" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. <param name="in" type="java.io.DataInput"/>
  13324. <exception name="IOException" type="java.io.IOException"/>
  13325. </method>
  13326. <method name="skip"
  13327. abstract="false" native="false" synchronized="false"
  13328. static="true" final="false" visibility="public"
  13329. deprecated="not deprecated">
  13330. <param name="in" type="java.io.DataInput"/>
  13331. <exception name="IOException" type="java.io.IOException"/>
  13332. <doc>
  13333. <![CDATA[Skips over one UTF8 in the input.]]>
  13334. </doc>
  13335. </method>
  13336. <method name="write"
  13337. abstract="false" native="false" synchronized="false"
  13338. static="false" final="false" visibility="public"
  13339. deprecated="not deprecated">
  13340. <param name="out" type="java.io.DataOutput"/>
  13341. <exception name="IOException" type="java.io.IOException"/>
  13342. </method>
  13343. <method name="compareTo" return="int"
  13344. abstract="false" native="false" synchronized="false"
  13345. static="false" final="false" visibility="public"
  13346. deprecated="not deprecated">
  13347. <param name="o" type="java.lang.Object"/>
  13348. <doc>
  13349. <![CDATA[Compare two UTF8s.]]>
  13350. </doc>
  13351. </method>
  13352. <method name="toString" return="java.lang.String"
  13353. abstract="false" native="false" synchronized="false"
  13354. static="false" final="false" visibility="public"
  13355. deprecated="not deprecated">
  13356. <doc>
  13357. <![CDATA[Convert to a String.]]>
  13358. </doc>
  13359. </method>
  13360. <method name="equals" return="boolean"
  13361. abstract="false" native="false" synchronized="false"
  13362. static="false" final="false" visibility="public"
  13363. deprecated="not deprecated">
  13364. <param name="o" type="java.lang.Object"/>
  13365. <doc>
  13366. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  13367. </doc>
  13368. </method>
  13369. <method name="hashCode" return="int"
  13370. abstract="false" native="false" synchronized="false"
  13371. static="false" final="false" visibility="public"
  13372. deprecated="not deprecated">
  13373. </method>
  13374. <method name="getBytes" return="byte[]"
  13375. abstract="false" native="false" synchronized="false"
  13376. static="true" final="false" visibility="public"
  13377. deprecated="not deprecated">
  13378. <param name="string" type="java.lang.String"/>
  13379. <doc>
  13380. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  13381. @see String#getBytes(String)]]>
  13382. </doc>
  13383. </method>
  13384. <method name="readString" return="java.lang.String"
  13385. abstract="false" native="false" synchronized="false"
  13386. static="true" final="false" visibility="public"
  13387. deprecated="not deprecated">
  13388. <param name="in" type="java.io.DataInput"/>
  13389. <exception name="IOException" type="java.io.IOException"/>
  13390. <doc>
  13391. <![CDATA[Read a UTF-8 encoded string.
  13392. @see DataInput#readUTF()]]>
  13393. </doc>
  13394. </method>
  13395. <method name="writeString" return="int"
  13396. abstract="false" native="false" synchronized="false"
  13397. static="true" final="false" visibility="public"
  13398. deprecated="not deprecated">
  13399. <param name="out" type="java.io.DataOutput"/>
  13400. <param name="s" type="java.lang.String"/>
  13401. <exception name="IOException" type="java.io.IOException"/>
  13402. <doc>
  13403. <![CDATA[Write a UTF-8 encoded string.
  13404. @see DataOutput#writeUTF(String)]]>
  13405. </doc>
  13406. </method>
  13407. <doc>
  13408. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  13409. <p>Also includes utilities for efficiently reading and writing UTF-8.
  13410. @deprecated replaced by Text]]>
  13411. </doc>
  13412. </class>
  13413. <!-- end class org.apache.hadoop.io.UTF8 -->
  13414. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  13415. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13416. abstract="false"
  13417. static="true" final="false" visibility="public"
  13418. deprecated="not deprecated">
  13419. <constructor name="UTF8.Comparator"
  13420. static="false" final="false" visibility="public"
  13421. deprecated="not deprecated">
  13422. </constructor>
  13423. <method name="compare" return="int"
  13424. abstract="false" native="false" synchronized="false"
  13425. static="false" final="false" visibility="public"
  13426. deprecated="not deprecated">
  13427. <param name="b1" type="byte[]"/>
  13428. <param name="s1" type="int"/>
  13429. <param name="l1" type="int"/>
  13430. <param name="b2" type="byte[]"/>
  13431. <param name="s2" type="int"/>
  13432. <param name="l2" type="int"/>
  13433. </method>
  13434. <doc>
  13435. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  13436. </doc>
  13437. </class>
  13438. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  13439. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  13440. <class name="VersionedWritable" extends="java.lang.Object"
  13441. abstract="true"
  13442. static="false" final="false" visibility="public"
  13443. deprecated="not deprecated">
  13444. <implements name="org.apache.hadoop.io.Writable"/>
  13445. <constructor name="VersionedWritable"
  13446. static="false" final="false" visibility="public"
  13447. deprecated="not deprecated">
  13448. </constructor>
  13449. <method name="getVersion" return="byte"
  13450. abstract="true" native="false" synchronized="false"
  13451. static="false" final="false" visibility="public"
  13452. deprecated="not deprecated">
  13453. <doc>
  13454. <![CDATA[Return the version number of the current implementation.]]>
  13455. </doc>
  13456. </method>
  13457. <method name="write"
  13458. abstract="false" native="false" synchronized="false"
  13459. static="false" final="false" visibility="public"
  13460. deprecated="not deprecated">
  13461. <param name="out" type="java.io.DataOutput"/>
  13462. <exception name="IOException" type="java.io.IOException"/>
  13463. </method>
  13464. <method name="readFields"
  13465. abstract="false" native="false" synchronized="false"
  13466. static="false" final="false" visibility="public"
  13467. deprecated="not deprecated">
  13468. <param name="in" type="java.io.DataInput"/>
  13469. <exception name="IOException" type="java.io.IOException"/>
  13470. </method>
  13471. <doc>
  13472. <![CDATA[A base class for Writables that provides version checking.
  13473. <p>This is useful when a class may evolve, so that instances written by the
  13474. old version of the class may still be processed by the new version. To
  13475. handle this situation, {@link #readFields(DataInput)}
  13476. implementations should catch {@link VersionMismatchException}.]]>
  13477. </doc>
  13478. </class>
  13479. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  13480. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  13481. <class name="VersionMismatchException" extends="java.io.IOException"
  13482. abstract="false"
  13483. static="false" final="false" visibility="public"
  13484. deprecated="not deprecated">
  13485. <constructor name="VersionMismatchException" type="byte, byte"
  13486. static="false" final="false" visibility="public"
  13487. deprecated="not deprecated">
  13488. </constructor>
  13489. <method name="toString" return="java.lang.String"
  13490. abstract="false" native="false" synchronized="false"
  13491. static="false" final="false" visibility="public"
  13492. deprecated="not deprecated">
  13493. <doc>
  13494. <![CDATA[Returns a string representation of this object.]]>
  13495. </doc>
  13496. </method>
  13497. <doc>
  13498. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  13499. version of an object being read does not match the current implementation
  13500. version as returned by {@link VersionedWritable#getVersion()}.]]>
  13501. </doc>
  13502. </class>
  13503. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  13504. <!-- start class org.apache.hadoop.io.VIntWritable -->
  13505. <class name="VIntWritable" extends="java.lang.Object"
  13506. abstract="false"
  13507. static="false" final="false" visibility="public"
  13508. deprecated="not deprecated">
  13509. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13510. <constructor name="VIntWritable"
  13511. static="false" final="false" visibility="public"
  13512. deprecated="not deprecated">
  13513. </constructor>
  13514. <constructor name="VIntWritable" type="int"
  13515. static="false" final="false" visibility="public"
  13516. deprecated="not deprecated">
  13517. </constructor>
  13518. <method name="set"
  13519. abstract="false" native="false" synchronized="false"
  13520. static="false" final="false" visibility="public"
  13521. deprecated="not deprecated">
  13522. <param name="value" type="int"/>
  13523. <doc>
  13524. <![CDATA[Set the value of this VIntWritable.]]>
  13525. </doc>
  13526. </method>
  13527. <method name="get" return="int"
  13528. abstract="false" native="false" synchronized="false"
  13529. static="false" final="false" visibility="public"
  13530. deprecated="not deprecated">
  13531. <doc>
  13532. <![CDATA[Return the value of this VIntWritable.]]>
  13533. </doc>
  13534. </method>
  13535. <method name="readFields"
  13536. abstract="false" native="false" synchronized="false"
  13537. static="false" final="false" visibility="public"
  13538. deprecated="not deprecated">
  13539. <param name="in" type="java.io.DataInput"/>
  13540. <exception name="IOException" type="java.io.IOException"/>
  13541. </method>
  13542. <method name="write"
  13543. abstract="false" native="false" synchronized="false"
  13544. static="false" final="false" visibility="public"
  13545. deprecated="not deprecated">
  13546. <param name="out" type="java.io.DataOutput"/>
  13547. <exception name="IOException" type="java.io.IOException"/>
  13548. </method>
  13549. <method name="equals" return="boolean"
  13550. abstract="false" native="false" synchronized="false"
  13551. static="false" final="false" visibility="public"
  13552. deprecated="not deprecated">
  13553. <param name="o" type="java.lang.Object"/>
  13554. <doc>
  13555. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  13556. </doc>
  13557. </method>
  13558. <method name="hashCode" return="int"
  13559. abstract="false" native="false" synchronized="false"
  13560. static="false" final="false" visibility="public"
  13561. deprecated="not deprecated">
  13562. </method>
  13563. <method name="compareTo" return="int"
  13564. abstract="false" native="false" synchronized="false"
  13565. static="false" final="false" visibility="public"
  13566. deprecated="not deprecated">
  13567. <param name="o" type="java.lang.Object"/>
  13568. <doc>
  13569. <![CDATA[Compares two VIntWritables.]]>
  13570. </doc>
  13571. </method>
  13572. <method name="toString" return="java.lang.String"
  13573. abstract="false" native="false" synchronized="false"
  13574. static="false" final="false" visibility="public"
  13575. deprecated="not deprecated">
  13576. </method>
  13577. <doc>
  13578. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  13579. Such values take between one and five bytes. Smaller values take fewer bytes.
  13580. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  13581. </doc>
  13582. </class>
  13583. <!-- end class org.apache.hadoop.io.VIntWritable -->
  13584. <!-- start class org.apache.hadoop.io.VLongWritable -->
  13585. <class name="VLongWritable" extends="java.lang.Object"
  13586. abstract="false"
  13587. static="false" final="false" visibility="public"
  13588. deprecated="not deprecated">
  13589. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13590. <constructor name="VLongWritable"
  13591. static="false" final="false" visibility="public"
  13592. deprecated="not deprecated">
  13593. </constructor>
  13594. <constructor name="VLongWritable" type="long"
  13595. static="false" final="false" visibility="public"
  13596. deprecated="not deprecated">
  13597. </constructor>
  13598. <method name="set"
  13599. abstract="false" native="false" synchronized="false"
  13600. static="false" final="false" visibility="public"
  13601. deprecated="not deprecated">
  13602. <param name="value" type="long"/>
  13603. <doc>
  13604. <![CDATA[Set the value of this LongWritable.]]>
  13605. </doc>
  13606. </method>
  13607. <method name="get" return="long"
  13608. abstract="false" native="false" synchronized="false"
  13609. static="false" final="false" visibility="public"
  13610. deprecated="not deprecated">
  13611. <doc>
  13612. <![CDATA[Return the value of this LongWritable.]]>
  13613. </doc>
  13614. </method>
  13615. <method name="readFields"
  13616. abstract="false" native="false" synchronized="false"
  13617. static="false" final="false" visibility="public"
  13618. deprecated="not deprecated">
  13619. <param name="in" type="java.io.DataInput"/>
  13620. <exception name="IOException" type="java.io.IOException"/>
  13621. </method>
  13622. <method name="write"
  13623. abstract="false" native="false" synchronized="false"
  13624. static="false" final="false" visibility="public"
  13625. deprecated="not deprecated">
  13626. <param name="out" type="java.io.DataOutput"/>
  13627. <exception name="IOException" type="java.io.IOException"/>
  13628. </method>
  13629. <method name="equals" return="boolean"
  13630. abstract="false" native="false" synchronized="false"
  13631. static="false" final="false" visibility="public"
  13632. deprecated="not deprecated">
  13633. <param name="o" type="java.lang.Object"/>
  13634. <doc>
  13635. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  13636. </doc>
  13637. </method>
  13638. <method name="hashCode" return="int"
  13639. abstract="false" native="false" synchronized="false"
  13640. static="false" final="false" visibility="public"
  13641. deprecated="not deprecated">
  13642. </method>
  13643. <method name="compareTo" return="int"
  13644. abstract="false" native="false" synchronized="false"
  13645. static="false" final="false" visibility="public"
  13646. deprecated="not deprecated">
  13647. <param name="o" type="java.lang.Object"/>
  13648. <doc>
  13649. <![CDATA[Compares two VLongWritables.]]>
  13650. </doc>
  13651. </method>
  13652. <method name="toString" return="java.lang.String"
  13653. abstract="false" native="false" synchronized="false"
  13654. static="false" final="false" visibility="public"
  13655. deprecated="not deprecated">
  13656. </method>
  13657. <doc>
  13658. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  13659. between one and five bytes. Smaller values take fewer bytes.
  13660. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  13661. </doc>
  13662. </class>
  13663. <!-- end class org.apache.hadoop.io.VLongWritable -->
  13664. <!-- start interface org.apache.hadoop.io.Writable -->
  13665. <interface name="Writable" abstract="true"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <method name="write"
  13669. abstract="false" native="false" synchronized="false"
  13670. static="false" final="false" visibility="public"
  13671. deprecated="not deprecated">
  13672. <param name="out" type="java.io.DataOutput"/>
  13673. <exception name="IOException" type="java.io.IOException"/>
  13674. <doc>
  13675. <![CDATA[Serialize the fields of this object to <code>out</code>.
  13676. @param out <code>DataOuput</code> to serialize this object into.
  13677. @throws IOException]]>
  13678. </doc>
  13679. </method>
  13680. <method name="readFields"
  13681. abstract="false" native="false" synchronized="false"
  13682. static="false" final="false" visibility="public"
  13683. deprecated="not deprecated">
  13684. <param name="in" type="java.io.DataInput"/>
  13685. <exception name="IOException" type="java.io.IOException"/>
  13686. <doc>
  13687. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  13688. <p>For efficiency, implementations should attempt to re-use storage in the
  13689. existing object where possible.</p>
  13690. @param in <code>DataInput</code> to deseriablize this object from.
  13691. @throws IOException]]>
  13692. </doc>
  13693. </method>
  13694. <doc>
  13695. <![CDATA[A serializable object which implements a simple, efficient, serialization
  13696. protocol, based on {@link DataInput} and {@link DataOutput}.
  13697. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  13698. framework implements this interface.</p>
  13699. <p>Implementations typically implement a static <code>read(DataInput)</code>
  13700. method which constructs a new instance, calls {@link #readFields(DataInput)}
  13701. and returns the instance.</p>
  13702. <p>Example:</p>
  13703. <p><blockquote><pre>
  13704. public class MyWritable implements Writable {
  13705. // Some data
  13706. private int counter;
  13707. private long timestamp;
  13708. public void write(DataOutput out) throws IOException {
  13709. out.writeInt(counter);
  13710. out.writeLong(timestamp);
  13711. }
  13712. public void readFields(DataInput in) throws IOException {
  13713. counter = in.readInt();
  13714. timestamp = in.readLong();
  13715. }
  13716. public static MyWritable read(DataInput in) throws IOException {
  13717. MyWritable w = new MyWritable();
  13718. w.readFields(in);
  13719. return w;
  13720. }
  13721. }
  13722. </pre></blockquote></p>]]>
  13723. </doc>
  13724. </interface>
  13725. <!-- end interface org.apache.hadoop.io.Writable -->
  13726. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  13727. <interface name="WritableComparable" abstract="true"
  13728. static="false" final="false" visibility="public"
  13729. deprecated="not deprecated">
  13730. <implements name="org.apache.hadoop.io.Writable"/>
  13731. <implements name="java.lang.Comparable&lt;T&gt;"/>
  13732. <doc>
  13733. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  13734. <p><code>WritableComparable</code>s can be compared to each other, typically
  13735. via <code>Comparator</code>s. Any type which is to be used as a
  13736. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  13737. interface.</p>
  13738. <p>Example:</p>
  13739. <p><blockquote><pre>
  13740. public class MyWritableComparable implements WritableComparable {
  13741. // Some data
  13742. private int counter;
  13743. private long timestamp;
  13744. public void write(DataOutput out) throws IOException {
  13745. out.writeInt(counter);
  13746. out.writeLong(timestamp);
  13747. }
  13748. public void readFields(DataInput in) throws IOException {
  13749. counter = in.readInt();
  13750. timestamp = in.readLong();
  13751. }
  13752. public int compareTo(MyWritableComparable w) {
  13753. int thisValue = this.value;
  13754. int thatValue = ((IntWritable)o).value;
  13755. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  13756. }
  13757. }
  13758. </pre></blockquote></p>]]>
  13759. </doc>
  13760. </interface>
  13761. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  13762. <!-- start class org.apache.hadoop.io.WritableComparator -->
  13763. <class name="WritableComparator" extends="java.lang.Object"
  13764. abstract="false"
  13765. static="false" final="false" visibility="public"
  13766. deprecated="not deprecated">
  13767. <implements name="org.apache.hadoop.io.RawComparator"/>
  13768. <constructor name="WritableComparator" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  13769. static="false" final="false" visibility="protected"
  13770. deprecated="not deprecated">
  13771. <doc>
  13772. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  13773. </doc>
  13774. </constructor>
  13775. <constructor name="WritableComparator" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;, boolean"
  13776. static="false" final="false" visibility="protected"
  13777. deprecated="not deprecated">
  13778. </constructor>
  13779. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  13780. abstract="false" native="false" synchronized="true"
  13781. static="true" final="false" visibility="public"
  13782. deprecated="not deprecated">
  13783. <param name="c" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"/>
  13784. <doc>
  13785. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  13786. </doc>
  13787. </method>
  13788. <method name="define"
  13789. abstract="false" native="false" synchronized="true"
  13790. static="true" final="false" visibility="public"
  13791. deprecated="not deprecated">
  13792. <param name="c" type="java.lang.Class"/>
  13793. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  13794. <doc>
  13795. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  13796. implementation.]]>
  13797. </doc>
  13798. </method>
  13799. <method name="getKeyClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  13800. abstract="false" native="false" synchronized="false"
  13801. static="false" final="false" visibility="public"
  13802. deprecated="not deprecated">
  13803. <doc>
  13804. <![CDATA[Returns the WritableComparable implementation class.]]>
  13805. </doc>
  13806. </method>
  13807. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  13808. abstract="false" native="false" synchronized="false"
  13809. static="false" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <doc>
  13812. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  13813. </doc>
  13814. </method>
  13815. <method name="compare" return="int"
  13816. abstract="false" native="false" synchronized="false"
  13817. static="false" final="false" visibility="public"
  13818. deprecated="not deprecated">
  13819. <param name="b1" type="byte[]"/>
  13820. <param name="s1" type="int"/>
  13821. <param name="l1" type="int"/>
  13822. <param name="b2" type="byte[]"/>
  13823. <param name="s2" type="int"/>
  13824. <param name="l2" type="int"/>
  13825. <doc>
  13826. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  13827. <p>The default implementation reads the data into two {@link
  13828. WritableComparable}s (using {@link
  13829. Writable#readFields(DataInput)}, then calls {@link
  13830. #compare(WritableComparable,WritableComparable)}.]]>
  13831. </doc>
  13832. </method>
  13833. <method name="compare" return="int"
  13834. abstract="false" native="false" synchronized="false"
  13835. static="false" final="false" visibility="public"
  13836. deprecated="not deprecated">
  13837. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  13838. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  13839. <doc>
  13840. <![CDATA[Compare two WritableComparables.
  13841. <p> The default implementation uses the natural ordering, calling {@link
  13842. Comparable#compareTo(Object)}.]]>
  13843. </doc>
  13844. </method>
  13845. <method name="compare" return="int"
  13846. abstract="false" native="false" synchronized="false"
  13847. static="false" final="false" visibility="public"
  13848. deprecated="not deprecated">
  13849. <param name="a" type="java.lang.Object"/>
  13850. <param name="b" type="java.lang.Object"/>
  13851. </method>
  13852. <method name="compareBytes" return="int"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="true" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <param name="b1" type="byte[]"/>
  13857. <param name="s1" type="int"/>
  13858. <param name="l1" type="int"/>
  13859. <param name="b2" type="byte[]"/>
  13860. <param name="s2" type="int"/>
  13861. <param name="l2" type="int"/>
  13862. <doc>
  13863. <![CDATA[Lexicographic order of binary data.]]>
  13864. </doc>
  13865. </method>
  13866. <method name="hashBytes" return="int"
  13867. abstract="false" native="false" synchronized="false"
  13868. static="true" final="false" visibility="public"
  13869. deprecated="not deprecated">
  13870. <param name="bytes" type="byte[]"/>
  13871. <param name="length" type="int"/>
  13872. <doc>
  13873. <![CDATA[Compute hash for binary data.]]>
  13874. </doc>
  13875. </method>
  13876. <method name="readUnsignedShort" return="int"
  13877. abstract="false" native="false" synchronized="false"
  13878. static="true" final="false" visibility="public"
  13879. deprecated="not deprecated">
  13880. <param name="bytes" type="byte[]"/>
  13881. <param name="start" type="int"/>
  13882. <doc>
  13883. <![CDATA[Parse an unsigned short from a byte array.]]>
  13884. </doc>
  13885. </method>
  13886. <method name="readInt" return="int"
  13887. abstract="false" native="false" synchronized="false"
  13888. static="true" final="false" visibility="public"
  13889. deprecated="not deprecated">
  13890. <param name="bytes" type="byte[]"/>
  13891. <param name="start" type="int"/>
  13892. <doc>
  13893. <![CDATA[Parse an integer from a byte array.]]>
  13894. </doc>
  13895. </method>
  13896. <method name="readFloat" return="float"
  13897. abstract="false" native="false" synchronized="false"
  13898. static="true" final="false" visibility="public"
  13899. deprecated="not deprecated">
  13900. <param name="bytes" type="byte[]"/>
  13901. <param name="start" type="int"/>
  13902. <doc>
  13903. <![CDATA[Parse a float from a byte array.]]>
  13904. </doc>
  13905. </method>
  13906. <method name="readLong" return="long"
  13907. abstract="false" native="false" synchronized="false"
  13908. static="true" final="false" visibility="public"
  13909. deprecated="not deprecated">
  13910. <param name="bytes" type="byte[]"/>
  13911. <param name="start" type="int"/>
  13912. <doc>
  13913. <![CDATA[Parse a long from a byte array.]]>
  13914. </doc>
  13915. </method>
  13916. <method name="readDouble" return="double"
  13917. abstract="false" native="false" synchronized="false"
  13918. static="true" final="false" visibility="public"
  13919. deprecated="not deprecated">
  13920. <param name="bytes" type="byte[]"/>
  13921. <param name="start" type="int"/>
  13922. <doc>
  13923. <![CDATA[Parse a double from a byte array.]]>
  13924. </doc>
  13925. </method>
  13926. <method name="readVLong" return="long"
  13927. abstract="false" native="false" synchronized="false"
  13928. static="true" final="false" visibility="public"
  13929. deprecated="not deprecated">
  13930. <param name="bytes" type="byte[]"/>
  13931. <param name="start" type="int"/>
  13932. <exception name="IOException" type="java.io.IOException"/>
  13933. <doc>
  13934. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  13935. @param bytes byte array with decode long
  13936. @param start starting index
  13937. @throws java.io.IOException
  13938. @return deserialized long]]>
  13939. </doc>
  13940. </method>
  13941. <method name="readVInt" return="int"
  13942. abstract="false" native="false" synchronized="false"
  13943. static="true" final="false" visibility="public"
  13944. deprecated="not deprecated">
  13945. <param name="bytes" type="byte[]"/>
  13946. <param name="start" type="int"/>
  13947. <exception name="IOException" type="java.io.IOException"/>
  13948. <doc>
  13949. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  13950. @param bytes byte array with the encoded integer
  13951. @param start start index
  13952. @throws java.io.IOException
  13953. @return deserialized integer]]>
  13954. </doc>
  13955. </method>
  13956. <doc>
  13957. <![CDATA[A Comparator for {@link WritableComparable}s.
  13958. <p>This base implemenation uses the natural ordering. To define alternate
  13959. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  13960. <p>One may optimize compare-intensive operations by overriding
  13961. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  13962. provided to assist in optimized implementations of this method.]]>
  13963. </doc>
  13964. </class>
  13965. <!-- end class org.apache.hadoop.io.WritableComparator -->
  13966. <!-- start class org.apache.hadoop.io.WritableFactories -->
  13967. <class name="WritableFactories" extends="java.lang.Object"
  13968. abstract="false"
  13969. static="false" final="false" visibility="public"
  13970. deprecated="not deprecated">
  13971. <method name="setFactory"
  13972. abstract="false" native="false" synchronized="true"
  13973. static="true" final="false" visibility="public"
  13974. deprecated="not deprecated">
  13975. <param name="c" type="java.lang.Class"/>
  13976. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  13977. <doc>
  13978. <![CDATA[Define a factory for a class.]]>
  13979. </doc>
  13980. </method>
  13981. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  13982. abstract="false" native="false" synchronized="true"
  13983. static="true" final="false" visibility="public"
  13984. deprecated="not deprecated">
  13985. <param name="c" type="java.lang.Class"/>
  13986. <doc>
  13987. <![CDATA[Define a factory for a class.]]>
  13988. </doc>
  13989. </method>
  13990. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  13991. abstract="false" native="false" synchronized="false"
  13992. static="true" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. <param name="c" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"/>
  13995. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13996. <doc>
  13997. <![CDATA[Create a new instance of a class with a defined factory.]]>
  13998. </doc>
  13999. </method>
  14000. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14001. abstract="false" native="false" synchronized="false"
  14002. static="true" final="false" visibility="public"
  14003. deprecated="not deprecated">
  14004. <param name="c" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"/>
  14005. <doc>
  14006. <![CDATA[Create a new instance of a class with a defined factory.]]>
  14007. </doc>
  14008. </method>
  14009. <doc>
  14010. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  14011. ObjectWritable} to be able to construct instances of non-public classes.]]>
  14012. </doc>
  14013. </class>
  14014. <!-- end class org.apache.hadoop.io.WritableFactories -->
  14015. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  14016. <interface name="WritableFactory" abstract="true"
  14017. static="false" final="false" visibility="public"
  14018. deprecated="not deprecated">
  14019. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  14020. abstract="false" native="false" synchronized="false"
  14021. static="false" final="false" visibility="public"
  14022. deprecated="not deprecated">
  14023. <doc>
  14024. <![CDATA[Return a new instance.]]>
  14025. </doc>
  14026. </method>
  14027. <doc>
  14028. <![CDATA[A factory for a class of Writable.
  14029. @see WritableFactories]]>
  14030. </doc>
  14031. </interface>
  14032. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  14033. <!-- start class org.apache.hadoop.io.WritableName -->
  14034. <class name="WritableName" extends="java.lang.Object"
  14035. abstract="false"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <method name="setName"
  14039. abstract="false" native="false" synchronized="true"
  14040. static="true" final="false" visibility="public"
  14041. deprecated="not deprecated">
  14042. <param name="writableClass" type="java.lang.Class"/>
  14043. <param name="name" type="java.lang.String"/>
  14044. <doc>
  14045. <![CDATA[Set the name that a class should be known as to something other than the
  14046. class name.]]>
  14047. </doc>
  14048. </method>
  14049. <method name="addName"
  14050. abstract="false" native="false" synchronized="true"
  14051. static="true" final="false" visibility="public"
  14052. deprecated="not deprecated">
  14053. <param name="writableClass" type="java.lang.Class"/>
  14054. <param name="name" type="java.lang.String"/>
  14055. <doc>
  14056. <![CDATA[Add an alternate name for a class.]]>
  14057. </doc>
  14058. </method>
  14059. <method name="getName" return="java.lang.String"
  14060. abstract="false" native="false" synchronized="true"
  14061. static="true" final="false" visibility="public"
  14062. deprecated="not deprecated">
  14063. <param name="writableClass" type="java.lang.Class"/>
  14064. <doc>
  14065. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  14066. </doc>
  14067. </method>
  14068. <method name="getClass" return="java.lang.Class&lt;?&gt;"
  14069. abstract="false" native="false" synchronized="true"
  14070. static="true" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <param name="name" type="java.lang.String"/>
  14073. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14074. <exception name="IOException" type="java.io.IOException"/>
  14075. <doc>
  14076. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  14077. </doc>
  14078. </method>
  14079. <doc>
  14080. <![CDATA[Utility to permit renaming of Writable implementation classes without
  14081. invalidiating files that contain their class name.]]>
  14082. </doc>
  14083. </class>
  14084. <!-- end class org.apache.hadoop.io.WritableName -->
  14085. <!-- start class org.apache.hadoop.io.WritableUtils -->
  14086. <class name="WritableUtils" extends="java.lang.Object"
  14087. abstract="false"
  14088. static="false" final="true" visibility="public"
  14089. deprecated="not deprecated">
  14090. <constructor name="WritableUtils"
  14091. static="false" final="false" visibility="public"
  14092. deprecated="not deprecated">
  14093. </constructor>
  14094. <method name="readCompressedByteArray" return="byte[]"
  14095. abstract="false" native="false" synchronized="false"
  14096. static="true" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. <param name="in" type="java.io.DataInput"/>
  14099. <exception name="IOException" type="java.io.IOException"/>
  14100. </method>
  14101. <method name="skipCompressedByteArray"
  14102. abstract="false" native="false" synchronized="false"
  14103. static="true" final="false" visibility="public"
  14104. deprecated="not deprecated">
  14105. <param name="in" type="java.io.DataInput"/>
  14106. <exception name="IOException" type="java.io.IOException"/>
  14107. </method>
  14108. <method name="writeCompressedByteArray" return="int"
  14109. abstract="false" native="false" synchronized="false"
  14110. static="true" final="false" visibility="public"
  14111. deprecated="not deprecated">
  14112. <param name="out" type="java.io.DataOutput"/>
  14113. <param name="bytes" type="byte[]"/>
  14114. <exception name="IOException" type="java.io.IOException"/>
  14115. </method>
  14116. <method name="readCompressedString" return="java.lang.String"
  14117. abstract="false" native="false" synchronized="false"
  14118. static="true" final="false" visibility="public"
  14119. deprecated="not deprecated">
  14120. <param name="in" type="java.io.DataInput"/>
  14121. <exception name="IOException" type="java.io.IOException"/>
  14122. </method>
  14123. <method name="writeCompressedString" return="int"
  14124. abstract="false" native="false" synchronized="false"
  14125. static="true" final="false" visibility="public"
  14126. deprecated="not deprecated">
  14127. <param name="out" type="java.io.DataOutput"/>
  14128. <param name="s" type="java.lang.String"/>
  14129. <exception name="IOException" type="java.io.IOException"/>
  14130. </method>
  14131. <method name="writeString"
  14132. abstract="false" native="false" synchronized="false"
  14133. static="true" final="false" visibility="public"
  14134. deprecated="not deprecated">
  14135. <param name="out" type="java.io.DataOutput"/>
  14136. <param name="s" type="java.lang.String"/>
  14137. <exception name="IOException" type="java.io.IOException"/>
  14138. </method>
  14139. <method name="readString" return="java.lang.String"
  14140. abstract="false" native="false" synchronized="false"
  14141. static="true" final="false" visibility="public"
  14142. deprecated="not deprecated">
  14143. <param name="in" type="java.io.DataInput"/>
  14144. <exception name="IOException" type="java.io.IOException"/>
  14145. </method>
  14146. <method name="writeStringArray"
  14147. abstract="false" native="false" synchronized="false"
  14148. static="true" final="false" visibility="public"
  14149. deprecated="not deprecated">
  14150. <param name="out" type="java.io.DataOutput"/>
  14151. <param name="s" type="java.lang.String[]"/>
  14152. <exception name="IOException" type="java.io.IOException"/>
  14153. </method>
  14154. <method name="writeCompressedStringArray"
  14155. abstract="false" native="false" synchronized="false"
  14156. static="true" final="false" visibility="public"
  14157. deprecated="not deprecated">
  14158. <param name="out" type="java.io.DataOutput"/>
  14159. <param name="s" type="java.lang.String[]"/>
  14160. <exception name="IOException" type="java.io.IOException"/>
  14161. </method>
  14162. <method name="readStringArray" return="java.lang.String[]"
  14163. abstract="false" native="false" synchronized="false"
  14164. static="true" final="false" visibility="public"
  14165. deprecated="not deprecated">
  14166. <param name="in" type="java.io.DataInput"/>
  14167. <exception name="IOException" type="java.io.IOException"/>
  14168. </method>
  14169. <method name="readCompressedStringArray" return="java.lang.String[]"
  14170. abstract="false" native="false" synchronized="false"
  14171. static="true" final="false" visibility="public"
  14172. deprecated="not deprecated">
  14173. <param name="in" type="java.io.DataInput"/>
  14174. <exception name="IOException" type="java.io.IOException"/>
  14175. </method>
  14176. <method name="displayByteArray"
  14177. abstract="false" native="false" synchronized="false"
  14178. static="true" final="false" visibility="public"
  14179. deprecated="not deprecated">
  14180. <param name="record" type="byte[]"/>
  14181. </method>
  14182. <method name="clone" return="T extends org.apache.hadoop.io.Writable"
  14183. abstract="false" native="false" synchronized="false"
  14184. static="true" final="false" visibility="public"
  14185. deprecated="not deprecated">
  14186. <param name="orig" type="T extends org.apache.hadoop.io.Writable"/>
  14187. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14188. <doc>
  14189. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  14190. @param orig The object to copy
  14191. @return The copied object]]>
  14192. </doc>
  14193. </method>
  14194. <method name="cloneInto"
  14195. abstract="false" native="false" synchronized="false"
  14196. static="true" final="false" visibility="public"
  14197. deprecated="not deprecated">
  14198. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  14199. <param name="src" type="org.apache.hadoop.io.Writable"/>
  14200. <exception name="IOException" type="java.io.IOException"/>
  14201. <doc>
  14202. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  14203. @param dst the object to copy from
  14204. @param src the object to copy into, which is destroyed
  14205. @throws IOException]]>
  14206. </doc>
  14207. </method>
  14208. <method name="writeVInt"
  14209. abstract="false" native="false" synchronized="false"
  14210. static="true" final="false" visibility="public"
  14211. deprecated="not deprecated">
  14212. <param name="stream" type="java.io.DataOutput"/>
  14213. <param name="i" type="int"/>
  14214. <exception name="IOException" type="java.io.IOException"/>
  14215. <doc>
  14216. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  14217. For -120 <= i <= 127, only one byte is used with the actual value.
  14218. For other values of i, the first byte value indicates whether the
  14219. integer is positive or negative, and the number of bytes that follow.
  14220. If the first byte value v is between -121 and -124, the following integer
  14221. is positive, with number of bytes that follow are -(v+120).
  14222. If the first byte value v is between -125 and -128, the following integer
  14223. is negative, with number of bytes that follow are -(v+124). Bytes are
  14224. stored in the high-non-zero-byte-first order.
  14225. @param stream Binary output stream
  14226. @param i Integer to be serialized
  14227. @throws java.io.IOException]]>
  14228. </doc>
  14229. </method>
  14230. <method name="writeVLong"
  14231. abstract="false" native="false" synchronized="false"
  14232. static="true" final="false" visibility="public"
  14233. deprecated="not deprecated">
  14234. <param name="stream" type="java.io.DataOutput"/>
  14235. <param name="i" type="long"/>
  14236. <exception name="IOException" type="java.io.IOException"/>
  14237. <doc>
  14238. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  14239. For -112 <= i <= 127, only one byte is used with the actual value.
  14240. For other values of i, the first byte value indicates whether the
  14241. long is positive or negative, and the number of bytes that follow.
  14242. If the first byte value v is between -113 and -120, the following long
  14243. is positive, with number of bytes that follow are -(v+112).
  14244. If the first byte value v is between -121 and -128, the following long
  14245. is negative, with number of bytes that follow are -(v+120). Bytes are
  14246. stored in the high-non-zero-byte-first order.
  14247. @param stream Binary output stream
  14248. @param i Long to be serialized
  14249. @throws java.io.IOException]]>
  14250. </doc>
  14251. </method>
  14252. <method name="readVLong" return="long"
  14253. abstract="false" native="false" synchronized="false"
  14254. static="true" final="false" visibility="public"
  14255. deprecated="not deprecated">
  14256. <param name="stream" type="java.io.DataInput"/>
  14257. <exception name="IOException" type="java.io.IOException"/>
  14258. <doc>
  14259. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  14260. @param stream Binary input stream
  14261. @throws java.io.IOException
  14262. @return deserialized long from stream.]]>
  14263. </doc>
  14264. </method>
  14265. <method name="readVInt" return="int"
  14266. abstract="false" native="false" synchronized="false"
  14267. static="true" final="false" visibility="public"
  14268. deprecated="not deprecated">
  14269. <param name="stream" type="java.io.DataInput"/>
  14270. <exception name="IOException" type="java.io.IOException"/>
  14271. <doc>
  14272. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  14273. @param stream Binary input stream
  14274. @throws java.io.IOException
  14275. @return deserialized integer from stream.]]>
  14276. </doc>
  14277. </method>
  14278. <method name="isNegativeVInt" return="boolean"
  14279. abstract="false" native="false" synchronized="false"
  14280. static="true" final="false" visibility="public"
  14281. deprecated="not deprecated">
  14282. <param name="value" type="byte"/>
  14283. <doc>
  14284. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  14285. @param value the first byte
  14286. @return is the value negative]]>
  14287. </doc>
  14288. </method>
  14289. <method name="decodeVIntSize" return="int"
  14290. abstract="false" native="false" synchronized="false"
  14291. static="true" final="false" visibility="public"
  14292. deprecated="not deprecated">
  14293. <param name="value" type="byte"/>
  14294. <doc>
  14295. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  14296. @param value the first byte of the vint/vlong
  14297. @return the total number of bytes (1 to 9)]]>
  14298. </doc>
  14299. </method>
  14300. <method name="getVIntSize" return="int"
  14301. abstract="false" native="false" synchronized="false"
  14302. static="true" final="false" visibility="public"
  14303. deprecated="not deprecated">
  14304. <param name="i" type="long"/>
  14305. <doc>
  14306. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  14307. @return the encoded length]]>
  14308. </doc>
  14309. </method>
  14310. <method name="readEnum" return="T extends java.lang.Enum&lt;T&gt;"
  14311. abstract="false" native="false" synchronized="false"
  14312. static="true" final="false" visibility="public"
  14313. deprecated="not deprecated">
  14314. <param name="in" type="java.io.DataInput"/>
  14315. <param name="enumType" type="java.lang.Class&lt;T&gt;"/>
  14316. <exception name="IOException" type="java.io.IOException"/>
  14317. <doc>
  14318. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  14319. using String values.
  14320. @param <T> Enum type
  14321. @param in DataInput to read from
  14322. @param enumType Class type of Enum
  14323. @return Enum represented by String read from DataInput
  14324. @throws IOException]]>
  14325. </doc>
  14326. </method>
  14327. <method name="writeEnum"
  14328. abstract="false" native="false" synchronized="false"
  14329. static="true" final="false" visibility="public"
  14330. deprecated="not deprecated">
  14331. <param name="out" type="java.io.DataOutput"/>
  14332. <param name="enumVal" type="java.lang.Enum&lt;?&gt;"/>
  14333. <exception name="IOException" type="java.io.IOException"/>
  14334. <doc>
  14335. <![CDATA[writes String value of enum to DataOutput.
  14336. @param out Dataoutput stream
  14337. @param enumVal enum value
  14338. @throws IOException]]>
  14339. </doc>
  14340. </method>
  14341. <method name="skipFully"
  14342. abstract="false" native="false" synchronized="false"
  14343. static="true" final="false" visibility="public"
  14344. deprecated="not deprecated">
  14345. <param name="in" type="java.io.DataInput"/>
  14346. <param name="len" type="int"/>
  14347. <exception name="IOException" type="java.io.IOException"/>
  14348. <doc>
  14349. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  14350. @param in input stream
  14351. @param len number of bytes to skip
  14352. @throws IOException when skipped less number of bytes]]>
  14353. </doc>
  14354. </method>
  14355. <method name="toByteArray" return="byte[]"
  14356. abstract="false" native="false" synchronized="false"
  14357. static="true" final="false" visibility="public"
  14358. deprecated="not deprecated">
  14359. <param name="writables" type="org.apache.hadoop.io.Writable[]"/>
  14360. <doc>
  14361. <![CDATA[Convert writables to a byte array]]>
  14362. </doc>
  14363. </method>
  14364. </class>
  14365. <!-- end class org.apache.hadoop.io.WritableUtils -->
  14366. </package>
  14367. <package name="org.apache.hadoop.io.compress">
  14368. <!-- start class org.apache.hadoop.io.compress.BZip2Codec -->
  14369. <class name="BZip2Codec" extends="java.lang.Object"
  14370. abstract="false"
  14371. static="false" final="false" visibility="public"
  14372. deprecated="not deprecated">
  14373. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  14374. <constructor name="BZip2Codec"
  14375. static="false" final="false" visibility="public"
  14376. deprecated="not deprecated">
  14377. <doc>
  14378. <![CDATA[Creates a new instance of BZip2Codec]]>
  14379. </doc>
  14380. </constructor>
  14381. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14382. abstract="false" native="false" synchronized="false"
  14383. static="false" final="false" visibility="public"
  14384. deprecated="not deprecated">
  14385. <param name="out" type="java.io.OutputStream"/>
  14386. <exception name="IOException" type="java.io.IOException"/>
  14387. <doc>
  14388. <![CDATA[Creates CompressionOutputStream for BZip2
  14389. @param out
  14390. The output Stream
  14391. @return The BZip2 CompressionOutputStream
  14392. @throws java.io.IOException
  14393. Throws IO exception]]>
  14394. </doc>
  14395. </method>
  14396. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14397. abstract="false" native="false" synchronized="false"
  14398. static="false" final="false" visibility="public"
  14399. deprecated="not deprecated">
  14400. <param name="out" type="java.io.OutputStream"/>
  14401. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14402. <exception name="IOException" type="java.io.IOException"/>
  14403. <doc>
  14404. <![CDATA[This functionality is currently not supported.
  14405. @throws java.lang.UnsupportedOperationException
  14406. Throws UnsupportedOperationException]]>
  14407. </doc>
  14408. </method>
  14409. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  14410. abstract="false" native="false" synchronized="false"
  14411. static="false" final="false" visibility="public"
  14412. deprecated="not deprecated">
  14413. <doc>
  14414. <![CDATA[This functionality is currently not supported.
  14415. @throws java.lang.UnsupportedOperationException
  14416. Throws UnsupportedOperationException]]>
  14417. </doc>
  14418. </method>
  14419. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14420. abstract="false" native="false" synchronized="false"
  14421. static="false" final="false" visibility="public"
  14422. deprecated="not deprecated">
  14423. <doc>
  14424. <![CDATA[This functionality is currently not supported.
  14425. @throws java.lang.UnsupportedOperationException
  14426. Throws UnsupportedOperationException]]>
  14427. </doc>
  14428. </method>
  14429. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14430. abstract="false" native="false" synchronized="false"
  14431. static="false" final="false" visibility="public"
  14432. deprecated="not deprecated">
  14433. <param name="in" type="java.io.InputStream"/>
  14434. <exception name="IOException" type="java.io.IOException"/>
  14435. <doc>
  14436. <![CDATA[Creates CompressionInputStream to be used to read off uncompressed data.
  14437. @param in
  14438. The InputStream
  14439. @return Returns CompressionInputStream for BZip2
  14440. @throws java.io.IOException
  14441. Throws IOException]]>
  14442. </doc>
  14443. </method>
  14444. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14445. abstract="false" native="false" synchronized="false"
  14446. static="false" final="false" visibility="public"
  14447. deprecated="not deprecated">
  14448. <param name="in" type="java.io.InputStream"/>
  14449. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14450. <exception name="IOException" type="java.io.IOException"/>
  14451. <doc>
  14452. <![CDATA[This functionality is currently not supported.
  14453. @throws java.lang.UnsupportedOperationException
  14454. Throws UnsupportedOperationException]]>
  14455. </doc>
  14456. </method>
  14457. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  14458. abstract="false" native="false" synchronized="false"
  14459. static="false" final="false" visibility="public"
  14460. deprecated="not deprecated">
  14461. <doc>
  14462. <![CDATA[This functionality is currently not supported.
  14463. @throws java.lang.UnsupportedOperationException
  14464. Throws UnsupportedOperationException]]>
  14465. </doc>
  14466. </method>
  14467. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14468. abstract="false" native="false" synchronized="false"
  14469. static="false" final="false" visibility="public"
  14470. deprecated="not deprecated">
  14471. <doc>
  14472. <![CDATA[This functionality is currently not supported.
  14473. @throws java.lang.UnsupportedOperationException
  14474. Throws UnsupportedOperationException]]>
  14475. </doc>
  14476. </method>
  14477. <method name="getDefaultExtension" return="java.lang.String"
  14478. abstract="false" native="false" synchronized="false"
  14479. static="false" final="false" visibility="public"
  14480. deprecated="not deprecated">
  14481. <doc>
  14482. <![CDATA[.bz2 is recognized as the default extension for compressed BZip2 files
  14483. @return A String telling the default bzip2 file extension]]>
  14484. </doc>
  14485. </method>
  14486. <doc>
  14487. <![CDATA[This class provides CompressionOutputStream and CompressionInputStream for
  14488. compression and decompression. Currently we dont have an implementation of
  14489. the Compressor and Decompressor interfaces, so those methods of
  14490. CompressionCodec which have a Compressor or Decompressor type argument, throw
  14491. UnsupportedOperationException.]]>
  14492. </doc>
  14493. </class>
  14494. <!-- end class org.apache.hadoop.io.compress.BZip2Codec -->
  14495. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  14496. <class name="CodecPool" extends="java.lang.Object"
  14497. abstract="false"
  14498. static="false" final="false" visibility="public"
  14499. deprecated="not deprecated">
  14500. <constructor name="CodecPool"
  14501. static="false" final="false" visibility="public"
  14502. deprecated="not deprecated">
  14503. </constructor>
  14504. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14505. abstract="false" native="false" synchronized="false"
  14506. static="true" final="false" visibility="public"
  14507. deprecated="not deprecated">
  14508. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14509. <doc>
  14510. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  14511. pool or a new one.
  14512. @param codec the <code>CompressionCodec</code> for which to get the
  14513. <code>Compressor</code>
  14514. @return <code>Compressor</code> for the given
  14515. <code>CompressionCodec</code> from the pool or a new one]]>
  14516. </doc>
  14517. </method>
  14518. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14519. abstract="false" native="false" synchronized="false"
  14520. static="true" final="false" visibility="public"
  14521. deprecated="not deprecated">
  14522. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14523. <doc>
  14524. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  14525. pool or a new one.
  14526. @param codec the <code>CompressionCodec</code> for which to get the
  14527. <code>Decompressor</code>
  14528. @return <code>Decompressor</code> for the given
  14529. <code>CompressionCodec</code> the pool or a new one]]>
  14530. </doc>
  14531. </method>
  14532. <method name="returnCompressor"
  14533. abstract="false" native="false" synchronized="false"
  14534. static="true" final="false" visibility="public"
  14535. deprecated="not deprecated">
  14536. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14537. <doc>
  14538. <![CDATA[Return the {@link Compressor} to the pool.
  14539. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  14540. </doc>
  14541. </method>
  14542. <method name="returnDecompressor"
  14543. abstract="false" native="false" synchronized="false"
  14544. static="true" final="false" visibility="public"
  14545. deprecated="not deprecated">
  14546. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14547. <doc>
  14548. <![CDATA[Return the {@link Decompressor} to the pool.
  14549. @param decompressor the <code>Decompressor</code> to be returned to the
  14550. pool]]>
  14551. </doc>
  14552. </method>
  14553. <doc>
  14554. <![CDATA[A global compressor/decompressor pool used to save and reuse
  14555. (possibly native) compression/decompression codecs.]]>
  14556. </doc>
  14557. </class>
  14558. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  14559. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  14560. <interface name="CompressionCodec" abstract="true"
  14561. static="false" final="false" visibility="public"
  14562. deprecated="not deprecated">
  14563. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14564. abstract="false" native="false" synchronized="false"
  14565. static="false" final="false" visibility="public"
  14566. deprecated="not deprecated">
  14567. <param name="out" type="java.io.OutputStream"/>
  14568. <exception name="IOException" type="java.io.IOException"/>
  14569. <doc>
  14570. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  14571. {@link OutputStream}.
  14572. @param out the location for the final output stream
  14573. @return a stream the user can write uncompressed data to have it compressed
  14574. @throws IOException]]>
  14575. </doc>
  14576. </method>
  14577. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  14578. abstract="false" native="false" synchronized="false"
  14579. static="false" final="false" visibility="public"
  14580. deprecated="not deprecated">
  14581. <param name="out" type="java.io.OutputStream"/>
  14582. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  14583. <exception name="IOException" type="java.io.IOException"/>
  14584. <doc>
  14585. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  14586. {@link OutputStream} with the given {@link Compressor}.
  14587. @param out the location for the final output stream
  14588. @param compressor compressor to use
  14589. @return a stream the user can write uncompressed data to have it compressed
  14590. @throws IOException]]>
  14591. </doc>
  14592. </method>
  14593. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  14594. abstract="false" native="false" synchronized="false"
  14595. static="false" final="false" visibility="public"
  14596. deprecated="not deprecated">
  14597. <doc>
  14598. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  14599. @return the type of compressor needed by this codec.]]>
  14600. </doc>
  14601. </method>
  14602. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  14603. abstract="false" native="false" synchronized="false"
  14604. static="false" final="false" visibility="public"
  14605. deprecated="not deprecated">
  14606. <doc>
  14607. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  14608. @return a new compressor for use by this codec]]>
  14609. </doc>
  14610. </method>
  14611. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14612. abstract="false" native="false" synchronized="false"
  14613. static="false" final="false" visibility="public"
  14614. deprecated="not deprecated">
  14615. <param name="in" type="java.io.InputStream"/>
  14616. <exception name="IOException" type="java.io.IOException"/>
  14617. <doc>
  14618. <![CDATA[Create a stream decompressor that will read from the given input stream.
  14619. @param in the stream to read compressed bytes from
  14620. @return a stream to read uncompressed bytes from
  14621. @throws IOException]]>
  14622. </doc>
  14623. </method>
  14624. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  14625. abstract="false" native="false" synchronized="false"
  14626. static="false" final="false" visibility="public"
  14627. deprecated="not deprecated">
  14628. <param name="in" type="java.io.InputStream"/>
  14629. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  14630. <exception name="IOException" type="java.io.IOException"/>
  14631. <doc>
  14632. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  14633. {@link InputStream} with the given {@link Decompressor}.
  14634. @param in the stream to read compressed bytes from
  14635. @param decompressor decompressor to use
  14636. @return a stream to read uncompressed bytes from
  14637. @throws IOException]]>
  14638. </doc>
  14639. </method>
  14640. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  14641. abstract="false" native="false" synchronized="false"
  14642. static="false" final="false" visibility="public"
  14643. deprecated="not deprecated">
  14644. <doc>
  14645. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  14646. @return the type of decompressor needed by this codec.]]>
  14647. </doc>
  14648. </method>
  14649. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  14650. abstract="false" native="false" synchronized="false"
  14651. static="false" final="false" visibility="public"
  14652. deprecated="not deprecated">
  14653. <doc>
  14654. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  14655. @return a new decompressor for use by this codec]]>
  14656. </doc>
  14657. </method>
  14658. <method name="getDefaultExtension" return="java.lang.String"
  14659. abstract="false" native="false" synchronized="false"
  14660. static="false" final="false" visibility="public"
  14661. deprecated="not deprecated">
  14662. <doc>
  14663. <![CDATA[Get the default filename extension for this kind of compression.
  14664. @return the extension including the '.']]>
  14665. </doc>
  14666. </method>
  14667. <doc>
  14668. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  14669. </doc>
  14670. </interface>
  14671. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  14672. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  14673. <class name="CompressionCodecFactory" extends="java.lang.Object"
  14674. abstract="false"
  14675. static="false" final="false" visibility="public"
  14676. deprecated="not deprecated">
  14677. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  14678. static="false" final="false" visibility="public"
  14679. deprecated="not deprecated">
  14680. <doc>
  14681. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  14682. and register them. Defaults to gzip and zip.]]>
  14683. </doc>
  14684. </constructor>
  14685. <method name="toString" return="java.lang.String"
  14686. abstract="false" native="false" synchronized="false"
  14687. static="false" final="false" visibility="public"
  14688. deprecated="not deprecated">
  14689. <doc>
  14690. <![CDATA[Print the extension map out as a string.]]>
  14691. </doc>
  14692. </method>
  14693. <method name="getCodecClasses" return="java.util.List&lt;java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;&gt;"
  14694. abstract="false" native="false" synchronized="false"
  14695. static="true" final="false" visibility="public"
  14696. deprecated="not deprecated">
  14697. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14698. <doc>
  14699. <![CDATA[Get the list of codecs listed in the configuration
  14700. @param conf the configuration to look in
  14701. @return a list of the Configuration classes or null if the attribute
  14702. was not set]]>
  14703. </doc>
  14704. </method>
  14705. <method name="setCodecClasses"
  14706. abstract="false" native="false" synchronized="false"
  14707. static="true" final="false" visibility="public"
  14708. deprecated="not deprecated">
  14709. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14710. <param name="classes" type="java.util.List&lt;java.lang.Class&gt;"/>
  14711. <doc>
  14712. <![CDATA[Sets a list of codec classes in the configuration.
  14713. @param conf the configuration to modify
  14714. @param classes the list of classes to set]]>
  14715. </doc>
  14716. </method>
  14717. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  14718. abstract="false" native="false" synchronized="false"
  14719. static="false" final="false" visibility="public"
  14720. deprecated="not deprecated">
  14721. <param name="file" type="org.apache.hadoop.fs.Path"/>
  14722. <doc>
  14723. <![CDATA[Find the relevant compression codec for the given file based on its
  14724. filename suffix.
  14725. @param file the filename to check
  14726. @return the codec object]]>
  14727. </doc>
  14728. </method>
  14729. <method name="removeSuffix" return="java.lang.String"
  14730. abstract="false" native="false" synchronized="false"
  14731. static="true" final="false" visibility="public"
  14732. deprecated="not deprecated">
  14733. <param name="filename" type="java.lang.String"/>
  14734. <param name="suffix" type="java.lang.String"/>
  14735. <doc>
  14736. <![CDATA[Removes a suffix from a filename, if it has it.
  14737. @param filename the filename to strip
  14738. @param suffix the suffix to remove
  14739. @return the shortened filename]]>
  14740. </doc>
  14741. </method>
  14742. <method name="main"
  14743. abstract="false" native="false" synchronized="false"
  14744. static="true" final="false" visibility="public"
  14745. deprecated="not deprecated">
  14746. <param name="args" type="java.lang.String[]"/>
  14747. <exception name="Exception" type="java.lang.Exception"/>
  14748. <doc>
  14749. <![CDATA[A little test program.
  14750. @param args]]>
  14751. </doc>
  14752. </method>
  14753. <field name="LOG" type="org.apache.commons.logging.Log"
  14754. transient="false" volatile="false"
  14755. static="true" final="true" visibility="public"
  14756. deprecated="not deprecated">
  14757. </field>
  14758. <doc>
  14759. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  14760. </doc>
  14761. </class>
  14762. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  14763. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  14764. <class name="CompressionInputStream" extends="java.io.InputStream"
  14765. abstract="true"
  14766. static="false" final="false" visibility="public"
  14767. deprecated="not deprecated">
  14768. <constructor name="CompressionInputStream" type="java.io.InputStream"
  14769. static="false" final="false" visibility="protected"
  14770. deprecated="not deprecated">
  14771. <doc>
  14772. <![CDATA[Create a compression input stream that reads
  14773. the decompressed bytes from the given stream.
  14774. @param in The input stream to be compressed.]]>
  14775. </doc>
  14776. </constructor>
  14777. <method name="close"
  14778. abstract="false" native="false" synchronized="false"
  14779. static="false" final="false" visibility="public"
  14780. deprecated="not deprecated">
  14781. <exception name="IOException" type="java.io.IOException"/>
  14782. </method>
  14783. <method name="read" return="int"
  14784. abstract="true" native="false" synchronized="false"
  14785. static="false" final="false" visibility="public"
  14786. deprecated="not deprecated">
  14787. <param name="b" type="byte[]"/>
  14788. <param name="off" type="int"/>
  14789. <param name="len" type="int"/>
  14790. <exception name="IOException" type="java.io.IOException"/>
  14791. <doc>
  14792. <![CDATA[Read bytes from the stream.
  14793. Made abstract to prevent leakage to underlying stream.]]>
  14794. </doc>
  14795. </method>
  14796. <method name="resetState"
  14797. abstract="true" native="false" synchronized="false"
  14798. static="false" final="false" visibility="public"
  14799. deprecated="not deprecated">
  14800. <exception name="IOException" type="java.io.IOException"/>
  14801. <doc>
  14802. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  14803. as the underlying stream may have been repositioned.]]>
  14804. </doc>
  14805. </method>
  14806. <field name="in" type="java.io.InputStream"
  14807. transient="false" volatile="false"
  14808. static="false" final="true" visibility="protected"
  14809. deprecated="not deprecated">
  14810. <doc>
  14811. <![CDATA[The input stream to be compressed.]]>
  14812. </doc>
  14813. </field>
  14814. <doc>
  14815. <![CDATA[A compression input stream.
  14816. <p>Implementations are assumed to be buffered. This permits clients to
  14817. reposition the underlying input stream then call {@link #resetState()},
  14818. without having to also synchronize client buffers.]]>
  14819. </doc>
  14820. </class>
  14821. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  14822. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  14823. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  14824. abstract="true"
  14825. static="false" final="false" visibility="public"
  14826. deprecated="not deprecated">
  14827. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  14828. static="false" final="false" visibility="protected"
  14829. deprecated="not deprecated">
  14830. <doc>
  14831. <![CDATA[Create a compression output stream that writes
  14832. the compressed bytes to the given stream.
  14833. @param out]]>
  14834. </doc>
  14835. </constructor>
  14836. <method name="close"
  14837. abstract="false" native="false" synchronized="false"
  14838. static="false" final="false" visibility="public"
  14839. deprecated="not deprecated">
  14840. <exception name="IOException" type="java.io.IOException"/>
  14841. </method>
  14842. <method name="flush"
  14843. abstract="false" native="false" synchronized="false"
  14844. static="false" final="false" visibility="public"
  14845. deprecated="not deprecated">
  14846. <exception name="IOException" type="java.io.IOException"/>
  14847. </method>
  14848. <method name="write"
  14849. abstract="true" native="false" synchronized="false"
  14850. static="false" final="false" visibility="public"
  14851. deprecated="not deprecated">
  14852. <param name="b" type="byte[]"/>
  14853. <param name="off" type="int"/>
  14854. <param name="len" type="int"/>
  14855. <exception name="IOException" type="java.io.IOException"/>
  14856. <doc>
  14857. <![CDATA[Write compressed bytes to the stream.
  14858. Made abstract to prevent leakage to underlying stream.]]>
  14859. </doc>
  14860. </method>
  14861. <method name="finish"
  14862. abstract="true" native="false" synchronized="false"
  14863. static="false" final="false" visibility="public"
  14864. deprecated="not deprecated">
  14865. <exception name="IOException" type="java.io.IOException"/>
  14866. <doc>
  14867. <![CDATA[Finishes writing compressed data to the output stream
  14868. without closing the underlying stream.]]>
  14869. </doc>
  14870. </method>
  14871. <method name="resetState"
  14872. abstract="true" native="false" synchronized="false"
  14873. static="false" final="false" visibility="public"
  14874. deprecated="not deprecated">
  14875. <exception name="IOException" type="java.io.IOException"/>
  14876. <doc>
  14877. <![CDATA[Reset the compression to the initial state.
  14878. Does not reset the underlying stream.]]>
  14879. </doc>
  14880. </method>
  14881. <field name="out" type="java.io.OutputStream"
  14882. transient="false" volatile="false"
  14883. static="false" final="true" visibility="protected"
  14884. deprecated="not deprecated">
  14885. <doc>
  14886. <![CDATA[The output stream to be compressed.]]>
  14887. </doc>
  14888. </field>
  14889. <doc>
  14890. <![CDATA[A compression output stream.]]>
  14891. </doc>
  14892. </class>
  14893. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  14894. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  14895. <interface name="Compressor" abstract="true"
  14896. static="false" final="false" visibility="public"
  14897. deprecated="not deprecated">
  14898. <method name="setInput"
  14899. abstract="false" native="false" synchronized="false"
  14900. static="false" final="false" visibility="public"
  14901. deprecated="not deprecated">
  14902. <param name="b" type="byte[]"/>
  14903. <param name="off" type="int"/>
  14904. <param name="len" type="int"/>
  14905. <doc>
  14906. <![CDATA[Sets input data for compression.
  14907. This should be called whenever #needsInput() returns
  14908. <code>true</code> indicating that more input data is required.
  14909. @param b Input data
  14910. @param off Start offset
  14911. @param len Length]]>
  14912. </doc>
  14913. </method>
  14914. <method name="needsInput" return="boolean"
  14915. abstract="false" native="false" synchronized="false"
  14916. static="false" final="false" visibility="public"
  14917. deprecated="not deprecated">
  14918. <doc>
  14919. <![CDATA[Returns true if the input data buffer is empty and
  14920. #setInput() should be called to provide more input.
  14921. @return <code>true</code> if the input data buffer is empty and
  14922. #setInput() should be called in order to provide more input.]]>
  14923. </doc>
  14924. </method>
  14925. <method name="setDictionary"
  14926. abstract="false" native="false" synchronized="false"
  14927. static="false" final="false" visibility="public"
  14928. deprecated="not deprecated">
  14929. <param name="b" type="byte[]"/>
  14930. <param name="off" type="int"/>
  14931. <param name="len" type="int"/>
  14932. <doc>
  14933. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  14934. is used when the history buffer can be predetermined.
  14935. @param b Dictionary data bytes
  14936. @param off Start offset
  14937. @param len Length]]>
  14938. </doc>
  14939. </method>
  14940. <method name="getBytesRead" return="long"
  14941. abstract="false" native="false" synchronized="false"
  14942. static="false" final="false" visibility="public"
  14943. deprecated="not deprecated">
  14944. <doc>
  14945. <![CDATA[Return number of uncompressed bytes input so far.]]>
  14946. </doc>
  14947. </method>
  14948. <method name="getBytesWritten" return="long"
  14949. abstract="false" native="false" synchronized="false"
  14950. static="false" final="false" visibility="public"
  14951. deprecated="not deprecated">
  14952. <doc>
  14953. <![CDATA[Return number of compressed bytes output so far.]]>
  14954. </doc>
  14955. </method>
  14956. <method name="finish"
  14957. abstract="false" native="false" synchronized="false"
  14958. static="false" final="false" visibility="public"
  14959. deprecated="not deprecated">
  14960. <doc>
  14961. <![CDATA[When called, indicates that compression should end
  14962. with the current contents of the input buffer.]]>
  14963. </doc>
  14964. </method>
  14965. <method name="finished" return="boolean"
  14966. abstract="false" native="false" synchronized="false"
  14967. static="false" final="false" visibility="public"
  14968. deprecated="not deprecated">
  14969. <doc>
  14970. <![CDATA[Returns true if the end of the compressed
  14971. data output stream has been reached.
  14972. @return <code>true</code> if the end of the compressed
  14973. data output stream has been reached.]]>
  14974. </doc>
  14975. </method>
  14976. <method name="compress" return="int"
  14977. abstract="false" native="false" synchronized="false"
  14978. static="false" final="false" visibility="public"
  14979. deprecated="not deprecated">
  14980. <param name="b" type="byte[]"/>
  14981. <param name="off" type="int"/>
  14982. <param name="len" type="int"/>
  14983. <exception name="IOException" type="java.io.IOException"/>
  14984. <doc>
  14985. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  14986. of bytes of compressed data. A return value of 0 indicates that
  14987. needsInput() should be called in order to determine if more input
  14988. data is required.
  14989. @param b Buffer for the compressed data
  14990. @param off Start offset of the data
  14991. @param len Size of the buffer
  14992. @return The actual number of bytes of compressed data.]]>
  14993. </doc>
  14994. </method>
  14995. <method name="reset"
  14996. abstract="false" native="false" synchronized="false"
  14997. static="false" final="false" visibility="public"
  14998. deprecated="not deprecated">
  14999. <doc>
  15000. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  15001. </doc>
  15002. </method>
  15003. <method name="end"
  15004. abstract="false" native="false" synchronized="false"
  15005. static="false" final="false" visibility="public"
  15006. deprecated="not deprecated">
  15007. <doc>
  15008. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  15009. </doc>
  15010. </method>
  15011. <doc>
  15012. <![CDATA[Specification of a stream-based 'compressor' which can be
  15013. plugged into a {@link CompressionOutputStream} to compress data.
  15014. This is modelled after {@link java.util.zip.Deflater}]]>
  15015. </doc>
  15016. </interface>
  15017. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  15018. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  15019. <interface name="Decompressor" abstract="true"
  15020. static="false" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <method name="setInput"
  15023. abstract="false" native="false" synchronized="false"
  15024. static="false" final="false" visibility="public"
  15025. deprecated="not deprecated">
  15026. <param name="b" type="byte[]"/>
  15027. <param name="off" type="int"/>
  15028. <param name="len" type="int"/>
  15029. <doc>
  15030. <![CDATA[Sets input data for decompression.
  15031. This should be called whenever #needsInput() returns
  15032. <code>true</code> indicating that more input data is required.
  15033. @param b Input data
  15034. @param off Start offset
  15035. @param len Length]]>
  15036. </doc>
  15037. </method>
  15038. <method name="needsInput" return="boolean"
  15039. abstract="false" native="false" synchronized="false"
  15040. static="false" final="false" visibility="public"
  15041. deprecated="not deprecated">
  15042. <doc>
  15043. <![CDATA[Returns true if the input data buffer is empty and
  15044. #setInput() should be called to provide more input.
  15045. @return <code>true</code> if the input data buffer is empty and
  15046. #setInput() should be called in order to provide more input.]]>
  15047. </doc>
  15048. </method>
  15049. <method name="setDictionary"
  15050. abstract="false" native="false" synchronized="false"
  15051. static="false" final="false" visibility="public"
  15052. deprecated="not deprecated">
  15053. <param name="b" type="byte[]"/>
  15054. <param name="off" type="int"/>
  15055. <param name="len" type="int"/>
  15056. <doc>
  15057. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  15058. is used when the history buffer can be predetermined.
  15059. @param b Dictionary data bytes
  15060. @param off Start offset
  15061. @param len Length]]>
  15062. </doc>
  15063. </method>
  15064. <method name="needsDictionary" return="boolean"
  15065. abstract="false" native="false" synchronized="false"
  15066. static="false" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. <doc>
  15069. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  15070. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  15071. </doc>
  15072. </method>
  15073. <method name="finished" return="boolean"
  15074. abstract="false" native="false" synchronized="false"
  15075. static="false" final="false" visibility="public"
  15076. deprecated="not deprecated">
  15077. <doc>
  15078. <![CDATA[Returns true if the end of the compressed
  15079. data output stream has been reached.
  15080. @return <code>true</code> if the end of the compressed
  15081. data output stream has been reached.]]>
  15082. </doc>
  15083. </method>
  15084. <method name="decompress" return="int"
  15085. abstract="false" native="false" synchronized="false"
  15086. static="false" final="false" visibility="public"
  15087. deprecated="not deprecated">
  15088. <param name="b" type="byte[]"/>
  15089. <param name="off" type="int"/>
  15090. <param name="len" type="int"/>
  15091. <exception name="IOException" type="java.io.IOException"/>
  15092. <doc>
  15093. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  15094. of bytes of uncompressed data. A return value of 0 indicates that
  15095. #needsInput() should be called in order to determine if more input
  15096. data is required.
  15097. @param b Buffer for the compressed data
  15098. @param off Start offset of the data
  15099. @param len Size of the buffer
  15100. @return The actual number of bytes of compressed data.
  15101. @throws IOException]]>
  15102. </doc>
  15103. </method>
  15104. <method name="reset"
  15105. abstract="false" native="false" synchronized="false"
  15106. static="false" final="false" visibility="public"
  15107. deprecated="not deprecated">
  15108. <doc>
  15109. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  15110. </doc>
  15111. </method>
  15112. <method name="end"
  15113. abstract="false" native="false" synchronized="false"
  15114. static="false" final="false" visibility="public"
  15115. deprecated="not deprecated">
  15116. <doc>
  15117. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  15118. </doc>
  15119. </method>
  15120. <doc>
  15121. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  15122. plugged into a {@link CompressionInputStream} to compress data.
  15123. This is modelled after {@link java.util.zip.Inflater}]]>
  15124. </doc>
  15125. </interface>
  15126. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  15127. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  15128. <class name="DefaultCodec" extends="java.lang.Object"
  15129. abstract="false"
  15130. static="false" final="false" visibility="public"
  15131. deprecated="not deprecated">
  15132. <implements name="org.apache.hadoop.conf.Configurable"/>
  15133. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15134. <constructor name="DefaultCodec"
  15135. static="false" final="false" visibility="public"
  15136. deprecated="not deprecated">
  15137. </constructor>
  15138. <method name="setConf"
  15139. abstract="false" native="false" synchronized="false"
  15140. static="false" final="false" visibility="public"
  15141. deprecated="not deprecated">
  15142. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15143. </method>
  15144. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15145. abstract="false" native="false" synchronized="false"
  15146. static="false" final="false" visibility="public"
  15147. deprecated="not deprecated">
  15148. </method>
  15149. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15150. abstract="false" native="false" synchronized="false"
  15151. static="false" final="false" visibility="public"
  15152. deprecated="not deprecated">
  15153. <param name="out" type="java.io.OutputStream"/>
  15154. <exception name="IOException" type="java.io.IOException"/>
  15155. </method>
  15156. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15157. abstract="false" native="false" synchronized="false"
  15158. static="false" final="false" visibility="public"
  15159. deprecated="not deprecated">
  15160. <param name="out" type="java.io.OutputStream"/>
  15161. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15162. <exception name="IOException" type="java.io.IOException"/>
  15163. </method>
  15164. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  15165. abstract="false" native="false" synchronized="false"
  15166. static="false" final="false" visibility="public"
  15167. deprecated="not deprecated">
  15168. </method>
  15169. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15170. abstract="false" native="false" synchronized="false"
  15171. static="false" final="false" visibility="public"
  15172. deprecated="not deprecated">
  15173. </method>
  15174. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <param name="in" type="java.io.InputStream"/>
  15179. <exception name="IOException" type="java.io.IOException"/>
  15180. </method>
  15181. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15182. abstract="false" native="false" synchronized="false"
  15183. static="false" final="false" visibility="public"
  15184. deprecated="not deprecated">
  15185. <param name="in" type="java.io.InputStream"/>
  15186. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15187. <exception name="IOException" type="java.io.IOException"/>
  15188. </method>
  15189. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  15190. abstract="false" native="false" synchronized="false"
  15191. static="false" final="false" visibility="public"
  15192. deprecated="not deprecated">
  15193. </method>
  15194. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15195. abstract="false" native="false" synchronized="false"
  15196. static="false" final="false" visibility="public"
  15197. deprecated="not deprecated">
  15198. </method>
  15199. <method name="getDefaultExtension" return="java.lang.String"
  15200. abstract="false" native="false" synchronized="false"
  15201. static="false" final="false" visibility="public"
  15202. deprecated="not deprecated">
  15203. </method>
  15204. </class>
  15205. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  15206. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  15207. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  15208. abstract="false"
  15209. static="false" final="false" visibility="public"
  15210. deprecated="not deprecated">
  15211. <constructor name="GzipCodec"
  15212. static="false" final="false" visibility="public"
  15213. deprecated="not deprecated">
  15214. </constructor>
  15215. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15216. abstract="false" native="false" synchronized="false"
  15217. static="false" final="false" visibility="public"
  15218. deprecated="not deprecated">
  15219. <param name="out" type="java.io.OutputStream"/>
  15220. <exception name="IOException" type="java.io.IOException"/>
  15221. </method>
  15222. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15223. abstract="false" native="false" synchronized="false"
  15224. static="false" final="false" visibility="public"
  15225. deprecated="not deprecated">
  15226. <param name="out" type="java.io.OutputStream"/>
  15227. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15228. <exception name="IOException" type="java.io.IOException"/>
  15229. </method>
  15230. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15231. abstract="false" native="false" synchronized="false"
  15232. static="false" final="false" visibility="public"
  15233. deprecated="not deprecated">
  15234. </method>
  15235. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  15236. abstract="false" native="false" synchronized="false"
  15237. static="false" final="false" visibility="public"
  15238. deprecated="not deprecated">
  15239. </method>
  15240. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15241. abstract="false" native="false" synchronized="false"
  15242. static="false" final="false" visibility="public"
  15243. deprecated="not deprecated">
  15244. <param name="in" type="java.io.InputStream"/>
  15245. <exception name="IOException" type="java.io.IOException"/>
  15246. </method>
  15247. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15248. abstract="false" native="false" synchronized="false"
  15249. static="false" final="false" visibility="public"
  15250. deprecated="not deprecated">
  15251. <param name="in" type="java.io.InputStream"/>
  15252. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15253. <exception name="IOException" type="java.io.IOException"/>
  15254. </method>
  15255. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15256. abstract="false" native="false" synchronized="false"
  15257. static="false" final="false" visibility="public"
  15258. deprecated="not deprecated">
  15259. </method>
  15260. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  15261. abstract="false" native="false" synchronized="false"
  15262. static="false" final="false" visibility="public"
  15263. deprecated="not deprecated">
  15264. </method>
  15265. <method name="getDefaultExtension" return="java.lang.String"
  15266. abstract="false" native="false" synchronized="false"
  15267. static="false" final="false" visibility="public"
  15268. deprecated="not deprecated">
  15269. </method>
  15270. <doc>
  15271. <![CDATA[This class creates gzip compressors/decompressors.]]>
  15272. </doc>
  15273. </class>
  15274. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  15275. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  15276. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  15277. abstract="false"
  15278. static="true" final="false" visibility="protected"
  15279. deprecated="not deprecated">
  15280. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  15281. static="false" final="false" visibility="public"
  15282. deprecated="not deprecated">
  15283. <exception name="IOException" type="java.io.IOException"/>
  15284. </constructor>
  15285. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  15286. static="false" final="false" visibility="protected"
  15287. deprecated="not deprecated">
  15288. <doc>
  15289. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  15290. </doc>
  15291. </constructor>
  15292. <method name="available" return="int"
  15293. abstract="false" native="false" synchronized="false"
  15294. static="false" final="false" visibility="public"
  15295. deprecated="not deprecated">
  15296. <exception name="IOException" type="java.io.IOException"/>
  15297. </method>
  15298. <method name="close"
  15299. abstract="false" native="false" synchronized="false"
  15300. static="false" final="false" visibility="public"
  15301. deprecated="not deprecated">
  15302. <exception name="IOException" type="java.io.IOException"/>
  15303. </method>
  15304. <method name="read" return="int"
  15305. abstract="false" native="false" synchronized="false"
  15306. static="false" final="false" visibility="public"
  15307. deprecated="not deprecated">
  15308. <exception name="IOException" type="java.io.IOException"/>
  15309. </method>
  15310. <method name="read" return="int"
  15311. abstract="false" native="false" synchronized="false"
  15312. static="false" final="false" visibility="public"
  15313. deprecated="not deprecated">
  15314. <param name="data" type="byte[]"/>
  15315. <param name="offset" type="int"/>
  15316. <param name="len" type="int"/>
  15317. <exception name="IOException" type="java.io.IOException"/>
  15318. </method>
  15319. <method name="skip" return="long"
  15320. abstract="false" native="false" synchronized="false"
  15321. static="false" final="false" visibility="public"
  15322. deprecated="not deprecated">
  15323. <param name="offset" type="long"/>
  15324. <exception name="IOException" type="java.io.IOException"/>
  15325. </method>
  15326. <method name="resetState"
  15327. abstract="false" native="false" synchronized="false"
  15328. static="false" final="false" visibility="public"
  15329. deprecated="not deprecated">
  15330. <exception name="IOException" type="java.io.IOException"/>
  15331. </method>
  15332. </class>
  15333. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  15334. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  15335. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  15336. abstract="false"
  15337. static="true" final="false" visibility="protected"
  15338. deprecated="not deprecated">
  15339. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  15340. static="false" final="false" visibility="public"
  15341. deprecated="not deprecated">
  15342. <exception name="IOException" type="java.io.IOException"/>
  15343. </constructor>
  15344. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  15345. static="false" final="false" visibility="protected"
  15346. deprecated="not deprecated">
  15347. <doc>
  15348. <![CDATA[Allow children types to put a different type in here.
  15349. @param out the Deflater stream to use]]>
  15350. </doc>
  15351. </constructor>
  15352. <method name="close"
  15353. abstract="false" native="false" synchronized="false"
  15354. static="false" final="false" visibility="public"
  15355. deprecated="not deprecated">
  15356. <exception name="IOException" type="java.io.IOException"/>
  15357. </method>
  15358. <method name="flush"
  15359. abstract="false" native="false" synchronized="false"
  15360. static="false" final="false" visibility="public"
  15361. deprecated="not deprecated">
  15362. <exception name="IOException" type="java.io.IOException"/>
  15363. </method>
  15364. <method name="write"
  15365. abstract="false" native="false" synchronized="false"
  15366. static="false" final="false" visibility="public"
  15367. deprecated="not deprecated">
  15368. <param name="b" type="int"/>
  15369. <exception name="IOException" type="java.io.IOException"/>
  15370. </method>
  15371. <method name="write"
  15372. abstract="false" native="false" synchronized="false"
  15373. static="false" final="false" visibility="public"
  15374. deprecated="not deprecated">
  15375. <param name="data" type="byte[]"/>
  15376. <param name="offset" type="int"/>
  15377. <param name="length" type="int"/>
  15378. <exception name="IOException" type="java.io.IOException"/>
  15379. </method>
  15380. <method name="finish"
  15381. abstract="false" native="false" synchronized="false"
  15382. static="false" final="false" visibility="public"
  15383. deprecated="not deprecated">
  15384. <exception name="IOException" type="java.io.IOException"/>
  15385. </method>
  15386. <method name="resetState"
  15387. abstract="false" native="false" synchronized="false"
  15388. static="false" final="false" visibility="public"
  15389. deprecated="not deprecated">
  15390. <exception name="IOException" type="java.io.IOException"/>
  15391. </method>
  15392. <doc>
  15393. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  15394. a CompressionOutputStream.]]>
  15395. </doc>
  15396. </class>
  15397. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  15398. <!-- start class org.apache.hadoop.io.compress.LzoCodec -->
  15399. <class name="LzoCodec" extends="java.lang.Object"
  15400. abstract="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. <implements name="org.apache.hadoop.conf.Configurable"/>
  15404. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  15405. <constructor name="LzoCodec"
  15406. static="false" final="false" visibility="public"
  15407. deprecated="not deprecated">
  15408. </constructor>
  15409. <method name="setConf"
  15410. abstract="false" native="false" synchronized="false"
  15411. static="false" final="false" visibility="public"
  15412. deprecated="not deprecated">
  15413. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15414. </method>
  15415. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  15416. abstract="false" native="false" synchronized="false"
  15417. static="false" final="false" visibility="public"
  15418. deprecated="not deprecated">
  15419. </method>
  15420. <method name="isNativeLzoLoaded" return="boolean"
  15421. abstract="false" native="false" synchronized="false"
  15422. static="true" final="false" visibility="public"
  15423. deprecated="not deprecated">
  15424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15425. <doc>
  15426. <![CDATA[Check if native-lzo library is loaded & initialized.
  15427. @param conf configuration
  15428. @return <code>true</code> if native-lzo library is loaded & initialized;
  15429. else <code>false</code>]]>
  15430. </doc>
  15431. </method>
  15432. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15433. abstract="false" native="false" synchronized="false"
  15434. static="false" final="false" visibility="public"
  15435. deprecated="not deprecated">
  15436. <param name="out" type="java.io.OutputStream"/>
  15437. <exception name="IOException" type="java.io.IOException"/>
  15438. </method>
  15439. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15440. abstract="false" native="false" synchronized="false"
  15441. static="false" final="false" visibility="public"
  15442. deprecated="not deprecated">
  15443. <param name="out" type="java.io.OutputStream"/>
  15444. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15445. <exception name="IOException" type="java.io.IOException"/>
  15446. </method>
  15447. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  15448. abstract="false" native="false" synchronized="false"
  15449. static="false" final="false" visibility="public"
  15450. deprecated="not deprecated">
  15451. </method>
  15452. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  15453. abstract="false" native="false" synchronized="false"
  15454. static="false" final="false" visibility="public"
  15455. deprecated="not deprecated">
  15456. </method>
  15457. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15458. abstract="false" native="false" synchronized="false"
  15459. static="false" final="false" visibility="public"
  15460. deprecated="not deprecated">
  15461. <param name="in" type="java.io.InputStream"/>
  15462. <exception name="IOException" type="java.io.IOException"/>
  15463. </method>
  15464. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15465. abstract="false" native="false" synchronized="false"
  15466. static="false" final="false" visibility="public"
  15467. deprecated="not deprecated">
  15468. <param name="in" type="java.io.InputStream"/>
  15469. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15470. <exception name="IOException" type="java.io.IOException"/>
  15471. </method>
  15472. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  15473. abstract="false" native="false" synchronized="false"
  15474. static="false" final="false" visibility="public"
  15475. deprecated="not deprecated">
  15476. </method>
  15477. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15478. abstract="false" native="false" synchronized="false"
  15479. static="false" final="false" visibility="public"
  15480. deprecated="not deprecated">
  15481. </method>
  15482. <method name="getDefaultExtension" return="java.lang.String"
  15483. abstract="false" native="false" synchronized="false"
  15484. static="false" final="false" visibility="public"
  15485. deprecated="not deprecated">
  15486. <doc>
  15487. <![CDATA[Get the default filename extension for this kind of compression.
  15488. @return the extension including the '.']]>
  15489. </doc>
  15490. </method>
  15491. <doc>
  15492. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressionCodec} for a streaming
  15493. <b>lzo</b> compression/decompression pair.
  15494. http://www.oberhumer.com/opensource/lzo/]]>
  15495. </doc>
  15496. </class>
  15497. <!-- end class org.apache.hadoop.io.compress.LzoCodec -->
  15498. <!-- start class org.apache.hadoop.io.compress.LzopCodec -->
  15499. <class name="LzopCodec" extends="org.apache.hadoop.io.compress.LzoCodec"
  15500. abstract="false"
  15501. static="false" final="false" visibility="public"
  15502. deprecated="not deprecated">
  15503. <constructor name="LzopCodec"
  15504. static="false" final="false" visibility="public"
  15505. deprecated="not deprecated">
  15506. </constructor>
  15507. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  15508. abstract="false" native="false" synchronized="false"
  15509. static="false" final="false" visibility="public"
  15510. deprecated="not deprecated">
  15511. <param name="out" type="java.io.OutputStream"/>
  15512. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  15513. <exception name="IOException" type="java.io.IOException"/>
  15514. </method>
  15515. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  15516. abstract="false" native="false" synchronized="false"
  15517. static="false" final="false" visibility="public"
  15518. deprecated="not deprecated">
  15519. <param name="in" type="java.io.InputStream"/>
  15520. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  15521. <exception name="IOException" type="java.io.IOException"/>
  15522. </method>
  15523. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  15524. abstract="false" native="false" synchronized="false"
  15525. static="false" final="false" visibility="public"
  15526. deprecated="not deprecated">
  15527. </method>
  15528. <method name="getDefaultExtension" return="java.lang.String"
  15529. abstract="false" native="false" synchronized="false"
  15530. static="false" final="false" visibility="public"
  15531. deprecated="not deprecated">
  15532. </method>
  15533. <doc>
  15534. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressionCodec} for a streaming
  15535. <b>lzo</b> compression/decompression pair compatible with lzop.
  15536. http://www.lzop.org/]]>
  15537. </doc>
  15538. </class>
  15539. <!-- end class org.apache.hadoop.io.compress.LzopCodec -->
  15540. <!-- start class org.apache.hadoop.io.compress.LzopCodec.LzopDecompressor -->
  15541. <class name="LzopCodec.LzopDecompressor" extends="org.apache.hadoop.io.compress.lzo.LzoDecompressor"
  15542. abstract="false"
  15543. static="true" final="false" visibility="protected"
  15544. deprecated="not deprecated">
  15545. <constructor name="LzopCodec.LzopDecompressor" type="int"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <doc>
  15549. <![CDATA[Create an LzoDecompressor with LZO1X strategy (the only lzo algorithm
  15550. supported by lzop).]]>
  15551. </doc>
  15552. </constructor>
  15553. <method name="initHeaderFlags"
  15554. abstract="false" native="false" synchronized="false"
  15555. static="false" final="false" visibility="public"
  15556. deprecated="not deprecated">
  15557. <param name="dflags" type="java.util.EnumSet&lt;org.apache.hadoop.io.compress.LzopCodec.DChecksum&gt;"/>
  15558. <param name="cflags" type="java.util.EnumSet&lt;org.apache.hadoop.io.compress.LzopCodec.CChecksum&gt;"/>
  15559. <doc>
  15560. <![CDATA[Given a set of decompressed and compressed checksums,]]>
  15561. </doc>
  15562. </method>
  15563. <method name="resetChecksum"
  15564. abstract="false" native="false" synchronized="true"
  15565. static="false" final="false" visibility="public"
  15566. deprecated="not deprecated">
  15567. <doc>
  15568. <![CDATA[Reset all checksums registered for this decompressor instance.]]>
  15569. </doc>
  15570. </method>
  15571. <method name="verifyDChecksum" return="boolean"
  15572. abstract="false" native="false" synchronized="true"
  15573. static="false" final="false" visibility="public"
  15574. deprecated="not deprecated">
  15575. <param name="typ" type="org.apache.hadoop.io.compress.LzopCodec.DChecksum"/>
  15576. <param name="checksum" type="int"/>
  15577. <doc>
  15578. <![CDATA[Given a checksum type, verify its value against that observed in
  15579. decompressed data.]]>
  15580. </doc>
  15581. </method>
  15582. <method name="verifyCChecksum" return="boolean"
  15583. abstract="false" native="false" synchronized="true"
  15584. static="false" final="false" visibility="public"
  15585. deprecated="not deprecated">
  15586. <param name="typ" type="org.apache.hadoop.io.compress.LzopCodec.CChecksum"/>
  15587. <param name="checksum" type="int"/>
  15588. <doc>
  15589. <![CDATA[Given a checksum type, verity its value against that observed in
  15590. compressed data.]]>
  15591. </doc>
  15592. </method>
  15593. <method name="setInput"
  15594. abstract="false" native="false" synchronized="true"
  15595. static="false" final="false" visibility="public"
  15596. deprecated="not deprecated">
  15597. <param name="b" type="byte[]"/>
  15598. <param name="off" type="int"/>
  15599. <param name="len" type="int"/>
  15600. </method>
  15601. <method name="decompress" return="int"
  15602. abstract="false" native="false" synchronized="true"
  15603. static="false" final="false" visibility="public"
  15604. deprecated="not deprecated">
  15605. <param name="b" type="byte[]"/>
  15606. <param name="off" type="int"/>
  15607. <param name="len" type="int"/>
  15608. <exception name="IOException" type="java.io.IOException"/>
  15609. </method>
  15610. </class>
  15611. <!-- end class org.apache.hadoop.io.compress.LzopCodec.LzopDecompressor -->
  15612. <!-- start class org.apache.hadoop.io.compress.LzopCodec.LzopInputStream -->
  15613. <class name="LzopCodec.LzopInputStream" extends="org.apache.hadoop.io.compress.BlockDecompressorStream"
  15614. abstract="false"
  15615. static="true" final="false" visibility="protected"
  15616. deprecated="not deprecated">
  15617. <constructor name="LzopCodec.LzopInputStream" type="java.io.InputStream, org.apache.hadoop.io.compress.Decompressor, int"
  15618. static="false" final="false" visibility="public"
  15619. deprecated="not deprecated">
  15620. <exception name="IOException" type="java.io.IOException"/>
  15621. </constructor>
  15622. <method name="readHeader"
  15623. abstract="false" native="false" synchronized="false"
  15624. static="false" final="false" visibility="protected"
  15625. deprecated="not deprecated">
  15626. <param name="in" type="java.io.InputStream"/>
  15627. <exception name="IOException" type="java.io.IOException"/>
  15628. <doc>
  15629. <![CDATA[Read and verify an lzo header, setting relevant block checksum options
  15630. and ignoring most everything else.]]>
  15631. </doc>
  15632. </method>
  15633. <method name="close"
  15634. abstract="false" native="false" synchronized="false"
  15635. static="false" final="false" visibility="public"
  15636. deprecated="not deprecated">
  15637. <exception name="IOException" type="java.io.IOException"/>
  15638. </method>
  15639. </class>
  15640. <!-- end class org.apache.hadoop.io.compress.LzopCodec.LzopInputStream -->
  15641. <!-- start class org.apache.hadoop.io.compress.LzopCodec.LzopOutputStream -->
  15642. <class name="LzopCodec.LzopOutputStream" extends="org.apache.hadoop.io.compress.BlockCompressorStream"
  15643. abstract="false"
  15644. static="true" final="false" visibility="protected"
  15645. deprecated="not deprecated">
  15646. <constructor name="LzopCodec.LzopOutputStream" type="java.io.OutputStream, org.apache.hadoop.io.compress.Compressor, int, org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"
  15647. static="false" final="false" visibility="public"
  15648. deprecated="not deprecated">
  15649. <exception name="IOException" type="java.io.IOException"/>
  15650. </constructor>
  15651. <method name="writeLzopHeader"
  15652. abstract="false" native="false" synchronized="false"
  15653. static="true" final="false" visibility="protected"
  15654. deprecated="not deprecated">
  15655. <param name="out" type="java.io.OutputStream"/>
  15656. <param name="strategy" type="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"/>
  15657. <exception name="IOException" type="java.io.IOException"/>
  15658. <doc>
  15659. <![CDATA[Write an lzop-compatible header to the OutputStream provided.]]>
  15660. </doc>
  15661. </method>
  15662. <method name="close"
  15663. abstract="false" native="false" synchronized="false"
  15664. static="false" final="false" visibility="public"
  15665. deprecated="not deprecated">
  15666. <exception name="IOException" type="java.io.IOException"/>
  15667. <doc>
  15668. <![CDATA[Close the underlying stream and write a null word to the output stream.]]>
  15669. </doc>
  15670. </method>
  15671. </class>
  15672. <!-- end class org.apache.hadoop.io.compress.LzopCodec.LzopOutputStream -->
  15673. </package>
  15674. <package name="org.apache.hadoop.io.compress.bzip2">
  15675. <!-- start interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  15676. <interface name="BZip2Constants" abstract="true"
  15677. static="false" final="false" visibility="public"
  15678. deprecated="not deprecated">
  15679. <field name="baseBlockSize" type="int"
  15680. transient="false" volatile="false"
  15681. static="true" final="true" visibility="public"
  15682. deprecated="not deprecated">
  15683. </field>
  15684. <field name="MAX_ALPHA_SIZE" type="int"
  15685. transient="false" volatile="false"
  15686. static="true" final="true" visibility="public"
  15687. deprecated="not deprecated">
  15688. </field>
  15689. <field name="MAX_CODE_LEN" type="int"
  15690. transient="false" volatile="false"
  15691. static="true" final="true" visibility="public"
  15692. deprecated="not deprecated">
  15693. </field>
  15694. <field name="RUNA" type="int"
  15695. transient="false" volatile="false"
  15696. static="true" final="true" visibility="public"
  15697. deprecated="not deprecated">
  15698. </field>
  15699. <field name="RUNB" type="int"
  15700. transient="false" volatile="false"
  15701. static="true" final="true" visibility="public"
  15702. deprecated="not deprecated">
  15703. </field>
  15704. <field name="N_GROUPS" type="int"
  15705. transient="false" volatile="false"
  15706. static="true" final="true" visibility="public"
  15707. deprecated="not deprecated">
  15708. </field>
  15709. <field name="G_SIZE" type="int"
  15710. transient="false" volatile="false"
  15711. static="true" final="true" visibility="public"
  15712. deprecated="not deprecated">
  15713. </field>
  15714. <field name="N_ITERS" type="int"
  15715. transient="false" volatile="false"
  15716. static="true" final="true" visibility="public"
  15717. deprecated="not deprecated">
  15718. </field>
  15719. <field name="MAX_SELECTORS" type="int"
  15720. transient="false" volatile="false"
  15721. static="true" final="true" visibility="public"
  15722. deprecated="not deprecated">
  15723. </field>
  15724. <field name="NUM_OVERSHOOT_BYTES" type="int"
  15725. transient="false" volatile="false"
  15726. static="true" final="true" visibility="public"
  15727. deprecated="not deprecated">
  15728. </field>
  15729. <field name="rNums" type="int[]"
  15730. transient="false" volatile="false"
  15731. static="true" final="true" visibility="public"
  15732. deprecated="not deprecated">
  15733. <doc>
  15734. <![CDATA[This array really shouldn't be here. Again, for historical purposes it
  15735. is.
  15736. <p>
  15737. FIXME: This array should be in a private or package private location,
  15738. since it could be modified by malicious code.
  15739. </p>]]>
  15740. </doc>
  15741. </field>
  15742. <doc>
  15743. <![CDATA[Base class for both the compress and decompress classes. Holds common arrays,
  15744. and static data.
  15745. <p>
  15746. This interface is public for historical purposes. You should have no need to
  15747. use it.
  15748. </p>]]>
  15749. </doc>
  15750. </interface>
  15751. <!-- end interface org.apache.hadoop.io.compress.bzip2.BZip2Constants -->
  15752. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  15753. <class name="BZip2DummyCompressor" extends="java.lang.Object"
  15754. abstract="false"
  15755. static="false" final="false" visibility="public"
  15756. deprecated="not deprecated">
  15757. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  15758. <constructor name="BZip2DummyCompressor"
  15759. static="false" final="false" visibility="public"
  15760. deprecated="not deprecated">
  15761. </constructor>
  15762. <method name="compress" return="int"
  15763. abstract="false" native="false" synchronized="false"
  15764. static="false" final="false" visibility="public"
  15765. deprecated="not deprecated">
  15766. <param name="b" type="byte[]"/>
  15767. <param name="off" type="int"/>
  15768. <param name="len" type="int"/>
  15769. <exception name="IOException" type="java.io.IOException"/>
  15770. </method>
  15771. <method name="end"
  15772. abstract="false" native="false" synchronized="false"
  15773. static="false" final="false" visibility="public"
  15774. deprecated="not deprecated">
  15775. </method>
  15776. <method name="finish"
  15777. abstract="false" native="false" synchronized="false"
  15778. static="false" final="false" visibility="public"
  15779. deprecated="not deprecated">
  15780. </method>
  15781. <method name="finished" return="boolean"
  15782. abstract="false" native="false" synchronized="false"
  15783. static="false" final="false" visibility="public"
  15784. deprecated="not deprecated">
  15785. </method>
  15786. <method name="getBytesRead" return="long"
  15787. abstract="false" native="false" synchronized="false"
  15788. static="false" final="false" visibility="public"
  15789. deprecated="not deprecated">
  15790. </method>
  15791. <method name="getBytesWritten" return="long"
  15792. abstract="false" native="false" synchronized="false"
  15793. static="false" final="false" visibility="public"
  15794. deprecated="not deprecated">
  15795. </method>
  15796. <method name="needsInput" return="boolean"
  15797. abstract="false" native="false" synchronized="false"
  15798. static="false" final="false" visibility="public"
  15799. deprecated="not deprecated">
  15800. </method>
  15801. <method name="reset"
  15802. abstract="false" native="false" synchronized="false"
  15803. static="false" final="false" visibility="public"
  15804. deprecated="not deprecated">
  15805. </method>
  15806. <method name="setDictionary"
  15807. abstract="false" native="false" synchronized="false"
  15808. static="false" final="false" visibility="public"
  15809. deprecated="not deprecated">
  15810. <param name="b" type="byte[]"/>
  15811. <param name="off" type="int"/>
  15812. <param name="len" type="int"/>
  15813. </method>
  15814. <method name="setInput"
  15815. abstract="false" native="false" synchronized="false"
  15816. static="false" final="false" visibility="public"
  15817. deprecated="not deprecated">
  15818. <param name="b" type="byte[]"/>
  15819. <param name="off" type="int"/>
  15820. <param name="len" type="int"/>
  15821. </method>
  15822. <doc>
  15823. <![CDATA[This is a dummy compressor for BZip2.]]>
  15824. </doc>
  15825. </class>
  15826. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyCompressor -->
  15827. <!-- start class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  15828. <class name="BZip2DummyDecompressor" extends="java.lang.Object"
  15829. abstract="false"
  15830. static="false" final="false" visibility="public"
  15831. deprecated="not deprecated">
  15832. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  15833. <constructor name="BZip2DummyDecompressor"
  15834. static="false" final="false" visibility="public"
  15835. deprecated="not deprecated">
  15836. </constructor>
  15837. <method name="decompress" return="int"
  15838. abstract="false" native="false" synchronized="false"
  15839. static="false" final="false" visibility="public"
  15840. deprecated="not deprecated">
  15841. <param name="b" type="byte[]"/>
  15842. <param name="off" type="int"/>
  15843. <param name="len" type="int"/>
  15844. <exception name="IOException" type="java.io.IOException"/>
  15845. </method>
  15846. <method name="end"
  15847. abstract="false" native="false" synchronized="false"
  15848. static="false" final="false" visibility="public"
  15849. deprecated="not deprecated">
  15850. </method>
  15851. <method name="finished" return="boolean"
  15852. abstract="false" native="false" synchronized="false"
  15853. static="false" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. </method>
  15856. <method name="needsDictionary" return="boolean"
  15857. abstract="false" native="false" synchronized="false"
  15858. static="false" final="false" visibility="public"
  15859. deprecated="not deprecated">
  15860. </method>
  15861. <method name="needsInput" return="boolean"
  15862. abstract="false" native="false" synchronized="false"
  15863. static="false" final="false" visibility="public"
  15864. deprecated="not deprecated">
  15865. </method>
  15866. <method name="reset"
  15867. abstract="false" native="false" synchronized="false"
  15868. static="false" final="false" visibility="public"
  15869. deprecated="not deprecated">
  15870. </method>
  15871. <method name="setDictionary"
  15872. abstract="false" native="false" synchronized="false"
  15873. static="false" final="false" visibility="public"
  15874. deprecated="not deprecated">
  15875. <param name="b" type="byte[]"/>
  15876. <param name="off" type="int"/>
  15877. <param name="len" type="int"/>
  15878. </method>
  15879. <method name="setInput"
  15880. abstract="false" native="false" synchronized="false"
  15881. static="false" final="false" visibility="public"
  15882. deprecated="not deprecated">
  15883. <param name="b" type="byte[]"/>
  15884. <param name="off" type="int"/>
  15885. <param name="len" type="int"/>
  15886. </method>
  15887. <doc>
  15888. <![CDATA[This is a dummy decompressor for BZip2.]]>
  15889. </doc>
  15890. </class>
  15891. <!-- end class org.apache.hadoop.io.compress.bzip2.BZip2DummyDecompressor -->
  15892. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  15893. <class name="CBZip2InputStream" extends="java.io.InputStream"
  15894. abstract="false"
  15895. static="false" final="false" visibility="public"
  15896. deprecated="not deprecated">
  15897. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  15898. <constructor name="CBZip2InputStream" type="java.io.InputStream"
  15899. static="false" final="false" visibility="public"
  15900. deprecated="not deprecated">
  15901. <exception name="IOException" type="java.io.IOException"/>
  15902. <doc>
  15903. <![CDATA[Constructs a new CBZip2InputStream which decompresses bytes read from the
  15904. specified stream.
  15905. <p>
  15906. Although BZip2 headers are marked with the magic <tt>"Bz"</tt> this
  15907. constructor expects the next byte in the stream to be the first one after
  15908. the magic. Thus callers have to skip the first two bytes. Otherwise this
  15909. constructor will throw an exception.
  15910. </p>
  15911. @throws IOException
  15912. if the stream content is malformed or an I/O error occurs.
  15913. @throws NullPointerException
  15914. if <tt>in == null</tt>]]>
  15915. </doc>
  15916. </constructor>
  15917. <method name="read" return="int"
  15918. abstract="false" native="false" synchronized="false"
  15919. static="false" final="false" visibility="public"
  15920. deprecated="not deprecated">
  15921. <exception name="IOException" type="java.io.IOException"/>
  15922. </method>
  15923. <method name="read" return="int"
  15924. abstract="false" native="false" synchronized="false"
  15925. static="false" final="false" visibility="public"
  15926. deprecated="not deprecated">
  15927. <param name="dest" type="byte[]"/>
  15928. <param name="offs" type="int"/>
  15929. <param name="len" type="int"/>
  15930. <exception name="IOException" type="java.io.IOException"/>
  15931. </method>
  15932. <method name="close"
  15933. abstract="false" native="false" synchronized="false"
  15934. static="false" final="false" visibility="public"
  15935. deprecated="not deprecated">
  15936. <exception name="IOException" type="java.io.IOException"/>
  15937. </method>
  15938. <doc>
  15939. <![CDATA[An input stream that decompresses from the BZip2 format (without the file
  15940. header chars) to be read as any other stream.
  15941. <p>
  15942. The decompression requires large amounts of memory. Thus you should call the
  15943. {@link #close() close()} method as soon as possible, to force
  15944. <tt>CBZip2InputStream</tt> to release the allocated memory. See
  15945. {@link CBZip2OutputStream CBZip2OutputStream} for information about memory
  15946. usage.
  15947. </p>
  15948. <p>
  15949. <tt>CBZip2InputStream</tt> reads bytes from the compressed source stream via
  15950. the single byte {@link java.io.InputStream#read() read()} method exclusively.
  15951. Thus you should consider to use a buffered source stream.
  15952. </p>
  15953. <p>
  15954. Instances of this class are not threadsafe.
  15955. </p>]]>
  15956. </doc>
  15957. </class>
  15958. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2InputStream -->
  15959. <!-- start class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  15960. <class name="CBZip2OutputStream" extends="java.io.OutputStream"
  15961. abstract="false"
  15962. static="false" final="false" visibility="public"
  15963. deprecated="not deprecated">
  15964. <implements name="org.apache.hadoop.io.compress.bzip2.BZip2Constants"/>
  15965. <constructor name="CBZip2OutputStream" type="java.io.OutputStream"
  15966. static="false" final="false" visibility="public"
  15967. deprecated="not deprecated">
  15968. <exception name="IOException" type="java.io.IOException"/>
  15969. <doc>
  15970. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with a blocksize of 900k.
  15971. <p>
  15972. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  15973. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  15974. constructor.
  15975. </p>
  15976. @param out *
  15977. the destination stream.
  15978. @throws IOException
  15979. if an I/O error occurs in the specified stream.
  15980. @throws NullPointerException
  15981. if <code>out == null</code>.]]>
  15982. </doc>
  15983. </constructor>
  15984. <constructor name="CBZip2OutputStream" type="java.io.OutputStream, int"
  15985. static="false" final="false" visibility="public"
  15986. deprecated="not deprecated">
  15987. <exception name="IOException" type="java.io.IOException"/>
  15988. <doc>
  15989. <![CDATA[Constructs a new <tt>CBZip2OutputStream</tt> with specified blocksize.
  15990. <p>
  15991. <b>Attention: </b>The caller is resonsible to write the two BZip2 magic
  15992. bytes <tt>"BZ"</tt> to the specified stream prior to calling this
  15993. constructor.
  15994. </p>
  15995. @param out
  15996. the destination stream.
  15997. @param blockSize
  15998. the blockSize as 100k units.
  15999. @throws IOException
  16000. if an I/O error occurs in the specified stream.
  16001. @throws IllegalArgumentException
  16002. if <code>(blockSize < 1) || (blockSize > 9)</code>.
  16003. @throws NullPointerException
  16004. if <code>out == null</code>.
  16005. @see #MIN_BLOCKSIZE
  16006. @see #MAX_BLOCKSIZE]]>
  16007. </doc>
  16008. </constructor>
  16009. <method name="hbMakeCodeLengths"
  16010. abstract="false" native="false" synchronized="false"
  16011. static="true" final="false" visibility="protected"
  16012. deprecated="not deprecated">
  16013. <param name="len" type="char[]"/>
  16014. <param name="freq" type="int[]"/>
  16015. <param name="alphaSize" type="int"/>
  16016. <param name="maxLen" type="int"/>
  16017. <doc>
  16018. <![CDATA[This method is accessible by subclasses for historical purposes. If you
  16019. don't know what it does then you don't need it.]]>
  16020. </doc>
  16021. </method>
  16022. <method name="chooseBlockSize" return="int"
  16023. abstract="false" native="false" synchronized="false"
  16024. static="true" final="false" visibility="public"
  16025. deprecated="not deprecated">
  16026. <param name="inputLength" type="long"/>
  16027. <doc>
  16028. <![CDATA[Chooses a blocksize based on the given length of the data to compress.
  16029. @return The blocksize, between {@link #MIN_BLOCKSIZE} and
  16030. {@link #MAX_BLOCKSIZE} both inclusive. For a negative
  16031. <tt>inputLength</tt> this method returns <tt>MAX_BLOCKSIZE</tt>
  16032. always.
  16033. @param inputLength
  16034. The length of the data which will be compressed by
  16035. <tt>CBZip2OutputStream</tt>.]]>
  16036. </doc>
  16037. </method>
  16038. <method name="write"
  16039. abstract="false" native="false" synchronized="false"
  16040. static="false" final="false" visibility="public"
  16041. deprecated="not deprecated">
  16042. <param name="b" type="int"/>
  16043. <exception name="IOException" type="java.io.IOException"/>
  16044. </method>
  16045. <method name="finalize"
  16046. abstract="false" native="false" synchronized="false"
  16047. static="false" final="false" visibility="protected"
  16048. deprecated="not deprecated">
  16049. <exception name="Throwable" type="java.lang.Throwable"/>
  16050. <doc>
  16051. <![CDATA[Overriden to close the stream.]]>
  16052. </doc>
  16053. </method>
  16054. <method name="finish"
  16055. abstract="false" native="false" synchronized="false"
  16056. static="false" final="false" visibility="public"
  16057. deprecated="not deprecated">
  16058. <exception name="IOException" type="java.io.IOException"/>
  16059. </method>
  16060. <method name="close"
  16061. abstract="false" native="false" synchronized="false"
  16062. static="false" final="false" visibility="public"
  16063. deprecated="not deprecated">
  16064. <exception name="IOException" type="java.io.IOException"/>
  16065. </method>
  16066. <method name="flush"
  16067. abstract="false" native="false" synchronized="false"
  16068. static="false" final="false" visibility="public"
  16069. deprecated="not deprecated">
  16070. <exception name="IOException" type="java.io.IOException"/>
  16071. </method>
  16072. <method name="getBlockSize" return="int"
  16073. abstract="false" native="false" synchronized="false"
  16074. static="false" final="true" visibility="public"
  16075. deprecated="not deprecated">
  16076. <doc>
  16077. <![CDATA[Returns the blocksize parameter specified at construction time.]]>
  16078. </doc>
  16079. </method>
  16080. <method name="write"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <param name="buf" type="byte[]"/>
  16085. <param name="offs" type="int"/>
  16086. <param name="len" type="int"/>
  16087. <exception name="IOException" type="java.io.IOException"/>
  16088. </method>
  16089. <field name="MIN_BLOCKSIZE" type="int"
  16090. transient="false" volatile="false"
  16091. static="true" final="true" visibility="public"
  16092. deprecated="not deprecated">
  16093. <doc>
  16094. <![CDATA[The minimum supported blocksize <tt> == 1</tt>.]]>
  16095. </doc>
  16096. </field>
  16097. <field name="MAX_BLOCKSIZE" type="int"
  16098. transient="false" volatile="false"
  16099. static="true" final="true" visibility="public"
  16100. deprecated="not deprecated">
  16101. <doc>
  16102. <![CDATA[The maximum supported blocksize <tt> == 9</tt>.]]>
  16103. </doc>
  16104. </field>
  16105. <field name="SETMASK" type="int"
  16106. transient="false" volatile="false"
  16107. static="true" final="true" visibility="protected"
  16108. deprecated="not deprecated">
  16109. <doc>
  16110. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16111. don't know what it means then you don't need it.]]>
  16112. </doc>
  16113. </field>
  16114. <field name="CLEARMASK" type="int"
  16115. transient="false" volatile="false"
  16116. static="true" final="true" visibility="protected"
  16117. deprecated="not deprecated">
  16118. <doc>
  16119. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16120. don't know what it means then you don't need it.]]>
  16121. </doc>
  16122. </field>
  16123. <field name="GREATER_ICOST" type="int"
  16124. transient="false" volatile="false"
  16125. static="true" final="true" visibility="protected"
  16126. deprecated="not deprecated">
  16127. <doc>
  16128. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16129. don't know what it means then you don't need it.]]>
  16130. </doc>
  16131. </field>
  16132. <field name="LESSER_ICOST" type="int"
  16133. transient="false" volatile="false"
  16134. static="true" final="true" visibility="protected"
  16135. deprecated="not deprecated">
  16136. <doc>
  16137. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16138. don't know what it means then you don't need it.]]>
  16139. </doc>
  16140. </field>
  16141. <field name="SMALL_THRESH" type="int"
  16142. transient="false" volatile="false"
  16143. static="true" final="true" visibility="protected"
  16144. deprecated="not deprecated">
  16145. <doc>
  16146. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16147. don't know what it means then you don't need it.]]>
  16148. </doc>
  16149. </field>
  16150. <field name="DEPTH_THRESH" type="int"
  16151. transient="false" volatile="false"
  16152. static="true" final="true" visibility="protected"
  16153. deprecated="not deprecated">
  16154. <doc>
  16155. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16156. don't know what it means then you don't need it.]]>
  16157. </doc>
  16158. </field>
  16159. <field name="WORK_FACTOR" type="int"
  16160. transient="false" volatile="false"
  16161. static="true" final="true" visibility="protected"
  16162. deprecated="not deprecated">
  16163. <doc>
  16164. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16165. don't know what it means then you don't need it.]]>
  16166. </doc>
  16167. </field>
  16168. <field name="QSORT_STACK_SIZE" type="int"
  16169. transient="false" volatile="false"
  16170. static="true" final="true" visibility="protected"
  16171. deprecated="not deprecated">
  16172. <doc>
  16173. <![CDATA[This constant is accessible by subclasses for historical purposes. If you
  16174. don't know what it means then you don't need it.
  16175. <p>
  16176. If you are ever unlucky/improbable enough to get a stack overflow whilst
  16177. sorting, increase the following constant and try again. In practice I
  16178. have never seen the stack go above 27 elems, so the following limit seems
  16179. very generous.
  16180. </p>]]>
  16181. </doc>
  16182. </field>
  16183. <doc>
  16184. <![CDATA[An output stream that compresses into the BZip2 format (without the file
  16185. header chars) into another stream.
  16186. <p>
  16187. The compression requires large amounts of memory. Thus you should call the
  16188. {@link #close() close()} method as soon as possible, to force
  16189. <tt>CBZip2OutputStream</tt> to release the allocated memory.
  16190. </p>
  16191. <p>
  16192. You can shrink the amount of allocated memory and maybe raise the compression
  16193. speed by choosing a lower blocksize, which in turn may cause a lower
  16194. compression ratio. You can avoid unnecessary memory allocation by avoiding
  16195. using a blocksize which is bigger than the size of the input.
  16196. </p>
  16197. <p>
  16198. You can compute the memory usage for compressing by the following formula:
  16199. </p>
  16200. <pre>
  16201. &lt;code&gt;400k + (9 * blocksize)&lt;/code&gt;.
  16202. </pre>
  16203. <p>
  16204. To get the memory required for decompression by {@link CBZip2InputStream
  16205. CBZip2InputStream} use
  16206. </p>
  16207. <pre>
  16208. &lt;code&gt;65k + (5 * blocksize)&lt;/code&gt;.
  16209. </pre>
  16210. <table width="100%" border="1">
  16211. <colgroup> <col width="33%" /> <col width="33%" /> <col width="33%" />
  16212. </colgroup>
  16213. <tr>
  16214. <th colspan="3">Memory usage by blocksize</th>
  16215. </tr>
  16216. <tr>
  16217. <th align="right">Blocksize</th> <th align="right">Compression<br>
  16218. memory usage</th> <th align="right">Decompression<br>
  16219. memory usage</th>
  16220. </tr>
  16221. <tr>
  16222. <td align="right">100k</td>
  16223. <td align="right">1300k</td>
  16224. <td align="right">565k</td>
  16225. </tr>
  16226. <tr>
  16227. <td align="right">200k</td>
  16228. <td align="right">2200k</td>
  16229. <td align="right">1065k</td>
  16230. </tr>
  16231. <tr>
  16232. <td align="right">300k</td>
  16233. <td align="right">3100k</td>
  16234. <td align="right">1565k</td>
  16235. </tr>
  16236. <tr>
  16237. <td align="right">400k</td>
  16238. <td align="right">4000k</td>
  16239. <td align="right">2065k</td>
  16240. </tr>
  16241. <tr>
  16242. <td align="right">500k</td>
  16243. <td align="right">4900k</td>
  16244. <td align="right">2565k</td>
  16245. </tr>
  16246. <tr>
  16247. <td align="right">600k</td>
  16248. <td align="right">5800k</td>
  16249. <td align="right">3065k</td>
  16250. </tr>
  16251. <tr>
  16252. <td align="right">700k</td>
  16253. <td align="right">6700k</td>
  16254. <td align="right">3565k</td>
  16255. </tr>
  16256. <tr>
  16257. <td align="right">800k</td>
  16258. <td align="right">7600k</td>
  16259. <td align="right">4065k</td>
  16260. </tr>
  16261. <tr>
  16262. <td align="right">900k</td>
  16263. <td align="right">8500k</td>
  16264. <td align="right">4565k</td>
  16265. </tr>
  16266. </table>
  16267. <p>
  16268. For decompression <tt>CBZip2InputStream</tt> allocates less memory if the
  16269. bzipped input is smaller than one block.
  16270. </p>
  16271. <p>
  16272. Instances of this class are not threadsafe.
  16273. </p>
  16274. <p>
  16275. TODO: Update to BZip2 1.0.1
  16276. </p>]]>
  16277. </doc>
  16278. </class>
  16279. <!-- end class org.apache.hadoop.io.compress.bzip2.CBZip2OutputStream -->
  16280. </package>
  16281. <package name="org.apache.hadoop.io.compress.lzo">
  16282. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  16283. <class name="LzoCompressor" extends="java.lang.Object"
  16284. abstract="false"
  16285. static="false" final="false" visibility="public"
  16286. deprecated="not deprecated">
  16287. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16288. <constructor name="LzoCompressor" type="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy, int"
  16289. static="false" final="false" visibility="public"
  16290. deprecated="not deprecated">
  16291. <doc>
  16292. <![CDATA[Creates a new compressor using the specified {@link CompressionStrategy}.
  16293. @param strategy lzo compression algorithm to use
  16294. @param directBufferSize size of the direct buffer to be used.]]>
  16295. </doc>
  16296. </constructor>
  16297. <constructor name="LzoCompressor"
  16298. static="false" final="false" visibility="public"
  16299. deprecated="not deprecated">
  16300. <doc>
  16301. <![CDATA[Creates a new compressor with the default lzo1x_1 compression.]]>
  16302. </doc>
  16303. </constructor>
  16304. <method name="isNativeLzoLoaded" return="boolean"
  16305. abstract="false" native="false" synchronized="false"
  16306. static="true" final="false" visibility="public"
  16307. deprecated="not deprecated">
  16308. <doc>
  16309. <![CDATA[Check if lzo compressors are loaded and initialized.
  16310. @return <code>true</code> if lzo compressors are loaded & initialized,
  16311. else <code>false</code>]]>
  16312. </doc>
  16313. </method>
  16314. <method name="setInput"
  16315. abstract="false" native="false" synchronized="true"
  16316. static="false" final="false" visibility="public"
  16317. deprecated="not deprecated">
  16318. <param name="b" type="byte[]"/>
  16319. <param name="off" type="int"/>
  16320. <param name="len" type="int"/>
  16321. </method>
  16322. <method name="setDictionary"
  16323. abstract="false" native="false" synchronized="true"
  16324. static="false" final="false" visibility="public"
  16325. deprecated="not deprecated">
  16326. <param name="b" type="byte[]"/>
  16327. <param name="off" type="int"/>
  16328. <param name="len" type="int"/>
  16329. </method>
  16330. <method name="needsInput" return="boolean"
  16331. abstract="false" native="false" synchronized="false"
  16332. static="false" final="false" visibility="public"
  16333. deprecated="not deprecated">
  16334. <doc>
  16335. <![CDATA[{@inheritDoc}]]>
  16336. </doc>
  16337. </method>
  16338. <method name="finish"
  16339. abstract="false" native="false" synchronized="true"
  16340. static="false" final="false" visibility="public"
  16341. deprecated="not deprecated">
  16342. </method>
  16343. <method name="finished" return="boolean"
  16344. abstract="false" native="false" synchronized="true"
  16345. static="false" final="false" visibility="public"
  16346. deprecated="not deprecated">
  16347. </method>
  16348. <method name="compress" return="int"
  16349. abstract="false" native="false" synchronized="true"
  16350. static="false" final="false" visibility="public"
  16351. deprecated="not deprecated">
  16352. <param name="b" type="byte[]"/>
  16353. <param name="off" type="int"/>
  16354. <param name="len" type="int"/>
  16355. <exception name="IOException" type="java.io.IOException"/>
  16356. </method>
  16357. <method name="reset"
  16358. abstract="false" native="false" synchronized="true"
  16359. static="false" final="false" visibility="public"
  16360. deprecated="not deprecated">
  16361. </method>
  16362. <method name="getBytesRead" return="long"
  16363. abstract="false" native="false" synchronized="true"
  16364. static="false" final="false" visibility="public"
  16365. deprecated="not deprecated">
  16366. <doc>
  16367. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  16368. </doc>
  16369. </method>
  16370. <method name="getBytesWritten" return="long"
  16371. abstract="false" native="false" synchronized="true"
  16372. static="false" final="false" visibility="public"
  16373. deprecated="not deprecated">
  16374. <doc>
  16375. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  16376. </doc>
  16377. </method>
  16378. <method name="end"
  16379. abstract="false" native="false" synchronized="true"
  16380. static="false" final="false" visibility="public"
  16381. deprecated="not deprecated">
  16382. <doc>
  16383. <![CDATA[Noop.]]>
  16384. </doc>
  16385. </method>
  16386. <field name="LZO_LIBRARY_VERSION" type="int"
  16387. transient="false" volatile="false"
  16388. static="true" final="true" visibility="public"
  16389. deprecated="not deprecated">
  16390. </field>
  16391. <doc>
  16392. <![CDATA[A {@link Compressor} based on the lzo algorithm.
  16393. http://www.oberhumer.com/opensource/lzo/]]>
  16394. </doc>
  16395. </class>
  16396. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  16397. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  16398. <class name="LzoCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy&gt;"
  16399. abstract="false"
  16400. static="true" final="true" visibility="public"
  16401. deprecated="not deprecated">
  16402. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy[]"
  16403. abstract="false" native="false" synchronized="false"
  16404. static="true" final="false" visibility="public"
  16405. deprecated="not deprecated">
  16406. </method>
  16407. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"
  16408. abstract="false" native="false" synchronized="false"
  16409. static="true" final="false" visibility="public"
  16410. deprecated="not deprecated">
  16411. <param name="name" type="java.lang.String"/>
  16412. </method>
  16413. <doc>
  16414. <![CDATA[The compression algorithm for lzo library.]]>
  16415. </doc>
  16416. </class>
  16417. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  16418. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  16419. <class name="LzoDecompressor" extends="java.lang.Object"
  16420. abstract="false"
  16421. static="false" final="false" visibility="public"
  16422. deprecated="not deprecated">
  16423. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16424. <constructor name="LzoDecompressor" type="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy, int"
  16425. static="false" final="false" visibility="public"
  16426. deprecated="not deprecated">
  16427. <doc>
  16428. <![CDATA[Creates a new lzo decompressor.
  16429. @param strategy lzo decompression algorithm
  16430. @param directBufferSize size of the direct-buffer]]>
  16431. </doc>
  16432. </constructor>
  16433. <constructor name="LzoDecompressor"
  16434. static="false" final="false" visibility="public"
  16435. deprecated="not deprecated">
  16436. <doc>
  16437. <![CDATA[Creates a new lzo decompressor.]]>
  16438. </doc>
  16439. </constructor>
  16440. <method name="isNativeLzoLoaded" return="boolean"
  16441. abstract="false" native="false" synchronized="false"
  16442. static="true" final="false" visibility="public"
  16443. deprecated="not deprecated">
  16444. <doc>
  16445. <![CDATA[Check if lzo decompressors are loaded and initialized.
  16446. @return <code>true</code> if lzo decompressors are loaded & initialized,
  16447. else <code>false</code>]]>
  16448. </doc>
  16449. </method>
  16450. <method name="setInput"
  16451. abstract="false" native="false" synchronized="true"
  16452. static="false" final="false" visibility="public"
  16453. deprecated="not deprecated">
  16454. <param name="b" type="byte[]"/>
  16455. <param name="off" type="int"/>
  16456. <param name="len" type="int"/>
  16457. </method>
  16458. <method name="setDictionary"
  16459. abstract="false" native="false" synchronized="true"
  16460. static="false" final="false" visibility="public"
  16461. deprecated="not deprecated">
  16462. <param name="b" type="byte[]"/>
  16463. <param name="off" type="int"/>
  16464. <param name="len" type="int"/>
  16465. </method>
  16466. <method name="needsInput" return="boolean"
  16467. abstract="false" native="false" synchronized="true"
  16468. static="false" final="false" visibility="public"
  16469. deprecated="not deprecated">
  16470. </method>
  16471. <method name="needsDictionary" return="boolean"
  16472. abstract="false" native="false" synchronized="true"
  16473. static="false" final="false" visibility="public"
  16474. deprecated="not deprecated">
  16475. </method>
  16476. <method name="finished" return="boolean"
  16477. abstract="false" native="false" synchronized="true"
  16478. static="false" final="false" visibility="public"
  16479. deprecated="not deprecated">
  16480. </method>
  16481. <method name="decompress" return="int"
  16482. abstract="false" native="false" synchronized="true"
  16483. static="false" final="false" visibility="public"
  16484. deprecated="not deprecated">
  16485. <param name="b" type="byte[]"/>
  16486. <param name="off" type="int"/>
  16487. <param name="len" type="int"/>
  16488. <exception name="IOException" type="java.io.IOException"/>
  16489. </method>
  16490. <method name="reset"
  16491. abstract="false" native="false" synchronized="true"
  16492. static="false" final="false" visibility="public"
  16493. deprecated="not deprecated">
  16494. </method>
  16495. <method name="end"
  16496. abstract="false" native="false" synchronized="true"
  16497. static="false" final="false" visibility="public"
  16498. deprecated="not deprecated">
  16499. </method>
  16500. <method name="finalize"
  16501. abstract="false" native="false" synchronized="false"
  16502. static="false" final="false" visibility="protected"
  16503. deprecated="not deprecated">
  16504. </method>
  16505. <field name="LZO_LIBRARY_VERSION" type="int"
  16506. transient="false" volatile="false"
  16507. static="true" final="true" visibility="public"
  16508. deprecated="not deprecated">
  16509. </field>
  16510. <doc>
  16511. <![CDATA[A {@link Decompressor} based on the lzo algorithm.
  16512. http://www.oberhumer.com/opensource/lzo/]]>
  16513. </doc>
  16514. </class>
  16515. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  16516. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  16517. <class name="LzoDecompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy&gt;"
  16518. abstract="false"
  16519. static="true" final="true" visibility="public"
  16520. deprecated="not deprecated">
  16521. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy[]"
  16522. abstract="false" native="false" synchronized="false"
  16523. static="true" final="false" visibility="public"
  16524. deprecated="not deprecated">
  16525. </method>
  16526. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy"
  16527. abstract="false" native="false" synchronized="false"
  16528. static="true" final="false" visibility="public"
  16529. deprecated="not deprecated">
  16530. <param name="name" type="java.lang.String"/>
  16531. </method>
  16532. </class>
  16533. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  16534. </package>
  16535. <package name="org.apache.hadoop.io.compress.zlib">
  16536. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16537. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  16538. abstract="false"
  16539. static="false" final="false" visibility="public"
  16540. deprecated="not deprecated">
  16541. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16542. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  16543. static="false" final="false" visibility="public"
  16544. deprecated="not deprecated">
  16545. </constructor>
  16546. <constructor name="BuiltInZlibDeflater" type="int"
  16547. static="false" final="false" visibility="public"
  16548. deprecated="not deprecated">
  16549. </constructor>
  16550. <constructor name="BuiltInZlibDeflater"
  16551. static="false" final="false" visibility="public"
  16552. deprecated="not deprecated">
  16553. </constructor>
  16554. <method name="compress" return="int"
  16555. abstract="false" native="false" synchronized="true"
  16556. static="false" final="false" visibility="public"
  16557. deprecated="not deprecated">
  16558. <param name="b" type="byte[]"/>
  16559. <param name="off" type="int"/>
  16560. <param name="len" type="int"/>
  16561. <exception name="IOException" type="java.io.IOException"/>
  16562. </method>
  16563. <doc>
  16564. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  16565. to org.apache.hadoop.io.compress.Compressor interface.]]>
  16566. </doc>
  16567. </class>
  16568. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  16569. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16570. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  16571. abstract="false"
  16572. static="false" final="false" visibility="public"
  16573. deprecated="not deprecated">
  16574. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16575. <constructor name="BuiltInZlibInflater" type="boolean"
  16576. static="false" final="false" visibility="public"
  16577. deprecated="not deprecated">
  16578. </constructor>
  16579. <constructor name="BuiltInZlibInflater"
  16580. static="false" final="false" visibility="public"
  16581. deprecated="not deprecated">
  16582. </constructor>
  16583. <method name="decompress" return="int"
  16584. abstract="false" native="false" synchronized="true"
  16585. static="false" final="false" visibility="public"
  16586. deprecated="not deprecated">
  16587. <param name="b" type="byte[]"/>
  16588. <param name="off" type="int"/>
  16589. <param name="len" type="int"/>
  16590. <exception name="IOException" type="java.io.IOException"/>
  16591. </method>
  16592. <doc>
  16593. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  16594. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  16595. </doc>
  16596. </class>
  16597. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  16598. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  16599. <class name="ZlibCompressor" extends="java.lang.Object"
  16600. abstract="false"
  16601. static="false" final="false" visibility="public"
  16602. deprecated="not deprecated">
  16603. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  16604. <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"
  16605. static="false" final="false" visibility="public"
  16606. deprecated="not deprecated">
  16607. <doc>
  16608. <![CDATA[Creates a new compressor using the specified compression level.
  16609. Compressed data will be generated in ZLIB format.
  16610. @param level Compression level #CompressionLevel
  16611. @param strategy Compression strategy #CompressionStrategy
  16612. @param header Compression header #CompressionHeader
  16613. @param directBufferSize Size of the direct buffer to be used.]]>
  16614. </doc>
  16615. </constructor>
  16616. <constructor name="ZlibCompressor"
  16617. static="false" final="false" visibility="public"
  16618. deprecated="not deprecated">
  16619. <doc>
  16620. <![CDATA[Creates a new compressor with the default compression level.
  16621. Compressed data will be generated in ZLIB format.]]>
  16622. </doc>
  16623. </constructor>
  16624. <method name="setInput"
  16625. abstract="false" native="false" synchronized="true"
  16626. static="false" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <param name="b" type="byte[]"/>
  16629. <param name="off" type="int"/>
  16630. <param name="len" type="int"/>
  16631. </method>
  16632. <method name="setDictionary"
  16633. abstract="false" native="false" synchronized="true"
  16634. static="false" final="false" visibility="public"
  16635. deprecated="not deprecated">
  16636. <param name="b" type="byte[]"/>
  16637. <param name="off" type="int"/>
  16638. <param name="len" type="int"/>
  16639. </method>
  16640. <method name="needsInput" return="boolean"
  16641. abstract="false" native="false" synchronized="false"
  16642. static="false" final="false" visibility="public"
  16643. deprecated="not deprecated">
  16644. </method>
  16645. <method name="finish"
  16646. abstract="false" native="false" synchronized="true"
  16647. static="false" final="false" visibility="public"
  16648. deprecated="not deprecated">
  16649. </method>
  16650. <method name="finished" return="boolean"
  16651. abstract="false" native="false" synchronized="true"
  16652. static="false" final="false" visibility="public"
  16653. deprecated="not deprecated">
  16654. </method>
  16655. <method name="compress" return="int"
  16656. abstract="false" native="false" synchronized="true"
  16657. static="false" final="false" visibility="public"
  16658. deprecated="not deprecated">
  16659. <param name="b" type="byte[]"/>
  16660. <param name="off" type="int"/>
  16661. <param name="len" type="int"/>
  16662. <exception name="IOException" type="java.io.IOException"/>
  16663. </method>
  16664. <method name="getBytesWritten" return="long"
  16665. abstract="false" native="false" synchronized="true"
  16666. static="false" final="false" visibility="public"
  16667. deprecated="not deprecated">
  16668. <doc>
  16669. <![CDATA[Returns the total number of compressed bytes output so far.
  16670. @return the total (non-negative) number of compressed bytes output so far]]>
  16671. </doc>
  16672. </method>
  16673. <method name="getBytesRead" return="long"
  16674. abstract="false" native="false" synchronized="true"
  16675. static="false" final="false" visibility="public"
  16676. deprecated="not deprecated">
  16677. <doc>
  16678. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  16679. @return the total (non-negative) number of uncompressed bytes input so far]]>
  16680. </doc>
  16681. </method>
  16682. <method name="reset"
  16683. abstract="false" native="false" synchronized="true"
  16684. static="false" final="false" visibility="public"
  16685. deprecated="not deprecated">
  16686. </method>
  16687. <method name="end"
  16688. abstract="false" native="false" synchronized="true"
  16689. static="false" final="false" visibility="public"
  16690. deprecated="not deprecated">
  16691. </method>
  16692. <doc>
  16693. <![CDATA[A {@link Compressor} based on the popular
  16694. zlib compression algorithm.
  16695. http://www.zlib.net/]]>
  16696. </doc>
  16697. </class>
  16698. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  16699. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  16700. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader&gt;"
  16701. abstract="false"
  16702. static="true" final="true" visibility="public"
  16703. deprecated="not deprecated">
  16704. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  16705. abstract="false" native="false" synchronized="false"
  16706. static="true" final="false" visibility="public"
  16707. deprecated="not deprecated">
  16708. </method>
  16709. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  16710. abstract="false" native="false" synchronized="false"
  16711. static="true" final="false" visibility="public"
  16712. deprecated="not deprecated">
  16713. <param name="name" type="java.lang.String"/>
  16714. </method>
  16715. <method name="windowBits" return="int"
  16716. abstract="false" native="false" synchronized="false"
  16717. static="false" final="false" visibility="public"
  16718. deprecated="not deprecated">
  16719. </method>
  16720. <doc>
  16721. <![CDATA[The type of header for compressed data.]]>
  16722. </doc>
  16723. </class>
  16724. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  16725. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  16726. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel&gt;"
  16727. abstract="false"
  16728. static="true" final="true" visibility="public"
  16729. deprecated="not deprecated">
  16730. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  16731. abstract="false" native="false" synchronized="false"
  16732. static="true" final="false" visibility="public"
  16733. deprecated="not deprecated">
  16734. </method>
  16735. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  16736. abstract="false" native="false" synchronized="false"
  16737. static="true" final="false" visibility="public"
  16738. deprecated="not deprecated">
  16739. <param name="name" type="java.lang.String"/>
  16740. </method>
  16741. <doc>
  16742. <![CDATA[The compression level for zlib library.]]>
  16743. </doc>
  16744. </class>
  16745. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  16746. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  16747. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy&gt;"
  16748. abstract="false"
  16749. static="true" final="true" visibility="public"
  16750. deprecated="not deprecated">
  16751. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  16752. abstract="false" native="false" synchronized="false"
  16753. static="true" final="false" visibility="public"
  16754. deprecated="not deprecated">
  16755. </method>
  16756. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  16757. abstract="false" native="false" synchronized="false"
  16758. static="true" final="false" visibility="public"
  16759. deprecated="not deprecated">
  16760. <param name="name" type="java.lang.String"/>
  16761. </method>
  16762. <doc>
  16763. <![CDATA[The compression level for zlib library.]]>
  16764. </doc>
  16765. </class>
  16766. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  16767. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  16768. <class name="ZlibDecompressor" extends="java.lang.Object"
  16769. abstract="false"
  16770. static="false" final="false" visibility="public"
  16771. deprecated="not deprecated">
  16772. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  16773. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  16774. static="false" final="false" visibility="public"
  16775. deprecated="not deprecated">
  16776. <doc>
  16777. <![CDATA[Creates a new decompressor.]]>
  16778. </doc>
  16779. </constructor>
  16780. <constructor name="ZlibDecompressor"
  16781. static="false" final="false" visibility="public"
  16782. deprecated="not deprecated">
  16783. </constructor>
  16784. <method name="setInput"
  16785. abstract="false" native="false" synchronized="true"
  16786. static="false" final="false" visibility="public"
  16787. deprecated="not deprecated">
  16788. <param name="b" type="byte[]"/>
  16789. <param name="off" type="int"/>
  16790. <param name="len" type="int"/>
  16791. </method>
  16792. <method name="setDictionary"
  16793. abstract="false" native="false" synchronized="true"
  16794. static="false" final="false" visibility="public"
  16795. deprecated="not deprecated">
  16796. <param name="b" type="byte[]"/>
  16797. <param name="off" type="int"/>
  16798. <param name="len" type="int"/>
  16799. </method>
  16800. <method name="needsInput" return="boolean"
  16801. abstract="false" native="false" synchronized="true"
  16802. static="false" final="false" visibility="public"
  16803. deprecated="not deprecated">
  16804. </method>
  16805. <method name="needsDictionary" return="boolean"
  16806. abstract="false" native="false" synchronized="true"
  16807. static="false" final="false" visibility="public"
  16808. deprecated="not deprecated">
  16809. </method>
  16810. <method name="finished" return="boolean"
  16811. abstract="false" native="false" synchronized="true"
  16812. static="false" final="false" visibility="public"
  16813. deprecated="not deprecated">
  16814. </method>
  16815. <method name="decompress" return="int"
  16816. abstract="false" native="false" synchronized="true"
  16817. static="false" final="false" visibility="public"
  16818. deprecated="not deprecated">
  16819. <param name="b" type="byte[]"/>
  16820. <param name="off" type="int"/>
  16821. <param name="len" type="int"/>
  16822. <exception name="IOException" type="java.io.IOException"/>
  16823. </method>
  16824. <method name="getBytesWritten" return="long"
  16825. abstract="false" native="false" synchronized="true"
  16826. static="false" final="false" visibility="public"
  16827. deprecated="not deprecated">
  16828. <doc>
  16829. <![CDATA[Returns the total number of compressed bytes output so far.
  16830. @return the total (non-negative) number of compressed bytes output so far]]>
  16831. </doc>
  16832. </method>
  16833. <method name="getBytesRead" return="long"
  16834. abstract="false" native="false" synchronized="true"
  16835. static="false" final="false" visibility="public"
  16836. deprecated="not deprecated">
  16837. <doc>
  16838. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  16839. @return the total (non-negative) number of uncompressed bytes input so far]]>
  16840. </doc>
  16841. </method>
  16842. <method name="reset"
  16843. abstract="false" native="false" synchronized="true"
  16844. static="false" final="false" visibility="public"
  16845. deprecated="not deprecated">
  16846. </method>
  16847. <method name="end"
  16848. abstract="false" native="false" synchronized="true"
  16849. static="false" final="false" visibility="public"
  16850. deprecated="not deprecated">
  16851. </method>
  16852. <method name="finalize"
  16853. abstract="false" native="false" synchronized="false"
  16854. static="false" final="false" visibility="protected"
  16855. deprecated="not deprecated">
  16856. </method>
  16857. <doc>
  16858. <![CDATA[A {@link Decompressor} based on the popular
  16859. zlib compression algorithm.
  16860. http://www.zlib.net/]]>
  16861. </doc>
  16862. </class>
  16863. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  16864. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  16865. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader&gt;"
  16866. abstract="false"
  16867. static="true" final="true" visibility="public"
  16868. deprecated="not deprecated">
  16869. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  16870. abstract="false" native="false" synchronized="false"
  16871. static="true" final="false" visibility="public"
  16872. deprecated="not deprecated">
  16873. </method>
  16874. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  16875. abstract="false" native="false" synchronized="false"
  16876. static="true" final="false" visibility="public"
  16877. deprecated="not deprecated">
  16878. <param name="name" type="java.lang.String"/>
  16879. </method>
  16880. <method name="windowBits" return="int"
  16881. abstract="false" native="false" synchronized="false"
  16882. static="false" final="false" visibility="public"
  16883. deprecated="not deprecated">
  16884. </method>
  16885. <doc>
  16886. <![CDATA[The headers to detect from compressed data.]]>
  16887. </doc>
  16888. </class>
  16889. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  16890. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  16891. <class name="ZlibFactory" extends="java.lang.Object"
  16892. abstract="false"
  16893. static="false" final="false" visibility="public"
  16894. deprecated="not deprecated">
  16895. <constructor name="ZlibFactory"
  16896. static="false" final="false" visibility="public"
  16897. deprecated="not deprecated">
  16898. </constructor>
  16899. <method name="isNativeZlibLoaded" return="boolean"
  16900. abstract="false" native="false" synchronized="false"
  16901. static="true" final="false" visibility="public"
  16902. deprecated="not deprecated">
  16903. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16904. <doc>
  16905. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  16906. can be loaded for this job.
  16907. @param conf configuration
  16908. @return <code>true</code> if native-zlib is loaded & initialized
  16909. and can be loaded for this job, else <code>false</code>]]>
  16910. </doc>
  16911. </method>
  16912. <method name="getZlibCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  16913. abstract="false" native="false" synchronized="false"
  16914. static="true" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16917. <doc>
  16918. <![CDATA[Return the appropriate type of the zlib compressor.
  16919. @param conf configuration
  16920. @return the appropriate type of the zlib compressor.]]>
  16921. </doc>
  16922. </method>
  16923. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  16924. abstract="false" native="false" synchronized="false"
  16925. static="true" final="false" visibility="public"
  16926. deprecated="not deprecated">
  16927. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16928. <doc>
  16929. <![CDATA[Return the appropriate implementation of the zlib compressor.
  16930. @param conf configuration
  16931. @return the appropriate implementation of the zlib compressor.]]>
  16932. </doc>
  16933. </method>
  16934. <method name="getZlibDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  16935. abstract="false" native="false" synchronized="false"
  16936. static="true" final="false" visibility="public"
  16937. deprecated="not deprecated">
  16938. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16939. <doc>
  16940. <![CDATA[Return the appropriate type of the zlib decompressor.
  16941. @param conf configuration
  16942. @return the appropriate type of the zlib decompressor.]]>
  16943. </doc>
  16944. </method>
  16945. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  16946. abstract="false" native="false" synchronized="false"
  16947. static="true" final="false" visibility="public"
  16948. deprecated="not deprecated">
  16949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16950. <doc>
  16951. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  16952. @param conf configuration
  16953. @return the appropriate implementation of the zlib decompressor.]]>
  16954. </doc>
  16955. </method>
  16956. <doc>
  16957. <![CDATA[A collection of factories to create the right
  16958. zlib/gzip compressor/decompressor instances.]]>
  16959. </doc>
  16960. </class>
  16961. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  16962. </package>
  16963. <package name="org.apache.hadoop.io.retry">
  16964. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  16965. <class name="RetryPolicies" extends="java.lang.Object"
  16966. abstract="false"
  16967. static="false" final="false" visibility="public"
  16968. deprecated="not deprecated">
  16969. <constructor name="RetryPolicies"
  16970. static="false" final="false" visibility="public"
  16971. deprecated="not deprecated">
  16972. </constructor>
  16973. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  16974. abstract="false" native="false" synchronized="false"
  16975. static="true" final="true" visibility="public"
  16976. deprecated="not deprecated">
  16977. <param name="maxRetries" type="int"/>
  16978. <param name="sleepTime" type="long"/>
  16979. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  16980. <doc>
  16981. <![CDATA[<p>
  16982. Keep trying a limited number of times, waiting a fixed time between attempts,
  16983. and then fail by re-throwing the exception.
  16984. </p>]]>
  16985. </doc>
  16986. </method>
  16987. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  16988. abstract="false" native="false" synchronized="false"
  16989. static="true" final="true" visibility="public"
  16990. deprecated="not deprecated">
  16991. <param name="maxTime" type="long"/>
  16992. <param name="sleepTime" type="long"/>
  16993. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  16994. <doc>
  16995. <![CDATA[<p>
  16996. Keep trying for a maximum time, waiting a fixed time between attempts,
  16997. and then fail by re-throwing the exception.
  16998. </p>]]>
  16999. </doc>
  17000. </method>
  17001. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  17002. abstract="false" native="false" synchronized="false"
  17003. static="true" final="true" visibility="public"
  17004. deprecated="not deprecated">
  17005. <param name="maxRetries" type="int"/>
  17006. <param name="sleepTime" type="long"/>
  17007. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17008. <doc>
  17009. <![CDATA[<p>
  17010. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17011. and then fail by re-throwing the exception.
  17012. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  17013. </p>]]>
  17014. </doc>
  17015. </method>
  17016. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  17017. abstract="false" native="false" synchronized="false"
  17018. static="true" final="true" visibility="public"
  17019. deprecated="not deprecated">
  17020. <param name="maxRetries" type="int"/>
  17021. <param name="sleepTime" type="long"/>
  17022. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  17023. <doc>
  17024. <![CDATA[<p>
  17025. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  17026. and then fail by re-throwing the exception.
  17027. The time between attempts is <code>sleepTime</code> mutliplied by a random
  17028. number in the range of [0, 2 to the number of retries)
  17029. </p>]]>
  17030. </doc>
  17031. </method>
  17032. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17033. abstract="false" native="false" synchronized="false"
  17034. static="true" final="true" visibility="public"
  17035. deprecated="not deprecated">
  17036. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17037. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  17038. <doc>
  17039. <![CDATA[<p>
  17040. Set a default policy with some explicit handlers for specific exceptions.
  17041. </p>]]>
  17042. </doc>
  17043. </method>
  17044. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  17045. abstract="false" native="false" synchronized="false"
  17046. static="true" final="true" visibility="public"
  17047. deprecated="not deprecated">
  17048. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17049. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  17050. <doc>
  17051. <![CDATA[<p>
  17052. A retry policy for RemoteException
  17053. Set a default policy with some explicit handlers for specific exceptions.
  17054. </p>]]>
  17055. </doc>
  17056. </method>
  17057. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17058. transient="false" volatile="false"
  17059. static="true" final="true" visibility="public"
  17060. deprecated="not deprecated">
  17061. <doc>
  17062. <![CDATA[<p>
  17063. Try once, and fail by re-throwing the exception.
  17064. This corresponds to having no retry mechanism in place.
  17065. </p>]]>
  17066. </doc>
  17067. </field>
  17068. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  17069. transient="false" volatile="false"
  17070. static="true" final="true" visibility="public"
  17071. deprecated="not deprecated">
  17072. <doc>
  17073. <![CDATA[<p>
  17074. Try once, and fail silently for <code>void</code> methods, or by
  17075. re-throwing the exception for non-<code>void</code> methods.
  17076. </p>]]>
  17077. </doc>
  17078. </field>
  17079. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  17080. transient="false" volatile="false"
  17081. static="true" final="true" visibility="public"
  17082. deprecated="not deprecated">
  17083. <doc>
  17084. <![CDATA[<p>
  17085. Keep trying forever.
  17086. </p>]]>
  17087. </doc>
  17088. </field>
  17089. <doc>
  17090. <![CDATA[<p>
  17091. A collection of useful implementations of {@link RetryPolicy}.
  17092. </p>]]>
  17093. </doc>
  17094. </class>
  17095. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  17096. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  17097. <interface name="RetryPolicy" abstract="true"
  17098. static="false" final="false" visibility="public"
  17099. deprecated="not deprecated">
  17100. <method name="shouldRetry" return="boolean"
  17101. abstract="false" native="false" synchronized="false"
  17102. static="false" final="false" visibility="public"
  17103. deprecated="not deprecated">
  17104. <param name="e" type="java.lang.Exception"/>
  17105. <param name="retries" type="int"/>
  17106. <exception name="Exception" type="java.lang.Exception"/>
  17107. <doc>
  17108. <![CDATA[<p>
  17109. Determines whether the framework should retry a
  17110. method for the given exception, and the number
  17111. of retries that have been made for that operation
  17112. so far.
  17113. </p>
  17114. @param e The exception that caused the method to fail.
  17115. @param retries The number of times the method has been retried.
  17116. @return <code>true</code> if the method should be retried,
  17117. <code>false</code> if the method should not be retried
  17118. but shouldn't fail with an exception (only for void methods).
  17119. @throws Exception The re-thrown exception <code>e</code> indicating
  17120. that the method failed and should not be retried further.]]>
  17121. </doc>
  17122. </method>
  17123. <doc>
  17124. <![CDATA[<p>
  17125. Specifies a policy for retrying method failures.
  17126. Implementations of this interface should be immutable.
  17127. </p>]]>
  17128. </doc>
  17129. </interface>
  17130. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  17131. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  17132. <class name="RetryProxy" extends="java.lang.Object"
  17133. abstract="false"
  17134. static="false" final="false" visibility="public"
  17135. deprecated="not deprecated">
  17136. <constructor name="RetryProxy"
  17137. static="false" final="false" visibility="public"
  17138. deprecated="not deprecated">
  17139. </constructor>
  17140. <method name="create" return="java.lang.Object"
  17141. abstract="false" native="false" synchronized="false"
  17142. static="true" final="false" visibility="public"
  17143. deprecated="not deprecated">
  17144. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  17145. <param name="implementation" type="java.lang.Object"/>
  17146. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  17147. <doc>
  17148. <![CDATA[<p>
  17149. Create a proxy for an interface of an implementation class
  17150. using the same retry policy for each method in the interface.
  17151. </p>
  17152. @param iface the interface that the retry will implement
  17153. @param implementation the instance whose methods should be retried
  17154. @param retryPolicy the policy for retirying method call failures
  17155. @return the retry proxy]]>
  17156. </doc>
  17157. </method>
  17158. <method name="create" return="java.lang.Object"
  17159. abstract="false" native="false" synchronized="false"
  17160. static="true" final="false" visibility="public"
  17161. deprecated="not deprecated">
  17162. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  17163. <param name="implementation" type="java.lang.Object"/>
  17164. <param name="methodNameToPolicyMap" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  17165. <doc>
  17166. <![CDATA[<p>
  17167. Create a proxy for an interface of an implementation class
  17168. using the a set of retry policies specified by method name.
  17169. If no retry policy is defined for a method then a default of
  17170. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  17171. </p>
  17172. @param iface the interface that the retry will implement
  17173. @param implementation the instance whose methods should be retried
  17174. @param methodNameToPolicyMap a map of method names to retry policies
  17175. @return the retry proxy]]>
  17176. </doc>
  17177. </method>
  17178. <doc>
  17179. <![CDATA[<p>
  17180. A factory for creating retry proxies.
  17181. </p>]]>
  17182. </doc>
  17183. </class>
  17184. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  17185. </package>
  17186. <package name="org.apache.hadoop.io.serializer">
  17187. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  17188. <interface name="Deserializer" abstract="true"
  17189. static="false" final="false" visibility="public"
  17190. deprecated="not deprecated">
  17191. <method name="open"
  17192. abstract="false" native="false" synchronized="false"
  17193. static="false" final="false" visibility="public"
  17194. deprecated="not deprecated">
  17195. <param name="in" type="java.io.InputStream"/>
  17196. <exception name="IOException" type="java.io.IOException"/>
  17197. <doc>
  17198. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  17199. </doc>
  17200. </method>
  17201. <method name="deserialize" return="T"
  17202. abstract="false" native="false" synchronized="false"
  17203. static="false" final="false" visibility="public"
  17204. deprecated="not deprecated">
  17205. <param name="t" type="T"/>
  17206. <exception name="IOException" type="java.io.IOException"/>
  17207. <doc>
  17208. <![CDATA[<p>
  17209. Deserialize the next object from the underlying input stream.
  17210. If the object <code>t</code> is non-null then this deserializer
  17211. <i>may</i> set its internal state to the next object read from the input
  17212. stream. Otherwise, if the object <code>t</code> is null a new
  17213. deserialized object will be created.
  17214. </p>
  17215. @return the deserialized object]]>
  17216. </doc>
  17217. </method>
  17218. <method name="close"
  17219. abstract="false" native="false" synchronized="false"
  17220. static="false" final="false" visibility="public"
  17221. deprecated="not deprecated">
  17222. <exception name="IOException" type="java.io.IOException"/>
  17223. <doc>
  17224. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  17225. </doc>
  17226. </method>
  17227. <doc>
  17228. <![CDATA[<p>
  17229. Provides a facility for deserializing objects of type <T> from an
  17230. {@link InputStream}.
  17231. </p>
  17232. <p>
  17233. Deserializers are stateful, but must not buffer the input since
  17234. other producers may read from the input between calls to
  17235. {@link #deserialize(Object)}.
  17236. </p>
  17237. @param <T>]]>
  17238. </doc>
  17239. </interface>
  17240. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  17241. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17242. <class name="DeserializerComparator" extends="java.lang.Object"
  17243. abstract="true"
  17244. static="false" final="false" visibility="public"
  17245. deprecated="not deprecated">
  17246. <implements name="org.apache.hadoop.io.RawComparator&lt;T&gt;"/>
  17247. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  17248. static="false" final="false" visibility="protected"
  17249. deprecated="not deprecated">
  17250. <exception name="IOException" type="java.io.IOException"/>
  17251. </constructor>
  17252. <method name="compare" return="int"
  17253. abstract="false" native="false" synchronized="false"
  17254. static="false" final="false" visibility="public"
  17255. deprecated="not deprecated">
  17256. <param name="b1" type="byte[]"/>
  17257. <param name="s1" type="int"/>
  17258. <param name="l1" type="int"/>
  17259. <param name="b2" type="byte[]"/>
  17260. <param name="s2" type="int"/>
  17261. <param name="l2" type="int"/>
  17262. </method>
  17263. <doc>
  17264. <![CDATA[<p>
  17265. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  17266. the objects to be compared so that the standard {@link Comparator} can
  17267. be used to compare them.
  17268. </p>
  17269. <p>
  17270. One may optimize compare-intensive operations by using a custom
  17271. implementation of {@link RawComparator} that operates directly
  17272. on byte representations.
  17273. </p>
  17274. @param <T>]]>
  17275. </doc>
  17276. </class>
  17277. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  17278. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  17279. <class name="JavaSerialization" extends="java.lang.Object"
  17280. abstract="false"
  17281. static="false" final="false" visibility="public"
  17282. deprecated="not deprecated">
  17283. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;java.io.Serializable&gt;"/>
  17284. <constructor name="JavaSerialization"
  17285. static="false" final="false" visibility="public"
  17286. deprecated="not deprecated">
  17287. </constructor>
  17288. <method name="accept" return="boolean"
  17289. abstract="false" native="false" synchronized="false"
  17290. static="false" final="false" visibility="public"
  17291. deprecated="not deprecated">
  17292. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  17293. </method>
  17294. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;java.io.Serializable&gt;"
  17295. abstract="false" native="false" synchronized="false"
  17296. static="false" final="false" visibility="public"
  17297. deprecated="not deprecated">
  17298. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  17299. </method>
  17300. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;java.io.Serializable&gt;"
  17301. abstract="false" native="false" synchronized="false"
  17302. static="false" final="false" visibility="public"
  17303. deprecated="not deprecated">
  17304. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  17305. </method>
  17306. <doc>
  17307. <![CDATA[<p>
  17308. An experimental {@link Serialization} for Java {@link Serializable} classes.
  17309. </p>
  17310. @see JavaSerializationComparator]]>
  17311. </doc>
  17312. </class>
  17313. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  17314. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17315. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator&lt;T&gt;"
  17316. abstract="false"
  17317. static="false" final="false" visibility="public"
  17318. deprecated="not deprecated">
  17319. <constructor name="JavaSerializationComparator"
  17320. static="false" final="false" visibility="public"
  17321. deprecated="not deprecated">
  17322. <exception name="IOException" type="java.io.IOException"/>
  17323. </constructor>
  17324. <method name="compare" return="int"
  17325. abstract="false" native="false" synchronized="false"
  17326. static="false" final="false" visibility="public"
  17327. deprecated="not deprecated">
  17328. <param name="o1" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  17329. <param name="o2" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  17330. </method>
  17331. <doc>
  17332. <![CDATA[<p>
  17333. A {@link RawComparator} that uses a {@link JavaSerialization}
  17334. {@link Deserializer} to deserialize objects that are then compared via
  17335. their {@link Comparable} interfaces.
  17336. </p>
  17337. @param <T>
  17338. @see JavaSerialization]]>
  17339. </doc>
  17340. </class>
  17341. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  17342. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  17343. <interface name="Serialization" abstract="true"
  17344. static="false" final="false" visibility="public"
  17345. deprecated="not deprecated">
  17346. <method name="accept" return="boolean"
  17347. abstract="false" native="false" synchronized="false"
  17348. static="false" final="false" visibility="public"
  17349. deprecated="not deprecated">
  17350. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  17351. <doc>
  17352. <![CDATA[Allows clients to test whether this {@link Serialization}
  17353. supports the given class.]]>
  17354. </doc>
  17355. </method>
  17356. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  17357. abstract="false" native="false" synchronized="false"
  17358. static="false" final="false" visibility="public"
  17359. deprecated="not deprecated">
  17360. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  17361. <doc>
  17362. <![CDATA[@return a {@link Serializer} for the given class.]]>
  17363. </doc>
  17364. </method>
  17365. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  17366. abstract="false" native="false" synchronized="false"
  17367. static="false" final="false" visibility="public"
  17368. deprecated="not deprecated">
  17369. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  17370. <doc>
  17371. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  17372. </doc>
  17373. </method>
  17374. <doc>
  17375. <![CDATA[<p>
  17376. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  17377. </p>
  17378. @param <T>]]>
  17379. </doc>
  17380. </interface>
  17381. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  17382. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  17383. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  17384. abstract="false"
  17385. static="false" final="false" visibility="public"
  17386. deprecated="not deprecated">
  17387. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  17388. static="false" final="false" visibility="public"
  17389. deprecated="not deprecated">
  17390. <doc>
  17391. <![CDATA[<p>
  17392. Serializations are found by reading the <code>io.serializations</code>
  17393. property from <code>conf</code>, which is a comma-delimited list of
  17394. classnames.
  17395. </p>]]>
  17396. </doc>
  17397. </constructor>
  17398. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  17399. abstract="false" native="false" synchronized="false"
  17400. static="false" final="false" visibility="public"
  17401. deprecated="not deprecated">
  17402. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  17403. </method>
  17404. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  17405. abstract="false" native="false" synchronized="false"
  17406. static="false" final="false" visibility="public"
  17407. deprecated="not deprecated">
  17408. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  17409. </method>
  17410. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization&lt;T&gt;"
  17411. abstract="false" native="false" synchronized="false"
  17412. static="false" final="false" visibility="public"
  17413. deprecated="not deprecated">
  17414. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  17415. </method>
  17416. <doc>
  17417. <![CDATA[<p>
  17418. A factory for {@link Serialization}s.
  17419. </p>]]>
  17420. </doc>
  17421. </class>
  17422. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  17423. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  17424. <interface name="Serializer" abstract="true"
  17425. static="false" final="false" visibility="public"
  17426. deprecated="not deprecated">
  17427. <method name="open"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="false" final="false" visibility="public"
  17430. deprecated="not deprecated">
  17431. <param name="out" type="java.io.OutputStream"/>
  17432. <exception name="IOException" type="java.io.IOException"/>
  17433. <doc>
  17434. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  17435. </doc>
  17436. </method>
  17437. <method name="serialize"
  17438. abstract="false" native="false" synchronized="false"
  17439. static="false" final="false" visibility="public"
  17440. deprecated="not deprecated">
  17441. <param name="t" type="T"/>
  17442. <exception name="IOException" type="java.io.IOException"/>
  17443. <doc>
  17444. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  17445. </doc>
  17446. </method>
  17447. <method name="close"
  17448. abstract="false" native="false" synchronized="false"
  17449. static="false" final="false" visibility="public"
  17450. deprecated="not deprecated">
  17451. <exception name="IOException" type="java.io.IOException"/>
  17452. <doc>
  17453. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  17454. </doc>
  17455. </method>
  17456. <doc>
  17457. <![CDATA[<p>
  17458. Provides a facility for serializing objects of type <T> to an
  17459. {@link OutputStream}.
  17460. </p>
  17461. <p>
  17462. Serializers are stateful, but must not buffer the output since
  17463. other producers may write to the output between calls to
  17464. {@link #serialize(Object)}.
  17465. </p>
  17466. @param <T>]]>
  17467. </doc>
  17468. </interface>
  17469. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  17470. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  17471. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  17472. abstract="false"
  17473. static="false" final="false" visibility="public"
  17474. deprecated="not deprecated">
  17475. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;org.apache.hadoop.io.Writable&gt;"/>
  17476. <constructor name="WritableSerialization"
  17477. static="false" final="false" visibility="public"
  17478. deprecated="not deprecated">
  17479. </constructor>
  17480. <method name="accept" return="boolean"
  17481. abstract="false" native="false" synchronized="false"
  17482. static="false" final="false" visibility="public"
  17483. deprecated="not deprecated">
  17484. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  17485. </method>
  17486. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;org.apache.hadoop.io.Writable&gt;"
  17487. abstract="false" native="false" synchronized="false"
  17488. static="false" final="false" visibility="public"
  17489. deprecated="not deprecated">
  17490. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  17491. </method>
  17492. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;org.apache.hadoop.io.Writable&gt;"
  17493. abstract="false" native="false" synchronized="false"
  17494. static="false" final="false" visibility="public"
  17495. deprecated="not deprecated">
  17496. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  17497. </method>
  17498. <doc>
  17499. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  17500. {@link Writable#write(java.io.DataOutput)} and
  17501. {@link Writable#readFields(java.io.DataInput)}.]]>
  17502. </doc>
  17503. </class>
  17504. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  17505. </package>
  17506. <package name="org.apache.hadoop.ipc">
  17507. <!-- start class org.apache.hadoop.ipc.Client -->
  17508. <class name="Client" extends="java.lang.Object"
  17509. abstract="false"
  17510. static="false" final="false" visibility="public"
  17511. deprecated="not deprecated">
  17512. <constructor name="Client" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  17513. static="false" final="false" visibility="public"
  17514. deprecated="not deprecated">
  17515. <doc>
  17516. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  17517. class.]]>
  17518. </doc>
  17519. </constructor>
  17520. <constructor name="Client" type="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, org.apache.hadoop.conf.Configuration"
  17521. static="false" final="false" visibility="public"
  17522. deprecated="not deprecated">
  17523. <doc>
  17524. <![CDATA[Construct an IPC client with the default SocketFactory
  17525. @param valueClass
  17526. @param conf]]>
  17527. </doc>
  17528. </constructor>
  17529. <method name="setPingInterval"
  17530. abstract="false" native="false" synchronized="false"
  17531. static="true" final="true" visibility="public"
  17532. deprecated="not deprecated">
  17533. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17534. <param name="pingInterval" type="int"/>
  17535. <doc>
  17536. <![CDATA[set the ping interval value in configuration
  17537. @param conf Configuration
  17538. @param pingInterval the ping interval]]>
  17539. </doc>
  17540. </method>
  17541. <method name="stop"
  17542. abstract="false" native="false" synchronized="false"
  17543. static="false" final="false" visibility="public"
  17544. deprecated="not deprecated">
  17545. <doc>
  17546. <![CDATA[Stop all threads related to this client. No further calls may be made
  17547. using this client.]]>
  17548. </doc>
  17549. </method>
  17550. <method name="call" return="org.apache.hadoop.io.Writable"
  17551. abstract="false" native="false" synchronized="false"
  17552. static="false" final="false" visibility="public"
  17553. deprecated="not deprecated">
  17554. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17555. <param name="address" type="java.net.InetSocketAddress"/>
  17556. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17557. <exception name="IOException" type="java.io.IOException"/>
  17558. <doc>
  17559. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  17560. <code>address</code>, returning the value. Throws exceptions if there are
  17561. network problems or if the remote code threw an exception.]]>
  17562. </doc>
  17563. </method>
  17564. <method name="call" return="org.apache.hadoop.io.Writable"
  17565. abstract="false" native="false" synchronized="false"
  17566. static="false" final="false" visibility="public"
  17567. deprecated="not deprecated">
  17568. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17569. <param name="addr" type="java.net.InetSocketAddress"/>
  17570. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  17571. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17572. <exception name="IOException" type="java.io.IOException"/>
  17573. </method>
  17574. <method name="call" return="org.apache.hadoop.io.Writable[]"
  17575. abstract="false" native="false" synchronized="false"
  17576. static="false" final="false" visibility="public"
  17577. deprecated="not deprecated">
  17578. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  17579. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  17580. <exception name="IOException" type="java.io.IOException"/>
  17581. <doc>
  17582. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  17583. corresponding address. When all values are available, or have timed out
  17584. or errored, the collected results are returned in an array. The array
  17585. contains nulls for calls that timed out or errored.]]>
  17586. </doc>
  17587. </method>
  17588. <field name="LOG" type="org.apache.commons.logging.Log"
  17589. transient="false" volatile="false"
  17590. static="true" final="true" visibility="public"
  17591. deprecated="not deprecated">
  17592. </field>
  17593. <doc>
  17594. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  17595. parameter, and return a {@link Writable} as their value. A service runs on
  17596. a port and is defined by a parameter class and a value class.
  17597. @see Server]]>
  17598. </doc>
  17599. </class>
  17600. <!-- end class org.apache.hadoop.ipc.Client -->
  17601. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  17602. <class name="RemoteException" extends="java.io.IOException"
  17603. abstract="false"
  17604. static="false" final="false" visibility="public"
  17605. deprecated="not deprecated">
  17606. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  17607. static="false" final="false" visibility="public"
  17608. deprecated="not deprecated">
  17609. </constructor>
  17610. <method name="getClassName" return="java.lang.String"
  17611. abstract="false" native="false" synchronized="false"
  17612. static="false" final="false" visibility="public"
  17613. deprecated="not deprecated">
  17614. </method>
  17615. <method name="unwrapRemoteException" return="java.io.IOException"
  17616. abstract="false" native="false" synchronized="false"
  17617. static="false" final="false" visibility="public"
  17618. deprecated="not deprecated">
  17619. <param name="lookupTypes" type="java.lang.Class[]"/>
  17620. <doc>
  17621. <![CDATA[If this remote exception wraps up one of the lookupTypes
  17622. then return this exception.
  17623. <p>
  17624. Unwraps any IOException.
  17625. @param lookupTypes the desired exception class.
  17626. @return IOException, which is either the lookupClass exception or this.]]>
  17627. </doc>
  17628. </method>
  17629. <method name="unwrapRemoteException" return="java.io.IOException"
  17630. abstract="false" native="false" synchronized="false"
  17631. static="false" final="false" visibility="public"
  17632. deprecated="not deprecated">
  17633. <doc>
  17634. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  17635. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  17636. a <code>String</code> as a parameter.
  17637. Otherwise it returns this.
  17638. @return <code>Throwable]]>
  17639. </doc>
  17640. </method>
  17641. <method name="writeXml"
  17642. abstract="false" native="false" synchronized="false"
  17643. static="false" final="false" visibility="public"
  17644. deprecated="not deprecated">
  17645. <param name="path" type="java.lang.String"/>
  17646. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  17647. <exception name="IOException" type="java.io.IOException"/>
  17648. <doc>
  17649. <![CDATA[Write the object to XML format]]>
  17650. </doc>
  17651. </method>
  17652. <method name="valueOf" return="org.apache.hadoop.ipc.RemoteException"
  17653. abstract="false" native="false" synchronized="false"
  17654. static="true" final="false" visibility="public"
  17655. deprecated="not deprecated">
  17656. <param name="attrs" type="org.xml.sax.Attributes"/>
  17657. <doc>
  17658. <![CDATA[Create RemoteException from attributes]]>
  17659. </doc>
  17660. </method>
  17661. </class>
  17662. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  17663. <!-- start class org.apache.hadoop.ipc.RPC -->
  17664. <class name="RPC" extends="java.lang.Object"
  17665. abstract="false"
  17666. static="false" final="false" visibility="public"
  17667. deprecated="not deprecated">
  17668. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  17669. abstract="false" native="false" synchronized="false"
  17670. static="true" final="false" visibility="public"
  17671. deprecated="not deprecated">
  17672. <param name="protocol" type="java.lang.Class"/>
  17673. <param name="clientVersion" type="long"/>
  17674. <param name="addr" type="java.net.InetSocketAddress"/>
  17675. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17676. <exception name="IOException" type="java.io.IOException"/>
  17677. </method>
  17678. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="true" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  17683. <param name="clientVersion" type="long"/>
  17684. <param name="addr" type="java.net.InetSocketAddress"/>
  17685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17686. <param name="factory" type="javax.net.SocketFactory"/>
  17687. <exception name="IOException" type="java.io.IOException"/>
  17688. <doc>
  17689. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  17690. talking to a server at the named address.]]>
  17691. </doc>
  17692. </method>
  17693. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  17694. abstract="false" native="false" synchronized="false"
  17695. static="true" final="false" visibility="public"
  17696. deprecated="not deprecated">
  17697. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  17698. <param name="clientVersion" type="long"/>
  17699. <param name="addr" type="java.net.InetSocketAddress"/>
  17700. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  17701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17702. <param name="factory" type="javax.net.SocketFactory"/>
  17703. <exception name="IOException" type="java.io.IOException"/>
  17704. <doc>
  17705. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  17706. talking to a server at the named address.]]>
  17707. </doc>
  17708. </method>
  17709. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  17710. abstract="false" native="false" synchronized="false"
  17711. static="true" final="false" visibility="public"
  17712. deprecated="not deprecated">
  17713. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  17714. <param name="clientVersion" type="long"/>
  17715. <param name="addr" type="java.net.InetSocketAddress"/>
  17716. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17717. <exception name="IOException" type="java.io.IOException"/>
  17718. <doc>
  17719. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  17720. @param protocol
  17721. @param clientVersion
  17722. @param addr
  17723. @param conf
  17724. @return a proxy instance
  17725. @throws IOException]]>
  17726. </doc>
  17727. </method>
  17728. <method name="stopProxy"
  17729. abstract="false" native="false" synchronized="false"
  17730. static="true" final="false" visibility="public"
  17731. deprecated="not deprecated">
  17732. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  17733. <doc>
  17734. <![CDATA[Stop this proxy and release its invoker's resource
  17735. @param proxy the proxy to be stopped]]>
  17736. </doc>
  17737. </method>
  17738. <method name="call" return="java.lang.Object[]"
  17739. abstract="false" native="false" synchronized="false"
  17740. static="true" final="false" visibility="public"
  17741. deprecated="not deprecated">
  17742. <param name="method" type="java.lang.reflect.Method"/>
  17743. <param name="params" type="java.lang.Object[][]"/>
  17744. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  17745. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17746. <exception name="IOException" type="java.io.IOException"/>
  17747. <doc>
  17748. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  17749. </doc>
  17750. </method>
  17751. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  17752. abstract="false" native="false" synchronized="false"
  17753. static="true" final="false" visibility="public"
  17754. deprecated="not deprecated">
  17755. <param name="instance" type="java.lang.Object"/>
  17756. <param name="bindAddress" type="java.lang.String"/>
  17757. <param name="port" type="int"/>
  17758. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17759. <exception name="IOException" type="java.io.IOException"/>
  17760. <doc>
  17761. <![CDATA[Construct a server for a protocol implementation instance listening on a
  17762. port and address.]]>
  17763. </doc>
  17764. </method>
  17765. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  17766. abstract="false" native="false" synchronized="false"
  17767. static="true" final="false" visibility="public"
  17768. deprecated="not deprecated">
  17769. <param name="instance" type="java.lang.Object"/>
  17770. <param name="bindAddress" type="java.lang.String"/>
  17771. <param name="port" type="int"/>
  17772. <param name="numHandlers" type="int"/>
  17773. <param name="verbose" type="boolean"/>
  17774. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17775. <exception name="IOException" type="java.io.IOException"/>
  17776. <doc>
  17777. <![CDATA[Construct a server for a protocol implementation instance listening on a
  17778. port and address.]]>
  17779. </doc>
  17780. </method>
  17781. <doc>
  17782. <![CDATA[A simple RPC mechanism.
  17783. A <i>protocol</i> is a Java interface. All parameters and return types must
  17784. be one of:
  17785. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  17786. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  17787. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  17788. <li>a {@link String}; or</li>
  17789. <li>a {@link Writable}; or</li>
  17790. <li>an array of the above types</li> </ul>
  17791. All methods in the protocol should throw only IOException. No field data of
  17792. the protocol instance is transmitted.]]>
  17793. </doc>
  17794. </class>
  17795. <!-- end class org.apache.hadoop.ipc.RPC -->
  17796. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  17797. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  17798. abstract="false"
  17799. static="true" final="false" visibility="public"
  17800. deprecated="not deprecated">
  17801. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  17802. static="false" final="false" visibility="public"
  17803. deprecated="not deprecated">
  17804. <exception name="IOException" type="java.io.IOException"/>
  17805. <doc>
  17806. <![CDATA[Construct an RPC server.
  17807. @param instance the instance whose methods will be called
  17808. @param conf the configuration to use
  17809. @param bindAddress the address to bind on to listen for connection
  17810. @param port the port to listen for connections on]]>
  17811. </doc>
  17812. </constructor>
  17813. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  17814. static="false" final="false" visibility="public"
  17815. deprecated="not deprecated">
  17816. <exception name="IOException" type="java.io.IOException"/>
  17817. <doc>
  17818. <![CDATA[Construct an RPC server.
  17819. @param instance the instance whose methods will be called
  17820. @param conf the configuration to use
  17821. @param bindAddress the address to bind on to listen for connection
  17822. @param port the port to listen for connections on
  17823. @param numHandlers the number of method handler threads to run
  17824. @param verbose whether each call should be logged]]>
  17825. </doc>
  17826. </constructor>
  17827. <method name="call" return="org.apache.hadoop.io.Writable"
  17828. abstract="false" native="false" synchronized="false"
  17829. static="false" final="false" visibility="public"
  17830. deprecated="not deprecated">
  17831. <param name="param" type="org.apache.hadoop.io.Writable"/>
  17832. <param name="receivedTime" type="long"/>
  17833. <exception name="IOException" type="java.io.IOException"/>
  17834. </method>
  17835. <doc>
  17836. <![CDATA[An RPC Server.]]>
  17837. </doc>
  17838. </class>
  17839. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  17840. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  17841. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  17842. abstract="false"
  17843. static="true" final="false" visibility="public"
  17844. deprecated="not deprecated">
  17845. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  17846. static="false" final="false" visibility="public"
  17847. deprecated="not deprecated">
  17848. <doc>
  17849. <![CDATA[Create a version mismatch exception
  17850. @param interfaceName the name of the protocol mismatch
  17851. @param clientVersion the client's version of the protocol
  17852. @param serverVersion the server's version of the protocol]]>
  17853. </doc>
  17854. </constructor>
  17855. <method name="getInterfaceName" return="java.lang.String"
  17856. abstract="false" native="false" synchronized="false"
  17857. static="false" final="false" visibility="public"
  17858. deprecated="not deprecated">
  17859. <doc>
  17860. <![CDATA[Get the interface name
  17861. @return the java class name
  17862. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  17863. </doc>
  17864. </method>
  17865. <method name="getClientVersion" return="long"
  17866. abstract="false" native="false" synchronized="false"
  17867. static="false" final="false" visibility="public"
  17868. deprecated="not deprecated">
  17869. <doc>
  17870. <![CDATA[Get the client's preferred version]]>
  17871. </doc>
  17872. </method>
  17873. <method name="getServerVersion" return="long"
  17874. abstract="false" native="false" synchronized="false"
  17875. static="false" final="false" visibility="public"
  17876. deprecated="not deprecated">
  17877. <doc>
  17878. <![CDATA[Get the server's agreed to version.]]>
  17879. </doc>
  17880. </method>
  17881. <doc>
  17882. <![CDATA[A version mismatch for the RPC protocol.]]>
  17883. </doc>
  17884. </class>
  17885. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  17886. <!-- start class org.apache.hadoop.ipc.Server -->
  17887. <class name="Server" extends="java.lang.Object"
  17888. abstract="true"
  17889. static="false" final="false" visibility="public"
  17890. deprecated="not deprecated">
  17891. <constructor name="Server" type="java.lang.String, int, java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, int, org.apache.hadoop.conf.Configuration"
  17892. static="false" final="false" visibility="protected"
  17893. deprecated="not deprecated">
  17894. <exception name="IOException" type="java.io.IOException"/>
  17895. </constructor>
  17896. <constructor name="Server" type="java.lang.String, int, java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  17897. static="false" final="false" visibility="protected"
  17898. deprecated="not deprecated">
  17899. <exception name="IOException" type="java.io.IOException"/>
  17900. <doc>
  17901. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  17902. be of the named class. The <code>handlerCount</handlerCount> determines
  17903. the number of handler threads that will be used to process calls.]]>
  17904. </doc>
  17905. </constructor>
  17906. <method name="get" return="org.apache.hadoop.ipc.Server"
  17907. abstract="false" native="false" synchronized="false"
  17908. static="true" final="false" visibility="public"
  17909. deprecated="not deprecated">
  17910. <doc>
  17911. <![CDATA[Returns the server instance called under or null. May be called under
  17912. {@link #call(Writable, long)} implementations, and under {@link Writable}
  17913. methods of paramters and return values. Permits applications to access
  17914. the server context.]]>
  17915. </doc>
  17916. </method>
  17917. <method name="getRemoteIp" return="java.net.InetAddress"
  17918. abstract="false" native="false" synchronized="false"
  17919. static="true" final="false" visibility="public"
  17920. deprecated="not deprecated">
  17921. <doc>
  17922. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  17923. Returns null incase of an error.]]>
  17924. </doc>
  17925. </method>
  17926. <method name="getRemoteAddress" return="java.lang.String"
  17927. abstract="false" native="false" synchronized="false"
  17928. static="true" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <doc>
  17931. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  17932. Returns null in case of an error.]]>
  17933. </doc>
  17934. </method>
  17935. <method name="bind"
  17936. abstract="false" native="false" synchronized="false"
  17937. static="true" final="false" visibility="public"
  17938. deprecated="not deprecated">
  17939. <param name="socket" type="java.net.ServerSocket"/>
  17940. <param name="address" type="java.net.InetSocketAddress"/>
  17941. <param name="backlog" type="int"/>
  17942. <exception name="IOException" type="java.io.IOException"/>
  17943. <doc>
  17944. <![CDATA[A convenience method to bind to a given address and report
  17945. better exceptions if the address is not a valid host.
  17946. @param socket the socket to bind
  17947. @param address the address to bind to
  17948. @param backlog the number of connections allowed in the queue
  17949. @throws BindException if the address can't be bound
  17950. @throws UnknownHostException if the address isn't a valid host name
  17951. @throws IOException other random errors from bind]]>
  17952. </doc>
  17953. </method>
  17954. <method name="setSocketSendBufSize"
  17955. abstract="false" native="false" synchronized="false"
  17956. static="false" final="false" visibility="public"
  17957. deprecated="not deprecated">
  17958. <param name="size" type="int"/>
  17959. <doc>
  17960. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  17961. </doc>
  17962. </method>
  17963. <method name="start"
  17964. abstract="false" native="false" synchronized="true"
  17965. static="false" final="false" visibility="public"
  17966. deprecated="not deprecated">
  17967. <exception name="IOException" type="java.io.IOException"/>
  17968. <doc>
  17969. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  17970. </doc>
  17971. </method>
  17972. <method name="stop"
  17973. abstract="false" native="false" synchronized="true"
  17974. static="false" final="false" visibility="public"
  17975. deprecated="not deprecated">
  17976. <doc>
  17977. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  17978. </doc>
  17979. </method>
  17980. <method name="join"
  17981. abstract="false" native="false" synchronized="true"
  17982. static="false" final="false" visibility="public"
  17983. deprecated="not deprecated">
  17984. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  17985. <doc>
  17986. <![CDATA[Wait for the server to be stopped.
  17987. Does not wait for all subthreads to finish.
  17988. See {@link #stop()}.]]>
  17989. </doc>
  17990. </method>
  17991. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  17992. abstract="false" native="false" synchronized="true"
  17993. static="false" final="false" visibility="public"
  17994. deprecated="not deprecated">
  17995. <doc>
  17996. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  17997. @return the socket (ip+port) on which the RPC server is listening to.]]>
  17998. </doc>
  17999. </method>
  18000. <method name="call" return="org.apache.hadoop.io.Writable"
  18001. abstract="true" native="false" synchronized="false"
  18002. static="false" final="false" visibility="public"
  18003. deprecated="not deprecated">
  18004. <param name="param" type="org.apache.hadoop.io.Writable"/>
  18005. <param name="receiveTime" type="long"/>
  18006. <exception name="IOException" type="java.io.IOException"/>
  18007. <doc>
  18008. <![CDATA[Called for each call.]]>
  18009. </doc>
  18010. </method>
  18011. <method name="getNumOpenConnections" return="int"
  18012. abstract="false" native="false" synchronized="false"
  18013. static="false" final="false" visibility="public"
  18014. deprecated="not deprecated">
  18015. <doc>
  18016. <![CDATA[The number of open RPC conections
  18017. @return the number of open rpc connections]]>
  18018. </doc>
  18019. </method>
  18020. <method name="getCallQueueLen" return="int"
  18021. abstract="false" native="false" synchronized="false"
  18022. static="false" final="false" visibility="public"
  18023. deprecated="not deprecated">
  18024. <doc>
  18025. <![CDATA[The number of rpc calls in the queue.
  18026. @return The number of rpc calls in the queue.]]>
  18027. </doc>
  18028. </method>
  18029. <field name="HEADER" type="java.nio.ByteBuffer"
  18030. transient="false" volatile="false"
  18031. static="true" final="true" visibility="public"
  18032. deprecated="not deprecated">
  18033. <doc>
  18034. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  18035. </doc>
  18036. </field>
  18037. <field name="CURRENT_VERSION" type="byte"
  18038. transient="false" volatile="false"
  18039. static="true" final="true" visibility="public"
  18040. deprecated="not deprecated">
  18041. </field>
  18042. <field name="LOG" type="org.apache.commons.logging.Log"
  18043. transient="false" volatile="false"
  18044. static="true" final="true" visibility="public"
  18045. deprecated="not deprecated">
  18046. </field>
  18047. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  18048. transient="false" volatile="false"
  18049. static="false" final="false" visibility="protected"
  18050. deprecated="not deprecated">
  18051. </field>
  18052. <doc>
  18053. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  18054. parameter, and return a {@link Writable} as their value. A service runs on
  18055. a port and is defined by a parameter class and a value class.
  18056. @see Client]]>
  18057. </doc>
  18058. </class>
  18059. <!-- end class org.apache.hadoop.ipc.Server -->
  18060. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  18061. <interface name="VersionedProtocol" abstract="true"
  18062. static="false" final="false" visibility="public"
  18063. deprecated="not deprecated">
  18064. <method name="getProtocolVersion" return="long"
  18065. abstract="false" native="false" synchronized="false"
  18066. static="false" final="false" visibility="public"
  18067. deprecated="not deprecated">
  18068. <param name="protocol" type="java.lang.String"/>
  18069. <param name="clientVersion" type="long"/>
  18070. <exception name="IOException" type="java.io.IOException"/>
  18071. <doc>
  18072. <![CDATA[Return protocol version corresponding to protocol interface.
  18073. @param protocol The classname of the protocol interface
  18074. @param clientVersion The version of the protocol that the client speaks
  18075. @return the version that the server will speak]]>
  18076. </doc>
  18077. </method>
  18078. <doc>
  18079. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  18080. Subclasses of this interface are also supposed to have
  18081. a static final long versionID field.]]>
  18082. </doc>
  18083. </interface>
  18084. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  18085. </package>
  18086. <package name="org.apache.hadoop.ipc.metrics">
  18087. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18088. <class name="RpcMetrics" extends="java.lang.Object"
  18089. abstract="false"
  18090. static="false" final="false" visibility="public"
  18091. deprecated="not deprecated">
  18092. <implements name="org.apache.hadoop.metrics.Updater"/>
  18093. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  18094. static="false" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. </constructor>
  18097. <method name="doUpdates"
  18098. abstract="false" native="false" synchronized="false"
  18099. static="false" final="false" visibility="public"
  18100. deprecated="not deprecated">
  18101. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  18102. <doc>
  18103. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  18104. </doc>
  18105. </method>
  18106. <method name="shutdown"
  18107. abstract="false" native="false" synchronized="false"
  18108. static="false" final="false" visibility="public"
  18109. deprecated="not deprecated">
  18110. </method>
  18111. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18112. transient="false" volatile="false"
  18113. static="false" final="false" visibility="public"
  18114. deprecated="not deprecated">
  18115. <doc>
  18116. <![CDATA[The metrics variables are public:
  18117. - they can be set directly by calling their set/inc methods
  18118. -they can also be read directly - e.g. JMX does this.]]>
  18119. </doc>
  18120. </field>
  18121. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  18122. transient="false" volatile="false"
  18123. static="false" final="false" visibility="public"
  18124. deprecated="not deprecated">
  18125. </field>
  18126. <field name="metricsList" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.metrics.util.MetricsTimeVaryingRate&gt;"
  18127. transient="false" volatile="false"
  18128. static="false" final="false" visibility="public"
  18129. deprecated="not deprecated">
  18130. </field>
  18131. <doc>
  18132. <![CDATA[This class is for maintaining the various RPC statistics
  18133. and publishing them through the metrics interfaces.
  18134. This also registers the JMX MBean for RPC.
  18135. <p>
  18136. This class has a number of metrics variables that are publicly accessible;
  18137. these variables (objects) have methods to update their values;
  18138. for example:
  18139. <p> {@link #rpcQueueTime}.inc(time)]]>
  18140. </doc>
  18141. </class>
  18142. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  18143. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18144. <interface name="RpcMgtMBean" abstract="true"
  18145. static="false" final="false" visibility="public"
  18146. deprecated="not deprecated">
  18147. <method name="getRpcOpsNumber" return="int"
  18148. abstract="false" native="false" synchronized="false"
  18149. static="false" final="false" visibility="public"
  18150. deprecated="not deprecated">
  18151. <doc>
  18152. <![CDATA[Number of RPC Operations in the last interval
  18153. @return number of operations]]>
  18154. </doc>
  18155. </method>
  18156. <method name="getRpcOpsAvgProcessingTime" return="long"
  18157. abstract="false" native="false" synchronized="false"
  18158. static="false" final="false" visibility="public"
  18159. deprecated="not deprecated">
  18160. <doc>
  18161. <![CDATA[Average time for RPC Operations in last interval
  18162. @return time in msec]]>
  18163. </doc>
  18164. </method>
  18165. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  18166. abstract="false" native="false" synchronized="false"
  18167. static="false" final="false" visibility="public"
  18168. deprecated="not deprecated">
  18169. <doc>
  18170. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  18171. @return time in msec]]>
  18172. </doc>
  18173. </method>
  18174. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  18175. abstract="false" native="false" synchronized="false"
  18176. static="false" final="false" visibility="public"
  18177. deprecated="not deprecated">
  18178. <doc>
  18179. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  18180. @return time in msec]]>
  18181. </doc>
  18182. </method>
  18183. <method name="getRpcOpsAvgQueueTime" return="long"
  18184. abstract="false" native="false" synchronized="false"
  18185. static="false" final="false" visibility="public"
  18186. deprecated="not deprecated">
  18187. <doc>
  18188. <![CDATA[The Average RPC Operation Queued Time in the last interval
  18189. @return time in msec]]>
  18190. </doc>
  18191. </method>
  18192. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  18193. abstract="false" native="false" synchronized="false"
  18194. static="false" final="false" visibility="public"
  18195. deprecated="not deprecated">
  18196. <doc>
  18197. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  18198. @return time in msec]]>
  18199. </doc>
  18200. </method>
  18201. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  18202. abstract="false" native="false" synchronized="false"
  18203. static="false" final="false" visibility="public"
  18204. deprecated="not deprecated">
  18205. <doc>
  18206. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  18207. @return time in msec]]>
  18208. </doc>
  18209. </method>
  18210. <method name="resetAllMinMax"
  18211. abstract="false" native="false" synchronized="false"
  18212. static="false" final="false" visibility="public"
  18213. deprecated="not deprecated">
  18214. <doc>
  18215. <![CDATA[Reset all min max times]]>
  18216. </doc>
  18217. </method>
  18218. <method name="getNumOpenConnections" return="int"
  18219. abstract="false" native="false" synchronized="false"
  18220. static="false" final="false" visibility="public"
  18221. deprecated="not deprecated">
  18222. <doc>
  18223. <![CDATA[The number of open RPC conections
  18224. @return the number of open rpc connections]]>
  18225. </doc>
  18226. </method>
  18227. <method name="getCallQueueLen" return="int"
  18228. abstract="false" native="false" synchronized="false"
  18229. static="false" final="false" visibility="public"
  18230. deprecated="not deprecated">
  18231. <doc>
  18232. <![CDATA[The number of rpc calls in the queue.
  18233. @return The number of rpc calls in the queue.]]>
  18234. </doc>
  18235. </method>
  18236. <doc>
  18237. <![CDATA[This is the JMX management interface for the RPC layer.
  18238. Many of the statistics are sampled and averaged on an interval
  18239. which can be specified in the metrics config file.
  18240. <p>
  18241. For the statistics that are sampled and averaged, one must specify
  18242. a metrics context that does periodic update calls. Most do.
  18243. The default Null metrics context however does NOT. So if you aren't
  18244. using any other metrics context then you can turn on the viewing and averaging
  18245. of sampled metrics by specifying the following two lines
  18246. in the hadoop-meterics.properties file:
  18247. <pre>
  18248. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  18249. rpc.period=10
  18250. </pre>
  18251. <p>
  18252. Note that the metrics are collected regardless of the context used.
  18253. The context with the update thread is used to average the data periodically]]>
  18254. </doc>
  18255. </interface>
  18256. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  18257. </package>
  18258. <package name="org.apache.hadoop.log">
  18259. <!-- start class org.apache.hadoop.log.LogLevel -->
  18260. <class name="LogLevel" extends="java.lang.Object"
  18261. abstract="false"
  18262. static="false" final="false" visibility="public"
  18263. deprecated="not deprecated">
  18264. <constructor name="LogLevel"
  18265. static="false" final="false" visibility="public"
  18266. deprecated="not deprecated">
  18267. </constructor>
  18268. <method name="main"
  18269. abstract="false" native="false" synchronized="false"
  18270. static="true" final="false" visibility="public"
  18271. deprecated="not deprecated">
  18272. <param name="args" type="java.lang.String[]"/>
  18273. <doc>
  18274. <![CDATA[A command line implementation]]>
  18275. </doc>
  18276. </method>
  18277. <field name="USAGES" type="java.lang.String"
  18278. transient="false" volatile="false"
  18279. static="true" final="true" visibility="public"
  18280. deprecated="not deprecated">
  18281. </field>
  18282. <doc>
  18283. <![CDATA[Change log level in runtime.]]>
  18284. </doc>
  18285. </class>
  18286. <!-- end class org.apache.hadoop.log.LogLevel -->
  18287. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  18288. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  18289. abstract="false"
  18290. static="true" final="false" visibility="public"
  18291. deprecated="not deprecated">
  18292. <constructor name="LogLevel.Servlet"
  18293. static="false" final="false" visibility="public"
  18294. deprecated="not deprecated">
  18295. </constructor>
  18296. <method name="doGet"
  18297. abstract="false" native="false" synchronized="false"
  18298. static="false" final="false" visibility="public"
  18299. deprecated="not deprecated">
  18300. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  18301. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  18302. <exception name="ServletException" type="javax.servlet.ServletException"/>
  18303. <exception name="IOException" type="java.io.IOException"/>
  18304. </method>
  18305. <doc>
  18306. <![CDATA[A servlet implementation]]>
  18307. </doc>
  18308. </class>
  18309. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  18310. </package>
  18311. <package name="org.apache.hadoop.mapred">
  18312. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  18313. <class name="ClusterStatus" extends="java.lang.Object"
  18314. abstract="false"
  18315. static="false" final="false" visibility="public"
  18316. deprecated="not deprecated">
  18317. <implements name="org.apache.hadoop.io.Writable"/>
  18318. <method name="getTaskTrackers" return="int"
  18319. abstract="false" native="false" synchronized="false"
  18320. static="false" final="false" visibility="public"
  18321. deprecated="not deprecated">
  18322. <doc>
  18323. <![CDATA[Get the number of task trackers in the cluster.
  18324. @return the number of task trackers in the cluster.]]>
  18325. </doc>
  18326. </method>
  18327. <method name="getMapTasks" return="int"
  18328. abstract="false" native="false" synchronized="false"
  18329. static="false" final="false" visibility="public"
  18330. deprecated="not deprecated">
  18331. <doc>
  18332. <![CDATA[Get the number of currently running map tasks in the cluster.
  18333. @return the number of currently running map tasks in the cluster.]]>
  18334. </doc>
  18335. </method>
  18336. <method name="getReduceTasks" return="int"
  18337. abstract="false" native="false" synchronized="false"
  18338. static="false" final="false" visibility="public"
  18339. deprecated="not deprecated">
  18340. <doc>
  18341. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  18342. @return the number of currently running reduce tasks in the cluster.]]>
  18343. </doc>
  18344. </method>
  18345. <method name="getMaxMapTasks" return="int"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="false" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <doc>
  18350. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  18351. @return the maximum capacity for running map tasks in the cluster.]]>
  18352. </doc>
  18353. </method>
  18354. <method name="getMaxReduceTasks" return="int"
  18355. abstract="false" native="false" synchronized="false"
  18356. static="false" final="false" visibility="public"
  18357. deprecated="not deprecated">
  18358. <doc>
  18359. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  18360. @return the maximum capacity for running reduce tasks in the cluster.]]>
  18361. </doc>
  18362. </method>
  18363. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  18364. abstract="false" native="false" synchronized="false"
  18365. static="false" final="false" visibility="public"
  18366. deprecated="not deprecated">
  18367. <doc>
  18368. <![CDATA[Get the current state of the <code>JobTracker</code>,
  18369. as {@link JobTracker.State}
  18370. @return the current state of the <code>JobTracker</code>.]]>
  18371. </doc>
  18372. </method>
  18373. <method name="write"
  18374. abstract="false" native="false" synchronized="false"
  18375. static="false" final="false" visibility="public"
  18376. deprecated="not deprecated">
  18377. <param name="out" type="java.io.DataOutput"/>
  18378. <exception name="IOException" type="java.io.IOException"/>
  18379. </method>
  18380. <method name="readFields"
  18381. abstract="false" native="false" synchronized="false"
  18382. static="false" final="false" visibility="public"
  18383. deprecated="not deprecated">
  18384. <param name="in" type="java.io.DataInput"/>
  18385. <exception name="IOException" type="java.io.IOException"/>
  18386. </method>
  18387. <doc>
  18388. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  18389. <p><code>ClusterStatus</code> provides clients with information such as:
  18390. <ol>
  18391. <li>
  18392. Size of the cluster.
  18393. </li>
  18394. <li>
  18395. Task capacity of the cluster.
  18396. </li>
  18397. <li>
  18398. The number of currently running map & reduce tasks.
  18399. </li>
  18400. <li>
  18401. State of the <code>JobTracker</code>.
  18402. </li>
  18403. </ol></p>
  18404. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  18405. {@link JobClient#getClusterStatus()}.</p>
  18406. @see JobClient]]>
  18407. </doc>
  18408. </class>
  18409. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  18410. <!-- start class org.apache.hadoop.mapred.Counters -->
  18411. <class name="Counters" extends="java.lang.Object"
  18412. abstract="false"
  18413. static="false" final="false" visibility="public"
  18414. deprecated="not deprecated">
  18415. <implements name="org.apache.hadoop.io.Writable"/>
  18416. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Group&gt;"/>
  18417. <constructor name="Counters"
  18418. static="false" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. </constructor>
  18421. <method name="getGroupNames" return="java.util.Collection&lt;java.lang.String&gt;"
  18422. abstract="false" native="false" synchronized="true"
  18423. static="false" final="false" visibility="public"
  18424. deprecated="not deprecated">
  18425. <doc>
  18426. <![CDATA[Returns the names of all counter classes.
  18427. @return Set of counter names.]]>
  18428. </doc>
  18429. </method>
  18430. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Group&gt;"
  18431. abstract="false" native="false" synchronized="true"
  18432. static="false" final="false" visibility="public"
  18433. deprecated="not deprecated">
  18434. </method>
  18435. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  18436. abstract="false" native="false" synchronized="true"
  18437. static="false" final="false" visibility="public"
  18438. deprecated="not deprecated">
  18439. <param name="groupName" type="java.lang.String"/>
  18440. <doc>
  18441. <![CDATA[Returns the named counter group, or an empty group if there is none
  18442. with the specified name.]]>
  18443. </doc>
  18444. </method>
  18445. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  18446. abstract="false" native="false" synchronized="true"
  18447. static="false" final="false" visibility="public"
  18448. deprecated="not deprecated">
  18449. <param name="key" type="java.lang.Enum"/>
  18450. <doc>
  18451. <![CDATA[Find the counter for the given enum. The same enum will always return the
  18452. same counter.
  18453. @param key the counter key
  18454. @return the matching counter object]]>
  18455. </doc>
  18456. </method>
  18457. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  18458. abstract="false" native="false" synchronized="true"
  18459. static="false" final="false" visibility="public"
  18460. deprecated="not deprecated">
  18461. <param name="group" type="java.lang.String"/>
  18462. <param name="name" type="java.lang.String"/>
  18463. <doc>
  18464. <![CDATA[Find a counter given the group and the name.
  18465. @param group the name of the group
  18466. @param name the internal name of the counter
  18467. @return the counter for that name]]>
  18468. </doc>
  18469. </method>
  18470. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  18471. abstract="false" native="false" synchronized="true"
  18472. static="false" final="false" visibility="public"
  18473. deprecated="deprecated, no comment">
  18474. <param name="group" type="java.lang.String"/>
  18475. <param name="id" type="int"/>
  18476. <param name="name" type="java.lang.String"/>
  18477. <doc>
  18478. <![CDATA[Find a counter by using strings
  18479. @param group the name of the group
  18480. @param id the id of the counter within the group (0 to N-1)
  18481. @param name the internal name of the counter
  18482. @return the counter for that name
  18483. @deprecated]]>
  18484. </doc>
  18485. </method>
  18486. <method name="incrCounter"
  18487. abstract="false" native="false" synchronized="true"
  18488. static="false" final="false" visibility="public"
  18489. deprecated="not deprecated">
  18490. <param name="key" type="java.lang.Enum"/>
  18491. <param name="amount" type="long"/>
  18492. <doc>
  18493. <![CDATA[Increments the specified counter by the specified amount, creating it if
  18494. it didn't already exist.
  18495. @param key identifies a counter
  18496. @param amount amount by which counter is to be incremented]]>
  18497. </doc>
  18498. </method>
  18499. <method name="incrCounter"
  18500. abstract="false" native="false" synchronized="true"
  18501. static="false" final="false" visibility="public"
  18502. deprecated="not deprecated">
  18503. <param name="group" type="java.lang.String"/>
  18504. <param name="counter" type="java.lang.String"/>
  18505. <param name="amount" type="long"/>
  18506. <doc>
  18507. <![CDATA[Increments the specified counter by the specified amount, creating it if
  18508. it didn't already exist.
  18509. @param group the name of the group
  18510. @param counter the internal name of the counter
  18511. @param amount amount by which counter is to be incremented]]>
  18512. </doc>
  18513. </method>
  18514. <method name="getCounter" return="long"
  18515. abstract="false" native="false" synchronized="true"
  18516. static="false" final="false" visibility="public"
  18517. deprecated="not deprecated">
  18518. <param name="key" type="java.lang.Enum"/>
  18519. <doc>
  18520. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  18521. does not exist.]]>
  18522. </doc>
  18523. </method>
  18524. <method name="incrAllCounters"
  18525. abstract="false" native="false" synchronized="true"
  18526. static="false" final="false" visibility="public"
  18527. deprecated="not deprecated">
  18528. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  18529. <doc>
  18530. <![CDATA[Increments multiple counters by their amounts in another Counters
  18531. instance.
  18532. @param other the other Counters instance]]>
  18533. </doc>
  18534. </method>
  18535. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  18536. abstract="false" native="false" synchronized="false"
  18537. static="true" final="false" visibility="public"
  18538. deprecated="not deprecated">
  18539. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  18540. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  18541. <doc>
  18542. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  18543. </doc>
  18544. </method>
  18545. <method name="size" return="int"
  18546. abstract="false" native="false" synchronized="true"
  18547. static="false" final="false" visibility="public"
  18548. deprecated="not deprecated">
  18549. <doc>
  18550. <![CDATA[Returns the total number of counters, by summing the number of counters
  18551. in each group.]]>
  18552. </doc>
  18553. </method>
  18554. <method name="write"
  18555. abstract="false" native="false" synchronized="true"
  18556. static="false" final="false" visibility="public"
  18557. deprecated="not deprecated">
  18558. <param name="out" type="java.io.DataOutput"/>
  18559. <exception name="IOException" type="java.io.IOException"/>
  18560. <doc>
  18561. <![CDATA[Write the set of groups.
  18562. The external format is:
  18563. #groups (groupName group)*
  18564. i.e. the number of groups followed by 0 or more groups, where each
  18565. group is of the form:
  18566. groupDisplayName #counters (false | true counter)*
  18567. where each counter is of the form:
  18568. name (false | true displayName) value]]>
  18569. </doc>
  18570. </method>
  18571. <method name="readFields"
  18572. abstract="false" native="false" synchronized="true"
  18573. static="false" final="false" visibility="public"
  18574. deprecated="not deprecated">
  18575. <param name="in" type="java.io.DataInput"/>
  18576. <exception name="IOException" type="java.io.IOException"/>
  18577. <doc>
  18578. <![CDATA[Read a set of groups.]]>
  18579. </doc>
  18580. </method>
  18581. <method name="log"
  18582. abstract="false" native="false" synchronized="false"
  18583. static="false" final="false" visibility="public"
  18584. deprecated="not deprecated">
  18585. <param name="log" type="org.apache.commons.logging.Log"/>
  18586. <doc>
  18587. <![CDATA[Logs the current counter values.
  18588. @param log The log to use.]]>
  18589. </doc>
  18590. </method>
  18591. <method name="toString" return="java.lang.String"
  18592. abstract="false" native="false" synchronized="true"
  18593. static="false" final="false" visibility="public"
  18594. deprecated="not deprecated">
  18595. <doc>
  18596. <![CDATA[Return textual representation of the counter values.]]>
  18597. </doc>
  18598. </method>
  18599. <method name="makeCompactString" return="java.lang.String"
  18600. abstract="false" native="false" synchronized="true"
  18601. static="false" final="false" visibility="public"
  18602. deprecated="not deprecated">
  18603. <doc>
  18604. <![CDATA[Convert a counters object into a single line that is easy to parse.
  18605. @return the string with "name=value" for each counter and separated by ","]]>
  18606. </doc>
  18607. </method>
  18608. <method name="makeEscapedCompactString" return="java.lang.String"
  18609. abstract="false" native="false" synchronized="true"
  18610. static="false" final="false" visibility="public"
  18611. deprecated="not deprecated">
  18612. <doc>
  18613. <![CDATA[Represent the counter in a textual format that can be converted back to
  18614. its object form
  18615. @return the string in the following format
  18616. {(groupname)(group-displayname)[(countername)(displayname)(value)][][]}{}{}]]>
  18617. </doc>
  18618. </method>
  18619. <method name="fromEscapedCompactString" return="org.apache.hadoop.mapred.Counters"
  18620. abstract="false" native="false" synchronized="false"
  18621. static="true" final="false" visibility="public"
  18622. deprecated="not deprecated">
  18623. <param name="compactString" type="java.lang.String"/>
  18624. <exception name="ParseException" type="java.text.ParseException"/>
  18625. <doc>
  18626. <![CDATA[Convert a stringified counter representation into a counter object. Note
  18627. that the counter can be recovered if its stringified using
  18628. {@link #makeEscapedCompactString()}.
  18629. @return a Counter]]>
  18630. </doc>
  18631. </method>
  18632. <doc>
  18633. <![CDATA[A set of named counters.
  18634. <p><code>Counters</code> represent global counters, defined either by the
  18635. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  18636. any {@link Enum} type.</p>
  18637. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  18638. counters from a particular <code>Enum</code> class.]]>
  18639. </doc>
  18640. </class>
  18641. <!-- end class org.apache.hadoop.mapred.Counters -->
  18642. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  18643. <class name="Counters.Counter" extends="java.lang.Object"
  18644. abstract="false"
  18645. static="true" final="false" visibility="public"
  18646. deprecated="not deprecated">
  18647. <implements name="org.apache.hadoop.io.Writable"/>
  18648. <method name="readFields"
  18649. abstract="false" native="false" synchronized="true"
  18650. static="false" final="false" visibility="public"
  18651. deprecated="not deprecated">
  18652. <param name="in" type="java.io.DataInput"/>
  18653. <exception name="IOException" type="java.io.IOException"/>
  18654. <doc>
  18655. <![CDATA[Read the binary representation of the counter]]>
  18656. </doc>
  18657. </method>
  18658. <method name="write"
  18659. abstract="false" native="false" synchronized="true"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. <param name="out" type="java.io.DataOutput"/>
  18663. <exception name="IOException" type="java.io.IOException"/>
  18664. <doc>
  18665. <![CDATA[Write the binary representation of the counter]]>
  18666. </doc>
  18667. </method>
  18668. <method name="getName" return="java.lang.String"
  18669. abstract="false" native="false" synchronized="true"
  18670. static="false" final="false" visibility="public"
  18671. deprecated="not deprecated">
  18672. <doc>
  18673. <![CDATA[Get the internal name of the counter.
  18674. @return the internal name of the counter]]>
  18675. </doc>
  18676. </method>
  18677. <method name="getDisplayName" return="java.lang.String"
  18678. abstract="false" native="false" synchronized="true"
  18679. static="false" final="false" visibility="public"
  18680. deprecated="not deprecated">
  18681. <doc>
  18682. <![CDATA[Get the name of the counter.
  18683. @return the user facing name of the counter]]>
  18684. </doc>
  18685. </method>
  18686. <method name="setDisplayName"
  18687. abstract="false" native="false" synchronized="true"
  18688. static="false" final="false" visibility="public"
  18689. deprecated="not deprecated">
  18690. <param name="displayName" type="java.lang.String"/>
  18691. <doc>
  18692. <![CDATA[Set the display name of the counter.]]>
  18693. </doc>
  18694. </method>
  18695. <method name="makeEscapedCompactString" return="java.lang.String"
  18696. abstract="false" native="false" synchronized="true"
  18697. static="false" final="false" visibility="public"
  18698. deprecated="not deprecated">
  18699. <doc>
  18700. <![CDATA[Returns the compact stringified version of the counter in the format
  18701. [(actual-name)(display-name)(value)]]]>
  18702. </doc>
  18703. </method>
  18704. <method name="getCounter" return="long"
  18705. abstract="false" native="false" synchronized="true"
  18706. static="false" final="false" visibility="public"
  18707. deprecated="not deprecated">
  18708. <doc>
  18709. <![CDATA[What is the current value of this counter?
  18710. @return the current value]]>
  18711. </doc>
  18712. </method>
  18713. <method name="increment"
  18714. abstract="false" native="false" synchronized="true"
  18715. static="false" final="false" visibility="public"
  18716. deprecated="not deprecated">
  18717. <param name="incr" type="long"/>
  18718. <doc>
  18719. <![CDATA[Increment this counter by the given value
  18720. @param incr the value to increase this counter by]]>
  18721. </doc>
  18722. </method>
  18723. <doc>
  18724. <![CDATA[A counter record, comprising its name and value.]]>
  18725. </doc>
  18726. </class>
  18727. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  18728. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  18729. <class name="Counters.Group" extends="java.lang.Object"
  18730. abstract="false"
  18731. static="true" final="false" visibility="public"
  18732. deprecated="not deprecated">
  18733. <implements name="org.apache.hadoop.io.Writable"/>
  18734. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"/>
  18735. <method name="getName" return="java.lang.String"
  18736. abstract="false" native="false" synchronized="false"
  18737. static="false" final="false" visibility="public"
  18738. deprecated="not deprecated">
  18739. <doc>
  18740. <![CDATA[Returns raw name of the group. This is the name of the enum class
  18741. for this group of counters.]]>
  18742. </doc>
  18743. </method>
  18744. <method name="getDisplayName" return="java.lang.String"
  18745. abstract="false" native="false" synchronized="false"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. <doc>
  18749. <![CDATA[Returns localized name of the group. This is the same as getName() by
  18750. default, but different if an appropriate ResourceBundle is found.]]>
  18751. </doc>
  18752. </method>
  18753. <method name="setDisplayName"
  18754. abstract="false" native="false" synchronized="false"
  18755. static="false" final="false" visibility="public"
  18756. deprecated="not deprecated">
  18757. <param name="displayName" type="java.lang.String"/>
  18758. <doc>
  18759. <![CDATA[Set the display name]]>
  18760. </doc>
  18761. </method>
  18762. <method name="makeEscapedCompactString" return="java.lang.String"
  18763. abstract="false" native="false" synchronized="false"
  18764. static="false" final="false" visibility="public"
  18765. deprecated="not deprecated">
  18766. <doc>
  18767. <![CDATA[Returns the compact stringified version of the group in the format
  18768. {(actual-name)(display-name)(value)[][][]} where [] are compact strings for the
  18769. counters within.]]>
  18770. </doc>
  18771. </method>
  18772. <method name="getCounter" return="long"
  18773. abstract="false" native="false" synchronized="true"
  18774. static="false" final="false" visibility="public"
  18775. deprecated="not deprecated">
  18776. <param name="counterName" type="java.lang.String"/>
  18777. <doc>
  18778. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  18779. not exist.]]>
  18780. </doc>
  18781. </method>
  18782. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  18783. abstract="false" native="false" synchronized="true"
  18784. static="false" final="false" visibility="public"
  18785. deprecated="use {@link #getCounter(String)} instead">
  18786. <param name="id" type="int"/>
  18787. <param name="name" type="java.lang.String"/>
  18788. <doc>
  18789. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  18790. @param id the numeric id of the counter within the group
  18791. @param name the internal counter name
  18792. @return the counter
  18793. @deprecated use {@link #getCounter(String)} instead]]>
  18794. </doc>
  18795. </method>
  18796. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  18797. abstract="false" native="false" synchronized="true"
  18798. static="false" final="false" visibility="public"
  18799. deprecated="not deprecated">
  18800. <param name="name" type="java.lang.String"/>
  18801. <doc>
  18802. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  18803. @param name the internal counter name
  18804. @return the counter]]>
  18805. </doc>
  18806. </method>
  18807. <method name="size" return="int"
  18808. abstract="false" native="false" synchronized="true"
  18809. static="false" final="false" visibility="public"
  18810. deprecated="not deprecated">
  18811. <doc>
  18812. <![CDATA[Returns the number of counters in this group.]]>
  18813. </doc>
  18814. </method>
  18815. <method name="write"
  18816. abstract="false" native="false" synchronized="true"
  18817. static="false" final="false" visibility="public"
  18818. deprecated="not deprecated">
  18819. <param name="out" type="java.io.DataOutput"/>
  18820. <exception name="IOException" type="java.io.IOException"/>
  18821. </method>
  18822. <method name="readFields"
  18823. abstract="false" native="false" synchronized="true"
  18824. static="false" final="false" visibility="public"
  18825. deprecated="not deprecated">
  18826. <param name="in" type="java.io.DataInput"/>
  18827. <exception name="IOException" type="java.io.IOException"/>
  18828. </method>
  18829. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"
  18830. abstract="false" native="false" synchronized="true"
  18831. static="false" final="false" visibility="public"
  18832. deprecated="not deprecated">
  18833. </method>
  18834. <doc>
  18835. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  18836. counter {@link Enum} class.
  18837. <p><code>Group</code>handles localization of the class name and the
  18838. counter names.</p>]]>
  18839. </doc>
  18840. </class>
  18841. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  18842. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  18843. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  18844. abstract="false"
  18845. static="false" final="false" visibility="public"
  18846. deprecated="not deprecated">
  18847. <constructor name="DefaultJobHistoryParser"
  18848. static="false" final="false" visibility="public"
  18849. deprecated="not deprecated">
  18850. </constructor>
  18851. <method name="parseJobTasks"
  18852. abstract="false" native="false" synchronized="false"
  18853. static="true" final="false" visibility="public"
  18854. deprecated="not deprecated">
  18855. <param name="jobHistoryFile" type="java.lang.String"/>
  18856. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  18857. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18858. <exception name="IOException" type="java.io.IOException"/>
  18859. <doc>
  18860. <![CDATA[Populates a JobInfo object from the job's history log file.
  18861. @param jobHistoryFile history file for this job.
  18862. @param job a precreated JobInfo object, should be non-null.
  18863. @param fs FileSystem where historyFile is present.
  18864. @throws IOException]]>
  18865. </doc>
  18866. </method>
  18867. <doc>
  18868. <![CDATA[Default parser for job history files. It creates object model from
  18869. job history file.]]>
  18870. </doc>
  18871. </class>
  18872. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  18873. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  18874. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  18875. abstract="false"
  18876. static="false" final="false" visibility="public"
  18877. deprecated="not deprecated">
  18878. <constructor name="FileAlreadyExistsException"
  18879. static="false" final="false" visibility="public"
  18880. deprecated="not deprecated">
  18881. </constructor>
  18882. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  18883. static="false" final="false" visibility="public"
  18884. deprecated="not deprecated">
  18885. </constructor>
  18886. <doc>
  18887. <![CDATA[Used when target file already exists for any operation and
  18888. is not configured to be overwritten.]]>
  18889. </doc>
  18890. </class>
  18891. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  18892. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  18893. <class name="FileInputFormat" extends="java.lang.Object"
  18894. abstract="true"
  18895. static="false" final="false" visibility="public"
  18896. deprecated="not deprecated">
  18897. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  18898. <constructor name="FileInputFormat"
  18899. static="false" final="false" visibility="public"
  18900. deprecated="not deprecated">
  18901. </constructor>
  18902. <method name="setMinSplitSize"
  18903. abstract="false" native="false" synchronized="false"
  18904. static="false" final="false" visibility="protected"
  18905. deprecated="not deprecated">
  18906. <param name="minSplitSize" type="long"/>
  18907. </method>
  18908. <method name="isSplitable" return="boolean"
  18909. abstract="false" native="false" synchronized="false"
  18910. static="false" final="false" visibility="protected"
  18911. deprecated="not deprecated">
  18912. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  18913. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  18914. <doc>
  18915. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  18916. stream compressed, it will not be.
  18917. <code>FileInputFormat</code> implementations can override this and return
  18918. <code>false</code> to ensure that individual input files are never split-up
  18919. so that {@link Mapper}s process entire files.
  18920. @param fs the file system that the file is on
  18921. @param filename the file name to check
  18922. @return is this file splitable?]]>
  18923. </doc>
  18924. </method>
  18925. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  18926. abstract="true" native="false" synchronized="false"
  18927. static="false" final="false" visibility="public"
  18928. deprecated="not deprecated">
  18929. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  18930. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18931. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  18932. <exception name="IOException" type="java.io.IOException"/>
  18933. </method>
  18934. <method name="setInputPathFilter"
  18935. abstract="false" native="false" synchronized="false"
  18936. static="true" final="false" visibility="public"
  18937. deprecated="not deprecated">
  18938. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  18939. <param name="filter" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.PathFilter&gt;"/>
  18940. <doc>
  18941. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  18942. @param filter the PathFilter class use for filtering the input paths.]]>
  18943. </doc>
  18944. </method>
  18945. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  18946. abstract="false" native="false" synchronized="false"
  18947. static="true" final="false" visibility="public"
  18948. deprecated="not deprecated">
  18949. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  18950. <doc>
  18951. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  18952. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  18953. </doc>
  18954. </method>
  18955. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  18956. abstract="false" native="false" synchronized="false"
  18957. static="false" final="false" visibility="protected"
  18958. deprecated="not deprecated">
  18959. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18960. <exception name="IOException" type="java.io.IOException"/>
  18961. <doc>
  18962. <![CDATA[List input directories.
  18963. Subclasses may override to, e.g., select only files matching a regular
  18964. expression.
  18965. @param job the job to list input paths for
  18966. @return array of FileStatus objects
  18967. @throws IOException if zero items.]]>
  18968. </doc>
  18969. </method>
  18970. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  18971. abstract="false" native="false" synchronized="false"
  18972. static="false" final="false" visibility="public"
  18973. deprecated="not deprecated">
  18974. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  18975. <param name="numSplits" type="int"/>
  18976. <exception name="IOException" type="java.io.IOException"/>
  18977. <doc>
  18978. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  18979. they're too big.]]>
  18980. </doc>
  18981. </method>
  18982. <method name="computeSplitSize" return="long"
  18983. abstract="false" native="false" synchronized="false"
  18984. static="false" final="false" visibility="protected"
  18985. deprecated="not deprecated">
  18986. <param name="goalSize" type="long"/>
  18987. <param name="minSize" type="long"/>
  18988. <param name="blockSize" type="long"/>
  18989. </method>
  18990. <method name="getBlockIndex" return="int"
  18991. abstract="false" native="false" synchronized="false"
  18992. static="false" final="false" visibility="protected"
  18993. deprecated="not deprecated">
  18994. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  18995. <param name="offset" type="long"/>
  18996. </method>
  18997. <method name="setInputPaths"
  18998. abstract="false" native="false" synchronized="false"
  18999. static="true" final="false" visibility="public"
  19000. deprecated="not deprecated">
  19001. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19002. <param name="commaSeparatedPaths" type="java.lang.String"/>
  19003. <doc>
  19004. <![CDATA[Sets the given comma separated paths as the list of inputs
  19005. for the map-reduce job.
  19006. @param conf Configuration of the job
  19007. @param commaSeparatedPaths Comma separated paths to be set as
  19008. the list of inputs for the map-reduce job.]]>
  19009. </doc>
  19010. </method>
  19011. <method name="addInputPaths"
  19012. abstract="false" native="false" synchronized="false"
  19013. static="true" final="false" visibility="public"
  19014. deprecated="not deprecated">
  19015. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19016. <param name="commaSeparatedPaths" type="java.lang.String"/>
  19017. <doc>
  19018. <![CDATA[Add the given comma separated paths to the list of inputs for
  19019. the map-reduce job.
  19020. @param conf The configuration of the job
  19021. @param commaSeparatedPaths Comma separated paths to be added to
  19022. the list of inputs for the map-reduce job.]]>
  19023. </doc>
  19024. </method>
  19025. <method name="setInputPaths"
  19026. abstract="false" native="false" synchronized="false"
  19027. static="true" final="false" visibility="public"
  19028. deprecated="not deprecated">
  19029. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19030. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  19031. <doc>
  19032. <![CDATA[Set the array of {@link Path}s as the list of inputs
  19033. for the map-reduce job.
  19034. @param conf Configuration of the job.
  19035. @param inputPaths the {@link Path}s of the input directories/files
  19036. for the map-reduce job.]]>
  19037. </doc>
  19038. </method>
  19039. <method name="addInputPath"
  19040. abstract="false" native="false" synchronized="false"
  19041. static="true" final="false" visibility="public"
  19042. deprecated="not deprecated">
  19043. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19044. <param name="path" type="org.apache.hadoop.fs.Path"/>
  19045. <doc>
  19046. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  19047. @param conf The configuration of the job
  19048. @param path {@link Path} to be added to the list of inputs for
  19049. the map-reduce job.]]>
  19050. </doc>
  19051. </method>
  19052. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  19053. abstract="false" native="false" synchronized="false"
  19054. static="true" final="false" visibility="public"
  19055. deprecated="not deprecated">
  19056. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19057. <doc>
  19058. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  19059. @param conf The configuration of the job
  19060. @return the list of input {@link Path}s for the map-reduce job.]]>
  19061. </doc>
  19062. </method>
  19063. <field name="LOG" type="org.apache.commons.logging.Log"
  19064. transient="false" volatile="false"
  19065. static="true" final="true" visibility="public"
  19066. deprecated="not deprecated">
  19067. </field>
  19068. <doc>
  19069. <![CDATA[A base class for file-based {@link InputFormat}.
  19070. <p><code>FileInputFormat</code> is the base class for all file-based
  19071. <code>InputFormat</code>s. This provides a generic implementation of
  19072. {@link #getSplits(JobConf, int)}.
  19073. Subclasses of <code>FileInputFormat</code> can also override the
  19074. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  19075. not split-up and are processed as a whole by {@link Mapper}s.]]>
  19076. </doc>
  19077. </class>
  19078. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  19079. <!-- start class org.apache.hadoop.mapred.FileOutputCommitter -->
  19080. <class name="FileOutputCommitter" extends="org.apache.hadoop.mapred.OutputCommitter"
  19081. abstract="false"
  19082. static="false" final="false" visibility="public"
  19083. deprecated="not deprecated">
  19084. <constructor name="FileOutputCommitter"
  19085. static="false" final="false" visibility="public"
  19086. deprecated="not deprecated">
  19087. </constructor>
  19088. <method name="setupJob"
  19089. abstract="false" native="false" synchronized="false"
  19090. static="false" final="false" visibility="public"
  19091. deprecated="not deprecated">
  19092. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  19093. <exception name="IOException" type="java.io.IOException"/>
  19094. </method>
  19095. <method name="cleanupJob"
  19096. abstract="false" native="false" synchronized="false"
  19097. static="false" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. <param name="context" type="org.apache.hadoop.mapred.JobContext"/>
  19100. <exception name="IOException" type="java.io.IOException"/>
  19101. </method>
  19102. <method name="setupTask"
  19103. abstract="false" native="false" synchronized="false"
  19104. static="false" final="false" visibility="public"
  19105. deprecated="not deprecated">
  19106. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  19107. <exception name="IOException" type="java.io.IOException"/>
  19108. </method>
  19109. <method name="commitTask"
  19110. abstract="false" native="false" synchronized="false"
  19111. static="false" final="false" visibility="public"
  19112. deprecated="not deprecated">
  19113. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  19114. <exception name="IOException" type="java.io.IOException"/>
  19115. </method>
  19116. <method name="abortTask"
  19117. abstract="false" native="false" synchronized="false"
  19118. static="false" final="false" visibility="public"
  19119. deprecated="not deprecated">
  19120. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  19121. </method>
  19122. <method name="needsTaskCommit" return="boolean"
  19123. abstract="false" native="false" synchronized="false"
  19124. static="false" final="false" visibility="public"
  19125. deprecated="not deprecated">
  19126. <param name="context" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  19127. <exception name="IOException" type="java.io.IOException"/>
  19128. </method>
  19129. <field name="LOG" type="org.apache.commons.logging.Log"
  19130. transient="false" volatile="false"
  19131. static="true" final="true" visibility="public"
  19132. deprecated="not deprecated">
  19133. </field>
  19134. <field name="TEMP_DIR_NAME" type="java.lang.String"
  19135. transient="false" volatile="false"
  19136. static="true" final="true" visibility="public"
  19137. deprecated="not deprecated">
  19138. <doc>
  19139. <![CDATA[Temporary directory name]]>
  19140. </doc>
  19141. </field>
  19142. <doc>
  19143. <![CDATA[An {@link OutputCommitter} that commits files specified
  19144. in job output directory i.e. ${mapred.output.dir}.]]>
  19145. </doc>
  19146. </class>
  19147. <!-- end class org.apache.hadoop.mapred.FileOutputCommitter -->
  19148. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  19149. <class name="FileOutputFormat" extends="java.lang.Object"
  19150. abstract="true"
  19151. static="false" final="false" visibility="public"
  19152. deprecated="not deprecated">
  19153. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  19154. <constructor name="FileOutputFormat"
  19155. static="false" final="false" visibility="public"
  19156. deprecated="not deprecated">
  19157. </constructor>
  19158. <method name="setCompressOutput"
  19159. abstract="false" native="false" synchronized="false"
  19160. static="true" final="false" visibility="public"
  19161. deprecated="not deprecated">
  19162. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19163. <param name="compress" type="boolean"/>
  19164. <doc>
  19165. <![CDATA[Set whether the output of the job is compressed.
  19166. @param conf the {@link JobConf} to modify
  19167. @param compress should the output of the job be compressed?]]>
  19168. </doc>
  19169. </method>
  19170. <method name="getCompressOutput" return="boolean"
  19171. abstract="false" native="false" synchronized="false"
  19172. static="true" final="false" visibility="public"
  19173. deprecated="not deprecated">
  19174. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19175. <doc>
  19176. <![CDATA[Is the job output compressed?
  19177. @param conf the {@link JobConf} to look in
  19178. @return <code>true</code> if the job output should be compressed,
  19179. <code>false</code> otherwise]]>
  19180. </doc>
  19181. </method>
  19182. <method name="setOutputCompressorClass"
  19183. abstract="false" native="false" synchronized="false"
  19184. static="true" final="false" visibility="public"
  19185. deprecated="not deprecated">
  19186. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19187. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  19188. <doc>
  19189. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  19190. @param conf the {@link JobConf} to modify
  19191. @param codecClass the {@link CompressionCodec} to be used to
  19192. compress the job outputs]]>
  19193. </doc>
  19194. </method>
  19195. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  19196. abstract="false" native="false" synchronized="false"
  19197. static="true" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19200. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  19201. <doc>
  19202. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  19203. @param conf the {@link JobConf} to look in
  19204. @param defaultValue the {@link CompressionCodec} to return if not set
  19205. @return the {@link CompressionCodec} to be used to compress the
  19206. job outputs
  19207. @throws IllegalArgumentException if the class was specified, but not found]]>
  19208. </doc>
  19209. </method>
  19210. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  19211. abstract="true" native="false" synchronized="false"
  19212. static="false" final="false" visibility="public"
  19213. deprecated="not deprecated">
  19214. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  19215. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19216. <param name="name" type="java.lang.String"/>
  19217. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  19218. <exception name="IOException" type="java.io.IOException"/>
  19219. </method>
  19220. <method name="checkOutputSpecs"
  19221. abstract="false" native="false" synchronized="false"
  19222. static="false" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  19225. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19226. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  19227. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  19228. <exception name="IOException" type="java.io.IOException"/>
  19229. </method>
  19230. <method name="setOutputPath"
  19231. abstract="false" native="false" synchronized="false"
  19232. static="true" final="false" visibility="public"
  19233. deprecated="not deprecated">
  19234. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19235. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  19236. <doc>
  19237. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  19238. @param conf The configuration of the job.
  19239. @param outputDir the {@link Path} of the output directory for
  19240. the map-reduce job.]]>
  19241. </doc>
  19242. </method>
  19243. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  19244. abstract="false" native="false" synchronized="false"
  19245. static="true" final="false" visibility="public"
  19246. deprecated="not deprecated">
  19247. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19248. <doc>
  19249. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  19250. @return the {@link Path} to the output directory for the map-reduce job.
  19251. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  19252. </doc>
  19253. </method>
  19254. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  19255. abstract="false" native="false" synchronized="false"
  19256. static="true" final="false" visibility="public"
  19257. deprecated="not deprecated">
  19258. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19259. <doc>
  19260. <![CDATA[Get the {@link Path} to the task's temporary output directory
  19261. for the map-reduce job
  19262. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  19263. <p><i>Note:</i> The following is valid only if the {@link OutputCommitter}
  19264. is {@link FileOutputCommitter}. If <code>OutputCommitter</code> is not
  19265. a <code>FileOutputCommitter</code>, the task's temporary output
  19266. directory is same as {@link #getOutputPath(JobConf)} i.e.
  19267. <tt>${mapred.output.dir}$</tt></p>
  19268. <p>Some applications need to create/write-to side-files, which differ from
  19269. the actual job-outputs.
  19270. <p>In such cases there could be issues with 2 instances of the same TIP
  19271. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  19272. same file (path) on HDFS. Hence the application-writer will have to pick
  19273. unique names per task-attempt (e.g. using the attemptid, say
  19274. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  19275. <p>To get around this the Map-Reduce framework helps the application-writer
  19276. out by maintaining a special
  19277. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  19278. sub-directory for each task-attempt on HDFS where the output of the
  19279. task-attempt goes. On successful completion of the task-attempt the files
  19280. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  19281. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  19282. framework discards the sub-directory of unsuccessful task-attempts. This
  19283. is completely transparent to the application.</p>
  19284. <p>The application-writer can take advantage of this by creating any
  19285. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  19286. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  19287. framework will move them out similarly - thus she doesn't have to pick
  19288. unique paths per task-attempt.</p>
  19289. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  19290. execution of a particular task-attempt is actually
  19291. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  19292. set by the map-reduce framework. So, just create any side-files in the
  19293. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  19294. task to take advantage of this feature.</p>
  19295. <p>The entire discussion holds true for maps of jobs with
  19296. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  19297. goes directly to HDFS.</p>
  19298. @return the {@link Path} to the task's temporary output directory
  19299. for the map-reduce job.]]>
  19300. </doc>
  19301. </method>
  19302. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  19303. abstract="false" native="false" synchronized="false"
  19304. static="true" final="false" visibility="public"
  19305. deprecated="not deprecated">
  19306. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19307. <param name="name" type="java.lang.String"/>
  19308. <exception name="IOException" type="java.io.IOException"/>
  19309. <doc>
  19310. <![CDATA[Helper function to create the task's temporary output directory and
  19311. return the path to the task's output file.
  19312. @param conf job-configuration
  19313. @param name temporary task-output filename
  19314. @return path to the task's temporary output file
  19315. @throws IOException]]>
  19316. </doc>
  19317. </method>
  19318. <method name="getUniqueName" return="java.lang.String"
  19319. abstract="false" native="false" synchronized="false"
  19320. static="true" final="false" visibility="public"
  19321. deprecated="not deprecated">
  19322. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19323. <param name="name" type="java.lang.String"/>
  19324. <doc>
  19325. <![CDATA[Helper function to generate a name that is unique for the task.
  19326. <p>The generated name can be used to create custom files from within the
  19327. different tasks for the job, the names for different tasks will not collide
  19328. with each other.</p>
  19329. <p>The given name is postfixed with the task type, 'm' for maps, 'r' for
  19330. reduces and the task partition number. For example, give a name 'test'
  19331. running on the first map o the job the generated name will be
  19332. 'test-m-00000'.</p>
  19333. @param conf the configuration for the job.
  19334. @param name the name to make unique.
  19335. @return a unique name accross all tasks of the job.]]>
  19336. </doc>
  19337. </method>
  19338. <method name="getPathForCustomFile" return="org.apache.hadoop.fs.Path"
  19339. abstract="false" native="false" synchronized="false"
  19340. static="true" final="false" visibility="public"
  19341. deprecated="not deprecated">
  19342. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19343. <param name="name" type="java.lang.String"/>
  19344. <doc>
  19345. <![CDATA[Helper function to generate a {@link Path} for a file that is unique for
  19346. the task within the job output directory.
  19347. <p>The path can be used to create custom files from within the map and
  19348. reduce tasks. The path name will be unique for each task. The path parent
  19349. will be the job output directory.</p>ls
  19350. <p>This method uses the {@link #getUniqueName} method to make the file name
  19351. unique for the task.</p>
  19352. @param conf the configuration for the job.
  19353. @param name the name for the file.
  19354. @return a unique path accross all tasks of the job.]]>
  19355. </doc>
  19356. </method>
  19357. <doc>
  19358. <![CDATA[A base class for {@link OutputFormat}.]]>
  19359. </doc>
  19360. </class>
  19361. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  19362. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  19363. <class name="FileSplit" extends="java.lang.Object"
  19364. abstract="false"
  19365. static="false" final="false" visibility="public"
  19366. deprecated="not deprecated">
  19367. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  19368. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  19369. static="false" final="false" visibility="public"
  19370. deprecated="deprecated, no comment">
  19371. <doc>
  19372. <![CDATA[Constructs a split.
  19373. @deprecated
  19374. @param file the file name
  19375. @param start the position of the first byte in the file to process
  19376. @param length the number of bytes in the file to process]]>
  19377. </doc>
  19378. </constructor>
  19379. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  19380. static="false" final="false" visibility="public"
  19381. deprecated="not deprecated">
  19382. <doc>
  19383. <![CDATA[Constructs a split with host information
  19384. @param file the file name
  19385. @param start the position of the first byte in the file to process
  19386. @param length the number of bytes in the file to process
  19387. @param hosts the list of hosts containing the block, possibly null]]>
  19388. </doc>
  19389. </constructor>
  19390. <method name="getPath" return="org.apache.hadoop.fs.Path"
  19391. abstract="false" native="false" synchronized="false"
  19392. static="false" final="false" visibility="public"
  19393. deprecated="not deprecated">
  19394. <doc>
  19395. <![CDATA[The file containing this split's data.]]>
  19396. </doc>
  19397. </method>
  19398. <method name="getStart" return="long"
  19399. abstract="false" native="false" synchronized="false"
  19400. static="false" final="false" visibility="public"
  19401. deprecated="not deprecated">
  19402. <doc>
  19403. <![CDATA[The position of the first byte in the file to process.]]>
  19404. </doc>
  19405. </method>
  19406. <method name="getLength" return="long"
  19407. abstract="false" native="false" synchronized="false"
  19408. static="false" final="false" visibility="public"
  19409. deprecated="not deprecated">
  19410. <doc>
  19411. <![CDATA[The number of bytes in the file to process.]]>
  19412. </doc>
  19413. </method>
  19414. <method name="toString" return="java.lang.String"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="false" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. </method>
  19419. <method name="write"
  19420. abstract="false" native="false" synchronized="false"
  19421. static="false" final="false" visibility="public"
  19422. deprecated="not deprecated">
  19423. <param name="out" type="java.io.DataOutput"/>
  19424. <exception name="IOException" type="java.io.IOException"/>
  19425. </method>
  19426. <method name="readFields"
  19427. abstract="false" native="false" synchronized="false"
  19428. static="false" final="false" visibility="public"
  19429. deprecated="not deprecated">
  19430. <param name="in" type="java.io.DataInput"/>
  19431. <exception name="IOException" type="java.io.IOException"/>
  19432. </method>
  19433. <method name="getLocations" return="java.lang.String[]"
  19434. abstract="false" native="false" synchronized="false"
  19435. static="false" final="false" visibility="public"
  19436. deprecated="not deprecated">
  19437. <exception name="IOException" type="java.io.IOException"/>
  19438. </method>
  19439. <doc>
  19440. <![CDATA[A section of an input file. Returned by {@link
  19441. InputFormat#getSplits(JobConf, int)} and passed to
  19442. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  19443. </doc>
  19444. </class>
  19445. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  19446. <!-- start class org.apache.hadoop.mapred.ID -->
  19447. <class name="ID" extends="java.lang.Object"
  19448. abstract="false"
  19449. static="false" final="false" visibility="public"
  19450. deprecated="not deprecated">
  19451. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.mapred.ID&gt;"/>
  19452. <constructor name="ID" type="int"
  19453. static="false" final="false" visibility="public"
  19454. deprecated="not deprecated">
  19455. <doc>
  19456. <![CDATA[constructs an ID object from the given int]]>
  19457. </doc>
  19458. </constructor>
  19459. <constructor name="ID"
  19460. static="false" final="false" visibility="protected"
  19461. deprecated="not deprecated">
  19462. </constructor>
  19463. <method name="getId" return="int"
  19464. abstract="false" native="false" synchronized="false"
  19465. static="false" final="false" visibility="public"
  19466. deprecated="not deprecated">
  19467. <doc>
  19468. <![CDATA[returns the int which represents the identifier]]>
  19469. </doc>
  19470. </method>
  19471. <method name="toString" return="java.lang.String"
  19472. abstract="false" native="false" synchronized="false"
  19473. static="false" final="false" visibility="public"
  19474. deprecated="not deprecated">
  19475. </method>
  19476. <method name="hashCode" return="int"
  19477. abstract="false" native="false" synchronized="false"
  19478. static="false" final="false" visibility="public"
  19479. deprecated="not deprecated">
  19480. </method>
  19481. <method name="equals" return="boolean"
  19482. abstract="false" native="false" synchronized="false"
  19483. static="false" final="false" visibility="public"
  19484. deprecated="not deprecated">
  19485. <param name="o" type="java.lang.Object"/>
  19486. </method>
  19487. <method name="compareTo" return="int"
  19488. abstract="false" native="false" synchronized="false"
  19489. static="false" final="false" visibility="public"
  19490. deprecated="not deprecated">
  19491. <param name="that" type="org.apache.hadoop.mapred.ID"/>
  19492. <doc>
  19493. <![CDATA[Compare IDs by associated numbers]]>
  19494. </doc>
  19495. </method>
  19496. <method name="readFields"
  19497. abstract="false" native="false" synchronized="false"
  19498. static="false" final="false" visibility="public"
  19499. deprecated="not deprecated">
  19500. <param name="in" type="java.io.DataInput"/>
  19501. <exception name="IOException" type="java.io.IOException"/>
  19502. </method>
  19503. <method name="write"
  19504. abstract="false" native="false" synchronized="false"
  19505. static="false" final="false" visibility="public"
  19506. deprecated="not deprecated">
  19507. <param name="out" type="java.io.DataOutput"/>
  19508. <exception name="IOException" type="java.io.IOException"/>
  19509. </method>
  19510. <method name="read" return="org.apache.hadoop.mapred.ID"
  19511. abstract="false" native="false" synchronized="false"
  19512. static="true" final="false" visibility="public"
  19513. deprecated="not deprecated">
  19514. <param name="in" type="java.io.DataInput"/>
  19515. <exception name="IOException" type="java.io.IOException"/>
  19516. </method>
  19517. <method name="forName" return="org.apache.hadoop.mapred.ID"
  19518. abstract="false" native="false" synchronized="false"
  19519. static="true" final="false" visibility="public"
  19520. deprecated="not deprecated">
  19521. <param name="str" type="java.lang.String"/>
  19522. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  19523. <doc>
  19524. <![CDATA[Construct an ID object from given string
  19525. @return constructed Id object or null if the given String is null
  19526. @throws IllegalArgumentException if the given string is malformed]]>
  19527. </doc>
  19528. </method>
  19529. <field name="id" type="int"
  19530. transient="false" volatile="false"
  19531. static="false" final="false" visibility="protected"
  19532. deprecated="not deprecated">
  19533. </field>
  19534. <doc>
  19535. <![CDATA[A general identifier, which internally stores the id
  19536. as an integer. This is the super class of {@link JobID},
  19537. {@link TaskID} and {@link TaskAttemptID}.
  19538. @see JobID
  19539. @see TaskID
  19540. @see TaskAttemptID]]>
  19541. </doc>
  19542. </class>
  19543. <!-- end class org.apache.hadoop.mapred.ID -->
  19544. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  19545. <interface name="InputFormat" abstract="true"
  19546. static="false" final="false" visibility="public"
  19547. deprecated="not deprecated">
  19548. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  19549. abstract="false" native="false" synchronized="false"
  19550. static="false" final="false" visibility="public"
  19551. deprecated="not deprecated">
  19552. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19553. <param name="numSplits" type="int"/>
  19554. <exception name="IOException" type="java.io.IOException"/>
  19555. <doc>
  19556. <![CDATA[Logically split the set of input files for the job.
  19557. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  19558. for processing.</p>
  19559. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  19560. input files are not physically split into chunks. For e.g. a split could
  19561. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  19562. @param job job configuration.
  19563. @param numSplits the desired number of splits, a hint.
  19564. @return an array of {@link InputSplit}s for the job.]]>
  19565. </doc>
  19566. </method>
  19567. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  19568. abstract="false" native="false" synchronized="false"
  19569. static="false" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  19572. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19573. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  19574. <exception name="IOException" type="java.io.IOException"/>
  19575. <doc>
  19576. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  19577. <p>It is the responsibility of the <code>RecordReader</code> to respect
  19578. record boundaries while processing the logical split to present a
  19579. record-oriented view to the individual task.</p>
  19580. @param split the {@link InputSplit}
  19581. @param job the job that this split belongs to
  19582. @return a {@link RecordReader}]]>
  19583. </doc>
  19584. </method>
  19585. <doc>
  19586. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  19587. Map-Reduce job.
  19588. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  19589. job to:<p>
  19590. <ol>
  19591. <li>
  19592. Validate the input-specification of the job.
  19593. <li>
  19594. Split-up the input file(s) into logical {@link InputSplit}s, each of
  19595. which is then assigned to an individual {@link Mapper}.
  19596. </li>
  19597. <li>
  19598. Provide the {@link RecordReader} implementation to be used to glean
  19599. input records from the logical <code>InputSplit</code> for processing by
  19600. the {@link Mapper}.
  19601. </li>
  19602. </ol>
  19603. <p>The default behavior of file-based {@link InputFormat}s, typically
  19604. sub-classes of {@link FileInputFormat}, is to split the
  19605. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  19606. bytes, of the input files. However, the {@link FileSystem} blocksize of
  19607. the input files is treated as an upper bound for input splits. A lower bound
  19608. on the split size can be set via
  19609. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  19610. mapred.min.split.size</a>.</p>
  19611. <p>Clearly, logical splits based on input-size is insufficient for many
  19612. applications since record boundaries are to respected. In such cases, the
  19613. application has to also implement a {@link RecordReader} on whom lies the
  19614. responsibilty to respect record-boundaries and present a record-oriented
  19615. view of the logical <code>InputSplit</code> to the individual task.
  19616. @see InputSplit
  19617. @see RecordReader
  19618. @see JobClient
  19619. @see FileInputFormat]]>
  19620. </doc>
  19621. </interface>
  19622. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  19623. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  19624. <interface name="InputSplit" abstract="true"
  19625. static="false" final="false" visibility="public"
  19626. deprecated="not deprecated">
  19627. <implements name="org.apache.hadoop.io.Writable"/>
  19628. <method name="getLength" return="long"
  19629. abstract="false" native="false" synchronized="false"
  19630. static="false" final="false" visibility="public"
  19631. deprecated="not deprecated">
  19632. <exception name="IOException" type="java.io.IOException"/>
  19633. <doc>
  19634. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  19635. @return the number of bytes in the input split.
  19636. @throws IOException]]>
  19637. </doc>
  19638. </method>
  19639. <method name="getLocations" return="java.lang.String[]"
  19640. abstract="false" native="false" synchronized="false"
  19641. static="false" final="false" visibility="public"
  19642. deprecated="not deprecated">
  19643. <exception name="IOException" type="java.io.IOException"/>
  19644. <doc>
  19645. <![CDATA[Get the list of hostnames where the input split is located.
  19646. @return list of hostnames where data of the <code>InputSplit</code> is
  19647. located as an array of <code>String</code>s.
  19648. @throws IOException]]>
  19649. </doc>
  19650. </method>
  19651. <doc>
  19652. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  19653. individual {@link Mapper}.
  19654. <p>Typically, it presents a byte-oriented view on the input and is the
  19655. responsibility of {@link RecordReader} of the job to process this and present
  19656. a record-oriented view.
  19657. @see InputFormat
  19658. @see RecordReader]]>
  19659. </doc>
  19660. </interface>
  19661. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  19662. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  19663. <class name="InvalidFileTypeException" extends="java.io.IOException"
  19664. abstract="false"
  19665. static="false" final="false" visibility="public"
  19666. deprecated="not deprecated">
  19667. <constructor name="InvalidFileTypeException"
  19668. static="false" final="false" visibility="public"
  19669. deprecated="not deprecated">
  19670. </constructor>
  19671. <constructor name="InvalidFileTypeException" type="java.lang.String"
  19672. static="false" final="false" visibility="public"
  19673. deprecated="not deprecated">
  19674. </constructor>
  19675. <doc>
  19676. <![CDATA[Used when file type differs from the desired file type. like
  19677. getting a file when a directory is expected. Or a wrong file type.]]>
  19678. </doc>
  19679. </class>
  19680. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  19681. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  19682. <class name="InvalidInputException" extends="java.io.IOException"
  19683. abstract="false"
  19684. static="false" final="false" visibility="public"
  19685. deprecated="not deprecated">
  19686. <constructor name="InvalidInputException" type="java.util.List&lt;java.io.IOException&gt;"
  19687. static="false" final="false" visibility="public"
  19688. deprecated="not deprecated">
  19689. <doc>
  19690. <![CDATA[Create the exception with the given list.
  19691. @param probs the list of problems to report. this list is not copied.]]>
  19692. </doc>
  19693. </constructor>
  19694. <method name="getProblems" return="java.util.List&lt;java.io.IOException&gt;"
  19695. abstract="false" native="false" synchronized="false"
  19696. static="false" final="false" visibility="public"
  19697. deprecated="not deprecated">
  19698. <doc>
  19699. <![CDATA[Get the complete list of the problems reported.
  19700. @return the list of problems, which must not be modified]]>
  19701. </doc>
  19702. </method>
  19703. <method name="getMessage" return="java.lang.String"
  19704. abstract="false" native="false" synchronized="false"
  19705. static="false" final="false" visibility="public"
  19706. deprecated="not deprecated">
  19707. <doc>
  19708. <![CDATA[Get a summary message of the problems found.
  19709. @return the concatenated messages from all of the problems.]]>
  19710. </doc>
  19711. </method>
  19712. <doc>
  19713. <![CDATA[This class wraps a list of problems with the input, so that the user
  19714. can get a list of problems together instead of finding and fixing them one
  19715. by one.]]>
  19716. </doc>
  19717. </class>
  19718. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  19719. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  19720. <class name="InvalidJobConfException" extends="java.io.IOException"
  19721. abstract="false"
  19722. static="false" final="false" visibility="public"
  19723. deprecated="not deprecated">
  19724. <constructor name="InvalidJobConfException"
  19725. static="false" final="false" visibility="public"
  19726. deprecated="not deprecated">
  19727. </constructor>
  19728. <constructor name="InvalidJobConfException" type="java.lang.String"
  19729. static="false" final="false" visibility="public"
  19730. deprecated="not deprecated">
  19731. </constructor>
  19732. <doc>
  19733. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  19734. or value of some attributes is invalid.]]>
  19735. </doc>
  19736. </class>
  19737. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  19738. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  19739. <class name="IsolationRunner" extends="java.lang.Object"
  19740. abstract="false"
  19741. static="false" final="false" visibility="public"
  19742. deprecated="not deprecated">
  19743. <constructor name="IsolationRunner"
  19744. static="false" final="false" visibility="public"
  19745. deprecated="not deprecated">
  19746. </constructor>
  19747. <method name="main"
  19748. abstract="false" native="false" synchronized="false"
  19749. static="true" final="false" visibility="public"
  19750. deprecated="not deprecated">
  19751. <param name="args" type="java.lang.String[]"/>
  19752. <exception name="IOException" type="java.io.IOException"/>
  19753. <doc>
  19754. <![CDATA[Run a single task
  19755. @param args the first argument is the task directory]]>
  19756. </doc>
  19757. </method>
  19758. </class>
  19759. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  19760. <!-- start class org.apache.hadoop.mapred.JobClient -->
  19761. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  19762. abstract="false"
  19763. static="false" final="false" visibility="public"
  19764. deprecated="not deprecated">
  19765. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  19766. <implements name="org.apache.hadoop.util.Tool"/>
  19767. <constructor name="JobClient"
  19768. static="false" final="false" visibility="public"
  19769. deprecated="not deprecated">
  19770. <doc>
  19771. <![CDATA[Create a job client.]]>
  19772. </doc>
  19773. </constructor>
  19774. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  19775. static="false" final="false" visibility="public"
  19776. deprecated="not deprecated">
  19777. <exception name="IOException" type="java.io.IOException"/>
  19778. <doc>
  19779. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  19780. default {@link JobTracker}.
  19781. @param conf the job configuration.
  19782. @throws IOException]]>
  19783. </doc>
  19784. </constructor>
  19785. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  19786. static="false" final="false" visibility="public"
  19787. deprecated="not deprecated">
  19788. <exception name="IOException" type="java.io.IOException"/>
  19789. <doc>
  19790. <![CDATA[Build a job client, connect to the indicated job tracker.
  19791. @param jobTrackAddr the job tracker to connect to.
  19792. @param conf configuration.]]>
  19793. </doc>
  19794. </constructor>
  19795. <method name="getCommandLineConfig" return="org.apache.hadoop.conf.Configuration"
  19796. abstract="false" native="false" synchronized="true"
  19797. static="true" final="false" visibility="public"
  19798. deprecated="not deprecated">
  19799. <doc>
  19800. <![CDATA[return the command line configuration]]>
  19801. </doc>
  19802. </method>
  19803. <method name="init"
  19804. abstract="false" native="false" synchronized="false"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  19808. <exception name="IOException" type="java.io.IOException"/>
  19809. <doc>
  19810. <![CDATA[Connect to the default {@link JobTracker}.
  19811. @param conf the job configuration.
  19812. @throws IOException]]>
  19813. </doc>
  19814. </method>
  19815. <method name="close"
  19816. abstract="false" native="false" synchronized="true"
  19817. static="false" final="false" visibility="public"
  19818. deprecated="not deprecated">
  19819. <exception name="IOException" type="java.io.IOException"/>
  19820. <doc>
  19821. <![CDATA[Close the <code>JobClient</code>.]]>
  19822. </doc>
  19823. </method>
  19824. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  19825. abstract="false" native="false" synchronized="true"
  19826. static="false" final="false" visibility="public"
  19827. deprecated="not deprecated">
  19828. <exception name="IOException" type="java.io.IOException"/>
  19829. <doc>
  19830. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  19831. for submission to the MapReduce system.
  19832. @return the filesystem handle.]]>
  19833. </doc>
  19834. </method>
  19835. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  19836. abstract="false" native="false" synchronized="false"
  19837. static="false" final="false" visibility="public"
  19838. deprecated="not deprecated">
  19839. <param name="jobFile" type="java.lang.String"/>
  19840. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  19841. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  19842. <exception name="IOException" type="java.io.IOException"/>
  19843. <doc>
  19844. <![CDATA[Submit a job to the MR system.
  19845. This returns a handle to the {@link RunningJob} which can be used to track
  19846. the running-job.
  19847. @param jobFile the job configuration.
  19848. @return a handle to the {@link RunningJob} which can be used to track the
  19849. running-job.
  19850. @throws FileNotFoundException
  19851. @throws InvalidJobConfException
  19852. @throws IOException]]>
  19853. </doc>
  19854. </method>
  19855. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  19856. abstract="false" native="false" synchronized="false"
  19857. static="false" final="false" visibility="public"
  19858. deprecated="not deprecated">
  19859. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  19860. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  19861. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  19862. <exception name="IOException" type="java.io.IOException"/>
  19863. <doc>
  19864. <![CDATA[Submit a job to the MR system.
  19865. This returns a handle to the {@link RunningJob} which can be used to track
  19866. the running-job.
  19867. @param job the job configuration.
  19868. @return a handle to the {@link RunningJob} which can be used to track the
  19869. running-job.
  19870. @throws FileNotFoundException
  19871. @throws InvalidJobConfException
  19872. @throws IOException]]>
  19873. </doc>
  19874. </method>
  19875. <method name="isJobDirValid" return="boolean"
  19876. abstract="false" native="false" synchronized="false"
  19877. static="true" final="false" visibility="public"
  19878. deprecated="not deprecated">
  19879. <param name="jobDirPath" type="org.apache.hadoop.fs.Path"/>
  19880. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  19881. <exception name="IOException" type="java.io.IOException"/>
  19882. <doc>
  19883. <![CDATA[Checks if the job directory is clean and has all the required components
  19884. for (re) starting the job]]>
  19885. </doc>
  19886. </method>
  19887. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  19888. abstract="false" native="false" synchronized="false"
  19889. static="false" final="false" visibility="public"
  19890. deprecated="not deprecated">
  19891. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  19892. <exception name="IOException" type="java.io.IOException"/>
  19893. <doc>
  19894. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  19895. null if the id does not correspond to any known job.
  19896. @param jobid the jobid of the job.
  19897. @return the {@link RunningJob} handle to track the job, null if the
  19898. <code>jobid</code> doesn't correspond to any known job.
  19899. @throws IOException]]>
  19900. </doc>
  19901. </method>
  19902. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  19903. abstract="false" native="false" synchronized="false"
  19904. static="false" final="false" visibility="public"
  19905. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  19906. <param name="jobid" type="java.lang.String"/>
  19907. <exception name="IOException" type="java.io.IOException"/>
  19908. <doc>
  19909. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  19910. </doc>
  19911. </method>
  19912. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19913. abstract="false" native="false" synchronized="false"
  19914. static="false" final="false" visibility="public"
  19915. deprecated="not deprecated">
  19916. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19917. <exception name="IOException" type="java.io.IOException"/>
  19918. <doc>
  19919. <![CDATA[Get the information of the current state of the map tasks of a job.
  19920. @param jobId the job to query.
  19921. @return the list of all of the map tips.
  19922. @throws IOException]]>
  19923. </doc>
  19924. </method>
  19925. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19926. abstract="false" native="false" synchronized="false"
  19927. static="false" final="false" visibility="public"
  19928. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  19929. <param name="jobId" type="java.lang.String"/>
  19930. <exception name="IOException" type="java.io.IOException"/>
  19931. <doc>
  19932. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  19933. </doc>
  19934. </method>
  19935. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19936. abstract="false" native="false" synchronized="false"
  19937. static="false" final="false" visibility="public"
  19938. deprecated="not deprecated">
  19939. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19940. <exception name="IOException" type="java.io.IOException"/>
  19941. <doc>
  19942. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  19943. @param jobId the job to query.
  19944. @return the list of all of the reduce tips.
  19945. @throws IOException]]>
  19946. </doc>
  19947. </method>
  19948. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19949. abstract="false" native="false" synchronized="false"
  19950. static="false" final="false" visibility="public"
  19951. deprecated="not deprecated">
  19952. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19953. <exception name="IOException" type="java.io.IOException"/>
  19954. <doc>
  19955. <![CDATA[Get the information of the current state of the cleanup tasks of a job.
  19956. @param jobId the job to query.
  19957. @return the list of all of the cleanup tips.
  19958. @throws IOException]]>
  19959. </doc>
  19960. </method>
  19961. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19962. abstract="false" native="false" synchronized="false"
  19963. static="false" final="false" visibility="public"
  19964. deprecated="not deprecated">
  19965. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  19966. <exception name="IOException" type="java.io.IOException"/>
  19967. <doc>
  19968. <![CDATA[Get the information of the current state of the setup tasks of a job.
  19969. @param jobId the job to query.
  19970. @return the list of all of the setup tips.
  19971. @throws IOException]]>
  19972. </doc>
  19973. </method>
  19974. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  19975. abstract="false" native="false" synchronized="false"
  19976. static="false" final="false" visibility="public"
  19977. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  19978. <param name="jobId" type="java.lang.String"/>
  19979. <exception name="IOException" type="java.io.IOException"/>
  19980. <doc>
  19981. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  19982. </doc>
  19983. </method>
  19984. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  19985. abstract="false" native="false" synchronized="false"
  19986. static="false" final="false" visibility="public"
  19987. deprecated="not deprecated">
  19988. <exception name="IOException" type="java.io.IOException"/>
  19989. <doc>
  19990. <![CDATA[Get status information about the Map-Reduce cluster.
  19991. @return the status information about the Map-Reduce cluster as an object
  19992. of {@link ClusterStatus}.
  19993. @throws IOException]]>
  19994. </doc>
  19995. </method>
  19996. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  19997. abstract="false" native="false" synchronized="false"
  19998. static="false" final="false" visibility="public"
  19999. deprecated="not deprecated">
  20000. <exception name="IOException" type="java.io.IOException"/>
  20001. <doc>
  20002. <![CDATA[Get the jobs that are not completed and not failed.
  20003. @return array of {@link JobStatus} for the running/to-be-run jobs.
  20004. @throws IOException]]>
  20005. </doc>
  20006. </method>
  20007. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  20008. abstract="false" native="false" synchronized="false"
  20009. static="false" final="false" visibility="public"
  20010. deprecated="not deprecated">
  20011. <exception name="IOException" type="java.io.IOException"/>
  20012. <doc>
  20013. <![CDATA[Get the jobs that are submitted.
  20014. @return array of {@link JobStatus} for the submitted jobs.
  20015. @throws IOException]]>
  20016. </doc>
  20017. </method>
  20018. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  20019. abstract="false" native="false" synchronized="false"
  20020. static="true" final="false" visibility="public"
  20021. deprecated="not deprecated">
  20022. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  20023. <exception name="IOException" type="java.io.IOException"/>
  20024. <doc>
  20025. <![CDATA[Utility that submits a job, then polls for progress until the job is
  20026. complete.
  20027. @param job the job configuration.
  20028. @throws IOException]]>
  20029. </doc>
  20030. </method>
  20031. <method name="setTaskOutputFilter"
  20032. abstract="false" native="false" synchronized="false"
  20033. static="false" final="false" visibility="public"
  20034. deprecated="not deprecated">
  20035. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  20036. <doc>
  20037. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  20038. output matches the filter.
  20039. @param newValue task filter.]]>
  20040. </doc>
  20041. </method>
  20042. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  20043. abstract="false" native="false" synchronized="false"
  20044. static="true" final="false" visibility="public"
  20045. deprecated="not deprecated">
  20046. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  20047. <doc>
  20048. <![CDATA[Get the task output filter out of the JobConf.
  20049. @param job the JobConf to examine.
  20050. @return the filter level.]]>
  20051. </doc>
  20052. </method>
  20053. <method name="setTaskOutputFilter"
  20054. abstract="false" native="false" synchronized="false"
  20055. static="true" final="false" visibility="public"
  20056. deprecated="not deprecated">
  20057. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  20058. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  20059. <doc>
  20060. <![CDATA[Modify the JobConf to set the task output filter.
  20061. @param job the JobConf to modify.
  20062. @param newValue the value to set.]]>
  20063. </doc>
  20064. </method>
  20065. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  20066. abstract="false" native="false" synchronized="false"
  20067. static="false" final="false" visibility="public"
  20068. deprecated="not deprecated">
  20069. <doc>
  20070. <![CDATA[Returns task output filter.
  20071. @return task filter.]]>
  20072. </doc>
  20073. </method>
  20074. <method name="run" return="int"
  20075. abstract="false" native="false" synchronized="false"
  20076. static="false" final="false" visibility="public"
  20077. deprecated="not deprecated">
  20078. <param name="argv" type="java.lang.String[]"/>
  20079. <exception name="Exception" type="java.lang.Exception"/>
  20080. </method>
  20081. <method name="getDefaultMaps" return="int"
  20082. abstract="false" native="false" synchronized="false"
  20083. static="false" final="false" visibility="public"
  20084. deprecated="not deprecated">
  20085. <exception name="IOException" type="java.io.IOException"/>
  20086. <doc>
  20087. <![CDATA[Get status information about the max available Maps in the cluster.
  20088. @return the max available Maps in the cluster
  20089. @throws IOException]]>
  20090. </doc>
  20091. </method>
  20092. <method name="getDefaultReduces" return="int"
  20093. abstract="false" native="false" synchronized="false"
  20094. static="false" final="false" visibility="public"
  20095. deprecated="not deprecated">
  20096. <exception name="IOException" type="java.io.IOException"/>
  20097. <doc>
  20098. <![CDATA[Get status information about the max available Reduces in the cluster.
  20099. @return the max available Reduces in the cluster
  20100. @throws IOException]]>
  20101. </doc>
  20102. </method>
  20103. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  20104. abstract="false" native="false" synchronized="false"
  20105. static="false" final="false" visibility="public"
  20106. deprecated="not deprecated">
  20107. <doc>
  20108. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  20109. @return the system directory where job-specific files are to be placed.]]>
  20110. </doc>
  20111. </method>
  20112. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  20113. abstract="false" native="false" synchronized="false"
  20114. static="false" final="false" visibility="public"
  20115. deprecated="not deprecated">
  20116. <exception name="IOException" type="java.io.IOException"/>
  20117. <doc>
  20118. <![CDATA[Return an array of queue information objects about all the Job Queues
  20119. configured.
  20120. @return Array of JobQueueInfo objects
  20121. @throws IOException]]>
  20122. </doc>
  20123. </method>
  20124. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  20125. abstract="false" native="false" synchronized="false"
  20126. static="false" final="false" visibility="public"
  20127. deprecated="not deprecated">
  20128. <param name="queueName" type="java.lang.String"/>
  20129. <exception name="IOException" type="java.io.IOException"/>
  20130. <doc>
  20131. <![CDATA[Gets all the jobs which were added to particular Job Queue
  20132. @param queueName name of the Job Queue
  20133. @return Array of jobs present in the job queue
  20134. @throws IOException]]>
  20135. </doc>
  20136. </method>
  20137. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  20138. abstract="false" native="false" synchronized="false"
  20139. static="false" final="false" visibility="public"
  20140. deprecated="not deprecated">
  20141. <param name="queueName" type="java.lang.String"/>
  20142. <exception name="IOException" type="java.io.IOException"/>
  20143. <doc>
  20144. <![CDATA[Gets the queue information associated to a particular Job Queue
  20145. @param queueName name of the job queue.
  20146. @return Queue information associated to particular queue.
  20147. @throws IOException]]>
  20148. </doc>
  20149. </method>
  20150. <method name="main"
  20151. abstract="false" native="false" synchronized="false"
  20152. static="true" final="false" visibility="public"
  20153. deprecated="not deprecated">
  20154. <param name="argv" type="java.lang.String[]"/>
  20155. <exception name="Exception" type="java.lang.Exception"/>
  20156. </method>
  20157. <doc>
  20158. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  20159. with the {@link JobTracker}.
  20160. <code>JobClient</code> provides facilities to submit jobs, track their
  20161. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  20162. status information etc.
  20163. <p>The job submission process involves:
  20164. <ol>
  20165. <li>
  20166. Checking the input and output specifications of the job.
  20167. </li>
  20168. <li>
  20169. Computing the {@link InputSplit}s for the job.
  20170. </li>
  20171. <li>
  20172. Setup the requisite accounting information for the {@link DistributedCache}
  20173. of the job, if necessary.
  20174. </li>
  20175. <li>
  20176. Copying the job's jar and configuration to the map-reduce system directory
  20177. on the distributed file-system.
  20178. </li>
  20179. <li>
  20180. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  20181. it's status.
  20182. </li>
  20183. </ol></p>
  20184. Normally the user creates the application, describes various facets of the
  20185. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  20186. the job and monitor its progress.
  20187. <p>Here is an example on how to use <code>JobClient</code>:</p>
  20188. <p><blockquote><pre>
  20189. // Create a new JobConf
  20190. JobConf job = new JobConf(new Configuration(), MyJob.class);
  20191. // Specify various job-specific parameters
  20192. job.setJobName("myjob");
  20193. job.setInputPath(new Path("in"));
  20194. job.setOutputPath(new Path("out"));
  20195. job.setMapperClass(MyJob.MyMapper.class);
  20196. job.setReducerClass(MyJob.MyReducer.class);
  20197. // Submit the job, then poll for progress until the job is complete
  20198. JobClient.runJob(job);
  20199. </pre></blockquote></p>
  20200. <h4 id="JobControl">Job Control</h4>
  20201. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  20202. which cannot be done via a single map-reduce job. This is fairly easy since
  20203. the output of the job, typically, goes to distributed file-system and that
  20204. can be used as the input for the next job.</p>
  20205. <p>However, this also means that the onus on ensuring jobs are complete
  20206. (success/failure) lies squarely on the clients. In such situations the
  20207. various job-control options are:
  20208. <ol>
  20209. <li>
  20210. {@link #runJob(JobConf)} : submits the job and returns only after
  20211. the job has completed.
  20212. </li>
  20213. <li>
  20214. {@link #submitJob(JobConf)} : only submits the job, then poll the
  20215. returned handle to the {@link RunningJob} to query status and make
  20216. scheduling decisions.
  20217. </li>
  20218. <li>
  20219. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  20220. on job-completion, thus avoiding polling.
  20221. </li>
  20222. </ol></p>
  20223. @see JobConf
  20224. @see ClusterStatus
  20225. @see Tool
  20226. @see DistributedCache]]>
  20227. </doc>
  20228. </class>
  20229. <!-- end class org.apache.hadoop.mapred.JobClient -->
  20230. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  20231. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobClient.TaskStatusFilter&gt;"
  20232. abstract="false"
  20233. static="true" final="true" visibility="public"
  20234. deprecated="not deprecated">
  20235. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  20236. abstract="false" native="false" synchronized="false"
  20237. static="true" final="false" visibility="public"
  20238. deprecated="not deprecated">
  20239. </method>
  20240. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  20241. abstract="false" native="false" synchronized="false"
  20242. static="true" final="false" visibility="public"
  20243. deprecated="not deprecated">
  20244. <param name="name" type="java.lang.String"/>
  20245. </method>
  20246. </class>
  20247. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  20248. <!-- start class org.apache.hadoop.mapred.JobConf -->
  20249. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  20250. abstract="false"
  20251. static="false" final="false" visibility="public"
  20252. deprecated="not deprecated">
  20253. <constructor name="JobConf"
  20254. static="false" final="false" visibility="public"
  20255. deprecated="not deprecated">
  20256. <doc>
  20257. <![CDATA[Construct a map/reduce job configuration.]]>
  20258. </doc>
  20259. </constructor>
  20260. <constructor name="JobConf" type="java.lang.Class"
  20261. static="false" final="false" visibility="public"
  20262. deprecated="not deprecated">
  20263. <doc>
  20264. <![CDATA[Construct a map/reduce job configuration.
  20265. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  20266. </doc>
  20267. </constructor>
  20268. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  20269. static="false" final="false" visibility="public"
  20270. deprecated="not deprecated">
  20271. <doc>
  20272. <![CDATA[Construct a map/reduce job configuration.
  20273. @param conf a Configuration whose settings will be inherited.]]>
  20274. </doc>
  20275. </constructor>
  20276. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  20277. static="false" final="false" visibility="public"
  20278. deprecated="not deprecated">
  20279. <doc>
  20280. <![CDATA[Construct a map/reduce job configuration.
  20281. @param conf a Configuration whose settings will be inherited.
  20282. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  20283. </doc>
  20284. </constructor>
  20285. <constructor name="JobConf" type="java.lang.String"
  20286. static="false" final="false" visibility="public"
  20287. deprecated="not deprecated">
  20288. <doc>
  20289. <![CDATA[Construct a map/reduce configuration.
  20290. @param config a Configuration-format XML job description file.]]>
  20291. </doc>
  20292. </constructor>
  20293. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  20294. static="false" final="false" visibility="public"
  20295. deprecated="not deprecated">
  20296. <doc>
  20297. <![CDATA[Construct a map/reduce configuration.
  20298. @param config a Configuration-format XML job description file.]]>
  20299. </doc>
  20300. </constructor>
  20301. <constructor name="JobConf" type="boolean"
  20302. static="false" final="false" visibility="public"
  20303. deprecated="not deprecated">
  20304. <doc>
  20305. <![CDATA[A new map/reduce configuration where the behavior of reading from the
  20306. default resources can be turned off.
  20307. <p/>
  20308. If the parameter {@code loadDefaults} is false, the new instance
  20309. will not load resources from the default files.
  20310. @param loadDefaults specifies whether to load from the default files]]>
  20311. </doc>
  20312. </constructor>
  20313. <method name="getJar" return="java.lang.String"
  20314. abstract="false" native="false" synchronized="false"
  20315. static="false" final="false" visibility="public"
  20316. deprecated="not deprecated">
  20317. <doc>
  20318. <![CDATA[Get the user jar for the map-reduce job.
  20319. @return the user jar for the map-reduce job.]]>
  20320. </doc>
  20321. </method>
  20322. <method name="setJar"
  20323. abstract="false" native="false" synchronized="false"
  20324. static="false" final="false" visibility="public"
  20325. deprecated="not deprecated">
  20326. <param name="jar" type="java.lang.String"/>
  20327. <doc>
  20328. <![CDATA[Set the user jar for the map-reduce job.
  20329. @param jar the user jar for the map-reduce job.]]>
  20330. </doc>
  20331. </method>
  20332. <method name="setJarByClass"
  20333. abstract="false" native="false" synchronized="false"
  20334. static="false" final="false" visibility="public"
  20335. deprecated="not deprecated">
  20336. <param name="cls" type="java.lang.Class"/>
  20337. <doc>
  20338. <![CDATA[Set the job's jar file by finding an example class location.
  20339. @param cls the example class.]]>
  20340. </doc>
  20341. </method>
  20342. <method name="getLocalDirs" return="java.lang.String[]"
  20343. abstract="false" native="false" synchronized="false"
  20344. static="false" final="false" visibility="public"
  20345. deprecated="not deprecated">
  20346. <exception name="IOException" type="java.io.IOException"/>
  20347. </method>
  20348. <method name="deleteLocalFiles"
  20349. abstract="false" native="false" synchronized="false"
  20350. static="false" final="false" visibility="public"
  20351. deprecated="not deprecated">
  20352. <exception name="IOException" type="java.io.IOException"/>
  20353. </method>
  20354. <method name="deleteLocalFiles"
  20355. abstract="false" native="false" synchronized="false"
  20356. static="false" final="false" visibility="public"
  20357. deprecated="not deprecated">
  20358. <param name="subdir" type="java.lang.String"/>
  20359. <exception name="IOException" type="java.io.IOException"/>
  20360. </method>
  20361. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  20362. abstract="false" native="false" synchronized="false"
  20363. static="false" final="false" visibility="public"
  20364. deprecated="not deprecated">
  20365. <param name="pathString" type="java.lang.String"/>
  20366. <exception name="IOException" type="java.io.IOException"/>
  20367. <doc>
  20368. <![CDATA[Constructs a local file name. Files are distributed among configured
  20369. local directories.]]>
  20370. </doc>
  20371. </method>
  20372. <method name="getUser" return="java.lang.String"
  20373. abstract="false" native="false" synchronized="false"
  20374. static="false" final="false" visibility="public"
  20375. deprecated="not deprecated">
  20376. <doc>
  20377. <![CDATA[Get the reported username for this job.
  20378. @return the username]]>
  20379. </doc>
  20380. </method>
  20381. <method name="setUser"
  20382. abstract="false" native="false" synchronized="false"
  20383. static="false" final="false" visibility="public"
  20384. deprecated="not deprecated">
  20385. <param name="user" type="java.lang.String"/>
  20386. <doc>
  20387. <![CDATA[Set the reported username for this job.
  20388. @param user the username for this job.]]>
  20389. </doc>
  20390. </method>
  20391. <method name="setKeepFailedTaskFiles"
  20392. abstract="false" native="false" synchronized="false"
  20393. static="false" final="false" visibility="public"
  20394. deprecated="not deprecated">
  20395. <param name="keep" type="boolean"/>
  20396. <doc>
  20397. <![CDATA[Set whether the framework should keep the intermediate files for
  20398. failed tasks.
  20399. @param keep <code>true</code> if framework should keep the intermediate files
  20400. for failed tasks, <code>false</code> otherwise.]]>
  20401. </doc>
  20402. </method>
  20403. <method name="getKeepFailedTaskFiles" return="boolean"
  20404. abstract="false" native="false" synchronized="false"
  20405. static="false" final="false" visibility="public"
  20406. deprecated="not deprecated">
  20407. <doc>
  20408. <![CDATA[Should the temporary files for failed tasks be kept?
  20409. @return should the files be kept?]]>
  20410. </doc>
  20411. </method>
  20412. <method name="setKeepTaskFilesPattern"
  20413. abstract="false" native="false" synchronized="false"
  20414. static="false" final="false" visibility="public"
  20415. deprecated="not deprecated">
  20416. <param name="pattern" type="java.lang.String"/>
  20417. <doc>
  20418. <![CDATA[Set a regular expression for task names that should be kept.
  20419. The regular expression ".*_m_000123_0" would keep the files
  20420. for the first instance of map 123 that ran.
  20421. @param pattern the java.util.regex.Pattern to match against the
  20422. task names.]]>
  20423. </doc>
  20424. </method>
  20425. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  20426. abstract="false" native="false" synchronized="false"
  20427. static="false" final="false" visibility="public"
  20428. deprecated="not deprecated">
  20429. <doc>
  20430. <![CDATA[Get the regular expression that is matched against the task names
  20431. to see if we need to keep the files.
  20432. @return the pattern as a string, if it was set, othewise null.]]>
  20433. </doc>
  20434. </method>
  20435. <method name="setWorkingDirectory"
  20436. abstract="false" native="false" synchronized="false"
  20437. static="false" final="false" visibility="public"
  20438. deprecated="not deprecated">
  20439. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  20440. <doc>
  20441. <![CDATA[Set the current working directory for the default file system.
  20442. @param dir the new current working directory.]]>
  20443. </doc>
  20444. </method>
  20445. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  20446. abstract="false" native="false" synchronized="false"
  20447. static="false" final="false" visibility="public"
  20448. deprecated="not deprecated">
  20449. <doc>
  20450. <![CDATA[Get the current working directory for the default file system.
  20451. @return the directory name.]]>
  20452. </doc>
  20453. </method>
  20454. <method name="setNumTasksToExecutePerJvm"
  20455. abstract="false" native="false" synchronized="false"
  20456. static="false" final="false" visibility="public"
  20457. deprecated="not deprecated">
  20458. <param name="numTasks" type="int"/>
  20459. <doc>
  20460. <![CDATA[Sets the number of tasks that a spawned task JVM should run
  20461. before it exits
  20462. @param numTasks the number of tasks to execute; defaults to 1;
  20463. -1 signifies no limit]]>
  20464. </doc>
  20465. </method>
  20466. <method name="getNumTasksToExecutePerJvm" return="int"
  20467. abstract="false" native="false" synchronized="false"
  20468. static="false" final="false" visibility="public"
  20469. deprecated="not deprecated">
  20470. <doc>
  20471. <![CDATA[Get the number of tasks that a spawned JVM should execute]]>
  20472. </doc>
  20473. </method>
  20474. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  20475. abstract="false" native="false" synchronized="false"
  20476. static="false" final="false" visibility="public"
  20477. deprecated="not deprecated">
  20478. <doc>
  20479. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  20480. defaults to {@link TextInputFormat} if not specified explicity.
  20481. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  20482. </doc>
  20483. </method>
  20484. <method name="setInputFormat"
  20485. abstract="false" native="false" synchronized="false"
  20486. static="false" final="false" visibility="public"
  20487. deprecated="not deprecated">
  20488. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  20489. <doc>
  20490. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  20491. @param theClass the {@link InputFormat} implementation for the map-reduce
  20492. job.]]>
  20493. </doc>
  20494. </method>
  20495. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  20496. abstract="false" native="false" synchronized="false"
  20497. static="false" final="false" visibility="public"
  20498. deprecated="not deprecated">
  20499. <doc>
  20500. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  20501. defaults to {@link TextOutputFormat} if not specified explicity.
  20502. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  20503. </doc>
  20504. </method>
  20505. <method name="getOutputCommitter" return="org.apache.hadoop.mapred.OutputCommitter"
  20506. abstract="false" native="false" synchronized="false"
  20507. static="false" final="false" visibility="public"
  20508. deprecated="not deprecated">
  20509. <doc>
  20510. <![CDATA[Get the {@link OutputCommitter} implementation for the map-reduce job,
  20511. defaults to {@link FileOutputCommitter} if not specified explicitly.
  20512. @return the {@link OutputCommitter} implementation for the map-reduce job.]]>
  20513. </doc>
  20514. </method>
  20515. <method name="setOutputCommitter"
  20516. abstract="false" native="false" synchronized="false"
  20517. static="false" final="false" visibility="public"
  20518. deprecated="not deprecated">
  20519. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputCommitter&gt;"/>
  20520. <doc>
  20521. <![CDATA[Set the {@link OutputCommitter} implementation for the map-reduce job.
  20522. @param theClass the {@link OutputCommitter} implementation for the map-reduce
  20523. job.]]>
  20524. </doc>
  20525. </method>
  20526. <method name="setOutputFormat"
  20527. abstract="false" native="false" synchronized="false"
  20528. static="false" final="false" visibility="public"
  20529. deprecated="not deprecated">
  20530. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  20531. <doc>
  20532. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  20533. @param theClass the {@link OutputFormat} implementation for the map-reduce
  20534. job.]]>
  20535. </doc>
  20536. </method>
  20537. <method name="setCompressMapOutput"
  20538. abstract="false" native="false" synchronized="false"
  20539. static="false" final="false" visibility="public"
  20540. deprecated="not deprecated">
  20541. <param name="compress" type="boolean"/>
  20542. <doc>
  20543. <![CDATA[Should the map outputs be compressed before transfer?
  20544. Uses the SequenceFile compression.
  20545. @param compress should the map outputs be compressed?]]>
  20546. </doc>
  20547. </method>
  20548. <method name="getCompressMapOutput" return="boolean"
  20549. abstract="false" native="false" synchronized="false"
  20550. static="false" final="false" visibility="public"
  20551. deprecated="not deprecated">
  20552. <doc>
  20553. <![CDATA[Are the outputs of the maps be compressed?
  20554. @return <code>true</code> if the outputs of the maps are to be compressed,
  20555. <code>false</code> otherwise.]]>
  20556. </doc>
  20557. </method>
  20558. <method name="setMapOutputCompressorClass"
  20559. abstract="false" native="false" synchronized="false"
  20560. static="false" final="false" visibility="public"
  20561. deprecated="not deprecated">
  20562. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  20563. <doc>
  20564. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  20565. @param codecClass the {@link CompressionCodec} class that will compress
  20566. the map outputs.]]>
  20567. </doc>
  20568. </method>
  20569. <method name="getMapOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  20570. abstract="false" native="false" synchronized="false"
  20571. static="false" final="false" visibility="public"
  20572. deprecated="not deprecated">
  20573. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  20574. <doc>
  20575. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  20576. @param defaultValue the {@link CompressionCodec} to return if not set
  20577. @return the {@link CompressionCodec} class that should be used to compress the
  20578. map outputs.
  20579. @throws IllegalArgumentException if the class was specified, but not found]]>
  20580. </doc>
  20581. </method>
  20582. <method name="getMapOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  20583. abstract="false" native="false" synchronized="false"
  20584. static="false" final="false" visibility="public"
  20585. deprecated="not deprecated">
  20586. <doc>
  20587. <![CDATA[Get the key class for the map output data. If it is not set, use the
  20588. (final) output key class. This allows the map output key class to be
  20589. different than the final output key class.
  20590. @return the map output key class.]]>
  20591. </doc>
  20592. </method>
  20593. <method name="setMapOutputKeyClass"
  20594. abstract="false" native="false" synchronized="false"
  20595. static="false" final="false" visibility="public"
  20596. deprecated="not deprecated">
  20597. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  20598. <doc>
  20599. <![CDATA[Set the key class for the map output data. This allows the user to
  20600. specify the map output key class to be different than the final output
  20601. value class.
  20602. @param theClass the map output key class.]]>
  20603. </doc>
  20604. </method>
  20605. <method name="getMapOutputValueClass" return="java.lang.Class&lt;?&gt;"
  20606. abstract="false" native="false" synchronized="false"
  20607. static="false" final="false" visibility="public"
  20608. deprecated="not deprecated">
  20609. <doc>
  20610. <![CDATA[Get the value class for the map output data. If it is not set, use the
  20611. (final) output value class This allows the map output value class to be
  20612. different than the final output value class.
  20613. @return the map output value class.]]>
  20614. </doc>
  20615. </method>
  20616. <method name="setMapOutputValueClass"
  20617. abstract="false" native="false" synchronized="false"
  20618. static="false" final="false" visibility="public"
  20619. deprecated="not deprecated">
  20620. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  20621. <doc>
  20622. <![CDATA[Set the value class for the map output data. This allows the user to
  20623. specify the map output value class to be different than the final output
  20624. value class.
  20625. @param theClass the map output value class.]]>
  20626. </doc>
  20627. </method>
  20628. <method name="getOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  20629. abstract="false" native="false" synchronized="false"
  20630. static="false" final="false" visibility="public"
  20631. deprecated="not deprecated">
  20632. <doc>
  20633. <![CDATA[Get the key class for the job output data.
  20634. @return the key class for the job output data.]]>
  20635. </doc>
  20636. </method>
  20637. <method name="setOutputKeyClass"
  20638. abstract="false" native="false" synchronized="false"
  20639. static="false" final="false" visibility="public"
  20640. deprecated="not deprecated">
  20641. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  20642. <doc>
  20643. <![CDATA[Set the key class for the job output data.
  20644. @param theClass the key class for the job output data.]]>
  20645. </doc>
  20646. </method>
  20647. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  20648. abstract="false" native="false" synchronized="false"
  20649. static="false" final="false" visibility="public"
  20650. deprecated="not deprecated">
  20651. <doc>
  20652. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  20653. @return the {@link RawComparator} comparator used to compare keys.]]>
  20654. </doc>
  20655. </method>
  20656. <method name="setOutputKeyComparatorClass"
  20657. abstract="false" native="false" synchronized="false"
  20658. static="false" final="false" visibility="public"
  20659. deprecated="not deprecated">
  20660. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  20661. <doc>
  20662. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  20663. @param theClass the {@link RawComparator} comparator used to
  20664. compare keys.
  20665. @see #setOutputValueGroupingComparator(Class)]]>
  20666. </doc>
  20667. </method>
  20668. <method name="setKeyFieldComparatorOptions"
  20669. abstract="false" native="false" synchronized="false"
  20670. static="false" final="false" visibility="public"
  20671. deprecated="not deprecated">
  20672. <param name="keySpec" type="java.lang.String"/>
  20673. <doc>
  20674. <![CDATA[Set the {@link KeyFieldBasedComparator} options used to compare keys.
  20675. @param keySpec the key specification of the form -k pos1[,pos2], where,
  20676. pos is of the form f[.c][opts], where f is the number
  20677. of the key field to use, and c is the number of the first character from
  20678. the beginning of the field. Fields and character posns are numbered
  20679. starting with 1; a character position of zero in pos2 indicates the
  20680. field's last character. If '.c' is omitted from pos1, it defaults to 1
  20681. (the beginning of the field); if omitted from pos2, it defaults to 0
  20682. (the end of the field). opts are ordering options. The supported options
  20683. are:
  20684. -n, (Sort numerically)
  20685. -r, (Reverse the result of comparison)]]>
  20686. </doc>
  20687. </method>
  20688. <method name="getKeyFieldComparatorOption" return="java.lang.String"
  20689. abstract="false" native="false" synchronized="false"
  20690. static="false" final="false" visibility="public"
  20691. deprecated="not deprecated">
  20692. <doc>
  20693. <![CDATA[Get the {@link KeyFieldBasedComparator} options]]>
  20694. </doc>
  20695. </method>
  20696. <method name="setKeyFieldPartitionerOptions"
  20697. abstract="false" native="false" synchronized="false"
  20698. static="false" final="false" visibility="public"
  20699. deprecated="not deprecated">
  20700. <param name="keySpec" type="java.lang.String"/>
  20701. <doc>
  20702. <![CDATA[Set the {@link KeyFieldBasedPartitioner} options used for
  20703. {@link Partitioner}
  20704. @param keySpec the key specification of the form -k pos1[,pos2], where,
  20705. pos is of the form f[.c][opts], where f is the number
  20706. of the key field to use, and c is the number of the first character from
  20707. the beginning of the field. Fields and character posns are numbered
  20708. starting with 1; a character position of zero in pos2 indicates the
  20709. field's last character. If '.c' is omitted from pos1, it defaults to 1
  20710. (the beginning of the field); if omitted from pos2, it defaults to 0
  20711. (the end of the field).]]>
  20712. </doc>
  20713. </method>
  20714. <method name="getKeyFieldPartitionerOption" return="java.lang.String"
  20715. abstract="false" native="false" synchronized="false"
  20716. static="false" final="false" visibility="public"
  20717. deprecated="not deprecated">
  20718. <doc>
  20719. <![CDATA[Get the {@link KeyFieldBasedPartitioner} options]]>
  20720. </doc>
  20721. </method>
  20722. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  20723. abstract="false" native="false" synchronized="false"
  20724. static="false" final="false" visibility="public"
  20725. deprecated="not deprecated">
  20726. <doc>
  20727. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  20728. grouping keys of inputs to the reduce.
  20729. @return comparator set by the user for grouping values.
  20730. @see #setOutputValueGroupingComparator(Class) for details.]]>
  20731. </doc>
  20732. </method>
  20733. <method name="setOutputValueGroupingComparator"
  20734. abstract="false" native="false" synchronized="false"
  20735. static="false" final="false" visibility="public"
  20736. deprecated="not deprecated">
  20737. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  20738. <doc>
  20739. <![CDATA[Set the user defined {@link RawComparator} comparator for
  20740. grouping keys in the input to the reduce.
  20741. <p>This comparator should be provided if the equivalence rules for keys
  20742. for sorting the intermediates are different from those for grouping keys
  20743. before each call to
  20744. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  20745. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  20746. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  20747. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  20748. how keys are sorted, this can be used in conjunction to simulate
  20749. <i>secondary sort on values</i>.</p>
  20750. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  20751. <i>stable</i> in any sense. (In any case, with the order of available
  20752. map-outputs to the reduce being non-deterministic, it wouldn't make
  20753. that much sense.)</p>
  20754. @param theClass the comparator class to be used for grouping keys.
  20755. It should implement <code>RawComparator</code>.
  20756. @see #setOutputKeyComparatorClass(Class)]]>
  20757. </doc>
  20758. </method>
  20759. <method name="getOutputValueClass" return="java.lang.Class&lt;?&gt;"
  20760. abstract="false" native="false" synchronized="false"
  20761. static="false" final="false" visibility="public"
  20762. deprecated="not deprecated">
  20763. <doc>
  20764. <![CDATA[Get the value class for job outputs.
  20765. @return the value class for job outputs.]]>
  20766. </doc>
  20767. </method>
  20768. <method name="setOutputValueClass"
  20769. abstract="false" native="false" synchronized="false"
  20770. static="false" final="false" visibility="public"
  20771. deprecated="not deprecated">
  20772. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  20773. <doc>
  20774. <![CDATA[Set the value class for job outputs.
  20775. @param theClass the value class for job outputs.]]>
  20776. </doc>
  20777. </method>
  20778. <method name="getMapperClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"
  20779. abstract="false" native="false" synchronized="false"
  20780. static="false" final="false" visibility="public"
  20781. deprecated="not deprecated">
  20782. <doc>
  20783. <![CDATA[Get the {@link Mapper} class for the job.
  20784. @return the {@link Mapper} class for the job.]]>
  20785. </doc>
  20786. </method>
  20787. <method name="setMapperClass"
  20788. abstract="false" native="false" synchronized="false"
  20789. static="false" final="false" visibility="public"
  20790. deprecated="not deprecated">
  20791. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"/>
  20792. <doc>
  20793. <![CDATA[Set the {@link Mapper} class for the job.
  20794. @param theClass the {@link Mapper} class for the job.]]>
  20795. </doc>
  20796. </method>
  20797. <method name="getMapRunnerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"
  20798. abstract="false" native="false" synchronized="false"
  20799. static="false" final="false" visibility="public"
  20800. deprecated="not deprecated">
  20801. <doc>
  20802. <![CDATA[Get the {@link MapRunnable} class for the job.
  20803. @return the {@link MapRunnable} class for the job.]]>
  20804. </doc>
  20805. </method>
  20806. <method name="setMapRunnerClass"
  20807. abstract="false" native="false" synchronized="false"
  20808. static="false" final="false" visibility="public"
  20809. deprecated="not deprecated">
  20810. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"/>
  20811. <doc>
  20812. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  20813. Typically used to exert greater control on {@link Mapper}s.
  20814. @param theClass the {@link MapRunnable} class for the job.]]>
  20815. </doc>
  20816. </method>
  20817. <method name="getPartitionerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"
  20818. abstract="false" native="false" synchronized="false"
  20819. static="false" final="false" visibility="public"
  20820. deprecated="not deprecated">
  20821. <doc>
  20822. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  20823. to be sent to the {@link Reducer}s.
  20824. @return the {@link Partitioner} used to partition map-outputs.]]>
  20825. </doc>
  20826. </method>
  20827. <method name="setPartitionerClass"
  20828. abstract="false" native="false" synchronized="false"
  20829. static="false" final="false" visibility="public"
  20830. deprecated="not deprecated">
  20831. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"/>
  20832. <doc>
  20833. <![CDATA[Set the {@link Partitioner} class used to partition
  20834. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  20835. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  20836. </doc>
  20837. </method>
  20838. <method name="getReducerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  20839. abstract="false" native="false" synchronized="false"
  20840. static="false" final="false" visibility="public"
  20841. deprecated="not deprecated">
  20842. <doc>
  20843. <![CDATA[Get the {@link Reducer} class for the job.
  20844. @return the {@link Reducer} class for the job.]]>
  20845. </doc>
  20846. </method>
  20847. <method name="setReducerClass"
  20848. abstract="false" native="false" synchronized="false"
  20849. static="false" final="false" visibility="public"
  20850. deprecated="not deprecated">
  20851. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  20852. <doc>
  20853. <![CDATA[Set the {@link Reducer} class for the job.
  20854. @param theClass the {@link Reducer} class for the job.]]>
  20855. </doc>
  20856. </method>
  20857. <method name="getCombinerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  20858. abstract="false" native="false" synchronized="false"
  20859. static="false" final="false" visibility="public"
  20860. deprecated="not deprecated">
  20861. <doc>
  20862. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  20863. before being sent to the reducers. Typically the combiner is same as the
  20864. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  20865. @return the user-defined combiner class used to combine map-outputs.]]>
  20866. </doc>
  20867. </method>
  20868. <method name="setCombinerClass"
  20869. abstract="false" native="false" synchronized="false"
  20870. static="false" final="false" visibility="public"
  20871. deprecated="not deprecated">
  20872. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  20873. <doc>
  20874. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  20875. before being sent to the reducers.
  20876. <p>The combiner is a task-level aggregation operation which, in some cases,
  20877. helps to cut down the amount of data transferred from the {@link Mapper} to
  20878. the {@link Reducer}, leading to better performance.</p>
  20879. <p>Typically the combiner is same as the the <code>Reducer</code> for the
  20880. job i.e. {@link #setReducerClass(Class)}.</p>
  20881. @param theClass the user-defined combiner class used to combine
  20882. map-outputs.]]>
  20883. </doc>
  20884. </method>
  20885. <method name="getSpeculativeExecution" return="boolean"
  20886. abstract="false" native="false" synchronized="false"
  20887. static="false" final="false" visibility="public"
  20888. deprecated="not deprecated">
  20889. <doc>
  20890. <![CDATA[Should speculative execution be used for this job?
  20891. Defaults to <code>true</code>.
  20892. @return <code>true</code> if speculative execution be used for this job,
  20893. <code>false</code> otherwise.]]>
  20894. </doc>
  20895. </method>
  20896. <method name="setSpeculativeExecution"
  20897. abstract="false" native="false" synchronized="false"
  20898. static="false" final="false" visibility="public"
  20899. deprecated="not deprecated">
  20900. <param name="speculativeExecution" type="boolean"/>
  20901. <doc>
  20902. <![CDATA[Turn speculative execution on or off for this job.
  20903. @param speculativeExecution <code>true</code> if speculative execution
  20904. should be turned on, else <code>false</code>.]]>
  20905. </doc>
  20906. </method>
  20907. <method name="getMapSpeculativeExecution" return="boolean"
  20908. abstract="false" native="false" synchronized="false"
  20909. static="false" final="false" visibility="public"
  20910. deprecated="not deprecated">
  20911. <doc>
  20912. <![CDATA[Should speculative execution be used for this job for map tasks?
  20913. Defaults to <code>true</code>.
  20914. @return <code>true</code> if speculative execution be
  20915. used for this job for map tasks,
  20916. <code>false</code> otherwise.]]>
  20917. </doc>
  20918. </method>
  20919. <method name="setMapSpeculativeExecution"
  20920. abstract="false" native="false" synchronized="false"
  20921. static="false" final="false" visibility="public"
  20922. deprecated="not deprecated">
  20923. <param name="speculativeExecution" type="boolean"/>
  20924. <doc>
  20925. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  20926. @param speculativeExecution <code>true</code> if speculative execution
  20927. should be turned on for map tasks,
  20928. else <code>false</code>.]]>
  20929. </doc>
  20930. </method>
  20931. <method name="getReduceSpeculativeExecution" return="boolean"
  20932. abstract="false" native="false" synchronized="false"
  20933. static="false" final="false" visibility="public"
  20934. deprecated="not deprecated">
  20935. <doc>
  20936. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  20937. Defaults to <code>true</code>.
  20938. @return <code>true</code> if speculative execution be used
  20939. for reduce tasks for this job,
  20940. <code>false</code> otherwise.]]>
  20941. </doc>
  20942. </method>
  20943. <method name="setReduceSpeculativeExecution"
  20944. abstract="false" native="false" synchronized="false"
  20945. static="false" final="false" visibility="public"
  20946. deprecated="not deprecated">
  20947. <param name="speculativeExecution" type="boolean"/>
  20948. <doc>
  20949. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  20950. @param speculativeExecution <code>true</code> if speculative execution
  20951. should be turned on for reduce tasks,
  20952. else <code>false</code>.]]>
  20953. </doc>
  20954. </method>
  20955. <method name="getNumMapTasks" return="int"
  20956. abstract="false" native="false" synchronized="false"
  20957. static="false" final="false" visibility="public"
  20958. deprecated="not deprecated">
  20959. <doc>
  20960. <![CDATA[Get configured the number of reduce tasks for this job.
  20961. Defaults to <code>1</code>.
  20962. @return the number of reduce tasks for this job.]]>
  20963. </doc>
  20964. </method>
  20965. <method name="setNumMapTasks"
  20966. abstract="false" native="false" synchronized="false"
  20967. static="false" final="false" visibility="public"
  20968. deprecated="not deprecated">
  20969. <param name="n" type="int"/>
  20970. <doc>
  20971. <![CDATA[Set the number of map tasks for this job.
  20972. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  20973. number of spawned map tasks depends on the number of {@link InputSplit}s
  20974. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  20975. A custom {@link InputFormat} is typically used to accurately control
  20976. the number of map tasks for the job.</p>
  20977. <h4 id="NoOfMaps">How many maps?</h4>
  20978. <p>The number of maps is usually driven by the total size of the inputs
  20979. i.e. total number of blocks of the input files.</p>
  20980. <p>The right level of parallelism for maps seems to be around 10-100 maps
  20981. per-node, although it has been set up to 300 or so for very cpu-light map
  20982. tasks. Task setup takes awhile, so it is best if the maps take at least a
  20983. minute to execute.</p>
  20984. <p>The default behavior of file-based {@link InputFormat}s is to split the
  20985. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  20986. bytes, of input files. However, the {@link FileSystem} blocksize of the
  20987. input files is treated as an upper bound for input splits. A lower bound
  20988. on the split size can be set via
  20989. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  20990. mapred.min.split.size</a>.</p>
  20991. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  20992. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  20993. used to set it even higher.</p>
  20994. @param n the number of map tasks for this job.
  20995. @see InputFormat#getSplits(JobConf, int)
  20996. @see FileInputFormat
  20997. @see FileSystem#getDefaultBlockSize()
  20998. @see FileStatus#getBlockSize()]]>
  20999. </doc>
  21000. </method>
  21001. <method name="getNumReduceTasks" return="int"
  21002. abstract="false" native="false" synchronized="false"
  21003. static="false" final="false" visibility="public"
  21004. deprecated="not deprecated">
  21005. <doc>
  21006. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  21007. <code>1</code>.
  21008. @return the number of reduce tasks for this job.]]>
  21009. </doc>
  21010. </method>
  21011. <method name="setNumReduceTasks"
  21012. abstract="false" native="false" synchronized="false"
  21013. static="false" final="false" visibility="public"
  21014. deprecated="not deprecated">
  21015. <param name="n" type="int"/>
  21016. <doc>
  21017. <![CDATA[Set the requisite number of reduce tasks for this job.
  21018. <h4 id="NoOfReduces">How many reduces?</h4>
  21019. <p>The right number of reduces seems to be <code>0.95</code> or
  21020. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  21021. <a href="{@docRoot}/../hadoop-default.html#mapred.tasktracker.reduce.tasks.maximum">
  21022. mapred.tasktracker.reduce.tasks.maximum</a>).
  21023. </p>
  21024. <p>With <code>0.95</code> all of the reduces can launch immediately and
  21025. start transfering map outputs as the maps finish. With <code>1.75</code>
  21026. the faster nodes will finish their first round of reduces and launch a
  21027. second wave of reduces doing a much better job of load balancing.</p>
  21028. <p>Increasing the number of reduces increases the framework overhead, but
  21029. increases load balancing and lowers the cost of failures.</p>
  21030. <p>The scaling factors above are slightly less than whole numbers to
  21031. reserve a few reduce slots in the framework for speculative-tasks, failures
  21032. etc.</p>
  21033. <h4 id="ReducerNone">Reducer NONE</h4>
  21034. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  21035. <p>In this case the output of the map-tasks directly go to distributed
  21036. file-system, to the path set by
  21037. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  21038. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  21039. @param n the number of reduce tasks for this job.]]>
  21040. </doc>
  21041. </method>
  21042. <method name="getMaxMapAttempts" return="int"
  21043. abstract="false" native="false" synchronized="false"
  21044. static="false" final="false" visibility="public"
  21045. deprecated="not deprecated">
  21046. <doc>
  21047. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  21048. map task, as specified by the <code>mapred.map.max.attempts</code>
  21049. property. If this property is not already set, the default is 4 attempts.
  21050. @return the max number of attempts per map task.]]>
  21051. </doc>
  21052. </method>
  21053. <method name="setMaxMapAttempts"
  21054. abstract="false" native="false" synchronized="false"
  21055. static="false" final="false" visibility="public"
  21056. deprecated="not deprecated">
  21057. <param name="n" type="int"/>
  21058. <doc>
  21059. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  21060. map task.
  21061. @param n the number of attempts per map task.]]>
  21062. </doc>
  21063. </method>
  21064. <method name="getMaxReduceAttempts" return="int"
  21065. abstract="false" native="false" synchronized="false"
  21066. static="false" final="false" visibility="public"
  21067. deprecated="not deprecated">
  21068. <doc>
  21069. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  21070. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  21071. property. If this property is not already set, the default is 4 attempts.
  21072. @return the max number of attempts per reduce task.]]>
  21073. </doc>
  21074. </method>
  21075. <method name="setMaxReduceAttempts"
  21076. abstract="false" native="false" synchronized="false"
  21077. static="false" final="false" visibility="public"
  21078. deprecated="not deprecated">
  21079. <param name="n" type="int"/>
  21080. <doc>
  21081. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  21082. reduce task.
  21083. @param n the number of attempts per reduce task.]]>
  21084. </doc>
  21085. </method>
  21086. <method name="getJobName" return="java.lang.String"
  21087. abstract="false" native="false" synchronized="false"
  21088. static="false" final="false" visibility="public"
  21089. deprecated="not deprecated">
  21090. <doc>
  21091. <![CDATA[Get the user-specified job name. This is only used to identify the
  21092. job to the user.
  21093. @return the job's name, defaulting to "".]]>
  21094. </doc>
  21095. </method>
  21096. <method name="setJobName"
  21097. abstract="false" native="false" synchronized="false"
  21098. static="false" final="false" visibility="public"
  21099. deprecated="not deprecated">
  21100. <param name="name" type="java.lang.String"/>
  21101. <doc>
  21102. <![CDATA[Set the user-specified job name.
  21103. @param name the job's new name.]]>
  21104. </doc>
  21105. </method>
  21106. <method name="getSessionId" return="java.lang.String"
  21107. abstract="false" native="false" synchronized="false"
  21108. static="false" final="false" visibility="public"
  21109. deprecated="not deprecated">
  21110. <doc>
  21111. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  21112. The session identifier is used to tag metric data that is reported to some
  21113. performance metrics system via the org.apache.hadoop.metrics API. The
  21114. session identifier is intended, in particular, for use by Hadoop-On-Demand
  21115. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  21116. HOD will set the session identifier by modifying the hadoop-site.xml file
  21117. before starting the cluster.
  21118. When not running under HOD, this identifer is expected to remain set to
  21119. the empty string.
  21120. @return the session identifier, defaulting to "".]]>
  21121. </doc>
  21122. </method>
  21123. <method name="setSessionId"
  21124. abstract="false" native="false" synchronized="false"
  21125. static="false" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. <param name="sessionId" type="java.lang.String"/>
  21128. <doc>
  21129. <![CDATA[Set the user-specified session identifier.
  21130. @param sessionId the new session id.]]>
  21131. </doc>
  21132. </method>
  21133. <method name="setMaxTaskFailuresPerTracker"
  21134. abstract="false" native="false" synchronized="false"
  21135. static="false" final="false" visibility="public"
  21136. deprecated="not deprecated">
  21137. <param name="noFailures" type="int"/>
  21138. <doc>
  21139. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  21140. If the no. of task failures exceeds <code>noFailures</code>, the
  21141. tasktracker is <i>blacklisted</i> for this job.
  21142. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  21143. </doc>
  21144. </method>
  21145. <method name="getMaxTaskFailuresPerTracker" return="int"
  21146. abstract="false" native="false" synchronized="false"
  21147. static="false" final="false" visibility="public"
  21148. deprecated="not deprecated">
  21149. <doc>
  21150. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  21151. If the no. of task failures exceeds this, the tasktracker is
  21152. <i>blacklisted</i> for this job.
  21153. @return the maximum no. of failures of a given job per tasktracker.]]>
  21154. </doc>
  21155. </method>
  21156. <method name="getMaxMapTaskFailuresPercent" return="int"
  21157. abstract="false" native="false" synchronized="false"
  21158. static="false" final="false" visibility="public"
  21159. deprecated="not deprecated">
  21160. <doc>
  21161. <![CDATA[Get the maximum percentage of map tasks that can fail without
  21162. the job being aborted.
  21163. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  21164. attempts before being declared as <i>failed</i>.
  21165. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  21166. the job being declared as {@link JobStatus#FAILED}.
  21167. @return the maximum percentage of map tasks that can fail without
  21168. the job being aborted.]]>
  21169. </doc>
  21170. </method>
  21171. <method name="setMaxMapTaskFailuresPercent"
  21172. abstract="false" native="false" synchronized="false"
  21173. static="false" final="false" visibility="public"
  21174. deprecated="not deprecated">
  21175. <param name="percent" type="int"/>
  21176. <doc>
  21177. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  21178. job being aborted.
  21179. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  21180. before being declared as <i>failed</i>.
  21181. @param percent the maximum percentage of map tasks that can fail without
  21182. the job being aborted.]]>
  21183. </doc>
  21184. </method>
  21185. <method name="getMaxReduceTaskFailuresPercent" return="int"
  21186. abstract="false" native="false" synchronized="false"
  21187. static="false" final="false" visibility="public"
  21188. deprecated="not deprecated">
  21189. <doc>
  21190. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  21191. the job being aborted.
  21192. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  21193. attempts before being declared as <i>failed</i>.
  21194. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  21195. in the job being declared as {@link JobStatus#FAILED}.
  21196. @return the maximum percentage of reduce tasks that can fail without
  21197. the job being aborted.]]>
  21198. </doc>
  21199. </method>
  21200. <method name="setMaxReduceTaskFailuresPercent"
  21201. abstract="false" native="false" synchronized="false"
  21202. static="false" final="false" visibility="public"
  21203. deprecated="not deprecated">
  21204. <param name="percent" type="int"/>
  21205. <doc>
  21206. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  21207. being aborted.
  21208. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  21209. attempts before being declared as <i>failed</i>.
  21210. @param percent the maximum percentage of reduce tasks that can fail without
  21211. the job being aborted.]]>
  21212. </doc>
  21213. </method>
  21214. <method name="setJobPriority"
  21215. abstract="false" native="false" synchronized="false"
  21216. static="false" final="false" visibility="public"
  21217. deprecated="not deprecated">
  21218. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  21219. <doc>
  21220. <![CDATA[Set {@link JobPriority} for this job.
  21221. @param prio the {@link JobPriority} for this job.]]>
  21222. </doc>
  21223. </method>
  21224. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  21225. abstract="false" native="false" synchronized="false"
  21226. static="false" final="false" visibility="public"
  21227. deprecated="not deprecated">
  21228. <doc>
  21229. <![CDATA[Get the {@link JobPriority} for this job.
  21230. @return the {@link JobPriority} for this job.]]>
  21231. </doc>
  21232. </method>
  21233. <method name="getProfileEnabled" return="boolean"
  21234. abstract="false" native="false" synchronized="false"
  21235. static="false" final="false" visibility="public"
  21236. deprecated="not deprecated">
  21237. <doc>
  21238. <![CDATA[Get whether the task profiling is enabled.
  21239. @return true if some tasks will be profiled]]>
  21240. </doc>
  21241. </method>
  21242. <method name="setProfileEnabled"
  21243. abstract="false" native="false" synchronized="false"
  21244. static="false" final="false" visibility="public"
  21245. deprecated="not deprecated">
  21246. <param name="newValue" type="boolean"/>
  21247. <doc>
  21248. <![CDATA[Set whether the system should collect profiler information for some of
  21249. the tasks in this job? The information is stored in the the user log
  21250. directory.
  21251. @param newValue true means it should be gathered]]>
  21252. </doc>
  21253. </method>
  21254. <method name="getProfileParams" return="java.lang.String"
  21255. abstract="false" native="false" synchronized="false"
  21256. static="false" final="false" visibility="public"
  21257. deprecated="not deprecated">
  21258. <doc>
  21259. <![CDATA[Get the profiler configuration arguments.
  21260. The default value for this property is
  21261. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  21262. @return the parameters to pass to the task child to configure profiling]]>
  21263. </doc>
  21264. </method>
  21265. <method name="setProfileParams"
  21266. abstract="false" native="false" synchronized="false"
  21267. static="false" final="false" visibility="public"
  21268. deprecated="not deprecated">
  21269. <param name="value" type="java.lang.String"/>
  21270. <doc>
  21271. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  21272. will be replaced with the name of the profiling output file when the task
  21273. runs.
  21274. This value is passed to the task child JVM on the command line.
  21275. @param value the configuration string]]>
  21276. </doc>
  21277. </method>
  21278. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  21279. abstract="false" native="false" synchronized="false"
  21280. static="false" final="false" visibility="public"
  21281. deprecated="not deprecated">
  21282. <param name="isMap" type="boolean"/>
  21283. <doc>
  21284. <![CDATA[Get the range of maps or reduces to profile.
  21285. @param isMap is the task a map?
  21286. @return the task ranges]]>
  21287. </doc>
  21288. </method>
  21289. <method name="setProfileTaskRange"
  21290. abstract="false" native="false" synchronized="false"
  21291. static="false" final="false" visibility="public"
  21292. deprecated="not deprecated">
  21293. <param name="isMap" type="boolean"/>
  21294. <param name="newValue" type="java.lang.String"/>
  21295. <doc>
  21296. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  21297. must also be called.
  21298. @param newValue a set of integer ranges of the map ids]]>
  21299. </doc>
  21300. </method>
  21301. <method name="setMapDebugScript"
  21302. abstract="false" native="false" synchronized="false"
  21303. static="false" final="false" visibility="public"
  21304. deprecated="not deprecated">
  21305. <param name="mDbgScript" type="java.lang.String"/>
  21306. <doc>
  21307. <![CDATA[Set the debug script to run when the map tasks fail.
  21308. <p>The debug script can aid debugging of failed map tasks. The script is
  21309. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  21310. <p>The debug command, run on the node where the map failed, is:</p>
  21311. <p><pre><blockquote>
  21312. $script $stdout $stderr $syslog $jobconf.
  21313. </blockquote></pre></p>
  21314. <p> The script file is distributed through {@link DistributedCache}
  21315. APIs. The script needs to be symlinked. </p>
  21316. <p>Here is an example on how to submit a script
  21317. <p><blockquote><pre>
  21318. job.setMapDebugScript("./myscript");
  21319. DistributedCache.createSymlink(job);
  21320. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  21321. </pre></blockquote></p>
  21322. @param mDbgScript the script name]]>
  21323. </doc>
  21324. </method>
  21325. <method name="getMapDebugScript" return="java.lang.String"
  21326. abstract="false" native="false" synchronized="false"
  21327. static="false" final="false" visibility="public"
  21328. deprecated="not deprecated">
  21329. <doc>
  21330. <![CDATA[Get the map task's debug script.
  21331. @return the debug Script for the mapred job for failed map tasks.
  21332. @see #setMapDebugScript(String)]]>
  21333. </doc>
  21334. </method>
  21335. <method name="setReduceDebugScript"
  21336. abstract="false" native="false" synchronized="false"
  21337. static="false" final="false" visibility="public"
  21338. deprecated="not deprecated">
  21339. <param name="rDbgScript" type="java.lang.String"/>
  21340. <doc>
  21341. <![CDATA[Set the debug script to run when the reduce tasks fail.
  21342. <p>The debug script can aid debugging of failed reduce tasks. The script
  21343. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  21344. <p>The debug command, run on the node where the map failed, is:</p>
  21345. <p><pre><blockquote>
  21346. $script $stdout $stderr $syslog $jobconf.
  21347. </blockquote></pre></p>
  21348. <p> The script file is distributed through {@link DistributedCache}
  21349. APIs. The script file needs to be symlinked </p>
  21350. <p>Here is an example on how to submit a script
  21351. <p><blockquote><pre>
  21352. job.setReduceDebugScript("./myscript");
  21353. DistributedCache.createSymlink(job);
  21354. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  21355. </pre></blockquote></p>
  21356. @param rDbgScript the script name]]>
  21357. </doc>
  21358. </method>
  21359. <method name="getReduceDebugScript" return="java.lang.String"
  21360. abstract="false" native="false" synchronized="false"
  21361. static="false" final="false" visibility="public"
  21362. deprecated="not deprecated">
  21363. <doc>
  21364. <![CDATA[Get the reduce task's debug Script
  21365. @return the debug script for the mapred job for failed reduce tasks.
  21366. @see #setReduceDebugScript(String)]]>
  21367. </doc>
  21368. </method>
  21369. <method name="getJobEndNotificationURI" return="java.lang.String"
  21370. abstract="false" native="false" synchronized="false"
  21371. static="false" final="false" visibility="public"
  21372. deprecated="not deprecated">
  21373. <doc>
  21374. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  21375. has completed (success/failure).
  21376. @return the job end notification uri, <code>null</code> if it hasn't
  21377. been set.
  21378. @see #setJobEndNotificationURI(String)]]>
  21379. </doc>
  21380. </method>
  21381. <method name="setJobEndNotificationURI"
  21382. abstract="false" native="false" synchronized="false"
  21383. static="false" final="false" visibility="public"
  21384. deprecated="not deprecated">
  21385. <param name="uri" type="java.lang.String"/>
  21386. <doc>
  21387. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  21388. has completed (success/failure).
  21389. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  21390. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  21391. identifier and completion-status respectively.</p>
  21392. <p>This is typically used by application-writers to implement chaining of
  21393. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  21394. @param uri the job end notification uri
  21395. @see JobStatus
  21396. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  21397. </doc>
  21398. </method>
  21399. <method name="getJobLocalDir" return="java.lang.String"
  21400. abstract="false" native="false" synchronized="false"
  21401. static="false" final="false" visibility="public"
  21402. deprecated="not deprecated">
  21403. <doc>
  21404. <![CDATA[Get job-specific shared directory for use as scratch space
  21405. <p>
  21406. When a job starts, a shared directory is created at location
  21407. <code>
  21408. ${mapred.local.dir}/taskTracker/jobcache/$jobid/work/ </code>.
  21409. This directory is exposed to the users through
  21410. <code>job.local.dir </code>.
  21411. So, the tasks can use this space
  21412. as scratch space and share files among them. </p>
  21413. This value is available as System property also.
  21414. @return The localized job specific shared directory]]>
  21415. </doc>
  21416. </method>
  21417. <method name="getQueueName" return="java.lang.String"
  21418. abstract="false" native="false" synchronized="false"
  21419. static="false" final="false" visibility="public"
  21420. deprecated="not deprecated">
  21421. <doc>
  21422. <![CDATA[Return the name of the queue to which this job is submitted.
  21423. Defaults to 'default'.
  21424. @return name of the queue]]>
  21425. </doc>
  21426. </method>
  21427. <method name="setQueueName"
  21428. abstract="false" native="false" synchronized="false"
  21429. static="false" final="false" visibility="public"
  21430. deprecated="not deprecated">
  21431. <param name="queueName" type="java.lang.String"/>
  21432. <doc>
  21433. <![CDATA[Set the name of the queue to which this job should be submitted.
  21434. @param queueName Name of the queue]]>
  21435. </doc>
  21436. </method>
  21437. <field name="DEFAULT_QUEUE_NAME" type="java.lang.String"
  21438. transient="false" volatile="false"
  21439. static="true" final="true" visibility="public"
  21440. deprecated="not deprecated">
  21441. <doc>
  21442. <![CDATA[Name of the queue to which jobs will be submitted, if no queue
  21443. name is mentioned.]]>
  21444. </doc>
  21445. </field>
  21446. <doc>
  21447. <![CDATA[A map/reduce job configuration.
  21448. <p><code>JobConf</code> is the primary interface for a user to describe a
  21449. map-reduce job to the Hadoop framework for execution. The framework tries to
  21450. faithfully execute the job as-is described by <code>JobConf</code>, however:
  21451. <ol>
  21452. <li>
  21453. Some configuration parameters might have been marked as
  21454. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  21455. final</a> by administrators and hence cannot be altered.
  21456. </li>
  21457. <li>
  21458. While some job parameters are straight-forward to set
  21459. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  21460. rest of the framework and/or job-configuration and is relatively more
  21461. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  21462. </li>
  21463. </ol></p>
  21464. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  21465. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  21466. {@link OutputFormat} implementations to be used etc.
  21467. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  21468. of the job such as <code>Comparator</code>s to be used, files to be put in
  21469. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  21470. are to be compressed (and how), debugability via user-provided scripts
  21471. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  21472. for doing post-processing on task logs, task's stdout, stderr, syslog.
  21473. and etc.</p>
  21474. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  21475. <p><blockquote><pre>
  21476. // Create a new JobConf
  21477. JobConf job = new JobConf(new Configuration(), MyJob.class);
  21478. // Specify various job-specific parameters
  21479. job.setJobName("myjob");
  21480. FileInputFormat.setInputPaths(job, new Path("in"));
  21481. FileOutputFormat.setOutputPath(job, new Path("out"));
  21482. job.setMapperClass(MyJob.MyMapper.class);
  21483. job.setCombinerClass(MyJob.MyReducer.class);
  21484. job.setReducerClass(MyJob.MyReducer.class);
  21485. job.setInputFormat(SequenceFileInputFormat.class);
  21486. job.setOutputFormat(SequenceFileOutputFormat.class);
  21487. </pre></blockquote></p>
  21488. @see JobClient
  21489. @see ClusterStatus
  21490. @see Tool
  21491. @see DistributedCache]]>
  21492. </doc>
  21493. </class>
  21494. <!-- end class org.apache.hadoop.mapred.JobConf -->
  21495. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  21496. <interface name="JobConfigurable" abstract="true"
  21497. static="false" final="false" visibility="public"
  21498. deprecated="not deprecated">
  21499. <method name="configure"
  21500. abstract="false" native="false" synchronized="false"
  21501. static="false" final="false" visibility="public"
  21502. deprecated="not deprecated">
  21503. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21504. <doc>
  21505. <![CDATA[Initializes a new instance from a {@link JobConf}.
  21506. @param job the configuration]]>
  21507. </doc>
  21508. </method>
  21509. <doc>
  21510. <![CDATA[That what may be configured.]]>
  21511. </doc>
  21512. </interface>
  21513. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  21514. <!-- start class org.apache.hadoop.mapred.JobContext -->
  21515. <class name="JobContext" extends="java.lang.Object"
  21516. abstract="false"
  21517. static="false" final="false" visibility="public"
  21518. deprecated="not deprecated">
  21519. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  21520. abstract="false" native="false" synchronized="false"
  21521. static="false" final="false" visibility="public"
  21522. deprecated="not deprecated">
  21523. <doc>
  21524. <![CDATA[Get the job Configuration
  21525. @return JobConf]]>
  21526. </doc>
  21527. </method>
  21528. <method name="getProgressible" return="org.apache.hadoop.util.Progressable"
  21529. abstract="false" native="false" synchronized="false"
  21530. static="false" final="false" visibility="public"
  21531. deprecated="not deprecated">
  21532. <doc>
  21533. <![CDATA[Get the progress mechanism for reporting progress.
  21534. @return progress mechanism]]>
  21535. </doc>
  21536. </method>
  21537. </class>
  21538. <!-- end class org.apache.hadoop.mapred.JobContext -->
  21539. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  21540. <class name="JobEndNotifier" extends="java.lang.Object"
  21541. abstract="false"
  21542. static="false" final="false" visibility="public"
  21543. deprecated="not deprecated">
  21544. <constructor name="JobEndNotifier"
  21545. static="false" final="false" visibility="public"
  21546. deprecated="not deprecated">
  21547. </constructor>
  21548. <method name="startNotifier"
  21549. abstract="false" native="false" synchronized="false"
  21550. static="true" final="false" visibility="public"
  21551. deprecated="not deprecated">
  21552. </method>
  21553. <method name="stopNotifier"
  21554. abstract="false" native="false" synchronized="false"
  21555. static="true" final="false" visibility="public"
  21556. deprecated="not deprecated">
  21557. </method>
  21558. <method name="registerNotification"
  21559. abstract="false" native="false" synchronized="false"
  21560. static="true" final="false" visibility="public"
  21561. deprecated="not deprecated">
  21562. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  21563. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  21564. </method>
  21565. <method name="localRunnerNotification"
  21566. abstract="false" native="false" synchronized="false"
  21567. static="true" final="false" visibility="public"
  21568. deprecated="not deprecated">
  21569. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21570. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  21571. </method>
  21572. </class>
  21573. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  21574. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  21575. <class name="JobHistory" extends="java.lang.Object"
  21576. abstract="false"
  21577. static="false" final="false" visibility="public"
  21578. deprecated="not deprecated">
  21579. <constructor name="JobHistory"
  21580. static="false" final="false" visibility="public"
  21581. deprecated="not deprecated">
  21582. </constructor>
  21583. <method name="init" return="boolean"
  21584. abstract="false" native="false" synchronized="false"
  21585. static="true" final="false" visibility="public"
  21586. deprecated="not deprecated">
  21587. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21588. <param name="hostname" type="java.lang.String"/>
  21589. <param name="jobTrackerStartTime" type="long"/>
  21590. <doc>
  21591. <![CDATA[Initialize JobHistory files.
  21592. @param conf Jobconf of the job tracker.
  21593. @param hostname jobtracker's hostname
  21594. @param jobTrackerStartTime jobtracker's start time
  21595. @return true if intialized properly
  21596. false otherwise]]>
  21597. </doc>
  21598. </method>
  21599. <method name="parseHistoryFromFS"
  21600. abstract="false" native="false" synchronized="false"
  21601. static="true" final="false" visibility="public"
  21602. deprecated="not deprecated">
  21603. <param name="path" type="java.lang.String"/>
  21604. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  21605. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21606. <exception name="IOException" type="java.io.IOException"/>
  21607. <doc>
  21608. <![CDATA[Parses history file and invokes Listener.handle() for
  21609. each line of history. It can be used for looking through history
  21610. files for specific items without having to keep whole history in memory.
  21611. @param path path to history file
  21612. @param l Listener for history events
  21613. @param fs FileSystem where history file is present
  21614. @throws IOException]]>
  21615. </doc>
  21616. </method>
  21617. <method name="isDisableHistory" return="boolean"
  21618. abstract="false" native="false" synchronized="false"
  21619. static="true" final="false" visibility="public"
  21620. deprecated="not deprecated">
  21621. <doc>
  21622. <![CDATA[Returns history disable status. by default history is enabled so this
  21623. method returns false.
  21624. @return true if history logging is disabled, false otherwise.]]>
  21625. </doc>
  21626. </method>
  21627. <method name="setDisableHistory"
  21628. abstract="false" native="false" synchronized="false"
  21629. static="true" final="false" visibility="public"
  21630. deprecated="not deprecated">
  21631. <param name="disableHistory" type="boolean"/>
  21632. <doc>
  21633. <![CDATA[Enable/disable history logging. Default value is false, so history
  21634. is enabled by default.
  21635. @param disableHistory true if history should be disabled, false otherwise.]]>
  21636. </doc>
  21637. </method>
  21638. <method name="getTaskLogsUrl" return="java.lang.String"
  21639. abstract="false" native="false" synchronized="false"
  21640. static="true" final="false" visibility="public"
  21641. deprecated="not deprecated">
  21642. <param name="attempt" type="org.apache.hadoop.mapred.JobHistory.TaskAttempt"/>
  21643. <doc>
  21644. <![CDATA[Return the TaskLogsUrl of a particular TaskAttempt
  21645. @param attempt
  21646. @return the taskLogsUrl. null if http-port or tracker-name or
  21647. task-attempt-id are unavailable.]]>
  21648. </doc>
  21649. </method>
  21650. <field name="LOG" type="org.apache.commons.logging.Log"
  21651. transient="false" volatile="false"
  21652. static="true" final="true" visibility="public"
  21653. deprecated="not deprecated">
  21654. </field>
  21655. <field name="JOB_NAME_TRIM_LENGTH" type="int"
  21656. transient="false" volatile="false"
  21657. static="true" final="true" visibility="public"
  21658. deprecated="not deprecated">
  21659. </field>
  21660. <doc>
  21661. <![CDATA[Provides methods for writing to and reading from job history.
  21662. Job History works in an append mode, JobHistory and its inner classes provide methods
  21663. to log job events.
  21664. JobHistory is split into multiple files, format of each file is plain text where each line
  21665. is of the format [type (key=value)*], where type identifies the type of the record.
  21666. Type maps to UID of one of the inner classes of this class.
  21667. Job history is maintained in a master index which contains star/stop times of all jobs with
  21668. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  21669. file. name of job history files follows the format jobtrackerId_jobid
  21670. For parsing the job history it supports a listener based interface where each line is parsed
  21671. and passed to listener. The listener can create an object model of history or look for specific
  21672. events and discard rest of the history.
  21673. CHANGE LOG :
  21674. Version 0 : The history has the following format :
  21675. TAG KEY1="VALUE1" KEY2="VALUE2" and so on.
  21676. TAG can be Job, Task, MapAttempt or ReduceAttempt.
  21677. Note that a '"' is the line delimiter.
  21678. Version 1 : Changes the line delimiter to '.'
  21679. Values are now escaped for unambiguous parsing.
  21680. Added the Meta tag to store version info.]]>
  21681. </doc>
  21682. </class>
  21683. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  21684. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  21685. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  21686. abstract="false"
  21687. static="true" final="false" visibility="public"
  21688. deprecated="not deprecated">
  21689. <implements name="java.lang.Runnable"/>
  21690. <constructor name="JobHistory.HistoryCleaner"
  21691. static="false" final="false" visibility="public"
  21692. deprecated="not deprecated">
  21693. </constructor>
  21694. <method name="run"
  21695. abstract="false" native="false" synchronized="false"
  21696. static="false" final="false" visibility="public"
  21697. deprecated="not deprecated">
  21698. <doc>
  21699. <![CDATA[Cleans up history data.]]>
  21700. </doc>
  21701. </method>
  21702. <doc>
  21703. <![CDATA[Delete history files older than one month. Update master index and remove all
  21704. jobs older than one month. Also if a job tracker has no jobs in last one month
  21705. remove reference to the job tracker.]]>
  21706. </doc>
  21707. </class>
  21708. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  21709. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  21710. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  21711. abstract="false"
  21712. static="true" final="false" visibility="public"
  21713. deprecated="not deprecated">
  21714. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  21715. static="false" final="false" visibility="public"
  21716. deprecated="not deprecated">
  21717. <doc>
  21718. <![CDATA[Create new JobInfo]]>
  21719. </doc>
  21720. </constructor>
  21721. <method name="getAllTasks" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.Task&gt;"
  21722. abstract="false" native="false" synchronized="false"
  21723. static="false" final="false" visibility="public"
  21724. deprecated="not deprecated">
  21725. <doc>
  21726. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  21727. </doc>
  21728. </method>
  21729. <method name="getLocalJobFilePath" return="java.lang.String"
  21730. abstract="false" native="false" synchronized="false"
  21731. static="true" final="false" visibility="public"
  21732. deprecated="not deprecated">
  21733. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21734. <doc>
  21735. <![CDATA[Get the path of the locally stored job file
  21736. @param jobId id of the job
  21737. @return the path of the job file on the local file system]]>
  21738. </doc>
  21739. </method>
  21740. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  21741. abstract="false" native="false" synchronized="false"
  21742. static="true" final="false" visibility="public"
  21743. deprecated="not deprecated">
  21744. <param name="logFile" type="java.lang.String"/>
  21745. <exception name="IOException" type="java.io.IOException"/>
  21746. <doc>
  21747. <![CDATA[Helper function to encode the URL of the path of the job-history
  21748. log file.
  21749. @param logFile path of the job-history file
  21750. @return URL encoded path
  21751. @throws IOException]]>
  21752. </doc>
  21753. </method>
  21754. <method name="encodeJobHistoryFileName" return="java.lang.String"
  21755. abstract="false" native="false" synchronized="false"
  21756. static="true" final="false" visibility="public"
  21757. deprecated="not deprecated">
  21758. <param name="logFileName" type="java.lang.String"/>
  21759. <exception name="IOException" type="java.io.IOException"/>
  21760. <doc>
  21761. <![CDATA[Helper function to encode the URL of the filename of the job-history
  21762. log file.
  21763. @param logFileName file name of the job-history file
  21764. @return URL encoded filename
  21765. @throws IOException]]>
  21766. </doc>
  21767. </method>
  21768. <method name="decodeJobHistoryFileName" return="java.lang.String"
  21769. abstract="false" native="false" synchronized="false"
  21770. static="true" final="false" visibility="public"
  21771. deprecated="not deprecated">
  21772. <param name="logFileName" type="java.lang.String"/>
  21773. <exception name="IOException" type="java.io.IOException"/>
  21774. <doc>
  21775. <![CDATA[Helper function to decode the URL of the filename of the job-history
  21776. log file.
  21777. @param logFileName file name of the job-history file
  21778. @return URL decoded filename
  21779. @throws IOException]]>
  21780. </doc>
  21781. </method>
  21782. <method name="getUserName" return="java.lang.String"
  21783. abstract="false" native="false" synchronized="false"
  21784. static="true" final="false" visibility="public"
  21785. deprecated="not deprecated">
  21786. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  21787. <doc>
  21788. <![CDATA[Get the user name from the job conf]]>
  21789. </doc>
  21790. </method>
  21791. <method name="getJobHistoryLogLocation" return="org.apache.hadoop.fs.Path"
  21792. abstract="false" native="false" synchronized="false"
  21793. static="true" final="false" visibility="public"
  21794. deprecated="not deprecated">
  21795. <param name="logFileName" type="java.lang.String"/>
  21796. <doc>
  21797. <![CDATA[Get the job history file path given the history filename]]>
  21798. </doc>
  21799. </method>
  21800. <method name="getJobHistoryLogLocationForUser" return="org.apache.hadoop.fs.Path"
  21801. abstract="false" native="false" synchronized="false"
  21802. static="true" final="false" visibility="public"
  21803. deprecated="not deprecated">
  21804. <param name="logFileName" type="java.lang.String"/>
  21805. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  21806. <doc>
  21807. <![CDATA[Get the user job history file path]]>
  21808. </doc>
  21809. </method>
  21810. <method name="getJobHistoryFileName" return="java.lang.String"
  21811. abstract="false" native="false" synchronized="true"
  21812. static="true" final="false" visibility="public"
  21813. deprecated="not deprecated">
  21814. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  21815. <param name="id" type="org.apache.hadoop.mapred.JobID"/>
  21816. <exception name="IOException" type="java.io.IOException"/>
  21817. <doc>
  21818. <![CDATA[Recover the job history filename from the history folder.
  21819. Uses the following pattern
  21820. $jt-hostname_[0-9]*_$job-id_$user-$job-name*
  21821. @param jobConf the job conf
  21822. @param id job id]]>
  21823. </doc>
  21824. </method>
  21825. <method name="recoverJobHistoryFile" return="org.apache.hadoop.fs.Path"
  21826. abstract="false" native="false" synchronized="true"
  21827. static="true" final="false" visibility="public"
  21828. deprecated="not deprecated">
  21829. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21830. <param name="logFilePath" type="org.apache.hadoop.fs.Path"/>
  21831. <exception name="IOException" type="java.io.IOException"/>
  21832. <doc>
  21833. <![CDATA[Selects one of the two files generated as a part of recovery.
  21834. The thumb rule is that always select the oldest file.
  21835. This call makes sure that only one file is left in the end.
  21836. @param conf job conf
  21837. @param logFilePath Path of the log file
  21838. @throws IOException]]>
  21839. </doc>
  21840. </method>
  21841. <method name="logSubmitted"
  21842. abstract="false" native="false" synchronized="false"
  21843. static="true" final="false" visibility="public"
  21844. deprecated="not deprecated">
  21845. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21846. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  21847. <param name="jobConfPath" type="java.lang.String"/>
  21848. <param name="submitTime" type="long"/>
  21849. <exception name="IOException" type="java.io.IOException"/>
  21850. <doc>
  21851. <![CDATA[Log job submitted event to history. Creates a new file in history
  21852. for the job. if history file creation fails, it disables history
  21853. for all other events.
  21854. @param jobId job id assigned by job tracker.
  21855. @param jobConf job conf of the job
  21856. @param jobConfPath path to job conf xml file in HDFS.
  21857. @param submitTime time when job tracker received the job
  21858. @throws IOException]]>
  21859. </doc>
  21860. </method>
  21861. <method name="logInited"
  21862. abstract="false" native="false" synchronized="false"
  21863. static="true" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21866. <param name="startTime" type="long"/>
  21867. <param name="totalMaps" type="int"/>
  21868. <param name="totalReduces" type="int"/>
  21869. <doc>
  21870. <![CDATA[Logs launch time of job.
  21871. @param jobId job id, assigned by jobtracker.
  21872. @param startTime start time of job.
  21873. @param totalMaps total maps assigned by jobtracker.
  21874. @param totalReduces total reduces.]]>
  21875. </doc>
  21876. </method>
  21877. <method name="logStarted"
  21878. abstract="false" native="false" synchronized="false"
  21879. static="true" final="false" visibility="public"
  21880. deprecated="Use {@link #logInited(JobID, long, int, int)} and
  21881. {@link #logStarted(JobID)}">
  21882. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21883. <param name="startTime" type="long"/>
  21884. <param name="totalMaps" type="int"/>
  21885. <param name="totalReduces" type="int"/>
  21886. <doc>
  21887. <![CDATA[Logs the job as RUNNING.
  21888. @param jobId job id, assigned by jobtracker.
  21889. @param startTime start time of job.
  21890. @param totalMaps total maps assigned by jobtracker.
  21891. @param totalReduces total reduces.
  21892. @deprecated Use {@link #logInited(JobID, long, int, int)} and
  21893. {@link #logStarted(JobID)}]]>
  21894. </doc>
  21895. </method>
  21896. <method name="logStarted"
  21897. abstract="false" native="false" synchronized="false"
  21898. static="true" final="false" visibility="public"
  21899. deprecated="not deprecated">
  21900. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21901. <doc>
  21902. <![CDATA[Logs job as running
  21903. @param jobId job id, assigned by jobtracker.]]>
  21904. </doc>
  21905. </method>
  21906. <method name="logFinished"
  21907. abstract="false" native="false" synchronized="false"
  21908. static="true" final="false" visibility="public"
  21909. deprecated="not deprecated">
  21910. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  21911. <param name="finishTime" type="long"/>
  21912. <param name="finishedMaps" type="int"/>
  21913. <param name="finishedReduces" type="int"/>
  21914. <param name="failedMaps" type="int"/>
  21915. <param name="failedReduces" type="int"/>
  21916. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  21917. <doc>
  21918. <![CDATA[Log job finished. closes the job file in history.
  21919. @param jobId job id, assigned by jobtracker.
  21920. @param finishTime finish time of job in ms.
  21921. @param finishedMaps no of maps successfully finished.
  21922. @param finishedReduces no of reduces finished sucessfully.
  21923. @param failedMaps no of failed map tasks.
  21924. @param failedReduces no of failed reduce tasks.
  21925. @param counters the counters from the job]]>
  21926. </doc>
  21927. </method>
  21928. <method name="logFailed"
  21929. abstract="false" native="false" synchronized="false"
  21930. static="true" final="false" visibility="public"
  21931. deprecated="not deprecated">
  21932. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21933. <param name="timestamp" type="long"/>
  21934. <param name="finishedMaps" type="int"/>
  21935. <param name="finishedReduces" type="int"/>
  21936. <doc>
  21937. <![CDATA[Logs job failed event. Closes the job history log file.
  21938. @param jobid job id
  21939. @param timestamp time when job failure was detected in ms.
  21940. @param finishedMaps no finished map tasks.
  21941. @param finishedReduces no of finished reduce tasks.]]>
  21942. </doc>
  21943. </method>
  21944. <method name="logKilled"
  21945. abstract="false" native="false" synchronized="false"
  21946. static="true" final="false" visibility="public"
  21947. deprecated="not deprecated">
  21948. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21949. <param name="timestamp" type="long"/>
  21950. <param name="finishedMaps" type="int"/>
  21951. <param name="finishedReduces" type="int"/>
  21952. <doc>
  21953. <![CDATA[Logs job killed event. Closes the job history log file.
  21954. @param jobid
  21955. job id
  21956. @param timestamp
  21957. time when job killed was issued in ms.
  21958. @param finishedMaps
  21959. no finished map tasks.
  21960. @param finishedReduces
  21961. no of finished reduce tasks.]]>
  21962. </doc>
  21963. </method>
  21964. <method name="logJobPriority"
  21965. abstract="false" native="false" synchronized="false"
  21966. static="true" final="false" visibility="public"
  21967. deprecated="not deprecated">
  21968. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21969. <param name="priority" type="org.apache.hadoop.mapred.JobPriority"/>
  21970. <doc>
  21971. <![CDATA[Log job's priority.
  21972. @param jobid job id
  21973. @param priority Jobs priority]]>
  21974. </doc>
  21975. </method>
  21976. <method name="logJobInfo"
  21977. abstract="false" native="false" synchronized="false"
  21978. static="true" final="false" visibility="public"
  21979. deprecated="not deprecated">
  21980. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  21981. <param name="submitTime" type="long"/>
  21982. <param name="launchTime" type="long"/>
  21983. <param name="restartCount" type="int"/>
  21984. <doc>
  21985. <![CDATA[Log job's submit-time/launch-time
  21986. @param jobid job id
  21987. @param submitTime job's submit time
  21988. @param launchTime job's launch time
  21989. @param restartCount number of times the job got restarted]]>
  21990. </doc>
  21991. </method>
  21992. <doc>
  21993. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  21994. </doc>
  21995. </class>
  21996. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  21997. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  21998. <class name="JobHistory.Keys" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Keys&gt;"
  21999. abstract="false"
  22000. static="true" final="true" visibility="public"
  22001. deprecated="not deprecated">
  22002. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  22003. abstract="false" native="false" synchronized="false"
  22004. static="true" final="false" visibility="public"
  22005. deprecated="not deprecated">
  22006. </method>
  22007. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  22008. abstract="false" native="false" synchronized="false"
  22009. static="true" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. <param name="name" type="java.lang.String"/>
  22012. </method>
  22013. <doc>
  22014. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  22015. It acts as a global namespace for all keys.]]>
  22016. </doc>
  22017. </class>
  22018. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  22019. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  22020. <interface name="JobHistory.Listener" abstract="true"
  22021. static="true" final="false" visibility="public"
  22022. deprecated="not deprecated">
  22023. <method name="handle"
  22024. abstract="false" native="false" synchronized="false"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  22028. <param name="values" type="java.util.Map&lt;org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String&gt;"/>
  22029. <exception name="IOException" type="java.io.IOException"/>
  22030. <doc>
  22031. <![CDATA[Callback method for history parser.
  22032. @param recType type of record, which is the first entry in the line.
  22033. @param values a map of key-value pairs as thry appear in history.
  22034. @throws IOException]]>
  22035. </doc>
  22036. </method>
  22037. <doc>
  22038. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  22039. should be implemented and passed to JobHistory.parseHistory()]]>
  22040. </doc>
  22041. </interface>
  22042. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  22043. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  22044. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  22045. abstract="false"
  22046. static="true" final="false" visibility="public"
  22047. deprecated="not deprecated">
  22048. <constructor name="JobHistory.MapAttempt"
  22049. static="false" final="false" visibility="public"
  22050. deprecated="not deprecated">
  22051. </constructor>
  22052. <method name="logStarted"
  22053. abstract="false" native="false" synchronized="false"
  22054. static="true" final="false" visibility="public"
  22055. deprecated="Use
  22056. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  22057. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22058. <param name="startTime" type="long"/>
  22059. <param name="hostName" type="java.lang.String"/>
  22060. <doc>
  22061. <![CDATA[Log start time of this map task attempt.
  22062. @param taskAttemptId task attempt id
  22063. @param startTime start time of task attempt as reported by task tracker.
  22064. @param hostName host name of the task attempt.
  22065. @deprecated Use
  22066. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  22067. </doc>
  22068. </method>
  22069. <method name="logStarted"
  22070. abstract="false" native="false" synchronized="false"
  22071. static="true" final="false" visibility="public"
  22072. deprecated="not deprecated">
  22073. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22074. <param name="startTime" type="long"/>
  22075. <param name="trackerName" type="java.lang.String"/>
  22076. <param name="httpPort" type="int"/>
  22077. <param name="taskType" type="java.lang.String"/>
  22078. <doc>
  22079. <![CDATA[Log start time of this map task attempt.
  22080. @param taskAttemptId task attempt id
  22081. @param startTime start time of task attempt as reported by task tracker.
  22082. @param trackerName name of the tracker executing the task attempt.
  22083. @param httpPort http port of the task tracker executing the task attempt
  22084. @param taskType Whether the attempt is cleanup or setup or map]]>
  22085. </doc>
  22086. </method>
  22087. <method name="logFinished"
  22088. abstract="false" native="false" synchronized="false"
  22089. static="true" final="false" visibility="public"
  22090. deprecated="Use
  22091. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}">
  22092. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22093. <param name="finishTime" type="long"/>
  22094. <param name="hostName" type="java.lang.String"/>
  22095. <doc>
  22096. <![CDATA[Log finish time of map task attempt.
  22097. @param taskAttemptId task attempt id
  22098. @param finishTime finish time
  22099. @param hostName host name
  22100. @deprecated Use
  22101. {@link #logFinished(TaskAttemptID, long, String, String, String, Counters)}]]>
  22102. </doc>
  22103. </method>
  22104. <method name="logFinished"
  22105. abstract="false" native="false" synchronized="false"
  22106. static="true" final="false" visibility="public"
  22107. deprecated="not deprecated">
  22108. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22109. <param name="finishTime" type="long"/>
  22110. <param name="hostName" type="java.lang.String"/>
  22111. <param name="taskType" type="java.lang.String"/>
  22112. <param name="stateString" type="java.lang.String"/>
  22113. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  22114. <doc>
  22115. <![CDATA[Log finish time of map task attempt.
  22116. @param taskAttemptId task attempt id
  22117. @param finishTime finish time
  22118. @param hostName host name
  22119. @param taskType Whether the attempt is cleanup or setup or map
  22120. @param stateString state string of the task attempt
  22121. @param counter counters of the task attempt]]>
  22122. </doc>
  22123. </method>
  22124. <method name="logFailed"
  22125. abstract="false" native="false" synchronized="false"
  22126. static="true" final="false" visibility="public"
  22127. deprecated="Use
  22128. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  22129. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22130. <param name="timestamp" type="long"/>
  22131. <param name="hostName" type="java.lang.String"/>
  22132. <param name="error" type="java.lang.String"/>
  22133. <doc>
  22134. <![CDATA[Log task attempt failed event.
  22135. @param taskAttemptId task attempt id
  22136. @param timestamp timestamp
  22137. @param hostName hostname of this task attempt.
  22138. @param error error message if any for this task attempt.
  22139. @deprecated Use
  22140. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  22141. </doc>
  22142. </method>
  22143. <method name="logFailed"
  22144. abstract="false" native="false" synchronized="false"
  22145. static="true" final="false" visibility="public"
  22146. deprecated="not deprecated">
  22147. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22148. <param name="timestamp" type="long"/>
  22149. <param name="hostName" type="java.lang.String"/>
  22150. <param name="error" type="java.lang.String"/>
  22151. <param name="taskType" type="java.lang.String"/>
  22152. <doc>
  22153. <![CDATA[Log task attempt failed event.
  22154. @param taskAttemptId task attempt id
  22155. @param timestamp timestamp
  22156. @param hostName hostname of this task attempt.
  22157. @param error error message if any for this task attempt.
  22158. @param taskType Whether the attempt is cleanup or setup or map]]>
  22159. </doc>
  22160. </method>
  22161. <method name="logKilled"
  22162. abstract="false" native="false" synchronized="false"
  22163. static="true" final="false" visibility="public"
  22164. deprecated="Use
  22165. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  22166. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22167. <param name="timestamp" type="long"/>
  22168. <param name="hostName" type="java.lang.String"/>
  22169. <param name="error" type="java.lang.String"/>
  22170. <doc>
  22171. <![CDATA[Log task attempt killed event.
  22172. @param taskAttemptId task attempt id
  22173. @param timestamp timestamp
  22174. @param hostName hostname of this task attempt.
  22175. @param error error message if any for this task attempt.
  22176. @deprecated Use
  22177. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  22178. </doc>
  22179. </method>
  22180. <method name="logKilled"
  22181. abstract="false" native="false" synchronized="false"
  22182. static="true" final="false" visibility="public"
  22183. deprecated="not deprecated">
  22184. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22185. <param name="timestamp" type="long"/>
  22186. <param name="hostName" type="java.lang.String"/>
  22187. <param name="error" type="java.lang.String"/>
  22188. <param name="taskType" type="java.lang.String"/>
  22189. <doc>
  22190. <![CDATA[Log task attempt killed event.
  22191. @param taskAttemptId task attempt id
  22192. @param timestamp timestamp
  22193. @param hostName hostname of this task attempt.
  22194. @param error error message if any for this task attempt.
  22195. @param taskType Whether the attempt is cleanup or setup or map]]>
  22196. </doc>
  22197. </method>
  22198. <doc>
  22199. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  22200. a Map Attempt on a node.]]>
  22201. </doc>
  22202. </class>
  22203. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  22204. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  22205. <class name="JobHistory.RecordTypes" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.RecordTypes&gt;"
  22206. abstract="false"
  22207. static="true" final="true" visibility="public"
  22208. deprecated="not deprecated">
  22209. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  22210. abstract="false" native="false" synchronized="false"
  22211. static="true" final="false" visibility="public"
  22212. deprecated="not deprecated">
  22213. </method>
  22214. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  22215. abstract="false" native="false" synchronized="false"
  22216. static="true" final="false" visibility="public"
  22217. deprecated="not deprecated">
  22218. <param name="name" type="java.lang.String"/>
  22219. </method>
  22220. <doc>
  22221. <![CDATA[Record types are identifiers for each line of log in history files.
  22222. A record type appears as the first token in a single line of log.]]>
  22223. </doc>
  22224. </class>
  22225. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  22226. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  22227. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  22228. abstract="false"
  22229. static="true" final="false" visibility="public"
  22230. deprecated="not deprecated">
  22231. <constructor name="JobHistory.ReduceAttempt"
  22232. static="false" final="false" visibility="public"
  22233. deprecated="not deprecated">
  22234. </constructor>
  22235. <method name="logStarted"
  22236. abstract="false" native="false" synchronized="false"
  22237. static="true" final="false" visibility="public"
  22238. deprecated="Use
  22239. {@link #logStarted(TaskAttemptID, long, String, int, String)}">
  22240. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22241. <param name="startTime" type="long"/>
  22242. <param name="hostName" type="java.lang.String"/>
  22243. <doc>
  22244. <![CDATA[Log start time of Reduce task attempt.
  22245. @param taskAttemptId task attempt id
  22246. @param startTime start time
  22247. @param hostName host name
  22248. @deprecated Use
  22249. {@link #logStarted(TaskAttemptID, long, String, int, String)}]]>
  22250. </doc>
  22251. </method>
  22252. <method name="logStarted"
  22253. abstract="false" native="false" synchronized="false"
  22254. static="true" final="false" visibility="public"
  22255. deprecated="not deprecated">
  22256. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22257. <param name="startTime" type="long"/>
  22258. <param name="trackerName" type="java.lang.String"/>
  22259. <param name="httpPort" type="int"/>
  22260. <param name="taskType" type="java.lang.String"/>
  22261. <doc>
  22262. <![CDATA[Log start time of Reduce task attempt.
  22263. @param taskAttemptId task attempt id
  22264. @param startTime start time
  22265. @param trackerName tracker name
  22266. @param httpPort the http port of the tracker executing the task attempt
  22267. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  22268. </doc>
  22269. </method>
  22270. <method name="logFinished"
  22271. abstract="false" native="false" synchronized="false"
  22272. static="true" final="false" visibility="public"
  22273. deprecated="Use
  22274. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}">
  22275. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22276. <param name="shuffleFinished" type="long"/>
  22277. <param name="sortFinished" type="long"/>
  22278. <param name="finishTime" type="long"/>
  22279. <param name="hostName" type="java.lang.String"/>
  22280. <doc>
  22281. <![CDATA[Log finished event of this task.
  22282. @param taskAttemptId task attempt id
  22283. @param shuffleFinished shuffle finish time
  22284. @param sortFinished sort finish time
  22285. @param finishTime finish time of task
  22286. @param hostName host name where task attempt executed
  22287. @deprecated Use
  22288. {@link #logFinished(TaskAttemptID, long, long, long, String, String, String, Counters)}]]>
  22289. </doc>
  22290. </method>
  22291. <method name="logFinished"
  22292. abstract="false" native="false" synchronized="false"
  22293. static="true" final="false" visibility="public"
  22294. deprecated="not deprecated">
  22295. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22296. <param name="shuffleFinished" type="long"/>
  22297. <param name="sortFinished" type="long"/>
  22298. <param name="finishTime" type="long"/>
  22299. <param name="hostName" type="java.lang.String"/>
  22300. <param name="taskType" type="java.lang.String"/>
  22301. <param name="stateString" type="java.lang.String"/>
  22302. <param name="counter" type="org.apache.hadoop.mapred.Counters"/>
  22303. <doc>
  22304. <![CDATA[Log finished event of this task.
  22305. @param taskAttemptId task attempt id
  22306. @param shuffleFinished shuffle finish time
  22307. @param sortFinished sort finish time
  22308. @param finishTime finish time of task
  22309. @param hostName host name where task attempt executed
  22310. @param taskType Whether the attempt is cleanup or setup or reduce
  22311. @param stateString the state string of the attempt
  22312. @param counter counters of the attempt]]>
  22313. </doc>
  22314. </method>
  22315. <method name="logFailed"
  22316. abstract="false" native="false" synchronized="false"
  22317. static="true" final="false" visibility="public"
  22318. deprecated="Use
  22319. {@link #logFailed(TaskAttemptID, long, String, String, String)}">
  22320. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22321. <param name="timestamp" type="long"/>
  22322. <param name="hostName" type="java.lang.String"/>
  22323. <param name="error" type="java.lang.String"/>
  22324. <doc>
  22325. <![CDATA[Log failed reduce task attempt.
  22326. @param taskAttemptId task attempt id
  22327. @param timestamp time stamp when task failed
  22328. @param hostName host name of the task attempt.
  22329. @param error error message of the task.
  22330. @deprecated Use
  22331. {@link #logFailed(TaskAttemptID, long, String, String, String)}]]>
  22332. </doc>
  22333. </method>
  22334. <method name="logFailed"
  22335. abstract="false" native="false" synchronized="false"
  22336. static="true" final="false" visibility="public"
  22337. deprecated="not deprecated">
  22338. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22339. <param name="timestamp" type="long"/>
  22340. <param name="hostName" type="java.lang.String"/>
  22341. <param name="error" type="java.lang.String"/>
  22342. <param name="taskType" type="java.lang.String"/>
  22343. <doc>
  22344. <![CDATA[Log failed reduce task attempt.
  22345. @param taskAttemptId task attempt id
  22346. @param timestamp time stamp when task failed
  22347. @param hostName host name of the task attempt.
  22348. @param error error message of the task.
  22349. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  22350. </doc>
  22351. </method>
  22352. <method name="logKilled"
  22353. abstract="false" native="false" synchronized="false"
  22354. static="true" final="false" visibility="public"
  22355. deprecated="Use
  22356. {@link #logKilled(TaskAttemptID, long, String, String, String)}">
  22357. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22358. <param name="timestamp" type="long"/>
  22359. <param name="hostName" type="java.lang.String"/>
  22360. <param name="error" type="java.lang.String"/>
  22361. <doc>
  22362. <![CDATA[Log killed reduce task attempt.
  22363. @param taskAttemptId task attempt id
  22364. @param timestamp time stamp when task failed
  22365. @param hostName host name of the task attempt.
  22366. @param error error message of the task.
  22367. @deprecated Use
  22368. {@link #logKilled(TaskAttemptID, long, String, String, String)}]]>
  22369. </doc>
  22370. </method>
  22371. <method name="logKilled"
  22372. abstract="false" native="false" synchronized="false"
  22373. static="true" final="false" visibility="public"
  22374. deprecated="not deprecated">
  22375. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22376. <param name="timestamp" type="long"/>
  22377. <param name="hostName" type="java.lang.String"/>
  22378. <param name="error" type="java.lang.String"/>
  22379. <param name="taskType" type="java.lang.String"/>
  22380. <doc>
  22381. <![CDATA[Log killed reduce task attempt.
  22382. @param taskAttemptId task attempt id
  22383. @param timestamp time stamp when task failed
  22384. @param hostName host name of the task attempt.
  22385. @param error error message of the task.
  22386. @param taskType Whether the attempt is cleanup or setup or reduce]]>
  22387. </doc>
  22388. </method>
  22389. <doc>
  22390. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  22391. a Map Attempt on a node.]]>
  22392. </doc>
  22393. </class>
  22394. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  22395. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  22396. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  22397. abstract="false"
  22398. static="true" final="false" visibility="public"
  22399. deprecated="not deprecated">
  22400. <constructor name="JobHistory.Task"
  22401. static="false" final="false" visibility="public"
  22402. deprecated="not deprecated">
  22403. </constructor>
  22404. <method name="logStarted"
  22405. abstract="false" native="false" synchronized="false"
  22406. static="true" final="false" visibility="public"
  22407. deprecated="not deprecated">
  22408. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  22409. <param name="taskType" type="java.lang.String"/>
  22410. <param name="startTime" type="long"/>
  22411. <param name="splitLocations" type="java.lang.String"/>
  22412. <doc>
  22413. <![CDATA[Log start time of task (TIP).
  22414. @param taskId task id
  22415. @param taskType MAP or REDUCE
  22416. @param startTime startTime of tip.]]>
  22417. </doc>
  22418. </method>
  22419. <method name="logFinished"
  22420. abstract="false" native="false" synchronized="false"
  22421. static="true" final="false" visibility="public"
  22422. deprecated="not deprecated">
  22423. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  22424. <param name="taskType" type="java.lang.String"/>
  22425. <param name="finishTime" type="long"/>
  22426. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  22427. <doc>
  22428. <![CDATA[Log finish time of task.
  22429. @param taskId task id
  22430. @param taskType MAP or REDUCE
  22431. @param finishTime finish timeof task in ms]]>
  22432. </doc>
  22433. </method>
  22434. <method name="logFailed"
  22435. abstract="false" native="false" synchronized="false"
  22436. static="true" final="false" visibility="public"
  22437. deprecated="not deprecated">
  22438. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  22439. <param name="taskType" type="java.lang.String"/>
  22440. <param name="time" type="long"/>
  22441. <param name="error" type="java.lang.String"/>
  22442. <doc>
  22443. <![CDATA[Log job failed event.
  22444. @param taskId task id
  22445. @param taskType MAP or REDUCE.
  22446. @param time timestamp when job failed detected.
  22447. @param error error message for failure.]]>
  22448. </doc>
  22449. </method>
  22450. <method name="logFailed"
  22451. abstract="false" native="false" synchronized="false"
  22452. static="true" final="false" visibility="public"
  22453. deprecated="not deprecated">
  22454. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  22455. <param name="taskType" type="java.lang.String"/>
  22456. <param name="time" type="long"/>
  22457. <param name="error" type="java.lang.String"/>
  22458. <param name="failedDueToAttempt" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  22459. <doc>
  22460. <![CDATA[@param failedDueToAttempt The attempt that caused the failure, if any]]>
  22461. </doc>
  22462. </method>
  22463. <method name="getTaskAttempts" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.TaskAttempt&gt;"
  22464. abstract="false" native="false" synchronized="false"
  22465. static="false" final="false" visibility="public"
  22466. deprecated="not deprecated">
  22467. <doc>
  22468. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  22469. </doc>
  22470. </method>
  22471. <doc>
  22472. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  22473. All events logged by this class are logged in a separate file per job in
  22474. job tracker history. These events map to TIPs in jobtracker.]]>
  22475. </doc>
  22476. </class>
  22477. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  22478. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  22479. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  22480. abstract="false"
  22481. static="true" final="false" visibility="public"
  22482. deprecated="not deprecated">
  22483. <constructor name="JobHistory.TaskAttempt"
  22484. static="false" final="false" visibility="public"
  22485. deprecated="not deprecated">
  22486. </constructor>
  22487. <doc>
  22488. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  22489. </doc>
  22490. </class>
  22491. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  22492. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  22493. <class name="JobHistory.Values" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Values&gt;"
  22494. abstract="false"
  22495. static="true" final="true" visibility="public"
  22496. deprecated="not deprecated">
  22497. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  22498. abstract="false" native="false" synchronized="false"
  22499. static="true" final="false" visibility="public"
  22500. deprecated="not deprecated">
  22501. </method>
  22502. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  22503. abstract="false" native="false" synchronized="false"
  22504. static="true" final="false" visibility="public"
  22505. deprecated="not deprecated">
  22506. <param name="name" type="java.lang.String"/>
  22507. </method>
  22508. <doc>
  22509. <![CDATA[This enum contains some of the values commonly used by history log events.
  22510. since values in history can only be strings - Values.name() is used in
  22511. most places in history file.]]>
  22512. </doc>
  22513. </class>
  22514. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  22515. <!-- start class org.apache.hadoop.mapred.JobID -->
  22516. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  22517. abstract="false"
  22518. static="false" final="false" visibility="public"
  22519. deprecated="not deprecated">
  22520. <constructor name="JobID" type="java.lang.String, int"
  22521. static="false" final="false" visibility="public"
  22522. deprecated="not deprecated">
  22523. <doc>
  22524. <![CDATA[Constructs a JobID object
  22525. @param jtIdentifier jobTracker identifier
  22526. @param id job number]]>
  22527. </doc>
  22528. </constructor>
  22529. <method name="getJtIdentifier" return="java.lang.String"
  22530. abstract="false" native="false" synchronized="false"
  22531. static="false" final="false" visibility="public"
  22532. deprecated="not deprecated">
  22533. </method>
  22534. <method name="equals" return="boolean"
  22535. abstract="false" native="false" synchronized="false"
  22536. static="false" final="false" visibility="public"
  22537. deprecated="not deprecated">
  22538. <param name="o" type="java.lang.Object"/>
  22539. </method>
  22540. <method name="compareTo" return="int"
  22541. abstract="false" native="false" synchronized="false"
  22542. static="false" final="false" visibility="public"
  22543. deprecated="not deprecated">
  22544. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  22545. <doc>
  22546. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  22547. </doc>
  22548. </method>
  22549. <method name="toString" return="java.lang.String"
  22550. abstract="false" native="false" synchronized="false"
  22551. static="false" final="false" visibility="public"
  22552. deprecated="not deprecated">
  22553. </method>
  22554. <method name="hashCode" return="int"
  22555. abstract="false" native="false" synchronized="false"
  22556. static="false" final="false" visibility="public"
  22557. deprecated="not deprecated">
  22558. </method>
  22559. <method name="readFields"
  22560. abstract="false" native="false" synchronized="false"
  22561. static="false" final="false" visibility="public"
  22562. deprecated="not deprecated">
  22563. <param name="in" type="java.io.DataInput"/>
  22564. <exception name="IOException" type="java.io.IOException"/>
  22565. </method>
  22566. <method name="write"
  22567. abstract="false" native="false" synchronized="false"
  22568. static="false" final="false" visibility="public"
  22569. deprecated="not deprecated">
  22570. <param name="out" type="java.io.DataOutput"/>
  22571. <exception name="IOException" type="java.io.IOException"/>
  22572. </method>
  22573. <method name="read" return="org.apache.hadoop.mapred.JobID"
  22574. abstract="false" native="false" synchronized="false"
  22575. static="true" final="false" visibility="public"
  22576. deprecated="not deprecated">
  22577. <param name="in" type="java.io.DataInput"/>
  22578. <exception name="IOException" type="java.io.IOException"/>
  22579. </method>
  22580. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  22581. abstract="false" native="false" synchronized="false"
  22582. static="true" final="false" visibility="public"
  22583. deprecated="not deprecated">
  22584. <param name="str" type="java.lang.String"/>
  22585. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  22586. <doc>
  22587. <![CDATA[Construct a JobId object from given string
  22588. @return constructed JobId object or null if the given String is null
  22589. @throws IllegalArgumentException if the given string is malformed]]>
  22590. </doc>
  22591. </method>
  22592. <method name="getJobIDsPattern" return="java.lang.String"
  22593. abstract="false" native="false" synchronized="false"
  22594. static="true" final="false" visibility="public"
  22595. deprecated="not deprecated">
  22596. <param name="jtIdentifier" type="java.lang.String"/>
  22597. <param name="jobId" type="java.lang.Integer"/>
  22598. <doc>
  22599. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  22600. be given null, in which case that part of the regex will be generic.
  22601. For example to obtain a regex matching <i>any job</i>
  22602. run on the jobtracker started at <i>200707121733</i>, we would use :
  22603. <pre>
  22604. JobID.getTaskIDsPattern("200707121733", null);
  22605. </pre>
  22606. which will return :
  22607. <pre> "job_200707121733_[0-9]*" </pre>
  22608. @param jtIdentifier jobTracker identifier, or null
  22609. @param jobId job number, or null
  22610. @return a regex pattern matching JobIDs]]>
  22611. </doc>
  22612. </method>
  22613. <doc>
  22614. <![CDATA[JobID represents the immutable and unique identifier for
  22615. the job. JobID consists of two parts. First part
  22616. represents the jobtracker identifier, so that jobID to jobtracker map
  22617. is defined. For cluster setup this string is the jobtracker
  22618. start time, for local setting, it is "local".
  22619. Second part of the JobID is the job number. <br>
  22620. An example JobID is :
  22621. <code>job_200707121733_0003</code> , which represents the third job
  22622. running at the jobtracker started at <code>200707121733</code>.
  22623. <p>
  22624. Applications should never construct or parse JobID strings, but rather
  22625. use appropriate constructors or {@link #forName(String)} method.
  22626. @see TaskID
  22627. @see TaskAttemptID
  22628. @see JobTracker#getNewJobId()
  22629. @see JobTracker#getStartTime()]]>
  22630. </doc>
  22631. </class>
  22632. <!-- end class org.apache.hadoop.mapred.JobID -->
  22633. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  22634. <class name="JobPriority" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobPriority&gt;"
  22635. abstract="false"
  22636. static="false" final="true" visibility="public"
  22637. deprecated="not deprecated">
  22638. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  22639. abstract="false" native="false" synchronized="false"
  22640. static="true" final="false" visibility="public"
  22641. deprecated="not deprecated">
  22642. </method>
  22643. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  22644. abstract="false" native="false" synchronized="false"
  22645. static="true" final="false" visibility="public"
  22646. deprecated="not deprecated">
  22647. <param name="name" type="java.lang.String"/>
  22648. </method>
  22649. <doc>
  22650. <![CDATA[Used to describe the priority of the running job.]]>
  22651. </doc>
  22652. </class>
  22653. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  22654. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  22655. <class name="JobProfile" extends="java.lang.Object"
  22656. abstract="false"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="not deprecated">
  22659. <implements name="org.apache.hadoop.io.Writable"/>
  22660. <constructor name="JobProfile"
  22661. static="false" final="false" visibility="public"
  22662. deprecated="not deprecated">
  22663. <doc>
  22664. <![CDATA[Construct an empty {@link JobProfile}.]]>
  22665. </doc>
  22666. </constructor>
  22667. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapred.JobID, java.lang.String, java.lang.String, java.lang.String"
  22668. static="false" final="false" visibility="public"
  22669. deprecated="not deprecated">
  22670. <doc>
  22671. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  22672. job config-file, job-details url and job name.
  22673. @param user userid of the person who submitted the job.
  22674. @param jobid id of the job.
  22675. @param jobFile job configuration file.
  22676. @param url link to the web-ui for details of the job.
  22677. @param name user-specified job name.]]>
  22678. </doc>
  22679. </constructor>
  22680. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapred.JobID, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  22681. static="false" final="false" visibility="public"
  22682. deprecated="not deprecated">
  22683. <doc>
  22684. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  22685. job config-file, job-details url and job name.
  22686. @param user userid of the person who submitted the job.
  22687. @param jobid id of the job.
  22688. @param jobFile job configuration file.
  22689. @param url link to the web-ui for details of the job.
  22690. @param name user-specified job name.
  22691. @param queueName name of the queue to which the job is submitted]]>
  22692. </doc>
  22693. </constructor>
  22694. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  22695. static="false" final="false" visibility="public"
  22696. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  22697. <doc>
  22698. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  22699. </doc>
  22700. </constructor>
  22701. <method name="getUser" return="java.lang.String"
  22702. abstract="false" native="false" synchronized="false"
  22703. static="false" final="false" visibility="public"
  22704. deprecated="not deprecated">
  22705. <doc>
  22706. <![CDATA[Get the user id.]]>
  22707. </doc>
  22708. </method>
  22709. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  22710. abstract="false" native="false" synchronized="false"
  22711. static="false" final="false" visibility="public"
  22712. deprecated="not deprecated">
  22713. <doc>
  22714. <![CDATA[Get the job id.]]>
  22715. </doc>
  22716. </method>
  22717. <method name="getJobId" return="java.lang.String"
  22718. abstract="false" native="false" synchronized="false"
  22719. static="false" final="false" visibility="public"
  22720. deprecated="use getJobID() instead">
  22721. <doc>
  22722. <![CDATA[@deprecated use getJobID() instead]]>
  22723. </doc>
  22724. </method>
  22725. <method name="getJobFile" return="java.lang.String"
  22726. abstract="false" native="false" synchronized="false"
  22727. static="false" final="false" visibility="public"
  22728. deprecated="not deprecated">
  22729. <doc>
  22730. <![CDATA[Get the configuration file for the job.]]>
  22731. </doc>
  22732. </method>
  22733. <method name="getURL" return="java.net.URL"
  22734. abstract="false" native="false" synchronized="false"
  22735. static="false" final="false" visibility="public"
  22736. deprecated="not deprecated">
  22737. <doc>
  22738. <![CDATA[Get the link to the web-ui for details of the job.]]>
  22739. </doc>
  22740. </method>
  22741. <method name="getJobName" return="java.lang.String"
  22742. abstract="false" native="false" synchronized="false"
  22743. static="false" final="false" visibility="public"
  22744. deprecated="not deprecated">
  22745. <doc>
  22746. <![CDATA[Get the user-specified job name.]]>
  22747. </doc>
  22748. </method>
  22749. <method name="getQueueName" 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[Get the name of the queue to which the job is submitted.
  22755. @return name of the queue.]]>
  22756. </doc>
  22757. </method>
  22758. <method name="write"
  22759. abstract="false" native="false" synchronized="false"
  22760. static="false" final="false" visibility="public"
  22761. deprecated="not deprecated">
  22762. <param name="out" type="java.io.DataOutput"/>
  22763. <exception name="IOException" type="java.io.IOException"/>
  22764. </method>
  22765. <method name="readFields"
  22766. abstract="false" native="false" synchronized="false"
  22767. static="false" final="false" visibility="public"
  22768. deprecated="not deprecated">
  22769. <param name="in" type="java.io.DataInput"/>
  22770. <exception name="IOException" type="java.io.IOException"/>
  22771. </method>
  22772. <doc>
  22773. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  22774. whether living or dead.]]>
  22775. </doc>
  22776. </class>
  22777. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  22778. <!-- start class org.apache.hadoop.mapred.JobQueueInfo -->
  22779. <class name="JobQueueInfo" extends="java.lang.Object"
  22780. abstract="false"
  22781. static="false" final="false" visibility="public"
  22782. deprecated="not deprecated">
  22783. <implements name="org.apache.hadoop.io.Writable"/>
  22784. <constructor name="JobQueueInfo"
  22785. static="false" final="false" visibility="public"
  22786. deprecated="not deprecated">
  22787. <doc>
  22788. <![CDATA[Default constructor for Job Queue Info.]]>
  22789. </doc>
  22790. </constructor>
  22791. <constructor name="JobQueueInfo" type="java.lang.String, java.lang.String"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. <doc>
  22795. <![CDATA[Construct a new JobQueueInfo object using the queue name and the
  22796. scheduling information passed.
  22797. @param queueName Name of the job queue
  22798. @param schedulingInfo Scheduling Information associated with the job
  22799. queue]]>
  22800. </doc>
  22801. </constructor>
  22802. <method name="setQueueName"
  22803. abstract="false" native="false" synchronized="false"
  22804. static="false" final="false" visibility="public"
  22805. deprecated="not deprecated">
  22806. <param name="queueName" type="java.lang.String"/>
  22807. <doc>
  22808. <![CDATA[Set the queue name of the JobQueueInfo
  22809. @param queueName Name of the job queue.]]>
  22810. </doc>
  22811. </method>
  22812. <method name="getQueueName" return="java.lang.String"
  22813. abstract="false" native="false" synchronized="false"
  22814. static="false" final="false" visibility="public"
  22815. deprecated="not deprecated">
  22816. <doc>
  22817. <![CDATA[Get the queue name from JobQueueInfo
  22818. @return queue name]]>
  22819. </doc>
  22820. </method>
  22821. <method name="setSchedulingInfo"
  22822. abstract="false" native="false" synchronized="false"
  22823. static="false" final="false" visibility="public"
  22824. deprecated="not deprecated">
  22825. <param name="schedulingInfo" type="java.lang.String"/>
  22826. <doc>
  22827. <![CDATA[Set the scheduling information associated to particular job queue
  22828. @param schedulingInfo]]>
  22829. </doc>
  22830. </method>
  22831. <method name="getSchedulingInfo" return="java.lang.String"
  22832. abstract="false" native="false" synchronized="false"
  22833. static="false" final="false" visibility="public"
  22834. deprecated="not deprecated">
  22835. <doc>
  22836. <![CDATA[Gets the scheduling information associated to particular job queue.
  22837. If nothing is set would return <b>"N/A"</b>
  22838. @return Scheduling information associated to particular Job Queue]]>
  22839. </doc>
  22840. </method>
  22841. <method name="readFields"
  22842. abstract="false" native="false" synchronized="false"
  22843. static="false" final="false" visibility="public"
  22844. deprecated="not deprecated">
  22845. <param name="in" type="java.io.DataInput"/>
  22846. <exception name="IOException" type="java.io.IOException"/>
  22847. </method>
  22848. <method name="write"
  22849. abstract="false" native="false" synchronized="false"
  22850. static="false" final="false" visibility="public"
  22851. deprecated="not deprecated">
  22852. <param name="out" type="java.io.DataOutput"/>
  22853. <exception name="IOException" type="java.io.IOException"/>
  22854. </method>
  22855. <doc>
  22856. <![CDATA[Class that contains the information regarding the Job Queues which are
  22857. maintained by the Hadoop Map/Reduce framework.]]>
  22858. </doc>
  22859. </class>
  22860. <!-- end class org.apache.hadoop.mapred.JobQueueInfo -->
  22861. <!-- start class org.apache.hadoop.mapred.JobShell -->
  22862. <class name="JobShell" extends="org.apache.hadoop.conf.Configured"
  22863. abstract="false"
  22864. static="false" final="false" visibility="public"
  22865. deprecated="not deprecated">
  22866. <implements name="org.apache.hadoop.util.Tool"/>
  22867. <constructor name="JobShell"
  22868. static="false" final="false" visibility="public"
  22869. deprecated="not deprecated">
  22870. </constructor>
  22871. <constructor name="JobShell" type="org.apache.hadoop.conf.Configuration"
  22872. static="false" final="false" visibility="public"
  22873. deprecated="not deprecated">
  22874. </constructor>
  22875. <method name="init"
  22876. abstract="false" native="false" synchronized="false"
  22877. static="false" final="false" visibility="protected"
  22878. deprecated="not deprecated">
  22879. <exception name="IOException" type="java.io.IOException"/>
  22880. </method>
  22881. <method name="run" return="int"
  22882. abstract="false" native="false" synchronized="false"
  22883. static="false" final="false" visibility="public"
  22884. deprecated="not deprecated">
  22885. <param name="argv" type="java.lang.String[]"/>
  22886. <exception name="Exception" type="java.lang.Exception"/>
  22887. <doc>
  22888. <![CDATA[run method from Tool]]>
  22889. </doc>
  22890. </method>
  22891. <method name="main"
  22892. abstract="false" native="false" synchronized="false"
  22893. static="true" final="false" visibility="public"
  22894. deprecated="not deprecated">
  22895. <param name="argv" type="java.lang.String[]"/>
  22896. <exception name="Exception" type="java.lang.Exception"/>
  22897. </method>
  22898. <doc>
  22899. <![CDATA[Provide command line parsing for JobSubmission
  22900. job submission looks like
  22901. hadoop jar -libjars <comma seperated jars> -archives <comma seperated archives>
  22902. -files <comma seperated files> inputjar args]]>
  22903. </doc>
  22904. </class>
  22905. <!-- end class org.apache.hadoop.mapred.JobShell -->
  22906. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  22907. <class name="JobStatus" extends="java.lang.Object"
  22908. abstract="false"
  22909. static="false" final="false" visibility="public"
  22910. deprecated="not deprecated">
  22911. <implements name="org.apache.hadoop.io.Writable"/>
  22912. <implements name="java.lang.Cloneable"/>
  22913. <constructor name="JobStatus"
  22914. static="false" final="false" visibility="public"
  22915. deprecated="not deprecated">
  22916. </constructor>
  22917. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int"
  22918. static="false" final="false" visibility="public"
  22919. deprecated="not deprecated">
  22920. <doc>
  22921. <![CDATA[Create a job status object for a given jobid.
  22922. @param jobid The jobid of the job
  22923. @param mapProgress The progress made on the maps
  22924. @param reduceProgress The progress made on the reduces
  22925. @param cleanupProgress The progress made on cleanup
  22926. @param runState The current state of the job]]>
  22927. </doc>
  22928. </constructor>
  22929. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  22930. static="false" final="false" visibility="public"
  22931. deprecated="not deprecated">
  22932. <doc>
  22933. <![CDATA[Create a job status object for a given jobid.
  22934. @param jobid The jobid of the job
  22935. @param mapProgress The progress made on the maps
  22936. @param reduceProgress The progress made on the reduces
  22937. @param runState The current state of the job]]>
  22938. </doc>
  22939. </constructor>
  22940. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  22941. static="false" final="false" visibility="public"
  22942. deprecated="not deprecated">
  22943. <doc>
  22944. <![CDATA[Create a job status object for a given jobid.
  22945. @param jobid The jobid of the job
  22946. @param mapProgress The progress made on the maps
  22947. @param reduceProgress The progress made on the reduces
  22948. @param runState The current state of the job
  22949. @param jp Priority of the job.]]>
  22950. </doc>
  22951. </constructor>
  22952. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, float, float, int, org.apache.hadoop.mapred.JobPriority"
  22953. static="false" final="false" visibility="public"
  22954. deprecated="not deprecated">
  22955. <doc>
  22956. <![CDATA[Create a job status object for a given jobid.
  22957. @param jobid The jobid of the job
  22958. @param setupProgress The progress made on the setup
  22959. @param mapProgress The progress made on the maps
  22960. @param reduceProgress The progress made on the reduces
  22961. @param cleanupProgress The progress made on the cleanup
  22962. @param runState The current state of the job
  22963. @param jp Priority of the job.]]>
  22964. </doc>
  22965. </constructor>
  22966. <method name="getJobId" return="java.lang.String"
  22967. abstract="false" native="false" synchronized="false"
  22968. static="false" final="false" visibility="public"
  22969. deprecated="use getJobID instead">
  22970. <doc>
  22971. <![CDATA[@deprecated use getJobID instead]]>
  22972. </doc>
  22973. </method>
  22974. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  22975. abstract="false" native="false" synchronized="false"
  22976. static="false" final="false" visibility="public"
  22977. deprecated="not deprecated">
  22978. <doc>
  22979. <![CDATA[@return The jobid of the Job]]>
  22980. </doc>
  22981. </method>
  22982. <method name="mapProgress" return="float"
  22983. abstract="false" native="false" synchronized="true"
  22984. static="false" final="false" visibility="public"
  22985. deprecated="not deprecated">
  22986. <doc>
  22987. <![CDATA[@return Percentage of progress in maps]]>
  22988. </doc>
  22989. </method>
  22990. <method name="cleanupProgress" return="float"
  22991. abstract="false" native="false" synchronized="true"
  22992. static="false" final="false" visibility="public"
  22993. deprecated="not deprecated">
  22994. <doc>
  22995. <![CDATA[@return Percentage of progress in cleanup]]>
  22996. </doc>
  22997. </method>
  22998. <method name="setupProgress" return="float"
  22999. abstract="false" native="false" synchronized="true"
  23000. static="false" final="false" visibility="public"
  23001. deprecated="not deprecated">
  23002. <doc>
  23003. <![CDATA[@return Percentage of progress in setup]]>
  23004. </doc>
  23005. </method>
  23006. <method name="reduceProgress" return="float"
  23007. abstract="false" native="false" synchronized="true"
  23008. static="false" final="false" visibility="public"
  23009. deprecated="not deprecated">
  23010. <doc>
  23011. <![CDATA[@return Percentage of progress in reduce]]>
  23012. </doc>
  23013. </method>
  23014. <method name="getRunState" return="int"
  23015. abstract="false" native="false" synchronized="true"
  23016. static="false" final="false" visibility="public"
  23017. deprecated="not deprecated">
  23018. <doc>
  23019. <![CDATA[@return running state of the job]]>
  23020. </doc>
  23021. </method>
  23022. <method name="setRunState"
  23023. abstract="false" native="false" synchronized="true"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <param name="state" type="int"/>
  23027. <doc>
  23028. <![CDATA[Change the current run state of the job.]]>
  23029. </doc>
  23030. </method>
  23031. <method name="getStartTime" return="long"
  23032. abstract="false" native="false" synchronized="true"
  23033. static="false" final="false" visibility="public"
  23034. deprecated="not deprecated">
  23035. <doc>
  23036. <![CDATA[@return start time of the job]]>
  23037. </doc>
  23038. </method>
  23039. <method name="clone" return="java.lang.Object"
  23040. abstract="false" native="false" synchronized="false"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. </method>
  23044. <method name="getUsername" return="java.lang.String"
  23045. abstract="false" native="false" synchronized="true"
  23046. static="false" final="false" visibility="public"
  23047. deprecated="not deprecated">
  23048. <doc>
  23049. <![CDATA[@return the username of the job]]>
  23050. </doc>
  23051. </method>
  23052. <method name="getSchedulingInfo" return="java.lang.String"
  23053. abstract="false" native="false" synchronized="true"
  23054. static="false" final="false" visibility="public"
  23055. deprecated="not deprecated">
  23056. <doc>
  23057. <![CDATA[Gets the Scheduling information associated to a particular Job.
  23058. @return the scheduling information of the job]]>
  23059. </doc>
  23060. </method>
  23061. <method name="setSchedulingInfo"
  23062. abstract="false" native="false" synchronized="true"
  23063. static="false" final="false" visibility="public"
  23064. deprecated="not deprecated">
  23065. <param name="schedulingInfo" type="java.lang.String"/>
  23066. <doc>
  23067. <![CDATA[Used to set the scheduling information associated to a particular Job.
  23068. @param schedulingInfo Scheduling information of the job]]>
  23069. </doc>
  23070. </method>
  23071. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  23072. abstract="false" native="false" synchronized="true"
  23073. static="false" final="false" visibility="public"
  23074. deprecated="not deprecated">
  23075. <doc>
  23076. <![CDATA[Return the priority of the job
  23077. @return job priority]]>
  23078. </doc>
  23079. </method>
  23080. <method name="setJobPriority"
  23081. abstract="false" native="false" synchronized="true"
  23082. static="false" final="false" visibility="public"
  23083. deprecated="not deprecated">
  23084. <param name="jp" type="org.apache.hadoop.mapred.JobPriority"/>
  23085. <doc>
  23086. <![CDATA[Set the priority of the job, defaulting to NORMAL.
  23087. @param jp new job priority]]>
  23088. </doc>
  23089. </method>
  23090. <method name="write"
  23091. abstract="false" native="false" synchronized="true"
  23092. static="false" final="false" visibility="public"
  23093. deprecated="not deprecated">
  23094. <param name="out" type="java.io.DataOutput"/>
  23095. <exception name="IOException" type="java.io.IOException"/>
  23096. </method>
  23097. <method name="readFields"
  23098. abstract="false" native="false" synchronized="true"
  23099. static="false" final="false" visibility="public"
  23100. deprecated="not deprecated">
  23101. <param name="in" type="java.io.DataInput"/>
  23102. <exception name="IOException" type="java.io.IOException"/>
  23103. </method>
  23104. <field name="RUNNING" type="int"
  23105. transient="false" volatile="false"
  23106. static="true" final="true" visibility="public"
  23107. deprecated="not deprecated">
  23108. </field>
  23109. <field name="SUCCEEDED" type="int"
  23110. transient="false" volatile="false"
  23111. static="true" final="true" visibility="public"
  23112. deprecated="not deprecated">
  23113. </field>
  23114. <field name="FAILED" type="int"
  23115. transient="false" volatile="false"
  23116. static="true" final="true" visibility="public"
  23117. deprecated="not deprecated">
  23118. </field>
  23119. <field name="PREP" type="int"
  23120. transient="false" volatile="false"
  23121. static="true" final="true" visibility="public"
  23122. deprecated="not deprecated">
  23123. </field>
  23124. <field name="KILLED" type="int"
  23125. transient="false" volatile="false"
  23126. static="true" final="true" visibility="public"
  23127. deprecated="not deprecated">
  23128. </field>
  23129. <doc>
  23130. <![CDATA[Describes the current status of a job. This is
  23131. not intended to be a comprehensive piece of data.
  23132. For that, look at JobProfile.]]>
  23133. </doc>
  23134. </class>
  23135. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  23136. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  23137. <class name="JobTracker" extends="java.lang.Object"
  23138. abstract="false"
  23139. static="false" final="false" visibility="public"
  23140. deprecated="not deprecated">
  23141. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  23142. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  23143. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  23144. <implements name="org.apache.hadoop.mapred.TaskTrackerManager"/>
  23145. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  23146. abstract="false" native="false" synchronized="false"
  23147. static="true" final="false" visibility="public"
  23148. deprecated="not deprecated">
  23149. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23150. <exception name="IOException" type="java.io.IOException"/>
  23151. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23152. <doc>
  23153. <![CDATA[Start the JobTracker with given configuration.
  23154. The conf will be modified to reflect the actual ports on which
  23155. the JobTracker is up and running if the user passes the port as
  23156. <code>zero</code>.
  23157. @param conf configuration for the JobTracker.
  23158. @throws IOException]]>
  23159. </doc>
  23160. </method>
  23161. <method name="stopTracker"
  23162. abstract="false" native="false" synchronized="false"
  23163. static="false" final="false" visibility="public"
  23164. deprecated="not deprecated">
  23165. <exception name="IOException" type="java.io.IOException"/>
  23166. </method>
  23167. <method name="getProtocolVersion" return="long"
  23168. abstract="false" native="false" synchronized="false"
  23169. static="false" final="false" visibility="public"
  23170. deprecated="not deprecated">
  23171. <param name="protocol" type="java.lang.String"/>
  23172. <param name="clientVersion" type="long"/>
  23173. <exception name="IOException" type="java.io.IOException"/>
  23174. </method>
  23175. <method name="hasRestarted" return="boolean"
  23176. abstract="false" native="false" synchronized="false"
  23177. static="false" final="false" visibility="public"
  23178. deprecated="not deprecated">
  23179. <doc>
  23180. <![CDATA[Whether the JT has restarted]]>
  23181. </doc>
  23182. </method>
  23183. <method name="hasRecovered" return="boolean"
  23184. abstract="false" native="false" synchronized="false"
  23185. static="false" final="false" visibility="public"
  23186. deprecated="not deprecated">
  23187. <doc>
  23188. <![CDATA[Whether the JT has recovered upon restart]]>
  23189. </doc>
  23190. </method>
  23191. <method name="getRecoveryDuration" return="long"
  23192. abstract="false" native="false" synchronized="false"
  23193. static="false" final="false" visibility="public"
  23194. deprecated="not deprecated">
  23195. <doc>
  23196. <![CDATA[How long the jobtracker took to recover from restart.]]>
  23197. </doc>
  23198. </method>
  23199. <method name="getInstrumentationClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.JobTrackerInstrumentation&gt;"
  23200. abstract="false" native="false" synchronized="false"
  23201. static="true" final="false" visibility="public"
  23202. deprecated="not deprecated">
  23203. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23204. </method>
  23205. <method name="setInstrumentationClass"
  23206. abstract="false" native="false" synchronized="false"
  23207. static="true" final="false" visibility="public"
  23208. deprecated="not deprecated">
  23209. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23210. <param name="t" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.JobTrackerInstrumentation&gt;"/>
  23211. </method>
  23212. <method name="getAddress" return="java.net.InetSocketAddress"
  23213. abstract="false" native="false" synchronized="false"
  23214. static="true" final="false" visibility="public"
  23215. deprecated="not deprecated">
  23216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23217. </method>
  23218. <method name="offerService"
  23219. abstract="false" native="false" synchronized="false"
  23220. static="false" final="false" visibility="public"
  23221. deprecated="not deprecated">
  23222. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23223. <exception name="IOException" type="java.io.IOException"/>
  23224. <doc>
  23225. <![CDATA[Run forever]]>
  23226. </doc>
  23227. </method>
  23228. <method name="getTotalSubmissions" return="int"
  23229. abstract="false" native="false" synchronized="false"
  23230. static="false" final="false" visibility="public"
  23231. deprecated="not deprecated">
  23232. </method>
  23233. <method name="getJobTrackerMachine" return="java.lang.String"
  23234. abstract="false" native="false" synchronized="false"
  23235. static="false" final="false" visibility="public"
  23236. deprecated="not deprecated">
  23237. </method>
  23238. <method name="getTrackerIdentifier" return="java.lang.String"
  23239. abstract="false" native="false" synchronized="false"
  23240. static="false" final="false" visibility="public"
  23241. deprecated="not deprecated">
  23242. <doc>
  23243. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  23244. @return a string with a unique identifier]]>
  23245. </doc>
  23246. </method>
  23247. <method name="getTrackerPort" return="int"
  23248. abstract="false" native="false" synchronized="false"
  23249. static="false" final="false" visibility="public"
  23250. deprecated="not deprecated">
  23251. </method>
  23252. <method name="getInfoPort" return="int"
  23253. abstract="false" native="false" synchronized="false"
  23254. static="false" final="false" visibility="public"
  23255. deprecated="not deprecated">
  23256. </method>
  23257. <method name="getStartTime" return="long"
  23258. abstract="false" native="false" synchronized="false"
  23259. static="false" final="false" visibility="public"
  23260. deprecated="not deprecated">
  23261. </method>
  23262. <method name="runningJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  23263. abstract="false" native="false" synchronized="false"
  23264. static="false" final="false" visibility="public"
  23265. deprecated="not deprecated">
  23266. </method>
  23267. <method name="getRunningJobs" return="java.util.List&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  23268. abstract="false" native="false" synchronized="true"
  23269. static="false" final="false" visibility="public"
  23270. deprecated="not deprecated">
  23271. <doc>
  23272. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  23273. careful to synchronize.]]>
  23274. </doc>
  23275. </method>
  23276. <method name="failedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  23277. abstract="false" native="false" synchronized="false"
  23278. static="false" final="false" visibility="public"
  23279. deprecated="not deprecated">
  23280. </method>
  23281. <method name="completedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  23282. abstract="false" native="false" synchronized="false"
  23283. static="false" final="false" visibility="public"
  23284. deprecated="not deprecated">
  23285. </method>
  23286. <method name="taskTrackers" return="java.util.Collection&lt;org.apache.hadoop.mapred.TaskTrackerStatus&gt;"
  23287. abstract="false" native="false" synchronized="false"
  23288. static="false" final="false" visibility="public"
  23289. deprecated="not deprecated">
  23290. </method>
  23291. <method name="getTaskTracker" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  23292. abstract="false" native="false" synchronized="false"
  23293. static="false" final="false" visibility="public"
  23294. deprecated="not deprecated">
  23295. <param name="trackerID" type="java.lang.String"/>
  23296. </method>
  23297. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  23298. abstract="false" native="false" synchronized="false"
  23299. static="false" final="false" visibility="public"
  23300. deprecated="not deprecated">
  23301. <param name="name" type="java.lang.String"/>
  23302. </method>
  23303. <method name="getNodesAtMaxLevel" return="java.util.Collection&lt;org.apache.hadoop.net.Node&gt;"
  23304. abstract="false" native="false" synchronized="false"
  23305. static="false" final="false" visibility="public"
  23306. deprecated="not deprecated">
  23307. <doc>
  23308. <![CDATA[Returns a collection of nodes at the max level]]>
  23309. </doc>
  23310. </method>
  23311. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  23312. abstract="false" native="false" synchronized="false"
  23313. static="true" final="false" visibility="public"
  23314. deprecated="not deprecated">
  23315. <param name="node" type="org.apache.hadoop.net.Node"/>
  23316. <param name="level" type="int"/>
  23317. </method>
  23318. <method name="getNode" return="org.apache.hadoop.net.Node"
  23319. abstract="false" native="false" synchronized="false"
  23320. static="false" final="false" visibility="public"
  23321. deprecated="not deprecated">
  23322. <param name="name" type="java.lang.String"/>
  23323. <doc>
  23324. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  23325. </doc>
  23326. </method>
  23327. <method name="getNumTaskCacheLevels" return="int"
  23328. abstract="false" native="false" synchronized="false"
  23329. static="false" final="false" visibility="public"
  23330. deprecated="not deprecated">
  23331. </method>
  23332. <method name="getNumResolvedTaskTrackers" return="int"
  23333. abstract="false" native="false" synchronized="false"
  23334. static="false" final="false" visibility="public"
  23335. deprecated="not deprecated">
  23336. </method>
  23337. <method name="getNumberOfUniqueHosts" return="int"
  23338. abstract="false" native="false" synchronized="false"
  23339. static="false" final="false" visibility="public"
  23340. deprecated="not deprecated">
  23341. </method>
  23342. <method name="addJobInProgressListener"
  23343. abstract="false" native="false" synchronized="false"
  23344. static="false" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  23347. </method>
  23348. <method name="removeJobInProgressListener"
  23349. abstract="false" native="false" synchronized="false"
  23350. static="false" final="false" visibility="public"
  23351. deprecated="not deprecated">
  23352. <param name="listener" type="org.apache.hadoop.mapred.JobInProgressListener"/>
  23353. </method>
  23354. <method name="getQueueManager" return="org.apache.hadoop.mapred.QueueManager"
  23355. abstract="false" native="false" synchronized="false"
  23356. static="false" final="false" visibility="public"
  23357. deprecated="not deprecated">
  23358. <doc>
  23359. <![CDATA[Return the {@link QueueManager} associated with the JobTracker.]]>
  23360. </doc>
  23361. </method>
  23362. <method name="getBuildVersion" return="java.lang.String"
  23363. abstract="false" native="false" synchronized="false"
  23364. static="false" final="false" visibility="public"
  23365. deprecated="not deprecated">
  23366. <exception name="IOException" type="java.io.IOException"/>
  23367. </method>
  23368. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  23369. abstract="false" native="false" synchronized="true"
  23370. static="false" final="false" visibility="public"
  23371. deprecated="not deprecated">
  23372. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  23373. <param name="initialContact" type="boolean"/>
  23374. <param name="acceptNewTasks" type="boolean"/>
  23375. <param name="responseId" type="short"/>
  23376. <exception name="IOException" type="java.io.IOException"/>
  23377. <doc>
  23378. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  23379. the {@link JobTracker}.
  23380. The {@link JobTracker} processes the status information sent by the
  23381. {@link TaskTracker} and responds with instructions to start/stop
  23382. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  23383. </doc>
  23384. </method>
  23385. <method name="getNextHeartbeatInterval" return="int"
  23386. abstract="false" native="false" synchronized="false"
  23387. static="false" final="false" visibility="public"
  23388. deprecated="not deprecated">
  23389. <doc>
  23390. <![CDATA[Calculates next heartbeat interval using cluster size.
  23391. Heartbeat interval is incremented 1second for every 50 nodes.
  23392. @return next heartbeat interval.]]>
  23393. </doc>
  23394. </method>
  23395. <method name="getFilesystemName" return="java.lang.String"
  23396. abstract="false" native="false" synchronized="true"
  23397. static="false" final="false" visibility="public"
  23398. deprecated="not deprecated">
  23399. <exception name="IOException" type="java.io.IOException"/>
  23400. <doc>
  23401. <![CDATA[Grab the local fs name]]>
  23402. </doc>
  23403. </method>
  23404. <method name="reportTaskTrackerError"
  23405. abstract="false" native="false" synchronized="false"
  23406. static="false" final="false" visibility="public"
  23407. deprecated="not deprecated">
  23408. <param name="taskTracker" type="java.lang.String"/>
  23409. <param name="errorClass" type="java.lang.String"/>
  23410. <param name="errorMessage" type="java.lang.String"/>
  23411. <exception name="IOException" type="java.io.IOException"/>
  23412. </method>
  23413. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  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. <doc>
  23419. <![CDATA[Allocates a new JobId string.]]>
  23420. </doc>
  23421. </method>
  23422. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  23423. abstract="false" native="false" synchronized="true"
  23424. static="false" final="false" visibility="public"
  23425. deprecated="not deprecated">
  23426. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  23427. <exception name="IOException" type="java.io.IOException"/>
  23428. <doc>
  23429. <![CDATA[JobTracker.submitJob() kicks off a new job.
  23430. Create a 'JobInProgress' object, which contains both JobProfile
  23431. and JobStatus. Those two sub-objects are sometimes shipped outside
  23432. of the JobTracker. But JobInProgress adds info that's useful for
  23433. the JobTracker alone.]]>
  23434. </doc>
  23435. </method>
  23436. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  23437. abstract="false" native="false" synchronized="true"
  23438. static="false" final="false" visibility="public"
  23439. deprecated="not deprecated">
  23440. </method>
  23441. <method name="killJob"
  23442. abstract="false" native="false" synchronized="true"
  23443. static="false" final="false" visibility="public"
  23444. deprecated="not deprecated">
  23445. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23446. <exception name="IOException" type="java.io.IOException"/>
  23447. </method>
  23448. <method name="setJobPriority"
  23449. abstract="false" native="false" synchronized="true"
  23450. static="false" final="false" visibility="public"
  23451. deprecated="not deprecated">
  23452. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23453. <param name="priority" type="java.lang.String"/>
  23454. <exception name="IOException" type="java.io.IOException"/>
  23455. <doc>
  23456. <![CDATA[Set the priority of a job
  23457. @param jobid id of the job
  23458. @param priority new priority of the job]]>
  23459. </doc>
  23460. </method>
  23461. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  23462. abstract="false" native="false" synchronized="true"
  23463. static="false" final="false" visibility="public"
  23464. deprecated="not deprecated">
  23465. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23466. </method>
  23467. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  23468. abstract="false" native="false" synchronized="true"
  23469. static="false" final="false" visibility="public"
  23470. deprecated="not deprecated">
  23471. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23472. </method>
  23473. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  23474. abstract="false" native="false" synchronized="true"
  23475. static="false" final="false" visibility="public"
  23476. deprecated="not deprecated">
  23477. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23478. </method>
  23479. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  23480. abstract="false" native="false" synchronized="true"
  23481. static="false" final="false" visibility="public"
  23482. deprecated="not deprecated">
  23483. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23484. </method>
  23485. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  23486. abstract="false" native="false" synchronized="true"
  23487. static="false" final="false" visibility="public"
  23488. deprecated="not deprecated">
  23489. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23490. </method>
  23491. <method name="getCleanupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  23492. abstract="false" native="false" synchronized="true"
  23493. static="false" final="false" visibility="public"
  23494. deprecated="not deprecated">
  23495. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23496. </method>
  23497. <method name="getSetupTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  23498. abstract="false" native="false" synchronized="true"
  23499. static="false" final="false" visibility="public"
  23500. deprecated="not deprecated">
  23501. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23502. </method>
  23503. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  23504. abstract="false" native="false" synchronized="true"
  23505. static="false" final="false" visibility="public"
  23506. deprecated="not deprecated">
  23507. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23508. <param name="fromEventId" type="int"/>
  23509. <param name="maxEvents" type="int"/>
  23510. <exception name="IOException" type="java.io.IOException"/>
  23511. </method>
  23512. <method name="getTaskDiagnostics" return="java.lang.String[]"
  23513. abstract="false" native="false" synchronized="true"
  23514. static="false" final="false" visibility="public"
  23515. deprecated="not deprecated">
  23516. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  23517. <exception name="IOException" type="java.io.IOException"/>
  23518. <doc>
  23519. <![CDATA[Get the diagnostics for a given task
  23520. @param taskId the id of the task
  23521. @return an array of the diagnostic messages]]>
  23522. </doc>
  23523. </method>
  23524. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  23525. abstract="false" native="false" synchronized="false"
  23526. static="false" final="false" visibility="public"
  23527. deprecated="not deprecated">
  23528. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  23529. <doc>
  23530. <![CDATA[Returns specified TaskInProgress, or null.]]>
  23531. </doc>
  23532. </method>
  23533. <method name="killTask" return="boolean"
  23534. abstract="false" native="false" synchronized="true"
  23535. static="false" final="false" visibility="public"
  23536. deprecated="not deprecated">
  23537. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  23538. <param name="shouldFail" type="boolean"/>
  23539. <exception name="IOException" type="java.io.IOException"/>
  23540. <doc>
  23541. <![CDATA[Mark a Task to be killed]]>
  23542. </doc>
  23543. </method>
  23544. <method name="getAssignedTracker" return="java.lang.String"
  23545. abstract="false" native="false" synchronized="true"
  23546. static="false" final="false" visibility="public"
  23547. deprecated="not deprecated">
  23548. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  23549. <doc>
  23550. <![CDATA[Get tracker name for a given task id.
  23551. @param taskId the name of the task
  23552. @return The name of the task tracker]]>
  23553. </doc>
  23554. </method>
  23555. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  23556. abstract="false" native="false" synchronized="false"
  23557. static="false" final="false" visibility="public"
  23558. deprecated="not deprecated">
  23559. </method>
  23560. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  23561. abstract="false" native="false" synchronized="false"
  23562. static="false" final="false" visibility="public"
  23563. deprecated="not deprecated">
  23564. </method>
  23565. <method name="getSystemDir" return="java.lang.String"
  23566. abstract="false" native="false" synchronized="false"
  23567. static="false" final="false" visibility="public"
  23568. deprecated="not deprecated">
  23569. <doc>
  23570. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  23571. </doc>
  23572. </method>
  23573. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  23574. abstract="false" native="false" synchronized="false"
  23575. static="false" final="false" visibility="public"
  23576. deprecated="not deprecated">
  23577. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23578. </method>
  23579. <method name="getLocalJobFilePath" return="java.lang.String"
  23580. abstract="false" native="false" synchronized="false"
  23581. static="true" final="false" visibility="public"
  23582. deprecated="not deprecated">
  23583. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  23584. <doc>
  23585. <![CDATA[Get the localized job file path on the job trackers local file system
  23586. @param jobId id of the job
  23587. @return the path of the job conf file on the local file system]]>
  23588. </doc>
  23589. </method>
  23590. <method name="main"
  23591. abstract="false" native="false" synchronized="false"
  23592. static="true" final="false" visibility="public"
  23593. deprecated="not deprecated">
  23594. <param name="argv" type="java.lang.String[]"/>
  23595. <exception name="IOException" type="java.io.IOException"/>
  23596. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  23597. <doc>
  23598. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  23599. JobTracker should be run as part of the DFS Namenode process.]]>
  23600. </doc>
  23601. </method>
  23602. <method name="getQueues" return="org.apache.hadoop.mapred.JobQueueInfo[]"
  23603. abstract="false" native="false" synchronized="false"
  23604. static="false" final="false" visibility="public"
  23605. deprecated="not deprecated">
  23606. <exception name="IOException" type="java.io.IOException"/>
  23607. </method>
  23608. <method name="getQueueInfo" return="org.apache.hadoop.mapred.JobQueueInfo"
  23609. abstract="false" native="false" synchronized="false"
  23610. static="false" final="false" visibility="public"
  23611. deprecated="not deprecated">
  23612. <param name="queue" type="java.lang.String"/>
  23613. <exception name="IOException" type="java.io.IOException"/>
  23614. </method>
  23615. <method name="getJobsFromQueue" return="org.apache.hadoop.mapred.JobStatus[]"
  23616. abstract="false" native="false" synchronized="false"
  23617. static="false" final="false" visibility="public"
  23618. deprecated="not deprecated">
  23619. <param name="queue" type="java.lang.String"/>
  23620. <exception name="IOException" type="java.io.IOException"/>
  23621. </method>
  23622. <field name="LOG" type="org.apache.commons.logging.Log"
  23623. transient="false" volatile="false"
  23624. static="true" final="true" visibility="public"
  23625. deprecated="not deprecated">
  23626. </field>
  23627. <doc>
  23628. <![CDATA[JobTracker is the central location for submitting and
  23629. tracking MR jobs in a network environment.]]>
  23630. </doc>
  23631. </class>
  23632. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  23633. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  23634. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  23635. abstract="false"
  23636. static="true" final="false" visibility="public"
  23637. deprecated="not deprecated">
  23638. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  23639. static="false" final="false" visibility="public"
  23640. deprecated="not deprecated">
  23641. </constructor>
  23642. <doc>
  23643. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  23644. </doc>
  23645. </class>
  23646. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  23647. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  23648. <class name="JobTracker.State" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobTracker.State&gt;"
  23649. abstract="false"
  23650. static="true" final="true" visibility="public"
  23651. deprecated="not deprecated">
  23652. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  23653. abstract="false" native="false" synchronized="false"
  23654. static="true" final="false" visibility="public"
  23655. deprecated="not deprecated">
  23656. </method>
  23657. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  23658. abstract="false" native="false" synchronized="false"
  23659. static="true" final="false" visibility="public"
  23660. deprecated="not deprecated">
  23661. <param name="name" type="java.lang.String"/>
  23662. </method>
  23663. </class>
  23664. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  23665. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  23666. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  23667. abstract="false"
  23668. static="false" final="false" visibility="public"
  23669. deprecated="not deprecated">
  23670. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  23671. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  23672. static="false" final="false" visibility="public"
  23673. deprecated="not deprecated">
  23674. <exception name="IOException" type="java.io.IOException"/>
  23675. </constructor>
  23676. <method name="getKeyClass" return="java.lang.Class"
  23677. abstract="false" native="false" synchronized="false"
  23678. static="false" final="false" visibility="public"
  23679. deprecated="not deprecated">
  23680. </method>
  23681. <method name="createKey" return="org.apache.hadoop.io.Text"
  23682. abstract="false" native="false" synchronized="false"
  23683. static="false" final="false" visibility="public"
  23684. deprecated="not deprecated">
  23685. </method>
  23686. <method name="createValue" return="org.apache.hadoop.io.Text"
  23687. abstract="false" native="false" synchronized="false"
  23688. static="false" final="false" visibility="public"
  23689. deprecated="not deprecated">
  23690. </method>
  23691. <method name="findSeparator" return="int"
  23692. abstract="false" native="false" synchronized="false"
  23693. static="true" final="false" visibility="public"
  23694. deprecated="not deprecated">
  23695. <param name="utf" type="byte[]"/>
  23696. <param name="start" type="int"/>
  23697. <param name="length" type="int"/>
  23698. <param name="sep" type="byte"/>
  23699. </method>
  23700. <method name="next" return="boolean"
  23701. abstract="false" native="false" synchronized="true"
  23702. static="false" final="false" visibility="public"
  23703. deprecated="not deprecated">
  23704. <param name="key" type="org.apache.hadoop.io.Text"/>
  23705. <param name="value" type="org.apache.hadoop.io.Text"/>
  23706. <exception name="IOException" type="java.io.IOException"/>
  23707. <doc>
  23708. <![CDATA[Read key/value pair in a line.]]>
  23709. </doc>
  23710. </method>
  23711. <method name="getProgress" return="float"
  23712. abstract="false" native="false" synchronized="false"
  23713. static="false" final="false" visibility="public"
  23714. deprecated="not deprecated">
  23715. </method>
  23716. <method name="getPos" return="long"
  23717. abstract="false" native="false" synchronized="true"
  23718. static="false" final="false" visibility="public"
  23719. deprecated="not deprecated">
  23720. <exception name="IOException" type="java.io.IOException"/>
  23721. </method>
  23722. <method name="close"
  23723. abstract="false" native="false" synchronized="true"
  23724. static="false" final="false" visibility="public"
  23725. deprecated="not deprecated">
  23726. <exception name="IOException" type="java.io.IOException"/>
  23727. </method>
  23728. <doc>
  23729. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  23730. separator character. The separator can be specified in config file
  23731. under the attribute name key.value.separator.in.input.line. The default
  23732. separator is the tab character ('\t').]]>
  23733. </doc>
  23734. </class>
  23735. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  23736. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  23737. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  23738. abstract="false"
  23739. static="false" final="false" visibility="public"
  23740. deprecated="not deprecated">
  23741. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  23742. <constructor name="KeyValueTextInputFormat"
  23743. static="false" final="false" visibility="public"
  23744. deprecated="not deprecated">
  23745. </constructor>
  23746. <method name="configure"
  23747. abstract="false" native="false" synchronized="false"
  23748. static="false" final="false" visibility="public"
  23749. deprecated="not deprecated">
  23750. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23751. </method>
  23752. <method name="isSplitable" return="boolean"
  23753. abstract="false" native="false" synchronized="false"
  23754. static="false" final="false" visibility="protected"
  23755. deprecated="not deprecated">
  23756. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23757. <param name="file" type="org.apache.hadoop.fs.Path"/>
  23758. </method>
  23759. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  23760. abstract="false" native="false" synchronized="false"
  23761. static="false" final="false" visibility="public"
  23762. deprecated="not deprecated">
  23763. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  23764. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23765. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23766. <exception name="IOException" type="java.io.IOException"/>
  23767. </method>
  23768. <doc>
  23769. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  23770. Either linefeed or carriage-return are used to signal end of line. Each line
  23771. is divided into key and value parts by a separator byte. If no such a byte
  23772. exists, the key will be the entire line and value will be empty.]]>
  23773. </doc>
  23774. </class>
  23775. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  23776. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  23777. <class name="LineRecordReader" extends="java.lang.Object"
  23778. abstract="false"
  23779. static="false" final="false" visibility="public"
  23780. deprecated="not deprecated">
  23781. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"/>
  23782. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  23783. static="false" final="false" visibility="public"
  23784. deprecated="not deprecated">
  23785. <exception name="IOException" type="java.io.IOException"/>
  23786. </constructor>
  23787. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  23788. static="false" final="false" visibility="public"
  23789. deprecated="not deprecated">
  23790. </constructor>
  23791. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  23792. static="false" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. <exception name="IOException" type="java.io.IOException"/>
  23795. </constructor>
  23796. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  23797. abstract="false" native="false" synchronized="false"
  23798. static="false" final="false" visibility="public"
  23799. deprecated="not deprecated">
  23800. </method>
  23801. <method name="createValue" return="org.apache.hadoop.io.Text"
  23802. abstract="false" native="false" synchronized="false"
  23803. static="false" final="false" visibility="public"
  23804. deprecated="not deprecated">
  23805. </method>
  23806. <method name="next" return="boolean"
  23807. abstract="false" native="false" synchronized="true"
  23808. static="false" final="false" visibility="public"
  23809. deprecated="not deprecated">
  23810. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  23811. <param name="value" type="org.apache.hadoop.io.Text"/>
  23812. <exception name="IOException" type="java.io.IOException"/>
  23813. <doc>
  23814. <![CDATA[Read a line.]]>
  23815. </doc>
  23816. </method>
  23817. <method name="getProgress" return="float"
  23818. abstract="false" native="false" synchronized="false"
  23819. static="false" final="false" visibility="public"
  23820. deprecated="not deprecated">
  23821. <doc>
  23822. <![CDATA[Get the progress within the split]]>
  23823. </doc>
  23824. </method>
  23825. <method name="getPos" return="long"
  23826. abstract="false" native="false" synchronized="true"
  23827. static="false" final="false" visibility="public"
  23828. deprecated="not deprecated">
  23829. <exception name="IOException" type="java.io.IOException"/>
  23830. </method>
  23831. <method name="close"
  23832. abstract="false" native="false" synchronized="true"
  23833. static="false" final="false" visibility="public"
  23834. deprecated="not deprecated">
  23835. <exception name="IOException" type="java.io.IOException"/>
  23836. </method>
  23837. <doc>
  23838. <![CDATA[Treats keys as offset in file and value as line.]]>
  23839. </doc>
  23840. </class>
  23841. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  23842. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  23843. <class name="LineRecordReader.LineReader" extends="org.apache.hadoop.util.LineReader"
  23844. abstract="false"
  23845. static="true" final="false" visibility="public"
  23846. deprecated="Use {@link org.apache.hadoop.util.LineReader} instead.">
  23847. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  23848. static="false" final="false" visibility="public"
  23849. deprecated="not deprecated">
  23850. <exception name="IOException" type="java.io.IOException"/>
  23851. </constructor>
  23852. <doc>
  23853. <![CDATA[A class that provides a line reader from an input stream.
  23854. @deprecated Use {@link org.apache.hadoop.util.LineReader} instead.]]>
  23855. </doc>
  23856. </class>
  23857. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  23858. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  23859. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  23860. abstract="false"
  23861. static="false" final="false" visibility="public"
  23862. deprecated="not deprecated">
  23863. <constructor name="MapFileOutputFormat"
  23864. static="false" final="false" visibility="public"
  23865. deprecated="not deprecated">
  23866. </constructor>
  23867. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  23868. abstract="false" native="false" synchronized="false"
  23869. static="false" final="false" visibility="public"
  23870. deprecated="not deprecated">
  23871. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  23872. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23873. <param name="name" type="java.lang.String"/>
  23874. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23875. <exception name="IOException" type="java.io.IOException"/>
  23876. </method>
  23877. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  23878. abstract="false" native="false" synchronized="false"
  23879. static="true" final="false" visibility="public"
  23880. deprecated="not deprecated">
  23881. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  23882. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  23883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  23884. <exception name="IOException" type="java.io.IOException"/>
  23885. <doc>
  23886. <![CDATA[Open the output generated by this format.]]>
  23887. </doc>
  23888. </method>
  23889. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  23890. abstract="false" native="false" synchronized="false"
  23891. static="true" final="false" visibility="public"
  23892. deprecated="not deprecated">
  23893. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  23894. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner&lt;K, V&gt;"/>
  23895. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  23896. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  23897. <exception name="IOException" type="java.io.IOException"/>
  23898. <doc>
  23899. <![CDATA[Get an entry from output generated by this class.]]>
  23900. </doc>
  23901. </method>
  23902. <doc>
  23903. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  23904. </doc>
  23905. </class>
  23906. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  23907. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  23908. <interface name="Mapper" abstract="true"
  23909. static="false" final="false" visibility="public"
  23910. deprecated="not deprecated">
  23911. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  23912. <implements name="org.apache.hadoop.io.Closeable"/>
  23913. <method name="map"
  23914. abstract="false" native="false" synchronized="false"
  23915. static="false" final="false" visibility="public"
  23916. deprecated="not deprecated">
  23917. <param name="key" type="K1"/>
  23918. <param name="value" type="V1"/>
  23919. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  23920. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23921. <exception name="IOException" type="java.io.IOException"/>
  23922. <doc>
  23923. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  23924. <p>Output pairs need not be of the same types as input pairs. A given
  23925. input pair may map to zero or many output pairs. Output pairs are
  23926. collected with calls to
  23927. {@link OutputCollector#collect(Object,Object)}.</p>
  23928. <p>Applications can use the {@link Reporter} provided to report progress
  23929. or just indicate that they are alive. In scenarios where the application
  23930. takes an insignificant amount of time to process individual key/value
  23931. pairs, this is crucial since the framework might assume that the task has
  23932. timed-out and kill that task. The other way of avoiding this is to set
  23933. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  23934. mapred.task.timeout</a> to a high-enough value (or even zero for no
  23935. time-outs).</p>
  23936. @param key the input key.
  23937. @param value the input value.
  23938. @param output collects mapped keys and values.
  23939. @param reporter facility to report progress.]]>
  23940. </doc>
  23941. </method>
  23942. <doc>
  23943. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  23944. <p>Maps are the individual tasks which transform input records into a
  23945. intermediate records. The transformed intermediate records need not be of
  23946. the same type as the input records. A given input pair may map to zero or
  23947. many output pairs.</p>
  23948. <p>The Hadoop Map-Reduce framework spawns one map task for each
  23949. {@link InputSplit} generated by the {@link InputFormat} for the job.
  23950. <code>Mapper</code> implementations can access the {@link JobConf} for the
  23951. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  23952. themselves. Similarly they can use the {@link Closeable#close()} method for
  23953. de-initialization.</p>
  23954. <p>The framework then calls
  23955. {@link #map(Object, Object, OutputCollector, Reporter)}
  23956. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  23957. <p>All intermediate values associated with a given output key are
  23958. subsequently grouped by the framework, and passed to a {@link Reducer} to
  23959. determine the final output. Users can control the grouping by specifying
  23960. a <code>Comparator</code> via
  23961. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  23962. <p>The grouped <code>Mapper</code> outputs are partitioned per
  23963. <code>Reducer</code>. Users can control which keys (and hence records) go to
  23964. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  23965. <p>Users can optionally specify a <code>combiner</code>, via
  23966. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  23967. intermediate outputs, which helps to cut down the amount of data transferred
  23968. from the <code>Mapper</code> to the <code>Reducer</code>.
  23969. <p>The intermediate, grouped outputs are always stored in
  23970. {@link SequenceFile}s. Applications can specify if and how the intermediate
  23971. outputs are to be compressed and which {@link CompressionCodec}s are to be
  23972. used via the <code>JobConf</code>.</p>
  23973. <p>If the job has
  23974. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  23975. reduces</a> then the output of the <code>Mapper</code> is directly written
  23976. to the {@link FileSystem} without grouping by keys.</p>
  23977. <p>Example:</p>
  23978. <p><blockquote><pre>
  23979. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  23980. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  23981. static enum MyCounters { NUM_RECORDS }
  23982. private String mapTaskId;
  23983. private String inputFile;
  23984. private int noRecords = 0;
  23985. public void configure(JobConf job) {
  23986. mapTaskId = job.get("mapred.task.id");
  23987. inputFile = job.get("mapred.input.file");
  23988. }
  23989. public void map(K key, V val,
  23990. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  23991. throws IOException {
  23992. // Process the &lt;key, value&gt; pair (assume this takes a while)
  23993. // ...
  23994. // ...
  23995. // Let the framework know that we are alive, and kicking!
  23996. // reporter.progress();
  23997. // Process some more
  23998. // ...
  23999. // ...
  24000. // Increment the no. of &lt;key, value&gt; pairs processed
  24001. ++noRecords;
  24002. // Increment counters
  24003. reporter.incrCounter(NUM_RECORDS, 1);
  24004. // Every 100 records update application-level status
  24005. if ((noRecords%100) == 0) {
  24006. reporter.setStatus(mapTaskId + " processed " + noRecords +
  24007. " from input-file: " + inputFile);
  24008. }
  24009. // Output the result
  24010. output.collect(key, val);
  24011. }
  24012. }
  24013. </pre></blockquote></p>
  24014. <p>Applications may write a custom {@link MapRunnable} to exert greater
  24015. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  24016. @see JobConf
  24017. @see InputFormat
  24018. @see Partitioner
  24019. @see Reducer
  24020. @see MapReduceBase
  24021. @see MapRunnable
  24022. @see SequenceFile]]>
  24023. </doc>
  24024. </interface>
  24025. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  24026. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  24027. <class name="MapReduceBase" extends="java.lang.Object"
  24028. abstract="false"
  24029. static="false" final="false" visibility="public"
  24030. deprecated="not deprecated">
  24031. <implements name="org.apache.hadoop.io.Closeable"/>
  24032. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  24033. <constructor name="MapReduceBase"
  24034. static="false" final="false" visibility="public"
  24035. deprecated="not deprecated">
  24036. </constructor>
  24037. <method name="close"
  24038. abstract="false" native="false" synchronized="false"
  24039. static="false" final="false" visibility="public"
  24040. deprecated="not deprecated">
  24041. <exception name="IOException" type="java.io.IOException"/>
  24042. <doc>
  24043. <![CDATA[Default implementation that does nothing.]]>
  24044. </doc>
  24045. </method>
  24046. <method name="configure"
  24047. abstract="false" native="false" synchronized="false"
  24048. static="false" final="false" visibility="public"
  24049. deprecated="not deprecated">
  24050. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24051. <doc>
  24052. <![CDATA[Default implementation that does nothing.]]>
  24053. </doc>
  24054. </method>
  24055. <doc>
  24056. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  24057. <p>Provides default no-op implementations for a few methods, most non-trivial
  24058. applications need to override some of them.</p>]]>
  24059. </doc>
  24060. </class>
  24061. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  24062. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  24063. <interface name="MapRunnable" abstract="true"
  24064. static="false" final="false" visibility="public"
  24065. deprecated="not deprecated">
  24066. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  24067. <method name="run"
  24068. abstract="false" native="false" synchronized="false"
  24069. static="false" final="false" visibility="public"
  24070. deprecated="not deprecated">
  24071. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  24072. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  24073. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24074. <exception name="IOException" type="java.io.IOException"/>
  24075. <doc>
  24076. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  24077. <p>Mapping of input records to output records is complete when this method
  24078. returns.</p>
  24079. @param input the {@link RecordReader} to read the input records.
  24080. @param output the {@link OutputCollector} to collect the outputrecords.
  24081. @param reporter {@link Reporter} to report progress, status-updates etc.
  24082. @throws IOException]]>
  24083. </doc>
  24084. </method>
  24085. <doc>
  24086. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  24087. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  24088. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  24089. @see Mapper]]>
  24090. </doc>
  24091. </interface>
  24092. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  24093. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  24094. <class name="MapRunner" extends="java.lang.Object"
  24095. abstract="false"
  24096. static="false" final="false" visibility="public"
  24097. deprecated="not deprecated">
  24098. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  24099. <constructor name="MapRunner"
  24100. static="false" final="false" visibility="public"
  24101. deprecated="not deprecated">
  24102. </constructor>
  24103. <method name="configure"
  24104. abstract="false" native="false" synchronized="false"
  24105. static="false" final="false" visibility="public"
  24106. deprecated="not deprecated">
  24107. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24108. </method>
  24109. <method name="run"
  24110. abstract="false" native="false" synchronized="false"
  24111. static="false" final="false" visibility="public"
  24112. deprecated="not deprecated">
  24113. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  24114. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  24115. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24116. <exception name="IOException" type="java.io.IOException"/>
  24117. </method>
  24118. <method name="getMapper" return="org.apache.hadoop.mapred.Mapper&lt;K1, V1, K2, V2&gt;"
  24119. abstract="false" native="false" synchronized="false"
  24120. static="false" final="false" visibility="protected"
  24121. deprecated="not deprecated">
  24122. </method>
  24123. <doc>
  24124. <![CDATA[Default {@link MapRunnable} implementation.]]>
  24125. </doc>
  24126. </class>
  24127. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  24128. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  24129. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  24130. abstract="true"
  24131. static="false" final="false" visibility="public"
  24132. deprecated="not deprecated">
  24133. <constructor name="MultiFileInputFormat"
  24134. static="false" final="false" visibility="public"
  24135. deprecated="not deprecated">
  24136. </constructor>
  24137. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  24138. abstract="false" native="false" synchronized="false"
  24139. static="false" final="false" visibility="public"
  24140. deprecated="not deprecated">
  24141. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24142. <param name="numSplits" type="int"/>
  24143. <exception name="IOException" type="java.io.IOException"/>
  24144. </method>
  24145. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  24146. abstract="true" native="false" synchronized="false"
  24147. static="false" final="false" visibility="public"
  24148. deprecated="not deprecated">
  24149. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  24150. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24151. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24152. <exception name="IOException" type="java.io.IOException"/>
  24153. </method>
  24154. <doc>
  24155. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  24156. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  24157. the files under the input paths. Each split returned contains <i>nearly</i>
  24158. equal content length. <br>
  24159. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  24160. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  24161. @see MultiFileSplit]]>
  24162. </doc>
  24163. </class>
  24164. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  24165. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  24166. <class name="MultiFileSplit" extends="java.lang.Object"
  24167. abstract="false"
  24168. static="false" final="false" visibility="public"
  24169. deprecated="not deprecated">
  24170. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  24171. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  24172. static="false" final="false" visibility="public"
  24173. deprecated="not deprecated">
  24174. </constructor>
  24175. <method name="getLength" return="long"
  24176. abstract="false" native="false" synchronized="false"
  24177. static="false" final="false" visibility="public"
  24178. deprecated="not deprecated">
  24179. </method>
  24180. <method name="getLengths" return="long[]"
  24181. abstract="false" native="false" synchronized="false"
  24182. static="false" final="false" visibility="public"
  24183. deprecated="not deprecated">
  24184. <doc>
  24185. <![CDATA[Returns an array containing the lengths of the files in
  24186. the split]]>
  24187. </doc>
  24188. </method>
  24189. <method name="getLength" return="long"
  24190. abstract="false" native="false" synchronized="false"
  24191. static="false" final="false" visibility="public"
  24192. deprecated="not deprecated">
  24193. <param name="i" type="int"/>
  24194. <doc>
  24195. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  24196. </doc>
  24197. </method>
  24198. <method name="getNumPaths" return="int"
  24199. abstract="false" native="false" synchronized="false"
  24200. static="false" final="false" visibility="public"
  24201. deprecated="not deprecated">
  24202. <doc>
  24203. <![CDATA[Returns the number of Paths in the split]]>
  24204. </doc>
  24205. </method>
  24206. <method name="getPath" return="org.apache.hadoop.fs.Path"
  24207. abstract="false" native="false" synchronized="false"
  24208. static="false" final="false" visibility="public"
  24209. deprecated="not deprecated">
  24210. <param name="i" type="int"/>
  24211. <doc>
  24212. <![CDATA[Returns the i<sup>th</sup> Path]]>
  24213. </doc>
  24214. </method>
  24215. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  24216. abstract="false" native="false" synchronized="false"
  24217. static="false" final="false" visibility="public"
  24218. deprecated="not deprecated">
  24219. <doc>
  24220. <![CDATA[Returns all the Paths in the split]]>
  24221. </doc>
  24222. </method>
  24223. <method name="getLocations" return="java.lang.String[]"
  24224. abstract="false" native="false" synchronized="false"
  24225. static="false" final="false" visibility="public"
  24226. deprecated="not deprecated">
  24227. <exception name="IOException" type="java.io.IOException"/>
  24228. </method>
  24229. <method name="readFields"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="false" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <param name="in" type="java.io.DataInput"/>
  24234. <exception name="IOException" type="java.io.IOException"/>
  24235. </method>
  24236. <method name="write"
  24237. abstract="false" native="false" synchronized="false"
  24238. static="false" final="false" visibility="public"
  24239. deprecated="not deprecated">
  24240. <param name="out" type="java.io.DataOutput"/>
  24241. <exception name="IOException" type="java.io.IOException"/>
  24242. </method>
  24243. <method name="toString" return="java.lang.String"
  24244. abstract="false" native="false" synchronized="false"
  24245. static="false" final="false" visibility="public"
  24246. deprecated="not deprecated">
  24247. </method>
  24248. <doc>
  24249. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  24250. class does not represent a split of a file, but a split of input files
  24251. into smaller sets. The atomic unit of split is a file. <br>
  24252. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  24253. reading one record per file.
  24254. @see FileSplit
  24255. @see MultiFileInputFormat]]>
  24256. </doc>
  24257. </class>
  24258. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  24259. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  24260. <interface name="OutputCollector" abstract="true"
  24261. static="false" final="false" visibility="public"
  24262. deprecated="not deprecated">
  24263. <method name="collect"
  24264. abstract="false" native="false" synchronized="false"
  24265. static="false" final="false" visibility="public"
  24266. deprecated="not deprecated">
  24267. <param name="key" type="K"/>
  24268. <param name="value" type="V"/>
  24269. <exception name="IOException" type="java.io.IOException"/>
  24270. <doc>
  24271. <![CDATA[Adds a key/value pair to the output.
  24272. @param key the key to collect.
  24273. @param value to value to collect.
  24274. @throws IOException]]>
  24275. </doc>
  24276. </method>
  24277. <doc>
  24278. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  24279. and {@link Reducer}s.
  24280. <p><code>OutputCollector</code> is the generalization of the facility
  24281. provided by the Map-Reduce framework to collect data output by either the
  24282. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  24283. or the output of the job.</p>]]>
  24284. </doc>
  24285. </interface>
  24286. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  24287. <!-- start class org.apache.hadoop.mapred.OutputCommitter -->
  24288. <class name="OutputCommitter" extends="java.lang.Object"
  24289. abstract="true"
  24290. static="false" final="false" visibility="public"
  24291. deprecated="not deprecated">
  24292. <constructor name="OutputCommitter"
  24293. static="false" final="false" visibility="public"
  24294. deprecated="not deprecated">
  24295. </constructor>
  24296. <method name="setupJob"
  24297. abstract="true" native="false" synchronized="false"
  24298. static="false" final="false" visibility="public"
  24299. deprecated="not deprecated">
  24300. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  24301. <exception name="IOException" type="java.io.IOException"/>
  24302. <doc>
  24303. <![CDATA[For the framework to setup the job output during initialization
  24304. @param jobContext Context of the job whose output is being written.
  24305. @throws IOException if temporary output could not be created]]>
  24306. </doc>
  24307. </method>
  24308. <method name="cleanupJob"
  24309. abstract="true" native="false" synchronized="false"
  24310. static="false" final="false" visibility="public"
  24311. deprecated="not deprecated">
  24312. <param name="jobContext" type="org.apache.hadoop.mapred.JobContext"/>
  24313. <exception name="IOException" type="java.io.IOException"/>
  24314. <doc>
  24315. <![CDATA[For cleaning up the job's output after job completion
  24316. @param jobContext Context of the job whose output is being written.
  24317. @throws IOException]]>
  24318. </doc>
  24319. </method>
  24320. <method name="setupTask"
  24321. abstract="true" native="false" synchronized="false"
  24322. static="false" final="false" visibility="public"
  24323. deprecated="not deprecated">
  24324. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  24325. <exception name="IOException" type="java.io.IOException"/>
  24326. <doc>
  24327. <![CDATA[Sets up output for the task.
  24328. @param taskContext Context of the task whose output is being written.
  24329. @throws IOException]]>
  24330. </doc>
  24331. </method>
  24332. <method name="needsTaskCommit" return="boolean"
  24333. abstract="true" native="false" synchronized="false"
  24334. static="false" final="false" visibility="public"
  24335. deprecated="not deprecated">
  24336. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  24337. <exception name="IOException" type="java.io.IOException"/>
  24338. <doc>
  24339. <![CDATA[Check whether task needs a commit
  24340. @param taskContext
  24341. @return true/false
  24342. @throws IOException]]>
  24343. </doc>
  24344. </method>
  24345. <method name="commitTask"
  24346. abstract="true" native="false" synchronized="false"
  24347. static="false" final="false" visibility="public"
  24348. deprecated="not deprecated">
  24349. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  24350. <exception name="IOException" type="java.io.IOException"/>
  24351. <doc>
  24352. <![CDATA[To promote the task's temporary output to final output location
  24353. The task's output is moved to the job's output directory.
  24354. @param taskContext Context of the task whose output is being written.
  24355. @throws IOException if commit is not]]>
  24356. </doc>
  24357. </method>
  24358. <method name="abortTask"
  24359. abstract="true" native="false" synchronized="false"
  24360. static="false" final="false" visibility="public"
  24361. deprecated="not deprecated">
  24362. <param name="taskContext" type="org.apache.hadoop.mapred.TaskAttemptContext"/>
  24363. <exception name="IOException" type="java.io.IOException"/>
  24364. <doc>
  24365. <![CDATA[Discard the task output
  24366. @param taskContext
  24367. @throws IOException]]>
  24368. </doc>
  24369. </method>
  24370. <doc>
  24371. <![CDATA[<code>OutputCommitter</code> describes the commit of task output for a
  24372. Map-Reduce job.
  24373. <p>The Map-Reduce framework relies on the <code>OutputCommitter</code> of
  24374. the job to:<p>
  24375. <ol>
  24376. <li>
  24377. Setup the job during initialization. For example, create the temporary
  24378. output directory for the job during the initialization of the job.
  24379. </li>
  24380. <li>
  24381. Cleanup the job after the job completion. For example, remove the
  24382. temporary output directory after the job completion.
  24383. </li>
  24384. <li>
  24385. Setup the task temporary output.
  24386. </li>
  24387. <li>
  24388. Check whether a task needs a commit. This is to avoid the commit
  24389. procedure if a task does not need commit.
  24390. </li>
  24391. <li>
  24392. Commit of the task output.
  24393. </li>
  24394. <li>
  24395. Discard the task commit.
  24396. </li>
  24397. </ol>
  24398. @see FileOutputCommitter
  24399. @see JobContext
  24400. @see TaskAttemptContext]]>
  24401. </doc>
  24402. </class>
  24403. <!-- end class org.apache.hadoop.mapred.OutputCommitter -->
  24404. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  24405. <interface name="OutputFormat" abstract="true"
  24406. static="false" final="false" visibility="public"
  24407. deprecated="not deprecated">
  24408. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  24409. abstract="false" native="false" synchronized="false"
  24410. static="false" final="false" visibility="public"
  24411. deprecated="not deprecated">
  24412. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  24413. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24414. <param name="name" type="java.lang.String"/>
  24415. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  24416. <exception name="IOException" type="java.io.IOException"/>
  24417. <doc>
  24418. <![CDATA[Get the {@link RecordWriter} for the given job.
  24419. @param ignored
  24420. @param job configuration for the job whose output is being written.
  24421. @param name the unique name for this part of the output.
  24422. @param progress mechanism for reporting progress while writing to file.
  24423. @return a {@link RecordWriter} to write the output for the job.
  24424. @throws IOException]]>
  24425. </doc>
  24426. </method>
  24427. <method name="checkOutputSpecs"
  24428. abstract="false" native="false" synchronized="false"
  24429. static="false" final="false" visibility="public"
  24430. deprecated="not deprecated">
  24431. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  24432. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24433. <exception name="IOException" type="java.io.IOException"/>
  24434. <doc>
  24435. <![CDATA[Check for validity of the output-specification for the job.
  24436. <p>This is to validate the output specification for the job when it is
  24437. a job is submitted. Typically checks that it does not already exist,
  24438. throwing an exception when it already exists, so that output is not
  24439. overwritten.</p>
  24440. @param ignored
  24441. @param job job configuration.
  24442. @throws IOException when output should not be attempted]]>
  24443. </doc>
  24444. </method>
  24445. <doc>
  24446. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  24447. Map-Reduce job.
  24448. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  24449. job to:<p>
  24450. <ol>
  24451. <li>
  24452. Validate the output-specification of the job. For e.g. check that the
  24453. output directory doesn't already exist.
  24454. <li>
  24455. Provide the {@link RecordWriter} implementation to be used to write out
  24456. the output files of the job. Output files are stored in a
  24457. {@link FileSystem}.
  24458. </li>
  24459. </ol>
  24460. @see RecordWriter
  24461. @see JobConf]]>
  24462. </doc>
  24463. </interface>
  24464. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  24465. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  24466. <class name="OutputLogFilter" extends="java.lang.Object"
  24467. abstract="false"
  24468. static="false" final="false" visibility="public"
  24469. deprecated="not deprecated">
  24470. <implements name="org.apache.hadoop.fs.PathFilter"/>
  24471. <constructor name="OutputLogFilter"
  24472. static="false" final="false" visibility="public"
  24473. deprecated="not deprecated">
  24474. </constructor>
  24475. <method name="accept" return="boolean"
  24476. abstract="false" native="false" synchronized="false"
  24477. static="false" final="false" visibility="public"
  24478. deprecated="not deprecated">
  24479. <param name="path" type="org.apache.hadoop.fs.Path"/>
  24480. </method>
  24481. <doc>
  24482. <![CDATA[This class filters log files from directory given
  24483. It doesnt accept paths having _logs.
  24484. This can be used to list paths of output directory as follows:
  24485. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  24486. new OutputLogFilter()));]]>
  24487. </doc>
  24488. </class>
  24489. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  24490. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  24491. <interface name="Partitioner" abstract="true"
  24492. static="false" final="false" visibility="public"
  24493. deprecated="not deprecated">
  24494. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  24495. <method name="getPartition" return="int"
  24496. abstract="false" native="false" synchronized="false"
  24497. static="false" final="false" visibility="public"
  24498. deprecated="not deprecated">
  24499. <param name="key" type="K2"/>
  24500. <param name="value" type="V2"/>
  24501. <param name="numPartitions" type="int"/>
  24502. <doc>
  24503. <![CDATA[Get the paritition number for a given key (hence record) given the total
  24504. number of partitions i.e. number of reduce-tasks for the job.
  24505. <p>Typically a hash function on a all or a subset of the key.</p>
  24506. @param key the key to be paritioned.
  24507. @param value the entry value.
  24508. @param numPartitions the total number of partitions.
  24509. @return the partition number for the <code>key</code>.]]>
  24510. </doc>
  24511. </method>
  24512. <doc>
  24513. <![CDATA[Partitions the key space.
  24514. <p><code>Partitioner</code> controls the partitioning of the keys of the
  24515. intermediate map-outputs. The key (or a subset of the key) is used to derive
  24516. the partition, typically by a hash function. The total number of partitions
  24517. is the same as the number of reduce tasks for the job. Hence this controls
  24518. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  24519. record) is sent for reduction.</p>
  24520. @see Reducer]]>
  24521. </doc>
  24522. </interface>
  24523. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  24524. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  24525. <interface name="RecordReader" abstract="true"
  24526. static="false" final="false" visibility="public"
  24527. deprecated="not deprecated">
  24528. <method name="next" return="boolean"
  24529. abstract="false" native="false" synchronized="false"
  24530. static="false" final="false" visibility="public"
  24531. deprecated="not deprecated">
  24532. <param name="key" type="K"/>
  24533. <param name="value" type="V"/>
  24534. <exception name="IOException" type="java.io.IOException"/>
  24535. <doc>
  24536. <![CDATA[Reads the next key/value pair from the input for processing.
  24537. @param key the key to read data into
  24538. @param value the value to read data into
  24539. @return true iff a key/value was read, false if at EOF]]>
  24540. </doc>
  24541. </method>
  24542. <method name="createKey" return="K"
  24543. abstract="false" native="false" synchronized="false"
  24544. static="false" final="false" visibility="public"
  24545. deprecated="not deprecated">
  24546. <doc>
  24547. <![CDATA[Create an object of the appropriate type to be used as a key.
  24548. @return a new key object.]]>
  24549. </doc>
  24550. </method>
  24551. <method name="createValue" return="V"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <doc>
  24556. <![CDATA[Create an object of the appropriate type to be used as a value.
  24557. @return a new value object.]]>
  24558. </doc>
  24559. </method>
  24560. <method name="getPos" return="long"
  24561. abstract="false" native="false" synchronized="false"
  24562. static="false" final="false" visibility="public"
  24563. deprecated="not deprecated">
  24564. <exception name="IOException" type="java.io.IOException"/>
  24565. <doc>
  24566. <![CDATA[Returns the current position in the input.
  24567. @return the current position in the input.
  24568. @throws IOException]]>
  24569. </doc>
  24570. </method>
  24571. <method name="close"
  24572. abstract="false" native="false" synchronized="false"
  24573. static="false" final="false" visibility="public"
  24574. deprecated="not deprecated">
  24575. <exception name="IOException" type="java.io.IOException"/>
  24576. <doc>
  24577. <![CDATA[Close this {@link InputSplit} to future operations.
  24578. @throws IOException]]>
  24579. </doc>
  24580. </method>
  24581. <method name="getProgress" return="float"
  24582. abstract="false" native="false" synchronized="false"
  24583. static="false" final="false" visibility="public"
  24584. deprecated="not deprecated">
  24585. <exception name="IOException" type="java.io.IOException"/>
  24586. <doc>
  24587. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  24588. has been processed by?
  24589. @return progress from <code>0.0</code> to <code>1.0</code>.
  24590. @throws IOException]]>
  24591. </doc>
  24592. </method>
  24593. <doc>
  24594. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  24595. {@link InputSplit}.
  24596. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  24597. the input, provided by the <code>InputSplit</code>, and presents a
  24598. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  24599. processing. It thus assumes the responsibility of processing record
  24600. boundaries and presenting the tasks with keys and values.</p>
  24601. @see InputSplit
  24602. @see InputFormat]]>
  24603. </doc>
  24604. </interface>
  24605. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  24606. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  24607. <interface name="RecordWriter" abstract="true"
  24608. static="false" final="false" visibility="public"
  24609. deprecated="not deprecated">
  24610. <method name="write"
  24611. abstract="false" native="false" synchronized="false"
  24612. static="false" final="false" visibility="public"
  24613. deprecated="not deprecated">
  24614. <param name="key" type="K"/>
  24615. <param name="value" type="V"/>
  24616. <exception name="IOException" type="java.io.IOException"/>
  24617. <doc>
  24618. <![CDATA[Writes a key/value pair.
  24619. @param key the key to write.
  24620. @param value the value to write.
  24621. @throws IOException]]>
  24622. </doc>
  24623. </method>
  24624. <method name="close"
  24625. abstract="false" native="false" synchronized="false"
  24626. static="false" final="false" visibility="public"
  24627. deprecated="not deprecated">
  24628. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24629. <exception name="IOException" type="java.io.IOException"/>
  24630. <doc>
  24631. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  24632. @param reporter facility to report progress.
  24633. @throws IOException]]>
  24634. </doc>
  24635. </method>
  24636. <doc>
  24637. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  24638. to an output file.
  24639. <p><code>RecordWriter</code> implementations write the job outputs to the
  24640. {@link FileSystem}.
  24641. @see OutputFormat]]>
  24642. </doc>
  24643. </interface>
  24644. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  24645. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  24646. <interface name="Reducer" abstract="true"
  24647. static="false" final="false" visibility="public"
  24648. deprecated="not deprecated">
  24649. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  24650. <implements name="org.apache.hadoop.io.Closeable"/>
  24651. <method name="reduce"
  24652. abstract="false" native="false" synchronized="false"
  24653. static="false" final="false" visibility="public"
  24654. deprecated="not deprecated">
  24655. <param name="key" type="K2"/>
  24656. <param name="values" type="java.util.Iterator&lt;V2&gt;"/>
  24657. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K3, V3&gt;"/>
  24658. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  24659. <exception name="IOException" type="java.io.IOException"/>
  24660. <doc>
  24661. <![CDATA[<i>Reduces</i> values for a given key.
  24662. <p>The framework calls this method for each
  24663. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  24664. Output values must be of the same type as input values. Input keys must
  24665. not be altered. The framework will <b>reuse</b> the key and value objects
  24666. that are passed into the reduce, therefore the application should clone
  24667. the objects they want to keep a copy of. In many cases, all values are
  24668. combined into zero or one value.
  24669. </p>
  24670. <p>Output pairs are collected with calls to
  24671. {@link OutputCollector#collect(Object,Object)}.</p>
  24672. <p>Applications can use the {@link Reporter} provided to report progress
  24673. or just indicate that they are alive. In scenarios where the application
  24674. takes an insignificant amount of time to process individual key/value
  24675. pairs, this is crucial since the framework might assume that the task has
  24676. timed-out and kill that task. The other way of avoiding this is to set
  24677. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  24678. mapred.task.timeout</a> to a high-enough value (or even zero for no
  24679. time-outs).</p>
  24680. @param key the key.
  24681. @param values the list of values to reduce.
  24682. @param output to collect keys and combined values.
  24683. @param reporter facility to report progress.]]>
  24684. </doc>
  24685. </method>
  24686. <doc>
  24687. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  24688. values.
  24689. <p>The number of <code>Reducer</code>s for the job is set by the user via
  24690. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  24691. can access the {@link JobConf} for the job via the
  24692. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  24693. Similarly they can use the {@link Closeable#close()} method for
  24694. de-initialization.</p>
  24695. <p><code>Reducer</code> has 3 primary phases:</p>
  24696. <ol>
  24697. <li>
  24698. <h4 id="Shuffle">Shuffle</h4>
  24699. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  24700. In the phase the framework, for each <code>Reducer</code>, fetches the
  24701. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  24702. </p>
  24703. </li>
  24704. <li>
  24705. <h4 id="Sort">Sort</h4>
  24706. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  24707. (since different <code>Mapper</code>s may have output the same key) in this
  24708. stage.</p>
  24709. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  24710. being fetched they are merged.</p>
  24711. <h5 id="SecondarySort">SecondarySort</h5>
  24712. <p>If equivalence rules for keys while grouping the intermediates are
  24713. different from those for grouping keys before reduction, then one may
  24714. specify a <code>Comparator</code> via
  24715. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  24716. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  24717. control how intermediate keys are grouped, these can be used in conjunction
  24718. to simulate <i>secondary sort on values</i>.</p>
  24719. For example, say that you want to find duplicate web pages and tag them
  24720. all with the url of the "best" known example. You would set up the job
  24721. like:
  24722. <ul>
  24723. <li>Map Input Key: url</li>
  24724. <li>Map Input Value: document</li>
  24725. <li>Map Output Key: document checksum, url pagerank</li>
  24726. <li>Map Output Value: url</li>
  24727. <li>Partitioner: by checksum</li>
  24728. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  24729. <li>OutputValueGroupingComparator: by checksum</li>
  24730. </ul>
  24731. </li>
  24732. <li>
  24733. <h4 id="Reduce">Reduce</h4>
  24734. <p>In this phase the
  24735. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  24736. method is called for each <code>&lt;key, (list of values)></code> pair in
  24737. the grouped inputs.</p>
  24738. <p>The output of the reduce task is typically written to the
  24739. {@link FileSystem} via
  24740. {@link OutputCollector#collect(Object, Object)}.</p>
  24741. </li>
  24742. </ol>
  24743. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  24744. <p>Example:</p>
  24745. <p><blockquote><pre>
  24746. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  24747. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  24748. static enum MyCounters { NUM_RECORDS }
  24749. private String reduceTaskId;
  24750. private int noKeys = 0;
  24751. public void configure(JobConf job) {
  24752. reduceTaskId = job.get("mapred.task.id");
  24753. }
  24754. public void reduce(K key, Iterator&lt;V&gt; values,
  24755. OutputCollector&lt;K, V&gt; output,
  24756. Reporter reporter)
  24757. throws IOException {
  24758. // Process
  24759. int noValues = 0;
  24760. while (values.hasNext()) {
  24761. V value = values.next();
  24762. // Increment the no. of values for this key
  24763. ++noValues;
  24764. // Process the &lt;key, value&gt; pair (assume this takes a while)
  24765. // ...
  24766. // ...
  24767. // Let the framework know that we are alive, and kicking!
  24768. if ((noValues%10) == 0) {
  24769. reporter.progress();
  24770. }
  24771. // Process some more
  24772. // ...
  24773. // ...
  24774. // Output the &lt;key, value&gt;
  24775. output.collect(key, value);
  24776. }
  24777. // Increment the no. of &lt;key, list of values&gt; pairs processed
  24778. ++noKeys;
  24779. // Increment counters
  24780. reporter.incrCounter(NUM_RECORDS, 1);
  24781. // Every 100 keys update application-level status
  24782. if ((noKeys%100) == 0) {
  24783. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  24784. }
  24785. }
  24786. }
  24787. </pre></blockquote></p>
  24788. @see Mapper
  24789. @see Partitioner
  24790. @see Reporter
  24791. @see MapReduceBase]]>
  24792. </doc>
  24793. </interface>
  24794. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  24795. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  24796. <interface name="Reporter" abstract="true"
  24797. static="false" final="false" visibility="public"
  24798. deprecated="not deprecated">
  24799. <implements name="org.apache.hadoop.util.Progressable"/>
  24800. <method name="setStatus"
  24801. abstract="false" native="false" synchronized="false"
  24802. static="false" final="false" visibility="public"
  24803. deprecated="not deprecated">
  24804. <param name="status" type="java.lang.String"/>
  24805. <doc>
  24806. <![CDATA[Set the status description for the task.
  24807. @param status brief description of the current status.]]>
  24808. </doc>
  24809. </method>
  24810. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  24811. abstract="false" native="false" synchronized="false"
  24812. static="false" final="false" visibility="public"
  24813. deprecated="not deprecated">
  24814. <param name="group" type="java.lang.String"/>
  24815. <param name="name" type="java.lang.String"/>
  24816. <doc>
  24817. <![CDATA[Get the {@link Counter} of the given group with the given name.
  24818. @param group counter group
  24819. @param name counter name
  24820. @return the <code>Counter</code> of the given group/name.]]>
  24821. </doc>
  24822. </method>
  24823. <method name="incrCounter"
  24824. abstract="false" native="false" synchronized="false"
  24825. static="false" final="false" visibility="public"
  24826. deprecated="not deprecated">
  24827. <param name="key" type="java.lang.Enum"/>
  24828. <param name="amount" type="long"/>
  24829. <doc>
  24830. <![CDATA[Increments the counter identified by the key, which can be of
  24831. any {@link Enum} type, by the specified amount.
  24832. @param key key to identify the counter to be incremented. The key can be
  24833. be any <code>Enum</code>.
  24834. @param amount A non-negative amount by which the counter is to
  24835. be incremented.]]>
  24836. </doc>
  24837. </method>
  24838. <method name="incrCounter"
  24839. abstract="false" native="false" synchronized="false"
  24840. static="false" final="false" visibility="public"
  24841. deprecated="not deprecated">
  24842. <param name="group" type="java.lang.String"/>
  24843. <param name="counter" type="java.lang.String"/>
  24844. <param name="amount" type="long"/>
  24845. <doc>
  24846. <![CDATA[Increments the counter identified by the group and counter name
  24847. by the specified amount.
  24848. @param group name to identify the group of the counter to be incremented.
  24849. @param counter name to identify the counter within the group.
  24850. @param amount A non-negative amount by which the counter is to
  24851. be incremented.]]>
  24852. </doc>
  24853. </method>
  24854. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  24855. abstract="false" native="false" synchronized="false"
  24856. static="false" final="false" visibility="public"
  24857. deprecated="not deprecated">
  24858. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  24859. <doc>
  24860. <![CDATA[Get the {@link InputSplit} object for a map.
  24861. @return the <code>InputSplit</code> that the map is reading from.
  24862. @throws UnsupportedOperationException if called outside a mapper]]>
  24863. </doc>
  24864. </method>
  24865. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  24866. transient="false" volatile="false"
  24867. static="true" final="true" visibility="public"
  24868. deprecated="not deprecated">
  24869. <doc>
  24870. <![CDATA[A constant of Reporter type that does nothing.]]>
  24871. </doc>
  24872. </field>
  24873. <doc>
  24874. <![CDATA[A facility for Map-Reduce applications to report progress and update
  24875. counters, status information etc.
  24876. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  24877. provided to report progress or just indicate that they are alive. In
  24878. scenarios where the application takes an insignificant amount of time to
  24879. process individual key/value pairs, this is crucial since the framework
  24880. might assume that the task has timed-out and kill that task.
  24881. <p>Applications can also update {@link Counters} via the provided
  24882. <code>Reporter</code> .</p>
  24883. @see Progressable
  24884. @see Counters]]>
  24885. </doc>
  24886. </interface>
  24887. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  24888. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  24889. <interface name="RunningJob" abstract="true"
  24890. static="false" final="false" visibility="public"
  24891. deprecated="not deprecated">
  24892. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  24893. abstract="false" native="false" synchronized="false"
  24894. static="false" final="false" visibility="public"
  24895. deprecated="not deprecated">
  24896. <doc>
  24897. <![CDATA[Get the job identifier.
  24898. @return the job identifier.]]>
  24899. </doc>
  24900. </method>
  24901. <method name="getJobID" return="java.lang.String"
  24902. abstract="false" native="false" synchronized="false"
  24903. static="false" final="false" visibility="public"
  24904. deprecated="This method is deprecated and will be removed. Applications should
  24905. rather use {@link #getID()}.">
  24906. <doc>
  24907. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  24908. rather use {@link #getID()}.]]>
  24909. </doc>
  24910. </method>
  24911. <method name="getJobName" return="java.lang.String"
  24912. abstract="false" native="false" synchronized="false"
  24913. static="false" final="false" visibility="public"
  24914. deprecated="not deprecated">
  24915. <doc>
  24916. <![CDATA[Get the name of the job.
  24917. @return the name of the job.]]>
  24918. </doc>
  24919. </method>
  24920. <method name="getJobFile" return="java.lang.String"
  24921. abstract="false" native="false" synchronized="false"
  24922. static="false" final="false" visibility="public"
  24923. deprecated="not deprecated">
  24924. <doc>
  24925. <![CDATA[Get the path of the submitted job configuration.
  24926. @return the path of the submitted job configuration.]]>
  24927. </doc>
  24928. </method>
  24929. <method name="getTrackingURL" return="java.lang.String"
  24930. abstract="false" native="false" synchronized="false"
  24931. static="false" final="false" visibility="public"
  24932. deprecated="not deprecated">
  24933. <doc>
  24934. <![CDATA[Get the URL where some job progress information will be displayed.
  24935. @return the URL where some job progress information will be displayed.]]>
  24936. </doc>
  24937. </method>
  24938. <method name="mapProgress" return="float"
  24939. abstract="false" native="false" synchronized="false"
  24940. static="false" final="false" visibility="public"
  24941. deprecated="not deprecated">
  24942. <exception name="IOException" type="java.io.IOException"/>
  24943. <doc>
  24944. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  24945. and 1.0. When all map tasks have completed, the function returns 1.0.
  24946. @return the progress of the job's map-tasks.
  24947. @throws IOException]]>
  24948. </doc>
  24949. </method>
  24950. <method name="reduceProgress" return="float"
  24951. abstract="false" native="false" synchronized="false"
  24952. static="false" final="false" visibility="public"
  24953. deprecated="not deprecated">
  24954. <exception name="IOException" type="java.io.IOException"/>
  24955. <doc>
  24956. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  24957. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  24958. @return the progress of the job's reduce-tasks.
  24959. @throws IOException]]>
  24960. </doc>
  24961. </method>
  24962. <method name="cleanupProgress" return="float"
  24963. abstract="false" native="false" synchronized="false"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. <exception name="IOException" type="java.io.IOException"/>
  24967. <doc>
  24968. <![CDATA[Get the <i>progress</i> of the job's cleanup-tasks, as a float between 0.0
  24969. and 1.0. When all cleanup tasks have completed, the function returns 1.0.
  24970. @return the progress of the job's cleanup-tasks.
  24971. @throws IOException]]>
  24972. </doc>
  24973. </method>
  24974. <method name="setupProgress" return="float"
  24975. abstract="false" native="false" synchronized="false"
  24976. static="false" final="false" visibility="public"
  24977. deprecated="not deprecated">
  24978. <exception name="IOException" type="java.io.IOException"/>
  24979. <doc>
  24980. <![CDATA[Get the <i>progress</i> of the job's setup-tasks, as a float between 0.0
  24981. and 1.0. When all setup tasks have completed, the function returns 1.0.
  24982. @return the progress of the job's setup-tasks.
  24983. @throws IOException]]>
  24984. </doc>
  24985. </method>
  24986. <method name="isComplete" return="boolean"
  24987. abstract="false" native="false" synchronized="false"
  24988. static="false" final="false" visibility="public"
  24989. deprecated="not deprecated">
  24990. <exception name="IOException" type="java.io.IOException"/>
  24991. <doc>
  24992. <![CDATA[Check if the job is finished or not.
  24993. This is a non-blocking call.
  24994. @return <code>true</code> if the job is complete, else <code>false</code>.
  24995. @throws IOException]]>
  24996. </doc>
  24997. </method>
  24998. <method name="isSuccessful" return="boolean"
  24999. abstract="false" native="false" synchronized="false"
  25000. static="false" final="false" visibility="public"
  25001. deprecated="not deprecated">
  25002. <exception name="IOException" type="java.io.IOException"/>
  25003. <doc>
  25004. <![CDATA[Check if the job completed successfully.
  25005. @return <code>true</code> if the job succeeded, else <code>false</code>.
  25006. @throws IOException]]>
  25007. </doc>
  25008. </method>
  25009. <method name="waitForCompletion"
  25010. abstract="false" native="false" synchronized="false"
  25011. static="false" final="false" visibility="public"
  25012. deprecated="not deprecated">
  25013. <exception name="IOException" type="java.io.IOException"/>
  25014. <doc>
  25015. <![CDATA[Blocks until the job is complete.
  25016. @throws IOException]]>
  25017. </doc>
  25018. </method>
  25019. <method name="getJobState" return="int"
  25020. abstract="false" native="false" synchronized="false"
  25021. static="false" final="false" visibility="public"
  25022. deprecated="not deprecated">
  25023. <exception name="IOException" type="java.io.IOException"/>
  25024. <doc>
  25025. <![CDATA[Returns the current state of the Job.
  25026. {@link JobStatus}
  25027. @throws IOException]]>
  25028. </doc>
  25029. </method>
  25030. <method name="killJob"
  25031. abstract="false" native="false" synchronized="false"
  25032. static="false" final="false" visibility="public"
  25033. deprecated="not deprecated">
  25034. <exception name="IOException" type="java.io.IOException"/>
  25035. <doc>
  25036. <![CDATA[Kill the running job. Blocks until all job tasks have been
  25037. killed as well. If the job is no longer running, it simply returns.
  25038. @throws IOException]]>
  25039. </doc>
  25040. </method>
  25041. <method name="setJobPriority"
  25042. abstract="false" native="false" synchronized="false"
  25043. static="false" final="false" visibility="public"
  25044. deprecated="not deprecated">
  25045. <param name="priority" type="java.lang.String"/>
  25046. <exception name="IOException" type="java.io.IOException"/>
  25047. <doc>
  25048. <![CDATA[Set the priority of a running job.
  25049. @param priority the new priority for the job.
  25050. @throws IOException]]>
  25051. </doc>
  25052. </method>
  25053. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  25054. abstract="false" native="false" synchronized="false"
  25055. static="false" final="false" visibility="public"
  25056. deprecated="not deprecated">
  25057. <param name="startFrom" type="int"/>
  25058. <exception name="IOException" type="java.io.IOException"/>
  25059. <doc>
  25060. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  25061. @param startFrom index to start fetching events from
  25062. @return an array of {@link TaskCompletionEvent}s
  25063. @throws IOException]]>
  25064. </doc>
  25065. </method>
  25066. <method name="killTask"
  25067. abstract="false" native="false" synchronized="false"
  25068. static="false" final="false" visibility="public"
  25069. deprecated="not deprecated">
  25070. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  25071. <param name="shouldFail" type="boolean"/>
  25072. <exception name="IOException" type="java.io.IOException"/>
  25073. <doc>
  25074. <![CDATA[Kill indicated task attempt.
  25075. @param taskId the id of the task to be terminated.
  25076. @param shouldFail if true the task is failed and added to failed tasks
  25077. list, otherwise it is just killed, w/o affecting
  25078. job failure status.
  25079. @throws IOException]]>
  25080. </doc>
  25081. </method>
  25082. <method name="killTask"
  25083. abstract="false" native="false" synchronized="false"
  25084. static="false" final="false" visibility="public"
  25085. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  25086. <param name="taskId" type="java.lang.String"/>
  25087. <param name="shouldFail" type="boolean"/>
  25088. <exception name="IOException" type="java.io.IOException"/>
  25089. <doc>
  25090. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  25091. </doc>
  25092. </method>
  25093. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  25094. abstract="false" native="false" synchronized="false"
  25095. static="false" final="false" visibility="public"
  25096. deprecated="not deprecated">
  25097. <exception name="IOException" type="java.io.IOException"/>
  25098. <doc>
  25099. <![CDATA[Gets the counters for this job.
  25100. @return the counters for this job.
  25101. @throws IOException]]>
  25102. </doc>
  25103. </method>
  25104. <doc>
  25105. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  25106. running Map-Reduce job.
  25107. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  25108. and then query the running-job for details such as name, configuration,
  25109. progress etc.</p>
  25110. @see JobClient]]>
  25111. </doc>
  25112. </interface>
  25113. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  25114. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  25115. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  25116. abstract="false"
  25117. static="false" final="false" visibility="public"
  25118. deprecated="not deprecated">
  25119. <constructor name="SequenceFileAsBinaryInputFormat"
  25120. static="false" final="false" visibility="public"
  25121. deprecated="not deprecated">
  25122. </constructor>
  25123. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  25124. abstract="false" native="false" synchronized="false"
  25125. static="false" final="false" visibility="public"
  25126. deprecated="not deprecated">
  25127. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25128. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25129. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25130. <exception name="IOException" type="java.io.IOException"/>
  25131. </method>
  25132. <doc>
  25133. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  25134. format.]]>
  25135. </doc>
  25136. </class>
  25137. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  25138. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  25139. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  25140. abstract="false"
  25141. static="true" final="false" visibility="public"
  25142. deprecated="not deprecated">
  25143. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"/>
  25144. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  25145. static="false" final="false" visibility="public"
  25146. deprecated="not deprecated">
  25147. <exception name="IOException" type="java.io.IOException"/>
  25148. </constructor>
  25149. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  25150. abstract="false" native="false" synchronized="false"
  25151. static="false" final="false" visibility="public"
  25152. deprecated="not deprecated">
  25153. </method>
  25154. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  25155. abstract="false" native="false" synchronized="false"
  25156. static="false" final="false" visibility="public"
  25157. deprecated="not deprecated">
  25158. </method>
  25159. <method name="getKeyClassName" return="java.lang.String"
  25160. abstract="false" native="false" synchronized="false"
  25161. static="false" final="false" visibility="public"
  25162. deprecated="not deprecated">
  25163. <doc>
  25164. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  25165. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  25166. </doc>
  25167. </method>
  25168. <method name="getValueClassName" return="java.lang.String"
  25169. abstract="false" native="false" synchronized="false"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <doc>
  25173. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  25174. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  25175. </doc>
  25176. </method>
  25177. <method name="next" return="boolean"
  25178. abstract="false" native="false" synchronized="true"
  25179. static="false" final="false" visibility="public"
  25180. deprecated="not deprecated">
  25181. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  25182. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  25183. <exception name="IOException" type="java.io.IOException"/>
  25184. <doc>
  25185. <![CDATA[Read raw bytes from a SequenceFile.]]>
  25186. </doc>
  25187. </method>
  25188. <method name="getPos" return="long"
  25189. abstract="false" native="false" synchronized="false"
  25190. static="false" final="false" visibility="public"
  25191. deprecated="not deprecated">
  25192. <exception name="IOException" type="java.io.IOException"/>
  25193. </method>
  25194. <method name="close"
  25195. abstract="false" native="false" synchronized="false"
  25196. static="false" final="false" visibility="public"
  25197. deprecated="not deprecated">
  25198. <exception name="IOException" type="java.io.IOException"/>
  25199. </method>
  25200. <method name="getProgress" return="float"
  25201. abstract="false" native="false" synchronized="false"
  25202. static="false" final="false" visibility="public"
  25203. deprecated="not deprecated">
  25204. <exception name="IOException" type="java.io.IOException"/>
  25205. <doc>
  25206. <![CDATA[Return the progress within the input split
  25207. @return 0.0 to 1.0 of the input byte range]]>
  25208. </doc>
  25209. </method>
  25210. <doc>
  25211. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  25212. </doc>
  25213. </class>
  25214. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  25215. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  25216. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  25217. abstract="false"
  25218. static="false" final="false" visibility="public"
  25219. deprecated="not deprecated">
  25220. <constructor name="SequenceFileAsBinaryOutputFormat"
  25221. static="false" final="false" visibility="public"
  25222. deprecated="not deprecated">
  25223. </constructor>
  25224. <method name="setSequenceFileOutputKeyClass"
  25225. abstract="false" native="false" synchronized="false"
  25226. static="true" final="false" visibility="public"
  25227. deprecated="not deprecated">
  25228. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25229. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  25230. <doc>
  25231. <![CDATA[Set the key class for the {@link SequenceFile}
  25232. <p>This allows the user to specify the key class to be different
  25233. from the actual class ({@link BytesWritable}) used for writing </p>
  25234. @param conf the {@link JobConf} to modify
  25235. @param theClass the SequenceFile output key class.]]>
  25236. </doc>
  25237. </method>
  25238. <method name="setSequenceFileOutputValueClass"
  25239. abstract="false" native="false" synchronized="false"
  25240. static="true" final="false" visibility="public"
  25241. deprecated="not deprecated">
  25242. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25243. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  25244. <doc>
  25245. <![CDATA[Set the value class for the {@link SequenceFile}
  25246. <p>This allows the user to specify the value class to be different
  25247. from the actual class ({@link BytesWritable}) used for writing </p>
  25248. @param conf the {@link JobConf} to modify
  25249. @param theClass the SequenceFile output key class.]]>
  25250. </doc>
  25251. </method>
  25252. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  25253. abstract="false" native="false" synchronized="false"
  25254. static="true" final="false" visibility="public"
  25255. deprecated="not deprecated">
  25256. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25257. <doc>
  25258. <![CDATA[Get the key class for the {@link SequenceFile}
  25259. @return the key class of the {@link SequenceFile}]]>
  25260. </doc>
  25261. </method>
  25262. <method name="getSequenceFileOutputValueClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"
  25263. abstract="false" native="false" synchronized="false"
  25264. static="true" final="false" visibility="public"
  25265. deprecated="not deprecated">
  25266. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25267. <doc>
  25268. <![CDATA[Get the value class for the {@link SequenceFile}
  25269. @return the value class of the {@link SequenceFile}]]>
  25270. </doc>
  25271. </method>
  25272. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  25273. abstract="false" native="false" synchronized="false"
  25274. static="false" final="false" visibility="public"
  25275. deprecated="not deprecated">
  25276. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25277. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25278. <param name="name" type="java.lang.String"/>
  25279. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  25280. <exception name="IOException" type="java.io.IOException"/>
  25281. </method>
  25282. <method name="checkOutputSpecs"
  25283. abstract="false" native="false" synchronized="false"
  25284. static="false" final="false" visibility="public"
  25285. deprecated="not deprecated">
  25286. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25287. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25288. <exception name="IOException" type="java.io.IOException"/>
  25289. </method>
  25290. <doc>
  25291. <![CDATA[An {@link OutputFormat} that writes keys, values to
  25292. {@link SequenceFile}s in binary(raw) format]]>
  25293. </doc>
  25294. </class>
  25295. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  25296. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  25297. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  25298. abstract="false"
  25299. static="true" final="false" visibility="protected"
  25300. deprecated="not deprecated">
  25301. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  25302. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="not deprecated">
  25305. </constructor>
  25306. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  25307. static="false" final="false" visibility="public"
  25308. deprecated="not deprecated">
  25309. </constructor>
  25310. <method name="reset"
  25311. abstract="false" native="false" synchronized="false"
  25312. static="false" final="false" visibility="public"
  25313. deprecated="not deprecated">
  25314. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  25315. </method>
  25316. <method name="writeUncompressedBytes"
  25317. abstract="false" native="false" synchronized="false"
  25318. static="false" final="false" visibility="public"
  25319. deprecated="not deprecated">
  25320. <param name="outStream" type="java.io.DataOutputStream"/>
  25321. <exception name="IOException" type="java.io.IOException"/>
  25322. </method>
  25323. <method name="writeCompressedBytes"
  25324. abstract="false" native="false" synchronized="false"
  25325. static="false" final="false" visibility="public"
  25326. deprecated="not deprecated">
  25327. <param name="outStream" type="java.io.DataOutputStream"/>
  25328. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  25329. <exception name="IOException" type="java.io.IOException"/>
  25330. </method>
  25331. <method name="getSize" return="int"
  25332. abstract="false" native="false" synchronized="false"
  25333. static="false" final="false" visibility="public"
  25334. deprecated="not deprecated">
  25335. </method>
  25336. <doc>
  25337. <![CDATA[Inner class used for appendRaw]]>
  25338. </doc>
  25339. </class>
  25340. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  25341. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  25342. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  25343. abstract="false"
  25344. static="false" final="false" visibility="public"
  25345. deprecated="not deprecated">
  25346. <constructor name="SequenceFileAsTextInputFormat"
  25347. static="false" final="false" visibility="public"
  25348. deprecated="not deprecated">
  25349. </constructor>
  25350. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  25351. abstract="false" native="false" synchronized="false"
  25352. static="false" final="false" visibility="public"
  25353. deprecated="not deprecated">
  25354. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25355. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25356. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25357. <exception name="IOException" type="java.io.IOException"/>
  25358. </method>
  25359. <doc>
  25360. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  25361. which converts the input keys and values to their String forms by calling toString() method.]]>
  25362. </doc>
  25363. </class>
  25364. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  25365. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  25366. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  25367. abstract="false"
  25368. static="false" final="false" visibility="public"
  25369. deprecated="not deprecated">
  25370. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  25371. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  25372. static="false" final="false" visibility="public"
  25373. deprecated="not deprecated">
  25374. <exception name="IOException" type="java.io.IOException"/>
  25375. </constructor>
  25376. <method name="createKey" return="org.apache.hadoop.io.Text"
  25377. abstract="false" native="false" synchronized="false"
  25378. static="false" final="false" visibility="public"
  25379. deprecated="not deprecated">
  25380. </method>
  25381. <method name="createValue" return="org.apache.hadoop.io.Text"
  25382. abstract="false" native="false" synchronized="false"
  25383. static="false" final="false" visibility="public"
  25384. deprecated="not deprecated">
  25385. </method>
  25386. <method name="next" return="boolean"
  25387. abstract="false" native="false" synchronized="true"
  25388. static="false" final="false" visibility="public"
  25389. deprecated="not deprecated">
  25390. <param name="key" type="org.apache.hadoop.io.Text"/>
  25391. <param name="value" type="org.apache.hadoop.io.Text"/>
  25392. <exception name="IOException" type="java.io.IOException"/>
  25393. <doc>
  25394. <![CDATA[Read key/value pair in a line.]]>
  25395. </doc>
  25396. </method>
  25397. <method name="getProgress" return="float"
  25398. abstract="false" native="false" synchronized="false"
  25399. static="false" final="false" visibility="public"
  25400. deprecated="not deprecated">
  25401. <exception name="IOException" type="java.io.IOException"/>
  25402. </method>
  25403. <method name="getPos" return="long"
  25404. abstract="false" native="false" synchronized="true"
  25405. static="false" final="false" visibility="public"
  25406. deprecated="not deprecated">
  25407. <exception name="IOException" type="java.io.IOException"/>
  25408. </method>
  25409. <method name="close"
  25410. abstract="false" native="false" synchronized="true"
  25411. static="false" final="false" visibility="public"
  25412. deprecated="not deprecated">
  25413. <exception name="IOException" type="java.io.IOException"/>
  25414. </method>
  25415. <doc>
  25416. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  25417. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  25418. class to TextInputFormat class.]]>
  25419. </doc>
  25420. </class>
  25421. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  25422. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  25423. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;K, V&gt;"
  25424. abstract="false"
  25425. static="false" final="false" visibility="public"
  25426. deprecated="not deprecated">
  25427. <constructor name="SequenceFileInputFilter"
  25428. static="false" final="false" visibility="public"
  25429. deprecated="not deprecated">
  25430. </constructor>
  25431. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  25432. abstract="false" native="false" synchronized="false"
  25433. static="false" final="false" visibility="public"
  25434. deprecated="not deprecated">
  25435. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25436. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25437. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25438. <exception name="IOException" type="java.io.IOException"/>
  25439. <doc>
  25440. <![CDATA[Create a record reader for the given split
  25441. @param split file split
  25442. @param job job configuration
  25443. @param reporter reporter who sends report to task tracker
  25444. @return RecordReader]]>
  25445. </doc>
  25446. </method>
  25447. <method name="setFilterClass"
  25448. abstract="false" native="false" synchronized="false"
  25449. static="true" final="false" visibility="public"
  25450. deprecated="not deprecated">
  25451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25452. <param name="filterClass" type="java.lang.Class"/>
  25453. <doc>
  25454. <![CDATA[set the filter class
  25455. @param conf application configuration
  25456. @param filterClass filter class]]>
  25457. </doc>
  25458. </method>
  25459. <doc>
  25460. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  25461. The sample is decided by the filter class set by the job.]]>
  25462. </doc>
  25463. </class>
  25464. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  25465. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  25466. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  25467. static="true" final="false" visibility="public"
  25468. deprecated="not deprecated">
  25469. <implements name="org.apache.hadoop.conf.Configurable"/>
  25470. <method name="accept" return="boolean"
  25471. abstract="false" native="false" synchronized="false"
  25472. static="false" final="false" visibility="public"
  25473. deprecated="not deprecated">
  25474. <param name="key" type="java.lang.Object"/>
  25475. <doc>
  25476. <![CDATA[filter function
  25477. Decide if a record should be filtered or not
  25478. @param key record key
  25479. @return true if a record is accepted; return false otherwise]]>
  25480. </doc>
  25481. </method>
  25482. <doc>
  25483. <![CDATA[filter interface]]>
  25484. </doc>
  25485. </interface>
  25486. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  25487. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  25488. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  25489. abstract="true"
  25490. static="true" final="false" visibility="public"
  25491. deprecated="not deprecated">
  25492. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  25493. <constructor name="SequenceFileInputFilter.FilterBase"
  25494. static="false" final="false" visibility="public"
  25495. deprecated="not deprecated">
  25496. </constructor>
  25497. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  25498. abstract="false" native="false" synchronized="false"
  25499. static="false" final="false" visibility="public"
  25500. deprecated="not deprecated">
  25501. </method>
  25502. <doc>
  25503. <![CDATA[base class for Filters]]>
  25504. </doc>
  25505. </class>
  25506. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  25507. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  25508. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  25509. abstract="false"
  25510. static="true" final="false" visibility="public"
  25511. deprecated="not deprecated">
  25512. <constructor name="SequenceFileInputFilter.MD5Filter"
  25513. static="false" final="false" visibility="public"
  25514. deprecated="not deprecated">
  25515. </constructor>
  25516. <method name="setFrequency"
  25517. abstract="false" native="false" synchronized="false"
  25518. static="true" final="false" visibility="public"
  25519. deprecated="not deprecated">
  25520. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25521. <param name="frequency" type="int"/>
  25522. <doc>
  25523. <![CDATA[set the filtering frequency in configuration
  25524. @param conf configuration
  25525. @param frequency filtering frequency]]>
  25526. </doc>
  25527. </method>
  25528. <method name="setConf"
  25529. abstract="false" native="false" synchronized="false"
  25530. static="false" final="false" visibility="public"
  25531. deprecated="not deprecated">
  25532. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25533. <doc>
  25534. <![CDATA[configure the filter according to configuration
  25535. @param conf configuration]]>
  25536. </doc>
  25537. </method>
  25538. <method name="accept" return="boolean"
  25539. abstract="false" native="false" synchronized="false"
  25540. static="false" final="false" visibility="public"
  25541. deprecated="not deprecated">
  25542. <param name="key" type="java.lang.Object"/>
  25543. <doc>
  25544. <![CDATA[Filtering method
  25545. If MD5(key) % frequency==0, return true; otherwise return false
  25546. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  25547. </doc>
  25548. </method>
  25549. <field name="MD5_LEN" type="int"
  25550. transient="false" volatile="false"
  25551. static="true" final="true" visibility="public"
  25552. deprecated="not deprecated">
  25553. </field>
  25554. <doc>
  25555. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  25556. key against a filtering frequency <i>f</i>. The filtering criteria is
  25557. MD5(key) % f == 0.]]>
  25558. </doc>
  25559. </class>
  25560. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  25561. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  25562. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  25563. abstract="false"
  25564. static="true" final="false" visibility="public"
  25565. deprecated="not deprecated">
  25566. <constructor name="SequenceFileInputFilter.PercentFilter"
  25567. static="false" final="false" visibility="public"
  25568. deprecated="not deprecated">
  25569. </constructor>
  25570. <method name="setFrequency"
  25571. abstract="false" native="false" synchronized="false"
  25572. static="true" final="false" visibility="public"
  25573. deprecated="not deprecated">
  25574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25575. <param name="frequency" type="int"/>
  25576. <doc>
  25577. <![CDATA[set the frequency and stores it in conf
  25578. @param conf configuration
  25579. @param frequency filtering frequencey]]>
  25580. </doc>
  25581. </method>
  25582. <method name="setConf"
  25583. abstract="false" native="false" synchronized="false"
  25584. static="false" final="false" visibility="public"
  25585. deprecated="not deprecated">
  25586. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25587. <doc>
  25588. <![CDATA[configure the filter by checking the configuration
  25589. @param conf configuration]]>
  25590. </doc>
  25591. </method>
  25592. <method name="accept" return="boolean"
  25593. abstract="false" native="false" synchronized="false"
  25594. static="false" final="false" visibility="public"
  25595. deprecated="not deprecated">
  25596. <param name="key" type="java.lang.Object"/>
  25597. <doc>
  25598. <![CDATA[Filtering method
  25599. If record# % frequency==0, return true; otherwise return false
  25600. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  25601. </doc>
  25602. </method>
  25603. <doc>
  25604. <![CDATA[This class returns a percentage of records
  25605. The percentage is determined by a filtering frequency <i>f</i> using
  25606. the criteria record# % f == 0.
  25607. For example, if the frequency is 10, one out of 10 records is returned.]]>
  25608. </doc>
  25609. </class>
  25610. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  25611. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  25612. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  25613. abstract="false"
  25614. static="true" final="false" visibility="public"
  25615. deprecated="not deprecated">
  25616. <constructor name="SequenceFileInputFilter.RegexFilter"
  25617. static="false" final="false" visibility="public"
  25618. deprecated="not deprecated">
  25619. </constructor>
  25620. <method name="setPattern"
  25621. abstract="false" native="false" synchronized="false"
  25622. static="true" final="false" visibility="public"
  25623. deprecated="not deprecated">
  25624. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25625. <param name="regex" type="java.lang.String"/>
  25626. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  25627. <doc>
  25628. <![CDATA[Define the filtering regex and stores it in conf
  25629. @param conf where the regex is set
  25630. @param regex regex used as a filter]]>
  25631. </doc>
  25632. </method>
  25633. <method name="setConf"
  25634. abstract="false" native="false" synchronized="false"
  25635. static="false" final="false" visibility="public"
  25636. deprecated="not deprecated">
  25637. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25638. <doc>
  25639. <![CDATA[configure the Filter by checking the configuration]]>
  25640. </doc>
  25641. </method>
  25642. <method name="accept" return="boolean"
  25643. abstract="false" native="false" synchronized="false"
  25644. static="false" final="false" visibility="public"
  25645. deprecated="not deprecated">
  25646. <param name="key" type="java.lang.Object"/>
  25647. <doc>
  25648. <![CDATA[Filtering method
  25649. If key matches the regex, return true; otherwise return false
  25650. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  25651. </doc>
  25652. </method>
  25653. <doc>
  25654. <![CDATA[Records filter by matching key to regex]]>
  25655. </doc>
  25656. </class>
  25657. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  25658. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  25659. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  25660. abstract="false"
  25661. static="false" final="false" visibility="public"
  25662. deprecated="not deprecated">
  25663. <constructor name="SequenceFileInputFormat"
  25664. static="false" final="false" visibility="public"
  25665. deprecated="not deprecated">
  25666. </constructor>
  25667. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  25668. abstract="false" native="false" synchronized="false"
  25669. static="false" final="false" visibility="protected"
  25670. deprecated="not deprecated">
  25671. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25672. <exception name="IOException" type="java.io.IOException"/>
  25673. </method>
  25674. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  25675. abstract="false" native="false" synchronized="false"
  25676. static="false" final="false" visibility="public"
  25677. deprecated="not deprecated">
  25678. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25679. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25680. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25681. <exception name="IOException" type="java.io.IOException"/>
  25682. </method>
  25683. <doc>
  25684. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  25685. </doc>
  25686. </class>
  25687. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  25688. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  25689. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  25690. abstract="false"
  25691. static="false" final="false" visibility="public"
  25692. deprecated="not deprecated">
  25693. <constructor name="SequenceFileOutputFormat"
  25694. static="false" final="false" visibility="public"
  25695. deprecated="not deprecated">
  25696. </constructor>
  25697. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  25698. abstract="false" native="false" synchronized="false"
  25699. static="false" final="false" visibility="public"
  25700. deprecated="not deprecated">
  25701. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25702. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25703. <param name="name" type="java.lang.String"/>
  25704. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  25705. <exception name="IOException" type="java.io.IOException"/>
  25706. </method>
  25707. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  25708. abstract="false" native="false" synchronized="false"
  25709. static="true" final="false" visibility="public"
  25710. deprecated="not deprecated">
  25711. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25712. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  25713. <exception name="IOException" type="java.io.IOException"/>
  25714. <doc>
  25715. <![CDATA[Open the output generated by this format.]]>
  25716. </doc>
  25717. </method>
  25718. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  25719. abstract="false" native="false" synchronized="false"
  25720. static="true" final="false" visibility="public"
  25721. deprecated="not deprecated">
  25722. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25723. <doc>
  25724. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  25725. @param conf the {@link JobConf}
  25726. @return the {@link CompressionType} for the output {@link SequenceFile},
  25727. defaulting to {@link CompressionType#RECORD}]]>
  25728. </doc>
  25729. </method>
  25730. <method name="setOutputCompressionType"
  25731. abstract="false" native="false" synchronized="false"
  25732. static="true" final="false" visibility="public"
  25733. deprecated="not deprecated">
  25734. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25735. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  25736. <doc>
  25737. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  25738. @param conf the {@link JobConf} to modify
  25739. @param style the {@link CompressionType} for the output
  25740. {@link SequenceFile}]]>
  25741. </doc>
  25742. </method>
  25743. <doc>
  25744. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  25745. </doc>
  25746. </class>
  25747. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  25748. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  25749. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  25750. abstract="false"
  25751. static="false" final="false" visibility="public"
  25752. deprecated="not deprecated">
  25753. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  25754. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  25755. static="false" final="false" visibility="public"
  25756. deprecated="not deprecated">
  25757. <exception name="IOException" type="java.io.IOException"/>
  25758. </constructor>
  25759. <method name="getKeyClass" return="java.lang.Class"
  25760. abstract="false" native="false" synchronized="false"
  25761. static="false" final="false" visibility="public"
  25762. deprecated="not deprecated">
  25763. <doc>
  25764. <![CDATA[The class of key that must be passed to {@link
  25765. #next(Object, Object)}..]]>
  25766. </doc>
  25767. </method>
  25768. <method name="getValueClass" return="java.lang.Class"
  25769. abstract="false" native="false" synchronized="false"
  25770. static="false" final="false" visibility="public"
  25771. deprecated="not deprecated">
  25772. <doc>
  25773. <![CDATA[The class of value that must be passed to {@link
  25774. #next(Object, Object)}..]]>
  25775. </doc>
  25776. </method>
  25777. <method name="createKey" return="K"
  25778. abstract="false" native="false" synchronized="false"
  25779. static="false" final="false" visibility="public"
  25780. deprecated="not deprecated">
  25781. </method>
  25782. <method name="createValue" return="V"
  25783. abstract="false" native="false" synchronized="false"
  25784. static="false" final="false" visibility="public"
  25785. deprecated="not deprecated">
  25786. </method>
  25787. <method name="next" return="boolean"
  25788. abstract="false" native="false" synchronized="true"
  25789. static="false" final="false" visibility="public"
  25790. deprecated="not deprecated">
  25791. <param name="key" type="K"/>
  25792. <param name="value" type="V"/>
  25793. <exception name="IOException" type="java.io.IOException"/>
  25794. </method>
  25795. <method name="next" return="boolean"
  25796. abstract="false" native="false" synchronized="true"
  25797. static="false" final="false" visibility="protected"
  25798. deprecated="not deprecated">
  25799. <param name="key" type="K"/>
  25800. <exception name="IOException" type="java.io.IOException"/>
  25801. </method>
  25802. <method name="getCurrentValue"
  25803. abstract="false" native="false" synchronized="true"
  25804. static="false" final="false" visibility="protected"
  25805. deprecated="not deprecated">
  25806. <param name="value" type="V"/>
  25807. <exception name="IOException" type="java.io.IOException"/>
  25808. </method>
  25809. <method name="getProgress" return="float"
  25810. abstract="false" native="false" synchronized="false"
  25811. static="false" final="false" visibility="public"
  25812. deprecated="not deprecated">
  25813. <exception name="IOException" type="java.io.IOException"/>
  25814. <doc>
  25815. <![CDATA[Return the progress within the input split
  25816. @return 0.0 to 1.0 of the input byte range]]>
  25817. </doc>
  25818. </method>
  25819. <method name="getPos" return="long"
  25820. abstract="false" native="false" synchronized="true"
  25821. static="false" final="false" visibility="public"
  25822. deprecated="not deprecated">
  25823. <exception name="IOException" type="java.io.IOException"/>
  25824. </method>
  25825. <method name="seek"
  25826. abstract="false" native="false" synchronized="true"
  25827. static="false" final="false" visibility="protected"
  25828. deprecated="not deprecated">
  25829. <param name="pos" type="long"/>
  25830. <exception name="IOException" type="java.io.IOException"/>
  25831. </method>
  25832. <method name="close"
  25833. abstract="false" native="false" synchronized="true"
  25834. static="false" final="false" visibility="public"
  25835. deprecated="not deprecated">
  25836. <exception name="IOException" type="java.io.IOException"/>
  25837. </method>
  25838. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  25839. transient="false" volatile="false"
  25840. static="false" final="false" visibility="protected"
  25841. deprecated="not deprecated">
  25842. </field>
  25843. <doc>
  25844. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  25845. </doc>
  25846. </class>
  25847. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  25848. <!-- start class org.apache.hadoop.mapred.SkipBadRecords -->
  25849. <class name="SkipBadRecords" extends="java.lang.Object"
  25850. abstract="false"
  25851. static="false" final="false" visibility="public"
  25852. deprecated="not deprecated">
  25853. <constructor name="SkipBadRecords"
  25854. static="false" final="false" visibility="public"
  25855. deprecated="not deprecated">
  25856. </constructor>
  25857. <method name="getAttemptsToStartSkipping" return="int"
  25858. abstract="false" native="false" synchronized="false"
  25859. static="true" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25862. <doc>
  25863. <![CDATA[Get the number of Task attempts AFTER which skip mode
  25864. will be kicked off. When skip mode is kicked off, the
  25865. tasks reports the range of records which it will process
  25866. next to the TaskTracker. So that on failures, TT knows which
  25867. ones are possibly the bad records. On further executions,
  25868. those are skipped.
  25869. Default value is 2.
  25870. @param conf the configuration
  25871. @return attemptsToStartSkipping no of task attempts]]>
  25872. </doc>
  25873. </method>
  25874. <method name="setAttemptsToStartSkipping"
  25875. abstract="false" native="false" synchronized="false"
  25876. static="true" final="false" visibility="public"
  25877. deprecated="not deprecated">
  25878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25879. <param name="attemptsToStartSkipping" type="int"/>
  25880. <doc>
  25881. <![CDATA[Set the number of Task attempts AFTER which skip mode
  25882. will be kicked off. When skip mode is kicked off, the
  25883. tasks reports the range of records which it will process
  25884. next to the TaskTracker. So that on failures, TT knows which
  25885. ones are possibly the bad records. On further executions,
  25886. those are skipped.
  25887. Default value is 2.
  25888. @param conf the configuration
  25889. @param attemptsToStartSkipping no of task attempts]]>
  25890. </doc>
  25891. </method>
  25892. <method name="getAutoIncrMapperProcCount" return="boolean"
  25893. abstract="false" native="false" synchronized="false"
  25894. static="true" final="false" visibility="public"
  25895. deprecated="not deprecated">
  25896. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25897. <doc>
  25898. <![CDATA[Get the flag which if set to true,
  25899. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  25900. by MapRunner after invoking the map function. This value must be set to
  25901. false for applications which process the records asynchronously
  25902. or buffer the input records. For example streaming.
  25903. In such cases applications should increment this counter on their own.
  25904. Default value is true.
  25905. @param conf the configuration
  25906. @return <code>true</code> if auto increment
  25907. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.
  25908. <code>false</code> otherwise.]]>
  25909. </doc>
  25910. </method>
  25911. <method name="setAutoIncrMapperProcCount"
  25912. abstract="false" native="false" synchronized="false"
  25913. static="true" final="false" visibility="public"
  25914. deprecated="not deprecated">
  25915. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25916. <param name="autoIncr" type="boolean"/>
  25917. <doc>
  25918. <![CDATA[Set the flag which if set to true,
  25919. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS} is incremented
  25920. by MapRunner after invoking the map function. This value must be set to
  25921. false for applications which process the records asynchronously
  25922. or buffer the input records. For example streaming.
  25923. In such cases applications should increment this counter on their own.
  25924. Default value is true.
  25925. @param conf the configuration
  25926. @param autoIncr whether to auto increment
  25927. {@link SkipBadRecords#COUNTER_MAP_PROCESSED_RECORDS}.]]>
  25928. </doc>
  25929. </method>
  25930. <method name="getAutoIncrReducerProcCount" return="boolean"
  25931. abstract="false" native="false" synchronized="false"
  25932. static="true" final="false" visibility="public"
  25933. deprecated="not deprecated">
  25934. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25935. <doc>
  25936. <![CDATA[Get the flag which if set to true,
  25937. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  25938. by framework after invoking the reduce function. This value must be set to
  25939. false for applications which process the records asynchronously
  25940. or buffer the input records. For example streaming.
  25941. In such cases applications should increment this counter on their own.
  25942. Default value is true.
  25943. @param conf the configuration
  25944. @return <code>true</code> if auto increment
  25945. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.
  25946. <code>false</code> otherwise.]]>
  25947. </doc>
  25948. </method>
  25949. <method name="setAutoIncrReducerProcCount"
  25950. abstract="false" native="false" synchronized="false"
  25951. static="true" final="false" visibility="public"
  25952. deprecated="not deprecated">
  25953. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25954. <param name="autoIncr" type="boolean"/>
  25955. <doc>
  25956. <![CDATA[Set the flag which if set to true,
  25957. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS} is incremented
  25958. by framework after invoking the reduce function. This value must be set to
  25959. false for applications which process the records asynchronously
  25960. or buffer the input records. For example streaming.
  25961. In such cases applications should increment this counter on their own.
  25962. Default value is true.
  25963. @param conf the configuration
  25964. @param autoIncr whether to auto increment
  25965. {@link SkipBadRecords#COUNTER_REDUCE_PROCESSED_GROUPS}.]]>
  25966. </doc>
  25967. </method>
  25968. <method name="getSkipOutputPath" return="org.apache.hadoop.fs.Path"
  25969. abstract="false" native="false" synchronized="false"
  25970. static="true" final="false" visibility="public"
  25971. deprecated="not deprecated">
  25972. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25973. <doc>
  25974. <![CDATA[Get the directory to which skipped records are written. By default it is
  25975. the sub directory of the output _logs directory.
  25976. User can stop writing skipped records by setting the value null.
  25977. @param conf the configuration.
  25978. @return path skip output directory. Null is returned if this is not set
  25979. and output directory is also not set.]]>
  25980. </doc>
  25981. </method>
  25982. <method name="setSkipOutputPath"
  25983. abstract="false" native="false" synchronized="false"
  25984. static="true" final="false" visibility="public"
  25985. deprecated="not deprecated">
  25986. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25987. <param name="path" type="org.apache.hadoop.fs.Path"/>
  25988. <doc>
  25989. <![CDATA[Set the directory to which skipped records are written. By default it is
  25990. the sub directory of the output _logs directory.
  25991. User can stop writing skipped records by setting the value null.
  25992. @param conf the configuration.
  25993. @param path skip output directory path]]>
  25994. </doc>
  25995. </method>
  25996. <method name="getMapperMaxSkipRecords" return="long"
  25997. abstract="false" native="false" synchronized="false"
  25998. static="true" final="false" visibility="public"
  25999. deprecated="not deprecated">
  26000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26001. <doc>
  26002. <![CDATA[Get the number of acceptable skip records surrounding the bad record PER
  26003. bad record in mapper. The number includes the bad record as well.
  26004. To turn the feature of detection/skipping of bad records off, set the
  26005. value to 0.
  26006. The framework tries to narrow down the skipped range by retrying
  26007. until this threshold is met OR all attempts get exhausted for this task.
  26008. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  26009. narrow down. Whatever records(depends on application) get skipped are
  26010. acceptable.
  26011. Default value is 0.
  26012. @param conf the configuration
  26013. @return maxSkipRecs acceptable skip records.]]>
  26014. </doc>
  26015. </method>
  26016. <method name="setMapperMaxSkipRecords"
  26017. abstract="false" native="false" synchronized="false"
  26018. static="true" final="false" visibility="public"
  26019. deprecated="not deprecated">
  26020. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26021. <param name="maxSkipRecs" type="long"/>
  26022. <doc>
  26023. <![CDATA[Set the number of acceptable skip records surrounding the bad record PER
  26024. bad record in mapper. The number includes the bad record as well.
  26025. To turn the feature of detection/skipping of bad records off, set the
  26026. value to 0.
  26027. The framework tries to narrow down the skipped range by retrying
  26028. until this threshold is met OR all attempts get exhausted for this task.
  26029. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  26030. narrow down. Whatever records(depends on application) get skipped are
  26031. acceptable.
  26032. Default value is 0.
  26033. @param conf the configuration
  26034. @param maxSkipRecs acceptable skip records.]]>
  26035. </doc>
  26036. </method>
  26037. <method name="getReducerMaxSkipGroups" return="long"
  26038. abstract="false" native="false" synchronized="false"
  26039. static="true" final="false" visibility="public"
  26040. deprecated="not deprecated">
  26041. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26042. <doc>
  26043. <![CDATA[Get the number of acceptable skip groups surrounding the bad group PER
  26044. bad group in reducer. The number includes the bad group as well.
  26045. To turn the feature of detection/skipping of bad groups off, set the
  26046. value to 0.
  26047. The framework tries to narrow down the skipped range by retrying
  26048. until this threshold is met OR all attempts get exhausted for this task.
  26049. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  26050. narrow down. Whatever groups(depends on application) get skipped are
  26051. acceptable.
  26052. Default value is 0.
  26053. @param conf the configuration
  26054. @return maxSkipGrps acceptable skip groups.]]>
  26055. </doc>
  26056. </method>
  26057. <method name="setReducerMaxSkipGroups"
  26058. abstract="false" native="false" synchronized="false"
  26059. static="true" final="false" visibility="public"
  26060. deprecated="not deprecated">
  26061. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26062. <param name="maxSkipGrps" type="long"/>
  26063. <doc>
  26064. <![CDATA[Set the number of acceptable skip groups surrounding the bad group PER
  26065. bad group in reducer. The number includes the bad group as well.
  26066. To turn the feature of detection/skipping of bad groups off, set the
  26067. value to 0.
  26068. The framework tries to narrow down the skipped range by retrying
  26069. until this threshold is met OR all attempts get exhausted for this task.
  26070. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  26071. narrow down. Whatever groups(depends on application) get skipped are
  26072. acceptable.
  26073. Default value is 0.
  26074. @param conf the configuration
  26075. @param maxSkipGrps acceptable skip groups.]]>
  26076. </doc>
  26077. </method>
  26078. <field name="COUNTER_GROUP" type="java.lang.String"
  26079. transient="false" volatile="false"
  26080. static="true" final="true" visibility="public"
  26081. deprecated="not deprecated">
  26082. <doc>
  26083. <![CDATA[Special counters which are written by the application and are
  26084. used by the framework for detecting bad records. For detecting bad records
  26085. these counters must be incremented by the application.]]>
  26086. </doc>
  26087. </field>
  26088. <field name="COUNTER_MAP_PROCESSED_RECORDS" type="java.lang.String"
  26089. transient="false" volatile="false"
  26090. static="true" final="true" visibility="public"
  26091. deprecated="not deprecated">
  26092. <doc>
  26093. <![CDATA[Number of processed map records.
  26094. @see SkipBadRecords#getAutoIncrMapperProcCount(Configuration)]]>
  26095. </doc>
  26096. </field>
  26097. <field name="COUNTER_REDUCE_PROCESSED_GROUPS" type="java.lang.String"
  26098. transient="false" volatile="false"
  26099. static="true" final="true" visibility="public"
  26100. deprecated="not deprecated">
  26101. <doc>
  26102. <![CDATA[Number of processed reduce groups.
  26103. @see SkipBadRecords#getAutoIncrReducerProcCount(Configuration)]]>
  26104. </doc>
  26105. </field>
  26106. <doc>
  26107. <![CDATA[Utility class for skip bad records functionality. It contains various
  26108. settings related to skipping of bad records.
  26109. <p>Hadoop provides an optional mode of execution in which the bad records
  26110. are detected and skipped in further attempts.
  26111. <p>This feature can be used when map/reduce tasks crashes deterministically on
  26112. certain input. This happens due to bugs in the map/reduce function. The usual
  26113. course would be to fix these bugs. But sometimes this is not possible;
  26114. perhaps the bug is in third party libraries for which the source code is
  26115. not available. Due to this, the task never reaches to completion even with
  26116. multiple attempts and complete data for that task is lost.</p>
  26117. <p>With this feature, only a small portion of data is lost surrounding
  26118. the bad record, which may be acceptable for some user applications.
  26119. see {@link SkipBadRecords#setMapperMaxSkipRecords(Configuration, long)}</p>
  26120. <p>The skipping mode gets kicked off after certain no of failures
  26121. see {@link SkipBadRecords#setAttemptsToStartSkipping(Configuration, int)}</p>
  26122. <p>In the skipping mode, the map/reduce task maintains the record range which
  26123. is getting processed at all times. Before giving the input to the
  26124. map/reduce function, it sends this record range to the Task tracker.
  26125. If task crashes, the Task tracker knows which one was the last reported
  26126. range. On further attempts that range get skipped.</p>]]>
  26127. </doc>
  26128. </class>
  26129. <!-- end class org.apache.hadoop.mapred.SkipBadRecords -->
  26130. <!-- start class org.apache.hadoop.mapred.StatusHttpServer -->
  26131. <class name="StatusHttpServer" extends="org.apache.hadoop.http.HttpServer"
  26132. abstract="false"
  26133. static="false" final="false" visibility="public"
  26134. deprecated="not deprecated">
  26135. <doc>
  26136. <![CDATA[A mapred http server.]]>
  26137. </doc>
  26138. </class>
  26139. <!-- end class org.apache.hadoop.mapred.StatusHttpServer -->
  26140. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  26141. <class name="StatusHttpServer.TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  26142. abstract="false"
  26143. static="true" final="false" visibility="public"
  26144. deprecated="not deprecated">
  26145. <constructor name="StatusHttpServer.TaskGraphServlet"
  26146. static="false" final="false" visibility="public"
  26147. deprecated="not deprecated">
  26148. </constructor>
  26149. <method name="doGet"
  26150. abstract="false" native="false" synchronized="false"
  26151. static="false" final="false" visibility="public"
  26152. deprecated="not deprecated">
  26153. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  26154. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  26155. <exception name="ServletException" type="javax.servlet.ServletException"/>
  26156. <exception name="IOException" type="java.io.IOException"/>
  26157. </method>
  26158. <field name="width" type="int"
  26159. transient="false" volatile="false"
  26160. static="true" final="true" visibility="public"
  26161. deprecated="not deprecated">
  26162. <doc>
  26163. <![CDATA[height of the graph w/o margins]]>
  26164. </doc>
  26165. </field>
  26166. <field name="height" type="int"
  26167. transient="false" volatile="false"
  26168. static="true" final="true" visibility="public"
  26169. deprecated="not deprecated">
  26170. <doc>
  26171. <![CDATA[height of the graph w/o margins]]>
  26172. </doc>
  26173. </field>
  26174. <field name="ymargin" type="int"
  26175. transient="false" volatile="false"
  26176. static="true" final="true" visibility="public"
  26177. deprecated="not deprecated">
  26178. <doc>
  26179. <![CDATA[margin space on y axis]]>
  26180. </doc>
  26181. </field>
  26182. <field name="xmargin" type="int"
  26183. transient="false" volatile="false"
  26184. static="true" final="true" visibility="public"
  26185. deprecated="not deprecated">
  26186. <doc>
  26187. <![CDATA[margin space on x axis]]>
  26188. </doc>
  26189. </field>
  26190. <doc>
  26191. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  26192. statuses]]>
  26193. </doc>
  26194. </class>
  26195. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  26196. <!-- start class org.apache.hadoop.mapred.TaskAttemptContext -->
  26197. <class name="TaskAttemptContext" extends="org.apache.hadoop.mapred.JobContext"
  26198. abstract="false"
  26199. static="false" final="false" visibility="public"
  26200. deprecated="not deprecated">
  26201. <method name="getTaskAttemptID" return="org.apache.hadoop.mapred.TaskAttemptID"
  26202. abstract="false" native="false" synchronized="false"
  26203. static="false" final="false" visibility="public"
  26204. deprecated="not deprecated">
  26205. <doc>
  26206. <![CDATA[Get the taskAttemptID.
  26207. @return TaskAttemptID]]>
  26208. </doc>
  26209. </method>
  26210. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  26211. abstract="false" native="false" synchronized="false"
  26212. static="false" final="false" visibility="public"
  26213. deprecated="not deprecated">
  26214. <doc>
  26215. <![CDATA[Get the job Configuration.
  26216. @return JobConf]]>
  26217. </doc>
  26218. </method>
  26219. </class>
  26220. <!-- end class org.apache.hadoop.mapred.TaskAttemptContext -->
  26221. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  26222. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  26223. abstract="false"
  26224. static="false" final="false" visibility="public"
  26225. deprecated="not deprecated">
  26226. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  26227. static="false" final="false" visibility="public"
  26228. deprecated="not deprecated">
  26229. <doc>
  26230. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  26231. @param taskId TaskID that this task belongs to
  26232. @param id the task attempt number]]>
  26233. </doc>
  26234. </constructor>
  26235. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  26236. static="false" final="false" visibility="public"
  26237. deprecated="not deprecated">
  26238. <doc>
  26239. <![CDATA[Constructs a TaskId object from given parts.
  26240. @param jtIdentifier jobTracker identifier
  26241. @param jobId job number
  26242. @param isMap whether the tip is a map
  26243. @param taskId taskId number
  26244. @param id the task attempt number]]>
  26245. </doc>
  26246. </constructor>
  26247. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  26248. abstract="false" native="false" synchronized="false"
  26249. static="false" final="false" visibility="public"
  26250. deprecated="not deprecated">
  26251. <doc>
  26252. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  26253. </doc>
  26254. </method>
  26255. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  26256. abstract="false" native="false" synchronized="false"
  26257. static="false" final="false" visibility="public"
  26258. deprecated="not deprecated">
  26259. <doc>
  26260. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  26261. </doc>
  26262. </method>
  26263. <method name="isMap" return="boolean"
  26264. abstract="false" native="false" synchronized="false"
  26265. static="false" final="false" visibility="public"
  26266. deprecated="not deprecated">
  26267. <doc>
  26268. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  26269. </doc>
  26270. </method>
  26271. <method name="equals" return="boolean"
  26272. abstract="false" native="false" synchronized="false"
  26273. static="false" final="false" visibility="public"
  26274. deprecated="not deprecated">
  26275. <param name="o" type="java.lang.Object"/>
  26276. </method>
  26277. <method name="compareTo" return="int"
  26278. abstract="false" native="false" synchronized="false"
  26279. static="false" final="false" visibility="public"
  26280. deprecated="not deprecated">
  26281. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  26282. <doc>
  26283. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  26284. </doc>
  26285. </method>
  26286. <method name="toString" return="java.lang.String"
  26287. abstract="false" native="false" synchronized="false"
  26288. static="false" final="false" visibility="public"
  26289. deprecated="not deprecated">
  26290. </method>
  26291. <method name="hashCode" return="int"
  26292. abstract="false" native="false" synchronized="false"
  26293. static="false" final="false" visibility="public"
  26294. deprecated="not deprecated">
  26295. </method>
  26296. <method name="readFields"
  26297. abstract="false" native="false" synchronized="false"
  26298. static="false" final="false" visibility="public"
  26299. deprecated="not deprecated">
  26300. <param name="in" type="java.io.DataInput"/>
  26301. <exception name="IOException" type="java.io.IOException"/>
  26302. </method>
  26303. <method name="write"
  26304. abstract="false" native="false" synchronized="false"
  26305. static="false" final="false" visibility="public"
  26306. deprecated="not deprecated">
  26307. <param name="out" type="java.io.DataOutput"/>
  26308. <exception name="IOException" type="java.io.IOException"/>
  26309. </method>
  26310. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  26311. abstract="false" native="false" synchronized="false"
  26312. static="true" final="false" visibility="public"
  26313. deprecated="not deprecated">
  26314. <param name="in" type="java.io.DataInput"/>
  26315. <exception name="IOException" type="java.io.IOException"/>
  26316. </method>
  26317. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  26318. abstract="false" native="false" synchronized="false"
  26319. static="true" final="false" visibility="public"
  26320. deprecated="not deprecated">
  26321. <param name="str" type="java.lang.String"/>
  26322. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  26323. <doc>
  26324. <![CDATA[Construct a TaskAttemptID object from given string
  26325. @return constructed TaskAttemptID object or null if the given String is null
  26326. @throws IllegalArgumentException if the given string is malformed]]>
  26327. </doc>
  26328. </method>
  26329. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  26330. abstract="false" native="false" synchronized="false"
  26331. static="true" final="false" visibility="public"
  26332. deprecated="not deprecated">
  26333. <param name="jtIdentifier" type="java.lang.String"/>
  26334. <param name="jobId" type="java.lang.Integer"/>
  26335. <param name="isMap" type="java.lang.Boolean"/>
  26336. <param name="taskId" type="java.lang.Integer"/>
  26337. <param name="attemptId" type="java.lang.Integer"/>
  26338. <doc>
  26339. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  26340. be given null, in which case that part of the regex will be generic.
  26341. For example to obtain a regex matching <i>all task attempt IDs</i>
  26342. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  26343. map task</i>, we would use :
  26344. <pre>
  26345. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  26346. </pre>
  26347. which will return :
  26348. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  26349. @param jtIdentifier jobTracker identifier, or null
  26350. @param jobId job number, or null
  26351. @param isMap whether the tip is a map, or null
  26352. @param taskId taskId number, or null
  26353. @param attemptId the task attempt number, or null
  26354. @return a regex pattern matching TaskAttemptIDs]]>
  26355. </doc>
  26356. </method>
  26357. <doc>
  26358. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  26359. a task attempt. Each task attempt is one particular instance of a Map or
  26360. Reduce Task identified by its TaskID.
  26361. TaskAttemptID consists of 2 parts. First part is the
  26362. {@link TaskID}, that this TaskAttemptID belongs to.
  26363. Second part is the task attempt number. <br>
  26364. An example TaskAttemptID is :
  26365. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  26366. zeroth task attempt for the fifth map task in the third job
  26367. running at the jobtracker started at <code>200707121733</code>.
  26368. <p>
  26369. Applications should never construct or parse TaskAttemptID strings
  26370. , but rather use appropriate constructors or {@link #forName(String)}
  26371. method.
  26372. @see JobID
  26373. @see TaskID]]>
  26374. </doc>
  26375. </class>
  26376. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  26377. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  26378. <class name="TaskCompletionEvent" extends="java.lang.Object"
  26379. abstract="false"
  26380. static="false" final="false" visibility="public"
  26381. deprecated="not deprecated">
  26382. <implements name="org.apache.hadoop.io.Writable"/>
  26383. <constructor name="TaskCompletionEvent"
  26384. static="false" final="false" visibility="public"
  26385. deprecated="not deprecated">
  26386. <doc>
  26387. <![CDATA[Default constructor for Writable.]]>
  26388. </doc>
  26389. </constructor>
  26390. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  26391. static="false" final="false" visibility="public"
  26392. deprecated="not deprecated">
  26393. <doc>
  26394. <![CDATA[Constructor. eventId should be created externally and incremented
  26395. per event for each job.
  26396. @param eventId event id, event id should be unique and assigned in
  26397. incrementally, starting from 0.
  26398. @param taskId task id
  26399. @param status task's status
  26400. @param taskTrackerHttp task tracker's host:port for http.]]>
  26401. </doc>
  26402. </constructor>
  26403. <method name="getEventId" return="int"
  26404. abstract="false" native="false" synchronized="false"
  26405. static="false" final="false" visibility="public"
  26406. deprecated="not deprecated">
  26407. <doc>
  26408. <![CDATA[Returns event Id.
  26409. @return event id]]>
  26410. </doc>
  26411. </method>
  26412. <method name="getTaskId" return="java.lang.String"
  26413. abstract="false" native="false" synchronized="false"
  26414. static="false" final="false" visibility="public"
  26415. deprecated="use {@link #getTaskAttemptId()} instead.">
  26416. <doc>
  26417. <![CDATA[Returns task id.
  26418. @return task id
  26419. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  26420. </doc>
  26421. </method>
  26422. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  26423. abstract="false" native="false" synchronized="false"
  26424. static="false" final="false" visibility="public"
  26425. deprecated="not deprecated">
  26426. <doc>
  26427. <![CDATA[Returns task id.
  26428. @return task id]]>
  26429. </doc>
  26430. </method>
  26431. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  26432. abstract="false" native="false" synchronized="false"
  26433. static="false" final="false" visibility="public"
  26434. deprecated="not deprecated">
  26435. <doc>
  26436. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  26437. @return task tracker status]]>
  26438. </doc>
  26439. </method>
  26440. <method name="getTaskTrackerHttp" return="java.lang.String"
  26441. abstract="false" native="false" synchronized="false"
  26442. static="false" final="false" visibility="public"
  26443. deprecated="not deprecated">
  26444. <doc>
  26445. <![CDATA[http location of the tasktracker where this task ran.
  26446. @return http location of tasktracker user logs]]>
  26447. </doc>
  26448. </method>
  26449. <method name="getTaskRunTime" return="int"
  26450. abstract="false" native="false" synchronized="false"
  26451. static="false" final="false" visibility="public"
  26452. deprecated="not deprecated">
  26453. <doc>
  26454. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  26455. </doc>
  26456. </method>
  26457. <method name="setTaskRunTime"
  26458. abstract="false" native="false" synchronized="false"
  26459. static="false" final="false" visibility="public"
  26460. deprecated="not deprecated">
  26461. <param name="taskCompletionTime" type="int"/>
  26462. <doc>
  26463. <![CDATA[Set the task completion time
  26464. @param taskCompletionTime time (in millisec) the task took to complete]]>
  26465. </doc>
  26466. </method>
  26467. <method name="setEventId"
  26468. abstract="false" native="false" synchronized="false"
  26469. static="false" final="false" visibility="public"
  26470. deprecated="not deprecated">
  26471. <param name="eventId" type="int"/>
  26472. <doc>
  26473. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  26474. @param eventId]]>
  26475. </doc>
  26476. </method>
  26477. <method name="setTaskId"
  26478. abstract="false" native="false" synchronized="false"
  26479. static="false" final="false" visibility="public"
  26480. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  26481. <param name="taskId" type="java.lang.String"/>
  26482. <doc>
  26483. <![CDATA[Sets task id.
  26484. @param taskId
  26485. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  26486. </doc>
  26487. </method>
  26488. <method name="setTaskID"
  26489. abstract="false" native="false" synchronized="false"
  26490. static="false" final="false" visibility="public"
  26491. deprecated="not deprecated">
  26492. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26493. <doc>
  26494. <![CDATA[Sets task id.
  26495. @param taskId]]>
  26496. </doc>
  26497. </method>
  26498. <method name="setTaskStatus"
  26499. abstract="false" native="false" synchronized="false"
  26500. static="false" final="false" visibility="public"
  26501. deprecated="not deprecated">
  26502. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  26503. <doc>
  26504. <![CDATA[Set task status.
  26505. @param status]]>
  26506. </doc>
  26507. </method>
  26508. <method name="setTaskTrackerHttp"
  26509. abstract="false" native="false" synchronized="false"
  26510. static="false" final="false" visibility="public"
  26511. deprecated="not deprecated">
  26512. <param name="taskTrackerHttp" type="java.lang.String"/>
  26513. <doc>
  26514. <![CDATA[Set task tracker http location.
  26515. @param taskTrackerHttp]]>
  26516. </doc>
  26517. </method>
  26518. <method name="toString" return="java.lang.String"
  26519. abstract="false" native="false" synchronized="false"
  26520. static="false" final="false" visibility="public"
  26521. deprecated="not deprecated">
  26522. </method>
  26523. <method name="equals" return="boolean"
  26524. abstract="false" native="false" synchronized="false"
  26525. static="false" final="false" visibility="public"
  26526. deprecated="not deprecated">
  26527. <param name="o" type="java.lang.Object"/>
  26528. </method>
  26529. <method name="hashCode" return="int"
  26530. abstract="false" native="false" synchronized="false"
  26531. static="false" final="false" visibility="public"
  26532. deprecated="not deprecated">
  26533. </method>
  26534. <method name="isMapTask" return="boolean"
  26535. abstract="false" native="false" synchronized="false"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. </method>
  26539. <method name="idWithinJob" return="int"
  26540. abstract="false" native="false" synchronized="false"
  26541. static="false" final="false" visibility="public"
  26542. deprecated="not deprecated">
  26543. </method>
  26544. <method name="write"
  26545. abstract="false" native="false" synchronized="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <param name="out" type="java.io.DataOutput"/>
  26549. <exception name="IOException" type="java.io.IOException"/>
  26550. </method>
  26551. <method name="readFields"
  26552. abstract="false" native="false" synchronized="false"
  26553. static="false" final="false" visibility="public"
  26554. deprecated="not deprecated">
  26555. <param name="in" type="java.io.DataInput"/>
  26556. <exception name="IOException" type="java.io.IOException"/>
  26557. </method>
  26558. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  26559. transient="false" volatile="false"
  26560. static="true" final="true" visibility="public"
  26561. deprecated="not deprecated">
  26562. </field>
  26563. <doc>
  26564. <![CDATA[This is used to track task completion events on
  26565. job tracker.]]>
  26566. </doc>
  26567. </class>
  26568. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  26569. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  26570. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskCompletionEvent.Status&gt;"
  26571. abstract="false"
  26572. static="true" final="true" visibility="public"
  26573. deprecated="not deprecated">
  26574. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  26575. abstract="false" native="false" synchronized="false"
  26576. static="true" final="false" visibility="public"
  26577. deprecated="not deprecated">
  26578. </method>
  26579. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  26580. abstract="false" native="false" synchronized="false"
  26581. static="true" final="false" visibility="public"
  26582. deprecated="not deprecated">
  26583. <param name="name" type="java.lang.String"/>
  26584. </method>
  26585. </class>
  26586. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  26587. <!-- start class org.apache.hadoop.mapred.TaskID -->
  26588. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  26589. abstract="false"
  26590. static="false" final="false" visibility="public"
  26591. deprecated="not deprecated">
  26592. <constructor name="TaskID" type="org.apache.hadoop.mapred.JobID, boolean, int"
  26593. static="false" final="false" visibility="public"
  26594. deprecated="not deprecated">
  26595. <doc>
  26596. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  26597. @param jobId JobID that this tip belongs to
  26598. @param isMap whether the tip is a map
  26599. @param id the tip number]]>
  26600. </doc>
  26601. </constructor>
  26602. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  26603. static="false" final="false" visibility="public"
  26604. deprecated="not deprecated">
  26605. <doc>
  26606. <![CDATA[Constructs a TaskInProgressId object from given parts.
  26607. @param jtIdentifier jobTracker identifier
  26608. @param jobId job number
  26609. @param isMap whether the tip is a map
  26610. @param id the tip number]]>
  26611. </doc>
  26612. </constructor>
  26613. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  26614. abstract="false" native="false" synchronized="false"
  26615. static="false" final="false" visibility="public"
  26616. deprecated="not deprecated">
  26617. <doc>
  26618. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  26619. </doc>
  26620. </method>
  26621. <method name="isMap" return="boolean"
  26622. abstract="false" native="false" synchronized="false"
  26623. static="false" final="false" visibility="public"
  26624. deprecated="not deprecated">
  26625. <doc>
  26626. <![CDATA[Returns whether this TaskID is a map ID]]>
  26627. </doc>
  26628. </method>
  26629. <method name="equals" return="boolean"
  26630. abstract="false" native="false" synchronized="false"
  26631. static="false" final="false" visibility="public"
  26632. deprecated="not deprecated">
  26633. <param name="o" type="java.lang.Object"/>
  26634. </method>
  26635. <method name="compareTo" return="int"
  26636. abstract="false" native="false" synchronized="false"
  26637. static="false" final="false" visibility="public"
  26638. deprecated="not deprecated">
  26639. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  26640. <doc>
  26641. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  26642. defined as greater then maps.]]>
  26643. </doc>
  26644. </method>
  26645. <method name="toString" return="java.lang.String"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. </method>
  26650. <method name="hashCode" return="int"
  26651. abstract="false" native="false" synchronized="false"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. </method>
  26655. <method name="readFields"
  26656. abstract="false" native="false" synchronized="false"
  26657. static="false" final="false" visibility="public"
  26658. deprecated="not deprecated">
  26659. <param name="in" type="java.io.DataInput"/>
  26660. <exception name="IOException" type="java.io.IOException"/>
  26661. </method>
  26662. <method name="write"
  26663. abstract="false" native="false" synchronized="false"
  26664. static="false" final="false" visibility="public"
  26665. deprecated="not deprecated">
  26666. <param name="out" type="java.io.DataOutput"/>
  26667. <exception name="IOException" type="java.io.IOException"/>
  26668. </method>
  26669. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  26670. abstract="false" native="false" synchronized="false"
  26671. static="true" final="false" visibility="public"
  26672. deprecated="not deprecated">
  26673. <param name="in" type="java.io.DataInput"/>
  26674. <exception name="IOException" type="java.io.IOException"/>
  26675. </method>
  26676. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  26677. abstract="false" native="false" synchronized="false"
  26678. static="true" final="false" visibility="public"
  26679. deprecated="not deprecated">
  26680. <param name="str" type="java.lang.String"/>
  26681. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  26682. <doc>
  26683. <![CDATA[Construct a TaskID object from given string
  26684. @return constructed TaskID object or null if the given String is null
  26685. @throws IllegalArgumentException if the given string is malformed]]>
  26686. </doc>
  26687. </method>
  26688. <method name="getTaskIDsPattern" return="java.lang.String"
  26689. abstract="false" native="false" synchronized="false"
  26690. static="true" final="false" visibility="public"
  26691. deprecated="not deprecated">
  26692. <param name="jtIdentifier" type="java.lang.String"/>
  26693. <param name="jobId" type="java.lang.Integer"/>
  26694. <param name="isMap" type="java.lang.Boolean"/>
  26695. <param name="taskId" type="java.lang.Integer"/>
  26696. <doc>
  26697. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  26698. be given null, in which case that part of the regex will be generic.
  26699. For example to obtain a regex matching <i>the first map task</i>
  26700. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  26701. <pre>
  26702. TaskID.getTaskIDsPattern(null, null, true, 1);
  26703. </pre>
  26704. which will return :
  26705. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  26706. @param jtIdentifier jobTracker identifier, or null
  26707. @param jobId job number, or null
  26708. @param isMap whether the tip is a map, or null
  26709. @param taskId taskId number, or null
  26710. @return a regex pattern matching TaskIDs]]>
  26711. </doc>
  26712. </method>
  26713. <doc>
  26714. <![CDATA[TaskID represents the immutable and unique identifier for
  26715. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  26716. execute the Map or Reduce Task, each of which are uniquely indentified by
  26717. their TaskAttemptID.
  26718. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  26719. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  26720. representing whether the task is a map task or a reduce task.
  26721. And the third part is the task number. <br>
  26722. An example TaskID is :
  26723. <code>task_200707121733_0003_m_000005</code> , which represents the
  26724. fifth map task in the third job running at the jobtracker
  26725. started at <code>200707121733</code>.
  26726. <p>
  26727. Applications should never construct or parse TaskID strings
  26728. , but rather use appropriate constructors or {@link #forName(String)}
  26729. method.
  26730. @see JobID
  26731. @see TaskAttemptID]]>
  26732. </doc>
  26733. </class>
  26734. <!-- end class org.apache.hadoop.mapred.TaskID -->
  26735. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  26736. <class name="TaskLog" extends="java.lang.Object"
  26737. abstract="false"
  26738. static="false" final="false" visibility="public"
  26739. deprecated="not deprecated">
  26740. <constructor name="TaskLog"
  26741. static="false" final="false" visibility="public"
  26742. deprecated="not deprecated">
  26743. </constructor>
  26744. <method name="getTaskLogFile" return="java.io.File"
  26745. abstract="false" native="false" synchronized="false"
  26746. static="true" final="false" visibility="public"
  26747. deprecated="not deprecated">
  26748. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26749. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  26750. </method>
  26751. <method name="getRealTaskLogFileLocation" return="java.io.File"
  26752. abstract="false" native="false" synchronized="false"
  26753. static="true" final="false" visibility="public"
  26754. deprecated="not deprecated">
  26755. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26756. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  26757. </method>
  26758. <method name="getIndexFile" return="java.io.File"
  26759. abstract="false" native="false" synchronized="false"
  26760. static="true" final="false" visibility="public"
  26761. deprecated="not deprecated">
  26762. <param name="taskid" type="java.lang.String"/>
  26763. </method>
  26764. <method name="getIndexFile" return="java.io.File"
  26765. abstract="false" native="false" synchronized="false"
  26766. static="true" final="false" visibility="public"
  26767. deprecated="not deprecated">
  26768. <param name="taskid" type="java.lang.String"/>
  26769. <param name="isCleanup" type="boolean"/>
  26770. </method>
  26771. <method name="syncLogs"
  26772. abstract="false" native="false" synchronized="true"
  26773. static="true" final="false" visibility="public"
  26774. deprecated="not deprecated">
  26775. <param name="firstTaskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26776. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26777. <exception name="IOException" type="java.io.IOException"/>
  26778. </method>
  26779. <method name="syncLogs"
  26780. abstract="false" native="false" synchronized="true"
  26781. static="true" final="false" visibility="public"
  26782. deprecated="not deprecated">
  26783. <param name="firstTaskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26784. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26785. <param name="isCleanup" type="boolean"/>
  26786. <exception name="IOException" type="java.io.IOException"/>
  26787. </method>
  26788. <method name="cleanup"
  26789. abstract="false" native="false" synchronized="true"
  26790. static="true" final="false" visibility="public"
  26791. deprecated="not deprecated">
  26792. <param name="logsRetainHours" type="int"/>
  26793. <exception name="IOException" type="java.io.IOException"/>
  26794. <doc>
  26795. <![CDATA[Purge old user logs.
  26796. @throws IOException]]>
  26797. </doc>
  26798. </method>
  26799. <method name="getTaskLogLength" return="long"
  26800. abstract="false" native="false" synchronized="false"
  26801. static="true" final="false" visibility="public"
  26802. deprecated="not deprecated">
  26803. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  26804. <doc>
  26805. <![CDATA[Get the desired maximum length of task's logs.
  26806. @param conf the job to look in
  26807. @return the number of bytes to cap the log files at]]>
  26808. </doc>
  26809. </method>
  26810. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  26811. abstract="false" native="false" synchronized="false"
  26812. static="true" final="false" visibility="public"
  26813. deprecated="not deprecated">
  26814. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  26815. <param name="stdoutFilename" type="java.io.File"/>
  26816. <param name="stderrFilename" type="java.io.File"/>
  26817. <param name="tailLength" type="long"/>
  26818. <exception name="IOException" type="java.io.IOException"/>
  26819. <doc>
  26820. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  26821. If the tailLength is 0, the entire output will be saved.
  26822. @param cmd The command and the arguments that should be run
  26823. @param stdoutFilename The filename that stdout should be saved to
  26824. @param stderrFilename The filename that stderr should be saved to
  26825. @param tailLength The length of the tail to be saved.
  26826. @return the modified command that should be run]]>
  26827. </doc>
  26828. </method>
  26829. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  26830. abstract="false" native="false" synchronized="false"
  26831. static="true" final="false" visibility="public"
  26832. deprecated="not deprecated">
  26833. <param name="setup" type="java.util.List&lt;java.lang.String&gt;"/>
  26834. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  26835. <param name="stdoutFilename" type="java.io.File"/>
  26836. <param name="stderrFilename" type="java.io.File"/>
  26837. <param name="tailLength" type="long"/>
  26838. <exception name="IOException" type="java.io.IOException"/>
  26839. <doc>
  26840. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  26841. Setup commands such as setting memory limit can be passed which
  26842. will be executed before exec.
  26843. If the tailLength is 0, the entire output will be saved.
  26844. @param setup The setup commands for the execed process.
  26845. @param cmd The command and the arguments that should be run
  26846. @param stdoutFilename The filename that stdout should be saved to
  26847. @param stderrFilename The filename that stderr should be saved to
  26848. @param tailLength The length of the tail to be saved.
  26849. @return the modified command that should be run]]>
  26850. </doc>
  26851. </method>
  26852. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  26853. abstract="false" native="false" synchronized="false"
  26854. static="true" final="false" visibility="public"
  26855. deprecated="not deprecated">
  26856. <param name="setup" type="java.util.List&lt;java.lang.String&gt;"/>
  26857. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  26858. <param name="stdoutFilename" type="java.io.File"/>
  26859. <param name="stderrFilename" type="java.io.File"/>
  26860. <param name="tailLength" type="long"/>
  26861. <param name="pidFileName" type="java.lang.String"/>
  26862. <exception name="IOException" type="java.io.IOException"/>
  26863. <doc>
  26864. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  26865. Setup commands such as setting memory limit can be passed which
  26866. will be executed before exec.
  26867. If the tailLength is 0, the entire output will be saved.
  26868. @param setup The setup commands for the execed process.
  26869. @param cmd The command and the arguments that should be run
  26870. @param stdoutFilename The filename that stdout should be saved to
  26871. @param stderrFilename The filename that stderr should be saved to
  26872. @param tailLength The length of the tail to be saved.
  26873. @param pidFileName The name of the pid-file
  26874. @return the modified command that should be run]]>
  26875. </doc>
  26876. </method>
  26877. <method name="addCommand" return="java.lang.String"
  26878. abstract="false" native="false" synchronized="false"
  26879. static="true" final="false" visibility="public"
  26880. deprecated="not deprecated">
  26881. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  26882. <param name="isExecutable" type="boolean"/>
  26883. <exception name="IOException" type="java.io.IOException"/>
  26884. <doc>
  26885. <![CDATA[Add quotes to each of the command strings and
  26886. return as a single string
  26887. @param cmd The command to be quoted
  26888. @param isExecutable makes shell path if the first
  26889. argument is executable
  26890. @return returns The quoted string.
  26891. @throws IOException]]>
  26892. </doc>
  26893. </method>
  26894. <method name="captureDebugOut" return="java.util.List&lt;java.lang.String&gt;"
  26895. abstract="false" native="false" synchronized="false"
  26896. static="true" final="false" visibility="public"
  26897. deprecated="not deprecated">
  26898. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  26899. <param name="debugoutFilename" type="java.io.File"/>
  26900. <exception name="IOException" type="java.io.IOException"/>
  26901. <doc>
  26902. <![CDATA[Wrap a command in a shell to capture debug script's
  26903. stdout and stderr to debugout.
  26904. @param cmd The command and the arguments that should be run
  26905. @param debugoutFilename The filename that stdout and stderr
  26906. should be saved to.
  26907. @return the modified command that should be run
  26908. @throws IOException]]>
  26909. </doc>
  26910. </method>
  26911. <doc>
  26912. <![CDATA[A simple logger to handle the task-specific user logs.
  26913. This class uses the system property <code>hadoop.log.dir</code>.]]>
  26914. </doc>
  26915. </class>
  26916. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  26917. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  26918. <class name="TaskLog.LogName" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskLog.LogName&gt;"
  26919. abstract="false"
  26920. static="true" final="true" visibility="public"
  26921. deprecated="not deprecated">
  26922. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  26923. abstract="false" native="false" synchronized="false"
  26924. static="true" final="false" visibility="public"
  26925. deprecated="not deprecated">
  26926. </method>
  26927. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  26928. abstract="false" native="false" synchronized="false"
  26929. static="true" final="false" visibility="public"
  26930. deprecated="not deprecated">
  26931. <param name="name" type="java.lang.String"/>
  26932. </method>
  26933. <method name="toString" return="java.lang.String"
  26934. abstract="false" native="false" synchronized="false"
  26935. static="false" final="false" visibility="public"
  26936. deprecated="not deprecated">
  26937. </method>
  26938. <doc>
  26939. <![CDATA[The filter for userlogs.]]>
  26940. </doc>
  26941. </class>
  26942. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  26943. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  26944. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  26945. abstract="false"
  26946. static="false" final="false" visibility="public"
  26947. deprecated="not deprecated">
  26948. <constructor name="TaskLogAppender"
  26949. static="false" final="false" visibility="public"
  26950. deprecated="not deprecated">
  26951. </constructor>
  26952. <method name="activateOptions"
  26953. abstract="false" native="false" synchronized="false"
  26954. static="false" final="false" visibility="public"
  26955. deprecated="not deprecated">
  26956. </method>
  26957. <method name="append"
  26958. abstract="false" native="false" synchronized="false"
  26959. static="false" final="false" visibility="public"
  26960. deprecated="not deprecated">
  26961. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  26962. </method>
  26963. <method name="flush"
  26964. abstract="false" native="false" synchronized="false"
  26965. static="false" final="false" visibility="public"
  26966. deprecated="not deprecated">
  26967. </method>
  26968. <method name="close"
  26969. abstract="false" native="false" synchronized="true"
  26970. static="false" final="false" visibility="public"
  26971. deprecated="not deprecated">
  26972. </method>
  26973. <method name="getTaskId" return="java.lang.String"
  26974. abstract="false" native="false" synchronized="false"
  26975. static="false" final="false" visibility="public"
  26976. deprecated="not deprecated">
  26977. <doc>
  26978. <![CDATA[Getter/Setter methods for log4j.]]>
  26979. </doc>
  26980. </method>
  26981. <method name="setTaskId"
  26982. abstract="false" native="false" synchronized="false"
  26983. static="false" final="false" visibility="public"
  26984. deprecated="not deprecated">
  26985. <param name="taskId" type="java.lang.String"/>
  26986. </method>
  26987. <method name="getTotalLogFileSize" return="long"
  26988. abstract="false" native="false" synchronized="false"
  26989. static="false" final="false" visibility="public"
  26990. deprecated="not deprecated">
  26991. </method>
  26992. <method name="setTotalLogFileSize"
  26993. abstract="false" native="false" synchronized="false"
  26994. static="false" final="false" visibility="public"
  26995. deprecated="not deprecated">
  26996. <param name="logSize" type="long"/>
  26997. </method>
  26998. <doc>
  26999. <![CDATA[A simple log4j-appender for the task child's
  27000. map-reduce system logs.]]>
  27001. </doc>
  27002. </class>
  27003. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  27004. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  27005. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  27006. abstract="false"
  27007. static="false" final="false" visibility="public"
  27008. deprecated="not deprecated">
  27009. <constructor name="TaskLogServlet"
  27010. static="false" final="false" visibility="public"
  27011. deprecated="not deprecated">
  27012. </constructor>
  27013. <method name="getTaskLogUrl" return="java.lang.String"
  27014. abstract="false" native="false" synchronized="false"
  27015. static="true" final="false" visibility="public"
  27016. deprecated="not deprecated">
  27017. <param name="taskTrackerHostName" type="java.lang.String"/>
  27018. <param name="httpPort" type="java.lang.String"/>
  27019. <param name="taskAttemptID" type="java.lang.String"/>
  27020. <doc>
  27021. <![CDATA[Construct the taskLogUrl
  27022. @param taskTrackerHostName
  27023. @param httpPort
  27024. @param taskAttemptID
  27025. @return the taskLogUrl]]>
  27026. </doc>
  27027. </method>
  27028. <method name="doGet"
  27029. abstract="false" native="false" synchronized="false"
  27030. static="false" final="false" visibility="public"
  27031. deprecated="not deprecated">
  27032. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  27033. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  27034. <exception name="ServletException" type="javax.servlet.ServletException"/>
  27035. <exception name="IOException" type="java.io.IOException"/>
  27036. <doc>
  27037. <![CDATA[Get the logs via http.]]>
  27038. </doc>
  27039. </method>
  27040. <doc>
  27041. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  27042. </doc>
  27043. </class>
  27044. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  27045. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  27046. <class name="TaskReport" extends="java.lang.Object"
  27047. abstract="false"
  27048. static="false" final="false" visibility="public"
  27049. deprecated="not deprecated">
  27050. <implements name="org.apache.hadoop.io.Writable"/>
  27051. <constructor name="TaskReport"
  27052. static="false" final="false" visibility="public"
  27053. deprecated="not deprecated">
  27054. </constructor>
  27055. <method name="getTaskId" return="java.lang.String"
  27056. abstract="false" native="false" synchronized="false"
  27057. static="false" final="false" visibility="public"
  27058. deprecated="use {@link #getTaskID()} instead">
  27059. <doc>
  27060. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  27061. </doc>
  27062. </method>
  27063. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  27064. abstract="false" native="false" synchronized="false"
  27065. static="false" final="false" visibility="public"
  27066. deprecated="not deprecated">
  27067. <doc>
  27068. <![CDATA[The id of the task.]]>
  27069. </doc>
  27070. </method>
  27071. <method name="getProgress" return="float"
  27072. abstract="false" native="false" synchronized="false"
  27073. static="false" final="false" visibility="public"
  27074. deprecated="not deprecated">
  27075. <doc>
  27076. <![CDATA[The amount completed, between zero and one.]]>
  27077. </doc>
  27078. </method>
  27079. <method name="getState" return="java.lang.String"
  27080. abstract="false" native="false" synchronized="false"
  27081. static="false" final="false" visibility="public"
  27082. deprecated="not deprecated">
  27083. <doc>
  27084. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  27085. </doc>
  27086. </method>
  27087. <method name="getDiagnostics" return="java.lang.String[]"
  27088. abstract="false" native="false" synchronized="false"
  27089. static="false" final="false" visibility="public"
  27090. deprecated="not deprecated">
  27091. <doc>
  27092. <![CDATA[A list of error messages.]]>
  27093. </doc>
  27094. </method>
  27095. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <doc>
  27100. <![CDATA[A table of counters.]]>
  27101. </doc>
  27102. </method>
  27103. <method name="getFinishTime" return="long"
  27104. abstract="false" native="false" synchronized="false"
  27105. static="false" final="false" visibility="public"
  27106. deprecated="not deprecated">
  27107. <doc>
  27108. <![CDATA[Get finish time of task.
  27109. @return 0, if finish time was not set else returns finish time.]]>
  27110. </doc>
  27111. </method>
  27112. <method name="getStartTime" return="long"
  27113. abstract="false" native="false" synchronized="false"
  27114. static="false" final="false" visibility="public"
  27115. deprecated="not deprecated">
  27116. <doc>
  27117. <![CDATA[Get start time of task.
  27118. @return 0 if start time was not set, else start time.]]>
  27119. </doc>
  27120. </method>
  27121. <method name="equals" return="boolean"
  27122. abstract="false" native="false" synchronized="false"
  27123. static="false" final="false" visibility="public"
  27124. deprecated="not deprecated">
  27125. <param name="o" type="java.lang.Object"/>
  27126. </method>
  27127. <method name="hashCode" return="int"
  27128. abstract="false" native="false" synchronized="false"
  27129. static="false" final="false" visibility="public"
  27130. deprecated="not deprecated">
  27131. </method>
  27132. <method name="write"
  27133. abstract="false" native="false" synchronized="false"
  27134. static="false" final="false" visibility="public"
  27135. deprecated="not deprecated">
  27136. <param name="out" type="java.io.DataOutput"/>
  27137. <exception name="IOException" type="java.io.IOException"/>
  27138. </method>
  27139. <method name="readFields"
  27140. abstract="false" native="false" synchronized="false"
  27141. static="false" final="false" visibility="public"
  27142. deprecated="not deprecated">
  27143. <param name="in" type="java.io.DataInput"/>
  27144. <exception name="IOException" type="java.io.IOException"/>
  27145. </method>
  27146. <doc>
  27147. <![CDATA[A report on the state of a task.]]>
  27148. </doc>
  27149. </class>
  27150. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  27151. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  27152. <class name="TaskTracker" extends="java.lang.Object"
  27153. abstract="false"
  27154. static="false" final="false" visibility="public"
  27155. deprecated="not deprecated">
  27156. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  27157. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  27158. <implements name="java.lang.Runnable"/>
  27159. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  27160. static="false" final="false" visibility="public"
  27161. deprecated="not deprecated">
  27162. <exception name="IOException" type="java.io.IOException"/>
  27163. <doc>
  27164. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  27165. </doc>
  27166. </constructor>
  27167. <method name="getTaskTrackerInstrumentation" return="org.apache.hadoop.mapred.TaskTrackerInstrumentation"
  27168. abstract="false" native="false" synchronized="false"
  27169. static="false" final="false" visibility="public"
  27170. deprecated="not deprecated">
  27171. </method>
  27172. <method name="getProtocolVersion" return="long"
  27173. abstract="false" native="false" synchronized="false"
  27174. static="false" final="false" visibility="public"
  27175. deprecated="not deprecated">
  27176. <param name="protocol" type="java.lang.String"/>
  27177. <param name="clientVersion" type="long"/>
  27178. <exception name="IOException" type="java.io.IOException"/>
  27179. </method>
  27180. <method name="getInstrumentationClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.TaskTrackerInstrumentation&gt;"
  27181. abstract="false" native="false" synchronized="false"
  27182. static="true" final="false" visibility="public"
  27183. deprecated="not deprecated">
  27184. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27185. </method>
  27186. <method name="setInstrumentationClass"
  27187. abstract="false" native="false" synchronized="false"
  27188. static="true" final="false" visibility="public"
  27189. deprecated="not deprecated">
  27190. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27191. <param name="t" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.TaskTrackerInstrumentation&gt;"/>
  27192. </method>
  27193. <method name="cleanupStorage"
  27194. abstract="false" native="false" synchronized="false"
  27195. static="false" final="false" visibility="public"
  27196. deprecated="not deprecated">
  27197. <exception name="IOException" type="java.io.IOException"/>
  27198. <doc>
  27199. <![CDATA[Removes all contents of temporary storage. Called upon
  27200. startup, to remove any leftovers from previous run.]]>
  27201. </doc>
  27202. </method>
  27203. <method name="shutdown"
  27204. abstract="false" native="false" synchronized="true"
  27205. static="false" final="false" visibility="public"
  27206. deprecated="not deprecated">
  27207. <exception name="IOException" type="java.io.IOException"/>
  27208. </method>
  27209. <method name="close"
  27210. abstract="false" native="false" synchronized="true"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. <exception name="IOException" type="java.io.IOException"/>
  27214. <doc>
  27215. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  27216. any running tasks or threads, and cleanup disk space. A new TaskTracker
  27217. within the same process space might be restarted, so everything must be
  27218. clean.]]>
  27219. </doc>
  27220. </method>
  27221. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  27222. abstract="false" native="false" synchronized="false"
  27223. static="false" final="false" visibility="public"
  27224. deprecated="not deprecated">
  27225. <doc>
  27226. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  27227. for locating remote files.]]>
  27228. </doc>
  27229. </method>
  27230. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  27231. abstract="false" native="false" synchronized="true"
  27232. static="false" final="false" visibility="public"
  27233. deprecated="not deprecated">
  27234. <doc>
  27235. <![CDATA[Return the port at which the tasktracker bound to]]>
  27236. </doc>
  27237. </method>
  27238. <method name="getJvmManagerInstance" return="org.apache.hadoop.mapred.JvmManager"
  27239. abstract="false" native="false" synchronized="false"
  27240. static="false" final="false" visibility="public"
  27241. deprecated="not deprecated">
  27242. </method>
  27243. <method name="run"
  27244. abstract="false" native="false" synchronized="false"
  27245. static="false" final="false" visibility="public"
  27246. deprecated="not deprecated">
  27247. <doc>
  27248. <![CDATA[The server retry loop.
  27249. This while-loop attempts to connect to the JobTracker. It only
  27250. loops when the old TaskTracker has gone bad (its state is
  27251. stale somehow) and we need to reinitialize everything.]]>
  27252. </doc>
  27253. </method>
  27254. <method name="getTask" return="org.apache.hadoop.mapred.JvmTask"
  27255. abstract="false" native="false" synchronized="true"
  27256. static="false" final="false" visibility="public"
  27257. deprecated="not deprecated">
  27258. <param name="jvmId" type="org.apache.hadoop.mapred.JVMId"/>
  27259. <exception name="IOException" type="java.io.IOException"/>
  27260. <doc>
  27261. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  27262. </doc>
  27263. </method>
  27264. <method name="statusUpdate" return="boolean"
  27265. abstract="false" native="false" synchronized="true"
  27266. static="false" final="false" visibility="public"
  27267. deprecated="not deprecated">
  27268. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27269. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  27270. <exception name="IOException" type="java.io.IOException"/>
  27271. <doc>
  27272. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  27273. </doc>
  27274. </method>
  27275. <method name="reportDiagnosticInfo"
  27276. abstract="false" native="false" synchronized="true"
  27277. static="false" final="false" visibility="public"
  27278. deprecated="not deprecated">
  27279. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27280. <param name="info" type="java.lang.String"/>
  27281. <exception name="IOException" type="java.io.IOException"/>
  27282. <doc>
  27283. <![CDATA[Called when the task dies before completion, and we want to report back
  27284. diagnostic info]]>
  27285. </doc>
  27286. </method>
  27287. <method name="reportNextRecordRange"
  27288. abstract="false" native="false" synchronized="true"
  27289. static="false" final="false" visibility="public"
  27290. deprecated="not deprecated">
  27291. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27292. <param name="range" type="org.apache.hadoop.mapred.SortedRanges.Range"/>
  27293. <exception name="IOException" type="java.io.IOException"/>
  27294. </method>
  27295. <method name="ping" return="boolean"
  27296. abstract="false" native="false" synchronized="true"
  27297. static="false" final="false" visibility="public"
  27298. deprecated="not deprecated">
  27299. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27300. <exception name="IOException" type="java.io.IOException"/>
  27301. <doc>
  27302. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  27303. </doc>
  27304. </method>
  27305. <method name="commitPending"
  27306. abstract="false" native="false" synchronized="true"
  27307. static="false" final="false" visibility="public"
  27308. deprecated="not deprecated">
  27309. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27310. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  27311. <exception name="IOException" type="java.io.IOException"/>
  27312. <doc>
  27313. <![CDATA[Task is reporting that it is in commit_pending
  27314. and it is waiting for the commit Response]]>
  27315. </doc>
  27316. </method>
  27317. <method name="canCommit" return="boolean"
  27318. abstract="false" native="false" synchronized="true"
  27319. static="false" final="false" visibility="public"
  27320. deprecated="not deprecated">
  27321. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27322. <doc>
  27323. <![CDATA[Child checking whether it can commit]]>
  27324. </doc>
  27325. </method>
  27326. <method name="done"
  27327. abstract="false" native="false" synchronized="true"
  27328. static="false" final="false" visibility="public"
  27329. deprecated="not deprecated">
  27330. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27331. <exception name="IOException" type="java.io.IOException"/>
  27332. <doc>
  27333. <![CDATA[The task is done.]]>
  27334. </doc>
  27335. </method>
  27336. <method name="shuffleError"
  27337. abstract="false" native="false" synchronized="true"
  27338. static="false" final="false" visibility="public"
  27339. deprecated="not deprecated">
  27340. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27341. <param name="message" type="java.lang.String"/>
  27342. <exception name="IOException" type="java.io.IOException"/>
  27343. <doc>
  27344. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  27345. </doc>
  27346. </method>
  27347. <method name="fsError"
  27348. abstract="false" native="false" synchronized="true"
  27349. static="false" final="false" visibility="public"
  27350. deprecated="not deprecated">
  27351. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27352. <param name="message" type="java.lang.String"/>
  27353. <exception name="IOException" type="java.io.IOException"/>
  27354. <doc>
  27355. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  27356. </doc>
  27357. </method>
  27358. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.MapTaskCompletionEventsUpdate"
  27359. abstract="false" native="false" synchronized="true"
  27360. static="false" final="false" visibility="public"
  27361. deprecated="not deprecated">
  27362. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  27363. <param name="fromEventId" type="int"/>
  27364. <param name="maxLocs" type="int"/>
  27365. <param name="id" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27366. <exception name="IOException" type="java.io.IOException"/>
  27367. </method>
  27368. <method name="mapOutputLost"
  27369. abstract="false" native="false" synchronized="true"
  27370. static="false" final="false" visibility="public"
  27371. deprecated="not deprecated">
  27372. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27373. <param name="errorMsg" type="java.lang.String"/>
  27374. <exception name="IOException" type="java.io.IOException"/>
  27375. <doc>
  27376. <![CDATA[A completed map task's output has been lost.]]>
  27377. </doc>
  27378. </method>
  27379. <method name="isIdle" return="boolean"
  27380. abstract="false" native="false" synchronized="true"
  27381. static="false" final="false" visibility="public"
  27382. deprecated="not deprecated">
  27383. <doc>
  27384. <![CDATA[Is this task tracker idle?
  27385. @return has this task tracker finished and cleaned up all of its tasks?]]>
  27386. </doc>
  27387. </method>
  27388. <method name="main"
  27389. abstract="false" native="false" synchronized="false"
  27390. static="true" final="false" visibility="public"
  27391. deprecated="not deprecated">
  27392. <param name="argv" type="java.lang.String[]"/>
  27393. <exception name="Exception" type="java.lang.Exception"/>
  27394. <doc>
  27395. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  27396. </doc>
  27397. </method>
  27398. <method name="isTaskMemoryManagerEnabled" return="boolean"
  27399. abstract="false" native="false" synchronized="false"
  27400. static="false" final="false" visibility="public"
  27401. deprecated="not deprecated">
  27402. <doc>
  27403. <![CDATA[Is the TaskMemoryManager Enabled on this system?
  27404. @return true if enabled, false otherwise.]]>
  27405. </doc>
  27406. </method>
  27407. <method name="getTaskMemoryManager" return="org.apache.hadoop.mapred.TaskMemoryManagerThread"
  27408. abstract="false" native="false" synchronized="false"
  27409. static="false" final="false" visibility="public"
  27410. deprecated="not deprecated">
  27411. </method>
  27412. <field name="LOG" type="org.apache.commons.logging.Log"
  27413. transient="false" volatile="false"
  27414. static="true" final="true" visibility="public"
  27415. deprecated="not deprecated">
  27416. </field>
  27417. <field name="MR_CLIENTTRACE_FORMAT" type="java.lang.String"
  27418. transient="false" volatile="false"
  27419. static="true" final="true" visibility="public"
  27420. deprecated="not deprecated">
  27421. </field>
  27422. <field name="ClientTraceLog" type="org.apache.commons.logging.Log"
  27423. transient="false" volatile="false"
  27424. static="true" final="true" visibility="public"
  27425. deprecated="not deprecated">
  27426. </field>
  27427. <doc>
  27428. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  27429. in a networked environment. It contacts the JobTracker
  27430. for Task assignments and reporting results.]]>
  27431. </doc>
  27432. </class>
  27433. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  27434. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  27435. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  27436. abstract="false"
  27437. static="true" final="false" visibility="public"
  27438. deprecated="not deprecated">
  27439. <constructor name="TaskTracker.MapOutputServlet"
  27440. static="false" final="false" visibility="public"
  27441. deprecated="not deprecated">
  27442. </constructor>
  27443. <method name="doGet"
  27444. abstract="false" native="false" synchronized="false"
  27445. static="false" final="false" visibility="public"
  27446. deprecated="not deprecated">
  27447. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  27448. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  27449. <exception name="ServletException" type="javax.servlet.ServletException"/>
  27450. <exception name="IOException" type="java.io.IOException"/>
  27451. </method>
  27452. <doc>
  27453. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  27454. to other nodes.]]>
  27455. </doc>
  27456. </class>
  27457. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  27458. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  27459. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  27460. abstract="false"
  27461. static="false" final="false" visibility="public"
  27462. deprecated="not deprecated">
  27463. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27464. <constructor name="TextInputFormat"
  27465. static="false" final="false" visibility="public"
  27466. deprecated="not deprecated">
  27467. </constructor>
  27468. <method name="configure"
  27469. abstract="false" native="false" synchronized="false"
  27470. static="false" final="false" visibility="public"
  27471. deprecated="not deprecated">
  27472. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27473. </method>
  27474. <method name="isSplitable" return="boolean"
  27475. abstract="false" native="false" synchronized="false"
  27476. static="false" final="false" visibility="protected"
  27477. deprecated="not deprecated">
  27478. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27479. <param name="file" type="org.apache.hadoop.fs.Path"/>
  27480. </method>
  27481. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  27482. abstract="false" native="false" synchronized="false"
  27483. static="false" final="false" visibility="public"
  27484. deprecated="not deprecated">
  27485. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  27486. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27487. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27488. <exception name="IOException" type="java.io.IOException"/>
  27489. </method>
  27490. <doc>
  27491. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  27492. Either linefeed or carriage-return are used to signal end of line. Keys are
  27493. the position in the file, and values are the line of text..]]>
  27494. </doc>
  27495. </class>
  27496. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  27497. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  27498. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  27499. abstract="false"
  27500. static="false" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <constructor name="TextOutputFormat"
  27503. static="false" final="false" visibility="public"
  27504. deprecated="not deprecated">
  27505. </constructor>
  27506. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27507. abstract="false" native="false" synchronized="false"
  27508. static="false" final="false" visibility="public"
  27509. deprecated="not deprecated">
  27510. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27511. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27512. <param name="name" type="java.lang.String"/>
  27513. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  27514. <exception name="IOException" type="java.io.IOException"/>
  27515. </method>
  27516. <doc>
  27517. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  27518. </doc>
  27519. </class>
  27520. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  27521. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  27522. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  27523. abstract="false"
  27524. static="true" final="false" visibility="protected"
  27525. deprecated="not deprecated">
  27526. <implements name="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"/>
  27527. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  27528. static="false" final="false" visibility="public"
  27529. deprecated="not deprecated">
  27530. </constructor>
  27531. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  27532. static="false" final="false" visibility="public"
  27533. deprecated="not deprecated">
  27534. </constructor>
  27535. <method name="write"
  27536. abstract="false" native="false" synchronized="true"
  27537. static="false" final="false" visibility="public"
  27538. deprecated="not deprecated">
  27539. <param name="key" type="K"/>
  27540. <param name="value" type="V"/>
  27541. <exception name="IOException" type="java.io.IOException"/>
  27542. </method>
  27543. <method name="close"
  27544. abstract="false" native="false" synchronized="true"
  27545. static="false" final="false" visibility="public"
  27546. deprecated="not deprecated">
  27547. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27548. <exception name="IOException" type="java.io.IOException"/>
  27549. </method>
  27550. <field name="out" type="java.io.DataOutputStream"
  27551. transient="false" volatile="false"
  27552. static="false" final="false" visibility="protected"
  27553. deprecated="not deprecated">
  27554. </field>
  27555. </class>
  27556. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  27557. </package>
  27558. <package name="org.apache.hadoop.mapred.jobcontrol">
  27559. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  27560. <class name="Job" extends="java.lang.Object"
  27561. abstract="false"
  27562. static="false" final="false" visibility="public"
  27563. deprecated="not deprecated">
  27564. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27565. static="false" final="false" visibility="public"
  27566. deprecated="not deprecated">
  27567. <exception name="IOException" type="java.io.IOException"/>
  27568. <doc>
  27569. <![CDATA[Construct a job.
  27570. @param jobConf a mapred job configuration representing a job to be executed.
  27571. @param dependingJobs an array of jobs the current job depends on]]>
  27572. </doc>
  27573. </constructor>
  27574. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  27575. static="false" final="false" visibility="public"
  27576. deprecated="not deprecated">
  27577. <exception name="IOException" type="java.io.IOException"/>
  27578. <doc>
  27579. <![CDATA[Construct a job.
  27580. @param jobConf mapred job configuration representing a job to be executed.
  27581. @throws IOException]]>
  27582. </doc>
  27583. </constructor>
  27584. <method name="toString" return="java.lang.String"
  27585. abstract="false" native="false" synchronized="false"
  27586. static="false" final="false" visibility="public"
  27587. deprecated="not deprecated">
  27588. </method>
  27589. <method name="getJobName" return="java.lang.String"
  27590. abstract="false" native="false" synchronized="false"
  27591. static="false" final="false" visibility="public"
  27592. deprecated="not deprecated">
  27593. <doc>
  27594. <![CDATA[@return the job name of this job]]>
  27595. </doc>
  27596. </method>
  27597. <method name="setJobName"
  27598. abstract="false" native="false" synchronized="false"
  27599. static="false" final="false" visibility="public"
  27600. deprecated="not deprecated">
  27601. <param name="jobName" type="java.lang.String"/>
  27602. <doc>
  27603. <![CDATA[Set the job name for this job.
  27604. @param jobName the job name]]>
  27605. </doc>
  27606. </method>
  27607. <method name="getJobID" return="java.lang.String"
  27608. abstract="false" native="false" synchronized="false"
  27609. static="false" final="false" visibility="public"
  27610. deprecated="not deprecated">
  27611. <doc>
  27612. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  27613. </doc>
  27614. </method>
  27615. <method name="setJobID"
  27616. abstract="false" native="false" synchronized="false"
  27617. static="false" final="false" visibility="public"
  27618. deprecated="not deprecated">
  27619. <param name="id" type="java.lang.String"/>
  27620. <doc>
  27621. <![CDATA[Set the job ID for this job.
  27622. @param id the job ID]]>
  27623. </doc>
  27624. </method>
  27625. <method name="getMapredJobID" return="java.lang.String"
  27626. abstract="false" native="false" synchronized="false"
  27627. static="false" final="false" visibility="public"
  27628. deprecated="use {@link #getAssignedJobID()} instead">
  27629. <doc>
  27630. <![CDATA[@return the mapred ID of this job
  27631. @deprecated use {@link #getAssignedJobID()} instead]]>
  27632. </doc>
  27633. </method>
  27634. <method name="setMapredJobID"
  27635. abstract="false" native="false" synchronized="false"
  27636. static="false" final="false" visibility="public"
  27637. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  27638. <param name="mapredJobID" type="java.lang.String"/>
  27639. <doc>
  27640. <![CDATA[Set the mapred ID for this job.
  27641. @param mapredJobID the mapred job ID for this job.
  27642. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  27643. </doc>
  27644. </method>
  27645. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  27646. abstract="false" native="false" synchronized="false"
  27647. static="false" final="false" visibility="public"
  27648. deprecated="not deprecated">
  27649. <doc>
  27650. <![CDATA[@return the mapred ID of this job as assigned by the
  27651. mapred framework.]]>
  27652. </doc>
  27653. </method>
  27654. <method name="setAssignedJobID"
  27655. abstract="false" native="false" synchronized="false"
  27656. static="false" final="false" visibility="public"
  27657. deprecated="not deprecated">
  27658. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  27659. <doc>
  27660. <![CDATA[Set the mapred ID for this job as assigned by the
  27661. mapred framework.
  27662. @param mapredJobID the mapred job ID for this job.]]>
  27663. </doc>
  27664. </method>
  27665. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  27666. abstract="false" native="false" synchronized="false"
  27667. static="false" final="false" visibility="public"
  27668. deprecated="not deprecated">
  27669. <doc>
  27670. <![CDATA[@return the mapred job conf of this job]]>
  27671. </doc>
  27672. </method>
  27673. <method name="setJobConf"
  27674. abstract="false" native="false" synchronized="false"
  27675. static="false" final="false" visibility="public"
  27676. deprecated="not deprecated">
  27677. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  27678. <doc>
  27679. <![CDATA[Set the mapred job conf for this job.
  27680. @param jobConf the mapred job conf for this job.]]>
  27681. </doc>
  27682. </method>
  27683. <method name="getState" return="int"
  27684. abstract="false" native="false" synchronized="true"
  27685. static="false" final="false" visibility="public"
  27686. deprecated="not deprecated">
  27687. <doc>
  27688. <![CDATA[@return the state of this job]]>
  27689. </doc>
  27690. </method>
  27691. <method name="setState"
  27692. abstract="false" native="false" synchronized="true"
  27693. static="false" final="false" visibility="protected"
  27694. deprecated="not deprecated">
  27695. <param name="state" type="int"/>
  27696. <doc>
  27697. <![CDATA[Set the state for this job.
  27698. @param state the new state for this job.]]>
  27699. </doc>
  27700. </method>
  27701. <method name="getMessage" return="java.lang.String"
  27702. abstract="false" native="false" synchronized="false"
  27703. static="false" final="false" visibility="public"
  27704. deprecated="not deprecated">
  27705. <doc>
  27706. <![CDATA[@return the message of this job]]>
  27707. </doc>
  27708. </method>
  27709. <method name="setMessage"
  27710. abstract="false" native="false" synchronized="false"
  27711. static="false" final="false" visibility="public"
  27712. deprecated="not deprecated">
  27713. <param name="message" type="java.lang.String"/>
  27714. <doc>
  27715. <![CDATA[Set the message for this job.
  27716. @param message the message for this job.]]>
  27717. </doc>
  27718. </method>
  27719. <method name="getJobClient" return="org.apache.hadoop.mapred.JobClient"
  27720. abstract="false" native="false" synchronized="false"
  27721. static="false" final="false" visibility="public"
  27722. deprecated="not deprecated">
  27723. <doc>
  27724. <![CDATA[@return the job client of this job]]>
  27725. </doc>
  27726. </method>
  27727. <method name="getDependingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27728. abstract="false" native="false" synchronized="false"
  27729. static="false" final="false" visibility="public"
  27730. deprecated="not deprecated">
  27731. <doc>
  27732. <![CDATA[@return the depending jobs of this job]]>
  27733. </doc>
  27734. </method>
  27735. <method name="addDependingJob" return="boolean"
  27736. abstract="false" native="false" synchronized="true"
  27737. static="false" final="false" visibility="public"
  27738. deprecated="not deprecated">
  27739. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  27740. <doc>
  27741. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  27742. is waiting to run, not during or afterwards.
  27743. @param dependingJob Job that this Job depends on.
  27744. @return <tt>true</tt> if the Job was added.]]>
  27745. </doc>
  27746. </method>
  27747. <method name="isCompleted" return="boolean"
  27748. abstract="false" native="false" synchronized="false"
  27749. static="false" final="false" visibility="public"
  27750. deprecated="not deprecated">
  27751. <doc>
  27752. <![CDATA[@return true if this job is in a complete state]]>
  27753. </doc>
  27754. </method>
  27755. <method name="isReady" return="boolean"
  27756. abstract="false" native="false" synchronized="false"
  27757. static="false" final="false" visibility="public"
  27758. deprecated="not deprecated">
  27759. <doc>
  27760. <![CDATA[@return true if this job is in READY state]]>
  27761. </doc>
  27762. </method>
  27763. <method name="submit"
  27764. abstract="false" native="false" synchronized="true"
  27765. static="false" final="false" visibility="protected"
  27766. deprecated="not deprecated">
  27767. <doc>
  27768. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  27769. is successful, FAILED otherwise.]]>
  27770. </doc>
  27771. </method>
  27772. <field name="SUCCESS" type="int"
  27773. transient="false" volatile="false"
  27774. static="true" final="true" visibility="public"
  27775. deprecated="not deprecated">
  27776. </field>
  27777. <field name="WAITING" type="int"
  27778. transient="false" volatile="false"
  27779. static="true" final="true" visibility="public"
  27780. deprecated="not deprecated">
  27781. </field>
  27782. <field name="RUNNING" type="int"
  27783. transient="false" volatile="false"
  27784. static="true" final="true" visibility="public"
  27785. deprecated="not deprecated">
  27786. </field>
  27787. <field name="READY" type="int"
  27788. transient="false" volatile="false"
  27789. static="true" final="true" visibility="public"
  27790. deprecated="not deprecated">
  27791. </field>
  27792. <field name="FAILED" type="int"
  27793. transient="false" volatile="false"
  27794. static="true" final="true" visibility="public"
  27795. deprecated="not deprecated">
  27796. </field>
  27797. <field name="DEPENDENT_FAILED" type="int"
  27798. transient="false" volatile="false"
  27799. static="true" final="true" visibility="public"
  27800. deprecated="not deprecated">
  27801. </field>
  27802. <doc>
  27803. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  27804. the states of the depending jobs and updates the state of this job.
  27805. A job starts in the WAITING state. If it does not have any depending jobs, or
  27806. all of the depending jobs are in SUCCESS state, then the job state will become
  27807. READY. If any depending jobs fail, the job will fail too.
  27808. When in READY state, the job can be submitted to Hadoop for execution, with
  27809. the state changing into RUNNING state. From RUNNING state, the job can get into
  27810. SUCCESS or FAILED state, depending the status of the job execution.]]>
  27811. </doc>
  27812. </class>
  27813. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  27814. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  27815. <class name="JobControl" extends="java.lang.Object"
  27816. abstract="false"
  27817. static="false" final="false" visibility="public"
  27818. deprecated="not deprecated">
  27819. <implements name="java.lang.Runnable"/>
  27820. <constructor name="JobControl" type="java.lang.String"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. <doc>
  27824. <![CDATA[Construct a job control for a group of jobs.
  27825. @param groupName a name identifying this group]]>
  27826. </doc>
  27827. </constructor>
  27828. <method name="getWaitingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27829. abstract="false" native="false" synchronized="false"
  27830. static="false" final="false" visibility="public"
  27831. deprecated="not deprecated">
  27832. <doc>
  27833. <![CDATA[@return the jobs in the waiting state]]>
  27834. </doc>
  27835. </method>
  27836. <method name="getRunningJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27837. abstract="false" native="false" synchronized="false"
  27838. static="false" final="false" visibility="public"
  27839. deprecated="not deprecated">
  27840. <doc>
  27841. <![CDATA[@return the jobs in the running state]]>
  27842. </doc>
  27843. </method>
  27844. <method name="getReadyJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27845. abstract="false" native="false" synchronized="false"
  27846. static="false" final="false" visibility="public"
  27847. deprecated="not deprecated">
  27848. <doc>
  27849. <![CDATA[@return the jobs in the ready state]]>
  27850. </doc>
  27851. </method>
  27852. <method name="getSuccessfulJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27853. abstract="false" native="false" synchronized="false"
  27854. static="false" final="false" visibility="public"
  27855. deprecated="not deprecated">
  27856. <doc>
  27857. <![CDATA[@return the jobs in the success state]]>
  27858. </doc>
  27859. </method>
  27860. <method name="getFailedJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  27861. abstract="false" native="false" synchronized="false"
  27862. static="false" final="false" visibility="public"
  27863. deprecated="not deprecated">
  27864. </method>
  27865. <method name="addJob" return="java.lang.String"
  27866. abstract="false" native="false" synchronized="true"
  27867. static="false" final="false" visibility="public"
  27868. deprecated="not deprecated">
  27869. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  27870. <doc>
  27871. <![CDATA[Add a new job.
  27872. @param aJob the the new job]]>
  27873. </doc>
  27874. </method>
  27875. <method name="addJobs"
  27876. abstract="false" native="false" synchronized="false"
  27877. static="false" final="false" visibility="public"
  27878. deprecated="not deprecated">
  27879. <param name="jobs" type="java.util.Collection&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"/>
  27880. <doc>
  27881. <![CDATA[Add a collection of jobs
  27882. @param jobs]]>
  27883. </doc>
  27884. </method>
  27885. <method name="getState" return="int"
  27886. abstract="false" native="false" synchronized="false"
  27887. static="false" final="false" visibility="public"
  27888. deprecated="not deprecated">
  27889. <doc>
  27890. <![CDATA[@return the thread state]]>
  27891. </doc>
  27892. </method>
  27893. <method name="stop"
  27894. abstract="false" native="false" synchronized="false"
  27895. static="false" final="false" visibility="public"
  27896. deprecated="not deprecated">
  27897. <doc>
  27898. <![CDATA[set the thread state to STOPPING so that the
  27899. thread will stop when it wakes up.]]>
  27900. </doc>
  27901. </method>
  27902. <method name="suspend"
  27903. abstract="false" native="false" synchronized="false"
  27904. static="false" final="false" visibility="public"
  27905. deprecated="not deprecated">
  27906. <doc>
  27907. <![CDATA[suspend the running thread]]>
  27908. </doc>
  27909. </method>
  27910. <method name="resume"
  27911. abstract="false" native="false" synchronized="false"
  27912. static="false" final="false" visibility="public"
  27913. deprecated="not deprecated">
  27914. <doc>
  27915. <![CDATA[resume the suspended thread]]>
  27916. </doc>
  27917. </method>
  27918. <method name="allFinished" return="boolean"
  27919. abstract="false" native="false" synchronized="true"
  27920. static="false" final="false" visibility="public"
  27921. deprecated="not deprecated">
  27922. </method>
  27923. <method name="run"
  27924. abstract="false" native="false" synchronized="false"
  27925. static="false" final="false" visibility="public"
  27926. deprecated="not deprecated">
  27927. <doc>
  27928. <![CDATA[The main loop for the thread.
  27929. The loop does the following:
  27930. Check the states of the running jobs
  27931. Update the states of waiting jobs
  27932. Submit the jobs in ready state]]>
  27933. </doc>
  27934. </method>
  27935. <doc>
  27936. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  27937. the states of the jobs by placing them into different tables according to their
  27938. states.
  27939. This class provides APIs for the client app to add a job to the group and to get
  27940. the jobs in the group in different states. When a
  27941. job is added, an ID unique to the group is assigned to the job.
  27942. This class has a thread that submits jobs when they become ready, monitors the
  27943. states of the running jobs, and updates the states of jobs based on the state changes
  27944. of their depending jobs states. The class provides APIs for suspending/resuming
  27945. the thread,and for stopping the thread.]]>
  27946. </doc>
  27947. </class>
  27948. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  27949. </package>
  27950. <package name="org.apache.hadoop.mapred.join">
  27951. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  27952. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  27953. abstract="false"
  27954. static="false" final="false" visibility="public"
  27955. deprecated="not deprecated">
  27956. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  27957. <constructor name="ArrayListBackedIterator"
  27958. static="false" final="false" visibility="public"
  27959. deprecated="not deprecated">
  27960. </constructor>
  27961. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList&lt;X&gt;"
  27962. static="false" final="false" visibility="public"
  27963. deprecated="not deprecated">
  27964. </constructor>
  27965. <method name="hasNext" return="boolean"
  27966. abstract="false" native="false" synchronized="false"
  27967. static="false" final="false" visibility="public"
  27968. deprecated="not deprecated">
  27969. </method>
  27970. <method name="next" return="boolean"
  27971. abstract="false" native="false" synchronized="false"
  27972. static="false" final="false" visibility="public"
  27973. deprecated="not deprecated">
  27974. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  27975. <exception name="IOException" type="java.io.IOException"/>
  27976. </method>
  27977. <method name="replay" return="boolean"
  27978. abstract="false" native="false" synchronized="false"
  27979. static="false" final="false" visibility="public"
  27980. deprecated="not deprecated">
  27981. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  27982. <exception name="IOException" type="java.io.IOException"/>
  27983. </method>
  27984. <method name="reset"
  27985. abstract="false" native="false" synchronized="false"
  27986. static="false" final="false" visibility="public"
  27987. deprecated="not deprecated">
  27988. </method>
  27989. <method name="add"
  27990. abstract="false" native="false" synchronized="false"
  27991. static="false" final="false" visibility="public"
  27992. deprecated="not deprecated">
  27993. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  27994. <exception name="IOException" type="java.io.IOException"/>
  27995. </method>
  27996. <method name="close"
  27997. abstract="false" native="false" synchronized="false"
  27998. static="false" final="false" visibility="public"
  27999. deprecated="not deprecated">
  28000. <exception name="IOException" type="java.io.IOException"/>
  28001. </method>
  28002. <method name="clear"
  28003. abstract="false" native="false" synchronized="false"
  28004. static="false" final="false" visibility="public"
  28005. deprecated="not deprecated">
  28006. </method>
  28007. <doc>
  28008. <![CDATA[This class provides an implementation of ResetableIterator. The
  28009. implementation uses an {@link java.util.ArrayList} to store elements
  28010. added to it, replaying them as requested.
  28011. Prefer {@link StreamBackedIterator}.]]>
  28012. </doc>
  28013. </class>
  28014. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  28015. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  28016. <interface name="ComposableInputFormat" abstract="true"
  28017. static="false" final="false" visibility="public"
  28018. deprecated="not deprecated">
  28019. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  28020. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"
  28021. abstract="false" native="false" synchronized="false"
  28022. static="false" final="false" visibility="public"
  28023. deprecated="not deprecated">
  28024. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28025. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28026. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28027. <exception name="IOException" type="java.io.IOException"/>
  28028. </method>
  28029. <doc>
  28030. <![CDATA[Refinement of InputFormat requiring implementors to provide
  28031. ComposableRecordReader instead of RecordReader.]]>
  28032. </doc>
  28033. </interface>
  28034. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  28035. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  28036. <interface name="ComposableRecordReader" abstract="true"
  28037. static="false" final="false" visibility="public"
  28038. deprecated="not deprecated">
  28039. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  28040. <implements name="java.lang.Comparable&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"/>
  28041. <method name="id" return="int"
  28042. abstract="false" native="false" synchronized="false"
  28043. static="false" final="false" visibility="public"
  28044. deprecated="not deprecated">
  28045. <doc>
  28046. <![CDATA[Return the position in the collector this class occupies.]]>
  28047. </doc>
  28048. </method>
  28049. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  28050. abstract="false" native="false" synchronized="false"
  28051. static="false" final="false" visibility="public"
  28052. deprecated="not deprecated">
  28053. <doc>
  28054. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  28055. </doc>
  28056. </method>
  28057. <method name="key"
  28058. abstract="false" native="false" synchronized="false"
  28059. static="false" final="false" visibility="public"
  28060. deprecated="not deprecated">
  28061. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28062. <exception name="IOException" type="java.io.IOException"/>
  28063. <doc>
  28064. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  28065. </doc>
  28066. </method>
  28067. <method name="hasNext" return="boolean"
  28068. abstract="false" native="false" synchronized="false"
  28069. static="false" final="false" visibility="public"
  28070. deprecated="not deprecated">
  28071. <doc>
  28072. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  28073. a call to next(K,V) will succeed.]]>
  28074. </doc>
  28075. </method>
  28076. <method name="skip"
  28077. abstract="false" native="false" synchronized="false"
  28078. static="false" final="false" visibility="public"
  28079. deprecated="not deprecated">
  28080. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28081. <exception name="IOException" type="java.io.IOException"/>
  28082. <doc>
  28083. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  28084. </doc>
  28085. </method>
  28086. <method name="accept"
  28087. abstract="false" native="false" synchronized="false"
  28088. static="false" final="false" visibility="public"
  28089. deprecated="not deprecated">
  28090. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  28091. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28092. <exception name="IOException" type="java.io.IOException"/>
  28093. <doc>
  28094. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  28095. them with the JoinCollector provided.]]>
  28096. </doc>
  28097. </method>
  28098. <doc>
  28099. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  28100. </doc>
  28101. </interface>
  28102. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  28103. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  28104. <class name="CompositeInputFormat" extends="java.lang.Object"
  28105. abstract="false"
  28106. static="false" final="false" visibility="public"
  28107. deprecated="not deprecated">
  28108. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  28109. <constructor name="CompositeInputFormat"
  28110. static="false" final="false" visibility="public"
  28111. deprecated="not deprecated">
  28112. </constructor>
  28113. <method name="setFormat"
  28114. abstract="false" native="false" synchronized="false"
  28115. static="false" final="false" visibility="public"
  28116. deprecated="not deprecated">
  28117. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28118. <exception name="IOException" type="java.io.IOException"/>
  28119. <doc>
  28120. <![CDATA[Interpret a given string as a composite expression.
  28121. {@code
  28122. func ::= <ident>([<func>,]*<func>)
  28123. func ::= tbl(<class>,"<path>")
  28124. class ::= @see java.lang.Class#forName(java.lang.String)
  28125. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  28126. }
  28127. Reads expression from the <tt>mapred.join.expr</tt> property and
  28128. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  28129. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  28130. InputFormat class listed.
  28131. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  28132. </doc>
  28133. </method>
  28134. <method name="addDefaults"
  28135. abstract="false" native="false" synchronized="false"
  28136. static="false" final="false" visibility="protected"
  28137. deprecated="not deprecated">
  28138. <doc>
  28139. <![CDATA[Adds the default set of identifiers to the parser.]]>
  28140. </doc>
  28141. </method>
  28142. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  28143. abstract="false" native="false" synchronized="false"
  28144. static="false" final="false" visibility="public"
  28145. deprecated="not deprecated">
  28146. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28147. <param name="numSplits" type="int"/>
  28148. <exception name="IOException" type="java.io.IOException"/>
  28149. <doc>
  28150. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  28151. ith split from each child to the ith composite split.]]>
  28152. </doc>
  28153. </method>
  28154. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  28155. abstract="false" native="false" synchronized="false"
  28156. static="false" final="false" visibility="public"
  28157. deprecated="not deprecated">
  28158. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28159. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28160. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28161. <exception name="IOException" type="java.io.IOException"/>
  28162. <doc>
  28163. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  28164. as defined in the init expression.
  28165. The outermost join need only be composable, not necessarily a composite.
  28166. Mandating TupleWritable isn't strictly correct.]]>
  28167. </doc>
  28168. </method>
  28169. <method name="compose" return="java.lang.String"
  28170. abstract="false" native="false" synchronized="false"
  28171. static="true" final="false" visibility="public"
  28172. deprecated="not deprecated">
  28173. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  28174. <param name="path" type="java.lang.String"/>
  28175. <doc>
  28176. <![CDATA[Convenience method for constructing composite formats.
  28177. Given InputFormat class (inf), path (p) return:
  28178. {@code tbl(<inf>, <p>) }]]>
  28179. </doc>
  28180. </method>
  28181. <method name="compose" return="java.lang.String"
  28182. abstract="false" native="false" synchronized="false"
  28183. static="true" final="false" visibility="public"
  28184. deprecated="not deprecated">
  28185. <param name="op" type="java.lang.String"/>
  28186. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  28187. <param name="path" type="java.lang.String[]"/>
  28188. <doc>
  28189. <![CDATA[Convenience method for constructing composite formats.
  28190. Given operation (op), Object class (inf), set of paths (p) return:
  28191. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  28192. </doc>
  28193. </method>
  28194. <method name="compose" return="java.lang.String"
  28195. abstract="false" native="false" synchronized="false"
  28196. static="true" final="false" visibility="public"
  28197. deprecated="not deprecated">
  28198. <param name="op" type="java.lang.String"/>
  28199. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  28200. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  28201. <doc>
  28202. <![CDATA[Convenience method for constructing composite formats.
  28203. Given operation (op), Object class (inf), set of paths (p) return:
  28204. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  28205. </doc>
  28206. </method>
  28207. <doc>
  28208. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  28209. and partitioned the same way.
  28210. @see #setFormat
  28211. A user may define new join types by setting the property
  28212. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  28213. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  28214. ComposableRecordReader.
  28215. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  28216. in the join.
  28217. @see JoinRecordReader
  28218. @see MultiFilterRecordReader]]>
  28219. </doc>
  28220. </class>
  28221. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  28222. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  28223. <class name="CompositeInputSplit" extends="java.lang.Object"
  28224. abstract="false"
  28225. static="false" final="false" visibility="public"
  28226. deprecated="not deprecated">
  28227. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  28228. <constructor name="CompositeInputSplit"
  28229. static="false" final="false" visibility="public"
  28230. deprecated="not deprecated">
  28231. </constructor>
  28232. <constructor name="CompositeInputSplit" type="int"
  28233. static="false" final="false" visibility="public"
  28234. deprecated="not deprecated">
  28235. </constructor>
  28236. <method name="add"
  28237. abstract="false" native="false" synchronized="false"
  28238. static="false" final="false" visibility="public"
  28239. deprecated="not deprecated">
  28240. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  28241. <exception name="IOException" type="java.io.IOException"/>
  28242. <doc>
  28243. <![CDATA[Add an InputSplit to this collection.
  28244. @throws IOException If capacity was not specified during construction
  28245. or if capacity has been reached.]]>
  28246. </doc>
  28247. </method>
  28248. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  28249. abstract="false" native="false" synchronized="false"
  28250. static="false" final="false" visibility="public"
  28251. deprecated="not deprecated">
  28252. <param name="i" type="int"/>
  28253. <doc>
  28254. <![CDATA[Get ith child InputSplit.]]>
  28255. </doc>
  28256. </method>
  28257. <method name="getLength" return="long"
  28258. abstract="false" native="false" synchronized="false"
  28259. static="false" final="false" visibility="public"
  28260. deprecated="not deprecated">
  28261. <exception name="IOException" type="java.io.IOException"/>
  28262. <doc>
  28263. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  28264. </doc>
  28265. </method>
  28266. <method name="getLength" return="long"
  28267. abstract="false" native="false" synchronized="false"
  28268. static="false" final="false" visibility="public"
  28269. deprecated="not deprecated">
  28270. <param name="i" type="int"/>
  28271. <exception name="IOException" type="java.io.IOException"/>
  28272. <doc>
  28273. <![CDATA[Get the length of ith child InputSplit.]]>
  28274. </doc>
  28275. </method>
  28276. <method name="getLocations" return="java.lang.String[]"
  28277. abstract="false" native="false" synchronized="false"
  28278. static="false" final="false" visibility="public"
  28279. deprecated="not deprecated">
  28280. <exception name="IOException" type="java.io.IOException"/>
  28281. <doc>
  28282. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  28283. </doc>
  28284. </method>
  28285. <method name="getLocation" return="java.lang.String[]"
  28286. abstract="false" native="false" synchronized="false"
  28287. static="false" final="false" visibility="public"
  28288. deprecated="not deprecated">
  28289. <param name="i" type="int"/>
  28290. <exception name="IOException" type="java.io.IOException"/>
  28291. <doc>
  28292. <![CDATA[getLocations from ith InputSplit.]]>
  28293. </doc>
  28294. </method>
  28295. <method name="write"
  28296. abstract="false" native="false" synchronized="false"
  28297. static="false" final="false" visibility="public"
  28298. deprecated="not deprecated">
  28299. <param name="out" type="java.io.DataOutput"/>
  28300. <exception name="IOException" type="java.io.IOException"/>
  28301. <doc>
  28302. <![CDATA[Write splits in the following format.
  28303. {@code
  28304. <count><class1><class2>...<classn><split1><split2>...<splitn>
  28305. }]]>
  28306. </doc>
  28307. </method>
  28308. <method name="readFields"
  28309. abstract="false" native="false" synchronized="false"
  28310. static="false" final="false" visibility="public"
  28311. deprecated="not deprecated">
  28312. <param name="in" type="java.io.DataInput"/>
  28313. <exception name="IOException" type="java.io.IOException"/>
  28314. <doc>
  28315. <![CDATA[{@inheritDoc}
  28316. @throws IOException If the child InputSplit cannot be read, typically
  28317. for faliing access checks.]]>
  28318. </doc>
  28319. </method>
  28320. <doc>
  28321. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  28322. into this collection must have a public default constructor.]]>
  28323. </doc>
  28324. </class>
  28325. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  28326. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  28327. <class name="CompositeRecordReader" extends="java.lang.Object"
  28328. abstract="true"
  28329. static="false" final="false" visibility="public"
  28330. deprecated="not deprecated">
  28331. <implements name="org.apache.hadoop.conf.Configurable"/>
  28332. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  28333. static="false" final="false" visibility="public"
  28334. deprecated="not deprecated">
  28335. <exception name="IOException" type="java.io.IOException"/>
  28336. <doc>
  28337. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  28338. <tt>id</tt> in the parent reader.
  28339. The id of a root CompositeRecordReader is -1 by convention, but relying
  28340. on this is not recommended.]]>
  28341. </doc>
  28342. </constructor>
  28343. <method name="combine" return="boolean"
  28344. abstract="true" native="false" synchronized="false"
  28345. static="false" final="false" visibility="protected"
  28346. deprecated="not deprecated">
  28347. <param name="srcs" type="java.lang.Object[]"/>
  28348. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28349. </method>
  28350. <method name="id" return="int"
  28351. abstract="false" native="false" synchronized="false"
  28352. static="false" final="false" visibility="public"
  28353. deprecated="not deprecated">
  28354. <doc>
  28355. <![CDATA[Return the position in the collector this class occupies.]]>
  28356. </doc>
  28357. </method>
  28358. <method name="setConf"
  28359. abstract="false" native="false" synchronized="false"
  28360. static="false" final="false" visibility="public"
  28361. deprecated="not deprecated">
  28362. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28363. <doc>
  28364. <![CDATA[{@inheritDoc}]]>
  28365. </doc>
  28366. </method>
  28367. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  28368. abstract="false" native="false" synchronized="false"
  28369. static="false" final="false" visibility="public"
  28370. deprecated="not deprecated">
  28371. <doc>
  28372. <![CDATA[{@inheritDoc}]]>
  28373. </doc>
  28374. </method>
  28375. <method name="getRecordReaderQueue" return="java.util.PriorityQueue&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"
  28376. abstract="false" native="false" synchronized="false"
  28377. static="false" final="false" visibility="protected"
  28378. deprecated="not deprecated">
  28379. <doc>
  28380. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  28381. </doc>
  28382. </method>
  28383. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  28384. abstract="false" native="false" synchronized="false"
  28385. static="false" final="false" visibility="protected"
  28386. deprecated="not deprecated">
  28387. <doc>
  28388. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  28389. composite.]]>
  28390. </doc>
  28391. </method>
  28392. <method name="add"
  28393. abstract="false" native="false" synchronized="false"
  28394. static="false" final="false" visibility="public"
  28395. deprecated="not deprecated">
  28396. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ? extends V&gt;"/>
  28397. <exception name="IOException" type="java.io.IOException"/>
  28398. <doc>
  28399. <![CDATA[Add a RecordReader to this collection.
  28400. The id() of a RecordReader determines where in the Tuple its
  28401. entry will appear. Adding RecordReaders with the same id has
  28402. undefined behavior.]]>
  28403. </doc>
  28404. </method>
  28405. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  28406. abstract="false" native="false" synchronized="false"
  28407. static="false" final="false" visibility="public"
  28408. deprecated="not deprecated">
  28409. <doc>
  28410. <![CDATA[Return the key for the current join or the value at the top of the
  28411. RecordReader heap.]]>
  28412. </doc>
  28413. </method>
  28414. <method name="key"
  28415. abstract="false" native="false" synchronized="false"
  28416. static="false" final="false" visibility="public"
  28417. deprecated="not deprecated">
  28418. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28419. <exception name="IOException" type="java.io.IOException"/>
  28420. <doc>
  28421. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  28422. </doc>
  28423. </method>
  28424. <method name="hasNext" return="boolean"
  28425. abstract="false" native="false" synchronized="false"
  28426. static="false" final="false" visibility="public"
  28427. deprecated="not deprecated">
  28428. <doc>
  28429. <![CDATA[Return true if it is possible that this could emit more values.]]>
  28430. </doc>
  28431. </method>
  28432. <method name="skip"
  28433. abstract="false" native="false" synchronized="false"
  28434. static="false" final="false" visibility="public"
  28435. deprecated="not deprecated">
  28436. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28437. <exception name="IOException" type="java.io.IOException"/>
  28438. <doc>
  28439. <![CDATA[Pass skip key to child RRs.]]>
  28440. </doc>
  28441. </method>
  28442. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"
  28443. abstract="true" native="false" synchronized="false"
  28444. static="false" final="false" visibility="protected"
  28445. deprecated="not deprecated">
  28446. <doc>
  28447. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  28448. ultimately emitted from this join.]]>
  28449. </doc>
  28450. </method>
  28451. <method name="accept"
  28452. abstract="false" native="false" synchronized="false"
  28453. static="false" final="false" visibility="public"
  28454. deprecated="not deprecated">
  28455. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  28456. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28457. <exception name="IOException" type="java.io.IOException"/>
  28458. <doc>
  28459. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  28460. iterator over values it may emit.]]>
  28461. </doc>
  28462. </method>
  28463. <method name="fillJoinCollector"
  28464. abstract="false" native="false" synchronized="false"
  28465. static="false" final="false" visibility="protected"
  28466. deprecated="not deprecated">
  28467. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28468. <exception name="IOException" type="java.io.IOException"/>
  28469. <doc>
  28470. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  28471. at that position in the JoinCollector.]]>
  28472. </doc>
  28473. </method>
  28474. <method name="compareTo" return="int"
  28475. abstract="false" native="false" synchronized="false"
  28476. static="false" final="false" visibility="public"
  28477. deprecated="not deprecated">
  28478. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  28479. <doc>
  28480. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  28481. with that of another).]]>
  28482. </doc>
  28483. </method>
  28484. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  28485. abstract="false" native="false" synchronized="false"
  28486. static="false" final="false" visibility="public"
  28487. deprecated="not deprecated">
  28488. <doc>
  28489. <![CDATA[Create a new key value common to all child RRs.
  28490. @throws ClassCastException if key classes differ.]]>
  28491. </doc>
  28492. </method>
  28493. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  28494. abstract="false" native="false" synchronized="false"
  28495. static="false" final="false" visibility="protected"
  28496. deprecated="not deprecated">
  28497. <doc>
  28498. <![CDATA[Create a value to be used internally for joins.]]>
  28499. </doc>
  28500. </method>
  28501. <method name="getPos" return="long"
  28502. abstract="false" native="false" synchronized="false"
  28503. static="false" final="false" visibility="public"
  28504. deprecated="not deprecated">
  28505. <exception name="IOException" type="java.io.IOException"/>
  28506. <doc>
  28507. <![CDATA[Unsupported (returns zero in all cases).]]>
  28508. </doc>
  28509. </method>
  28510. <method name="close"
  28511. abstract="false" native="false" synchronized="false"
  28512. static="false" final="false" visibility="public"
  28513. deprecated="not deprecated">
  28514. <exception name="IOException" type="java.io.IOException"/>
  28515. <doc>
  28516. <![CDATA[Close all child RRs.]]>
  28517. </doc>
  28518. </method>
  28519. <method name="getProgress" return="float"
  28520. abstract="false" native="false" synchronized="false"
  28521. static="false" final="false" visibility="public"
  28522. deprecated="not deprecated">
  28523. <exception name="IOException" type="java.io.IOException"/>
  28524. <doc>
  28525. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  28526. </doc>
  28527. </method>
  28528. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, X&gt;.JoinCollector"
  28529. transient="false" volatile="false"
  28530. static="false" final="true" visibility="protected"
  28531. deprecated="not deprecated">
  28532. </field>
  28533. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  28534. transient="false" volatile="false"
  28535. static="false" final="true" visibility="protected"
  28536. deprecated="not deprecated">
  28537. </field>
  28538. <doc>
  28539. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  28540. type and partitioning.]]>
  28541. </doc>
  28542. </class>
  28543. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  28544. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  28545. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  28546. abstract="false"
  28547. static="false" final="false" visibility="public"
  28548. deprecated="not deprecated">
  28549. <method name="combine" return="boolean"
  28550. abstract="false" native="false" synchronized="false"
  28551. static="false" final="false" visibility="protected"
  28552. deprecated="not deprecated">
  28553. <param name="srcs" type="java.lang.Object[]"/>
  28554. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28555. <doc>
  28556. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  28557. </doc>
  28558. </method>
  28559. <doc>
  28560. <![CDATA[Full inner join.]]>
  28561. </doc>
  28562. </class>
  28563. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  28564. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  28565. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  28566. abstract="true"
  28567. static="false" final="false" visibility="public"
  28568. deprecated="not deprecated">
  28569. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  28570. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  28571. static="false" final="false" visibility="public"
  28572. deprecated="not deprecated">
  28573. <exception name="IOException" type="java.io.IOException"/>
  28574. </constructor>
  28575. <method name="next" return="boolean"
  28576. abstract="false" native="false" synchronized="false"
  28577. static="false" final="false" visibility="public"
  28578. deprecated="not deprecated">
  28579. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28580. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28581. <exception name="IOException" type="java.io.IOException"/>
  28582. <doc>
  28583. <![CDATA[Emit the next set of key, value pairs as defined by the child
  28584. RecordReaders and operation associated with this composite RR.]]>
  28585. </doc>
  28586. </method>
  28587. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  28588. abstract="false" native="false" synchronized="false"
  28589. static="false" final="false" visibility="public"
  28590. deprecated="not deprecated">
  28591. <doc>
  28592. <![CDATA[{@inheritDoc}]]>
  28593. </doc>
  28594. </method>
  28595. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"
  28596. abstract="false" native="false" synchronized="false"
  28597. static="false" final="false" visibility="protected"
  28598. deprecated="not deprecated">
  28599. <doc>
  28600. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  28601. </doc>
  28602. </method>
  28603. <doc>
  28604. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  28605. </doc>
  28606. </class>
  28607. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  28608. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  28609. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  28610. abstract="false"
  28611. static="false" final="false" visibility="protected"
  28612. deprecated="not deprecated">
  28613. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  28614. <constructor name="JoinRecordReader.JoinDelegationIterator"
  28615. static="false" final="false" visibility="protected"
  28616. deprecated="not deprecated">
  28617. </constructor>
  28618. <method name="hasNext" return="boolean"
  28619. abstract="false" native="false" synchronized="false"
  28620. static="false" final="false" visibility="public"
  28621. deprecated="not deprecated">
  28622. </method>
  28623. <method name="next" return="boolean"
  28624. abstract="false" native="false" synchronized="false"
  28625. static="false" final="false" visibility="public"
  28626. deprecated="not deprecated">
  28627. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28628. <exception name="IOException" type="java.io.IOException"/>
  28629. </method>
  28630. <method name="replay" return="boolean"
  28631. abstract="false" native="false" synchronized="false"
  28632. static="false" final="false" visibility="public"
  28633. deprecated="not deprecated">
  28634. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28635. <exception name="IOException" type="java.io.IOException"/>
  28636. </method>
  28637. <method name="reset"
  28638. abstract="false" native="false" synchronized="false"
  28639. static="false" final="false" visibility="public"
  28640. deprecated="not deprecated">
  28641. </method>
  28642. <method name="add"
  28643. abstract="false" native="false" synchronized="false"
  28644. static="false" final="false" visibility="public"
  28645. deprecated="not deprecated">
  28646. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28647. <exception name="IOException" type="java.io.IOException"/>
  28648. </method>
  28649. <method name="close"
  28650. abstract="false" native="false" synchronized="false"
  28651. static="false" final="false" visibility="public"
  28652. deprecated="not deprecated">
  28653. <exception name="IOException" type="java.io.IOException"/>
  28654. </method>
  28655. <method name="clear"
  28656. abstract="false" native="false" synchronized="false"
  28657. static="false" final="false" visibility="public"
  28658. deprecated="not deprecated">
  28659. </method>
  28660. <doc>
  28661. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  28662. provide an iterator proxy wrapping its operation.]]>
  28663. </doc>
  28664. </class>
  28665. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  28666. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  28667. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, V&gt;"
  28668. abstract="true"
  28669. static="false" final="false" visibility="public"
  28670. deprecated="not deprecated">
  28671. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"/>
  28672. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  28673. static="false" final="false" visibility="public"
  28674. deprecated="not deprecated">
  28675. <exception name="IOException" type="java.io.IOException"/>
  28676. </constructor>
  28677. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  28678. abstract="true" native="false" synchronized="false"
  28679. static="false" final="false" visibility="protected"
  28680. deprecated="not deprecated">
  28681. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28682. <exception name="IOException" type="java.io.IOException"/>
  28683. <doc>
  28684. <![CDATA[For each tuple emitted, return a value (typically one of the values
  28685. in the tuple).
  28686. Modifying the Writables in the tuple is permitted and unlikely to affect
  28687. join behavior in most cases, but it is not recommended. It's safer to
  28688. clone first.]]>
  28689. </doc>
  28690. </method>
  28691. <method name="combine" return="boolean"
  28692. abstract="false" native="false" synchronized="false"
  28693. static="false" final="false" visibility="protected"
  28694. deprecated="not deprecated">
  28695. <param name="srcs" type="java.lang.Object[]"/>
  28696. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28697. <doc>
  28698. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  28699. collector (the outer join of child RRs).]]>
  28700. </doc>
  28701. </method>
  28702. <method name="next" return="boolean"
  28703. abstract="false" native="false" synchronized="false"
  28704. static="false" final="false" visibility="public"
  28705. deprecated="not deprecated">
  28706. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28707. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  28708. <exception name="IOException" type="java.io.IOException"/>
  28709. <doc>
  28710. <![CDATA[{@inheritDoc}]]>
  28711. </doc>
  28712. </method>
  28713. <method name="createValue" return="V extends org.apache.hadoop.io.Writable"
  28714. abstract="false" native="false" synchronized="false"
  28715. static="false" final="false" visibility="public"
  28716. deprecated="not deprecated">
  28717. <doc>
  28718. <![CDATA[{@inheritDoc}]]>
  28719. </doc>
  28720. </method>
  28721. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"
  28722. abstract="false" native="false" synchronized="false"
  28723. static="false" final="false" visibility="protected"
  28724. deprecated="not deprecated">
  28725. <doc>
  28726. <![CDATA[Return an iterator returning a single value from the tuple.
  28727. @see MultiFilterDelegationIterator]]>
  28728. </doc>
  28729. </method>
  28730. <doc>
  28731. <![CDATA[Base class for Composite join returning values derived from multiple
  28732. sources, but generally not tuples.]]>
  28733. </doc>
  28734. </class>
  28735. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  28736. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  28737. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  28738. abstract="false"
  28739. static="false" final="false" visibility="protected"
  28740. deprecated="not deprecated">
  28741. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"/>
  28742. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  28743. static="false" final="false" visibility="protected"
  28744. deprecated="not deprecated">
  28745. </constructor>
  28746. <method name="hasNext" return="boolean"
  28747. abstract="false" native="false" synchronized="false"
  28748. static="false" final="false" visibility="public"
  28749. deprecated="not deprecated">
  28750. </method>
  28751. <method name="next" return="boolean"
  28752. abstract="false" native="false" synchronized="false"
  28753. static="false" final="false" visibility="public"
  28754. deprecated="not deprecated">
  28755. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  28756. <exception name="IOException" type="java.io.IOException"/>
  28757. </method>
  28758. <method name="replay" return="boolean"
  28759. abstract="false" native="false" synchronized="false"
  28760. static="false" final="false" visibility="public"
  28761. deprecated="not deprecated">
  28762. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  28763. <exception name="IOException" type="java.io.IOException"/>
  28764. </method>
  28765. <method name="reset"
  28766. abstract="false" native="false" synchronized="false"
  28767. static="false" final="false" visibility="public"
  28768. deprecated="not deprecated">
  28769. </method>
  28770. <method name="add"
  28771. abstract="false" native="false" synchronized="false"
  28772. static="false" final="false" visibility="public"
  28773. deprecated="not deprecated">
  28774. <param name="item" type="V extends org.apache.hadoop.io.Writable"/>
  28775. <exception name="IOException" type="java.io.IOException"/>
  28776. </method>
  28777. <method name="close"
  28778. abstract="false" native="false" synchronized="false"
  28779. static="false" final="false" visibility="public"
  28780. deprecated="not deprecated">
  28781. <exception name="IOException" type="java.io.IOException"/>
  28782. </method>
  28783. <method name="clear"
  28784. abstract="false" native="false" synchronized="false"
  28785. static="false" final="false" visibility="public"
  28786. deprecated="not deprecated">
  28787. </method>
  28788. <doc>
  28789. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  28790. </doc>
  28791. </class>
  28792. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  28793. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  28794. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  28795. abstract="false"
  28796. static="false" final="false" visibility="public"
  28797. deprecated="not deprecated">
  28798. <method name="combine" return="boolean"
  28799. abstract="false" native="false" synchronized="false"
  28800. static="false" final="false" visibility="protected"
  28801. deprecated="not deprecated">
  28802. <param name="srcs" type="java.lang.Object[]"/>
  28803. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28804. <doc>
  28805. <![CDATA[Emit everything from the collector.]]>
  28806. </doc>
  28807. </method>
  28808. <doc>
  28809. <![CDATA[Full outer join.]]>
  28810. </doc>
  28811. </class>
  28812. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  28813. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  28814. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader&lt;K, V&gt;"
  28815. abstract="false"
  28816. static="false" final="false" visibility="public"
  28817. deprecated="not deprecated">
  28818. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  28819. abstract="false" native="false" synchronized="false"
  28820. static="false" final="false" visibility="protected"
  28821. deprecated="not deprecated">
  28822. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  28823. <doc>
  28824. <![CDATA[Emit the value with the highest position in the tuple.]]>
  28825. </doc>
  28826. </method>
  28827. <method name="fillJoinCollector"
  28828. abstract="false" native="false" synchronized="false"
  28829. static="false" final="false" visibility="protected"
  28830. deprecated="not deprecated">
  28831. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28832. <exception name="IOException" type="java.io.IOException"/>
  28833. <doc>
  28834. <![CDATA[Instead of filling the JoinCollector with iterators from all
  28835. data sources, fill only the rightmost for this key.
  28836. This not only saves space by discarding the other sources, but
  28837. it also emits the number of key-value pairs in the preferred
  28838. RecordReader instead of repeating that stream n times, where
  28839. n is the cardinality of the cross product of the discarded
  28840. streams for the given key.]]>
  28841. </doc>
  28842. </method>
  28843. <doc>
  28844. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  28845. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  28846. from S3 over S2, and values from S2 over S1 for all keys
  28847. emitted from all sources.]]>
  28848. </doc>
  28849. </class>
  28850. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  28851. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  28852. <class name="Parser" extends="java.lang.Object"
  28853. abstract="false"
  28854. static="false" final="false" visibility="public"
  28855. deprecated="not deprecated">
  28856. <constructor name="Parser"
  28857. static="false" final="false" visibility="public"
  28858. deprecated="not deprecated">
  28859. </constructor>
  28860. <doc>
  28861. <![CDATA[Very simple shift-reduce parser for join expressions.
  28862. This should be sufficient for the user extension permitted now, but ought to
  28863. be replaced with a parser generator if more complex grammars are supported.
  28864. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  28865. of formals requires a different internal node type, which is responsible for
  28866. interpreting the list of tokens it receives. This is sufficient for the
  28867. current grammar, but it has several annoying properties that might inhibit
  28868. extension. In particular, parenthesis are always function calls; an
  28869. algebraic or filter grammar would not only require a node type, but must
  28870. also work around the internals of this parser.
  28871. For most other cases, adding classes to the hierarchy- particularly by
  28872. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  28873. straightforward. One need only override the relevant method(s) (usually only
  28874. {@link CompositeRecordReader#combine}) and include a property to map its
  28875. value to an identifier in the parser.]]>
  28876. </doc>
  28877. </class>
  28878. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  28879. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  28880. <class name="Parser.Node" extends="java.lang.Object"
  28881. abstract="true"
  28882. static="true" final="false" visibility="public"
  28883. deprecated="not deprecated">
  28884. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  28885. <constructor name="Parser.Node" type="java.lang.String"
  28886. static="false" final="false" visibility="protected"
  28887. deprecated="not deprecated">
  28888. </constructor>
  28889. <method name="addIdentifier"
  28890. abstract="false" native="false" synchronized="false"
  28891. static="true" final="false" visibility="protected"
  28892. deprecated="not deprecated">
  28893. <param name="ident" type="java.lang.String"/>
  28894. <param name="mcstrSig" type="java.lang.Class[]"/>
  28895. <param name="nodetype" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.Parser.Node&gt;"/>
  28896. <param name="cl" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.ComposableRecordReader&gt;"/>
  28897. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  28898. <doc>
  28899. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  28900. tree and to the ComposableRecordReader to be created, including the
  28901. formals required to invoke the constructor.
  28902. The nodetype and constructor signature should be filled in from the
  28903. child node.]]>
  28904. </doc>
  28905. </method>
  28906. <method name="setID"
  28907. abstract="false" native="false" synchronized="false"
  28908. static="false" final="false" visibility="protected"
  28909. deprecated="not deprecated">
  28910. <param name="id" type="int"/>
  28911. </method>
  28912. <method name="setKeyComparator"
  28913. abstract="false" native="false" synchronized="false"
  28914. static="false" final="false" visibility="protected"
  28915. deprecated="not deprecated">
  28916. <param name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"/>
  28917. </method>
  28918. <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;"
  28919. transient="false" volatile="false"
  28920. static="true" final="true" visibility="protected"
  28921. deprecated="not deprecated">
  28922. </field>
  28923. <field name="id" type="int"
  28924. transient="false" volatile="false"
  28925. static="false" final="false" visibility="protected"
  28926. deprecated="not deprecated">
  28927. </field>
  28928. <field name="ident" type="java.lang.String"
  28929. transient="false" volatile="false"
  28930. static="false" final="false" visibility="protected"
  28931. deprecated="not deprecated">
  28932. </field>
  28933. <field name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  28934. transient="false" volatile="false"
  28935. static="false" final="false" visibility="protected"
  28936. deprecated="not deprecated">
  28937. </field>
  28938. </class>
  28939. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  28940. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  28941. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  28942. abstract="false"
  28943. static="true" final="false" visibility="public"
  28944. deprecated="not deprecated">
  28945. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  28946. abstract="false" native="false" synchronized="false"
  28947. static="false" final="false" visibility="public"
  28948. deprecated="not deprecated">
  28949. </method>
  28950. </class>
  28951. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  28952. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  28953. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  28954. abstract="false"
  28955. static="true" final="false" visibility="public"
  28956. deprecated="not deprecated">
  28957. <constructor name="Parser.NumToken" type="double"
  28958. static="false" final="false" visibility="public"
  28959. deprecated="not deprecated">
  28960. </constructor>
  28961. <method name="getNum" return="double"
  28962. abstract="false" native="false" synchronized="false"
  28963. static="false" final="false" visibility="public"
  28964. deprecated="not deprecated">
  28965. </method>
  28966. </class>
  28967. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  28968. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  28969. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  28970. abstract="false"
  28971. static="true" final="false" visibility="public"
  28972. deprecated="not deprecated">
  28973. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  28974. static="false" final="false" visibility="public"
  28975. deprecated="not deprecated">
  28976. </constructor>
  28977. <method name="getStr" return="java.lang.String"
  28978. abstract="false" native="false" synchronized="false"
  28979. static="false" final="false" visibility="public"
  28980. deprecated="not deprecated">
  28981. </method>
  28982. </class>
  28983. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  28984. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  28985. <class name="Parser.Token" extends="java.lang.Object"
  28986. abstract="false"
  28987. static="true" final="false" visibility="public"
  28988. deprecated="not deprecated">
  28989. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  28990. abstract="false" native="false" synchronized="false"
  28991. static="false" final="false" visibility="public"
  28992. deprecated="not deprecated">
  28993. </method>
  28994. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  28995. abstract="false" native="false" synchronized="false"
  28996. static="false" final="false" visibility="public"
  28997. deprecated="not deprecated">
  28998. <exception name="IOException" type="java.io.IOException"/>
  28999. </method>
  29000. <method name="getNum" return="double"
  29001. abstract="false" native="false" synchronized="false"
  29002. static="false" final="false" visibility="public"
  29003. deprecated="not deprecated">
  29004. <exception name="IOException" type="java.io.IOException"/>
  29005. </method>
  29006. <method name="getStr" return="java.lang.String"
  29007. abstract="false" native="false" synchronized="false"
  29008. static="false" final="false" visibility="public"
  29009. deprecated="not deprecated">
  29010. <exception name="IOException" type="java.io.IOException"/>
  29011. </method>
  29012. <doc>
  29013. <![CDATA[Tagged-union type for tokens from the join expression.
  29014. @see Parser.TType]]>
  29015. </doc>
  29016. </class>
  29017. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  29018. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  29019. <class name="Parser.TType" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.join.Parser.TType&gt;"
  29020. abstract="false"
  29021. static="true" final="true" visibility="public"
  29022. deprecated="not deprecated">
  29023. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  29024. abstract="false" native="false" synchronized="false"
  29025. static="true" final="false" visibility="public"
  29026. deprecated="not deprecated">
  29027. </method>
  29028. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  29029. abstract="false" native="false" synchronized="false"
  29030. static="true" final="false" visibility="public"
  29031. deprecated="not deprecated">
  29032. <param name="name" type="java.lang.String"/>
  29033. </method>
  29034. </class>
  29035. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  29036. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  29037. <interface name="ResetableIterator" abstract="true"
  29038. static="false" final="false" visibility="public"
  29039. deprecated="not deprecated">
  29040. <method name="hasNext" return="boolean"
  29041. abstract="false" native="false" synchronized="false"
  29042. static="false" final="false" visibility="public"
  29043. deprecated="not deprecated">
  29044. <doc>
  29045. <![CDATA[True if a call to next may return a value. This is permitted false
  29046. positives, but not false negatives.]]>
  29047. </doc>
  29048. </method>
  29049. <method name="next" return="boolean"
  29050. abstract="false" native="false" synchronized="false"
  29051. static="false" final="false" visibility="public"
  29052. deprecated="not deprecated">
  29053. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  29054. <exception name="IOException" type="java.io.IOException"/>
  29055. <doc>
  29056. <![CDATA[Assign next value to actual.
  29057. It is required that elements added to a ResetableIterator be returned in
  29058. the same order after a call to {@link #reset} (FIFO).
  29059. Note that a call to this may fail for nested joins (i.e. more elements
  29060. available, but none satisfying the constraints of the join)]]>
  29061. </doc>
  29062. </method>
  29063. <method name="replay" return="boolean"
  29064. abstract="false" native="false" synchronized="false"
  29065. static="false" final="false" visibility="public"
  29066. deprecated="not deprecated">
  29067. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  29068. <exception name="IOException" type="java.io.IOException"/>
  29069. <doc>
  29070. <![CDATA[Assign last value returned to actual.]]>
  29071. </doc>
  29072. </method>
  29073. <method name="reset"
  29074. abstract="false" native="false" synchronized="false"
  29075. static="false" final="false" visibility="public"
  29076. deprecated="not deprecated">
  29077. <doc>
  29078. <![CDATA[Set iterator to return to the start of its range. Must be called after
  29079. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  29080. </doc>
  29081. </method>
  29082. <method name="add"
  29083. abstract="false" native="false" synchronized="false"
  29084. static="false" final="false" visibility="public"
  29085. deprecated="not deprecated">
  29086. <param name="item" type="T extends org.apache.hadoop.io.Writable"/>
  29087. <exception name="IOException" type="java.io.IOException"/>
  29088. <doc>
  29089. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  29090. </doc>
  29091. </method>
  29092. <method name="close"
  29093. abstract="false" native="false" synchronized="false"
  29094. static="false" final="false" visibility="public"
  29095. deprecated="not deprecated">
  29096. <exception name="IOException" type="java.io.IOException"/>
  29097. <doc>
  29098. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  29099. after calling close has undefined behavior.]]>
  29100. </doc>
  29101. </method>
  29102. <method name="clear"
  29103. abstract="false" native="false" synchronized="false"
  29104. static="false" final="false" visibility="public"
  29105. deprecated="not deprecated">
  29106. <doc>
  29107. <![CDATA[Close datasources, but do not release internal resources. Calling this
  29108. method should permit the object to be reused with a different datasource.]]>
  29109. </doc>
  29110. </method>
  29111. <doc>
  29112. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  29113. added to it directly.
  29114. Note that this does not extend {@link java.util.Iterator}.]]>
  29115. </doc>
  29116. </interface>
  29117. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  29118. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  29119. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  29120. abstract="false"
  29121. static="true" final="false" visibility="public"
  29122. deprecated="not deprecated">
  29123. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;U&gt;"/>
  29124. <constructor name="ResetableIterator.EMPTY"
  29125. static="false" final="false" visibility="public"
  29126. deprecated="not deprecated">
  29127. </constructor>
  29128. <method name="hasNext" return="boolean"
  29129. abstract="false" native="false" synchronized="false"
  29130. static="false" final="false" visibility="public"
  29131. deprecated="not deprecated">
  29132. </method>
  29133. <method name="reset"
  29134. abstract="false" native="false" synchronized="false"
  29135. static="false" final="false" visibility="public"
  29136. deprecated="not deprecated">
  29137. </method>
  29138. <method name="close"
  29139. abstract="false" native="false" synchronized="false"
  29140. static="false" final="false" visibility="public"
  29141. deprecated="not deprecated">
  29142. <exception name="IOException" type="java.io.IOException"/>
  29143. </method>
  29144. <method name="clear"
  29145. abstract="false" native="false" synchronized="false"
  29146. static="false" final="false" visibility="public"
  29147. deprecated="not deprecated">
  29148. </method>
  29149. <method name="next" return="boolean"
  29150. abstract="false" native="false" synchronized="false"
  29151. static="false" final="false" visibility="public"
  29152. deprecated="not deprecated">
  29153. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  29154. <exception name="IOException" type="java.io.IOException"/>
  29155. </method>
  29156. <method name="replay" return="boolean"
  29157. abstract="false" native="false" synchronized="false"
  29158. static="false" final="false" visibility="public"
  29159. deprecated="not deprecated">
  29160. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  29161. <exception name="IOException" type="java.io.IOException"/>
  29162. </method>
  29163. <method name="add"
  29164. abstract="false" native="false" synchronized="false"
  29165. static="false" final="false" visibility="public"
  29166. deprecated="not deprecated">
  29167. <param name="item" type="U extends org.apache.hadoop.io.Writable"/>
  29168. <exception name="IOException" type="java.io.IOException"/>
  29169. </method>
  29170. </class>
  29171. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  29172. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  29173. <class name="StreamBackedIterator" extends="java.lang.Object"
  29174. abstract="false"
  29175. static="false" final="false" visibility="public"
  29176. deprecated="not deprecated">
  29177. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  29178. <constructor name="StreamBackedIterator"
  29179. static="false" final="false" visibility="public"
  29180. deprecated="not deprecated">
  29181. </constructor>
  29182. <method name="hasNext" return="boolean"
  29183. abstract="false" native="false" synchronized="false"
  29184. static="false" final="false" visibility="public"
  29185. deprecated="not deprecated">
  29186. </method>
  29187. <method name="next" return="boolean"
  29188. abstract="false" native="false" synchronized="false"
  29189. static="false" final="false" visibility="public"
  29190. deprecated="not deprecated">
  29191. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  29192. <exception name="IOException" type="java.io.IOException"/>
  29193. </method>
  29194. <method name="replay" return="boolean"
  29195. abstract="false" native="false" synchronized="false"
  29196. static="false" final="false" visibility="public"
  29197. deprecated="not deprecated">
  29198. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  29199. <exception name="IOException" type="java.io.IOException"/>
  29200. </method>
  29201. <method name="reset"
  29202. abstract="false" native="false" synchronized="false"
  29203. static="false" final="false" visibility="public"
  29204. deprecated="not deprecated">
  29205. </method>
  29206. <method name="add"
  29207. abstract="false" native="false" synchronized="false"
  29208. static="false" final="false" visibility="public"
  29209. deprecated="not deprecated">
  29210. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  29211. <exception name="IOException" type="java.io.IOException"/>
  29212. </method>
  29213. <method name="close"
  29214. abstract="false" native="false" synchronized="false"
  29215. static="false" final="false" visibility="public"
  29216. deprecated="not deprecated">
  29217. <exception name="IOException" type="java.io.IOException"/>
  29218. </method>
  29219. <method name="clear"
  29220. abstract="false" native="false" synchronized="false"
  29221. static="false" final="false" visibility="public"
  29222. deprecated="not deprecated">
  29223. </method>
  29224. <doc>
  29225. <![CDATA[This class provides an implementation of ResetableIterator. This
  29226. implementation uses a byte array to store elements added to it.]]>
  29227. </doc>
  29228. </class>
  29229. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  29230. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  29231. <class name="TupleWritable" extends="java.lang.Object"
  29232. abstract="false"
  29233. static="false" final="false" visibility="public"
  29234. deprecated="not deprecated">
  29235. <implements name="org.apache.hadoop.io.Writable"/>
  29236. <implements name="java.lang.Iterable&lt;org.apache.hadoop.io.Writable&gt;"/>
  29237. <constructor name="TupleWritable"
  29238. static="false" final="false" visibility="public"
  29239. deprecated="not deprecated">
  29240. <doc>
  29241. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  29242. </doc>
  29243. </constructor>
  29244. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  29245. static="false" final="false" visibility="public"
  29246. deprecated="not deprecated">
  29247. <doc>
  29248. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  29249. &quot;written&quot; values.]]>
  29250. </doc>
  29251. </constructor>
  29252. <method name="has" return="boolean"
  29253. abstract="false" native="false" synchronized="false"
  29254. static="false" final="false" visibility="public"
  29255. deprecated="not deprecated">
  29256. <param name="i" type="int"/>
  29257. <doc>
  29258. <![CDATA[Return true if tuple has an element at the position provided.]]>
  29259. </doc>
  29260. </method>
  29261. <method name="get" return="org.apache.hadoop.io.Writable"
  29262. abstract="false" native="false" synchronized="false"
  29263. static="false" final="false" visibility="public"
  29264. deprecated="not deprecated">
  29265. <param name="i" type="int"/>
  29266. <doc>
  29267. <![CDATA[Get ith Writable from Tuple.]]>
  29268. </doc>
  29269. </method>
  29270. <method name="size" return="int"
  29271. abstract="false" native="false" synchronized="false"
  29272. static="false" final="false" visibility="public"
  29273. deprecated="not deprecated">
  29274. <doc>
  29275. <![CDATA[The number of children in this Tuple.]]>
  29276. </doc>
  29277. </method>
  29278. <method name="equals" return="boolean"
  29279. abstract="false" native="false" synchronized="false"
  29280. static="false" final="false" visibility="public"
  29281. deprecated="not deprecated">
  29282. <param name="other" type="java.lang.Object"/>
  29283. <doc>
  29284. <![CDATA[{@inheritDoc}]]>
  29285. </doc>
  29286. </method>
  29287. <method name="hashCode" return="int"
  29288. abstract="false" native="false" synchronized="false"
  29289. static="false" final="false" visibility="public"
  29290. deprecated="not deprecated">
  29291. </method>
  29292. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.io.Writable&gt;"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="false" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. <doc>
  29297. <![CDATA[Return an iterator over the elements in this tuple.
  29298. Note that this doesn't flatten the tuple; one may receive tuples
  29299. from this iterator.]]>
  29300. </doc>
  29301. </method>
  29302. <method name="toString" return="java.lang.String"
  29303. abstract="false" native="false" synchronized="false"
  29304. static="false" final="false" visibility="public"
  29305. deprecated="not deprecated">
  29306. <doc>
  29307. <![CDATA[Convert Tuple to String as in the following.
  29308. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  29309. </doc>
  29310. </method>
  29311. <method name="write"
  29312. abstract="false" native="false" synchronized="false"
  29313. static="false" final="false" visibility="public"
  29314. deprecated="not deprecated">
  29315. <param name="out" type="java.io.DataOutput"/>
  29316. <exception name="IOException" type="java.io.IOException"/>
  29317. <doc>
  29318. <![CDATA[Writes each Writable to <code>out</code>.
  29319. TupleWritable format:
  29320. {@code
  29321. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  29322. }]]>
  29323. </doc>
  29324. </method>
  29325. <method name="readFields"
  29326. abstract="false" native="false" synchronized="false"
  29327. static="false" final="false" visibility="public"
  29328. deprecated="not deprecated">
  29329. <param name="in" type="java.io.DataInput"/>
  29330. <exception name="IOException" type="java.io.IOException"/>
  29331. <doc>
  29332. <![CDATA[{@inheritDoc}]]>
  29333. </doc>
  29334. </method>
  29335. <doc>
  29336. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.
  29337. This is *not* a general-purpose tuple type. In almost all cases, users are
  29338. encouraged to implement their own serializable types, which can perform
  29339. better validation and provide more efficient encodings than this class is
  29340. capable. TupleWritable relies on the join framework for type safety and
  29341. assumes its instances will rarely be persisted, assumptions not only
  29342. incompatible with, but contrary to the general case.
  29343. @see org.apache.hadoop.io.Writable]]>
  29344. </doc>
  29345. </class>
  29346. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  29347. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  29348. <class name="WrappedRecordReader" extends="java.lang.Object"
  29349. abstract="false"
  29350. static="false" final="false" visibility="public"
  29351. deprecated="not deprecated">
  29352. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, U&gt;"/>
  29353. <method name="id" return="int"
  29354. abstract="false" native="false" synchronized="false"
  29355. static="false" final="false" visibility="public"
  29356. deprecated="not deprecated">
  29357. <doc>
  29358. <![CDATA[{@inheritDoc}]]>
  29359. </doc>
  29360. </method>
  29361. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  29362. abstract="false" native="false" synchronized="false"
  29363. static="false" final="false" visibility="public"
  29364. deprecated="not deprecated">
  29365. <doc>
  29366. <![CDATA[Return the key at the head of this RR.]]>
  29367. </doc>
  29368. </method>
  29369. <method name="key"
  29370. abstract="false" native="false" synchronized="false"
  29371. static="false" final="false" visibility="public"
  29372. deprecated="not deprecated">
  29373. <param name="qkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29374. <exception name="IOException" type="java.io.IOException"/>
  29375. <doc>
  29376. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  29377. </doc>
  29378. </method>
  29379. <method name="hasNext" return="boolean"
  29380. abstract="false" native="false" synchronized="false"
  29381. static="false" final="false" visibility="public"
  29382. deprecated="not deprecated">
  29383. <doc>
  29384. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  29385. is exhausted.]]>
  29386. </doc>
  29387. </method>
  29388. <method name="skip"
  29389. abstract="false" native="false" synchronized="false"
  29390. static="false" final="false" visibility="public"
  29391. deprecated="not deprecated">
  29392. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29393. <exception name="IOException" type="java.io.IOException"/>
  29394. <doc>
  29395. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  29396. </doc>
  29397. </method>
  29398. <method name="next" return="boolean"
  29399. abstract="false" native="false" synchronized="false"
  29400. static="false" final="false" visibility="protected"
  29401. deprecated="not deprecated">
  29402. <exception name="IOException" type="java.io.IOException"/>
  29403. <doc>
  29404. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  29405. the RR and this are exhausted.]]>
  29406. </doc>
  29407. </method>
  29408. <method name="accept"
  29409. abstract="false" native="false" synchronized="false"
  29410. static="false" final="false" visibility="public"
  29411. deprecated="not deprecated">
  29412. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  29413. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29414. <exception name="IOException" type="java.io.IOException"/>
  29415. <doc>
  29416. <![CDATA[Add an iterator to the collector at the position occupied by this
  29417. RecordReader over the values in this stream paired with the key
  29418. provided (ie register a stream of values from this source matching K
  29419. with a collector).]]>
  29420. </doc>
  29421. </method>
  29422. <method name="next" return="boolean"
  29423. abstract="false" native="false" synchronized="false"
  29424. static="false" final="false" visibility="public"
  29425. deprecated="not deprecated">
  29426. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29427. <param name="value" type="U extends org.apache.hadoop.io.Writable"/>
  29428. <exception name="IOException" type="java.io.IOException"/>
  29429. <doc>
  29430. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  29431. get next key-value pair from proxied RR.]]>
  29432. </doc>
  29433. </method>
  29434. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  29435. abstract="false" native="false" synchronized="false"
  29436. static="false" final="false" visibility="public"
  29437. deprecated="not deprecated">
  29438. <doc>
  29439. <![CDATA[Request new key from proxied RR.]]>
  29440. </doc>
  29441. </method>
  29442. <method name="createValue" return="U extends org.apache.hadoop.io.Writable"
  29443. abstract="false" native="false" synchronized="false"
  29444. static="false" final="false" visibility="public"
  29445. deprecated="not deprecated">
  29446. <doc>
  29447. <![CDATA[Request new value from proxied RR.]]>
  29448. </doc>
  29449. </method>
  29450. <method name="getProgress" return="float"
  29451. abstract="false" native="false" synchronized="false"
  29452. static="false" final="false" visibility="public"
  29453. deprecated="not deprecated">
  29454. <exception name="IOException" type="java.io.IOException"/>
  29455. <doc>
  29456. <![CDATA[Request progress from proxied RR.]]>
  29457. </doc>
  29458. </method>
  29459. <method name="getPos" return="long"
  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[Request position from proxied RR.]]>
  29466. </doc>
  29467. </method>
  29468. <method name="close"
  29469. abstract="false" native="false" synchronized="false"
  29470. static="false" final="false" visibility="public"
  29471. deprecated="not deprecated">
  29472. <exception name="IOException" type="java.io.IOException"/>
  29473. <doc>
  29474. <![CDATA[Forward close request to proxied RR.]]>
  29475. </doc>
  29476. </method>
  29477. <method name="compareTo" return="int"
  29478. abstract="false" native="false" synchronized="false"
  29479. static="false" final="false" visibility="public"
  29480. deprecated="not deprecated">
  29481. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  29482. <doc>
  29483. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  29484. with that of another).]]>
  29485. </doc>
  29486. </method>
  29487. <method name="equals" return="boolean"
  29488. abstract="false" native="false" synchronized="false"
  29489. static="false" final="false" visibility="public"
  29490. deprecated="not deprecated">
  29491. <param name="other" type="java.lang.Object"/>
  29492. <doc>
  29493. <![CDATA[Return true iff compareTo(other) retn true.]]>
  29494. </doc>
  29495. </method>
  29496. <method name="hashCode" return="int"
  29497. abstract="false" native="false" synchronized="false"
  29498. static="false" final="false" visibility="public"
  29499. deprecated="not deprecated">
  29500. </method>
  29501. <doc>
  29502. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  29503. This class keeps track of the &quot;head&quot; key-value pair for the
  29504. provided RecordReader and keeps a store of values matching a key when
  29505. this source is participating in a join.]]>
  29506. </doc>
  29507. </class>
  29508. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  29509. </package>
  29510. <package name="org.apache.hadoop.mapred.lib">
  29511. <!-- start class org.apache.hadoop.mapred.lib.ChainMapper -->
  29512. <class name="ChainMapper" extends="java.lang.Object"
  29513. abstract="false"
  29514. static="false" final="false" visibility="public"
  29515. deprecated="not deprecated">
  29516. <implements name="org.apache.hadoop.mapred.Mapper"/>
  29517. <constructor name="ChainMapper"
  29518. static="false" final="false" visibility="public"
  29519. deprecated="not deprecated">
  29520. <doc>
  29521. <![CDATA[Constructor.]]>
  29522. </doc>
  29523. </constructor>
  29524. <method name="addMapper"
  29525. abstract="false" native="false" synchronized="false"
  29526. static="true" final="false" visibility="public"
  29527. deprecated="not deprecated">
  29528. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29529. <param name="klass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&lt;K1, V1, K2, V2&gt;&gt;"/>
  29530. <param name="inputKeyClass" type="java.lang.Class&lt;? extends K1&gt;"/>
  29531. <param name="inputValueClass" type="java.lang.Class&lt;? extends V1&gt;"/>
  29532. <param name="outputKeyClass" type="java.lang.Class&lt;? extends K2&gt;"/>
  29533. <param name="outputValueClass" type="java.lang.Class&lt;? extends V2&gt;"/>
  29534. <param name="byValue" type="boolean"/>
  29535. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  29536. <doc>
  29537. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  29538. <p/>
  29539. It has to be specified how key and values are passed from one element of
  29540. the chain to the next, by value or by reference. If a Mapper leverages the
  29541. assumed semantics that the key and values are not modified by the collector
  29542. 'by value' must be used. If the Mapper does not expect this semantics, as
  29543. an optimization to avoid serialization and deserialization 'by reference'
  29544. can be used.
  29545. <p/>
  29546. For the added Mapper the configuration given for it,
  29547. <code>mapperConf</code>, have precedence over the job's JobConf. This
  29548. precedence is in effect when the task is running.
  29549. <p/>
  29550. IMPORTANT: There is no need to specify the output key/value classes for the
  29551. ChainMapper, this is done by the addMapper for the last mapper in the chain
  29552. <p/>
  29553. @param job job's JobConf to add the Mapper class.
  29554. @param klass the Mapper class to add.
  29555. @param inputKeyClass mapper input key class.
  29556. @param inputValueClass mapper input value class.
  29557. @param outputKeyClass mapper output key class.
  29558. @param outputValueClass mapper output value class.
  29559. @param byValue indicates if key/values should be passed by value
  29560. to the next Mapper in the chain, if any.
  29561. @param mapperConf a JobConf with the configuration for the Mapper
  29562. class. It is recommended to use a JobConf without default values using the
  29563. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  29564. </doc>
  29565. </method>
  29566. <method name="configure"
  29567. abstract="false" native="false" synchronized="false"
  29568. static="false" final="false" visibility="public"
  29569. deprecated="not deprecated">
  29570. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29571. <doc>
  29572. <![CDATA[Configures the ChainMapper and all the Mappers in the chain.
  29573. <p/>
  29574. If this method is overriden <code>super.configure(...)</code> should be
  29575. invoked at the beginning of the overwriter method.]]>
  29576. </doc>
  29577. </method>
  29578. <method name="map"
  29579. abstract="false" native="false" synchronized="false"
  29580. static="false" final="false" visibility="public"
  29581. deprecated="not deprecated">
  29582. <param name="key" type="java.lang.Object"/>
  29583. <param name="value" type="java.lang.Object"/>
  29584. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  29585. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29586. <exception name="IOException" type="java.io.IOException"/>
  29587. <doc>
  29588. <![CDATA[Chains the <code>map(...)</code> methods of the Mappers in the chain.]]>
  29589. </doc>
  29590. </method>
  29591. <method name="close"
  29592. abstract="false" native="false" synchronized="false"
  29593. static="false" final="false" visibility="public"
  29594. deprecated="not deprecated">
  29595. <exception name="IOException" type="java.io.IOException"/>
  29596. <doc>
  29597. <![CDATA[Closes the ChainMapper and all the Mappers in the chain.
  29598. <p/>
  29599. If this method is overriden <code>super.close()</code> should be
  29600. invoked at the end of the overwriter method.]]>
  29601. </doc>
  29602. </method>
  29603. <doc>
  29604. <![CDATA[The ChainMapper class allows to use multiple Mapper classes within a single
  29605. Map task.
  29606. <p/>
  29607. The Mapper classes are invoked in a chained (or piped) fashion, the output of
  29608. the first becomes the input of the second, and so on until the last Mapper,
  29609. the output of the last Mapper will be written to the task's output.
  29610. <p/>
  29611. The key functionality of this feature is that the Mappers in the chain do not
  29612. need to be aware that they are executed in a chain. This enables having
  29613. reusable specialized Mappers that can be combined to perform composite
  29614. operations within a single task.
  29615. <p/>
  29616. Special care has to be taken when creating chains that the key/values output
  29617. by a Mapper are valid for the following Mapper in the chain. It is assumed
  29618. all Mappers and the Reduce in the chain use maching output and input key and
  29619. value classes as no conversion is done by the chaining code.
  29620. <p/>
  29621. Using the ChainMapper and the ChainReducer classes is possible to compose
  29622. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  29623. immediate benefit of this pattern is a dramatic reduction in disk IO.
  29624. <p/>
  29625. IMPORTANT: There is no need to specify the output key/value classes for the
  29626. ChainMapper, this is done by the addMapper for the last mapper in the chain.
  29627. <p/>
  29628. ChainMapper usage pattern:
  29629. <p/>
  29630. <pre>
  29631. ...
  29632. conf.setJobName("chain");
  29633. conf.setInputFormat(TextInputFormat.class);
  29634. conf.setOutputFormat(TextOutputFormat.class);
  29635. <p/>
  29636. JobConf mapAConf = new JobConf(false);
  29637. ...
  29638. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  29639. Text.class, Text.class, true, mapAConf);
  29640. <p/>
  29641. JobConf mapBConf = new JobConf(false);
  29642. ...
  29643. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  29644. LongWritable.class, Text.class, false, mapBConf);
  29645. <p/>
  29646. JobConf reduceConf = new JobConf(false);
  29647. ...
  29648. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  29649. Text.class, Text.class, true, reduceConf);
  29650. <p/>
  29651. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  29652. LongWritable.class, Text.class, false, null);
  29653. <p/>
  29654. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  29655. LongWritable.class, LongWritable.class, true, null);
  29656. <p/>
  29657. FileInputFormat.setInputPaths(conf, inDir);
  29658. FileOutputFormat.setOutputPath(conf, outDir);
  29659. ...
  29660. <p/>
  29661. JobClient jc = new JobClient(conf);
  29662. RunningJob job = jc.submitJob(conf);
  29663. ...
  29664. </pre>]]>
  29665. </doc>
  29666. </class>
  29667. <!-- end class org.apache.hadoop.mapred.lib.ChainMapper -->
  29668. <!-- start class org.apache.hadoop.mapred.lib.ChainReducer -->
  29669. <class name="ChainReducer" extends="java.lang.Object"
  29670. abstract="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <implements name="org.apache.hadoop.mapred.Reducer"/>
  29674. <constructor name="ChainReducer"
  29675. static="false" final="false" visibility="public"
  29676. deprecated="not deprecated">
  29677. <doc>
  29678. <![CDATA[Constructor.]]>
  29679. </doc>
  29680. </constructor>
  29681. <method name="setReducer"
  29682. abstract="false" native="false" synchronized="false"
  29683. static="true" final="false" visibility="public"
  29684. deprecated="not deprecated">
  29685. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29686. <param name="klass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&lt;K1, V1, K2, V2&gt;&gt;"/>
  29687. <param name="inputKeyClass" type="java.lang.Class&lt;? extends K1&gt;"/>
  29688. <param name="inputValueClass" type="java.lang.Class&lt;? extends V1&gt;"/>
  29689. <param name="outputKeyClass" type="java.lang.Class&lt;? extends K2&gt;"/>
  29690. <param name="outputValueClass" type="java.lang.Class&lt;? extends V2&gt;"/>
  29691. <param name="byValue" type="boolean"/>
  29692. <param name="reducerConf" type="org.apache.hadoop.mapred.JobConf"/>
  29693. <doc>
  29694. <![CDATA[Sets the Reducer class to the chain job's JobConf.
  29695. <p/>
  29696. It has to be specified how key and values are passed from one element of
  29697. the chain to the next, by value or by reference. If a Reducer leverages the
  29698. assumed semantics that the key and values are not modified by the collector
  29699. 'by value' must be used. If the Reducer does not expect this semantics, as
  29700. an optimization to avoid serialization and deserialization 'by reference'
  29701. can be used.
  29702. <p/>
  29703. For the added Reducer the configuration given for it,
  29704. <code>reducerConf</code>, have precedence over the job's JobConf. This
  29705. precedence is in effect when the task is running.
  29706. <p/>
  29707. IMPORTANT: There is no need to specify the output key/value classes for the
  29708. ChainReducer, this is done by the setReducer or the addMapper for the last
  29709. element in the chain.
  29710. @param job job's JobConf to add the Reducer class.
  29711. @param klass the Reducer class to add.
  29712. @param inputKeyClass reducer input key class.
  29713. @param inputValueClass reducer input value class.
  29714. @param outputKeyClass reducer output key class.
  29715. @param outputValueClass reducer output value class.
  29716. @param byValue indicates if key/values should be passed by value
  29717. to the next Mapper in the chain, if any.
  29718. @param reducerConf a JobConf with the configuration for the Reducer
  29719. class. It is recommended to use a JobConf without default values using the
  29720. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  29721. </doc>
  29722. </method>
  29723. <method name="addMapper"
  29724. abstract="false" native="false" synchronized="false"
  29725. static="true" final="false" visibility="public"
  29726. deprecated="not deprecated">
  29727. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29728. <param name="klass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&lt;K1, V1, K2, V2&gt;&gt;"/>
  29729. <param name="inputKeyClass" type="java.lang.Class&lt;? extends K1&gt;"/>
  29730. <param name="inputValueClass" type="java.lang.Class&lt;? extends V1&gt;"/>
  29731. <param name="outputKeyClass" type="java.lang.Class&lt;? extends K2&gt;"/>
  29732. <param name="outputValueClass" type="java.lang.Class&lt;? extends V2&gt;"/>
  29733. <param name="byValue" type="boolean"/>
  29734. <param name="mapperConf" type="org.apache.hadoop.mapred.JobConf"/>
  29735. <doc>
  29736. <![CDATA[Adds a Mapper class to the chain job's JobConf.
  29737. <p/>
  29738. It has to be specified how key and values are passed from one element of
  29739. the chain to the next, by value or by reference. If a Mapper leverages the
  29740. assumed semantics that the key and values are not modified by the collector
  29741. 'by value' must be used. If the Mapper does not expect this semantics, as
  29742. an optimization to avoid serialization and deserialization 'by reference'
  29743. can be used.
  29744. <p/>
  29745. For the added Mapper the configuration given for it,
  29746. <code>mapperConf</code>, have precedence over the job's JobConf. This
  29747. precedence is in effect when the task is running.
  29748. <p/>
  29749. IMPORTANT: There is no need to specify the output key/value classes for the
  29750. ChainMapper, this is done by the addMapper for the last mapper in the chain
  29751. .
  29752. @param job chain job's JobConf to add the Mapper class.
  29753. @param klass the Mapper class to add.
  29754. @param inputKeyClass mapper input key class.
  29755. @param inputValueClass mapper input value class.
  29756. @param outputKeyClass mapper output key class.
  29757. @param outputValueClass mapper output value class.
  29758. @param byValue indicates if key/values should be passed by value
  29759. to the next Mapper in the chain, if any.
  29760. @param mapperConf a JobConf with the configuration for the Mapper
  29761. class. It is recommended to use a JobConf without default values using the
  29762. <code>JobConf(boolean loadDefaults)</code> constructor with FALSE.]]>
  29763. </doc>
  29764. </method>
  29765. <method name="configure"
  29766. abstract="false" native="false" synchronized="false"
  29767. static="false" final="false" visibility="public"
  29768. deprecated="not deprecated">
  29769. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29770. <doc>
  29771. <![CDATA[Configures the ChainReducer, the Reducer and all the Mappers in the chain.
  29772. <p/>
  29773. If this method is overriden <code>super.configure(...)</code> should be
  29774. invoked at the beginning of the overwriter method.]]>
  29775. </doc>
  29776. </method>
  29777. <method name="reduce"
  29778. abstract="false" native="false" synchronized="false"
  29779. static="false" final="false" visibility="public"
  29780. deprecated="not deprecated">
  29781. <param name="key" type="java.lang.Object"/>
  29782. <param name="values" type="java.util.Iterator"/>
  29783. <param name="output" type="org.apache.hadoop.mapred.OutputCollector"/>
  29784. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29785. <exception name="IOException" type="java.io.IOException"/>
  29786. <doc>
  29787. <![CDATA[Chains the <code>reduce(...)</code> method of the Reducer with the
  29788. <code>map(...) </code> methods of the Mappers in the chain.]]>
  29789. </doc>
  29790. </method>
  29791. <method name="close"
  29792. abstract="false" native="false" synchronized="false"
  29793. static="false" final="false" visibility="public"
  29794. deprecated="not deprecated">
  29795. <exception name="IOException" type="java.io.IOException"/>
  29796. <doc>
  29797. <![CDATA[Closes the ChainReducer, the Reducer and all the Mappers in the chain.
  29798. <p/>
  29799. If this method is overriden <code>super.close()</code> should be
  29800. invoked at the end of the overwriter method.]]>
  29801. </doc>
  29802. </method>
  29803. <doc>
  29804. <![CDATA[The ChainReducer class allows to chain multiple Mapper classes after a
  29805. Reducer within the Reducer task.
  29806. <p/>
  29807. For each record output by the Reducer, the Mapper classes are invoked in a
  29808. chained (or piped) fashion, the output of the first becomes the input of the
  29809. second, and so on until the last Mapper, the output of the last Mapper will
  29810. be written to the task's output.
  29811. <p/>
  29812. The key functionality of this feature is that the Mappers in the chain do not
  29813. need to be aware that they are executed after the Reducer or in a chain.
  29814. This enables having reusable specialized Mappers that can be combined to
  29815. perform composite operations within a single task.
  29816. <p/>
  29817. Special care has to be taken when creating chains that the key/values output
  29818. by a Mapper are valid for the following Mapper in the chain. It is assumed
  29819. all Mappers and the Reduce in the chain use maching output and input key and
  29820. value classes as no conversion is done by the chaining code.
  29821. <p/>
  29822. Using the ChainMapper and the ChainReducer classes is possible to compose
  29823. Map/Reduce jobs that look like <code>[MAP+ / REDUCE MAP*]</code>. And
  29824. immediate benefit of this pattern is a dramatic reduction in disk IO.
  29825. <p/>
  29826. IMPORTANT: There is no need to specify the output key/value classes for the
  29827. ChainReducer, this is done by the setReducer or the addMapper for the last
  29828. element in the chain.
  29829. <p/>
  29830. ChainReducer usage pattern:
  29831. <p/>
  29832. <pre>
  29833. ...
  29834. conf.setJobName("chain");
  29835. conf.setInputFormat(TextInputFormat.class);
  29836. conf.setOutputFormat(TextOutputFormat.class);
  29837. <p/>
  29838. JobConf mapAConf = new JobConf(false);
  29839. ...
  29840. ChainMapper.addMapper(conf, AMap.class, LongWritable.class, Text.class,
  29841. Text.class, Text.class, true, mapAConf);
  29842. <p/>
  29843. JobConf mapBConf = new JobConf(false);
  29844. ...
  29845. ChainMapper.addMapper(conf, BMap.class, Text.class, Text.class,
  29846. LongWritable.class, Text.class, false, mapBConf);
  29847. <p/>
  29848. JobConf reduceConf = new JobConf(false);
  29849. ...
  29850. ChainReducer.setReducer(conf, XReduce.class, LongWritable.class, Text.class,
  29851. Text.class, Text.class, true, reduceConf);
  29852. <p/>
  29853. ChainReducer.addMapper(conf, CMap.class, Text.class, Text.class,
  29854. LongWritable.class, Text.class, false, null);
  29855. <p/>
  29856. ChainReducer.addMapper(conf, DMap.class, LongWritable.class, Text.class,
  29857. LongWritable.class, LongWritable.class, true, null);
  29858. <p/>
  29859. FileInputFormat.setInputPaths(conf, inDir);
  29860. FileOutputFormat.setOutputPath(conf, outDir);
  29861. ...
  29862. <p/>
  29863. JobClient jc = new JobClient(conf);
  29864. RunningJob job = jc.submitJob(conf);
  29865. ...
  29866. </pre>]]>
  29867. </doc>
  29868. </class>
  29869. <!-- end class org.apache.hadoop.mapred.lib.ChainReducer -->
  29870. <!-- start class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  29871. <class name="DelegatingInputFormat" extends="java.lang.Object"
  29872. abstract="false"
  29873. static="false" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  29876. <constructor name="DelegatingInputFormat"
  29877. static="false" final="false" visibility="public"
  29878. deprecated="not deprecated">
  29879. </constructor>
  29880. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  29881. abstract="false" native="false" synchronized="false"
  29882. static="false" final="false" visibility="public"
  29883. deprecated="not deprecated">
  29884. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  29885. <param name="numSplits" type="int"/>
  29886. <exception name="IOException" type="java.io.IOException"/>
  29887. </method>
  29888. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  29889. abstract="false" native="false" synchronized="false"
  29890. static="false" final="false" visibility="public"
  29891. deprecated="not deprecated">
  29892. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  29893. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  29894. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29895. <exception name="IOException" type="java.io.IOException"/>
  29896. </method>
  29897. <doc>
  29898. <![CDATA[An {@link InputFormat} that delegates behaviour of paths to multiple other
  29899. InputFormats.
  29900. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  29901. </doc>
  29902. </class>
  29903. <!-- end class org.apache.hadoop.mapred.lib.DelegatingInputFormat -->
  29904. <!-- start class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  29905. <class name="DelegatingMapper" extends="java.lang.Object"
  29906. abstract="false"
  29907. static="false" final="false" visibility="public"
  29908. deprecated="not deprecated">
  29909. <implements name="org.apache.hadoop.mapred.Mapper&lt;K1, V1, K2, V2&gt;"/>
  29910. <constructor name="DelegatingMapper"
  29911. static="false" final="false" visibility="public"
  29912. deprecated="not deprecated">
  29913. </constructor>
  29914. <method name="map"
  29915. abstract="false" native="false" synchronized="false"
  29916. static="false" final="false" visibility="public"
  29917. deprecated="not deprecated">
  29918. <param name="key" type="K1"/>
  29919. <param name="value" type="V1"/>
  29920. <param name="outputCollector" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  29921. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29922. <exception name="IOException" type="java.io.IOException"/>
  29923. </method>
  29924. <method name="configure"
  29925. abstract="false" native="false" synchronized="false"
  29926. static="false" final="false" visibility="public"
  29927. deprecated="not deprecated">
  29928. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  29929. </method>
  29930. <method name="close"
  29931. abstract="false" native="false" synchronized="false"
  29932. static="false" final="false" visibility="public"
  29933. deprecated="not deprecated">
  29934. <exception name="IOException" type="java.io.IOException"/>
  29935. </method>
  29936. <doc>
  29937. <![CDATA[An {@link Mapper} that delegates behaviour of paths to multiple other
  29938. mappers.
  29939. @see MultipleInputs#addInputPath(JobConf, Path, Class, Class)]]>
  29940. </doc>
  29941. </class>
  29942. <!-- end class org.apache.hadoop.mapred.lib.DelegatingMapper -->
  29943. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  29944. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  29945. abstract="false"
  29946. static="false" final="false" visibility="public"
  29947. deprecated="not deprecated">
  29948. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  29949. <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;"/>
  29950. <constructor name="FieldSelectionMapReduce"
  29951. static="false" final="false" visibility="public"
  29952. deprecated="not deprecated">
  29953. </constructor>
  29954. <method name="map"
  29955. abstract="false" native="false" synchronized="false"
  29956. static="false" final="false" visibility="public"
  29957. deprecated="not deprecated">
  29958. <param name="key" type="K"/>
  29959. <param name="val" type="V"/>
  29960. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  29961. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29962. <exception name="IOException" type="java.io.IOException"/>
  29963. <doc>
  29964. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  29965. </doc>
  29966. </method>
  29967. <method name="configure"
  29968. abstract="false" native="false" synchronized="false"
  29969. static="false" final="false" visibility="public"
  29970. deprecated="not deprecated">
  29971. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29972. </method>
  29973. <method name="close"
  29974. abstract="false" native="false" synchronized="false"
  29975. static="false" final="false" visibility="public"
  29976. deprecated="not deprecated">
  29977. <exception name="IOException" type="java.io.IOException"/>
  29978. </method>
  29979. <method name="reduce"
  29980. abstract="false" native="false" synchronized="false"
  29981. static="false" final="false" visibility="public"
  29982. deprecated="not deprecated">
  29983. <param name="key" type="org.apache.hadoop.io.Text"/>
  29984. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  29985. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  29986. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29987. <exception name="IOException" type="java.io.IOException"/>
  29988. </method>
  29989. <field name="LOG" type="org.apache.commons.logging.Log"
  29990. transient="false" volatile="false"
  29991. static="true" final="true" visibility="public"
  29992. deprecated="not deprecated">
  29993. </field>
  29994. <doc>
  29995. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  29996. field selections in a manner similar to unix cut. The input data is treated
  29997. as fields separated by a user specified separator (the default value is
  29998. "\t"). The user can specify a list of fields that form the map output keys,
  29999. and a list of fields that form the map output values. If the inputformat is
  30000. TextInputFormat, the mapper will ignore the key to the map function. and the
  30001. fields are from the value only. Otherwise, the fields are the union of those
  30002. from the key and those from the value.
  30003. The field separator is under attribute "mapred.data.field.separator"
  30004. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  30005. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  30006. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  30007. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  30008. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  30009. the fields starting from field 3. The open range field spec applies value fields only.
  30010. They have no effect on the key fields.
  30011. 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,
  30012. and use fields 6,5,1,2,3,7 and above for values.
  30013. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  30014. The reducer extracts output key/value pairs in a similar manner, except that
  30015. the key is never ignored.]]>
  30016. </doc>
  30017. </class>
  30018. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  30019. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  30020. <class name="HashPartitioner" extends="java.lang.Object"
  30021. abstract="false"
  30022. static="false" final="false" visibility="public"
  30023. deprecated="not deprecated">
  30024. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  30025. <constructor name="HashPartitioner"
  30026. static="false" final="false" visibility="public"
  30027. deprecated="not deprecated">
  30028. </constructor>
  30029. <method name="configure"
  30030. abstract="false" native="false" synchronized="false"
  30031. static="false" final="false" visibility="public"
  30032. deprecated="not deprecated">
  30033. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30034. </method>
  30035. <method name="getPartition" return="int"
  30036. abstract="false" native="false" synchronized="false"
  30037. static="false" final="false" visibility="public"
  30038. deprecated="not deprecated">
  30039. <param name="key" type="K2"/>
  30040. <param name="value" type="V2"/>
  30041. <param name="numReduceTasks" type="int"/>
  30042. <doc>
  30043. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  30044. </doc>
  30045. </method>
  30046. <doc>
  30047. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  30048. </doc>
  30049. </class>
  30050. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  30051. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  30052. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  30053. abstract="false"
  30054. static="false" final="false" visibility="public"
  30055. deprecated="not deprecated">
  30056. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, K, V&gt;"/>
  30057. <constructor name="IdentityMapper"
  30058. static="false" final="false" visibility="public"
  30059. deprecated="not deprecated">
  30060. </constructor>
  30061. <method name="map"
  30062. abstract="false" native="false" synchronized="false"
  30063. static="false" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. <param name="key" type="K"/>
  30066. <param name="val" type="V"/>
  30067. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  30068. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30069. <exception name="IOException" type="java.io.IOException"/>
  30070. <doc>
  30071. <![CDATA[The identify function. Input key/value pair is written directly to
  30072. output.]]>
  30073. </doc>
  30074. </method>
  30075. <doc>
  30076. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  30077. </doc>
  30078. </class>
  30079. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  30080. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  30081. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  30082. abstract="false"
  30083. static="false" final="false" visibility="public"
  30084. deprecated="not deprecated">
  30085. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, V, K, V&gt;"/>
  30086. <constructor name="IdentityReducer"
  30087. static="false" final="false" visibility="public"
  30088. deprecated="not deprecated">
  30089. </constructor>
  30090. <method name="reduce"
  30091. abstract="false" native="false" synchronized="false"
  30092. static="false" final="false" visibility="public"
  30093. deprecated="not deprecated">
  30094. <param name="key" type="K"/>
  30095. <param name="values" type="java.util.Iterator&lt;V&gt;"/>
  30096. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  30097. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30098. <exception name="IOException" type="java.io.IOException"/>
  30099. <doc>
  30100. <![CDATA[Writes all keys and values directly to output.]]>
  30101. </doc>
  30102. </method>
  30103. <doc>
  30104. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  30105. </doc>
  30106. </class>
  30107. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  30108. <!-- start class org.apache.hadoop.mapred.lib.InputSampler -->
  30109. <class name="InputSampler" extends="java.lang.Object"
  30110. abstract="false"
  30111. static="false" final="false" visibility="public"
  30112. deprecated="not deprecated">
  30113. <implements name="org.apache.hadoop.util.Tool"/>
  30114. <constructor name="InputSampler" type="org.apache.hadoop.mapred.JobConf"
  30115. static="false" final="false" visibility="public"
  30116. deprecated="not deprecated">
  30117. </constructor>
  30118. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  30119. abstract="false" native="false" synchronized="false"
  30120. static="false" final="false" visibility="public"
  30121. deprecated="not deprecated">
  30122. </method>
  30123. <method name="setConf"
  30124. abstract="false" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  30128. </method>
  30129. <method name="writePartitionFile"
  30130. abstract="false" native="false" synchronized="false"
  30131. static="true" final="false" visibility="public"
  30132. deprecated="not deprecated">
  30133. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30134. <param name="sampler" type="org.apache.hadoop.mapred.lib.InputSampler.Sampler&lt;K, V&gt;"/>
  30135. <exception name="IOException" type="java.io.IOException"/>
  30136. <doc>
  30137. <![CDATA[Write a partition file for the given job, using the Sampler provided.
  30138. Queries the sampler for a sample keyset, sorts by the output key
  30139. comparator, selects the keys for each rank, and writes to the destination
  30140. returned from {@link
  30141. org.apache.hadoop.mapred.lib.TotalOrderPartitioner#getPartitionFile}.]]>
  30142. </doc>
  30143. </method>
  30144. <method name="run" return="int"
  30145. abstract="false" native="false" synchronized="false"
  30146. static="false" final="false" visibility="public"
  30147. deprecated="not deprecated">
  30148. <param name="args" type="java.lang.String[]"/>
  30149. <exception name="Exception" type="java.lang.Exception"/>
  30150. <doc>
  30151. <![CDATA[Driver for InputSampler from the command line.
  30152. Configures a JobConf instance and calls {@link #writePartitionFile}.]]>
  30153. </doc>
  30154. </method>
  30155. <method name="main"
  30156. abstract="false" native="false" synchronized="false"
  30157. static="true" final="false" visibility="public"
  30158. deprecated="not deprecated">
  30159. <param name="args" type="java.lang.String[]"/>
  30160. <exception name="Exception" type="java.lang.Exception"/>
  30161. </method>
  30162. <doc>
  30163. <![CDATA[Utility for collecting samples and writing a partition file for
  30164. {@link org.apache.hadoop.mapred.lib.TotalOrderPartitioner}.]]>
  30165. </doc>
  30166. </class>
  30167. <!-- end class org.apache.hadoop.mapred.lib.InputSampler -->
  30168. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  30169. <class name="InputSampler.IntervalSampler" extends="java.lang.Object"
  30170. abstract="false"
  30171. static="true" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler&lt;K, V&gt;"/>
  30174. <constructor name="InputSampler.IntervalSampler" type="double"
  30175. static="false" final="false" visibility="public"
  30176. deprecated="not deprecated">
  30177. <doc>
  30178. <![CDATA[Create a new IntervalSampler sampling <em>all</em> splits.
  30179. @param freq The frequency with which records will be emitted.]]>
  30180. </doc>
  30181. </constructor>
  30182. <constructor name="InputSampler.IntervalSampler" type="double, int"
  30183. static="false" final="false" visibility="public"
  30184. deprecated="not deprecated">
  30185. <doc>
  30186. <![CDATA[Create a new IntervalSampler.
  30187. @param freq The frequency with which records will be emitted.
  30188. @param maxSplitsSampled The maximum number of splits to examine.
  30189. @see #getSample]]>
  30190. </doc>
  30191. </constructor>
  30192. <method name="getSample" return="K[]"
  30193. abstract="false" native="false" synchronized="false"
  30194. static="false" final="false" visibility="public"
  30195. deprecated="not deprecated">
  30196. <param name="inf" type="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  30197. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30198. <exception name="IOException" type="java.io.IOException"/>
  30199. <doc>
  30200. <![CDATA[For each split sampled, emit when the ratio of the number of records
  30201. retained to the total record count is less than the specified
  30202. frequency.]]>
  30203. </doc>
  30204. </method>
  30205. <doc>
  30206. <![CDATA[Sample from s splits at regular intervals.
  30207. Useful for sorted data.]]>
  30208. </doc>
  30209. </class>
  30210. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.IntervalSampler -->
  30211. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  30212. <class name="InputSampler.RandomSampler" extends="java.lang.Object"
  30213. abstract="false"
  30214. static="true" final="false" visibility="public"
  30215. deprecated="not deprecated">
  30216. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler&lt;K, V&gt;"/>
  30217. <constructor name="InputSampler.RandomSampler" type="double, int"
  30218. static="false" final="false" visibility="public"
  30219. deprecated="not deprecated">
  30220. <doc>
  30221. <![CDATA[Create a new RandomSampler sampling <em>all</em> splits.
  30222. This will read every split at the client, which is very expensive.
  30223. @param freq Probability with which a key will be chosen.
  30224. @param numSamples Total number of samples to obtain from all selected
  30225. splits.]]>
  30226. </doc>
  30227. </constructor>
  30228. <constructor name="InputSampler.RandomSampler" type="double, int, int"
  30229. static="false" final="false" visibility="public"
  30230. deprecated="not deprecated">
  30231. <doc>
  30232. <![CDATA[Create a new RandomSampler.
  30233. @param freq Probability with which a key will be chosen.
  30234. @param numSamples Total number of samples to obtain from all selected
  30235. splits.
  30236. @param maxSplitsSampled The maximum number of splits to examine.]]>
  30237. </doc>
  30238. </constructor>
  30239. <method name="getSample" return="K[]"
  30240. abstract="false" native="false" synchronized="false"
  30241. static="false" final="false" visibility="public"
  30242. deprecated="not deprecated">
  30243. <param name="inf" type="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  30244. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30245. <exception name="IOException" type="java.io.IOException"/>
  30246. <doc>
  30247. <![CDATA[Randomize the split order, then take the specified number of keys from
  30248. each split sampled, where each key is selected with the specified
  30249. probability and possibly replaced by a subsequently selected key when
  30250. the quota of keys from that split is satisfied.]]>
  30251. </doc>
  30252. </method>
  30253. <doc>
  30254. <![CDATA[Sample from random points in the input.
  30255. General-purpose sampler. Takes numSamples / maxSplitsSampled inputs from
  30256. each split.]]>
  30257. </doc>
  30258. </class>
  30259. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.RandomSampler -->
  30260. <!-- start interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  30261. <interface name="InputSampler.Sampler" abstract="true"
  30262. static="true" final="false" visibility="public"
  30263. deprecated="not deprecated">
  30264. <method name="getSample" return="K[]"
  30265. abstract="false" native="false" synchronized="false"
  30266. static="false" final="false" visibility="public"
  30267. deprecated="not deprecated">
  30268. <param name="inf" type="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  30269. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30270. <exception name="IOException" type="java.io.IOException"/>
  30271. <doc>
  30272. <![CDATA[For a given job, collect and return a subset of the keys from the
  30273. input data.]]>
  30274. </doc>
  30275. </method>
  30276. <doc>
  30277. <![CDATA[Interface to sample using an {@link org.apache.hadoop.mapred.InputFormat}.]]>
  30278. </doc>
  30279. </interface>
  30280. <!-- end interface org.apache.hadoop.mapred.lib.InputSampler.Sampler -->
  30281. <!-- start class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  30282. <class name="InputSampler.SplitSampler" extends="java.lang.Object"
  30283. abstract="false"
  30284. static="true" final="false" visibility="public"
  30285. deprecated="not deprecated">
  30286. <implements name="org.apache.hadoop.mapred.lib.InputSampler.Sampler&lt;K, V&gt;"/>
  30287. <constructor name="InputSampler.SplitSampler" type="int"
  30288. static="false" final="false" visibility="public"
  30289. deprecated="not deprecated">
  30290. <doc>
  30291. <![CDATA[Create a SplitSampler sampling <em>all</em> splits.
  30292. Takes the first numSamples / numSplits records from each split.
  30293. @param numSamples Total number of samples to obtain from all selected
  30294. splits.]]>
  30295. </doc>
  30296. </constructor>
  30297. <constructor name="InputSampler.SplitSampler" type="int, int"
  30298. static="false" final="false" visibility="public"
  30299. deprecated="not deprecated">
  30300. <doc>
  30301. <![CDATA[Create a new SplitSampler.
  30302. @param numSamples Total number of samples to obtain from all selected
  30303. splits.
  30304. @param maxSplitsSampled The maximum number of splits to examine.]]>
  30305. </doc>
  30306. </constructor>
  30307. <method name="getSample" return="K[]"
  30308. abstract="false" native="false" synchronized="false"
  30309. static="false" final="false" visibility="public"
  30310. deprecated="not deprecated">
  30311. <param name="inf" type="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  30312. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30313. <exception name="IOException" type="java.io.IOException"/>
  30314. <doc>
  30315. <![CDATA[From each split sampled, take the first numSamples / numSplits records.]]>
  30316. </doc>
  30317. </method>
  30318. <doc>
  30319. <![CDATA[Samples the first n records from s splits.
  30320. Inexpensive way to sample random data.]]>
  30321. </doc>
  30322. </class>
  30323. <!-- end class org.apache.hadoop.mapred.lib.InputSampler.SplitSampler -->
  30324. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  30325. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  30326. abstract="false"
  30327. static="false" final="false" visibility="public"
  30328. deprecated="not deprecated">
  30329. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, V, K&gt;"/>
  30330. <constructor name="InverseMapper"
  30331. static="false" final="false" visibility="public"
  30332. deprecated="not deprecated">
  30333. </constructor>
  30334. <method name="map"
  30335. abstract="false" native="false" synchronized="false"
  30336. static="false" final="false" visibility="public"
  30337. deprecated="not deprecated">
  30338. <param name="key" type="K"/>
  30339. <param name="value" type="V"/>
  30340. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;V, K&gt;"/>
  30341. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30342. <exception name="IOException" type="java.io.IOException"/>
  30343. <doc>
  30344. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  30345. </doc>
  30346. </method>
  30347. <doc>
  30348. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  30349. </doc>
  30350. </class>
  30351. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  30352. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  30353. <class name="KeyFieldBasedComparator" extends="org.apache.hadoop.io.WritableComparator"
  30354. abstract="false"
  30355. static="false" final="false" visibility="public"
  30356. deprecated="not deprecated">
  30357. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  30358. <constructor name="KeyFieldBasedComparator"
  30359. static="false" final="false" visibility="public"
  30360. deprecated="not deprecated">
  30361. </constructor>
  30362. <method name="configure"
  30363. abstract="false" native="false" synchronized="false"
  30364. static="false" final="false" visibility="public"
  30365. deprecated="not deprecated">
  30366. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30367. </method>
  30368. <method name="compare" return="int"
  30369. abstract="false" native="false" synchronized="false"
  30370. static="false" final="false" visibility="public"
  30371. deprecated="not deprecated">
  30372. <param name="b1" type="byte[]"/>
  30373. <param name="s1" type="int"/>
  30374. <param name="l1" type="int"/>
  30375. <param name="b2" type="byte[]"/>
  30376. <param name="s2" type="int"/>
  30377. <param name="l2" type="int"/>
  30378. </method>
  30379. <doc>
  30380. <![CDATA[This comparator implementation provides a subset of the features provided
  30381. by the Unix/GNU Sort. In particular, the supported features are:
  30382. -n, (Sort numerically)
  30383. -r, (Reverse the result of comparison)
  30384. -k pos1[,pos2], where pos is of the form f[.c][opts], where f is the number
  30385. of the field to use, and c is the number of the first character from the
  30386. beginning of the field. Fields and character posns are numbered starting
  30387. with 1; a character position of zero in pos2 indicates the field's last
  30388. character. If '.c' is omitted from pos1, it defaults to 1 (the beginning
  30389. of the field); if omitted from pos2, it defaults to 0 (the end of the
  30390. field). opts are ordering options (any of 'nr' as described above).
  30391. We assume that the fields in the key are separated by
  30392. map.output.key.field.separator.]]>
  30393. </doc>
  30394. </class>
  30395. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedComparator -->
  30396. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  30397. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  30398. abstract="false"
  30399. static="false" final="false" visibility="public"
  30400. deprecated="not deprecated">
  30401. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  30402. <constructor name="KeyFieldBasedPartitioner"
  30403. static="false" final="false" visibility="public"
  30404. deprecated="not deprecated">
  30405. </constructor>
  30406. <method name="configure"
  30407. abstract="false" native="false" synchronized="false"
  30408. static="false" final="false" visibility="public"
  30409. deprecated="not deprecated">
  30410. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30411. </method>
  30412. <method name="getPartition" return="int"
  30413. abstract="false" native="false" synchronized="false"
  30414. static="false" final="false" visibility="public"
  30415. deprecated="not deprecated">
  30416. <param name="key" type="K2"/>
  30417. <param name="value" type="V2"/>
  30418. <param name="numReduceTasks" type="int"/>
  30419. </method>
  30420. <method name="hashCode" return="int"
  30421. abstract="false" native="false" synchronized="false"
  30422. static="false" final="false" visibility="protected"
  30423. deprecated="not deprecated">
  30424. <param name="b" type="byte[]"/>
  30425. <param name="start" type="int"/>
  30426. <param name="end" type="int"/>
  30427. <param name="currentHash" type="int"/>
  30428. </method>
  30429. <doc>
  30430. <![CDATA[Defines a way to partition keys based on certain key fields (also see
  30431. {@link KeyFieldBasedComparator}.
  30432. The key specification supported is of the form -k pos1[,pos2], where,
  30433. pos is of the form f[.c][opts], where f is the number
  30434. of the key field to use, and c is the number of the first character from
  30435. the beginning of the field. Fields and character posns are numbered
  30436. starting with 1; a character position of zero in pos2 indicates the
  30437. field's last character. If '.c' is omitted from pos1, it defaults to 1
  30438. (the beginning of the field); if omitted from pos2, it defaults to 0
  30439. (the end of the field).]]>
  30440. </doc>
  30441. </class>
  30442. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  30443. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  30444. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  30445. abstract="false"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, org.apache.hadoop.io.LongWritable, K, org.apache.hadoop.io.LongWritable&gt;"/>
  30449. <constructor name="LongSumReducer"
  30450. static="false" final="false" visibility="public"
  30451. deprecated="not deprecated">
  30452. </constructor>
  30453. <method name="reduce"
  30454. abstract="false" native="false" synchronized="false"
  30455. static="false" final="false" visibility="public"
  30456. deprecated="not deprecated">
  30457. <param name="key" type="K"/>
  30458. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.LongWritable&gt;"/>
  30459. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, org.apache.hadoop.io.LongWritable&gt;"/>
  30460. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30461. <exception name="IOException" type="java.io.IOException"/>
  30462. </method>
  30463. <doc>
  30464. <![CDATA[A {@link Reducer} that sums long values.]]>
  30465. </doc>
  30466. </class>
  30467. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  30468. <!-- start class org.apache.hadoop.mapred.lib.MultipleInputs -->
  30469. <class name="MultipleInputs" extends="java.lang.Object"
  30470. abstract="false"
  30471. static="false" final="false" visibility="public"
  30472. deprecated="not deprecated">
  30473. <constructor name="MultipleInputs"
  30474. static="false" final="false" visibility="public"
  30475. deprecated="not deprecated">
  30476. </constructor>
  30477. <method name="addInputPath"
  30478. abstract="false" native="false" synchronized="false"
  30479. static="true" final="false" visibility="public"
  30480. deprecated="not deprecated">
  30481. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30482. <param name="path" type="org.apache.hadoop.fs.Path"/>
  30483. <param name="inputFormatClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  30484. <doc>
  30485. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} to the list of
  30486. inputs for the map-reduce job.
  30487. @param conf The configuration of the job
  30488. @param path {@link Path} to be added to the list of inputs for the job
  30489. @param inputFormatClass {@link InputFormat} class to use for this path]]>
  30490. </doc>
  30491. </method>
  30492. <method name="addInputPath"
  30493. abstract="false" native="false" synchronized="false"
  30494. static="true" final="false" visibility="public"
  30495. deprecated="not deprecated">
  30496. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30497. <param name="path" type="org.apache.hadoop.fs.Path"/>
  30498. <param name="inputFormatClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  30499. <param name="mapperClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"/>
  30500. <doc>
  30501. <![CDATA[Add a {@link Path} with a custom {@link InputFormat} and
  30502. {@link Mapper} to the list of inputs for the map-reduce job.
  30503. @param conf The configuration of the job
  30504. @param path {@link Path} to be added to the list of inputs for the job
  30505. @param inputFormatClass {@link InputFormat} class to use for this path
  30506. @param mapperClass {@link Mapper} class to use for this path]]>
  30507. </doc>
  30508. </method>
  30509. <doc>
  30510. <![CDATA[This class supports MapReduce jobs that have multiple input paths with
  30511. a different {@link InputFormat} and {@link Mapper} for each path]]>
  30512. </doc>
  30513. </class>
  30514. <!-- end class org.apache.hadoop.mapred.lib.MultipleInputs -->
  30515. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  30516. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  30517. abstract="true"
  30518. static="false" final="false" visibility="public"
  30519. deprecated="not deprecated">
  30520. <constructor name="MultipleOutputFormat"
  30521. static="false" final="false" visibility="public"
  30522. deprecated="not deprecated">
  30523. </constructor>
  30524. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30525. abstract="false" native="false" synchronized="false"
  30526. static="false" final="false" visibility="public"
  30527. deprecated="not deprecated">
  30528. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30529. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30530. <param name="name" type="java.lang.String"/>
  30531. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30532. <exception name="IOException" type="java.io.IOException"/>
  30533. <doc>
  30534. <![CDATA[Create a composite record writer that can write key/value data to different
  30535. output files
  30536. @param fs
  30537. the file system to use
  30538. @param job
  30539. the job conf for the job
  30540. @param name
  30541. the leaf file name for the output file (such as part-00000")
  30542. @param arg3
  30543. a progressable for reporting progress.
  30544. @return a composite record writer
  30545. @throws IOException]]>
  30546. </doc>
  30547. </method>
  30548. <method name="generateLeafFileName" return="java.lang.String"
  30549. abstract="false" native="false" synchronized="false"
  30550. static="false" final="false" visibility="protected"
  30551. deprecated="not deprecated">
  30552. <param name="name" type="java.lang.String"/>
  30553. <doc>
  30554. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  30555. not change the leaf file name (such as part-00000)
  30556. @param name
  30557. the leaf file name for the output file
  30558. @return the given leaf file name]]>
  30559. </doc>
  30560. </method>
  30561. <method name="generateFileNameForKeyValue" return="java.lang.String"
  30562. abstract="false" native="false" synchronized="false"
  30563. static="false" final="false" visibility="protected"
  30564. deprecated="not deprecated">
  30565. <param name="key" type="K"/>
  30566. <param name="value" type="V"/>
  30567. <param name="name" type="java.lang.String"/>
  30568. <doc>
  30569. <![CDATA[Generate the file output file name based on the given key and the leaf file
  30570. name. The default behavior is that the file name does not depend on the
  30571. key.
  30572. @param key
  30573. the key of the output data
  30574. @param name
  30575. the leaf file name
  30576. @return generated file name]]>
  30577. </doc>
  30578. </method>
  30579. <method name="generateActualKey" return="K"
  30580. abstract="false" native="false" synchronized="false"
  30581. static="false" final="false" visibility="protected"
  30582. deprecated="not deprecated">
  30583. <param name="key" type="K"/>
  30584. <param name="value" type="V"/>
  30585. <doc>
  30586. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  30587. the actual key is equal to the given key
  30588. @param key
  30589. the key of the output data
  30590. @param value
  30591. the value of the output data
  30592. @return the actual key derived from the given key/value]]>
  30593. </doc>
  30594. </method>
  30595. <method name="generateActualValue" return="V"
  30596. abstract="false" native="false" synchronized="false"
  30597. static="false" final="false" visibility="protected"
  30598. deprecated="not deprecated">
  30599. <param name="key" type="K"/>
  30600. <param name="value" type="V"/>
  30601. <doc>
  30602. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  30603. the actual value is equal to the given value
  30604. @param key
  30605. the key of the output data
  30606. @param value
  30607. the value of the output data
  30608. @return the actual value derived from the given key/value]]>
  30609. </doc>
  30610. </method>
  30611. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  30612. abstract="false" native="false" synchronized="false"
  30613. static="false" final="false" visibility="protected"
  30614. deprecated="not deprecated">
  30615. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30616. <param name="name" type="java.lang.String"/>
  30617. <doc>
  30618. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  30619. the map input file does not exists (i.e. this is not for a map only job),
  30620. the given name is returned unchanged. If the config value for
  30621. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  30622. name is returned unchanged. Otherwise, return a file name consisting of the
  30623. N trailing legs of the input file name where N is the config value for
  30624. "num.of.trailing.legs.to.use".
  30625. @param job
  30626. the job config
  30627. @param name
  30628. the output file name
  30629. @return the outfile name based on a given anme and the input file name.]]>
  30630. </doc>
  30631. </method>
  30632. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30633. abstract="true" native="false" synchronized="false"
  30634. static="false" final="false" visibility="protected"
  30635. deprecated="not deprecated">
  30636. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30637. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30638. <param name="name" type="java.lang.String"/>
  30639. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30640. <exception name="IOException" type="java.io.IOException"/>
  30641. <doc>
  30642. <![CDATA[@param fs
  30643. the file system to use
  30644. @param job
  30645. a job conf object
  30646. @param name
  30647. the name of the file over which a record writer object will be
  30648. constructed
  30649. @param arg3
  30650. a progressable object
  30651. @return A RecordWriter object over the given file
  30652. @throws IOException]]>
  30653. </doc>
  30654. </method>
  30655. <doc>
  30656. <![CDATA[This abstract class extends the FileOutputFormat, allowing to write the
  30657. output data to different output files. There are three basic use cases for
  30658. this class.
  30659. Case one: This class is used for a map reduce job with at least one reducer.
  30660. The reducer wants to write data to different files depending on the actual
  30661. keys. It is assumed that a key (or value) encodes the actual key (value)
  30662. and the desired location for the actual key (value).
  30663. Case two: This class is used for a map only job. The job wants to use an
  30664. output file name that is either a part of the input file name of the input
  30665. data, or some derivation of it.
  30666. Case three: This class is used for a map only job. The job wants to use an
  30667. output file name that depends on both the keys and the input file name,]]>
  30668. </doc>
  30669. </class>
  30670. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  30671. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  30672. <class name="MultipleOutputs" extends="java.lang.Object"
  30673. abstract="false"
  30674. static="false" final="false" visibility="public"
  30675. deprecated="not deprecated">
  30676. <constructor name="MultipleOutputs" type="org.apache.hadoop.mapred.JobConf"
  30677. static="false" final="false" visibility="public"
  30678. deprecated="not deprecated">
  30679. <doc>
  30680. <![CDATA[Creates and initializes multiple named outputs support, it should be
  30681. instantiated in the Mapper/Reducer configure method.
  30682. @param job the job configuration object]]>
  30683. </doc>
  30684. </constructor>
  30685. <method name="getNamedOutputsList" return="java.util.List&lt;java.lang.String&gt;"
  30686. abstract="false" native="false" synchronized="false"
  30687. static="true" final="false" visibility="public"
  30688. deprecated="not deprecated">
  30689. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30690. <doc>
  30691. <![CDATA[Returns list of channel names.
  30692. @param conf job conf
  30693. @return List of channel Names]]>
  30694. </doc>
  30695. </method>
  30696. <method name="isMultiNamedOutput" return="boolean"
  30697. abstract="false" native="false" synchronized="false"
  30698. static="true" final="false" visibility="public"
  30699. deprecated="not deprecated">
  30700. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30701. <param name="namedOutput" type="java.lang.String"/>
  30702. <doc>
  30703. <![CDATA[Returns if a named output is multiple.
  30704. @param conf job conf
  30705. @param namedOutput named output
  30706. @return <code>true</code> if the name output is multi, <code>false</code>
  30707. if it is single. If the name output is not defined it returns
  30708. <code>false</code>]]>
  30709. </doc>
  30710. </method>
  30711. <method name="getNamedOutputFormatClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"
  30712. abstract="false" native="false" synchronized="false"
  30713. static="true" final="false" visibility="public"
  30714. deprecated="not deprecated">
  30715. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30716. <param name="namedOutput" type="java.lang.String"/>
  30717. <doc>
  30718. <![CDATA[Returns the named output OutputFormat.
  30719. @param conf job conf
  30720. @param namedOutput named output
  30721. @return namedOutput OutputFormat]]>
  30722. </doc>
  30723. </method>
  30724. <method name="getNamedOutputKeyClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  30725. abstract="false" native="false" synchronized="false"
  30726. static="true" final="false" visibility="public"
  30727. deprecated="not deprecated">
  30728. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30729. <param name="namedOutput" type="java.lang.String"/>
  30730. <doc>
  30731. <![CDATA[Returns the key class for a named output.
  30732. @param conf job conf
  30733. @param namedOutput named output
  30734. @return class for the named output key]]>
  30735. </doc>
  30736. </method>
  30737. <method name="getNamedOutputValueClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.Writable&gt;"
  30738. abstract="false" native="false" synchronized="false"
  30739. static="true" final="false" visibility="public"
  30740. deprecated="not deprecated">
  30741. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30742. <param name="namedOutput" type="java.lang.String"/>
  30743. <doc>
  30744. <![CDATA[Returns the value class for a named output.
  30745. @param conf job conf
  30746. @param namedOutput named output
  30747. @return class of named output value]]>
  30748. </doc>
  30749. </method>
  30750. <method name="addNamedOutput"
  30751. abstract="false" native="false" synchronized="false"
  30752. static="true" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30755. <param name="namedOutput" type="java.lang.String"/>
  30756. <param name="outputFormatClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  30757. <param name="keyClass" type="java.lang.Class&lt;?&gt;"/>
  30758. <param name="valueClass" type="java.lang.Class&lt;?&gt;"/>
  30759. <doc>
  30760. <![CDATA[Adds a named output for the job.
  30761. <p/>
  30762. @param conf job conf to add the named output
  30763. @param namedOutput named output name, it has to be a word, letters
  30764. and numbers only, cannot be the word 'part' as
  30765. that is reserved for the
  30766. default output.
  30767. @param outputFormatClass OutputFormat class.
  30768. @param keyClass key class
  30769. @param valueClass value class]]>
  30770. </doc>
  30771. </method>
  30772. <method name="addMultiNamedOutput"
  30773. abstract="false" native="false" synchronized="false"
  30774. static="true" final="false" visibility="public"
  30775. deprecated="not deprecated">
  30776. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30777. <param name="namedOutput" type="java.lang.String"/>
  30778. <param name="outputFormatClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  30779. <param name="keyClass" type="java.lang.Class&lt;?&gt;"/>
  30780. <param name="valueClass" type="java.lang.Class&lt;?&gt;"/>
  30781. <doc>
  30782. <![CDATA[Adds a multi named output for the job.
  30783. <p/>
  30784. @param conf job conf to add the named output
  30785. @param namedOutput named output name, it has to be a word, letters
  30786. and numbers only, cannot be the word 'part' as
  30787. that is reserved for the
  30788. default output.
  30789. @param outputFormatClass OutputFormat class.
  30790. @param keyClass key class
  30791. @param valueClass value class]]>
  30792. </doc>
  30793. </method>
  30794. <method name="setCountersEnabled"
  30795. abstract="false" native="false" synchronized="false"
  30796. static="true" final="false" visibility="public"
  30797. deprecated="not deprecated">
  30798. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30799. <param name="enabled" type="boolean"/>
  30800. <doc>
  30801. <![CDATA[Enables or disables counters for the named outputs.
  30802. <p/>
  30803. By default these counters are disabled.
  30804. <p/>
  30805. MultipleOutputs supports counters, by default the are disabled.
  30806. The counters group is the {@link MultipleOutputs} class name.
  30807. </p>
  30808. The names of the counters are the same as the named outputs. For multi
  30809. named outputs the name of the counter is the concatenation of the named
  30810. output, and underscore '_' and the multiname.
  30811. @param conf job conf to enableadd the named output.
  30812. @param enabled indicates if the counters will be enabled or not.]]>
  30813. </doc>
  30814. </method>
  30815. <method name="getCountersEnabled" return="boolean"
  30816. abstract="false" native="false" synchronized="false"
  30817. static="true" final="false" visibility="public"
  30818. deprecated="not deprecated">
  30819. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30820. <doc>
  30821. <![CDATA[Returns if the counters for the named outputs are enabled or not.
  30822. <p/>
  30823. By default these counters are disabled.
  30824. <p/>
  30825. MultipleOutputs supports counters, by default the are disabled.
  30826. The counters group is the {@link MultipleOutputs} class name.
  30827. </p>
  30828. The names of the counters are the same as the named outputs. For multi
  30829. named outputs the name of the counter is the concatenation of the named
  30830. output, and underscore '_' and the multiname.
  30831. @param conf job conf to enableadd the named output.
  30832. @return TRUE if the counters are enabled, FALSE if they are disabled.]]>
  30833. </doc>
  30834. </method>
  30835. <method name="getNamedOutputs" return="java.util.Iterator&lt;java.lang.String&gt;"
  30836. abstract="false" native="false" synchronized="false"
  30837. static="false" final="false" visibility="public"
  30838. deprecated="not deprecated">
  30839. <doc>
  30840. <![CDATA[Returns iterator with the defined name outputs.
  30841. @return iterator with the defined named outputs]]>
  30842. </doc>
  30843. </method>
  30844. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  30845. abstract="false" native="false" synchronized="false"
  30846. static="false" final="false" visibility="public"
  30847. deprecated="not deprecated">
  30848. <param name="namedOutput" type="java.lang.String"/>
  30849. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30850. <exception name="IOException" type="java.io.IOException"/>
  30851. <doc>
  30852. <![CDATA[Gets the output collector for a named output.
  30853. <p/>
  30854. @param namedOutput the named output name
  30855. @param reporter the reporter
  30856. @return the output collector for the given named output
  30857. @throws IOException thrown if output collector could not be created]]>
  30858. </doc>
  30859. </method>
  30860. <method name="getCollector" return="org.apache.hadoop.mapred.OutputCollector"
  30861. abstract="false" native="false" synchronized="false"
  30862. static="false" final="false" visibility="public"
  30863. deprecated="not deprecated">
  30864. <param name="namedOutput" type="java.lang.String"/>
  30865. <param name="multiName" type="java.lang.String"/>
  30866. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30867. <exception name="IOException" type="java.io.IOException"/>
  30868. <doc>
  30869. <![CDATA[Gets the output collector for a multi named output.
  30870. <p/>
  30871. @param namedOutput the named output name
  30872. @param multiName the multi name part
  30873. @param reporter the reporter
  30874. @return the output collector for the given named output
  30875. @throws IOException thrown if output collector could not be created]]>
  30876. </doc>
  30877. </method>
  30878. <method name="close"
  30879. abstract="false" native="false" synchronized="false"
  30880. static="false" final="false" visibility="public"
  30881. deprecated="not deprecated">
  30882. <exception name="IOException" type="java.io.IOException"/>
  30883. <doc>
  30884. <![CDATA[Closes all the opened named outputs.
  30885. <p/>
  30886. If overriden subclasses must invoke <code>super.close()</code> at the
  30887. end of their <code>close()</code>
  30888. @throws java.io.IOException thrown if any of the MultipleOutput files
  30889. could not be closed properly.]]>
  30890. </doc>
  30891. </method>
  30892. <doc>
  30893. <![CDATA[The MultipleOutputs class simplifies writting to additional outputs other
  30894. than the job default output via the <code>OutputCollector</code> passed to
  30895. the <code>map()</code> and <code>reduce()</code> methods of the
  30896. <code>Mapper</code> and <code>Reducer</code> implementations.
  30897. <p/>
  30898. Each additional output, or named output, may be configured with its own
  30899. <code>OutputFormat</code>, with its own key class and with its own value
  30900. class.
  30901. <p/>
  30902. A named output can be a single file or a multi file. The later is refered as
  30903. a multi named output.
  30904. <p/>
  30905. A multi named output is an unbound set of files all sharing the same
  30906. <code>OutputFormat</code>, key class and value class configuration.
  30907. <p/>
  30908. When named outputs are used within a <code>Mapper</code> implementation,
  30909. key/values written to a name output are not part of the reduce phase, only
  30910. key/values written to the job <code>OutputCollector</code> are part of the
  30911. reduce phase.
  30912. <p/>
  30913. MultipleOutputs supports counters, by default the are disabled. The counters
  30914. group is the {@link MultipleOutputs} class name.
  30915. </p>
  30916. The names of the counters are the same as the named outputs. For multi
  30917. named outputs the name of the counter is the concatenation of the named
  30918. output, and underscore '_' and the multiname.
  30919. <p/>
  30920. Job configuration usage pattern is:
  30921. <pre>
  30922. JobConf conf = new JobConf();
  30923. conf.setInputPath(inDir);
  30924. FileOutputFormat.setOutputPath(conf, outDir);
  30925. conf.setMapperClass(MOMap.class);
  30926. conf.setReducerClass(MOReduce.class);
  30927. ...
  30928. // Defines additional single text based output 'text' for the job
  30929. MultipleOutputs.addNamedOutput(conf, "text", TextOutputFormat.class,
  30930. LongWritable.class, Text.class);
  30931. // Defines additional multi sequencefile based output 'sequence' for the
  30932. // job
  30933. MultipleOutputs.addMultiNamedOutput(conf, "seq",
  30934. SequenceFileOutputFormat.class,
  30935. LongWritable.class, Text.class);
  30936. ...
  30937. JobClient jc = new JobClient();
  30938. RunningJob job = jc.submitJob(conf);
  30939. ...
  30940. </pre>
  30941. <p/>
  30942. Job configuration usage pattern is:
  30943. <pre>
  30944. public class MOReduce implements
  30945. Reducer&lt;WritableComparable, Writable&gt; {
  30946. private MultipleOutputs mos;
  30947. public void configure(JobConf conf) {
  30948. ...
  30949. mos = new MultipleOutputs(conf);
  30950. }
  30951. public void reduce(WritableComparable key, Iterator&lt;Writable&gt; values,
  30952. OutputCollector output, Reporter reporter)
  30953. throws IOException {
  30954. ...
  30955. mos.getCollector("text", reporter).collect(key, new Text("Hello"));
  30956. mos.getCollector("seq", "A", reporter).collect(key, new Text("Bye"));
  30957. mos.getCollector("seq", "B", reporter).collect(key, new Text("Chau"));
  30958. ...
  30959. }
  30960. public void close() throws IOException {
  30961. mos.close();
  30962. ...
  30963. }
  30964. }
  30965. </pre>]]>
  30966. </doc>
  30967. </class>
  30968. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputs -->
  30969. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  30970. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  30971. abstract="false"
  30972. static="false" final="false" visibility="public"
  30973. deprecated="not deprecated">
  30974. <constructor name="MultipleSequenceFileOutputFormat"
  30975. static="false" final="false" visibility="public"
  30976. deprecated="not deprecated">
  30977. </constructor>
  30978. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30979. abstract="false" native="false" synchronized="false"
  30980. static="false" final="false" visibility="protected"
  30981. deprecated="not deprecated">
  30982. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30983. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30984. <param name="name" type="java.lang.String"/>
  30985. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30986. <exception name="IOException" type="java.io.IOException"/>
  30987. </method>
  30988. <doc>
  30989. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  30990. to different output files in sequence file output format.]]>
  30991. </doc>
  30992. </class>
  30993. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  30994. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  30995. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  30996. abstract="false"
  30997. static="false" final="false" visibility="public"
  30998. deprecated="not deprecated">
  30999. <constructor name="MultipleTextOutputFormat"
  31000. static="false" final="false" visibility="public"
  31001. deprecated="not deprecated">
  31002. </constructor>
  31003. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  31004. abstract="false" native="false" synchronized="false"
  31005. static="false" final="false" visibility="protected"
  31006. deprecated="not deprecated">
  31007. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  31008. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31009. <param name="name" type="java.lang.String"/>
  31010. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  31011. <exception name="IOException" type="java.io.IOException"/>
  31012. </method>
  31013. <doc>
  31014. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  31015. data to different output files in Text output format.]]>
  31016. </doc>
  31017. </class>
  31018. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  31019. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  31020. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  31021. abstract="false"
  31022. static="false" final="false" visibility="public"
  31023. deprecated="not deprecated">
  31024. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  31025. <constructor name="MultithreadedMapRunner"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. </constructor>
  31029. <method name="configure"
  31030. abstract="false" native="false" synchronized="false"
  31031. static="false" final="false" visibility="public"
  31032. deprecated="not deprecated">
  31033. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  31034. </method>
  31035. <method name="run"
  31036. abstract="false" native="false" synchronized="false"
  31037. static="false" final="false" visibility="public"
  31038. deprecated="not deprecated">
  31039. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  31040. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  31041. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31042. <exception name="IOException" type="java.io.IOException"/>
  31043. </method>
  31044. <doc>
  31045. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  31046. <p>
  31047. It can be used instead of the default implementation,
  31048. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  31049. bound in order to improve throughput.
  31050. <p>
  31051. Map implementations using this MapRunnable must be thread-safe.
  31052. <p>
  31053. The Map-Reduce job has to be configured to use this MapRunnable class (using
  31054. the JobConf.setMapRunnerClass method) and
  31055. the number of thread the thread-pool can use with the
  31056. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  31057. value is 10 threads.
  31058. <p>]]>
  31059. </doc>
  31060. </class>
  31061. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  31062. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  31063. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  31064. abstract="false"
  31065. static="false" final="false" visibility="public"
  31066. deprecated="not deprecated">
  31067. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  31068. <constructor name="NLineInputFormat"
  31069. static="false" final="false" visibility="public"
  31070. deprecated="not deprecated">
  31071. </constructor>
  31072. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  31073. abstract="false" native="false" synchronized="false"
  31074. static="false" final="false" visibility="public"
  31075. deprecated="not deprecated">
  31076. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  31077. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31078. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31079. <exception name="IOException" type="java.io.IOException"/>
  31080. </method>
  31081. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  31082. abstract="false" native="false" synchronized="false"
  31083. static="false" final="false" visibility="public"
  31084. deprecated="not deprecated">
  31085. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31086. <param name="numSplits" type="int"/>
  31087. <exception name="IOException" type="java.io.IOException"/>
  31088. <doc>
  31089. <![CDATA[Logically splits the set of input files for the job, splits N lines
  31090. of the input as one split.
  31091. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  31092. </doc>
  31093. </method>
  31094. <method name="configure"
  31095. abstract="false" native="false" synchronized="false"
  31096. static="false" final="false" visibility="public"
  31097. deprecated="not deprecated">
  31098. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  31099. </method>
  31100. <doc>
  31101. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  31102. In many "pleasantly" parallel applications, each process/mapper
  31103. processes the same input file (s), but with computations are
  31104. controlled by different parameters.(Referred to as "parameter sweeps").
  31105. One way to achieve this, is to specify a set of parameters
  31106. (one set per line) as input in a control file
  31107. (which is the input path to the map-reduce application,
  31108. where as the input dataset is specified
  31109. via a config variable in JobConf.).
  31110. The NLineInputFormat can be used in such applications, that splits
  31111. the input file such that by default, one line is fed as
  31112. a value to one map task, and key is the offset.
  31113. i.e. (k,v) is (LongWritable, Text).
  31114. The location hints will span the whole mapred cluster.]]>
  31115. </doc>
  31116. </class>
  31117. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  31118. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  31119. <class name="NullOutputFormat" extends="java.lang.Object"
  31120. abstract="false"
  31121. static="false" final="false" visibility="public"
  31122. deprecated="not deprecated">
  31123. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  31124. <constructor name="NullOutputFormat"
  31125. static="false" final="false" visibility="public"
  31126. deprecated="not deprecated">
  31127. </constructor>
  31128. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  31129. abstract="false" native="false" synchronized="false"
  31130. static="false" final="false" visibility="public"
  31131. deprecated="not deprecated">
  31132. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  31133. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31134. <param name="name" type="java.lang.String"/>
  31135. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  31136. </method>
  31137. <method name="checkOutputSpecs"
  31138. abstract="false" native="false" synchronized="false"
  31139. static="false" final="false" visibility="public"
  31140. deprecated="not deprecated">
  31141. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  31142. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31143. </method>
  31144. <doc>
  31145. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  31146. </doc>
  31147. </class>
  31148. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  31149. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  31150. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  31151. abstract="false"
  31152. static="false" final="false" visibility="public"
  31153. deprecated="not deprecated">
  31154. <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;"/>
  31155. <constructor name="RegexMapper"
  31156. static="false" final="false" visibility="public"
  31157. deprecated="not deprecated">
  31158. </constructor>
  31159. <method name="configure"
  31160. abstract="false" native="false" synchronized="false"
  31161. static="false" final="false" visibility="public"
  31162. deprecated="not deprecated">
  31163. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31164. </method>
  31165. <method name="map"
  31166. abstract="false" native="false" synchronized="false"
  31167. static="false" final="false" visibility="public"
  31168. deprecated="not deprecated">
  31169. <param name="key" type="K"/>
  31170. <param name="value" type="org.apache.hadoop.io.Text"/>
  31171. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  31172. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31173. <exception name="IOException" type="java.io.IOException"/>
  31174. </method>
  31175. <doc>
  31176. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  31177. </doc>
  31178. </class>
  31179. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  31180. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  31181. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  31182. abstract="false"
  31183. static="false" final="false" visibility="public"
  31184. deprecated="not deprecated">
  31185. <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;"/>
  31186. <constructor name="TokenCountMapper"
  31187. static="false" final="false" visibility="public"
  31188. deprecated="not deprecated">
  31189. </constructor>
  31190. <method name="map"
  31191. abstract="false" native="false" synchronized="false"
  31192. static="false" final="false" visibility="public"
  31193. deprecated="not deprecated">
  31194. <param name="key" type="K"/>
  31195. <param name="value" type="org.apache.hadoop.io.Text"/>
  31196. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  31197. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31198. <exception name="IOException" type="java.io.IOException"/>
  31199. </method>
  31200. <doc>
  31201. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  31202. {@link StringTokenizer} to break text into tokens.]]>
  31203. </doc>
  31204. </class>
  31205. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  31206. <!-- start class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  31207. <class name="TotalOrderPartitioner" extends="java.lang.Object"
  31208. abstract="false"
  31209. static="false" final="false" visibility="public"
  31210. deprecated="not deprecated">
  31211. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K, V&gt;"/>
  31212. <constructor name="TotalOrderPartitioner"
  31213. static="false" final="false" visibility="public"
  31214. deprecated="not deprecated">
  31215. </constructor>
  31216. <method name="configure"
  31217. abstract="false" native="false" synchronized="false"
  31218. static="false" final="false" visibility="public"
  31219. deprecated="not deprecated">
  31220. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31221. <doc>
  31222. <![CDATA[Read in the partition file and build indexing data structures.
  31223. If the keytype is {@link org.apache.hadoop.io.BinaryComparable} and
  31224. <tt>total.order.partitioner.natural.order</tt> is not false, a trie
  31225. of the first <tt>total.order.partitioner.max.trie.depth</tt>(2) + 1 bytes
  31226. will be built. Otherwise, keys will be located using a binary search of
  31227. the partition keyset using the {@link org.apache.hadoop.io.RawComparator}
  31228. defined for this job. The input file must be sorted with the same
  31229. comparator and contain {@link
  31230. org.apache.hadoop.mapred.JobConf#getNumReduceTasks} - 1 keys.]]>
  31231. </doc>
  31232. </method>
  31233. <method name="getPartition" return="int"
  31234. abstract="false" native="false" synchronized="false"
  31235. static="false" final="false" visibility="public"
  31236. deprecated="not deprecated">
  31237. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31238. <param name="value" type="V"/>
  31239. <param name="numPartitions" type="int"/>
  31240. </method>
  31241. <method name="setPartitionFile"
  31242. abstract="false" native="false" synchronized="false"
  31243. static="true" final="false" visibility="public"
  31244. deprecated="not deprecated">
  31245. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31246. <param name="p" type="org.apache.hadoop.fs.Path"/>
  31247. <doc>
  31248. <![CDATA[Set the path to the SequenceFile storing the sorted partition keyset.
  31249. It must be the case that for <tt>R</tt> reduces, there are <tt>R-1</tt>
  31250. keys in the SequenceFile.]]>
  31251. </doc>
  31252. </method>
  31253. <method name="getPartitionFile" return="java.lang.String"
  31254. abstract="false" native="false" synchronized="false"
  31255. static="true" final="false" visibility="public"
  31256. deprecated="not deprecated">
  31257. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31258. <doc>
  31259. <![CDATA[Get the path to the SequenceFile storing the sorted partition keyset.
  31260. @see #setPartitionFile(JobConf,Path)]]>
  31261. </doc>
  31262. </method>
  31263. <field name="DEFAULT_PATH" type="java.lang.String"
  31264. transient="false" volatile="false"
  31265. static="true" final="true" visibility="public"
  31266. deprecated="not deprecated">
  31267. </field>
  31268. <doc>
  31269. <![CDATA[Partitioner effecting a total order by reading split points from
  31270. an externally generated source.]]>
  31271. </doc>
  31272. </class>
  31273. <!-- end class org.apache.hadoop.mapred.lib.TotalOrderPartitioner -->
  31274. </package>
  31275. <package name="org.apache.hadoop.mapred.lib.aggregate">
  31276. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  31277. <class name="DoubleValueSum" extends="java.lang.Object"
  31278. abstract="false"
  31279. static="false" final="false" visibility="public"
  31280. deprecated="not deprecated">
  31281. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31282. <constructor name="DoubleValueSum"
  31283. static="false" final="false" visibility="public"
  31284. deprecated="not deprecated">
  31285. <doc>
  31286. <![CDATA[The default constructor]]>
  31287. </doc>
  31288. </constructor>
  31289. <method name="addNextValue"
  31290. abstract="false" native="false" synchronized="false"
  31291. static="false" final="false" visibility="public"
  31292. deprecated="not deprecated">
  31293. <param name="val" type="java.lang.Object"/>
  31294. <doc>
  31295. <![CDATA[add a value to the aggregator
  31296. @param val
  31297. an object whose string representation represents a double value.]]>
  31298. </doc>
  31299. </method>
  31300. <method name="addNextValue"
  31301. abstract="false" native="false" synchronized="false"
  31302. static="false" final="false" visibility="public"
  31303. deprecated="not deprecated">
  31304. <param name="val" type="double"/>
  31305. <doc>
  31306. <![CDATA[add a value to the aggregator
  31307. @param val
  31308. a double value.]]>
  31309. </doc>
  31310. </method>
  31311. <method name="getReport" return="java.lang.String"
  31312. abstract="false" native="false" synchronized="false"
  31313. static="false" final="false" visibility="public"
  31314. deprecated="not deprecated">
  31315. <doc>
  31316. <![CDATA[@return the string representation of the aggregated value]]>
  31317. </doc>
  31318. </method>
  31319. <method name="getSum" return="double"
  31320. abstract="false" native="false" synchronized="false"
  31321. static="false" final="false" visibility="public"
  31322. deprecated="not deprecated">
  31323. <doc>
  31324. <![CDATA[@return the aggregated value]]>
  31325. </doc>
  31326. </method>
  31327. <method name="reset"
  31328. abstract="false" native="false" synchronized="false"
  31329. static="false" final="false" visibility="public"
  31330. deprecated="not deprecated">
  31331. <doc>
  31332. <![CDATA[reset the aggregator]]>
  31333. </doc>
  31334. </method>
  31335. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31336. abstract="false" native="false" synchronized="false"
  31337. static="false" final="false" visibility="public"
  31338. deprecated="not deprecated">
  31339. <doc>
  31340. <![CDATA[@return return an array of one element. The element is a string
  31341. representation of the aggregated value. The return value is
  31342. expected to be used by the a combiner.]]>
  31343. </doc>
  31344. </method>
  31345. <doc>
  31346. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  31347. values.]]>
  31348. </doc>
  31349. </class>
  31350. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  31351. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  31352. <class name="LongValueMax" extends="java.lang.Object"
  31353. abstract="false"
  31354. static="false" final="false" visibility="public"
  31355. deprecated="not deprecated">
  31356. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31357. <constructor name="LongValueMax"
  31358. static="false" final="false" visibility="public"
  31359. deprecated="not deprecated">
  31360. <doc>
  31361. <![CDATA[the default constructor]]>
  31362. </doc>
  31363. </constructor>
  31364. <method name="addNextValue"
  31365. abstract="false" native="false" synchronized="false"
  31366. static="false" final="false" visibility="public"
  31367. deprecated="not deprecated">
  31368. <param name="val" type="java.lang.Object"/>
  31369. <doc>
  31370. <![CDATA[add a value to the aggregator
  31371. @param val
  31372. an object whose string representation represents a long value.]]>
  31373. </doc>
  31374. </method>
  31375. <method name="addNextValue"
  31376. abstract="false" native="false" synchronized="false"
  31377. static="false" final="false" visibility="public"
  31378. deprecated="not deprecated">
  31379. <param name="newVal" type="long"/>
  31380. <doc>
  31381. <![CDATA[add a value to the aggregator
  31382. @param newVal
  31383. a long value.]]>
  31384. </doc>
  31385. </method>
  31386. <method name="getVal" return="long"
  31387. abstract="false" native="false" synchronized="false"
  31388. static="false" final="false" visibility="public"
  31389. deprecated="not deprecated">
  31390. <doc>
  31391. <![CDATA[@return the aggregated value]]>
  31392. </doc>
  31393. </method>
  31394. <method name="getReport" return="java.lang.String"
  31395. abstract="false" native="false" synchronized="false"
  31396. static="false" final="false" visibility="public"
  31397. deprecated="not deprecated">
  31398. <doc>
  31399. <![CDATA[@return the string representation of the aggregated value]]>
  31400. </doc>
  31401. </method>
  31402. <method name="reset"
  31403. abstract="false" native="false" synchronized="false"
  31404. static="false" final="false" visibility="public"
  31405. deprecated="not deprecated">
  31406. <doc>
  31407. <![CDATA[reset the aggregator]]>
  31408. </doc>
  31409. </method>
  31410. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31411. abstract="false" native="false" synchronized="false"
  31412. static="false" final="false" visibility="public"
  31413. deprecated="not deprecated">
  31414. <doc>
  31415. <![CDATA[@return return an array of one element. The element is a string
  31416. representation of the aggregated value. The return value is
  31417. expected to be used by the a combiner.]]>
  31418. </doc>
  31419. </method>
  31420. <doc>
  31421. <![CDATA[This class implements a value aggregator that maintain the maximum of
  31422. a sequence of long values.]]>
  31423. </doc>
  31424. </class>
  31425. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  31426. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  31427. <class name="LongValueMin" extends="java.lang.Object"
  31428. abstract="false"
  31429. static="false" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31432. <constructor name="LongValueMin"
  31433. static="false" final="false" visibility="public"
  31434. deprecated="not deprecated">
  31435. <doc>
  31436. <![CDATA[the default constructor]]>
  31437. </doc>
  31438. </constructor>
  31439. <method name="addNextValue"
  31440. abstract="false" native="false" synchronized="false"
  31441. static="false" final="false" visibility="public"
  31442. deprecated="not deprecated">
  31443. <param name="val" type="java.lang.Object"/>
  31444. <doc>
  31445. <![CDATA[add a value to the aggregator
  31446. @param val
  31447. an object whose string representation represents a long value.]]>
  31448. </doc>
  31449. </method>
  31450. <method name="addNextValue"
  31451. abstract="false" native="false" synchronized="false"
  31452. static="false" final="false" visibility="public"
  31453. deprecated="not deprecated">
  31454. <param name="newVal" type="long"/>
  31455. <doc>
  31456. <![CDATA[add a value to the aggregator
  31457. @param newVal
  31458. a long value.]]>
  31459. </doc>
  31460. </method>
  31461. <method name="getVal" return="long"
  31462. abstract="false" native="false" synchronized="false"
  31463. static="false" final="false" visibility="public"
  31464. deprecated="not deprecated">
  31465. <doc>
  31466. <![CDATA[@return the aggregated value]]>
  31467. </doc>
  31468. </method>
  31469. <method name="getReport" return="java.lang.String"
  31470. abstract="false" native="false" synchronized="false"
  31471. static="false" final="false" visibility="public"
  31472. deprecated="not deprecated">
  31473. <doc>
  31474. <![CDATA[@return the string representation of the aggregated value]]>
  31475. </doc>
  31476. </method>
  31477. <method name="reset"
  31478. abstract="false" native="false" synchronized="false"
  31479. static="false" final="false" visibility="public"
  31480. deprecated="not deprecated">
  31481. <doc>
  31482. <![CDATA[reset the aggregator]]>
  31483. </doc>
  31484. </method>
  31485. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31486. abstract="false" native="false" synchronized="false"
  31487. static="false" final="false" visibility="public"
  31488. deprecated="not deprecated">
  31489. <doc>
  31490. <![CDATA[@return return an array of one element. The element is a string
  31491. representation of the aggregated value. The return value is
  31492. expected to be used by the a combiner.]]>
  31493. </doc>
  31494. </method>
  31495. <doc>
  31496. <![CDATA[This class implements a value aggregator that maintain the minimum of
  31497. a sequence of long values.]]>
  31498. </doc>
  31499. </class>
  31500. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  31501. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  31502. <class name="LongValueSum" extends="java.lang.Object"
  31503. abstract="false"
  31504. static="false" final="false" visibility="public"
  31505. deprecated="not deprecated">
  31506. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31507. <constructor name="LongValueSum"
  31508. static="false" final="false" visibility="public"
  31509. deprecated="not deprecated">
  31510. <doc>
  31511. <![CDATA[the default constructor]]>
  31512. </doc>
  31513. </constructor>
  31514. <method name="addNextValue"
  31515. abstract="false" native="false" synchronized="false"
  31516. static="false" final="false" visibility="public"
  31517. deprecated="not deprecated">
  31518. <param name="val" type="java.lang.Object"/>
  31519. <doc>
  31520. <![CDATA[add a value to the aggregator
  31521. @param val
  31522. an object whose string representation represents a long value.]]>
  31523. </doc>
  31524. </method>
  31525. <method name="addNextValue"
  31526. abstract="false" native="false" synchronized="false"
  31527. static="false" final="false" visibility="public"
  31528. deprecated="not deprecated">
  31529. <param name="val" type="long"/>
  31530. <doc>
  31531. <![CDATA[add a value to the aggregator
  31532. @param val
  31533. a long value.]]>
  31534. </doc>
  31535. </method>
  31536. <method name="getSum" return="long"
  31537. abstract="false" native="false" synchronized="false"
  31538. static="false" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <doc>
  31541. <![CDATA[@return the aggregated value]]>
  31542. </doc>
  31543. </method>
  31544. <method name="getReport" return="java.lang.String"
  31545. abstract="false" native="false" synchronized="false"
  31546. static="false" final="false" visibility="public"
  31547. deprecated="not deprecated">
  31548. <doc>
  31549. <![CDATA[@return the string representation of the aggregated value]]>
  31550. </doc>
  31551. </method>
  31552. <method name="reset"
  31553. abstract="false" native="false" synchronized="false"
  31554. static="false" final="false" visibility="public"
  31555. deprecated="not deprecated">
  31556. <doc>
  31557. <![CDATA[reset the aggregator]]>
  31558. </doc>
  31559. </method>
  31560. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31561. abstract="false" native="false" synchronized="false"
  31562. static="false" final="false" visibility="public"
  31563. deprecated="not deprecated">
  31564. <doc>
  31565. <![CDATA[@return return an array of one element. The element is a string
  31566. representation of the aggregated value. The return value is
  31567. expected to be used by the a combiner.]]>
  31568. </doc>
  31569. </method>
  31570. <doc>
  31571. <![CDATA[This class implements a value aggregator that sums up
  31572. a sequence of long values.]]>
  31573. </doc>
  31574. </class>
  31575. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  31576. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  31577. <class name="StringValueMax" extends="java.lang.Object"
  31578. abstract="false"
  31579. static="false" final="false" visibility="public"
  31580. deprecated="not deprecated">
  31581. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31582. <constructor name="StringValueMax"
  31583. static="false" final="false" visibility="public"
  31584. deprecated="not deprecated">
  31585. <doc>
  31586. <![CDATA[the default constructor]]>
  31587. </doc>
  31588. </constructor>
  31589. <method name="addNextValue"
  31590. abstract="false" native="false" synchronized="false"
  31591. static="false" final="false" visibility="public"
  31592. deprecated="not deprecated">
  31593. <param name="val" type="java.lang.Object"/>
  31594. <doc>
  31595. <![CDATA[add a value to the aggregator
  31596. @param val
  31597. a string.]]>
  31598. </doc>
  31599. </method>
  31600. <method name="getVal" return="java.lang.String"
  31601. abstract="false" native="false" synchronized="false"
  31602. static="false" final="false" visibility="public"
  31603. deprecated="not deprecated">
  31604. <doc>
  31605. <![CDATA[@return the aggregated value]]>
  31606. </doc>
  31607. </method>
  31608. <method name="getReport" return="java.lang.String"
  31609. abstract="false" native="false" synchronized="false"
  31610. static="false" final="false" visibility="public"
  31611. deprecated="not deprecated">
  31612. <doc>
  31613. <![CDATA[@return the string representation of the aggregated value]]>
  31614. </doc>
  31615. </method>
  31616. <method name="reset"
  31617. abstract="false" native="false" synchronized="false"
  31618. static="false" final="false" visibility="public"
  31619. deprecated="not deprecated">
  31620. <doc>
  31621. <![CDATA[reset the aggregator]]>
  31622. </doc>
  31623. </method>
  31624. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31625. abstract="false" native="false" synchronized="false"
  31626. static="false" final="false" visibility="public"
  31627. deprecated="not deprecated">
  31628. <doc>
  31629. <![CDATA[@return return an array of one element. The element is a string
  31630. representation of the aggregated value. The return value is
  31631. expected to be used by the a combiner.]]>
  31632. </doc>
  31633. </method>
  31634. <doc>
  31635. <![CDATA[This class implements a value aggregator that maintain the biggest of
  31636. a sequence of strings.]]>
  31637. </doc>
  31638. </class>
  31639. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  31640. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  31641. <class name="StringValueMin" extends="java.lang.Object"
  31642. abstract="false"
  31643. static="false" final="false" visibility="public"
  31644. deprecated="not deprecated">
  31645. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31646. <constructor name="StringValueMin"
  31647. static="false" final="false" visibility="public"
  31648. deprecated="not deprecated">
  31649. <doc>
  31650. <![CDATA[the default constructor]]>
  31651. </doc>
  31652. </constructor>
  31653. <method name="addNextValue"
  31654. abstract="false" native="false" synchronized="false"
  31655. static="false" final="false" visibility="public"
  31656. deprecated="not deprecated">
  31657. <param name="val" type="java.lang.Object"/>
  31658. <doc>
  31659. <![CDATA[add a value to the aggregator
  31660. @param val
  31661. a string.]]>
  31662. </doc>
  31663. </method>
  31664. <method name="getVal" return="java.lang.String"
  31665. abstract="false" native="false" synchronized="false"
  31666. static="false" final="false" visibility="public"
  31667. deprecated="not deprecated">
  31668. <doc>
  31669. <![CDATA[@return the aggregated value]]>
  31670. </doc>
  31671. </method>
  31672. <method name="getReport" return="java.lang.String"
  31673. abstract="false" native="false" synchronized="false"
  31674. static="false" final="false" visibility="public"
  31675. deprecated="not deprecated">
  31676. <doc>
  31677. <![CDATA[@return the string representation of the aggregated value]]>
  31678. </doc>
  31679. </method>
  31680. <method name="reset"
  31681. abstract="false" native="false" synchronized="false"
  31682. static="false" final="false" visibility="public"
  31683. deprecated="not deprecated">
  31684. <doc>
  31685. <![CDATA[reset the aggregator]]>
  31686. </doc>
  31687. </method>
  31688. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31689. abstract="false" native="false" synchronized="false"
  31690. static="false" final="false" visibility="public"
  31691. deprecated="not deprecated">
  31692. <doc>
  31693. <![CDATA[@return return an array of one element. The element is a string
  31694. representation of the aggregated value. The return value is
  31695. expected to be used by the a combiner.]]>
  31696. </doc>
  31697. </method>
  31698. <doc>
  31699. <![CDATA[This class implements a value aggregator that maintain the smallest of
  31700. a sequence of strings.]]>
  31701. </doc>
  31702. </class>
  31703. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  31704. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  31705. <class name="UniqValueCount" extends="java.lang.Object"
  31706. abstract="false"
  31707. static="false" final="false" visibility="public"
  31708. deprecated="not deprecated">
  31709. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31710. <constructor name="UniqValueCount"
  31711. static="false" final="false" visibility="public"
  31712. deprecated="not deprecated">
  31713. <doc>
  31714. <![CDATA[the default constructor]]>
  31715. </doc>
  31716. </constructor>
  31717. <constructor name="UniqValueCount" type="long"
  31718. static="false" final="false" visibility="public"
  31719. deprecated="not deprecated">
  31720. <doc>
  31721. <![CDATA[constructor
  31722. @param maxNum the limit in the number of unique values to keep.]]>
  31723. </doc>
  31724. </constructor>
  31725. <method name="setMaxItems" return="long"
  31726. abstract="false" native="false" synchronized="false"
  31727. static="false" final="false" visibility="public"
  31728. deprecated="not deprecated">
  31729. <param name="n" type="long"/>
  31730. <doc>
  31731. <![CDATA[Set the limit on the number of unique values
  31732. @param n the desired limit on the number of unique values
  31733. @return the new limit on the number of unique values]]>
  31734. </doc>
  31735. </method>
  31736. <method name="addNextValue"
  31737. abstract="false" native="false" synchronized="false"
  31738. static="false" final="false" visibility="public"
  31739. deprecated="not deprecated">
  31740. <param name="val" type="java.lang.Object"/>
  31741. <doc>
  31742. <![CDATA[add a value to the aggregator
  31743. @param val
  31744. an object.]]>
  31745. </doc>
  31746. </method>
  31747. <method name="getReport" return="java.lang.String"
  31748. abstract="false" native="false" synchronized="false"
  31749. static="false" final="false" visibility="public"
  31750. deprecated="not deprecated">
  31751. <doc>
  31752. <![CDATA[@return return the number of unique objects aggregated]]>
  31753. </doc>
  31754. </method>
  31755. <method name="getUniqueItems" return="java.util.Set"
  31756. abstract="false" native="false" synchronized="false"
  31757. static="false" final="false" visibility="public"
  31758. deprecated="not deprecated">
  31759. <doc>
  31760. <![CDATA[@return the set of the unique objects]]>
  31761. </doc>
  31762. </method>
  31763. <method name="reset"
  31764. abstract="false" native="false" synchronized="false"
  31765. static="false" final="false" visibility="public"
  31766. deprecated="not deprecated">
  31767. <doc>
  31768. <![CDATA[reset the aggregator]]>
  31769. </doc>
  31770. </method>
  31771. <method name="getCombinerOutput" return="java.util.ArrayList"
  31772. abstract="false" native="false" synchronized="false"
  31773. static="false" final="false" visibility="public"
  31774. deprecated="not deprecated">
  31775. <doc>
  31776. <![CDATA[@return return an array of the unique objects. The return value is
  31777. expected to be used by the a combiner.]]>
  31778. </doc>
  31779. </method>
  31780. <doc>
  31781. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  31782. </doc>
  31783. </class>
  31784. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  31785. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  31786. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  31787. abstract="false"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  31791. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  31792. static="false" final="false" visibility="public"
  31793. deprecated="not deprecated">
  31794. <doc>
  31795. <![CDATA[@param className the class name of the user defined descriptor class
  31796. @param job a configure object used for decriptor configuration]]>
  31797. </doc>
  31798. </constructor>
  31799. <method name="createInstance" return="java.lang.Object"
  31800. abstract="false" native="false" synchronized="false"
  31801. static="true" final="false" visibility="public"
  31802. deprecated="not deprecated">
  31803. <param name="className" type="java.lang.String"/>
  31804. <doc>
  31805. <![CDATA[Create an instance of the given class
  31806. @param className the name of the class
  31807. @return a dynamically created instance of the given class]]>
  31808. </doc>
  31809. </method>
  31810. <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;"
  31811. abstract="false" native="false" synchronized="false"
  31812. static="false" final="false" visibility="public"
  31813. deprecated="not deprecated">
  31814. <param name="key" type="java.lang.Object"/>
  31815. <param name="val" type="java.lang.Object"/>
  31816. <doc>
  31817. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  31818. by delegating the invocation to the real object.
  31819. @param key
  31820. input key
  31821. @param val
  31822. input value
  31823. @return a list of aggregation id/value pairs. An aggregation id encodes an
  31824. aggregation type which is used to guide the way to aggregate the
  31825. value in the reduce/combiner phrase of an Aggregate based job.]]>
  31826. </doc>
  31827. </method>
  31828. <method name="toString" return="java.lang.String"
  31829. abstract="false" native="false" synchronized="false"
  31830. static="false" final="false" visibility="public"
  31831. deprecated="not deprecated">
  31832. <doc>
  31833. <![CDATA[@return the string representation of this object.]]>
  31834. </doc>
  31835. </method>
  31836. <method name="configure"
  31837. abstract="false" native="false" synchronized="false"
  31838. static="false" final="false" visibility="public"
  31839. deprecated="not deprecated">
  31840. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31841. <doc>
  31842. <![CDATA[Do nothing.]]>
  31843. </doc>
  31844. </method>
  31845. <doc>
  31846. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  31847. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  31848. name of a user defined class that may be dynamically loaded. The other is to
  31849. deligate inviokations of generateKeyValPairs function to the created object.]]>
  31850. </doc>
  31851. </class>
  31852. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  31853. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  31854. <interface name="ValueAggregator" abstract="true"
  31855. static="false" final="false" visibility="public"
  31856. deprecated="not deprecated">
  31857. <method name="addNextValue"
  31858. abstract="false" native="false" synchronized="false"
  31859. static="false" final="false" visibility="public"
  31860. deprecated="not deprecated">
  31861. <param name="val" type="java.lang.Object"/>
  31862. <doc>
  31863. <![CDATA[add a value to the aggregator
  31864. @param val the value to be added]]>
  31865. </doc>
  31866. </method>
  31867. <method name="reset"
  31868. abstract="false" native="false" synchronized="false"
  31869. static="false" final="false" visibility="public"
  31870. deprecated="not deprecated">
  31871. <doc>
  31872. <![CDATA[reset the aggregator]]>
  31873. </doc>
  31874. </method>
  31875. <method name="getReport" return="java.lang.String"
  31876. abstract="false" native="false" synchronized="false"
  31877. static="false" final="false" visibility="public"
  31878. deprecated="not deprecated">
  31879. <doc>
  31880. <![CDATA[@return the string representation of the agregator]]>
  31881. </doc>
  31882. </method>
  31883. <method name="getCombinerOutput" return="java.util.ArrayList"
  31884. abstract="false" native="false" synchronized="false"
  31885. static="false" final="false" visibility="public"
  31886. deprecated="not deprecated">
  31887. <doc>
  31888. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  31889. </doc>
  31890. </method>
  31891. <doc>
  31892. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  31893. </doc>
  31894. </interface>
  31895. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  31896. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  31897. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  31898. abstract="false"
  31899. static="false" final="false" visibility="public"
  31900. deprecated="not deprecated">
  31901. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  31902. <constructor name="ValueAggregatorBaseDescriptor"
  31903. static="false" final="false" visibility="public"
  31904. deprecated="not deprecated">
  31905. </constructor>
  31906. <method name="generateEntry" return="java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  31907. abstract="false" native="false" synchronized="false"
  31908. static="true" final="false" visibility="public"
  31909. deprecated="not deprecated">
  31910. <param name="type" type="java.lang.String"/>
  31911. <param name="id" type="java.lang.String"/>
  31912. <param name="val" type="org.apache.hadoop.io.Text"/>
  31913. <doc>
  31914. <![CDATA[@param type the aggregation type
  31915. @param id the aggregation id
  31916. @param val the val associated with the id to be aggregated
  31917. @return an Entry whose key is the aggregation id prefixed with
  31918. the aggregation type.]]>
  31919. </doc>
  31920. </method>
  31921. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  31922. abstract="false" native="false" synchronized="false"
  31923. static="true" final="false" visibility="public"
  31924. deprecated="not deprecated">
  31925. <param name="type" type="java.lang.String"/>
  31926. <doc>
  31927. <![CDATA[@param type the aggregation type
  31928. @return a value aggregator of the given type.]]>
  31929. </doc>
  31930. </method>
  31931. <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;"
  31932. abstract="false" native="false" synchronized="false"
  31933. static="false" final="false" visibility="public"
  31934. deprecated="not deprecated">
  31935. <param name="key" type="java.lang.Object"/>
  31936. <param name="val" type="java.lang.Object"/>
  31937. <doc>
  31938. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  31939. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  31940. its aggregation id. If the input is a file split,
  31941. the second id of the same type will be generated too, with the file name
  31942. as its aggregation id. This achieves the behavior of counting the total number
  31943. of records in the input data, and the number of records in each input file.
  31944. @param key
  31945. input key
  31946. @param val
  31947. input value
  31948. @return a list of aggregation id/value pairs. An aggregation id encodes an
  31949. aggregation type which is used to guide the way to aggregate the
  31950. value in the reduce/combiner phrase of an Aggregate based job.]]>
  31951. </doc>
  31952. </method>
  31953. <method name="configure"
  31954. abstract="false" native="false" synchronized="false"
  31955. static="false" final="false" visibility="public"
  31956. deprecated="not deprecated">
  31957. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31958. <doc>
  31959. <![CDATA[get the input file name.
  31960. @param job a job configuration object]]>
  31961. </doc>
  31962. </method>
  31963. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  31964. transient="false" volatile="false"
  31965. static="true" final="true" visibility="public"
  31966. deprecated="not deprecated">
  31967. </field>
  31968. <field name="LONG_VALUE_SUM" type="java.lang.String"
  31969. transient="false" volatile="false"
  31970. static="true" final="true" visibility="public"
  31971. deprecated="not deprecated">
  31972. </field>
  31973. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  31974. transient="false" volatile="false"
  31975. static="true" final="true" visibility="public"
  31976. deprecated="not deprecated">
  31977. </field>
  31978. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  31979. transient="false" volatile="false"
  31980. static="true" final="true" visibility="public"
  31981. deprecated="not deprecated">
  31982. </field>
  31983. <field name="LONG_VALUE_MAX" type="java.lang.String"
  31984. transient="false" volatile="false"
  31985. static="true" final="true" visibility="public"
  31986. deprecated="not deprecated">
  31987. </field>
  31988. <field name="LONG_VALUE_MIN" type="java.lang.String"
  31989. transient="false" volatile="false"
  31990. static="true" final="true" visibility="public"
  31991. deprecated="not deprecated">
  31992. </field>
  31993. <field name="STRING_VALUE_MAX" type="java.lang.String"
  31994. transient="false" volatile="false"
  31995. static="true" final="true" visibility="public"
  31996. deprecated="not deprecated">
  31997. </field>
  31998. <field name="STRING_VALUE_MIN" type="java.lang.String"
  31999. transient="false" volatile="false"
  32000. static="true" final="true" visibility="public"
  32001. deprecated="not deprecated">
  32002. </field>
  32003. <field name="inputFile" type="java.lang.String"
  32004. transient="false" volatile="false"
  32005. static="false" final="false" visibility="public"
  32006. deprecated="not deprecated">
  32007. </field>
  32008. <doc>
  32009. <![CDATA[This class implements the common functionalities of
  32010. the subclasses of ValueAggregatorDescriptor class.]]>
  32011. </doc>
  32012. </class>
  32013. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  32014. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  32015. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  32016. abstract="false"
  32017. static="false" final="false" visibility="public"
  32018. deprecated="not deprecated">
  32019. <constructor name="ValueAggregatorCombiner"
  32020. static="false" final="false" visibility="public"
  32021. deprecated="not deprecated">
  32022. </constructor>
  32023. <method name="configure"
  32024. abstract="false" native="false" synchronized="false"
  32025. static="false" final="false" visibility="public"
  32026. deprecated="not deprecated">
  32027. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32028. <doc>
  32029. <![CDATA[Combiner does not need to configure.]]>
  32030. </doc>
  32031. </method>
  32032. <method name="reduce"
  32033. abstract="false" native="false" synchronized="false"
  32034. static="false" final="false" visibility="public"
  32035. deprecated="not deprecated">
  32036. <param name="key" type="org.apache.hadoop.io.Text"/>
  32037. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32038. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32039. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32040. <exception name="IOException" type="java.io.IOException"/>
  32041. <doc>
  32042. <![CDATA[Combines values for a given key.
  32043. @param key the key is expected to be a Text object, whose prefix indicates
  32044. the type of aggregation to aggregate the values.
  32045. @param values the values to combine
  32046. @param output to collect combined values]]>
  32047. </doc>
  32048. </method>
  32049. <method name="close"
  32050. abstract="false" native="false" synchronized="false"
  32051. static="false" final="false" visibility="public"
  32052. deprecated="not deprecated">
  32053. <exception name="IOException" type="java.io.IOException"/>
  32054. <doc>
  32055. <![CDATA[Do nothing.]]>
  32056. </doc>
  32057. </method>
  32058. <method name="map"
  32059. abstract="false" native="false" synchronized="false"
  32060. static="false" final="false" visibility="public"
  32061. deprecated="not deprecated">
  32062. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  32063. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  32064. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32065. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  32066. <exception name="IOException" type="java.io.IOException"/>
  32067. <doc>
  32068. <![CDATA[Do nothing. Should not be called.]]>
  32069. </doc>
  32070. </method>
  32071. <doc>
  32072. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  32073. </doc>
  32074. </class>
  32075. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  32076. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  32077. <interface name="ValueAggregatorDescriptor" abstract="true"
  32078. static="false" final="false" visibility="public"
  32079. deprecated="not deprecated">
  32080. <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;"
  32081. abstract="false" native="false" synchronized="false"
  32082. static="false" final="false" visibility="public"
  32083. deprecated="not deprecated">
  32084. <param name="key" type="java.lang.Object"/>
  32085. <param name="val" type="java.lang.Object"/>
  32086. <doc>
  32087. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  32088. This function is usually called by the mapper of an Aggregate based job.
  32089. @param key
  32090. input key
  32091. @param val
  32092. input value
  32093. @return a list of aggregation id/value pairs. An aggregation id encodes an
  32094. aggregation type which is used to guide the way to aggregate the
  32095. value in the reduce/combiner phrase of an Aggregate based job.]]>
  32096. </doc>
  32097. </method>
  32098. <method name="configure"
  32099. abstract="false" native="false" synchronized="false"
  32100. static="false" final="false" visibility="public"
  32101. deprecated="not deprecated">
  32102. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32103. <doc>
  32104. <![CDATA[Configure the object
  32105. @param job
  32106. a JobConf object that may contain the information that can be used
  32107. to configure the object.]]>
  32108. </doc>
  32109. </method>
  32110. <field name="TYPE_SEPARATOR" type="java.lang.String"
  32111. transient="false" volatile="false"
  32112. static="true" final="true" visibility="public"
  32113. deprecated="not deprecated">
  32114. </field>
  32115. <field name="ONE" type="org.apache.hadoop.io.Text"
  32116. transient="false" volatile="false"
  32117. static="true" final="true" visibility="public"
  32118. deprecated="not deprecated">
  32119. </field>
  32120. <doc>
  32121. <![CDATA[This interface defines the contract a value aggregator descriptor must
  32122. support. Such a descriptor can be configured with a JobConf object. Its main
  32123. function is to generate a list of aggregation-id/value pairs. An aggregation
  32124. id encodes an aggregation type which is used to guide the way to aggregate
  32125. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  32126. an Aggregate based map/reduce job may create one or more of
  32127. ValueAggregatorDescriptor objects at configuration time. For each input
  32128. key/value pair, the mapper will use those objects to create aggregation
  32129. id/value pairs.]]>
  32130. </doc>
  32131. </interface>
  32132. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  32133. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  32134. <class name="ValueAggregatorJob" extends="java.lang.Object"
  32135. abstract="false"
  32136. static="false" final="false" visibility="public"
  32137. deprecated="not deprecated">
  32138. <constructor name="ValueAggregatorJob"
  32139. static="false" final="false" visibility="public"
  32140. deprecated="not deprecated">
  32141. </constructor>
  32142. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  32143. abstract="false" native="false" synchronized="false"
  32144. static="true" final="false" visibility="public"
  32145. deprecated="not deprecated">
  32146. <param name="args" type="java.lang.String[]"/>
  32147. <param name="descriptors" type="java.lang.Class[]"/>
  32148. <exception name="IOException" type="java.io.IOException"/>
  32149. </method>
  32150. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  32151. abstract="false" native="false" synchronized="false"
  32152. static="true" final="false" visibility="public"
  32153. deprecated="not deprecated">
  32154. <param name="args" type="java.lang.String[]"/>
  32155. <exception name="IOException" type="java.io.IOException"/>
  32156. </method>
  32157. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  32158. abstract="false" native="false" synchronized="false"
  32159. static="true" final="false" visibility="public"
  32160. deprecated="not deprecated">
  32161. <param name="args" type="java.lang.String[]"/>
  32162. <exception name="IOException" type="java.io.IOException"/>
  32163. <doc>
  32164. <![CDATA[Create an Aggregate based map/reduce job.
  32165. @param args the arguments used for job creation. Generic hadoop
  32166. arguments are accepted.
  32167. @return a JobConf object ready for submission.
  32168. @throws IOException
  32169. @see GenericOptionsParser]]>
  32170. </doc>
  32171. </method>
  32172. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  32173. abstract="false" native="false" synchronized="false"
  32174. static="true" final="false" visibility="public"
  32175. deprecated="not deprecated">
  32176. <param name="args" type="java.lang.String[]"/>
  32177. <param name="descriptors" type="java.lang.Class[]"/>
  32178. <exception name="IOException" type="java.io.IOException"/>
  32179. </method>
  32180. <method name="setAggregatorDescriptors"
  32181. abstract="false" native="false" synchronized="false"
  32182. static="true" final="false" visibility="public"
  32183. deprecated="not deprecated">
  32184. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32185. <param name="descriptors" type="java.lang.Class[]"/>
  32186. </method>
  32187. <method name="main"
  32188. abstract="false" native="false" synchronized="false"
  32189. static="true" final="false" visibility="public"
  32190. deprecated="not deprecated">
  32191. <param name="args" type="java.lang.String[]"/>
  32192. <exception name="IOException" type="java.io.IOException"/>
  32193. <doc>
  32194. <![CDATA[create and run an Aggregate based map/reduce job.
  32195. @param args the arguments used for job creation
  32196. @throws IOException]]>
  32197. </doc>
  32198. </method>
  32199. <doc>
  32200. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  32201. framework. The Aggregate is a specialization of map/reduce framework,
  32202. specilizing for performing various simple aggregations.
  32203. Generally speaking, in order to implement an application using Map/Reduce
  32204. model, the developer is to implement Map and Reduce functions (and possibly
  32205. combine function). However, a lot of applications related to counting and
  32206. statistics computing have very similar characteristics. Aggregate abstracts
  32207. out the general patterns of these functions and implementing those patterns.
  32208. In particular, the package provides generic mapper/redducer/combiner classes,
  32209. and a set of built-in value aggregators, and a generic utility class that
  32210. helps user create map/reduce jobs using the generic class. The built-in
  32211. aggregators include:
  32212. sum over numeric values count the number of distinct values compute the
  32213. histogram of values compute the minimum, maximum, media,average, standard
  32214. deviation of numeric values
  32215. The developer using Aggregate will need only to provide a plugin class
  32216. conforming to the following interface:
  32217. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  32218. generateKeyValPairs(Object key, Object value); public void
  32219. configure(JobConfjob); }
  32220. The package also provides a base class, ValueAggregatorBaseDescriptor,
  32221. implementing the above interface. The user can extend the base class and
  32222. implement generateKeyValPairs accordingly.
  32223. The primary work of generateKeyValPairs is to emit one or more key/value
  32224. pairs based on the input key/value pair. The key in an output key/value pair
  32225. encode two pieces of information: aggregation type and aggregation id. The
  32226. value will be aggregated onto the aggregation id according the aggregation
  32227. type.
  32228. This class offers a function to generate a map/reduce job using Aggregate
  32229. framework. The function takes the following parameters: input directory spec
  32230. input format (text or sequence file) output directory a file specifying the
  32231. user plugin class]]>
  32232. </doc>
  32233. </class>
  32234. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  32235. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  32236. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  32237. abstract="true"
  32238. static="false" final="false" visibility="public"
  32239. deprecated="not deprecated">
  32240. <implements name="org.apache.hadoop.mapred.Mapper&lt;K1, V1, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32241. <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;"/>
  32242. <constructor name="ValueAggregatorJobBase"
  32243. static="false" final="false" visibility="public"
  32244. deprecated="not deprecated">
  32245. </constructor>
  32246. <method name="configure"
  32247. abstract="false" native="false" synchronized="false"
  32248. static="false" final="false" visibility="public"
  32249. deprecated="not deprecated">
  32250. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32251. </method>
  32252. <method name="logSpec"
  32253. abstract="false" native="false" synchronized="false"
  32254. static="false" final="false" visibility="protected"
  32255. deprecated="not deprecated">
  32256. </method>
  32257. <method name="close"
  32258. abstract="false" native="false" synchronized="false"
  32259. static="false" final="false" visibility="public"
  32260. deprecated="not deprecated">
  32261. <exception name="IOException" type="java.io.IOException"/>
  32262. </method>
  32263. <field name="aggregatorDescriptorList" type="java.util.ArrayList&lt;org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor&gt;"
  32264. transient="false" volatile="false"
  32265. static="false" final="false" visibility="protected"
  32266. deprecated="not deprecated">
  32267. </field>
  32268. <doc>
  32269. <![CDATA[This abstract class implements some common functionalities of the
  32270. the generic mapper, reducer and combiner classes of Aggregate.]]>
  32271. </doc>
  32272. </class>
  32273. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  32274. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  32275. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  32276. abstract="false"
  32277. static="false" final="false" visibility="public"
  32278. deprecated="not deprecated">
  32279. <constructor name="ValueAggregatorMapper"
  32280. static="false" final="false" visibility="public"
  32281. deprecated="not deprecated">
  32282. </constructor>
  32283. <method name="map"
  32284. abstract="false" native="false" synchronized="false"
  32285. static="false" final="false" visibility="public"
  32286. deprecated="not deprecated">
  32287. <param name="key" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  32288. <param name="value" type="V1 extends org.apache.hadoop.io.Writable"/>
  32289. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32290. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32291. <exception name="IOException" type="java.io.IOException"/>
  32292. <doc>
  32293. <![CDATA[the map function. It iterates through the value aggregator descriptor
  32294. list to generate aggregation id/value pairs and emit them.]]>
  32295. </doc>
  32296. </method>
  32297. <method name="reduce"
  32298. abstract="false" native="false" synchronized="false"
  32299. static="false" final="false" visibility="public"
  32300. deprecated="not deprecated">
  32301. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  32302. <param name="arg1" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32303. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32304. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  32305. <exception name="IOException" type="java.io.IOException"/>
  32306. <doc>
  32307. <![CDATA[Do nothing. Should not be called.]]>
  32308. </doc>
  32309. </method>
  32310. <doc>
  32311. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  32312. </doc>
  32313. </class>
  32314. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  32315. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  32316. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  32317. abstract="false"
  32318. static="false" final="false" visibility="public"
  32319. deprecated="not deprecated">
  32320. <constructor name="ValueAggregatorReducer"
  32321. static="false" final="false" visibility="public"
  32322. deprecated="not deprecated">
  32323. </constructor>
  32324. <method name="reduce"
  32325. abstract="false" native="false" synchronized="false"
  32326. static="false" final="false" visibility="public"
  32327. deprecated="not deprecated">
  32328. <param name="key" type="org.apache.hadoop.io.Text"/>
  32329. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32330. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32331. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32332. <exception name="IOException" type="java.io.IOException"/>
  32333. <doc>
  32334. <![CDATA[@param key
  32335. the key is expected to be a Text object, whose prefix indicates
  32336. the type of aggregation to aggregate the values. In effect, data
  32337. driven computing is achieved. It is assumed that each aggregator's
  32338. getReport method emits appropriate output for the aggregator. This
  32339. may be further customiized.
  32340. @value the values to be aggregated]]>
  32341. </doc>
  32342. </method>
  32343. <method name="map"
  32344. abstract="false" native="false" synchronized="false"
  32345. static="false" final="false" visibility="public"
  32346. deprecated="not deprecated">
  32347. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  32348. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  32349. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32350. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  32351. <exception name="IOException" type="java.io.IOException"/>
  32352. <doc>
  32353. <![CDATA[Do nothing. Should not be called]]>
  32354. </doc>
  32355. </method>
  32356. <doc>
  32357. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  32358. </doc>
  32359. </class>
  32360. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  32361. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  32362. <class name="ValueHistogram" extends="java.lang.Object"
  32363. abstract="false"
  32364. static="false" final="false" visibility="public"
  32365. deprecated="not deprecated">
  32366. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  32367. <constructor name="ValueHistogram"
  32368. static="false" final="false" visibility="public"
  32369. deprecated="not deprecated">
  32370. </constructor>
  32371. <method name="addNextValue"
  32372. abstract="false" native="false" synchronized="false"
  32373. static="false" final="false" visibility="public"
  32374. deprecated="not deprecated">
  32375. <param name="val" type="java.lang.Object"/>
  32376. <doc>
  32377. <![CDATA[add the given val to the aggregator.
  32378. @param val the value to be added. It is expected to be a string
  32379. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  32380. </doc>
  32381. </method>
  32382. <method name="getReport" return="java.lang.String"
  32383. abstract="false" native="false" synchronized="false"
  32384. static="false" final="false" visibility="public"
  32385. deprecated="not deprecated">
  32386. <doc>
  32387. <![CDATA[@return the string representation of this aggregator.
  32388. It includes the following basic statistics of the histogram:
  32389. the number of unique values
  32390. the minimum value
  32391. the media value
  32392. the maximum value
  32393. the average value
  32394. the standard deviation]]>
  32395. </doc>
  32396. </method>
  32397. <method name="getReportDetails" return="java.lang.String"
  32398. abstract="false" native="false" synchronized="false"
  32399. static="false" final="false" visibility="public"
  32400. deprecated="not deprecated">
  32401. <doc>
  32402. <![CDATA[@return a string representation of the list of value/frequence pairs of
  32403. the histogram]]>
  32404. </doc>
  32405. </method>
  32406. <method name="getCombinerOutput" return="java.util.ArrayList"
  32407. abstract="false" native="false" synchronized="false"
  32408. static="false" final="false" visibility="public"
  32409. deprecated="not deprecated">
  32410. <doc>
  32411. <![CDATA[@return a list value/frequence pairs.
  32412. The return value is expected to be used by the reducer.]]>
  32413. </doc>
  32414. </method>
  32415. <method name="getReportItems" return="java.util.TreeMap"
  32416. abstract="false" native="false" synchronized="false"
  32417. static="false" final="false" visibility="public"
  32418. deprecated="not deprecated">
  32419. <doc>
  32420. <![CDATA[@return a TreeMap representation of the histogram]]>
  32421. </doc>
  32422. </method>
  32423. <method name="reset"
  32424. abstract="false" native="false" synchronized="false"
  32425. static="false" final="false" visibility="public"
  32426. deprecated="not deprecated">
  32427. <doc>
  32428. <![CDATA[reset the aggregator]]>
  32429. </doc>
  32430. </method>
  32431. <doc>
  32432. <![CDATA[This class implements a value aggregator that computes the
  32433. histogram of a sequence of strings.]]>
  32434. </doc>
  32435. </class>
  32436. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  32437. </package>
  32438. <package name="org.apache.hadoop.mapred.lib.db">
  32439. <!-- start class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  32440. <class name="DBConfiguration" extends="java.lang.Object"
  32441. abstract="false"
  32442. static="false" final="false" visibility="public"
  32443. deprecated="not deprecated">
  32444. <method name="configureDB"
  32445. abstract="false" native="false" synchronized="false"
  32446. static="true" final="false" visibility="public"
  32447. deprecated="not deprecated">
  32448. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32449. <param name="driverClass" type="java.lang.String"/>
  32450. <param name="dbUrl" type="java.lang.String"/>
  32451. <param name="userName" type="java.lang.String"/>
  32452. <param name="passwd" type="java.lang.String"/>
  32453. <doc>
  32454. <![CDATA[Sets the DB access related fields in the JobConf.
  32455. @param job the job
  32456. @param driverClass JDBC Driver class name
  32457. @param dbUrl JDBC DB access URL.
  32458. @param userName DB access username
  32459. @param passwd DB access passwd]]>
  32460. </doc>
  32461. </method>
  32462. <method name="configureDB"
  32463. abstract="false" native="false" synchronized="false"
  32464. static="true" final="false" visibility="public"
  32465. deprecated="not deprecated">
  32466. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32467. <param name="driverClass" type="java.lang.String"/>
  32468. <param name="dbUrl" type="java.lang.String"/>
  32469. <doc>
  32470. <![CDATA[Sets the DB access related fields in the JobConf.
  32471. @param job the job
  32472. @param driverClass JDBC Driver class name
  32473. @param dbUrl JDBC DB access URL.]]>
  32474. </doc>
  32475. </method>
  32476. <field name="DRIVER_CLASS_PROPERTY" type="java.lang.String"
  32477. transient="false" volatile="false"
  32478. static="true" final="true" visibility="public"
  32479. deprecated="not deprecated">
  32480. <doc>
  32481. <![CDATA[The JDBC Driver class name]]>
  32482. </doc>
  32483. </field>
  32484. <field name="URL_PROPERTY" type="java.lang.String"
  32485. transient="false" volatile="false"
  32486. static="true" final="true" visibility="public"
  32487. deprecated="not deprecated">
  32488. <doc>
  32489. <![CDATA[JDBC Database access URL]]>
  32490. </doc>
  32491. </field>
  32492. <field name="USERNAME_PROPERTY" type="java.lang.String"
  32493. transient="false" volatile="false"
  32494. static="true" final="true" visibility="public"
  32495. deprecated="not deprecated">
  32496. <doc>
  32497. <![CDATA[User name to access the database]]>
  32498. </doc>
  32499. </field>
  32500. <field name="PASSWORD_PROPERTY" type="java.lang.String"
  32501. transient="false" volatile="false"
  32502. static="true" final="true" visibility="public"
  32503. deprecated="not deprecated">
  32504. <doc>
  32505. <![CDATA[Password to access the database]]>
  32506. </doc>
  32507. </field>
  32508. <field name="INPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  32509. transient="false" volatile="false"
  32510. static="true" final="true" visibility="public"
  32511. deprecated="not deprecated">
  32512. <doc>
  32513. <![CDATA[Input table name]]>
  32514. </doc>
  32515. </field>
  32516. <field name="INPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  32517. transient="false" volatile="false"
  32518. static="true" final="true" visibility="public"
  32519. deprecated="not deprecated">
  32520. <doc>
  32521. <![CDATA[Field names in the Input table]]>
  32522. </doc>
  32523. </field>
  32524. <field name="INPUT_CONDITIONS_PROPERTY" type="java.lang.String"
  32525. transient="false" volatile="false"
  32526. static="true" final="true" visibility="public"
  32527. deprecated="not deprecated">
  32528. <doc>
  32529. <![CDATA[WHERE clause in the input SELECT statement]]>
  32530. </doc>
  32531. </field>
  32532. <field name="INPUT_ORDER_BY_PROPERTY" type="java.lang.String"
  32533. transient="false" volatile="false"
  32534. static="true" final="true" visibility="public"
  32535. deprecated="not deprecated">
  32536. <doc>
  32537. <![CDATA[ORDER BY clause in the input SELECT statement]]>
  32538. </doc>
  32539. </field>
  32540. <field name="INPUT_QUERY" type="java.lang.String"
  32541. transient="false" volatile="false"
  32542. static="true" final="true" visibility="public"
  32543. deprecated="not deprecated">
  32544. <doc>
  32545. <![CDATA[Whole input query, exluding LIMIT...OFFSET]]>
  32546. </doc>
  32547. </field>
  32548. <field name="INPUT_COUNT_QUERY" type="java.lang.String"
  32549. transient="false" volatile="false"
  32550. static="true" final="true" visibility="public"
  32551. deprecated="not deprecated">
  32552. <doc>
  32553. <![CDATA[Input query to get the count of records]]>
  32554. </doc>
  32555. </field>
  32556. <field name="INPUT_CLASS_PROPERTY" type="java.lang.String"
  32557. transient="false" volatile="false"
  32558. static="true" final="true" visibility="public"
  32559. deprecated="not deprecated">
  32560. <doc>
  32561. <![CDATA[Class name implementing DBWritable which will hold input tuples]]>
  32562. </doc>
  32563. </field>
  32564. <field name="OUTPUT_TABLE_NAME_PROPERTY" type="java.lang.String"
  32565. transient="false" volatile="false"
  32566. static="true" final="true" visibility="public"
  32567. deprecated="not deprecated">
  32568. <doc>
  32569. <![CDATA[Output table name]]>
  32570. </doc>
  32571. </field>
  32572. <field name="OUTPUT_FIELD_NAMES_PROPERTY" type="java.lang.String"
  32573. transient="false" volatile="false"
  32574. static="true" final="true" visibility="public"
  32575. deprecated="not deprecated">
  32576. <doc>
  32577. <![CDATA[Field names in the Output table]]>
  32578. </doc>
  32579. </field>
  32580. <doc>
  32581. <![CDATA[A container for configuration property names for jobs with DB input/output.
  32582. <br>
  32583. The job can be configured using the static methods in this class,
  32584. {@link DBInputFormat}, and {@link DBOutputFormat}.
  32585. <p>
  32586. Alternatively, the properties can be set in the configuration with proper
  32587. values.
  32588. @see DBConfiguration#configureDB(JobConf, String, String, String, String)
  32589. @see DBInputFormat#setInput(JobConf, Class, String, String)
  32590. @see DBInputFormat#setInput(JobConf, Class, String, String, String, String...)
  32591. @see DBOutputFormat#setOutput(JobConf, String, String...)]]>
  32592. </doc>
  32593. </class>
  32594. <!-- end class org.apache.hadoop.mapred.lib.db.DBConfiguration -->
  32595. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  32596. <class name="DBInputFormat" extends="java.lang.Object"
  32597. abstract="false"
  32598. static="false" final="false" visibility="public"
  32599. deprecated="not deprecated">
  32600. <implements name="org.apache.hadoop.mapred.InputFormat&lt;org.apache.hadoop.io.LongWritable, T&gt;"/>
  32601. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  32602. <constructor name="DBInputFormat"
  32603. static="false" final="false" visibility="public"
  32604. deprecated="not deprecated">
  32605. </constructor>
  32606. <method name="configure"
  32607. abstract="false" native="false" synchronized="false"
  32608. static="false" final="false" visibility="public"
  32609. deprecated="not deprecated">
  32610. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32611. <doc>
  32612. <![CDATA[{@inheritDoc}]]>
  32613. </doc>
  32614. </method>
  32615. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, T&gt;"
  32616. abstract="false" native="false" synchronized="false"
  32617. static="false" final="false" visibility="public"
  32618. deprecated="not deprecated">
  32619. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  32620. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32621. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32622. <exception name="IOException" type="java.io.IOException"/>
  32623. <doc>
  32624. <![CDATA[{@inheritDoc}]]>
  32625. </doc>
  32626. </method>
  32627. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  32628. abstract="false" native="false" synchronized="false"
  32629. static="false" final="false" visibility="public"
  32630. deprecated="not deprecated">
  32631. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32632. <param name="chunks" type="int"/>
  32633. <exception name="IOException" type="java.io.IOException"/>
  32634. <doc>
  32635. <![CDATA[{@inheritDoc}]]>
  32636. </doc>
  32637. </method>
  32638. <method name="getCountQuery" return="java.lang.String"
  32639. abstract="false" native="false" synchronized="false"
  32640. static="false" final="false" visibility="protected"
  32641. deprecated="not deprecated">
  32642. <doc>
  32643. <![CDATA[Returns the query for getting the total number of rows,
  32644. subclasses can override this for custom behaviour.]]>
  32645. </doc>
  32646. </method>
  32647. <method name="setInput"
  32648. abstract="false" native="false" synchronized="false"
  32649. static="true" final="false" visibility="public"
  32650. deprecated="not deprecated">
  32651. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32652. <param name="inputClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.lib.db.DBWritable&gt;"/>
  32653. <param name="tableName" type="java.lang.String"/>
  32654. <param name="conditions" type="java.lang.String"/>
  32655. <param name="orderBy" type="java.lang.String"/>
  32656. <param name="fieldNames" type="java.lang.String[]"/>
  32657. <doc>
  32658. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  32659. @param job The job
  32660. @param inputClass the class object implementing DBWritable, which is the
  32661. Java object holding tuple fields.
  32662. @param tableName The table to read data from
  32663. @param conditions The condition which to select data with, eg. '(updated >
  32664. 20070101 AND length > 0)'
  32665. @param orderBy the fieldNames in the orderBy clause.
  32666. @param fieldNames The field names in the table
  32667. @see #setInput(JobConf, Class, String, String)]]>
  32668. </doc>
  32669. </method>
  32670. <method name="setInput"
  32671. abstract="false" native="false" synchronized="false"
  32672. static="true" final="false" visibility="public"
  32673. deprecated="not deprecated">
  32674. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32675. <param name="inputClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.lib.db.DBWritable&gt;"/>
  32676. <param name="inputQuery" type="java.lang.String"/>
  32677. <param name="inputCountQuery" type="java.lang.String"/>
  32678. <doc>
  32679. <![CDATA[Initializes the map-part of the job with the appropriate input settings.
  32680. @param job The job
  32681. @param inputClass the class object implementing DBWritable, which is the
  32682. Java object holding tuple fields.
  32683. @param inputQuery the input query to select fields. Example :
  32684. "SELECT f1, f2, f3 FROM Mytable ORDER BY f1"
  32685. @param inputCountQuery the input query that returns the number of records in
  32686. the table.
  32687. Example : "SELECT COUNT(f1) FROM Mytable"
  32688. @see #setInput(JobConf, Class, String, String, String, String...)]]>
  32689. </doc>
  32690. </method>
  32691. <doc>
  32692. <![CDATA[A InputFormat that reads input data from an SQL table.
  32693. <p>
  32694. DBInputFormat emits LongWritables containing the record number as
  32695. key and DBWritables as value.
  32696. The SQL query, and input class can be using one of the two
  32697. setInput methods.]]>
  32698. </doc>
  32699. </class>
  32700. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat -->
  32701. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  32702. <class name="DBInputFormat.DBInputSplit" extends="java.lang.Object"
  32703. abstract="false"
  32704. static="true" final="false" visibility="protected"
  32705. deprecated="not deprecated">
  32706. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  32707. <constructor name="DBInputFormat.DBInputSplit"
  32708. static="false" final="false" visibility="public"
  32709. deprecated="not deprecated">
  32710. <doc>
  32711. <![CDATA[Default Constructor]]>
  32712. </doc>
  32713. </constructor>
  32714. <constructor name="DBInputFormat.DBInputSplit" type="long, long"
  32715. static="false" final="false" visibility="public"
  32716. deprecated="not deprecated">
  32717. <doc>
  32718. <![CDATA[Convenience Constructor
  32719. @param start the index of the first row to select
  32720. @param end the index of the last row to select]]>
  32721. </doc>
  32722. </constructor>
  32723. <method name="getLocations" return="java.lang.String[]"
  32724. abstract="false" native="false" synchronized="false"
  32725. static="false" final="false" visibility="public"
  32726. deprecated="not deprecated">
  32727. <exception name="IOException" type="java.io.IOException"/>
  32728. <doc>
  32729. <![CDATA[{@inheritDoc}]]>
  32730. </doc>
  32731. </method>
  32732. <method name="getStart" return="long"
  32733. abstract="false" native="false" synchronized="false"
  32734. static="false" final="false" visibility="public"
  32735. deprecated="not deprecated">
  32736. <doc>
  32737. <![CDATA[@return The index of the first row to select]]>
  32738. </doc>
  32739. </method>
  32740. <method name="getEnd" return="long"
  32741. abstract="false" native="false" synchronized="false"
  32742. static="false" final="false" visibility="public"
  32743. deprecated="not deprecated">
  32744. <doc>
  32745. <![CDATA[@return The index of the last row to select]]>
  32746. </doc>
  32747. </method>
  32748. <method name="getLength" return="long"
  32749. abstract="false" native="false" synchronized="false"
  32750. static="false" final="false" visibility="public"
  32751. deprecated="not deprecated">
  32752. <exception name="IOException" type="java.io.IOException"/>
  32753. <doc>
  32754. <![CDATA[@return The total row count in this split]]>
  32755. </doc>
  32756. </method>
  32757. <method name="readFields"
  32758. abstract="false" native="false" synchronized="false"
  32759. static="false" final="false" visibility="public"
  32760. deprecated="not deprecated">
  32761. <param name="input" type="java.io.DataInput"/>
  32762. <exception name="IOException" type="java.io.IOException"/>
  32763. <doc>
  32764. <![CDATA[{@inheritDoc}]]>
  32765. </doc>
  32766. </method>
  32767. <method name="write"
  32768. abstract="false" native="false" synchronized="false"
  32769. static="false" final="false" visibility="public"
  32770. deprecated="not deprecated">
  32771. <param name="output" type="java.io.DataOutput"/>
  32772. <exception name="IOException" type="java.io.IOException"/>
  32773. <doc>
  32774. <![CDATA[{@inheritDoc}]]>
  32775. </doc>
  32776. </method>
  32777. <doc>
  32778. <![CDATA[A InputSplit that spans a set of rows]]>
  32779. </doc>
  32780. </class>
  32781. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit -->
  32782. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  32783. <class name="DBInputFormat.DBRecordReader" extends="java.lang.Object"
  32784. abstract="false"
  32785. static="false" final="false" visibility="protected"
  32786. deprecated="not deprecated">
  32787. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, T&gt;"/>
  32788. <constructor name="DBInputFormat.DBRecordReader" type="org.apache.hadoop.mapred.lib.db.DBInputFormat.DBInputSplit, java.lang.Class&lt;T&gt;, org.apache.hadoop.mapred.JobConf"
  32789. static="false" final="false" visibility="protected"
  32790. deprecated="not deprecated">
  32791. <exception name="SQLException" type="java.sql.SQLException"/>
  32792. <doc>
  32793. <![CDATA[@param split The InputSplit to read data for
  32794. @throws SQLException]]>
  32795. </doc>
  32796. </constructor>
  32797. <method name="getSelectQuery" return="java.lang.String"
  32798. abstract="false" native="false" synchronized="false"
  32799. static="false" final="false" visibility="protected"
  32800. deprecated="not deprecated">
  32801. <doc>
  32802. <![CDATA[Returns the query for selecting the records,
  32803. subclasses can override this for custom behaviour.]]>
  32804. </doc>
  32805. </method>
  32806. <method name="close"
  32807. abstract="false" native="false" synchronized="false"
  32808. static="false" final="false" visibility="public"
  32809. deprecated="not deprecated">
  32810. <exception name="IOException" type="java.io.IOException"/>
  32811. <doc>
  32812. <![CDATA[{@inheritDoc}]]>
  32813. </doc>
  32814. </method>
  32815. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  32816. abstract="false" native="false" synchronized="false"
  32817. static="false" final="false" visibility="public"
  32818. deprecated="not deprecated">
  32819. <doc>
  32820. <![CDATA[{@inheritDoc}]]>
  32821. </doc>
  32822. </method>
  32823. <method name="createValue" return="T extends org.apache.hadoop.mapred.lib.db.DBWritable"
  32824. abstract="false" native="false" synchronized="false"
  32825. static="false" final="false" visibility="public"
  32826. deprecated="not deprecated">
  32827. <doc>
  32828. <![CDATA[{@inheritDoc}]]>
  32829. </doc>
  32830. </method>
  32831. <method name="getPos" return="long"
  32832. abstract="false" native="false" synchronized="false"
  32833. static="false" final="false" visibility="public"
  32834. deprecated="not deprecated">
  32835. <exception name="IOException" type="java.io.IOException"/>
  32836. <doc>
  32837. <![CDATA[{@inheritDoc}]]>
  32838. </doc>
  32839. </method>
  32840. <method name="getProgress" return="float"
  32841. abstract="false" native="false" synchronized="false"
  32842. static="false" final="false" visibility="public"
  32843. deprecated="not deprecated">
  32844. <exception name="IOException" type="java.io.IOException"/>
  32845. <doc>
  32846. <![CDATA[{@inheritDoc}]]>
  32847. </doc>
  32848. </method>
  32849. <method name="next" return="boolean"
  32850. abstract="false" native="false" synchronized="false"
  32851. static="false" final="false" visibility="public"
  32852. deprecated="not deprecated">
  32853. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  32854. <param name="value" type="T extends org.apache.hadoop.mapred.lib.db.DBWritable"/>
  32855. <exception name="IOException" type="java.io.IOException"/>
  32856. <doc>
  32857. <![CDATA[{@inheritDoc}]]>
  32858. </doc>
  32859. </method>
  32860. <doc>
  32861. <![CDATA[A RecordReader that reads records from a SQL table.
  32862. Emits LongWritables containing the record number as
  32863. key and DBWritables as value.]]>
  32864. </doc>
  32865. </class>
  32866. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.DBRecordReader -->
  32867. <!-- start class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  32868. <class name="DBInputFormat.NullDBWritable" extends="java.lang.Object"
  32869. abstract="false"
  32870. static="true" final="false" visibility="public"
  32871. deprecated="not deprecated">
  32872. <implements name="org.apache.hadoop.mapred.lib.db.DBWritable"/>
  32873. <implements name="org.apache.hadoop.io.Writable"/>
  32874. <constructor name="DBInputFormat.NullDBWritable"
  32875. static="false" final="false" visibility="public"
  32876. deprecated="not deprecated">
  32877. </constructor>
  32878. <method name="readFields"
  32879. abstract="false" native="false" synchronized="false"
  32880. static="false" final="false" visibility="public"
  32881. deprecated="not deprecated">
  32882. <param name="in" type="java.io.DataInput"/>
  32883. <exception name="IOException" type="java.io.IOException"/>
  32884. </method>
  32885. <method name="readFields"
  32886. abstract="false" native="false" synchronized="false"
  32887. static="false" final="false" visibility="public"
  32888. deprecated="not deprecated">
  32889. <param name="arg0" type="java.sql.ResultSet"/>
  32890. <exception name="SQLException" type="java.sql.SQLException"/>
  32891. </method>
  32892. <method name="write"
  32893. abstract="false" native="false" synchronized="false"
  32894. static="false" final="false" visibility="public"
  32895. deprecated="not deprecated">
  32896. <param name="out" type="java.io.DataOutput"/>
  32897. <exception name="IOException" type="java.io.IOException"/>
  32898. </method>
  32899. <method name="write"
  32900. abstract="false" native="false" synchronized="false"
  32901. static="false" final="false" visibility="public"
  32902. deprecated="not deprecated">
  32903. <param name="arg0" type="java.sql.PreparedStatement"/>
  32904. <exception name="SQLException" type="java.sql.SQLException"/>
  32905. </method>
  32906. <doc>
  32907. <![CDATA[A Class that does nothing, implementing DBWritable]]>
  32908. </doc>
  32909. </class>
  32910. <!-- end class org.apache.hadoop.mapred.lib.db.DBInputFormat.NullDBWritable -->
  32911. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  32912. <class name="DBOutputFormat" extends="java.lang.Object"
  32913. abstract="false"
  32914. static="false" final="false" visibility="public"
  32915. deprecated="not deprecated">
  32916. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  32917. <constructor name="DBOutputFormat"
  32918. static="false" final="false" visibility="public"
  32919. deprecated="not deprecated">
  32920. </constructor>
  32921. <method name="constructQuery" return="java.lang.String"
  32922. abstract="false" native="false" synchronized="false"
  32923. static="false" final="false" visibility="protected"
  32924. deprecated="not deprecated">
  32925. <param name="table" type="java.lang.String"/>
  32926. <param name="fieldNames" type="java.lang.String[]"/>
  32927. <doc>
  32928. <![CDATA[Constructs the query used as the prepared statement to insert data.
  32929. @param table
  32930. the table to insert into
  32931. @param fieldNames
  32932. the fields to insert into. If field names are unknown, supply an
  32933. array of nulls.]]>
  32934. </doc>
  32935. </method>
  32936. <method name="checkOutputSpecs"
  32937. abstract="false" native="false" synchronized="false"
  32938. static="false" final="false" visibility="public"
  32939. deprecated="not deprecated">
  32940. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  32941. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32942. <exception name="IOException" type="java.io.IOException"/>
  32943. <doc>
  32944. <![CDATA[{@inheritDoc}]]>
  32945. </doc>
  32946. </method>
  32947. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  32948. abstract="false" native="false" synchronized="false"
  32949. static="false" final="false" visibility="public"
  32950. deprecated="not deprecated">
  32951. <param name="filesystem" type="org.apache.hadoop.fs.FileSystem"/>
  32952. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32953. <param name="name" type="java.lang.String"/>
  32954. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  32955. <exception name="IOException" type="java.io.IOException"/>
  32956. <doc>
  32957. <![CDATA[{@inheritDoc}]]>
  32958. </doc>
  32959. </method>
  32960. <method name="setOutput"
  32961. abstract="false" native="false" synchronized="false"
  32962. static="true" final="false" visibility="public"
  32963. deprecated="not deprecated">
  32964. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32965. <param name="tableName" type="java.lang.String"/>
  32966. <param name="fieldNames" type="java.lang.String[]"/>
  32967. <doc>
  32968. <![CDATA[Initializes the reduce-part of the job with the appropriate output settings
  32969. @param job
  32970. The job
  32971. @param tableName
  32972. The table to insert data into
  32973. @param fieldNames
  32974. The field names in the table. If unknown, supply the appropriate
  32975. number of nulls.]]>
  32976. </doc>
  32977. </method>
  32978. <doc>
  32979. <![CDATA[A OutputFormat that sends the reduce output to a SQL table.
  32980. <p>
  32981. {@link DBOutputFormat} accepts &lt;key,value&gt; pairs, where
  32982. key has a type extending DBWritable. Returned {@link RecordWriter}
  32983. writes <b>only the key</b> to the database with a batch SQL query.]]>
  32984. </doc>
  32985. </class>
  32986. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat -->
  32987. <!-- start class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  32988. <class name="DBOutputFormat.DBRecordWriter" extends="java.lang.Object"
  32989. abstract="false"
  32990. static="false" final="false" visibility="protected"
  32991. deprecated="not deprecated">
  32992. <implements name="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"/>
  32993. <constructor name="DBOutputFormat.DBRecordWriter" type="java.sql.Connection, java.sql.PreparedStatement"
  32994. static="false" final="false" visibility="protected"
  32995. deprecated="not deprecated">
  32996. <exception name="SQLException" type="java.sql.SQLException"/>
  32997. </constructor>
  32998. <method name="close"
  32999. abstract="false" native="false" synchronized="false"
  33000. static="false" final="false" visibility="public"
  33001. deprecated="not deprecated">
  33002. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33003. <exception name="IOException" type="java.io.IOException"/>
  33004. <doc>
  33005. <![CDATA[{@inheritDoc}]]>
  33006. </doc>
  33007. </method>
  33008. <method name="write"
  33009. abstract="false" native="false" synchronized="false"
  33010. static="false" final="false" visibility="public"
  33011. deprecated="not deprecated">
  33012. <param name="key" type="K extends org.apache.hadoop.mapred.lib.db.DBWritable"/>
  33013. <param name="value" type="V"/>
  33014. <exception name="IOException" type="java.io.IOException"/>
  33015. <doc>
  33016. <![CDATA[{@inheritDoc}]]>
  33017. </doc>
  33018. </method>
  33019. <doc>
  33020. <![CDATA[A RecordWriter that writes the reduce output to a SQL table]]>
  33021. </doc>
  33022. </class>
  33023. <!-- end class org.apache.hadoop.mapred.lib.db.DBOutputFormat.DBRecordWriter -->
  33024. <!-- start interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  33025. <interface name="DBWritable" abstract="true"
  33026. static="false" final="false" visibility="public"
  33027. deprecated="not deprecated">
  33028. <method name="write"
  33029. abstract="false" native="false" synchronized="false"
  33030. static="false" final="false" visibility="public"
  33031. deprecated="not deprecated">
  33032. <param name="statement" type="java.sql.PreparedStatement"/>
  33033. <exception name="SQLException" type="java.sql.SQLException"/>
  33034. <doc>
  33035. <![CDATA[Sets the fields of the object in the {@link PreparedStatement}.
  33036. @param statement the statement that the fields are put into.
  33037. @throws SQLException]]>
  33038. </doc>
  33039. </method>
  33040. <method name="readFields"
  33041. abstract="false" native="false" synchronized="false"
  33042. static="false" final="false" visibility="public"
  33043. deprecated="not deprecated">
  33044. <param name="resultSet" type="java.sql.ResultSet"/>
  33045. <exception name="SQLException" type="java.sql.SQLException"/>
  33046. <doc>
  33047. <![CDATA[Reads the fields of the object from the {@link ResultSet}.
  33048. @param resultSet the {@link ResultSet} to get the fields from.
  33049. @throws SQLException]]>
  33050. </doc>
  33051. </method>
  33052. <doc>
  33053. <![CDATA[Objects that are read from/written to a database should implement
  33054. <code>DBWritable</code>. DBWritable, is similar to {@link Writable}
  33055. except that the {@link #write(PreparedStatement)} method takes a
  33056. {@link PreparedStatement}, and {@link #readFields(ResultSet)}
  33057. takes a {@link ResultSet}.
  33058. <p>
  33059. Implementations are responsible for writing the fields of the object
  33060. to PreparedStatement, and reading the fields of the object from the
  33061. ResultSet.
  33062. <p>Example:</p>
  33063. If we have the following table in the database :
  33064. <pre>
  33065. CREATE TABLE MyTable (
  33066. counter INTEGER NOT NULL,
  33067. timestamp BIGINT NOT NULL,
  33068. );
  33069. </pre>
  33070. then we can read/write the tuples from/to the table with :
  33071. <p><pre>
  33072. public class MyWritable implements Writable, DBWritable {
  33073. // Some data
  33074. private int counter;
  33075. private long timestamp;
  33076. //Writable#write() implementation
  33077. public void write(DataOutput out) throws IOException {
  33078. out.writeInt(counter);
  33079. out.writeLong(timestamp);
  33080. }
  33081. //Writable#readFields() implementation
  33082. public void readFields(DataInput in) throws IOException {
  33083. counter = in.readInt();
  33084. timestamp = in.readLong();
  33085. }
  33086. public void write(PreparedStatement statement) throws SQLException {
  33087. statement.setInt(1, counter);
  33088. statement.setLong(2, timestamp);
  33089. }
  33090. public void readFields(ResultSet resultSet) throws SQLException {
  33091. counter = resultSet.getInt(1);
  33092. timestamp = resultSet.getLong(2);
  33093. }
  33094. }
  33095. </pre></p>]]>
  33096. </doc>
  33097. </interface>
  33098. <!-- end interface org.apache.hadoop.mapred.lib.db.DBWritable -->
  33099. </package>
  33100. <package name="org.apache.hadoop.mapred.pipes">
  33101. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  33102. <class name="Submitter" extends="org.apache.hadoop.conf.Configured"
  33103. abstract="false"
  33104. static="false" final="false" visibility="public"
  33105. deprecated="not deprecated">
  33106. <implements name="org.apache.hadoop.util.Tool"/>
  33107. <constructor name="Submitter"
  33108. static="false" final="false" visibility="public"
  33109. deprecated="not deprecated">
  33110. </constructor>
  33111. <constructor name="Submitter" type="org.apache.hadoop.conf.Configuration"
  33112. static="false" final="false" visibility="public"
  33113. deprecated="not deprecated">
  33114. </constructor>
  33115. <method name="getExecutable" return="java.lang.String"
  33116. abstract="false" native="false" synchronized="false"
  33117. static="true" final="false" visibility="public"
  33118. deprecated="not deprecated">
  33119. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33120. <doc>
  33121. <![CDATA[Get the URI of the application's executable.
  33122. @param conf
  33123. @return the URI where the application's executable is located]]>
  33124. </doc>
  33125. </method>
  33126. <method name="setExecutable"
  33127. abstract="false" native="false" synchronized="false"
  33128. static="true" final="false" visibility="public"
  33129. deprecated="not deprecated">
  33130. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33131. <param name="executable" type="java.lang.String"/>
  33132. <doc>
  33133. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  33134. location.
  33135. @param conf
  33136. @param executable The URI of the application's executable.]]>
  33137. </doc>
  33138. </method>
  33139. <method name="setIsJavaRecordReader"
  33140. abstract="false" native="false" synchronized="false"
  33141. static="true" final="false" visibility="public"
  33142. deprecated="not deprecated">
  33143. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33144. <param name="value" type="boolean"/>
  33145. <doc>
  33146. <![CDATA[Set whether the job is using a Java RecordReader.
  33147. @param conf the configuration to modify
  33148. @param value the new value]]>
  33149. </doc>
  33150. </method>
  33151. <method name="getIsJavaRecordReader" return="boolean"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="true" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33156. <doc>
  33157. <![CDATA[Check whether the job is using a Java RecordReader
  33158. @param conf the configuration to check
  33159. @return is it a Java RecordReader?]]>
  33160. </doc>
  33161. </method>
  33162. <method name="setIsJavaMapper"
  33163. abstract="false" native="false" synchronized="false"
  33164. static="true" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33167. <param name="value" type="boolean"/>
  33168. <doc>
  33169. <![CDATA[Set whether the Mapper is written in Java.
  33170. @param conf the configuration to modify
  33171. @param value the new value]]>
  33172. </doc>
  33173. </method>
  33174. <method name="getIsJavaMapper" return="boolean"
  33175. abstract="false" native="false" synchronized="false"
  33176. static="true" final="false" visibility="public"
  33177. deprecated="not deprecated">
  33178. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33179. <doc>
  33180. <![CDATA[Check whether the job is using a Java Mapper.
  33181. @param conf the configuration to check
  33182. @return is it a Java Mapper?]]>
  33183. </doc>
  33184. </method>
  33185. <method name="setIsJavaReducer"
  33186. abstract="false" native="false" synchronized="false"
  33187. static="true" final="false" visibility="public"
  33188. deprecated="not deprecated">
  33189. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33190. <param name="value" type="boolean"/>
  33191. <doc>
  33192. <![CDATA[Set whether the Reducer is written in Java.
  33193. @param conf the configuration to modify
  33194. @param value the new value]]>
  33195. </doc>
  33196. </method>
  33197. <method name="getIsJavaReducer" return="boolean"
  33198. abstract="false" native="false" synchronized="false"
  33199. static="true" final="false" visibility="public"
  33200. deprecated="not deprecated">
  33201. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33202. <doc>
  33203. <![CDATA[Check whether the job is using a Java Reducer.
  33204. @param conf the configuration to check
  33205. @return is it a Java Reducer?]]>
  33206. </doc>
  33207. </method>
  33208. <method name="setIsJavaRecordWriter"
  33209. abstract="false" native="false" synchronized="false"
  33210. static="true" final="false" visibility="public"
  33211. deprecated="not deprecated">
  33212. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33213. <param name="value" type="boolean"/>
  33214. <doc>
  33215. <![CDATA[Set whether the job will use a Java RecordWriter.
  33216. @param conf the configuration to modify
  33217. @param value the new value to set]]>
  33218. </doc>
  33219. </method>
  33220. <method name="getIsJavaRecordWriter" return="boolean"
  33221. abstract="false" native="false" synchronized="false"
  33222. static="true" final="false" visibility="public"
  33223. deprecated="not deprecated">
  33224. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33225. <doc>
  33226. <![CDATA[Will the reduce use a Java RecordWriter?
  33227. @param conf the configuration to check
  33228. @return true, if the output of the job will be written by Java]]>
  33229. </doc>
  33230. </method>
  33231. <method name="getKeepCommandFile" return="boolean"
  33232. abstract="false" native="false" synchronized="false"
  33233. static="true" final="false" visibility="public"
  33234. deprecated="not deprecated">
  33235. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33236. <doc>
  33237. <![CDATA[Does the user want to keep the command file for debugging? If this is
  33238. true, pipes will write a copy of the command data to a file in the
  33239. task directory named "downlink.data", which may be used to run the C++
  33240. program under the debugger. You probably also want to set
  33241. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  33242. being deleted.
  33243. To run using the data file, set the environment variable
  33244. "hadoop.pipes.command.file" to point to the file.
  33245. @param conf the configuration to check
  33246. @return will the framework save the command file?]]>
  33247. </doc>
  33248. </method>
  33249. <method name="setKeepCommandFile"
  33250. abstract="false" native="false" synchronized="false"
  33251. static="true" final="false" visibility="public"
  33252. deprecated="not deprecated">
  33253. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33254. <param name="keep" type="boolean"/>
  33255. <doc>
  33256. <![CDATA[Set whether to keep the command file for debugging
  33257. @param conf the configuration to modify
  33258. @param keep the new value]]>
  33259. </doc>
  33260. </method>
  33261. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  33262. abstract="false" native="false" synchronized="false"
  33263. static="true" final="false" visibility="public"
  33264. deprecated="Use {@link Submitter#runJob(JobConf)}">
  33265. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33266. <exception name="IOException" type="java.io.IOException"/>
  33267. <doc>
  33268. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  33269. to the job to run under pipes are made to the configuration.
  33270. @param conf the job to submit to the cluster (MODIFIED)
  33271. @throws IOException
  33272. @deprecated Use {@link Submitter#runJob(JobConf)}]]>
  33273. </doc>
  33274. </method>
  33275. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  33276. abstract="false" native="false" synchronized="false"
  33277. static="true" final="false" visibility="public"
  33278. deprecated="not deprecated">
  33279. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33280. <exception name="IOException" type="java.io.IOException"/>
  33281. <doc>
  33282. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  33283. to the job to run under pipes are made to the configuration.
  33284. @param conf the job to submit to the cluster (MODIFIED)
  33285. @throws IOException]]>
  33286. </doc>
  33287. </method>
  33288. <method name="jobSubmit" return="org.apache.hadoop.mapred.RunningJob"
  33289. abstract="false" native="false" synchronized="false"
  33290. static="true" final="false" visibility="public"
  33291. deprecated="not deprecated">
  33292. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33293. <exception name="IOException" type="java.io.IOException"/>
  33294. <doc>
  33295. <![CDATA[Submit a job to the Map-Reduce framework.
  33296. This returns a handle to the {@link RunningJob} which can be used to track
  33297. the running-job.
  33298. @param conf the job configuration.
  33299. @return a handle to the {@link RunningJob} which can be used to track the
  33300. running-job.
  33301. @throws IOException]]>
  33302. </doc>
  33303. </method>
  33304. <method name="run" return="int"
  33305. abstract="false" native="false" synchronized="false"
  33306. static="false" final="false" visibility="public"
  33307. deprecated="not deprecated">
  33308. <param name="args" type="java.lang.String[]"/>
  33309. <exception name="Exception" type="java.lang.Exception"/>
  33310. </method>
  33311. <method name="main"
  33312. abstract="false" native="false" synchronized="false"
  33313. static="true" final="false" visibility="public"
  33314. deprecated="not deprecated">
  33315. <param name="args" type="java.lang.String[]"/>
  33316. <exception name="Exception" type="java.lang.Exception"/>
  33317. <doc>
  33318. <![CDATA[Submit a pipes job based on the command line arguments.
  33319. @param args]]>
  33320. </doc>
  33321. </method>
  33322. <field name="LOG" type="org.apache.commons.logging.Log"
  33323. transient="false" volatile="false"
  33324. static="true" final="true" visibility="protected"
  33325. deprecated="not deprecated">
  33326. </field>
  33327. <doc>
  33328. <![CDATA[The main entry point and job submitter. It may either be used as a command
  33329. line-based or API-based method to launch Pipes jobs.]]>
  33330. </doc>
  33331. </class>
  33332. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  33333. </package>
  33334. <package name="org.apache.hadoop.metrics">
  33335. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  33336. <class name="ContextFactory" extends="java.lang.Object"
  33337. abstract="false"
  33338. static="false" final="false" visibility="public"
  33339. deprecated="not deprecated">
  33340. <constructor name="ContextFactory"
  33341. static="false" final="false" visibility="protected"
  33342. deprecated="not deprecated">
  33343. <doc>
  33344. <![CDATA[Creates a new instance of ContextFactory]]>
  33345. </doc>
  33346. </constructor>
  33347. <method name="getAttribute" return="java.lang.Object"
  33348. abstract="false" native="false" synchronized="false"
  33349. static="false" final="false" visibility="public"
  33350. deprecated="not deprecated">
  33351. <param name="attributeName" type="java.lang.String"/>
  33352. <doc>
  33353. <![CDATA[Returns the value of the named attribute, or null if there is no
  33354. attribute of that name.
  33355. @param attributeName the attribute name
  33356. @return the attribute value]]>
  33357. </doc>
  33358. </method>
  33359. <method name="getAttributeNames" return="java.lang.String[]"
  33360. abstract="false" native="false" synchronized="false"
  33361. static="false" final="false" visibility="public"
  33362. deprecated="not deprecated">
  33363. <doc>
  33364. <![CDATA[Returns the names of all the factory's attributes.
  33365. @return the attribute names]]>
  33366. </doc>
  33367. </method>
  33368. <method name="setAttribute"
  33369. abstract="false" native="false" synchronized="false"
  33370. static="false" final="false" visibility="public"
  33371. deprecated="not deprecated">
  33372. <param name="attributeName" type="java.lang.String"/>
  33373. <param name="value" type="java.lang.Object"/>
  33374. <doc>
  33375. <![CDATA[Sets the named factory attribute to the specified value, creating it
  33376. if it did not already exist. If the value is null, this is the same as
  33377. calling removeAttribute.
  33378. @param attributeName the attribute name
  33379. @param value the new attribute value]]>
  33380. </doc>
  33381. </method>
  33382. <method name="removeAttribute"
  33383. abstract="false" native="false" synchronized="false"
  33384. static="false" final="false" visibility="public"
  33385. deprecated="not deprecated">
  33386. <param name="attributeName" type="java.lang.String"/>
  33387. <doc>
  33388. <![CDATA[Removes the named attribute if it exists.
  33389. @param attributeName the attribute name]]>
  33390. </doc>
  33391. </method>
  33392. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  33393. abstract="false" native="false" synchronized="true"
  33394. static="false" final="false" visibility="public"
  33395. deprecated="not deprecated">
  33396. <param name="contextName" type="java.lang.String"/>
  33397. <exception name="IOException" type="java.io.IOException"/>
  33398. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  33399. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  33400. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  33401. <doc>
  33402. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  33403. using the factory's current configuration attributes. <p/>
  33404. When constructing the instance, if the factory property
  33405. <i>contextName</i>.class</code> exists,
  33406. its value is taken to be the name of the class to instantiate. Otherwise,
  33407. the default is to create an instance of
  33408. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  33409. dummy "no-op" context which will cause all metric data to be discarded.
  33410. @param contextName the name of the context
  33411. @return the named MetricsContext]]>
  33412. </doc>
  33413. </method>
  33414. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  33415. abstract="false" native="false" synchronized="true"
  33416. static="true" final="false" visibility="public"
  33417. deprecated="not deprecated">
  33418. <param name="contextName" type="java.lang.String"/>
  33419. <doc>
  33420. <![CDATA[Returns a "null" context - one which does nothing.]]>
  33421. </doc>
  33422. </method>
  33423. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  33424. abstract="false" native="false" synchronized="true"
  33425. static="true" final="false" visibility="public"
  33426. deprecated="not deprecated">
  33427. <exception name="IOException" type="java.io.IOException"/>
  33428. <doc>
  33429. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  33430. necessary. <p/>
  33431. When the instance is constructed, this method checks if the file
  33432. <code>hadoop-metrics.properties</code> exists on the class path. If it
  33433. exists, it must be in the format defined by java.util.Properties, and all
  33434. the properties in the file are set as attributes on the newly created
  33435. ContextFactory instance.
  33436. @return the singleton ContextFactory instance]]>
  33437. </doc>
  33438. </method>
  33439. <doc>
  33440. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  33441. of this class, use the static <code>getFactory()</code> method.]]>
  33442. </doc>
  33443. </class>
  33444. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  33445. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  33446. <interface name="MetricsContext" abstract="true"
  33447. static="false" final="false" visibility="public"
  33448. deprecated="not deprecated">
  33449. <method name="getContextName" return="java.lang.String"
  33450. abstract="false" native="false" synchronized="false"
  33451. static="false" final="false" visibility="public"
  33452. deprecated="not deprecated">
  33453. <doc>
  33454. <![CDATA[Returns the context name.
  33455. @return the context name]]>
  33456. </doc>
  33457. </method>
  33458. <method name="startMonitoring"
  33459. abstract="false" native="false" synchronized="false"
  33460. static="false" final="false" visibility="public"
  33461. deprecated="not deprecated">
  33462. <exception name="IOException" type="java.io.IOException"/>
  33463. <doc>
  33464. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  33465. updated.]]>
  33466. </doc>
  33467. </method>
  33468. <method name="stopMonitoring"
  33469. abstract="false" native="false" synchronized="false"
  33470. static="false" final="false" visibility="public"
  33471. deprecated="not deprecated">
  33472. <doc>
  33473. <![CDATA[Stops monitoring. This does not free any data that the implementation
  33474. may have buffered for sending at the next timer event. It
  33475. is OK to call <code>startMonitoring()</code> again after calling
  33476. this.
  33477. @see #close()]]>
  33478. </doc>
  33479. </method>
  33480. <method name="isMonitoring" return="boolean"
  33481. abstract="false" native="false" synchronized="false"
  33482. static="false" final="false" visibility="public"
  33483. deprecated="not deprecated">
  33484. <doc>
  33485. <![CDATA[Returns true if monitoring is currently in progress.]]>
  33486. </doc>
  33487. </method>
  33488. <method name="close"
  33489. abstract="false" native="false" synchronized="false"
  33490. static="false" final="false" visibility="public"
  33491. deprecated="not deprecated">
  33492. <doc>
  33493. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  33494. object to its initial state.]]>
  33495. </doc>
  33496. </method>
  33497. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  33498. abstract="false" native="false" synchronized="false"
  33499. static="false" final="false" visibility="public"
  33500. deprecated="not deprecated">
  33501. <param name="recordName" type="java.lang.String"/>
  33502. <doc>
  33503. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  33504. Throws an exception if the metrics implementation is configured with a fixed
  33505. set of record names and <code>recordName</code> is not in that set.
  33506. @param recordName the name of the record
  33507. @throws MetricsException if recordName conflicts with configuration data]]>
  33508. </doc>
  33509. </method>
  33510. <method name="registerUpdater"
  33511. abstract="false" native="false" synchronized="false"
  33512. static="false" final="false" visibility="public"
  33513. deprecated="not deprecated">
  33514. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  33515. <doc>
  33516. <![CDATA[Registers a callback to be called at regular time intervals, as
  33517. determined by the implementation-class specific configuration.
  33518. @param updater object to be run periodically; it should updated
  33519. some metrics records and then return]]>
  33520. </doc>
  33521. </method>
  33522. <method name="unregisterUpdater"
  33523. abstract="false" native="false" synchronized="false"
  33524. static="false" final="false" visibility="public"
  33525. deprecated="not deprecated">
  33526. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  33527. <doc>
  33528. <![CDATA[Removes a callback, if it exists.
  33529. @param updater object to be removed from the callback list]]>
  33530. </doc>
  33531. </method>
  33532. <field name="DEFAULT_PERIOD" type="int"
  33533. transient="false" volatile="false"
  33534. static="true" final="true" visibility="public"
  33535. deprecated="not deprecated">
  33536. <doc>
  33537. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  33538. </doc>
  33539. </field>
  33540. <doc>
  33541. <![CDATA[The main interface to the metrics package.]]>
  33542. </doc>
  33543. </interface>
  33544. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  33545. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  33546. <class name="MetricsException" extends="java.lang.RuntimeException"
  33547. abstract="false"
  33548. static="false" final="false" visibility="public"
  33549. deprecated="not deprecated">
  33550. <constructor name="MetricsException"
  33551. static="false" final="false" visibility="public"
  33552. deprecated="not deprecated">
  33553. <doc>
  33554. <![CDATA[Creates a new instance of MetricsException]]>
  33555. </doc>
  33556. </constructor>
  33557. <constructor name="MetricsException" type="java.lang.String"
  33558. static="false" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <doc>
  33561. <![CDATA[Creates a new instance of MetricsException
  33562. @param message an error message]]>
  33563. </doc>
  33564. </constructor>
  33565. <doc>
  33566. <![CDATA[General-purpose, unchecked metrics exception.]]>
  33567. </doc>
  33568. </class>
  33569. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  33570. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  33571. <interface name="MetricsRecord" abstract="true"
  33572. static="false" final="false" visibility="public"
  33573. deprecated="not deprecated">
  33574. <method name="getRecordName" return="java.lang.String"
  33575. abstract="false" native="false" synchronized="false"
  33576. static="false" final="false" visibility="public"
  33577. deprecated="not deprecated">
  33578. <doc>
  33579. <![CDATA[Returns the record name.
  33580. @return the record name]]>
  33581. </doc>
  33582. </method>
  33583. <method name="setTag"
  33584. abstract="false" native="false" synchronized="false"
  33585. static="false" final="false" visibility="public"
  33586. deprecated="not deprecated">
  33587. <param name="tagName" type="java.lang.String"/>
  33588. <param name="tagValue" type="java.lang.String"/>
  33589. <doc>
  33590. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  33591. which is treated the same as an empty String.
  33592. @param tagName name of the tag
  33593. @param tagValue new value of the tag
  33594. @throws MetricsException if the tagName conflicts with the configuration]]>
  33595. </doc>
  33596. </method>
  33597. <method name="setTag"
  33598. abstract="false" native="false" synchronized="false"
  33599. static="false" final="false" visibility="public"
  33600. deprecated="not deprecated">
  33601. <param name="tagName" type="java.lang.String"/>
  33602. <param name="tagValue" type="int"/>
  33603. <doc>
  33604. <![CDATA[Sets the named tag to the specified value.
  33605. @param tagName name of the tag
  33606. @param tagValue new value of the tag
  33607. @throws MetricsException if the tagName conflicts with the configuration]]>
  33608. </doc>
  33609. </method>
  33610. <method name="setTag"
  33611. abstract="false" native="false" synchronized="false"
  33612. static="false" final="false" visibility="public"
  33613. deprecated="not deprecated">
  33614. <param name="tagName" type="java.lang.String"/>
  33615. <param name="tagValue" type="long"/>
  33616. <doc>
  33617. <![CDATA[Sets the named tag to the specified value.
  33618. @param tagName name of the tag
  33619. @param tagValue new value of the tag
  33620. @throws MetricsException if the tagName conflicts with the configuration]]>
  33621. </doc>
  33622. </method>
  33623. <method name="setTag"
  33624. abstract="false" native="false" synchronized="false"
  33625. static="false" final="false" visibility="public"
  33626. deprecated="not deprecated">
  33627. <param name="tagName" type="java.lang.String"/>
  33628. <param name="tagValue" type="short"/>
  33629. <doc>
  33630. <![CDATA[Sets the named tag to the specified value.
  33631. @param tagName name of the tag
  33632. @param tagValue new value of the tag
  33633. @throws MetricsException if the tagName conflicts with the configuration]]>
  33634. </doc>
  33635. </method>
  33636. <method name="setTag"
  33637. abstract="false" native="false" synchronized="false"
  33638. static="false" final="false" visibility="public"
  33639. deprecated="not deprecated">
  33640. <param name="tagName" type="java.lang.String"/>
  33641. <param name="tagValue" type="byte"/>
  33642. <doc>
  33643. <![CDATA[Sets the named tag to the specified value.
  33644. @param tagName name of the tag
  33645. @param tagValue new value of the tag
  33646. @throws MetricsException if the tagName conflicts with the configuration]]>
  33647. </doc>
  33648. </method>
  33649. <method name="removeTag"
  33650. abstract="false" native="false" synchronized="false"
  33651. static="false" final="false" visibility="public"
  33652. deprecated="not deprecated">
  33653. <param name="tagName" type="java.lang.String"/>
  33654. <doc>
  33655. <![CDATA[Removes any tag of the specified name.
  33656. @param tagName name of a tag]]>
  33657. </doc>
  33658. </method>
  33659. <method name="setMetric"
  33660. abstract="false" native="false" synchronized="false"
  33661. static="false" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <param name="metricName" type="java.lang.String"/>
  33664. <param name="metricValue" type="int"/>
  33665. <doc>
  33666. <![CDATA[Sets the named metric to the specified value.
  33667. @param metricName name of the metric
  33668. @param metricValue new value of the metric
  33669. @throws MetricsException if the metricName or the type of the metricValue
  33670. conflicts with the configuration]]>
  33671. </doc>
  33672. </method>
  33673. <method name="setMetric"
  33674. abstract="false" native="false" synchronized="false"
  33675. static="false" final="false" visibility="public"
  33676. deprecated="not deprecated">
  33677. <param name="metricName" type="java.lang.String"/>
  33678. <param name="metricValue" type="long"/>
  33679. <doc>
  33680. <![CDATA[Sets the named metric to the specified value.
  33681. @param metricName name of the metric
  33682. @param metricValue new value of the metric
  33683. @throws MetricsException if the metricName or the type of the metricValue
  33684. conflicts with the configuration]]>
  33685. </doc>
  33686. </method>
  33687. <method name="setMetric"
  33688. abstract="false" native="false" synchronized="false"
  33689. static="false" final="false" visibility="public"
  33690. deprecated="not deprecated">
  33691. <param name="metricName" type="java.lang.String"/>
  33692. <param name="metricValue" type="short"/>
  33693. <doc>
  33694. <![CDATA[Sets the named metric to the specified value.
  33695. @param metricName name of the metric
  33696. @param metricValue new value of the metric
  33697. @throws MetricsException if the metricName or the type of the metricValue
  33698. conflicts with the configuration]]>
  33699. </doc>
  33700. </method>
  33701. <method name="setMetric"
  33702. abstract="false" native="false" synchronized="false"
  33703. static="false" final="false" visibility="public"
  33704. deprecated="not deprecated">
  33705. <param name="metricName" type="java.lang.String"/>
  33706. <param name="metricValue" type="byte"/>
  33707. <doc>
  33708. <![CDATA[Sets the named metric to the specified value.
  33709. @param metricName name of the metric
  33710. @param metricValue new value of the metric
  33711. @throws MetricsException if the metricName or the type of the metricValue
  33712. conflicts with the configuration]]>
  33713. </doc>
  33714. </method>
  33715. <method name="setMetric"
  33716. abstract="false" native="false" synchronized="false"
  33717. static="false" final="false" visibility="public"
  33718. deprecated="not deprecated">
  33719. <param name="metricName" type="java.lang.String"/>
  33720. <param name="metricValue" type="float"/>
  33721. <doc>
  33722. <![CDATA[Sets the named metric to the specified value.
  33723. @param metricName name of the metric
  33724. @param metricValue new value of the metric
  33725. @throws MetricsException if the metricName or the type of the metricValue
  33726. conflicts with the configuration]]>
  33727. </doc>
  33728. </method>
  33729. <method name="incrMetric"
  33730. abstract="false" native="false" synchronized="false"
  33731. static="false" final="false" visibility="public"
  33732. deprecated="not deprecated">
  33733. <param name="metricName" type="java.lang.String"/>
  33734. <param name="metricValue" type="int"/>
  33735. <doc>
  33736. <![CDATA[Increments the named metric by the specified value.
  33737. @param metricName name of the metric
  33738. @param metricValue incremental value
  33739. @throws MetricsException if the metricName or the type of the metricValue
  33740. conflicts with the configuration]]>
  33741. </doc>
  33742. </method>
  33743. <method name="incrMetric"
  33744. abstract="false" native="false" synchronized="false"
  33745. static="false" final="false" visibility="public"
  33746. deprecated="not deprecated">
  33747. <param name="metricName" type="java.lang.String"/>
  33748. <param name="metricValue" type="long"/>
  33749. <doc>
  33750. <![CDATA[Increments the named metric by the specified value.
  33751. @param metricName name of the metric
  33752. @param metricValue incremental value
  33753. @throws MetricsException if the metricName or the type of the metricValue
  33754. conflicts with the configuration]]>
  33755. </doc>
  33756. </method>
  33757. <method name="incrMetric"
  33758. abstract="false" native="false" synchronized="false"
  33759. static="false" final="false" visibility="public"
  33760. deprecated="not deprecated">
  33761. <param name="metricName" type="java.lang.String"/>
  33762. <param name="metricValue" type="short"/>
  33763. <doc>
  33764. <![CDATA[Increments the named metric by the specified value.
  33765. @param metricName name of the metric
  33766. @param metricValue incremental value
  33767. @throws MetricsException if the metricName or the type of the metricValue
  33768. conflicts with the configuration]]>
  33769. </doc>
  33770. </method>
  33771. <method name="incrMetric"
  33772. abstract="false" native="false" synchronized="false"
  33773. static="false" final="false" visibility="public"
  33774. deprecated="not deprecated">
  33775. <param name="metricName" type="java.lang.String"/>
  33776. <param name="metricValue" type="byte"/>
  33777. <doc>
  33778. <![CDATA[Increments the named metric by the specified value.
  33779. @param metricName name of the metric
  33780. @param metricValue incremental value
  33781. @throws MetricsException if the metricName or the type of the metricValue
  33782. conflicts with the configuration]]>
  33783. </doc>
  33784. </method>
  33785. <method name="incrMetric"
  33786. abstract="false" native="false" synchronized="false"
  33787. static="false" final="false" visibility="public"
  33788. deprecated="not deprecated">
  33789. <param name="metricName" type="java.lang.String"/>
  33790. <param name="metricValue" type="float"/>
  33791. <doc>
  33792. <![CDATA[Increments the named metric by the specified value.
  33793. @param metricName name of the metric
  33794. @param metricValue incremental value
  33795. @throws MetricsException if the metricName or the type of the metricValue
  33796. conflicts with the configuration]]>
  33797. </doc>
  33798. </method>
  33799. <method name="update"
  33800. abstract="false" native="false" synchronized="false"
  33801. static="false" final="false" visibility="public"
  33802. deprecated="not deprecated">
  33803. <doc>
  33804. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  33805. If the tag values match an existing row, that row is updated;
  33806. otherwise, a new row is added.]]>
  33807. </doc>
  33808. </method>
  33809. <method name="remove"
  33810. abstract="false" native="false" synchronized="false"
  33811. static="false" final="false" visibility="public"
  33812. deprecated="not deprecated">
  33813. <doc>
  33814. <![CDATA[Removes, from the buffered data table, all rows having tags
  33815. that equal the tags that have been set on this record. For example,
  33816. if there are no tags on this record, all rows for this record name
  33817. would be removed. Or, if there is a single tag on this record, then
  33818. just rows containing a tag with the same name and value would be removed.]]>
  33819. </doc>
  33820. </method>
  33821. <doc>
  33822. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  33823. system. <p/>
  33824. A record name identifies the kind of data to be reported. For example, a
  33825. program reporting statistics relating to the disks on a computer might use
  33826. a record name "diskStats".<p/>
  33827. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  33828. continue the example, the "diskStats" record might use a tag named
  33829. "diskName" to identify a particular disk. Sometimes it is useful to have
  33830. more than one tag, so there might also be a "diskType" with value "ide" or
  33831. "scsi" or whatever.<p/>
  33832. A record also has zero or more <i>metrics</i>. These are the named
  33833. values that are to be reported to the metrics system. In the "diskStats"
  33834. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  33835. "kbReadPerSecond", etc.<p/>
  33836. The general procedure for using a MetricsRecord is to fill in its tag and
  33837. metric values, and then call <code>update()</code> to pass the record to the
  33838. client library.
  33839. Metric data is not immediately sent to the metrics system
  33840. each time that <code>update()</code> is called.
  33841. An internal table is maintained, identified by the record name. This
  33842. table has columns
  33843. corresponding to the tag and the metric names, and rows
  33844. corresponding to each unique set of tag values. An update
  33845. either modifies an existing row in the table, or adds a new row with a set of
  33846. tag values that are different from all the other rows. Note that if there
  33847. are no tags, then there can be at most one row in the table. <p/>
  33848. Once a row is added to the table, its data will be sent to the metrics system
  33849. on every timer period, whether or not it has been updated since the previous
  33850. timer period. If this is inappropriate, for example if metrics were being
  33851. reported by some transient object in an application, the <code>remove()</code>
  33852. method can be used to remove the row and thus stop the data from being
  33853. sent.<p/>
  33854. Note that the <code>update()</code> method is atomic. This means that it is
  33855. safe for different threads to be updating the same metric. More precisely,
  33856. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  33857. with the same set of tag names and tag values. Different threads should
  33858. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  33859. </doc>
  33860. </interface>
  33861. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  33862. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  33863. <class name="MetricsUtil" extends="java.lang.Object"
  33864. abstract="false"
  33865. static="false" final="false" visibility="public"
  33866. deprecated="not deprecated">
  33867. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  33868. abstract="false" native="false" synchronized="false"
  33869. static="true" final="false" visibility="public"
  33870. deprecated="not deprecated">
  33871. <param name="contextName" type="java.lang.String"/>
  33872. <doc>
  33873. <![CDATA[Utility method to return the named context.
  33874. If the desired context cannot be created for any reason, the exception
  33875. is logged, and a null context is returned.]]>
  33876. </doc>
  33877. </method>
  33878. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  33879. abstract="false" native="false" synchronized="false"
  33880. static="true" final="false" visibility="public"
  33881. deprecated="not deprecated">
  33882. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  33883. <param name="recordName" type="java.lang.String"/>
  33884. <doc>
  33885. <![CDATA[Utility method to create and return new metrics record instance within the
  33886. given context. This record is tagged with the host name.
  33887. @param context the context
  33888. @param recordName name of the record
  33889. @return newly created metrics record]]>
  33890. </doc>
  33891. </method>
  33892. <doc>
  33893. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  33894. For examples of usage, see NameNodeMetrics.
  33895. @see org.apache.hadoop.metrics.MetricsRecord
  33896. @see org.apache.hadoop.metrics.MetricsContext
  33897. @see org.apache.hadoop.metrics.ContextFactory]]>
  33898. </doc>
  33899. </class>
  33900. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  33901. <!-- start interface org.apache.hadoop.metrics.Updater -->
  33902. <interface name="Updater" abstract="true"
  33903. static="false" final="false" visibility="public"
  33904. deprecated="not deprecated">
  33905. <method name="doUpdates"
  33906. abstract="false" native="false" synchronized="false"
  33907. static="false" final="false" visibility="public"
  33908. deprecated="not deprecated">
  33909. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  33910. <doc>
  33911. <![CDATA[Timer-based call-back from the metric library.]]>
  33912. </doc>
  33913. </method>
  33914. <doc>
  33915. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  33916. </doc>
  33917. </interface>
  33918. <!-- end interface org.apache.hadoop.metrics.Updater -->
  33919. </package>
  33920. <package name="org.apache.hadoop.metrics.file">
  33921. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  33922. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  33923. abstract="false"
  33924. static="false" final="false" visibility="public"
  33925. deprecated="not deprecated">
  33926. <constructor name="FileContext"
  33927. static="false" final="false" visibility="public"
  33928. deprecated="not deprecated">
  33929. <doc>
  33930. <![CDATA[Creates a new instance of FileContext]]>
  33931. </doc>
  33932. </constructor>
  33933. <method name="init"
  33934. abstract="false" native="false" synchronized="false"
  33935. static="false" final="false" visibility="public"
  33936. deprecated="not deprecated">
  33937. <param name="contextName" type="java.lang.String"/>
  33938. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  33939. </method>
  33940. <method name="getFileName" return="java.lang.String"
  33941. abstract="false" native="false" synchronized="false"
  33942. static="false" final="false" visibility="public"
  33943. deprecated="not deprecated">
  33944. <doc>
  33945. <![CDATA[Returns the configured file name, or null.]]>
  33946. </doc>
  33947. </method>
  33948. <method name="startMonitoring"
  33949. abstract="false" native="false" synchronized="false"
  33950. static="false" final="false" visibility="public"
  33951. deprecated="not deprecated">
  33952. <exception name="IOException" type="java.io.IOException"/>
  33953. <doc>
  33954. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  33955. file specified by the <code>fileName</code> attribute,
  33956. if specified. Otherwise the data will be written to standard
  33957. output.]]>
  33958. </doc>
  33959. </method>
  33960. <method name="stopMonitoring"
  33961. abstract="false" native="false" synchronized="false"
  33962. static="false" final="false" visibility="public"
  33963. deprecated="not deprecated">
  33964. <doc>
  33965. <![CDATA[Stops monitoring, closing the file.
  33966. @see #close()]]>
  33967. </doc>
  33968. </method>
  33969. <method name="emitRecord"
  33970. abstract="false" native="false" synchronized="false"
  33971. static="false" final="false" visibility="public"
  33972. deprecated="not deprecated">
  33973. <param name="contextName" type="java.lang.String"/>
  33974. <param name="recordName" type="java.lang.String"/>
  33975. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  33976. <doc>
  33977. <![CDATA[Emits a metrics record to a file.]]>
  33978. </doc>
  33979. </method>
  33980. <method name="flush"
  33981. abstract="false" native="false" synchronized="false"
  33982. static="false" final="false" visibility="public"
  33983. deprecated="not deprecated">
  33984. <doc>
  33985. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  33986. </doc>
  33987. </method>
  33988. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  33989. transient="false" volatile="false"
  33990. static="true" final="true" visibility="protected"
  33991. deprecated="not deprecated">
  33992. </field>
  33993. <field name="PERIOD_PROPERTY" type="java.lang.String"
  33994. transient="false" volatile="false"
  33995. static="true" final="true" visibility="protected"
  33996. deprecated="not deprecated">
  33997. </field>
  33998. <doc>
  33999. <![CDATA[Metrics context for writing metrics to a file.<p/>
  34000. This class is configured by setting ContextFactory attributes which in turn
  34001. are usually configured through a properties file. All the attributes are
  34002. prefixed by the contextName. For example, the properties file might contain:
  34003. <pre>
  34004. myContextName.fileName=/tmp/metrics.log
  34005. myContextName.period=5
  34006. </pre>]]>
  34007. </doc>
  34008. </class>
  34009. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  34010. </package>
  34011. <package name="org.apache.hadoop.metrics.ganglia">
  34012. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  34013. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34014. abstract="false"
  34015. static="false" final="false" visibility="public"
  34016. deprecated="not deprecated">
  34017. <constructor name="GangliaContext"
  34018. static="false" final="false" visibility="public"
  34019. deprecated="not deprecated">
  34020. <doc>
  34021. <![CDATA[Creates a new instance of GangliaContext]]>
  34022. </doc>
  34023. </constructor>
  34024. <method name="init"
  34025. abstract="false" native="false" synchronized="false"
  34026. static="false" final="false" visibility="public"
  34027. deprecated="not deprecated">
  34028. <param name="contextName" type="java.lang.String"/>
  34029. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  34030. </method>
  34031. <method name="emitRecord"
  34032. abstract="false" native="false" synchronized="false"
  34033. static="false" final="false" visibility="public"
  34034. deprecated="not deprecated">
  34035. <param name="contextName" type="java.lang.String"/>
  34036. <param name="recordName" type="java.lang.String"/>
  34037. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34038. <exception name="IOException" type="java.io.IOException"/>
  34039. </method>
  34040. <doc>
  34041. <![CDATA[Context for sending metrics to Ganglia.]]>
  34042. </doc>
  34043. </class>
  34044. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  34045. </package>
  34046. <package name="org.apache.hadoop.metrics.jvm">
  34047. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  34048. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  34049. abstract="false"
  34050. static="false" final="false" visibility="public"
  34051. deprecated="not deprecated">
  34052. <constructor name="EventCounter"
  34053. static="false" final="false" visibility="public"
  34054. deprecated="not deprecated">
  34055. </constructor>
  34056. <method name="getFatal" return="long"
  34057. abstract="false" native="false" synchronized="false"
  34058. static="true" final="false" visibility="public"
  34059. deprecated="not deprecated">
  34060. </method>
  34061. <method name="getError" return="long"
  34062. abstract="false" native="false" synchronized="false"
  34063. static="true" final="false" visibility="public"
  34064. deprecated="not deprecated">
  34065. </method>
  34066. <method name="getWarn" return="long"
  34067. abstract="false" native="false" synchronized="false"
  34068. static="true" final="false" visibility="public"
  34069. deprecated="not deprecated">
  34070. </method>
  34071. <method name="getInfo" return="long"
  34072. abstract="false" native="false" synchronized="false"
  34073. static="true" final="false" visibility="public"
  34074. deprecated="not deprecated">
  34075. </method>
  34076. <method name="append"
  34077. abstract="false" native="false" synchronized="false"
  34078. static="false" final="false" visibility="public"
  34079. deprecated="not deprecated">
  34080. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  34081. </method>
  34082. <method name="close"
  34083. abstract="false" native="false" synchronized="false"
  34084. static="false" final="false" visibility="public"
  34085. deprecated="not deprecated">
  34086. </method>
  34087. <method name="requiresLayout" return="boolean"
  34088. abstract="false" native="false" synchronized="false"
  34089. static="false" final="false" visibility="public"
  34090. deprecated="not deprecated">
  34091. </method>
  34092. <doc>
  34093. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  34094. fatal, error and warn.]]>
  34095. </doc>
  34096. </class>
  34097. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  34098. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  34099. <class name="JvmMetrics" extends="java.lang.Object"
  34100. abstract="false"
  34101. static="false" final="false" visibility="public"
  34102. deprecated="not deprecated">
  34103. <implements name="org.apache.hadoop.metrics.Updater"/>
  34104. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  34105. abstract="false" native="false" synchronized="true"
  34106. static="true" final="false" visibility="public"
  34107. deprecated="not deprecated">
  34108. <param name="processName" type="java.lang.String"/>
  34109. <param name="sessionId" type="java.lang.String"/>
  34110. </method>
  34111. <method name="doUpdates"
  34112. abstract="false" native="false" synchronized="false"
  34113. static="false" final="false" visibility="public"
  34114. deprecated="not deprecated">
  34115. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  34116. <doc>
  34117. <![CDATA[This will be called periodically (with the period being configuration
  34118. dependent).]]>
  34119. </doc>
  34120. </method>
  34121. <doc>
  34122. <![CDATA[Singleton class which eports Java Virtual Machine metrics to the metrics API.
  34123. Any application can create an instance of this class in order to emit
  34124. Java VM metrics.]]>
  34125. </doc>
  34126. </class>
  34127. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  34128. </package>
  34129. <package name="org.apache.hadoop.metrics.spi">
  34130. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  34131. <class name="AbstractMetricsContext" extends="java.lang.Object"
  34132. abstract="true"
  34133. static="false" final="false" visibility="public"
  34134. deprecated="not deprecated">
  34135. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  34136. <constructor name="AbstractMetricsContext"
  34137. static="false" final="false" visibility="protected"
  34138. deprecated="not deprecated">
  34139. <doc>
  34140. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  34141. </doc>
  34142. </constructor>
  34143. <method name="init"
  34144. abstract="false" native="false" synchronized="false"
  34145. static="false" final="false" visibility="public"
  34146. deprecated="not deprecated">
  34147. <param name="contextName" type="java.lang.String"/>
  34148. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  34149. <doc>
  34150. <![CDATA[Initializes the context.]]>
  34151. </doc>
  34152. </method>
  34153. <method name="getAttribute" return="java.lang.String"
  34154. abstract="false" native="false" synchronized="false"
  34155. static="false" final="false" visibility="protected"
  34156. deprecated="not deprecated">
  34157. <param name="attributeName" type="java.lang.String"/>
  34158. <doc>
  34159. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  34160. </doc>
  34161. </method>
  34162. <method name="getAttributeTable" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  34163. abstract="false" native="false" synchronized="false"
  34164. static="false" final="false" visibility="protected"
  34165. deprecated="not deprecated">
  34166. <param name="tableName" type="java.lang.String"/>
  34167. <doc>
  34168. <![CDATA[Returns an attribute-value map derived from the factory attributes
  34169. by finding all factory attributes that begin with
  34170. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  34171. those attributes with the contextName and tableName stripped off.]]>
  34172. </doc>
  34173. </method>
  34174. <method name="getContextName" return="java.lang.String"
  34175. abstract="false" native="false" synchronized="false"
  34176. static="false" final="false" visibility="public"
  34177. deprecated="not deprecated">
  34178. <doc>
  34179. <![CDATA[Returns the context name.]]>
  34180. </doc>
  34181. </method>
  34182. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  34183. abstract="false" native="false" synchronized="false"
  34184. static="false" final="false" visibility="public"
  34185. deprecated="not deprecated">
  34186. <doc>
  34187. <![CDATA[Returns the factory by which this context was created.]]>
  34188. </doc>
  34189. </method>
  34190. <method name="startMonitoring"
  34191. abstract="false" native="false" synchronized="true"
  34192. static="false" final="false" visibility="public"
  34193. deprecated="not deprecated">
  34194. <exception name="IOException" type="java.io.IOException"/>
  34195. <doc>
  34196. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  34197. </doc>
  34198. </method>
  34199. <method name="stopMonitoring"
  34200. abstract="false" native="false" synchronized="true"
  34201. static="false" final="false" visibility="public"
  34202. deprecated="not deprecated">
  34203. <doc>
  34204. <![CDATA[Stops monitoring. This does not free buffered data.
  34205. @see #close()]]>
  34206. </doc>
  34207. </method>
  34208. <method name="isMonitoring" return="boolean"
  34209. abstract="false" native="false" synchronized="false"
  34210. static="false" final="false" visibility="public"
  34211. deprecated="not deprecated">
  34212. <doc>
  34213. <![CDATA[Returns true if monitoring is currently in progress.]]>
  34214. </doc>
  34215. </method>
  34216. <method name="close"
  34217. abstract="false" native="false" synchronized="true"
  34218. static="false" final="false" visibility="public"
  34219. deprecated="not deprecated">
  34220. <doc>
  34221. <![CDATA[Stops monitoring and frees buffered data, returning this
  34222. object to its initial state.]]>
  34223. </doc>
  34224. </method>
  34225. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  34226. abstract="false" native="false" synchronized="true"
  34227. static="false" final="true" visibility="public"
  34228. deprecated="not deprecated">
  34229. <param name="recordName" type="java.lang.String"/>
  34230. <doc>
  34231. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  34232. Throws an exception if the metrics implementation is configured with a fixed
  34233. set of record names and <code>recordName</code> is not in that set.
  34234. @param recordName the name of the record
  34235. @throws MetricsException if recordName conflicts with configuration data]]>
  34236. </doc>
  34237. </method>
  34238. <method name="newRecord" return="org.apache.hadoop.metrics.spi.MetricsRecordImpl"
  34239. abstract="false" native="false" synchronized="false"
  34240. static="false" final="false" visibility="protected"
  34241. deprecated="not deprecated">
  34242. <param name="recordName" type="java.lang.String"/>
  34243. <doc>
  34244. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  34245. @param recordName the name of the record
  34246. @return newly created instance of MetricsRecordImpl or subclass]]>
  34247. </doc>
  34248. </method>
  34249. <method name="registerUpdater"
  34250. abstract="false" native="false" synchronized="true"
  34251. static="false" final="false" visibility="public"
  34252. deprecated="not deprecated">
  34253. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  34254. <doc>
  34255. <![CDATA[Registers a callback to be called at time intervals determined by
  34256. the configuration.
  34257. @param updater object to be run periodically; it should update
  34258. some metrics records]]>
  34259. </doc>
  34260. </method>
  34261. <method name="unregisterUpdater"
  34262. abstract="false" native="false" synchronized="true"
  34263. static="false" final="false" visibility="public"
  34264. deprecated="not deprecated">
  34265. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  34266. <doc>
  34267. <![CDATA[Removes a callback, if it exists.
  34268. @param updater object to be removed from the callback list]]>
  34269. </doc>
  34270. </method>
  34271. <method name="emitRecord"
  34272. abstract="true" native="false" synchronized="false"
  34273. static="false" final="false" visibility="protected"
  34274. deprecated="not deprecated">
  34275. <param name="contextName" type="java.lang.String"/>
  34276. <param name="recordName" type="java.lang.String"/>
  34277. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34278. <exception name="IOException" type="java.io.IOException"/>
  34279. <doc>
  34280. <![CDATA[Sends a record to the metrics system.]]>
  34281. </doc>
  34282. </method>
  34283. <method name="flush"
  34284. abstract="false" native="false" synchronized="false"
  34285. static="false" final="false" visibility="protected"
  34286. deprecated="not deprecated">
  34287. <exception name="IOException" type="java.io.IOException"/>
  34288. <doc>
  34289. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  34290. Subclasses may override it in order to perform some kind of flush.]]>
  34291. </doc>
  34292. </method>
  34293. <method name="update"
  34294. abstract="false" native="false" synchronized="false"
  34295. static="false" final="false" visibility="protected"
  34296. deprecated="not deprecated">
  34297. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34298. <doc>
  34299. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  34300. the internal table of metric data.]]>
  34301. </doc>
  34302. </method>
  34303. <method name="remove"
  34304. abstract="false" native="false" synchronized="false"
  34305. static="false" final="false" visibility="protected"
  34306. deprecated="not deprecated">
  34307. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34308. <doc>
  34309. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  34310. the internal table of metric data. A row matches if it has the same
  34311. tag names and values as record, but it may also have additional
  34312. tags.]]>
  34313. </doc>
  34314. </method>
  34315. <method name="getPeriod" return="int"
  34316. abstract="false" native="false" synchronized="false"
  34317. static="false" final="false" visibility="public"
  34318. deprecated="not deprecated">
  34319. <doc>
  34320. <![CDATA[Returns the timer period.]]>
  34321. </doc>
  34322. </method>
  34323. <method name="setPeriod"
  34324. abstract="false" native="false" synchronized="false"
  34325. static="false" final="false" visibility="protected"
  34326. deprecated="not deprecated">
  34327. <param name="period" type="int"/>
  34328. <doc>
  34329. <![CDATA[Sets the timer period]]>
  34330. </doc>
  34331. </method>
  34332. <doc>
  34333. <![CDATA[The main class of the Service Provider Interface. This class should be
  34334. extended in order to integrate the Metrics API with a specific metrics
  34335. client library. <p/>
  34336. This class implements the internal table of metric data, and the timer
  34337. on which data is to be sent to the metrics system. Subclasses must
  34338. override the abstract <code>emitRecord</code> method in order to transmit
  34339. the data. <p/>]]>
  34340. </doc>
  34341. </class>
  34342. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  34343. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  34344. <class name="MetricsRecordImpl" extends="java.lang.Object"
  34345. abstract="false"
  34346. static="false" final="false" visibility="public"
  34347. deprecated="not deprecated">
  34348. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  34349. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34350. static="false" final="false" visibility="protected"
  34351. deprecated="not deprecated">
  34352. <doc>
  34353. <![CDATA[Creates a new instance of FileRecord]]>
  34354. </doc>
  34355. </constructor>
  34356. <method name="getRecordName" return="java.lang.String"
  34357. abstract="false" native="false" synchronized="false"
  34358. static="false" final="false" visibility="public"
  34359. deprecated="not deprecated">
  34360. <doc>
  34361. <![CDATA[Returns the record name.
  34362. @return the record name]]>
  34363. </doc>
  34364. </method>
  34365. <method name="setTag"
  34366. abstract="false" native="false" synchronized="false"
  34367. static="false" final="false" visibility="public"
  34368. deprecated="not deprecated">
  34369. <param name="tagName" type="java.lang.String"/>
  34370. <param name="tagValue" type="java.lang.String"/>
  34371. <doc>
  34372. <![CDATA[Sets the named tag to the specified value.
  34373. @param tagName name of the tag
  34374. @param tagValue new value of the tag
  34375. @throws MetricsException if the tagName conflicts with the configuration]]>
  34376. </doc>
  34377. </method>
  34378. <method name="setTag"
  34379. abstract="false" native="false" synchronized="false"
  34380. static="false" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. <param name="tagName" type="java.lang.String"/>
  34383. <param name="tagValue" type="int"/>
  34384. <doc>
  34385. <![CDATA[Sets the named tag to the specified value.
  34386. @param tagName name of the tag
  34387. @param tagValue new value of the tag
  34388. @throws MetricsException if the tagName conflicts with the configuration]]>
  34389. </doc>
  34390. </method>
  34391. <method name="setTag"
  34392. abstract="false" native="false" synchronized="false"
  34393. static="false" final="false" visibility="public"
  34394. deprecated="not deprecated">
  34395. <param name="tagName" type="java.lang.String"/>
  34396. <param name="tagValue" type="long"/>
  34397. <doc>
  34398. <![CDATA[Sets the named tag to the specified value.
  34399. @param tagName name of the tag
  34400. @param tagValue new value of the tag
  34401. @throws MetricsException if the tagName conflicts with the configuration]]>
  34402. </doc>
  34403. </method>
  34404. <method name="setTag"
  34405. abstract="false" native="false" synchronized="false"
  34406. static="false" final="false" visibility="public"
  34407. deprecated="not deprecated">
  34408. <param name="tagName" type="java.lang.String"/>
  34409. <param name="tagValue" type="short"/>
  34410. <doc>
  34411. <![CDATA[Sets the named tag to the specified value.
  34412. @param tagName name of the tag
  34413. @param tagValue new value of the tag
  34414. @throws MetricsException if the tagName conflicts with the configuration]]>
  34415. </doc>
  34416. </method>
  34417. <method name="setTag"
  34418. abstract="false" native="false" synchronized="false"
  34419. static="false" final="false" visibility="public"
  34420. deprecated="not deprecated">
  34421. <param name="tagName" type="java.lang.String"/>
  34422. <param name="tagValue" type="byte"/>
  34423. <doc>
  34424. <![CDATA[Sets the named tag to the specified value.
  34425. @param tagName name of the tag
  34426. @param tagValue new value of the tag
  34427. @throws MetricsException if the tagName conflicts with the configuration]]>
  34428. </doc>
  34429. </method>
  34430. <method name="removeTag"
  34431. abstract="false" native="false" synchronized="false"
  34432. static="false" final="false" visibility="public"
  34433. deprecated="not deprecated">
  34434. <param name="tagName" type="java.lang.String"/>
  34435. <doc>
  34436. <![CDATA[Removes any tag of the specified name.]]>
  34437. </doc>
  34438. </method>
  34439. <method name="setMetric"
  34440. abstract="false" native="false" synchronized="false"
  34441. static="false" final="false" visibility="public"
  34442. deprecated="not deprecated">
  34443. <param name="metricName" type="java.lang.String"/>
  34444. <param name="metricValue" type="int"/>
  34445. <doc>
  34446. <![CDATA[Sets the named metric to the specified value.
  34447. @param metricName name of the metric
  34448. @param metricValue new value of the metric
  34449. @throws MetricsException if the metricName or the type of the metricValue
  34450. conflicts with the configuration]]>
  34451. </doc>
  34452. </method>
  34453. <method name="setMetric"
  34454. abstract="false" native="false" synchronized="false"
  34455. static="false" final="false" visibility="public"
  34456. deprecated="not deprecated">
  34457. <param name="metricName" type="java.lang.String"/>
  34458. <param name="metricValue" type="long"/>
  34459. <doc>
  34460. <![CDATA[Sets the named metric to the specified value.
  34461. @param metricName name of the metric
  34462. @param metricValue new value of the metric
  34463. @throws MetricsException if the metricName or the type of the metricValue
  34464. conflicts with the configuration]]>
  34465. </doc>
  34466. </method>
  34467. <method name="setMetric"
  34468. abstract="false" native="false" synchronized="false"
  34469. static="false" final="false" visibility="public"
  34470. deprecated="not deprecated">
  34471. <param name="metricName" type="java.lang.String"/>
  34472. <param name="metricValue" type="short"/>
  34473. <doc>
  34474. <![CDATA[Sets the named metric to the specified value.
  34475. @param metricName name of the metric
  34476. @param metricValue new value of the metric
  34477. @throws MetricsException if the metricName or the type of the metricValue
  34478. conflicts with the configuration]]>
  34479. </doc>
  34480. </method>
  34481. <method name="setMetric"
  34482. abstract="false" native="false" synchronized="false"
  34483. static="false" final="false" visibility="public"
  34484. deprecated="not deprecated">
  34485. <param name="metricName" type="java.lang.String"/>
  34486. <param name="metricValue" type="byte"/>
  34487. <doc>
  34488. <![CDATA[Sets the named metric to the specified value.
  34489. @param metricName name of the metric
  34490. @param metricValue new value of the metric
  34491. @throws MetricsException if the metricName or the type of the metricValue
  34492. conflicts with the configuration]]>
  34493. </doc>
  34494. </method>
  34495. <method name="setMetric"
  34496. abstract="false" native="false" synchronized="false"
  34497. static="false" final="false" visibility="public"
  34498. deprecated="not deprecated">
  34499. <param name="metricName" type="java.lang.String"/>
  34500. <param name="metricValue" type="float"/>
  34501. <doc>
  34502. <![CDATA[Sets the named metric to the specified value.
  34503. @param metricName name of the metric
  34504. @param metricValue new value of the metric
  34505. @throws MetricsException if the metricName or the type of the metricValue
  34506. conflicts with the configuration]]>
  34507. </doc>
  34508. </method>
  34509. <method name="incrMetric"
  34510. abstract="false" native="false" synchronized="false"
  34511. static="false" final="false" visibility="public"
  34512. deprecated="not deprecated">
  34513. <param name="metricName" type="java.lang.String"/>
  34514. <param name="metricValue" type="int"/>
  34515. <doc>
  34516. <![CDATA[Increments the named metric by the specified value.
  34517. @param metricName name of the metric
  34518. @param metricValue incremental value
  34519. @throws MetricsException if the metricName or the type of the metricValue
  34520. conflicts with the configuration]]>
  34521. </doc>
  34522. </method>
  34523. <method name="incrMetric"
  34524. abstract="false" native="false" synchronized="false"
  34525. static="false" final="false" visibility="public"
  34526. deprecated="not deprecated">
  34527. <param name="metricName" type="java.lang.String"/>
  34528. <param name="metricValue" type="long"/>
  34529. <doc>
  34530. <![CDATA[Increments the named metric by the specified value.
  34531. @param metricName name of the metric
  34532. @param metricValue incremental value
  34533. @throws MetricsException if the metricName or the type of the metricValue
  34534. conflicts with the configuration]]>
  34535. </doc>
  34536. </method>
  34537. <method name="incrMetric"
  34538. abstract="false" native="false" synchronized="false"
  34539. static="false" final="false" visibility="public"
  34540. deprecated="not deprecated">
  34541. <param name="metricName" type="java.lang.String"/>
  34542. <param name="metricValue" type="short"/>
  34543. <doc>
  34544. <![CDATA[Increments the named metric by the specified value.
  34545. @param metricName name of the metric
  34546. @param metricValue incremental value
  34547. @throws MetricsException if the metricName or the type of the metricValue
  34548. conflicts with the configuration]]>
  34549. </doc>
  34550. </method>
  34551. <method name="incrMetric"
  34552. abstract="false" native="false" synchronized="false"
  34553. static="false" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <param name="metricName" type="java.lang.String"/>
  34556. <param name="metricValue" type="byte"/>
  34557. <doc>
  34558. <![CDATA[Increments the named metric by the specified value.
  34559. @param metricName name of the metric
  34560. @param metricValue incremental value
  34561. @throws MetricsException if the metricName or the type of the metricValue
  34562. conflicts with the configuration]]>
  34563. </doc>
  34564. </method>
  34565. <method name="incrMetric"
  34566. abstract="false" native="false" synchronized="false"
  34567. static="false" final="false" visibility="public"
  34568. deprecated="not deprecated">
  34569. <param name="metricName" type="java.lang.String"/>
  34570. <param name="metricValue" type="float"/>
  34571. <doc>
  34572. <![CDATA[Increments the named metric by the specified value.
  34573. @param metricName name of the metric
  34574. @param metricValue incremental value
  34575. @throws MetricsException if the metricName or the type of the metricValue
  34576. conflicts with the configuration]]>
  34577. </doc>
  34578. </method>
  34579. <method name="update"
  34580. abstract="false" native="false" synchronized="false"
  34581. static="false" final="false" visibility="public"
  34582. deprecated="not deprecated">
  34583. <doc>
  34584. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  34585. If the tag values match an existing row, that row is updated;
  34586. otherwise, a new row is added.]]>
  34587. </doc>
  34588. </method>
  34589. <method name="remove"
  34590. abstract="false" native="false" synchronized="false"
  34591. static="false" final="false" visibility="public"
  34592. deprecated="not deprecated">
  34593. <doc>
  34594. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  34595. that equal the tags that have been set on this record.]]>
  34596. </doc>
  34597. </method>
  34598. <doc>
  34599. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  34600. from which it was created, and delegates back to it on <code>update</code>
  34601. and <code>remove()</code>.]]>
  34602. </doc>
  34603. </class>
  34604. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  34605. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  34606. <class name="MetricValue" extends="java.lang.Object"
  34607. abstract="false"
  34608. static="false" final="false" visibility="public"
  34609. deprecated="not deprecated">
  34610. <constructor name="MetricValue" type="java.lang.Number, boolean"
  34611. static="false" final="false" visibility="public"
  34612. deprecated="not deprecated">
  34613. <doc>
  34614. <![CDATA[Creates a new instance of MetricValue]]>
  34615. </doc>
  34616. </constructor>
  34617. <method name="isIncrement" return="boolean"
  34618. abstract="false" native="false" synchronized="false"
  34619. static="false" final="false" visibility="public"
  34620. deprecated="not deprecated">
  34621. </method>
  34622. <method name="isAbsolute" return="boolean"
  34623. abstract="false" native="false" synchronized="false"
  34624. static="false" final="false" visibility="public"
  34625. deprecated="not deprecated">
  34626. </method>
  34627. <method name="getNumber" return="java.lang.Number"
  34628. abstract="false" native="false" synchronized="false"
  34629. static="false" final="false" visibility="public"
  34630. deprecated="not deprecated">
  34631. </method>
  34632. <field name="ABSOLUTE" type="boolean"
  34633. transient="false" volatile="false"
  34634. static="true" final="true" visibility="public"
  34635. deprecated="not deprecated">
  34636. </field>
  34637. <field name="INCREMENT" type="boolean"
  34638. transient="false" volatile="false"
  34639. static="true" final="true" visibility="public"
  34640. deprecated="not deprecated">
  34641. </field>
  34642. <doc>
  34643. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  34644. </doc>
  34645. </class>
  34646. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  34647. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  34648. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34649. abstract="false"
  34650. static="false" final="false" visibility="public"
  34651. deprecated="not deprecated">
  34652. <constructor name="NullContext"
  34653. static="false" final="false" visibility="public"
  34654. deprecated="not deprecated">
  34655. <doc>
  34656. <![CDATA[Creates a new instance of NullContext]]>
  34657. </doc>
  34658. </constructor>
  34659. <method name="startMonitoring"
  34660. abstract="false" native="false" synchronized="false"
  34661. static="false" final="false" visibility="public"
  34662. deprecated="not deprecated">
  34663. <doc>
  34664. <![CDATA[Do-nothing version of startMonitoring]]>
  34665. </doc>
  34666. </method>
  34667. <method name="emitRecord"
  34668. abstract="false" native="false" synchronized="false"
  34669. static="false" final="false" visibility="protected"
  34670. deprecated="not deprecated">
  34671. <param name="contextName" type="java.lang.String"/>
  34672. <param name="recordName" type="java.lang.String"/>
  34673. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34674. <doc>
  34675. <![CDATA[Do-nothing version of emitRecord]]>
  34676. </doc>
  34677. </method>
  34678. <method name="update"
  34679. abstract="false" native="false" synchronized="false"
  34680. static="false" final="false" visibility="protected"
  34681. deprecated="not deprecated">
  34682. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34683. <doc>
  34684. <![CDATA[Do-nothing version of update]]>
  34685. </doc>
  34686. </method>
  34687. <method name="remove"
  34688. abstract="false" native="false" synchronized="false"
  34689. static="false" final="false" visibility="protected"
  34690. deprecated="not deprecated">
  34691. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34692. <doc>
  34693. <![CDATA[Do-nothing version of remove]]>
  34694. </doc>
  34695. </method>
  34696. <doc>
  34697. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  34698. default context, so that no performance data is emitted if no configuration
  34699. data is found.]]>
  34700. </doc>
  34701. </class>
  34702. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  34703. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  34704. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34705. abstract="false"
  34706. static="false" final="false" visibility="public"
  34707. deprecated="not deprecated">
  34708. <constructor name="NullContextWithUpdateThread"
  34709. static="false" final="false" visibility="public"
  34710. deprecated="not deprecated">
  34711. <doc>
  34712. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  34713. </doc>
  34714. </constructor>
  34715. <method name="init"
  34716. abstract="false" native="false" synchronized="false"
  34717. static="false" final="false" visibility="public"
  34718. deprecated="not deprecated">
  34719. <param name="contextName" type="java.lang.String"/>
  34720. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  34721. </method>
  34722. <method name="emitRecord"
  34723. abstract="false" native="false" synchronized="false"
  34724. static="false" final="false" visibility="protected"
  34725. deprecated="not deprecated">
  34726. <param name="contextName" type="java.lang.String"/>
  34727. <param name="recordName" type="java.lang.String"/>
  34728. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34729. <doc>
  34730. <![CDATA[Do-nothing version of emitRecord]]>
  34731. </doc>
  34732. </method>
  34733. <method name="update"
  34734. abstract="false" native="false" synchronized="false"
  34735. static="false" final="false" visibility="protected"
  34736. deprecated="not deprecated">
  34737. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34738. <doc>
  34739. <![CDATA[Do-nothing version of update]]>
  34740. </doc>
  34741. </method>
  34742. <method name="remove"
  34743. abstract="false" native="false" synchronized="false"
  34744. static="false" final="false" visibility="protected"
  34745. deprecated="not deprecated">
  34746. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34747. <doc>
  34748. <![CDATA[Do-nothing version of remove]]>
  34749. </doc>
  34750. </method>
  34751. <doc>
  34752. <![CDATA[A null context which has a thread calling
  34753. periodically when monitoring is started. This keeps the data sampled
  34754. correctly.
  34755. In all other respects, this is like the NULL context: No data is emitted.
  34756. This is suitable for Monitoring systems like JMX which reads the metrics
  34757. when someone reads the data from JMX.
  34758. The default impl of start and stop monitoring:
  34759. is the AbstractMetricsContext is good enough.]]>
  34760. </doc>
  34761. </class>
  34762. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  34763. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  34764. <class name="OutputRecord" extends="java.lang.Object"
  34765. abstract="false"
  34766. static="false" final="false" visibility="public"
  34767. deprecated="not deprecated">
  34768. <method name="getTagNames" return="java.util.Set&lt;java.lang.String&gt;"
  34769. abstract="false" native="false" synchronized="false"
  34770. static="false" final="false" visibility="public"
  34771. deprecated="not deprecated">
  34772. <doc>
  34773. <![CDATA[Returns the set of tag names]]>
  34774. </doc>
  34775. </method>
  34776. <method name="getTag" return="java.lang.Object"
  34777. abstract="false" native="false" synchronized="false"
  34778. static="false" final="false" visibility="public"
  34779. deprecated="not deprecated">
  34780. <param name="name" type="java.lang.String"/>
  34781. <doc>
  34782. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  34783. @return the tag value, or null if there is no such tag]]>
  34784. </doc>
  34785. </method>
  34786. <method name="getMetricNames" return="java.util.Set&lt;java.lang.String&gt;"
  34787. abstract="false" native="false" synchronized="false"
  34788. static="false" final="false" visibility="public"
  34789. deprecated="not deprecated">
  34790. <doc>
  34791. <![CDATA[Returns the set of metric names.]]>
  34792. </doc>
  34793. </method>
  34794. <method name="getMetric" return="java.lang.Number"
  34795. abstract="false" native="false" synchronized="false"
  34796. static="false" final="false" visibility="public"
  34797. deprecated="not deprecated">
  34798. <param name="name" type="java.lang.String"/>
  34799. <doc>
  34800. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  34801. </doc>
  34802. </method>
  34803. <doc>
  34804. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  34805. </doc>
  34806. </class>
  34807. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  34808. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  34809. <class name="Util" extends="java.lang.Object"
  34810. abstract="false"
  34811. static="false" final="false" visibility="public"
  34812. deprecated="not deprecated">
  34813. <method name="parse" return="java.util.List&lt;java.net.InetSocketAddress&gt;"
  34814. abstract="false" native="false" synchronized="false"
  34815. static="true" final="false" visibility="public"
  34816. deprecated="not deprecated">
  34817. <param name="specs" type="java.lang.String"/>
  34818. <param name="defaultPort" type="int"/>
  34819. <doc>
  34820. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  34821. of the form <i>hostname</i> or <i>hostname:port</i>. If
  34822. the specs string is null, defaults to localhost:defaultPort.
  34823. @return a list of InetSocketAddress objects.]]>
  34824. </doc>
  34825. </method>
  34826. <doc>
  34827. <![CDATA[Static utility methods]]>
  34828. </doc>
  34829. </class>
  34830. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  34831. </package>
  34832. <package name="org.apache.hadoop.metrics.util">
  34833. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  34834. <class name="MBeanUtil" extends="java.lang.Object"
  34835. abstract="false"
  34836. static="false" final="false" visibility="public"
  34837. deprecated="not deprecated">
  34838. <constructor name="MBeanUtil"
  34839. static="false" final="false" visibility="public"
  34840. deprecated="not deprecated">
  34841. </constructor>
  34842. <method name="registerMBean" return="javax.management.ObjectName"
  34843. abstract="false" native="false" synchronized="false"
  34844. static="true" final="false" visibility="public"
  34845. deprecated="not deprecated">
  34846. <param name="serviceName" type="java.lang.String"/>
  34847. <param name="nameName" type="java.lang.String"/>
  34848. <param name="theMbean" type="java.lang.Object"/>
  34849. <doc>
  34850. <![CDATA[Register the mbean using out standard MBeanName format
  34851. "hadoop.dfs:service=<serviceName>,name=<nameName>"
  34852. Where the <serviceName> and <nameName> are the supplied parameters
  34853. @param serviceName
  34854. @param nameName
  34855. @param theMbean - the MBean to register
  34856. @return the named used to register the MBean]]>
  34857. </doc>
  34858. </method>
  34859. <method name="unregisterMBean"
  34860. abstract="false" native="false" synchronized="false"
  34861. static="true" final="false" visibility="public"
  34862. deprecated="not deprecated">
  34863. <param name="mbeanName" type="javax.management.ObjectName"/>
  34864. </method>
  34865. <doc>
  34866. <![CDATA[This util class provides a method to register an MBean using
  34867. our standard naming convention as described in the doc
  34868. for {link {@link #registerMBean(String, String, Object)}]]>
  34869. </doc>
  34870. </class>
  34871. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  34872. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  34873. <class name="MetricsIntValue" extends="java.lang.Object"
  34874. abstract="false"
  34875. static="false" final="false" visibility="public"
  34876. deprecated="not deprecated">
  34877. <constructor name="MetricsIntValue" type="java.lang.String"
  34878. static="false" final="false" visibility="public"
  34879. deprecated="not deprecated">
  34880. <doc>
  34881. <![CDATA[Constructor - create a new metric
  34882. @param nam the name of the metrics to be used to publish the metric]]>
  34883. </doc>
  34884. </constructor>
  34885. <method name="set"
  34886. abstract="false" native="false" synchronized="true"
  34887. static="false" final="false" visibility="public"
  34888. deprecated="not deprecated">
  34889. <param name="newValue" type="int"/>
  34890. <doc>
  34891. <![CDATA[Set the value
  34892. @param newValue]]>
  34893. </doc>
  34894. </method>
  34895. <method name="get" return="int"
  34896. abstract="false" native="false" synchronized="true"
  34897. static="false" final="false" visibility="public"
  34898. deprecated="not deprecated">
  34899. <doc>
  34900. <![CDATA[Get value
  34901. @return the value last set]]>
  34902. </doc>
  34903. </method>
  34904. <method name="inc"
  34905. abstract="false" native="false" synchronized="true"
  34906. static="false" final="false" visibility="public"
  34907. deprecated="not deprecated">
  34908. <param name="incr" type="int"/>
  34909. <doc>
  34910. <![CDATA[Inc metrics for incr vlaue
  34911. @param incr - value to be added]]>
  34912. </doc>
  34913. </method>
  34914. <method name="inc"
  34915. abstract="false" native="false" synchronized="true"
  34916. static="false" final="false" visibility="public"
  34917. deprecated="not deprecated">
  34918. <doc>
  34919. <![CDATA[Inc metrics by one]]>
  34920. </doc>
  34921. </method>
  34922. <method name="dec"
  34923. abstract="false" native="false" synchronized="true"
  34924. static="false" final="false" visibility="public"
  34925. deprecated="not deprecated">
  34926. <param name="decr" type="int"/>
  34927. <doc>
  34928. <![CDATA[Inc metrics for incr vlaue
  34929. @param decr - value to subtract]]>
  34930. </doc>
  34931. </method>
  34932. <method name="dec"
  34933. abstract="false" native="false" synchronized="true"
  34934. static="false" final="false" visibility="public"
  34935. deprecated="not deprecated">
  34936. <doc>
  34937. <![CDATA[Dec metrics by one]]>
  34938. </doc>
  34939. </method>
  34940. <method name="pushMetric"
  34941. abstract="false" native="false" synchronized="true"
  34942. static="false" final="false" visibility="public"
  34943. deprecated="not deprecated">
  34944. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  34945. <doc>
  34946. <![CDATA[Push the metric to the mr.
  34947. The metric is pushed only if it was updated since last push
  34948. Note this does NOT push to JMX
  34949. (JMX gets the info via {@link #get()}
  34950. @param mr]]>
  34951. </doc>
  34952. </method>
  34953. <doc>
  34954. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  34955. but changes only when it is set.
  34956. Each time its value is set, it is published only *once* at the next update
  34957. call.]]>
  34958. </doc>
  34959. </class>
  34960. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  34961. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  34962. <class name="MetricsLongValue" extends="java.lang.Object"
  34963. abstract="false"
  34964. static="false" final="false" visibility="public"
  34965. deprecated="not deprecated">
  34966. <constructor name="MetricsLongValue" type="java.lang.String"
  34967. static="false" final="false" visibility="public"
  34968. deprecated="not deprecated">
  34969. <doc>
  34970. <![CDATA[Constructor - create a new metric
  34971. @param nam the name of the metrics to be used to publish the metric]]>
  34972. </doc>
  34973. </constructor>
  34974. <method name="set"
  34975. abstract="false" native="false" synchronized="true"
  34976. static="false" final="false" visibility="public"
  34977. deprecated="not deprecated">
  34978. <param name="newValue" type="long"/>
  34979. <doc>
  34980. <![CDATA[Set the value
  34981. @param newValue]]>
  34982. </doc>
  34983. </method>
  34984. <method name="get" return="long"
  34985. abstract="false" native="false" synchronized="true"
  34986. static="false" final="false" visibility="public"
  34987. deprecated="not deprecated">
  34988. <doc>
  34989. <![CDATA[Get value
  34990. @return the value last set]]>
  34991. </doc>
  34992. </method>
  34993. <method name="inc"
  34994. abstract="false" native="false" synchronized="true"
  34995. static="false" final="false" visibility="public"
  34996. deprecated="not deprecated">
  34997. <param name="incr" type="long"/>
  34998. <doc>
  34999. <![CDATA[Inc metrics for incr vlaue
  35000. @param incr - value to be added]]>
  35001. </doc>
  35002. </method>
  35003. <method name="inc"
  35004. abstract="false" native="false" synchronized="true"
  35005. static="false" final="false" visibility="public"
  35006. deprecated="not deprecated">
  35007. <doc>
  35008. <![CDATA[Inc metrics by one]]>
  35009. </doc>
  35010. </method>
  35011. <method name="dec"
  35012. abstract="false" native="false" synchronized="true"
  35013. static="false" final="false" visibility="public"
  35014. deprecated="not deprecated">
  35015. <param name="decr" type="long"/>
  35016. <doc>
  35017. <![CDATA[Inc metrics for incr vlaue
  35018. @param decr - value to subtract]]>
  35019. </doc>
  35020. </method>
  35021. <method name="dec"
  35022. abstract="false" native="false" synchronized="true"
  35023. static="false" final="false" visibility="public"
  35024. deprecated="not deprecated">
  35025. <doc>
  35026. <![CDATA[Dec metrics by one]]>
  35027. </doc>
  35028. </method>
  35029. <method name="pushMetric"
  35030. abstract="false" native="false" synchronized="true"
  35031. static="false" final="false" visibility="public"
  35032. deprecated="not deprecated">
  35033. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  35034. <doc>
  35035. <![CDATA[Push the metric to the mr.
  35036. The metric is pushed only if it was updated since last push
  35037. Note this does NOT push to JMX
  35038. (JMX gets the info via {@link #get()}
  35039. @param mr]]>
  35040. </doc>
  35041. </method>
  35042. <doc>
  35043. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  35044. but changes only when it is set.
  35045. Each time its value is set, it is published only *once* at the next update
  35046. call.]]>
  35047. </doc>
  35048. </class>
  35049. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  35050. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  35051. <class name="MetricsTimeVaryingInt" extends="java.lang.Object"
  35052. abstract="false"
  35053. static="false" final="false" visibility="public"
  35054. deprecated="not deprecated">
  35055. <constructor name="MetricsTimeVaryingInt" type="java.lang.String"
  35056. static="false" final="false" visibility="public"
  35057. deprecated="not deprecated">
  35058. <doc>
  35059. <![CDATA[Constructor - create a new metric
  35060. @param nam the name of the metrics to be used to publish the metric]]>
  35061. </doc>
  35062. </constructor>
  35063. <method name="inc"
  35064. abstract="false" native="false" synchronized="true"
  35065. static="false" final="false" visibility="public"
  35066. deprecated="not deprecated">
  35067. <param name="incr" type="int"/>
  35068. <doc>
  35069. <![CDATA[Inc metrics for incr vlaue
  35070. @param incr - number of operations]]>
  35071. </doc>
  35072. </method>
  35073. <method name="inc"
  35074. abstract="false" native="false" synchronized="true"
  35075. static="false" final="false" visibility="public"
  35076. deprecated="not deprecated">
  35077. <doc>
  35078. <![CDATA[Inc metrics by one]]>
  35079. </doc>
  35080. </method>
  35081. <method name="pushMetric"
  35082. abstract="false" native="false" synchronized="true"
  35083. static="false" final="false" visibility="public"
  35084. deprecated="not deprecated">
  35085. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  35086. <doc>
  35087. <![CDATA[Push the delta metrics to the mr.
  35088. The delta is since the last push/interval.
  35089. Note this does NOT push to JMX
  35090. (JMX gets the info via {@link #previousIntervalValue}
  35091. @param mr]]>
  35092. </doc>
  35093. </method>
  35094. <method name="getPreviousIntervalValue" return="int"
  35095. abstract="false" native="false" synchronized="true"
  35096. static="false" final="false" visibility="public"
  35097. deprecated="not deprecated">
  35098. <doc>
  35099. <![CDATA[The Value at the Previous interval
  35100. @return prev interval value]]>
  35101. </doc>
  35102. </method>
  35103. <doc>
  35104. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  35105. varies over time (e.g. number of files created).
  35106. The metric is is published at interval heart beat (the interval
  35107. is set in the metrics config file).
  35108. Note if one wants a time associated with the metric then use
  35109. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  35110. </doc>
  35111. </class>
  35112. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  35113. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  35114. <class name="MetricsTimeVaryingRate" extends="java.lang.Object"
  35115. abstract="false"
  35116. static="false" final="false" visibility="public"
  35117. deprecated="not deprecated">
  35118. <constructor name="MetricsTimeVaryingRate" type="java.lang.String"
  35119. static="false" final="false" visibility="public"
  35120. deprecated="not deprecated">
  35121. <doc>
  35122. <![CDATA[Constructor - create a new metric
  35123. @param n the name of the metrics to be used to publish the metric]]>
  35124. </doc>
  35125. </constructor>
  35126. <method name="inc"
  35127. abstract="false" native="false" synchronized="true"
  35128. static="false" final="false" visibility="public"
  35129. deprecated="not deprecated">
  35130. <param name="numOps" type="int"/>
  35131. <param name="time" type="long"/>
  35132. <doc>
  35133. <![CDATA[Increment the metrics for numOps operations
  35134. @param numOps - number of operations
  35135. @param time - time for numOps operations]]>
  35136. </doc>
  35137. </method>
  35138. <method name="inc"
  35139. abstract="false" native="false" synchronized="true"
  35140. static="false" final="false" visibility="public"
  35141. deprecated="not deprecated">
  35142. <param name="time" type="long"/>
  35143. <doc>
  35144. <![CDATA[Increment the metrics for one operation
  35145. @param time for one operation]]>
  35146. </doc>
  35147. </method>
  35148. <method name="pushMetric"
  35149. abstract="false" native="false" synchronized="true"
  35150. static="false" final="false" visibility="public"
  35151. deprecated="not deprecated">
  35152. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  35153. <doc>
  35154. <![CDATA[Push the delta metrics to the mr.
  35155. The delta is since the last push/interval.
  35156. Note this does NOT push to JMX
  35157. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  35158. {@link #getPreviousIntervalNumOps()}
  35159. @param mr]]>
  35160. </doc>
  35161. </method>
  35162. <method name="getPreviousIntervalNumOps" return="int"
  35163. abstract="false" native="false" synchronized="true"
  35164. static="false" final="false" visibility="public"
  35165. deprecated="not deprecated">
  35166. <doc>
  35167. <![CDATA[The number of operations in the previous interval
  35168. @return - ops in prev interval]]>
  35169. </doc>
  35170. </method>
  35171. <method name="getPreviousIntervalAverageTime" return="long"
  35172. abstract="false" native="false" synchronized="true"
  35173. static="false" final="false" visibility="public"
  35174. deprecated="not deprecated">
  35175. <doc>
  35176. <![CDATA[The average rate of an operation in the previous interval
  35177. @return - the average rate.]]>
  35178. </doc>
  35179. </method>
  35180. <method name="getMinTime" return="long"
  35181. abstract="false" native="false" synchronized="true"
  35182. static="false" final="false" visibility="public"
  35183. deprecated="not deprecated">
  35184. <doc>
  35185. <![CDATA[The min time for a single operation since the last reset
  35186. {@link #resetMinMax()}
  35187. @return min time for an operation]]>
  35188. </doc>
  35189. </method>
  35190. <method name="getMaxTime" return="long"
  35191. abstract="false" native="false" synchronized="true"
  35192. static="false" final="false" visibility="public"
  35193. deprecated="not deprecated">
  35194. <doc>
  35195. <![CDATA[The max time for a single operation since the last reset
  35196. {@link #resetMinMax()}
  35197. @return max time for an operation]]>
  35198. </doc>
  35199. </method>
  35200. <method name="resetMinMax"
  35201. abstract="false" native="false" synchronized="true"
  35202. static="false" final="false" visibility="public"
  35203. deprecated="not deprecated">
  35204. <doc>
  35205. <![CDATA[Reset the min max values]]>
  35206. </doc>
  35207. </method>
  35208. <doc>
  35209. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  35210. naturally varies over time (e.g. time taken to create a file).
  35211. The rate is averaged at each interval heart beat (the interval
  35212. is set in the metrics config file).
  35213. This class also keeps track of the min and max rates along with
  35214. a method to reset the min-max.]]>
  35215. </doc>
  35216. </class>
  35217. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  35218. </package>
  35219. <package name="org.apache.hadoop.net">
  35220. <!-- start class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  35221. <class name="CachedDNSToSwitchMapping" extends="java.lang.Object"
  35222. abstract="false"
  35223. static="false" final="false" visibility="public"
  35224. deprecated="not deprecated">
  35225. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  35226. <constructor name="CachedDNSToSwitchMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  35227. static="false" final="false" visibility="public"
  35228. deprecated="not deprecated">
  35229. </constructor>
  35230. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  35231. abstract="false" native="false" synchronized="false"
  35232. static="false" final="false" visibility="public"
  35233. deprecated="not deprecated">
  35234. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  35235. </method>
  35236. <field name="rawMapping" type="org.apache.hadoop.net.DNSToSwitchMapping"
  35237. transient="false" volatile="false"
  35238. static="false" final="false" visibility="protected"
  35239. deprecated="not deprecated">
  35240. </field>
  35241. <doc>
  35242. <![CDATA[A cached implementation of DNSToSwitchMapping that takes an
  35243. raw DNSToSwitchMapping and stores the resolved network location in
  35244. a cache. The following calls to a resolved network location
  35245. will get its location from the cache.]]>
  35246. </doc>
  35247. </class>
  35248. <!-- end class org.apache.hadoop.net.CachedDNSToSwitchMapping -->
  35249. <!-- start class org.apache.hadoop.net.DNS -->
  35250. <class name="DNS" extends="java.lang.Object"
  35251. abstract="false"
  35252. static="false" final="false" visibility="public"
  35253. deprecated="not deprecated">
  35254. <constructor name="DNS"
  35255. static="false" final="false" visibility="public"
  35256. deprecated="not deprecated">
  35257. </constructor>
  35258. <method name="reverseDns" return="java.lang.String"
  35259. abstract="false" native="false" synchronized="false"
  35260. static="true" final="false" visibility="public"
  35261. deprecated="not deprecated">
  35262. <param name="hostIp" type="java.net.InetAddress"/>
  35263. <param name="ns" type="java.lang.String"/>
  35264. <exception name="NamingException" type="javax.naming.NamingException"/>
  35265. <doc>
  35266. <![CDATA[Returns the hostname associated with the specified IP address by the
  35267. provided nameserver.
  35268. @param hostIp
  35269. The address to reverse lookup
  35270. @param ns
  35271. The host name of a reachable DNS server
  35272. @return The host name associated with the provided IP
  35273. @throws NamingException
  35274. If a NamingException is encountered]]>
  35275. </doc>
  35276. </method>
  35277. <method name="getIPs" return="java.lang.String[]"
  35278. abstract="false" native="false" synchronized="false"
  35279. static="true" final="false" visibility="public"
  35280. deprecated="not deprecated">
  35281. <param name="strInterface" type="java.lang.String"/>
  35282. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35283. <doc>
  35284. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  35285. textual form.
  35286. @param strInterface
  35287. The name of the network interface to query (e.g. eth0)
  35288. @return A string vector of all the IPs associated with the provided
  35289. interface
  35290. @throws UnknownHostException
  35291. If an UnknownHostException is encountered in querying the
  35292. default interface]]>
  35293. </doc>
  35294. </method>
  35295. <method name="getDefaultIP" return="java.lang.String"
  35296. abstract="false" native="false" synchronized="false"
  35297. static="true" final="false" visibility="public"
  35298. deprecated="not deprecated">
  35299. <param name="strInterface" type="java.lang.String"/>
  35300. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35301. <doc>
  35302. <![CDATA[Returns the first available IP address associated with the provided
  35303. network interface
  35304. @param strInterface
  35305. The name of the network interface to query (e.g. eth0)
  35306. @return The IP address in text form
  35307. @throws UnknownHostException
  35308. If one is encountered in querying the default interface]]>
  35309. </doc>
  35310. </method>
  35311. <method name="getHosts" return="java.lang.String[]"
  35312. abstract="false" native="false" synchronized="false"
  35313. static="true" final="false" visibility="public"
  35314. deprecated="not deprecated">
  35315. <param name="strInterface" type="java.lang.String"/>
  35316. <param name="nameserver" type="java.lang.String"/>
  35317. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35318. <doc>
  35319. <![CDATA[Returns all the host names associated by the provided nameserver with the
  35320. address bound to the specified network interface
  35321. @param strInterface
  35322. The name of the network interface to query (e.g. eth0)
  35323. @param nameserver
  35324. The DNS host name
  35325. @return A string vector of all host names associated with the IPs tied to
  35326. the specified interface
  35327. @throws UnknownHostException]]>
  35328. </doc>
  35329. </method>
  35330. <method name="getHosts" return="java.lang.String[]"
  35331. abstract="false" native="false" synchronized="false"
  35332. static="true" final="false" visibility="public"
  35333. deprecated="not deprecated">
  35334. <param name="strInterface" type="java.lang.String"/>
  35335. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35336. <doc>
  35337. <![CDATA[Returns all the host names associated by the default nameserver with the
  35338. address bound to the specified network interface
  35339. @param strInterface
  35340. The name of the network interface to query (e.g. eth0)
  35341. @return The list of host names associated with IPs bound to the network
  35342. interface
  35343. @throws UnknownHostException
  35344. If one is encountered while querying the deault interface]]>
  35345. </doc>
  35346. </method>
  35347. <method name="getDefaultHost" return="java.lang.String"
  35348. abstract="false" native="false" synchronized="false"
  35349. static="true" final="false" visibility="public"
  35350. deprecated="not deprecated">
  35351. <param name="strInterface" type="java.lang.String"/>
  35352. <param name="nameserver" type="java.lang.String"/>
  35353. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35354. <doc>
  35355. <![CDATA[Returns the default (first) host name associated by the provided
  35356. nameserver with the address bound to the specified network interface
  35357. @param strInterface
  35358. The name of the network interface to query (e.g. eth0)
  35359. @param nameserver
  35360. The DNS host name
  35361. @return The default host names associated with IPs bound to the network
  35362. interface
  35363. @throws UnknownHostException
  35364. If one is encountered while querying the deault interface]]>
  35365. </doc>
  35366. </method>
  35367. <method name="getDefaultHost" return="java.lang.String"
  35368. abstract="false" native="false" synchronized="false"
  35369. static="true" final="false" visibility="public"
  35370. deprecated="not deprecated">
  35371. <param name="strInterface" type="java.lang.String"/>
  35372. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35373. <doc>
  35374. <![CDATA[Returns the default (first) host name associated by the default
  35375. nameserver with the address bound to the specified network interface
  35376. @param strInterface
  35377. The name of the network interface to query (e.g. eth0)
  35378. @return The default host name associated with IPs bound to the network
  35379. interface
  35380. @throws UnknownHostException
  35381. If one is encountered while querying the deault interface]]>
  35382. </doc>
  35383. </method>
  35384. <doc>
  35385. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  35386. the querying of specific network interfaces or nameservers.]]>
  35387. </doc>
  35388. </class>
  35389. <!-- end class org.apache.hadoop.net.DNS -->
  35390. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  35391. <interface name="DNSToSwitchMapping" abstract="true"
  35392. static="false" final="false" visibility="public"
  35393. deprecated="not deprecated">
  35394. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  35395. abstract="false" native="false" synchronized="false"
  35396. static="false" final="false" visibility="public"
  35397. deprecated="not deprecated">
  35398. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  35399. <doc>
  35400. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  35401. switch information (network paths). One-to-one correspondence must be
  35402. maintained between the elements in the lists.
  35403. Consider an element in the argument list - x.y.com. The switch information
  35404. that is returned must be a network path of the form /foo/rack,
  35405. where / is the root, and 'foo' is the switch where 'rack' is connected.
  35406. Note the hostname/ip-address is not part of the returned path.
  35407. The network topology of the cluster would determine the number of
  35408. components in the network path.
  35409. @param names
  35410. @return list of resolved network paths]]>
  35411. </doc>
  35412. </method>
  35413. <doc>
  35414. <![CDATA[An interface that should be implemented to allow pluggable
  35415. DNS-name/IP-address to RackID resolvers.]]>
  35416. </doc>
  35417. </interface>
  35418. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  35419. <!-- start class org.apache.hadoop.net.NetUtils -->
  35420. <class name="NetUtils" extends="java.lang.Object"
  35421. abstract="false"
  35422. static="false" final="false" visibility="public"
  35423. deprecated="not deprecated">
  35424. <constructor name="NetUtils"
  35425. static="false" final="false" visibility="public"
  35426. deprecated="not deprecated">
  35427. </constructor>
  35428. <method name="getSocketFactory" return="javax.net.SocketFactory"
  35429. abstract="false" native="false" synchronized="false"
  35430. static="true" final="false" visibility="public"
  35431. deprecated="not deprecated">
  35432. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35433. <param name="clazz" type="java.lang.Class&lt;?&gt;"/>
  35434. <doc>
  35435. <![CDATA[Get the socket factory for the given class according to its
  35436. configuration parameter
  35437. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  35438. such parameter exists then fall back on the default socket factory as
  35439. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  35440. this default socket factory is not configured, then fall back on the JVM
  35441. default socket factory.
  35442. @param conf the configuration
  35443. @param clazz the class (usually a {@link VersionedProtocol})
  35444. @return a socket factory]]>
  35445. </doc>
  35446. </method>
  35447. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  35448. abstract="false" native="false" synchronized="false"
  35449. static="true" final="false" visibility="public"
  35450. deprecated="not deprecated">
  35451. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35452. <doc>
  35453. <![CDATA[Get the default socket factory as specified by the configuration
  35454. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  35455. @param conf the configuration
  35456. @return the default socket factory as specified in the configuration or
  35457. the JVM default socket factory if the configuration does not
  35458. contain a default socket factory property.]]>
  35459. </doc>
  35460. </method>
  35461. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  35462. abstract="false" native="false" synchronized="false"
  35463. static="true" final="false" visibility="public"
  35464. deprecated="not deprecated">
  35465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35466. <param name="propValue" type="java.lang.String"/>
  35467. <doc>
  35468. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  35469. given proxy URI corresponds to an absence of configuration parameter,
  35470. returns null. If the URI is malformed raises an exception.
  35471. @param propValue the property which is the class name of the
  35472. SocketFactory to instantiate; assumed non null and non empty.
  35473. @return a socket factory as defined in the property value.]]>
  35474. </doc>
  35475. </method>
  35476. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  35477. abstract="false" native="false" synchronized="false"
  35478. static="true" final="false" visibility="public"
  35479. deprecated="not deprecated">
  35480. <param name="target" type="java.lang.String"/>
  35481. <doc>
  35482. <![CDATA[Util method to build socket addr from either:
  35483. <host>:<post>
  35484. <fs>://<host>:<port>/<path>]]>
  35485. </doc>
  35486. </method>
  35487. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  35488. abstract="false" native="false" synchronized="false"
  35489. static="true" final="false" visibility="public"
  35490. deprecated="not deprecated">
  35491. <param name="target" type="java.lang.String"/>
  35492. <param name="defaultPort" type="int"/>
  35493. <doc>
  35494. <![CDATA[Util method to build socket addr from either:
  35495. <host>
  35496. <host>:<post>
  35497. <fs>://<host>:<port>/<path>]]>
  35498. </doc>
  35499. </method>
  35500. <method name="getServerAddress" return="java.lang.String"
  35501. abstract="false" native="false" synchronized="false"
  35502. static="true" final="false" visibility="public"
  35503. deprecated="not deprecated">
  35504. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35505. <param name="oldBindAddressName" type="java.lang.String"/>
  35506. <param name="oldPortName" type="java.lang.String"/>
  35507. <param name="newBindAddressName" type="java.lang.String"/>
  35508. <doc>
  35509. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  35510. to a single colon separated one.
  35511. @param conf the configuration to check
  35512. @param oldBindAddressName the old address attribute name
  35513. @param oldPortName the old port attribute name
  35514. @param newBindAddressName the new combined name
  35515. @return the complete address from the configuration]]>
  35516. </doc>
  35517. </method>
  35518. <method name="addStaticResolution"
  35519. abstract="false" native="false" synchronized="false"
  35520. static="true" final="false" visibility="public"
  35521. deprecated="not deprecated">
  35522. <param name="host" type="java.lang.String"/>
  35523. <param name="resolvedName" type="java.lang.String"/>
  35524. <doc>
  35525. <![CDATA[Adds a static resolution for host. This can be used for setting up
  35526. hostnames with names that are fake to point to a well known host. For e.g.
  35527. in some testcases we require to have daemons with different hostnames
  35528. running on the same machine. In order to create connections to these
  35529. daemons, one can set up mappings from those hostnames to "localhost".
  35530. {@link NetUtils#getStaticResolution(String)} can be used to query for
  35531. the actual hostname.
  35532. @param host
  35533. @param resolvedName]]>
  35534. </doc>
  35535. </method>
  35536. <method name="getStaticResolution" return="java.lang.String"
  35537. abstract="false" native="false" synchronized="false"
  35538. static="true" final="false" visibility="public"
  35539. deprecated="not deprecated">
  35540. <param name="host" type="java.lang.String"/>
  35541. <doc>
  35542. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  35543. have been set earlier using
  35544. {@link NetUtils#addStaticResolution(String, String)}
  35545. @param host
  35546. @return the resolution]]>
  35547. </doc>
  35548. </method>
  35549. <method name="getAllStaticResolutions" return="java.util.List&lt;java.lang.String[]&gt;"
  35550. abstract="false" native="false" synchronized="false"
  35551. static="true" final="false" visibility="public"
  35552. deprecated="not deprecated">
  35553. <doc>
  35554. <![CDATA[This is used to get all the resolutions that were added using
  35555. {@link NetUtils#addStaticResolution(String, String)}. The return
  35556. value is a List each element of which contains an array of String
  35557. of the form String[0]=hostname, String[1]=resolved-hostname
  35558. @return the list of resolutions]]>
  35559. </doc>
  35560. </method>
  35561. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  35562. abstract="false" native="false" synchronized="false"
  35563. static="true" final="false" visibility="public"
  35564. deprecated="not deprecated">
  35565. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  35566. <doc>
  35567. <![CDATA[Returns InetSocketAddress that a client can use to
  35568. connect to the server. Server.getListenerAddress() is not correct when
  35569. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  35570. the getListenerAddress() returns "0.0.0.0:port".
  35571. @param server
  35572. @return socket address that a client can use to connect to the server.]]>
  35573. </doc>
  35574. </method>
  35575. <method name="getInputStream" return="java.io.InputStream"
  35576. abstract="false" native="false" synchronized="false"
  35577. static="true" final="false" visibility="public"
  35578. deprecated="not deprecated">
  35579. <param name="socket" type="java.net.Socket"/>
  35580. <exception name="IOException" type="java.io.IOException"/>
  35581. <doc>
  35582. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  35583. From documentation for {@link #getInputStream(Socket, long)}:<br>
  35584. Returns InputStream for the socket. If the socket has an associated
  35585. SocketChannel then it returns a
  35586. {@link SocketInputStream} with the given timeout. If the socket does not
  35587. have a channel, {@link Socket#getInputStream()} is returned. In the later
  35588. case, the timeout argument is ignored and the timeout set with
  35589. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  35590. Any socket created using socket factories returned by {@link #NetUtils},
  35591. must use this interface instead of {@link Socket#getInputStream()}.
  35592. @see #getInputStream(Socket, long)
  35593. @param socket
  35594. @return InputStream for reading from the socket.
  35595. @throws IOException]]>
  35596. </doc>
  35597. </method>
  35598. <method name="getInputStream" return="java.io.InputStream"
  35599. abstract="false" native="false" synchronized="false"
  35600. static="true" final="false" visibility="public"
  35601. deprecated="not deprecated">
  35602. <param name="socket" type="java.net.Socket"/>
  35603. <param name="timeout" type="long"/>
  35604. <exception name="IOException" type="java.io.IOException"/>
  35605. <doc>
  35606. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  35607. SocketChannel then it returns a
  35608. {@link SocketInputStream} with the given timeout. If the socket does not
  35609. have a channel, {@link Socket#getInputStream()} is returned. In the later
  35610. case, the timeout argument is ignored and the timeout set with
  35611. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  35612. Any socket created using socket factories returned by {@link #NetUtils},
  35613. must use this interface instead of {@link Socket#getInputStream()}.
  35614. @see Socket#getChannel()
  35615. @param socket
  35616. @param timeout timeout in milliseconds. This may not always apply. zero
  35617. for waiting as long as necessary.
  35618. @return InputStream for reading from the socket.
  35619. @throws IOException]]>
  35620. </doc>
  35621. </method>
  35622. <method name="getOutputStream" return="java.io.OutputStream"
  35623. abstract="false" native="false" synchronized="false"
  35624. static="true" final="false" visibility="public"
  35625. deprecated="not deprecated">
  35626. <param name="socket" type="java.net.Socket"/>
  35627. <exception name="IOException" type="java.io.IOException"/>
  35628. <doc>
  35629. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  35630. wait until data is available.<br><br>
  35631. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  35632. Returns OutputStream for the socket. If the socket has an associated
  35633. SocketChannel then it returns a
  35634. {@link SocketOutputStream} with the given timeout. If the socket does not
  35635. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  35636. case, the timeout argument is ignored and the write will wait until
  35637. data is available.<br><br>
  35638. Any socket created using socket factories returned by {@link #NetUtils},
  35639. must use this interface instead of {@link Socket#getOutputStream()}.
  35640. @see #getOutputStream(Socket, long)
  35641. @param socket
  35642. @return OutputStream for writing to the socket.
  35643. @throws IOException]]>
  35644. </doc>
  35645. </method>
  35646. <method name="getOutputStream" return="java.io.OutputStream"
  35647. abstract="false" native="false" synchronized="false"
  35648. static="true" final="false" visibility="public"
  35649. deprecated="not deprecated">
  35650. <param name="socket" type="java.net.Socket"/>
  35651. <param name="timeout" type="long"/>
  35652. <exception name="IOException" type="java.io.IOException"/>
  35653. <doc>
  35654. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  35655. SocketChannel then it returns a
  35656. {@link SocketOutputStream} with the given timeout. If the socket does not
  35657. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  35658. case, the timeout argument is ignored and the write will wait until
  35659. data is available.<br><br>
  35660. Any socket created using socket factories returned by {@link #NetUtils},
  35661. must use this interface instead of {@link Socket#getOutputStream()}.
  35662. @see Socket#getChannel()
  35663. @param socket
  35664. @param timeout timeout in milliseconds. This may not always apply. zero
  35665. for waiting as long as necessary.
  35666. @return OutputStream for writing to the socket.
  35667. @throws IOException]]>
  35668. </doc>
  35669. </method>
  35670. <method name="normalizeHostName" return="java.lang.String"
  35671. abstract="false" native="false" synchronized="false"
  35672. static="true" final="false" visibility="public"
  35673. deprecated="not deprecated">
  35674. <param name="name" type="java.lang.String"/>
  35675. <doc>
  35676. <![CDATA[Given a string representation of a host, return its ip address
  35677. in textual presentation.
  35678. @param name a string representation of a host:
  35679. either a textual representation its IP address or its host name
  35680. @return its IP address in the string format]]>
  35681. </doc>
  35682. </method>
  35683. <method name="normalizeHostNames" return="java.util.List&lt;java.lang.String&gt;"
  35684. abstract="false" native="false" synchronized="false"
  35685. static="true" final="false" visibility="public"
  35686. deprecated="not deprecated">
  35687. <param name="names" type="java.util.Collection&lt;java.lang.String&gt;"/>
  35688. <doc>
  35689. <![CDATA[Given a collection of string representation of hosts, return a list of
  35690. corresponding IP addresses in the textual representation.
  35691. @param names a collection of string representations of hosts
  35692. @return a list of corresponding IP addresses in the string format
  35693. @see #normalizeHostName(String)]]>
  35694. </doc>
  35695. </method>
  35696. </class>
  35697. <!-- end class org.apache.hadoop.net.NetUtils -->
  35698. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  35699. <class name="NetworkTopology" extends="java.lang.Object"
  35700. abstract="false"
  35701. static="false" final="false" visibility="public"
  35702. deprecated="not deprecated">
  35703. <constructor name="NetworkTopology"
  35704. static="false" final="false" visibility="public"
  35705. deprecated="not deprecated">
  35706. </constructor>
  35707. <method name="add"
  35708. abstract="false" native="false" synchronized="false"
  35709. static="false" final="false" visibility="public"
  35710. deprecated="not deprecated">
  35711. <param name="node" type="org.apache.hadoop.net.Node"/>
  35712. <doc>
  35713. <![CDATA[Add a leaf node
  35714. Update node counter & rack counter if neccessary
  35715. @param node
  35716. node to be added
  35717. @exception IllegalArgumentException if add a node to a leave
  35718. or node to be added is not a leaf]]>
  35719. </doc>
  35720. </method>
  35721. <method name="remove"
  35722. abstract="false" native="false" synchronized="false"
  35723. static="false" final="false" visibility="public"
  35724. deprecated="not deprecated">
  35725. <param name="node" type="org.apache.hadoop.net.Node"/>
  35726. <doc>
  35727. <![CDATA[Remove a node
  35728. Update node counter & rack counter if neccessary
  35729. @param node
  35730. node to be removed]]>
  35731. </doc>
  35732. </method>
  35733. <method name="contains" return="boolean"
  35734. abstract="false" native="false" synchronized="false"
  35735. static="false" final="false" visibility="public"
  35736. deprecated="not deprecated">
  35737. <param name="node" type="org.apache.hadoop.net.Node"/>
  35738. <doc>
  35739. <![CDATA[Check if the tree contains node <i>node</i>
  35740. @param node
  35741. a node
  35742. @return true if <i>node</i> is already in the tree; false otherwise]]>
  35743. </doc>
  35744. </method>
  35745. <method name="getNode" return="org.apache.hadoop.net.Node"
  35746. abstract="false" native="false" synchronized="false"
  35747. static="false" final="false" visibility="public"
  35748. deprecated="not deprecated">
  35749. <param name="loc" type="java.lang.String"/>
  35750. <doc>
  35751. <![CDATA[Given a string representation of a node, return its reference
  35752. @param loc
  35753. a path-like string representation of a node
  35754. @return a reference to the node; null if the node is not in the tree]]>
  35755. </doc>
  35756. </method>
  35757. <method name="getNumOfRacks" return="int"
  35758. abstract="false" native="false" synchronized="false"
  35759. static="false" final="false" visibility="public"
  35760. deprecated="not deprecated">
  35761. <doc>
  35762. <![CDATA[Return the total number of racks]]>
  35763. </doc>
  35764. </method>
  35765. <method name="getNumOfLeaves" return="int"
  35766. abstract="false" native="false" synchronized="false"
  35767. static="false" final="false" visibility="public"
  35768. deprecated="not deprecated">
  35769. <doc>
  35770. <![CDATA[Return the total number of nodes]]>
  35771. </doc>
  35772. </method>
  35773. <method name="getDistance" return="int"
  35774. abstract="false" native="false" synchronized="false"
  35775. static="false" final="false" visibility="public"
  35776. deprecated="not deprecated">
  35777. <param name="node1" type="org.apache.hadoop.net.Node"/>
  35778. <param name="node2" type="org.apache.hadoop.net.Node"/>
  35779. <doc>
  35780. <![CDATA[Return the distance between two nodes
  35781. It is assumed that the distance from one node to its parent is 1
  35782. The distance between two nodes is calculated by summing up their distances
  35783. to their closest common ancestor.
  35784. @param node1 one node
  35785. @param node2 another node
  35786. @return the distance between node1 and node2
  35787. node1 or node2 do not belong to the cluster]]>
  35788. </doc>
  35789. </method>
  35790. <method name="isOnSameRack" return="boolean"
  35791. abstract="false" native="false" synchronized="false"
  35792. static="false" final="false" visibility="public"
  35793. deprecated="not deprecated">
  35794. <param name="node1" type="org.apache.hadoop.net.Node"/>
  35795. <param name="node2" type="org.apache.hadoop.net.Node"/>
  35796. <doc>
  35797. <![CDATA[Check if two nodes are on the same rack
  35798. @param node1 one node
  35799. @param node2 another node
  35800. @return true if node1 and node2 are pm the same rack; false otherwise
  35801. @exception IllegalArgumentException when either node1 or node2 is null, or
  35802. node1 or node2 do not belong to the cluster]]>
  35803. </doc>
  35804. </method>
  35805. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  35806. abstract="false" native="false" synchronized="false"
  35807. static="false" final="false" visibility="public"
  35808. deprecated="not deprecated">
  35809. <param name="scope" type="java.lang.String"/>
  35810. <doc>
  35811. <![CDATA[randomly choose one node from <i>scope</i>
  35812. if scope starts with ~, choose one from the all nodes except for the
  35813. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  35814. @param scope range of nodes from which a node will be choosen
  35815. @return the choosen node]]>
  35816. </doc>
  35817. </method>
  35818. <method name="countNumOfAvailableNodes" return="int"
  35819. abstract="false" native="false" synchronized="false"
  35820. static="false" final="false" visibility="public"
  35821. deprecated="not deprecated">
  35822. <param name="scope" type="java.lang.String"/>
  35823. <param name="excludedNodes" type="java.util.List&lt;org.apache.hadoop.net.Node&gt;"/>
  35824. <doc>
  35825. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  35826. if scope starts with ~, return the number of nodes that are not
  35827. in <i>scope</i> and <i>excludedNodes</i>;
  35828. @param scope a path string that may start with ~
  35829. @param excludedNodes a list of nodes
  35830. @return number of available nodes]]>
  35831. </doc>
  35832. </method>
  35833. <method name="toString" return="java.lang.String"
  35834. abstract="false" native="false" synchronized="false"
  35835. static="false" final="false" visibility="public"
  35836. deprecated="not deprecated">
  35837. <doc>
  35838. <![CDATA[convert a network tree to a string]]>
  35839. </doc>
  35840. </method>
  35841. <method name="pseudoSortByDistance"
  35842. abstract="false" native="false" synchronized="false"
  35843. static="false" final="false" visibility="public"
  35844. deprecated="not deprecated">
  35845. <param name="reader" type="org.apache.hadoop.net.Node"/>
  35846. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  35847. <doc>
  35848. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  35849. It linearly scans the array, if a local node is found, swap it with
  35850. the first element of the array.
  35851. If a local rack node is found, swap it with the first element following
  35852. the local node.
  35853. If neither local node or local rack node is found, put a random replica
  35854. location at postion 0.
  35855. It leaves the rest nodes untouched.]]>
  35856. </doc>
  35857. </method>
  35858. <field name="DEFAULT_RACK" type="java.lang.String"
  35859. transient="false" volatile="false"
  35860. static="true" final="true" visibility="public"
  35861. deprecated="not deprecated">
  35862. </field>
  35863. <field name="DEFAULT_HOST_LEVEL" type="int"
  35864. transient="false" volatile="false"
  35865. static="true" final="true" visibility="public"
  35866. deprecated="not deprecated">
  35867. </field>
  35868. <field name="LOG" type="org.apache.commons.logging.Log"
  35869. transient="false" volatile="false"
  35870. static="true" final="true" visibility="public"
  35871. deprecated="not deprecated">
  35872. </field>
  35873. <doc>
  35874. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  35875. network topology.
  35876. For example, a cluster may be consists of many data centers filled
  35877. with racks of computers.
  35878. In a network topology, leaves represent data nodes (computers) and inner
  35879. nodes represent switches/routers that manage traffic in/out of data centers
  35880. or racks.]]>
  35881. </doc>
  35882. </class>
  35883. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  35884. <!-- start interface org.apache.hadoop.net.Node -->
  35885. <interface name="Node" abstract="true"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <method name="getNetworkLocation" return="java.lang.String"
  35889. abstract="false" native="false" synchronized="false"
  35890. static="false" final="false" visibility="public"
  35891. deprecated="not deprecated">
  35892. <doc>
  35893. <![CDATA[Return the string representation of this node's network location]]>
  35894. </doc>
  35895. </method>
  35896. <method name="setNetworkLocation"
  35897. abstract="false" native="false" synchronized="false"
  35898. static="false" final="false" visibility="public"
  35899. deprecated="not deprecated">
  35900. <param name="location" type="java.lang.String"/>
  35901. <doc>
  35902. <![CDATA[Set the node's network location]]>
  35903. </doc>
  35904. </method>
  35905. <method name="getName" return="java.lang.String"
  35906. abstract="false" native="false" synchronized="false"
  35907. static="false" final="false" visibility="public"
  35908. deprecated="not deprecated">
  35909. <doc>
  35910. <![CDATA[Return this node's name]]>
  35911. </doc>
  35912. </method>
  35913. <method name="getParent" return="org.apache.hadoop.net.Node"
  35914. abstract="false" native="false" synchronized="false"
  35915. static="false" final="false" visibility="public"
  35916. deprecated="not deprecated">
  35917. <doc>
  35918. <![CDATA[Return this node's parent]]>
  35919. </doc>
  35920. </method>
  35921. <method name="setParent"
  35922. abstract="false" native="false" synchronized="false"
  35923. static="false" final="false" visibility="public"
  35924. deprecated="not deprecated">
  35925. <param name="parent" type="org.apache.hadoop.net.Node"/>
  35926. <doc>
  35927. <![CDATA[Set this node's parent]]>
  35928. </doc>
  35929. </method>
  35930. <method name="getLevel" return="int"
  35931. abstract="false" native="false" synchronized="false"
  35932. static="false" final="false" visibility="public"
  35933. deprecated="not deprecated">
  35934. <doc>
  35935. <![CDATA[Return this node's level in the tree.
  35936. E.g. the root of a tree returns 0 and its children return 1]]>
  35937. </doc>
  35938. </method>
  35939. <method name="setLevel"
  35940. abstract="false" native="false" synchronized="false"
  35941. static="false" final="false" visibility="public"
  35942. deprecated="not deprecated">
  35943. <param name="i" type="int"/>
  35944. <doc>
  35945. <![CDATA[Set this node's level in the tree.]]>
  35946. </doc>
  35947. </method>
  35948. <doc>
  35949. <![CDATA[The interface defines a node in a network topology.
  35950. A node may be a leave representing a data node or an inner
  35951. node representing a datacenter or rack.
  35952. Each data has a name and its location in the network is
  35953. decided by a string with syntax similar to a file name.
  35954. For example, a data node's name is hostname:port# and if it's located at
  35955. rack "orange" in datacenter "dog", the string representation of its
  35956. network location is /dog/orange]]>
  35957. </doc>
  35958. </interface>
  35959. <!-- end interface org.apache.hadoop.net.Node -->
  35960. <!-- start class org.apache.hadoop.net.NodeBase -->
  35961. <class name="NodeBase" extends="java.lang.Object"
  35962. abstract="false"
  35963. static="false" final="false" visibility="public"
  35964. deprecated="not deprecated">
  35965. <implements name="org.apache.hadoop.net.Node"/>
  35966. <constructor name="NodeBase"
  35967. static="false" final="false" visibility="public"
  35968. deprecated="not deprecated">
  35969. <doc>
  35970. <![CDATA[Default constructor]]>
  35971. </doc>
  35972. </constructor>
  35973. <constructor name="NodeBase" type="java.lang.String"
  35974. static="false" final="false" visibility="public"
  35975. deprecated="not deprecated">
  35976. <doc>
  35977. <![CDATA[Construct a node from its path
  35978. @param path
  35979. a concatenation of this node's location, the path seperator, and its name]]>
  35980. </doc>
  35981. </constructor>
  35982. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  35983. static="false" final="false" visibility="public"
  35984. deprecated="not deprecated">
  35985. <doc>
  35986. <![CDATA[Construct a node from its name and its location
  35987. @param name this node's name
  35988. @param location this node's location]]>
  35989. </doc>
  35990. </constructor>
  35991. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  35992. static="false" final="false" visibility="public"
  35993. deprecated="not deprecated">
  35994. <doc>
  35995. <![CDATA[Construct a node from its name and its location
  35996. @param name this node's name
  35997. @param location this node's location
  35998. @param parent this node's parent node
  35999. @param level this node's level in the tree]]>
  36000. </doc>
  36001. </constructor>
  36002. <method name="getName" return="java.lang.String"
  36003. abstract="false" native="false" synchronized="false"
  36004. static="false" final="false" visibility="public"
  36005. deprecated="not deprecated">
  36006. <doc>
  36007. <![CDATA[Return this node's name]]>
  36008. </doc>
  36009. </method>
  36010. <method name="getNetworkLocation" return="java.lang.String"
  36011. abstract="false" native="false" synchronized="false"
  36012. static="false" final="false" visibility="public"
  36013. deprecated="not deprecated">
  36014. <doc>
  36015. <![CDATA[Return this node's network location]]>
  36016. </doc>
  36017. </method>
  36018. <method name="setNetworkLocation"
  36019. abstract="false" native="false" synchronized="false"
  36020. static="false" final="false" visibility="public"
  36021. deprecated="not deprecated">
  36022. <param name="location" type="java.lang.String"/>
  36023. <doc>
  36024. <![CDATA[Set this node's network location]]>
  36025. </doc>
  36026. </method>
  36027. <method name="getPath" return="java.lang.String"
  36028. abstract="false" native="false" synchronized="false"
  36029. static="true" final="false" visibility="public"
  36030. deprecated="not deprecated">
  36031. <param name="node" type="org.apache.hadoop.net.Node"/>
  36032. <doc>
  36033. <![CDATA[Return this node's path]]>
  36034. </doc>
  36035. </method>
  36036. <method name="toString" return="java.lang.String"
  36037. abstract="false" native="false" synchronized="false"
  36038. static="false" final="false" visibility="public"
  36039. deprecated="not deprecated">
  36040. <doc>
  36041. <![CDATA[Return this node's string representation]]>
  36042. </doc>
  36043. </method>
  36044. <method name="normalize" return="java.lang.String"
  36045. abstract="false" native="false" synchronized="false"
  36046. static="true" final="false" visibility="public"
  36047. deprecated="not deprecated">
  36048. <param name="path" type="java.lang.String"/>
  36049. <doc>
  36050. <![CDATA[Normalize a path]]>
  36051. </doc>
  36052. </method>
  36053. <method name="getParent" return="org.apache.hadoop.net.Node"
  36054. abstract="false" native="false" synchronized="false"
  36055. static="false" final="false" visibility="public"
  36056. deprecated="not deprecated">
  36057. <doc>
  36058. <![CDATA[Return this node's parent]]>
  36059. </doc>
  36060. </method>
  36061. <method name="setParent"
  36062. abstract="false" native="false" synchronized="false"
  36063. static="false" final="false" visibility="public"
  36064. deprecated="not deprecated">
  36065. <param name="parent" type="org.apache.hadoop.net.Node"/>
  36066. <doc>
  36067. <![CDATA[Set this node's parent]]>
  36068. </doc>
  36069. </method>
  36070. <method name="getLevel" return="int"
  36071. abstract="false" native="false" synchronized="false"
  36072. static="false" final="false" visibility="public"
  36073. deprecated="not deprecated">
  36074. <doc>
  36075. <![CDATA[Return this node's level in the tree.
  36076. E.g. the root of a tree returns 0 and its children return 1]]>
  36077. </doc>
  36078. </method>
  36079. <method name="setLevel"
  36080. abstract="false" native="false" synchronized="false"
  36081. static="false" final="false" visibility="public"
  36082. deprecated="not deprecated">
  36083. <param name="level" type="int"/>
  36084. <doc>
  36085. <![CDATA[Set this node's level in the tree]]>
  36086. </doc>
  36087. </method>
  36088. <field name="PATH_SEPARATOR" type="char"
  36089. transient="false" volatile="false"
  36090. static="true" final="true" visibility="public"
  36091. deprecated="not deprecated">
  36092. </field>
  36093. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  36094. transient="false" volatile="false"
  36095. static="true" final="false" visibility="public"
  36096. deprecated="not deprecated">
  36097. </field>
  36098. <field name="ROOT" type="java.lang.String"
  36099. transient="false" volatile="false"
  36100. static="true" final="true" visibility="public"
  36101. deprecated="not deprecated">
  36102. </field>
  36103. <field name="name" type="java.lang.String"
  36104. transient="false" volatile="false"
  36105. static="false" final="false" visibility="protected"
  36106. deprecated="not deprecated">
  36107. </field>
  36108. <field name="location" type="java.lang.String"
  36109. transient="false" volatile="false"
  36110. static="false" final="false" visibility="protected"
  36111. deprecated="not deprecated">
  36112. </field>
  36113. <field name="level" type="int"
  36114. transient="false" volatile="false"
  36115. static="false" final="false" visibility="protected"
  36116. deprecated="not deprecated">
  36117. </field>
  36118. <field name="parent" type="org.apache.hadoop.net.Node"
  36119. transient="false" volatile="false"
  36120. static="false" final="false" visibility="protected"
  36121. deprecated="not deprecated">
  36122. </field>
  36123. <doc>
  36124. <![CDATA[A base class that implements interface Node]]>
  36125. </doc>
  36126. </class>
  36127. <!-- end class org.apache.hadoop.net.NodeBase -->
  36128. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  36129. <class name="ScriptBasedMapping" extends="org.apache.hadoop.net.CachedDNSToSwitchMapping"
  36130. abstract="false"
  36131. static="false" final="true" visibility="public"
  36132. deprecated="not deprecated">
  36133. <implements name="org.apache.hadoop.conf.Configurable"/>
  36134. <constructor name="ScriptBasedMapping"
  36135. static="false" final="false" visibility="public"
  36136. deprecated="not deprecated">
  36137. </constructor>
  36138. <constructor name="ScriptBasedMapping" type="org.apache.hadoop.conf.Configuration"
  36139. static="false" final="false" visibility="public"
  36140. deprecated="not deprecated">
  36141. </constructor>
  36142. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  36143. abstract="false" native="false" synchronized="false"
  36144. static="false" final="false" visibility="public"
  36145. deprecated="not deprecated">
  36146. </method>
  36147. <method name="setConf"
  36148. abstract="false" native="false" synchronized="false"
  36149. static="false" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36152. </method>
  36153. <doc>
  36154. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  36155. script configured via topology.script.file.name .]]>
  36156. </doc>
  36157. </class>
  36158. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  36159. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  36160. <class name="SocketInputStream" extends="java.io.InputStream"
  36161. abstract="false"
  36162. static="false" final="false" visibility="public"
  36163. deprecated="not deprecated">
  36164. <implements name="java.nio.channels.ReadableByteChannel"/>
  36165. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  36166. static="false" final="false" visibility="public"
  36167. deprecated="not deprecated">
  36168. <exception name="IOException" type="java.io.IOException"/>
  36169. <doc>
  36170. <![CDATA[Create a new input stream with the given timeout. If the timeout
  36171. is zero, it will be treated as infinite timeout. The socket's
  36172. channel will be configured to be non-blocking.
  36173. @param channel
  36174. Channel for reading, should also be a {@link SelectableChannel}.
  36175. The channel will be configured to be non-blocking.
  36176. @param timeout timeout in milliseconds. must not be negative.
  36177. @throws IOException]]>
  36178. </doc>
  36179. </constructor>
  36180. <constructor name="SocketInputStream" type="java.net.Socket, long"
  36181. static="false" final="false" visibility="public"
  36182. deprecated="not deprecated">
  36183. <exception name="IOException" type="java.io.IOException"/>
  36184. <doc>
  36185. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  36186. Create a new input stream with the given timeout. If the timeout
  36187. is zero, it will be treated as infinite timeout. The socket's
  36188. channel will be configured to be non-blocking.
  36189. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  36190. @param socket should have a channel associated with it.
  36191. @param timeout timeout timeout in milliseconds. must not be negative.
  36192. @throws IOException]]>
  36193. </doc>
  36194. </constructor>
  36195. <constructor name="SocketInputStream" type="java.net.Socket"
  36196. static="false" final="false" visibility="public"
  36197. deprecated="not deprecated">
  36198. <exception name="IOException" type="java.io.IOException"/>
  36199. <doc>
  36200. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  36201. :<br><br>
  36202. Create a new input stream with the given timeout. If the timeout
  36203. is zero, it will be treated as infinite timeout. The socket's
  36204. channel will be configured to be non-blocking.
  36205. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  36206. @param socket should have a channel associated with it.
  36207. @throws IOException]]>
  36208. </doc>
  36209. </constructor>
  36210. <method name="read" return="int"
  36211. abstract="false" native="false" synchronized="false"
  36212. static="false" final="false" visibility="public"
  36213. deprecated="not deprecated">
  36214. <exception name="IOException" type="java.io.IOException"/>
  36215. </method>
  36216. <method name="read" return="int"
  36217. abstract="false" native="false" synchronized="false"
  36218. static="false" final="false" visibility="public"
  36219. deprecated="not deprecated">
  36220. <param name="b" type="byte[]"/>
  36221. <param name="off" type="int"/>
  36222. <param name="len" type="int"/>
  36223. <exception name="IOException" type="java.io.IOException"/>
  36224. </method>
  36225. <method name="close"
  36226. abstract="false" native="false" synchronized="true"
  36227. static="false" final="false" visibility="public"
  36228. deprecated="not deprecated">
  36229. <exception name="IOException" type="java.io.IOException"/>
  36230. </method>
  36231. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  36232. abstract="false" native="false" synchronized="false"
  36233. static="false" final="false" visibility="public"
  36234. deprecated="not deprecated">
  36235. <doc>
  36236. <![CDATA[Returns underlying channel used by inputstream.
  36237. This is useful in certain cases like channel for
  36238. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  36239. </doc>
  36240. </method>
  36241. <method name="isOpen" return="boolean"
  36242. abstract="false" native="false" synchronized="false"
  36243. static="false" final="false" visibility="public"
  36244. deprecated="not deprecated">
  36245. </method>
  36246. <method name="read" return="int"
  36247. abstract="false" native="false" synchronized="false"
  36248. static="false" final="false" visibility="public"
  36249. deprecated="not deprecated">
  36250. <param name="dst" type="java.nio.ByteBuffer"/>
  36251. <exception name="IOException" type="java.io.IOException"/>
  36252. </method>
  36253. <method name="waitForReadable"
  36254. abstract="false" native="false" synchronized="false"
  36255. static="false" final="false" visibility="public"
  36256. deprecated="not deprecated">
  36257. <exception name="IOException" type="java.io.IOException"/>
  36258. <doc>
  36259. <![CDATA[waits for the underlying channel to be ready for reading.
  36260. The timeout specified for this stream applies to this wait.
  36261. @throws SocketTimeoutException
  36262. if select on the channel times out.
  36263. @throws IOException
  36264. if any other I/O error occurs.]]>
  36265. </doc>
  36266. </method>
  36267. <doc>
  36268. <![CDATA[This implements an input stream that can have a timeout while reading.
  36269. This sets non-blocking flag on the socket channel.
  36270. So after create this object, read() on
  36271. {@link Socket#getInputStream()} and write() on
  36272. {@link Socket#getOutputStream()} for the associated socket will throw
  36273. IllegalBlockingModeException.
  36274. Please use {@link SocketOutputStream} for writing.]]>
  36275. </doc>
  36276. </class>
  36277. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  36278. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  36279. <class name="SocketOutputStream" extends="java.io.OutputStream"
  36280. abstract="false"
  36281. static="false" final="false" visibility="public"
  36282. deprecated="not deprecated">
  36283. <implements name="java.nio.channels.WritableByteChannel"/>
  36284. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  36285. static="false" final="false" visibility="public"
  36286. deprecated="not deprecated">
  36287. <exception name="IOException" type="java.io.IOException"/>
  36288. <doc>
  36289. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  36290. is zero, it will be treated as infinite timeout. The socket's
  36291. channel will be configured to be non-blocking.
  36292. @param channel
  36293. Channel for writing, should also be a {@link SelectableChannel}.
  36294. The channel will be configured to be non-blocking.
  36295. @param timeout timeout in milliseconds. must not be negative.
  36296. @throws IOException]]>
  36297. </doc>
  36298. </constructor>
  36299. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  36300. static="false" final="false" visibility="public"
  36301. deprecated="not deprecated">
  36302. <exception name="IOException" type="java.io.IOException"/>
  36303. <doc>
  36304. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  36305. Create a new ouput stream with the given timeout. If the timeout
  36306. is zero, it will be treated as infinite timeout. The socket's
  36307. channel will be configured to be non-blocking.
  36308. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  36309. @param socket should have a channel associated with it.
  36310. @param timeout timeout timeout in milliseconds. must not be negative.
  36311. @throws IOException]]>
  36312. </doc>
  36313. </constructor>
  36314. <method name="write"
  36315. abstract="false" native="false" synchronized="false"
  36316. static="false" final="false" visibility="public"
  36317. deprecated="not deprecated">
  36318. <param name="b" type="int"/>
  36319. <exception name="IOException" type="java.io.IOException"/>
  36320. </method>
  36321. <method name="write"
  36322. abstract="false" native="false" synchronized="false"
  36323. static="false" final="false" visibility="public"
  36324. deprecated="not deprecated">
  36325. <param name="b" type="byte[]"/>
  36326. <param name="off" type="int"/>
  36327. <param name="len" type="int"/>
  36328. <exception name="IOException" type="java.io.IOException"/>
  36329. </method>
  36330. <method name="close"
  36331. abstract="false" native="false" synchronized="true"
  36332. static="false" final="false" visibility="public"
  36333. deprecated="not deprecated">
  36334. <exception name="IOException" type="java.io.IOException"/>
  36335. </method>
  36336. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  36337. abstract="false" native="false" synchronized="false"
  36338. static="false" final="false" visibility="public"
  36339. deprecated="not deprecated">
  36340. <doc>
  36341. <![CDATA[Returns underlying channel used by this stream.
  36342. This is useful in certain cases like channel for
  36343. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  36344. </doc>
  36345. </method>
  36346. <method name="isOpen" return="boolean"
  36347. abstract="false" native="false" synchronized="false"
  36348. static="false" final="false" visibility="public"
  36349. deprecated="not deprecated">
  36350. </method>
  36351. <method name="write" return="int"
  36352. abstract="false" native="false" synchronized="false"
  36353. static="false" final="false" visibility="public"
  36354. deprecated="not deprecated">
  36355. <param name="src" type="java.nio.ByteBuffer"/>
  36356. <exception name="IOException" type="java.io.IOException"/>
  36357. </method>
  36358. <method name="waitForWritable"
  36359. abstract="false" native="false" synchronized="false"
  36360. static="false" final="false" visibility="public"
  36361. deprecated="not deprecated">
  36362. <exception name="IOException" type="java.io.IOException"/>
  36363. <doc>
  36364. <![CDATA[waits for the underlying channel to be ready for writing.
  36365. The timeout specified for this stream applies to this wait.
  36366. @throws SocketTimeoutException
  36367. if select on the channel times out.
  36368. @throws IOException
  36369. if any other I/O error occurs.]]>
  36370. </doc>
  36371. </method>
  36372. <method name="transferToFully"
  36373. abstract="false" native="false" synchronized="false"
  36374. static="false" final="false" visibility="public"
  36375. deprecated="not deprecated">
  36376. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  36377. <param name="position" type="long"/>
  36378. <param name="count" type="int"/>
  36379. <exception name="IOException" type="java.io.IOException"/>
  36380. <doc>
  36381. <![CDATA[Transfers data from FileChannel using
  36382. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  36383. Similar to readFully(), this waits till requested amount of
  36384. data is transfered.
  36385. @param fileCh FileChannel to transfer data from.
  36386. @param position position within the channel where the transfer begins
  36387. @param count number of bytes to transfer.
  36388. @throws EOFException
  36389. If end of input file is reached before requested number of
  36390. bytes are transfered.
  36391. @throws SocketTimeoutException
  36392. If this channel blocks transfer longer than timeout for
  36393. this stream.
  36394. @throws IOException Includes any exception thrown by
  36395. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  36396. </doc>
  36397. </method>
  36398. <doc>
  36399. <![CDATA[This implements an output stream that can have a timeout while writing.
  36400. This sets non-blocking flag on the socket channel.
  36401. So after creating this object , read() on
  36402. {@link Socket#getInputStream()} and write() on
  36403. {@link Socket#getOutputStream()} on the associated socket will throw
  36404. llegalBlockingModeException.
  36405. Please use {@link SocketInputStream} for reading.]]>
  36406. </doc>
  36407. </class>
  36408. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  36409. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  36410. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  36411. abstract="false"
  36412. static="false" final="false" visibility="public"
  36413. deprecated="not deprecated">
  36414. <implements name="org.apache.hadoop.conf.Configurable"/>
  36415. <constructor name="SocksSocketFactory"
  36416. static="false" final="false" visibility="public"
  36417. deprecated="not deprecated">
  36418. <doc>
  36419. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  36420. </doc>
  36421. </constructor>
  36422. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  36423. static="false" final="false" visibility="public"
  36424. deprecated="not deprecated">
  36425. <doc>
  36426. <![CDATA[Constructor with a supplied Proxy
  36427. @param proxy the proxy to use to create sockets]]>
  36428. </doc>
  36429. </constructor>
  36430. <method name="createSocket" return="java.net.Socket"
  36431. abstract="false" native="false" synchronized="false"
  36432. static="false" final="false" visibility="public"
  36433. deprecated="not deprecated">
  36434. <exception name="IOException" type="java.io.IOException"/>
  36435. </method>
  36436. <method name="createSocket" return="java.net.Socket"
  36437. abstract="false" native="false" synchronized="false"
  36438. static="false" final="false" visibility="public"
  36439. deprecated="not deprecated">
  36440. <param name="addr" type="java.net.InetAddress"/>
  36441. <param name="port" type="int"/>
  36442. <exception name="IOException" type="java.io.IOException"/>
  36443. </method>
  36444. <method name="createSocket" return="java.net.Socket"
  36445. abstract="false" native="false" synchronized="false"
  36446. static="false" final="false" visibility="public"
  36447. deprecated="not deprecated">
  36448. <param name="addr" type="java.net.InetAddress"/>
  36449. <param name="port" type="int"/>
  36450. <param name="localHostAddr" type="java.net.InetAddress"/>
  36451. <param name="localPort" type="int"/>
  36452. <exception name="IOException" type="java.io.IOException"/>
  36453. </method>
  36454. <method name="createSocket" return="java.net.Socket"
  36455. abstract="false" native="false" synchronized="false"
  36456. static="false" final="false" visibility="public"
  36457. deprecated="not deprecated">
  36458. <param name="host" type="java.lang.String"/>
  36459. <param name="port" type="int"/>
  36460. <exception name="IOException" type="java.io.IOException"/>
  36461. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36462. </method>
  36463. <method name="createSocket" return="java.net.Socket"
  36464. abstract="false" native="false" synchronized="false"
  36465. static="false" final="false" visibility="public"
  36466. deprecated="not deprecated">
  36467. <param name="host" type="java.lang.String"/>
  36468. <param name="port" type="int"/>
  36469. <param name="localHostAddr" type="java.net.InetAddress"/>
  36470. <param name="localPort" type="int"/>
  36471. <exception name="IOException" type="java.io.IOException"/>
  36472. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36473. </method>
  36474. <method name="hashCode" return="int"
  36475. abstract="false" native="false" synchronized="false"
  36476. static="false" final="false" visibility="public"
  36477. deprecated="not deprecated">
  36478. </method>
  36479. <method name="equals" return="boolean"
  36480. abstract="false" native="false" synchronized="false"
  36481. static="false" final="false" visibility="public"
  36482. deprecated="not deprecated">
  36483. <param name="obj" type="java.lang.Object"/>
  36484. </method>
  36485. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  36486. abstract="false" native="false" synchronized="false"
  36487. static="false" final="false" visibility="public"
  36488. deprecated="not deprecated">
  36489. </method>
  36490. <method name="setConf"
  36491. abstract="false" native="false" synchronized="false"
  36492. static="false" final="false" visibility="public"
  36493. deprecated="not deprecated">
  36494. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36495. </method>
  36496. <doc>
  36497. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  36498. </doc>
  36499. </class>
  36500. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  36501. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  36502. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  36503. abstract="false"
  36504. static="false" final="false" visibility="public"
  36505. deprecated="not deprecated">
  36506. <constructor name="StandardSocketFactory"
  36507. static="false" final="false" visibility="public"
  36508. deprecated="not deprecated">
  36509. <doc>
  36510. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  36511. </doc>
  36512. </constructor>
  36513. <method name="createSocket" return="java.net.Socket"
  36514. abstract="false" native="false" synchronized="false"
  36515. static="false" final="false" visibility="public"
  36516. deprecated="not deprecated">
  36517. <exception name="IOException" type="java.io.IOException"/>
  36518. </method>
  36519. <method name="createSocket" return="java.net.Socket"
  36520. abstract="false" native="false" synchronized="false"
  36521. static="false" final="false" visibility="public"
  36522. deprecated="not deprecated">
  36523. <param name="addr" type="java.net.InetAddress"/>
  36524. <param name="port" type="int"/>
  36525. <exception name="IOException" type="java.io.IOException"/>
  36526. </method>
  36527. <method name="createSocket" return="java.net.Socket"
  36528. abstract="false" native="false" synchronized="false"
  36529. static="false" final="false" visibility="public"
  36530. deprecated="not deprecated">
  36531. <param name="addr" type="java.net.InetAddress"/>
  36532. <param name="port" type="int"/>
  36533. <param name="localHostAddr" type="java.net.InetAddress"/>
  36534. <param name="localPort" type="int"/>
  36535. <exception name="IOException" type="java.io.IOException"/>
  36536. </method>
  36537. <method name="createSocket" return="java.net.Socket"
  36538. abstract="false" native="false" synchronized="false"
  36539. static="false" final="false" visibility="public"
  36540. deprecated="not deprecated">
  36541. <param name="host" type="java.lang.String"/>
  36542. <param name="port" type="int"/>
  36543. <exception name="IOException" type="java.io.IOException"/>
  36544. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36545. </method>
  36546. <method name="createSocket" return="java.net.Socket"
  36547. abstract="false" native="false" synchronized="false"
  36548. static="false" final="false" visibility="public"
  36549. deprecated="not deprecated">
  36550. <param name="host" type="java.lang.String"/>
  36551. <param name="port" type="int"/>
  36552. <param name="localHostAddr" type="java.net.InetAddress"/>
  36553. <param name="localPort" type="int"/>
  36554. <exception name="IOException" type="java.io.IOException"/>
  36555. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36556. </method>
  36557. <method name="equals" return="boolean"
  36558. abstract="false" native="false" synchronized="false"
  36559. static="false" final="false" visibility="public"
  36560. deprecated="not deprecated">
  36561. <param name="obj" type="java.lang.Object"/>
  36562. </method>
  36563. <method name="hashCode" return="int"
  36564. abstract="false" native="false" synchronized="false"
  36565. static="false" final="false" visibility="public"
  36566. deprecated="not deprecated">
  36567. </method>
  36568. <doc>
  36569. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  36570. </doc>
  36571. </class>
  36572. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  36573. </package>
  36574. <package name="org.apache.hadoop.record">
  36575. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  36576. <class name="BinaryRecordInput" extends="java.lang.Object"
  36577. abstract="false"
  36578. static="false" final="false" visibility="public"
  36579. deprecated="not deprecated">
  36580. <implements name="org.apache.hadoop.record.RecordInput"/>
  36581. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  36582. static="false" final="false" visibility="public"
  36583. deprecated="not deprecated">
  36584. <doc>
  36585. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  36586. </doc>
  36587. </constructor>
  36588. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  36589. static="false" final="false" visibility="public"
  36590. deprecated="not deprecated">
  36591. <doc>
  36592. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  36593. </doc>
  36594. </constructor>
  36595. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  36596. abstract="false" native="false" synchronized="false"
  36597. static="true" final="false" visibility="public"
  36598. deprecated="not deprecated">
  36599. <param name="inp" type="java.io.DataInput"/>
  36600. <doc>
  36601. <![CDATA[Get a thread-local record input for the supplied DataInput.
  36602. @param inp data input stream
  36603. @return binary record input corresponding to the supplied DataInput.]]>
  36604. </doc>
  36605. </method>
  36606. <method name="readByte" return="byte"
  36607. abstract="false" native="false" synchronized="false"
  36608. static="false" final="false" visibility="public"
  36609. deprecated="not deprecated">
  36610. <param name="tag" type="java.lang.String"/>
  36611. <exception name="IOException" type="java.io.IOException"/>
  36612. </method>
  36613. <method name="readBool" return="boolean"
  36614. abstract="false" native="false" synchronized="false"
  36615. static="false" final="false" visibility="public"
  36616. deprecated="not deprecated">
  36617. <param name="tag" type="java.lang.String"/>
  36618. <exception name="IOException" type="java.io.IOException"/>
  36619. </method>
  36620. <method name="readInt" return="int"
  36621. abstract="false" native="false" synchronized="false"
  36622. static="false" final="false" visibility="public"
  36623. deprecated="not deprecated">
  36624. <param name="tag" type="java.lang.String"/>
  36625. <exception name="IOException" type="java.io.IOException"/>
  36626. </method>
  36627. <method name="readLong" return="long"
  36628. abstract="false" native="false" synchronized="false"
  36629. static="false" final="false" visibility="public"
  36630. deprecated="not deprecated">
  36631. <param name="tag" type="java.lang.String"/>
  36632. <exception name="IOException" type="java.io.IOException"/>
  36633. </method>
  36634. <method name="readFloat" return="float"
  36635. abstract="false" native="false" synchronized="false"
  36636. static="false" final="false" visibility="public"
  36637. deprecated="not deprecated">
  36638. <param name="tag" type="java.lang.String"/>
  36639. <exception name="IOException" type="java.io.IOException"/>
  36640. </method>
  36641. <method name="readDouble" return="double"
  36642. abstract="false" native="false" synchronized="false"
  36643. static="false" final="false" visibility="public"
  36644. deprecated="not deprecated">
  36645. <param name="tag" type="java.lang.String"/>
  36646. <exception name="IOException" type="java.io.IOException"/>
  36647. </method>
  36648. <method name="readString" return="java.lang.String"
  36649. abstract="false" native="false" synchronized="false"
  36650. static="false" final="false" visibility="public"
  36651. deprecated="not deprecated">
  36652. <param name="tag" type="java.lang.String"/>
  36653. <exception name="IOException" type="java.io.IOException"/>
  36654. </method>
  36655. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36656. abstract="false" native="false" synchronized="false"
  36657. static="false" final="false" visibility="public"
  36658. deprecated="not deprecated">
  36659. <param name="tag" type="java.lang.String"/>
  36660. <exception name="IOException" type="java.io.IOException"/>
  36661. </method>
  36662. <method name="startRecord"
  36663. abstract="false" native="false" synchronized="false"
  36664. static="false" final="false" visibility="public"
  36665. deprecated="not deprecated">
  36666. <param name="tag" type="java.lang.String"/>
  36667. <exception name="IOException" type="java.io.IOException"/>
  36668. </method>
  36669. <method name="endRecord"
  36670. abstract="false" native="false" synchronized="false"
  36671. static="false" final="false" visibility="public"
  36672. deprecated="not deprecated">
  36673. <param name="tag" type="java.lang.String"/>
  36674. <exception name="IOException" type="java.io.IOException"/>
  36675. </method>
  36676. <method name="startVector" return="org.apache.hadoop.record.Index"
  36677. abstract="false" native="false" synchronized="false"
  36678. static="false" final="false" visibility="public"
  36679. deprecated="not deprecated">
  36680. <param name="tag" type="java.lang.String"/>
  36681. <exception name="IOException" type="java.io.IOException"/>
  36682. </method>
  36683. <method name="endVector"
  36684. abstract="false" native="false" synchronized="false"
  36685. static="false" final="false" visibility="public"
  36686. deprecated="not deprecated">
  36687. <param name="tag" type="java.lang.String"/>
  36688. <exception name="IOException" type="java.io.IOException"/>
  36689. </method>
  36690. <method name="startMap" return="org.apache.hadoop.record.Index"
  36691. abstract="false" native="false" synchronized="false"
  36692. static="false" final="false" visibility="public"
  36693. deprecated="not deprecated">
  36694. <param name="tag" type="java.lang.String"/>
  36695. <exception name="IOException" type="java.io.IOException"/>
  36696. </method>
  36697. <method name="endMap"
  36698. abstract="false" native="false" synchronized="false"
  36699. static="false" final="false" visibility="public"
  36700. deprecated="not deprecated">
  36701. <param name="tag" type="java.lang.String"/>
  36702. <exception name="IOException" type="java.io.IOException"/>
  36703. </method>
  36704. </class>
  36705. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  36706. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  36707. <class name="BinaryRecordOutput" extends="java.lang.Object"
  36708. abstract="false"
  36709. static="false" final="false" visibility="public"
  36710. deprecated="not deprecated">
  36711. <implements name="org.apache.hadoop.record.RecordOutput"/>
  36712. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  36713. static="false" final="false" visibility="public"
  36714. deprecated="not deprecated">
  36715. <doc>
  36716. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  36717. </doc>
  36718. </constructor>
  36719. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  36720. static="false" final="false" visibility="public"
  36721. deprecated="not deprecated">
  36722. <doc>
  36723. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  36724. </doc>
  36725. </constructor>
  36726. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  36727. abstract="false" native="false" synchronized="false"
  36728. static="true" final="false" visibility="public"
  36729. deprecated="not deprecated">
  36730. <param name="out" type="java.io.DataOutput"/>
  36731. <doc>
  36732. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  36733. @param out data output stream
  36734. @return binary record output corresponding to the supplied DataOutput.]]>
  36735. </doc>
  36736. </method>
  36737. <method name="writeByte"
  36738. abstract="false" native="false" synchronized="false"
  36739. static="false" final="false" visibility="public"
  36740. deprecated="not deprecated">
  36741. <param name="b" type="byte"/>
  36742. <param name="tag" type="java.lang.String"/>
  36743. <exception name="IOException" type="java.io.IOException"/>
  36744. </method>
  36745. <method name="writeBool"
  36746. abstract="false" native="false" synchronized="false"
  36747. static="false" final="false" visibility="public"
  36748. deprecated="not deprecated">
  36749. <param name="b" type="boolean"/>
  36750. <param name="tag" type="java.lang.String"/>
  36751. <exception name="IOException" type="java.io.IOException"/>
  36752. </method>
  36753. <method name="writeInt"
  36754. abstract="false" native="false" synchronized="false"
  36755. static="false" final="false" visibility="public"
  36756. deprecated="not deprecated">
  36757. <param name="i" type="int"/>
  36758. <param name="tag" type="java.lang.String"/>
  36759. <exception name="IOException" type="java.io.IOException"/>
  36760. </method>
  36761. <method name="writeLong"
  36762. abstract="false" native="false" synchronized="false"
  36763. static="false" final="false" visibility="public"
  36764. deprecated="not deprecated">
  36765. <param name="l" type="long"/>
  36766. <param name="tag" type="java.lang.String"/>
  36767. <exception name="IOException" type="java.io.IOException"/>
  36768. </method>
  36769. <method name="writeFloat"
  36770. abstract="false" native="false" synchronized="false"
  36771. static="false" final="false" visibility="public"
  36772. deprecated="not deprecated">
  36773. <param name="f" type="float"/>
  36774. <param name="tag" type="java.lang.String"/>
  36775. <exception name="IOException" type="java.io.IOException"/>
  36776. </method>
  36777. <method name="writeDouble"
  36778. abstract="false" native="false" synchronized="false"
  36779. static="false" final="false" visibility="public"
  36780. deprecated="not deprecated">
  36781. <param name="d" type="double"/>
  36782. <param name="tag" type="java.lang.String"/>
  36783. <exception name="IOException" type="java.io.IOException"/>
  36784. </method>
  36785. <method name="writeString"
  36786. abstract="false" native="false" synchronized="false"
  36787. static="false" final="false" visibility="public"
  36788. deprecated="not deprecated">
  36789. <param name="s" type="java.lang.String"/>
  36790. <param name="tag" type="java.lang.String"/>
  36791. <exception name="IOException" type="java.io.IOException"/>
  36792. </method>
  36793. <method name="writeBuffer"
  36794. abstract="false" native="false" synchronized="false"
  36795. static="false" final="false" visibility="public"
  36796. deprecated="not deprecated">
  36797. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36798. <param name="tag" type="java.lang.String"/>
  36799. <exception name="IOException" type="java.io.IOException"/>
  36800. </method>
  36801. <method name="startRecord"
  36802. abstract="false" native="false" synchronized="false"
  36803. static="false" final="false" visibility="public"
  36804. deprecated="not deprecated">
  36805. <param name="r" type="org.apache.hadoop.record.Record"/>
  36806. <param name="tag" type="java.lang.String"/>
  36807. <exception name="IOException" type="java.io.IOException"/>
  36808. </method>
  36809. <method name="endRecord"
  36810. abstract="false" native="false" synchronized="false"
  36811. static="false" final="false" visibility="public"
  36812. deprecated="not deprecated">
  36813. <param name="r" type="org.apache.hadoop.record.Record"/>
  36814. <param name="tag" type="java.lang.String"/>
  36815. <exception name="IOException" type="java.io.IOException"/>
  36816. </method>
  36817. <method name="startVector"
  36818. abstract="false" native="false" synchronized="false"
  36819. static="false" final="false" visibility="public"
  36820. deprecated="not deprecated">
  36821. <param name="v" type="java.util.ArrayList"/>
  36822. <param name="tag" type="java.lang.String"/>
  36823. <exception name="IOException" type="java.io.IOException"/>
  36824. </method>
  36825. <method name="endVector"
  36826. abstract="false" native="false" synchronized="false"
  36827. static="false" final="false" visibility="public"
  36828. deprecated="not deprecated">
  36829. <param name="v" type="java.util.ArrayList"/>
  36830. <param name="tag" type="java.lang.String"/>
  36831. <exception name="IOException" type="java.io.IOException"/>
  36832. </method>
  36833. <method name="startMap"
  36834. abstract="false" native="false" synchronized="false"
  36835. static="false" final="false" visibility="public"
  36836. deprecated="not deprecated">
  36837. <param name="v" type="java.util.TreeMap"/>
  36838. <param name="tag" type="java.lang.String"/>
  36839. <exception name="IOException" type="java.io.IOException"/>
  36840. </method>
  36841. <method name="endMap"
  36842. abstract="false" native="false" synchronized="false"
  36843. static="false" final="false" visibility="public"
  36844. deprecated="not deprecated">
  36845. <param name="v" type="java.util.TreeMap"/>
  36846. <param name="tag" type="java.lang.String"/>
  36847. <exception name="IOException" type="java.io.IOException"/>
  36848. </method>
  36849. </class>
  36850. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  36851. <!-- start class org.apache.hadoop.record.Buffer -->
  36852. <class name="Buffer" extends="java.lang.Object"
  36853. abstract="false"
  36854. static="false" final="false" visibility="public"
  36855. deprecated="not deprecated">
  36856. <implements name="java.lang.Comparable"/>
  36857. <implements name="java.lang.Cloneable"/>
  36858. <constructor name="Buffer"
  36859. static="false" final="false" visibility="public"
  36860. deprecated="not deprecated">
  36861. <doc>
  36862. <![CDATA[Create a zero-count sequence.]]>
  36863. </doc>
  36864. </constructor>
  36865. <constructor name="Buffer" type="byte[]"
  36866. static="false" final="false" visibility="public"
  36867. deprecated="not deprecated">
  36868. <doc>
  36869. <![CDATA[Create a Buffer using the byte array as the initial value.
  36870. @param bytes This array becomes the backing storage for the object.]]>
  36871. </doc>
  36872. </constructor>
  36873. <constructor name="Buffer" type="byte[], int, int"
  36874. static="false" final="false" visibility="public"
  36875. deprecated="not deprecated">
  36876. <doc>
  36877. <![CDATA[Create a Buffer using the byte range as the initial value.
  36878. @param bytes Copy of this array becomes the backing storage for the object.
  36879. @param offset offset into byte array
  36880. @param length length of data]]>
  36881. </doc>
  36882. </constructor>
  36883. <method name="set"
  36884. abstract="false" native="false" synchronized="false"
  36885. static="false" final="false" visibility="public"
  36886. deprecated="not deprecated">
  36887. <param name="bytes" type="byte[]"/>
  36888. <doc>
  36889. <![CDATA[Use the specified bytes array as underlying sequence.
  36890. @param bytes byte sequence]]>
  36891. </doc>
  36892. </method>
  36893. <method name="copy"
  36894. abstract="false" native="false" synchronized="false"
  36895. static="false" final="true" visibility="public"
  36896. deprecated="not deprecated">
  36897. <param name="bytes" type="byte[]"/>
  36898. <param name="offset" type="int"/>
  36899. <param name="length" type="int"/>
  36900. <doc>
  36901. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  36902. @param bytes byte array to be assigned
  36903. @param offset offset into byte array
  36904. @param length length of data]]>
  36905. </doc>
  36906. </method>
  36907. <method name="get" return="byte[]"
  36908. abstract="false" native="false" synchronized="false"
  36909. static="false" final="false" visibility="public"
  36910. deprecated="not deprecated">
  36911. <doc>
  36912. <![CDATA[Get the data from the Buffer.
  36913. @return The data is only valid between 0 and getCount() - 1.]]>
  36914. </doc>
  36915. </method>
  36916. <method name="getCount" return="int"
  36917. abstract="false" native="false" synchronized="false"
  36918. static="false" final="false" visibility="public"
  36919. deprecated="not deprecated">
  36920. <doc>
  36921. <![CDATA[Get the current count of the buffer.]]>
  36922. </doc>
  36923. </method>
  36924. <method name="getCapacity" return="int"
  36925. abstract="false" native="false" synchronized="false"
  36926. static="false" final="false" visibility="public"
  36927. deprecated="not deprecated">
  36928. <doc>
  36929. <![CDATA[Get the capacity, which is the maximum count that could handled without
  36930. resizing the backing storage.
  36931. @return The number of bytes]]>
  36932. </doc>
  36933. </method>
  36934. <method name="setCapacity"
  36935. abstract="false" native="false" synchronized="false"
  36936. static="false" final="false" visibility="public"
  36937. deprecated="not deprecated">
  36938. <param name="newCapacity" type="int"/>
  36939. <doc>
  36940. <![CDATA[Change the capacity of the backing storage.
  36941. The data is preserved if newCapacity >= getCount().
  36942. @param newCapacity The new capacity in bytes.]]>
  36943. </doc>
  36944. </method>
  36945. <method name="reset"
  36946. abstract="false" native="false" synchronized="false"
  36947. static="false" final="false" visibility="public"
  36948. deprecated="not deprecated">
  36949. <doc>
  36950. <![CDATA[Reset the buffer to 0 size]]>
  36951. </doc>
  36952. </method>
  36953. <method name="truncate"
  36954. abstract="false" native="false" synchronized="false"
  36955. static="false" final="false" visibility="public"
  36956. deprecated="not deprecated">
  36957. <doc>
  36958. <![CDATA[Change the capacity of the backing store to be the same as the current
  36959. count of buffer.]]>
  36960. </doc>
  36961. </method>
  36962. <method name="append"
  36963. abstract="false" native="false" synchronized="false"
  36964. static="false" final="false" visibility="public"
  36965. deprecated="not deprecated">
  36966. <param name="bytes" type="byte[]"/>
  36967. <param name="offset" type="int"/>
  36968. <param name="length" type="int"/>
  36969. <doc>
  36970. <![CDATA[Append specified bytes to the buffer.
  36971. @param bytes byte array to be appended
  36972. @param offset offset into byte array
  36973. @param length length of data]]>
  36974. </doc>
  36975. </method>
  36976. <method name="append"
  36977. abstract="false" native="false" synchronized="false"
  36978. static="false" final="false" visibility="public"
  36979. deprecated="not deprecated">
  36980. <param name="bytes" type="byte[]"/>
  36981. <doc>
  36982. <![CDATA[Append specified bytes to the buffer
  36983. @param bytes byte array to be appended]]>
  36984. </doc>
  36985. </method>
  36986. <method name="hashCode" return="int"
  36987. abstract="false" native="false" synchronized="false"
  36988. static="false" final="false" visibility="public"
  36989. deprecated="not deprecated">
  36990. </method>
  36991. <method name="compareTo" return="int"
  36992. abstract="false" native="false" synchronized="false"
  36993. static="false" final="false" visibility="public"
  36994. deprecated="not deprecated">
  36995. <param name="other" type="java.lang.Object"/>
  36996. <doc>
  36997. <![CDATA[Define the sort order of the Buffer.
  36998. @param other The other buffer
  36999. @return Positive if this is bigger than other, 0 if they are equal, and
  37000. negative if this is smaller than other.]]>
  37001. </doc>
  37002. </method>
  37003. <method name="equals" return="boolean"
  37004. abstract="false" native="false" synchronized="false"
  37005. static="false" final="false" visibility="public"
  37006. deprecated="not deprecated">
  37007. <param name="other" type="java.lang.Object"/>
  37008. </method>
  37009. <method name="toString" return="java.lang.String"
  37010. abstract="false" native="false" synchronized="false"
  37011. static="false" final="false" visibility="public"
  37012. deprecated="not deprecated">
  37013. </method>
  37014. <method name="toString" return="java.lang.String"
  37015. abstract="false" native="false" synchronized="false"
  37016. static="false" final="false" visibility="public"
  37017. deprecated="not deprecated">
  37018. <param name="charsetName" type="java.lang.String"/>
  37019. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  37020. <doc>
  37021. <![CDATA[Convert the byte buffer to a string an specific character encoding
  37022. @param charsetName Valid Java Character Set Name]]>
  37023. </doc>
  37024. </method>
  37025. <method name="clone" return="java.lang.Object"
  37026. abstract="false" native="false" synchronized="false"
  37027. static="false" final="false" visibility="public"
  37028. deprecated="not deprecated">
  37029. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  37030. </method>
  37031. <doc>
  37032. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  37033. It is resizable and distinguishes between the count of the seqeunce and
  37034. the current capacity.]]>
  37035. </doc>
  37036. </class>
  37037. <!-- end class org.apache.hadoop.record.Buffer -->
  37038. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  37039. <class name="CsvRecordInput" extends="java.lang.Object"
  37040. abstract="false"
  37041. static="false" final="false" visibility="public"
  37042. deprecated="not deprecated">
  37043. <implements name="org.apache.hadoop.record.RecordInput"/>
  37044. <constructor name="CsvRecordInput" type="java.io.InputStream"
  37045. static="false" final="false" visibility="public"
  37046. deprecated="not deprecated">
  37047. <doc>
  37048. <![CDATA[Creates a new instance of CsvRecordInput]]>
  37049. </doc>
  37050. </constructor>
  37051. <method name="readByte" return="byte"
  37052. abstract="false" native="false" synchronized="false"
  37053. static="false" final="false" visibility="public"
  37054. deprecated="not deprecated">
  37055. <param name="tag" type="java.lang.String"/>
  37056. <exception name="IOException" type="java.io.IOException"/>
  37057. </method>
  37058. <method name="readBool" return="boolean"
  37059. abstract="false" native="false" synchronized="false"
  37060. static="false" final="false" visibility="public"
  37061. deprecated="not deprecated">
  37062. <param name="tag" type="java.lang.String"/>
  37063. <exception name="IOException" type="java.io.IOException"/>
  37064. </method>
  37065. <method name="readInt" return="int"
  37066. abstract="false" native="false" synchronized="false"
  37067. static="false" final="false" visibility="public"
  37068. deprecated="not deprecated">
  37069. <param name="tag" type="java.lang.String"/>
  37070. <exception name="IOException" type="java.io.IOException"/>
  37071. </method>
  37072. <method name="readLong" return="long"
  37073. abstract="false" native="false" synchronized="false"
  37074. static="false" final="false" visibility="public"
  37075. deprecated="not deprecated">
  37076. <param name="tag" type="java.lang.String"/>
  37077. <exception name="IOException" type="java.io.IOException"/>
  37078. </method>
  37079. <method name="readFloat" return="float"
  37080. abstract="false" native="false" synchronized="false"
  37081. static="false" final="false" visibility="public"
  37082. deprecated="not deprecated">
  37083. <param name="tag" type="java.lang.String"/>
  37084. <exception name="IOException" type="java.io.IOException"/>
  37085. </method>
  37086. <method name="readDouble" return="double"
  37087. abstract="false" native="false" synchronized="false"
  37088. static="false" final="false" visibility="public"
  37089. deprecated="not deprecated">
  37090. <param name="tag" type="java.lang.String"/>
  37091. <exception name="IOException" type="java.io.IOException"/>
  37092. </method>
  37093. <method name="readString" return="java.lang.String"
  37094. abstract="false" native="false" synchronized="false"
  37095. static="false" final="false" visibility="public"
  37096. deprecated="not deprecated">
  37097. <param name="tag" type="java.lang.String"/>
  37098. <exception name="IOException" type="java.io.IOException"/>
  37099. </method>
  37100. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  37101. abstract="false" native="false" synchronized="false"
  37102. static="false" final="false" visibility="public"
  37103. deprecated="not deprecated">
  37104. <param name="tag" type="java.lang.String"/>
  37105. <exception name="IOException" type="java.io.IOException"/>
  37106. </method>
  37107. <method name="startRecord"
  37108. abstract="false" native="false" synchronized="false"
  37109. static="false" final="false" visibility="public"
  37110. deprecated="not deprecated">
  37111. <param name="tag" type="java.lang.String"/>
  37112. <exception name="IOException" type="java.io.IOException"/>
  37113. </method>
  37114. <method name="endRecord"
  37115. abstract="false" native="false" synchronized="false"
  37116. static="false" final="false" visibility="public"
  37117. deprecated="not deprecated">
  37118. <param name="tag" type="java.lang.String"/>
  37119. <exception name="IOException" type="java.io.IOException"/>
  37120. </method>
  37121. <method name="startVector" return="org.apache.hadoop.record.Index"
  37122. abstract="false" native="false" synchronized="false"
  37123. static="false" final="false" visibility="public"
  37124. deprecated="not deprecated">
  37125. <param name="tag" type="java.lang.String"/>
  37126. <exception name="IOException" type="java.io.IOException"/>
  37127. </method>
  37128. <method name="endVector"
  37129. abstract="false" native="false" synchronized="false"
  37130. static="false" final="false" visibility="public"
  37131. deprecated="not deprecated">
  37132. <param name="tag" type="java.lang.String"/>
  37133. <exception name="IOException" type="java.io.IOException"/>
  37134. </method>
  37135. <method name="startMap" return="org.apache.hadoop.record.Index"
  37136. abstract="false" native="false" synchronized="false"
  37137. static="false" final="false" visibility="public"
  37138. deprecated="not deprecated">
  37139. <param name="tag" type="java.lang.String"/>
  37140. <exception name="IOException" type="java.io.IOException"/>
  37141. </method>
  37142. <method name="endMap"
  37143. abstract="false" native="false" synchronized="false"
  37144. static="false" final="false" visibility="public"
  37145. deprecated="not deprecated">
  37146. <param name="tag" type="java.lang.String"/>
  37147. <exception name="IOException" type="java.io.IOException"/>
  37148. </method>
  37149. </class>
  37150. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  37151. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  37152. <class name="CsvRecordOutput" extends="java.lang.Object"
  37153. abstract="false"
  37154. static="false" final="false" visibility="public"
  37155. deprecated="not deprecated">
  37156. <implements name="org.apache.hadoop.record.RecordOutput"/>
  37157. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  37158. static="false" final="false" visibility="public"
  37159. deprecated="not deprecated">
  37160. <doc>
  37161. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  37162. </doc>
  37163. </constructor>
  37164. <method name="writeByte"
  37165. abstract="false" native="false" synchronized="false"
  37166. static="false" final="false" visibility="public"
  37167. deprecated="not deprecated">
  37168. <param name="b" type="byte"/>
  37169. <param name="tag" type="java.lang.String"/>
  37170. <exception name="IOException" type="java.io.IOException"/>
  37171. </method>
  37172. <method name="writeBool"
  37173. abstract="false" native="false" synchronized="false"
  37174. static="false" final="false" visibility="public"
  37175. deprecated="not deprecated">
  37176. <param name="b" type="boolean"/>
  37177. <param name="tag" type="java.lang.String"/>
  37178. <exception name="IOException" type="java.io.IOException"/>
  37179. </method>
  37180. <method name="writeInt"
  37181. abstract="false" native="false" synchronized="false"
  37182. static="false" final="false" visibility="public"
  37183. deprecated="not deprecated">
  37184. <param name="i" type="int"/>
  37185. <param name="tag" type="java.lang.String"/>
  37186. <exception name="IOException" type="java.io.IOException"/>
  37187. </method>
  37188. <method name="writeLong"
  37189. abstract="false" native="false" synchronized="false"
  37190. static="false" final="false" visibility="public"
  37191. deprecated="not deprecated">
  37192. <param name="l" type="long"/>
  37193. <param name="tag" type="java.lang.String"/>
  37194. <exception name="IOException" type="java.io.IOException"/>
  37195. </method>
  37196. <method name="writeFloat"
  37197. abstract="false" native="false" synchronized="false"
  37198. static="false" final="false" visibility="public"
  37199. deprecated="not deprecated">
  37200. <param name="f" type="float"/>
  37201. <param name="tag" type="java.lang.String"/>
  37202. <exception name="IOException" type="java.io.IOException"/>
  37203. </method>
  37204. <method name="writeDouble"
  37205. abstract="false" native="false" synchronized="false"
  37206. static="false" final="false" visibility="public"
  37207. deprecated="not deprecated">
  37208. <param name="d" type="double"/>
  37209. <param name="tag" type="java.lang.String"/>
  37210. <exception name="IOException" type="java.io.IOException"/>
  37211. </method>
  37212. <method name="writeString"
  37213. abstract="false" native="false" synchronized="false"
  37214. static="false" final="false" visibility="public"
  37215. deprecated="not deprecated">
  37216. <param name="s" type="java.lang.String"/>
  37217. <param name="tag" type="java.lang.String"/>
  37218. <exception name="IOException" type="java.io.IOException"/>
  37219. </method>
  37220. <method name="writeBuffer"
  37221. abstract="false" native="false" synchronized="false"
  37222. static="false" final="false" visibility="public"
  37223. deprecated="not deprecated">
  37224. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  37225. <param name="tag" type="java.lang.String"/>
  37226. <exception name="IOException" type="java.io.IOException"/>
  37227. </method>
  37228. <method name="startRecord"
  37229. abstract="false" native="false" synchronized="false"
  37230. static="false" final="false" visibility="public"
  37231. deprecated="not deprecated">
  37232. <param name="r" type="org.apache.hadoop.record.Record"/>
  37233. <param name="tag" type="java.lang.String"/>
  37234. <exception name="IOException" type="java.io.IOException"/>
  37235. </method>
  37236. <method name="endRecord"
  37237. abstract="false" native="false" synchronized="false"
  37238. static="false" final="false" visibility="public"
  37239. deprecated="not deprecated">
  37240. <param name="r" type="org.apache.hadoop.record.Record"/>
  37241. <param name="tag" type="java.lang.String"/>
  37242. <exception name="IOException" type="java.io.IOException"/>
  37243. </method>
  37244. <method name="startVector"
  37245. abstract="false" native="false" synchronized="false"
  37246. static="false" final="false" visibility="public"
  37247. deprecated="not deprecated">
  37248. <param name="v" type="java.util.ArrayList"/>
  37249. <param name="tag" type="java.lang.String"/>
  37250. <exception name="IOException" type="java.io.IOException"/>
  37251. </method>
  37252. <method name="endVector"
  37253. abstract="false" native="false" synchronized="false"
  37254. static="false" final="false" visibility="public"
  37255. deprecated="not deprecated">
  37256. <param name="v" type="java.util.ArrayList"/>
  37257. <param name="tag" type="java.lang.String"/>
  37258. <exception name="IOException" type="java.io.IOException"/>
  37259. </method>
  37260. <method name="startMap"
  37261. abstract="false" native="false" synchronized="false"
  37262. static="false" final="false" visibility="public"
  37263. deprecated="not deprecated">
  37264. <param name="v" type="java.util.TreeMap"/>
  37265. <param name="tag" type="java.lang.String"/>
  37266. <exception name="IOException" type="java.io.IOException"/>
  37267. </method>
  37268. <method name="endMap"
  37269. abstract="false" native="false" synchronized="false"
  37270. static="false" final="false" visibility="public"
  37271. deprecated="not deprecated">
  37272. <param name="v" type="java.util.TreeMap"/>
  37273. <param name="tag" type="java.lang.String"/>
  37274. <exception name="IOException" type="java.io.IOException"/>
  37275. </method>
  37276. </class>
  37277. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  37278. <!-- start interface org.apache.hadoop.record.Index -->
  37279. <interface name="Index" abstract="true"
  37280. static="false" final="false" visibility="public"
  37281. deprecated="not deprecated">
  37282. <method name="done" return="boolean"
  37283. abstract="false" native="false" synchronized="false"
  37284. static="false" final="false" visibility="public"
  37285. deprecated="not deprecated">
  37286. </method>
  37287. <method name="incr"
  37288. abstract="false" native="false" synchronized="false"
  37289. static="false" final="false" visibility="public"
  37290. deprecated="not deprecated">
  37291. </method>
  37292. <doc>
  37293. <![CDATA[Interface that acts as an iterator for deserializing maps.
  37294. The deserializer returns an instance that the record uses to
  37295. read vectors and maps. An example of usage is as follows:
  37296. <code>
  37297. Index idx = startVector(...);
  37298. while (!idx.done()) {
  37299. .... // read element of a vector
  37300. idx.incr();
  37301. }
  37302. </code>]]>
  37303. </doc>
  37304. </interface>
  37305. <!-- end interface org.apache.hadoop.record.Index -->
  37306. <!-- start class org.apache.hadoop.record.Record -->
  37307. <class name="Record" extends="java.lang.Object"
  37308. abstract="true"
  37309. static="false" final="false" visibility="public"
  37310. deprecated="not deprecated">
  37311. <implements name="org.apache.hadoop.io.WritableComparable"/>
  37312. <implements name="java.lang.Cloneable"/>
  37313. <constructor name="Record"
  37314. static="false" final="false" visibility="public"
  37315. deprecated="not deprecated">
  37316. </constructor>
  37317. <method name="serialize"
  37318. abstract="true" native="false" synchronized="false"
  37319. static="false" final="false" visibility="public"
  37320. deprecated="not deprecated">
  37321. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  37322. <param name="tag" type="java.lang.String"/>
  37323. <exception name="IOException" type="java.io.IOException"/>
  37324. <doc>
  37325. <![CDATA[Serialize a record with tag (ususally field name)
  37326. @param rout Record output destination
  37327. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  37328. </doc>
  37329. </method>
  37330. <method name="deserialize"
  37331. abstract="true" native="false" synchronized="false"
  37332. static="false" final="false" visibility="public"
  37333. deprecated="not deprecated">
  37334. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  37335. <param name="tag" type="java.lang.String"/>
  37336. <exception name="IOException" type="java.io.IOException"/>
  37337. <doc>
  37338. <![CDATA[Deserialize a record with a tag (usually field name)
  37339. @param rin Record input source
  37340. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  37341. </doc>
  37342. </method>
  37343. <method name="compareTo" return="int"
  37344. abstract="true" native="false" synchronized="false"
  37345. static="false" final="false" visibility="public"
  37346. deprecated="not deprecated">
  37347. <param name="peer" type="java.lang.Object"/>
  37348. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  37349. </method>
  37350. <method name="serialize"
  37351. abstract="false" native="false" synchronized="false"
  37352. static="false" final="false" visibility="public"
  37353. deprecated="not deprecated">
  37354. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  37355. <exception name="IOException" type="java.io.IOException"/>
  37356. <doc>
  37357. <![CDATA[Serialize a record without a tag
  37358. @param rout Record output destination]]>
  37359. </doc>
  37360. </method>
  37361. <method name="deserialize"
  37362. abstract="false" native="false" synchronized="false"
  37363. static="false" final="false" visibility="public"
  37364. deprecated="not deprecated">
  37365. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  37366. <exception name="IOException" type="java.io.IOException"/>
  37367. <doc>
  37368. <![CDATA[Deserialize a record without a tag
  37369. @param rin Record input source]]>
  37370. </doc>
  37371. </method>
  37372. <method name="write"
  37373. abstract="false" native="false" synchronized="false"
  37374. static="false" final="false" visibility="public"
  37375. deprecated="not deprecated">
  37376. <param name="out" type="java.io.DataOutput"/>
  37377. <exception name="IOException" type="java.io.IOException"/>
  37378. </method>
  37379. <method name="readFields"
  37380. abstract="false" native="false" synchronized="false"
  37381. static="false" final="false" visibility="public"
  37382. deprecated="not deprecated">
  37383. <param name="din" type="java.io.DataInput"/>
  37384. <exception name="IOException" type="java.io.IOException"/>
  37385. </method>
  37386. <method name="toString" return="java.lang.String"
  37387. abstract="false" native="false" synchronized="false"
  37388. static="false" final="false" visibility="public"
  37389. deprecated="not deprecated">
  37390. </method>
  37391. <doc>
  37392. <![CDATA[Abstract class that is extended by generated classes.]]>
  37393. </doc>
  37394. </class>
  37395. <!-- end class org.apache.hadoop.record.Record -->
  37396. <!-- start class org.apache.hadoop.record.RecordComparator -->
  37397. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  37398. abstract="true"
  37399. static="false" final="false" visibility="public"
  37400. deprecated="not deprecated">
  37401. <constructor name="RecordComparator" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparable&gt;"
  37402. static="false" final="false" visibility="protected"
  37403. deprecated="not deprecated">
  37404. <doc>
  37405. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  37406. </doc>
  37407. </constructor>
  37408. <method name="compare" return="int"
  37409. abstract="true" native="false" synchronized="false"
  37410. static="false" final="false" visibility="public"
  37411. deprecated="not deprecated">
  37412. <param name="b1" type="byte[]"/>
  37413. <param name="s1" type="int"/>
  37414. <param name="l1" type="int"/>
  37415. <param name="b2" type="byte[]"/>
  37416. <param name="s2" type="int"/>
  37417. <param name="l2" type="int"/>
  37418. </method>
  37419. <method name="define"
  37420. abstract="false" native="false" synchronized="true"
  37421. static="true" final="false" visibility="public"
  37422. deprecated="not deprecated">
  37423. <param name="c" type="java.lang.Class"/>
  37424. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  37425. <doc>
  37426. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  37427. @param c record classs for which a raw comparator is provided
  37428. @param comparator Raw comparator instance for class c]]>
  37429. </doc>
  37430. </method>
  37431. <doc>
  37432. <![CDATA[A raw record comparator base class]]>
  37433. </doc>
  37434. </class>
  37435. <!-- end class org.apache.hadoop.record.RecordComparator -->
  37436. <!-- start interface org.apache.hadoop.record.RecordInput -->
  37437. <interface name="RecordInput" abstract="true"
  37438. static="false" final="false" visibility="public"
  37439. deprecated="not deprecated">
  37440. <method name="readByte" return="byte"
  37441. abstract="false" native="false" synchronized="false"
  37442. static="false" final="false" visibility="public"
  37443. deprecated="not deprecated">
  37444. <param name="tag" type="java.lang.String"/>
  37445. <exception name="IOException" type="java.io.IOException"/>
  37446. <doc>
  37447. <![CDATA[Read a byte from serialized record.
  37448. @param tag Used by tagged serialization formats (such as XML)
  37449. @return value read from serialized record.]]>
  37450. </doc>
  37451. </method>
  37452. <method name="readBool" return="boolean"
  37453. abstract="false" native="false" synchronized="false"
  37454. static="false" final="false" visibility="public"
  37455. deprecated="not deprecated">
  37456. <param name="tag" type="java.lang.String"/>
  37457. <exception name="IOException" type="java.io.IOException"/>
  37458. <doc>
  37459. <![CDATA[Read a boolean from serialized record.
  37460. @param tag Used by tagged serialization formats (such as XML)
  37461. @return value read from serialized record.]]>
  37462. </doc>
  37463. </method>
  37464. <method name="readInt" return="int"
  37465. abstract="false" native="false" synchronized="false"
  37466. static="false" final="false" visibility="public"
  37467. deprecated="not deprecated">
  37468. <param name="tag" type="java.lang.String"/>
  37469. <exception name="IOException" type="java.io.IOException"/>
  37470. <doc>
  37471. <![CDATA[Read an integer from serialized record.
  37472. @param tag Used by tagged serialization formats (such as XML)
  37473. @return value read from serialized record.]]>
  37474. </doc>
  37475. </method>
  37476. <method name="readLong" return="long"
  37477. abstract="false" native="false" synchronized="false"
  37478. static="false" final="false" visibility="public"
  37479. deprecated="not deprecated">
  37480. <param name="tag" type="java.lang.String"/>
  37481. <exception name="IOException" type="java.io.IOException"/>
  37482. <doc>
  37483. <![CDATA[Read a long integer from serialized record.
  37484. @param tag Used by tagged serialization formats (such as XML)
  37485. @return value read from serialized record.]]>
  37486. </doc>
  37487. </method>
  37488. <method name="readFloat" return="float"
  37489. abstract="false" native="false" synchronized="false"
  37490. static="false" final="false" visibility="public"
  37491. deprecated="not deprecated">
  37492. <param name="tag" type="java.lang.String"/>
  37493. <exception name="IOException" type="java.io.IOException"/>
  37494. <doc>
  37495. <![CDATA[Read a single-precision float from serialized record.
  37496. @param tag Used by tagged serialization formats (such as XML)
  37497. @return value read from serialized record.]]>
  37498. </doc>
  37499. </method>
  37500. <method name="readDouble" return="double"
  37501. abstract="false" native="false" synchronized="false"
  37502. static="false" final="false" visibility="public"
  37503. deprecated="not deprecated">
  37504. <param name="tag" type="java.lang.String"/>
  37505. <exception name="IOException" type="java.io.IOException"/>
  37506. <doc>
  37507. <![CDATA[Read a double-precision number from serialized record.
  37508. @param tag Used by tagged serialization formats (such as XML)
  37509. @return value read from serialized record.]]>
  37510. </doc>
  37511. </method>
  37512. <method name="readString" return="java.lang.String"
  37513. abstract="false" native="false" synchronized="false"
  37514. static="false" final="false" visibility="public"
  37515. deprecated="not deprecated">
  37516. <param name="tag" type="java.lang.String"/>
  37517. <exception name="IOException" type="java.io.IOException"/>
  37518. <doc>
  37519. <![CDATA[Read a UTF-8 encoded string from serialized record.
  37520. @param tag Used by tagged serialization formats (such as XML)
  37521. @return value read from serialized record.]]>
  37522. </doc>
  37523. </method>
  37524. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  37525. abstract="false" native="false" synchronized="false"
  37526. static="false" final="false" visibility="public"
  37527. deprecated="not deprecated">
  37528. <param name="tag" type="java.lang.String"/>
  37529. <exception name="IOException" type="java.io.IOException"/>
  37530. <doc>
  37531. <![CDATA[Read byte array from serialized record.
  37532. @param tag Used by tagged serialization formats (such as XML)
  37533. @return value read from serialized record.]]>
  37534. </doc>
  37535. </method>
  37536. <method name="startRecord"
  37537. abstract="false" native="false" synchronized="false"
  37538. static="false" final="false" visibility="public"
  37539. deprecated="not deprecated">
  37540. <param name="tag" type="java.lang.String"/>
  37541. <exception name="IOException" type="java.io.IOException"/>
  37542. <doc>
  37543. <![CDATA[Check the mark for start of the serialized record.
  37544. @param tag Used by tagged serialization formats (such as XML)]]>
  37545. </doc>
  37546. </method>
  37547. <method name="endRecord"
  37548. abstract="false" native="false" synchronized="false"
  37549. static="false" final="false" visibility="public"
  37550. deprecated="not deprecated">
  37551. <param name="tag" type="java.lang.String"/>
  37552. <exception name="IOException" type="java.io.IOException"/>
  37553. <doc>
  37554. <![CDATA[Check the mark for end of the serialized record.
  37555. @param tag Used by tagged serialization formats (such as XML)]]>
  37556. </doc>
  37557. </method>
  37558. <method name="startVector" return="org.apache.hadoop.record.Index"
  37559. abstract="false" native="false" synchronized="false"
  37560. static="false" final="false" visibility="public"
  37561. deprecated="not deprecated">
  37562. <param name="tag" type="java.lang.String"/>
  37563. <exception name="IOException" type="java.io.IOException"/>
  37564. <doc>
  37565. <![CDATA[Check the mark for start of the serialized vector.
  37566. @param tag Used by tagged serialization formats (such as XML)
  37567. @return Index that is used to count the number of elements.]]>
  37568. </doc>
  37569. </method>
  37570. <method name="endVector"
  37571. abstract="false" native="false" synchronized="false"
  37572. static="false" final="false" visibility="public"
  37573. deprecated="not deprecated">
  37574. <param name="tag" type="java.lang.String"/>
  37575. <exception name="IOException" type="java.io.IOException"/>
  37576. <doc>
  37577. <![CDATA[Check the mark for end of the serialized vector.
  37578. @param tag Used by tagged serialization formats (such as XML)]]>
  37579. </doc>
  37580. </method>
  37581. <method name="startMap" return="org.apache.hadoop.record.Index"
  37582. abstract="false" native="false" synchronized="false"
  37583. static="false" final="false" visibility="public"
  37584. deprecated="not deprecated">
  37585. <param name="tag" type="java.lang.String"/>
  37586. <exception name="IOException" type="java.io.IOException"/>
  37587. <doc>
  37588. <![CDATA[Check the mark for start of the serialized map.
  37589. @param tag Used by tagged serialization formats (such as XML)
  37590. @return Index that is used to count the number of map entries.]]>
  37591. </doc>
  37592. </method>
  37593. <method name="endMap"
  37594. abstract="false" native="false" synchronized="false"
  37595. static="false" final="false" visibility="public"
  37596. deprecated="not deprecated">
  37597. <param name="tag" type="java.lang.String"/>
  37598. <exception name="IOException" type="java.io.IOException"/>
  37599. <doc>
  37600. <![CDATA[Check the mark for end of the serialized map.
  37601. @param tag Used by tagged serialization formats (such as XML)]]>
  37602. </doc>
  37603. </method>
  37604. <doc>
  37605. <![CDATA[Interface that all the Deserializers have to implement.]]>
  37606. </doc>
  37607. </interface>
  37608. <!-- end interface org.apache.hadoop.record.RecordInput -->
  37609. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  37610. <interface name="RecordOutput" abstract="true"
  37611. static="false" final="false" visibility="public"
  37612. deprecated="not deprecated">
  37613. <method name="writeByte"
  37614. abstract="false" native="false" synchronized="false"
  37615. static="false" final="false" visibility="public"
  37616. deprecated="not deprecated">
  37617. <param name="b" type="byte"/>
  37618. <param name="tag" type="java.lang.String"/>
  37619. <exception name="IOException" type="java.io.IOException"/>
  37620. <doc>
  37621. <![CDATA[Write a byte to serialized record.
  37622. @param b Byte to be serialized
  37623. @param tag Used by tagged serialization formats (such as XML)
  37624. @throws IOException Indicates error in serialization]]>
  37625. </doc>
  37626. </method>
  37627. <method name="writeBool"
  37628. abstract="false" native="false" synchronized="false"
  37629. static="false" final="false" visibility="public"
  37630. deprecated="not deprecated">
  37631. <param name="b" type="boolean"/>
  37632. <param name="tag" type="java.lang.String"/>
  37633. <exception name="IOException" type="java.io.IOException"/>
  37634. <doc>
  37635. <![CDATA[Write a boolean to serialized record.
  37636. @param b Boolean to be serialized
  37637. @param tag Used by tagged serialization formats (such as XML)
  37638. @throws IOException Indicates error in serialization]]>
  37639. </doc>
  37640. </method>
  37641. <method name="writeInt"
  37642. abstract="false" native="false" synchronized="false"
  37643. static="false" final="false" visibility="public"
  37644. deprecated="not deprecated">
  37645. <param name="i" type="int"/>
  37646. <param name="tag" type="java.lang.String"/>
  37647. <exception name="IOException" type="java.io.IOException"/>
  37648. <doc>
  37649. <![CDATA[Write an integer to serialized record.
  37650. @param i Integer to be serialized
  37651. @param tag Used by tagged serialization formats (such as XML)
  37652. @throws IOException Indicates error in serialization]]>
  37653. </doc>
  37654. </method>
  37655. <method name="writeLong"
  37656. abstract="false" native="false" synchronized="false"
  37657. static="false" final="false" visibility="public"
  37658. deprecated="not deprecated">
  37659. <param name="l" type="long"/>
  37660. <param name="tag" type="java.lang.String"/>
  37661. <exception name="IOException" type="java.io.IOException"/>
  37662. <doc>
  37663. <![CDATA[Write a long integer to serialized record.
  37664. @param l Long to be serialized
  37665. @param tag Used by tagged serialization formats (such as XML)
  37666. @throws IOException Indicates error in serialization]]>
  37667. </doc>
  37668. </method>
  37669. <method name="writeFloat"
  37670. abstract="false" native="false" synchronized="false"
  37671. static="false" final="false" visibility="public"
  37672. deprecated="not deprecated">
  37673. <param name="f" type="float"/>
  37674. <param name="tag" type="java.lang.String"/>
  37675. <exception name="IOException" type="java.io.IOException"/>
  37676. <doc>
  37677. <![CDATA[Write a single-precision float to serialized record.
  37678. @param f Float to be serialized
  37679. @param tag Used by tagged serialization formats (such as XML)
  37680. @throws IOException Indicates error in serialization]]>
  37681. </doc>
  37682. </method>
  37683. <method name="writeDouble"
  37684. abstract="false" native="false" synchronized="false"
  37685. static="false" final="false" visibility="public"
  37686. deprecated="not deprecated">
  37687. <param name="d" type="double"/>
  37688. <param name="tag" type="java.lang.String"/>
  37689. <exception name="IOException" type="java.io.IOException"/>
  37690. <doc>
  37691. <![CDATA[Write a double precision floating point number to serialized record.
  37692. @param d Double to be serialized
  37693. @param tag Used by tagged serialization formats (such as XML)
  37694. @throws IOException Indicates error in serialization]]>
  37695. </doc>
  37696. </method>
  37697. <method name="writeString"
  37698. abstract="false" native="false" synchronized="false"
  37699. static="false" final="false" visibility="public"
  37700. deprecated="not deprecated">
  37701. <param name="s" type="java.lang.String"/>
  37702. <param name="tag" type="java.lang.String"/>
  37703. <exception name="IOException" type="java.io.IOException"/>
  37704. <doc>
  37705. <![CDATA[Write a unicode string to serialized record.
  37706. @param s String to be serialized
  37707. @param tag Used by tagged serialization formats (such as XML)
  37708. @throws IOException Indicates error in serialization]]>
  37709. </doc>
  37710. </method>
  37711. <method name="writeBuffer"
  37712. abstract="false" native="false" synchronized="false"
  37713. static="false" final="false" visibility="public"
  37714. deprecated="not deprecated">
  37715. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  37716. <param name="tag" type="java.lang.String"/>
  37717. <exception name="IOException" type="java.io.IOException"/>
  37718. <doc>
  37719. <![CDATA[Write a buffer to serialized record.
  37720. @param buf Buffer to be serialized
  37721. @param tag Used by tagged serialization formats (such as XML)
  37722. @throws IOException Indicates error in serialization]]>
  37723. </doc>
  37724. </method>
  37725. <method name="startRecord"
  37726. abstract="false" native="false" synchronized="false"
  37727. static="false" final="false" visibility="public"
  37728. deprecated="not deprecated">
  37729. <param name="r" type="org.apache.hadoop.record.Record"/>
  37730. <param name="tag" type="java.lang.String"/>
  37731. <exception name="IOException" type="java.io.IOException"/>
  37732. <doc>
  37733. <![CDATA[Mark the start of a record to be serialized.
  37734. @param r Record to be serialized
  37735. @param tag Used by tagged serialization formats (such as XML)
  37736. @throws IOException Indicates error in serialization]]>
  37737. </doc>
  37738. </method>
  37739. <method name="endRecord"
  37740. abstract="false" native="false" synchronized="false"
  37741. static="false" final="false" visibility="public"
  37742. deprecated="not deprecated">
  37743. <param name="r" type="org.apache.hadoop.record.Record"/>
  37744. <param name="tag" type="java.lang.String"/>
  37745. <exception name="IOException" type="java.io.IOException"/>
  37746. <doc>
  37747. <![CDATA[Mark the end of a serialized record.
  37748. @param r Record to be serialized
  37749. @param tag Used by tagged serialization formats (such as XML)
  37750. @throws IOException Indicates error in serialization]]>
  37751. </doc>
  37752. </method>
  37753. <method name="startVector"
  37754. abstract="false" native="false" synchronized="false"
  37755. static="false" final="false" visibility="public"
  37756. deprecated="not deprecated">
  37757. <param name="v" type="java.util.ArrayList"/>
  37758. <param name="tag" type="java.lang.String"/>
  37759. <exception name="IOException" type="java.io.IOException"/>
  37760. <doc>
  37761. <![CDATA[Mark the start of a vector to be serialized.
  37762. @param v Vector to be serialized
  37763. @param tag Used by tagged serialization formats (such as XML)
  37764. @throws IOException Indicates error in serialization]]>
  37765. </doc>
  37766. </method>
  37767. <method name="endVector"
  37768. abstract="false" native="false" synchronized="false"
  37769. static="false" final="false" visibility="public"
  37770. deprecated="not deprecated">
  37771. <param name="v" type="java.util.ArrayList"/>
  37772. <param name="tag" type="java.lang.String"/>
  37773. <exception name="IOException" type="java.io.IOException"/>
  37774. <doc>
  37775. <![CDATA[Mark the end of a serialized vector.
  37776. @param v Vector to be serialized
  37777. @param tag Used by tagged serialization formats (such as XML)
  37778. @throws IOException Indicates error in serialization]]>
  37779. </doc>
  37780. </method>
  37781. <method name="startMap"
  37782. abstract="false" native="false" synchronized="false"
  37783. static="false" final="false" visibility="public"
  37784. deprecated="not deprecated">
  37785. <param name="m" type="java.util.TreeMap"/>
  37786. <param name="tag" type="java.lang.String"/>
  37787. <exception name="IOException" type="java.io.IOException"/>
  37788. <doc>
  37789. <![CDATA[Mark the start of a map to be serialized.
  37790. @param m Map to be serialized
  37791. @param tag Used by tagged serialization formats (such as XML)
  37792. @throws IOException Indicates error in serialization]]>
  37793. </doc>
  37794. </method>
  37795. <method name="endMap"
  37796. abstract="false" native="false" synchronized="false"
  37797. static="false" final="false" visibility="public"
  37798. deprecated="not deprecated">
  37799. <param name="m" type="java.util.TreeMap"/>
  37800. <param name="tag" type="java.lang.String"/>
  37801. <exception name="IOException" type="java.io.IOException"/>
  37802. <doc>
  37803. <![CDATA[Mark the end of a serialized map.
  37804. @param m Map to be serialized
  37805. @param tag Used by tagged serialization formats (such as XML)
  37806. @throws IOException Indicates error in serialization]]>
  37807. </doc>
  37808. </method>
  37809. <doc>
  37810. <![CDATA[Interface that alll the serializers have to implement.]]>
  37811. </doc>
  37812. </interface>
  37813. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  37814. <!-- start class org.apache.hadoop.record.Utils -->
  37815. <class name="Utils" extends="java.lang.Object"
  37816. abstract="false"
  37817. static="false" final="false" visibility="public"
  37818. deprecated="not deprecated">
  37819. <method name="readFloat" return="float"
  37820. abstract="false" native="false" synchronized="false"
  37821. static="true" final="false" visibility="public"
  37822. deprecated="not deprecated">
  37823. <param name="bytes" type="byte[]"/>
  37824. <param name="start" type="int"/>
  37825. <doc>
  37826. <![CDATA[Parse a float from a byte array.]]>
  37827. </doc>
  37828. </method>
  37829. <method name="readDouble" return="double"
  37830. abstract="false" native="false" synchronized="false"
  37831. static="true" final="false" visibility="public"
  37832. deprecated="not deprecated">
  37833. <param name="bytes" type="byte[]"/>
  37834. <param name="start" type="int"/>
  37835. <doc>
  37836. <![CDATA[Parse a double from a byte array.]]>
  37837. </doc>
  37838. </method>
  37839. <method name="readVLong" return="long"
  37840. abstract="false" native="false" synchronized="false"
  37841. static="true" final="false" visibility="public"
  37842. deprecated="not deprecated">
  37843. <param name="bytes" type="byte[]"/>
  37844. <param name="start" type="int"/>
  37845. <exception name="IOException" type="java.io.IOException"/>
  37846. <doc>
  37847. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  37848. @param bytes byte array with decode long
  37849. @param start starting index
  37850. @throws java.io.IOException
  37851. @return deserialized long]]>
  37852. </doc>
  37853. </method>
  37854. <method name="readVInt" return="int"
  37855. abstract="false" native="false" synchronized="false"
  37856. static="true" final="false" visibility="public"
  37857. deprecated="not deprecated">
  37858. <param name="bytes" type="byte[]"/>
  37859. <param name="start" type="int"/>
  37860. <exception name="IOException" type="java.io.IOException"/>
  37861. <doc>
  37862. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  37863. @param bytes byte array with the encoded integer
  37864. @param start start index
  37865. @throws java.io.IOException
  37866. @return deserialized integer]]>
  37867. </doc>
  37868. </method>
  37869. <method name="readVLong" return="long"
  37870. abstract="false" native="false" synchronized="false"
  37871. static="true" final="false" visibility="public"
  37872. deprecated="not deprecated">
  37873. <param name="in" type="java.io.DataInput"/>
  37874. <exception name="IOException" type="java.io.IOException"/>
  37875. <doc>
  37876. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  37877. @param in input stream
  37878. @throws java.io.IOException
  37879. @return deserialized long]]>
  37880. </doc>
  37881. </method>
  37882. <method name="readVInt" return="int"
  37883. abstract="false" native="false" synchronized="false"
  37884. static="true" final="false" visibility="public"
  37885. deprecated="not deprecated">
  37886. <param name="in" type="java.io.DataInput"/>
  37887. <exception name="IOException" type="java.io.IOException"/>
  37888. <doc>
  37889. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  37890. @param in input stream
  37891. @throws java.io.IOException
  37892. @return deserialized integer]]>
  37893. </doc>
  37894. </method>
  37895. <method name="getVIntSize" return="int"
  37896. abstract="false" native="false" synchronized="false"
  37897. static="true" final="false" visibility="public"
  37898. deprecated="not deprecated">
  37899. <param name="i" type="long"/>
  37900. <doc>
  37901. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  37902. @return the encoded length]]>
  37903. </doc>
  37904. </method>
  37905. <method name="writeVLong"
  37906. abstract="false" native="false" synchronized="false"
  37907. static="true" final="false" visibility="public"
  37908. deprecated="not deprecated">
  37909. <param name="stream" type="java.io.DataOutput"/>
  37910. <param name="i" type="long"/>
  37911. <exception name="IOException" type="java.io.IOException"/>
  37912. <doc>
  37913. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  37914. For -112 <= i <= 127, only one byte is used with the actual value.
  37915. For other values of i, the first byte value indicates whether the
  37916. long is positive or negative, and the number of bytes that follow.
  37917. If the first byte value v is between -113 and -120, the following long
  37918. is positive, with number of bytes that follow are -(v+112).
  37919. If the first byte value v is between -121 and -128, the following long
  37920. is negative, with number of bytes that follow are -(v+120). Bytes are
  37921. stored in the high-non-zero-byte-first order.
  37922. @param stream Binary output stream
  37923. @param i Long to be serialized
  37924. @throws java.io.IOException]]>
  37925. </doc>
  37926. </method>
  37927. <method name="writeVInt"
  37928. abstract="false" native="false" synchronized="false"
  37929. static="true" final="false" visibility="public"
  37930. deprecated="not deprecated">
  37931. <param name="stream" type="java.io.DataOutput"/>
  37932. <param name="i" type="int"/>
  37933. <exception name="IOException" type="java.io.IOException"/>
  37934. <doc>
  37935. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  37936. @param stream Binary output stream
  37937. @param i int to be serialized
  37938. @throws java.io.IOException]]>
  37939. </doc>
  37940. </method>
  37941. <method name="compareBytes" return="int"
  37942. abstract="false" native="false" synchronized="false"
  37943. static="true" final="false" visibility="public"
  37944. deprecated="not deprecated">
  37945. <param name="b1" type="byte[]"/>
  37946. <param name="s1" type="int"/>
  37947. <param name="l1" type="int"/>
  37948. <param name="b2" type="byte[]"/>
  37949. <param name="s2" type="int"/>
  37950. <param name="l2" type="int"/>
  37951. <doc>
  37952. <![CDATA[Lexicographic order of binary data.]]>
  37953. </doc>
  37954. </method>
  37955. <field name="hexchars" type="char[]"
  37956. transient="false" volatile="false"
  37957. static="true" final="true" visibility="public"
  37958. deprecated="not deprecated">
  37959. </field>
  37960. <doc>
  37961. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  37962. </doc>
  37963. </class>
  37964. <!-- end class org.apache.hadoop.record.Utils -->
  37965. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  37966. <class name="XmlRecordInput" extends="java.lang.Object"
  37967. abstract="false"
  37968. static="false" final="false" visibility="public"
  37969. deprecated="not deprecated">
  37970. <implements name="org.apache.hadoop.record.RecordInput"/>
  37971. <constructor name="XmlRecordInput" type="java.io.InputStream"
  37972. static="false" final="false" visibility="public"
  37973. deprecated="not deprecated">
  37974. <doc>
  37975. <![CDATA[Creates a new instance of XmlRecordInput]]>
  37976. </doc>
  37977. </constructor>
  37978. <method name="readByte" return="byte"
  37979. abstract="false" native="false" synchronized="false"
  37980. static="false" final="false" visibility="public"
  37981. deprecated="not deprecated">
  37982. <param name="tag" type="java.lang.String"/>
  37983. <exception name="IOException" type="java.io.IOException"/>
  37984. </method>
  37985. <method name="readBool" return="boolean"
  37986. abstract="false" native="false" synchronized="false"
  37987. static="false" final="false" visibility="public"
  37988. deprecated="not deprecated">
  37989. <param name="tag" type="java.lang.String"/>
  37990. <exception name="IOException" type="java.io.IOException"/>
  37991. </method>
  37992. <method name="readInt" return="int"
  37993. abstract="false" native="false" synchronized="false"
  37994. static="false" final="false" visibility="public"
  37995. deprecated="not deprecated">
  37996. <param name="tag" type="java.lang.String"/>
  37997. <exception name="IOException" type="java.io.IOException"/>
  37998. </method>
  37999. <method name="readLong" return="long"
  38000. abstract="false" native="false" synchronized="false"
  38001. static="false" final="false" visibility="public"
  38002. deprecated="not deprecated">
  38003. <param name="tag" type="java.lang.String"/>
  38004. <exception name="IOException" type="java.io.IOException"/>
  38005. </method>
  38006. <method name="readFloat" return="float"
  38007. abstract="false" native="false" synchronized="false"
  38008. static="false" final="false" visibility="public"
  38009. deprecated="not deprecated">
  38010. <param name="tag" type="java.lang.String"/>
  38011. <exception name="IOException" type="java.io.IOException"/>
  38012. </method>
  38013. <method name="readDouble" return="double"
  38014. abstract="false" native="false" synchronized="false"
  38015. static="false" final="false" visibility="public"
  38016. deprecated="not deprecated">
  38017. <param name="tag" type="java.lang.String"/>
  38018. <exception name="IOException" type="java.io.IOException"/>
  38019. </method>
  38020. <method name="readString" return="java.lang.String"
  38021. abstract="false" native="false" synchronized="false"
  38022. static="false" final="false" visibility="public"
  38023. deprecated="not deprecated">
  38024. <param name="tag" type="java.lang.String"/>
  38025. <exception name="IOException" type="java.io.IOException"/>
  38026. </method>
  38027. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  38028. abstract="false" native="false" synchronized="false"
  38029. static="false" final="false" visibility="public"
  38030. deprecated="not deprecated">
  38031. <param name="tag" type="java.lang.String"/>
  38032. <exception name="IOException" type="java.io.IOException"/>
  38033. </method>
  38034. <method name="startRecord"
  38035. abstract="false" native="false" synchronized="false"
  38036. static="false" final="false" visibility="public"
  38037. deprecated="not deprecated">
  38038. <param name="tag" type="java.lang.String"/>
  38039. <exception name="IOException" type="java.io.IOException"/>
  38040. </method>
  38041. <method name="endRecord"
  38042. abstract="false" native="false" synchronized="false"
  38043. static="false" final="false" visibility="public"
  38044. deprecated="not deprecated">
  38045. <param name="tag" type="java.lang.String"/>
  38046. <exception name="IOException" type="java.io.IOException"/>
  38047. </method>
  38048. <method name="startVector" return="org.apache.hadoop.record.Index"
  38049. abstract="false" native="false" synchronized="false"
  38050. static="false" final="false" visibility="public"
  38051. deprecated="not deprecated">
  38052. <param name="tag" type="java.lang.String"/>
  38053. <exception name="IOException" type="java.io.IOException"/>
  38054. </method>
  38055. <method name="endVector"
  38056. abstract="false" native="false" synchronized="false"
  38057. static="false" final="false" visibility="public"
  38058. deprecated="not deprecated">
  38059. <param name="tag" type="java.lang.String"/>
  38060. <exception name="IOException" type="java.io.IOException"/>
  38061. </method>
  38062. <method name="startMap" return="org.apache.hadoop.record.Index"
  38063. abstract="false" native="false" synchronized="false"
  38064. static="false" final="false" visibility="public"
  38065. deprecated="not deprecated">
  38066. <param name="tag" type="java.lang.String"/>
  38067. <exception name="IOException" type="java.io.IOException"/>
  38068. </method>
  38069. <method name="endMap"
  38070. abstract="false" native="false" synchronized="false"
  38071. static="false" final="false" visibility="public"
  38072. deprecated="not deprecated">
  38073. <param name="tag" type="java.lang.String"/>
  38074. <exception name="IOException" type="java.io.IOException"/>
  38075. </method>
  38076. <doc>
  38077. <![CDATA[XML Deserializer.]]>
  38078. </doc>
  38079. </class>
  38080. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  38081. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  38082. <class name="XmlRecordOutput" extends="java.lang.Object"
  38083. abstract="false"
  38084. static="false" final="false" visibility="public"
  38085. deprecated="not deprecated">
  38086. <implements name="org.apache.hadoop.record.RecordOutput"/>
  38087. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  38088. static="false" final="false" visibility="public"
  38089. deprecated="not deprecated">
  38090. <doc>
  38091. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  38092. </doc>
  38093. </constructor>
  38094. <method name="writeByte"
  38095. abstract="false" native="false" synchronized="false"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <param name="b" type="byte"/>
  38099. <param name="tag" type="java.lang.String"/>
  38100. <exception name="IOException" type="java.io.IOException"/>
  38101. </method>
  38102. <method name="writeBool"
  38103. abstract="false" native="false" synchronized="false"
  38104. static="false" final="false" visibility="public"
  38105. deprecated="not deprecated">
  38106. <param name="b" type="boolean"/>
  38107. <param name="tag" type="java.lang.String"/>
  38108. <exception name="IOException" type="java.io.IOException"/>
  38109. </method>
  38110. <method name="writeInt"
  38111. abstract="false" native="false" synchronized="false"
  38112. static="false" final="false" visibility="public"
  38113. deprecated="not deprecated">
  38114. <param name="i" type="int"/>
  38115. <param name="tag" type="java.lang.String"/>
  38116. <exception name="IOException" type="java.io.IOException"/>
  38117. </method>
  38118. <method name="writeLong"
  38119. abstract="false" native="false" synchronized="false"
  38120. static="false" final="false" visibility="public"
  38121. deprecated="not deprecated">
  38122. <param name="l" type="long"/>
  38123. <param name="tag" type="java.lang.String"/>
  38124. <exception name="IOException" type="java.io.IOException"/>
  38125. </method>
  38126. <method name="writeFloat"
  38127. abstract="false" native="false" synchronized="false"
  38128. static="false" final="false" visibility="public"
  38129. deprecated="not deprecated">
  38130. <param name="f" type="float"/>
  38131. <param name="tag" type="java.lang.String"/>
  38132. <exception name="IOException" type="java.io.IOException"/>
  38133. </method>
  38134. <method name="writeDouble"
  38135. abstract="false" native="false" synchronized="false"
  38136. static="false" final="false" visibility="public"
  38137. deprecated="not deprecated">
  38138. <param name="d" type="double"/>
  38139. <param name="tag" type="java.lang.String"/>
  38140. <exception name="IOException" type="java.io.IOException"/>
  38141. </method>
  38142. <method name="writeString"
  38143. abstract="false" native="false" synchronized="false"
  38144. static="false" final="false" visibility="public"
  38145. deprecated="not deprecated">
  38146. <param name="s" type="java.lang.String"/>
  38147. <param name="tag" type="java.lang.String"/>
  38148. <exception name="IOException" type="java.io.IOException"/>
  38149. </method>
  38150. <method name="writeBuffer"
  38151. abstract="false" native="false" synchronized="false"
  38152. static="false" final="false" visibility="public"
  38153. deprecated="not deprecated">
  38154. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  38155. <param name="tag" type="java.lang.String"/>
  38156. <exception name="IOException" type="java.io.IOException"/>
  38157. </method>
  38158. <method name="startRecord"
  38159. abstract="false" native="false" synchronized="false"
  38160. static="false" final="false" visibility="public"
  38161. deprecated="not deprecated">
  38162. <param name="r" type="org.apache.hadoop.record.Record"/>
  38163. <param name="tag" type="java.lang.String"/>
  38164. <exception name="IOException" type="java.io.IOException"/>
  38165. </method>
  38166. <method name="endRecord"
  38167. abstract="false" native="false" synchronized="false"
  38168. static="false" final="false" visibility="public"
  38169. deprecated="not deprecated">
  38170. <param name="r" type="org.apache.hadoop.record.Record"/>
  38171. <param name="tag" type="java.lang.String"/>
  38172. <exception name="IOException" type="java.io.IOException"/>
  38173. </method>
  38174. <method name="startVector"
  38175. abstract="false" native="false" synchronized="false"
  38176. static="false" final="false" visibility="public"
  38177. deprecated="not deprecated">
  38178. <param name="v" type="java.util.ArrayList"/>
  38179. <param name="tag" type="java.lang.String"/>
  38180. <exception name="IOException" type="java.io.IOException"/>
  38181. </method>
  38182. <method name="endVector"
  38183. abstract="false" native="false" synchronized="false"
  38184. static="false" final="false" visibility="public"
  38185. deprecated="not deprecated">
  38186. <param name="v" type="java.util.ArrayList"/>
  38187. <param name="tag" type="java.lang.String"/>
  38188. <exception name="IOException" type="java.io.IOException"/>
  38189. </method>
  38190. <method name="startMap"
  38191. abstract="false" native="false" synchronized="false"
  38192. static="false" final="false" visibility="public"
  38193. deprecated="not deprecated">
  38194. <param name="v" type="java.util.TreeMap"/>
  38195. <param name="tag" type="java.lang.String"/>
  38196. <exception name="IOException" type="java.io.IOException"/>
  38197. </method>
  38198. <method name="endMap"
  38199. abstract="false" native="false" synchronized="false"
  38200. static="false" final="false" visibility="public"
  38201. deprecated="not deprecated">
  38202. <param name="v" type="java.util.TreeMap"/>
  38203. <param name="tag" type="java.lang.String"/>
  38204. <exception name="IOException" type="java.io.IOException"/>
  38205. </method>
  38206. <doc>
  38207. <![CDATA[XML Serializer.]]>
  38208. </doc>
  38209. </class>
  38210. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  38211. </package>
  38212. <package name="org.apache.hadoop.record.compiler">
  38213. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  38214. <class name="CodeBuffer" extends="java.lang.Object"
  38215. abstract="false"
  38216. static="false" final="false" visibility="public"
  38217. deprecated="not deprecated">
  38218. <method name="toString" return="java.lang.String"
  38219. abstract="false" native="false" synchronized="false"
  38220. static="false" final="false" visibility="public"
  38221. deprecated="not deprecated">
  38222. </method>
  38223. <doc>
  38224. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  38225. </doc>
  38226. </class>
  38227. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  38228. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  38229. <class name="Consts" extends="java.lang.Object"
  38230. abstract="false"
  38231. static="false" final="false" visibility="public"
  38232. deprecated="not deprecated">
  38233. <field name="RIO_PREFIX" type="java.lang.String"
  38234. transient="false" volatile="false"
  38235. static="true" final="true" visibility="public"
  38236. deprecated="not deprecated">
  38237. </field>
  38238. <field name="RTI_VAR" type="java.lang.String"
  38239. transient="false" volatile="false"
  38240. static="true" final="true" visibility="public"
  38241. deprecated="not deprecated">
  38242. </field>
  38243. <field name="RTI_FILTER" type="java.lang.String"
  38244. transient="false" volatile="false"
  38245. static="true" final="true" visibility="public"
  38246. deprecated="not deprecated">
  38247. </field>
  38248. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  38249. transient="false" volatile="false"
  38250. static="true" final="true" visibility="public"
  38251. deprecated="not deprecated">
  38252. </field>
  38253. <field name="RECORD_OUTPUT" type="java.lang.String"
  38254. transient="false" volatile="false"
  38255. static="true" final="true" visibility="public"
  38256. deprecated="not deprecated">
  38257. </field>
  38258. <field name="RECORD_INPUT" type="java.lang.String"
  38259. transient="false" volatile="false"
  38260. static="true" final="true" visibility="public"
  38261. deprecated="not deprecated">
  38262. </field>
  38263. <field name="TAG" type="java.lang.String"
  38264. transient="false" volatile="false"
  38265. static="true" final="true" visibility="public"
  38266. deprecated="not deprecated">
  38267. </field>
  38268. <doc>
  38269. <![CDATA[const definitions for Record I/O compiler]]>
  38270. </doc>
  38271. </class>
  38272. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  38273. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  38274. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  38275. abstract="false"
  38276. static="false" final="false" visibility="public"
  38277. deprecated="not deprecated">
  38278. <constructor name="JBoolean"
  38279. static="false" final="false" visibility="public"
  38280. deprecated="not deprecated">
  38281. <doc>
  38282. <![CDATA[Creates a new instance of JBoolean]]>
  38283. </doc>
  38284. </constructor>
  38285. </class>
  38286. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  38287. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  38288. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  38289. abstract="false"
  38290. static="false" final="false" visibility="public"
  38291. deprecated="not deprecated">
  38292. <constructor name="JBuffer"
  38293. static="false" final="false" visibility="public"
  38294. deprecated="not deprecated">
  38295. <doc>
  38296. <![CDATA[Creates a new instance of JBuffer]]>
  38297. </doc>
  38298. </constructor>
  38299. <doc>
  38300. <![CDATA[Code generator for "buffer" type.]]>
  38301. </doc>
  38302. </class>
  38303. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  38304. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  38305. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  38306. abstract="false"
  38307. static="false" final="false" visibility="public"
  38308. deprecated="not deprecated">
  38309. <constructor name="JByte"
  38310. static="false" final="false" visibility="public"
  38311. deprecated="not deprecated">
  38312. </constructor>
  38313. <doc>
  38314. <![CDATA[Code generator for "byte" type.]]>
  38315. </doc>
  38316. </class>
  38317. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  38318. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  38319. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  38320. abstract="false"
  38321. static="false" final="false" visibility="public"
  38322. deprecated="not deprecated">
  38323. <constructor name="JDouble"
  38324. static="false" final="false" visibility="public"
  38325. deprecated="not deprecated">
  38326. <doc>
  38327. <![CDATA[Creates a new instance of JDouble]]>
  38328. </doc>
  38329. </constructor>
  38330. </class>
  38331. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  38332. <!-- start class org.apache.hadoop.record.compiler.JField -->
  38333. <class name="JField" extends="java.lang.Object"
  38334. abstract="false"
  38335. static="false" final="false" visibility="public"
  38336. deprecated="not deprecated">
  38337. <constructor name="JField" type="java.lang.String, T"
  38338. static="false" final="false" visibility="public"
  38339. deprecated="not deprecated">
  38340. <doc>
  38341. <![CDATA[Creates a new instance of JField]]>
  38342. </doc>
  38343. </constructor>
  38344. <doc>
  38345. <![CDATA[A thin wrappper around record field.]]>
  38346. </doc>
  38347. </class>
  38348. <!-- end class org.apache.hadoop.record.compiler.JField -->
  38349. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  38350. <class name="JFile" extends="java.lang.Object"
  38351. abstract="false"
  38352. static="false" final="false" visibility="public"
  38353. deprecated="not deprecated">
  38354. <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;"
  38355. static="false" final="false" visibility="public"
  38356. deprecated="not deprecated">
  38357. <doc>
  38358. <![CDATA[Creates a new instance of JFile
  38359. @param name possibly full pathname to the file
  38360. @param inclFiles included files (as JFile)
  38361. @param recList List of records defined within this file]]>
  38362. </doc>
  38363. </constructor>
  38364. <method name="genCode" return="int"
  38365. abstract="false" native="false" synchronized="false"
  38366. static="false" final="false" visibility="public"
  38367. deprecated="not deprecated">
  38368. <param name="language" type="java.lang.String"/>
  38369. <param name="destDir" type="java.lang.String"/>
  38370. <param name="options" type="java.util.ArrayList&lt;java.lang.String&gt;"/>
  38371. <exception name="IOException" type="java.io.IOException"/>
  38372. <doc>
  38373. <![CDATA[Generate record code in given language. Language should be all
  38374. lowercase.]]>
  38375. </doc>
  38376. </method>
  38377. <doc>
  38378. <![CDATA[Container for the Hadoop Record DDL.
  38379. The main components of the file are filename, list of included files,
  38380. and records defined in that file.]]>
  38381. </doc>
  38382. </class>
  38383. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  38384. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  38385. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  38386. abstract="false"
  38387. static="false" final="false" visibility="public"
  38388. deprecated="not deprecated">
  38389. <constructor name="JFloat"
  38390. static="false" final="false" visibility="public"
  38391. deprecated="not deprecated">
  38392. <doc>
  38393. <![CDATA[Creates a new instance of JFloat]]>
  38394. </doc>
  38395. </constructor>
  38396. </class>
  38397. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  38398. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  38399. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  38400. abstract="false"
  38401. static="false" final="false" visibility="public"
  38402. deprecated="not deprecated">
  38403. <constructor name="JInt"
  38404. static="false" final="false" visibility="public"
  38405. deprecated="not deprecated">
  38406. <doc>
  38407. <![CDATA[Creates a new instance of JInt]]>
  38408. </doc>
  38409. </constructor>
  38410. <doc>
  38411. <![CDATA[Code generator for "int" type]]>
  38412. </doc>
  38413. </class>
  38414. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  38415. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  38416. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  38417. abstract="false"
  38418. static="false" final="false" visibility="public"
  38419. deprecated="not deprecated">
  38420. <constructor name="JLong"
  38421. static="false" final="false" visibility="public"
  38422. deprecated="not deprecated">
  38423. <doc>
  38424. <![CDATA[Creates a new instance of JLong]]>
  38425. </doc>
  38426. </constructor>
  38427. <doc>
  38428. <![CDATA[Code generator for "long" type]]>
  38429. </doc>
  38430. </class>
  38431. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  38432. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  38433. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  38434. abstract="false"
  38435. static="false" final="false" visibility="public"
  38436. deprecated="not deprecated">
  38437. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  38438. static="false" final="false" visibility="public"
  38439. deprecated="not deprecated">
  38440. <doc>
  38441. <![CDATA[Creates a new instance of JMap]]>
  38442. </doc>
  38443. </constructor>
  38444. </class>
  38445. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  38446. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  38447. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  38448. abstract="false"
  38449. static="false" final="false" visibility="public"
  38450. deprecated="not deprecated">
  38451. <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;"
  38452. static="false" final="false" visibility="public"
  38453. deprecated="not deprecated">
  38454. <doc>
  38455. <![CDATA[Creates a new instance of JRecord]]>
  38456. </doc>
  38457. </constructor>
  38458. </class>
  38459. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  38460. <!-- start class org.apache.hadoop.record.compiler.JString -->
  38461. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  38462. abstract="false"
  38463. static="false" final="false" visibility="public"
  38464. deprecated="not deprecated">
  38465. <constructor name="JString"
  38466. static="false" final="false" visibility="public"
  38467. deprecated="not deprecated">
  38468. <doc>
  38469. <![CDATA[Creates a new instance of JString]]>
  38470. </doc>
  38471. </constructor>
  38472. </class>
  38473. <!-- end class org.apache.hadoop.record.compiler.JString -->
  38474. <!-- start class org.apache.hadoop.record.compiler.JType -->
  38475. <class name="JType" extends="java.lang.Object"
  38476. abstract="true"
  38477. static="false" final="false" visibility="public"
  38478. deprecated="not deprecated">
  38479. <constructor name="JType"
  38480. static="false" final="false" visibility="public"
  38481. deprecated="not deprecated">
  38482. </constructor>
  38483. <doc>
  38484. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  38485. </doc>
  38486. </class>
  38487. <!-- end class org.apache.hadoop.record.compiler.JType -->
  38488. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  38489. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  38490. abstract="false"
  38491. static="false" final="false" visibility="public"
  38492. deprecated="not deprecated">
  38493. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  38494. static="false" final="false" visibility="public"
  38495. deprecated="not deprecated">
  38496. <doc>
  38497. <![CDATA[Creates a new instance of JVector]]>
  38498. </doc>
  38499. </constructor>
  38500. </class>
  38501. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  38502. </package>
  38503. <package name="org.apache.hadoop.record.compiler.ant">
  38504. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  38505. <class name="RccTask" extends="org.apache.tools.ant.Task"
  38506. abstract="false"
  38507. static="false" final="false" visibility="public"
  38508. deprecated="not deprecated">
  38509. <constructor name="RccTask"
  38510. static="false" final="false" visibility="public"
  38511. deprecated="not deprecated">
  38512. <doc>
  38513. <![CDATA[Creates a new instance of RccTask]]>
  38514. </doc>
  38515. </constructor>
  38516. <method name="setLanguage"
  38517. abstract="false" native="false" synchronized="false"
  38518. static="false" final="false" visibility="public"
  38519. deprecated="not deprecated">
  38520. <param name="language" type="java.lang.String"/>
  38521. <doc>
  38522. <![CDATA[Sets the output language option
  38523. @param language "java"/"c++"]]>
  38524. </doc>
  38525. </method>
  38526. <method name="setFile"
  38527. abstract="false" native="false" synchronized="false"
  38528. static="false" final="false" visibility="public"
  38529. deprecated="not deprecated">
  38530. <param name="file" type="java.io.File"/>
  38531. <doc>
  38532. <![CDATA[Sets the record definition file attribute
  38533. @param file record definition file]]>
  38534. </doc>
  38535. </method>
  38536. <method name="setFailonerror"
  38537. abstract="false" native="false" synchronized="false"
  38538. static="false" final="false" visibility="public"
  38539. deprecated="not deprecated">
  38540. <param name="flag" type="boolean"/>
  38541. <doc>
  38542. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  38543. @param flag true will throw build exception in case of failure (default)]]>
  38544. </doc>
  38545. </method>
  38546. <method name="setDestdir"
  38547. abstract="false" native="false" synchronized="false"
  38548. static="false" final="false" visibility="public"
  38549. deprecated="not deprecated">
  38550. <param name="dir" type="java.io.File"/>
  38551. <doc>
  38552. <![CDATA[Sets directory where output files will be generated
  38553. @param dir output directory]]>
  38554. </doc>
  38555. </method>
  38556. <method name="addFileset"
  38557. abstract="false" native="false" synchronized="false"
  38558. static="false" final="false" visibility="public"
  38559. deprecated="not deprecated">
  38560. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  38561. <doc>
  38562. <![CDATA[Adds a fileset that can consist of one or more files
  38563. @param set Set of record definition files]]>
  38564. </doc>
  38565. </method>
  38566. <method name="execute"
  38567. abstract="false" native="false" synchronized="false"
  38568. static="false" final="false" visibility="public"
  38569. deprecated="not deprecated">
  38570. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  38571. <doc>
  38572. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  38573. </doc>
  38574. </method>
  38575. <doc>
  38576. <![CDATA[Hadoop record compiler ant Task
  38577. <p> This task takes the given record definition files and compiles them into
  38578. java or c++
  38579. files. It is then up to the user to compile the generated files.
  38580. <p> The task requires the <code>file</code> or the nested fileset element to be
  38581. specified. Optional attributes are <code>language</code> (set the output
  38582. language, default is "java"),
  38583. <code>destdir</code> (name of the destination directory for generated java/c++
  38584. code, default is ".") and <code>failonerror</code> (specifies error handling
  38585. behavior. default is true).
  38586. <p><h4>Usage</h4>
  38587. <pre>
  38588. &lt;recordcc
  38589. destdir="${basedir}/gensrc"
  38590. language="java"&gt;
  38591. &lt;fileset include="**\/*.jr" /&gt;
  38592. &lt;/recordcc&gt;
  38593. </pre>]]>
  38594. </doc>
  38595. </class>
  38596. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  38597. </package>
  38598. <package name="org.apache.hadoop.record.compiler.generated">
  38599. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  38600. <class name="ParseException" extends="java.lang.Exception"
  38601. abstract="false"
  38602. static="false" final="false" visibility="public"
  38603. deprecated="not deprecated">
  38604. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  38605. static="false" final="false" visibility="public"
  38606. deprecated="not deprecated">
  38607. <doc>
  38608. <![CDATA[This constructor is used by the method "generateParseException"
  38609. in the generated parser. Calling this constructor generates
  38610. a new object of this type with the fields "currentToken",
  38611. "expectedTokenSequences", and "tokenImage" set. The boolean
  38612. flag "specialConstructor" is also set to true to indicate that
  38613. this constructor was used to create this object.
  38614. This constructor calls its super class with the empty string
  38615. to force the "toString" method of parent class "Throwable" to
  38616. print the error message in the form:
  38617. ParseException: <result of getMessage>]]>
  38618. </doc>
  38619. </constructor>
  38620. <constructor name="ParseException"
  38621. static="false" final="false" visibility="public"
  38622. deprecated="not deprecated">
  38623. <doc>
  38624. <![CDATA[The following constructors are for use by you for whatever
  38625. purpose you can think of. Constructing the exception in this
  38626. manner makes the exception behave in the normal way - i.e., as
  38627. documented in the class "Throwable". The fields "errorToken",
  38628. "expectedTokenSequences", and "tokenImage" do not contain
  38629. relevant information. The JavaCC generated code does not use
  38630. these constructors.]]>
  38631. </doc>
  38632. </constructor>
  38633. <constructor name="ParseException" type="java.lang.String"
  38634. static="false" final="false" visibility="public"
  38635. deprecated="not deprecated">
  38636. </constructor>
  38637. <method name="getMessage" return="java.lang.String"
  38638. abstract="false" native="false" synchronized="false"
  38639. static="false" final="false" visibility="public"
  38640. deprecated="not deprecated">
  38641. <doc>
  38642. <![CDATA[This method has the standard behavior when this object has been
  38643. created using the standard constructors. Otherwise, it uses
  38644. "currentToken" and "expectedTokenSequences" to generate a parse
  38645. error message and returns it. If this object has been created
  38646. due to a parse error, and you do not catch it (it gets thrown
  38647. from the parser), then this method is called during the printing
  38648. of the final stack trace, and hence the correct error message
  38649. gets displayed.]]>
  38650. </doc>
  38651. </method>
  38652. <method name="add_escapes" return="java.lang.String"
  38653. abstract="false" native="false" synchronized="false"
  38654. static="false" final="false" visibility="protected"
  38655. deprecated="not deprecated">
  38656. <param name="str" type="java.lang.String"/>
  38657. <doc>
  38658. <![CDATA[Used to convert raw characters to their escaped version
  38659. when these raw version cannot be used as part of an ASCII
  38660. string literal.]]>
  38661. </doc>
  38662. </method>
  38663. <field name="specialConstructor" type="boolean"
  38664. transient="false" volatile="false"
  38665. static="false" final="false" visibility="protected"
  38666. deprecated="not deprecated">
  38667. <doc>
  38668. <![CDATA[This variable determines which constructor was used to create
  38669. this object and thereby affects the semantics of the
  38670. "getMessage" method (see below).]]>
  38671. </doc>
  38672. </field>
  38673. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  38674. transient="false" volatile="false"
  38675. static="false" final="false" visibility="public"
  38676. deprecated="not deprecated">
  38677. <doc>
  38678. <![CDATA[This is the last token that has been consumed successfully. If
  38679. this object has been created due to a parse error, the token
  38680. followng this token will (therefore) be the first error token.]]>
  38681. </doc>
  38682. </field>
  38683. <field name="expectedTokenSequences" type="int[][]"
  38684. transient="false" volatile="false"
  38685. static="false" final="false" visibility="public"
  38686. deprecated="not deprecated">
  38687. <doc>
  38688. <![CDATA[Each entry in this array is an array of integers. Each array
  38689. of integers represents a sequence of tokens (by their ordinal
  38690. values) that is expected at this point of the parse.]]>
  38691. </doc>
  38692. </field>
  38693. <field name="tokenImage" type="java.lang.String[]"
  38694. transient="false" volatile="false"
  38695. static="false" final="false" visibility="public"
  38696. deprecated="not deprecated">
  38697. <doc>
  38698. <![CDATA[This is a reference to the "tokenImage" array of the generated
  38699. parser within which the parse error occurred. This array is
  38700. defined in the generated ...Constants interface.]]>
  38701. </doc>
  38702. </field>
  38703. <field name="eol" type="java.lang.String"
  38704. transient="false" volatile="false"
  38705. static="false" final="false" visibility="protected"
  38706. deprecated="not deprecated">
  38707. <doc>
  38708. <![CDATA[The end of line string for this machine.]]>
  38709. </doc>
  38710. </field>
  38711. <doc>
  38712. <![CDATA[This exception is thrown when parse errors are encountered.
  38713. You can explicitly create objects of this exception type by
  38714. calling the method generateParseException in the generated
  38715. parser.
  38716. You can modify this class to customize your error reporting
  38717. mechanisms so long as you retain the public fields.]]>
  38718. </doc>
  38719. </class>
  38720. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  38721. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  38722. <class name="Rcc" extends="java.lang.Object"
  38723. abstract="false"
  38724. static="false" final="false" visibility="public"
  38725. deprecated="not deprecated">
  38726. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  38727. <constructor name="Rcc" type="java.io.InputStream"
  38728. static="false" final="false" visibility="public"
  38729. deprecated="not deprecated">
  38730. </constructor>
  38731. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  38732. static="false" final="false" visibility="public"
  38733. deprecated="not deprecated">
  38734. </constructor>
  38735. <constructor name="Rcc" type="java.io.Reader"
  38736. static="false" final="false" visibility="public"
  38737. deprecated="not deprecated">
  38738. </constructor>
  38739. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38740. static="false" final="false" visibility="public"
  38741. deprecated="not deprecated">
  38742. </constructor>
  38743. <method name="main"
  38744. abstract="false" native="false" synchronized="false"
  38745. static="true" final="false" visibility="public"
  38746. deprecated="not deprecated">
  38747. <param name="args" type="java.lang.String[]"/>
  38748. </method>
  38749. <method name="usage"
  38750. abstract="false" native="false" synchronized="false"
  38751. static="true" final="false" visibility="public"
  38752. deprecated="not deprecated">
  38753. </method>
  38754. <method name="driver" return="int"
  38755. abstract="false" native="false" synchronized="false"
  38756. static="true" final="false" visibility="public"
  38757. deprecated="not deprecated">
  38758. <param name="args" type="java.lang.String[]"/>
  38759. </method>
  38760. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  38761. abstract="false" native="false" synchronized="false"
  38762. static="false" final="true" visibility="public"
  38763. deprecated="not deprecated">
  38764. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38765. </method>
  38766. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  38767. abstract="false" native="false" synchronized="false"
  38768. static="false" final="true" visibility="public"
  38769. deprecated="not deprecated">
  38770. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38771. </method>
  38772. <method name="Module" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  38773. abstract="false" native="false" synchronized="false"
  38774. static="false" final="true" visibility="public"
  38775. deprecated="not deprecated">
  38776. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38777. </method>
  38778. <method name="ModuleName" return="java.lang.String"
  38779. abstract="false" native="false" synchronized="false"
  38780. static="false" final="true" visibility="public"
  38781. deprecated="not deprecated">
  38782. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38783. </method>
  38784. <method name="RecordList" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  38785. abstract="false" native="false" synchronized="false"
  38786. static="false" final="true" visibility="public"
  38787. deprecated="not deprecated">
  38788. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38789. </method>
  38790. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  38791. abstract="false" native="false" synchronized="false"
  38792. static="false" final="true" visibility="public"
  38793. deprecated="not deprecated">
  38794. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38795. </method>
  38796. <method name="Field" return="org.apache.hadoop.record.compiler.JField&lt;org.apache.hadoop.record.compiler.JType&gt;"
  38797. abstract="false" native="false" synchronized="false"
  38798. static="false" final="true" visibility="public"
  38799. deprecated="not deprecated">
  38800. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38801. </method>
  38802. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  38803. abstract="false" native="false" synchronized="false"
  38804. static="false" final="true" visibility="public"
  38805. deprecated="not deprecated">
  38806. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38807. </method>
  38808. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  38809. abstract="false" native="false" synchronized="false"
  38810. static="false" final="true" visibility="public"
  38811. deprecated="not deprecated">
  38812. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38813. </method>
  38814. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  38815. abstract="false" native="false" synchronized="false"
  38816. static="false" final="true" visibility="public"
  38817. deprecated="not deprecated">
  38818. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38819. </method>
  38820. <method name="ReInit"
  38821. abstract="false" native="false" synchronized="false"
  38822. static="false" final="false" visibility="public"
  38823. deprecated="not deprecated">
  38824. <param name="stream" type="java.io.InputStream"/>
  38825. </method>
  38826. <method name="ReInit"
  38827. abstract="false" native="false" synchronized="false"
  38828. static="false" final="false" visibility="public"
  38829. deprecated="not deprecated">
  38830. <param name="stream" type="java.io.InputStream"/>
  38831. <param name="encoding" type="java.lang.String"/>
  38832. </method>
  38833. <method name="ReInit"
  38834. abstract="false" native="false" synchronized="false"
  38835. static="false" final="false" visibility="public"
  38836. deprecated="not deprecated">
  38837. <param name="stream" type="java.io.Reader"/>
  38838. </method>
  38839. <method name="ReInit"
  38840. abstract="false" native="false" synchronized="false"
  38841. static="false" final="false" visibility="public"
  38842. deprecated="not deprecated">
  38843. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  38844. </method>
  38845. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38846. abstract="false" native="false" synchronized="false"
  38847. static="false" final="true" visibility="public"
  38848. deprecated="not deprecated">
  38849. </method>
  38850. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38851. abstract="false" native="false" synchronized="false"
  38852. static="false" final="true" visibility="public"
  38853. deprecated="not deprecated">
  38854. <param name="index" type="int"/>
  38855. </method>
  38856. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  38857. abstract="false" native="false" synchronized="false"
  38858. static="false" final="false" visibility="public"
  38859. deprecated="not deprecated">
  38860. </method>
  38861. <method name="enable_tracing"
  38862. abstract="false" native="false" synchronized="false"
  38863. static="false" final="true" visibility="public"
  38864. deprecated="not deprecated">
  38865. </method>
  38866. <method name="disable_tracing"
  38867. abstract="false" native="false" synchronized="false"
  38868. static="false" final="true" visibility="public"
  38869. deprecated="not deprecated">
  38870. </method>
  38871. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38872. transient="false" volatile="false"
  38873. static="false" final="false" visibility="public"
  38874. deprecated="not deprecated">
  38875. </field>
  38876. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  38877. transient="false" volatile="false"
  38878. static="false" final="false" visibility="public"
  38879. deprecated="not deprecated">
  38880. </field>
  38881. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  38882. transient="false" volatile="false"
  38883. static="false" final="false" visibility="public"
  38884. deprecated="not deprecated">
  38885. </field>
  38886. </class>
  38887. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  38888. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  38889. <interface name="RccConstants" abstract="true"
  38890. static="false" final="false" visibility="public"
  38891. deprecated="not deprecated">
  38892. <field name="EOF" type="int"
  38893. transient="false" volatile="false"
  38894. static="true" final="true" visibility="public"
  38895. deprecated="not deprecated">
  38896. </field>
  38897. <field name="MODULE_TKN" type="int"
  38898. transient="false" volatile="false"
  38899. static="true" final="true" visibility="public"
  38900. deprecated="not deprecated">
  38901. </field>
  38902. <field name="RECORD_TKN" type="int"
  38903. transient="false" volatile="false"
  38904. static="true" final="true" visibility="public"
  38905. deprecated="not deprecated">
  38906. </field>
  38907. <field name="INCLUDE_TKN" type="int"
  38908. transient="false" volatile="false"
  38909. static="true" final="true" visibility="public"
  38910. deprecated="not deprecated">
  38911. </field>
  38912. <field name="BYTE_TKN" type="int"
  38913. transient="false" volatile="false"
  38914. static="true" final="true" visibility="public"
  38915. deprecated="not deprecated">
  38916. </field>
  38917. <field name="BOOLEAN_TKN" type="int"
  38918. transient="false" volatile="false"
  38919. static="true" final="true" visibility="public"
  38920. deprecated="not deprecated">
  38921. </field>
  38922. <field name="INT_TKN" type="int"
  38923. transient="false" volatile="false"
  38924. static="true" final="true" visibility="public"
  38925. deprecated="not deprecated">
  38926. </field>
  38927. <field name="LONG_TKN" type="int"
  38928. transient="false" volatile="false"
  38929. static="true" final="true" visibility="public"
  38930. deprecated="not deprecated">
  38931. </field>
  38932. <field name="FLOAT_TKN" type="int"
  38933. transient="false" volatile="false"
  38934. static="true" final="true" visibility="public"
  38935. deprecated="not deprecated">
  38936. </field>
  38937. <field name="DOUBLE_TKN" type="int"
  38938. transient="false" volatile="false"
  38939. static="true" final="true" visibility="public"
  38940. deprecated="not deprecated">
  38941. </field>
  38942. <field name="USTRING_TKN" type="int"
  38943. transient="false" volatile="false"
  38944. static="true" final="true" visibility="public"
  38945. deprecated="not deprecated">
  38946. </field>
  38947. <field name="BUFFER_TKN" type="int"
  38948. transient="false" volatile="false"
  38949. static="true" final="true" visibility="public"
  38950. deprecated="not deprecated">
  38951. </field>
  38952. <field name="VECTOR_TKN" type="int"
  38953. transient="false" volatile="false"
  38954. static="true" final="true" visibility="public"
  38955. deprecated="not deprecated">
  38956. </field>
  38957. <field name="MAP_TKN" type="int"
  38958. transient="false" volatile="false"
  38959. static="true" final="true" visibility="public"
  38960. deprecated="not deprecated">
  38961. </field>
  38962. <field name="LBRACE_TKN" type="int"
  38963. transient="false" volatile="false"
  38964. static="true" final="true" visibility="public"
  38965. deprecated="not deprecated">
  38966. </field>
  38967. <field name="RBRACE_TKN" type="int"
  38968. transient="false" volatile="false"
  38969. static="true" final="true" visibility="public"
  38970. deprecated="not deprecated">
  38971. </field>
  38972. <field name="LT_TKN" type="int"
  38973. transient="false" volatile="false"
  38974. static="true" final="true" visibility="public"
  38975. deprecated="not deprecated">
  38976. </field>
  38977. <field name="GT_TKN" type="int"
  38978. transient="false" volatile="false"
  38979. static="true" final="true" visibility="public"
  38980. deprecated="not deprecated">
  38981. </field>
  38982. <field name="SEMICOLON_TKN" type="int"
  38983. transient="false" volatile="false"
  38984. static="true" final="true" visibility="public"
  38985. deprecated="not deprecated">
  38986. </field>
  38987. <field name="COMMA_TKN" type="int"
  38988. transient="false" volatile="false"
  38989. static="true" final="true" visibility="public"
  38990. deprecated="not deprecated">
  38991. </field>
  38992. <field name="DOT_TKN" type="int"
  38993. transient="false" volatile="false"
  38994. static="true" final="true" visibility="public"
  38995. deprecated="not deprecated">
  38996. </field>
  38997. <field name="CSTRING_TKN" type="int"
  38998. transient="false" volatile="false"
  38999. static="true" final="true" visibility="public"
  39000. deprecated="not deprecated">
  39001. </field>
  39002. <field name="IDENT_TKN" type="int"
  39003. transient="false" volatile="false"
  39004. static="true" final="true" visibility="public"
  39005. deprecated="not deprecated">
  39006. </field>
  39007. <field name="DEFAULT" type="int"
  39008. transient="false" volatile="false"
  39009. static="true" final="true" visibility="public"
  39010. deprecated="not deprecated">
  39011. </field>
  39012. <field name="WithinOneLineComment" type="int"
  39013. transient="false" volatile="false"
  39014. static="true" final="true" visibility="public"
  39015. deprecated="not deprecated">
  39016. </field>
  39017. <field name="WithinMultiLineComment" type="int"
  39018. transient="false" volatile="false"
  39019. static="true" final="true" visibility="public"
  39020. deprecated="not deprecated">
  39021. </field>
  39022. <field name="tokenImage" type="java.lang.String[]"
  39023. transient="false" volatile="false"
  39024. static="true" final="true" visibility="public"
  39025. deprecated="not deprecated">
  39026. </field>
  39027. </interface>
  39028. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  39029. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  39030. <class name="RccTokenManager" extends="java.lang.Object"
  39031. abstract="false"
  39032. static="false" final="false" visibility="public"
  39033. deprecated="not deprecated">
  39034. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  39035. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  39036. static="false" final="false" visibility="public"
  39037. deprecated="not deprecated">
  39038. </constructor>
  39039. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  39040. static="false" final="false" visibility="public"
  39041. deprecated="not deprecated">
  39042. </constructor>
  39043. <method name="setDebugStream"
  39044. abstract="false" native="false" synchronized="false"
  39045. static="false" final="false" visibility="public"
  39046. deprecated="not deprecated">
  39047. <param name="ds" type="java.io.PrintStream"/>
  39048. </method>
  39049. <method name="ReInit"
  39050. abstract="false" native="false" synchronized="false"
  39051. static="false" final="false" visibility="public"
  39052. deprecated="not deprecated">
  39053. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  39054. </method>
  39055. <method name="ReInit"
  39056. abstract="false" native="false" synchronized="false"
  39057. static="false" final="false" visibility="public"
  39058. deprecated="not deprecated">
  39059. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  39060. <param name="lexState" type="int"/>
  39061. </method>
  39062. <method name="SwitchTo"
  39063. abstract="false" native="false" synchronized="false"
  39064. static="false" final="false" visibility="public"
  39065. deprecated="not deprecated">
  39066. <param name="lexState" type="int"/>
  39067. </method>
  39068. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  39069. abstract="false" native="false" synchronized="false"
  39070. static="false" final="false" visibility="protected"
  39071. deprecated="not deprecated">
  39072. </method>
  39073. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  39074. abstract="false" native="false" synchronized="false"
  39075. static="false" final="false" visibility="public"
  39076. deprecated="not deprecated">
  39077. </method>
  39078. <field name="debugStream" type="java.io.PrintStream"
  39079. transient="false" volatile="false"
  39080. static="false" final="false" visibility="public"
  39081. deprecated="not deprecated">
  39082. </field>
  39083. <field name="jjstrLiteralImages" type="java.lang.String[]"
  39084. transient="false" volatile="false"
  39085. static="true" final="true" visibility="public"
  39086. deprecated="not deprecated">
  39087. </field>
  39088. <field name="lexStateNames" type="java.lang.String[]"
  39089. transient="false" volatile="false"
  39090. static="true" final="true" visibility="public"
  39091. deprecated="not deprecated">
  39092. </field>
  39093. <field name="jjnewLexState" type="int[]"
  39094. transient="false" volatile="false"
  39095. static="true" final="true" visibility="public"
  39096. deprecated="not deprecated">
  39097. </field>
  39098. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  39099. transient="false" volatile="false"
  39100. static="false" final="false" visibility="protected"
  39101. deprecated="not deprecated">
  39102. </field>
  39103. <field name="curChar" type="char"
  39104. transient="false" volatile="false"
  39105. static="false" final="false" visibility="protected"
  39106. deprecated="not deprecated">
  39107. </field>
  39108. </class>
  39109. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  39110. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  39111. <class name="SimpleCharStream" extends="java.lang.Object"
  39112. abstract="false"
  39113. static="false" final="false" visibility="public"
  39114. deprecated="not deprecated">
  39115. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  39116. static="false" final="false" visibility="public"
  39117. deprecated="not deprecated">
  39118. </constructor>
  39119. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  39120. static="false" final="false" visibility="public"
  39121. deprecated="not deprecated">
  39122. </constructor>
  39123. <constructor name="SimpleCharStream" type="java.io.Reader"
  39124. static="false" final="false" visibility="public"
  39125. deprecated="not deprecated">
  39126. </constructor>
  39127. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  39128. static="false" final="false" visibility="public"
  39129. deprecated="not deprecated">
  39130. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39131. </constructor>
  39132. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  39133. static="false" final="false" visibility="public"
  39134. deprecated="not deprecated">
  39135. </constructor>
  39136. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  39137. static="false" final="false" visibility="public"
  39138. deprecated="not deprecated">
  39139. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39140. </constructor>
  39141. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  39142. static="false" final="false" visibility="public"
  39143. deprecated="not deprecated">
  39144. </constructor>
  39145. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  39146. static="false" final="false" visibility="public"
  39147. deprecated="not deprecated">
  39148. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39149. </constructor>
  39150. <constructor name="SimpleCharStream" type="java.io.InputStream"
  39151. static="false" final="false" visibility="public"
  39152. deprecated="not deprecated">
  39153. </constructor>
  39154. <method name="setTabSize"
  39155. abstract="false" native="false" synchronized="false"
  39156. static="false" final="false" visibility="protected"
  39157. deprecated="not deprecated">
  39158. <param name="i" type="int"/>
  39159. </method>
  39160. <method name="getTabSize" return="int"
  39161. abstract="false" native="false" synchronized="false"
  39162. static="false" final="false" visibility="protected"
  39163. deprecated="not deprecated">
  39164. <param name="i" type="int"/>
  39165. </method>
  39166. <method name="ExpandBuff"
  39167. abstract="false" native="false" synchronized="false"
  39168. static="false" final="false" visibility="protected"
  39169. deprecated="not deprecated">
  39170. <param name="wrapAround" type="boolean"/>
  39171. </method>
  39172. <method name="FillBuff"
  39173. abstract="false" native="false" synchronized="false"
  39174. static="false" final="false" visibility="protected"
  39175. deprecated="not deprecated">
  39176. <exception name="IOException" type="java.io.IOException"/>
  39177. </method>
  39178. <method name="BeginToken" return="char"
  39179. abstract="false" native="false" synchronized="false"
  39180. static="false" final="false" visibility="public"
  39181. deprecated="not deprecated">
  39182. <exception name="IOException" type="java.io.IOException"/>
  39183. </method>
  39184. <method name="UpdateLineColumn"
  39185. abstract="false" native="false" synchronized="false"
  39186. static="false" final="false" visibility="protected"
  39187. deprecated="not deprecated">
  39188. <param name="c" type="char"/>
  39189. </method>
  39190. <method name="readChar" return="char"
  39191. abstract="false" native="false" synchronized="false"
  39192. static="false" final="false" visibility="public"
  39193. deprecated="not deprecated">
  39194. <exception name="IOException" type="java.io.IOException"/>
  39195. </method>
  39196. <method name="getEndColumn" return="int"
  39197. abstract="false" native="false" synchronized="false"
  39198. static="false" final="false" visibility="public"
  39199. deprecated="not deprecated">
  39200. </method>
  39201. <method name="getEndLine" return="int"
  39202. abstract="false" native="false" synchronized="false"
  39203. static="false" final="false" visibility="public"
  39204. deprecated="not deprecated">
  39205. </method>
  39206. <method name="getBeginColumn" return="int"
  39207. abstract="false" native="false" synchronized="false"
  39208. static="false" final="false" visibility="public"
  39209. deprecated="not deprecated">
  39210. </method>
  39211. <method name="getBeginLine" return="int"
  39212. abstract="false" native="false" synchronized="false"
  39213. static="false" final="false" visibility="public"
  39214. deprecated="not deprecated">
  39215. </method>
  39216. <method name="backup"
  39217. abstract="false" native="false" synchronized="false"
  39218. static="false" final="false" visibility="public"
  39219. deprecated="not deprecated">
  39220. <param name="amount" type="int"/>
  39221. </method>
  39222. <method name="ReInit"
  39223. abstract="false" native="false" synchronized="false"
  39224. static="false" final="false" visibility="public"
  39225. deprecated="not deprecated">
  39226. <param name="dstream" type="java.io.Reader"/>
  39227. <param name="startline" type="int"/>
  39228. <param name="startcolumn" type="int"/>
  39229. <param name="buffersize" type="int"/>
  39230. </method>
  39231. <method name="ReInit"
  39232. abstract="false" native="false" synchronized="false"
  39233. static="false" final="false" visibility="public"
  39234. deprecated="not deprecated">
  39235. <param name="dstream" type="java.io.Reader"/>
  39236. <param name="startline" type="int"/>
  39237. <param name="startcolumn" type="int"/>
  39238. </method>
  39239. <method name="ReInit"
  39240. abstract="false" native="false" synchronized="false"
  39241. static="false" final="false" visibility="public"
  39242. deprecated="not deprecated">
  39243. <param name="dstream" type="java.io.Reader"/>
  39244. </method>
  39245. <method name="ReInit"
  39246. abstract="false" native="false" synchronized="false"
  39247. static="false" final="false" visibility="public"
  39248. deprecated="not deprecated">
  39249. <param name="dstream" type="java.io.InputStream"/>
  39250. <param name="encoding" type="java.lang.String"/>
  39251. <param name="startline" type="int"/>
  39252. <param name="startcolumn" type="int"/>
  39253. <param name="buffersize" type="int"/>
  39254. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39255. </method>
  39256. <method name="ReInit"
  39257. abstract="false" native="false" synchronized="false"
  39258. static="false" final="false" visibility="public"
  39259. deprecated="not deprecated">
  39260. <param name="dstream" type="java.io.InputStream"/>
  39261. <param name="startline" type="int"/>
  39262. <param name="startcolumn" type="int"/>
  39263. <param name="buffersize" type="int"/>
  39264. </method>
  39265. <method name="ReInit"
  39266. abstract="false" native="false" synchronized="false"
  39267. static="false" final="false" visibility="public"
  39268. deprecated="not deprecated">
  39269. <param name="dstream" type="java.io.InputStream"/>
  39270. <param name="encoding" type="java.lang.String"/>
  39271. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39272. </method>
  39273. <method name="ReInit"
  39274. abstract="false" native="false" synchronized="false"
  39275. static="false" final="false" visibility="public"
  39276. deprecated="not deprecated">
  39277. <param name="dstream" type="java.io.InputStream"/>
  39278. </method>
  39279. <method name="ReInit"
  39280. abstract="false" native="false" synchronized="false"
  39281. static="false" final="false" visibility="public"
  39282. deprecated="not deprecated">
  39283. <param name="dstream" type="java.io.InputStream"/>
  39284. <param name="encoding" type="java.lang.String"/>
  39285. <param name="startline" type="int"/>
  39286. <param name="startcolumn" type="int"/>
  39287. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39288. </method>
  39289. <method name="ReInit"
  39290. abstract="false" native="false" synchronized="false"
  39291. static="false" final="false" visibility="public"
  39292. deprecated="not deprecated">
  39293. <param name="dstream" type="java.io.InputStream"/>
  39294. <param name="startline" type="int"/>
  39295. <param name="startcolumn" type="int"/>
  39296. </method>
  39297. <method name="GetImage" return="java.lang.String"
  39298. abstract="false" native="false" synchronized="false"
  39299. static="false" final="false" visibility="public"
  39300. deprecated="not deprecated">
  39301. </method>
  39302. <method name="GetSuffix" return="char[]"
  39303. abstract="false" native="false" synchronized="false"
  39304. static="false" final="false" visibility="public"
  39305. deprecated="not deprecated">
  39306. <param name="len" type="int"/>
  39307. </method>
  39308. <method name="Done"
  39309. abstract="false" native="false" synchronized="false"
  39310. static="false" final="false" visibility="public"
  39311. deprecated="not deprecated">
  39312. </method>
  39313. <method name="adjustBeginLineColumn"
  39314. abstract="false" native="false" synchronized="false"
  39315. static="false" final="false" visibility="public"
  39316. deprecated="not deprecated">
  39317. <param name="newLine" type="int"/>
  39318. <param name="newCol" type="int"/>
  39319. <doc>
  39320. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  39321. </doc>
  39322. </method>
  39323. <field name="staticFlag" type="boolean"
  39324. transient="false" volatile="false"
  39325. static="true" final="true" visibility="public"
  39326. deprecated="not deprecated">
  39327. </field>
  39328. <field name="bufpos" type="int"
  39329. transient="false" volatile="false"
  39330. static="false" final="false" visibility="public"
  39331. deprecated="not deprecated">
  39332. </field>
  39333. <field name="bufline" type="int[]"
  39334. transient="false" volatile="false"
  39335. static="false" final="false" visibility="protected"
  39336. deprecated="not deprecated">
  39337. </field>
  39338. <field name="bufcolumn" type="int[]"
  39339. transient="false" volatile="false"
  39340. static="false" final="false" visibility="protected"
  39341. deprecated="not deprecated">
  39342. </field>
  39343. <field name="column" type="int"
  39344. transient="false" volatile="false"
  39345. static="false" final="false" visibility="protected"
  39346. deprecated="not deprecated">
  39347. </field>
  39348. <field name="line" type="int"
  39349. transient="false" volatile="false"
  39350. static="false" final="false" visibility="protected"
  39351. deprecated="not deprecated">
  39352. </field>
  39353. <field name="prevCharIsCR" type="boolean"
  39354. transient="false" volatile="false"
  39355. static="false" final="false" visibility="protected"
  39356. deprecated="not deprecated">
  39357. </field>
  39358. <field name="prevCharIsLF" type="boolean"
  39359. transient="false" volatile="false"
  39360. static="false" final="false" visibility="protected"
  39361. deprecated="not deprecated">
  39362. </field>
  39363. <field name="inputStream" type="java.io.Reader"
  39364. transient="false" volatile="false"
  39365. static="false" final="false" visibility="protected"
  39366. deprecated="not deprecated">
  39367. </field>
  39368. <field name="buffer" type="char[]"
  39369. transient="false" volatile="false"
  39370. static="false" final="false" visibility="protected"
  39371. deprecated="not deprecated">
  39372. </field>
  39373. <field name="maxNextCharInd" type="int"
  39374. transient="false" volatile="false"
  39375. static="false" final="false" visibility="protected"
  39376. deprecated="not deprecated">
  39377. </field>
  39378. <field name="inBuf" type="int"
  39379. transient="false" volatile="false"
  39380. static="false" final="false" visibility="protected"
  39381. deprecated="not deprecated">
  39382. </field>
  39383. <field name="tabSize" type="int"
  39384. transient="false" volatile="false"
  39385. static="false" final="false" visibility="protected"
  39386. deprecated="not deprecated">
  39387. </field>
  39388. <doc>
  39389. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  39390. contain only ASCII characters (without unicode processing).]]>
  39391. </doc>
  39392. </class>
  39393. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  39394. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  39395. <class name="Token" extends="java.lang.Object"
  39396. abstract="false"
  39397. static="false" final="false" visibility="public"
  39398. deprecated="not deprecated">
  39399. <constructor name="Token"
  39400. static="false" final="false" visibility="public"
  39401. deprecated="not deprecated">
  39402. </constructor>
  39403. <method name="toString" return="java.lang.String"
  39404. abstract="false" native="false" synchronized="false"
  39405. static="false" final="false" visibility="public"
  39406. deprecated="not deprecated">
  39407. <doc>
  39408. <![CDATA[Returns the image.]]>
  39409. </doc>
  39410. </method>
  39411. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  39412. abstract="false" native="false" synchronized="false"
  39413. static="true" final="true" visibility="public"
  39414. deprecated="not deprecated">
  39415. <param name="ofKind" type="int"/>
  39416. <doc>
  39417. <![CDATA[Returns a new Token object, by default. However, if you want, you
  39418. can create and return subclass objects based on the value of ofKind.
  39419. Simply add the cases to the switch for all those special cases.
  39420. For example, if you have a subclass of Token called IDToken that
  39421. you want to create if ofKind is ID, simlpy add something like :
  39422. case MyParserConstants.ID : return new IDToken();
  39423. to the following switch statement. Then you can cast matchedToken
  39424. variable to the appropriate type and use it in your lexical actions.]]>
  39425. </doc>
  39426. </method>
  39427. <field name="kind" type="int"
  39428. transient="false" volatile="false"
  39429. static="false" final="false" visibility="public"
  39430. deprecated="not deprecated">
  39431. <doc>
  39432. <![CDATA[An integer that describes the kind of this token. This numbering
  39433. system is determined by JavaCCParser, and a table of these numbers is
  39434. stored in the file ...Constants.java.]]>
  39435. </doc>
  39436. </field>
  39437. <field name="beginLine" type="int"
  39438. transient="false" volatile="false"
  39439. static="false" final="false" visibility="public"
  39440. deprecated="not deprecated">
  39441. <doc>
  39442. <![CDATA[beginLine and beginColumn describe the position of the first character
  39443. of this token; endLine and endColumn describe the position of the
  39444. last character of this token.]]>
  39445. </doc>
  39446. </field>
  39447. <field name="beginColumn" type="int"
  39448. transient="false" volatile="false"
  39449. static="false" final="false" visibility="public"
  39450. deprecated="not deprecated">
  39451. <doc>
  39452. <![CDATA[beginLine and beginColumn describe the position of the first character
  39453. of this token; endLine and endColumn describe the position of the
  39454. last character of this token.]]>
  39455. </doc>
  39456. </field>
  39457. <field name="endLine" type="int"
  39458. transient="false" volatile="false"
  39459. static="false" final="false" visibility="public"
  39460. deprecated="not deprecated">
  39461. <doc>
  39462. <![CDATA[beginLine and beginColumn describe the position of the first character
  39463. of this token; endLine and endColumn describe the position of the
  39464. last character of this token.]]>
  39465. </doc>
  39466. </field>
  39467. <field name="endColumn" type="int"
  39468. transient="false" volatile="false"
  39469. static="false" final="false" visibility="public"
  39470. deprecated="not deprecated">
  39471. <doc>
  39472. <![CDATA[beginLine and beginColumn describe the position of the first character
  39473. of this token; endLine and endColumn describe the position of the
  39474. last character of this token.]]>
  39475. </doc>
  39476. </field>
  39477. <field name="image" type="java.lang.String"
  39478. transient="false" volatile="false"
  39479. static="false" final="false" visibility="public"
  39480. deprecated="not deprecated">
  39481. <doc>
  39482. <![CDATA[The string image of the token.]]>
  39483. </doc>
  39484. </field>
  39485. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  39486. transient="false" volatile="false"
  39487. static="false" final="false" visibility="public"
  39488. deprecated="not deprecated">
  39489. <doc>
  39490. <![CDATA[A reference to the next regular (non-special) token from the input
  39491. stream. If this is the last token from the input stream, or if the
  39492. token manager has not read tokens beyond this one, this field is
  39493. set to null. This is true only if this token is also a regular
  39494. token. Otherwise, see below for a description of the contents of
  39495. this field.]]>
  39496. </doc>
  39497. </field>
  39498. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  39499. transient="false" volatile="false"
  39500. static="false" final="false" visibility="public"
  39501. deprecated="not deprecated">
  39502. <doc>
  39503. <![CDATA[This field is used to access special tokens that occur prior to this
  39504. token, but after the immediately preceding regular (non-special) token.
  39505. If there are no such special tokens, this field is set to null.
  39506. When there are more than one such special token, this field refers
  39507. to the last of these special tokens, which in turn refers to the next
  39508. previous special token through its specialToken field, and so on
  39509. until the first special token (whose specialToken field is null).
  39510. The next fields of special tokens refer to other special tokens that
  39511. immediately follow it (without an intervening regular token). If there
  39512. is no such token, this field is null.]]>
  39513. </doc>
  39514. </field>
  39515. <doc>
  39516. <![CDATA[Describes the input token stream.]]>
  39517. </doc>
  39518. </class>
  39519. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  39520. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39521. <class name="TokenMgrError" extends="java.lang.Error"
  39522. abstract="false"
  39523. static="false" final="false" visibility="public"
  39524. deprecated="not deprecated">
  39525. <constructor name="TokenMgrError"
  39526. static="false" final="false" visibility="public"
  39527. deprecated="not deprecated">
  39528. </constructor>
  39529. <constructor name="TokenMgrError" type="java.lang.String, int"
  39530. static="false" final="false" visibility="public"
  39531. deprecated="not deprecated">
  39532. </constructor>
  39533. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  39534. static="false" final="false" visibility="public"
  39535. deprecated="not deprecated">
  39536. </constructor>
  39537. <method name="addEscapes" return="java.lang.String"
  39538. abstract="false" native="false" synchronized="false"
  39539. static="true" final="true" visibility="protected"
  39540. deprecated="not deprecated">
  39541. <param name="str" type="java.lang.String"/>
  39542. <doc>
  39543. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  39544. equivalents in the given string]]>
  39545. </doc>
  39546. </method>
  39547. <method name="LexicalError" return="java.lang.String"
  39548. abstract="false" native="false" synchronized="false"
  39549. static="true" final="false" visibility="protected"
  39550. deprecated="not deprecated">
  39551. <param name="EOFSeen" type="boolean"/>
  39552. <param name="lexState" type="int"/>
  39553. <param name="errorLine" type="int"/>
  39554. <param name="errorColumn" type="int"/>
  39555. <param name="errorAfter" type="java.lang.String"/>
  39556. <param name="curChar" type="char"/>
  39557. <doc>
  39558. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  39559. token manager to indicate a lexical error.
  39560. Parameters :
  39561. EOFSeen : indicates if EOF caused the lexicl error
  39562. curLexState : lexical state in which this error occured
  39563. errorLine : line number when the error occured
  39564. errorColumn : column number when the error occured
  39565. errorAfter : prefix that was seen before this error occured
  39566. curchar : the offending character
  39567. Note: You can customize the lexical error message by modifying this method.]]>
  39568. </doc>
  39569. </method>
  39570. <method name="getMessage" return="java.lang.String"
  39571. abstract="false" native="false" synchronized="false"
  39572. static="false" final="false" visibility="public"
  39573. deprecated="not deprecated">
  39574. <doc>
  39575. <![CDATA[You can also modify the body of this method to customize your error messages.
  39576. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  39577. of end-users concern, so you can return something like :
  39578. "Internal Error : Please file a bug report .... "
  39579. from this method for such cases in the release version of your parser.]]>
  39580. </doc>
  39581. </method>
  39582. </class>
  39583. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39584. </package>
  39585. <package name="org.apache.hadoop.record.meta">
  39586. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39587. <class name="FieldTypeInfo" extends="java.lang.Object"
  39588. abstract="false"
  39589. static="false" final="false" visibility="public"
  39590. deprecated="not deprecated">
  39591. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39592. abstract="false" native="false" synchronized="false"
  39593. static="false" final="false" visibility="public"
  39594. deprecated="not deprecated">
  39595. <doc>
  39596. <![CDATA[get the field's TypeID object]]>
  39597. </doc>
  39598. </method>
  39599. <method name="getFieldID" return="java.lang.String"
  39600. abstract="false" native="false" synchronized="false"
  39601. static="false" final="false" visibility="public"
  39602. deprecated="not deprecated">
  39603. <doc>
  39604. <![CDATA[get the field's id (name)]]>
  39605. </doc>
  39606. </method>
  39607. <method name="equals" return="boolean"
  39608. abstract="false" native="false" synchronized="false"
  39609. static="false" final="false" visibility="public"
  39610. deprecated="not deprecated">
  39611. <param name="o" type="java.lang.Object"/>
  39612. <doc>
  39613. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  39614. </doc>
  39615. </method>
  39616. <method name="hashCode" return="int"
  39617. abstract="false" native="false" synchronized="false"
  39618. static="false" final="false" visibility="public"
  39619. deprecated="not deprecated">
  39620. <doc>
  39621. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39622. be used as a hashmap key]]>
  39623. </doc>
  39624. </method>
  39625. <method name="equals" return="boolean"
  39626. abstract="false" native="false" synchronized="false"
  39627. static="false" final="false" visibility="public"
  39628. deprecated="not deprecated">
  39629. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  39630. </method>
  39631. <doc>
  39632. <![CDATA[Represents a type information for a field, which is made up of its
  39633. ID (name) and its type (a TypeID object).]]>
  39634. </doc>
  39635. </class>
  39636. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39637. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  39638. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39639. abstract="false"
  39640. static="false" final="false" visibility="public"
  39641. deprecated="not deprecated">
  39642. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  39643. static="false" final="false" visibility="public"
  39644. deprecated="not deprecated">
  39645. </constructor>
  39646. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39647. abstract="false" native="false" synchronized="false"
  39648. static="false" final="false" visibility="public"
  39649. deprecated="not deprecated">
  39650. <doc>
  39651. <![CDATA[get the TypeID of the map's key element]]>
  39652. </doc>
  39653. </method>
  39654. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39655. abstract="false" native="false" synchronized="false"
  39656. static="false" final="false" visibility="public"
  39657. deprecated="not deprecated">
  39658. <doc>
  39659. <![CDATA[get the TypeID of the map's value element]]>
  39660. </doc>
  39661. </method>
  39662. <method name="equals" return="boolean"
  39663. abstract="false" native="false" synchronized="false"
  39664. static="false" final="false" visibility="public"
  39665. deprecated="not deprecated">
  39666. <param name="o" type="java.lang.Object"/>
  39667. <doc>
  39668. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  39669. same type]]>
  39670. </doc>
  39671. </method>
  39672. <method name="hashCode" return="int"
  39673. abstract="false" native="false" synchronized="false"
  39674. static="false" final="false" visibility="public"
  39675. deprecated="not deprecated">
  39676. <doc>
  39677. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39678. be used as a hashmap key]]>
  39679. </doc>
  39680. </method>
  39681. <doc>
  39682. <![CDATA[Represents typeID for a Map]]>
  39683. </doc>
  39684. </class>
  39685. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  39686. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39687. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  39688. abstract="false"
  39689. static="false" final="false" visibility="public"
  39690. deprecated="not deprecated">
  39691. <constructor name="RecordTypeInfo"
  39692. static="false" final="false" visibility="public"
  39693. deprecated="not deprecated">
  39694. <doc>
  39695. <![CDATA[Create an empty RecordTypeInfo object.]]>
  39696. </doc>
  39697. </constructor>
  39698. <constructor name="RecordTypeInfo" type="java.lang.String"
  39699. static="false" final="false" visibility="public"
  39700. deprecated="not deprecated">
  39701. <doc>
  39702. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  39703. @param name Name of the record]]>
  39704. </doc>
  39705. </constructor>
  39706. <method name="getName" return="java.lang.String"
  39707. abstract="false" native="false" synchronized="false"
  39708. static="false" final="false" visibility="public"
  39709. deprecated="not deprecated">
  39710. <doc>
  39711. <![CDATA[return the name of the record]]>
  39712. </doc>
  39713. </method>
  39714. <method name="setName"
  39715. abstract="false" native="false" synchronized="false"
  39716. static="false" final="false" visibility="public"
  39717. deprecated="not deprecated">
  39718. <param name="name" type="java.lang.String"/>
  39719. <doc>
  39720. <![CDATA[set the name of the record]]>
  39721. </doc>
  39722. </method>
  39723. <method name="addField"
  39724. abstract="false" native="false" synchronized="false"
  39725. static="false" final="false" visibility="public"
  39726. deprecated="not deprecated">
  39727. <param name="fieldName" type="java.lang.String"/>
  39728. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  39729. <doc>
  39730. <![CDATA[Add a field.
  39731. @param fieldName Name of the field
  39732. @param tid Type ID of the field]]>
  39733. </doc>
  39734. </method>
  39735. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  39736. abstract="false" native="false" synchronized="false"
  39737. static="false" final="false" visibility="public"
  39738. deprecated="not deprecated">
  39739. <doc>
  39740. <![CDATA[Return a collection of field type infos]]>
  39741. </doc>
  39742. </method>
  39743. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  39744. abstract="false" native="false" synchronized="false"
  39745. static="false" final="false" visibility="public"
  39746. deprecated="not deprecated">
  39747. <param name="name" type="java.lang.String"/>
  39748. <doc>
  39749. <![CDATA[Return the type info of a nested record. We only consider nesting
  39750. to one level.
  39751. @param name Name of the nested record]]>
  39752. </doc>
  39753. </method>
  39754. <method name="serialize"
  39755. abstract="false" native="false" synchronized="false"
  39756. static="false" final="false" visibility="public"
  39757. deprecated="not deprecated">
  39758. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  39759. <param name="tag" type="java.lang.String"/>
  39760. <exception name="IOException" type="java.io.IOException"/>
  39761. <doc>
  39762. <![CDATA[Serialize the type information for a record]]>
  39763. </doc>
  39764. </method>
  39765. <method name="deserialize"
  39766. abstract="false" native="false" synchronized="false"
  39767. static="false" final="false" visibility="public"
  39768. deprecated="not deprecated">
  39769. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39770. <param name="tag" type="java.lang.String"/>
  39771. <exception name="IOException" type="java.io.IOException"/>
  39772. <doc>
  39773. <![CDATA[Deserialize the type information for a record]]>
  39774. </doc>
  39775. </method>
  39776. <method name="compareTo" return="int"
  39777. abstract="false" native="false" synchronized="false"
  39778. static="false" final="false" visibility="public"
  39779. deprecated="not deprecated">
  39780. <param name="peer_" type="java.lang.Object"/>
  39781. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  39782. <doc>
  39783. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  39784. for anything besides de/serializing.
  39785. So we always throw an exception.
  39786. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  39787. </doc>
  39788. </method>
  39789. <doc>
  39790. <![CDATA[A record's Type Information object which can read/write itself.
  39791. Type information for a record comprises metadata about the record,
  39792. as well as a collection of type information for each field in the record.]]>
  39793. </doc>
  39794. </class>
  39795. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39796. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  39797. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39798. abstract="false"
  39799. static="false" final="false" visibility="public"
  39800. deprecated="not deprecated">
  39801. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  39802. static="false" final="false" visibility="public"
  39803. deprecated="not deprecated">
  39804. <doc>
  39805. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  39806. </doc>
  39807. </constructor>
  39808. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  39809. abstract="false" native="false" synchronized="false"
  39810. static="false" final="false" visibility="public"
  39811. deprecated="not deprecated">
  39812. </method>
  39813. <doc>
  39814. <![CDATA[Represents typeID for a struct]]>
  39815. </doc>
  39816. </class>
  39817. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  39818. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  39819. <class name="TypeID" extends="java.lang.Object"
  39820. abstract="false"
  39821. static="false" final="false" visibility="public"
  39822. deprecated="not deprecated">
  39823. <method name="getTypeVal" return="byte"
  39824. abstract="false" native="false" synchronized="false"
  39825. static="false" final="false" visibility="public"
  39826. deprecated="not deprecated">
  39827. <doc>
  39828. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  39829. </doc>
  39830. </method>
  39831. <method name="equals" return="boolean"
  39832. abstract="false" native="false" synchronized="false"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. <param name="o" type="java.lang.Object"/>
  39836. <doc>
  39837. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  39838. </doc>
  39839. </method>
  39840. <method name="hashCode" return="int"
  39841. abstract="false" native="false" synchronized="false"
  39842. static="false" final="false" visibility="public"
  39843. deprecated="not deprecated">
  39844. <doc>
  39845. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39846. be used as a hashmap key]]>
  39847. </doc>
  39848. </method>
  39849. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39850. transient="false" volatile="false"
  39851. static="true" final="true" visibility="public"
  39852. deprecated="not deprecated">
  39853. <doc>
  39854. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  39855. </doc>
  39856. </field>
  39857. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39858. transient="false" volatile="false"
  39859. static="true" final="true" visibility="public"
  39860. deprecated="not deprecated">
  39861. </field>
  39862. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39863. transient="false" volatile="false"
  39864. static="true" final="true" visibility="public"
  39865. deprecated="not deprecated">
  39866. </field>
  39867. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39868. transient="false" volatile="false"
  39869. static="true" final="true" visibility="public"
  39870. deprecated="not deprecated">
  39871. </field>
  39872. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39873. transient="false" volatile="false"
  39874. static="true" final="true" visibility="public"
  39875. deprecated="not deprecated">
  39876. </field>
  39877. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39878. transient="false" volatile="false"
  39879. static="true" final="true" visibility="public"
  39880. deprecated="not deprecated">
  39881. </field>
  39882. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39883. transient="false" volatile="false"
  39884. static="true" final="true" visibility="public"
  39885. deprecated="not deprecated">
  39886. </field>
  39887. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39888. transient="false" volatile="false"
  39889. static="true" final="true" visibility="public"
  39890. deprecated="not deprecated">
  39891. </field>
  39892. <field name="typeVal" type="byte"
  39893. transient="false" volatile="false"
  39894. static="false" final="false" visibility="protected"
  39895. deprecated="not deprecated">
  39896. </field>
  39897. <doc>
  39898. <![CDATA[Represents typeID for basic types.]]>
  39899. </doc>
  39900. </class>
  39901. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  39902. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39903. <class name="TypeID.RIOType" extends="java.lang.Object"
  39904. abstract="false"
  39905. static="true" final="true" visibility="public"
  39906. deprecated="not deprecated">
  39907. <constructor name="TypeID.RIOType"
  39908. static="false" final="false" visibility="public"
  39909. deprecated="not deprecated">
  39910. </constructor>
  39911. <field name="BOOL" type="byte"
  39912. transient="false" volatile="false"
  39913. static="true" final="true" visibility="public"
  39914. deprecated="not deprecated">
  39915. </field>
  39916. <field name="BUFFER" type="byte"
  39917. transient="false" volatile="false"
  39918. static="true" final="true" visibility="public"
  39919. deprecated="not deprecated">
  39920. </field>
  39921. <field name="BYTE" type="byte"
  39922. transient="false" volatile="false"
  39923. static="true" final="true" visibility="public"
  39924. deprecated="not deprecated">
  39925. </field>
  39926. <field name="DOUBLE" type="byte"
  39927. transient="false" volatile="false"
  39928. static="true" final="true" visibility="public"
  39929. deprecated="not deprecated">
  39930. </field>
  39931. <field name="FLOAT" type="byte"
  39932. transient="false" volatile="false"
  39933. static="true" final="true" visibility="public"
  39934. deprecated="not deprecated">
  39935. </field>
  39936. <field name="INT" type="byte"
  39937. transient="false" volatile="false"
  39938. static="true" final="true" visibility="public"
  39939. deprecated="not deprecated">
  39940. </field>
  39941. <field name="LONG" type="byte"
  39942. transient="false" volatile="false"
  39943. static="true" final="true" visibility="public"
  39944. deprecated="not deprecated">
  39945. </field>
  39946. <field name="MAP" type="byte"
  39947. transient="false" volatile="false"
  39948. static="true" final="true" visibility="public"
  39949. deprecated="not deprecated">
  39950. </field>
  39951. <field name="STRING" type="byte"
  39952. transient="false" volatile="false"
  39953. static="true" final="true" visibility="public"
  39954. deprecated="not deprecated">
  39955. </field>
  39956. <field name="STRUCT" type="byte"
  39957. transient="false" volatile="false"
  39958. static="true" final="true" visibility="public"
  39959. deprecated="not deprecated">
  39960. </field>
  39961. <field name="VECTOR" type="byte"
  39962. transient="false" volatile="false"
  39963. static="true" final="true" visibility="public"
  39964. deprecated="not deprecated">
  39965. </field>
  39966. <doc>
  39967. <![CDATA[constants representing the IDL types we support]]>
  39968. </doc>
  39969. </class>
  39970. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39971. <!-- start class org.apache.hadoop.record.meta.Utils -->
  39972. <class name="Utils" extends="java.lang.Object"
  39973. abstract="false"
  39974. static="false" final="false" visibility="public"
  39975. deprecated="not deprecated">
  39976. <method name="skip"
  39977. abstract="false" native="false" synchronized="false"
  39978. static="true" final="false" visibility="public"
  39979. deprecated="not deprecated">
  39980. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39981. <param name="tag" type="java.lang.String"/>
  39982. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  39983. <exception name="IOException" type="java.io.IOException"/>
  39984. <doc>
  39985. <![CDATA[read/skip bytes from stream based on a type]]>
  39986. </doc>
  39987. </method>
  39988. <doc>
  39989. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  39990. </doc>
  39991. </class>
  39992. <!-- end class org.apache.hadoop.record.meta.Utils -->
  39993. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  39994. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39995. abstract="false"
  39996. static="false" final="false" visibility="public"
  39997. deprecated="not deprecated">
  39998. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39999. static="false" final="false" visibility="public"
  40000. deprecated="not deprecated">
  40001. </constructor>
  40002. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  40003. abstract="false" native="false" synchronized="false"
  40004. static="false" final="false" visibility="public"
  40005. deprecated="not deprecated">
  40006. </method>
  40007. <method name="equals" return="boolean"
  40008. abstract="false" native="false" synchronized="false"
  40009. static="false" final="false" visibility="public"
  40010. deprecated="not deprecated">
  40011. <param name="o" type="java.lang.Object"/>
  40012. <doc>
  40013. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  40014. same type]]>
  40015. </doc>
  40016. </method>
  40017. <method name="hashCode" return="int"
  40018. abstract="false" native="false" synchronized="false"
  40019. static="false" final="false" visibility="public"
  40020. deprecated="not deprecated">
  40021. <doc>
  40022. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  40023. be used as a hashmap key]]>
  40024. </doc>
  40025. </method>
  40026. <doc>
  40027. <![CDATA[Represents typeID for vector.]]>
  40028. </doc>
  40029. </class>
  40030. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  40031. </package>
  40032. <package name="org.apache.hadoop.security">
  40033. <!-- start class org.apache.hadoop.security.AccessControlException -->
  40034. <class name="AccessControlException" extends="org.apache.hadoop.fs.permission.AccessControlException"
  40035. abstract="false"
  40036. static="false" final="false" visibility="public"
  40037. deprecated="not deprecated">
  40038. <constructor name="AccessControlException"
  40039. static="false" final="false" visibility="public"
  40040. deprecated="not deprecated">
  40041. <doc>
  40042. <![CDATA[Default constructor is needed for unwrapping from
  40043. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  40044. </doc>
  40045. </constructor>
  40046. <constructor name="AccessControlException" type="java.lang.String"
  40047. static="false" final="false" visibility="public"
  40048. deprecated="not deprecated">
  40049. <doc>
  40050. <![CDATA[Constructs an {@link AccessControlException}
  40051. with the specified detail message.
  40052. @param s the detail message.]]>
  40053. </doc>
  40054. </constructor>
  40055. <doc>
  40056. <![CDATA[An exception class for access control related issues.]]>
  40057. </doc>
  40058. </class>
  40059. <!-- end class org.apache.hadoop.security.AccessControlException -->
  40060. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  40061. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  40062. abstract="false"
  40063. static="false" final="false" visibility="public"
  40064. deprecated="not deprecated">
  40065. <constructor name="UnixUserGroupInformation"
  40066. static="false" final="false" visibility="public"
  40067. deprecated="not deprecated">
  40068. <doc>
  40069. <![CDATA[Default constructor]]>
  40070. </doc>
  40071. </constructor>
  40072. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  40073. static="false" final="false" visibility="public"
  40074. deprecated="not deprecated">
  40075. <doc>
  40076. <![CDATA[Constructor with parameters user name and its group names.
  40077. The first entry in the groups list is the default group.
  40078. @param userName a user's name
  40079. @param groupNames groups list, first of which is the default group
  40080. @exception IllegalArgumentException if any argument is null]]>
  40081. </doc>
  40082. </constructor>
  40083. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  40084. static="false" final="false" visibility="public"
  40085. deprecated="not deprecated">
  40086. <doc>
  40087. <![CDATA[Constructor with parameter user/group names
  40088. @param ugi an array containing user/group names, the first
  40089. element of which is the user name, the second of
  40090. which is the default group name.
  40091. @exception IllegalArgumentException if the array size is less than 2
  40092. or any element is null.]]>
  40093. </doc>
  40094. </constructor>
  40095. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40096. abstract="false" native="false" synchronized="false"
  40097. static="true" final="false" visibility="public"
  40098. deprecated="not deprecated">
  40099. <param name="ugi" type="java.lang.String[]"/>
  40100. <doc>
  40101. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  40102. </doc>
  40103. </method>
  40104. <method name="getGroupNames" return="java.lang.String[]"
  40105. abstract="false" native="false" synchronized="false"
  40106. static="false" final="false" visibility="public"
  40107. deprecated="not deprecated">
  40108. <doc>
  40109. <![CDATA[Return an array of group names]]>
  40110. </doc>
  40111. </method>
  40112. <method name="getUserName" return="java.lang.String"
  40113. abstract="false" native="false" synchronized="false"
  40114. static="false" final="false" visibility="public"
  40115. deprecated="not deprecated">
  40116. <doc>
  40117. <![CDATA[Return the user's name]]>
  40118. </doc>
  40119. </method>
  40120. <method name="readFields"
  40121. abstract="false" native="false" synchronized="false"
  40122. static="false" final="false" visibility="public"
  40123. deprecated="not deprecated">
  40124. <param name="in" type="java.io.DataInput"/>
  40125. <exception name="IOException" type="java.io.IOException"/>
  40126. <doc>
  40127. <![CDATA[Deserialize this object
  40128. First check if this is a UGI in the string format.
  40129. If no, throw an IOException; otherwise
  40130. set this object's fields by reading them from the given data input
  40131. @param in input stream
  40132. @exception IOException is thrown if encounter any error when reading]]>
  40133. </doc>
  40134. </method>
  40135. <method name="write"
  40136. abstract="false" native="false" synchronized="false"
  40137. static="false" final="false" visibility="public"
  40138. deprecated="not deprecated">
  40139. <param name="out" type="java.io.DataOutput"/>
  40140. <exception name="IOException" type="java.io.IOException"/>
  40141. <doc>
  40142. <![CDATA[Serialize this object
  40143. First write a string marking that this is a UGI in the string format,
  40144. then write this object's serialized form to the given data output
  40145. @param out output stream
  40146. @exception IOException if encounter any error during writing]]>
  40147. </doc>
  40148. </method>
  40149. <method name="saveToConf"
  40150. abstract="false" native="false" synchronized="false"
  40151. static="true" final="false" visibility="public"
  40152. deprecated="not deprecated">
  40153. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40154. <param name="attr" type="java.lang.String"/>
  40155. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  40156. <doc>
  40157. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  40158. <code>conf</code> as a property <code>attr</code>
  40159. The String starts with the user name followed by the default group names,
  40160. and other group names.
  40161. @param conf configuration
  40162. @param attr property name
  40163. @param ugi a UnixUserGroupInformation]]>
  40164. </doc>
  40165. </method>
  40166. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40167. abstract="false" native="false" synchronized="false"
  40168. static="true" final="false" visibility="public"
  40169. deprecated="not deprecated">
  40170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40171. <param name="attr" type="java.lang.String"/>
  40172. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40173. <doc>
  40174. <![CDATA[Read a UGI from the given <code>conf</code>
  40175. The object is expected to store with the property name <code>attr</code>
  40176. as a comma separated string that starts
  40177. with the user name followed by group names.
  40178. If the property name is not defined, return null.
  40179. It's assumed that there is only one UGI per user. If this user already
  40180. has a UGI in the ugi map, return the ugi in the map.
  40181. Otherwise, construct a UGI from the configuration, store it in the
  40182. ugi map and return it.
  40183. @param conf configuration
  40184. @param attr property name
  40185. @return a UnixUGI
  40186. @throws LoginException if the stored string is ill-formatted.]]>
  40187. </doc>
  40188. </method>
  40189. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40190. abstract="false" native="false" synchronized="false"
  40191. static="true" final="false" visibility="public"
  40192. deprecated="not deprecated">
  40193. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40194. <doc>
  40195. <![CDATA[Get current user's name and the names of all its groups from Unix.
  40196. It's assumed that there is only one UGI per user. If this user already
  40197. has a UGI in the ugi map, return the ugi in the map.
  40198. Otherwise get the current user's information from Unix, store it
  40199. in the map, and return it.]]>
  40200. </doc>
  40201. </method>
  40202. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40203. abstract="false" native="false" synchronized="false"
  40204. static="true" final="false" visibility="public"
  40205. deprecated="not deprecated">
  40206. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40207. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40208. <doc>
  40209. <![CDATA[Equivalent to login(conf, false).]]>
  40210. </doc>
  40211. </method>
  40212. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40213. abstract="false" native="false" synchronized="false"
  40214. static="true" final="false" visibility="public"
  40215. deprecated="not deprecated">
  40216. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40217. <param name="save" type="boolean"/>
  40218. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40219. <doc>
  40220. <![CDATA[Get a user's name & its group names from the given configuration;
  40221. If it is not defined in the configuration, get the current user's
  40222. information from Unix.
  40223. If the user has a UGI in the ugi map, return the one in
  40224. the UGI map.
  40225. @param conf either a job configuration or client's configuration
  40226. @param save saving it to conf?
  40227. @return UnixUserGroupInformation a user/group information
  40228. @exception LoginException if not able to get the user/group information]]>
  40229. </doc>
  40230. </method>
  40231. <method name="equals" return="boolean"
  40232. abstract="false" native="false" synchronized="false"
  40233. static="false" final="false" visibility="public"
  40234. deprecated="not deprecated">
  40235. <param name="other" type="java.lang.Object"/>
  40236. <doc>
  40237. <![CDATA[Decide if two UGIs are the same
  40238. @param other other object
  40239. @return true if they are the same; false otherwise.]]>
  40240. </doc>
  40241. </method>
  40242. <method name="hashCode" return="int"
  40243. abstract="false" native="false" synchronized="false"
  40244. static="false" final="false" visibility="public"
  40245. deprecated="not deprecated">
  40246. <doc>
  40247. <![CDATA[Returns a hash code for this UGI.
  40248. The hash code for a UGI is the hash code of its user name string.
  40249. @return a hash code value for this UGI.]]>
  40250. </doc>
  40251. </method>
  40252. <method name="toString" return="java.lang.String"
  40253. abstract="false" native="false" synchronized="false"
  40254. static="false" final="false" visibility="public"
  40255. deprecated="not deprecated">
  40256. <doc>
  40257. <![CDATA[Convert this object to a string
  40258. @return a comma separated string containing the user name and group names]]>
  40259. </doc>
  40260. </method>
  40261. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  40262. transient="false" volatile="false"
  40263. static="true" final="true" visibility="public"
  40264. deprecated="not deprecated">
  40265. </field>
  40266. <doc>
  40267. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  40268. </doc>
  40269. </class>
  40270. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  40271. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  40272. <class name="UserGroupInformation" extends="java.lang.Object"
  40273. abstract="true"
  40274. static="false" final="false" visibility="public"
  40275. deprecated="not deprecated">
  40276. <implements name="org.apache.hadoop.io.Writable"/>
  40277. <constructor name="UserGroupInformation"
  40278. static="false" final="false" visibility="public"
  40279. deprecated="not deprecated">
  40280. </constructor>
  40281. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  40282. abstract="false" native="false" synchronized="false"
  40283. static="true" final="false" visibility="public"
  40284. deprecated="not deprecated">
  40285. <doc>
  40286. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  40287. </doc>
  40288. </method>
  40289. <method name="setCurrentUGI"
  40290. abstract="false" native="false" synchronized="false"
  40291. static="true" final="false" visibility="public"
  40292. deprecated="not deprecated">
  40293. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  40294. <doc>
  40295. <![CDATA[Set the {@link UserGroupInformation} for the current thread]]>
  40296. </doc>
  40297. </method>
  40298. <method name="getUserName" return="java.lang.String"
  40299. abstract="true" native="false" synchronized="false"
  40300. static="false" final="false" visibility="public"
  40301. deprecated="not deprecated">
  40302. <doc>
  40303. <![CDATA[Get username
  40304. @return the user's name]]>
  40305. </doc>
  40306. </method>
  40307. <method name="getGroupNames" return="java.lang.String[]"
  40308. abstract="true" native="false" synchronized="false"
  40309. static="false" final="false" visibility="public"
  40310. deprecated="not deprecated">
  40311. <doc>
  40312. <![CDATA[Get the name of the groups that the user belong to
  40313. @return an array of group names]]>
  40314. </doc>
  40315. </method>
  40316. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  40317. abstract="false" native="false" synchronized="false"
  40318. static="true" final="false" visibility="public"
  40319. deprecated="not deprecated">
  40320. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40321. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40322. <doc>
  40323. <![CDATA[Login and return a UserGroupInformation object.]]>
  40324. </doc>
  40325. </method>
  40326. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  40327. abstract="false" native="false" synchronized="false"
  40328. static="true" final="false" visibility="public"
  40329. deprecated="not deprecated">
  40330. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40331. <exception name="IOException" type="java.io.IOException"/>
  40332. <doc>
  40333. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  40334. </doc>
  40335. </method>
  40336. <field name="LOG" type="org.apache.commons.logging.Log"
  40337. transient="false" volatile="false"
  40338. static="true" final="true" visibility="public"
  40339. deprecated="not deprecated">
  40340. </field>
  40341. <doc>
  40342. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  40343. </doc>
  40344. </class>
  40345. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  40346. </package>
  40347. <package name="org.apache.hadoop.tools">
  40348. <!-- start class org.apache.hadoop.tools.DistCp -->
  40349. <class name="DistCp" extends="java.lang.Object"
  40350. abstract="false"
  40351. static="false" final="false" visibility="public"
  40352. deprecated="not deprecated">
  40353. <implements name="org.apache.hadoop.util.Tool"/>
  40354. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  40355. static="false" final="false" visibility="public"
  40356. deprecated="not deprecated">
  40357. </constructor>
  40358. <method name="setConf"
  40359. abstract="false" native="false" synchronized="false"
  40360. static="false" final="false" visibility="public"
  40361. deprecated="not deprecated">
  40362. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40363. </method>
  40364. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40365. abstract="false" native="false" synchronized="false"
  40366. static="false" final="false" visibility="public"
  40367. deprecated="not deprecated">
  40368. </method>
  40369. <method name="copy"
  40370. abstract="false" native="false" synchronized="false"
  40371. static="true" final="false" visibility="public"
  40372. deprecated="not deprecated">
  40373. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40374. <param name="srcPath" type="java.lang.String"/>
  40375. <param name="destPath" type="java.lang.String"/>
  40376. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  40377. <param name="srcAsList" type="boolean"/>
  40378. <param name="ignoreReadFailures" type="boolean"/>
  40379. <exception name="IOException" type="java.io.IOException"/>
  40380. </method>
  40381. <method name="run" return="int"
  40382. abstract="false" native="false" synchronized="false"
  40383. static="false" final="false" visibility="public"
  40384. deprecated="not deprecated">
  40385. <param name="args" type="java.lang.String[]"/>
  40386. <doc>
  40387. <![CDATA[This is the main driver for recursively copying directories
  40388. across file systems. It takes at least two cmdline parameters. A source
  40389. URL and a destination URL. It then essentially does an "ls -lR" on the
  40390. source URL, and writes the output in a round-robin manner to all the map
  40391. input files. The mapper actually copies the files allotted to it. The
  40392. reduce is empty.]]>
  40393. </doc>
  40394. </method>
  40395. <method name="main"
  40396. abstract="false" native="false" synchronized="false"
  40397. static="true" final="false" visibility="public"
  40398. deprecated="not deprecated">
  40399. <param name="args" type="java.lang.String[]"/>
  40400. <exception name="Exception" type="java.lang.Exception"/>
  40401. </method>
  40402. <method name="getRandomId" return="java.lang.String"
  40403. abstract="false" native="false" synchronized="false"
  40404. static="true" final="false" visibility="public"
  40405. deprecated="not deprecated">
  40406. </method>
  40407. <field name="LOG" type="org.apache.commons.logging.Log"
  40408. transient="false" volatile="false"
  40409. static="true" final="true" visibility="public"
  40410. deprecated="not deprecated">
  40411. </field>
  40412. <doc>
  40413. <![CDATA[A Map-reduce program to recursively copy directories between
  40414. different file-systems.]]>
  40415. </doc>
  40416. </class>
  40417. <!-- end class org.apache.hadoop.tools.DistCp -->
  40418. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  40419. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  40420. abstract="false"
  40421. static="true" final="false" visibility="public"
  40422. deprecated="not deprecated">
  40423. <field name="ERROR_CODE" type="int"
  40424. transient="false" volatile="false"
  40425. static="true" final="true" visibility="public"
  40426. deprecated="not deprecated">
  40427. <doc>
  40428. <![CDATA[Error code for this exception]]>
  40429. </doc>
  40430. </field>
  40431. <doc>
  40432. <![CDATA[An exception class for duplicated source files.]]>
  40433. </doc>
  40434. </class>
  40435. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  40436. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  40437. <class name="HadoopArchives" extends="java.lang.Object"
  40438. abstract="false"
  40439. static="false" final="false" visibility="public"
  40440. deprecated="not deprecated">
  40441. <implements name="org.apache.hadoop.util.Tool"/>
  40442. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  40443. static="false" final="false" visibility="public"
  40444. deprecated="not deprecated">
  40445. </constructor>
  40446. <method name="setConf"
  40447. abstract="false" native="false" synchronized="false"
  40448. static="false" final="false" visibility="public"
  40449. deprecated="not deprecated">
  40450. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40451. </method>
  40452. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40453. abstract="false" native="false" synchronized="false"
  40454. static="false" final="false" visibility="public"
  40455. deprecated="not deprecated">
  40456. </method>
  40457. <method name="archive"
  40458. abstract="false" native="false" synchronized="false"
  40459. static="false" final="false" visibility="public"
  40460. deprecated="not deprecated">
  40461. <param name="srcPaths" type="java.util.List&lt;org.apache.hadoop.fs.Path&gt;"/>
  40462. <param name="archiveName" type="java.lang.String"/>
  40463. <param name="dest" type="org.apache.hadoop.fs.Path"/>
  40464. <exception name="IOException" type="java.io.IOException"/>
  40465. <doc>
  40466. <![CDATA[archive the given source paths into
  40467. the dest
  40468. @param srcPaths the src paths to be archived
  40469. @param dest the dest dir that will contain the archive]]>
  40470. </doc>
  40471. </method>
  40472. <method name="run" return="int"
  40473. abstract="false" native="false" synchronized="false"
  40474. static="false" final="false" visibility="public"
  40475. deprecated="not deprecated">
  40476. <param name="args" type="java.lang.String[]"/>
  40477. <exception name="Exception" type="java.lang.Exception"/>
  40478. <doc>
  40479. <![CDATA[the main driver for creating the archives
  40480. it takes at least two command line parameters. The src and the
  40481. dest. It does an lsr on the source paths.
  40482. The mapper created archuves and the reducer creates
  40483. the archive index.]]>
  40484. </doc>
  40485. </method>
  40486. <method name="main"
  40487. abstract="false" native="false" synchronized="false"
  40488. static="true" final="false" visibility="public"
  40489. deprecated="not deprecated">
  40490. <param name="args" type="java.lang.String[]"/>
  40491. <doc>
  40492. <![CDATA[the main functions]]>
  40493. </doc>
  40494. </method>
  40495. <doc>
  40496. <![CDATA[a archive creation utility.
  40497. This class provides methods that can be used
  40498. to create hadoop archives. For understanding of
  40499. Hadoop archives look at {@link HarFileSystem}.]]>
  40500. </doc>
  40501. </class>
  40502. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  40503. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  40504. <class name="Logalyzer" extends="java.lang.Object"
  40505. abstract="false"
  40506. static="false" final="false" visibility="public"
  40507. deprecated="not deprecated">
  40508. <constructor name="Logalyzer"
  40509. static="false" final="false" visibility="public"
  40510. deprecated="not deprecated">
  40511. </constructor>
  40512. <method name="doArchive"
  40513. abstract="false" native="false" synchronized="false"
  40514. static="false" final="false" visibility="public"
  40515. deprecated="not deprecated">
  40516. <param name="logListURI" type="java.lang.String"/>
  40517. <param name="archiveDirectory" type="java.lang.String"/>
  40518. <exception name="IOException" type="java.io.IOException"/>
  40519. <doc>
  40520. <![CDATA[doArchive: Workhorse function to archive log-files.
  40521. @param logListURI : The uri which will serve list of log-files to archive.
  40522. @param archiveDirectory : The directory to store archived logfiles.
  40523. @throws IOException]]>
  40524. </doc>
  40525. </method>
  40526. <method name="doAnalyze"
  40527. abstract="false" native="false" synchronized="false"
  40528. static="false" final="false" visibility="public"
  40529. deprecated="not deprecated">
  40530. <param name="inputFilesDirectory" type="java.lang.String"/>
  40531. <param name="outputDirectory" type="java.lang.String"/>
  40532. <param name="grepPattern" type="java.lang.String"/>
  40533. <param name="sortColumns" type="java.lang.String"/>
  40534. <param name="columnSeparator" type="java.lang.String"/>
  40535. <exception name="IOException" type="java.io.IOException"/>
  40536. <doc>
  40537. <![CDATA[doAnalyze:
  40538. @param inputFilesDirectory : Directory containing the files to be analyzed.
  40539. @param outputDirectory : Directory to store analysis (output).
  40540. @param grepPattern : Pattern to *grep* for.
  40541. @param sortColumns : Sort specification for output.
  40542. @param columnSeparator : Column separator.
  40543. @throws IOException]]>
  40544. </doc>
  40545. </method>
  40546. <method name="main"
  40547. abstract="false" native="false" synchronized="false"
  40548. static="true" final="false" visibility="public"
  40549. deprecated="not deprecated">
  40550. <param name="args" type="java.lang.String[]"/>
  40551. </method>
  40552. <doc>
  40553. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  40554. <p>
  40555. This tool supports archiving and anaylzing (sort/grep) of log-files.
  40556. It takes as input
  40557. a) Input uri which will serve uris of the logs to be archived.
  40558. b) Output directory (not mandatory).
  40559. b) Directory on dfs to archive the logs.
  40560. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  40561. Usage:
  40562. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  40563. <p>]]>
  40564. </doc>
  40565. </class>
  40566. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  40567. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  40568. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  40569. abstract="false"
  40570. static="true" final="false" visibility="public"
  40571. deprecated="not deprecated">
  40572. <implements name="org.apache.hadoop.conf.Configurable"/>
  40573. <constructor name="Logalyzer.LogComparator"
  40574. static="false" final="false" visibility="public"
  40575. deprecated="not deprecated">
  40576. </constructor>
  40577. <method name="setConf"
  40578. abstract="false" native="false" synchronized="false"
  40579. static="false" final="false" visibility="public"
  40580. deprecated="not deprecated">
  40581. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40582. </method>
  40583. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40584. abstract="false" native="false" synchronized="false"
  40585. static="false" final="false" visibility="public"
  40586. deprecated="not deprecated">
  40587. </method>
  40588. <method name="compare" return="int"
  40589. abstract="false" native="false" synchronized="false"
  40590. static="false" final="false" visibility="public"
  40591. deprecated="not deprecated">
  40592. <param name="b1" type="byte[]"/>
  40593. <param name="s1" type="int"/>
  40594. <param name="l1" type="int"/>
  40595. <param name="b2" type="byte[]"/>
  40596. <param name="s2" type="int"/>
  40597. <param name="l2" type="int"/>
  40598. </method>
  40599. <doc>
  40600. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  40601. </doc>
  40602. </class>
  40603. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  40604. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  40605. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  40606. abstract="false"
  40607. static="true" final="false" visibility="public"
  40608. deprecated="not deprecated">
  40609. <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;"/>
  40610. <constructor name="Logalyzer.LogRegexMapper"
  40611. static="false" final="false" visibility="public"
  40612. deprecated="not deprecated">
  40613. </constructor>
  40614. <method name="configure"
  40615. abstract="false" native="false" synchronized="false"
  40616. static="false" final="false" visibility="public"
  40617. deprecated="not deprecated">
  40618. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  40619. </method>
  40620. <method name="map"
  40621. abstract="false" native="false" synchronized="false"
  40622. static="false" final="false" visibility="public"
  40623. deprecated="not deprecated">
  40624. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  40625. <param name="value" type="org.apache.hadoop.io.Text"/>
  40626. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  40627. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  40628. <exception name="IOException" type="java.io.IOException"/>
  40629. </method>
  40630. <doc>
  40631. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  40632. </doc>
  40633. </class>
  40634. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  40635. </package>
  40636. <package name="org.apache.hadoop.util">
  40637. <!-- start class org.apache.hadoop.util.CyclicIteration -->
  40638. <class name="CyclicIteration" extends="java.lang.Object"
  40639. abstract="false"
  40640. static="false" final="false" visibility="public"
  40641. deprecated="not deprecated">
  40642. <implements name="java.lang.Iterable&lt;java.util.Map.Entry&lt;K, V&gt;&gt;"/>
  40643. <constructor name="CyclicIteration" type="java.util.NavigableMap&lt;K, V&gt;, K"
  40644. static="false" final="false" visibility="public"
  40645. deprecated="not deprecated">
  40646. <doc>
  40647. <![CDATA[Construct an {@link Iterable} object,
  40648. so that an {@link Iterator} can be created
  40649. for iterating the given {@link NavigableMap}.
  40650. The iteration begins from the starting key exclusively.]]>
  40651. </doc>
  40652. </constructor>
  40653. <method name="iterator" return="java.util.Iterator&lt;java.util.Map.Entry&lt;K, V&gt;&gt;"
  40654. abstract="false" native="false" synchronized="false"
  40655. static="false" final="false" visibility="public"
  40656. deprecated="not deprecated">
  40657. <doc>
  40658. <![CDATA[{@inheritDoc}]]>
  40659. </doc>
  40660. </method>
  40661. <doc>
  40662. <![CDATA[Provide an cyclic {@link Iterator} for a {@link NavigableMap}.
  40663. The {@link Iterator} navigates the entries of the map
  40664. according to the map's ordering.
  40665. If the {@link Iterator} hits the last entry of the map,
  40666. it will then continue from the first entry.]]>
  40667. </doc>
  40668. </class>
  40669. <!-- end class org.apache.hadoop.util.CyclicIteration -->
  40670. <!-- start class org.apache.hadoop.util.Daemon -->
  40671. <class name="Daemon" extends="java.lang.Thread"
  40672. abstract="false"
  40673. static="false" final="false" visibility="public"
  40674. deprecated="not deprecated">
  40675. <constructor name="Daemon"
  40676. static="false" final="false" visibility="public"
  40677. deprecated="not deprecated">
  40678. <doc>
  40679. <![CDATA[Construct a daemon thread.]]>
  40680. </doc>
  40681. </constructor>
  40682. <constructor name="Daemon" type="java.lang.Runnable"
  40683. static="false" final="false" visibility="public"
  40684. deprecated="not deprecated">
  40685. <doc>
  40686. <![CDATA[Construct a daemon thread.]]>
  40687. </doc>
  40688. </constructor>
  40689. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  40690. static="false" final="false" visibility="public"
  40691. deprecated="not deprecated">
  40692. <doc>
  40693. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  40694. </doc>
  40695. </constructor>
  40696. <method name="getRunnable" return="java.lang.Runnable"
  40697. abstract="false" native="false" synchronized="false"
  40698. static="false" final="false" visibility="public"
  40699. deprecated="not deprecated">
  40700. </method>
  40701. <doc>
  40702. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  40703. </doc>
  40704. </class>
  40705. <!-- end class org.apache.hadoop.util.Daemon -->
  40706. <!-- start class org.apache.hadoop.util.DataChecksum -->
  40707. <class name="DataChecksum" extends="java.lang.Object"
  40708. abstract="false"
  40709. static="false" final="false" visibility="public"
  40710. deprecated="not deprecated">
  40711. <implements name="java.util.zip.Checksum"/>
  40712. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  40713. abstract="false" native="false" synchronized="false"
  40714. static="true" final="false" visibility="public"
  40715. deprecated="not deprecated">
  40716. <param name="type" type="int"/>
  40717. <param name="bytesPerChecksum" type="int"/>
  40718. </method>
  40719. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  40720. abstract="false" native="false" synchronized="false"
  40721. static="true" final="false" visibility="public"
  40722. deprecated="not deprecated">
  40723. <param name="bytes" type="byte[]"/>
  40724. <param name="offset" type="int"/>
  40725. <doc>
  40726. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  40727. @return DataChecksum of the type in the array or null in case of an error.]]>
  40728. </doc>
  40729. </method>
  40730. <method name="newDataChecksum" return="org.apache.hadoop.util.DataChecksum"
  40731. abstract="false" native="false" synchronized="false"
  40732. static="true" final="false" visibility="public"
  40733. deprecated="not deprecated">
  40734. <param name="in" type="java.io.DataInputStream"/>
  40735. <exception name="IOException" type="java.io.IOException"/>
  40736. <doc>
  40737. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  40738. input stream <i>in</i>]]>
  40739. </doc>
  40740. </method>
  40741. <method name="writeHeader"
  40742. abstract="false" native="false" synchronized="false"
  40743. static="false" final="false" visibility="public"
  40744. deprecated="not deprecated">
  40745. <param name="out" type="java.io.DataOutputStream"/>
  40746. <exception name="IOException" type="java.io.IOException"/>
  40747. <doc>
  40748. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  40749. </doc>
  40750. </method>
  40751. <method name="getHeader" return="byte[]"
  40752. abstract="false" native="false" synchronized="false"
  40753. static="false" final="false" visibility="public"
  40754. deprecated="not deprecated">
  40755. </method>
  40756. <method name="writeValue" return="int"
  40757. abstract="false" native="false" synchronized="false"
  40758. static="false" final="false" visibility="public"
  40759. deprecated="not deprecated">
  40760. <param name="out" type="java.io.DataOutputStream"/>
  40761. <param name="reset" type="boolean"/>
  40762. <exception name="IOException" type="java.io.IOException"/>
  40763. <doc>
  40764. <![CDATA[Writes the current checksum to the stream.
  40765. If <i>reset</i> is true, then resets the checksum.
  40766. @return number of bytes written. Will be equal to getChecksumSize();]]>
  40767. </doc>
  40768. </method>
  40769. <method name="writeValue" return="int"
  40770. abstract="false" native="false" synchronized="false"
  40771. static="false" final="false" visibility="public"
  40772. deprecated="not deprecated">
  40773. <param name="buf" type="byte[]"/>
  40774. <param name="offset" type="int"/>
  40775. <param name="reset" type="boolean"/>
  40776. <exception name="IOException" type="java.io.IOException"/>
  40777. <doc>
  40778. <![CDATA[Writes the current checksum to a buffer.
  40779. If <i>reset</i> is true, then resets the checksum.
  40780. @return number of bytes written. Will be equal to getChecksumSize();]]>
  40781. </doc>
  40782. </method>
  40783. <method name="compare" return="boolean"
  40784. abstract="false" native="false" synchronized="false"
  40785. static="false" final="false" visibility="public"
  40786. deprecated="not deprecated">
  40787. <param name="buf" type="byte[]"/>
  40788. <param name="offset" type="int"/>
  40789. <doc>
  40790. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  40791. @return true if the checksum matches and false otherwise.]]>
  40792. </doc>
  40793. </method>
  40794. <method name="getChecksumType" return="int"
  40795. abstract="false" native="false" synchronized="false"
  40796. static="false" final="false" visibility="public"
  40797. deprecated="not deprecated">
  40798. </method>
  40799. <method name="getChecksumSize" return="int"
  40800. abstract="false" native="false" synchronized="false"
  40801. static="false" final="false" visibility="public"
  40802. deprecated="not deprecated">
  40803. </method>
  40804. <method name="getBytesPerChecksum" return="int"
  40805. abstract="false" native="false" synchronized="false"
  40806. static="false" final="false" visibility="public"
  40807. deprecated="not deprecated">
  40808. </method>
  40809. <method name="getNumBytesInSum" return="int"
  40810. abstract="false" native="false" synchronized="false"
  40811. static="false" final="false" visibility="public"
  40812. deprecated="not deprecated">
  40813. </method>
  40814. <method name="getChecksumHeaderSize" return="int"
  40815. abstract="false" native="false" synchronized="false"
  40816. static="true" final="false" visibility="public"
  40817. deprecated="not deprecated">
  40818. </method>
  40819. <method name="getValue" return="long"
  40820. abstract="false" native="false" synchronized="false"
  40821. static="false" final="false" visibility="public"
  40822. deprecated="not deprecated">
  40823. </method>
  40824. <method name="reset"
  40825. abstract="false" native="false" synchronized="false"
  40826. static="false" final="false" visibility="public"
  40827. deprecated="not deprecated">
  40828. </method>
  40829. <method name="update"
  40830. abstract="false" native="false" synchronized="false"
  40831. static="false" final="false" visibility="public"
  40832. deprecated="not deprecated">
  40833. <param name="b" type="byte[]"/>
  40834. <param name="off" type="int"/>
  40835. <param name="len" type="int"/>
  40836. </method>
  40837. <method name="update"
  40838. abstract="false" native="false" synchronized="false"
  40839. static="false" final="false" visibility="public"
  40840. deprecated="not deprecated">
  40841. <param name="b" type="int"/>
  40842. </method>
  40843. <field name="HEADER_LEN" type="int"
  40844. transient="false" volatile="false"
  40845. static="true" final="true" visibility="public"
  40846. deprecated="not deprecated">
  40847. </field>
  40848. <field name="CHECKSUM_NULL" type="int"
  40849. transient="false" volatile="false"
  40850. static="true" final="true" visibility="public"
  40851. deprecated="not deprecated">
  40852. </field>
  40853. <field name="CHECKSUM_CRC32" type="int"
  40854. transient="false" volatile="false"
  40855. static="true" final="true" visibility="public"
  40856. deprecated="not deprecated">
  40857. </field>
  40858. <field name="SIZE_OF_INTEGER" type="int"
  40859. transient="false" volatile="false"
  40860. static="true" final="true" visibility="public"
  40861. deprecated="not deprecated">
  40862. </field>
  40863. <doc>
  40864. <![CDATA[This class provides inteface and utilities for processing checksums for
  40865. DFS data transfers.]]>
  40866. </doc>
  40867. </class>
  40868. <!-- end class org.apache.hadoop.util.DataChecksum -->
  40869. <!-- start class org.apache.hadoop.util.DiskChecker -->
  40870. <class name="DiskChecker" extends="java.lang.Object"
  40871. abstract="false"
  40872. static="false" final="false" visibility="public"
  40873. deprecated="not deprecated">
  40874. <constructor name="DiskChecker"
  40875. static="false" final="false" visibility="public"
  40876. deprecated="not deprecated">
  40877. </constructor>
  40878. <method name="mkdirsWithExistsCheck" return="boolean"
  40879. abstract="false" native="false" synchronized="false"
  40880. static="true" final="false" visibility="public"
  40881. deprecated="not deprecated">
  40882. <param name="dir" type="java.io.File"/>
  40883. <doc>
  40884. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  40885. method provided in the Sun's java.io.File class in the following way:
  40886. While creating the non-existent parent directories, this method checks for
  40887. the existence of those directories if the mkdir fails at any point (since
  40888. that directory might have just been created by some other process).
  40889. If both mkdir() and the exists() check fails for any seemingly
  40890. non-existent directory, then we signal an error; Sun's mkdir would signal
  40891. an error (return false) if a directory it is attempting to create already
  40892. exists or the mkdir fails.
  40893. @param dir
  40894. @return true on success, false on failure]]>
  40895. </doc>
  40896. </method>
  40897. <method name="checkDir"
  40898. abstract="false" native="false" synchronized="false"
  40899. static="true" final="false" visibility="public"
  40900. deprecated="not deprecated">
  40901. <param name="dir" type="java.io.File"/>
  40902. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40903. </method>
  40904. <doc>
  40905. <![CDATA[Class that provides utility functions for checking disk problem]]>
  40906. </doc>
  40907. </class>
  40908. <!-- end class org.apache.hadoop.util.DiskChecker -->
  40909. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40910. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  40911. abstract="false"
  40912. static="true" final="false" visibility="public"
  40913. deprecated="not deprecated">
  40914. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  40915. static="false" final="false" visibility="public"
  40916. deprecated="not deprecated">
  40917. </constructor>
  40918. </class>
  40919. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40920. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40921. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  40922. abstract="false"
  40923. static="true" final="false" visibility="public"
  40924. deprecated="not deprecated">
  40925. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  40926. static="false" final="false" visibility="public"
  40927. deprecated="not deprecated">
  40928. </constructor>
  40929. </class>
  40930. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40931. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  40932. <class name="GenericOptionsParser" extends="java.lang.Object"
  40933. abstract="false"
  40934. static="false" final="false" visibility="public"
  40935. deprecated="not deprecated">
  40936. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  40937. static="false" final="false" visibility="public"
  40938. deprecated="not deprecated">
  40939. <doc>
  40940. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  40941. arguments.
  40942. The array of string arguments other than the generic arguments can be
  40943. obtained by {@link #getRemainingArgs()}.
  40944. @param conf the <code>Configuration</code> to modify.
  40945. @param args command-line arguments.]]>
  40946. </doc>
  40947. </constructor>
  40948. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  40949. static="false" final="false" visibility="public"
  40950. deprecated="not deprecated">
  40951. <doc>
  40952. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  40953. as generic Hadoop options.
  40954. The resulting <code>CommandLine</code> object can be obtained by
  40955. {@link #getCommandLine()}.
  40956. @param conf the configuration to modify
  40957. @param options options built by the caller
  40958. @param args User-specified arguments]]>
  40959. </doc>
  40960. </constructor>
  40961. <method name="getRemainingArgs" return="java.lang.String[]"
  40962. abstract="false" native="false" synchronized="false"
  40963. static="false" final="false" visibility="public"
  40964. deprecated="not deprecated">
  40965. <doc>
  40966. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  40967. @return array of <code>String</code>s containing the un-parsed arguments
  40968. or <strong>empty array</strong> if commandLine was not defined.]]>
  40969. </doc>
  40970. </method>
  40971. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  40972. abstract="false" native="false" synchronized="false"
  40973. static="false" final="false" visibility="public"
  40974. deprecated="not deprecated">
  40975. <doc>
  40976. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  40977. to process the parsed arguments.
  40978. Note: If the object is created with
  40979. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  40980. object will only contain parsed generic options.
  40981. @return <code>CommandLine</code> representing list of arguments
  40982. parsed against Options descriptor.]]>
  40983. </doc>
  40984. </method>
  40985. <method name="getLibJars" return="java.net.URL[]"
  40986. abstract="false" native="false" synchronized="false"
  40987. static="true" final="false" visibility="public"
  40988. deprecated="not deprecated">
  40989. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40990. <exception name="IOException" type="java.io.IOException"/>
  40991. <doc>
  40992. <![CDATA[If libjars are set in the conf, parse the libjars.
  40993. @param conf
  40994. @return libjar urls
  40995. @throws IOException]]>
  40996. </doc>
  40997. </method>
  40998. <method name="printGenericCommandUsage"
  40999. abstract="false" native="false" synchronized="false"
  41000. static="true" final="false" visibility="public"
  41001. deprecated="not deprecated">
  41002. <param name="out" type="java.io.PrintStream"/>
  41003. <doc>
  41004. <![CDATA[Print the usage message for generic command-line options supported.
  41005. @param out stream to print the usage message to.]]>
  41006. </doc>
  41007. </method>
  41008. <doc>
  41009. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  41010. arguments generic to the Hadoop framework.
  41011. <code>GenericOptionsParser</code> recognizes several standarad command
  41012. line arguments, enabling applications to easily specify a namenode, a
  41013. jobtracker, additional configuration resources etc.
  41014. <h4 id="GenericOptions">Generic Options</h4>
  41015. <p>The supported generic options are:</p>
  41016. <p><blockquote><pre>
  41017. -conf &lt;configuration file&gt; specify a configuration file
  41018. -D &lt;property=value&gt; use value for given property
  41019. -fs &lt;local|namenode:port&gt; specify a namenode
  41020. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  41021. -files &lt;comma separated list of files&gt; specify comma separated
  41022. files to be copied to the map reduce cluster
  41023. -libjars &lt;comma separated list of jars&gt; specify comma separated
  41024. jar files to include in the classpath.
  41025. -archives &lt;comma separated list of archives&gt; specify comma
  41026. separated archives to be unarchived on the compute machines.
  41027. </pre></blockquote></p>
  41028. <p>The general command line syntax is:</p>
  41029. <p><tt><pre>
  41030. bin/hadoop command [genericOptions] [commandOptions]
  41031. </pre></tt></p>
  41032. <p>Generic command line arguments <strong>might</strong> modify
  41033. <code>Configuration </code> objects, given to constructors.</p>
  41034. <p>The functionality is implemented using Commons CLI.</p>
  41035. <p>Examples:</p>
  41036. <p><blockquote><pre>
  41037. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  41038. list /data directory in dfs with namenode darwin:8020
  41039. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  41040. list /data directory in dfs with namenode darwin:8020
  41041. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  41042. list /data directory in dfs with conf specified in hadoop-site.xml
  41043. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  41044. submit a job to job tracker darwin:50020
  41045. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  41046. submit a job to job tracker darwin:50020
  41047. $ bin/hadoop job -jt local -submit job.xml
  41048. submit a job to local runner
  41049. $ bin/hadoop jar -libjars testlib.jar
  41050. -archives test.tgz -files file.txt inputjar args
  41051. job submission with libjars, files and archives
  41052. </pre></blockquote></p>
  41053. @see Tool
  41054. @see ToolRunner]]>
  41055. </doc>
  41056. </class>
  41057. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  41058. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  41059. <class name="GenericsUtil" extends="java.lang.Object"
  41060. abstract="false"
  41061. static="false" final="false" visibility="public"
  41062. deprecated="not deprecated">
  41063. <constructor name="GenericsUtil"
  41064. static="false" final="false" visibility="public"
  41065. deprecated="not deprecated">
  41066. </constructor>
  41067. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  41068. abstract="false" native="false" synchronized="false"
  41069. static="true" final="false" visibility="public"
  41070. deprecated="not deprecated">
  41071. <param name="t" type="T"/>
  41072. <doc>
  41073. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  41074. argument of type <code>T</code>.
  41075. @param <T> The type of the argument
  41076. @param t the object to get it class
  41077. @return <code>Class&lt;T&gt;</code>]]>
  41078. </doc>
  41079. </method>
  41080. <method name="toArray" return="T[]"
  41081. abstract="false" native="false" synchronized="false"
  41082. static="true" final="false" visibility="public"
  41083. deprecated="not deprecated">
  41084. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  41085. <param name="list" type="java.util.List&lt;T&gt;"/>
  41086. <doc>
  41087. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  41088. <code>T[]</code>.
  41089. @param c the Class object of the items in the list
  41090. @param list the list to convert]]>
  41091. </doc>
  41092. </method>
  41093. <method name="toArray" return="T[]"
  41094. abstract="false" native="false" synchronized="false"
  41095. static="true" final="false" visibility="public"
  41096. deprecated="not deprecated">
  41097. <param name="list" type="java.util.List&lt;T&gt;"/>
  41098. <doc>
  41099. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  41100. <code>T[]</code>.
  41101. @param list the list to convert
  41102. @throws ArrayIndexOutOfBoundsException if the list is empty.
  41103. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  41104. </doc>
  41105. </method>
  41106. <doc>
  41107. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  41108. </doc>
  41109. </class>
  41110. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  41111. <!-- start class org.apache.hadoop.util.HeapSort -->
  41112. <class name="HeapSort" extends="java.lang.Object"
  41113. abstract="false"
  41114. static="false" final="true" visibility="public"
  41115. deprecated="not deprecated">
  41116. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41117. <constructor name="HeapSort"
  41118. static="false" final="false" visibility="public"
  41119. deprecated="not deprecated">
  41120. </constructor>
  41121. <method name="sort"
  41122. abstract="false" native="false" synchronized="false"
  41123. static="false" final="false" visibility="public"
  41124. deprecated="not deprecated">
  41125. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41126. <param name="p" type="int"/>
  41127. <param name="r" type="int"/>
  41128. <doc>
  41129. <![CDATA[Sort the given range of items using heap sort.
  41130. {@inheritDoc}]]>
  41131. </doc>
  41132. </method>
  41133. <method name="sort"
  41134. abstract="false" native="false" synchronized="false"
  41135. static="false" final="false" visibility="public"
  41136. deprecated="not deprecated">
  41137. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41138. <param name="p" type="int"/>
  41139. <param name="r" type="int"/>
  41140. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41141. <doc>
  41142. <![CDATA[{@inheritDoc}]]>
  41143. </doc>
  41144. </method>
  41145. <doc>
  41146. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  41147. </doc>
  41148. </class>
  41149. <!-- end class org.apache.hadoop.util.HeapSort -->
  41150. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  41151. <class name="HostsFileReader" extends="java.lang.Object"
  41152. abstract="false"
  41153. static="false" final="false" visibility="public"
  41154. deprecated="not deprecated">
  41155. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  41156. static="false" final="false" visibility="public"
  41157. deprecated="not deprecated">
  41158. <exception name="IOException" type="java.io.IOException"/>
  41159. </constructor>
  41160. <method name="refresh"
  41161. abstract="false" native="false" synchronized="true"
  41162. static="false" final="false" visibility="public"
  41163. deprecated="not deprecated">
  41164. <exception name="IOException" type="java.io.IOException"/>
  41165. </method>
  41166. <method name="getHosts" return="java.util.Set&lt;java.lang.String&gt;"
  41167. abstract="false" native="false" synchronized="false"
  41168. static="false" final="false" visibility="public"
  41169. deprecated="not deprecated">
  41170. </method>
  41171. <method name="getExcludedHosts" return="java.util.Set&lt;java.lang.String&gt;"
  41172. abstract="false" native="false" synchronized="false"
  41173. static="false" final="false" visibility="public"
  41174. deprecated="not deprecated">
  41175. </method>
  41176. <method name="setIncludesFile"
  41177. abstract="false" native="false" synchronized="true"
  41178. static="false" final="false" visibility="public"
  41179. deprecated="not deprecated">
  41180. <param name="includesFile" type="java.lang.String"/>
  41181. </method>
  41182. <method name="setExcludesFile"
  41183. abstract="false" native="false" synchronized="true"
  41184. static="false" final="false" visibility="public"
  41185. deprecated="not deprecated">
  41186. <param name="excludesFile" type="java.lang.String"/>
  41187. </method>
  41188. <method name="updateFileNames"
  41189. abstract="false" native="false" synchronized="true"
  41190. static="false" final="false" visibility="public"
  41191. deprecated="not deprecated">
  41192. <param name="includesFile" type="java.lang.String"/>
  41193. <param name="excludesFile" type="java.lang.String"/>
  41194. <exception name="IOException" type="java.io.IOException"/>
  41195. </method>
  41196. </class>
  41197. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  41198. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  41199. <interface name="IndexedSortable" abstract="true"
  41200. static="false" final="false" visibility="public"
  41201. deprecated="not deprecated">
  41202. <method name="compare" return="int"
  41203. abstract="false" native="false" synchronized="false"
  41204. static="false" final="false" visibility="public"
  41205. deprecated="not deprecated">
  41206. <param name="i" type="int"/>
  41207. <param name="j" type="int"/>
  41208. <doc>
  41209. <![CDATA[Compare items at the given addresses consistent with the semantics of
  41210. {@link java.util.Comparable#compare}.]]>
  41211. </doc>
  41212. </method>
  41213. <method name="swap"
  41214. abstract="false" native="false" synchronized="false"
  41215. static="false" final="false" visibility="public"
  41216. deprecated="not deprecated">
  41217. <param name="i" type="int"/>
  41218. <param name="j" type="int"/>
  41219. <doc>
  41220. <![CDATA[Swap items at the given addresses.]]>
  41221. </doc>
  41222. </method>
  41223. <doc>
  41224. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  41225. algorithms.]]>
  41226. </doc>
  41227. </interface>
  41228. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  41229. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  41230. <interface name="IndexedSorter" abstract="true"
  41231. static="false" final="false" visibility="public"
  41232. deprecated="not deprecated">
  41233. <method name="sort"
  41234. abstract="false" native="false" synchronized="false"
  41235. static="false" final="false" visibility="public"
  41236. deprecated="not deprecated">
  41237. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41238. <param name="l" type="int"/>
  41239. <param name="r" type="int"/>
  41240. <doc>
  41241. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  41242. range of logical indices. From the perspective of the sort algorithm,
  41243. each index between l (inclusive) and r (exclusive) is an addressable
  41244. entry.
  41245. @see IndexedSortable#compare
  41246. @see IndexedSortable#swap]]>
  41247. </doc>
  41248. </method>
  41249. <method name="sort"
  41250. abstract="false" native="false" synchronized="false"
  41251. static="false" final="false" visibility="public"
  41252. deprecated="not deprecated">
  41253. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41254. <param name="l" type="int"/>
  41255. <param name="r" type="int"/>
  41256. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41257. <doc>
  41258. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  41259. periodically.
  41260. @see #sort(IndexedSortable,int,int)]]>
  41261. </doc>
  41262. </method>
  41263. <doc>
  41264. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  41265. A sort algorithm implementing this interface may only
  41266. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  41267. for a range of indices to effect a sort across that range.]]>
  41268. </doc>
  41269. </interface>
  41270. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  41271. <!-- start class org.apache.hadoop.util.LineReader -->
  41272. <class name="LineReader" extends="java.lang.Object"
  41273. abstract="false"
  41274. static="false" final="false" visibility="public"
  41275. deprecated="not deprecated">
  41276. <constructor name="LineReader" type="java.io.InputStream"
  41277. static="false" final="false" visibility="public"
  41278. deprecated="not deprecated">
  41279. <doc>
  41280. <![CDATA[Create a line reader that reads from the given stream using the
  41281. default buffer-size (64k).
  41282. @param in The input stream
  41283. @throws IOException]]>
  41284. </doc>
  41285. </constructor>
  41286. <constructor name="LineReader" type="java.io.InputStream, int"
  41287. static="false" final="false" visibility="public"
  41288. deprecated="not deprecated">
  41289. <doc>
  41290. <![CDATA[Create a line reader that reads from the given stream using the
  41291. given buffer-size.
  41292. @param in The input stream
  41293. @param bufferSize Size of the read buffer
  41294. @throws IOException]]>
  41295. </doc>
  41296. </constructor>
  41297. <constructor name="LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  41298. static="false" final="false" visibility="public"
  41299. deprecated="not deprecated">
  41300. <exception name="IOException" type="java.io.IOException"/>
  41301. <doc>
  41302. <![CDATA[Create a line reader that reads from the given stream using the
  41303. <code>io.file.buffer.size</code> specified in the given
  41304. <code>Configuration</code>.
  41305. @param in input stream
  41306. @param conf configuration
  41307. @throws IOException]]>
  41308. </doc>
  41309. </constructor>
  41310. <method name="close"
  41311. abstract="false" native="false" synchronized="false"
  41312. static="false" final="false" visibility="public"
  41313. deprecated="not deprecated">
  41314. <exception name="IOException" type="java.io.IOException"/>
  41315. <doc>
  41316. <![CDATA[Close the underlying stream.
  41317. @throws IOException]]>
  41318. </doc>
  41319. </method>
  41320. <method name="readLine" return="int"
  41321. abstract="false" native="false" synchronized="false"
  41322. static="false" final="false" visibility="public"
  41323. deprecated="not deprecated">
  41324. <param name="str" type="org.apache.hadoop.io.Text"/>
  41325. <param name="maxLineLength" type="int"/>
  41326. <param name="maxBytesToConsume" type="int"/>
  41327. <exception name="IOException" type="java.io.IOException"/>
  41328. <doc>
  41329. <![CDATA[Read from the InputStream into the given Text.
  41330. @param str the object to store the given line
  41331. @param maxLineLength the maximum number of bytes to store into str.
  41332. @param maxBytesToConsume the maximum number of bytes to consume in this call.
  41333. @return the number of bytes read including the newline
  41334. @throws IOException if the underlying stream throws]]>
  41335. </doc>
  41336. </method>
  41337. <method name="readLine" return="int"
  41338. abstract="false" native="false" synchronized="false"
  41339. static="false" final="false" visibility="public"
  41340. deprecated="not deprecated">
  41341. <param name="str" type="org.apache.hadoop.io.Text"/>
  41342. <param name="maxLineLength" type="int"/>
  41343. <exception name="IOException" type="java.io.IOException"/>
  41344. <doc>
  41345. <![CDATA[Read from the InputStream into the given Text.
  41346. @param str the object to store the given line
  41347. @param maxLineLength the maximum number of bytes to store into str.
  41348. @return the number of bytes read including the newline
  41349. @throws IOException if the underlying stream throws]]>
  41350. </doc>
  41351. </method>
  41352. <method name="readLine" return="int"
  41353. abstract="false" native="false" synchronized="false"
  41354. static="false" final="false" visibility="public"
  41355. deprecated="not deprecated">
  41356. <param name="str" type="org.apache.hadoop.io.Text"/>
  41357. <exception name="IOException" type="java.io.IOException"/>
  41358. <doc>
  41359. <![CDATA[Read from the InputStream into the given Text.
  41360. @param str the object to store the given line
  41361. @return the number of bytes read including the newline
  41362. @throws IOException if the underlying stream throws]]>
  41363. </doc>
  41364. </method>
  41365. <doc>
  41366. <![CDATA[A class that provides a line reader from an input stream.]]>
  41367. </doc>
  41368. </class>
  41369. <!-- end class org.apache.hadoop.util.LineReader -->
  41370. <!-- start class org.apache.hadoop.util.MergeSort -->
  41371. <class name="MergeSort" extends="java.lang.Object"
  41372. abstract="false"
  41373. static="false" final="false" visibility="public"
  41374. deprecated="not deprecated">
  41375. <constructor name="MergeSort" type="java.util.Comparator&lt;org.apache.hadoop.io.IntWritable&gt;"
  41376. static="false" final="false" visibility="public"
  41377. deprecated="not deprecated">
  41378. </constructor>
  41379. <method name="mergeSort"
  41380. abstract="false" native="false" synchronized="false"
  41381. static="false" final="false" visibility="public"
  41382. deprecated="not deprecated">
  41383. <param name="src" type="int[]"/>
  41384. <param name="dest" type="int[]"/>
  41385. <param name="low" type="int"/>
  41386. <param name="high" type="int"/>
  41387. </method>
  41388. <doc>
  41389. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  41390. </doc>
  41391. </class>
  41392. <!-- end class org.apache.hadoop.util.MergeSort -->
  41393. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  41394. <class name="NativeCodeLoader" extends="java.lang.Object"
  41395. abstract="false"
  41396. static="false" final="false" visibility="public"
  41397. deprecated="not deprecated">
  41398. <constructor name="NativeCodeLoader"
  41399. static="false" final="false" visibility="public"
  41400. deprecated="not deprecated">
  41401. </constructor>
  41402. <method name="isNativeCodeLoaded" return="boolean"
  41403. abstract="false" native="false" synchronized="false"
  41404. static="true" final="false" visibility="public"
  41405. deprecated="not deprecated">
  41406. <doc>
  41407. <![CDATA[Check if native-hadoop code is loaded for this platform.
  41408. @return <code>true</code> if native-hadoop is loaded,
  41409. else <code>false</code>]]>
  41410. </doc>
  41411. </method>
  41412. <method name="getLoadNativeLibraries" return="boolean"
  41413. abstract="false" native="false" synchronized="false"
  41414. static="false" final="false" visibility="public"
  41415. deprecated="not deprecated">
  41416. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41417. <doc>
  41418. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  41419. @param conf configuration
  41420. @return <code>true</code> if native hadoop libraries, if present, can be
  41421. used for this job; <code>false</code> otherwise.]]>
  41422. </doc>
  41423. </method>
  41424. <method name="setLoadNativeLibraries"
  41425. abstract="false" native="false" synchronized="false"
  41426. static="false" final="false" visibility="public"
  41427. deprecated="not deprecated">
  41428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41429. <param name="loadNativeLibraries" type="boolean"/>
  41430. <doc>
  41431. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  41432. @param conf configuration
  41433. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  41434. </doc>
  41435. </method>
  41436. <doc>
  41437. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  41438. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  41439. or the the default java implementations where appropriate.]]>
  41440. </doc>
  41441. </class>
  41442. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  41443. <!-- start class org.apache.hadoop.util.PlatformName -->
  41444. <class name="PlatformName" extends="java.lang.Object"
  41445. abstract="false"
  41446. static="false" final="false" visibility="public"
  41447. deprecated="not deprecated">
  41448. <constructor name="PlatformName"
  41449. static="false" final="false" visibility="public"
  41450. deprecated="not deprecated">
  41451. </constructor>
  41452. <method name="getPlatformName" return="java.lang.String"
  41453. abstract="false" native="false" synchronized="false"
  41454. static="true" final="false" visibility="public"
  41455. deprecated="not deprecated">
  41456. <doc>
  41457. <![CDATA[Get the complete platform as per the java-vm.
  41458. @return returns the complete platform as per the java-vm.]]>
  41459. </doc>
  41460. </method>
  41461. <method name="main"
  41462. abstract="false" native="false" synchronized="false"
  41463. static="true" final="false" visibility="public"
  41464. deprecated="not deprecated">
  41465. <param name="args" type="java.lang.String[]"/>
  41466. </method>
  41467. <doc>
  41468. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  41469. </doc>
  41470. </class>
  41471. <!-- end class org.apache.hadoop.util.PlatformName -->
  41472. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  41473. <class name="PrintJarMainClass" extends="java.lang.Object"
  41474. abstract="false"
  41475. static="false" final="false" visibility="public"
  41476. deprecated="not deprecated">
  41477. <constructor name="PrintJarMainClass"
  41478. static="false" final="false" visibility="public"
  41479. deprecated="not deprecated">
  41480. </constructor>
  41481. <method name="main"
  41482. abstract="false" native="false" synchronized="false"
  41483. static="true" final="false" visibility="public"
  41484. deprecated="not deprecated">
  41485. <param name="args" type="java.lang.String[]"/>
  41486. <doc>
  41487. <![CDATA[@param args]]>
  41488. </doc>
  41489. </method>
  41490. <doc>
  41491. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  41492. </doc>
  41493. </class>
  41494. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  41495. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  41496. <class name="PriorityQueue" extends="java.lang.Object"
  41497. abstract="true"
  41498. static="false" final="false" visibility="public"
  41499. deprecated="not deprecated">
  41500. <constructor name="PriorityQueue"
  41501. static="false" final="false" visibility="public"
  41502. deprecated="not deprecated">
  41503. </constructor>
  41504. <method name="lessThan" return="boolean"
  41505. abstract="true" native="false" synchronized="false"
  41506. static="false" final="false" visibility="protected"
  41507. deprecated="not deprecated">
  41508. <param name="a" type="java.lang.Object"/>
  41509. <param name="b" type="java.lang.Object"/>
  41510. <doc>
  41511. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  41512. must define this one method.]]>
  41513. </doc>
  41514. </method>
  41515. <method name="initialize"
  41516. abstract="false" native="false" synchronized="false"
  41517. static="false" final="true" visibility="protected"
  41518. deprecated="not deprecated">
  41519. <param name="maxSize" type="int"/>
  41520. <doc>
  41521. <![CDATA[Subclass constructors must call this.]]>
  41522. </doc>
  41523. </method>
  41524. <method name="put"
  41525. abstract="false" native="false" synchronized="false"
  41526. static="false" final="true" visibility="public"
  41527. deprecated="not deprecated">
  41528. <param name="element" type="T"/>
  41529. <doc>
  41530. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  41531. If one tries to add more objects than maxSize from initialize
  41532. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  41533. </doc>
  41534. </method>
  41535. <method name="insert" return="boolean"
  41536. abstract="false" native="false" synchronized="false"
  41537. static="false" final="false" visibility="public"
  41538. deprecated="not deprecated">
  41539. <param name="element" type="T"/>
  41540. <doc>
  41541. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  41542. the PriorityQueue is not full, or not lessThan(element, top()).
  41543. @param element
  41544. @return true if element is added, false otherwise.]]>
  41545. </doc>
  41546. </method>
  41547. <method name="top" return="T"
  41548. abstract="false" native="false" synchronized="false"
  41549. static="false" final="true" visibility="public"
  41550. deprecated="not deprecated">
  41551. <doc>
  41552. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  41553. </doc>
  41554. </method>
  41555. <method name="pop" return="T"
  41556. abstract="false" native="false" synchronized="false"
  41557. static="false" final="true" visibility="public"
  41558. deprecated="not deprecated">
  41559. <doc>
  41560. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  41561. time.]]>
  41562. </doc>
  41563. </method>
  41564. <method name="adjustTop"
  41565. abstract="false" native="false" synchronized="false"
  41566. static="false" final="true" visibility="public"
  41567. deprecated="not deprecated">
  41568. <doc>
  41569. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  41570. worst case, but it's at least twice as fast to <pre>
  41571. { pq.top().change(); pq.adjustTop(); }
  41572. </pre> instead of <pre>
  41573. { o = pq.pop(); o.change(); pq.push(o); }
  41574. </pre>]]>
  41575. </doc>
  41576. </method>
  41577. <method name="size" return="int"
  41578. abstract="false" native="false" synchronized="false"
  41579. static="false" final="true" visibility="public"
  41580. deprecated="not deprecated">
  41581. <doc>
  41582. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  41583. </doc>
  41584. </method>
  41585. <method name="clear"
  41586. abstract="false" native="false" synchronized="false"
  41587. static="false" final="true" visibility="public"
  41588. deprecated="not deprecated">
  41589. <doc>
  41590. <![CDATA[Removes all entries from the PriorityQueue.]]>
  41591. </doc>
  41592. </method>
  41593. <doc>
  41594. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  41595. least element can always be found in constant time. Put()'s and pop()'s
  41596. require log(size) time.]]>
  41597. </doc>
  41598. </class>
  41599. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  41600. <!-- start class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41601. <class name="ProcfsBasedProcessTree" extends="java.lang.Object"
  41602. abstract="false"
  41603. static="false" final="false" visibility="public"
  41604. deprecated="not deprecated">
  41605. <constructor name="ProcfsBasedProcessTree" type="java.lang.String"
  41606. static="false" final="false" visibility="public"
  41607. deprecated="not deprecated">
  41608. </constructor>
  41609. <method name="setSigKillInterval"
  41610. abstract="false" native="false" synchronized="false"
  41611. static="false" final="false" visibility="public"
  41612. deprecated="not deprecated">
  41613. <param name="interval" type="long"/>
  41614. </method>
  41615. <method name="isAvailable" return="boolean"
  41616. abstract="false" native="false" synchronized="false"
  41617. static="true" final="false" visibility="public"
  41618. deprecated="not deprecated">
  41619. <doc>
  41620. <![CDATA[Checks if the ProcfsBasedProcessTree is available on this system.
  41621. @return true if ProcfsBasedProcessTree is available. False otherwise.]]>
  41622. </doc>
  41623. </method>
  41624. <method name="getProcessTree" return="org.apache.hadoop.util.ProcfsBasedProcessTree"
  41625. abstract="false" native="false" synchronized="false"
  41626. static="false" final="false" visibility="public"
  41627. deprecated="not deprecated">
  41628. <doc>
  41629. <![CDATA[Get the process-tree with latest state.
  41630. @return the process-tree with latest state.]]>
  41631. </doc>
  41632. </method>
  41633. <method name="isAlive" return="boolean"
  41634. abstract="false" native="false" synchronized="false"
  41635. static="false" final="false" visibility="public"
  41636. deprecated="not deprecated">
  41637. <doc>
  41638. <![CDATA[Is the process-tree alive? Currently we care only about the status of the
  41639. root-process.
  41640. @return true if the process-true is alive, false otherwise.]]>
  41641. </doc>
  41642. </method>
  41643. <method name="destroy"
  41644. abstract="false" native="false" synchronized="false"
  41645. static="false" final="false" visibility="public"
  41646. deprecated="not deprecated">
  41647. <doc>
  41648. <![CDATA[Destroy the process-tree. Currently we only make sure the root process is
  41649. gone. It is the responsibility of the root process to make sure that all
  41650. its descendants are cleaned up.]]>
  41651. </doc>
  41652. </method>
  41653. <method name="getCumulativeVmem" return="long"
  41654. abstract="false" native="false" synchronized="false"
  41655. static="false" final="false" visibility="public"
  41656. deprecated="not deprecated">
  41657. <doc>
  41658. <![CDATA[Get the cumulative virtual memory used by all the processes in the
  41659. process-tree.
  41660. @return cumulative virtual memory used by the process-tree in kilobytes.]]>
  41661. </doc>
  41662. </method>
  41663. <method name="getPidFromPidFile" return="java.lang.String"
  41664. abstract="false" native="false" synchronized="false"
  41665. static="true" final="false" visibility="public"
  41666. deprecated="not deprecated">
  41667. <param name="pidFileName" type="java.lang.String"/>
  41668. <doc>
  41669. <![CDATA[Get PID from a pid-file.
  41670. @param pidFileName
  41671. Name of the pid-file.
  41672. @return the PID string read from the pid-file. Returns null if the
  41673. pidFileName points to a non-existing file or if read fails from the
  41674. file.]]>
  41675. </doc>
  41676. </method>
  41677. <method name="toString" return="java.lang.String"
  41678. abstract="false" native="false" synchronized="false"
  41679. static="false" final="false" visibility="public"
  41680. deprecated="not deprecated">
  41681. <doc>
  41682. <![CDATA[Returns a string printing PIDs of process present in the
  41683. ProcfsBasedProcessTree. Output format : [pid pid ..]]]>
  41684. </doc>
  41685. </method>
  41686. <field name="DEFAULT_SLEEPTIME_BEFORE_SIGKILL" type="long"
  41687. transient="false" volatile="false"
  41688. static="true" final="true" visibility="public"
  41689. deprecated="not deprecated">
  41690. </field>
  41691. <doc>
  41692. <![CDATA[A Proc file-system based ProcessTree. Works only on Linux.]]>
  41693. </doc>
  41694. </class>
  41695. <!-- end class org.apache.hadoop.util.ProcfsBasedProcessTree -->
  41696. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  41697. <class name="ProgramDriver" extends="java.lang.Object"
  41698. abstract="false"
  41699. static="false" final="false" visibility="public"
  41700. deprecated="not deprecated">
  41701. <constructor name="ProgramDriver"
  41702. static="false" final="false" visibility="public"
  41703. deprecated="not deprecated">
  41704. </constructor>
  41705. <method name="addClass"
  41706. abstract="false" native="false" synchronized="false"
  41707. static="false" final="false" visibility="public"
  41708. deprecated="not deprecated">
  41709. <param name="name" type="java.lang.String"/>
  41710. <param name="mainClass" type="java.lang.Class"/>
  41711. <param name="description" type="java.lang.String"/>
  41712. <exception name="Throwable" type="java.lang.Throwable"/>
  41713. <doc>
  41714. <![CDATA[This is the method that adds the classed to the repository
  41715. @param name The name of the string you want the class instance to be called with
  41716. @param mainClass The class that you want to add to the repository
  41717. @param description The description of the class
  41718. @throws NoSuchMethodException
  41719. @throws SecurityException]]>
  41720. </doc>
  41721. </method>
  41722. <method name="driver"
  41723. abstract="false" native="false" synchronized="false"
  41724. static="false" final="false" visibility="public"
  41725. deprecated="not deprecated">
  41726. <param name="args" type="java.lang.String[]"/>
  41727. <exception name="Throwable" type="java.lang.Throwable"/>
  41728. <doc>
  41729. <![CDATA[This is a driver for the example programs.
  41730. It looks at the first command line argument and tries to find an
  41731. example program with that name.
  41732. If it is found, it calls the main method in that class with the rest
  41733. of the command line arguments.
  41734. @param args The argument from the user. args[0] is the command to run.
  41735. @throws NoSuchMethodException
  41736. @throws SecurityException
  41737. @throws IllegalAccessException
  41738. @throws IllegalArgumentException
  41739. @throws Throwable Anything thrown by the example program's main]]>
  41740. </doc>
  41741. </method>
  41742. <doc>
  41743. <![CDATA[A driver that is used to run programs added to it]]>
  41744. </doc>
  41745. </class>
  41746. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  41747. <!-- start class org.apache.hadoop.util.Progress -->
  41748. <class name="Progress" extends="java.lang.Object"
  41749. abstract="false"
  41750. static="false" final="false" visibility="public"
  41751. deprecated="not deprecated">
  41752. <constructor name="Progress"
  41753. static="false" final="false" visibility="public"
  41754. deprecated="not deprecated">
  41755. <doc>
  41756. <![CDATA[Creates a new root node.]]>
  41757. </doc>
  41758. </constructor>
  41759. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41760. abstract="false" native="false" synchronized="false"
  41761. static="false" final="false" visibility="public"
  41762. deprecated="not deprecated">
  41763. <param name="status" type="java.lang.String"/>
  41764. <doc>
  41765. <![CDATA[Adds a named node to the tree.]]>
  41766. </doc>
  41767. </method>
  41768. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  41769. abstract="false" native="false" synchronized="true"
  41770. static="false" final="false" visibility="public"
  41771. deprecated="not deprecated">
  41772. <doc>
  41773. <![CDATA[Adds a node to the tree.]]>
  41774. </doc>
  41775. </method>
  41776. <method name="startNextPhase"
  41777. abstract="false" native="false" synchronized="true"
  41778. static="false" final="false" visibility="public"
  41779. deprecated="not deprecated">
  41780. <doc>
  41781. <![CDATA[Called during execution to move to the next phase at this level in the
  41782. tree.]]>
  41783. </doc>
  41784. </method>
  41785. <method name="phase" return="org.apache.hadoop.util.Progress"
  41786. abstract="false" native="false" synchronized="true"
  41787. static="false" final="false" visibility="public"
  41788. deprecated="not deprecated">
  41789. <doc>
  41790. <![CDATA[Returns the current sub-node executing.]]>
  41791. </doc>
  41792. </method>
  41793. <method name="complete"
  41794. abstract="false" native="false" synchronized="false"
  41795. static="false" final="false" visibility="public"
  41796. deprecated="not deprecated">
  41797. <doc>
  41798. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  41799. </doc>
  41800. </method>
  41801. <method name="set"
  41802. abstract="false" native="false" synchronized="true"
  41803. static="false" final="false" visibility="public"
  41804. deprecated="not deprecated">
  41805. <param name="progress" type="float"/>
  41806. <doc>
  41807. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  41808. </doc>
  41809. </method>
  41810. <method name="get" return="float"
  41811. abstract="false" native="false" synchronized="true"
  41812. static="false" final="false" visibility="public"
  41813. deprecated="not deprecated">
  41814. <doc>
  41815. <![CDATA[Returns the overall progress of the root.]]>
  41816. </doc>
  41817. </method>
  41818. <method name="setStatus"
  41819. abstract="false" native="false" synchronized="true"
  41820. static="false" final="false" visibility="public"
  41821. deprecated="not deprecated">
  41822. <param name="status" type="java.lang.String"/>
  41823. </method>
  41824. <method name="toString" return="java.lang.String"
  41825. abstract="false" native="false" synchronized="false"
  41826. static="false" final="false" visibility="public"
  41827. deprecated="not deprecated">
  41828. </method>
  41829. <doc>
  41830. <![CDATA[Utility to assist with generation of progress reports. Applications build
  41831. a hierarchy of {@link Progress} instances, each modelling a phase of
  41832. execution. The root is constructed with {@link #Progress()}. Nodes for
  41833. sub-phases are created by calling {@link #addPhase()}.]]>
  41834. </doc>
  41835. </class>
  41836. <!-- end class org.apache.hadoop.util.Progress -->
  41837. <!-- start interface org.apache.hadoop.util.Progressable -->
  41838. <interface name="Progressable" abstract="true"
  41839. static="false" final="false" visibility="public"
  41840. deprecated="not deprecated">
  41841. <method name="progress"
  41842. abstract="false" native="false" synchronized="false"
  41843. static="false" final="false" visibility="public"
  41844. deprecated="not deprecated">
  41845. <doc>
  41846. <![CDATA[Report progress to the Hadoop framework.]]>
  41847. </doc>
  41848. </method>
  41849. <doc>
  41850. <![CDATA[A facility for reporting progress.
  41851. <p>Clients and/or applications can use the provided <code>Progressable</code>
  41852. to explicitly report progress to the Hadoop framework. This is especially
  41853. important for operations which take an insignificant amount of time since,
  41854. in-lieu of the reported progress, the framework has to assume that an error
  41855. has occured and time-out the operation.</p>]]>
  41856. </doc>
  41857. </interface>
  41858. <!-- end interface org.apache.hadoop.util.Progressable -->
  41859. <!-- start class org.apache.hadoop.util.QuickSort -->
  41860. <class name="QuickSort" extends="java.lang.Object"
  41861. abstract="false"
  41862. static="false" final="true" visibility="public"
  41863. deprecated="not deprecated">
  41864. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41865. <constructor name="QuickSort"
  41866. static="false" final="false" visibility="public"
  41867. deprecated="not deprecated">
  41868. </constructor>
  41869. <method name="getMaxDepth" return="int"
  41870. abstract="false" native="false" synchronized="false"
  41871. static="true" final="false" visibility="protected"
  41872. deprecated="not deprecated">
  41873. <param name="x" type="int"/>
  41874. <doc>
  41875. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  41876. Returns 2 * ceil(log(n)).]]>
  41877. </doc>
  41878. </method>
  41879. <method name="sort"
  41880. abstract="false" native="false" synchronized="false"
  41881. static="false" final="false" visibility="public"
  41882. deprecated="not deprecated">
  41883. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41884. <param name="p" type="int"/>
  41885. <param name="r" type="int"/>
  41886. <doc>
  41887. <![CDATA[Sort the given range of items using quick sort.
  41888. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  41889. then switch to {@link HeapSort}.]]>
  41890. </doc>
  41891. </method>
  41892. <method name="sort"
  41893. abstract="false" native="false" synchronized="false"
  41894. static="false" final="false" visibility="public"
  41895. deprecated="not deprecated">
  41896. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41897. <param name="p" type="int"/>
  41898. <param name="r" type="int"/>
  41899. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41900. <doc>
  41901. <![CDATA[{@inheritDoc}]]>
  41902. </doc>
  41903. </method>
  41904. <doc>
  41905. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  41906. </doc>
  41907. </class>
  41908. <!-- end class org.apache.hadoop.util.QuickSort -->
  41909. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41910. <class name="ReflectionUtils" extends="java.lang.Object"
  41911. abstract="false"
  41912. static="false" final="false" visibility="public"
  41913. deprecated="not deprecated">
  41914. <constructor name="ReflectionUtils"
  41915. static="false" final="false" visibility="public"
  41916. deprecated="not deprecated">
  41917. </constructor>
  41918. <method name="setConf"
  41919. abstract="false" native="false" synchronized="false"
  41920. static="true" final="false" visibility="public"
  41921. deprecated="not deprecated">
  41922. <param name="theObject" type="java.lang.Object"/>
  41923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41924. <doc>
  41925. <![CDATA[Check and set 'configuration' if necessary.
  41926. @param theObject object for which to set configuration
  41927. @param conf Configuration]]>
  41928. </doc>
  41929. </method>
  41930. <method name="newInstance" return="T"
  41931. abstract="false" native="false" synchronized="false"
  41932. static="true" final="false" visibility="public"
  41933. deprecated="not deprecated">
  41934. <param name="theClass" type="java.lang.Class&lt;T&gt;"/>
  41935. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41936. <doc>
  41937. <![CDATA[Create an object for the given class and initialize it from conf
  41938. @param theClass class of which an object is created
  41939. @param conf Configuration
  41940. @return a new object]]>
  41941. </doc>
  41942. </method>
  41943. <method name="setContentionTracing"
  41944. abstract="false" native="false" synchronized="false"
  41945. static="true" final="false" visibility="public"
  41946. deprecated="not deprecated">
  41947. <param name="val" type="boolean"/>
  41948. </method>
  41949. <method name="printThreadInfo"
  41950. abstract="false" native="false" synchronized="false"
  41951. static="true" final="false" visibility="public"
  41952. deprecated="not deprecated">
  41953. <param name="stream" type="java.io.PrintWriter"/>
  41954. <param name="title" type="java.lang.String"/>
  41955. <doc>
  41956. <![CDATA[Print all of the thread's information and stack traces.
  41957. @param stream the stream to
  41958. @param title a string title for the stack trace]]>
  41959. </doc>
  41960. </method>
  41961. <method name="logThreadInfo"
  41962. abstract="false" native="false" synchronized="false"
  41963. static="true" final="false" visibility="public"
  41964. deprecated="not deprecated">
  41965. <param name="log" type="org.apache.commons.logging.Log"/>
  41966. <param name="title" type="java.lang.String"/>
  41967. <param name="minInterval" type="long"/>
  41968. <doc>
  41969. <![CDATA[Log the current thread stacks at INFO level.
  41970. @param log the logger that logs the stack trace
  41971. @param title a descriptive title for the call stacks
  41972. @param minInterval the minimum time from the last]]>
  41973. </doc>
  41974. </method>
  41975. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  41976. abstract="false" native="false" synchronized="false"
  41977. static="true" final="false" visibility="public"
  41978. deprecated="not deprecated">
  41979. <param name="o" type="T"/>
  41980. <doc>
  41981. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  41982. @param o object whose correctly-typed <code>Class</code> is to be obtained
  41983. @return the correctly typed <code>Class</code> of the given object.]]>
  41984. </doc>
  41985. </method>
  41986. <doc>
  41987. <![CDATA[General reflection utils]]>
  41988. </doc>
  41989. </class>
  41990. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41991. <!-- start class org.apache.hadoop.util.RunJar -->
  41992. <class name="RunJar" extends="java.lang.Object"
  41993. abstract="false"
  41994. static="false" final="false" visibility="public"
  41995. deprecated="not deprecated">
  41996. <constructor name="RunJar"
  41997. static="false" final="false" visibility="public"
  41998. deprecated="not deprecated">
  41999. </constructor>
  42000. <method name="unJar"
  42001. abstract="false" native="false" synchronized="false"
  42002. static="true" final="false" visibility="public"
  42003. deprecated="not deprecated">
  42004. <param name="jarFile" type="java.io.File"/>
  42005. <param name="toDir" type="java.io.File"/>
  42006. <exception name="IOException" type="java.io.IOException"/>
  42007. <doc>
  42008. <![CDATA[Unpack a jar file into a directory.]]>
  42009. </doc>
  42010. </method>
  42011. <method name="main"
  42012. abstract="false" native="false" synchronized="false"
  42013. static="true" final="false" visibility="public"
  42014. deprecated="not deprecated">
  42015. <param name="args" type="java.lang.String[]"/>
  42016. <exception name="Throwable" type="java.lang.Throwable"/>
  42017. <doc>
  42018. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  42019. then it must be provided on the command line.]]>
  42020. </doc>
  42021. </method>
  42022. <doc>
  42023. <![CDATA[Run a Hadoop job jar.]]>
  42024. </doc>
  42025. </class>
  42026. <!-- end class org.apache.hadoop.util.RunJar -->
  42027. <!-- start class org.apache.hadoop.util.ServletUtil -->
  42028. <class name="ServletUtil" extends="java.lang.Object"
  42029. abstract="false"
  42030. static="false" final="false" visibility="public"
  42031. deprecated="not deprecated">
  42032. <constructor name="ServletUtil"
  42033. static="false" final="false" visibility="public"
  42034. deprecated="not deprecated">
  42035. </constructor>
  42036. <method name="initHTML" return="java.io.PrintWriter"
  42037. abstract="false" native="false" synchronized="false"
  42038. static="true" final="false" visibility="public"
  42039. deprecated="not deprecated">
  42040. <param name="response" type="javax.servlet.ServletResponse"/>
  42041. <param name="title" type="java.lang.String"/>
  42042. <exception name="IOException" type="java.io.IOException"/>
  42043. <doc>
  42044. <![CDATA[Initial HTML header]]>
  42045. </doc>
  42046. </method>
  42047. <method name="getParameter" return="java.lang.String"
  42048. abstract="false" native="false" synchronized="false"
  42049. static="true" final="false" visibility="public"
  42050. deprecated="not deprecated">
  42051. <param name="request" type="javax.servlet.ServletRequest"/>
  42052. <param name="name" type="java.lang.String"/>
  42053. <doc>
  42054. <![CDATA[Get a parameter from a ServletRequest.
  42055. Return null if the parameter contains only white spaces.]]>
  42056. </doc>
  42057. </method>
  42058. <method name="htmlFooter" return="java.lang.String"
  42059. abstract="false" native="false" synchronized="false"
  42060. static="true" final="false" visibility="public"
  42061. deprecated="not deprecated">
  42062. <doc>
  42063. <![CDATA[HTML footer to be added in the jsps.
  42064. @return the HTML footer.]]>
  42065. </doc>
  42066. </method>
  42067. <method name="percentageGraph" return="java.lang.String"
  42068. abstract="false" native="false" synchronized="false"
  42069. static="true" final="false" visibility="public"
  42070. deprecated="not deprecated">
  42071. <param name="perc" type="int"/>
  42072. <param name="width" type="int"/>
  42073. <exception name="IOException" type="java.io.IOException"/>
  42074. <doc>
  42075. <![CDATA[Generate the percentage graph and returns HTML representation string
  42076. of the same.
  42077. @param perc The percentage value for which graph is to be generated
  42078. @param width The width of the display table
  42079. @return HTML String representation of the percentage graph
  42080. @throws IOException]]>
  42081. </doc>
  42082. </method>
  42083. <method name="percentageGraph" return="java.lang.String"
  42084. abstract="false" native="false" synchronized="false"
  42085. static="true" final="false" visibility="public"
  42086. deprecated="not deprecated">
  42087. <param name="perc" type="float"/>
  42088. <param name="width" type="int"/>
  42089. <exception name="IOException" type="java.io.IOException"/>
  42090. <doc>
  42091. <![CDATA[Generate the percentage graph and returns HTML representation string
  42092. of the same.
  42093. @param perc The percentage value for which graph is to be generated
  42094. @param width The width of the display table
  42095. @return HTML String representation of the percentage graph
  42096. @throws IOException]]>
  42097. </doc>
  42098. </method>
  42099. <field name="HTML_TAIL" type="java.lang.String"
  42100. transient="false" volatile="false"
  42101. static="true" final="true" visibility="public"
  42102. deprecated="not deprecated">
  42103. </field>
  42104. </class>
  42105. <!-- end class org.apache.hadoop.util.ServletUtil -->
  42106. <!-- start class org.apache.hadoop.util.Shell -->
  42107. <class name="Shell" extends="java.lang.Object"
  42108. abstract="true"
  42109. static="false" final="false" visibility="public"
  42110. deprecated="not deprecated">
  42111. <constructor name="Shell"
  42112. static="false" final="false" visibility="public"
  42113. deprecated="not deprecated">
  42114. </constructor>
  42115. <constructor name="Shell" type="long"
  42116. static="false" final="false" visibility="public"
  42117. deprecated="not deprecated">
  42118. <doc>
  42119. <![CDATA[@param interval the minimum duration to wait before re-executing the
  42120. command.]]>
  42121. </doc>
  42122. </constructor>
  42123. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  42124. abstract="false" native="false" synchronized="false"
  42125. static="true" final="false" visibility="public"
  42126. deprecated="not deprecated">
  42127. <doc>
  42128. <![CDATA[a Unix command to get the current user's groups list]]>
  42129. </doc>
  42130. </method>
  42131. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  42132. abstract="false" native="false" synchronized="false"
  42133. static="true" final="false" visibility="public"
  42134. deprecated="not deprecated">
  42135. <doc>
  42136. <![CDATA[Return a Unix command to get permission information.]]>
  42137. </doc>
  42138. </method>
  42139. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  42140. abstract="false" native="false" synchronized="false"
  42141. static="true" final="false" visibility="public"
  42142. deprecated="not deprecated">
  42143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42144. <doc>
  42145. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  42146. to a given child process. This is only relevant when we are forking a
  42147. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  42148. {@link org.apache.hadoop.mapred.Reducer} implementations
  42149. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  42150. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  42151. It also checks to ensure that we are running on a *nix platform else
  42152. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  42153. @param conf configuration
  42154. @return a <code>String[]</code> with the ulimit command arguments or
  42155. <code>null</code> if we are running on a non *nix platform or
  42156. if the limit is unspecified.]]>
  42157. </doc>
  42158. </method>
  42159. <method name="setEnvironment"
  42160. abstract="false" native="false" synchronized="false"
  42161. static="false" final="false" visibility="protected"
  42162. deprecated="not deprecated">
  42163. <param name="env" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  42164. <doc>
  42165. <![CDATA[set the environment for the command
  42166. @param env Mapping of environment variables]]>
  42167. </doc>
  42168. </method>
  42169. <method name="setWorkingDirectory"
  42170. abstract="false" native="false" synchronized="false"
  42171. static="false" final="false" visibility="protected"
  42172. deprecated="not deprecated">
  42173. <param name="dir" type="java.io.File"/>
  42174. <doc>
  42175. <![CDATA[set the working directory
  42176. @param dir The directory where the command would be executed]]>
  42177. </doc>
  42178. </method>
  42179. <method name="run"
  42180. abstract="false" native="false" synchronized="false"
  42181. static="false" final="false" visibility="protected"
  42182. deprecated="not deprecated">
  42183. <exception name="IOException" type="java.io.IOException"/>
  42184. <doc>
  42185. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  42186. </doc>
  42187. </method>
  42188. <method name="getExecString" return="java.lang.String[]"
  42189. abstract="true" native="false" synchronized="false"
  42190. static="false" final="false" visibility="protected"
  42191. deprecated="not deprecated">
  42192. <doc>
  42193. <![CDATA[return an array containing the command name & its parameters]]>
  42194. </doc>
  42195. </method>
  42196. <method name="parseExecResult"
  42197. abstract="true" native="false" synchronized="false"
  42198. static="false" final="false" visibility="protected"
  42199. deprecated="not deprecated">
  42200. <param name="lines" type="java.io.BufferedReader"/>
  42201. <exception name="IOException" type="java.io.IOException"/>
  42202. <doc>
  42203. <![CDATA[Parse the execution result]]>
  42204. </doc>
  42205. </method>
  42206. <method name="getProcess" return="java.lang.Process"
  42207. abstract="false" native="false" synchronized="false"
  42208. static="false" final="false" visibility="public"
  42209. deprecated="not deprecated">
  42210. <doc>
  42211. <![CDATA[get the current sub-process executing the given command
  42212. @return process executing the command]]>
  42213. </doc>
  42214. </method>
  42215. <method name="getExitCode" return="int"
  42216. abstract="false" native="false" synchronized="false"
  42217. static="false" final="false" visibility="public"
  42218. deprecated="not deprecated">
  42219. <doc>
  42220. <![CDATA[get the exit code
  42221. @return the exit code of the process]]>
  42222. </doc>
  42223. </method>
  42224. <method name="execCommand" return="java.lang.String"
  42225. abstract="false" native="false" synchronized="false"
  42226. static="true" final="false" visibility="public"
  42227. deprecated="not deprecated">
  42228. <param name="cmd" type="java.lang.String[]"/>
  42229. <exception name="IOException" type="java.io.IOException"/>
  42230. <doc>
  42231. <![CDATA[Static method to execute a shell command.
  42232. Covers most of the simple cases without requiring the user to implement
  42233. the <code>Shell</code> interface.
  42234. @param cmd shell command to execute.
  42235. @return the output of the executed command.]]>
  42236. </doc>
  42237. </method>
  42238. <field name="LOG" type="org.apache.commons.logging.Log"
  42239. transient="false" volatile="false"
  42240. static="true" final="true" visibility="public"
  42241. deprecated="not deprecated">
  42242. </field>
  42243. <field name="USER_NAME_COMMAND" type="java.lang.String"
  42244. transient="false" volatile="false"
  42245. static="true" final="true" visibility="public"
  42246. deprecated="not deprecated">
  42247. <doc>
  42248. <![CDATA[a Unix command to get the current user's name]]>
  42249. </doc>
  42250. </field>
  42251. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  42252. transient="false" volatile="false"
  42253. static="true" final="true" visibility="public"
  42254. deprecated="not deprecated">
  42255. <doc>
  42256. <![CDATA[a Unix command to set permission]]>
  42257. </doc>
  42258. </field>
  42259. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  42260. transient="false" volatile="false"
  42261. static="true" final="true" visibility="public"
  42262. deprecated="not deprecated">
  42263. <doc>
  42264. <![CDATA[a Unix command to set owner]]>
  42265. </doc>
  42266. </field>
  42267. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  42268. transient="false" volatile="false"
  42269. static="true" final="true" visibility="public"
  42270. deprecated="not deprecated">
  42271. </field>
  42272. <field name="WINDOWS" type="boolean"
  42273. transient="false" volatile="false"
  42274. static="true" final="true" visibility="public"
  42275. deprecated="not deprecated">
  42276. <doc>
  42277. <![CDATA[Set to true on Windows platforms]]>
  42278. </doc>
  42279. </field>
  42280. <doc>
  42281. <![CDATA[A base class for running a Unix command.
  42282. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  42283. <code>df</code>. It also offers facilities to gate commands by
  42284. time-intervals.]]>
  42285. </doc>
  42286. </class>
  42287. <!-- end class org.apache.hadoop.util.Shell -->
  42288. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  42289. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  42290. abstract="false"
  42291. static="true" final="false" visibility="public"
  42292. deprecated="not deprecated">
  42293. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  42294. static="false" final="false" visibility="public"
  42295. deprecated="not deprecated">
  42296. </constructor>
  42297. <method name="getExitCode" return="int"
  42298. abstract="false" native="false" synchronized="false"
  42299. static="false" final="false" visibility="public"
  42300. deprecated="not deprecated">
  42301. </method>
  42302. <doc>
  42303. <![CDATA[This is an IOException with exit code added.]]>
  42304. </doc>
  42305. </class>
  42306. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  42307. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42308. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  42309. abstract="false"
  42310. static="true" final="false" visibility="public"
  42311. deprecated="not deprecated">
  42312. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  42313. static="false" final="false" visibility="public"
  42314. deprecated="not deprecated">
  42315. </constructor>
  42316. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  42317. static="false" final="false" visibility="public"
  42318. deprecated="not deprecated">
  42319. </constructor>
  42320. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  42321. static="false" final="false" visibility="public"
  42322. deprecated="not deprecated">
  42323. </constructor>
  42324. <method name="execute"
  42325. abstract="false" native="false" synchronized="false"
  42326. static="false" final="false" visibility="public"
  42327. deprecated="not deprecated">
  42328. <exception name="IOException" type="java.io.IOException"/>
  42329. <doc>
  42330. <![CDATA[Execute the shell command.]]>
  42331. </doc>
  42332. </method>
  42333. <method name="getExecString" return="java.lang.String[]"
  42334. abstract="false" native="false" synchronized="false"
  42335. static="false" final="false" visibility="protected"
  42336. deprecated="not deprecated">
  42337. </method>
  42338. <method name="parseExecResult"
  42339. abstract="false" native="false" synchronized="false"
  42340. static="false" final="false" visibility="protected"
  42341. deprecated="not deprecated">
  42342. <param name="lines" type="java.io.BufferedReader"/>
  42343. <exception name="IOException" type="java.io.IOException"/>
  42344. </method>
  42345. <method name="getOutput" return="java.lang.String"
  42346. abstract="false" native="false" synchronized="false"
  42347. static="false" final="false" visibility="public"
  42348. deprecated="not deprecated">
  42349. <doc>
  42350. <![CDATA[Get the output of the shell command.]]>
  42351. </doc>
  42352. </method>
  42353. <method name="toString" return="java.lang.String"
  42354. abstract="false" native="false" synchronized="false"
  42355. static="false" final="false" visibility="public"
  42356. deprecated="not deprecated">
  42357. <doc>
  42358. <![CDATA[Returns the commands of this instance.
  42359. Arguments with spaces in are presented with quotes round; other
  42360. arguments are presented raw
  42361. @return a string representation of the object.]]>
  42362. </doc>
  42363. </method>
  42364. <doc>
  42365. <![CDATA[A simple shell command executor.
  42366. <code>ShellCommandExecutor</code>should be used in cases where the output
  42367. of the command needs no explicit parsing and where the command, working
  42368. directory and the environment remains unchanged. The output of the command
  42369. is stored as-is and is expected to be small.]]>
  42370. </doc>
  42371. </class>
  42372. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  42373. <!-- start class org.apache.hadoop.util.StringUtils -->
  42374. <class name="StringUtils" extends="java.lang.Object"
  42375. abstract="false"
  42376. static="false" final="false" visibility="public"
  42377. deprecated="not deprecated">
  42378. <constructor name="StringUtils"
  42379. static="false" final="false" visibility="public"
  42380. deprecated="not deprecated">
  42381. </constructor>
  42382. <method name="stringifyException" return="java.lang.String"
  42383. abstract="false" native="false" synchronized="false"
  42384. static="true" final="false" visibility="public"
  42385. deprecated="not deprecated">
  42386. <param name="e" type="java.lang.Throwable"/>
  42387. <doc>
  42388. <![CDATA[Make a string representation of the exception.
  42389. @param e The exception to stringify
  42390. @return A string with exception name and call stack.]]>
  42391. </doc>
  42392. </method>
  42393. <method name="simpleHostname" return="java.lang.String"
  42394. abstract="false" native="false" synchronized="false"
  42395. static="true" final="false" visibility="public"
  42396. deprecated="not deprecated">
  42397. <param name="fullHostname" type="java.lang.String"/>
  42398. <doc>
  42399. <![CDATA[Given a full hostname, return the word upto the first dot.
  42400. @param fullHostname the full hostname
  42401. @return the hostname to the first dot]]>
  42402. </doc>
  42403. </method>
  42404. <method name="humanReadableInt" return="java.lang.String"
  42405. abstract="false" native="false" synchronized="false"
  42406. static="true" final="false" visibility="public"
  42407. deprecated="not deprecated">
  42408. <param name="number" type="long"/>
  42409. <doc>
  42410. <![CDATA[Given an integer, return a string that is in an approximate, but human
  42411. readable format.
  42412. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  42413. @param number the number to format
  42414. @return a human readable form of the integer]]>
  42415. </doc>
  42416. </method>
  42417. <method name="formatPercent" return="java.lang.String"
  42418. abstract="false" native="false" synchronized="false"
  42419. static="true" final="false" visibility="public"
  42420. deprecated="not deprecated">
  42421. <param name="done" type="double"/>
  42422. <param name="digits" type="int"/>
  42423. <doc>
  42424. <![CDATA[Format a percentage for presentation to the user.
  42425. @param done the percentage to format (0.0 to 1.0)
  42426. @param digits the number of digits past the decimal point
  42427. @return a string representation of the percentage]]>
  42428. </doc>
  42429. </method>
  42430. <method name="arrayToString" return="java.lang.String"
  42431. abstract="false" native="false" synchronized="false"
  42432. static="true" final="false" visibility="public"
  42433. deprecated="not deprecated">
  42434. <param name="strs" type="java.lang.String[]"/>
  42435. <doc>
  42436. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  42437. @param strs Array of strings
  42438. @return Empty string if strs.length is 0, comma separated list of strings
  42439. otherwise]]>
  42440. </doc>
  42441. </method>
  42442. <method name="byteToHexString" return="java.lang.String"
  42443. abstract="false" native="false" synchronized="false"
  42444. static="true" final="false" visibility="public"
  42445. deprecated="not deprecated">
  42446. <param name="bytes" type="byte[]"/>
  42447. <param name="start" type="int"/>
  42448. <param name="end" type="int"/>
  42449. <doc>
  42450. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  42451. representation of the bytes
  42452. @param bytes
  42453. @param start start index, inclusively
  42454. @param end end index, exclusively
  42455. @return hex string representation of the byte array]]>
  42456. </doc>
  42457. </method>
  42458. <method name="byteToHexString" return="java.lang.String"
  42459. abstract="false" native="false" synchronized="false"
  42460. static="true" final="false" visibility="public"
  42461. deprecated="not deprecated">
  42462. <param name="bytes" type="byte[]"/>
  42463. <doc>
  42464. <![CDATA[Same as byteToHexString(bytes, 0, bytes.length).]]>
  42465. </doc>
  42466. </method>
  42467. <method name="hexStringToByte" return="byte[]"
  42468. abstract="false" native="false" synchronized="false"
  42469. static="true" final="false" visibility="public"
  42470. deprecated="not deprecated">
  42471. <param name="hex" type="java.lang.String"/>
  42472. <doc>
  42473. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  42474. string
  42475. @param hex the hex String array
  42476. @return a byte array that is a hex string representation of the given
  42477. string. The size of the byte array is therefore hex.length/2]]>
  42478. </doc>
  42479. </method>
  42480. <method name="uriToString" return="java.lang.String"
  42481. abstract="false" native="false" synchronized="false"
  42482. static="true" final="false" visibility="public"
  42483. deprecated="not deprecated">
  42484. <param name="uris" type="java.net.URI[]"/>
  42485. <doc>
  42486. <![CDATA[@param uris]]>
  42487. </doc>
  42488. </method>
  42489. <method name="stringToURI" return="java.net.URI[]"
  42490. abstract="false" native="false" synchronized="false"
  42491. static="true" final="false" visibility="public"
  42492. deprecated="not deprecated">
  42493. <param name="str" type="java.lang.String[]"/>
  42494. <doc>
  42495. <![CDATA[@param str]]>
  42496. </doc>
  42497. </method>
  42498. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  42499. abstract="false" native="false" synchronized="false"
  42500. static="true" final="false" visibility="public"
  42501. deprecated="not deprecated">
  42502. <param name="str" type="java.lang.String[]"/>
  42503. <doc>
  42504. <![CDATA[@param str]]>
  42505. </doc>
  42506. </method>
  42507. <method name="formatTimeDiff" return="java.lang.String"
  42508. abstract="false" native="false" synchronized="false"
  42509. static="true" final="false" visibility="public"
  42510. deprecated="not deprecated">
  42511. <param name="finishTime" type="long"/>
  42512. <param name="startTime" type="long"/>
  42513. <doc>
  42514. <![CDATA[Given a finish and start time in long milliseconds, returns a
  42515. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  42516. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  42517. @param finishTime finish time
  42518. @param startTime start time]]>
  42519. </doc>
  42520. </method>
  42521. <method name="formatTime" return="java.lang.String"
  42522. abstract="false" native="false" synchronized="false"
  42523. static="true" final="false" visibility="public"
  42524. deprecated="not deprecated">
  42525. <param name="timeDiff" type="long"/>
  42526. <doc>
  42527. <![CDATA[Given the time in long milliseconds, returns a
  42528. String in the format Xhrs, Ymins, Z sec.
  42529. @param timeDiff The time difference to format]]>
  42530. </doc>
  42531. </method>
  42532. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  42533. abstract="false" native="false" synchronized="false"
  42534. static="true" final="false" visibility="public"
  42535. deprecated="not deprecated">
  42536. <param name="dateFormat" type="java.text.DateFormat"/>
  42537. <param name="finishTime" type="long"/>
  42538. <param name="startTime" type="long"/>
  42539. <doc>
  42540. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  42541. as returned by formatTimeDiff().
  42542. If finish time is 0, empty string is returned, if start time is 0
  42543. then difference is not appended to return value.
  42544. @param dateFormat date format to use
  42545. @param finishTime fnish time
  42546. @param startTime start time
  42547. @return formatted value.]]>
  42548. </doc>
  42549. </method>
  42550. <method name="getStrings" return="java.lang.String[]"
  42551. abstract="false" native="false" synchronized="false"
  42552. static="true" final="false" visibility="public"
  42553. deprecated="not deprecated">
  42554. <param name="str" type="java.lang.String"/>
  42555. <doc>
  42556. <![CDATA[Returns an arraylist of strings.
  42557. @param str the comma seperated string values
  42558. @return the arraylist of the comma seperated string values]]>
  42559. </doc>
  42560. </method>
  42561. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  42562. abstract="false" native="false" synchronized="false"
  42563. static="true" final="false" visibility="public"
  42564. deprecated="not deprecated">
  42565. <param name="str" type="java.lang.String"/>
  42566. <doc>
  42567. <![CDATA[Returns a collection of strings.
  42568. @param str comma seperated string values
  42569. @return an <code>ArrayList</code> of string values]]>
  42570. </doc>
  42571. </method>
  42572. <method name="split" return="java.lang.String[]"
  42573. abstract="false" native="false" synchronized="false"
  42574. static="true" final="false" visibility="public"
  42575. deprecated="not deprecated">
  42576. <param name="str" type="java.lang.String"/>
  42577. <doc>
  42578. <![CDATA[Split a string using the default separator
  42579. @param str a string that may have escaped separator
  42580. @return an array of strings]]>
  42581. </doc>
  42582. </method>
  42583. <method name="split" return="java.lang.String[]"
  42584. abstract="false" native="false" synchronized="false"
  42585. static="true" final="false" visibility="public"
  42586. deprecated="not deprecated">
  42587. <param name="str" type="java.lang.String"/>
  42588. <param name="escapeChar" type="char"/>
  42589. <param name="separator" type="char"/>
  42590. <doc>
  42591. <![CDATA[Split a string using the given separator
  42592. @param str a string that may have escaped separator
  42593. @param escapeChar a char that be used to escape the separator
  42594. @param separator a separator char
  42595. @return an array of strings]]>
  42596. </doc>
  42597. </method>
  42598. <method name="findNext" return="int"
  42599. abstract="false" native="false" synchronized="false"
  42600. static="true" final="false" visibility="public"
  42601. deprecated="not deprecated">
  42602. <param name="str" type="java.lang.String"/>
  42603. <param name="separator" type="char"/>
  42604. <param name="escapeChar" type="char"/>
  42605. <param name="start" type="int"/>
  42606. <param name="split" type="java.lang.StringBuilder"/>
  42607. <doc>
  42608. <![CDATA[Finds the first occurrence of the separator character ignoring the escaped
  42609. separators starting from the index. Note the substring between the index
  42610. and the position of the separator is passed.
  42611. @param str the source string
  42612. @param separator the character to find
  42613. @param escapeChar character used to escape
  42614. @param start from where to search
  42615. @param split used to pass back the extracted string]]>
  42616. </doc>
  42617. </method>
  42618. <method name="escapeString" return="java.lang.String"
  42619. abstract="false" native="false" synchronized="false"
  42620. static="true" final="false" visibility="public"
  42621. deprecated="not deprecated">
  42622. <param name="str" type="java.lang.String"/>
  42623. <doc>
  42624. <![CDATA[Escape commas in the string using the default escape char
  42625. @param str a string
  42626. @return an escaped string]]>
  42627. </doc>
  42628. </method>
  42629. <method name="escapeString" return="java.lang.String"
  42630. abstract="false" native="false" synchronized="false"
  42631. static="true" final="false" visibility="public"
  42632. deprecated="not deprecated">
  42633. <param name="str" type="java.lang.String"/>
  42634. <param name="escapeChar" type="char"/>
  42635. <param name="charToEscape" type="char"/>
  42636. <doc>
  42637. <![CDATA[Escape <code>charToEscape</code> in the string
  42638. with the escape char <code>escapeChar</code>
  42639. @param str string
  42640. @param escapeChar escape char
  42641. @param charToEscape the char to be escaped
  42642. @return an escaped string]]>
  42643. </doc>
  42644. </method>
  42645. <method name="escapeString" return="java.lang.String"
  42646. abstract="false" native="false" synchronized="false"
  42647. static="true" final="false" visibility="public"
  42648. deprecated="not deprecated">
  42649. <param name="str" type="java.lang.String"/>
  42650. <param name="escapeChar" type="char"/>
  42651. <param name="charsToEscape" type="char[]"/>
  42652. <doc>
  42653. <![CDATA[@param charsToEscape array of characters to be escaped]]>
  42654. </doc>
  42655. </method>
  42656. <method name="unEscapeString" return="java.lang.String"
  42657. abstract="false" native="false" synchronized="false"
  42658. static="true" final="false" visibility="public"
  42659. deprecated="not deprecated">
  42660. <param name="str" type="java.lang.String"/>
  42661. <doc>
  42662. <![CDATA[Unescape commas in the string using the default escape char
  42663. @param str a string
  42664. @return an unescaped string]]>
  42665. </doc>
  42666. </method>
  42667. <method name="unEscapeString" return="java.lang.String"
  42668. abstract="false" native="false" synchronized="false"
  42669. static="true" final="false" visibility="public"
  42670. deprecated="not deprecated">
  42671. <param name="str" type="java.lang.String"/>
  42672. <param name="escapeChar" type="char"/>
  42673. <param name="charToEscape" type="char"/>
  42674. <doc>
  42675. <![CDATA[Unescape <code>charToEscape</code> in the string
  42676. with the escape char <code>escapeChar</code>
  42677. @param str string
  42678. @param escapeChar escape char
  42679. @param charToEscape the escaped char
  42680. @return an unescaped string]]>
  42681. </doc>
  42682. </method>
  42683. <method name="unEscapeString" return="java.lang.String"
  42684. abstract="false" native="false" synchronized="false"
  42685. static="true" final="false" visibility="public"
  42686. deprecated="not deprecated">
  42687. <param name="str" type="java.lang.String"/>
  42688. <param name="escapeChar" type="char"/>
  42689. <param name="charsToEscape" type="char[]"/>
  42690. <doc>
  42691. <![CDATA[@param charsToEscape array of characters to unescape]]>
  42692. </doc>
  42693. </method>
  42694. <method name="getHostname" return="java.lang.String"
  42695. abstract="false" native="false" synchronized="false"
  42696. static="true" final="false" visibility="public"
  42697. deprecated="not deprecated">
  42698. <doc>
  42699. <![CDATA[Return hostname without throwing exception.
  42700. @return hostname]]>
  42701. </doc>
  42702. </method>
  42703. <method name="startupShutdownMessage"
  42704. abstract="false" native="false" synchronized="false"
  42705. static="true" final="false" visibility="public"
  42706. deprecated="not deprecated">
  42707. <param name="clazz" type="java.lang.Class&lt;?&gt;"/>
  42708. <param name="args" type="java.lang.String[]"/>
  42709. <param name="LOG" type="org.apache.commons.logging.Log"/>
  42710. <doc>
  42711. <![CDATA[Print a log message for starting up and shutting down
  42712. @param clazz the class of the server
  42713. @param args arguments
  42714. @param LOG the target log object]]>
  42715. </doc>
  42716. </method>
  42717. <method name="escapeHTML" return="java.lang.String"
  42718. abstract="false" native="false" synchronized="false"
  42719. static="true" final="false" visibility="public"
  42720. deprecated="not deprecated">
  42721. <param name="string" type="java.lang.String"/>
  42722. <doc>
  42723. <![CDATA[Escapes HTML Special characters present in the string.
  42724. @param string
  42725. @return HTML Escaped String representation]]>
  42726. </doc>
  42727. </method>
  42728. <field name="COMMA" type="char"
  42729. transient="false" volatile="false"
  42730. static="true" final="true" visibility="public"
  42731. deprecated="not deprecated">
  42732. </field>
  42733. <field name="COMMA_STR" type="java.lang.String"
  42734. transient="false" volatile="false"
  42735. static="true" final="true" visibility="public"
  42736. deprecated="not deprecated">
  42737. </field>
  42738. <field name="ESCAPE_CHAR" type="char"
  42739. transient="false" volatile="false"
  42740. static="true" final="true" visibility="public"
  42741. deprecated="not deprecated">
  42742. </field>
  42743. <doc>
  42744. <![CDATA[General string utils]]>
  42745. </doc>
  42746. </class>
  42747. <!-- end class org.apache.hadoop.util.StringUtils -->
  42748. <!-- start class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42749. <class name="StringUtils.TraditionalBinaryPrefix" extends="java.lang.Enum&lt;org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix&gt;"
  42750. abstract="false"
  42751. static="true" final="true" visibility="public"
  42752. deprecated="not deprecated">
  42753. <method name="values" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix[]"
  42754. abstract="false" native="false" synchronized="false"
  42755. static="true" final="false" visibility="public"
  42756. deprecated="not deprecated">
  42757. </method>
  42758. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42759. abstract="false" native="false" synchronized="false"
  42760. static="true" final="false" visibility="public"
  42761. deprecated="not deprecated">
  42762. <param name="name" type="java.lang.String"/>
  42763. </method>
  42764. <method name="valueOf" return="org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix"
  42765. abstract="false" native="false" synchronized="false"
  42766. static="true" final="false" visibility="public"
  42767. deprecated="not deprecated">
  42768. <param name="symbol" type="char"/>
  42769. <doc>
  42770. <![CDATA[@return The TraditionalBinaryPrefix object corresponding to the symbol.]]>
  42771. </doc>
  42772. </method>
  42773. <method name="string2long" return="long"
  42774. abstract="false" native="false" synchronized="false"
  42775. static="true" final="false" visibility="public"
  42776. deprecated="not deprecated">
  42777. <param name="s" type="java.lang.String"/>
  42778. <doc>
  42779. <![CDATA[Convert a string to long.
  42780. The input string is first be trimmed
  42781. and then it is parsed with traditional binary prefix.
  42782. For example,
  42783. "-1230k" will be converted to -1230 * 1024 = -1259520;
  42784. "891g" will be converted to 891 * 1024^3 = 956703965184;
  42785. @param s input string
  42786. @return a long value represented by the input string.]]>
  42787. </doc>
  42788. </method>
  42789. <field name="value" type="long"
  42790. transient="false" volatile="false"
  42791. static="false" final="true" visibility="public"
  42792. deprecated="not deprecated">
  42793. </field>
  42794. <field name="symbol" type="char"
  42795. transient="false" volatile="false"
  42796. static="false" final="true" visibility="public"
  42797. deprecated="not deprecated">
  42798. </field>
  42799. <doc>
  42800. <![CDATA[The traditional binary prefixes, kilo, mega, ..., exa,
  42801. which can be represented by a 64-bit integer.
  42802. TraditionalBinaryPrefix symbol are case insensitive.]]>
  42803. </doc>
  42804. </class>
  42805. <!-- end class org.apache.hadoop.util.StringUtils.TraditionalBinaryPrefix -->
  42806. <!-- start interface org.apache.hadoop.util.Tool -->
  42807. <interface name="Tool" abstract="true"
  42808. static="false" final="false" visibility="public"
  42809. deprecated="not deprecated">
  42810. <implements name="org.apache.hadoop.conf.Configurable"/>
  42811. <method name="run" return="int"
  42812. abstract="false" native="false" synchronized="false"
  42813. static="false" final="false" visibility="public"
  42814. deprecated="not deprecated">
  42815. <param name="args" type="java.lang.String[]"/>
  42816. <exception name="Exception" type="java.lang.Exception"/>
  42817. <doc>
  42818. <![CDATA[Execute the command with the given arguments.
  42819. @param args command specific arguments.
  42820. @return exit code.
  42821. @throws Exception]]>
  42822. </doc>
  42823. </method>
  42824. <doc>
  42825. <![CDATA[A tool interface that supports handling of generic command-line options.
  42826. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  42827. The tool/application should delegate the handling of
  42828. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42829. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  42830. and only handle its custom arguments.</p>
  42831. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  42832. <p><blockquote><pre>
  42833. public class MyApp extends Configured implements Tool {
  42834. public int run(String[] args) throws Exception {
  42835. // <code>Configuration</code> processed by <code>ToolRunner</code>
  42836. Configuration conf = getConf();
  42837. // Create a JobConf using the processed <code>conf</code>
  42838. JobConf job = new JobConf(conf, MyApp.class);
  42839. // Process custom command-line options
  42840. Path in = new Path(args[1]);
  42841. Path out = new Path(args[2]);
  42842. // Specify various job-specific parameters
  42843. job.setJobName("my-app");
  42844. job.setInputPath(in);
  42845. job.setOutputPath(out);
  42846. job.setMapperClass(MyApp.MyMapper.class);
  42847. job.setReducerClass(MyApp.MyReducer.class);
  42848. // Submit the job, then poll for progress until the job is complete
  42849. JobClient.runJob(job);
  42850. }
  42851. public static void main(String[] args) throws Exception {
  42852. // Let <code>ToolRunner</code> handle generic command-line options
  42853. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  42854. System.exit(res);
  42855. }
  42856. }
  42857. </pre></blockquote></p>
  42858. @see GenericOptionsParser
  42859. @see ToolRunner]]>
  42860. </doc>
  42861. </interface>
  42862. <!-- end interface org.apache.hadoop.util.Tool -->
  42863. <!-- start class org.apache.hadoop.util.ToolRunner -->
  42864. <class name="ToolRunner" extends="java.lang.Object"
  42865. abstract="false"
  42866. static="false" final="false" visibility="public"
  42867. deprecated="not deprecated">
  42868. <constructor name="ToolRunner"
  42869. static="false" final="false" visibility="public"
  42870. deprecated="not deprecated">
  42871. </constructor>
  42872. <method name="run" return="int"
  42873. abstract="false" native="false" synchronized="false"
  42874. static="true" final="false" visibility="public"
  42875. deprecated="not deprecated">
  42876. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42877. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42878. <param name="args" type="java.lang.String[]"/>
  42879. <exception name="Exception" type="java.lang.Exception"/>
  42880. <doc>
  42881. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  42882. parsing with the given generic arguments. Uses the given
  42883. <code>Configuration</code>, or builds one if null.
  42884. Sets the <code>Tool</code>'s configuration with the possibly modified
  42885. version of the <code>conf</code>.
  42886. @param conf <code>Configuration</code> for the <code>Tool</code>.
  42887. @param tool <code>Tool</code> to run.
  42888. @param args command-line arguments to the tool.
  42889. @return exit code of the {@link Tool#run(String[])} method.]]>
  42890. </doc>
  42891. </method>
  42892. <method name="run" return="int"
  42893. abstract="false" native="false" synchronized="false"
  42894. static="true" final="false" visibility="public"
  42895. deprecated="not deprecated">
  42896. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  42897. <param name="args" type="java.lang.String[]"/>
  42898. <exception name="Exception" type="java.lang.Exception"/>
  42899. <doc>
  42900. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  42901. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  42902. @param tool <code>Tool</code> to run.
  42903. @param args command-line arguments to the tool.
  42904. @return exit code of the {@link Tool#run(String[])} method.]]>
  42905. </doc>
  42906. </method>
  42907. <method name="printGenericCommandUsage"
  42908. abstract="false" native="false" synchronized="false"
  42909. static="true" final="false" visibility="public"
  42910. deprecated="not deprecated">
  42911. <param name="out" type="java.io.PrintStream"/>
  42912. <doc>
  42913. <![CDATA[Prints generic command-line argurments and usage information.
  42914. @param out stream to write usage information to.]]>
  42915. </doc>
  42916. </method>
  42917. <doc>
  42918. <![CDATA[A utility to help run {@link Tool}s.
  42919. <p><code>ToolRunner</code> can be used to run classes implementing
  42920. <code>Tool</code> interface. It works in conjunction with
  42921. {@link GenericOptionsParser} to parse the
  42922. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  42923. generic hadoop command line arguments</a> and modifies the
  42924. <code>Configuration</code> of the <code>Tool</code>. The
  42925. application-specific options are passed along without being modified.
  42926. </p>
  42927. @see Tool
  42928. @see GenericOptionsParser]]>
  42929. </doc>
  42930. </class>
  42931. <!-- end class org.apache.hadoop.util.ToolRunner -->
  42932. <!-- start class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  42933. <class name="UTF8ByteArrayUtils" extends="java.lang.Object"
  42934. abstract="false"
  42935. static="false" final="false" visibility="public"
  42936. deprecated="not deprecated">
  42937. <constructor name="UTF8ByteArrayUtils"
  42938. static="false" final="false" visibility="public"
  42939. deprecated="not deprecated">
  42940. </constructor>
  42941. <method name="findByte" return="int"
  42942. abstract="false" native="false" synchronized="false"
  42943. static="true" final="false" visibility="public"
  42944. deprecated="not deprecated">
  42945. <param name="utf" type="byte[]"/>
  42946. <param name="start" type="int"/>
  42947. <param name="end" type="int"/>
  42948. <param name="b" type="byte"/>
  42949. <doc>
  42950. <![CDATA[Find the first occurrence of the given byte b in a UTF-8 encoded string
  42951. @param utf a byte array containing a UTF-8 encoded string
  42952. @param start starting offset
  42953. @param end ending position
  42954. @param b the byte to find
  42955. @return position that first byte occures otherwise -1]]>
  42956. </doc>
  42957. </method>
  42958. <method name="findBytes" return="int"
  42959. abstract="false" native="false" synchronized="false"
  42960. static="true" final="false" visibility="public"
  42961. deprecated="not deprecated">
  42962. <param name="utf" type="byte[]"/>
  42963. <param name="start" type="int"/>
  42964. <param name="end" type="int"/>
  42965. <param name="b" type="byte[]"/>
  42966. <doc>
  42967. <![CDATA[Find the first occurrence of the given bytes b in a UTF-8 encoded string
  42968. @param utf a byte array containing a UTF-8 encoded string
  42969. @param start starting offset
  42970. @param end ending position
  42971. @param b the bytes to find
  42972. @return position that first byte occures otherwise -1]]>
  42973. </doc>
  42974. </method>
  42975. <method name="findNthByte" return="int"
  42976. abstract="false" native="false" synchronized="false"
  42977. static="true" final="false" visibility="public"
  42978. deprecated="not deprecated">
  42979. <param name="utf" type="byte[]"/>
  42980. <param name="start" type="int"/>
  42981. <param name="length" type="int"/>
  42982. <param name="b" type="byte"/>
  42983. <param name="n" type="int"/>
  42984. <doc>
  42985. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  42986. @param utf a byte array containing a UTF-8 encoded string
  42987. @param start starting offset
  42988. @param length the length of byte array
  42989. @param b the byte to find
  42990. @param n the desired occurrence of the given byte
  42991. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  42992. </doc>
  42993. </method>
  42994. <method name="findNthByte" return="int"
  42995. abstract="false" native="false" synchronized="false"
  42996. static="true" final="false" visibility="public"
  42997. deprecated="not deprecated">
  42998. <param name="utf" type="byte[]"/>
  42999. <param name="b" type="byte"/>
  43000. <param name="n" type="int"/>
  43001. <doc>
  43002. <![CDATA[Find the nth occurrence of the given byte b in a UTF-8 encoded string
  43003. @param utf a byte array containing a UTF-8 encoded string
  43004. @param b the byte to find
  43005. @param n the desired occurrence of the given byte
  43006. @return position that nth occurrence of the given byte if exists; otherwise -1]]>
  43007. </doc>
  43008. </method>
  43009. </class>
  43010. <!-- end class org.apache.hadoop.util.UTF8ByteArrayUtils -->
  43011. <!-- start class org.apache.hadoop.util.VersionInfo -->
  43012. <class name="VersionInfo" extends="java.lang.Object"
  43013. abstract="false"
  43014. static="false" final="false" visibility="public"
  43015. deprecated="not deprecated">
  43016. <constructor name="VersionInfo"
  43017. static="false" final="false" visibility="public"
  43018. deprecated="not deprecated">
  43019. </constructor>
  43020. <method name="getVersion" return="java.lang.String"
  43021. abstract="false" native="false" synchronized="false"
  43022. static="true" final="false" visibility="public"
  43023. deprecated="not deprecated">
  43024. <doc>
  43025. <![CDATA[Get the Hadoop version.
  43026. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  43027. </doc>
  43028. </method>
  43029. <method name="getRevision" return="java.lang.String"
  43030. abstract="false" native="false" synchronized="false"
  43031. static="true" final="false" visibility="public"
  43032. deprecated="not deprecated">
  43033. <doc>
  43034. <![CDATA[Get the subversion revision number for the root directory
  43035. @return the revision number, eg. "451451"]]>
  43036. </doc>
  43037. </method>
  43038. <method name="getDate" return="java.lang.String"
  43039. abstract="false" native="false" synchronized="false"
  43040. static="true" final="false" visibility="public"
  43041. deprecated="not deprecated">
  43042. <doc>
  43043. <![CDATA[The date that Hadoop was compiled.
  43044. @return the compilation date in unix date format]]>
  43045. </doc>
  43046. </method>
  43047. <method name="getUser" return="java.lang.String"
  43048. abstract="false" native="false" synchronized="false"
  43049. static="true" final="false" visibility="public"
  43050. deprecated="not deprecated">
  43051. <doc>
  43052. <![CDATA[The user that compiled Hadoop.
  43053. @return the username of the user]]>
  43054. </doc>
  43055. </method>
  43056. <method name="getUrl" return="java.lang.String"
  43057. abstract="false" native="false" synchronized="false"
  43058. static="true" final="false" visibility="public"
  43059. deprecated="not deprecated">
  43060. <doc>
  43061. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  43062. </doc>
  43063. </method>
  43064. <method name="getBuildVersion" return="java.lang.String"
  43065. abstract="false" native="false" synchronized="false"
  43066. static="true" final="false" visibility="public"
  43067. deprecated="not deprecated">
  43068. <doc>
  43069. <![CDATA[Returns the buildVersion which includes version,
  43070. revision, user and date.]]>
  43071. </doc>
  43072. </method>
  43073. <method name="main"
  43074. abstract="false" native="false" synchronized="false"
  43075. static="true" final="false" visibility="public"
  43076. deprecated="not deprecated">
  43077. <param name="args" type="java.lang.String[]"/>
  43078. </method>
  43079. <doc>
  43080. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  43081. information.]]>
  43082. </doc>
  43083. </class>
  43084. <!-- end class org.apache.hadoop.util.VersionInfo -->
  43085. <!-- start class org.apache.hadoop.util.XMLUtils -->
  43086. <class name="XMLUtils" extends="java.lang.Object"
  43087. abstract="false"
  43088. static="false" final="false" visibility="public"
  43089. deprecated="not deprecated">
  43090. <constructor name="XMLUtils"
  43091. static="false" final="false" visibility="public"
  43092. deprecated="not deprecated">
  43093. </constructor>
  43094. <method name="transform"
  43095. abstract="false" native="false" synchronized="false"
  43096. static="true" final="false" visibility="public"
  43097. deprecated="not deprecated">
  43098. <param name="styleSheet" type="java.io.InputStream"/>
  43099. <param name="xml" type="java.io.InputStream"/>
  43100. <param name="out" type="java.io.Writer"/>
  43101. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  43102. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  43103. <doc>
  43104. <![CDATA[Transform input xml given a stylesheet.
  43105. @param styleSheet the style-sheet
  43106. @param xml input xml data
  43107. @param out output
  43108. @throws TransformerConfigurationException
  43109. @throws TransformerException]]>
  43110. </doc>
  43111. </method>
  43112. <doc>
  43113. <![CDATA[General xml utilities.]]>
  43114. </doc>
  43115. </class>
  43116. <!-- end class org.apache.hadoop.util.XMLUtils -->
  43117. </package>
  43118. </api>