hadoop_0.17.0.xml 1.7 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Tue Jun 10 22:31:49 UTC 2008 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.17.0"
  9. jdversion="1.1.0">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/oom/tools/src/jdiff-1.1.0-src/jdiff.jar:/home/oom/tools/src/jdiff-1.1.0-src/lib/xerces.jar -classpath /home/oom/work/eclipse/hadoop-17/lib/commons-cli-2.0-SNAPSHOT.jar:/home/oom/work/eclipse/hadoop-17/lib/commons-codec-1.3.jar:/home/oom/work/eclipse/hadoop-17/lib/commons-httpclient-3.0.1.jar:/home/oom/work/eclipse/hadoop-17/lib/commons-logging-1.0.4.jar:/home/oom/work/eclipse/hadoop-17/lib/commons-logging-api-1.0.4.jar:/home/oom/work/eclipse/hadoop-17/lib/jets3t-0.5.0.jar:/home/oom/work/eclipse/hadoop-17/lib/jetty-5.1.4.jar:/home/oom/work/eclipse/hadoop-17/lib/jetty-ext/commons-el.jar:/home/oom/work/eclipse/hadoop-17/lib/jetty-ext/jasper-compiler.jar:/home/oom/work/eclipse/hadoop-17/lib/jetty-ext/jasper-runtime.jar:/home/oom/work/eclipse/hadoop-17/lib/jetty-ext/jsp-api.jar:/home/oom/work/eclipse/hadoop-17/lib/junit-3.8.1.jar:/home/oom/work/eclipse/hadoop-17/lib/kfs-0.1.jar:/home/oom/work/eclipse/hadoop-17/lib/log4j-1.2.13.jar:/home/oom/work/eclipse/hadoop-17/lib/servlet-api.jar:/home/oom/work/eclipse/hadoop-17/lib/xmlenc-0.52.jar:/home/oom/work/eclipse/hadoop-17/conf:/usr/releng/share/java/ant/1.6.5/lib/ant-launcher.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-antlr.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-bcel.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-bsf.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-log4j.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-oro.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-regexp.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-apache-resolver.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-commons-logging.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-commons-net.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-icontract.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-jai.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-javamail.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-jdepend.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-jmf.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-jsch.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-junit.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-netrexx.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-nodeps.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-starteam.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-stylebook.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-swing.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-trax.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-vaj.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-weblogic.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-xalan1.jar:/usr/releng/share/java/ant/1.6.5/lib/ant-xslp.jar:/usr/releng/share/java/ant/1.6.5/lib/ant.jar:/usr/releng/share/java/ant/1.6.5/lib/xercesImpl.jar:/usr/releng/share/java/ant/1.6.5/lib/xml-apis.jar:/usr/releng/share/java/ant/1.6.5/lib/junit-3.8.1.jar:/nfs/ystools/vol/ystools/releng/build/Linux_2.6_rh4_x86_64/tools/java/jdk1.6.0_i586/lib/tools.jar -sourcepath /home/oom/work/eclipse/hadoop-17/src/java -apidir /home/oom/work/eclipse/hadoop-17/build -apiname hadoop 0.17.0 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopVersionAnnotation -->
  13. <class name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <doc>
  18. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  19. </doc>
  20. </class>
  21. <!-- end class org.apache.hadoop.HadoopVersionAnnotation -->
  22. </package>
  23. <package name="org.apache.hadoop.conf">
  24. <!-- start interface org.apache.hadoop.conf.Configurable -->
  25. <interface name="Configurable" abstract="true"
  26. static="false" final="false" visibility="public"
  27. deprecated="not deprecated">
  28. <method name="setConf"
  29. abstract="false" native="false" synchronized="false"
  30. static="false" final="false" visibility="public"
  31. deprecated="not deprecated">
  32. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33. <doc>
  34. <![CDATA[Set the configuration to be used by this object.]]>
  35. </doc>
  36. </method>
  37. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  38. abstract="false" native="false" synchronized="false"
  39. static="false" final="false" visibility="public"
  40. deprecated="not deprecated">
  41. <doc>
  42. <![CDATA[Return the configuration used by this object.]]>
  43. </doc>
  44. </method>
  45. <doc>
  46. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  47. </doc>
  48. </interface>
  49. <!-- end interface org.apache.hadoop.conf.Configurable -->
  50. <!-- start class org.apache.hadoop.conf.Configuration -->
  51. <class name="Configuration" extends="java.lang.Object"
  52. abstract="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <implements name="java.lang.Iterable&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"/>
  56. <constructor name="Configuration"
  57. static="false" final="false" visibility="public"
  58. deprecated="not deprecated">
  59. <doc>
  60. <![CDATA[A new configuration.]]>
  61. </doc>
  62. </constructor>
  63. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  64. static="false" final="false" visibility="public"
  65. deprecated="not deprecated">
  66. <doc>
  67. <![CDATA[A new configuration with the same settings cloned from another.
  68. @param other the configuration from which to clone settings.]]>
  69. </doc>
  70. </constructor>
  71. <method name="addResource"
  72. abstract="false" native="false" synchronized="false"
  73. static="false" final="false" visibility="public"
  74. deprecated="not deprecated">
  75. <param name="name" type="java.lang.String"/>
  76. <doc>
  77. <![CDATA[Add a configuration resource.
  78. The properties of this resource will override properties of previously
  79. added resources, unless they were marked <a href="#Final">final</a>.
  80. @param name resource to be added, the classpath is examined for a file
  81. with that name.]]>
  82. </doc>
  83. </method>
  84. <method name="addResource"
  85. abstract="false" native="false" synchronized="false"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <param name="url" type="java.net.URL"/>
  89. <doc>
  90. <![CDATA[Add a configuration resource.
  91. The properties of this resource will override properties of previously
  92. added resources, unless they were marked <a href="#Final">final</a>.
  93. @param url url of the resource to be added, the local filesystem is
  94. examined directly to find the resource, without referring to
  95. the classpath.]]>
  96. </doc>
  97. </method>
  98. <method name="addResource"
  99. abstract="false" native="false" synchronized="false"
  100. static="false" final="false" visibility="public"
  101. deprecated="not deprecated">
  102. <param name="file" type="org.apache.hadoop.fs.Path"/>
  103. <doc>
  104. <![CDATA[Add a configuration resource.
  105. The properties of this resource will override properties of previously
  106. added resources, unless they were marked <a href="#Final">final</a>.
  107. @param file file-path of resource to be added, the local filesystem is
  108. examined directly to find the resource, without referring to
  109. the classpath.]]>
  110. </doc>
  111. </method>
  112. <method name="get" return="java.lang.String"
  113. abstract="false" native="false" synchronized="false"
  114. static="false" final="false" visibility="public"
  115. deprecated="not deprecated">
  116. <param name="name" type="java.lang.String"/>
  117. <doc>
  118. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  119. no such property exists.
  120. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  121. before being returned.
  122. @param name the property name.
  123. @return the value of the <code>name</code> property,
  124. or null if no such property exists.]]>
  125. </doc>
  126. </method>
  127. <method name="getRaw" return="java.lang.String"
  128. abstract="false" native="false" synchronized="false"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. <param name="name" type="java.lang.String"/>
  132. <doc>
  133. <![CDATA[Get the value of the <code>name</code> property, without doing
  134. <a href="#VariableExpansion">variable expansion</a>.
  135. @param name the property name.
  136. @return the value of the <code>name</code> property,
  137. or null if no such property exists.]]>
  138. </doc>
  139. </method>
  140. <method name="set"
  141. abstract="false" native="false" synchronized="false"
  142. static="false" final="false" visibility="public"
  143. deprecated="not deprecated">
  144. <param name="name" type="java.lang.String"/>
  145. <param name="value" type="java.lang.String"/>
  146. <doc>
  147. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  148. @param name property name.
  149. @param value property value.]]>
  150. </doc>
  151. </method>
  152. <method name="get" return="java.lang.String"
  153. abstract="false" native="false" synchronized="false"
  154. static="false" final="false" visibility="public"
  155. deprecated="not deprecated">
  156. <param name="name" type="java.lang.String"/>
  157. <param name="defaultValue" type="java.lang.String"/>
  158. <doc>
  159. <![CDATA[Get the value of the <code>name</code> property. If no such property
  160. exists, then <code>defaultValue</code> is returned.
  161. @param name property name.
  162. @param defaultValue default value.
  163. @return property value, or <code>defaultValue</code> if the property
  164. doesn't exist.]]>
  165. </doc>
  166. </method>
  167. <method name="getInt" return="int"
  168. abstract="false" native="false" synchronized="false"
  169. static="false" final="false" visibility="public"
  170. deprecated="not deprecated">
  171. <param name="name" type="java.lang.String"/>
  172. <param name="defaultValue" type="int"/>
  173. <doc>
  174. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  175. If no such property exists, or if the specified value is not a valid
  176. <code>int</code>, then <code>defaultValue</code> is returned.
  177. @param name property name.
  178. @param defaultValue default value.
  179. @return property value as an <code>int</code>,
  180. or <code>defaultValue</code>.]]>
  181. </doc>
  182. </method>
  183. <method name="setInt"
  184. abstract="false" native="false" synchronized="false"
  185. static="false" final="false" visibility="public"
  186. deprecated="not deprecated">
  187. <param name="name" type="java.lang.String"/>
  188. <param name="value" type="int"/>
  189. <doc>
  190. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  191. @param name property name.
  192. @param value <code>int</code> value of the property.]]>
  193. </doc>
  194. </method>
  195. <method name="getLong" return="long"
  196. abstract="false" native="false" synchronized="false"
  197. static="false" final="false" visibility="public"
  198. deprecated="not deprecated">
  199. <param name="name" type="java.lang.String"/>
  200. <param name="defaultValue" type="long"/>
  201. <doc>
  202. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  203. If no such property is specified, or if the specified value is not a valid
  204. <code>long</code>, then <code>defaultValue</code> is returned.
  205. @param name property name.
  206. @param defaultValue default value.
  207. @return property value as a <code>long</code>,
  208. or <code>defaultValue</code>.]]>
  209. </doc>
  210. </method>
  211. <method name="setLong"
  212. abstract="false" native="false" synchronized="false"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <param name="name" type="java.lang.String"/>
  216. <param name="value" type="long"/>
  217. <doc>
  218. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  219. @param name property name.
  220. @param value <code>long</code> value of the property.]]>
  221. </doc>
  222. </method>
  223. <method name="getFloat" return="float"
  224. abstract="false" native="false" synchronized="false"
  225. static="false" final="false" visibility="public"
  226. deprecated="not deprecated">
  227. <param name="name" type="java.lang.String"/>
  228. <param name="defaultValue" type="float"/>
  229. <doc>
  230. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  231. If no such property is specified, or if the specified value is not a valid
  232. <code>float</code>, then <code>defaultValue</code> is returned.
  233. @param name property name.
  234. @param defaultValue default value.
  235. @return property value as a <code>float</code>,
  236. or <code>defaultValue</code>.]]>
  237. </doc>
  238. </method>
  239. <method name="getBoolean" return="boolean"
  240. abstract="false" native="false" synchronized="false"
  241. static="false" final="false" visibility="public"
  242. deprecated="not deprecated">
  243. <param name="name" type="java.lang.String"/>
  244. <param name="defaultValue" type="boolean"/>
  245. <doc>
  246. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  247. If no such property is specified, or if the specified value is not a valid
  248. <code>boolean</code>, then <code>defaultValue</code> is returned.
  249. @param name property name.
  250. @param defaultValue default value.
  251. @return property value as a <code>boolean</code>,
  252. or <code>defaultValue</code>.]]>
  253. </doc>
  254. </method>
  255. <method name="setBoolean"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="name" type="java.lang.String"/>
  260. <param name="value" type="boolean"/>
  261. <doc>
  262. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  263. @param name property name.
  264. @param value <code>boolean</code> value of the property.]]>
  265. </doc>
  266. </method>
  267. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  268. abstract="false" native="false" synchronized="false"
  269. static="false" final="false" visibility="public"
  270. deprecated="not deprecated">
  271. <param name="name" type="java.lang.String"/>
  272. <param name="defaultValue" type="java.lang.String"/>
  273. <doc>
  274. <![CDATA[Parse the given attribute as a set of integer ranges
  275. @param name the attribute name
  276. @param defaultValue the default value if it is not set
  277. @return a new set of ranges from the configured value]]>
  278. </doc>
  279. </method>
  280. <method name="getStrings" return="java.lang.String[]"
  281. abstract="false" native="false" synchronized="false"
  282. static="false" final="false" visibility="public"
  283. deprecated="not deprecated">
  284. <param name="name" type="java.lang.String"/>
  285. <doc>
  286. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  287. an array of <code>String</code>s.
  288. If no such property is specified then <code>null</code> is returned.
  289. @param name property name.
  290. @return property value as an array of <code>String</code>s,
  291. or <code>null</code>.]]>
  292. </doc>
  293. </method>
  294. <method name="getStrings" return="java.lang.String[]"
  295. abstract="false" native="false" synchronized="false"
  296. static="false" final="false" visibility="public"
  297. deprecated="not deprecated">
  298. <param name="name" type="java.lang.String"/>
  299. <param name="defaultValue" type="java.lang.String[]"/>
  300. <doc>
  301. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  302. an array of <code>String</code>s.
  303. If no such property is specified then default value is returned.
  304. @param name property name.
  305. @param defaultValue The default value
  306. @return property value as an array of <code>String</code>s,
  307. or default value.]]>
  308. </doc>
  309. </method>
  310. <method name="setStrings"
  311. abstract="false" native="false" synchronized="false"
  312. static="false" final="false" visibility="public"
  313. deprecated="not deprecated">
  314. <param name="name" type="java.lang.String"/>
  315. <param name="values" type="java.lang.String[]"/>
  316. <doc>
  317. <![CDATA[Set the array of string values for the <code>name</code> property as
  318. as comma delimited values.
  319. @param name property name.
  320. @param values The values]]>
  321. </doc>
  322. </method>
  323. <method name="getClassByName" return="java.lang.Class&lt;?&gt;"
  324. abstract="false" native="false" synchronized="false"
  325. static="false" final="false" visibility="public"
  326. deprecated="not deprecated">
  327. <param name="name" type="java.lang.String"/>
  328. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  329. <doc>
  330. <![CDATA[Load a class by name.
  331. @param name the class name.
  332. @return the class object.
  333. @throws ClassNotFoundException if the class is not found.]]>
  334. </doc>
  335. </method>
  336. <method name="getClass" return="java.lang.Class&lt;?&gt;"
  337. abstract="false" native="false" synchronized="false"
  338. static="false" final="false" visibility="public"
  339. deprecated="not deprecated">
  340. <param name="name" type="java.lang.String"/>
  341. <param name="defaultValue" type="java.lang.Class&lt;?&gt;"/>
  342. <doc>
  343. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  344. If no such property is specified, then <code>defaultValue</code> is
  345. returned.
  346. @param name the class name.
  347. @param defaultValue default value.
  348. @return property value as a <code>Class</code>,
  349. or <code>defaultValue</code>.]]>
  350. </doc>
  351. </method>
  352. <method name="getClass" return="java.lang.Class&lt;? extends U&gt;"
  353. abstract="false" native="false" synchronized="false"
  354. static="false" final="false" visibility="public"
  355. deprecated="not deprecated">
  356. <param name="name" type="java.lang.String"/>
  357. <param name="defaultValue" type="java.lang.Class&lt;? extends U&gt;"/>
  358. <param name="xface" type="java.lang.Class&lt;U&gt;"/>
  359. <doc>
  360. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  361. implementing the interface specified by <code>xface</code>.
  362. If no such property is specified, then <code>defaultValue</code> is
  363. returned.
  364. An exception is thrown if the returned class does not implement the named
  365. interface.
  366. @param name the class name.
  367. @param defaultValue default value.
  368. @param xface the interface implemented by the named class.
  369. @return property value as a <code>Class</code>,
  370. or <code>defaultValue</code>.]]>
  371. </doc>
  372. </method>
  373. <method name="setClass"
  374. abstract="false" native="false" synchronized="false"
  375. static="false" final="false" visibility="public"
  376. deprecated="not deprecated">
  377. <param name="name" type="java.lang.String"/>
  378. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  379. <param name="xface" type="java.lang.Class&lt;?&gt;"/>
  380. <doc>
  381. <![CDATA[Set the value of the <code>name</code> property to the name of a
  382. <code>theClass</code> implementing the given interface <code>xface</code>.
  383. An exception is thrown if <code>theClass</code> does not implement the
  384. interface <code>xface</code>.
  385. @param name property name.
  386. @param theClass property value.
  387. @param xface the interface implemented by the named class.]]>
  388. </doc>
  389. </method>
  390. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  391. abstract="false" native="false" synchronized="false"
  392. static="false" final="false" visibility="public"
  393. deprecated="not deprecated">
  394. <param name="dirsProp" type="java.lang.String"/>
  395. <param name="path" type="java.lang.String"/>
  396. <exception name="IOException" type="java.io.IOException"/>
  397. <doc>
  398. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  399. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  400. then one is chosen based on <i>path</i>'s hash code. If the selected
  401. directory does not exist, an attempt is made to create it.
  402. @param dirsProp directory in which to locate the file.
  403. @param path file-path.
  404. @return local file under the directory with the given path.]]>
  405. </doc>
  406. </method>
  407. <method name="getFile" return="java.io.File"
  408. abstract="false" native="false" synchronized="false"
  409. static="false" final="false" visibility="public"
  410. deprecated="not deprecated">
  411. <param name="dirsProp" type="java.lang.String"/>
  412. <param name="path" type="java.lang.String"/>
  413. <exception name="IOException" type="java.io.IOException"/>
  414. <doc>
  415. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  416. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  417. then one is chosen based on <i>path</i>'s hash code. If the selected
  418. directory does not exist, an attempt is made to create it.
  419. @param dirsProp directory in which to locate the file.
  420. @param path file-path.
  421. @return local file under the directory with the given path.]]>
  422. </doc>
  423. </method>
  424. <method name="getResource" return="java.net.URL"
  425. abstract="false" native="false" synchronized="false"
  426. static="false" final="false" visibility="public"
  427. deprecated="not deprecated">
  428. <param name="name" type="java.lang.String"/>
  429. <doc>
  430. <![CDATA[Get the {@link URL} for the named resource.
  431. @param name resource name.
  432. @return the url for the named resource.]]>
  433. </doc>
  434. </method>
  435. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  436. abstract="false" native="false" synchronized="false"
  437. static="false" final="false" visibility="public"
  438. deprecated="not deprecated">
  439. <param name="name" type="java.lang.String"/>
  440. <doc>
  441. <![CDATA[Get an input stream attached to the configuration resource with the
  442. given <code>name</code>.
  443. @param name configuration resource name.
  444. @return an input stream attached to the resource.]]>
  445. </doc>
  446. </method>
  447. <method name="getConfResourceAsReader" return="java.io.Reader"
  448. abstract="false" native="false" synchronized="false"
  449. static="false" final="false" visibility="public"
  450. deprecated="not deprecated">
  451. <param name="name" type="java.lang.String"/>
  452. <doc>
  453. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  454. given <code>name</code>.
  455. @param name configuration resource name.
  456. @return a reader attached to the resource.]]>
  457. </doc>
  458. </method>
  459. <method name="iterator" return="java.util.Iterator&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"
  460. abstract="false" native="false" synchronized="false"
  461. static="false" final="false" visibility="public"
  462. deprecated="not deprecated">
  463. <doc>
  464. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  465. key-value pairs in the configuration.
  466. @return an iterator over the entries.]]>
  467. </doc>
  468. </method>
  469. <method name="write"
  470. abstract="false" native="false" synchronized="false"
  471. static="false" final="false" visibility="public"
  472. deprecated="not deprecated">
  473. <param name="out" type="java.io.OutputStream"/>
  474. <exception name="IOException" type="java.io.IOException"/>
  475. <doc>
  476. <![CDATA[Write out the non-default properties in this configuration to the give
  477. {@link OutputStream}.
  478. @param out the output stream to write to.]]>
  479. </doc>
  480. </method>
  481. <method name="getClassLoader" return="java.lang.ClassLoader"
  482. abstract="false" native="false" synchronized="false"
  483. static="false" final="false" visibility="public"
  484. deprecated="not deprecated">
  485. <doc>
  486. <![CDATA[Get the {@link ClassLoader} for this job.
  487. @return the correct class loader.]]>
  488. </doc>
  489. </method>
  490. <method name="setClassLoader"
  491. abstract="false" native="false" synchronized="false"
  492. static="false" final="false" visibility="public"
  493. deprecated="not deprecated">
  494. <param name="classLoader" type="java.lang.ClassLoader"/>
  495. <doc>
  496. <![CDATA[Set the class loader that will be used to load the various objects.
  497. @param classLoader the new class loader.]]>
  498. </doc>
  499. </method>
  500. <method name="toString" return="java.lang.String"
  501. abstract="false" native="false" synchronized="false"
  502. static="false" final="false" visibility="public"
  503. deprecated="not deprecated">
  504. </method>
  505. <method name="setQuietMode"
  506. abstract="false" native="false" synchronized="true"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="quietmode" type="boolean"/>
  510. <doc>
  511. <![CDATA[Set the quiteness-mode.
  512. In the quite-mode error and informational messages might not be logged.
  513. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  514. to turn it off.]]>
  515. </doc>
  516. </method>
  517. <method name="main"
  518. abstract="false" native="false" synchronized="false"
  519. static="true" final="false" visibility="public"
  520. deprecated="not deprecated">
  521. <param name="args" type="java.lang.String[]"/>
  522. <exception name="Exception" type="java.lang.Exception"/>
  523. <doc>
  524. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  525. </doc>
  526. </method>
  527. <doc>
  528. <![CDATA[Provides access to configuration parameters.
  529. <h4 id="Resources">Resources</h4>
  530. <p>Configurations are specified by resources. A resource contains a set of
  531. name/value pairs as XML data. Each resource is named by either a
  532. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  533. then the classpath is examined for a file with that name. If named by a
  534. <code>Path</code>, then the local filesystem is examined directly, without
  535. referring to the classpath.
  536. <p>Hadoop by default specifies two resources, loaded in-order from the
  537. classpath: <ol>
  538. <li><tt><a href="{@docRoot}/../hadoop-default.html">hadoop-default.xml</a>
  539. </tt>: Read-only defaults for hadoop.</li>
  540. <li><tt>hadoop-site.xml</tt>: Site-specific configuration for a given hadoop
  541. installation.</li>
  542. </ol>
  543. Applications may add additional resources, which are loaded
  544. subsequent to these resources in the order they are added.
  545. <h4 id="FinalParams">Final Parameters</h4>
  546. <p>Configuration parameters may be declared <i>final</i>.
  547. Once a resource declares a value final, no subsequently-loaded
  548. resource can alter that value.
  549. For example, one might define a final parameter with:
  550. <tt><pre>
  551. &lt;property&gt;
  552. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  553. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  554. <b>&lt;final&gt;true&lt;/final&gt;</b>
  555. &lt;/property&gt;</pre></tt>
  556. Administrators typically define parameters as final in
  557. <tt>hadoop-site.xml</tt> for values that user applications may not alter.
  558. <h4 id="VariableExpansion">Variable Expansion</h4>
  559. <p>Value strings are first processed for <i>variable expansion</i>. The
  560. available properties are:<ol>
  561. <li>Other properties defined in this Configuration; and, if a name is
  562. undefined here,</li>
  563. <li>Properties in {@link System#getProperties()}.</li>
  564. </ol>
  565. <p>For example, if a configuration resource contains the following property
  566. definitions:
  567. <tt><pre>
  568. &lt;property&gt;
  569. &lt;name&gt;basedir&lt;/name&gt;
  570. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  571. &lt;/property&gt;
  572. &lt;property&gt;
  573. &lt;name&gt;tempdir&lt;/name&gt;
  574. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  575. &lt;/property&gt;</pre></tt>
  576. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  577. will be resolved to another property in this Configuration, while
  578. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  579. of the System property with that name.]]>
  580. </doc>
  581. </class>
  582. <!-- end class org.apache.hadoop.conf.Configuration -->
  583. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  584. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  585. abstract="false"
  586. static="true" final="false" visibility="public"
  587. deprecated="not deprecated">
  588. <constructor name="Configuration.IntegerRanges"
  589. static="false" final="false" visibility="public"
  590. deprecated="not deprecated">
  591. </constructor>
  592. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  593. static="false" final="false" visibility="public"
  594. deprecated="not deprecated">
  595. </constructor>
  596. <method name="isIncluded" return="boolean"
  597. abstract="false" native="false" synchronized="false"
  598. static="false" final="false" visibility="public"
  599. deprecated="not deprecated">
  600. <param name="value" type="int"/>
  601. <doc>
  602. <![CDATA[Is the given value in the set of ranges
  603. @param value the value to check
  604. @return is the value in the ranges?]]>
  605. </doc>
  606. </method>
  607. <method name="toString" return="java.lang.String"
  608. abstract="false" native="false" synchronized="false"
  609. static="false" final="false" visibility="public"
  610. deprecated="not deprecated">
  611. </method>
  612. <doc>
  613. <![CDATA[A class that represents a set of positive integer ranges. It parses
  614. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  615. the lower/upper bounds are separated by dash. Either the lower or upper
  616. bound may be omitted meaning all values up to or over. So the string
  617. above means 2, 3, 5, and 7, 8, 9, ...]]>
  618. </doc>
  619. </class>
  620. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  621. <!-- start class org.apache.hadoop.conf.Configured -->
  622. <class name="Configured" extends="java.lang.Object"
  623. abstract="false"
  624. static="false" final="false" visibility="public"
  625. deprecated="not deprecated">
  626. <implements name="org.apache.hadoop.conf.Configurable"/>
  627. <constructor name="Configured"
  628. static="false" final="false" visibility="public"
  629. deprecated="not deprecated">
  630. <doc>
  631. <![CDATA[Construct a Configured.]]>
  632. </doc>
  633. </constructor>
  634. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  635. static="false" final="false" visibility="public"
  636. deprecated="not deprecated">
  637. <doc>
  638. <![CDATA[Construct a Configured.]]>
  639. </doc>
  640. </constructor>
  641. <method name="setConf"
  642. abstract="false" native="false" synchronized="false"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  646. </method>
  647. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  648. abstract="false" native="false" synchronized="false"
  649. static="false" final="false" visibility="public"
  650. deprecated="not deprecated">
  651. </method>
  652. <doc>
  653. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  654. </doc>
  655. </class>
  656. <!-- end class org.apache.hadoop.conf.Configured -->
  657. <doc>
  658. <![CDATA[Configuration of system parameters.]]>
  659. </doc>
  660. </package>
  661. <package name="org.apache.hadoop.dfs">
  662. <!-- start class org.apache.hadoop.dfs.AlreadyBeingCreatedException -->
  663. <class name="AlreadyBeingCreatedException" extends="java.io.IOException"
  664. abstract="false"
  665. static="false" final="false" visibility="public"
  666. deprecated="not deprecated">
  667. <constructor name="AlreadyBeingCreatedException" type="java.lang.String"
  668. static="false" final="false" visibility="public"
  669. deprecated="not deprecated">
  670. </constructor>
  671. <doc>
  672. <![CDATA[The exception that happens when you ask to create a file that already
  673. is being created, but is not closed yet.]]>
  674. </doc>
  675. </class>
  676. <!-- end class org.apache.hadoop.dfs.AlreadyBeingCreatedException -->
  677. <!-- start class org.apache.hadoop.dfs.Balancer -->
  678. <class name="Balancer" extends="java.lang.Object"
  679. abstract="false"
  680. static="false" final="false" visibility="public"
  681. deprecated="not deprecated">
  682. <implements name="org.apache.hadoop.util.Tool"/>
  683. <method name="main"
  684. abstract="false" native="false" synchronized="false"
  685. static="true" final="false" visibility="public"
  686. deprecated="not deprecated">
  687. <param name="args" type="java.lang.String[]"/>
  688. <doc>
  689. <![CDATA[Run a balancer
  690. @param args]]>
  691. </doc>
  692. </method>
  693. <method name="run" return="int"
  694. abstract="false" native="false" synchronized="false"
  695. static="false" final="false" visibility="public"
  696. deprecated="not deprecated">
  697. <param name="args" type="java.lang.String[]"/>
  698. <exception name="Exception" type="java.lang.Exception"/>
  699. <doc>
  700. <![CDATA[main method of Balancer
  701. @param args arguments to a Balancer
  702. @exception any exception occurs during datanode balancing]]>
  703. </doc>
  704. </method>
  705. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  706. abstract="false" native="false" synchronized="false"
  707. static="false" final="false" visibility="public"
  708. deprecated="not deprecated">
  709. <doc>
  710. <![CDATA[return this balancer's configuration]]>
  711. </doc>
  712. </method>
  713. <method name="setConf"
  714. abstract="false" native="false" synchronized="false"
  715. static="false" final="false" visibility="public"
  716. deprecated="not deprecated">
  717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  718. <doc>
  719. <![CDATA[set this balancer's configuration]]>
  720. </doc>
  721. </method>
  722. <field name="SUCCESS" type="int"
  723. transient="false" volatile="false"
  724. static="true" final="true" visibility="public"
  725. deprecated="not deprecated">
  726. </field>
  727. <field name="ALREADY_RUNNING" type="int"
  728. transient="false" volatile="false"
  729. static="true" final="true" visibility="public"
  730. deprecated="not deprecated">
  731. </field>
  732. <field name="NO_MOVE_BLOCK" type="int"
  733. transient="false" volatile="false"
  734. static="true" final="true" visibility="public"
  735. deprecated="not deprecated">
  736. </field>
  737. <field name="NO_MOVE_PROGRESS" type="int"
  738. transient="false" volatile="false"
  739. static="true" final="true" visibility="public"
  740. deprecated="not deprecated">
  741. </field>
  742. <field name="IO_EXCEPTION" type="int"
  743. transient="false" volatile="false"
  744. static="true" final="true" visibility="public"
  745. deprecated="not deprecated">
  746. </field>
  747. <field name="ILLEGAL_ARGS" type="int"
  748. transient="false" volatile="false"
  749. static="true" final="true" visibility="public"
  750. deprecated="not deprecated">
  751. </field>
  752. <doc>
  753. <![CDATA[<p>The balancer is a tool that balances disk space usage on an HDFS cluster
  754. when some datanodes become full or when new empty nodes join the cluster.
  755. The tool is deployed as an application program that can be run by the
  756. cluster administrator on a live HDFS cluster while applications
  757. adding and deleting files.
  758. <p>SYNOPSIS
  759. <pre>
  760. To start:
  761. bin/start-balancer.sh [-threshold <threshold>]
  762. Example: bin/ start-balancer.sh
  763. start the balancer with a default threshold of 10%
  764. bin/ start-balancer.sh -threshold 5
  765. start the balancer with a threshold of 5%
  766. To stop:
  767. bin/ stop-balancer.sh
  768. </pre>
  769. <p>DESCRIPTION
  770. <p>The threshold parameter is a fraction in the range of (0%, 100%) with a
  771. default value of 10%. The threshold sets a target for whether the cluster
  772. is balanced. A cluster is balanced if for each datanode, the utilization
  773. of the node (ratio of used space at the node to total capacity of the node)
  774. differs from the utilization of the (ratio of used space in the cluster
  775. to total capacity of the cluster) by no more than the threshold value.
  776. The smaller the threshold, the more balanced a cluster will become.
  777. It takes more time to run the balancer for small threshold values.
  778. Also for a very small threshold the cluster may not be able to reach the
  779. balanced state when applications write and delete files concurrently.
  780. <p>The tool moves blocks from highly utilized datanodes to poorly
  781. utilized datanodes iteratively. In each iteration a datanode moves or
  782. receives no more than the lesser of 10G bytes or the threshold fraction
  783. of its capacity. Each iteration runs no more than 20 minutes.
  784. At the end of each iteration, the balancer obtains updated datanodes
  785. information from the namenode.
  786. <p>A system property that limits the balancer's use of bandwidth is
  787. defined in the default configuration file:
  788. <pre>
  789. <property>
  790. <name>dfs.balance.bandwidthPerSec</name>
  791. <value>1048576</value>
  792. <description> Specifies the maximum bandwidth that each datanode
  793. can utilize for the balancing purpose in term of the number of bytes
  794. per second. </description>
  795. </property>
  796. </pre>
  797. <p>This property determines the maximum speed at which a block will be
  798. moved from one datanode to another. The default value is 1MB/s. The higher
  799. the bandwidth, the faster a cluster can reach the balanced state,
  800. but with greater competition with application processes. If an
  801. administrator changes the value of this property in the configuration
  802. file, the change is observed when HDFS is next restarted.
  803. <p>MONITERING BALANCER PROGRESS
  804. <p>After the balancer is started, an output file name where the balancer
  805. progress will be recorded is printed on the screen. The administrator
  806. can monitor the running of the balancer by reading the output file.
  807. The output shows the balancer's status iteration by iteration. In each
  808. iteration it prints the starting time, the iteration number, the total
  809. number of bytes that have been moved in the previous iterations,
  810. the total number of bytes that are left to move in order for the cluster
  811. to be balanced, and the number of bytes that are being moved in this
  812. iteration. Normally "Bytes Already Moved" is increasing while "Bytes Left
  813. To Move" is decreasing.
  814. <p>Running multiple instances of the balancer in an HDFS cluster is
  815. prohibited by the tool.
  816. <p>The balancer automatically exits when any of the following five
  817. conditions is satisfied:
  818. <ol>
  819. <li>The cluster is balanced;
  820. <li>No block can be moved;
  821. <li>No block has been moved for five consecutive iterations;
  822. <li>An IOException occurs while communicating with the namenode;
  823. <li>Another balancer is running.
  824. </ol>
  825. <p>Upon exit, a balancer returns an exit code and prints one of the
  826. following messages to the output file in corresponding to the above exit
  827. reasons:
  828. <ol>
  829. <li>The cluster is balanced. Exiting
  830. <li>No block can be moved. Exiting...
  831. <li>No block has been moved for 3 iterations. Exiting...
  832. <li>Received an IO exception: failure reason. Exiting...
  833. <li>Another balancer is running. Exiting...
  834. </ol>
  835. <p>The administrator can interrupt the execution of the balancer at any
  836. time by running the command "stop-balancer.sh" on the machine where the
  837. balancer is running.]]>
  838. </doc>
  839. </class>
  840. <!-- end class org.apache.hadoop.dfs.Balancer -->
  841. <!-- start class org.apache.hadoop.dfs.ChecksumDistributedFileSystem -->
  842. <class name="ChecksumDistributedFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  843. abstract="false"
  844. static="false" final="false" visibility="public"
  845. deprecated="not deprecated">
  846. <constructor name="ChecksumDistributedFileSystem"
  847. static="false" final="false" visibility="public"
  848. deprecated="not deprecated">
  849. </constructor>
  850. <constructor name="ChecksumDistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  851. static="false" final="false" visibility="public"
  852. deprecated="deprecated, no comment">
  853. <exception name="IOException" type="java.io.IOException"/>
  854. <doc>
  855. <![CDATA[@deprecated]]>
  856. </doc>
  857. </constructor>
  858. <method name="getContentLength" return="long"
  859. abstract="false" native="false" synchronized="false"
  860. static="false" final="false" visibility="public"
  861. deprecated="not deprecated">
  862. <param name="f" type="org.apache.hadoop.fs.Path"/>
  863. <exception name="IOException" type="java.io.IOException"/>
  864. </method>
  865. <method name="getRawCapacity" return="long"
  866. abstract="false" native="false" synchronized="false"
  867. static="false" final="false" visibility="public"
  868. deprecated="not deprecated">
  869. <exception name="IOException" type="java.io.IOException"/>
  870. <doc>
  871. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  872. replication .]]>
  873. </doc>
  874. </method>
  875. <method name="getRawUsed" return="long"
  876. abstract="false" native="false" synchronized="false"
  877. static="false" final="false" visibility="public"
  878. deprecated="not deprecated">
  879. <exception name="IOException" type="java.io.IOException"/>
  880. <doc>
  881. <![CDATA[Return the total raw used space in the filesystem, disregarding
  882. replication .]]>
  883. </doc>
  884. </method>
  885. <method name="getDataNodeStats" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  886. abstract="false" native="false" synchronized="false"
  887. static="false" final="false" visibility="public"
  888. deprecated="not deprecated">
  889. <exception name="IOException" type="java.io.IOException"/>
  890. <doc>
  891. <![CDATA[Return statistics for each datanode.]]>
  892. </doc>
  893. </method>
  894. <method name="setSafeMode" return="boolean"
  895. abstract="false" native="false" synchronized="false"
  896. static="false" final="false" visibility="public"
  897. deprecated="not deprecated">
  898. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  899. <exception name="IOException" type="java.io.IOException"/>
  900. <doc>
  901. <![CDATA[Enter, leave or get safe mode.
  902. @see org.apache.hadoop.dfs.ClientProtocol#setSafeMode(FSConstants.SafeModeAction)]]>
  903. </doc>
  904. </method>
  905. <method name="refreshNodes"
  906. abstract="false" native="false" synchronized="false"
  907. static="false" final="false" visibility="public"
  908. deprecated="not deprecated">
  909. <exception name="IOException" type="java.io.IOException"/>
  910. </method>
  911. <method name="finalizeUpgrade"
  912. abstract="false" native="false" synchronized="false"
  913. static="false" final="false" visibility="public"
  914. deprecated="not deprecated">
  915. <exception name="IOException" type="java.io.IOException"/>
  916. <doc>
  917. <![CDATA[Finalize previously upgraded files system state.]]>
  918. </doc>
  919. </method>
  920. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  921. abstract="false" native="false" synchronized="false"
  922. static="false" final="false" visibility="public"
  923. deprecated="not deprecated">
  924. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  925. <exception name="IOException" type="java.io.IOException"/>
  926. </method>
  927. <method name="metaSave"
  928. abstract="false" native="false" synchronized="false"
  929. static="false" final="false" visibility="public"
  930. deprecated="not deprecated">
  931. <param name="pathname" type="java.lang.String"/>
  932. <exception name="IOException" type="java.io.IOException"/>
  933. </method>
  934. <method name="reportChecksumFailure" return="boolean"
  935. abstract="false" native="false" synchronized="false"
  936. static="false" final="false" visibility="public"
  937. deprecated="not deprecated">
  938. <param name="f" type="org.apache.hadoop.fs.Path"/>
  939. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  940. <param name="inPos" type="long"/>
  941. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  942. <param name="sumsPos" type="long"/>
  943. <doc>
  944. <![CDATA[We need to find the blocks that didn't match. Likely only one
  945. is corrupt but we will report both to the namenode. In the future,
  946. we can consider figuring out exactly which block is corrupt.]]>
  947. </doc>
  948. </method>
  949. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  950. abstract="false" native="false" synchronized="false"
  951. static="false" final="false" visibility="public"
  952. deprecated="not deprecated">
  953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  954. <exception name="IOException" type="java.io.IOException"/>
  955. <doc>
  956. <![CDATA[Returns the stat information about the file.]]>
  957. </doc>
  958. </method>
  959. <doc>
  960. <![CDATA[An implementation of ChecksumFileSystem over DistributedFileSystem.
  961. Note that as of now (May 07), DistributedFileSystem natively checksums
  962. all of its data. Using this class is not be necessary in most cases.
  963. Currently provided mainly for backward compatibility and testing.]]>
  964. </doc>
  965. </class>
  966. <!-- end class org.apache.hadoop.dfs.ChecksumDistributedFileSystem -->
  967. <!-- start class org.apache.hadoop.dfs.DataBlockScanner -->
  968. <class name="DataBlockScanner" extends="java.lang.Object"
  969. abstract="false"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <implements name="java.lang.Runnable"/>
  973. <method name="run"
  974. abstract="false" native="false" synchronized="false"
  975. static="false" final="false" visibility="public"
  976. deprecated="not deprecated">
  977. </method>
  978. <field name="LOG" type="org.apache.commons.logging.Log"
  979. transient="false" volatile="false"
  980. static="true" final="true" visibility="public"
  981. deprecated="not deprecated">
  982. </field>
  983. </class>
  984. <!-- end class org.apache.hadoop.dfs.DataBlockScanner -->
  985. <!-- start class org.apache.hadoop.dfs.DataBlockScanner.Servlet -->
  986. <class name="DataBlockScanner.Servlet" extends="javax.servlet.http.HttpServlet"
  987. abstract="false"
  988. static="true" final="false" visibility="public"
  989. deprecated="not deprecated">
  990. <constructor name="DataBlockScanner.Servlet"
  991. static="false" final="false" visibility="public"
  992. deprecated="not deprecated">
  993. </constructor>
  994. <method name="doGet"
  995. abstract="false" native="false" synchronized="false"
  996. static="false" final="false" visibility="public"
  997. deprecated="not deprecated">
  998. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  999. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  1000. <exception name="IOException" type="java.io.IOException"/>
  1001. </method>
  1002. </class>
  1003. <!-- end class org.apache.hadoop.dfs.DataBlockScanner.Servlet -->
  1004. <!-- start class org.apache.hadoop.dfs.DataChecksum -->
  1005. <class name="DataChecksum" extends="java.lang.Object"
  1006. abstract="false"
  1007. static="false" final="false" visibility="public"
  1008. deprecated="not deprecated">
  1009. <implements name="java.util.zip.Checksum"/>
  1010. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1011. abstract="false" native="false" synchronized="false"
  1012. static="true" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <param name="type" type="int"/>
  1015. <param name="bytesPerChecksum" type="int"/>
  1016. </method>
  1017. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1018. abstract="false" native="false" synchronized="false"
  1019. static="true" final="false" visibility="public"
  1020. deprecated="not deprecated">
  1021. <param name="bytes" type="byte[]"/>
  1022. <param name="offset" type="int"/>
  1023. <doc>
  1024. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  1025. @return DataChecksum of the type in the array or null in case of an error.]]>
  1026. </doc>
  1027. </method>
  1028. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1029. abstract="false" native="false" synchronized="false"
  1030. static="true" final="false" visibility="public"
  1031. deprecated="not deprecated">
  1032. <param name="in" type="java.io.DataInputStream"/>
  1033. <exception name="IOException" type="java.io.IOException"/>
  1034. <doc>
  1035. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  1036. input stream <i>in</i>]]>
  1037. </doc>
  1038. </method>
  1039. <method name="writeHeader"
  1040. abstract="false" native="false" synchronized="false"
  1041. static="false" final="false" visibility="public"
  1042. deprecated="not deprecated">
  1043. <param name="out" type="java.io.DataOutputStream"/>
  1044. <exception name="IOException" type="java.io.IOException"/>
  1045. <doc>
  1046. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  1047. </doc>
  1048. </method>
  1049. <method name="getHeader" return="byte[]"
  1050. abstract="false" native="false" synchronized="false"
  1051. static="false" final="false" visibility="public"
  1052. deprecated="not deprecated">
  1053. </method>
  1054. <method name="writeValue" return="int"
  1055. abstract="false" native="false" synchronized="false"
  1056. static="false" final="false" visibility="public"
  1057. deprecated="not deprecated">
  1058. <param name="out" type="java.io.DataOutputStream"/>
  1059. <param name="reset" type="boolean"/>
  1060. <exception name="IOException" type="java.io.IOException"/>
  1061. <doc>
  1062. <![CDATA[Writes the current checksum to the stream.
  1063. If <i>reset</i> is true, then resets the checksum.
  1064. @return number of bytes written. Will be equal to getChecksumSize();]]>
  1065. </doc>
  1066. </method>
  1067. <method name="writeValue" return="int"
  1068. abstract="false" native="false" synchronized="false"
  1069. static="false" final="false" visibility="public"
  1070. deprecated="not deprecated">
  1071. <param name="buf" type="byte[]"/>
  1072. <param name="offset" type="int"/>
  1073. <param name="reset" type="boolean"/>
  1074. <exception name="IOException" type="java.io.IOException"/>
  1075. <doc>
  1076. <![CDATA[Writes the current checksum to a buffer.
  1077. If <i>reset</i> is true, then resets the checksum.
  1078. @return number of bytes written. Will be equal to getChecksumSize();]]>
  1079. </doc>
  1080. </method>
  1081. <method name="compare" return="boolean"
  1082. abstract="false" native="false" synchronized="false"
  1083. static="false" final="false" visibility="public"
  1084. deprecated="not deprecated">
  1085. <param name="buf" type="byte[]"/>
  1086. <param name="offset" type="int"/>
  1087. <doc>
  1088. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  1089. @return true if the checksum matches and false otherwise.]]>
  1090. </doc>
  1091. </method>
  1092. <method name="getChecksumType" return="int"
  1093. abstract="false" native="false" synchronized="false"
  1094. static="false" final="false" visibility="public"
  1095. deprecated="not deprecated">
  1096. </method>
  1097. <method name="getChecksumSize" return="int"
  1098. abstract="false" native="false" synchronized="false"
  1099. static="false" final="false" visibility="public"
  1100. deprecated="not deprecated">
  1101. </method>
  1102. <method name="getBytesPerChecksum" return="int"
  1103. abstract="false" native="false" synchronized="false"
  1104. static="false" final="false" visibility="public"
  1105. deprecated="not deprecated">
  1106. </method>
  1107. <method name="getNumBytesInSum" return="int"
  1108. abstract="false" native="false" synchronized="false"
  1109. static="false" final="false" visibility="public"
  1110. deprecated="not deprecated">
  1111. </method>
  1112. <method name="getChecksumHeaderSize" return="int"
  1113. abstract="false" native="false" synchronized="false"
  1114. static="false" final="false" visibility="public"
  1115. deprecated="not deprecated">
  1116. </method>
  1117. <method name="getValue" return="long"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="false" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. </method>
  1122. <method name="reset"
  1123. abstract="false" native="false" synchronized="false"
  1124. static="false" final="false" visibility="public"
  1125. deprecated="not deprecated">
  1126. </method>
  1127. <method name="update"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. <param name="b" type="byte[]"/>
  1132. <param name="off" type="int"/>
  1133. <param name="len" type="int"/>
  1134. </method>
  1135. <method name="update"
  1136. abstract="false" native="false" synchronized="false"
  1137. static="false" final="false" visibility="public"
  1138. deprecated="not deprecated">
  1139. <param name="b" type="int"/>
  1140. </method>
  1141. <field name="HEADER_LEN" type="int"
  1142. transient="false" volatile="false"
  1143. static="true" final="true" visibility="public"
  1144. deprecated="not deprecated">
  1145. </field>
  1146. <field name="CHECKSUM_NULL" type="int"
  1147. transient="false" volatile="false"
  1148. static="true" final="true" visibility="public"
  1149. deprecated="not deprecated">
  1150. </field>
  1151. <field name="CHECKSUM_CRC32" type="int"
  1152. transient="false" volatile="false"
  1153. static="true" final="true" visibility="public"
  1154. deprecated="not deprecated">
  1155. </field>
  1156. <doc>
  1157. <![CDATA[This class provides inteface and utilities for processing checksums for
  1158. DFS data transfers.]]>
  1159. </doc>
  1160. </class>
  1161. <!-- end class org.apache.hadoop.dfs.DataChecksum -->
  1162. <!-- start class org.apache.hadoop.dfs.DataNode -->
  1163. <class name="DataNode" extends="java.lang.Object"
  1164. abstract="false"
  1165. static="false" final="false" visibility="public"
  1166. deprecated="not deprecated">
  1167. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  1168. <implements name="java.lang.Runnable"/>
  1169. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  1170. abstract="false" native="false" synchronized="false"
  1171. static="true" final="false" visibility="public"
  1172. deprecated="not deprecated">
  1173. <param name="target" type="java.lang.String"/>
  1174. <exception name="IOException" type="java.io.IOException"/>
  1175. <doc>
  1176. <![CDATA[Use {@link NetUtils#createSocketAddr(String)} instead.]]>
  1177. </doc>
  1178. </method>
  1179. <method name="getDataNode" return="org.apache.hadoop.dfs.DataNode"
  1180. abstract="false" native="false" synchronized="false"
  1181. static="true" final="false" visibility="public"
  1182. deprecated="not deprecated">
  1183. <doc>
  1184. <![CDATA[Return the DataNode object]]>
  1185. </doc>
  1186. </method>
  1187. <method name="getNameNodeAddr" return="java.net.InetSocketAddress"
  1188. abstract="false" native="false" synchronized="false"
  1189. static="false" final="false" visibility="public"
  1190. deprecated="not deprecated">
  1191. </method>
  1192. <method name="getSelfAddr" return="java.net.InetSocketAddress"
  1193. abstract="false" native="false" synchronized="false"
  1194. static="false" final="false" visibility="public"
  1195. deprecated="not deprecated">
  1196. </method>
  1197. <method name="getNamenode" return="java.lang.String"
  1198. abstract="false" native="false" synchronized="false"
  1199. static="false" final="false" visibility="public"
  1200. deprecated="not deprecated">
  1201. <doc>
  1202. <![CDATA[Return the namenode's identifier]]>
  1203. </doc>
  1204. </method>
  1205. <method name="shutdown"
  1206. abstract="false" native="false" synchronized="false"
  1207. static="false" final="false" visibility="public"
  1208. deprecated="not deprecated">
  1209. <doc>
  1210. <![CDATA[Shut down this instance of the datanode.
  1211. Returns only after shutdown is complete.]]>
  1212. </doc>
  1213. </method>
  1214. <method name="offerService"
  1215. abstract="false" native="false" synchronized="false"
  1216. static="false" final="false" visibility="public"
  1217. deprecated="not deprecated">
  1218. <exception name="Exception" type="java.lang.Exception"/>
  1219. <doc>
  1220. <![CDATA[Main loop for the DataNode. Runs until shutdown,
  1221. forever calling remote NameNode functions.]]>
  1222. </doc>
  1223. </method>
  1224. <method name="run"
  1225. abstract="false" native="false" synchronized="false"
  1226. static="false" final="false" visibility="public"
  1227. deprecated="not deprecated">
  1228. <doc>
  1229. <![CDATA[No matter what kind of exception we get, keep retrying to offerService().
  1230. That's the loop that connects to the NameNode and provides basic DataNode
  1231. functionality.
  1232. Only stop when "shouldRun" is turned off (which can only happen at shutdown).]]>
  1233. </doc>
  1234. </method>
  1235. <method name="toString" return="java.lang.String"
  1236. abstract="false" native="false" synchronized="false"
  1237. static="false" final="false" visibility="public"
  1238. deprecated="not deprecated">
  1239. </method>
  1240. <method name="scheduleBlockReport"
  1241. abstract="false" native="false" synchronized="false"
  1242. static="false" final="false" visibility="public"
  1243. deprecated="not deprecated">
  1244. <param name="delay" type="long"/>
  1245. <doc>
  1246. <![CDATA[This methods arranges for the data node to send the block report at the next heartbeat.]]>
  1247. </doc>
  1248. </method>
  1249. <method name="getFSDataset" return="org.apache.hadoop.dfs.FSDatasetInterface"
  1250. abstract="false" native="false" synchronized="false"
  1251. static="false" final="false" visibility="public"
  1252. deprecated="not deprecated">
  1253. <doc>
  1254. <![CDATA[This method is used for testing.
  1255. Examples are adding and deleting blocks directly.
  1256. The most common usage will be when the data node's storage is similated.
  1257. @return the fsdataset that stores the blocks]]>
  1258. </doc>
  1259. </method>
  1260. <method name="main"
  1261. abstract="false" native="false" synchronized="false"
  1262. static="true" final="false" visibility="public"
  1263. deprecated="not deprecated">
  1264. <param name="args" type="java.lang.String[]"/>
  1265. </method>
  1266. <field name="LOG" type="org.apache.commons.logging.Log"
  1267. transient="false" volatile="false"
  1268. static="true" final="true" visibility="public"
  1269. deprecated="not deprecated">
  1270. </field>
  1271. <doc>
  1272. <![CDATA[DataNode is a class (and program) that stores a set of
  1273. blocks for a DFS deployment. A single deployment can
  1274. have one or many DataNodes. Each DataNode communicates
  1275. regularly with a single NameNode. It also communicates
  1276. with client code and other DataNodes from time to time.
  1277. DataNodes store a series of named blocks. The DataNode
  1278. allows client code to read these blocks, or to write new
  1279. block data. The DataNode may also, in response to instructions
  1280. from its NameNode, delete blocks or copy blocks to/from other
  1281. DataNodes.
  1282. The DataNode maintains just one critical table:
  1283. block-> stream of bytes (of BLOCK_SIZE or less)
  1284. This info is stored on a local disk. The DataNode
  1285. reports the table's contents to the NameNode upon startup
  1286. and every so often afterwards.
  1287. DataNodes spend their lives in an endless loop of asking
  1288. the NameNode for something to do. A NameNode cannot connect
  1289. to a DataNode directly; a NameNode simply returns values from
  1290. functions invoked by a DataNode.
  1291. DataNodes maintain an open server socket so that client code
  1292. or other DataNodes can read/write data. The host/port for
  1293. this server is reported to the NameNode, which then sends that
  1294. information to clients or other DataNodes that might be interested.]]>
  1295. </doc>
  1296. </class>
  1297. <!-- end class org.apache.hadoop.dfs.DataNode -->
  1298. <!-- start class org.apache.hadoop.dfs.DatanodeDescriptor -->
  1299. <class name="DatanodeDescriptor" extends="org.apache.hadoop.dfs.DatanodeInfo"
  1300. abstract="false"
  1301. static="false" final="false" visibility="public"
  1302. deprecated="not deprecated">
  1303. <constructor name="DatanodeDescriptor"
  1304. static="false" final="false" visibility="public"
  1305. deprecated="not deprecated">
  1306. <doc>
  1307. <![CDATA[Default constructor]]>
  1308. </doc>
  1309. </constructor>
  1310. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID"
  1311. static="false" final="false" visibility="public"
  1312. deprecated="not deprecated">
  1313. <doc>
  1314. <![CDATA[DatanodeDescriptor constructor
  1315. @param nodeID id of the data node]]>
  1316. </doc>
  1317. </constructor>
  1318. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String"
  1319. static="false" final="false" visibility="public"
  1320. deprecated="not deprecated">
  1321. <doc>
  1322. <![CDATA[DatanodeDescriptor constructor
  1323. @param nodeID id of the data node
  1324. @param networkLocation location of the data node in network]]>
  1325. </doc>
  1326. </constructor>
  1327. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String, java.lang.String"
  1328. static="false" final="false" visibility="public"
  1329. deprecated="not deprecated">
  1330. <doc>
  1331. <![CDATA[DatanodeDescriptor constructor
  1332. @param nodeID id of the data node
  1333. @param networkLocation location of the data node in network
  1334. @param hostName it could be different from host specified for DatanodeID]]>
  1335. </doc>
  1336. </constructor>
  1337. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, long, long, long, int"
  1338. static="false" final="false" visibility="public"
  1339. deprecated="not deprecated">
  1340. <doc>
  1341. <![CDATA[DatanodeDescriptor constructor
  1342. @param nodeID id of the data node
  1343. @param capacity capacity of the data node
  1344. @param dfsUsed space used by the data node
  1345. @param remaining remaing capacity of the data node
  1346. @param xceiverCount # of data transfers at the data node]]>
  1347. </doc>
  1348. </constructor>
  1349. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String, java.lang.String, long, long, long, int"
  1350. static="false" final="false" visibility="public"
  1351. deprecated="not deprecated">
  1352. <doc>
  1353. <![CDATA[DatanodeDescriptor constructor
  1354. @param nodeID id of the data node
  1355. @param networkLocation location of the data node in network
  1356. @param capacity capacity of the data node, including space used by non-dfs
  1357. @param dfsUsed the used space by dfs datanode
  1358. @param remaining remaing capacity of the data node
  1359. @param xceiverCount # of data transfers at the data node]]>
  1360. </doc>
  1361. </constructor>
  1362. <field name="isAlive" type="boolean"
  1363. transient="false" volatile="false"
  1364. static="false" final="false" visibility="protected"
  1365. deprecated="not deprecated">
  1366. </field>
  1367. <doc>
  1368. <![CDATA[DatanodeDescriptor tracks stats on a given DataNode,
  1369. such as available storage capacity, last update time, etc.,
  1370. and maintains a set of blocks stored on the datanode.
  1371. This data structure is a data structure that is internal
  1372. to the namenode. It is *not* sent over-the-wire to the Client
  1373. or the Datnodes. Neither is it stored persistently in the
  1374. fsImage.]]>
  1375. </doc>
  1376. </class>
  1377. <!-- end class org.apache.hadoop.dfs.DatanodeDescriptor -->
  1378. <!-- start class org.apache.hadoop.dfs.DatanodeID -->
  1379. <class name="DatanodeID" extends="java.lang.Object"
  1380. abstract="false"
  1381. static="false" final="false" visibility="public"
  1382. deprecated="not deprecated">
  1383. <implements name="org.apache.hadoop.io.WritableComparable"/>
  1384. <constructor name="DatanodeID"
  1385. static="false" final="false" visibility="public"
  1386. deprecated="not deprecated">
  1387. <doc>
  1388. <![CDATA[DatanodeID default constructor]]>
  1389. </doc>
  1390. </constructor>
  1391. <constructor name="DatanodeID" type="org.apache.hadoop.dfs.DatanodeID"
  1392. static="false" final="false" visibility="public"
  1393. deprecated="not deprecated">
  1394. <doc>
  1395. <![CDATA[DatanodeID copy constructor
  1396. @param from]]>
  1397. </doc>
  1398. </constructor>
  1399. <constructor name="DatanodeID" type="java.lang.String, java.lang.String, int"
  1400. static="false" final="false" visibility="public"
  1401. deprecated="not deprecated">
  1402. <doc>
  1403. <![CDATA[Create DatanodeID
  1404. @param nodeName (hostname:portNumber)
  1405. @param storageID data storage ID]]>
  1406. </doc>
  1407. </constructor>
  1408. <method name="getName" return="java.lang.String"
  1409. abstract="false" native="false" synchronized="false"
  1410. static="false" final="false" visibility="public"
  1411. deprecated="not deprecated">
  1412. <doc>
  1413. <![CDATA[@return hostname:portNumber.]]>
  1414. </doc>
  1415. </method>
  1416. <method name="getStorageID" return="java.lang.String"
  1417. abstract="false" native="false" synchronized="false"
  1418. static="false" final="false" visibility="public"
  1419. deprecated="not deprecated">
  1420. <doc>
  1421. <![CDATA[@return data storage ID.]]>
  1422. </doc>
  1423. </method>
  1424. <method name="getInfoPort" return="int"
  1425. abstract="false" native="false" synchronized="false"
  1426. static="false" final="false" visibility="public"
  1427. deprecated="not deprecated">
  1428. <doc>
  1429. <![CDATA[@return infoPort (the port at which the HTTP server bound to)]]>
  1430. </doc>
  1431. </method>
  1432. <method name="getHost" return="java.lang.String"
  1433. abstract="false" native="false" synchronized="false"
  1434. static="false" final="false" visibility="public"
  1435. deprecated="not deprecated">
  1436. <doc>
  1437. <![CDATA[@return hostname and no :portNumber.]]>
  1438. </doc>
  1439. </method>
  1440. <method name="getPort" return="int"
  1441. abstract="false" native="false" synchronized="false"
  1442. static="false" final="false" visibility="public"
  1443. deprecated="not deprecated">
  1444. </method>
  1445. <method name="equals" return="boolean"
  1446. abstract="false" native="false" synchronized="false"
  1447. static="false" final="false" visibility="public"
  1448. deprecated="not deprecated">
  1449. <param name="to" type="java.lang.Object"/>
  1450. </method>
  1451. <method name="hashCode" return="int"
  1452. abstract="false" native="false" synchronized="false"
  1453. static="false" final="false" visibility="public"
  1454. deprecated="not deprecated">
  1455. </method>
  1456. <method name="toString" return="java.lang.String"
  1457. abstract="false" native="false" synchronized="false"
  1458. static="false" final="false" visibility="public"
  1459. deprecated="not deprecated">
  1460. </method>
  1461. <method name="compareTo" return="int"
  1462. abstract="false" native="false" synchronized="false"
  1463. static="false" final="false" visibility="public"
  1464. deprecated="not deprecated">
  1465. <param name="o" type="java.lang.Object"/>
  1466. <doc>
  1467. <![CDATA[Comparable.
  1468. Basis of compare is the String name (host:portNumber) only.
  1469. @param o
  1470. @return as specified by Comparable.]]>
  1471. </doc>
  1472. </method>
  1473. <method name="write"
  1474. abstract="false" native="false" synchronized="false"
  1475. static="false" final="false" visibility="public"
  1476. deprecated="not deprecated">
  1477. <param name="out" type="java.io.DataOutput"/>
  1478. <exception name="IOException" type="java.io.IOException"/>
  1479. </method>
  1480. <method name="readFields"
  1481. abstract="false" native="false" synchronized="false"
  1482. static="false" final="false" visibility="public"
  1483. deprecated="not deprecated">
  1484. <param name="in" type="java.io.DataInput"/>
  1485. <exception name="IOException" type="java.io.IOException"/>
  1486. </method>
  1487. <field name="name" type="java.lang.String"
  1488. transient="false" volatile="false"
  1489. static="false" final="false" visibility="protected"
  1490. deprecated="not deprecated">
  1491. </field>
  1492. <field name="storageID" type="java.lang.String"
  1493. transient="false" volatile="false"
  1494. static="false" final="false" visibility="protected"
  1495. deprecated="not deprecated">
  1496. </field>
  1497. <field name="infoPort" type="int"
  1498. transient="false" volatile="false"
  1499. static="false" final="false" visibility="protected"
  1500. deprecated="not deprecated">
  1501. </field>
  1502. <doc>
  1503. <![CDATA[DatanodeID is composed of the data node
  1504. name (hostname:portNumber) and the data storage ID,
  1505. which it currently represents.]]>
  1506. </doc>
  1507. </class>
  1508. <!-- end class org.apache.hadoop.dfs.DatanodeID -->
  1509. <!-- start class org.apache.hadoop.dfs.DatanodeInfo -->
  1510. <class name="DatanodeInfo" extends="org.apache.hadoop.dfs.DatanodeID"
  1511. abstract="false"
  1512. static="false" final="false" visibility="public"
  1513. deprecated="not deprecated">
  1514. <implements name="org.apache.hadoop.net.Node"/>
  1515. <method name="getCapacity" return="long"
  1516. abstract="false" native="false" synchronized="false"
  1517. static="false" final="false" visibility="public"
  1518. deprecated="not deprecated">
  1519. <doc>
  1520. <![CDATA[The raw capacity.]]>
  1521. </doc>
  1522. </method>
  1523. <method name="getDfsUsed" return="long"
  1524. abstract="false" native="false" synchronized="false"
  1525. static="false" final="false" visibility="public"
  1526. deprecated="not deprecated">
  1527. <doc>
  1528. <![CDATA[The used space by the data node.]]>
  1529. </doc>
  1530. </method>
  1531. <method name="getRemaining" return="long"
  1532. abstract="false" native="false" synchronized="false"
  1533. static="false" final="false" visibility="public"
  1534. deprecated="not deprecated">
  1535. <doc>
  1536. <![CDATA[The raw free space.]]>
  1537. </doc>
  1538. </method>
  1539. <method name="getLastUpdate" return="long"
  1540. abstract="false" native="false" synchronized="false"
  1541. static="false" final="false" visibility="public"
  1542. deprecated="not deprecated">
  1543. <doc>
  1544. <![CDATA[The time when this information was accurate.]]>
  1545. </doc>
  1546. </method>
  1547. <method name="getXceiverCount" return="int"
  1548. abstract="false" native="false" synchronized="false"
  1549. static="false" final="false" visibility="public"
  1550. deprecated="not deprecated">
  1551. <doc>
  1552. <![CDATA[number of active connections]]>
  1553. </doc>
  1554. </method>
  1555. <method name="getNetworkLocation" return="java.lang.String"
  1556. abstract="false" native="false" synchronized="true"
  1557. static="false" final="false" visibility="public"
  1558. deprecated="not deprecated">
  1559. <doc>
  1560. <![CDATA[rack name]]>
  1561. </doc>
  1562. </method>
  1563. <method name="setNetworkLocation"
  1564. abstract="false" native="false" synchronized="true"
  1565. static="false" final="false" visibility="public"
  1566. deprecated="not deprecated">
  1567. <param name="location" type="java.lang.String"/>
  1568. <doc>
  1569. <![CDATA[Sets the rack name]]>
  1570. </doc>
  1571. </method>
  1572. <method name="getHostName" return="java.lang.String"
  1573. abstract="false" native="false" synchronized="false"
  1574. static="false" final="false" visibility="public"
  1575. deprecated="not deprecated">
  1576. </method>
  1577. <method name="setHostName"
  1578. abstract="false" native="false" synchronized="false"
  1579. static="false" final="false" visibility="public"
  1580. deprecated="not deprecated">
  1581. <param name="host" type="java.lang.String"/>
  1582. </method>
  1583. <method name="getDatanodeReport" return="java.lang.String"
  1584. abstract="false" native="false" synchronized="false"
  1585. static="false" final="false" visibility="public"
  1586. deprecated="not deprecated">
  1587. <doc>
  1588. <![CDATA[A formatted string for reporting the status of the DataNode.]]>
  1589. </doc>
  1590. </method>
  1591. <method name="getParent" return="org.apache.hadoop.net.Node"
  1592. abstract="false" native="false" synchronized="false"
  1593. static="false" final="false" visibility="public"
  1594. deprecated="not deprecated">
  1595. <doc>
  1596. <![CDATA[Return this node's parent]]>
  1597. </doc>
  1598. </method>
  1599. <method name="setParent"
  1600. abstract="false" native="false" synchronized="false"
  1601. static="false" final="false" visibility="public"
  1602. deprecated="not deprecated">
  1603. <param name="parent" type="org.apache.hadoop.net.Node"/>
  1604. </method>
  1605. <method name="getLevel" return="int"
  1606. abstract="false" native="false" synchronized="false"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. <doc>
  1610. <![CDATA[Return this node's level in the tree.
  1611. E.g. the root of a tree returns 0 and its children return 1]]>
  1612. </doc>
  1613. </method>
  1614. <method name="setLevel"
  1615. abstract="false" native="false" synchronized="false"
  1616. static="false" final="false" visibility="public"
  1617. deprecated="not deprecated">
  1618. <param name="level" type="int"/>
  1619. </method>
  1620. <method name="write"
  1621. abstract="false" native="false" synchronized="false"
  1622. static="false" final="false" visibility="public"
  1623. deprecated="not deprecated">
  1624. <param name="out" type="java.io.DataOutput"/>
  1625. <exception name="IOException" type="java.io.IOException"/>
  1626. </method>
  1627. <method name="readFields"
  1628. abstract="false" native="false" synchronized="false"
  1629. static="false" final="false" visibility="public"
  1630. deprecated="not deprecated">
  1631. <param name="in" type="java.io.DataInput"/>
  1632. <exception name="IOException" type="java.io.IOException"/>
  1633. </method>
  1634. <field name="capacity" type="long"
  1635. transient="false" volatile="false"
  1636. static="false" final="false" visibility="protected"
  1637. deprecated="not deprecated">
  1638. </field>
  1639. <field name="dfsUsed" type="long"
  1640. transient="false" volatile="false"
  1641. static="false" final="false" visibility="protected"
  1642. deprecated="not deprecated">
  1643. </field>
  1644. <field name="remaining" type="long"
  1645. transient="false" volatile="false"
  1646. static="false" final="false" visibility="protected"
  1647. deprecated="not deprecated">
  1648. </field>
  1649. <field name="lastUpdate" type="long"
  1650. transient="false" volatile="false"
  1651. static="false" final="false" visibility="protected"
  1652. deprecated="not deprecated">
  1653. </field>
  1654. <field name="xceiverCount" type="int"
  1655. transient="false" volatile="false"
  1656. static="false" final="false" visibility="protected"
  1657. deprecated="not deprecated">
  1658. </field>
  1659. <field name="adminState" type="org.apache.hadoop.dfs.DatanodeInfo.AdminStates"
  1660. transient="false" volatile="false"
  1661. static="false" final="false" visibility="protected"
  1662. deprecated="not deprecated">
  1663. </field>
  1664. <doc>
  1665. <![CDATA[DatanodeInfo represents the status of a DataNode.
  1666. This object is used for communication in the
  1667. Datanode Protocol and the Client Protocol.]]>
  1668. </doc>
  1669. </class>
  1670. <!-- end class org.apache.hadoop.dfs.DatanodeInfo -->
  1671. <!-- start class org.apache.hadoop.dfs.DatanodeInfo.AdminStates -->
  1672. <class name="DatanodeInfo.AdminStates" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.DatanodeInfo.AdminStates&gt;"
  1673. abstract="false"
  1674. static="true" final="true" visibility="public"
  1675. deprecated="not deprecated">
  1676. <method name="values" return="org.apache.hadoop.dfs.DatanodeInfo.AdminStates[]"
  1677. abstract="false" native="false" synchronized="false"
  1678. static="true" final="false" visibility="public"
  1679. deprecated="not deprecated">
  1680. </method>
  1681. <method name="valueOf" return="org.apache.hadoop.dfs.DatanodeInfo.AdminStates"
  1682. abstract="false" native="false" synchronized="false"
  1683. static="true" final="false" visibility="public"
  1684. deprecated="not deprecated">
  1685. <param name="name" type="java.lang.String"/>
  1686. </method>
  1687. </class>
  1688. <!-- end class org.apache.hadoop.dfs.DatanodeInfo.AdminStates -->
  1689. <!-- start class org.apache.hadoop.dfs.DFSAdmin -->
  1690. <class name="DFSAdmin" extends="org.apache.hadoop.fs.FsShell"
  1691. abstract="false"
  1692. static="false" final="false" visibility="public"
  1693. deprecated="not deprecated">
  1694. <constructor name="DFSAdmin"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. <doc>
  1698. <![CDATA[Construct a DFSAdmin object.]]>
  1699. </doc>
  1700. </constructor>
  1701. <constructor name="DFSAdmin" type="org.apache.hadoop.conf.Configuration"
  1702. static="false" final="false" visibility="public"
  1703. deprecated="not deprecated">
  1704. <doc>
  1705. <![CDATA[Construct a DFSAdmin object.]]>
  1706. </doc>
  1707. </constructor>
  1708. <method name="report"
  1709. abstract="false" native="false" synchronized="false"
  1710. static="false" final="false" visibility="public"
  1711. deprecated="not deprecated">
  1712. <exception name="IOException" type="java.io.IOException"/>
  1713. <doc>
  1714. <![CDATA[Gives a report on how the FileSystem is doing.
  1715. @exception IOException if the filesystem does not exist.]]>
  1716. </doc>
  1717. </method>
  1718. <method name="setSafeMode"
  1719. abstract="false" native="false" synchronized="false"
  1720. static="false" final="false" visibility="public"
  1721. deprecated="not deprecated">
  1722. <param name="argv" type="java.lang.String[]"/>
  1723. <param name="idx" type="int"/>
  1724. <exception name="IOException" type="java.io.IOException"/>
  1725. <doc>
  1726. <![CDATA[Safe mode maintenance command.
  1727. Usage: java DFSAdmin -safemode [enter | leave | get]
  1728. @param argv List of of command line parameters.
  1729. @param idx The index of the command that is being processed.
  1730. @exception IOException if the filesystem does not exist.]]>
  1731. </doc>
  1732. </method>
  1733. <method name="refreshNodes" return="int"
  1734. abstract="false" native="false" synchronized="false"
  1735. static="false" final="false" visibility="public"
  1736. deprecated="not deprecated">
  1737. <exception name="IOException" type="java.io.IOException"/>
  1738. <doc>
  1739. <![CDATA[Command to ask the namenode to reread the hosts and excluded hosts
  1740. file.
  1741. Usage: java DFSAdmin -refreshNodes
  1742. @exception IOException]]>
  1743. </doc>
  1744. </method>
  1745. <method name="finalizeUpgrade" return="int"
  1746. abstract="false" native="false" synchronized="false"
  1747. static="false" final="false" visibility="public"
  1748. deprecated="not deprecated">
  1749. <exception name="IOException" type="java.io.IOException"/>
  1750. <doc>
  1751. <![CDATA[Command to ask the namenode to finalize previously performed upgrade.
  1752. Usage: java DFSAdmin -finalizeUpgrade
  1753. @exception IOException]]>
  1754. </doc>
  1755. </method>
  1756. <method name="upgradeProgress" return="int"
  1757. abstract="false" native="false" synchronized="false"
  1758. static="false" final="false" visibility="public"
  1759. deprecated="not deprecated">
  1760. <param name="argv" type="java.lang.String[]"/>
  1761. <param name="idx" type="int"/>
  1762. <exception name="IOException" type="java.io.IOException"/>
  1763. <doc>
  1764. <![CDATA[Command to request current distributed upgrade status,
  1765. a detailed status, or to force the upgrade to proceed.
  1766. Usage: java DFSAdmin -upgradeProgress [status | details | force]
  1767. @exception IOException]]>
  1768. </doc>
  1769. </method>
  1770. <method name="metaSave" return="int"
  1771. abstract="false" native="false" synchronized="false"
  1772. static="false" final="false" visibility="public"
  1773. deprecated="not deprecated">
  1774. <param name="argv" type="java.lang.String[]"/>
  1775. <param name="idx" type="int"/>
  1776. <exception name="IOException" type="java.io.IOException"/>
  1777. <doc>
  1778. <![CDATA[Dumps DFS data structures into specified file.
  1779. Usage: java DFSAdmin -metasave filename
  1780. @param argv List of of command line parameters.
  1781. @param idx The index of the command that is being processed.
  1782. @exception IOException if an error accoured wile accessing
  1783. the file or path.]]>
  1784. </doc>
  1785. </method>
  1786. <method name="printUsage"
  1787. abstract="false" native="false" synchronized="false"
  1788. static="false" final="false" visibility="public"
  1789. deprecated="not deprecated">
  1790. <param name="cmd" type="java.lang.String"/>
  1791. <doc>
  1792. <![CDATA[Displays format of commands.
  1793. @param cmd The command that is being executed.]]>
  1794. </doc>
  1795. </method>
  1796. <method name="run" return="int"
  1797. abstract="false" native="false" synchronized="false"
  1798. static="false" final="false" visibility="public"
  1799. deprecated="not deprecated">
  1800. <param name="argv" type="java.lang.String[]"/>
  1801. <exception name="Exception" type="java.lang.Exception"/>
  1802. <doc>
  1803. <![CDATA[@param argv The parameters passed to this program.
  1804. @exception Exception if the filesystem does not exist.
  1805. @return 0 on success, non zero on error.]]>
  1806. </doc>
  1807. </method>
  1808. <method name="main"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="true" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <param name="argv" type="java.lang.String[]"/>
  1813. <exception name="Exception" type="java.lang.Exception"/>
  1814. <doc>
  1815. <![CDATA[main() has some simple utility methods.
  1816. @param argv Command line parameters.
  1817. @exception Exception if the filesystem does not exist.]]>
  1818. </doc>
  1819. </method>
  1820. <doc>
  1821. <![CDATA[This class provides some DFS administrative access.]]>
  1822. </doc>
  1823. </class>
  1824. <!-- end class org.apache.hadoop.dfs.DFSAdmin -->
  1825. <!-- start class org.apache.hadoop.dfs.DFSck -->
  1826. <class name="DFSck" extends="org.apache.hadoop.conf.Configured"
  1827. abstract="false"
  1828. static="false" final="false" visibility="public"
  1829. deprecated="not deprecated">
  1830. <implements name="org.apache.hadoop.util.Tool"/>
  1831. <constructor name="DFSck" type="org.apache.hadoop.conf.Configuration"
  1832. static="false" final="false" visibility="public"
  1833. deprecated="not deprecated">
  1834. <exception name="Exception" type="java.lang.Exception"/>
  1835. <doc>
  1836. <![CDATA[Filesystem checker.
  1837. @param conf current Configuration
  1838. @throws Exception]]>
  1839. </doc>
  1840. </constructor>
  1841. <method name="run" return="int"
  1842. abstract="false" native="false" synchronized="false"
  1843. static="false" final="false" visibility="public"
  1844. deprecated="not deprecated">
  1845. <param name="args" type="java.lang.String[]"/>
  1846. <exception name="Exception" type="java.lang.Exception"/>
  1847. <doc>
  1848. <![CDATA[@param args]]>
  1849. </doc>
  1850. </method>
  1851. <method name="main"
  1852. abstract="false" native="false" synchronized="false"
  1853. static="true" final="false" visibility="public"
  1854. deprecated="not deprecated">
  1855. <param name="args" type="java.lang.String[]"/>
  1856. <exception name="Exception" type="java.lang.Exception"/>
  1857. </method>
  1858. <doc>
  1859. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  1860. sub-optimal conditions.
  1861. <p>The tool scans all files and directories, starting from an indicated
  1862. root path. The following abnormal conditions are detected and handled:</p>
  1863. <ul>
  1864. <li>files with blocks that are completely missing from all datanodes.<br/>
  1865. In this case the tool can perform one of the following actions:
  1866. <ul>
  1867. <li>none ({@link NamenodeFsck#FIXING_NONE})</li>
  1868. <li>move corrupted files to /lost+found directory on DFS
  1869. ({@link NamenodeFsck#FIXING_MOVE}). Remaining data blocks are saved as a
  1870. block chains, representing longest consecutive series of valid blocks.</li>
  1871. <li>delete corrupted files ({@link NamenodeFsck#FIXING_DELETE})</li>
  1872. </ul>
  1873. </li>
  1874. <li>detect files with under-replicated or over-replicated blocks</li>
  1875. </ul>
  1876. Additionally, the tool collects a detailed overall DFS statistics, and
  1877. optionally can print detailed statistics on block locations and replication
  1878. factors of each file.]]>
  1879. </doc>
  1880. </class>
  1881. <!-- end class org.apache.hadoop.dfs.DFSck -->
  1882. <!-- start class org.apache.hadoop.dfs.DistributedFileSystem -->
  1883. <class name="DistributedFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  1884. abstract="false"
  1885. static="false" final="false" visibility="public"
  1886. deprecated="not deprecated">
  1887. <constructor name="DistributedFileSystem"
  1888. static="false" final="false" visibility="public"
  1889. deprecated="not deprecated">
  1890. </constructor>
  1891. <constructor name="DistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  1892. static="false" final="false" visibility="public"
  1893. deprecated="deprecated, no comment">
  1894. <exception name="IOException" type="java.io.IOException"/>
  1895. <doc>
  1896. <![CDATA[@deprecated]]>
  1897. </doc>
  1898. </constructor>
  1899. <method name="getName" return="java.lang.String"
  1900. abstract="false" native="false" synchronized="false"
  1901. static="false" final="false" visibility="public"
  1902. deprecated="deprecated, no comment">
  1903. <doc>
  1904. <![CDATA[@deprecated]]>
  1905. </doc>
  1906. </method>
  1907. <method name="getUri" return="java.net.URI"
  1908. abstract="false" native="false" synchronized="false"
  1909. static="false" final="false" visibility="public"
  1910. deprecated="not deprecated">
  1911. </method>
  1912. <method name="initialize"
  1913. abstract="false" native="false" synchronized="false"
  1914. static="false" final="false" visibility="public"
  1915. deprecated="not deprecated">
  1916. <param name="uri" type="java.net.URI"/>
  1917. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1918. <exception name="IOException" type="java.io.IOException"/>
  1919. </method>
  1920. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  1921. abstract="false" native="false" synchronized="false"
  1922. static="false" final="false" visibility="public"
  1923. deprecated="not deprecated">
  1924. </method>
  1925. <method name="getDefaultBlockSize" return="long"
  1926. abstract="false" native="false" synchronized="false"
  1927. static="false" final="false" visibility="public"
  1928. deprecated="not deprecated">
  1929. </method>
  1930. <method name="getDefaultReplication" return="short"
  1931. abstract="false" native="false" synchronized="false"
  1932. static="false" final="false" visibility="public"
  1933. deprecated="not deprecated">
  1934. </method>
  1935. <method name="setWorkingDirectory"
  1936. abstract="false" native="false" synchronized="false"
  1937. static="false" final="false" visibility="public"
  1938. deprecated="not deprecated">
  1939. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  1940. </method>
  1941. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  1942. abstract="false" native="false" synchronized="false"
  1943. static="false" final="false" visibility="public"
  1944. deprecated="not deprecated">
  1945. <doc>
  1946. <![CDATA[{@inheritDoc}]]>
  1947. </doc>
  1948. </method>
  1949. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  1950. abstract="false" native="false" synchronized="false"
  1951. static="false" final="false" visibility="public"
  1952. deprecated="not deprecated">
  1953. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1954. <param name="start" type="long"/>
  1955. <param name="len" type="long"/>
  1956. <exception name="IOException" type="java.io.IOException"/>
  1957. </method>
  1958. <method name="setVerifyChecksum"
  1959. abstract="false" native="false" synchronized="false"
  1960. static="false" final="false" visibility="public"
  1961. deprecated="not deprecated">
  1962. <param name="verifyChecksum" type="boolean"/>
  1963. </method>
  1964. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1965. abstract="false" native="false" synchronized="false"
  1966. static="false" final="false" visibility="public"
  1967. deprecated="not deprecated">
  1968. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1969. <param name="bufferSize" type="int"/>
  1970. <exception name="IOException" type="java.io.IOException"/>
  1971. </method>
  1972. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1973. abstract="false" native="false" synchronized="false"
  1974. static="false" final="false" visibility="public"
  1975. deprecated="not deprecated">
  1976. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1977. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1978. <param name="overwrite" type="boolean"/>
  1979. <param name="bufferSize" type="int"/>
  1980. <param name="replication" type="short"/>
  1981. <param name="blockSize" type="long"/>
  1982. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1983. <exception name="IOException" type="java.io.IOException"/>
  1984. </method>
  1985. <method name="setReplication" return="boolean"
  1986. abstract="false" native="false" synchronized="false"
  1987. static="false" final="false" visibility="public"
  1988. deprecated="not deprecated">
  1989. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1990. <param name="replication" type="short"/>
  1991. <exception name="IOException" type="java.io.IOException"/>
  1992. </method>
  1993. <method name="rename" return="boolean"
  1994. abstract="false" native="false" synchronized="false"
  1995. static="false" final="false" visibility="public"
  1996. deprecated="not deprecated">
  1997. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1998. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1999. <exception name="IOException" type="java.io.IOException"/>
  2000. <doc>
  2001. <![CDATA[Rename files/dirs]]>
  2002. </doc>
  2003. </method>
  2004. <method name="delete" return="boolean"
  2005. abstract="false" native="false" synchronized="false"
  2006. static="false" final="false" visibility="public"
  2007. deprecated="not deprecated">
  2008. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2009. <exception name="IOException" type="java.io.IOException"/>
  2010. <doc>
  2011. <![CDATA[Get rid of Path f, whether a true file or dir.]]>
  2012. </doc>
  2013. </method>
  2014. <method name="delete" return="boolean"
  2015. abstract="false" native="false" synchronized="false"
  2016. static="false" final="false" visibility="public"
  2017. deprecated="not deprecated">
  2018. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2019. <param name="recursive" type="boolean"/>
  2020. <exception name="IOException" type="java.io.IOException"/>
  2021. <doc>
  2022. <![CDATA[requires a boolean check to delete a non
  2023. empty directory recursively.]]>
  2024. </doc>
  2025. </method>
  2026. <method name="getContentLength" return="long"
  2027. abstract="false" native="false" synchronized="false"
  2028. static="false" final="false" visibility="public"
  2029. deprecated="not deprecated">
  2030. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2031. <exception name="IOException" type="java.io.IOException"/>
  2032. <doc>
  2033. <![CDATA[{@inheritDoc}]]>
  2034. </doc>
  2035. </method>
  2036. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2037. abstract="false" native="false" synchronized="false"
  2038. static="false" final="false" visibility="public"
  2039. deprecated="not deprecated">
  2040. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2041. <exception name="IOException" type="java.io.IOException"/>
  2042. <doc>
  2043. <![CDATA[{@inheritDoc}]]>
  2044. </doc>
  2045. </method>
  2046. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2047. abstract="false" native="false" synchronized="false"
  2048. static="false" final="false" visibility="public"
  2049. deprecated="not deprecated">
  2050. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2051. <exception name="IOException" type="java.io.IOException"/>
  2052. </method>
  2053. <method name="mkdirs" return="boolean"
  2054. abstract="false" native="false" synchronized="false"
  2055. static="false" final="false" visibility="public"
  2056. deprecated="not deprecated">
  2057. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2058. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2059. <exception name="IOException" type="java.io.IOException"/>
  2060. </method>
  2061. <method name="close"
  2062. abstract="false" native="false" synchronized="false"
  2063. static="false" final="false" visibility="public"
  2064. deprecated="not deprecated">
  2065. <exception name="IOException" type="java.io.IOException"/>
  2066. <doc>
  2067. <![CDATA[{@inheritDoc}]]>
  2068. </doc>
  2069. </method>
  2070. <method name="toString" return="java.lang.String"
  2071. abstract="false" native="false" synchronized="false"
  2072. static="false" final="false" visibility="public"
  2073. deprecated="not deprecated">
  2074. </method>
  2075. <method name="getDiskStatus" return="org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus"
  2076. abstract="false" native="false" synchronized="false"
  2077. static="false" final="false" visibility="public"
  2078. deprecated="not deprecated">
  2079. <exception name="IOException" type="java.io.IOException"/>
  2080. <doc>
  2081. <![CDATA[Return the disk usage of the filesystem, including total capacity,
  2082. used space, and remaining space]]>
  2083. </doc>
  2084. </method>
  2085. <method name="getRawCapacity" return="long"
  2086. abstract="false" native="false" synchronized="false"
  2087. static="false" final="false" visibility="public"
  2088. deprecated="not deprecated">
  2089. <exception name="IOException" type="java.io.IOException"/>
  2090. <doc>
  2091. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  2092. replication .]]>
  2093. </doc>
  2094. </method>
  2095. <method name="getRawUsed" return="long"
  2096. abstract="false" native="false" synchronized="false"
  2097. static="false" final="false" visibility="public"
  2098. deprecated="not deprecated">
  2099. <exception name="IOException" type="java.io.IOException"/>
  2100. <doc>
  2101. <![CDATA[Return the total raw used space in the filesystem, disregarding
  2102. replication .]]>
  2103. </doc>
  2104. </method>
  2105. <method name="getDataNodeStats" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  2106. abstract="false" native="false" synchronized="false"
  2107. static="false" final="false" visibility="public"
  2108. deprecated="not deprecated">
  2109. <exception name="IOException" type="java.io.IOException"/>
  2110. <doc>
  2111. <![CDATA[Return statistics for each datanode.]]>
  2112. </doc>
  2113. </method>
  2114. <method name="setSafeMode" return="boolean"
  2115. abstract="false" native="false" synchronized="false"
  2116. static="false" final="false" visibility="public"
  2117. deprecated="not deprecated">
  2118. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  2119. <exception name="IOException" type="java.io.IOException"/>
  2120. <doc>
  2121. <![CDATA[Enter, leave or get safe mode.
  2122. @see org.apache.hadoop.dfs.ClientProtocol#setSafeMode(
  2123. FSConstants.SafeModeAction)]]>
  2124. </doc>
  2125. </method>
  2126. <method name="refreshNodes"
  2127. abstract="false" native="false" synchronized="false"
  2128. static="false" final="false" visibility="public"
  2129. deprecated="not deprecated">
  2130. <exception name="IOException" type="java.io.IOException"/>
  2131. </method>
  2132. <method name="finalizeUpgrade"
  2133. abstract="false" native="false" synchronized="false"
  2134. static="false" final="false" visibility="public"
  2135. deprecated="not deprecated">
  2136. <exception name="IOException" type="java.io.IOException"/>
  2137. <doc>
  2138. <![CDATA[Finalize previously upgraded files system state.
  2139. @throws IOException]]>
  2140. </doc>
  2141. </method>
  2142. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  2143. abstract="false" native="false" synchronized="false"
  2144. static="false" final="false" visibility="public"
  2145. deprecated="not deprecated">
  2146. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  2147. <exception name="IOException" type="java.io.IOException"/>
  2148. </method>
  2149. <method name="metaSave"
  2150. abstract="false" native="false" synchronized="false"
  2151. static="false" final="false" visibility="public"
  2152. deprecated="not deprecated">
  2153. <param name="pathname" type="java.lang.String"/>
  2154. <exception name="IOException" type="java.io.IOException"/>
  2155. </method>
  2156. <method name="reportChecksumFailure" return="boolean"
  2157. abstract="false" native="false" synchronized="false"
  2158. static="false" final="false" visibility="public"
  2159. deprecated="not deprecated">
  2160. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2161. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2162. <param name="inPos" type="long"/>
  2163. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2164. <param name="sumsPos" type="long"/>
  2165. <doc>
  2166. <![CDATA[We need to find the blocks that didn't match. Likely only one
  2167. is corrupt but we will report both to the namenode. In the future,
  2168. we can consider figuring out exactly which block is corrupt.]]>
  2169. </doc>
  2170. </method>
  2171. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2172. abstract="false" native="false" synchronized="false"
  2173. static="false" final="false" visibility="public"
  2174. deprecated="not deprecated">
  2175. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2176. <exception name="IOException" type="java.io.IOException"/>
  2177. <doc>
  2178. <![CDATA[Returns the stat information about the file.
  2179. @throws FileNotFoundException if the file does not exist.]]>
  2180. </doc>
  2181. </method>
  2182. <method name="setPermission"
  2183. abstract="false" native="false" synchronized="false"
  2184. static="false" final="false" visibility="public"
  2185. deprecated="not deprecated">
  2186. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2187. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2188. <exception name="IOException" type="java.io.IOException"/>
  2189. <doc>
  2190. <![CDATA[{@inheritDoc }]]>
  2191. </doc>
  2192. </method>
  2193. <method name="setOwner"
  2194. abstract="false" native="false" synchronized="false"
  2195. static="false" final="false" visibility="public"
  2196. deprecated="not deprecated">
  2197. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2198. <param name="username" type="java.lang.String"/>
  2199. <param name="groupname" type="java.lang.String"/>
  2200. <exception name="IOException" type="java.io.IOException"/>
  2201. <doc>
  2202. <![CDATA[{@inheritDoc }]]>
  2203. </doc>
  2204. </method>
  2205. <doc>
  2206. <![CDATA[Implementation of the abstract FileSystem for the DFS system.
  2207. This object is the way end-user code interacts with a Hadoop
  2208. DistributedFileSystem.]]>
  2209. </doc>
  2210. </class>
  2211. <!-- end class org.apache.hadoop.dfs.DistributedFileSystem -->
  2212. <!-- start class org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus -->
  2213. <class name="DistributedFileSystem.DiskStatus" extends="java.lang.Object"
  2214. abstract="false"
  2215. static="true" final="false" visibility="public"
  2216. deprecated="not deprecated">
  2217. <constructor name="DistributedFileSystem.DiskStatus" type="long, long, long"
  2218. static="false" final="false" visibility="public"
  2219. deprecated="not deprecated">
  2220. </constructor>
  2221. <method name="getCapacity" return="long"
  2222. abstract="false" native="false" synchronized="false"
  2223. static="false" final="false" visibility="public"
  2224. deprecated="not deprecated">
  2225. </method>
  2226. <method name="getDfsUsed" return="long"
  2227. abstract="false" native="false" synchronized="false"
  2228. static="false" final="false" visibility="public"
  2229. deprecated="not deprecated">
  2230. </method>
  2231. <method name="getRemaining" return="long"
  2232. abstract="false" native="false" synchronized="false"
  2233. static="false" final="false" visibility="public"
  2234. deprecated="not deprecated">
  2235. </method>
  2236. </class>
  2237. <!-- end class org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus -->
  2238. <!-- start class org.apache.hadoop.dfs.FileDataServlet -->
  2239. <class name="FileDataServlet" extends="org.apache.hadoop.dfs.DfsServlet"
  2240. abstract="false"
  2241. static="false" final="false" visibility="public"
  2242. deprecated="not deprecated">
  2243. <constructor name="FileDataServlet"
  2244. static="false" final="false" visibility="public"
  2245. deprecated="not deprecated">
  2246. </constructor>
  2247. <method name="doGet"
  2248. abstract="false" native="false" synchronized="false"
  2249. static="false" final="false" visibility="public"
  2250. deprecated="not deprecated">
  2251. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  2252. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  2253. <exception name="IOException" type="java.io.IOException"/>
  2254. <doc>
  2255. <![CDATA[Service a GET request as described below.
  2256. Request:
  2257. {@code
  2258. GET http://<nn>:<port>/data[/<path>] HTTP/1.1
  2259. }]]>
  2260. </doc>
  2261. </method>
  2262. <doc>
  2263. <![CDATA[Redirect queries about the hosted filesystem to an appropriate datanode.
  2264. @see org.apache.hadoop.dfs.HftpFileSystem]]>
  2265. </doc>
  2266. </class>
  2267. <!-- end class org.apache.hadoop.dfs.FileDataServlet -->
  2268. <!-- start class org.apache.hadoop.dfs.FsckServlet -->
  2269. <class name="FsckServlet" extends="javax.servlet.http.HttpServlet"
  2270. abstract="false"
  2271. static="false" final="false" visibility="public"
  2272. deprecated="not deprecated">
  2273. <constructor name="FsckServlet"
  2274. static="false" final="false" visibility="public"
  2275. deprecated="not deprecated">
  2276. </constructor>
  2277. <method name="doGet"
  2278. abstract="false" native="false" synchronized="false"
  2279. static="false" final="false" visibility="public"
  2280. deprecated="not deprecated">
  2281. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  2282. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  2283. <exception name="ServletException" type="javax.servlet.ServletException"/>
  2284. <exception name="IOException" type="java.io.IOException"/>
  2285. </method>
  2286. <doc>
  2287. <![CDATA[This class is used in Namesystem's jetty to do fsck on namenode.]]>
  2288. </doc>
  2289. </class>
  2290. <!-- end class org.apache.hadoop.dfs.FsckServlet -->
  2291. <!-- start interface org.apache.hadoop.dfs.FSConstants -->
  2292. <interface name="FSConstants" abstract="true"
  2293. static="false" final="false" visibility="public"
  2294. deprecated="not deprecated">
  2295. <field name="MIN_BLOCKS_FOR_WRITE" type="int"
  2296. transient="false" volatile="false"
  2297. static="true" final="true" visibility="public"
  2298. deprecated="not deprecated">
  2299. </field>
  2300. <field name="OP_ERROR" type="byte"
  2301. transient="false" volatile="false"
  2302. static="true" final="true" visibility="public"
  2303. deprecated="not deprecated">
  2304. </field>
  2305. <field name="OP_HEARTBEAT" type="byte"
  2306. transient="false" volatile="false"
  2307. static="true" final="true" visibility="public"
  2308. deprecated="not deprecated">
  2309. </field>
  2310. <field name="OP_BLOCKRECEIVED" type="byte"
  2311. transient="false" volatile="false"
  2312. static="true" final="true" visibility="public"
  2313. deprecated="not deprecated">
  2314. </field>
  2315. <field name="OP_BLOCKREPORT" type="byte"
  2316. transient="false" volatile="false"
  2317. static="true" final="true" visibility="public"
  2318. deprecated="not deprecated">
  2319. </field>
  2320. <field name="OP_TRANSFERDATA" type="byte"
  2321. transient="false" volatile="false"
  2322. static="true" final="true" visibility="public"
  2323. deprecated="not deprecated">
  2324. </field>
  2325. <field name="OP_CLIENT_OPEN" type="byte"
  2326. transient="false" volatile="false"
  2327. static="true" final="true" visibility="public"
  2328. deprecated="not deprecated">
  2329. </field>
  2330. <field name="OP_CLIENT_STARTFILE" type="byte"
  2331. transient="false" volatile="false"
  2332. static="true" final="true" visibility="public"
  2333. deprecated="not deprecated">
  2334. </field>
  2335. <field name="OP_CLIENT_ADDBLOCK" type="byte"
  2336. transient="false" volatile="false"
  2337. static="true" final="true" visibility="public"
  2338. deprecated="not deprecated">
  2339. </field>
  2340. <field name="OP_CLIENT_RENAMETO" type="byte"
  2341. transient="false" volatile="false"
  2342. static="true" final="true" visibility="public"
  2343. deprecated="not deprecated">
  2344. </field>
  2345. <field name="OP_CLIENT_DELETE" type="byte"
  2346. transient="false" volatile="false"
  2347. static="true" final="true" visibility="public"
  2348. deprecated="not deprecated">
  2349. </field>
  2350. <field name="OP_CLIENT_COMPLETEFILE" type="byte"
  2351. transient="false" volatile="false"
  2352. static="true" final="true" visibility="public"
  2353. deprecated="not deprecated">
  2354. </field>
  2355. <field name="OP_CLIENT_LISTING" type="byte"
  2356. transient="false" volatile="false"
  2357. static="true" final="true" visibility="public"
  2358. deprecated="not deprecated">
  2359. </field>
  2360. <field name="OP_CLIENT_OBTAINLOCK" type="byte"
  2361. transient="false" volatile="false"
  2362. static="true" final="true" visibility="public"
  2363. deprecated="not deprecated">
  2364. </field>
  2365. <field name="OP_CLIENT_RELEASELOCK" type="byte"
  2366. transient="false" volatile="false"
  2367. static="true" final="true" visibility="public"
  2368. deprecated="not deprecated">
  2369. </field>
  2370. <field name="OP_CLIENT_EXISTS" type="byte"
  2371. transient="false" volatile="false"
  2372. static="true" final="true" visibility="public"
  2373. deprecated="not deprecated">
  2374. </field>
  2375. <field name="OP_CLIENT_ISDIR" type="byte"
  2376. transient="false" volatile="false"
  2377. static="true" final="true" visibility="public"
  2378. deprecated="not deprecated">
  2379. </field>
  2380. <field name="OP_CLIENT_MKDIRS" type="byte"
  2381. transient="false" volatile="false"
  2382. static="true" final="true" visibility="public"
  2383. deprecated="not deprecated">
  2384. </field>
  2385. <field name="OP_CLIENT_RENEW_LEASE" type="byte"
  2386. transient="false" volatile="false"
  2387. static="true" final="true" visibility="public"
  2388. deprecated="not deprecated">
  2389. </field>
  2390. <field name="OP_CLIENT_ABANDONBLOCK" type="byte"
  2391. transient="false" volatile="false"
  2392. static="true" final="true" visibility="public"
  2393. deprecated="not deprecated">
  2394. </field>
  2395. <field name="OP_CLIENT_RAWSTATS" type="byte"
  2396. transient="false" volatile="false"
  2397. static="true" final="true" visibility="public"
  2398. deprecated="not deprecated">
  2399. </field>
  2400. <field name="OP_CLIENT_DATANODEREPORT" type="byte"
  2401. transient="false" volatile="false"
  2402. static="true" final="true" visibility="public"
  2403. deprecated="not deprecated">
  2404. </field>
  2405. <field name="OP_CLIENT_DATANODE_HINTS" type="byte"
  2406. transient="false" volatile="false"
  2407. static="true" final="true" visibility="public"
  2408. deprecated="not deprecated">
  2409. </field>
  2410. <field name="OP_ACK" type="byte"
  2411. transient="false" volatile="false"
  2412. static="true" final="true" visibility="public"
  2413. deprecated="not deprecated">
  2414. </field>
  2415. <field name="OP_TRANSFERBLOCKS" type="byte"
  2416. transient="false" volatile="false"
  2417. static="true" final="true" visibility="public"
  2418. deprecated="not deprecated">
  2419. </field>
  2420. <field name="OP_INVALIDATE_BLOCKS" type="byte"
  2421. transient="false" volatile="false"
  2422. static="true" final="true" visibility="public"
  2423. deprecated="not deprecated">
  2424. </field>
  2425. <field name="OP_FAILURE" type="byte"
  2426. transient="false" volatile="false"
  2427. static="true" final="true" visibility="public"
  2428. deprecated="not deprecated">
  2429. </field>
  2430. <field name="OP_CLIENT_OPEN_ACK" type="byte"
  2431. transient="false" volatile="false"
  2432. static="true" final="true" visibility="public"
  2433. deprecated="not deprecated">
  2434. </field>
  2435. <field name="OP_CLIENT_STARTFILE_ACK" type="byte"
  2436. transient="false" volatile="false"
  2437. static="true" final="true" visibility="public"
  2438. deprecated="not deprecated">
  2439. </field>
  2440. <field name="OP_CLIENT_ADDBLOCK_ACK" type="byte"
  2441. transient="false" volatile="false"
  2442. static="true" final="true" visibility="public"
  2443. deprecated="not deprecated">
  2444. </field>
  2445. <field name="OP_CLIENT_RENAMETO_ACK" type="byte"
  2446. transient="false" volatile="false"
  2447. static="true" final="true" visibility="public"
  2448. deprecated="not deprecated">
  2449. </field>
  2450. <field name="OP_CLIENT_DELETE_ACK" type="byte"
  2451. transient="false" volatile="false"
  2452. static="true" final="true" visibility="public"
  2453. deprecated="not deprecated">
  2454. </field>
  2455. <field name="OP_CLIENT_COMPLETEFILE_ACK" type="byte"
  2456. transient="false" volatile="false"
  2457. static="true" final="true" visibility="public"
  2458. deprecated="not deprecated">
  2459. </field>
  2460. <field name="OP_CLIENT_TRYAGAIN" type="byte"
  2461. transient="false" volatile="false"
  2462. static="true" final="true" visibility="public"
  2463. deprecated="not deprecated">
  2464. </field>
  2465. <field name="OP_CLIENT_LISTING_ACK" type="byte"
  2466. transient="false" volatile="false"
  2467. static="true" final="true" visibility="public"
  2468. deprecated="not deprecated">
  2469. </field>
  2470. <field name="OP_CLIENT_OBTAINLOCK_ACK" type="byte"
  2471. transient="false" volatile="false"
  2472. static="true" final="true" visibility="public"
  2473. deprecated="not deprecated">
  2474. </field>
  2475. <field name="OP_CLIENT_RELEASELOCK_ACK" type="byte"
  2476. transient="false" volatile="false"
  2477. static="true" final="true" visibility="public"
  2478. deprecated="not deprecated">
  2479. </field>
  2480. <field name="OP_CLIENT_EXISTS_ACK" type="byte"
  2481. transient="false" volatile="false"
  2482. static="true" final="true" visibility="public"
  2483. deprecated="not deprecated">
  2484. </field>
  2485. <field name="OP_CLIENT_ISDIR_ACK" type="byte"
  2486. transient="false" volatile="false"
  2487. static="true" final="true" visibility="public"
  2488. deprecated="not deprecated">
  2489. </field>
  2490. <field name="OP_CLIENT_MKDIRS_ACK" type="byte"
  2491. transient="false" volatile="false"
  2492. static="true" final="true" visibility="public"
  2493. deprecated="not deprecated">
  2494. </field>
  2495. <field name="OP_CLIENT_RENEW_LEASE_ACK" type="byte"
  2496. transient="false" volatile="false"
  2497. static="true" final="true" visibility="public"
  2498. deprecated="not deprecated">
  2499. </field>
  2500. <field name="OP_CLIENT_ABANDONBLOCK_ACK" type="byte"
  2501. transient="false" volatile="false"
  2502. static="true" final="true" visibility="public"
  2503. deprecated="not deprecated">
  2504. </field>
  2505. <field name="OP_CLIENT_RAWSTATS_ACK" type="byte"
  2506. transient="false" volatile="false"
  2507. static="true" final="true" visibility="public"
  2508. deprecated="not deprecated">
  2509. </field>
  2510. <field name="OP_CLIENT_DATANODEREPORT_ACK" type="byte"
  2511. transient="false" volatile="false"
  2512. static="true" final="true" visibility="public"
  2513. deprecated="not deprecated">
  2514. </field>
  2515. <field name="OP_CLIENT_DATANODE_HINTS_ACK" type="byte"
  2516. transient="false" volatile="false"
  2517. static="true" final="true" visibility="public"
  2518. deprecated="not deprecated">
  2519. </field>
  2520. <field name="OP_WRITE_BLOCK" type="byte"
  2521. transient="false" volatile="false"
  2522. static="true" final="true" visibility="public"
  2523. deprecated="not deprecated">
  2524. </field>
  2525. <field name="OP_READ_BLOCK" type="byte"
  2526. transient="false" volatile="false"
  2527. static="true" final="true" visibility="public"
  2528. deprecated="not deprecated">
  2529. </field>
  2530. <field name="OP_READ_METADATA" type="byte"
  2531. transient="false" volatile="false"
  2532. static="true" final="true" visibility="public"
  2533. deprecated="not deprecated">
  2534. </field>
  2535. <field name="OP_REPLACE_BLOCK" type="byte"
  2536. transient="false" volatile="false"
  2537. static="true" final="true" visibility="public"
  2538. deprecated="not deprecated">
  2539. </field>
  2540. <field name="OP_COPY_BLOCK" type="byte"
  2541. transient="false" volatile="false"
  2542. static="true" final="true" visibility="public"
  2543. deprecated="not deprecated">
  2544. </field>
  2545. <field name="OP_STATUS_SUCCESS" type="int"
  2546. transient="false" volatile="false"
  2547. static="true" final="true" visibility="public"
  2548. deprecated="not deprecated">
  2549. </field>
  2550. <field name="OP_STATUS_ERROR" type="int"
  2551. transient="false" volatile="false"
  2552. static="true" final="true" visibility="public"
  2553. deprecated="not deprecated">
  2554. </field>
  2555. <field name="OP_STATUS_ERROR_CHECKSUM" type="int"
  2556. transient="false" volatile="false"
  2557. static="true" final="true" visibility="public"
  2558. deprecated="not deprecated">
  2559. </field>
  2560. <field name="OP_STATUS_ERROR_INVALID" type="int"
  2561. transient="false" volatile="false"
  2562. static="true" final="true" visibility="public"
  2563. deprecated="not deprecated">
  2564. </field>
  2565. <field name="OP_STATUS_ERROR_EXISTS" type="int"
  2566. transient="false" volatile="false"
  2567. static="true" final="true" visibility="public"
  2568. deprecated="not deprecated">
  2569. </field>
  2570. <field name="OP_STATUS_CHECKSUM_OK" type="int"
  2571. transient="false" volatile="false"
  2572. static="true" final="true" visibility="public"
  2573. deprecated="not deprecated">
  2574. </field>
  2575. <field name="DATA_TRANSFER_VERSION" type="int"
  2576. transient="false" volatile="false"
  2577. static="true" final="true" visibility="public"
  2578. deprecated="not deprecated">
  2579. <doc>
  2580. <![CDATA[Version for data transfers between clients and datanodes
  2581. This should change when serialization of DatanodeInfo, not just
  2582. when protocol changes. It is not very obvious.]]>
  2583. </doc>
  2584. </field>
  2585. <field name="OPERATION_FAILED" type="int"
  2586. transient="false" volatile="false"
  2587. static="true" final="true" visibility="public"
  2588. deprecated="not deprecated">
  2589. </field>
  2590. <field name="STILL_WAITING" type="int"
  2591. transient="false" volatile="false"
  2592. static="true" final="true" visibility="public"
  2593. deprecated="not deprecated">
  2594. </field>
  2595. <field name="COMPLETE_SUCCESS" type="int"
  2596. transient="false" volatile="false"
  2597. static="true" final="true" visibility="public"
  2598. deprecated="not deprecated">
  2599. </field>
  2600. <field name="BLOCK_INVALIDATE_CHUNK" type="int"
  2601. transient="false" volatile="false"
  2602. static="true" final="true" visibility="public"
  2603. deprecated="not deprecated">
  2604. </field>
  2605. <field name="HEARTBEAT_INTERVAL" type="long"
  2606. transient="false" volatile="false"
  2607. static="true" final="true" visibility="public"
  2608. deprecated="not deprecated">
  2609. </field>
  2610. <field name="BLOCKREPORT_INTERVAL" type="long"
  2611. transient="false" volatile="false"
  2612. static="true" final="true" visibility="public"
  2613. deprecated="not deprecated">
  2614. </field>
  2615. <field name="BLOCKREPORT_INITIAL_DELAY" type="long"
  2616. transient="false" volatile="false"
  2617. static="true" final="true" visibility="public"
  2618. deprecated="not deprecated">
  2619. </field>
  2620. <field name="LEASE_SOFTLIMIT_PERIOD" type="long"
  2621. transient="false" volatile="false"
  2622. static="true" final="true" visibility="public"
  2623. deprecated="not deprecated">
  2624. </field>
  2625. <field name="LEASE_HARDLIMIT_PERIOD" type="long"
  2626. transient="false" volatile="false"
  2627. static="true" final="true" visibility="public"
  2628. deprecated="not deprecated">
  2629. </field>
  2630. <field name="READ_TIMEOUT" type="int"
  2631. transient="false" volatile="false"
  2632. static="true" final="true" visibility="public"
  2633. deprecated="not deprecated">
  2634. </field>
  2635. <field name="WRITE_TIMEOUT" type="int"
  2636. transient="false" volatile="false"
  2637. static="true" final="true" visibility="public"
  2638. deprecated="not deprecated">
  2639. </field>
  2640. <field name="WRITE_TIMEOUT_EXTENSION" type="int"
  2641. transient="false" volatile="false"
  2642. static="true" final="true" visibility="public"
  2643. deprecated="not deprecated">
  2644. </field>
  2645. <field name="MAX_PATH_LENGTH" type="int"
  2646. transient="false" volatile="false"
  2647. static="true" final="true" visibility="public"
  2648. deprecated="not deprecated">
  2649. </field>
  2650. <field name="MAX_PATH_DEPTH" type="int"
  2651. transient="false" volatile="false"
  2652. static="true" final="true" visibility="public"
  2653. deprecated="not deprecated">
  2654. </field>
  2655. <field name="BUFFER_SIZE" type="int"
  2656. transient="false" volatile="false"
  2657. static="true" final="true" visibility="public"
  2658. deprecated="not deprecated">
  2659. </field>
  2660. <field name="SMALL_BUFFER_SIZE" type="int"
  2661. transient="false" volatile="false"
  2662. static="true" final="true" visibility="public"
  2663. deprecated="not deprecated">
  2664. </field>
  2665. <field name="DEFAULT_BLOCK_SIZE" type="long"
  2666. transient="false" volatile="false"
  2667. static="true" final="true" visibility="public"
  2668. deprecated="not deprecated">
  2669. </field>
  2670. <field name="DEFAULT_DATA_SOCKET_SIZE" type="int"
  2671. transient="false" volatile="false"
  2672. static="true" final="true" visibility="public"
  2673. deprecated="not deprecated">
  2674. </field>
  2675. <field name="SIZE_OF_INTEGER" type="int"
  2676. transient="false" volatile="false"
  2677. static="true" final="true" visibility="public"
  2678. deprecated="not deprecated">
  2679. </field>
  2680. <field name="LAYOUT_VERSION" type="int"
  2681. transient="false" volatile="false"
  2682. static="true" final="true" visibility="public"
  2683. deprecated="not deprecated">
  2684. </field>
  2685. <doc>
  2686. <![CDATA[Some handy constants]]>
  2687. </doc>
  2688. </interface>
  2689. <!-- end interface org.apache.hadoop.dfs.FSConstants -->
  2690. <!-- start class org.apache.hadoop.dfs.FSConstants.CheckpointStates -->
  2691. <class name="FSConstants.CheckpointStates" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.CheckpointStates&gt;"
  2692. abstract="false"
  2693. static="true" final="true" visibility="public"
  2694. deprecated="not deprecated">
  2695. <method name="values" return="org.apache.hadoop.dfs.FSConstants.CheckpointStates[]"
  2696. abstract="false" native="false" synchronized="false"
  2697. static="true" final="false" visibility="public"
  2698. deprecated="not deprecated">
  2699. </method>
  2700. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.CheckpointStates"
  2701. abstract="false" native="false" synchronized="false"
  2702. static="true" final="false" visibility="public"
  2703. deprecated="not deprecated">
  2704. <param name="name" type="java.lang.String"/>
  2705. </method>
  2706. </class>
  2707. <!-- end class org.apache.hadoop.dfs.FSConstants.CheckpointStates -->
  2708. <!-- start class org.apache.hadoop.dfs.FSConstants.DatanodeReportType -->
  2709. <class name="FSConstants.DatanodeReportType" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.DatanodeReportType&gt;"
  2710. abstract="false"
  2711. static="true" final="true" visibility="public"
  2712. deprecated="not deprecated">
  2713. <method name="values" return="org.apache.hadoop.dfs.FSConstants.DatanodeReportType[]"
  2714. abstract="false" native="false" synchronized="false"
  2715. static="true" final="false" visibility="public"
  2716. deprecated="not deprecated">
  2717. </method>
  2718. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.DatanodeReportType"
  2719. abstract="false" native="false" synchronized="false"
  2720. static="true" final="false" visibility="public"
  2721. deprecated="not deprecated">
  2722. <param name="name" type="java.lang.String"/>
  2723. </method>
  2724. </class>
  2725. <!-- end class org.apache.hadoop.dfs.FSConstants.DatanodeReportType -->
  2726. <!-- start class org.apache.hadoop.dfs.FSConstants.NodeType -->
  2727. <class name="FSConstants.NodeType" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.NodeType&gt;"
  2728. abstract="false"
  2729. static="true" final="true" visibility="public"
  2730. deprecated="not deprecated">
  2731. <method name="values" return="org.apache.hadoop.dfs.FSConstants.NodeType[]"
  2732. abstract="false" native="false" synchronized="false"
  2733. static="true" final="false" visibility="public"
  2734. deprecated="not deprecated">
  2735. </method>
  2736. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.NodeType"
  2737. abstract="false" native="false" synchronized="false"
  2738. static="true" final="false" visibility="public"
  2739. deprecated="not deprecated">
  2740. <param name="name" type="java.lang.String"/>
  2741. </method>
  2742. <doc>
  2743. <![CDATA[Type of the node]]>
  2744. </doc>
  2745. </class>
  2746. <!-- end class org.apache.hadoop.dfs.FSConstants.NodeType -->
  2747. <!-- start class org.apache.hadoop.dfs.FSConstants.SafeModeAction -->
  2748. <class name="FSConstants.SafeModeAction" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.SafeModeAction&gt;"
  2749. abstract="false"
  2750. static="true" final="true" visibility="public"
  2751. deprecated="not deprecated">
  2752. <method name="values" return="org.apache.hadoop.dfs.FSConstants.SafeModeAction[]"
  2753. abstract="false" native="false" synchronized="false"
  2754. static="true" final="false" visibility="public"
  2755. deprecated="not deprecated">
  2756. </method>
  2757. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.SafeModeAction"
  2758. abstract="false" native="false" synchronized="false"
  2759. static="true" final="false" visibility="public"
  2760. deprecated="not deprecated">
  2761. <param name="name" type="java.lang.String"/>
  2762. </method>
  2763. </class>
  2764. <!-- end class org.apache.hadoop.dfs.FSConstants.SafeModeAction -->
  2765. <!-- start class org.apache.hadoop.dfs.FSConstants.StartupOption -->
  2766. <class name="FSConstants.StartupOption" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.StartupOption&gt;"
  2767. abstract="false"
  2768. static="true" final="true" visibility="public"
  2769. deprecated="not deprecated">
  2770. <method name="values" return="org.apache.hadoop.dfs.FSConstants.StartupOption[]"
  2771. abstract="false" native="false" synchronized="false"
  2772. static="true" final="false" visibility="public"
  2773. deprecated="not deprecated">
  2774. </method>
  2775. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.StartupOption"
  2776. abstract="false" native="false" synchronized="false"
  2777. static="true" final="false" visibility="public"
  2778. deprecated="not deprecated">
  2779. <param name="name" type="java.lang.String"/>
  2780. </method>
  2781. </class>
  2782. <!-- end class org.apache.hadoop.dfs.FSConstants.StartupOption -->
  2783. <!-- start class org.apache.hadoop.dfs.FSConstants.UpgradeAction -->
  2784. <class name="FSConstants.UpgradeAction" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.UpgradeAction&gt;"
  2785. abstract="false"
  2786. static="true" final="true" visibility="public"
  2787. deprecated="not deprecated">
  2788. <method name="values" return="org.apache.hadoop.dfs.FSConstants.UpgradeAction[]"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="true" final="false" visibility="public"
  2791. deprecated="not deprecated">
  2792. </method>
  2793. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.UpgradeAction"
  2794. abstract="false" native="false" synchronized="false"
  2795. static="true" final="false" visibility="public"
  2796. deprecated="not deprecated">
  2797. <param name="name" type="java.lang.String"/>
  2798. </method>
  2799. <doc>
  2800. <![CDATA[Distributed upgrade actions:
  2801. 1. Get upgrade status.
  2802. 2. Get detailed upgrade status.
  2803. 3. Proceed with the upgrade if it is stuck, no matter what the status is.]]>
  2804. </doc>
  2805. </class>
  2806. <!-- end class org.apache.hadoop.dfs.FSConstants.UpgradeAction -->
  2807. <!-- start interface org.apache.hadoop.dfs.FSDatasetInterface -->
  2808. <interface name="FSDatasetInterface" abstract="true"
  2809. static="false" final="false" visibility="public"
  2810. deprecated="not deprecated">
  2811. <implements name="org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean"/>
  2812. <method name="getMetaDataLength" return="long"
  2813. abstract="false" native="false" synchronized="false"
  2814. static="false" final="false" visibility="public"
  2815. deprecated="not deprecated">
  2816. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2817. <exception name="IOException" type="java.io.IOException"/>
  2818. <doc>
  2819. <![CDATA[Returns the length of the metadata file of the specified block
  2820. @param b - the block for which the metadata length is desired
  2821. @return the length of the metadata file for the specified block.
  2822. @throws IOException]]>
  2823. </doc>
  2824. </method>
  2825. <method name="getMetaDataInputStream" return="org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream"
  2826. abstract="false" native="false" synchronized="false"
  2827. static="false" final="false" visibility="public"
  2828. deprecated="not deprecated">
  2829. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2830. <exception name="IOException" type="java.io.IOException"/>
  2831. <doc>
  2832. <![CDATA[Returns metaData of block b as an input stream (and its length)
  2833. @param b - the block
  2834. @return the metadata input stream;
  2835. @throws IOException]]>
  2836. </doc>
  2837. </method>
  2838. <method name="metaFileExists" return="boolean"
  2839. abstract="false" native="false" synchronized="false"
  2840. static="false" final="false" visibility="public"
  2841. deprecated="not deprecated">
  2842. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2843. <exception name="IOException" type="java.io.IOException"/>
  2844. <doc>
  2845. <![CDATA[Does the meta file exist for this block?
  2846. @param b - the block
  2847. @return true of the metafile for specified block exits
  2848. @throws IOException]]>
  2849. </doc>
  2850. </method>
  2851. <method name="getLength" return="long"
  2852. abstract="false" native="false" synchronized="false"
  2853. static="false" final="false" visibility="public"
  2854. deprecated="not deprecated">
  2855. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2856. <exception name="IOException" type="java.io.IOException"/>
  2857. <doc>
  2858. <![CDATA[Returns the specified block's on-disk length (excluding metadata)
  2859. @param b
  2860. @return the specified block's on-disk length (excluding metadta)
  2861. @throws IOException]]>
  2862. </doc>
  2863. </method>
  2864. <method name="getBlockInputStream" return="java.io.InputStream"
  2865. abstract="false" native="false" synchronized="false"
  2866. static="false" final="false" visibility="public"
  2867. deprecated="not deprecated">
  2868. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2869. <exception name="IOException" type="java.io.IOException"/>
  2870. <doc>
  2871. <![CDATA[Returns an input stream to read the contents of the specified block
  2872. @param b
  2873. @return an input stream to read the contents of the specified block
  2874. @throws IOException]]>
  2875. </doc>
  2876. </method>
  2877. <method name="getBlockInputStream" return="java.io.InputStream"
  2878. abstract="false" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2882. <param name="seekOffset" type="long"/>
  2883. <exception name="IOException" type="java.io.IOException"/>
  2884. <doc>
  2885. <![CDATA[Returns an input stream at specified offset of the specified block
  2886. @param b
  2887. @param seekOffset
  2888. @return an input stream to read the contents of the specified block,
  2889. starting at the offset
  2890. @throws IOException]]>
  2891. </doc>
  2892. </method>
  2893. <method name="writeToBlock" return="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"
  2894. abstract="false" native="false" synchronized="false"
  2895. static="false" final="false" visibility="public"
  2896. deprecated="not deprecated">
  2897. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2898. <param name="isRecovery" type="boolean"/>
  2899. <exception name="IOException" type="java.io.IOException"/>
  2900. <doc>
  2901. <![CDATA[Creates the block and returns output streams to write data and CRC
  2902. @param b
  2903. @param isRecovery True if this is part of erro recovery, otherwise false
  2904. @return a BlockWriteStreams object to allow writing the block data
  2905. and CRC
  2906. @throws IOException]]>
  2907. </doc>
  2908. </method>
  2909. <method name="finalizeBlock"
  2910. abstract="false" native="false" synchronized="false"
  2911. static="false" final="false" visibility="public"
  2912. deprecated="not deprecated">
  2913. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2914. <exception name="IOException" type="java.io.IOException"/>
  2915. <doc>
  2916. <![CDATA[Finalizes the block previously opened for writing using writeToBlock.
  2917. The block size is what is in the parameter b and it must match the amount
  2918. of data written
  2919. @param b
  2920. @throws IOException]]>
  2921. </doc>
  2922. </method>
  2923. <method name="unfinalizeBlock"
  2924. abstract="false" native="false" synchronized="false"
  2925. static="false" final="false" visibility="public"
  2926. deprecated="not deprecated">
  2927. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2928. <exception name="IOException" type="java.io.IOException"/>
  2929. <doc>
  2930. <![CDATA[Unfinalizes the block previously opened for writing using writeToBlock.
  2931. The temporary file associated with this block is deleted.
  2932. @param b
  2933. @throws IOException]]>
  2934. </doc>
  2935. </method>
  2936. <method name="getBlockReport" return="org.apache.hadoop.dfs.Block[]"
  2937. abstract="false" native="false" synchronized="false"
  2938. static="false" final="false" visibility="public"
  2939. deprecated="not deprecated">
  2940. <doc>
  2941. <![CDATA[Returns the block report - the full list of blocks stored
  2942. @return - the block report - the full list of blocks stored]]>
  2943. </doc>
  2944. </method>
  2945. <method name="isValidBlock" return="boolean"
  2946. abstract="false" native="false" synchronized="false"
  2947. static="false" final="false" visibility="public"
  2948. deprecated="not deprecated">
  2949. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2950. <doc>
  2951. <![CDATA[Is the block valid?
  2952. @param b
  2953. @return - true if the specified block is valid]]>
  2954. </doc>
  2955. </method>
  2956. <method name="invalidate"
  2957. abstract="false" native="false" synchronized="false"
  2958. static="false" final="false" visibility="public"
  2959. deprecated="not deprecated">
  2960. <param name="invalidBlks" type="org.apache.hadoop.dfs.Block[]"/>
  2961. <exception name="IOException" type="java.io.IOException"/>
  2962. <doc>
  2963. <![CDATA[Invalidates the specified blocks
  2964. @param invalidBlks - the blocks to be invalidated
  2965. @throws IOException]]>
  2966. </doc>
  2967. </method>
  2968. <method name="checkDataDir"
  2969. abstract="false" native="false" synchronized="false"
  2970. static="false" final="false" visibility="public"
  2971. deprecated="not deprecated">
  2972. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  2973. <doc>
  2974. <![CDATA[Check if all the data directories are healthy
  2975. @throws DiskErrorException]]>
  2976. </doc>
  2977. </method>
  2978. <method name="toString" return="java.lang.String"
  2979. abstract="false" native="false" synchronized="false"
  2980. static="false" final="false" visibility="public"
  2981. deprecated="not deprecated">
  2982. <doc>
  2983. <![CDATA[Stringifies the name of the storage]]>
  2984. </doc>
  2985. </method>
  2986. <method name="shutdown"
  2987. abstract="false" native="false" synchronized="false"
  2988. static="false" final="false" visibility="public"
  2989. deprecated="not deprecated">
  2990. <doc>
  2991. <![CDATA[Shutdown the FSDataset]]>
  2992. </doc>
  2993. </method>
  2994. <method name="getChannelPosition" return="long"
  2995. abstract="false" native="false" synchronized="false"
  2996. static="false" final="false" visibility="public"
  2997. deprecated="not deprecated">
  2998. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2999. <param name="stream" type="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"/>
  3000. <exception name="IOException" type="java.io.IOException"/>
  3001. <doc>
  3002. <![CDATA[Returns the current offset in the data stream.
  3003. @param b
  3004. @param stream The stream to the data file and checksum file
  3005. @return the position of the file pointer in the data stream
  3006. @throws IOException]]>
  3007. </doc>
  3008. </method>
  3009. <method name="setChannelPosition"
  3010. abstract="false" native="false" synchronized="false"
  3011. static="false" final="false" visibility="public"
  3012. deprecated="not deprecated">
  3013. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3014. <param name="stream" type="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"/>
  3015. <param name="dataOffset" type="long"/>
  3016. <param name="ckOffset" type="long"/>
  3017. <exception name="IOException" type="java.io.IOException"/>
  3018. <doc>
  3019. <![CDATA[Sets the file pointer of the data stream and checksum stream to
  3020. the specified values.
  3021. @param b
  3022. @param stream The stream for the data file and checksum file
  3023. @param dataOffset The position to which the file pointre for the data stream
  3024. should be set
  3025. @param ckOffset The position to which the file pointre for the checksum stream
  3026. should be set
  3027. @throws IOException]]>
  3028. </doc>
  3029. </method>
  3030. <doc>
  3031. <![CDATA[This is an interface for the underlying storage that stores blocks for
  3032. a data node.
  3033. Examples are the FSDataset (which stores blocks on dirs) and
  3034. SimulatedFSDataset (which simulates data).]]>
  3035. </doc>
  3036. </interface>
  3037. <!-- end interface org.apache.hadoop.dfs.FSDatasetInterface -->
  3038. <!-- start class org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams -->
  3039. <class name="FSDatasetInterface.BlockWriteStreams" extends="java.lang.Object"
  3040. abstract="false"
  3041. static="true" final="false" visibility="public"
  3042. deprecated="not deprecated">
  3043. <doc>
  3044. <![CDATA[This class contains the output streams for the data and checksum
  3045. of a block]]>
  3046. </doc>
  3047. </class>
  3048. <!-- end class org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams -->
  3049. <!-- start class org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream -->
  3050. <class name="FSDatasetInterface.MetaDataInputStream" extends="java.io.FilterInputStream"
  3051. abstract="false"
  3052. static="true" final="false" visibility="public"
  3053. deprecated="not deprecated">
  3054. <method name="getLength" return="long"
  3055. abstract="false" native="false" synchronized="false"
  3056. static="false" final="false" visibility="public"
  3057. deprecated="not deprecated">
  3058. </method>
  3059. <doc>
  3060. <![CDATA[This class provides the input stream and length of the metadata
  3061. of a block]]>
  3062. </doc>
  3063. </class>
  3064. <!-- end class org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream -->
  3065. <!-- start class org.apache.hadoop.dfs.GetImageServlet -->
  3066. <class name="GetImageServlet" extends="javax.servlet.http.HttpServlet"
  3067. abstract="false"
  3068. static="false" final="false" visibility="public"
  3069. deprecated="not deprecated">
  3070. <constructor name="GetImageServlet"
  3071. static="false" final="false" visibility="public"
  3072. deprecated="not deprecated">
  3073. </constructor>
  3074. <method name="doGet"
  3075. abstract="false" native="false" synchronized="false"
  3076. static="false" final="false" visibility="public"
  3077. deprecated="not deprecated">
  3078. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3079. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  3080. <exception name="ServletException" type="javax.servlet.ServletException"/>
  3081. <exception name="IOException" type="java.io.IOException"/>
  3082. </method>
  3083. <doc>
  3084. <![CDATA[This class is used in Namesystem's jetty to retrieve a file.
  3085. Typically used by the Secondary NameNode to retrieve image and
  3086. edit file for periodic checkpointing.]]>
  3087. </doc>
  3088. </class>
  3089. <!-- end class org.apache.hadoop.dfs.GetImageServlet -->
  3090. <!-- start class org.apache.hadoop.dfs.HftpFileSystem -->
  3091. <class name="HftpFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  3092. abstract="false"
  3093. static="false" final="false" visibility="public"
  3094. deprecated="not deprecated">
  3095. <constructor name="HftpFileSystem"
  3096. static="false" final="false" visibility="public"
  3097. deprecated="not deprecated">
  3098. </constructor>
  3099. <method name="initialize"
  3100. abstract="false" native="false" synchronized="false"
  3101. static="false" final="false" visibility="public"
  3102. deprecated="not deprecated">
  3103. <param name="name" type="java.net.URI"/>
  3104. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3105. <exception name="IOException" type="java.io.IOException"/>
  3106. </method>
  3107. <method name="getUri" return="java.net.URI"
  3108. abstract="false" native="false" synchronized="false"
  3109. static="false" final="false" visibility="public"
  3110. deprecated="not deprecated">
  3111. </method>
  3112. <method name="openConnection" return="java.net.HttpURLConnection"
  3113. abstract="false" native="false" synchronized="false"
  3114. static="false" final="false" visibility="protected"
  3115. deprecated="not deprecated">
  3116. <param name="path" type="java.lang.String"/>
  3117. <param name="query" type="java.lang.String"/>
  3118. <exception name="IOException" type="java.io.IOException"/>
  3119. <doc>
  3120. <![CDATA[Open an HTTP connection to the namenode to read file data and metadata.
  3121. @param path The path component of the URL
  3122. @param query The query component of the URL]]>
  3123. </doc>
  3124. </method>
  3125. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3126. abstract="false" native="false" synchronized="false"
  3127. static="false" final="false" visibility="public"
  3128. deprecated="not deprecated">
  3129. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3130. <param name="buffersize" type="int"/>
  3131. <exception name="IOException" type="java.io.IOException"/>
  3132. </method>
  3133. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3134. abstract="false" native="false" synchronized="false"
  3135. static="false" final="false" visibility="public"
  3136. deprecated="not deprecated">
  3137. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3138. <exception name="IOException" type="java.io.IOException"/>
  3139. </method>
  3140. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3141. abstract="false" native="false" synchronized="false"
  3142. static="false" final="false" visibility="public"
  3143. deprecated="not deprecated">
  3144. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3145. <exception name="IOException" type="java.io.IOException"/>
  3146. </method>
  3147. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3148. abstract="false" native="false" synchronized="false"
  3149. static="false" final="false" visibility="public"
  3150. deprecated="not deprecated">
  3151. </method>
  3152. <method name="setWorkingDirectory"
  3153. abstract="false" native="false" synchronized="false"
  3154. static="false" final="false" visibility="public"
  3155. deprecated="not deprecated">
  3156. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3157. </method>
  3158. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3159. abstract="false" native="false" synchronized="false"
  3160. static="false" final="false" visibility="public"
  3161. deprecated="not deprecated">
  3162. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3163. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3164. <param name="overwrite" type="boolean"/>
  3165. <param name="bufferSize" type="int"/>
  3166. <param name="replication" type="short"/>
  3167. <param name="blockSize" type="long"/>
  3168. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3169. <exception name="IOException" type="java.io.IOException"/>
  3170. </method>
  3171. <method name="rename" return="boolean"
  3172. abstract="false" native="false" synchronized="false"
  3173. static="false" final="false" visibility="public"
  3174. deprecated="not deprecated">
  3175. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3176. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3177. <exception name="IOException" type="java.io.IOException"/>
  3178. </method>
  3179. <method name="delete" return="boolean"
  3180. abstract="false" native="false" synchronized="false"
  3181. static="false" final="false" visibility="public"
  3182. deprecated="not deprecated">
  3183. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3184. <exception name="IOException" type="java.io.IOException"/>
  3185. </method>
  3186. <method name="delete" return="boolean"
  3187. abstract="false" native="false" synchronized="false"
  3188. static="false" final="false" visibility="public"
  3189. deprecated="not deprecated">
  3190. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3191. <param name="recursive" type="boolean"/>
  3192. <exception name="IOException" type="java.io.IOException"/>
  3193. </method>
  3194. <method name="mkdirs" return="boolean"
  3195. abstract="false" native="false" synchronized="false"
  3196. static="false" final="false" visibility="public"
  3197. deprecated="not deprecated">
  3198. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3199. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3200. <exception name="IOException" type="java.io.IOException"/>
  3201. </method>
  3202. <field name="nnAddr" type="java.net.InetSocketAddress"
  3203. transient="false" volatile="false"
  3204. static="false" final="false" visibility="protected"
  3205. deprecated="not deprecated">
  3206. </field>
  3207. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  3208. transient="false" volatile="false"
  3209. static="false" final="false" visibility="protected"
  3210. deprecated="not deprecated">
  3211. </field>
  3212. <field name="df" type="java.text.SimpleDateFormat"
  3213. transient="false" volatile="false"
  3214. static="true" final="true" visibility="protected"
  3215. deprecated="not deprecated">
  3216. </field>
  3217. <doc>
  3218. <![CDATA[An implementation of a protocol for accessing filesystems over HTTP.
  3219. The following implementation provides a limited, read-only interface
  3220. to a filesystem over HTTP.
  3221. @see org.apache.hadoop.dfs.ListPathsServlet
  3222. @see org.apache.hadoop.dfs.FileDataServlet]]>
  3223. </doc>
  3224. </class>
  3225. <!-- end class org.apache.hadoop.dfs.HftpFileSystem -->
  3226. <!-- start class org.apache.hadoop.dfs.HsftpFileSystem -->
  3227. <class name="HsftpFileSystem" extends="org.apache.hadoop.dfs.HftpFileSystem"
  3228. abstract="false"
  3229. static="false" final="false" visibility="public"
  3230. deprecated="not deprecated">
  3231. <constructor name="HsftpFileSystem"
  3232. static="false" final="false" visibility="public"
  3233. deprecated="not deprecated">
  3234. </constructor>
  3235. <method name="openConnection" return="java.net.HttpURLConnection"
  3236. abstract="false" native="false" synchronized="false"
  3237. static="false" final="false" visibility="protected"
  3238. deprecated="not deprecated">
  3239. <param name="path" type="java.lang.String"/>
  3240. <param name="query" type="java.lang.String"/>
  3241. <exception name="IOException" type="java.io.IOException"/>
  3242. </method>
  3243. <method name="getUri" return="java.net.URI"
  3244. abstract="false" native="false" synchronized="false"
  3245. static="false" final="false" visibility="public"
  3246. deprecated="not deprecated">
  3247. </method>
  3248. <doc>
  3249. <![CDATA[An implementation of a protocol for accessing filesystems over HTTPS.
  3250. The following implementation provides a limited, read-only interface
  3251. to a filesystem over HTTPS.
  3252. @see org.apache.hadoop.dfs.ListPathsServlet
  3253. @see org.apache.hadoop.dfs.FileDataServlet]]>
  3254. </doc>
  3255. </class>
  3256. <!-- end class org.apache.hadoop.dfs.HsftpFileSystem -->
  3257. <!-- start class org.apache.hadoop.dfs.JspHelper -->
  3258. <class name="JspHelper" extends="java.lang.Object"
  3259. abstract="false"
  3260. static="false" final="false" visibility="public"
  3261. deprecated="not deprecated">
  3262. <constructor name="JspHelper"
  3263. static="false" final="false" visibility="public"
  3264. deprecated="not deprecated">
  3265. </constructor>
  3266. <method name="randomNode" return="org.apache.hadoop.dfs.DatanodeID"
  3267. abstract="false" native="false" synchronized="false"
  3268. static="false" final="false" visibility="public"
  3269. deprecated="not deprecated">
  3270. <exception name="IOException" type="java.io.IOException"/>
  3271. </method>
  3272. <method name="bestNode" return="org.apache.hadoop.dfs.DatanodeInfo"
  3273. abstract="false" native="false" synchronized="false"
  3274. static="false" final="false" visibility="public"
  3275. deprecated="not deprecated">
  3276. <param name="blk" type="org.apache.hadoop.dfs.LocatedBlock"/>
  3277. <exception name="IOException" type="java.io.IOException"/>
  3278. </method>
  3279. <method name="streamBlockInAscii"
  3280. abstract="false" native="false" synchronized="false"
  3281. static="false" final="false" visibility="public"
  3282. deprecated="not deprecated">
  3283. <param name="addr" type="java.net.InetSocketAddress"/>
  3284. <param name="blockId" type="long"/>
  3285. <param name="blockSize" type="long"/>
  3286. <param name="offsetIntoBlock" type="long"/>
  3287. <param name="chunkSizeToView" type="long"/>
  3288. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3289. <exception name="IOException" type="java.io.IOException"/>
  3290. </method>
  3291. <method name="DFSNodesStatus"
  3292. abstract="false" native="false" synchronized="false"
  3293. static="false" final="false" visibility="public"
  3294. deprecated="not deprecated">
  3295. <param name="live" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3296. <param name="dead" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3297. </method>
  3298. <method name="addTableHeader"
  3299. abstract="false" native="false" synchronized="false"
  3300. static="false" final="false" visibility="public"
  3301. deprecated="not deprecated">
  3302. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3303. <exception name="IOException" type="java.io.IOException"/>
  3304. </method>
  3305. <method name="addTableRow"
  3306. abstract="false" native="false" synchronized="false"
  3307. static="false" final="false" visibility="public"
  3308. deprecated="not deprecated">
  3309. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3310. <param name="columns" type="java.lang.String[]"/>
  3311. <exception name="IOException" type="java.io.IOException"/>
  3312. </method>
  3313. <method name="addTableRow"
  3314. abstract="false" native="false" synchronized="false"
  3315. static="false" final="false" visibility="public"
  3316. deprecated="not deprecated">
  3317. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3318. <param name="columns" type="java.lang.String[]"/>
  3319. <param name="row" type="int"/>
  3320. <exception name="IOException" type="java.io.IOException"/>
  3321. </method>
  3322. <method name="addTableFooter"
  3323. abstract="false" native="false" synchronized="false"
  3324. static="false" final="false" visibility="public"
  3325. deprecated="not deprecated">
  3326. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3327. <exception name="IOException" type="java.io.IOException"/>
  3328. </method>
  3329. <method name="getSafeModeText" return="java.lang.String"
  3330. abstract="false" native="false" synchronized="false"
  3331. static="false" final="false" visibility="public"
  3332. deprecated="not deprecated">
  3333. </method>
  3334. <method name="getInodeLimitText" return="java.lang.String"
  3335. abstract="false" native="false" synchronized="false"
  3336. static="false" final="false" visibility="public"
  3337. deprecated="not deprecated">
  3338. </method>
  3339. <method name="getUpgradeStatusText" return="java.lang.String"
  3340. abstract="false" native="false" synchronized="false"
  3341. static="false" final="false" visibility="public"
  3342. deprecated="not deprecated">
  3343. </method>
  3344. <method name="sortNodeList"
  3345. abstract="false" native="false" synchronized="false"
  3346. static="false" final="false" visibility="public"
  3347. deprecated="not deprecated">
  3348. <param name="nodes" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3349. <param name="field" type="java.lang.String"/>
  3350. <param name="order" type="java.lang.String"/>
  3351. </method>
  3352. <method name="printPathWithLinks"
  3353. abstract="false" native="false" synchronized="false"
  3354. static="true" final="false" visibility="public"
  3355. deprecated="not deprecated">
  3356. <param name="dir" type="java.lang.String"/>
  3357. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3358. <param name="namenodeInfoPort" type="int"/>
  3359. <exception name="IOException" type="java.io.IOException"/>
  3360. </method>
  3361. <method name="printGotoForm"
  3362. abstract="false" native="false" synchronized="false"
  3363. static="true" final="false" visibility="public"
  3364. deprecated="not deprecated">
  3365. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3366. <param name="namenodeInfoPort" type="int"/>
  3367. <param name="file" type="java.lang.String"/>
  3368. <exception name="IOException" type="java.io.IOException"/>
  3369. </method>
  3370. <method name="createTitle"
  3371. abstract="false" native="false" synchronized="false"
  3372. static="true" final="false" visibility="public"
  3373. deprecated="not deprecated">
  3374. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3375. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  3376. <param name="file" type="java.lang.String"/>
  3377. <exception name="IOException" type="java.io.IOException"/>
  3378. </method>
  3379. <method name="percentageGraph" return="java.lang.String"
  3380. abstract="false" native="false" synchronized="false"
  3381. static="true" final="false" visibility="public"
  3382. deprecated="not deprecated">
  3383. <param name="perc" type="int"/>
  3384. <param name="width" type="int"/>
  3385. <exception name="IOException" type="java.io.IOException"/>
  3386. </method>
  3387. <method name="percentageGraph" return="java.lang.String"
  3388. abstract="false" native="false" synchronized="false"
  3389. static="true" final="false" visibility="public"
  3390. deprecated="not deprecated">
  3391. <param name="perc" type="float"/>
  3392. <param name="width" type="int"/>
  3393. <exception name="IOException" type="java.io.IOException"/>
  3394. </method>
  3395. <field name="WEB_UGI_PROPERTY_NAME" type="java.lang.String"
  3396. transient="false" volatile="false"
  3397. static="true" final="true" visibility="public"
  3398. deprecated="not deprecated">
  3399. </field>
  3400. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  3401. transient="false" volatile="false"
  3402. static="true" final="false" visibility="public"
  3403. deprecated="not deprecated">
  3404. </field>
  3405. <field name="webUGI" type="org.apache.hadoop.security.UnixUserGroupInformation"
  3406. transient="false" volatile="false"
  3407. static="true" final="true" visibility="public"
  3408. deprecated="not deprecated">
  3409. </field>
  3410. </class>
  3411. <!-- end class org.apache.hadoop.dfs.JspHelper -->
  3412. <!-- start class org.apache.hadoop.dfs.LeaseExpiredException -->
  3413. <class name="LeaseExpiredException" extends="java.io.IOException"
  3414. abstract="false"
  3415. static="false" final="false" visibility="public"
  3416. deprecated="not deprecated">
  3417. <constructor name="LeaseExpiredException" type="java.lang.String"
  3418. static="false" final="false" visibility="public"
  3419. deprecated="not deprecated">
  3420. </constructor>
  3421. <doc>
  3422. <![CDATA[The lease that was being used to create this file has expired.]]>
  3423. </doc>
  3424. </class>
  3425. <!-- end class org.apache.hadoop.dfs.LeaseExpiredException -->
  3426. <!-- start class org.apache.hadoop.dfs.ListPathsServlet -->
  3427. <class name="ListPathsServlet" extends="org.apache.hadoop.dfs.DfsServlet"
  3428. abstract="false"
  3429. static="false" final="false" visibility="public"
  3430. deprecated="not deprecated">
  3431. <constructor name="ListPathsServlet"
  3432. static="false" final="false" visibility="public"
  3433. deprecated="not deprecated">
  3434. </constructor>
  3435. <method name="buildRoot" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  3436. abstract="false" native="false" synchronized="false"
  3437. static="false" final="false" visibility="protected"
  3438. deprecated="not deprecated">
  3439. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3440. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  3441. <doc>
  3442. <![CDATA[Build a map from the query string, setting values and defaults.]]>
  3443. </doc>
  3444. </method>
  3445. <method name="doGet"
  3446. abstract="false" native="false" synchronized="false"
  3447. static="false" final="false" visibility="public"
  3448. deprecated="not deprecated">
  3449. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3450. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  3451. <exception name="ServletException" type="javax.servlet.ServletException"/>
  3452. <exception name="IOException" type="java.io.IOException"/>
  3453. <doc>
  3454. <![CDATA[Service a GET request as described below.
  3455. Request:
  3456. {@code
  3457. GET http://<nn>:<port>/listPaths[/<path>][<?option>[&option]*] HTTP/1.1
  3458. }
  3459. Where <i>option</i> (default) in:
  3460. recursive (&quot;no&quot;)
  3461. filter (&quot;.*&quot;)
  3462. exclude (&quot;\..*\.crc&quot;)
  3463. Response: A flat list of files/directories in the following format:
  3464. {@code
  3465. <listing path="..." recursive="(yes|no)" filter="..."
  3466. time="yyyy-MM-dd hh:mm:ss UTC" version="...">
  3467. <directory path="..." modified="yyyy-MM-dd hh:mm:ss"/>
  3468. <file path="..." modified="yyyy-MM-dd'T'hh:mm:ssZ" blocksize="..."
  3469. replication="..." size="..."/>
  3470. </listing>
  3471. }]]>
  3472. </doc>
  3473. </method>
  3474. <doc>
  3475. <![CDATA[Obtain meta-information about a filesystem.
  3476. @see org.apache.hadoop.dfs.HftpFileSystem]]>
  3477. </doc>
  3478. </class>
  3479. <!-- end class org.apache.hadoop.dfs.ListPathsServlet -->
  3480. <!-- start class org.apache.hadoop.dfs.LocatedBlocks -->
  3481. <class name="LocatedBlocks" extends="java.lang.Object"
  3482. abstract="false"
  3483. static="false" final="false" visibility="public"
  3484. deprecated="not deprecated">
  3485. <implements name="org.apache.hadoop.io.Writable"/>
  3486. <method name="getLocatedBlocks" return="java.util.List&lt;org.apache.hadoop.dfs.LocatedBlock&gt;"
  3487. abstract="false" native="false" synchronized="false"
  3488. static="false" final="false" visibility="public"
  3489. deprecated="not deprecated">
  3490. <doc>
  3491. <![CDATA[Get located blocks.]]>
  3492. </doc>
  3493. </method>
  3494. <method name="get" return="org.apache.hadoop.dfs.LocatedBlock"
  3495. abstract="false" native="false" synchronized="false"
  3496. static="false" final="false" visibility="public"
  3497. deprecated="not deprecated">
  3498. <param name="index" type="int"/>
  3499. <doc>
  3500. <![CDATA[Get located block.]]>
  3501. </doc>
  3502. </method>
  3503. <method name="locatedBlockCount" return="int"
  3504. abstract="false" native="false" synchronized="false"
  3505. static="false" final="false" visibility="public"
  3506. deprecated="not deprecated">
  3507. <doc>
  3508. <![CDATA[Get number of located blocks.]]>
  3509. </doc>
  3510. </method>
  3511. <method name="getFileLength" return="long"
  3512. abstract="false" native="false" synchronized="false"
  3513. static="false" final="false" visibility="public"
  3514. deprecated="not deprecated">
  3515. </method>
  3516. <method name="write"
  3517. abstract="false" native="false" synchronized="false"
  3518. static="false" final="false" visibility="public"
  3519. deprecated="not deprecated">
  3520. <param name="out" type="java.io.DataOutput"/>
  3521. <exception name="IOException" type="java.io.IOException"/>
  3522. </method>
  3523. <method name="readFields"
  3524. abstract="false" native="false" synchronized="false"
  3525. static="false" final="false" visibility="public"
  3526. deprecated="not deprecated">
  3527. <param name="in" type="java.io.DataInput"/>
  3528. <exception name="IOException" type="java.io.IOException"/>
  3529. </method>
  3530. <doc>
  3531. <![CDATA[Collection of blocks with their locations and the file length.]]>
  3532. </doc>
  3533. </class>
  3534. <!-- end class org.apache.hadoop.dfs.LocatedBlocks -->
  3535. <!-- start class org.apache.hadoop.dfs.NameNode -->
  3536. <class name="NameNode" extends="java.lang.Object"
  3537. abstract="false"
  3538. static="false" final="false" visibility="public"
  3539. deprecated="not deprecated">
  3540. <implements name="org.apache.hadoop.dfs.ClientProtocol"/>
  3541. <implements name="org.apache.hadoop.dfs.DatanodeProtocol"/>
  3542. <implements name="org.apache.hadoop.dfs.NamenodeProtocol"/>
  3543. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  3544. <constructor name="NameNode" type="org.apache.hadoop.conf.Configuration"
  3545. static="false" final="false" visibility="public"
  3546. deprecated="not deprecated">
  3547. <exception name="IOException" type="java.io.IOException"/>
  3548. <doc>
  3549. <![CDATA[Start NameNode.
  3550. <p>
  3551. The name-node can be started with one of the following startup options:
  3552. <ul>
  3553. <li>{@link FSConstants.StartupOption#REGULAR REGULAR} - normal startup</li>
  3554. <li>{@link FSConstants.StartupOption#FORMAT FORMAT} - format name node</li>
  3555. <li>{@link FSConstants.StartupOption#UPGRADE UPGRADE} - start the cluster
  3556. upgrade and create a snapshot of the current file system state</li>
  3557. <li>{@link FSConstants.StartupOption#ROLLBACK ROLLBACK} - roll the
  3558. cluster back to the previous state</li>
  3559. </ul>
  3560. The option is passed via configuration field:
  3561. <tt>dfs.namenode.startup</tt>
  3562. The conf will be modified to reflect the actual ports on which
  3563. the NameNode is up and running if the user passes the port as
  3564. <code>zero</code> in the conf.
  3565. @param conf confirguration
  3566. @throws IOException]]>
  3567. </doc>
  3568. </constructor>
  3569. <constructor name="NameNode" type="java.lang.String, org.apache.hadoop.conf.Configuration"
  3570. static="false" final="false" visibility="public"
  3571. deprecated="not deprecated">
  3572. <exception name="IOException" type="java.io.IOException"/>
  3573. <doc>
  3574. <![CDATA[Create a NameNode at the specified location and start it.
  3575. The conf will be modified to reflect the actual ports on which
  3576. the NameNode is up and running if the user passes the port as
  3577. <code>zero</code>.]]>
  3578. </doc>
  3579. </constructor>
  3580. <method name="getProtocolVersion" return="long"
  3581. abstract="false" native="false" synchronized="false"
  3582. static="false" final="false" visibility="public"
  3583. deprecated="not deprecated">
  3584. <param name="protocol" type="java.lang.String"/>
  3585. <param name="clientVersion" type="long"/>
  3586. <exception name="IOException" type="java.io.IOException"/>
  3587. </method>
  3588. <method name="format"
  3589. abstract="false" native="false" synchronized="false"
  3590. static="true" final="false" visibility="public"
  3591. deprecated="not deprecated">
  3592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3593. <exception name="IOException" type="java.io.IOException"/>
  3594. <doc>
  3595. <![CDATA[Format a new filesystem. Destroys any filesystem that may already
  3596. exist at this location.]]>
  3597. </doc>
  3598. </method>
  3599. <method name="getNameNodeMetrics" return="org.apache.hadoop.dfs.NameNodeMetrics"
  3600. abstract="false" native="false" synchronized="false"
  3601. static="true" final="false" visibility="public"
  3602. deprecated="not deprecated">
  3603. </method>
  3604. <method name="join"
  3605. abstract="false" native="false" synchronized="false"
  3606. static="false" final="false" visibility="public"
  3607. deprecated="not deprecated">
  3608. <doc>
  3609. <![CDATA[Wait for service to finish.
  3610. (Normally, it runs forever.)]]>
  3611. </doc>
  3612. </method>
  3613. <method name="stop"
  3614. abstract="false" native="false" synchronized="false"
  3615. static="false" final="false" visibility="public"
  3616. deprecated="not deprecated">
  3617. <doc>
  3618. <![CDATA[Stop all NameNode threads and wait for all to finish.]]>
  3619. </doc>
  3620. </method>
  3621. <method name="getBlocks" return="org.apache.hadoop.dfs.BlocksWithLocations"
  3622. abstract="false" native="false" synchronized="false"
  3623. static="false" final="false" visibility="public"
  3624. deprecated="not deprecated">
  3625. <param name="datanode" type="org.apache.hadoop.dfs.DatanodeInfo"/>
  3626. <param name="size" type="long"/>
  3627. <exception name="IOException" type="java.io.IOException"/>
  3628. <doc>
  3629. <![CDATA[return a list of blocks & their locations on <code>datanode</code> whose
  3630. total size is <code>size</code>
  3631. @param datanode on which blocks are located
  3632. @param size total size of blocks]]>
  3633. </doc>
  3634. </method>
  3635. <method name="getBlockLocations" return="org.apache.hadoop.dfs.LocatedBlocks"
  3636. abstract="false" native="false" synchronized="false"
  3637. static="false" final="false" visibility="public"
  3638. deprecated="not deprecated">
  3639. <param name="src" type="java.lang.String"/>
  3640. <param name="offset" type="long"/>
  3641. <param name="length" type="long"/>
  3642. <exception name="IOException" type="java.io.IOException"/>
  3643. <doc>
  3644. <![CDATA[{@inheritDoc}]]>
  3645. </doc>
  3646. </method>
  3647. <method name="create"
  3648. abstract="false" native="false" synchronized="false"
  3649. static="false" final="false" visibility="public"
  3650. deprecated="not deprecated">
  3651. <param name="src" type="java.lang.String"/>
  3652. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3653. <param name="clientName" type="java.lang.String"/>
  3654. <param name="overwrite" type="boolean"/>
  3655. <param name="replication" type="short"/>
  3656. <param name="blockSize" type="long"/>
  3657. <exception name="IOException" type="java.io.IOException"/>
  3658. <doc>
  3659. <![CDATA[{@inheritDoc}]]>
  3660. </doc>
  3661. </method>
  3662. <method name="setReplication" return="boolean"
  3663. abstract="false" native="false" synchronized="false"
  3664. static="false" final="false" visibility="public"
  3665. deprecated="not deprecated">
  3666. <param name="src" type="java.lang.String"/>
  3667. <param name="replication" type="short"/>
  3668. <exception name="IOException" type="java.io.IOException"/>
  3669. </method>
  3670. <method name="setPermission"
  3671. abstract="false" native="false" synchronized="false"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. <param name="src" type="java.lang.String"/>
  3675. <param name="permissions" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3676. <exception name="IOException" type="java.io.IOException"/>
  3677. <doc>
  3678. <![CDATA[{@inheritDoc}]]>
  3679. </doc>
  3680. </method>
  3681. <method name="setOwner"
  3682. abstract="false" native="false" synchronized="false"
  3683. static="false" final="false" visibility="public"
  3684. deprecated="not deprecated">
  3685. <param name="src" type="java.lang.String"/>
  3686. <param name="username" type="java.lang.String"/>
  3687. <param name="groupname" type="java.lang.String"/>
  3688. <exception name="IOException" type="java.io.IOException"/>
  3689. <doc>
  3690. <![CDATA[{@inheritDoc}]]>
  3691. </doc>
  3692. </method>
  3693. <method name="addBlock" return="org.apache.hadoop.dfs.LocatedBlock"
  3694. abstract="false" native="false" synchronized="false"
  3695. static="false" final="false" visibility="public"
  3696. deprecated="not deprecated">
  3697. <param name="src" type="java.lang.String"/>
  3698. <param name="clientName" type="java.lang.String"/>
  3699. <exception name="IOException" type="java.io.IOException"/>
  3700. </method>
  3701. <method name="abandonBlock"
  3702. abstract="false" native="false" synchronized="false"
  3703. static="false" final="false" visibility="public"
  3704. deprecated="not deprecated">
  3705. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3706. <param name="src" type="java.lang.String"/>
  3707. <param name="holder" type="java.lang.String"/>
  3708. <exception name="IOException" type="java.io.IOException"/>
  3709. <doc>
  3710. <![CDATA[The client needs to give up on the block.]]>
  3711. </doc>
  3712. </method>
  3713. <method name="abandonFileInProgress"
  3714. abstract="false" native="false" synchronized="false"
  3715. static="false" final="false" visibility="public"
  3716. deprecated="not deprecated">
  3717. <param name="src" type="java.lang.String"/>
  3718. <param name="holder" type="java.lang.String"/>
  3719. <exception name="IOException" type="java.io.IOException"/>
  3720. </method>
  3721. <method name="complete" return="boolean"
  3722. abstract="false" native="false" synchronized="false"
  3723. static="false" final="false" visibility="public"
  3724. deprecated="not deprecated">
  3725. <param name="src" type="java.lang.String"/>
  3726. <param name="clientName" type="java.lang.String"/>
  3727. <exception name="IOException" type="java.io.IOException"/>
  3728. </method>
  3729. <method name="reportBadBlocks"
  3730. abstract="false" native="false" synchronized="false"
  3731. static="false" final="false" visibility="public"
  3732. deprecated="not deprecated">
  3733. <param name="blocks" type="org.apache.hadoop.dfs.LocatedBlock[]"/>
  3734. <exception name="IOException" type="java.io.IOException"/>
  3735. <doc>
  3736. <![CDATA[The client has detected an error on the specified located blocks
  3737. and is reporting them to the server. For now, the namenode will
  3738. delete the blocks from the datanodes. In the future we might
  3739. check the blocks are actually corrupt.]]>
  3740. </doc>
  3741. </method>
  3742. <method name="getPreferredBlockSize" return="long"
  3743. abstract="false" native="false" synchronized="false"
  3744. static="false" final="false" visibility="public"
  3745. deprecated="not deprecated">
  3746. <param name="filename" type="java.lang.String"/>
  3747. <exception name="IOException" type="java.io.IOException"/>
  3748. </method>
  3749. <method name="rename" return="boolean"
  3750. abstract="false" native="false" synchronized="false"
  3751. static="false" final="false" visibility="public"
  3752. deprecated="not deprecated">
  3753. <param name="src" type="java.lang.String"/>
  3754. <param name="dst" type="java.lang.String"/>
  3755. <exception name="IOException" type="java.io.IOException"/>
  3756. </method>
  3757. <method name="delete" return="boolean"
  3758. abstract="false" native="false" synchronized="false"
  3759. static="false" final="false" visibility="public"
  3760. deprecated="not deprecated">
  3761. <param name="src" type="java.lang.String"/>
  3762. <exception name="IOException" type="java.io.IOException"/>
  3763. </method>
  3764. <method name="delete" return="boolean"
  3765. abstract="false" native="false" synchronized="false"
  3766. static="false" final="false" visibility="public"
  3767. deprecated="not deprecated">
  3768. <param name="src" type="java.lang.String"/>
  3769. <param name="recursive" type="boolean"/>
  3770. <exception name="IOException" type="java.io.IOException"/>
  3771. </method>
  3772. <method name="exists" return="boolean"
  3773. abstract="false" native="false" synchronized="false"
  3774. static="false" final="false" visibility="public"
  3775. deprecated="Use getFileInfo(String) instead">
  3776. <param name="src" type="java.lang.String"/>
  3777. <exception name="IOException" type="java.io.IOException"/>
  3778. <doc>
  3779. <![CDATA[@deprecated Use getFileInfo(String) instead]]>
  3780. </doc>
  3781. </method>
  3782. <method name="mkdirs" return="boolean"
  3783. abstract="false" native="false" synchronized="false"
  3784. static="false" final="false" visibility="public"
  3785. deprecated="not deprecated">
  3786. <param name="src" type="java.lang.String"/>
  3787. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3788. <exception name="IOException" type="java.io.IOException"/>
  3789. <doc>
  3790. <![CDATA[{@inheritDoc}]]>
  3791. </doc>
  3792. </method>
  3793. <method name="renewLease"
  3794. abstract="false" native="false" synchronized="false"
  3795. static="false" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <param name="clientName" type="java.lang.String"/>
  3798. <exception name="IOException" type="java.io.IOException"/>
  3799. </method>
  3800. <method name="getListing" return="org.apache.hadoop.dfs.DFSFileInfo[]"
  3801. abstract="false" native="false" synchronized="false"
  3802. static="false" final="false" visibility="public"
  3803. deprecated="not deprecated">
  3804. <param name="src" type="java.lang.String"/>
  3805. <exception name="IOException" type="java.io.IOException"/>
  3806. </method>
  3807. <method name="getFileInfo" return="org.apache.hadoop.dfs.DFSFileInfo"
  3808. abstract="false" native="false" synchronized="false"
  3809. static="false" final="false" visibility="public"
  3810. deprecated="not deprecated">
  3811. <param name="src" type="java.lang.String"/>
  3812. <exception name="IOException" type="java.io.IOException"/>
  3813. <doc>
  3814. <![CDATA[Get the file info for a specific file.
  3815. @param src The string representation of the path to the file
  3816. @throws IOException if permission to access file is denied by the system
  3817. @return object containing information regarding the file
  3818. or null if file not found]]>
  3819. </doc>
  3820. </method>
  3821. <method name="getStats" return="long[]"
  3822. abstract="false" native="false" synchronized="false"
  3823. static="false" final="false" visibility="public"
  3824. deprecated="not deprecated">
  3825. <exception name="IOException" type="java.io.IOException"/>
  3826. <doc>
  3827. <![CDATA[@inheritDoc]]>
  3828. </doc>
  3829. </method>
  3830. <method name="getDatanodeReport" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  3831. abstract="false" native="false" synchronized="false"
  3832. static="false" final="false" visibility="public"
  3833. deprecated="not deprecated">
  3834. <param name="type" type="org.apache.hadoop.dfs.FSConstants.DatanodeReportType"/>
  3835. <exception name="IOException" type="java.io.IOException"/>
  3836. </method>
  3837. <method name="setSafeMode" return="boolean"
  3838. abstract="false" native="false" synchronized="false"
  3839. static="false" final="false" visibility="public"
  3840. deprecated="not deprecated">
  3841. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  3842. <exception name="IOException" type="java.io.IOException"/>
  3843. <doc>
  3844. <![CDATA[@inheritDoc]]>
  3845. </doc>
  3846. </method>
  3847. <method name="isInSafeMode" return="boolean"
  3848. abstract="false" native="false" synchronized="false"
  3849. static="false" final="false" visibility="public"
  3850. deprecated="not deprecated">
  3851. <doc>
  3852. <![CDATA[Is the cluster currently in safe mode?]]>
  3853. </doc>
  3854. </method>
  3855. <method name="refreshNodes"
  3856. abstract="false" native="false" synchronized="false"
  3857. static="false" final="false" visibility="public"
  3858. deprecated="not deprecated">
  3859. <exception name="IOException" type="java.io.IOException"/>
  3860. </method>
  3861. <method name="getEditLogSize" return="long"
  3862. abstract="false" native="false" synchronized="false"
  3863. static="false" final="false" visibility="public"
  3864. deprecated="not deprecated">
  3865. <exception name="IOException" type="java.io.IOException"/>
  3866. <doc>
  3867. <![CDATA[Returns the size of the current edit log.]]>
  3868. </doc>
  3869. </method>
  3870. <method name="rollEditLog" return="long"
  3871. abstract="false" native="false" synchronized="false"
  3872. static="false" final="false" visibility="public"
  3873. deprecated="not deprecated">
  3874. <exception name="IOException" type="java.io.IOException"/>
  3875. <doc>
  3876. <![CDATA[Roll the edit log.]]>
  3877. </doc>
  3878. </method>
  3879. <method name="rollFsImage"
  3880. abstract="false" native="false" synchronized="false"
  3881. static="false" final="false" visibility="public"
  3882. deprecated="not deprecated">
  3883. <exception name="IOException" type="java.io.IOException"/>
  3884. <doc>
  3885. <![CDATA[Roll the image]]>
  3886. </doc>
  3887. </method>
  3888. <method name="finalizeUpgrade"
  3889. abstract="false" native="false" synchronized="false"
  3890. static="false" final="false" visibility="public"
  3891. deprecated="not deprecated">
  3892. <exception name="IOException" type="java.io.IOException"/>
  3893. </method>
  3894. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  3895. abstract="false" native="false" synchronized="false"
  3896. static="false" final="false" visibility="public"
  3897. deprecated="not deprecated">
  3898. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  3899. <exception name="IOException" type="java.io.IOException"/>
  3900. </method>
  3901. <method name="metaSave"
  3902. abstract="false" native="false" synchronized="false"
  3903. static="false" final="false" visibility="public"
  3904. deprecated="not deprecated">
  3905. <param name="filename" type="java.lang.String"/>
  3906. <exception name="IOException" type="java.io.IOException"/>
  3907. <doc>
  3908. <![CDATA[Dumps namenode state into specified file]]>
  3909. </doc>
  3910. </method>
  3911. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  3912. abstract="false" native="false" synchronized="false"
  3913. static="false" final="false" visibility="public"
  3914. deprecated="not deprecated">
  3915. <param name="path" type="java.lang.String"/>
  3916. <exception name="IOException" type="java.io.IOException"/>
  3917. <doc>
  3918. <![CDATA[{@inheritDoc}]]>
  3919. </doc>
  3920. </method>
  3921. <method name="fsync"
  3922. abstract="false" native="false" synchronized="false"
  3923. static="false" final="false" visibility="public"
  3924. deprecated="not deprecated">
  3925. <param name="src" type="java.lang.String"/>
  3926. <param name="clientName" type="java.lang.String"/>
  3927. <exception name="IOException" type="java.io.IOException"/>
  3928. <doc>
  3929. <![CDATA[{@inheritDoc}]]>
  3930. </doc>
  3931. </method>
  3932. <method name="register" return="org.apache.hadoop.dfs.DatanodeRegistration"
  3933. abstract="false" native="false" synchronized="false"
  3934. static="false" final="false" visibility="public"
  3935. deprecated="not deprecated">
  3936. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  3937. <exception name="IOException" type="java.io.IOException"/>
  3938. </method>
  3939. <method name="sendHeartbeat" return="org.apache.hadoop.dfs.DatanodeCommand"
  3940. abstract="false" native="false" synchronized="false"
  3941. static="false" final="false" visibility="public"
  3942. deprecated="not deprecated">
  3943. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  3944. <param name="capacity" type="long"/>
  3945. <param name="dfsUsed" type="long"/>
  3946. <param name="remaining" type="long"/>
  3947. <param name="xmitsInProgress" type="int"/>
  3948. <param name="xceiverCount" type="int"/>
  3949. <exception name="IOException" type="java.io.IOException"/>
  3950. <doc>
  3951. <![CDATA[Data node notify the name node that it is alive
  3952. Return a block-oriented command for the datanode to execute.
  3953. This will be either a transfer or a delete operation.]]>
  3954. </doc>
  3955. </method>
  3956. <method name="blockReport" return="org.apache.hadoop.dfs.DatanodeCommand"
  3957. abstract="false" native="false" synchronized="false"
  3958. static="false" final="false" visibility="public"
  3959. deprecated="not deprecated">
  3960. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  3961. <param name="blocks" type="long[]"/>
  3962. <exception name="IOException" type="java.io.IOException"/>
  3963. </method>
  3964. <method name="blockReceived"
  3965. abstract="false" native="false" synchronized="false"
  3966. static="false" final="false" visibility="public"
  3967. deprecated="not deprecated">
  3968. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  3969. <param name="blocks" type="org.apache.hadoop.dfs.Block[]"/>
  3970. <param name="delHints" type="java.lang.String[]"/>
  3971. <exception name="IOException" type="java.io.IOException"/>
  3972. </method>
  3973. <method name="errorReport"
  3974. abstract="false" native="false" synchronized="false"
  3975. static="false" final="false" visibility="public"
  3976. deprecated="not deprecated">
  3977. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  3978. <param name="errorCode" type="int"/>
  3979. <param name="msg" type="java.lang.String"/>
  3980. <exception name="IOException" type="java.io.IOException"/>
  3981. </method>
  3982. <method name="versionRequest" return="org.apache.hadoop.dfs.NamespaceInfo"
  3983. abstract="false" native="false" synchronized="false"
  3984. static="false" final="false" visibility="public"
  3985. deprecated="not deprecated">
  3986. <exception name="IOException" type="java.io.IOException"/>
  3987. </method>
  3988. <method name="processUpgradeCommand" return="org.apache.hadoop.dfs.UpgradeCommand"
  3989. abstract="false" native="false" synchronized="false"
  3990. static="false" final="false" visibility="public"
  3991. deprecated="not deprecated">
  3992. <param name="comm" type="org.apache.hadoop.dfs.UpgradeCommand"/>
  3993. <exception name="IOException" type="java.io.IOException"/>
  3994. </method>
  3995. <method name="blockCrcUpgradeGetBlockLocations" return="org.apache.hadoop.dfs.BlockCrcInfo"
  3996. abstract="false" native="false" synchronized="false"
  3997. static="false" final="false" visibility="public"
  3998. deprecated="not deprecated">
  3999. <param name="block" type="org.apache.hadoop.dfs.Block"/>
  4000. <exception name="IOException" type="java.io.IOException"/>
  4001. </method>
  4002. <method name="verifyRequest"
  4003. abstract="false" native="false" synchronized="false"
  4004. static="false" final="false" visibility="public"
  4005. deprecated="not deprecated">
  4006. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4007. <exception name="IOException" type="java.io.IOException"/>
  4008. <doc>
  4009. <![CDATA[Verify request.
  4010. Verifies correctness of the datanode version, registration ID, and
  4011. if the datanode does not need to be shutdown.
  4012. @param nodeReg data node registration
  4013. @throws IOException]]>
  4014. </doc>
  4015. </method>
  4016. <method name="verifyVersion"
  4017. abstract="false" native="false" synchronized="false"
  4018. static="false" final="false" visibility="public"
  4019. deprecated="not deprecated">
  4020. <param name="version" type="int"/>
  4021. <exception name="IOException" type="java.io.IOException"/>
  4022. <doc>
  4023. <![CDATA[Verify version.
  4024. @param version
  4025. @throws IOException]]>
  4026. </doc>
  4027. </method>
  4028. <method name="getFsImageName" return="java.io.File"
  4029. abstract="false" native="false" synchronized="false"
  4030. static="false" final="false" visibility="public"
  4031. deprecated="not deprecated">
  4032. <exception name="IOException" type="java.io.IOException"/>
  4033. <doc>
  4034. <![CDATA[Returns the name of the fsImage file]]>
  4035. </doc>
  4036. </method>
  4037. <method name="getFsImageNameCheckpoint" return="java.io.File[]"
  4038. abstract="false" native="false" synchronized="false"
  4039. static="false" final="false" visibility="public"
  4040. deprecated="not deprecated">
  4041. <exception name="IOException" type="java.io.IOException"/>
  4042. <doc>
  4043. <![CDATA[Returns the name of the fsImage file uploaded by periodic
  4044. checkpointing]]>
  4045. </doc>
  4046. </method>
  4047. <method name="validateCheckpointUpload"
  4048. abstract="false" native="false" synchronized="false"
  4049. static="false" final="false" visibility="public"
  4050. deprecated="not deprecated">
  4051. <param name="token" type="long"/>
  4052. <exception name="IOException" type="java.io.IOException"/>
  4053. <doc>
  4054. <![CDATA[Validates that this is a valid checkpoint upload request]]>
  4055. </doc>
  4056. </method>
  4057. <method name="checkpointUploadDone"
  4058. abstract="false" native="false" synchronized="false"
  4059. static="false" final="false" visibility="public"
  4060. deprecated="not deprecated">
  4061. <doc>
  4062. <![CDATA[Indicates that a new checkpoint has been successfully uploaded.]]>
  4063. </doc>
  4064. </method>
  4065. <method name="getFsEditName" return="java.io.File"
  4066. abstract="false" native="false" synchronized="false"
  4067. static="false" final="false" visibility="public"
  4068. deprecated="not deprecated">
  4069. <exception name="IOException" type="java.io.IOException"/>
  4070. <doc>
  4071. <![CDATA[Returns the name of the edits file]]>
  4072. </doc>
  4073. </method>
  4074. <method name="getNameNodeAddress" return="java.net.InetSocketAddress"
  4075. abstract="false" native="false" synchronized="false"
  4076. static="false" final="false" visibility="public"
  4077. deprecated="not deprecated">
  4078. <doc>
  4079. <![CDATA[Returns the address on which the NameNodes is listening to.
  4080. @return the address on which the NameNodes is listening to.]]>
  4081. </doc>
  4082. </method>
  4083. <method name="main"
  4084. abstract="false" native="false" synchronized="false"
  4085. static="true" final="false" visibility="public"
  4086. deprecated="not deprecated">
  4087. <param name="argv" type="java.lang.String[]"/>
  4088. <exception name="Exception" type="java.lang.Exception"/>
  4089. </method>
  4090. <field name="LOG" type="org.apache.commons.logging.Log"
  4091. transient="false" volatile="false"
  4092. static="true" final="true" visibility="public"
  4093. deprecated="not deprecated">
  4094. </field>
  4095. <field name="stateChangeLog" type="org.apache.commons.logging.Log"
  4096. transient="false" volatile="false"
  4097. static="true" final="true" visibility="public"
  4098. deprecated="not deprecated">
  4099. </field>
  4100. <doc>
  4101. <![CDATA[NameNode serves as both directory namespace manager and
  4102. "inode table" for the Hadoop DFS. There is a single NameNode
  4103. running in any DFS deployment. (Well, except when there
  4104. is a second backup/failover NameNode.)
  4105. The NameNode controls two critical tables:
  4106. 1) filename->blocksequence (namespace)
  4107. 2) block->machinelist ("inodes")
  4108. The first table is stored on disk and is very precious.
  4109. The second table is rebuilt every time the NameNode comes
  4110. up.
  4111. 'NameNode' refers to both this class as well as the 'NameNode server'.
  4112. The 'FSNamesystem' class actually performs most of the filesystem
  4113. management. The majority of the 'NameNode' class itself is concerned
  4114. with exposing the IPC interface to the outside world, plus some
  4115. configuration management.
  4116. NameNode implements the ClientProtocol interface, which allows
  4117. clients to ask for DFS services. ClientProtocol is not
  4118. designed for direct use by authors of DFS client code. End-users
  4119. should instead use the org.apache.nutch.hadoop.fs.FileSystem class.
  4120. NameNode also implements the DatanodeProtocol interface, used by
  4121. DataNode programs that actually store DFS data blocks. These
  4122. methods are invoked repeatedly and automatically by all the
  4123. DataNodes in a DFS deployment.
  4124. NameNode also implements the NamenodeProtocol interface, used by
  4125. secondary namenodes or rebalancing processes to get partial namenode's
  4126. state, for example partial blocksMap etc.]]>
  4127. </doc>
  4128. </class>
  4129. <!-- end class org.apache.hadoop.dfs.NameNode -->
  4130. <!-- start class org.apache.hadoop.dfs.NamenodeFsck -->
  4131. <class name="NamenodeFsck" extends="java.lang.Object"
  4132. abstract="false"
  4133. static="false" final="false" visibility="public"
  4134. deprecated="not deprecated">
  4135. <constructor name="NamenodeFsck" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.dfs.NameNode, java.util.Map&lt;java.lang.String, java.lang.String[]&gt;, javax.servlet.http.HttpServletResponse"
  4136. static="false" final="false" visibility="public"
  4137. deprecated="not deprecated">
  4138. <exception name="IOException" type="java.io.IOException"/>
  4139. <doc>
  4140. <![CDATA[Filesystem checker.
  4141. @param conf configuration (namenode config)
  4142. @param nn namenode that this fsck is going to use
  4143. @param pmap key=value[] map that is passed to the http servlet as url parameters
  4144. @param response the object into which this servelet writes the url contents
  4145. @throws IOException]]>
  4146. </doc>
  4147. </constructor>
  4148. <method name="fsck"
  4149. abstract="false" native="false" synchronized="false"
  4150. static="false" final="false" visibility="public"
  4151. deprecated="not deprecated">
  4152. <exception name="IOException" type="java.io.IOException"/>
  4153. <doc>
  4154. <![CDATA[Check files on DFS, starting from the indicated path.
  4155. @throws Exception]]>
  4156. </doc>
  4157. </method>
  4158. <method name="run" return="int"
  4159. abstract="false" native="false" synchronized="false"
  4160. static="false" final="false" visibility="public"
  4161. deprecated="not deprecated">
  4162. <param name="args" type="java.lang.String[]"/>
  4163. <exception name="Exception" type="java.lang.Exception"/>
  4164. <doc>
  4165. <![CDATA[@param args]]>
  4166. </doc>
  4167. </method>
  4168. <field name="LOG" type="org.apache.commons.logging.Log"
  4169. transient="false" volatile="false"
  4170. static="true" final="true" visibility="public"
  4171. deprecated="not deprecated">
  4172. </field>
  4173. <field name="FIXING_NONE" type="int"
  4174. transient="false" volatile="false"
  4175. static="true" final="true" visibility="public"
  4176. deprecated="not deprecated">
  4177. <doc>
  4178. <![CDATA[Don't attempt any fixing .]]>
  4179. </doc>
  4180. </field>
  4181. <field name="FIXING_MOVE" type="int"
  4182. transient="false" volatile="false"
  4183. static="true" final="true" visibility="public"
  4184. deprecated="not deprecated">
  4185. <doc>
  4186. <![CDATA[Move corrupted files to /lost+found .]]>
  4187. </doc>
  4188. </field>
  4189. <field name="FIXING_DELETE" type="int"
  4190. transient="false" volatile="false"
  4191. static="true" final="true" visibility="public"
  4192. deprecated="not deprecated">
  4193. <doc>
  4194. <![CDATA[Delete corrupted files.]]>
  4195. </doc>
  4196. </field>
  4197. <doc>
  4198. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  4199. sub-optimal conditions.
  4200. <p>The tool scans all files and directories, starting from an indicated
  4201. root path. The following abnormal conditions are detected and handled:</p>
  4202. <ul>
  4203. <li>files with blocks that are completely missing from all datanodes.<br/>
  4204. In this case the tool can perform one of the following actions:
  4205. <ul>
  4206. <li>none ({@link #FIXING_NONE})</li>
  4207. <li>move corrupted files to /lost+found directory on DFS
  4208. ({@link #FIXING_MOVE}). Remaining data blocks are saved as a
  4209. block chains, representing longest consecutive series of valid blocks.</li>
  4210. <li>delete corrupted files ({@link #FIXING_DELETE})</li>
  4211. </ul>
  4212. </li>
  4213. <li>detect files with under-replicated or over-replicated blocks</li>
  4214. </ul>
  4215. Additionally, the tool collects a detailed overall DFS statistics, and
  4216. optionally can print detailed statistics on block locations and replication
  4217. factors of each file.]]>
  4218. </doc>
  4219. </class>
  4220. <!-- end class org.apache.hadoop.dfs.NamenodeFsck -->
  4221. <!-- start class org.apache.hadoop.dfs.NamenodeFsck.FsckResult -->
  4222. <class name="NamenodeFsck.FsckResult" extends="java.lang.Object"
  4223. abstract="false"
  4224. static="true" final="false" visibility="public"
  4225. deprecated="not deprecated">
  4226. <constructor name="NamenodeFsck.FsckResult"
  4227. static="false" final="false" visibility="public"
  4228. deprecated="not deprecated">
  4229. </constructor>
  4230. <method name="isHealthy" return="boolean"
  4231. abstract="false" native="false" synchronized="false"
  4232. static="false" final="false" visibility="public"
  4233. deprecated="not deprecated">
  4234. <doc>
  4235. <![CDATA[DFS is considered healthy if there are no missing blocks.]]>
  4236. </doc>
  4237. </method>
  4238. <method name="addMissing"
  4239. abstract="false" native="false" synchronized="false"
  4240. static="false" final="false" visibility="public"
  4241. deprecated="not deprecated">
  4242. <param name="id" type="java.lang.String"/>
  4243. <param name="size" type="long"/>
  4244. <doc>
  4245. <![CDATA[Add a missing block name, plus its size.]]>
  4246. </doc>
  4247. </method>
  4248. <method name="getMissingIds" return="java.util.ArrayList&lt;java.lang.String&gt;"
  4249. abstract="false" native="false" synchronized="false"
  4250. static="false" final="false" visibility="public"
  4251. deprecated="not deprecated">
  4252. <doc>
  4253. <![CDATA[Return a list of missing block names (as list of Strings).]]>
  4254. </doc>
  4255. </method>
  4256. <method name="getMissingSize" return="long"
  4257. abstract="false" native="false" synchronized="false"
  4258. static="false" final="false" visibility="public"
  4259. deprecated="not deprecated">
  4260. <doc>
  4261. <![CDATA[Return total size of missing data, in bytes.]]>
  4262. </doc>
  4263. </method>
  4264. <method name="setMissingSize"
  4265. abstract="false" native="false" synchronized="false"
  4266. static="false" final="false" visibility="public"
  4267. deprecated="not deprecated">
  4268. <param name="missingSize" type="long"/>
  4269. </method>
  4270. <method name="getExcessiveReplicas" return="long"
  4271. abstract="false" native="false" synchronized="false"
  4272. static="false" final="false" visibility="public"
  4273. deprecated="not deprecated">
  4274. <doc>
  4275. <![CDATA[Return the number of over-replicated blocks.]]>
  4276. </doc>
  4277. </method>
  4278. <method name="setExcessiveReplicas"
  4279. abstract="false" native="false" synchronized="false"
  4280. static="false" final="false" visibility="public"
  4281. deprecated="not deprecated">
  4282. <param name="overReplicatedBlocks" type="long"/>
  4283. </method>
  4284. <method name="getReplicationFactor" return="float"
  4285. abstract="false" native="false" synchronized="false"
  4286. static="false" final="false" visibility="public"
  4287. deprecated="not deprecated">
  4288. <doc>
  4289. <![CDATA[Return the actual replication factor.]]>
  4290. </doc>
  4291. </method>
  4292. <method name="getMissingReplicas" return="long"
  4293. abstract="false" native="false" synchronized="false"
  4294. static="false" final="false" visibility="public"
  4295. deprecated="not deprecated">
  4296. <doc>
  4297. <![CDATA[Return the number of under-replicated blocks. Note: missing blocks are not counted here.]]>
  4298. </doc>
  4299. </method>
  4300. <method name="setMissingReplicas"
  4301. abstract="false" native="false" synchronized="false"
  4302. static="false" final="false" visibility="public"
  4303. deprecated="not deprecated">
  4304. <param name="underReplicatedBlocks" type="long"/>
  4305. </method>
  4306. <method name="getTotalDirs" return="long"
  4307. abstract="false" native="false" synchronized="false"
  4308. static="false" final="false" visibility="public"
  4309. deprecated="not deprecated">
  4310. <doc>
  4311. <![CDATA[Return total number of directories encountered during this scan.]]>
  4312. </doc>
  4313. </method>
  4314. <method name="setTotalDirs"
  4315. abstract="false" native="false" synchronized="false"
  4316. static="false" final="false" visibility="public"
  4317. deprecated="not deprecated">
  4318. <param name="totalDirs" type="long"/>
  4319. </method>
  4320. <method name="getTotalFiles" return="long"
  4321. abstract="false" native="false" synchronized="false"
  4322. static="false" final="false" visibility="public"
  4323. deprecated="not deprecated">
  4324. <doc>
  4325. <![CDATA[Return total number of files encountered during this scan.]]>
  4326. </doc>
  4327. </method>
  4328. <method name="setTotalFiles"
  4329. abstract="false" native="false" synchronized="false"
  4330. static="false" final="false" visibility="public"
  4331. deprecated="not deprecated">
  4332. <param name="totalFiles" type="long"/>
  4333. </method>
  4334. <method name="getTotalSize" return="long"
  4335. abstract="false" native="false" synchronized="false"
  4336. static="false" final="false" visibility="public"
  4337. deprecated="not deprecated">
  4338. <doc>
  4339. <![CDATA[Return total size of scanned data, in bytes.]]>
  4340. </doc>
  4341. </method>
  4342. <method name="setTotalSize"
  4343. abstract="false" native="false" synchronized="false"
  4344. static="false" final="false" visibility="public"
  4345. deprecated="not deprecated">
  4346. <param name="totalSize" type="long"/>
  4347. </method>
  4348. <method name="getReplication" return="int"
  4349. abstract="false" native="false" synchronized="false"
  4350. static="false" final="false" visibility="public"
  4351. deprecated="not deprecated">
  4352. <doc>
  4353. <![CDATA[Return the intended replication factor, against which the over/under-
  4354. replicated blocks are counted. Note: this values comes from the current
  4355. Configuration supplied for the tool, so it may be different from the
  4356. value in DFS Configuration.]]>
  4357. </doc>
  4358. </method>
  4359. <method name="setReplication"
  4360. abstract="false" native="false" synchronized="false"
  4361. static="false" final="false" visibility="public"
  4362. deprecated="not deprecated">
  4363. <param name="replication" type="int"/>
  4364. </method>
  4365. <method name="getTotalBlocks" return="long"
  4366. abstract="false" native="false" synchronized="false"
  4367. static="false" final="false" visibility="public"
  4368. deprecated="not deprecated">
  4369. <doc>
  4370. <![CDATA[Return the total number of blocks in the scanned area.]]>
  4371. </doc>
  4372. </method>
  4373. <method name="setTotalBlocks"
  4374. abstract="false" native="false" synchronized="false"
  4375. static="false" final="false" visibility="public"
  4376. deprecated="not deprecated">
  4377. <param name="totalBlocks" type="long"/>
  4378. </method>
  4379. <method name="toString" return="java.lang.String"
  4380. abstract="false" native="false" synchronized="false"
  4381. static="false" final="false" visibility="public"
  4382. deprecated="not deprecated">
  4383. </method>
  4384. <method name="getCorruptFiles" return="long"
  4385. abstract="false" native="false" synchronized="false"
  4386. static="false" final="false" visibility="public"
  4387. deprecated="not deprecated">
  4388. <doc>
  4389. <![CDATA[Return the number of currupted files.]]>
  4390. </doc>
  4391. </method>
  4392. <method name="setCorruptFiles"
  4393. abstract="false" native="false" synchronized="false"
  4394. static="false" final="false" visibility="public"
  4395. deprecated="not deprecated">
  4396. <param name="corruptFiles" type="long"/>
  4397. </method>
  4398. <doc>
  4399. <![CDATA[FsckResult of checking, plus overall DFS statistics.]]>
  4400. </doc>
  4401. </class>
  4402. <!-- end class org.apache.hadoop.dfs.NamenodeFsck.FsckResult -->
  4403. <!-- start class org.apache.hadoop.dfs.NameNodeMetrics -->
  4404. <class name="NameNodeMetrics" extends="java.lang.Object"
  4405. abstract="false"
  4406. static="false" final="false" visibility="public"
  4407. deprecated="not deprecated">
  4408. <implements name="org.apache.hadoop.metrics.Updater"/>
  4409. <method name="shutdown"
  4410. abstract="false" native="false" synchronized="false"
  4411. static="false" final="false" visibility="public"
  4412. deprecated="not deprecated">
  4413. </method>
  4414. <method name="doUpdates"
  4415. abstract="false" native="false" synchronized="false"
  4416. static="false" final="false" visibility="public"
  4417. deprecated="not deprecated">
  4418. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  4419. <doc>
  4420. <![CDATA[Since this object is a registered updater, this method will be called
  4421. periodically, e.g. every 5 seconds.]]>
  4422. </doc>
  4423. </method>
  4424. <method name="resetAllMinMax"
  4425. abstract="false" native="false" synchronized="false"
  4426. static="false" final="false" visibility="public"
  4427. deprecated="not deprecated">
  4428. </method>
  4429. <field name="numFilesCreated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4430. transient="false" volatile="false"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. </field>
  4434. <field name="numGetBlockLocations" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4435. transient="false" volatile="false"
  4436. static="false" final="false" visibility="public"
  4437. deprecated="not deprecated">
  4438. </field>
  4439. <field name="numFilesRenamed" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4440. transient="false" volatile="false"
  4441. static="false" final="false" visibility="public"
  4442. deprecated="not deprecated">
  4443. </field>
  4444. <field name="numFilesListed" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4445. transient="false" volatile="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. </field>
  4449. <field name="transactions" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4450. transient="false" volatile="false"
  4451. static="false" final="false" visibility="public"
  4452. deprecated="not deprecated">
  4453. </field>
  4454. <field name="syncs" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4455. transient="false" volatile="false"
  4456. static="false" final="false" visibility="public"
  4457. deprecated="not deprecated">
  4458. </field>
  4459. <field name="blockReport" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4460. transient="false" volatile="false"
  4461. static="false" final="false" visibility="public"
  4462. deprecated="not deprecated">
  4463. </field>
  4464. <field name="safeModeTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  4465. transient="false" volatile="false"
  4466. static="false" final="false" visibility="public"
  4467. deprecated="not deprecated">
  4468. </field>
  4469. <field name="fsImageLoadTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  4470. transient="false" volatile="false"
  4471. static="false" final="false" visibility="public"
  4472. deprecated="not deprecated">
  4473. </field>
  4474. <doc>
  4475. <![CDATA[This class is for maintaining the various NameNode statistics
  4476. and publishing them through the metrics interfaces.
  4477. This also registers the JMX MBean for RPC.
  4478. <p>
  4479. This class has a number of metrics variables that are publicly accessible;
  4480. these variables (objects) have methods to update their values;
  4481. for example:
  4482. <p> {@link #syncs}.inc()]]>
  4483. </doc>
  4484. </class>
  4485. <!-- end class org.apache.hadoop.dfs.NameNodeMetrics -->
  4486. <!-- start class org.apache.hadoop.dfs.NotReplicatedYetException -->
  4487. <class name="NotReplicatedYetException" extends="java.io.IOException"
  4488. abstract="false"
  4489. static="false" final="false" visibility="public"
  4490. deprecated="not deprecated">
  4491. <constructor name="NotReplicatedYetException" type="java.lang.String"
  4492. static="false" final="false" visibility="public"
  4493. deprecated="not deprecated">
  4494. </constructor>
  4495. <doc>
  4496. <![CDATA[The file has not finished being written to enough datanodes yet.]]>
  4497. </doc>
  4498. </class>
  4499. <!-- end class org.apache.hadoop.dfs.NotReplicatedYetException -->
  4500. <!-- start class org.apache.hadoop.dfs.SafeModeException -->
  4501. <class name="SafeModeException" extends="java.io.IOException"
  4502. abstract="false"
  4503. static="false" final="false" visibility="public"
  4504. deprecated="not deprecated">
  4505. <constructor name="SafeModeException" type="java.lang.String, org.apache.hadoop.dfs.FSNamesystem.SafeModeInfo"
  4506. static="false" final="false" visibility="public"
  4507. deprecated="not deprecated">
  4508. </constructor>
  4509. <doc>
  4510. <![CDATA[This exception is thrown when the name node is in safe mode.
  4511. Client cannot modified namespace until the safe mode is off.]]>
  4512. </doc>
  4513. </class>
  4514. <!-- end class org.apache.hadoop.dfs.SafeModeException -->
  4515. <!-- start class org.apache.hadoop.dfs.SecondaryNameNode -->
  4516. <class name="SecondaryNameNode" extends="java.lang.Object"
  4517. abstract="false"
  4518. static="false" final="false" visibility="public"
  4519. deprecated="not deprecated">
  4520. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  4521. <implements name="java.lang.Runnable"/>
  4522. <constructor name="SecondaryNameNode" type="org.apache.hadoop.conf.Configuration"
  4523. static="false" final="false" visibility="public"
  4524. deprecated="not deprecated">
  4525. <exception name="IOException" type="java.io.IOException"/>
  4526. <doc>
  4527. <![CDATA[Create a connection to the primary namenode.]]>
  4528. </doc>
  4529. </constructor>
  4530. <method name="shutdown"
  4531. abstract="false" native="false" synchronized="false"
  4532. static="false" final="false" visibility="public"
  4533. deprecated="not deprecated">
  4534. <doc>
  4535. <![CDATA[Shut down this instance of the datanode.
  4536. Returns only after shutdown is complete.]]>
  4537. </doc>
  4538. </method>
  4539. <method name="run"
  4540. abstract="false" native="false" synchronized="false"
  4541. static="false" final="false" visibility="public"
  4542. deprecated="not deprecated">
  4543. </method>
  4544. <method name="main"
  4545. abstract="false" native="false" synchronized="false"
  4546. static="true" final="false" visibility="public"
  4547. deprecated="not deprecated">
  4548. <param name="argv" type="java.lang.String[]"/>
  4549. <exception name="Exception" type="java.lang.Exception"/>
  4550. <doc>
  4551. <![CDATA[main() has some simple utility methods.
  4552. @param argv Command line parameters.
  4553. @exception Exception if the filesystem does not exist.]]>
  4554. </doc>
  4555. </method>
  4556. <field name="LOG" type="org.apache.commons.logging.Log"
  4557. transient="false" volatile="false"
  4558. static="true" final="true" visibility="public"
  4559. deprecated="not deprecated">
  4560. </field>
  4561. <doc>
  4562. <![CDATA[The Secondary NameNode is a helper to the primary NameNode.
  4563. The Secondary is responsible for supporting periodic checkpoints
  4564. of the HDFS metadata. The current design allows only one Secondary
  4565. NameNode per HDFs cluster.
  4566. The Secondary NameNode is a daemon that periodically wakes
  4567. up (determined by the schedule specified in the configuration),
  4568. triggers a periodic checkpoint and then goes back to sleep.
  4569. The Secondary NameNode uses the ClientProtocol to talk to the
  4570. primary NameNode.]]>
  4571. </doc>
  4572. </class>
  4573. <!-- end class org.apache.hadoop.dfs.SecondaryNameNode -->
  4574. <!-- start class org.apache.hadoop.dfs.SecondaryNameNode.GetImageServlet -->
  4575. <class name="SecondaryNameNode.GetImageServlet" extends="javax.servlet.http.HttpServlet"
  4576. abstract="false"
  4577. static="true" final="false" visibility="public"
  4578. deprecated="not deprecated">
  4579. <constructor name="SecondaryNameNode.GetImageServlet"
  4580. static="false" final="false" visibility="public"
  4581. deprecated="not deprecated">
  4582. </constructor>
  4583. <method name="doGet"
  4584. abstract="false" native="false" synchronized="false"
  4585. static="false" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  4588. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  4589. <exception name="ServletException" type="javax.servlet.ServletException"/>
  4590. <exception name="IOException" type="java.io.IOException"/>
  4591. </method>
  4592. <doc>
  4593. <![CDATA[This class is used in Namesystem's jetty to retrieve a file.
  4594. Typically used by the Secondary NameNode to retrieve image and
  4595. edit file for periodic checkpointing.]]>
  4596. </doc>
  4597. </class>
  4598. <!-- end class org.apache.hadoop.dfs.SecondaryNameNode.GetImageServlet -->
  4599. <!-- start class org.apache.hadoop.dfs.StreamFile -->
  4600. <class name="StreamFile" extends="org.apache.hadoop.dfs.DfsServlet"
  4601. abstract="false"
  4602. static="false" final="false" visibility="public"
  4603. deprecated="not deprecated">
  4604. <constructor name="StreamFile"
  4605. static="false" final="false" visibility="public"
  4606. deprecated="not deprecated">
  4607. </constructor>
  4608. <method name="doGet"
  4609. abstract="false" native="false" synchronized="false"
  4610. static="false" final="false" visibility="public"
  4611. deprecated="not deprecated">
  4612. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  4613. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  4614. <exception name="ServletException" type="javax.servlet.ServletException"/>
  4615. <exception name="IOException" type="java.io.IOException"/>
  4616. </method>
  4617. </class>
  4618. <!-- end class org.apache.hadoop.dfs.StreamFile -->
  4619. <!-- start interface org.apache.hadoop.dfs.Upgradeable -->
  4620. <interface name="Upgradeable" abstract="true"
  4621. static="false" final="false" visibility="public"
  4622. deprecated="not deprecated">
  4623. <implements name="java.lang.Comparable&lt;org.apache.hadoop.dfs.Upgradeable&gt;"/>
  4624. <method name="getVersion" return="int"
  4625. abstract="false" native="false" synchronized="false"
  4626. static="false" final="false" visibility="public"
  4627. deprecated="not deprecated">
  4628. <doc>
  4629. <![CDATA[Get the layout version of the upgrade object.
  4630. @return layout version]]>
  4631. </doc>
  4632. </method>
  4633. <method name="getType" return="org.apache.hadoop.dfs.FSConstants.NodeType"
  4634. abstract="false" native="false" synchronized="false"
  4635. static="false" final="false" visibility="public"
  4636. deprecated="not deprecated">
  4637. <doc>
  4638. <![CDATA[Get the type of the software component, which this object is upgrading.
  4639. @return type]]>
  4640. </doc>
  4641. </method>
  4642. <method name="getDescription" return="java.lang.String"
  4643. abstract="false" native="false" synchronized="false"
  4644. static="false" final="false" visibility="public"
  4645. deprecated="not deprecated">
  4646. <doc>
  4647. <![CDATA[Description of the upgrade object for displaying.
  4648. @return description]]>
  4649. </doc>
  4650. </method>
  4651. <method name="getUpgradeStatus" return="short"
  4652. abstract="false" native="false" synchronized="false"
  4653. static="false" final="false" visibility="public"
  4654. deprecated="not deprecated">
  4655. <doc>
  4656. <![CDATA[Upgrade status determines a percentage of the work done out of the total
  4657. amount required by the upgrade.
  4658. 100% means that the upgrade is completed.
  4659. Any value < 100 means it is not complete.
  4660. The return value should provide at least 2 values, e.g. 0 and 100.
  4661. @return integer value in the range [0, 100].]]>
  4662. </doc>
  4663. </method>
  4664. <method name="startUpgrade" return="org.apache.hadoop.dfs.UpgradeCommand"
  4665. abstract="false" native="false" synchronized="false"
  4666. static="false" final="false" visibility="public"
  4667. deprecated="not deprecated">
  4668. <exception name="IOException" type="java.io.IOException"/>
  4669. <doc>
  4670. <![CDATA[Prepare for the upgrade.
  4671. E.g. initialize upgrade data structures and set status to 0.
  4672. Returns an upgrade command that is used for broadcasting to other cluster
  4673. components.
  4674. E.g. name-node informs data-nodes that they must perform a distributed upgrade.
  4675. @return an UpgradeCommand for broadcasting.
  4676. @throws IOException]]>
  4677. </doc>
  4678. </method>
  4679. <method name="completeUpgrade" return="org.apache.hadoop.dfs.UpgradeCommand"
  4680. abstract="false" native="false" synchronized="false"
  4681. static="false" final="false" visibility="public"
  4682. deprecated="not deprecated">
  4683. <exception name="IOException" type="java.io.IOException"/>
  4684. <doc>
  4685. <![CDATA[Complete upgrade.
  4686. E.g. cleanup upgrade data structures or write metadata to disk.
  4687. Returns an upgrade command that is used for broadcasting to other cluster
  4688. components.
  4689. E.g. data-nodes inform the name-node that they completed the upgrade
  4690. while other data-nodes are still upgrading.
  4691. @throws IOException]]>
  4692. </doc>
  4693. </method>
  4694. <method name="getUpgradeStatusReport" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  4695. abstract="false" native="false" synchronized="false"
  4696. static="false" final="false" visibility="public"
  4697. deprecated="not deprecated">
  4698. <param name="details" type="boolean"/>
  4699. <exception name="IOException" type="java.io.IOException"/>
  4700. <doc>
  4701. <![CDATA[Get status report for the upgrade.
  4702. @param details true if upgradeStatus details need to be included,
  4703. false otherwise
  4704. @return {@link UpgradeStatusReport}
  4705. @throws IOException]]>
  4706. </doc>
  4707. </method>
  4708. <doc>
  4709. <![CDATA[Common interface for distributed upgrade objects.
  4710. Each upgrade object corresponds to a layout version,
  4711. which is the latest version that should be upgraded using this object.
  4712. That is all components whose layout version is greater or equal to the
  4713. one returned by {@link #getVersion()} must be upgraded with this object.]]>
  4714. </doc>
  4715. </interface>
  4716. <!-- end interface org.apache.hadoop.dfs.Upgradeable -->
  4717. <!-- start class org.apache.hadoop.dfs.UpgradeStatusReport -->
  4718. <class name="UpgradeStatusReport" extends="java.lang.Object"
  4719. abstract="false"
  4720. static="false" final="false" visibility="public"
  4721. deprecated="not deprecated">
  4722. <implements name="org.apache.hadoop.io.Writable"/>
  4723. <constructor name="UpgradeStatusReport"
  4724. static="false" final="false" visibility="public"
  4725. deprecated="not deprecated">
  4726. </constructor>
  4727. <constructor name="UpgradeStatusReport" type="int, short, boolean"
  4728. static="false" final="false" visibility="public"
  4729. deprecated="not deprecated">
  4730. </constructor>
  4731. <method name="getVersion" return="int"
  4732. abstract="false" native="false" synchronized="false"
  4733. static="false" final="false" visibility="public"
  4734. deprecated="not deprecated">
  4735. <doc>
  4736. <![CDATA[Get the layout version of the currently running upgrade.
  4737. @return layout version]]>
  4738. </doc>
  4739. </method>
  4740. <method name="getUpgradeStatus" return="short"
  4741. abstract="false" native="false" synchronized="false"
  4742. static="false" final="false" visibility="public"
  4743. deprecated="not deprecated">
  4744. <doc>
  4745. <![CDATA[Get upgrade upgradeStatus as a percentage of the total upgrade done.
  4746. @see Upgradeable#getUpgradeStatus()]]>
  4747. </doc>
  4748. </method>
  4749. <method name="isFinalized" return="boolean"
  4750. abstract="false" native="false" synchronized="false"
  4751. static="false" final="false" visibility="public"
  4752. deprecated="not deprecated">
  4753. <doc>
  4754. <![CDATA[Is current upgrade finalized.
  4755. @return true if finalized or false otherwise.]]>
  4756. </doc>
  4757. </method>
  4758. <method name="getStatusText" return="java.lang.String"
  4759. abstract="false" native="false" synchronized="false"
  4760. static="false" final="false" visibility="public"
  4761. deprecated="not deprecated">
  4762. <param name="details" type="boolean"/>
  4763. <doc>
  4764. <![CDATA[Get upgradeStatus data as a text for reporting.
  4765. Should be overloaded for a particular upgrade specific upgradeStatus data.
  4766. @param details true if upgradeStatus details need to be included,
  4767. false otherwise
  4768. @return text]]>
  4769. </doc>
  4770. </method>
  4771. <method name="toString" return="java.lang.String"
  4772. abstract="false" native="false" synchronized="false"
  4773. static="false" final="false" visibility="public"
  4774. deprecated="not deprecated">
  4775. <doc>
  4776. <![CDATA[Print basic upgradeStatus details.]]>
  4777. </doc>
  4778. </method>
  4779. <method name="write"
  4780. abstract="false" native="false" synchronized="false"
  4781. static="false" final="false" visibility="public"
  4782. deprecated="not deprecated">
  4783. <param name="out" type="java.io.DataOutput"/>
  4784. <exception name="IOException" type="java.io.IOException"/>
  4785. </method>
  4786. <method name="readFields"
  4787. abstract="false" native="false" synchronized="false"
  4788. static="false" final="false" visibility="public"
  4789. deprecated="not deprecated">
  4790. <param name="in" type="java.io.DataInput"/>
  4791. <exception name="IOException" type="java.io.IOException"/>
  4792. </method>
  4793. <field name="version" type="int"
  4794. transient="false" volatile="false"
  4795. static="false" final="false" visibility="protected"
  4796. deprecated="not deprecated">
  4797. </field>
  4798. <field name="upgradeStatus" type="short"
  4799. transient="false" volatile="false"
  4800. static="false" final="false" visibility="protected"
  4801. deprecated="not deprecated">
  4802. </field>
  4803. <field name="finalized" type="boolean"
  4804. transient="false" volatile="false"
  4805. static="false" final="false" visibility="protected"
  4806. deprecated="not deprecated">
  4807. </field>
  4808. <doc>
  4809. <![CDATA[Base upgrade upgradeStatus class.
  4810. Overload this class if specific status fields need to be reported.
  4811. Describes status of current upgrade.]]>
  4812. </doc>
  4813. </class>
  4814. <!-- end class org.apache.hadoop.dfs.UpgradeStatusReport -->
  4815. <doc>
  4816. <![CDATA[<p>A distributed implementation of {@link
  4817. org.apache.hadoop.fs.FileSystem}. This is loosely modelled after
  4818. Google's <a href="http://labs.google.com/papers/gfs.html">GFS</a>.</p>
  4819. <p>The most important difference is that unlike GFS, Hadoop DFS files
  4820. have strictly one writer at any one time. Bytes are always appended
  4821. to the end of the writer's stream. There is no notion of "record appends"
  4822. or "mutations" that are then checked or reordered. Writers simply emit
  4823. a byte stream. That byte stream is guaranteed to be stored in the
  4824. order written.</p>]]>
  4825. </doc>
  4826. </package>
  4827. <package name="org.apache.hadoop.dfs.datanode.metrics">
  4828. <!-- start class org.apache.hadoop.dfs.datanode.metrics.DataNodeMetrics -->
  4829. <class name="DataNodeMetrics" extends="java.lang.Object"
  4830. abstract="false"
  4831. static="false" final="false" visibility="public"
  4832. deprecated="not deprecated">
  4833. <implements name="org.apache.hadoop.metrics.Updater"/>
  4834. <constructor name="DataNodeMetrics" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  4835. static="false" final="false" visibility="public"
  4836. deprecated="not deprecated">
  4837. </constructor>
  4838. <method name="shutdown"
  4839. abstract="false" native="false" synchronized="false"
  4840. static="false" final="false" visibility="public"
  4841. deprecated="not deprecated">
  4842. </method>
  4843. <method name="doUpdates"
  4844. abstract="false" native="false" synchronized="false"
  4845. static="false" final="false" visibility="public"
  4846. deprecated="not deprecated">
  4847. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  4848. <doc>
  4849. <![CDATA[Since this object is a registered updater, this method will be called
  4850. periodically, e.g. every 5 seconds.]]>
  4851. </doc>
  4852. </method>
  4853. <method name="resetAllMinMax"
  4854. abstract="false" native="false" synchronized="false"
  4855. static="false" final="false" visibility="public"
  4856. deprecated="not deprecated">
  4857. </method>
  4858. <field name="bytesWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4859. transient="false" volatile="false"
  4860. static="false" final="false" visibility="public"
  4861. deprecated="not deprecated">
  4862. </field>
  4863. <field name="bytesRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4864. transient="false" volatile="false"
  4865. static="false" final="false" visibility="public"
  4866. deprecated="not deprecated">
  4867. </field>
  4868. <field name="blocksWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4869. transient="false" volatile="false"
  4870. static="false" final="false" visibility="public"
  4871. deprecated="not deprecated">
  4872. </field>
  4873. <field name="blocksRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4874. transient="false" volatile="false"
  4875. static="false" final="false" visibility="public"
  4876. deprecated="not deprecated">
  4877. </field>
  4878. <field name="blocksReplicated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4879. transient="false" volatile="false"
  4880. static="false" final="false" visibility="public"
  4881. deprecated="not deprecated">
  4882. </field>
  4883. <field name="blocksRemoved" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4884. transient="false" volatile="false"
  4885. static="false" final="false" visibility="public"
  4886. deprecated="not deprecated">
  4887. </field>
  4888. <field name="blocksVerified" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4889. transient="false" volatile="false"
  4890. static="false" final="false" visibility="public"
  4891. deprecated="not deprecated">
  4892. </field>
  4893. <field name="blockVerificationFailures" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4894. transient="false" volatile="false"
  4895. static="false" final="false" visibility="public"
  4896. deprecated="not deprecated">
  4897. </field>
  4898. <field name="readsFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4899. transient="false" volatile="false"
  4900. static="false" final="false" visibility="public"
  4901. deprecated="not deprecated">
  4902. </field>
  4903. <field name="readsFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4904. transient="false" volatile="false"
  4905. static="false" final="false" visibility="public"
  4906. deprecated="not deprecated">
  4907. </field>
  4908. <field name="writesFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4909. transient="false" volatile="false"
  4910. static="false" final="false" visibility="public"
  4911. deprecated="not deprecated">
  4912. </field>
  4913. <field name="writesFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4914. transient="false" volatile="false"
  4915. static="false" final="false" visibility="public"
  4916. deprecated="not deprecated">
  4917. </field>
  4918. <field name="readBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4919. transient="false" volatile="false"
  4920. static="false" final="false" visibility="public"
  4921. deprecated="not deprecated">
  4922. </field>
  4923. <field name="writeBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4924. transient="false" volatile="false"
  4925. static="false" final="false" visibility="public"
  4926. deprecated="not deprecated">
  4927. </field>
  4928. <field name="readMetadataOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4929. transient="false" volatile="false"
  4930. static="false" final="false" visibility="public"
  4931. deprecated="not deprecated">
  4932. </field>
  4933. <field name="copyBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4934. transient="false" volatile="false"
  4935. static="false" final="false" visibility="public"
  4936. deprecated="not deprecated">
  4937. </field>
  4938. <field name="replaceBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4939. transient="false" volatile="false"
  4940. static="false" final="false" visibility="public"
  4941. deprecated="not deprecated">
  4942. </field>
  4943. <field name="heartbeats" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4944. transient="false" volatile="false"
  4945. static="false" final="false" visibility="public"
  4946. deprecated="not deprecated">
  4947. </field>
  4948. <field name="blockReports" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4949. transient="false" volatile="false"
  4950. static="false" final="false" visibility="public"
  4951. deprecated="not deprecated">
  4952. </field>
  4953. <doc>
  4954. <![CDATA[This class is for maintaining the various DataNode statistics
  4955. and publishing them through the metrics interfaces.
  4956. This also registers the JMX MBean for RPC.
  4957. <p>
  4958. This class has a number of metrics variables that are publicly accessible;
  4959. these variables (objects) have methods to update their values;
  4960. for example:
  4961. <p> {@link #blocksRead}.inc()]]>
  4962. </doc>
  4963. </class>
  4964. <!-- end class org.apache.hadoop.dfs.datanode.metrics.DataNodeMetrics -->
  4965. <!-- start class org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics -->
  4966. <class name="DataNodeStatistics" extends="java.lang.Object"
  4967. abstract="false"
  4968. static="false" final="false" visibility="public"
  4969. deprecated="not deprecated">
  4970. <implements name="org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean"/>
  4971. <method name="shutdown"
  4972. abstract="false" native="false" synchronized="false"
  4973. static="false" final="false" visibility="public"
  4974. deprecated="not deprecated">
  4975. <doc>
  4976. <![CDATA[Shuts down the statistics
  4977. - unregisters the mbean]]>
  4978. </doc>
  4979. </method>
  4980. <method name="resetAllMinMax"
  4981. abstract="false" native="false" synchronized="false"
  4982. static="false" final="false" visibility="public"
  4983. deprecated="not deprecated">
  4984. <doc>
  4985. <![CDATA[@inheritDoc]]>
  4986. </doc>
  4987. </method>
  4988. <method name="getBlocksRead" return="int"
  4989. abstract="false" native="false" synchronized="false"
  4990. static="false" final="false" visibility="public"
  4991. deprecated="not deprecated">
  4992. <doc>
  4993. <![CDATA[@inheritDoc]]>
  4994. </doc>
  4995. </method>
  4996. <method name="getBlocksRemoved" return="int"
  4997. abstract="false" native="false" synchronized="false"
  4998. static="false" final="false" visibility="public"
  4999. deprecated="not deprecated">
  5000. <doc>
  5001. <![CDATA[@inheritDoc]]>
  5002. </doc>
  5003. </method>
  5004. <method name="getBlocksReplicated" return="int"
  5005. abstract="false" native="false" synchronized="false"
  5006. static="false" final="false" visibility="public"
  5007. deprecated="not deprecated">
  5008. <doc>
  5009. <![CDATA[@inheritDoc]]>
  5010. </doc>
  5011. </method>
  5012. <method name="getBlocksWritten" return="int"
  5013. abstract="false" native="false" synchronized="false"
  5014. static="false" final="false" visibility="public"
  5015. deprecated="not deprecated">
  5016. <doc>
  5017. <![CDATA[@inheritDoc]]>
  5018. </doc>
  5019. </method>
  5020. <method name="getBytesRead" return="int"
  5021. abstract="false" native="false" synchronized="false"
  5022. static="false" final="false" visibility="public"
  5023. deprecated="not deprecated">
  5024. <doc>
  5025. <![CDATA[@inheritDoc]]>
  5026. </doc>
  5027. </method>
  5028. <method name="getBlockVerificationFailures" return="int"
  5029. abstract="false" native="false" synchronized="false"
  5030. static="false" final="false" visibility="public"
  5031. deprecated="not deprecated">
  5032. <doc>
  5033. <![CDATA[@inheritDoc]]>
  5034. </doc>
  5035. </method>
  5036. <method name="getBlocksVerified" return="int"
  5037. abstract="false" native="false" synchronized="false"
  5038. static="false" final="false" visibility="public"
  5039. deprecated="not deprecated">
  5040. <doc>
  5041. <![CDATA[@inheritDoc]]>
  5042. </doc>
  5043. </method>
  5044. <method name="getReadsFromLocalClient" return="int"
  5045. abstract="false" native="false" synchronized="false"
  5046. static="false" final="false" visibility="public"
  5047. deprecated="not deprecated">
  5048. <doc>
  5049. <![CDATA[@inheritDoc]]>
  5050. </doc>
  5051. </method>
  5052. <method name="getReadsFromRemoteClient" return="int"
  5053. abstract="false" native="false" synchronized="false"
  5054. static="false" final="false" visibility="public"
  5055. deprecated="not deprecated">
  5056. <doc>
  5057. <![CDATA[@inheritDoc]]>
  5058. </doc>
  5059. </method>
  5060. <method name="getWritesFromLocalClient" return="int"
  5061. abstract="false" native="false" synchronized="false"
  5062. static="false" final="false" visibility="public"
  5063. deprecated="not deprecated">
  5064. <doc>
  5065. <![CDATA[@inheritDoc]]>
  5066. </doc>
  5067. </method>
  5068. <method name="getWritesFromRemoteClient" return="int"
  5069. abstract="false" native="false" synchronized="false"
  5070. static="false" final="false" visibility="public"
  5071. deprecated="not deprecated">
  5072. <doc>
  5073. <![CDATA[@inheritDoc]]>
  5074. </doc>
  5075. </method>
  5076. <method name="getReadBlockOpAverageTime" return="long"
  5077. abstract="false" native="false" synchronized="false"
  5078. static="false" final="false" visibility="public"
  5079. deprecated="not deprecated">
  5080. <doc>
  5081. <![CDATA[@inheritDoc]]>
  5082. </doc>
  5083. </method>
  5084. <method name="getReadBlockOpMaxTime" return="long"
  5085. abstract="false" native="false" synchronized="false"
  5086. static="false" final="false" visibility="public"
  5087. deprecated="not deprecated">
  5088. <doc>
  5089. <![CDATA[@inheritDoc]]>
  5090. </doc>
  5091. </method>
  5092. <method name="getReadBlockOpMinTime" return="long"
  5093. abstract="false" native="false" synchronized="false"
  5094. static="false" final="false" visibility="public"
  5095. deprecated="not deprecated">
  5096. <doc>
  5097. <![CDATA[@inheritDoc]]>
  5098. </doc>
  5099. </method>
  5100. <method name="getReadBlockOpNum" return="int"
  5101. abstract="false" native="false" synchronized="false"
  5102. static="false" final="false" visibility="public"
  5103. deprecated="not deprecated">
  5104. <doc>
  5105. <![CDATA[@inheritDoc]]>
  5106. </doc>
  5107. </method>
  5108. <method name="getReadMetadataOpAverageTime" return="long"
  5109. abstract="false" native="false" synchronized="false"
  5110. static="false" final="false" visibility="public"
  5111. deprecated="not deprecated">
  5112. <doc>
  5113. <![CDATA[@inheritDoc]]>
  5114. </doc>
  5115. </method>
  5116. <method name="getReadMetadataOpMaxTime" return="long"
  5117. abstract="false" native="false" synchronized="false"
  5118. static="false" final="false" visibility="public"
  5119. deprecated="not deprecated">
  5120. <doc>
  5121. <![CDATA[@inheritDoc]]>
  5122. </doc>
  5123. </method>
  5124. <method name="getReadMetadataOpMinTime" return="long"
  5125. abstract="false" native="false" synchronized="false"
  5126. static="false" final="false" visibility="public"
  5127. deprecated="not deprecated">
  5128. <doc>
  5129. <![CDATA[@inheritDoc]]>
  5130. </doc>
  5131. </method>
  5132. <method name="getReadMetadataOpNum" return="int"
  5133. abstract="false" native="false" synchronized="false"
  5134. static="false" final="false" visibility="public"
  5135. deprecated="not deprecated">
  5136. <doc>
  5137. <![CDATA[@inheritDoc]]>
  5138. </doc>
  5139. </method>
  5140. <method name="getReplaceBlockOpAverageTime" return="long"
  5141. abstract="false" native="false" synchronized="false"
  5142. static="false" final="false" visibility="public"
  5143. deprecated="not deprecated">
  5144. <doc>
  5145. <![CDATA[@inheritDoc]]>
  5146. </doc>
  5147. </method>
  5148. <method name="getReplaceBlockOpMaxTime" return="long"
  5149. abstract="false" native="false" synchronized="false"
  5150. static="false" final="false" visibility="public"
  5151. deprecated="not deprecated">
  5152. <doc>
  5153. <![CDATA[@inheritDoc]]>
  5154. </doc>
  5155. </method>
  5156. <method name="getReplaceBlockOpMinTime" return="long"
  5157. abstract="false" native="false" synchronized="false"
  5158. static="false" final="false" visibility="public"
  5159. deprecated="not deprecated">
  5160. <doc>
  5161. <![CDATA[@inheritDoc]]>
  5162. </doc>
  5163. </method>
  5164. <method name="getReplaceBlockOpNum" return="int"
  5165. abstract="false" native="false" synchronized="false"
  5166. static="false" final="false" visibility="public"
  5167. deprecated="not deprecated">
  5168. <doc>
  5169. <![CDATA[@inheritDoc]]>
  5170. </doc>
  5171. </method>
  5172. <method name="getWriteBlockOpAverageTime" return="long"
  5173. abstract="false" native="false" synchronized="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. <doc>
  5177. <![CDATA[@inheritDoc]]>
  5178. </doc>
  5179. </method>
  5180. <method name="getWriteBlockOpMaxTime" return="long"
  5181. abstract="false" native="false" synchronized="false"
  5182. static="false" final="false" visibility="public"
  5183. deprecated="not deprecated">
  5184. <doc>
  5185. <![CDATA[@inheritDoc]]>
  5186. </doc>
  5187. </method>
  5188. <method name="getWriteBlockOpMinTime" return="long"
  5189. abstract="false" native="false" synchronized="false"
  5190. static="false" final="false" visibility="public"
  5191. deprecated="not deprecated">
  5192. <doc>
  5193. <![CDATA[@inheritDoc]]>
  5194. </doc>
  5195. </method>
  5196. <method name="getWriteBlockOpNum" return="int"
  5197. abstract="false" native="false" synchronized="false"
  5198. static="false" final="false" visibility="public"
  5199. deprecated="not deprecated">
  5200. <doc>
  5201. <![CDATA[@inheritDoc]]>
  5202. </doc>
  5203. </method>
  5204. <method name="getCopyBlockOpAverageTime" return="long"
  5205. abstract="false" native="false" synchronized="false"
  5206. static="false" final="false" visibility="public"
  5207. deprecated="not deprecated">
  5208. <doc>
  5209. <![CDATA[@inheritDoc]]>
  5210. </doc>
  5211. </method>
  5212. <method name="getCopyBlockOpMaxTime" return="long"
  5213. abstract="false" native="false" synchronized="false"
  5214. static="false" final="false" visibility="public"
  5215. deprecated="not deprecated">
  5216. <doc>
  5217. <![CDATA[@inheritDoc]]>
  5218. </doc>
  5219. </method>
  5220. <method name="getCopyBlockOpMinTime" return="long"
  5221. abstract="false" native="false" synchronized="false"
  5222. static="false" final="false" visibility="public"
  5223. deprecated="not deprecated">
  5224. <doc>
  5225. <![CDATA[@inheritDoc]]>
  5226. </doc>
  5227. </method>
  5228. <method name="getCopyBlockOpNum" return="int"
  5229. abstract="false" native="false" synchronized="false"
  5230. static="false" final="false" visibility="public"
  5231. deprecated="not deprecated">
  5232. <doc>
  5233. <![CDATA[@inheritDoc]]>
  5234. </doc>
  5235. </method>
  5236. <method name="getBlockReportsAverageTime" return="long"
  5237. abstract="false" native="false" synchronized="false"
  5238. static="false" final="false" visibility="public"
  5239. deprecated="not deprecated">
  5240. <doc>
  5241. <![CDATA[@inheritDoc]]>
  5242. </doc>
  5243. </method>
  5244. <method name="getBlockReportsMaxTime" return="long"
  5245. abstract="false" native="false" synchronized="false"
  5246. static="false" final="false" visibility="public"
  5247. deprecated="not deprecated">
  5248. <doc>
  5249. <![CDATA[@inheritDoc]]>
  5250. </doc>
  5251. </method>
  5252. <method name="getBlockReportsMinTime" return="long"
  5253. abstract="false" native="false" synchronized="false"
  5254. static="false" final="false" visibility="public"
  5255. deprecated="not deprecated">
  5256. <doc>
  5257. <![CDATA[@inheritDoc]]>
  5258. </doc>
  5259. </method>
  5260. <method name="getBlockReportsNum" return="int"
  5261. abstract="false" native="false" synchronized="false"
  5262. static="false" final="false" visibility="public"
  5263. deprecated="not deprecated">
  5264. <doc>
  5265. <![CDATA[@inheritDoc]]>
  5266. </doc>
  5267. </method>
  5268. <method name="getHeartbeatsAverageTime" return="long"
  5269. abstract="false" native="false" synchronized="false"
  5270. static="false" final="false" visibility="public"
  5271. deprecated="not deprecated">
  5272. <doc>
  5273. <![CDATA[@inheritDoc]]>
  5274. </doc>
  5275. </method>
  5276. <method name="getHeartbeatsMaxTime" return="long"
  5277. abstract="false" native="false" synchronized="false"
  5278. static="false" final="false" visibility="public"
  5279. deprecated="not deprecated">
  5280. <doc>
  5281. <![CDATA[@inheritDoc]]>
  5282. </doc>
  5283. </method>
  5284. <method name="getHeartbeatsMinTime" return="long"
  5285. abstract="false" native="false" synchronized="false"
  5286. static="false" final="false" visibility="public"
  5287. deprecated="not deprecated">
  5288. <doc>
  5289. <![CDATA[@inheritDoc]]>
  5290. </doc>
  5291. </method>
  5292. <method name="getHeartbeatsNum" return="int"
  5293. abstract="false" native="false" synchronized="false"
  5294. static="false" final="false" visibility="public"
  5295. deprecated="not deprecated">
  5296. <doc>
  5297. <![CDATA[@inheritDoc]]>
  5298. </doc>
  5299. </method>
  5300. </class>
  5301. <!-- end class org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics -->
  5302. <!-- start interface org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean -->
  5303. <interface name="DataNodeStatisticsMBean" abstract="true"
  5304. static="false" final="false" visibility="public"
  5305. deprecated="not deprecated">
  5306. <method name="getBytesRead" return="int"
  5307. abstract="false" native="false" synchronized="false"
  5308. static="false" final="false" visibility="public"
  5309. deprecated="not deprecated">
  5310. <doc>
  5311. <![CDATA[Number of bytes read in the last interval
  5312. @return number of bytes read]]>
  5313. </doc>
  5314. </method>
  5315. <method name="getBlocksWritten" return="int"
  5316. abstract="false" native="false" synchronized="false"
  5317. static="false" final="false" visibility="public"
  5318. deprecated="not deprecated">
  5319. <doc>
  5320. <![CDATA[Number of blocks written in the last interval
  5321. @return number of blocks written]]>
  5322. </doc>
  5323. </method>
  5324. <method name="getBlocksRead" return="int"
  5325. abstract="false" native="false" synchronized="false"
  5326. static="false" final="false" visibility="public"
  5327. deprecated="not deprecated">
  5328. <doc>
  5329. <![CDATA[Number of blocks read in the last interval
  5330. @return number of blocks read]]>
  5331. </doc>
  5332. </method>
  5333. <method name="getBlocksReplicated" return="int"
  5334. abstract="false" native="false" synchronized="false"
  5335. static="false" final="false" visibility="public"
  5336. deprecated="not deprecated">
  5337. <doc>
  5338. <![CDATA[Number of blocks replicated in the last interval
  5339. @return number of blocks replicated]]>
  5340. </doc>
  5341. </method>
  5342. <method name="getBlocksRemoved" return="int"
  5343. abstract="false" native="false" synchronized="false"
  5344. static="false" final="false" visibility="public"
  5345. deprecated="not deprecated">
  5346. <doc>
  5347. <![CDATA[Number of blocks removed in the last interval
  5348. @return number of blocks removed]]>
  5349. </doc>
  5350. </method>
  5351. <method name="getBlocksVerified" return="int"
  5352. abstract="false" native="false" synchronized="false"
  5353. static="false" final="false" visibility="public"
  5354. deprecated="not deprecated">
  5355. <doc>
  5356. <![CDATA[Number of blocks verified in the last interval
  5357. @return number of blocks verified]]>
  5358. </doc>
  5359. </method>
  5360. <method name="getBlockVerificationFailures" return="int"
  5361. abstract="false" native="false" synchronized="false"
  5362. static="false" final="false" visibility="public"
  5363. deprecated="not deprecated">
  5364. <doc>
  5365. <![CDATA[Number of block verification failures in the last interval
  5366. @return number of block verification failures]]>
  5367. </doc>
  5368. </method>
  5369. <method name="getReadsFromLocalClient" return="int"
  5370. abstract="false" native="false" synchronized="false"
  5371. static="false" final="false" visibility="public"
  5372. deprecated="not deprecated">
  5373. <doc>
  5374. <![CDATA[Number of reads from local clients in the last interval
  5375. @return number of reads from local clients]]>
  5376. </doc>
  5377. </method>
  5378. <method name="getReadsFromRemoteClient" return="int"
  5379. abstract="false" native="false" synchronized="false"
  5380. static="false" final="false" visibility="public"
  5381. deprecated="not deprecated">
  5382. <doc>
  5383. <![CDATA[Number of reads from remote clients in the last interval
  5384. @return number of reads from remote clients]]>
  5385. </doc>
  5386. </method>
  5387. <method name="getWritesFromLocalClient" return="int"
  5388. abstract="false" native="false" synchronized="false"
  5389. static="false" final="false" visibility="public"
  5390. deprecated="not deprecated">
  5391. <doc>
  5392. <![CDATA[Number of writes from local clients in the last interval
  5393. @return number of writes from local clients]]>
  5394. </doc>
  5395. </method>
  5396. <method name="getWritesFromRemoteClient" return="int"
  5397. abstract="false" native="false" synchronized="false"
  5398. static="false" final="false" visibility="public"
  5399. deprecated="not deprecated">
  5400. <doc>
  5401. <![CDATA[Number of writes from remote clients in the last interval
  5402. @return number of writes from remote clients]]>
  5403. </doc>
  5404. </method>
  5405. <method name="getReadBlockOpNum" return="int"
  5406. abstract="false" native="false" synchronized="false"
  5407. static="false" final="false" visibility="public"
  5408. deprecated="not deprecated">
  5409. <doc>
  5410. <![CDATA[Number of ReadBlock Operation in last interval
  5411. @return number of operations]]>
  5412. </doc>
  5413. </method>
  5414. <method name="getReadBlockOpAverageTime" return="long"
  5415. abstract="false" native="false" synchronized="false"
  5416. static="false" final="false" visibility="public"
  5417. deprecated="not deprecated">
  5418. <doc>
  5419. <![CDATA[Average time for ReadBlock Operation in last interval
  5420. @return time in msec]]>
  5421. </doc>
  5422. </method>
  5423. <method name="getReadBlockOpMinTime" return="long"
  5424. abstract="false" native="false" synchronized="false"
  5425. static="false" final="false" visibility="public"
  5426. deprecated="not deprecated">
  5427. <doc>
  5428. <![CDATA[The Minimum ReadBlock Operation Time since reset was called
  5429. @return time in msec]]>
  5430. </doc>
  5431. </method>
  5432. <method name="getReadBlockOpMaxTime" return="long"
  5433. abstract="false" native="false" synchronized="false"
  5434. static="false" final="false" visibility="public"
  5435. deprecated="not deprecated">
  5436. <doc>
  5437. <![CDATA[The Maximum ReadBlock Operation Time since reset was called
  5438. @return time in msec]]>
  5439. </doc>
  5440. </method>
  5441. <method name="getWriteBlockOpNum" return="int"
  5442. abstract="false" native="false" synchronized="false"
  5443. static="false" final="false" visibility="public"
  5444. deprecated="not deprecated">
  5445. <doc>
  5446. <![CDATA[Number of WriteBlock Operation in last interval
  5447. @return number of operations]]>
  5448. </doc>
  5449. </method>
  5450. <method name="getWriteBlockOpAverageTime" return="long"
  5451. abstract="false" native="false" synchronized="false"
  5452. static="false" final="false" visibility="public"
  5453. deprecated="not deprecated">
  5454. <doc>
  5455. <![CDATA[Average time for WriteBlock Operation in last interval
  5456. @return time in msec]]>
  5457. </doc>
  5458. </method>
  5459. <method name="getWriteBlockOpMinTime" return="long"
  5460. abstract="false" native="false" synchronized="false"
  5461. static="false" final="false" visibility="public"
  5462. deprecated="not deprecated">
  5463. <doc>
  5464. <![CDATA[The Minimum WriteBlock Operation Time since reset was called
  5465. @return time in msec]]>
  5466. </doc>
  5467. </method>
  5468. <method name="getWriteBlockOpMaxTime" return="long"
  5469. abstract="false" native="false" synchronized="false"
  5470. static="false" final="false" visibility="public"
  5471. deprecated="not deprecated">
  5472. <doc>
  5473. <![CDATA[The Maximum WriteBlock Operation Time since reset was called
  5474. @return time in msec]]>
  5475. </doc>
  5476. </method>
  5477. <method name="getReadMetadataOpNum" return="int"
  5478. abstract="false" native="false" synchronized="false"
  5479. static="false" final="false" visibility="public"
  5480. deprecated="not deprecated">
  5481. <doc>
  5482. <![CDATA[Number of ReadMetadata Operation in last interval
  5483. @return number of operations]]>
  5484. </doc>
  5485. </method>
  5486. <method name="getReadMetadataOpAverageTime" return="long"
  5487. abstract="false" native="false" synchronized="false"
  5488. static="false" final="false" visibility="public"
  5489. deprecated="not deprecated">
  5490. <doc>
  5491. <![CDATA[Average time for ReadMetadata Operation in last interval
  5492. @return time in msec]]>
  5493. </doc>
  5494. </method>
  5495. <method name="getReadMetadataOpMinTime" return="long"
  5496. abstract="false" native="false" synchronized="false"
  5497. static="false" final="false" visibility="public"
  5498. deprecated="not deprecated">
  5499. <doc>
  5500. <![CDATA[The Minimum ReadMetadata Operation Time since reset was called
  5501. @return time in msec]]>
  5502. </doc>
  5503. </method>
  5504. <method name="getReadMetadataOpMaxTime" return="long"
  5505. abstract="false" native="false" synchronized="false"
  5506. static="false" final="false" visibility="public"
  5507. deprecated="not deprecated">
  5508. <doc>
  5509. <![CDATA[The Maximum ReadMetadata Operation Time since reset was called
  5510. @return time in msec]]>
  5511. </doc>
  5512. </method>
  5513. <method name="getCopyBlockOpNum" return="int"
  5514. abstract="false" native="false" synchronized="false"
  5515. static="false" final="false" visibility="public"
  5516. deprecated="not deprecated">
  5517. <doc>
  5518. <![CDATA[Number of CopyBlock Operation in last interval
  5519. @return number of operations]]>
  5520. </doc>
  5521. </method>
  5522. <method name="getCopyBlockOpAverageTime" return="long"
  5523. abstract="false" native="false" synchronized="false"
  5524. static="false" final="false" visibility="public"
  5525. deprecated="not deprecated">
  5526. <doc>
  5527. <![CDATA[Average time for CopyBlock Operation in last interval
  5528. @return time in msec]]>
  5529. </doc>
  5530. </method>
  5531. <method name="getCopyBlockOpMinTime" return="long"
  5532. abstract="false" native="false" synchronized="false"
  5533. static="false" final="false" visibility="public"
  5534. deprecated="not deprecated">
  5535. <doc>
  5536. <![CDATA[The Minimum CopyBlock Operation Time since reset was called
  5537. @return time in msec]]>
  5538. </doc>
  5539. </method>
  5540. <method name="getCopyBlockOpMaxTime" return="long"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. <doc>
  5545. <![CDATA[The Maximum CopyBlock Operation Time since reset was called
  5546. @return time in msec]]>
  5547. </doc>
  5548. </method>
  5549. <method name="getReplaceBlockOpNum" return="int"
  5550. abstract="false" native="false" synchronized="false"
  5551. static="false" final="false" visibility="public"
  5552. deprecated="not deprecated">
  5553. <doc>
  5554. <![CDATA[Number of ReplaceBlock Operation in last interval
  5555. @return number of operations]]>
  5556. </doc>
  5557. </method>
  5558. <method name="getReplaceBlockOpAverageTime" return="long"
  5559. abstract="false" native="false" synchronized="false"
  5560. static="false" final="false" visibility="public"
  5561. deprecated="not deprecated">
  5562. <doc>
  5563. <![CDATA[Average time for ReplaceBlock Operation in last interval
  5564. @return time in msec]]>
  5565. </doc>
  5566. </method>
  5567. <method name="getReplaceBlockOpMinTime" return="long"
  5568. abstract="false" native="false" synchronized="false"
  5569. static="false" final="false" visibility="public"
  5570. deprecated="not deprecated">
  5571. <doc>
  5572. <![CDATA[The Minimum ReplaceBlock Operation Time since reset was called
  5573. @return time in msec]]>
  5574. </doc>
  5575. </method>
  5576. <method name="getReplaceBlockOpMaxTime" return="long"
  5577. abstract="false" native="false" synchronized="false"
  5578. static="false" final="false" visibility="public"
  5579. deprecated="not deprecated">
  5580. <doc>
  5581. <![CDATA[The Maximum ReplaceBlock Operation Time since reset was called
  5582. @return time in msec]]>
  5583. </doc>
  5584. </method>
  5585. <method name="getBlockReportsNum" return="int"
  5586. abstract="false" native="false" synchronized="false"
  5587. static="false" final="false" visibility="public"
  5588. deprecated="not deprecated">
  5589. <doc>
  5590. <![CDATA[Number of Block Reports sent in last interval
  5591. @return number of operations]]>
  5592. </doc>
  5593. </method>
  5594. <method name="getBlockReportsAverageTime" return="long"
  5595. abstract="false" native="false" synchronized="false"
  5596. static="false" final="false" visibility="public"
  5597. deprecated="not deprecated">
  5598. <doc>
  5599. <![CDATA[Average time for Block Reports Operation in last interval
  5600. @return time in msec]]>
  5601. </doc>
  5602. </method>
  5603. <method name="getBlockReportsMinTime" return="long"
  5604. abstract="false" native="false" synchronized="false"
  5605. static="false" final="false" visibility="public"
  5606. deprecated="not deprecated">
  5607. <doc>
  5608. <![CDATA[The Minimum Block Reports Operation Time since reset was called
  5609. @return time in msec]]>
  5610. </doc>
  5611. </method>
  5612. <method name="getBlockReportsMaxTime" return="long"
  5613. abstract="false" native="false" synchronized="false"
  5614. static="false" final="false" visibility="public"
  5615. deprecated="not deprecated">
  5616. <doc>
  5617. <![CDATA[The Maximum Block Reports Operation Time since reset was called
  5618. @return time in msec]]>
  5619. </doc>
  5620. </method>
  5621. <method name="getHeartbeatsNum" return="int"
  5622. abstract="false" native="false" synchronized="false"
  5623. static="false" final="false" visibility="public"
  5624. deprecated="not deprecated">
  5625. <doc>
  5626. <![CDATA[Number of Heartbeat Operation in last interval
  5627. @return number of operations]]>
  5628. </doc>
  5629. </method>
  5630. <method name="getHeartbeatsAverageTime" return="long"
  5631. abstract="false" native="false" synchronized="false"
  5632. static="false" final="false" visibility="public"
  5633. deprecated="not deprecated">
  5634. <doc>
  5635. <![CDATA[Average time for Heartbeat Operation in last interval
  5636. @return time in msec]]>
  5637. </doc>
  5638. </method>
  5639. <method name="getHeartbeatsMinTime" return="long"
  5640. abstract="false" native="false" synchronized="false"
  5641. static="false" final="false" visibility="public"
  5642. deprecated="not deprecated">
  5643. <doc>
  5644. <![CDATA[The Minimum Heartbeat Operation Time since reset was called
  5645. @return time in msec]]>
  5646. </doc>
  5647. </method>
  5648. <method name="getHeartbeatsMaxTime" return="long"
  5649. abstract="false" native="false" synchronized="false"
  5650. static="false" final="false" visibility="public"
  5651. deprecated="not deprecated">
  5652. <doc>
  5653. <![CDATA[The Maximum Heartbeat Operation Time since reset was called
  5654. @return time in msec]]>
  5655. </doc>
  5656. </method>
  5657. <method name="resetAllMinMax"
  5658. abstract="false" native="false" synchronized="false"
  5659. static="false" final="false" visibility="public"
  5660. deprecated="not deprecated">
  5661. <doc>
  5662. <![CDATA[Reset all min max times]]>
  5663. </doc>
  5664. </method>
  5665. <doc>
  5666. <![CDATA[This is the JMX interface for the runtime statistics for the data node.
  5667. Many of the statistics are sampled and averaged on an interval
  5668. which can be specified in the config file.
  5669. <p>
  5670. For the statistics that are sampled and averaged, one must specify
  5671. a metrics context that does periodic update calls. Most do.
  5672. The default Null metrics context however does NOT. So if you aren't
  5673. using any other metrics context then you can turn on the viewing and averaging
  5674. of sampled metrics by specifying the following two lines
  5675. in the hadoop-meterics.properties file:
  5676. <pre>
  5677. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  5678. dfs.period=10
  5679. </pre>
  5680. <p>
  5681. Note that the metrics are collected regardless of the context used.
  5682. The context with the update thread is used to average the data periodically.
  5683. <p>
  5684. Name Node Status info is reported in another MBean
  5685. @see org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean]]>
  5686. </doc>
  5687. </interface>
  5688. <!-- end interface org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean -->
  5689. <!-- start interface org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean -->
  5690. <interface name="FSDatasetMBean" abstract="true"
  5691. static="false" final="false" visibility="public"
  5692. deprecated="not deprecated">
  5693. <method name="getDfsUsed" return="long"
  5694. abstract="false" native="false" synchronized="false"
  5695. static="false" final="false" visibility="public"
  5696. deprecated="not deprecated">
  5697. <exception name="IOException" type="java.io.IOException"/>
  5698. <doc>
  5699. <![CDATA[Returns the total space (in bytes) used by dfs datanode
  5700. @return the total space used by dfs datanode
  5701. @throws IOException]]>
  5702. </doc>
  5703. </method>
  5704. <method name="getCapacity" return="long"
  5705. abstract="false" native="false" synchronized="false"
  5706. static="false" final="false" visibility="public"
  5707. deprecated="not deprecated">
  5708. <exception name="IOException" type="java.io.IOException"/>
  5709. <doc>
  5710. <![CDATA[Returns total capacity (in bytes) of storage (used and unused)
  5711. @return total capacity of storage (used and unused)
  5712. @throws IOException]]>
  5713. </doc>
  5714. </method>
  5715. <method name="getRemaining" return="long"
  5716. abstract="false" native="false" synchronized="false"
  5717. static="false" final="false" visibility="public"
  5718. deprecated="not deprecated">
  5719. <exception name="IOException" type="java.io.IOException"/>
  5720. <doc>
  5721. <![CDATA[Returns the amount of free storage space (in bytes)
  5722. @return The amount of free storage space
  5723. @throws IOException]]>
  5724. </doc>
  5725. </method>
  5726. <method name="getStorageInfo" return="java.lang.String"
  5727. abstract="false" native="false" synchronized="false"
  5728. static="false" final="false" visibility="public"
  5729. deprecated="not deprecated">
  5730. <doc>
  5731. <![CDATA[Returns the storage id of the underlying storage]]>
  5732. </doc>
  5733. </method>
  5734. <doc>
  5735. <![CDATA[This Interface defines the methods to get the status of a the FSDataset of
  5736. a data node.
  5737. It is also used for publishing via JMX (hence we follow the JMX naming
  5738. convention.)
  5739. <p>
  5740. Data Node runtime statistic info is report in another MBean
  5741. @see org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean]]>
  5742. </doc>
  5743. </interface>
  5744. <!-- end interface org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean -->
  5745. </package>
  5746. <package name="org.apache.hadoop.dfs.namenode.metrics">
  5747. <!-- start interface org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean -->
  5748. <interface name="FSNamesystemMBean" abstract="true"
  5749. static="false" final="false" visibility="public"
  5750. deprecated="not deprecated">
  5751. <method name="getFSState" return="java.lang.String"
  5752. abstract="false" native="false" synchronized="false"
  5753. static="false" final="false" visibility="public"
  5754. deprecated="not deprecated">
  5755. <doc>
  5756. <![CDATA[The state of the file system: Safemode or Operational
  5757. @return the state]]>
  5758. </doc>
  5759. </method>
  5760. <method name="getBlocksTotal" return="long"
  5761. abstract="false" native="false" synchronized="false"
  5762. static="false" final="false" visibility="public"
  5763. deprecated="not deprecated">
  5764. <doc>
  5765. <![CDATA[Number of allocated blocks in the system
  5766. @return - number of allocated blocks]]>
  5767. </doc>
  5768. </method>
  5769. <method name="getCapacityTotal" return="long"
  5770. abstract="false" native="false" synchronized="false"
  5771. static="false" final="false" visibility="public"
  5772. deprecated="not deprecated">
  5773. <doc>
  5774. <![CDATA[Total storage capacity
  5775. @return - total capacity in bytes]]>
  5776. </doc>
  5777. </method>
  5778. <method name="getCapacityRemaining" return="long"
  5779. abstract="false" native="false" synchronized="false"
  5780. static="false" final="false" visibility="public"
  5781. deprecated="not deprecated">
  5782. <doc>
  5783. <![CDATA[Free (unused) storage capacity
  5784. @return - free capacity in bytes]]>
  5785. </doc>
  5786. </method>
  5787. <method name="getCapacityUsed" return="long"
  5788. abstract="false" native="false" synchronized="false"
  5789. static="false" final="false" visibility="public"
  5790. deprecated="not deprecated">
  5791. <doc>
  5792. <![CDATA[Used storage capacity
  5793. @return - used capacity in bytes]]>
  5794. </doc>
  5795. </method>
  5796. <method name="getFilesTotal" return="long"
  5797. abstract="false" native="false" synchronized="false"
  5798. static="false" final="false" visibility="public"
  5799. deprecated="not deprecated">
  5800. <doc>
  5801. <![CDATA[Total number of files and directories
  5802. @return - num of files and directories]]>
  5803. </doc>
  5804. </method>
  5805. <method name="numLiveDataNodes" return="int"
  5806. abstract="false" native="false" synchronized="false"
  5807. static="false" final="false" visibility="public"
  5808. deprecated="not deprecated">
  5809. <doc>
  5810. <![CDATA[Number of Live data nodes
  5811. @return number of live data nodes]]>
  5812. </doc>
  5813. </method>
  5814. <method name="numDeadDataNodes" return="int"
  5815. abstract="false" native="false" synchronized="false"
  5816. static="false" final="false" visibility="public"
  5817. deprecated="not deprecated">
  5818. <doc>
  5819. <![CDATA[Number of dead data nodes
  5820. @return number of dead data nodes]]>
  5821. </doc>
  5822. </method>
  5823. <doc>
  5824. <![CDATA[This Interface defines the methods to get the status of a the FSNamesystem of
  5825. a name node.
  5826. It is also used for publishing via JMX (hence we follow the JMX naming
  5827. convention.)
  5828. <p>
  5829. Name Node runtime statistic info is report in another MBean
  5830. @see org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean]]>
  5831. </doc>
  5832. </interface>
  5833. <!-- end interface org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean -->
  5834. <!-- start class org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics -->
  5835. <class name="NameNodeStatistics" extends="java.lang.Object"
  5836. abstract="false"
  5837. static="false" final="false" visibility="public"
  5838. deprecated="not deprecated">
  5839. <implements name="org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean"/>
  5840. <constructor name="NameNodeStatistics" type="org.apache.hadoop.dfs.NameNodeMetrics"
  5841. static="false" final="false" visibility="public"
  5842. deprecated="not deprecated">
  5843. <doc>
  5844. <![CDATA[This constructs and registers the NameNodeStatisticsMBean
  5845. @param nameNodeMetrics - the metrics from which the mbean gets its info]]>
  5846. </doc>
  5847. </constructor>
  5848. <method name="shutdown"
  5849. abstract="false" native="false" synchronized="false"
  5850. static="false" final="false" visibility="public"
  5851. deprecated="not deprecated">
  5852. <doc>
  5853. <![CDATA[Shuts down the statistics
  5854. - unregisters the mbean]]>
  5855. </doc>
  5856. </method>
  5857. <method name="getBlockReportAverageTime" return="long"
  5858. abstract="false" native="false" synchronized="false"
  5859. static="false" final="false" visibility="public"
  5860. deprecated="not deprecated">
  5861. <doc>
  5862. <![CDATA[@inheritDoc]]>
  5863. </doc>
  5864. </method>
  5865. <method name="getBlockReportMaxTime" return="long"
  5866. abstract="false" native="false" synchronized="false"
  5867. static="false" final="false" visibility="public"
  5868. deprecated="not deprecated">
  5869. <doc>
  5870. <![CDATA[@inheritDoc]]>
  5871. </doc>
  5872. </method>
  5873. <method name="getBlockReportMinTime" return="long"
  5874. abstract="false" native="false" synchronized="false"
  5875. static="false" final="false" visibility="public"
  5876. deprecated="not deprecated">
  5877. <doc>
  5878. <![CDATA[@inheritDoc]]>
  5879. </doc>
  5880. </method>
  5881. <method name="getBlockReportNum" return="int"
  5882. abstract="false" native="false" synchronized="false"
  5883. static="false" final="false" visibility="public"
  5884. deprecated="not deprecated">
  5885. <doc>
  5886. <![CDATA[@inheritDoc]]>
  5887. </doc>
  5888. </method>
  5889. <method name="getJournalTransactionAverageTime" return="long"
  5890. abstract="false" native="false" synchronized="false"
  5891. static="false" final="false" visibility="public"
  5892. deprecated="not deprecated">
  5893. <doc>
  5894. <![CDATA[@inheritDoc]]>
  5895. </doc>
  5896. </method>
  5897. <method name="getJournalTransactionNum" return="int"
  5898. abstract="false" native="false" synchronized="false"
  5899. static="false" final="false" visibility="public"
  5900. deprecated="not deprecated">
  5901. <doc>
  5902. <![CDATA[@inheritDoc]]>
  5903. </doc>
  5904. </method>
  5905. <method name="getJournalTransactionMaxTime" return="long"
  5906. abstract="false" native="false" synchronized="false"
  5907. static="false" final="false" visibility="public"
  5908. deprecated="not deprecated">
  5909. <doc>
  5910. <![CDATA[@inheritDoc]]>
  5911. </doc>
  5912. </method>
  5913. <method name="getJournalTransactionMinTime" return="long"
  5914. abstract="false" native="false" synchronized="false"
  5915. static="false" final="false" visibility="public"
  5916. deprecated="not deprecated">
  5917. <doc>
  5918. <![CDATA[@inheritDoc]]>
  5919. </doc>
  5920. </method>
  5921. <method name="getJournalSyncAverageTime" return="long"
  5922. abstract="false" native="false" synchronized="false"
  5923. static="false" final="false" visibility="public"
  5924. deprecated="not deprecated">
  5925. <doc>
  5926. <![CDATA[@inheritDoc]]>
  5927. </doc>
  5928. </method>
  5929. <method name="getJournalSyncMaxTime" return="long"
  5930. abstract="false" native="false" synchronized="false"
  5931. static="false" final="false" visibility="public"
  5932. deprecated="not deprecated">
  5933. <doc>
  5934. <![CDATA[@inheritDoc]]>
  5935. </doc>
  5936. </method>
  5937. <method name="getJournalSyncMinTime" return="long"
  5938. abstract="false" native="false" synchronized="false"
  5939. static="false" final="false" visibility="public"
  5940. deprecated="not deprecated">
  5941. <doc>
  5942. <![CDATA[@inheritDoc]]>
  5943. </doc>
  5944. </method>
  5945. <method name="getJournalSyncNum" return="int"
  5946. abstract="false" native="false" synchronized="false"
  5947. static="false" final="false" visibility="public"
  5948. deprecated="not deprecated">
  5949. <doc>
  5950. <![CDATA[@inheritDoc]]>
  5951. </doc>
  5952. </method>
  5953. <method name="getSafemodeTime" return="int"
  5954. abstract="false" native="false" synchronized="false"
  5955. static="false" final="false" visibility="public"
  5956. deprecated="not deprecated">
  5957. <doc>
  5958. <![CDATA[@inheritDoc]]>
  5959. </doc>
  5960. </method>
  5961. <method name="getFSImageLoadTime" return="int"
  5962. abstract="false" native="false" synchronized="false"
  5963. static="false" final="false" visibility="public"
  5964. deprecated="not deprecated">
  5965. <doc>
  5966. <![CDATA[@inheritDoc]]>
  5967. </doc>
  5968. </method>
  5969. <method name="resetAllMinMax"
  5970. abstract="false" native="false" synchronized="false"
  5971. static="false" final="false" visibility="public"
  5972. deprecated="not deprecated">
  5973. <doc>
  5974. <![CDATA[@inheritDoc]]>
  5975. </doc>
  5976. </method>
  5977. <method name="getNumFilesCreated" return="int"
  5978. abstract="false" native="false" synchronized="false"
  5979. static="false" final="false" visibility="public"
  5980. deprecated="not deprecated">
  5981. <doc>
  5982. <![CDATA[@inheritDoc]]>
  5983. </doc>
  5984. </method>
  5985. <method name="getNumFilesListed" return="int"
  5986. abstract="false" native="false" synchronized="false"
  5987. static="false" final="false" visibility="public"
  5988. deprecated="not deprecated">
  5989. <doc>
  5990. <![CDATA[@inheritDoc]]>
  5991. </doc>
  5992. </method>
  5993. <method name="getNumGetBlockLocations" return="int"
  5994. abstract="false" native="false" synchronized="false"
  5995. static="false" final="false" visibility="public"
  5996. deprecated="not deprecated">
  5997. <doc>
  5998. <![CDATA[@inheritDoc]]>
  5999. </doc>
  6000. </method>
  6001. <method name="getNumFilesRenamed" return="int"
  6002. abstract="false" native="false" synchronized="false"
  6003. static="false" final="false" visibility="public"
  6004. deprecated="not deprecated">
  6005. <doc>
  6006. <![CDATA[@inheritDoc]]>
  6007. </doc>
  6008. </method>
  6009. <doc>
  6010. <![CDATA[This is the implementation of the Name Node JMX MBean]]>
  6011. </doc>
  6012. </class>
  6013. <!-- end class org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics -->
  6014. <!-- start interface org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean -->
  6015. <interface name="NameNodeStatisticsMBean" abstract="true"
  6016. static="false" final="false" visibility="public"
  6017. deprecated="not deprecated">
  6018. <method name="getSafemodeTime" return="int"
  6019. abstract="false" native="false" synchronized="false"
  6020. static="false" final="false" visibility="public"
  6021. deprecated="not deprecated">
  6022. <doc>
  6023. <![CDATA[The time spent in the Safemode at startup
  6024. @return time in msec]]>
  6025. </doc>
  6026. </method>
  6027. <method name="getFSImageLoadTime" return="int"
  6028. abstract="false" native="false" synchronized="false"
  6029. static="false" final="false" visibility="public"
  6030. deprecated="not deprecated">
  6031. <doc>
  6032. <![CDATA[Time spent loading the FS Image at startup
  6033. @return time in msec]]>
  6034. </doc>
  6035. </method>
  6036. <method name="getJournalTransactionNum" return="int"
  6037. abstract="false" native="false" synchronized="false"
  6038. static="false" final="false" visibility="public"
  6039. deprecated="not deprecated">
  6040. <doc>
  6041. <![CDATA[Number of Journal Transactions in the last interval
  6042. @return number of operations]]>
  6043. </doc>
  6044. </method>
  6045. <method name="getJournalTransactionAverageTime" return="long"
  6046. abstract="false" native="false" synchronized="false"
  6047. static="false" final="false" visibility="public"
  6048. deprecated="not deprecated">
  6049. <doc>
  6050. <![CDATA[Average time for Journal transactions in last interval
  6051. @return time in msec]]>
  6052. </doc>
  6053. </method>
  6054. <method name="getJournalTransactionMinTime" return="long"
  6055. abstract="false" native="false" synchronized="false"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. <doc>
  6059. <![CDATA[The Minimum Journal Transaction Time since reset was called
  6060. @return time in msec]]>
  6061. </doc>
  6062. </method>
  6063. <method name="getJournalTransactionMaxTime" return="long"
  6064. abstract="false" native="false" synchronized="false"
  6065. static="false" final="false" visibility="public"
  6066. deprecated="not deprecated">
  6067. <doc>
  6068. <![CDATA[The Maximum Journal Transaction Time since reset was called
  6069. @return time in msec]]>
  6070. </doc>
  6071. </method>
  6072. <method name="getBlockReportNum" return="int"
  6073. abstract="false" native="false" synchronized="false"
  6074. static="false" final="false" visibility="public"
  6075. deprecated="not deprecated">
  6076. <doc>
  6077. <![CDATA[Number of block Reports processed in the last interval
  6078. @return number of operations]]>
  6079. </doc>
  6080. </method>
  6081. <method name="getBlockReportAverageTime" return="long"
  6082. abstract="false" native="false" synchronized="false"
  6083. static="false" final="false" visibility="public"
  6084. deprecated="not deprecated">
  6085. <doc>
  6086. <![CDATA[Average time for Block Report Processing in last interval
  6087. @return time in msec]]>
  6088. </doc>
  6089. </method>
  6090. <method name="getBlockReportMinTime" return="long"
  6091. abstract="false" native="false" synchronized="false"
  6092. static="false" final="false" visibility="public"
  6093. deprecated="not deprecated">
  6094. <doc>
  6095. <![CDATA[The Minimum Block Report Processing Time since reset was called
  6096. @return time in msec]]>
  6097. </doc>
  6098. </method>
  6099. <method name="getBlockReportMaxTime" return="long"
  6100. abstract="false" native="false" synchronized="false"
  6101. static="false" final="false" visibility="public"
  6102. deprecated="not deprecated">
  6103. <doc>
  6104. <![CDATA[The Maximum Block Report Processing Time since reset was called
  6105. @return time in msec]]>
  6106. </doc>
  6107. </method>
  6108. <method name="getJournalSyncNum" return="int"
  6109. abstract="false" native="false" synchronized="false"
  6110. static="false" final="false" visibility="public"
  6111. deprecated="not deprecated">
  6112. <doc>
  6113. <![CDATA[Number of Journal Syncs in the last interval
  6114. @return number of operations]]>
  6115. </doc>
  6116. </method>
  6117. <method name="getJournalSyncAverageTime" return="long"
  6118. abstract="false" native="false" synchronized="false"
  6119. static="false" final="false" visibility="public"
  6120. deprecated="not deprecated">
  6121. <doc>
  6122. <![CDATA[Average time for Journal Sync in last interval
  6123. @return time in msec]]>
  6124. </doc>
  6125. </method>
  6126. <method name="getJournalSyncMinTime" return="long"
  6127. abstract="false" native="false" synchronized="false"
  6128. static="false" final="false" visibility="public"
  6129. deprecated="not deprecated">
  6130. <doc>
  6131. <![CDATA[The Minimum Journal Sync Time since reset was called
  6132. @return time in msec]]>
  6133. </doc>
  6134. </method>
  6135. <method name="getJournalSyncMaxTime" return="long"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="false" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. <doc>
  6140. <![CDATA[The Maximum Journal Sync Time since reset was called
  6141. @return time in msec]]>
  6142. </doc>
  6143. </method>
  6144. <method name="resetAllMinMax"
  6145. abstract="false" native="false" synchronized="false"
  6146. static="false" final="false" visibility="public"
  6147. deprecated="not deprecated">
  6148. <doc>
  6149. <![CDATA[Reset all min max times]]>
  6150. </doc>
  6151. </method>
  6152. <method name="getNumFilesCreated" return="int"
  6153. abstract="false" native="false" synchronized="false"
  6154. static="false" final="false" visibility="public"
  6155. deprecated="not deprecated">
  6156. <doc>
  6157. <![CDATA[Number of files created in the last interval
  6158. @return number of operations]]>
  6159. </doc>
  6160. </method>
  6161. <method name="getNumGetBlockLocations" return="int"
  6162. abstract="false" native="false" synchronized="false"
  6163. static="false" final="false" visibility="public"
  6164. deprecated="not deprecated">
  6165. <doc>
  6166. <![CDATA[Number of
  6167. {@link org.apache.hadoop.dfs.NameNode#getBlockLocations(String,long,long)}
  6168. @return number of operations]]>
  6169. </doc>
  6170. </method>
  6171. <method name="getNumFilesRenamed" return="int"
  6172. abstract="false" native="false" synchronized="false"
  6173. static="false" final="false" visibility="public"
  6174. deprecated="not deprecated">
  6175. <doc>
  6176. <![CDATA[Number of files renamed in the last interval
  6177. @return number of operations]]>
  6178. </doc>
  6179. </method>
  6180. <method name="getNumFilesListed" return="int"
  6181. abstract="false" native="false" synchronized="false"
  6182. static="false" final="false" visibility="public"
  6183. deprecated="not deprecated">
  6184. <doc>
  6185. <![CDATA[Number of files listed in the last interval
  6186. @return number of operations]]>
  6187. </doc>
  6188. </method>
  6189. <doc>
  6190. <![CDATA[This is the JMX management interface for getting runtime statistics of
  6191. the name node.
  6192. Many of the statistics are sampled and averaged on an interval
  6193. which can be specified in the config file.
  6194. <p>
  6195. For the statistics that are sampled and averaged, one must specify
  6196. a metrics context that does periodic update calls. Most do.
  6197. The default Null metrics context however does NOT. So if you aren't
  6198. using any other metrics context then you can turn on the viewing and averaging
  6199. of sampled metrics by specifying the following two lines
  6200. in the hadoop-meterics.properties file:
  6201. <pre>
  6202. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  6203. dfs.period=10
  6204. </pre>
  6205. <p>
  6206. Note that the metrics are collected regardless of the context used.
  6207. The context with the update thread is used to average the data periodically.
  6208. <p>
  6209. Name Node Status info is report in another MBean
  6210. @see org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean]]>
  6211. </doc>
  6212. </interface>
  6213. <!-- end interface org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean -->
  6214. </package>
  6215. <package name="org.apache.hadoop.filecache">
  6216. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  6217. <class name="DistributedCache" extends="java.lang.Object"
  6218. abstract="false"
  6219. static="false" final="false" visibility="public"
  6220. deprecated="not deprecated">
  6221. <constructor name="DistributedCache"
  6222. static="false" final="false" visibility="public"
  6223. deprecated="not deprecated">
  6224. </constructor>
  6225. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  6226. abstract="false" native="false" synchronized="false"
  6227. static="true" final="false" visibility="public"
  6228. deprecated="not deprecated">
  6229. <param name="cache" type="java.net.URI"/>
  6230. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6231. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  6232. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  6233. <param name="isArchive" type="boolean"/>
  6234. <param name="confFileStamp" type="long"/>
  6235. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  6236. <exception name="IOException" type="java.io.IOException"/>
  6237. <doc>
  6238. <![CDATA[Get the locally cached file or archive; it could either be
  6239. previously cached (and valid) or copy it from the {@link FileSystem} now.
  6240. @param cache the cache to be localized, this should be specified as
  6241. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  6242. or hostname:port is provided the file is assumed to be in the filesystem
  6243. being used in the Configuration
  6244. @param conf The Confguration file which contains the filesystem
  6245. @param baseDir The base cache Dir where you wnat to localize the files/archives
  6246. @param fileStatus The file status on the dfs.
  6247. @param isArchive if the cache is an archive or a file. In case it is an archive
  6248. with a .zip or .jar extension it will be unzipped/unjarred automatically
  6249. and the directory where the archive is unjarred is returned as the Path.
  6250. In case of a file, the path to the file is returned
  6251. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  6252. file to be cached hasn't changed since the job started
  6253. @param currentWorkDir this is the directory where you would want to create symlinks
  6254. for the locally cached files/archives
  6255. @return the path to directory where the archives are unjarred in case of archives,
  6256. the path to the file where the file is copied locally
  6257. @throws IOException]]>
  6258. </doc>
  6259. </method>
  6260. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  6261. abstract="false" native="false" synchronized="false"
  6262. static="true" final="false" visibility="public"
  6263. deprecated="not deprecated">
  6264. <param name="cache" type="java.net.URI"/>
  6265. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6266. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  6267. <param name="isArchive" type="boolean"/>
  6268. <param name="confFileStamp" type="long"/>
  6269. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  6270. <exception name="IOException" type="java.io.IOException"/>
  6271. <doc>
  6272. <![CDATA[Get the locally cached file or archive; it could either be
  6273. previously cached (and valid) or copy it from the {@link FileSystem} now.
  6274. @param cache the cache to be localized, this should be specified as
  6275. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  6276. or hostname:port is provided the file is assumed to be in the filesystem
  6277. being used in the Configuration
  6278. @param conf The Confguration file which contains the filesystem
  6279. @param baseDir The base cache Dir where you wnat to localize the files/archives
  6280. @param isArchive if the cache is an archive or a file. In case it is an archive
  6281. with a .zip or .jar extension it will be unzipped/unjarred automatically
  6282. and the directory where the archive is unjarred is returned as the Path.
  6283. In case of a file, the path to the file is returned
  6284. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  6285. file to be cached hasn't changed since the job started
  6286. @param currentWorkDir this is the directory where you would want to create symlinks
  6287. for the locally cached files/archives
  6288. @return the path to directory where the archives are unjarred in case of archives,
  6289. the path to the file where the file is copied locally
  6290. @throws IOException]]>
  6291. </doc>
  6292. </method>
  6293. <method name="releaseCache"
  6294. abstract="false" native="false" synchronized="false"
  6295. static="true" final="false" visibility="public"
  6296. deprecated="not deprecated">
  6297. <param name="cache" type="java.net.URI"/>
  6298. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6299. <exception name="IOException" type="java.io.IOException"/>
  6300. <doc>
  6301. <![CDATA[This is the opposite of getlocalcache. When you are done with
  6302. using the cache, you need to release the cache
  6303. @param cache The cache URI to be released
  6304. @param conf configuration which contains the filesystem the cache
  6305. is contained in.
  6306. @throws IOException]]>
  6307. </doc>
  6308. </method>
  6309. <method name="makeRelative" return="java.lang.String"
  6310. abstract="false" native="false" synchronized="false"
  6311. static="true" final="false" visibility="public"
  6312. deprecated="not deprecated">
  6313. <param name="cache" type="java.net.URI"/>
  6314. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6315. <exception name="IOException" type="java.io.IOException"/>
  6316. </method>
  6317. <method name="getTimestamp" return="long"
  6318. abstract="false" native="false" synchronized="false"
  6319. static="true" final="false" visibility="public"
  6320. deprecated="not deprecated">
  6321. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6322. <param name="cache" type="java.net.URI"/>
  6323. <exception name="IOException" type="java.io.IOException"/>
  6324. <doc>
  6325. <![CDATA[Returns mtime of a given cache file on hdfs.
  6326. @param conf configuration
  6327. @param cache cache file
  6328. @return mtime of a given cache file on hdfs
  6329. @throws IOException]]>
  6330. </doc>
  6331. </method>
  6332. <method name="createAllSymlink"
  6333. abstract="false" native="false" synchronized="false"
  6334. static="true" final="false" visibility="public"
  6335. deprecated="not deprecated">
  6336. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6337. <param name="jobCacheDir" type="java.io.File"/>
  6338. <param name="workDir" type="java.io.File"/>
  6339. <exception name="IOException" type="java.io.IOException"/>
  6340. <doc>
  6341. <![CDATA[This method create symlinks for all files in a given dir in another directory
  6342. @param conf the configuration
  6343. @param jobCacheDir the target directory for creating symlinks
  6344. @param workDir the directory in which the symlinks are created
  6345. @throws IOException]]>
  6346. </doc>
  6347. </method>
  6348. <method name="setCacheArchives"
  6349. abstract="false" native="false" synchronized="false"
  6350. static="true" final="false" visibility="public"
  6351. deprecated="not deprecated">
  6352. <param name="archives" type="java.net.URI[]"/>
  6353. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6354. <doc>
  6355. <![CDATA[Set the configuration with the given set of archives
  6356. @param archives The list of archives that need to be localized
  6357. @param conf Configuration which will be changed]]>
  6358. </doc>
  6359. </method>
  6360. <method name="setCacheFiles"
  6361. abstract="false" native="false" synchronized="false"
  6362. static="true" final="false" visibility="public"
  6363. deprecated="not deprecated">
  6364. <param name="files" type="java.net.URI[]"/>
  6365. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6366. <doc>
  6367. <![CDATA[Set the configuration with the given set of files
  6368. @param files The list of files that need to be localized
  6369. @param conf Configuration which will be changed]]>
  6370. </doc>
  6371. </method>
  6372. <method name="getCacheArchives" return="java.net.URI[]"
  6373. abstract="false" native="false" synchronized="false"
  6374. static="true" final="false" visibility="public"
  6375. deprecated="not deprecated">
  6376. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6377. <exception name="IOException" type="java.io.IOException"/>
  6378. <doc>
  6379. <![CDATA[Get cache archives set in the Configuration
  6380. @param conf The configuration which contains the archives
  6381. @return A URI array of the caches set in the Configuration
  6382. @throws IOException]]>
  6383. </doc>
  6384. </method>
  6385. <method name="getCacheFiles" return="java.net.URI[]"
  6386. abstract="false" native="false" synchronized="false"
  6387. static="true" final="false" visibility="public"
  6388. deprecated="not deprecated">
  6389. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6390. <exception name="IOException" type="java.io.IOException"/>
  6391. <doc>
  6392. <![CDATA[Get cache files set in the Configuration
  6393. @param conf The configuration which contains the files
  6394. @return A URI array of the files set in the Configuration
  6395. @throws IOException]]>
  6396. </doc>
  6397. </method>
  6398. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  6399. abstract="false" native="false" synchronized="false"
  6400. static="true" final="false" visibility="public"
  6401. deprecated="not deprecated">
  6402. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6403. <exception name="IOException" type="java.io.IOException"/>
  6404. <doc>
  6405. <![CDATA[Return the path array of the localized caches
  6406. @param conf Configuration that contains the localized archives
  6407. @return A path array of localized caches
  6408. @throws IOException]]>
  6409. </doc>
  6410. </method>
  6411. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  6412. abstract="false" native="false" synchronized="false"
  6413. static="true" final="false" visibility="public"
  6414. deprecated="not deprecated">
  6415. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6416. <exception name="IOException" type="java.io.IOException"/>
  6417. <doc>
  6418. <![CDATA[Return the path array of the localized files
  6419. @param conf Configuration that contains the localized files
  6420. @return A path array of localized files
  6421. @throws IOException]]>
  6422. </doc>
  6423. </method>
  6424. <method name="getArchiveTimestamps" return="java.lang.String[]"
  6425. abstract="false" native="false" synchronized="false"
  6426. static="true" final="false" visibility="public"
  6427. deprecated="not deprecated">
  6428. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6429. <doc>
  6430. <![CDATA[Get the timestamps of the archives
  6431. @param conf The configuration which stored the timestamps
  6432. @return a string array of timestamps
  6433. @throws IOException]]>
  6434. </doc>
  6435. </method>
  6436. <method name="getFileTimestamps" return="java.lang.String[]"
  6437. abstract="false" native="false" synchronized="false"
  6438. static="true" final="false" visibility="public"
  6439. deprecated="not deprecated">
  6440. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6441. <doc>
  6442. <![CDATA[Get the timestamps of the files
  6443. @param conf The configuration which stored the timestamps
  6444. @return a string array of timestamps
  6445. @throws IOException]]>
  6446. </doc>
  6447. </method>
  6448. <method name="setArchiveTimestamps"
  6449. abstract="false" native="false" synchronized="false"
  6450. static="true" final="false" visibility="public"
  6451. deprecated="not deprecated">
  6452. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6453. <param name="timestamps" type="java.lang.String"/>
  6454. <doc>
  6455. <![CDATA[This is to check the timestamp of the archives to be localized
  6456. @param conf Configuration which stores the timestamp's
  6457. @param timestamps comma separated list of timestamps of archives.
  6458. The order should be the same as the order in which the archives are added.]]>
  6459. </doc>
  6460. </method>
  6461. <method name="setFileTimestamps"
  6462. abstract="false" native="false" synchronized="false"
  6463. static="true" final="false" visibility="public"
  6464. deprecated="not deprecated">
  6465. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6466. <param name="timestamps" type="java.lang.String"/>
  6467. <doc>
  6468. <![CDATA[This is to check the timestamp of the files to be localized
  6469. @param conf Configuration which stores the timestamp's
  6470. @param timestamps comma separated list of timestamps of files.
  6471. The order should be the same as the order in which the files are added.]]>
  6472. </doc>
  6473. </method>
  6474. <method name="setLocalArchives"
  6475. abstract="false" native="false" synchronized="false"
  6476. static="true" final="false" visibility="public"
  6477. deprecated="not deprecated">
  6478. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6479. <param name="str" type="java.lang.String"/>
  6480. <doc>
  6481. <![CDATA[Set the conf to contain the location for localized archives
  6482. @param conf The conf to modify to contain the localized caches
  6483. @param str a comma separated list of local archives]]>
  6484. </doc>
  6485. </method>
  6486. <method name="setLocalFiles"
  6487. abstract="false" native="false" synchronized="false"
  6488. static="true" final="false" visibility="public"
  6489. deprecated="not deprecated">
  6490. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6491. <param name="str" type="java.lang.String"/>
  6492. <doc>
  6493. <![CDATA[Set the conf to contain the location for localized files
  6494. @param conf The conf to modify to contain the localized caches
  6495. @param str a comma separated list of local files]]>
  6496. </doc>
  6497. </method>
  6498. <method name="addCacheArchive"
  6499. abstract="false" native="false" synchronized="false"
  6500. static="true" final="false" visibility="public"
  6501. deprecated="not deprecated">
  6502. <param name="uri" type="java.net.URI"/>
  6503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6504. <doc>
  6505. <![CDATA[Add a archives to be localized to the conf
  6506. @param uri The uri of the cache to be localized
  6507. @param conf Configuration to add the cache to]]>
  6508. </doc>
  6509. </method>
  6510. <method name="addCacheFile"
  6511. abstract="false" native="false" synchronized="false"
  6512. static="true" final="false" visibility="public"
  6513. deprecated="not deprecated">
  6514. <param name="uri" type="java.net.URI"/>
  6515. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6516. <doc>
  6517. <![CDATA[Add a file to be localized to the conf
  6518. @param uri The uri of the cache to be localized
  6519. @param conf Configuration to add the cache to]]>
  6520. </doc>
  6521. </method>
  6522. <method name="addFileToClassPath"
  6523. abstract="false" native="false" synchronized="false"
  6524. static="true" final="false" visibility="public"
  6525. deprecated="not deprecated">
  6526. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6527. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6528. <exception name="IOException" type="java.io.IOException"/>
  6529. <doc>
  6530. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  6531. to cache as well.
  6532. @param file Path of the file to be added
  6533. @param conf Configuration that contains the classpath setting]]>
  6534. </doc>
  6535. </method>
  6536. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  6537. abstract="false" native="false" synchronized="false"
  6538. static="true" final="false" visibility="public"
  6539. deprecated="not deprecated">
  6540. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6541. <doc>
  6542. <![CDATA[Get the file entries in classpath as an array of Path
  6543. @param conf Configuration that contains the classpath setting]]>
  6544. </doc>
  6545. </method>
  6546. <method name="addArchiveToClassPath"
  6547. abstract="false" native="false" synchronized="false"
  6548. static="true" final="false" visibility="public"
  6549. deprecated="not deprecated">
  6550. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  6551. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6552. <exception name="IOException" type="java.io.IOException"/>
  6553. <doc>
  6554. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  6555. archive to cache as well.
  6556. @param archive Path of the archive to be added
  6557. @param conf Configuration that contains the classpath setting]]>
  6558. </doc>
  6559. </method>
  6560. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  6561. abstract="false" native="false" synchronized="false"
  6562. static="true" final="false" visibility="public"
  6563. deprecated="not deprecated">
  6564. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6565. <doc>
  6566. <![CDATA[Get the archive entries in classpath as an array of Path
  6567. @param conf Configuration that contains the classpath setting]]>
  6568. </doc>
  6569. </method>
  6570. <method name="createSymlink"
  6571. abstract="false" native="false" synchronized="false"
  6572. static="true" final="false" visibility="public"
  6573. deprecated="not deprecated">
  6574. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6575. <doc>
  6576. <![CDATA[This method allows you to create symlinks in the current working directory
  6577. of the task to all the cache files/archives
  6578. @param conf the jobconf]]>
  6579. </doc>
  6580. </method>
  6581. <method name="getSymlink" return="boolean"
  6582. abstract="false" native="false" synchronized="false"
  6583. static="true" final="false" visibility="public"
  6584. deprecated="not deprecated">
  6585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6586. <doc>
  6587. <![CDATA[This method checks to see if symlinks are to be create for the
  6588. localized cache files in the current working directory
  6589. @param conf the jobconf
  6590. @return true if symlinks are to be created- else return false]]>
  6591. </doc>
  6592. </method>
  6593. <method name="checkURIs" return="boolean"
  6594. abstract="false" native="false" synchronized="false"
  6595. static="true" final="false" visibility="public"
  6596. deprecated="not deprecated">
  6597. <param name="uriFiles" type="java.net.URI[]"/>
  6598. <param name="uriArchives" type="java.net.URI[]"/>
  6599. <doc>
  6600. <![CDATA[This method checks if there is a conflict in the fragment names
  6601. of the uris. Also makes sure that each uri has a fragment. It
  6602. is only to be called if you want to create symlinks for
  6603. the various archives and files.
  6604. @param uriFiles The uri array of urifiles
  6605. @param uriArchives the uri array of uri archives]]>
  6606. </doc>
  6607. </method>
  6608. <method name="purgeCache"
  6609. abstract="false" native="false" synchronized="false"
  6610. static="true" final="false" visibility="public"
  6611. deprecated="not deprecated">
  6612. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6613. <exception name="IOException" type="java.io.IOException"/>
  6614. <doc>
  6615. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  6616. should only be used when the server is reinitializing, because the users
  6617. are going to lose their files.]]>
  6618. </doc>
  6619. </method>
  6620. <doc>
  6621. <![CDATA[Distribute application-specific large, read-only files efficiently.
  6622. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  6623. framework to cache files (text, archives, jars etc.) needed by applications.
  6624. </p>
  6625. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  6626. via the {@link JobConf}. The <code>DistributedCache</code> assumes that the
  6627. files specified via hdfs:// urls are already present on the
  6628. {@link FileSystem} at the path specified by the url.</p>
  6629. <p>The framework will copy the necessary files on to the slave node before
  6630. any tasks for the job are executed on that node. Its efficiency stems from
  6631. the fact that the files are only copied once per job and the ability to
  6632. cache archives which are un-archived on the slaves.</p>
  6633. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  6634. data/text files and/or more complex types such as archives, jars etc.
  6635. Archives (zip files) are un-archived at the slave nodes. Jars maybe be
  6636. optionally added to the classpath of the tasks, a rudimentary software
  6637. distribution mechanism. Files have execution permissions. Optionally users
  6638. can also direct it to symlink the distributed cache file(s) into
  6639. the working directory of the task.</p>
  6640. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  6641. files. Clearly the cache files should not be modified by the application
  6642. or externally while the job is executing.</p>
  6643. <p>Here is an illustrative example on how to use the
  6644. <code>DistributedCache</code>:</p>
  6645. <p><blockquote><pre>
  6646. // Setting up the cache for the application
  6647. 1. Copy the requisite files to the <code>FileSystem</code>:
  6648. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  6649. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  6650. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  6651. 2. Setup the application's <code>JobConf</code>:
  6652. JobConf job = new JobConf();
  6653. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  6654. job);
  6655. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  6656. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  6657. 3. Use the cached files in the {@link Mapper} or {@link Reducer}:
  6658. public static class MapClass extends MapReduceBase
  6659. implements Mapper&lt;K, V, K, V&gt; {
  6660. private Path[] localArchives;
  6661. private Path[] localFiles;
  6662. public void configure(JobConf job) {
  6663. // Get the cached archives/files
  6664. localArchives = DistributedCache.getLocalCacheArchives(job);
  6665. localFiles = DistributedCache.getLocalCacheFiles(job);
  6666. }
  6667. public void map(K key, V value,
  6668. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  6669. throws IOException {
  6670. // Use data from the cached archives/files here
  6671. // ...
  6672. // ...
  6673. output.collect(k, v);
  6674. }
  6675. }
  6676. </pre></blockquote></p>
  6677. @see JobConf
  6678. @see JobClient]]>
  6679. </doc>
  6680. </class>
  6681. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  6682. </package>
  6683. <package name="org.apache.hadoop.fs">
  6684. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  6685. <class name="BlockLocation" extends="java.lang.Object"
  6686. abstract="false"
  6687. static="false" final="false" visibility="public"
  6688. deprecated="not deprecated">
  6689. <implements name="org.apache.hadoop.io.Writable"/>
  6690. <constructor name="BlockLocation"
  6691. static="false" final="false" visibility="public"
  6692. deprecated="not deprecated">
  6693. <doc>
  6694. <![CDATA[Default Constructor]]>
  6695. </doc>
  6696. </constructor>
  6697. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  6698. static="false" final="false" visibility="public"
  6699. deprecated="not deprecated">
  6700. <doc>
  6701. <![CDATA[Constructor with host, name, offset and length]]>
  6702. </doc>
  6703. </constructor>
  6704. <method name="getHosts" return="java.lang.String[]"
  6705. abstract="false" native="false" synchronized="false"
  6706. static="false" final="false" visibility="public"
  6707. deprecated="not deprecated">
  6708. <exception name="IOException" type="java.io.IOException"/>
  6709. <doc>
  6710. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  6711. </doc>
  6712. </method>
  6713. <method name="getNames" return="java.lang.String[]"
  6714. abstract="false" native="false" synchronized="false"
  6715. static="false" final="false" visibility="public"
  6716. deprecated="not deprecated">
  6717. <exception name="IOException" type="java.io.IOException"/>
  6718. <doc>
  6719. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  6720. </doc>
  6721. </method>
  6722. <method name="getOffset" return="long"
  6723. abstract="false" native="false" synchronized="false"
  6724. static="false" final="false" visibility="public"
  6725. deprecated="not deprecated">
  6726. <doc>
  6727. <![CDATA[Get the start offset of file associated with this block]]>
  6728. </doc>
  6729. </method>
  6730. <method name="getLength" return="long"
  6731. abstract="false" native="false" synchronized="false"
  6732. static="false" final="false" visibility="public"
  6733. deprecated="not deprecated">
  6734. <doc>
  6735. <![CDATA[Get the length of the block]]>
  6736. </doc>
  6737. </method>
  6738. <method name="setOffset"
  6739. abstract="false" native="false" synchronized="false"
  6740. static="false" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <param name="offset" type="long"/>
  6743. <doc>
  6744. <![CDATA[Set the start offset of file associated with this block]]>
  6745. </doc>
  6746. </method>
  6747. <method name="setLength"
  6748. abstract="false" native="false" synchronized="false"
  6749. static="false" final="false" visibility="public"
  6750. deprecated="not deprecated">
  6751. <param name="length" type="long"/>
  6752. <doc>
  6753. <![CDATA[Set the length of block]]>
  6754. </doc>
  6755. </method>
  6756. <method name="setHosts"
  6757. abstract="false" native="false" synchronized="false"
  6758. static="false" final="false" visibility="public"
  6759. deprecated="not deprecated">
  6760. <param name="hosts" type="java.lang.String[]"/>
  6761. <exception name="IOException" type="java.io.IOException"/>
  6762. <doc>
  6763. <![CDATA[Set the hosts hosting this block]]>
  6764. </doc>
  6765. </method>
  6766. <method name="setNames"
  6767. abstract="false" native="false" synchronized="false"
  6768. static="false" final="false" visibility="public"
  6769. deprecated="not deprecated">
  6770. <param name="names" type="java.lang.String[]"/>
  6771. <exception name="IOException" type="java.io.IOException"/>
  6772. <doc>
  6773. <![CDATA[Set the names (host:port) hosting this block]]>
  6774. </doc>
  6775. </method>
  6776. <method name="write"
  6777. abstract="false" native="false" synchronized="false"
  6778. static="false" final="false" visibility="public"
  6779. deprecated="not deprecated">
  6780. <param name="out" type="java.io.DataOutput"/>
  6781. <exception name="IOException" type="java.io.IOException"/>
  6782. <doc>
  6783. <![CDATA[Implement write of Writable]]>
  6784. </doc>
  6785. </method>
  6786. <method name="readFields"
  6787. abstract="false" native="false" synchronized="false"
  6788. static="false" final="false" visibility="public"
  6789. deprecated="not deprecated">
  6790. <param name="in" type="java.io.DataInput"/>
  6791. <exception name="IOException" type="java.io.IOException"/>
  6792. <doc>
  6793. <![CDATA[Implement readFields of Writable]]>
  6794. </doc>
  6795. </method>
  6796. <method name="toString" return="java.lang.String"
  6797. abstract="false" native="false" synchronized="false"
  6798. static="false" final="false" visibility="public"
  6799. deprecated="not deprecated">
  6800. </method>
  6801. </class>
  6802. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  6803. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  6804. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  6805. abstract="false"
  6806. static="false" final="false" visibility="public"
  6807. deprecated="not deprecated">
  6808. <implements name="org.apache.hadoop.fs.Seekable"/>
  6809. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  6810. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  6811. static="false" final="false" visibility="public"
  6812. deprecated="not deprecated">
  6813. <doc>
  6814. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  6815. with the specified buffer size,
  6816. and saves its argument, the input stream
  6817. <code>in</code>, for later use. An internal
  6818. buffer array of length <code>size</code>
  6819. is created and stored in <code>buf</code>.
  6820. @param in the underlying input stream.
  6821. @param size the buffer size.
  6822. @exception IllegalArgumentException if size <= 0.]]>
  6823. </doc>
  6824. </constructor>
  6825. <method name="getPos" return="long"
  6826. abstract="false" native="false" synchronized="false"
  6827. static="false" final="false" visibility="public"
  6828. deprecated="not deprecated">
  6829. <exception name="IOException" type="java.io.IOException"/>
  6830. </method>
  6831. <method name="skip" return="long"
  6832. abstract="false" native="false" synchronized="false"
  6833. static="false" final="false" visibility="public"
  6834. deprecated="not deprecated">
  6835. <param name="n" type="long"/>
  6836. <exception name="IOException" type="java.io.IOException"/>
  6837. </method>
  6838. <method name="seek"
  6839. abstract="false" native="false" synchronized="false"
  6840. static="false" final="false" visibility="public"
  6841. deprecated="not deprecated">
  6842. <param name="pos" type="long"/>
  6843. <exception name="IOException" type="java.io.IOException"/>
  6844. </method>
  6845. <method name="seekToNewSource" return="boolean"
  6846. abstract="false" native="false" synchronized="false"
  6847. static="false" final="false" visibility="public"
  6848. deprecated="not deprecated">
  6849. <param name="targetPos" type="long"/>
  6850. <exception name="IOException" type="java.io.IOException"/>
  6851. </method>
  6852. <method name="read" return="int"
  6853. abstract="false" native="false" synchronized="false"
  6854. static="false" final="false" visibility="public"
  6855. deprecated="not deprecated">
  6856. <param name="position" type="long"/>
  6857. <param name="buffer" type="byte[]"/>
  6858. <param name="offset" type="int"/>
  6859. <param name="length" type="int"/>
  6860. <exception name="IOException" type="java.io.IOException"/>
  6861. </method>
  6862. <method name="readFully"
  6863. abstract="false" native="false" synchronized="false"
  6864. static="false" final="false" visibility="public"
  6865. deprecated="not deprecated">
  6866. <param name="position" type="long"/>
  6867. <param name="buffer" type="byte[]"/>
  6868. <param name="offset" type="int"/>
  6869. <param name="length" type="int"/>
  6870. <exception name="IOException" type="java.io.IOException"/>
  6871. </method>
  6872. <method name="readFully"
  6873. abstract="false" native="false" synchronized="false"
  6874. static="false" final="false" visibility="public"
  6875. deprecated="not deprecated">
  6876. <param name="position" type="long"/>
  6877. <param name="buffer" type="byte[]"/>
  6878. <exception name="IOException" type="java.io.IOException"/>
  6879. </method>
  6880. <doc>
  6881. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  6882. </doc>
  6883. </class>
  6884. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  6885. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  6886. <class name="ChecksumException" extends="java.io.IOException"
  6887. abstract="false"
  6888. static="false" final="false" visibility="public"
  6889. deprecated="not deprecated">
  6890. <constructor name="ChecksumException" type="java.lang.String, long"
  6891. static="false" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. </constructor>
  6894. <method name="getPos" return="long"
  6895. abstract="false" native="false" synchronized="false"
  6896. static="false" final="false" visibility="public"
  6897. deprecated="not deprecated">
  6898. </method>
  6899. <doc>
  6900. <![CDATA[Thrown for checksum errors.]]>
  6901. </doc>
  6902. </class>
  6903. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  6904. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  6905. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  6906. abstract="true"
  6907. static="false" final="false" visibility="public"
  6908. deprecated="not deprecated">
  6909. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  6910. static="false" final="false" visibility="public"
  6911. deprecated="not deprecated">
  6912. </constructor>
  6913. <method name="getApproxChkSumLength" return="double"
  6914. abstract="false" native="false" synchronized="false"
  6915. static="true" final="false" visibility="public"
  6916. deprecated="not deprecated">
  6917. <param name="size" type="long"/>
  6918. </method>
  6919. <method name="setConf"
  6920. abstract="false" native="false" synchronized="false"
  6921. static="false" final="false" visibility="public"
  6922. deprecated="not deprecated">
  6923. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6924. </method>
  6925. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  6926. abstract="false" native="false" synchronized="false"
  6927. static="false" final="false" visibility="public"
  6928. deprecated="not deprecated">
  6929. <doc>
  6930. <![CDATA[get the raw file system]]>
  6931. </doc>
  6932. </method>
  6933. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  6934. abstract="false" native="false" synchronized="false"
  6935. static="false" final="false" visibility="public"
  6936. deprecated="not deprecated">
  6937. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6938. <doc>
  6939. <![CDATA[Return the name of the checksum file associated with a file.]]>
  6940. </doc>
  6941. </method>
  6942. <method name="isChecksumFile" return="boolean"
  6943. abstract="false" native="false" synchronized="false"
  6944. static="true" final="false" visibility="public"
  6945. deprecated="not deprecated">
  6946. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6947. <doc>
  6948. <![CDATA[Return true iff file is a checksum file name.]]>
  6949. </doc>
  6950. </method>
  6951. <method name="getChecksumFileLength" return="long"
  6952. abstract="false" native="false" synchronized="false"
  6953. static="false" final="false" visibility="public"
  6954. deprecated="not deprecated">
  6955. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6956. <param name="fileSize" type="long"/>
  6957. <doc>
  6958. <![CDATA[Return the length of the checksum file given the size of the
  6959. actual file.]]>
  6960. </doc>
  6961. </method>
  6962. <method name="getBytesPerSum" return="int"
  6963. abstract="false" native="false" synchronized="false"
  6964. static="false" final="false" visibility="public"
  6965. deprecated="not deprecated">
  6966. <doc>
  6967. <![CDATA[Return the bytes Per Checksum]]>
  6968. </doc>
  6969. </method>
  6970. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  6971. abstract="false" native="false" synchronized="false"
  6972. static="false" final="false" visibility="public"
  6973. deprecated="not deprecated">
  6974. <param name="f" type="org.apache.hadoop.fs.Path"/>
  6975. <param name="bufferSize" type="int"/>
  6976. <exception name="IOException" type="java.io.IOException"/>
  6977. <doc>
  6978. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  6979. @param f the file name to open
  6980. @param bufferSize the size of the buffer to be used.]]>
  6981. </doc>
  6982. </method>
  6983. <method name="getChecksumLength" return="long"
  6984. abstract="false" native="false" synchronized="false"
  6985. static="true" final="false" visibility="public"
  6986. deprecated="not deprecated">
  6987. <param name="size" type="long"/>
  6988. <param name="bytesPerSum" type="int"/>
  6989. <doc>
  6990. <![CDATA[Calculated the length of the checksum file in bytes.
  6991. @param size the length of the data file in bytes
  6992. @param bytesPerSum the number of bytes in a checksum block
  6993. @return the number of bytes in the checksum file]]>
  6994. </doc>
  6995. </method>
  6996. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  6997. abstract="false" native="false" synchronized="false"
  6998. static="false" final="false" visibility="public"
  6999. deprecated="not deprecated">
  7000. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7001. <param name="overwrite" type="boolean"/>
  7002. <param name="bufferSize" type="int"/>
  7003. <param name="replication" type="short"/>
  7004. <param name="blockSize" type="long"/>
  7005. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7006. <exception name="IOException" type="java.io.IOException"/>
  7007. <doc>
  7008. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7009. reporting.
  7010. @param f the file name to open
  7011. @param overwrite if a file with this name already exists, then if true,
  7012. the file will be overwritten, and if false an error will be thrown.
  7013. @param bufferSize the size of the buffer to be used.
  7014. @param replication required block replication for the file.]]>
  7015. </doc>
  7016. </method>
  7017. <method name="setReplication" return="boolean"
  7018. abstract="false" native="false" synchronized="false"
  7019. static="false" final="false" visibility="public"
  7020. deprecated="not deprecated">
  7021. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7022. <param name="replication" type="short"/>
  7023. <exception name="IOException" type="java.io.IOException"/>
  7024. <doc>
  7025. <![CDATA[Set replication for an existing file.
  7026. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  7027. @param src file name
  7028. @param replication new replication
  7029. @throws IOException
  7030. @return true if successful;
  7031. false if file does not exist or is a directory]]>
  7032. </doc>
  7033. </method>
  7034. <method name="rename" return="boolean"
  7035. abstract="false" native="false" synchronized="false"
  7036. static="false" final="false" visibility="public"
  7037. deprecated="not deprecated">
  7038. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7039. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7040. <exception name="IOException" type="java.io.IOException"/>
  7041. <doc>
  7042. <![CDATA[Rename files/dirs]]>
  7043. </doc>
  7044. </method>
  7045. <method name="delete" return="boolean"
  7046. abstract="false" native="false" synchronized="false"
  7047. static="false" final="false" visibility="public"
  7048. deprecated="not deprecated">
  7049. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7050. <param name="recursive" type="boolean"/>
  7051. <exception name="IOException" type="java.io.IOException"/>
  7052. <doc>
  7053. <![CDATA[Implement the delete(Path, boolean) in checksum
  7054. file system.]]>
  7055. </doc>
  7056. </method>
  7057. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7058. abstract="false" native="false" synchronized="false"
  7059. static="false" final="false" visibility="public"
  7060. deprecated="not deprecated">
  7061. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7062. <exception name="IOException" type="java.io.IOException"/>
  7063. <doc>
  7064. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7065. a directory.
  7066. @param f
  7067. given path
  7068. @return the statuses of the files/directories in the given patch
  7069. @throws IOException]]>
  7070. </doc>
  7071. </method>
  7072. <method name="mkdirs" return="boolean"
  7073. abstract="false" native="false" synchronized="false"
  7074. static="false" final="false" visibility="public"
  7075. deprecated="not deprecated">
  7076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7077. <exception name="IOException" type="java.io.IOException"/>
  7078. </method>
  7079. <method name="copyFromLocalFile"
  7080. abstract="false" native="false" synchronized="false"
  7081. static="false" final="false" visibility="public"
  7082. deprecated="not deprecated">
  7083. <param name="delSrc" type="boolean"/>
  7084. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7085. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7086. <exception name="IOException" type="java.io.IOException"/>
  7087. </method>
  7088. <method name="copyToLocalFile"
  7089. abstract="false" native="false" synchronized="false"
  7090. static="false" final="false" visibility="public"
  7091. deprecated="not deprecated">
  7092. <param name="delSrc" type="boolean"/>
  7093. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7094. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7095. <exception name="IOException" type="java.io.IOException"/>
  7096. <doc>
  7097. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7098. Copy it from FS control to the local dst name.]]>
  7099. </doc>
  7100. </method>
  7101. <method name="copyToLocalFile"
  7102. abstract="false" native="false" synchronized="false"
  7103. static="false" final="false" visibility="public"
  7104. deprecated="not deprecated">
  7105. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7106. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7107. <param name="copyCrc" type="boolean"/>
  7108. <exception name="IOException" type="java.io.IOException"/>
  7109. <doc>
  7110. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7111. Copy it from FS control to the local dst name.
  7112. If src and dst are directories, the copyCrc parameter
  7113. determines whether to copy CRC files.]]>
  7114. </doc>
  7115. </method>
  7116. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7117. abstract="false" native="false" synchronized="false"
  7118. static="false" final="false" visibility="public"
  7119. deprecated="not deprecated">
  7120. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7121. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7122. <exception name="IOException" type="java.io.IOException"/>
  7123. </method>
  7124. <method name="completeLocalOutput"
  7125. abstract="false" native="false" synchronized="false"
  7126. static="false" final="false" visibility="public"
  7127. deprecated="not deprecated">
  7128. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7129. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7130. <exception name="IOException" type="java.io.IOException"/>
  7131. </method>
  7132. <method name="reportChecksumFailure" return="boolean"
  7133. abstract="false" native="false" synchronized="false"
  7134. static="false" final="false" visibility="public"
  7135. deprecated="not deprecated">
  7136. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7137. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7138. <param name="inPos" type="long"/>
  7139. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7140. <param name="sumsPos" type="long"/>
  7141. <doc>
  7142. <![CDATA[Report a checksum error to the file system.
  7143. @param f the file name containing the error
  7144. @param in the stream open on the file
  7145. @param inPos the position of the beginning of the bad data in the file
  7146. @param sums the stream open on the checksum file
  7147. @param sumsPos the position of the beginning of the bad data in the checksum file
  7148. @return if retry is neccessary]]>
  7149. </doc>
  7150. </method>
  7151. <doc>
  7152. <![CDATA[Abstract Checksumed FileSystem.
  7153. It provide a basice implementation of a Checksumed FileSystem,
  7154. which creates a checksum file for each raw file.
  7155. It generates & verifies checksums at the client side.]]>
  7156. </doc>
  7157. </class>
  7158. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  7159. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  7160. <class name="ContentSummary" extends="java.lang.Object"
  7161. abstract="false"
  7162. static="false" final="false" visibility="public"
  7163. deprecated="not deprecated">
  7164. <implements name="org.apache.hadoop.io.Writable"/>
  7165. <constructor name="ContentSummary"
  7166. static="false" final="false" visibility="public"
  7167. deprecated="not deprecated">
  7168. <doc>
  7169. <![CDATA[Constructor]]>
  7170. </doc>
  7171. </constructor>
  7172. <constructor name="ContentSummary" type="long, long, long"
  7173. static="false" final="false" visibility="public"
  7174. deprecated="not deprecated">
  7175. <doc>
  7176. <![CDATA[Constructor]]>
  7177. </doc>
  7178. </constructor>
  7179. <method name="getLength" return="long"
  7180. abstract="false" native="false" synchronized="false"
  7181. static="false" final="false" visibility="public"
  7182. deprecated="not deprecated">
  7183. <doc>
  7184. <![CDATA[@return the length]]>
  7185. </doc>
  7186. </method>
  7187. <method name="getDirectoryCount" return="long"
  7188. abstract="false" native="false" synchronized="false"
  7189. static="false" final="false" visibility="public"
  7190. deprecated="not deprecated">
  7191. <doc>
  7192. <![CDATA[@return the directory count]]>
  7193. </doc>
  7194. </method>
  7195. <method name="getFileCount" return="long"
  7196. abstract="false" native="false" synchronized="false"
  7197. static="false" final="false" visibility="public"
  7198. deprecated="not deprecated">
  7199. <doc>
  7200. <![CDATA[@return the file count]]>
  7201. </doc>
  7202. </method>
  7203. <method name="write"
  7204. abstract="false" native="false" synchronized="false"
  7205. static="false" final="false" visibility="public"
  7206. deprecated="not deprecated">
  7207. <param name="out" type="java.io.DataOutput"/>
  7208. <exception name="IOException" type="java.io.IOException"/>
  7209. <doc>
  7210. <![CDATA[{@inheritDoc}]]>
  7211. </doc>
  7212. </method>
  7213. <method name="readFields"
  7214. abstract="false" native="false" synchronized="false"
  7215. static="false" final="false" visibility="public"
  7216. deprecated="not deprecated">
  7217. <param name="in" type="java.io.DataInput"/>
  7218. <exception name="IOException" type="java.io.IOException"/>
  7219. <doc>
  7220. <![CDATA[{@inheritDoc}]]>
  7221. </doc>
  7222. </method>
  7223. <method name="toString" return="java.lang.String"
  7224. abstract="false" native="false" synchronized="false"
  7225. static="false" final="false" visibility="public"
  7226. deprecated="not deprecated">
  7227. <doc>
  7228. <![CDATA[{@inheritDoc}]]>
  7229. </doc>
  7230. </method>
  7231. <doc>
  7232. <![CDATA[Store the summary of a content (a directory or a file).]]>
  7233. </doc>
  7234. </class>
  7235. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  7236. <!-- start class org.apache.hadoop.fs.DF -->
  7237. <class name="DF" extends="org.apache.hadoop.util.Shell"
  7238. abstract="false"
  7239. static="false" final="false" visibility="public"
  7240. deprecated="not deprecated">
  7241. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  7242. static="false" final="false" visibility="public"
  7243. deprecated="not deprecated">
  7244. <exception name="IOException" type="java.io.IOException"/>
  7245. </constructor>
  7246. <constructor name="DF" type="java.io.File, long"
  7247. static="false" final="false" visibility="public"
  7248. deprecated="not deprecated">
  7249. <exception name="IOException" type="java.io.IOException"/>
  7250. </constructor>
  7251. <method name="getDirPath" return="java.lang.String"
  7252. abstract="false" native="false" synchronized="false"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. </method>
  7256. <method name="getFilesystem" return="java.lang.String"
  7257. abstract="false" native="false" synchronized="false"
  7258. static="false" final="false" visibility="public"
  7259. deprecated="not deprecated">
  7260. <exception name="IOException" type="java.io.IOException"/>
  7261. </method>
  7262. <method name="getCapacity" return="long"
  7263. abstract="false" native="false" synchronized="false"
  7264. static="false" final="false" visibility="public"
  7265. deprecated="not deprecated">
  7266. <exception name="IOException" type="java.io.IOException"/>
  7267. </method>
  7268. <method name="getUsed" return="long"
  7269. abstract="false" native="false" synchronized="false"
  7270. static="false" final="false" visibility="public"
  7271. deprecated="not deprecated">
  7272. <exception name="IOException" type="java.io.IOException"/>
  7273. </method>
  7274. <method name="getAvailable" return="long"
  7275. abstract="false" native="false" synchronized="false"
  7276. static="false" final="false" visibility="public"
  7277. deprecated="not deprecated">
  7278. <exception name="IOException" type="java.io.IOException"/>
  7279. </method>
  7280. <method name="getPercentUsed" return="int"
  7281. abstract="false" native="false" synchronized="false"
  7282. static="false" final="false" visibility="public"
  7283. deprecated="not deprecated">
  7284. <exception name="IOException" type="java.io.IOException"/>
  7285. </method>
  7286. <method name="getMount" return="java.lang.String"
  7287. abstract="false" native="false" synchronized="false"
  7288. static="false" final="false" visibility="public"
  7289. deprecated="not deprecated">
  7290. <exception name="IOException" type="java.io.IOException"/>
  7291. </method>
  7292. <method name="toString" return="java.lang.String"
  7293. abstract="false" native="false" synchronized="false"
  7294. static="false" final="false" visibility="public"
  7295. deprecated="not deprecated">
  7296. </method>
  7297. <method name="getExecString" return="java.lang.String[]"
  7298. abstract="false" native="false" synchronized="false"
  7299. static="false" final="false" visibility="protected"
  7300. deprecated="not deprecated">
  7301. </method>
  7302. <method name="parseExecResult"
  7303. abstract="false" native="false" synchronized="false"
  7304. static="false" final="false" visibility="protected"
  7305. deprecated="not deprecated">
  7306. <param name="lines" type="java.io.BufferedReader"/>
  7307. <exception name="IOException" type="java.io.IOException"/>
  7308. </method>
  7309. <method name="main"
  7310. abstract="false" native="false" synchronized="false"
  7311. static="true" final="false" visibility="public"
  7312. deprecated="not deprecated">
  7313. <param name="args" type="java.lang.String[]"/>
  7314. <exception name="Exception" type="java.lang.Exception"/>
  7315. </method>
  7316. <field name="DF_INTERVAL_DEFAULT" type="long"
  7317. transient="false" volatile="false"
  7318. static="true" final="true" visibility="public"
  7319. deprecated="not deprecated">
  7320. </field>
  7321. <doc>
  7322. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  7323. Tested on Linux, FreeBSD, Cygwin.]]>
  7324. </doc>
  7325. </class>
  7326. <!-- end class org.apache.hadoop.fs.DF -->
  7327. <!-- start class org.apache.hadoop.fs.DU -->
  7328. <class name="DU" extends="org.apache.hadoop.util.Shell"
  7329. abstract="false"
  7330. static="false" final="false" visibility="public"
  7331. deprecated="not deprecated">
  7332. <constructor name="DU" type="java.io.File, long"
  7333. static="false" final="false" visibility="public"
  7334. deprecated="not deprecated">
  7335. <exception name="IOException" type="java.io.IOException"/>
  7336. </constructor>
  7337. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  7338. static="false" final="false" visibility="public"
  7339. deprecated="not deprecated">
  7340. <exception name="IOException" type="java.io.IOException"/>
  7341. </constructor>
  7342. <method name="decDfsUsed"
  7343. abstract="false" native="false" synchronized="true"
  7344. static="false" final="false" visibility="public"
  7345. deprecated="not deprecated">
  7346. <param name="value" type="long"/>
  7347. </method>
  7348. <method name="incDfsUsed"
  7349. abstract="false" native="false" synchronized="true"
  7350. static="false" final="false" visibility="public"
  7351. deprecated="not deprecated">
  7352. <param name="value" type="long"/>
  7353. </method>
  7354. <method name="getUsed" return="long"
  7355. abstract="false" native="false" synchronized="true"
  7356. static="false" final="false" visibility="public"
  7357. deprecated="not deprecated">
  7358. <exception name="IOException" type="java.io.IOException"/>
  7359. </method>
  7360. <method name="getDirPath" return="java.lang.String"
  7361. abstract="false" native="false" synchronized="false"
  7362. static="false" final="false" visibility="public"
  7363. deprecated="not deprecated">
  7364. </method>
  7365. <method name="toString" return="java.lang.String"
  7366. abstract="false" native="false" synchronized="false"
  7367. static="false" final="false" visibility="public"
  7368. deprecated="not deprecated">
  7369. </method>
  7370. <method name="getExecString" return="java.lang.String[]"
  7371. abstract="false" native="false" synchronized="false"
  7372. static="false" final="false" visibility="protected"
  7373. deprecated="not deprecated">
  7374. </method>
  7375. <method name="parseExecResult"
  7376. abstract="false" native="false" synchronized="false"
  7377. static="false" final="false" visibility="protected"
  7378. deprecated="not deprecated">
  7379. <param name="lines" type="java.io.BufferedReader"/>
  7380. <exception name="IOException" type="java.io.IOException"/>
  7381. </method>
  7382. <method name="main"
  7383. abstract="false" native="false" synchronized="false"
  7384. static="true" final="false" visibility="public"
  7385. deprecated="not deprecated">
  7386. <param name="args" type="java.lang.String[]"/>
  7387. <exception name="Exception" type="java.lang.Exception"/>
  7388. </method>
  7389. <doc>
  7390. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  7391. </doc>
  7392. </class>
  7393. <!-- end class org.apache.hadoop.fs.DU -->
  7394. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7395. <class name="FileStatus" extends="java.lang.Object"
  7396. abstract="false"
  7397. static="false" final="false" visibility="public"
  7398. deprecated="not deprecated">
  7399. <implements name="org.apache.hadoop.io.Writable"/>
  7400. <implements name="java.lang.Comparable"/>
  7401. <constructor name="FileStatus"
  7402. static="false" final="false" visibility="public"
  7403. deprecated="not deprecated">
  7404. </constructor>
  7405. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7406. static="false" final="false" visibility="public"
  7407. deprecated="not deprecated">
  7408. </constructor>
  7409. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.permission.FsPermission, java.lang.String, java.lang.String, org.apache.hadoop.fs.Path"
  7410. static="false" final="false" visibility="public"
  7411. deprecated="not deprecated">
  7412. </constructor>
  7413. <method name="getLen" return="long"
  7414. abstract="false" native="false" synchronized="false"
  7415. static="false" final="false" visibility="public"
  7416. deprecated="not deprecated">
  7417. </method>
  7418. <method name="isDir" return="boolean"
  7419. abstract="false" native="false" synchronized="false"
  7420. static="false" final="false" visibility="public"
  7421. deprecated="not deprecated">
  7422. <doc>
  7423. <![CDATA[Is this a directory?
  7424. @return true if this is a directory]]>
  7425. </doc>
  7426. </method>
  7427. <method name="getBlockSize" return="long"
  7428. abstract="false" native="false" synchronized="false"
  7429. static="false" final="false" visibility="public"
  7430. deprecated="not deprecated">
  7431. <doc>
  7432. <![CDATA[Get the block size of the file.
  7433. @return the number of bytes]]>
  7434. </doc>
  7435. </method>
  7436. <method name="getReplication" return="short"
  7437. abstract="false" native="false" synchronized="false"
  7438. static="false" final="false" visibility="public"
  7439. deprecated="not deprecated">
  7440. <doc>
  7441. <![CDATA[Get the replication factor of a file.
  7442. @return the replication factor of a file.]]>
  7443. </doc>
  7444. </method>
  7445. <method name="getModificationTime" return="long"
  7446. abstract="false" native="false" synchronized="false"
  7447. static="false" final="false" visibility="public"
  7448. deprecated="not deprecated">
  7449. <doc>
  7450. <![CDATA[Get the modification time of the file.
  7451. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7452. </doc>
  7453. </method>
  7454. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7455. abstract="false" native="false" synchronized="false"
  7456. static="false" final="false" visibility="public"
  7457. deprecated="not deprecated">
  7458. <doc>
  7459. <![CDATA[Get FsPermission associated with the file.
  7460. @return permssion. If a filesystem does not have a notion of permissions
  7461. or if permissions could not be determined, then default
  7462. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7463. </doc>
  7464. </method>
  7465. <method name="getOwner" return="java.lang.String"
  7466. abstract="false" native="false" synchronized="false"
  7467. static="false" final="false" visibility="public"
  7468. deprecated="not deprecated">
  7469. <doc>
  7470. <![CDATA[Get the owner of the file.
  7471. @return owner of the file. The string could be empty if there is no
  7472. notion of owner of a file in a filesystem or if it could not
  7473. be determined (rare).]]>
  7474. </doc>
  7475. </method>
  7476. <method name="getGroup" return="java.lang.String"
  7477. abstract="false" native="false" synchronized="false"
  7478. static="false" final="false" visibility="public"
  7479. deprecated="not deprecated">
  7480. <doc>
  7481. <![CDATA[Get the group associated with the file.
  7482. @return group for the file. The string could be empty if there is no
  7483. notion of group of a file in a filesystem or if it could not
  7484. be determined (rare).]]>
  7485. </doc>
  7486. </method>
  7487. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7488. abstract="false" native="false" synchronized="false"
  7489. static="false" final="false" visibility="public"
  7490. deprecated="not deprecated">
  7491. </method>
  7492. <method name="setPermission"
  7493. abstract="false" native="false" synchronized="false"
  7494. static="false" final="false" visibility="protected"
  7495. deprecated="not deprecated">
  7496. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7497. <doc>
  7498. <![CDATA[Sets permission.
  7499. @param permission if permission is null, default value is set]]>
  7500. </doc>
  7501. </method>
  7502. <method name="setOwner"
  7503. abstract="false" native="false" synchronized="false"
  7504. static="false" final="false" visibility="protected"
  7505. deprecated="not deprecated">
  7506. <param name="owner" type="java.lang.String"/>
  7507. <doc>
  7508. <![CDATA[Sets owner.
  7509. @param owner if it is null, default value is set]]>
  7510. </doc>
  7511. </method>
  7512. <method name="setGroup"
  7513. abstract="false" native="false" synchronized="false"
  7514. static="false" final="false" visibility="protected"
  7515. deprecated="not deprecated">
  7516. <param name="group" type="java.lang.String"/>
  7517. <doc>
  7518. <![CDATA[Sets group.
  7519. @param group if it is null, default value is set]]>
  7520. </doc>
  7521. </method>
  7522. <method name="write"
  7523. abstract="false" native="false" synchronized="false"
  7524. static="false" final="false" visibility="public"
  7525. deprecated="not deprecated">
  7526. <param name="out" type="java.io.DataOutput"/>
  7527. <exception name="IOException" type="java.io.IOException"/>
  7528. </method>
  7529. <method name="readFields"
  7530. abstract="false" native="false" synchronized="false"
  7531. static="false" final="false" visibility="public"
  7532. deprecated="not deprecated">
  7533. <param name="in" type="java.io.DataInput"/>
  7534. <exception name="IOException" type="java.io.IOException"/>
  7535. </method>
  7536. <method name="compareTo" return="int"
  7537. abstract="false" native="false" synchronized="false"
  7538. static="false" final="false" visibility="public"
  7539. deprecated="not deprecated">
  7540. <param name="o" type="java.lang.Object"/>
  7541. <doc>
  7542. <![CDATA[Compare this object to another object
  7543. @param o the object to be compared.
  7544. @return a negative integer, zero, or a positive integer as this object
  7545. is less than, equal to, or greater than the specified object.
  7546. @throws ClassCastException if the specified object's is not of
  7547. type FileStatus]]>
  7548. </doc>
  7549. </method>
  7550. <method name="equals" return="boolean"
  7551. abstract="false" native="false" synchronized="false"
  7552. static="false" final="false" visibility="public"
  7553. deprecated="not deprecated">
  7554. <param name="o" type="java.lang.Object"/>
  7555. <doc>
  7556. <![CDATA[Compare if this object is equal to another object
  7557. @param o the object to be compared.
  7558. @return true if two file status has the same path name; false if not.]]>
  7559. </doc>
  7560. </method>
  7561. <method name="hashCode" return="int"
  7562. abstract="false" native="false" synchronized="false"
  7563. static="false" final="false" visibility="public"
  7564. deprecated="not deprecated">
  7565. <doc>
  7566. <![CDATA[Returns a hash code value for the object, which is defined as
  7567. the hash code of the path name.
  7568. @return a hash code value for the path name.]]>
  7569. </doc>
  7570. </method>
  7571. <doc>
  7572. <![CDATA[Interface that represents the client side information for a file.]]>
  7573. </doc>
  7574. </class>
  7575. <!-- end class org.apache.hadoop.fs.FileStatus -->
  7576. <!-- start class org.apache.hadoop.fs.FileSystem -->
  7577. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  7578. abstract="true"
  7579. static="false" final="false" visibility="public"
  7580. deprecated="not deprecated">
  7581. <implements name="java.io.Closeable"/>
  7582. <constructor name="FileSystem"
  7583. static="false" final="false" visibility="protected"
  7584. deprecated="not deprecated">
  7585. </constructor>
  7586. <method name="parseArgs" return="org.apache.hadoop.fs.FileSystem"
  7587. abstract="false" native="false" synchronized="false"
  7588. static="true" final="false" visibility="public"
  7589. deprecated="not deprecated">
  7590. <param name="argv" type="java.lang.String[]"/>
  7591. <param name="i" type="int"/>
  7592. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7593. <exception name="IOException" type="java.io.IOException"/>
  7594. <doc>
  7595. <![CDATA[Parse the cmd-line args, starting at i. Remove consumed args
  7596. from array. We expect param in the form:
  7597. '-local | -dfs <namenode:port>']]>
  7598. </doc>
  7599. </method>
  7600. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7601. abstract="false" native="false" synchronized="false"
  7602. static="true" final="false" visibility="public"
  7603. deprecated="not deprecated">
  7604. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7605. <exception name="IOException" type="java.io.IOException"/>
  7606. <doc>
  7607. <![CDATA[Returns the configured filesystem implementation.]]>
  7608. </doc>
  7609. </method>
  7610. <method name="getDefaultUri" return="java.net.URI"
  7611. abstract="false" native="false" synchronized="false"
  7612. static="true" final="false" visibility="public"
  7613. deprecated="not deprecated">
  7614. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7615. <doc>
  7616. <![CDATA[Get the default filesystem URI from a configuration.
  7617. @param conf the configuration to access
  7618. @return the uri of the default filesystem]]>
  7619. </doc>
  7620. </method>
  7621. <method name="setDefaultUri"
  7622. abstract="false" native="false" synchronized="false"
  7623. static="true" final="false" visibility="public"
  7624. deprecated="not deprecated">
  7625. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7626. <param name="uri" type="java.net.URI"/>
  7627. <doc>
  7628. <![CDATA[Set the default filesystem URI in a configuration.
  7629. @param conf the configuration to alter
  7630. @param uri the new default filesystem uri]]>
  7631. </doc>
  7632. </method>
  7633. <method name="setDefaultUri"
  7634. abstract="false" native="false" synchronized="false"
  7635. static="true" final="false" visibility="public"
  7636. deprecated="not deprecated">
  7637. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7638. <param name="uri" type="java.lang.String"/>
  7639. <doc>
  7640. <![CDATA[Set the default filesystem URI in a configuration.
  7641. @param conf the configuration to alter
  7642. @param uri the new default filesystem uri]]>
  7643. </doc>
  7644. </method>
  7645. <method name="initialize"
  7646. abstract="true" native="false" synchronized="false"
  7647. static="false" final="false" visibility="public"
  7648. deprecated="not deprecated">
  7649. <param name="name" type="java.net.URI"/>
  7650. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7651. <exception name="IOException" type="java.io.IOException"/>
  7652. <doc>
  7653. <![CDATA[Called after a new FileSystem instance is constructed.
  7654. @param name a uri whose authority section names the host, port, etc.
  7655. for this FileSystem
  7656. @param conf the configuration]]>
  7657. </doc>
  7658. </method>
  7659. <method name="getUri" return="java.net.URI"
  7660. abstract="true" native="false" synchronized="false"
  7661. static="false" final="false" visibility="public"
  7662. deprecated="not deprecated">
  7663. <doc>
  7664. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  7665. </doc>
  7666. </method>
  7667. <method name="getName" return="java.lang.String"
  7668. abstract="false" native="false" synchronized="false"
  7669. static="false" final="false" visibility="public"
  7670. deprecated="call #getUri() instead.">
  7671. <doc>
  7672. <![CDATA[@deprecated call #getUri() instead.]]>
  7673. </doc>
  7674. </method>
  7675. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  7676. abstract="false" native="false" synchronized="false"
  7677. static="true" final="false" visibility="public"
  7678. deprecated="call #get(URI,Configuration) instead.">
  7679. <param name="name" type="java.lang.String"/>
  7680. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7681. <exception name="IOException" type="java.io.IOException"/>
  7682. <doc>
  7683. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  7684. </doc>
  7685. </method>
  7686. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  7687. abstract="false" native="false" synchronized="false"
  7688. static="true" final="false" visibility="public"
  7689. deprecated="not deprecated">
  7690. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7691. <exception name="IOException" type="java.io.IOException"/>
  7692. <doc>
  7693. <![CDATA[Get the local file syste
  7694. @param conf the configuration to configure the file system with
  7695. @return a LocalFileSystem]]>
  7696. </doc>
  7697. </method>
  7698. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  7699. abstract="false" native="false" synchronized="false"
  7700. static="true" final="false" visibility="public"
  7701. deprecated="not deprecated">
  7702. <param name="uri" type="java.net.URI"/>
  7703. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7704. <exception name="IOException" type="java.io.IOException"/>
  7705. <doc>
  7706. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  7707. of the URI determines a configuration property name,
  7708. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  7709. The entire URI is passed to the FileSystem instance's initialize method.]]>
  7710. </doc>
  7711. </method>
  7712. <method name="closeAll"
  7713. abstract="false" native="false" synchronized="false"
  7714. static="true" final="false" visibility="public"
  7715. deprecated="not deprecated">
  7716. <exception name="IOException" type="java.io.IOException"/>
  7717. <doc>
  7718. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  7719. used anymore.
  7720. @throws IOException]]>
  7721. </doc>
  7722. </method>
  7723. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  7724. abstract="false" native="false" synchronized="false"
  7725. static="false" final="false" visibility="public"
  7726. deprecated="not deprecated">
  7727. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7728. <doc>
  7729. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  7730. </doc>
  7731. </method>
  7732. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7733. abstract="false" native="false" synchronized="false"
  7734. static="true" final="false" visibility="public"
  7735. deprecated="not deprecated">
  7736. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7737. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7738. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7739. <exception name="IOException" type="java.io.IOException"/>
  7740. <doc>
  7741. <![CDATA[create a file with the provided permission
  7742. The permission of the file is set to be the provided permission as in
  7743. setPermission, not permission&~umask
  7744. It is implemented using two RPCs. It is understood that it is inefficient,
  7745. but the implementation is thread-safe. The other option is to change the
  7746. value of umask in configuration to be 0, but it is not thread-safe.
  7747. @param fs file system handle
  7748. @param file the name of the file to be created
  7749. @param permission the permission of the file
  7750. @return an output stream
  7751. @throws IOException]]>
  7752. </doc>
  7753. </method>
  7754. <method name="mkdirs" return="boolean"
  7755. abstract="false" native="false" synchronized="false"
  7756. static="true" final="false" visibility="public"
  7757. deprecated="not deprecated">
  7758. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  7759. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  7760. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7761. <exception name="IOException" type="java.io.IOException"/>
  7762. <doc>
  7763. <![CDATA[create a directory with the provided permission
  7764. The permission of the directory is set to be the provided permission as in
  7765. setPermission, not permission&~umask
  7766. @see #create(FileSystem, Path, FsPermission)
  7767. @param fs file system handle
  7768. @param dir the name of the directory to be created
  7769. @param permission the permission of the directory
  7770. @return true if the directory creation succeeds; false otherwise
  7771. @throws IOException]]>
  7772. </doc>
  7773. </method>
  7774. <method name="checkPath"
  7775. abstract="false" native="false" synchronized="false"
  7776. static="false" final="false" visibility="protected"
  7777. deprecated="not deprecated">
  7778. <param name="path" type="org.apache.hadoop.fs.Path"/>
  7779. <doc>
  7780. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  7781. </doc>
  7782. </method>
  7783. <method name="getFileCacheHints" return="java.lang.String[][]"
  7784. abstract="false" native="false" synchronized="false"
  7785. static="false" final="false" visibility="public"
  7786. deprecated="Use getFileBlockLocations() instead
  7787. Return a 2D array of size 1x1 or greater, containing hostnames
  7788. where portions of the given file can be found. For a nonexistent
  7789. file or regions, null will be returned.
  7790. This call is most helpful with DFS, where it returns
  7791. hostnames of machines that contain the given file.
  7792. The FileSystem will simply return an elt containing 'localhost'.">
  7793. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7794. <param name="start" type="long"/>
  7795. <param name="len" type="long"/>
  7796. <exception name="IOException" type="java.io.IOException"/>
  7797. <doc>
  7798. <![CDATA[@deprecated Use getFileBlockLocations() instead
  7799. Return a 2D array of size 1x1 or greater, containing hostnames
  7800. where portions of the given file can be found. For a nonexistent
  7801. file or regions, null will be returned.
  7802. This call is most helpful with DFS, where it returns
  7803. hostnames of machines that contain the given file.
  7804. The FileSystem will simply return an elt containing 'localhost'.]]>
  7805. </doc>
  7806. </method>
  7807. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  7808. abstract="false" native="false" synchronized="false"
  7809. static="false" final="false" visibility="public"
  7810. deprecated="not deprecated">
  7811. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7812. <param name="start" type="long"/>
  7813. <param name="len" type="long"/>
  7814. <exception name="IOException" type="java.io.IOException"/>
  7815. <doc>
  7816. <![CDATA[Return an array containing hostnames, offset and size of
  7817. portions of the given file. For a nonexistent
  7818. file or regions, null will be returned.
  7819. This call is most helpful with DFS, where it returns
  7820. hostnames of machines that contain the given file.
  7821. The FileSystem will simply return an elt containing 'localhost'.]]>
  7822. </doc>
  7823. </method>
  7824. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7825. abstract="true" native="false" synchronized="false"
  7826. static="false" final="false" visibility="public"
  7827. deprecated="not deprecated">
  7828. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7829. <param name="bufferSize" type="int"/>
  7830. <exception name="IOException" type="java.io.IOException"/>
  7831. <doc>
  7832. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7833. @param f the file name to open
  7834. @param bufferSize the size of the buffer to be used.]]>
  7835. </doc>
  7836. </method>
  7837. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7838. abstract="false" native="false" synchronized="false"
  7839. static="false" final="false" visibility="public"
  7840. deprecated="not deprecated">
  7841. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7842. <exception name="IOException" type="java.io.IOException"/>
  7843. <doc>
  7844. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7845. @param f the file to open]]>
  7846. </doc>
  7847. </method>
  7848. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7849. abstract="false" native="false" synchronized="false"
  7850. static="false" final="false" visibility="public"
  7851. deprecated="not deprecated">
  7852. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7853. <exception name="IOException" type="java.io.IOException"/>
  7854. <doc>
  7855. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  7856. Files are overwritten by default.]]>
  7857. </doc>
  7858. </method>
  7859. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7860. abstract="false" native="false" synchronized="false"
  7861. static="false" final="false" visibility="public"
  7862. deprecated="not deprecated">
  7863. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7864. <param name="overwrite" type="boolean"/>
  7865. <exception name="IOException" type="java.io.IOException"/>
  7866. <doc>
  7867. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  7868. </doc>
  7869. </method>
  7870. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7871. abstract="false" native="false" synchronized="false"
  7872. static="false" final="false" visibility="public"
  7873. deprecated="not deprecated">
  7874. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7875. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7876. <exception name="IOException" type="java.io.IOException"/>
  7877. <doc>
  7878. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  7879. reporting.
  7880. Files are overwritten by default.]]>
  7881. </doc>
  7882. </method>
  7883. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7884. abstract="false" native="false" synchronized="false"
  7885. static="false" final="false" visibility="public"
  7886. deprecated="not deprecated">
  7887. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7888. <param name="replication" type="short"/>
  7889. <exception name="IOException" type="java.io.IOException"/>
  7890. <doc>
  7891. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  7892. Files are overwritten by default.]]>
  7893. </doc>
  7894. </method>
  7895. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7896. abstract="false" native="false" synchronized="false"
  7897. static="false" final="false" visibility="public"
  7898. deprecated="not deprecated">
  7899. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7900. <param name="replication" type="short"/>
  7901. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7902. <exception name="IOException" type="java.io.IOException"/>
  7903. <doc>
  7904. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7905. reporting.
  7906. Files are overwritten by default.]]>
  7907. </doc>
  7908. </method>
  7909. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7910. abstract="false" native="false" synchronized="false"
  7911. static="false" final="false" visibility="public"
  7912. deprecated="not deprecated">
  7913. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7914. <param name="overwrite" type="boolean"/>
  7915. <param name="bufferSize" type="int"/>
  7916. <exception name="IOException" type="java.io.IOException"/>
  7917. <doc>
  7918. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  7919. @param f the file name to open
  7920. @param overwrite if a file with this name already exists, then if true,
  7921. the file will be overwritten, and if false an error will be thrown.
  7922. @param bufferSize the size of the buffer to be used.]]>
  7923. </doc>
  7924. </method>
  7925. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7926. abstract="false" native="false" synchronized="false"
  7927. static="false" final="false" visibility="public"
  7928. deprecated="not deprecated">
  7929. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7930. <param name="overwrite" type="boolean"/>
  7931. <param name="bufferSize" type="int"/>
  7932. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7933. <exception name="IOException" type="java.io.IOException"/>
  7934. <doc>
  7935. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7936. reporting.
  7937. @param f the file name to open
  7938. @param overwrite if a file with this name already exists, then if true,
  7939. the file will be overwritten, and if false an error will be thrown.
  7940. @param bufferSize the size of the buffer to be used.]]>
  7941. </doc>
  7942. </method>
  7943. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7944. abstract="false" native="false" synchronized="false"
  7945. static="false" final="false" visibility="public"
  7946. deprecated="not deprecated">
  7947. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7948. <param name="overwrite" type="boolean"/>
  7949. <param name="bufferSize" type="int"/>
  7950. <param name="replication" type="short"/>
  7951. <param name="blockSize" type="long"/>
  7952. <exception name="IOException" type="java.io.IOException"/>
  7953. <doc>
  7954. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  7955. @param f the file name to open
  7956. @param overwrite if a file with this name already exists, then if true,
  7957. the file will be overwritten, and if false an error will be thrown.
  7958. @param bufferSize the size of the buffer to be used.
  7959. @param replication required block replication for the file.]]>
  7960. </doc>
  7961. </method>
  7962. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7963. abstract="false" native="false" synchronized="false"
  7964. static="false" final="false" visibility="public"
  7965. deprecated="not deprecated">
  7966. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7967. <param name="overwrite" type="boolean"/>
  7968. <param name="bufferSize" type="int"/>
  7969. <param name="replication" type="short"/>
  7970. <param name="blockSize" type="long"/>
  7971. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7972. <exception name="IOException" type="java.io.IOException"/>
  7973. <doc>
  7974. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7975. reporting.
  7976. @param f the file name to open
  7977. @param overwrite if a file with this name already exists, then if true,
  7978. the file will be overwritten, and if false an error will be thrown.
  7979. @param bufferSize the size of the buffer to be used.
  7980. @param replication required block replication for the file.]]>
  7981. </doc>
  7982. </method>
  7983. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7984. abstract="true" native="false" synchronized="false"
  7985. static="false" final="false" visibility="public"
  7986. deprecated="not deprecated">
  7987. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7988. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7989. <param name="overwrite" type="boolean"/>
  7990. <param name="bufferSize" type="int"/>
  7991. <param name="replication" type="short"/>
  7992. <param name="blockSize" type="long"/>
  7993. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7994. <exception name="IOException" type="java.io.IOException"/>
  7995. <doc>
  7996. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7997. reporting.
  7998. @param f the file name to open
  7999. @param permission
  8000. @param overwrite if a file with this name already exists, then if true,
  8001. the file will be overwritten, and if false an error will be thrown.
  8002. @param bufferSize the size of the buffer to be used.
  8003. @param replication required block replication for the file.
  8004. @param blockSize
  8005. @param progress
  8006. @throws IOException
  8007. @see #setPermission(Path, FsPermission)]]>
  8008. </doc>
  8009. </method>
  8010. <method name="createNewFile" return="boolean"
  8011. abstract="false" native="false" synchronized="false"
  8012. static="false" final="false" visibility="public"
  8013. deprecated="not deprecated">
  8014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8015. <exception name="IOException" type="java.io.IOException"/>
  8016. <doc>
  8017. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8018. create fails, or if it already existed, return false.]]>
  8019. </doc>
  8020. </method>
  8021. <method name="getReplication" return="short"
  8022. abstract="false" native="false" synchronized="false"
  8023. static="false" final="false" visibility="public"
  8024. deprecated="Use getFileStatus() instead">
  8025. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8026. <exception name="IOException" type="java.io.IOException"/>
  8027. <doc>
  8028. <![CDATA[Get replication.
  8029. @deprecated Use getFileStatus() instead
  8030. @param src file name
  8031. @return file replication
  8032. @throws IOException]]>
  8033. </doc>
  8034. </method>
  8035. <method name="setReplication" return="boolean"
  8036. abstract="false" native="false" synchronized="false"
  8037. static="false" final="false" visibility="public"
  8038. deprecated="not deprecated">
  8039. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8040. <param name="replication" type="short"/>
  8041. <exception name="IOException" type="java.io.IOException"/>
  8042. <doc>
  8043. <![CDATA[Set replication for an existing file.
  8044. @param src file name
  8045. @param replication new replication
  8046. @throws IOException
  8047. @return true if successful;
  8048. false if file does not exist or is a directory]]>
  8049. </doc>
  8050. </method>
  8051. <method name="rename" return="boolean"
  8052. abstract="true" native="false" synchronized="false"
  8053. static="false" final="false" visibility="public"
  8054. deprecated="not deprecated">
  8055. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8056. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8057. <exception name="IOException" type="java.io.IOException"/>
  8058. <doc>
  8059. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  8060. or remote DFS.]]>
  8061. </doc>
  8062. </method>
  8063. <method name="delete" return="boolean"
  8064. abstract="true" native="false" synchronized="false"
  8065. static="false" final="false" visibility="public"
  8066. deprecated="Use delete(Path, boolean) instead">
  8067. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8068. <exception name="IOException" type="java.io.IOException"/>
  8069. <doc>
  8070. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  8071. </doc>
  8072. </method>
  8073. <method name="delete" return="boolean"
  8074. abstract="true" native="false" synchronized="false"
  8075. static="false" final="false" visibility="public"
  8076. deprecated="not deprecated">
  8077. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8078. <param name="recursive" type="boolean"/>
  8079. <exception name="IOException" type="java.io.IOException"/>
  8080. <doc>
  8081. <![CDATA[Delete a file.
  8082. @param f the path to delete.
  8083. @param recursive if path is a directory and set to
  8084. true, the directory is deleted else throws an exception. In
  8085. case of a file the recursive can be set to either true or false.
  8086. @return true if delete is successful else false.
  8087. @throws IOException]]>
  8088. </doc>
  8089. </method>
  8090. <method name="exists" return="boolean"
  8091. abstract="false" native="false" synchronized="false"
  8092. static="false" final="false" visibility="public"
  8093. deprecated="not deprecated">
  8094. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8095. <exception name="IOException" type="java.io.IOException"/>
  8096. <doc>
  8097. <![CDATA[Check if exists.
  8098. @param f source file]]>
  8099. </doc>
  8100. </method>
  8101. <method name="isDirectory" return="boolean"
  8102. abstract="false" native="false" synchronized="false"
  8103. static="false" final="false" visibility="public"
  8104. deprecated="Use getFileStatus() instead">
  8105. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8106. <exception name="IOException" type="java.io.IOException"/>
  8107. <doc>
  8108. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8109. </doc>
  8110. </method>
  8111. <method name="isFile" return="boolean"
  8112. abstract="false" native="false" synchronized="false"
  8113. static="false" final="false" visibility="public"
  8114. deprecated="not deprecated">
  8115. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8116. <exception name="IOException" type="java.io.IOException"/>
  8117. <doc>
  8118. <![CDATA[True iff the named path is a regular file.]]>
  8119. </doc>
  8120. </method>
  8121. <method name="getLength" return="long"
  8122. abstract="false" native="false" synchronized="false"
  8123. static="false" final="false" visibility="public"
  8124. deprecated="Use getFileStatus() instead">
  8125. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8126. <exception name="IOException" type="java.io.IOException"/>
  8127. <doc>
  8128. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8129. </doc>
  8130. </method>
  8131. <method name="getContentLength" return="long"
  8132. abstract="false" native="false" synchronized="false"
  8133. static="false" final="false" visibility="public"
  8134. deprecated="Use {@link #getContentSummary(Path)}.">
  8135. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8136. <exception name="IOException" type="java.io.IOException"/>
  8137. <doc>
  8138. <![CDATA[Return the number of bytes of the given path
  8139. If <i>f</i> is a file, return the size of the file;
  8140. If <i>f</i> is a directory, return the size of the directory tree
  8141. @deprecated Use {@link #getContentSummary(Path)}.]]>
  8142. </doc>
  8143. </method>
  8144. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  8145. abstract="false" native="false" synchronized="false"
  8146. static="false" final="false" visibility="public"
  8147. deprecated="not deprecated">
  8148. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8149. <exception name="IOException" type="java.io.IOException"/>
  8150. <doc>
  8151. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  8152. </doc>
  8153. </method>
  8154. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8155. abstract="true" native="false" synchronized="false"
  8156. static="false" final="false" visibility="public"
  8157. deprecated="not deprecated">
  8158. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8159. <exception name="IOException" type="java.io.IOException"/>
  8160. <doc>
  8161. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8162. a directory.
  8163. @param f
  8164. given path
  8165. @return the statuses of the files/directories in the given patch
  8166. @throws IOException]]>
  8167. </doc>
  8168. </method>
  8169. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8170. abstract="false" native="false" synchronized="false"
  8171. static="false" final="false" visibility="public"
  8172. deprecated="not deprecated">
  8173. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8174. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8175. <exception name="IOException" type="java.io.IOException"/>
  8176. <doc>
  8177. <![CDATA[Filter files/directories in the given path using the user-supplied path
  8178. filter.
  8179. @param f
  8180. a path name
  8181. @param filter
  8182. the user-supplied path filter
  8183. @return an array of FileStatus objects for the files under the given path
  8184. after applying the filter
  8185. @throws IOException
  8186. if encounter any problem while fetching the status]]>
  8187. </doc>
  8188. </method>
  8189. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8190. abstract="false" native="false" synchronized="false"
  8191. static="false" final="false" visibility="public"
  8192. deprecated="not deprecated">
  8193. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8194. <exception name="IOException" type="java.io.IOException"/>
  8195. <doc>
  8196. <![CDATA[Filter files/directories in the given list of paths using default
  8197. path filter.
  8198. @param files
  8199. a list of paths
  8200. @return a list of statuses for the files under the given paths after
  8201. applying the filter default Path filter
  8202. @exception IOException]]>
  8203. </doc>
  8204. </method>
  8205. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8206. abstract="false" native="false" synchronized="false"
  8207. static="false" final="false" visibility="public"
  8208. deprecated="not deprecated">
  8209. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8210. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8211. <exception name="IOException" type="java.io.IOException"/>
  8212. <doc>
  8213. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  8214. path filter.
  8215. @param files
  8216. a list of paths
  8217. @param filter
  8218. the user-supplied path filter
  8219. @return a list of statuses for the files under the given paths after
  8220. applying the filter
  8221. @exception IOException]]>
  8222. </doc>
  8223. </method>
  8224. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8225. abstract="false" native="false" synchronized="false"
  8226. static="false" final="false" visibility="public"
  8227. deprecated="not deprecated">
  8228. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8229. <exception name="IOException" type="java.io.IOException"/>
  8230. <doc>
  8231. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  8232. files. Results are sorted by their names.
  8233. <p>
  8234. A filename pattern is composed of <i>regular</i> characters and
  8235. <i>special pattern matching</i> characters, which are:
  8236. <dl>
  8237. <dd>
  8238. <dl>
  8239. <p>
  8240. <dt> <tt> ? </tt>
  8241. <dd> Matches any single character.
  8242. <p>
  8243. <dt> <tt> * </tt>
  8244. <dd> Matches zero or more characters.
  8245. <p>
  8246. <dt> <tt> [<i>abc</i>] </tt>
  8247. <dd> Matches a single character from character set
  8248. <tt>{<i>a,b,c</i>}</tt>.
  8249. <p>
  8250. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  8251. <dd> Matches a single character from the character range
  8252. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  8253. lexicographically less than or equal to character <tt><i>b</i></tt>.
  8254. <p>
  8255. <dt> <tt> [^<i>a</i>] </tt>
  8256. <dd> Matches a single character that is not from character set or range
  8257. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  8258. immediately to the right of the opening bracket.
  8259. <p>
  8260. <dt> <tt> \<i>c</i> </tt>
  8261. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  8262. <p>
  8263. <dt> <tt> {ab,cd} </tt>
  8264. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  8265. <p>
  8266. <dt> <tt> {ab,c{de,fh}} </tt>
  8267. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  8268. </dl>
  8269. </dd>
  8270. </dl>
  8271. @param pathPattern a regular expression specifying a pth pattern
  8272. @return an array of paths that match the path pattern
  8273. @throws IOException]]>
  8274. </doc>
  8275. </method>
  8276. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8277. abstract="false" native="false" synchronized="false"
  8278. static="false" final="false" visibility="public"
  8279. deprecated="not deprecated">
  8280. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8281. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8282. <exception name="IOException" type="java.io.IOException"/>
  8283. <doc>
  8284. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  8285. and is accepted by the user-supplied path filter. Results are sorted by
  8286. their path names.
  8287. Return null if pathPattern has no glob and the path does not exist.
  8288. Return an empty array if pathPattern has a glob and no path matches it.
  8289. @param pathPattern
  8290. a regular expression specifying the path pattern
  8291. @param filter
  8292. a user-supplied path filter
  8293. @return an array of FileStatus objects
  8294. @throws IOException if any I/O error occurs when fetching file status]]>
  8295. </doc>
  8296. </method>
  8297. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8298. abstract="false" native="false" synchronized="false"
  8299. static="false" final="false" visibility="public"
  8300. deprecated="not deprecated">
  8301. <doc>
  8302. <![CDATA[Return the current user's home directory in this filesystem.
  8303. The default implementation returns "/user/$USER/".]]>
  8304. </doc>
  8305. </method>
  8306. <method name="setWorkingDirectory"
  8307. abstract="true" native="false" synchronized="false"
  8308. static="false" final="false" visibility="public"
  8309. deprecated="not deprecated">
  8310. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  8311. <doc>
  8312. <![CDATA[Set the current working directory for the given file system. All relative
  8313. paths will be resolved relative to it.
  8314. @param new_dir]]>
  8315. </doc>
  8316. </method>
  8317. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8318. abstract="true" native="false" synchronized="false"
  8319. static="false" final="false" visibility="public"
  8320. deprecated="not deprecated">
  8321. <doc>
  8322. <![CDATA[Get the current working directory for the given file system
  8323. @return the directory pathname]]>
  8324. </doc>
  8325. </method>
  8326. <method name="mkdirs" return="boolean"
  8327. abstract="false" native="false" synchronized="false"
  8328. static="false" final="false" visibility="public"
  8329. deprecated="not deprecated">
  8330. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8331. <exception name="IOException" type="java.io.IOException"/>
  8332. <doc>
  8333. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  8334. </doc>
  8335. </method>
  8336. <method name="mkdirs" return="boolean"
  8337. abstract="true" native="false" synchronized="false"
  8338. static="false" final="false" visibility="public"
  8339. deprecated="not deprecated">
  8340. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8341. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8342. <exception name="IOException" type="java.io.IOException"/>
  8343. <doc>
  8344. <![CDATA[Make the given file and all non-existent parents into
  8345. directories. Has the semantics of Unix 'mkdir -p'.
  8346. Existence of the directory hierarchy is not an error.]]>
  8347. </doc>
  8348. </method>
  8349. <method name="copyFromLocalFile"
  8350. abstract="false" native="false" synchronized="false"
  8351. static="false" final="false" visibility="public"
  8352. deprecated="not deprecated">
  8353. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8354. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8355. <exception name="IOException" type="java.io.IOException"/>
  8356. <doc>
  8357. <![CDATA[The src file is on the local disk. Add it to FS at
  8358. the given dst name and the source is kept intact afterwards]]>
  8359. </doc>
  8360. </method>
  8361. <method name="moveFromLocalFile"
  8362. abstract="false" native="false" synchronized="false"
  8363. static="false" final="false" visibility="public"
  8364. deprecated="not deprecated">
  8365. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8366. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8367. <exception name="IOException" type="java.io.IOException"/>
  8368. <doc>
  8369. <![CDATA[The src files is on the local disk. Add it to FS at
  8370. the given dst name, removing the source afterwards.]]>
  8371. </doc>
  8372. </method>
  8373. <method name="moveFromLocalFile"
  8374. abstract="false" native="false" synchronized="false"
  8375. static="false" final="false" visibility="public"
  8376. deprecated="not deprecated">
  8377. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8378. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8379. <exception name="IOException" type="java.io.IOException"/>
  8380. <doc>
  8381. <![CDATA[The src file is on the local disk. Add it to FS at
  8382. the given dst name, removing the source afterwards.]]>
  8383. </doc>
  8384. </method>
  8385. <method name="copyFromLocalFile"
  8386. abstract="false" native="false" synchronized="false"
  8387. static="false" final="false" visibility="public"
  8388. deprecated="not deprecated">
  8389. <param name="delSrc" type="boolean"/>
  8390. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8391. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8392. <exception name="IOException" type="java.io.IOException"/>
  8393. <doc>
  8394. <![CDATA[The src file is on the local disk. Add it to FS at
  8395. the given dst name.
  8396. delSrc indicates if the source should be removed]]>
  8397. </doc>
  8398. </method>
  8399. <method name="copyFromLocalFile"
  8400. abstract="false" native="false" synchronized="false"
  8401. static="false" final="false" visibility="public"
  8402. deprecated="not deprecated">
  8403. <param name="delSrc" type="boolean"/>
  8404. <param name="overwrite" type="boolean"/>
  8405. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8406. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8407. <exception name="IOException" type="java.io.IOException"/>
  8408. <doc>
  8409. <![CDATA[The src files are on the local disk. Add it to FS at
  8410. the given dst name.
  8411. delSrc indicates if the source should be removed]]>
  8412. </doc>
  8413. </method>
  8414. <method name="copyFromLocalFile"
  8415. abstract="false" native="false" synchronized="false"
  8416. static="false" final="false" visibility="public"
  8417. deprecated="not deprecated">
  8418. <param name="delSrc" type="boolean"/>
  8419. <param name="overwrite" type="boolean"/>
  8420. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8421. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8422. <exception name="IOException" type="java.io.IOException"/>
  8423. <doc>
  8424. <![CDATA[The src file is on the local disk. Add it to FS at
  8425. the given dst name.
  8426. delSrc indicates if the source should be removed]]>
  8427. </doc>
  8428. </method>
  8429. <method name="copyToLocalFile"
  8430. abstract="false" native="false" synchronized="false"
  8431. static="false" final="false" visibility="public"
  8432. deprecated="not deprecated">
  8433. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8434. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8435. <exception name="IOException" type="java.io.IOException"/>
  8436. <doc>
  8437. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8438. Copy it from FS control to the local dst name.]]>
  8439. </doc>
  8440. </method>
  8441. <method name="moveToLocalFile"
  8442. abstract="false" native="false" synchronized="false"
  8443. static="false" final="false" visibility="public"
  8444. deprecated="not deprecated">
  8445. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8446. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8447. <exception name="IOException" type="java.io.IOException"/>
  8448. <doc>
  8449. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8450. Copy it from FS control to the local dst name.
  8451. Remove the source afterwards]]>
  8452. </doc>
  8453. </method>
  8454. <method name="copyToLocalFile"
  8455. abstract="false" native="false" synchronized="false"
  8456. static="false" final="false" visibility="public"
  8457. deprecated="not deprecated">
  8458. <param name="delSrc" type="boolean"/>
  8459. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8460. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8461. <exception name="IOException" type="java.io.IOException"/>
  8462. <doc>
  8463. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8464. Copy it from FS control to the local dst name.
  8465. delSrc indicates if the src will be removed or not.]]>
  8466. </doc>
  8467. </method>
  8468. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  8469. abstract="false" native="false" synchronized="false"
  8470. static="false" final="false" visibility="public"
  8471. deprecated="not deprecated">
  8472. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8473. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8474. <exception name="IOException" type="java.io.IOException"/>
  8475. <doc>
  8476. <![CDATA[Returns a local File that the user can write output to. The caller
  8477. provides both the eventual FS target name and the local working
  8478. file. If the FS is local, we write directly into the target. If
  8479. the FS is remote, we write into the tmp local area.]]>
  8480. </doc>
  8481. </method>
  8482. <method name="completeLocalOutput"
  8483. abstract="false" native="false" synchronized="false"
  8484. static="false" final="false" visibility="public"
  8485. deprecated="not deprecated">
  8486. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  8487. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  8488. <exception name="IOException" type="java.io.IOException"/>
  8489. <doc>
  8490. <![CDATA[Called when we're all done writing to the target. A local FS will
  8491. do nothing, because we've written to exactly the right place. A remote
  8492. FS will copy the contents of tmpLocalFile to the correct target at
  8493. fsOutputFile.]]>
  8494. </doc>
  8495. </method>
  8496. <method name="close"
  8497. abstract="false" native="false" synchronized="false"
  8498. static="false" final="false" visibility="public"
  8499. deprecated="not deprecated">
  8500. <exception name="IOException" type="java.io.IOException"/>
  8501. <doc>
  8502. <![CDATA[No more filesystem operations are needed. Will
  8503. release any held locks.]]>
  8504. </doc>
  8505. </method>
  8506. <method name="getUsed" return="long"
  8507. abstract="false" native="false" synchronized="false"
  8508. static="false" final="false" visibility="public"
  8509. deprecated="not deprecated">
  8510. <exception name="IOException" type="java.io.IOException"/>
  8511. <doc>
  8512. <![CDATA[Return the total size of all files in the filesystem.]]>
  8513. </doc>
  8514. </method>
  8515. <method name="getBlockSize" return="long"
  8516. abstract="false" native="false" synchronized="false"
  8517. static="false" final="false" visibility="public"
  8518. deprecated="Use getFileStatus() instead">
  8519. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8520. <exception name="IOException" type="java.io.IOException"/>
  8521. <doc>
  8522. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8523. </doc>
  8524. </method>
  8525. <method name="getDefaultBlockSize" return="long"
  8526. abstract="false" native="false" synchronized="false"
  8527. static="false" final="false" visibility="public"
  8528. deprecated="not deprecated">
  8529. <doc>
  8530. <![CDATA[Return the number of bytes that large input files should be optimally
  8531. be split into to minimize i/o time.]]>
  8532. </doc>
  8533. </method>
  8534. <method name="getDefaultReplication" return="short"
  8535. abstract="false" native="false" synchronized="false"
  8536. static="false" final="false" visibility="public"
  8537. deprecated="not deprecated">
  8538. <doc>
  8539. <![CDATA[Get the default replication.]]>
  8540. </doc>
  8541. </method>
  8542. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  8543. abstract="true" native="false" synchronized="false"
  8544. static="false" final="false" visibility="public"
  8545. deprecated="not deprecated">
  8546. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8547. <exception name="IOException" type="java.io.IOException"/>
  8548. <doc>
  8549. <![CDATA[Return a file status object that represents the path.
  8550. @param f The path we want information from
  8551. @return a FileStatus object
  8552. @throws FileNotFoundException when the path does not exist;
  8553. IOException see specific implementation]]>
  8554. </doc>
  8555. </method>
  8556. <method name="setPermission"
  8557. abstract="false" native="false" synchronized="false"
  8558. static="false" final="false" visibility="public"
  8559. deprecated="not deprecated">
  8560. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8561. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8562. <exception name="IOException" type="java.io.IOException"/>
  8563. <doc>
  8564. <![CDATA[Set permission of a path.
  8565. @param p
  8566. @param permission]]>
  8567. </doc>
  8568. </method>
  8569. <method name="setOwner"
  8570. abstract="false" native="false" synchronized="false"
  8571. static="false" final="false" visibility="public"
  8572. deprecated="not deprecated">
  8573. <param name="p" type="org.apache.hadoop.fs.Path"/>
  8574. <param name="username" type="java.lang.String"/>
  8575. <param name="groupname" type="java.lang.String"/>
  8576. <exception name="IOException" type="java.io.IOException"/>
  8577. <doc>
  8578. <![CDATA[Set owner of a path (i.e. a file or a directory).
  8579. The parameters username and groupname cannot both be null.
  8580. @param p The path
  8581. @param username If it is null, the original username remains unchanged.
  8582. @param groupname If it is null, the original groupname remains unchanged.]]>
  8583. </doc>
  8584. </method>
  8585. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  8586. abstract="false" native="false" synchronized="true"
  8587. static="true" final="false" visibility="public"
  8588. deprecated="not deprecated">
  8589. <param name="cls" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.FileSystem&gt;"/>
  8590. <doc>
  8591. <![CDATA[Get the statistics for a particular file system
  8592. @param cls the class to lookup
  8593. @return a statistics object]]>
  8594. </doc>
  8595. </method>
  8596. <method name="printStatistics"
  8597. abstract="false" native="false" synchronized="true"
  8598. static="true" final="false" visibility="public"
  8599. deprecated="not deprecated">
  8600. <exception name="IOException" type="java.io.IOException"/>
  8601. </method>
  8602. <field name="LOG" type="org.apache.commons.logging.Log"
  8603. transient="false" volatile="false"
  8604. static="true" final="true" visibility="public"
  8605. deprecated="not deprecated">
  8606. </field>
  8607. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  8608. transient="false" volatile="false"
  8609. static="false" final="true" visibility="protected"
  8610. deprecated="not deprecated">
  8611. <doc>
  8612. <![CDATA[The statistics for this file system.]]>
  8613. </doc>
  8614. </field>
  8615. <doc>
  8616. <![CDATA[An abstract base class for a fairly generic filesystem. It
  8617. may be implemented as a distributed filesystem, or as a "local"
  8618. one that reflects the locally-connected disk. The local version
  8619. exists for small Hadoop instances and for testing.
  8620. <p>
  8621. All user code that may potentially use the Hadoop Distributed
  8622. File System should be written to use a FileSystem object. The
  8623. Hadoop DFS is a multi-machine system that appears as a single
  8624. disk. It's useful because of its fault tolerance and potentially
  8625. very large capacity.
  8626. <p>
  8627. The local implementation is {@link LocalFileSystem} and distributed
  8628. implementation is {@link DistributedFileSystem}.]]>
  8629. </doc>
  8630. </class>
  8631. <!-- end class org.apache.hadoop.fs.FileSystem -->
  8632. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  8633. <class name="FileSystem.Statistics" extends="java.lang.Object"
  8634. abstract="false"
  8635. static="true" final="true" visibility="public"
  8636. deprecated="not deprecated">
  8637. <constructor name="FileSystem.Statistics"
  8638. static="false" final="false" visibility="public"
  8639. deprecated="not deprecated">
  8640. </constructor>
  8641. <method name="incrementBytesRead"
  8642. abstract="false" native="false" synchronized="false"
  8643. static="false" final="false" visibility="public"
  8644. deprecated="not deprecated">
  8645. <param name="newBytes" type="long"/>
  8646. <doc>
  8647. <![CDATA[Increment the bytes read in the statistics
  8648. @param newBytes the additional bytes read]]>
  8649. </doc>
  8650. </method>
  8651. <method name="incrementBytesWritten"
  8652. abstract="false" native="false" synchronized="false"
  8653. static="false" final="false" visibility="public"
  8654. deprecated="not deprecated">
  8655. <param name="newBytes" type="long"/>
  8656. <doc>
  8657. <![CDATA[Increment the bytes written in the statistics
  8658. @param newBytes the additional bytes written]]>
  8659. </doc>
  8660. </method>
  8661. <method name="getBytesRead" return="long"
  8662. abstract="false" native="false" synchronized="false"
  8663. static="false" final="false" visibility="public"
  8664. deprecated="not deprecated">
  8665. <doc>
  8666. <![CDATA[Get the total number of bytes read
  8667. @return the number of bytes]]>
  8668. </doc>
  8669. </method>
  8670. <method name="getBytesWritten" return="long"
  8671. abstract="false" native="false" synchronized="false"
  8672. static="false" final="false" visibility="public"
  8673. deprecated="not deprecated">
  8674. <doc>
  8675. <![CDATA[Get the total number of bytes written
  8676. @return the number of bytes]]>
  8677. </doc>
  8678. </method>
  8679. <method name="toString" return="java.lang.String"
  8680. abstract="false" native="false" synchronized="false"
  8681. static="false" final="false" visibility="public"
  8682. deprecated="not deprecated">
  8683. </method>
  8684. </class>
  8685. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  8686. <!-- start class org.apache.hadoop.fs.FileUtil -->
  8687. <class name="FileUtil" extends="java.lang.Object"
  8688. abstract="false"
  8689. static="false" final="false" visibility="public"
  8690. deprecated="not deprecated">
  8691. <constructor name="FileUtil"
  8692. static="false" final="false" visibility="public"
  8693. deprecated="not deprecated">
  8694. </constructor>
  8695. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  8696. abstract="false" native="false" synchronized="false"
  8697. static="true" final="false" visibility="public"
  8698. deprecated="not deprecated">
  8699. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  8700. <doc>
  8701. <![CDATA[convert an array of FileStatus to an array of Path
  8702. @param stats
  8703. an array of FileStatus objects
  8704. @return an array of paths corresponding to the input]]>
  8705. </doc>
  8706. </method>
  8707. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  8708. abstract="false" native="false" synchronized="false"
  8709. static="true" final="false" visibility="public"
  8710. deprecated="not deprecated">
  8711. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  8712. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8713. <doc>
  8714. <![CDATA[convert an array of FileStatus to an array of Path.
  8715. If stats if null, return path
  8716. @param stats
  8717. an array of FileStatus objects
  8718. @param path
  8719. default path to return in stats is null
  8720. @return an array of paths corresponding to the input]]>
  8721. </doc>
  8722. </method>
  8723. <method name="fullyDelete" return="boolean"
  8724. abstract="false" native="false" synchronized="false"
  8725. static="true" final="false" visibility="public"
  8726. deprecated="not deprecated">
  8727. <param name="dir" type="java.io.File"/>
  8728. <exception name="IOException" type="java.io.IOException"/>
  8729. <doc>
  8730. <![CDATA[Delete a directory and all its contents. If
  8731. we return false, the directory may be partially-deleted.]]>
  8732. </doc>
  8733. </method>
  8734. <method name="fullyDelete"
  8735. abstract="false" native="false" synchronized="false"
  8736. static="true" final="false" visibility="public"
  8737. deprecated="not deprecated">
  8738. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8739. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8740. <exception name="IOException" type="java.io.IOException"/>
  8741. <doc>
  8742. <![CDATA[Recursively delete a directory.
  8743. @param fs {@link FileSystem} on which the path is present
  8744. @param dir directory to recursively delete
  8745. @throws IOException]]>
  8746. </doc>
  8747. </method>
  8748. <method name="copy" return="boolean"
  8749. abstract="false" native="false" synchronized="false"
  8750. static="true" final="false" visibility="public"
  8751. deprecated="not deprecated">
  8752. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8753. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8754. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8755. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8756. <param name="deleteSource" type="boolean"/>
  8757. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8758. <exception name="IOException" type="java.io.IOException"/>
  8759. <doc>
  8760. <![CDATA[Copy files between FileSystems.]]>
  8761. </doc>
  8762. </method>
  8763. <method name="copy" return="boolean"
  8764. abstract="false" native="false" synchronized="false"
  8765. static="true" final="false" visibility="public"
  8766. deprecated="not deprecated">
  8767. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8768. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8769. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8770. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8771. <param name="deleteSource" type="boolean"/>
  8772. <param name="overwrite" type="boolean"/>
  8773. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8774. <exception name="IOException" type="java.io.IOException"/>
  8775. </method>
  8776. <method name="copy" return="boolean"
  8777. abstract="false" native="false" synchronized="false"
  8778. static="true" final="false" visibility="public"
  8779. deprecated="not deprecated">
  8780. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8781. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8782. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8783. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8784. <param name="deleteSource" type="boolean"/>
  8785. <param name="overwrite" type="boolean"/>
  8786. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8787. <exception name="IOException" type="java.io.IOException"/>
  8788. <doc>
  8789. <![CDATA[Copy files between FileSystems.]]>
  8790. </doc>
  8791. </method>
  8792. <method name="copyMerge" return="boolean"
  8793. abstract="false" native="false" synchronized="false"
  8794. static="true" final="false" visibility="public"
  8795. deprecated="not deprecated">
  8796. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8797. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  8798. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8799. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  8800. <param name="deleteSource" type="boolean"/>
  8801. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8802. <param name="addString" type="java.lang.String"/>
  8803. <exception name="IOException" type="java.io.IOException"/>
  8804. <doc>
  8805. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  8806. </doc>
  8807. </method>
  8808. <method name="copy" return="boolean"
  8809. abstract="false" native="false" synchronized="false"
  8810. static="true" final="false" visibility="public"
  8811. deprecated="not deprecated">
  8812. <param name="src" type="java.io.File"/>
  8813. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  8814. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8815. <param name="deleteSource" type="boolean"/>
  8816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8817. <exception name="IOException" type="java.io.IOException"/>
  8818. <doc>
  8819. <![CDATA[Copy local files to a FileSystem.]]>
  8820. </doc>
  8821. </method>
  8822. <method name="copy" return="boolean"
  8823. abstract="false" native="false" synchronized="false"
  8824. static="true" final="false" visibility="public"
  8825. deprecated="not deprecated">
  8826. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  8827. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8828. <param name="dst" type="java.io.File"/>
  8829. <param name="deleteSource" type="boolean"/>
  8830. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8831. <exception name="IOException" type="java.io.IOException"/>
  8832. <doc>
  8833. <![CDATA[Copy FileSystem files to local files.]]>
  8834. </doc>
  8835. </method>
  8836. <method name="makeShellPath" return="java.lang.String"
  8837. abstract="false" native="false" synchronized="false"
  8838. static="true" final="false" visibility="public"
  8839. deprecated="not deprecated">
  8840. <param name="filename" type="java.lang.String"/>
  8841. <exception name="IOException" type="java.io.IOException"/>
  8842. <doc>
  8843. <![CDATA[Convert a os-native filename to a path that works for the shell.
  8844. @param filename The filename to convert
  8845. @return The unix pathname
  8846. @throws IOException on windows, there can be problems with the subprocess]]>
  8847. </doc>
  8848. </method>
  8849. <method name="makeShellPath" return="java.lang.String"
  8850. abstract="false" native="false" synchronized="false"
  8851. static="true" final="false" visibility="public"
  8852. deprecated="not deprecated">
  8853. <param name="file" type="java.io.File"/>
  8854. <exception name="IOException" type="java.io.IOException"/>
  8855. <doc>
  8856. <![CDATA[Convert a os-native filename to a path that works for the shell.
  8857. @param file The filename to convert
  8858. @return The unix pathname
  8859. @throws IOException on windows, there can be problems with the subprocess]]>
  8860. </doc>
  8861. </method>
  8862. <method name="getDU" return="long"
  8863. abstract="false" native="false" synchronized="false"
  8864. static="true" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <param name="dir" type="java.io.File"/>
  8867. <doc>
  8868. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  8869. implementation.
  8870. @param dir
  8871. The input dir to get the disk space of this local dir
  8872. @return The total disk space of the input local directory]]>
  8873. </doc>
  8874. </method>
  8875. <method name="unZip"
  8876. abstract="false" native="false" synchronized="false"
  8877. static="true" final="false" visibility="public"
  8878. deprecated="not deprecated">
  8879. <param name="inFile" type="java.io.File"/>
  8880. <param name="unzipDir" type="java.io.File"/>
  8881. <exception name="IOException" type="java.io.IOException"/>
  8882. <doc>
  8883. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  8884. passed as the second parameter
  8885. @param inFile The zip file as input
  8886. @param unzipDir The unzip directory where to unzip the zip file.
  8887. @throws IOException]]>
  8888. </doc>
  8889. </method>
  8890. <method name="symLink" return="int"
  8891. abstract="false" native="false" synchronized="false"
  8892. static="true" final="false" visibility="public"
  8893. deprecated="not deprecated">
  8894. <param name="target" type="java.lang.String"/>
  8895. <param name="linkname" type="java.lang.String"/>
  8896. <exception name="IOException" type="java.io.IOException"/>
  8897. <doc>
  8898. <![CDATA[Create a soft link between a src and destination
  8899. only on a local disk. HDFS does not support this
  8900. @param target the target for symlink
  8901. @param linkname the symlink
  8902. @return value returned by the command]]>
  8903. </doc>
  8904. </method>
  8905. <method name="chmod" return="int"
  8906. abstract="false" native="false" synchronized="false"
  8907. static="true" final="false" visibility="public"
  8908. deprecated="not deprecated">
  8909. <param name="filename" type="java.lang.String"/>
  8910. <param name="perm" type="java.lang.String"/>
  8911. <exception name="IOException" type="java.io.IOException"/>
  8912. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  8913. <doc>
  8914. <![CDATA[Change the permissions on a filename.
  8915. @param filename the name of the file to change
  8916. @param perm the permission string
  8917. @return the exit code from the command
  8918. @throws IOException
  8919. @throws InterruptedException]]>
  8920. </doc>
  8921. </method>
  8922. <method name="createLocalTempFile" return="java.io.File"
  8923. abstract="false" native="false" synchronized="false"
  8924. static="true" final="true" visibility="public"
  8925. deprecated="not deprecated">
  8926. <param name="basefile" type="java.io.File"/>
  8927. <param name="prefix" type="java.lang.String"/>
  8928. <param name="isDeleteOnExit" type="boolean"/>
  8929. <exception name="IOException" type="java.io.IOException"/>
  8930. <doc>
  8931. <![CDATA[Create a tmp file for a base file.
  8932. @param basefile the base file of the tmp
  8933. @param prefix file name prefix of tmp
  8934. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  8935. @return a newly created tmp file
  8936. @exception IOException If a tmp file cannot created
  8937. @see java.io.File#createTempFile(String, String, File)
  8938. @see java.io.File#deleteOnExit()]]>
  8939. </doc>
  8940. </method>
  8941. <method name="replaceFile"
  8942. abstract="false" native="false" synchronized="false"
  8943. static="true" final="false" visibility="public"
  8944. deprecated="not deprecated">
  8945. <param name="src" type="java.io.File"/>
  8946. <param name="target" type="java.io.File"/>
  8947. <exception name="IOException" type="java.io.IOException"/>
  8948. <doc>
  8949. <![CDATA[Move the src file to the name specified by target.
  8950. @param src the source file
  8951. @param target the target file
  8952. @exception IOException If this operation fails]]>
  8953. </doc>
  8954. </method>
  8955. <doc>
  8956. <![CDATA[A collection of file-processing util methods]]>
  8957. </doc>
  8958. </class>
  8959. <!-- end class org.apache.hadoop.fs.FileUtil -->
  8960. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  8961. <class name="FileUtil.HardLink" extends="java.lang.Object"
  8962. abstract="false"
  8963. static="true" final="false" visibility="public"
  8964. deprecated="not deprecated">
  8965. <constructor name="FileUtil.HardLink"
  8966. static="false" final="false" visibility="public"
  8967. deprecated="not deprecated">
  8968. </constructor>
  8969. <method name="createHardLink"
  8970. abstract="false" native="false" synchronized="false"
  8971. static="true" final="false" visibility="public"
  8972. deprecated="not deprecated">
  8973. <param name="target" type="java.io.File"/>
  8974. <param name="linkName" type="java.io.File"/>
  8975. <exception name="IOException" type="java.io.IOException"/>
  8976. <doc>
  8977. <![CDATA[Creates a hardlink]]>
  8978. </doc>
  8979. </method>
  8980. <method name="getLinkCount" return="int"
  8981. abstract="false" native="false" synchronized="false"
  8982. static="true" final="false" visibility="public"
  8983. deprecated="not deprecated">
  8984. <param name="fileName" type="java.io.File"/>
  8985. <exception name="IOException" type="java.io.IOException"/>
  8986. <doc>
  8987. <![CDATA[Retrieves the number of links to the specified file.]]>
  8988. </doc>
  8989. </method>
  8990. <doc>
  8991. <![CDATA[Class for creating hardlinks.
  8992. Supports Unix, Cygwin, WindXP.]]>
  8993. </doc>
  8994. </class>
  8995. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  8996. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  8997. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  8998. abstract="false"
  8999. static="false" final="false" visibility="public"
  9000. deprecated="not deprecated">
  9001. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  9002. static="false" final="false" visibility="public"
  9003. deprecated="not deprecated">
  9004. </constructor>
  9005. <method name="initialize"
  9006. abstract="false" native="false" synchronized="false"
  9007. static="false" final="false" visibility="public"
  9008. deprecated="not deprecated">
  9009. <param name="name" type="java.net.URI"/>
  9010. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9011. <exception name="IOException" type="java.io.IOException"/>
  9012. <doc>
  9013. <![CDATA[Called after a new FileSystem instance is constructed.
  9014. @param name a uri whose authority section names the host, port, etc.
  9015. for this FileSystem
  9016. @param conf the configuration]]>
  9017. </doc>
  9018. </method>
  9019. <method name="getUri" return="java.net.URI"
  9020. abstract="false" native="false" synchronized="false"
  9021. static="false" final="false" visibility="public"
  9022. deprecated="not deprecated">
  9023. <doc>
  9024. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  9025. </doc>
  9026. </method>
  9027. <method name="getName" return="java.lang.String"
  9028. abstract="false" native="false" synchronized="false"
  9029. static="false" final="false" visibility="public"
  9030. deprecated="call #getUri() instead.">
  9031. <doc>
  9032. <![CDATA[@deprecated call #getUri() instead.]]>
  9033. </doc>
  9034. </method>
  9035. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  9036. abstract="false" native="false" synchronized="false"
  9037. static="false" final="false" visibility="public"
  9038. deprecated="not deprecated">
  9039. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9040. <doc>
  9041. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  9042. </doc>
  9043. </method>
  9044. <method name="checkPath"
  9045. abstract="false" native="false" synchronized="false"
  9046. static="false" final="false" visibility="protected"
  9047. deprecated="not deprecated">
  9048. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9049. <doc>
  9050. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  9051. </doc>
  9052. </method>
  9053. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9054. abstract="false" native="false" synchronized="false"
  9055. static="false" final="false" visibility="public"
  9056. deprecated="not deprecated">
  9057. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9058. <param name="start" type="long"/>
  9059. <param name="len" type="long"/>
  9060. <exception name="IOException" type="java.io.IOException"/>
  9061. <doc>
  9062. <![CDATA[Return an array containing hostnames, offset and size of
  9063. portions of the given file. For a nonexistent
  9064. file or regions, null will be returned.
  9065. This call is most helpful with DFS, where it returns
  9066. hostnames of machines that contain the given file.
  9067. The FileSystem will simply return an elt containing 'localhost'.]]>
  9068. </doc>
  9069. </method>
  9070. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9071. abstract="false" native="false" synchronized="false"
  9072. static="false" final="false" visibility="public"
  9073. deprecated="not deprecated">
  9074. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9075. <param name="bufferSize" type="int"/>
  9076. <exception name="IOException" type="java.io.IOException"/>
  9077. <doc>
  9078. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9079. @param f the file name to open
  9080. @param bufferSize the size of the buffer to be used.]]>
  9081. </doc>
  9082. </method>
  9083. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9084. abstract="false" native="false" synchronized="false"
  9085. static="false" final="false" visibility="public"
  9086. deprecated="not deprecated">
  9087. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9088. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9089. <param name="overwrite" type="boolean"/>
  9090. <param name="bufferSize" type="int"/>
  9091. <param name="replication" type="short"/>
  9092. <param name="blockSize" type="long"/>
  9093. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9094. <exception name="IOException" type="java.io.IOException"/>
  9095. <doc>
  9096. <![CDATA[{@inheritDoc}]]>
  9097. </doc>
  9098. </method>
  9099. <method name="setReplication" return="boolean"
  9100. abstract="false" native="false" synchronized="false"
  9101. static="false" final="false" visibility="public"
  9102. deprecated="not deprecated">
  9103. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9104. <param name="replication" type="short"/>
  9105. <exception name="IOException" type="java.io.IOException"/>
  9106. <doc>
  9107. <![CDATA[Set replication for an existing file.
  9108. @param src file name
  9109. @param replication new replication
  9110. @throws IOException
  9111. @return true if successful;
  9112. false if file does not exist or is a directory]]>
  9113. </doc>
  9114. </method>
  9115. <method name="rename" return="boolean"
  9116. abstract="false" native="false" synchronized="false"
  9117. static="false" final="false" visibility="public"
  9118. deprecated="not deprecated">
  9119. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9120. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9121. <exception name="IOException" type="java.io.IOException"/>
  9122. <doc>
  9123. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  9124. or remote DFS.]]>
  9125. </doc>
  9126. </method>
  9127. <method name="delete" return="boolean"
  9128. abstract="false" native="false" synchronized="false"
  9129. static="false" final="false" visibility="public"
  9130. deprecated="not deprecated">
  9131. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9132. <exception name="IOException" type="java.io.IOException"/>
  9133. <doc>
  9134. <![CDATA[Delete a file]]>
  9135. </doc>
  9136. </method>
  9137. <method name="delete" return="boolean"
  9138. abstract="false" native="false" synchronized="false"
  9139. static="false" final="false" visibility="public"
  9140. deprecated="not deprecated">
  9141. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9142. <param name="recursive" type="boolean"/>
  9143. <exception name="IOException" type="java.io.IOException"/>
  9144. <doc>
  9145. <![CDATA[Delete a file]]>
  9146. </doc>
  9147. </method>
  9148. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9149. abstract="false" native="false" synchronized="false"
  9150. static="false" final="false" visibility="public"
  9151. deprecated="not deprecated">
  9152. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9153. <exception name="IOException" type="java.io.IOException"/>
  9154. <doc>
  9155. <![CDATA[List files in a directory.]]>
  9156. </doc>
  9157. </method>
  9158. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9159. abstract="false" native="false" synchronized="false"
  9160. static="false" final="false" visibility="public"
  9161. deprecated="not deprecated">
  9162. </method>
  9163. <method name="setWorkingDirectory"
  9164. abstract="false" native="false" synchronized="false"
  9165. static="false" final="false" visibility="public"
  9166. deprecated="not deprecated">
  9167. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  9168. <doc>
  9169. <![CDATA[Set the current working directory for the given file system. All relative
  9170. paths will be resolved relative to it.
  9171. @param newDir]]>
  9172. </doc>
  9173. </method>
  9174. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9175. abstract="false" native="false" synchronized="false"
  9176. static="false" final="false" visibility="public"
  9177. deprecated="not deprecated">
  9178. <doc>
  9179. <![CDATA[Get the current working directory for the given file system
  9180. @return the directory pathname]]>
  9181. </doc>
  9182. </method>
  9183. <method name="mkdirs" return="boolean"
  9184. abstract="false" native="false" synchronized="false"
  9185. static="false" final="false" visibility="public"
  9186. deprecated="not deprecated">
  9187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9188. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9189. <exception name="IOException" type="java.io.IOException"/>
  9190. <doc>
  9191. <![CDATA[{@inheritDoc}]]>
  9192. </doc>
  9193. </method>
  9194. <method name="copyFromLocalFile"
  9195. abstract="false" native="false" synchronized="false"
  9196. static="false" final="false" visibility="public"
  9197. deprecated="not deprecated">
  9198. <param name="delSrc" type="boolean"/>
  9199. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9200. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9201. <exception name="IOException" type="java.io.IOException"/>
  9202. <doc>
  9203. <![CDATA[The src file is on the local disk. Add it to FS at
  9204. the given dst name.
  9205. delSrc indicates if the source should be removed]]>
  9206. </doc>
  9207. </method>
  9208. <method name="copyToLocalFile"
  9209. abstract="false" native="false" synchronized="false"
  9210. static="false" final="false" visibility="public"
  9211. deprecated="not deprecated">
  9212. <param name="delSrc" type="boolean"/>
  9213. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9214. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9215. <exception name="IOException" type="java.io.IOException"/>
  9216. <doc>
  9217. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9218. Copy it from FS control to the local dst name.
  9219. delSrc indicates if the src will be removed or not.]]>
  9220. </doc>
  9221. </method>
  9222. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9223. abstract="false" native="false" synchronized="false"
  9224. static="false" final="false" visibility="public"
  9225. deprecated="not deprecated">
  9226. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9227. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9228. <exception name="IOException" type="java.io.IOException"/>
  9229. <doc>
  9230. <![CDATA[Returns a local File that the user can write output to. The caller
  9231. provides both the eventual FS target name and the local working
  9232. file. If the FS is local, we write directly into the target. If
  9233. the FS is remote, we write into the tmp local area.]]>
  9234. </doc>
  9235. </method>
  9236. <method name="completeLocalOutput"
  9237. abstract="false" native="false" synchronized="false"
  9238. static="false" final="false" visibility="public"
  9239. deprecated="not deprecated">
  9240. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9241. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9242. <exception name="IOException" type="java.io.IOException"/>
  9243. <doc>
  9244. <![CDATA[Called when we're all done writing to the target. A local FS will
  9245. do nothing, because we've written to exactly the right place. A remote
  9246. FS will copy the contents of tmpLocalFile to the correct target at
  9247. fsOutputFile.]]>
  9248. </doc>
  9249. </method>
  9250. <method name="getDefaultBlockSize" return="long"
  9251. abstract="false" native="false" synchronized="false"
  9252. static="false" final="false" visibility="public"
  9253. deprecated="not deprecated">
  9254. <doc>
  9255. <![CDATA[Return the number of bytes that large input files should be optimally
  9256. be split into to minimize i/o time.]]>
  9257. </doc>
  9258. </method>
  9259. <method name="getDefaultReplication" return="short"
  9260. abstract="false" native="false" synchronized="false"
  9261. static="false" final="false" visibility="public"
  9262. deprecated="not deprecated">
  9263. <doc>
  9264. <![CDATA[Get the default replication.]]>
  9265. </doc>
  9266. </method>
  9267. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9268. abstract="false" native="false" synchronized="false"
  9269. static="false" final="false" visibility="public"
  9270. deprecated="not deprecated">
  9271. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9272. <exception name="IOException" type="java.io.IOException"/>
  9273. <doc>
  9274. <![CDATA[Get file status.]]>
  9275. </doc>
  9276. </method>
  9277. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9278. abstract="false" native="false" synchronized="false"
  9279. static="false" final="false" visibility="public"
  9280. deprecated="not deprecated">
  9281. </method>
  9282. <method name="close"
  9283. abstract="false" native="false" synchronized="false"
  9284. static="false" final="false" visibility="public"
  9285. deprecated="not deprecated">
  9286. <exception name="IOException" type="java.io.IOException"/>
  9287. </method>
  9288. <method name="setOwner"
  9289. abstract="false" native="false" synchronized="false"
  9290. static="false" final="false" visibility="public"
  9291. deprecated="not deprecated">
  9292. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9293. <param name="username" type="java.lang.String"/>
  9294. <param name="groupname" type="java.lang.String"/>
  9295. <exception name="IOException" type="java.io.IOException"/>
  9296. <doc>
  9297. <![CDATA[{@inheritDoc}]]>
  9298. </doc>
  9299. </method>
  9300. <method name="setPermission"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9305. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9306. <exception name="IOException" type="java.io.IOException"/>
  9307. <doc>
  9308. <![CDATA[{@inheritDoc}]]>
  9309. </doc>
  9310. </method>
  9311. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  9312. transient="false" volatile="false"
  9313. static="false" final="false" visibility="protected"
  9314. deprecated="not deprecated">
  9315. </field>
  9316. <doc>
  9317. <![CDATA[A <code>FilterFileSystem</code> contains
  9318. some other file system, which it uses as
  9319. its basic file system, possibly transforming
  9320. the data along the way or providing additional
  9321. functionality. The class <code>FilterFileSystem</code>
  9322. itself simply overrides all methods of
  9323. <code>FileSystem</code> with versions that
  9324. pass all requests to the contained file
  9325. system. Subclasses of <code>FilterFileSystem</code>
  9326. may further override some of these methods
  9327. and may also provide additional methods
  9328. and fields.]]>
  9329. </doc>
  9330. </class>
  9331. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  9332. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  9333. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  9334. abstract="false"
  9335. static="false" final="false" visibility="public"
  9336. deprecated="not deprecated">
  9337. <implements name="org.apache.hadoop.fs.Seekable"/>
  9338. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  9339. <constructor name="FSDataInputStream" type="java.io.InputStream"
  9340. static="false" final="false" visibility="public"
  9341. deprecated="not deprecated">
  9342. <exception name="IOException" type="java.io.IOException"/>
  9343. </constructor>
  9344. <method name="seek"
  9345. abstract="false" native="false" synchronized="true"
  9346. static="false" final="false" visibility="public"
  9347. deprecated="not deprecated">
  9348. <param name="desired" type="long"/>
  9349. <exception name="IOException" type="java.io.IOException"/>
  9350. </method>
  9351. <method name="getPos" return="long"
  9352. abstract="false" native="false" synchronized="false"
  9353. static="false" final="false" visibility="public"
  9354. deprecated="not deprecated">
  9355. <exception name="IOException" type="java.io.IOException"/>
  9356. </method>
  9357. <method name="read" return="int"
  9358. abstract="false" native="false" synchronized="false"
  9359. static="false" final="false" visibility="public"
  9360. deprecated="not deprecated">
  9361. <param name="position" type="long"/>
  9362. <param name="buffer" type="byte[]"/>
  9363. <param name="offset" type="int"/>
  9364. <param name="length" type="int"/>
  9365. <exception name="IOException" type="java.io.IOException"/>
  9366. </method>
  9367. <method name="readFully"
  9368. abstract="false" native="false" synchronized="false"
  9369. static="false" final="false" visibility="public"
  9370. deprecated="not deprecated">
  9371. <param name="position" type="long"/>
  9372. <param name="buffer" type="byte[]"/>
  9373. <param name="offset" type="int"/>
  9374. <param name="length" type="int"/>
  9375. <exception name="IOException" type="java.io.IOException"/>
  9376. </method>
  9377. <method name="readFully"
  9378. abstract="false" native="false" synchronized="false"
  9379. static="false" final="false" visibility="public"
  9380. deprecated="not deprecated">
  9381. <param name="position" type="long"/>
  9382. <param name="buffer" type="byte[]"/>
  9383. <exception name="IOException" type="java.io.IOException"/>
  9384. </method>
  9385. <method name="seekToNewSource" return="boolean"
  9386. abstract="false" native="false" synchronized="false"
  9387. static="false" final="false" visibility="public"
  9388. deprecated="not deprecated">
  9389. <param name="targetPos" type="long"/>
  9390. <exception name="IOException" type="java.io.IOException"/>
  9391. </method>
  9392. <doc>
  9393. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  9394. and buffers input through a {@link BufferedInputStream}.]]>
  9395. </doc>
  9396. </class>
  9397. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  9398. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  9399. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  9400. abstract="false"
  9401. static="false" final="false" visibility="public"
  9402. deprecated="not deprecated">
  9403. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  9404. static="false" final="false" visibility="public"
  9405. deprecated="not deprecated">
  9406. <exception name="IOException" type="java.io.IOException"/>
  9407. </constructor>
  9408. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  9409. static="false" final="false" visibility="public"
  9410. deprecated="not deprecated">
  9411. <exception name="IOException" type="java.io.IOException"/>
  9412. </constructor>
  9413. <method name="getPos" return="long"
  9414. abstract="false" native="false" synchronized="false"
  9415. static="false" final="false" visibility="public"
  9416. deprecated="not deprecated">
  9417. <exception name="IOException" type="java.io.IOException"/>
  9418. </method>
  9419. <method name="close"
  9420. abstract="false" native="false" synchronized="false"
  9421. static="false" final="false" visibility="public"
  9422. deprecated="not deprecated">
  9423. <exception name="IOException" type="java.io.IOException"/>
  9424. </method>
  9425. <method name="getWrappedStream" return="java.io.OutputStream"
  9426. abstract="false" native="false" synchronized="false"
  9427. static="false" final="false" visibility="public"
  9428. deprecated="not deprecated">
  9429. </method>
  9430. <doc>
  9431. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  9432. buffers output through a {@link BufferedOutputStream} and creates a checksum
  9433. file.]]>
  9434. </doc>
  9435. </class>
  9436. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  9437. <!-- start class org.apache.hadoop.fs.FSError -->
  9438. <class name="FSError" extends="java.lang.Error"
  9439. abstract="false"
  9440. static="false" final="false" visibility="public"
  9441. deprecated="not deprecated">
  9442. <doc>
  9443. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  9444. in the native filesystem.]]>
  9445. </doc>
  9446. </class>
  9447. <!-- end class org.apache.hadoop.fs.FSError -->
  9448. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  9449. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  9450. abstract="true"
  9451. static="false" final="false" visibility="public"
  9452. deprecated="not deprecated">
  9453. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  9454. static="false" final="false" visibility="protected"
  9455. deprecated="not deprecated">
  9456. <doc>
  9457. <![CDATA[Constructor
  9458. @param file The name of the file to be read
  9459. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  9460. </doc>
  9461. </constructor>
  9462. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  9463. static="false" final="false" visibility="protected"
  9464. deprecated="not deprecated">
  9465. <doc>
  9466. <![CDATA[Constructor
  9467. @param file The name of the file to be read
  9468. @param numOfRetries Number of read retries when ChecksumError occurs
  9469. @param sum the type of Checksum engine
  9470. @param chunkSize maximun chunk size
  9471. @param checksumSize the number byte of each checksum]]>
  9472. </doc>
  9473. </constructor>
  9474. <method name="readChunk" return="int"
  9475. abstract="true" native="false" synchronized="false"
  9476. static="false" final="false" visibility="protected"
  9477. deprecated="not deprecated">
  9478. <param name="pos" type="long"/>
  9479. <param name="buf" type="byte[]"/>
  9480. <param name="offset" type="int"/>
  9481. <param name="len" type="int"/>
  9482. <param name="checksum" type="byte[]"/>
  9483. <exception name="IOException" type="java.io.IOException"/>
  9484. <doc>
  9485. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  9486. and checksum into <code>checksum</code>.
  9487. The method is used for implementing read, therefore, it should be optimized
  9488. for sequential reading
  9489. @param pos chunkPos
  9490. @param buf desitination buffer
  9491. @param offset offset in buf at which to store data
  9492. @param len maximun number of bytes to read
  9493. @return number of bytes read]]>
  9494. </doc>
  9495. </method>
  9496. <method name="getChunkPosition" return="long"
  9497. abstract="true" native="false" synchronized="false"
  9498. static="false" final="false" visibility="protected"
  9499. deprecated="not deprecated">
  9500. <param name="pos" type="long"/>
  9501. <doc>
  9502. <![CDATA[Return position of beginning of chunk containing pos.
  9503. @param pos a postion in the file
  9504. @return the starting position of the chunk which contains the byte]]>
  9505. </doc>
  9506. </method>
  9507. <method name="needChecksum" return="boolean"
  9508. abstract="false" native="false" synchronized="true"
  9509. static="false" final="false" visibility="protected"
  9510. deprecated="not deprecated">
  9511. <doc>
  9512. <![CDATA[Return true if there is a need for checksum verification]]>
  9513. </doc>
  9514. </method>
  9515. <method name="read" return="int"
  9516. abstract="false" native="false" synchronized="true"
  9517. static="false" final="false" visibility="public"
  9518. deprecated="not deprecated">
  9519. <exception name="IOException" type="java.io.IOException"/>
  9520. <doc>
  9521. <![CDATA[Read one checksum-verified byte
  9522. @return the next byte of data, or <code>-1</code> if the end of the
  9523. stream is reached.
  9524. @exception IOException if an I/O error occurs.]]>
  9525. </doc>
  9526. </method>
  9527. <method name="read" return="int"
  9528. abstract="false" native="false" synchronized="true"
  9529. static="false" final="false" visibility="public"
  9530. deprecated="not deprecated">
  9531. <param name="b" type="byte[]"/>
  9532. <param name="off" type="int"/>
  9533. <param name="len" type="int"/>
  9534. <exception name="IOException" type="java.io.IOException"/>
  9535. <doc>
  9536. <![CDATA[Read checksum verified bytes from this byte-input stream into
  9537. the specified byte array, starting at the given offset.
  9538. <p> This method implements the general contract of the corresponding
  9539. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  9540. the <code>{@link InputStream}</code> class. As an additional
  9541. convenience, it attempts to read as many bytes as possible by repeatedly
  9542. invoking the <code>read</code> method of the underlying stream. This
  9543. iterated <code>read</code> continues until one of the following
  9544. conditions becomes true: <ul>
  9545. <li> The specified number of bytes have been read,
  9546. <li> The <code>read</code> method of the underlying stream returns
  9547. <code>-1</code>, indicating end-of-file.
  9548. </ul> If the first <code>read</code> on the underlying stream returns
  9549. <code>-1</code> to indicate end-of-file then this method returns
  9550. <code>-1</code>. Otherwise this method returns the number of bytes
  9551. actually read.
  9552. @param b destination buffer.
  9553. @param off offset at which to start storing bytes.
  9554. @param len maximum number of bytes to read.
  9555. @return the number of bytes read, or <code>-1</code> if the end of
  9556. the stream has been reached.
  9557. @exception IOException if an I/O error occurs.
  9558. ChecksumException if any checksum error occurs]]>
  9559. </doc>
  9560. </method>
  9561. <method name="getPos" return="long"
  9562. abstract="false" native="false" synchronized="true"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. <exception name="IOException" type="java.io.IOException"/>
  9566. </method>
  9567. <method name="available" return="int"
  9568. abstract="false" native="false" synchronized="true"
  9569. static="false" final="false" visibility="public"
  9570. deprecated="not deprecated">
  9571. <exception name="IOException" type="java.io.IOException"/>
  9572. </method>
  9573. <method name="skip" return="long"
  9574. abstract="false" native="false" synchronized="true"
  9575. static="false" final="false" visibility="public"
  9576. deprecated="not deprecated">
  9577. <param name="n" type="long"/>
  9578. <exception name="IOException" type="java.io.IOException"/>
  9579. <doc>
  9580. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  9581. input stream.
  9582. <p>This method may skip more bytes than are remaining in the backing
  9583. file. This produces no exception and the number of bytes skipped
  9584. may include some number of bytes that were beyond the EOF of the
  9585. backing file. Attempting to read from the stream after skipping past
  9586. the end will result in -1 indicating the end of the file.
  9587. <p>If <code>n</code> is negative, no bytes are skipped.
  9588. @param n the number of bytes to be skipped.
  9589. @return the actual number of bytes skipped.
  9590. @exception IOException if an I/O error occurs.
  9591. ChecksumException if the chunk to skip to is corrupted]]>
  9592. </doc>
  9593. </method>
  9594. <method name="seek"
  9595. abstract="false" native="false" synchronized="true"
  9596. static="false" final="false" visibility="public"
  9597. deprecated="not deprecated">
  9598. <param name="pos" type="long"/>
  9599. <exception name="IOException" type="java.io.IOException"/>
  9600. <doc>
  9601. <![CDATA[Seek to the given position in the stream.
  9602. The next read() will be from that position.
  9603. <p>This method may seek past the end of the file.
  9604. This produces no exception and an attempt to read from
  9605. the stream will result in -1 indicating the end of the file.
  9606. @param pos the postion to seek to.
  9607. @exception IOException if an I/O error occurs.
  9608. ChecksumException if the chunk to seek to is corrupted]]>
  9609. </doc>
  9610. </method>
  9611. <method name="readFully" return="int"
  9612. abstract="false" native="false" synchronized="false"
  9613. static="true" final="false" visibility="protected"
  9614. deprecated="not deprecated">
  9615. <param name="stm" type="java.io.InputStream"/>
  9616. <param name="buf" type="byte[]"/>
  9617. <param name="offset" type="int"/>
  9618. <param name="len" type="int"/>
  9619. <exception name="IOException" type="java.io.IOException"/>
  9620. <doc>
  9621. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  9622. <code>stm</code>
  9623. @param stm an input stream
  9624. @param buf destiniation buffer
  9625. @param offset offset at which to store data
  9626. @param len number of bytes to read
  9627. @return actual number of bytes read
  9628. @throws IOException if there is any IO error]]>
  9629. </doc>
  9630. </method>
  9631. <method name="set"
  9632. abstract="false" native="false" synchronized="true"
  9633. static="false" final="true" visibility="protected"
  9634. deprecated="not deprecated">
  9635. <param name="sum" type="java.util.zip.Checksum"/>
  9636. <param name="maxChunkSize" type="int"/>
  9637. <param name="checksumSize" type="int"/>
  9638. <doc>
  9639. <![CDATA[Set the checksum related parameters
  9640. @param sum which type of checksum to use
  9641. @param maxChunkSize maximun chunk size
  9642. @param checksumSize checksum size]]>
  9643. </doc>
  9644. </method>
  9645. <method name="markSupported" return="boolean"
  9646. abstract="false" native="false" synchronized="false"
  9647. static="false" final="true" visibility="public"
  9648. deprecated="not deprecated">
  9649. </method>
  9650. <method name="mark"
  9651. abstract="false" native="false" synchronized="false"
  9652. static="false" final="true" visibility="public"
  9653. deprecated="not deprecated">
  9654. <param name="readlimit" type="int"/>
  9655. </method>
  9656. <method name="reset"
  9657. abstract="false" native="false" synchronized="false"
  9658. static="false" final="true" visibility="public"
  9659. deprecated="not deprecated">
  9660. <exception name="IOException" type="java.io.IOException"/>
  9661. </method>
  9662. <field name="LOG" type="org.apache.commons.logging.Log"
  9663. transient="false" volatile="false"
  9664. static="true" final="true" visibility="public"
  9665. deprecated="not deprecated">
  9666. </field>
  9667. <field name="file" type="org.apache.hadoop.fs.Path"
  9668. transient="false" volatile="false"
  9669. static="false" final="false" visibility="protected"
  9670. deprecated="not deprecated">
  9671. <doc>
  9672. <![CDATA[The file name from which data is read from]]>
  9673. </doc>
  9674. </field>
  9675. <doc>
  9676. <![CDATA[This is a generic input stream for verifying checksums for
  9677. data before it is read by a user.]]>
  9678. </doc>
  9679. </class>
  9680. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  9681. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  9682. <class name="FSInputStream" extends="java.io.InputStream"
  9683. abstract="true"
  9684. static="false" final="false" visibility="public"
  9685. deprecated="not deprecated">
  9686. <implements name="org.apache.hadoop.fs.Seekable"/>
  9687. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  9688. <constructor name="FSInputStream"
  9689. static="false" final="false" visibility="public"
  9690. deprecated="not deprecated">
  9691. </constructor>
  9692. <method name="seek"
  9693. abstract="true" native="false" synchronized="false"
  9694. static="false" final="false" visibility="public"
  9695. deprecated="not deprecated">
  9696. <param name="pos" type="long"/>
  9697. <exception name="IOException" type="java.io.IOException"/>
  9698. <doc>
  9699. <![CDATA[Seek to the given offset from the start of the file.
  9700. The next read() will be from that location. Can't
  9701. seek past the end of the file.]]>
  9702. </doc>
  9703. </method>
  9704. <method name="getPos" return="long"
  9705. abstract="true" native="false" synchronized="false"
  9706. static="false" final="false" visibility="public"
  9707. deprecated="not deprecated">
  9708. <exception name="IOException" type="java.io.IOException"/>
  9709. <doc>
  9710. <![CDATA[Return the current offset from the start of the file]]>
  9711. </doc>
  9712. </method>
  9713. <method name="seekToNewSource" return="boolean"
  9714. abstract="true" native="false" synchronized="false"
  9715. static="false" final="false" visibility="public"
  9716. deprecated="not deprecated">
  9717. <param name="targetPos" type="long"/>
  9718. <exception name="IOException" type="java.io.IOException"/>
  9719. <doc>
  9720. <![CDATA[Seeks a different copy of the data. Returns true if
  9721. found a new source, false otherwise.]]>
  9722. </doc>
  9723. </method>
  9724. <method name="read" return="int"
  9725. abstract="false" native="false" synchronized="false"
  9726. static="false" final="false" visibility="public"
  9727. deprecated="not deprecated">
  9728. <param name="position" type="long"/>
  9729. <param name="buffer" type="byte[]"/>
  9730. <param name="offset" type="int"/>
  9731. <param name="length" type="int"/>
  9732. <exception name="IOException" type="java.io.IOException"/>
  9733. </method>
  9734. <method name="readFully"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="position" type="long"/>
  9739. <param name="buffer" type="byte[]"/>
  9740. <param name="offset" type="int"/>
  9741. <param name="length" type="int"/>
  9742. <exception name="IOException" type="java.io.IOException"/>
  9743. </method>
  9744. <method name="readFully"
  9745. abstract="false" native="false" synchronized="false"
  9746. static="false" final="false" visibility="public"
  9747. deprecated="not deprecated">
  9748. <param name="position" type="long"/>
  9749. <param name="buffer" type="byte[]"/>
  9750. <exception name="IOException" type="java.io.IOException"/>
  9751. </method>
  9752. <doc>
  9753. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  9754. of RAF-style seek ability.]]>
  9755. </doc>
  9756. </class>
  9757. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  9758. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  9759. <class name="FSOutputSummer" extends="java.io.OutputStream"
  9760. abstract="true"
  9761. static="false" final="false" visibility="public"
  9762. deprecated="not deprecated">
  9763. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  9764. static="false" final="false" visibility="protected"
  9765. deprecated="not deprecated">
  9766. </constructor>
  9767. <method name="writeChunk"
  9768. abstract="true" native="false" synchronized="false"
  9769. static="false" final="false" visibility="protected"
  9770. deprecated="not deprecated">
  9771. <param name="b" type="byte[]"/>
  9772. <param name="offset" type="int"/>
  9773. <param name="len" type="int"/>
  9774. <param name="checksum" type="byte[]"/>
  9775. <exception name="IOException" type="java.io.IOException"/>
  9776. </method>
  9777. <method name="write"
  9778. abstract="false" native="false" synchronized="true"
  9779. static="false" final="false" visibility="public"
  9780. deprecated="not deprecated">
  9781. <param name="b" type="int"/>
  9782. <exception name="IOException" type="java.io.IOException"/>
  9783. <doc>
  9784. <![CDATA[Write one byte]]>
  9785. </doc>
  9786. </method>
  9787. <method name="write"
  9788. abstract="false" native="false" synchronized="true"
  9789. static="false" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <param name="b" type="byte[]"/>
  9792. <param name="off" type="int"/>
  9793. <param name="len" type="int"/>
  9794. <exception name="IOException" type="java.io.IOException"/>
  9795. <doc>
  9796. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  9797. starting at offset <code>off</code> and generate a checksum for
  9798. each data chunk.
  9799. <p> This method stores bytes from the given array into this
  9800. stream's buffer before it gets checksumed. The buffer gets checksumed
  9801. and flushed to the underlying output stream when all data
  9802. in a checksum chunk are in the buffer. If the buffer is empty and
  9803. requested length is at least as large as the size of next checksum chunk
  9804. size, this method will checksum and write the chunk directly
  9805. to the underlying output stream. Thus it avoids uneccessary data copy.
  9806. @param b the data.
  9807. @param off the start offset in the data.
  9808. @param len the number of bytes to write.
  9809. @exception IOException if an I/O error occurs.]]>
  9810. </doc>
  9811. </method>
  9812. <method name="flushBuffer"
  9813. abstract="false" native="false" synchronized="true"
  9814. static="false" final="false" visibility="protected"
  9815. deprecated="not deprecated">
  9816. <exception name="IOException" type="java.io.IOException"/>
  9817. </method>
  9818. <method name="flushBuffer"
  9819. abstract="false" native="false" synchronized="true"
  9820. static="false" final="false" visibility="protected"
  9821. deprecated="not deprecated">
  9822. <param name="keep" type="boolean"/>
  9823. <exception name="IOException" type="java.io.IOException"/>
  9824. </method>
  9825. <doc>
  9826. <![CDATA[This is a generic output stream for generating checksums for
  9827. data before it is written to the underlying stream]]>
  9828. </doc>
  9829. </class>
  9830. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  9831. <!-- start class org.apache.hadoop.fs.FsShell -->
  9832. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  9833. abstract="false"
  9834. static="false" final="false" visibility="public"
  9835. deprecated="not deprecated">
  9836. <implements name="org.apache.hadoop.util.Tool"/>
  9837. <constructor name="FsShell"
  9838. static="false" final="false" visibility="public"
  9839. deprecated="not deprecated">
  9840. </constructor>
  9841. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  9842. static="false" final="false" visibility="public"
  9843. deprecated="not deprecated">
  9844. </constructor>
  9845. <method name="init"
  9846. abstract="false" native="false" synchronized="false"
  9847. static="false" final="false" visibility="protected"
  9848. deprecated="not deprecated">
  9849. <exception name="IOException" type="java.io.IOException"/>
  9850. </method>
  9851. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  9852. abstract="false" native="false" synchronized="false"
  9853. static="false" final="false" visibility="public"
  9854. deprecated="not deprecated">
  9855. <doc>
  9856. <![CDATA[Returns the Trash object associated with this shell.]]>
  9857. </doc>
  9858. </method>
  9859. <method name="byteDesc" return="java.lang.String"
  9860. abstract="false" native="false" synchronized="false"
  9861. static="true" final="false" visibility="public"
  9862. deprecated="not deprecated">
  9863. <param name="len" type="long"/>
  9864. <doc>
  9865. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  9866. </doc>
  9867. </method>
  9868. <method name="limitDecimalTo2" return="java.lang.String"
  9869. abstract="false" native="false" synchronized="true"
  9870. static="true" final="false" visibility="public"
  9871. deprecated="not deprecated">
  9872. <param name="d" type="double"/>
  9873. </method>
  9874. <method name="run" return="int"
  9875. abstract="false" native="false" synchronized="false"
  9876. static="false" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. <param name="argv" type="java.lang.String[]"/>
  9879. <exception name="Exception" type="java.lang.Exception"/>
  9880. <doc>
  9881. <![CDATA[run]]>
  9882. </doc>
  9883. </method>
  9884. <method name="close"
  9885. abstract="false" native="false" synchronized="false"
  9886. static="false" final="false" visibility="public"
  9887. deprecated="not deprecated">
  9888. <exception name="IOException" type="java.io.IOException"/>
  9889. </method>
  9890. <method name="main"
  9891. abstract="false" native="false" synchronized="false"
  9892. static="true" final="false" visibility="public"
  9893. deprecated="not deprecated">
  9894. <param name="argv" type="java.lang.String[]"/>
  9895. <exception name="Exception" type="java.lang.Exception"/>
  9896. <doc>
  9897. <![CDATA[main() has some simple utility methods]]>
  9898. </doc>
  9899. </method>
  9900. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  9901. transient="false" volatile="false"
  9902. static="false" final="false" visibility="protected"
  9903. deprecated="not deprecated">
  9904. </field>
  9905. <field name="dateForm" type="java.text.SimpleDateFormat"
  9906. transient="false" volatile="false"
  9907. static="true" final="true" visibility="public"
  9908. deprecated="not deprecated">
  9909. </field>
  9910. <field name="modifFmt" type="java.text.SimpleDateFormat"
  9911. transient="false" volatile="false"
  9912. static="true" final="true" visibility="protected"
  9913. deprecated="not deprecated">
  9914. </field>
  9915. <doc>
  9916. <![CDATA[Provide command line access to a FileSystem.]]>
  9917. </doc>
  9918. </class>
  9919. <!-- end class org.apache.hadoop.fs.FsShell -->
  9920. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  9921. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  9922. abstract="false"
  9923. static="false" final="false" visibility="public"
  9924. deprecated="not deprecated">
  9925. <constructor name="InMemoryFileSystem"
  9926. static="false" final="false" visibility="public"
  9927. deprecated="not deprecated">
  9928. </constructor>
  9929. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  9930. static="false" final="false" visibility="public"
  9931. deprecated="not deprecated">
  9932. </constructor>
  9933. <method name="reserveSpaceWithCheckSum" return="boolean"
  9934. abstract="false" native="false" synchronized="false"
  9935. static="false" final="false" visibility="public"
  9936. deprecated="not deprecated">
  9937. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9938. <param name="size" type="long"/>
  9939. <doc>
  9940. <![CDATA[Register a file with its size. This will also register a checksum for the
  9941. file that the user is trying to create. This is required since none of
  9942. the FileSystem APIs accept the size of the file as argument. But since it
  9943. is required for us to apriori know the size of the file we are going to
  9944. create, the user must call this method for each file he wants to create
  9945. and reserve memory for that file. We either succeed in reserving memory
  9946. for both the main file and the checksum file and return true, or return
  9947. false.]]>
  9948. </doc>
  9949. </method>
  9950. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  9951. abstract="false" native="false" synchronized="false"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9955. </method>
  9956. <method name="getNumFiles" return="int"
  9957. abstract="false" native="false" synchronized="false"
  9958. static="false" final="false" visibility="public"
  9959. deprecated="not deprecated">
  9960. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  9961. </method>
  9962. <method name="getFSSize" return="long"
  9963. abstract="false" native="false" synchronized="false"
  9964. static="false" final="false" visibility="public"
  9965. deprecated="not deprecated">
  9966. </method>
  9967. <method name="getPercentUsed" return="float"
  9968. abstract="false" native="false" synchronized="false"
  9969. static="false" final="false" visibility="public"
  9970. deprecated="not deprecated">
  9971. </method>
  9972. <doc>
  9973. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  9974. that the file lengths are known ahead of time and the total lengths of all
  9975. the files is below a certain number (like 100 MB, configurable). Use the API
  9976. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  9977. the API for reserving space in the FS. The uri of this filesystem starts with
  9978. ramfs:// .]]>
  9979. </doc>
  9980. </class>
  9981. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  9982. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  9983. <class name="LocalDirAllocator" extends="java.lang.Object"
  9984. abstract="false"
  9985. static="false" final="false" visibility="public"
  9986. deprecated="not deprecated">
  9987. <constructor name="LocalDirAllocator" type="java.lang.String"
  9988. static="false" final="false" visibility="public"
  9989. deprecated="not deprecated">
  9990. <doc>
  9991. <![CDATA[Create an allocator object
  9992. @param contextCfgItemName]]>
  9993. </doc>
  9994. </constructor>
  9995. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  9996. abstract="false" native="false" synchronized="false"
  9997. static="false" final="false" visibility="public"
  9998. deprecated="not deprecated">
  9999. <param name="pathStr" type="java.lang.String"/>
  10000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10001. <exception name="IOException" type="java.io.IOException"/>
  10002. <doc>
  10003. <![CDATA[Get a path from the local FS. This method should be used if the size of
  10004. the file is not known apriori. We go round-robin over the set of disks
  10005. (via the configured dirs) and return the first complete path where
  10006. we could create the parent directory of the passed path.
  10007. @param pathStr the requested path (this will be created on the first
  10008. available disk)
  10009. @param conf the Configuration object
  10010. @return the complete path to the file on a local disk
  10011. @throws IOException]]>
  10012. </doc>
  10013. </method>
  10014. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  10015. abstract="false" native="false" synchronized="false"
  10016. static="false" final="false" visibility="public"
  10017. deprecated="not deprecated">
  10018. <param name="pathStr" type="java.lang.String"/>
  10019. <param name="size" type="long"/>
  10020. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10021. <exception name="IOException" type="java.io.IOException"/>
  10022. <doc>
  10023. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  10024. round-robin over the set of disks (via the configured dirs) and return
  10025. the first complete path which has enough space
  10026. @param pathStr the requested path (this will be created on the first
  10027. available disk)
  10028. @param size the size of the file that is going to be written
  10029. @param conf the Configuration object
  10030. @return the complete path to the file on a local disk
  10031. @throws IOException]]>
  10032. </doc>
  10033. </method>
  10034. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  10035. abstract="false" native="false" synchronized="false"
  10036. static="false" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <param name="pathStr" type="java.lang.String"/>
  10039. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10040. <exception name="IOException" type="java.io.IOException"/>
  10041. <doc>
  10042. <![CDATA[Get a path from the local FS for reading. We search through all the
  10043. configured dirs for the file's existence and return the complete
  10044. path to the file when we find one
  10045. @param pathStr the requested file (this will be searched)
  10046. @param conf the Configuration object
  10047. @return the complete path to the file on a local disk
  10048. @throws IOException]]>
  10049. </doc>
  10050. </method>
  10051. <method name="createTmpFileForWrite" return="java.io.File"
  10052. abstract="false" native="false" synchronized="false"
  10053. static="false" final="false" visibility="public"
  10054. deprecated="not deprecated">
  10055. <param name="pathStr" type="java.lang.String"/>
  10056. <param name="size" type="long"/>
  10057. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10058. <exception name="IOException" type="java.io.IOException"/>
  10059. <doc>
  10060. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  10061. apriori. We round-robin over the set of disks (via the configured dirs)
  10062. and select the first complete path which has enough space. A file is
  10063. created on this directory. The file is guaranteed to go away when the
  10064. JVM exits.
  10065. @param pathStr prefix for the temporary file
  10066. @param size the size of the file that is going to be written
  10067. @param conf the Configuration object
  10068. @return a unique temporary file
  10069. @throws IOException]]>
  10070. </doc>
  10071. </method>
  10072. <method name="isContextValid" return="boolean"
  10073. abstract="false" native="false" synchronized="false"
  10074. static="true" final="false" visibility="public"
  10075. deprecated="not deprecated">
  10076. <param name="contextCfgItemName" type="java.lang.String"/>
  10077. <doc>
  10078. <![CDATA[Method to check whether a context is valid
  10079. @param contextCfgItemName
  10080. @return true/false]]>
  10081. </doc>
  10082. </method>
  10083. <method name="ifExists" return="boolean"
  10084. abstract="false" native="false" synchronized="false"
  10085. static="false" final="false" visibility="public"
  10086. deprecated="not deprecated">
  10087. <param name="pathStr" type="java.lang.String"/>
  10088. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10089. <doc>
  10090. <![CDATA[We search through all the configured dirs for the file's existence
  10091. and return true when we find
  10092. @param pathStr the requested file (this will be searched)
  10093. @param conf the Configuration object
  10094. @return true if files exist. false otherwise
  10095. @throws IOException]]>
  10096. </doc>
  10097. </method>
  10098. <doc>
  10099. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  10100. files. The way it works is that it is kept track what disk was last
  10101. allocated for a file write. For the current request, the next disk from
  10102. the set of disks would be allocated if the free space on the disk is
  10103. sufficient enough to accomodate the file that is being considered for
  10104. creation. If the space requirements cannot be met, the next disk in order
  10105. would be tried and so on till a disk is found with sufficient capacity.
  10106. Once a disk with sufficient space is identified, a check is done to make
  10107. sure that the disk is writable. Also, there is an API provided that doesn't
  10108. take the space requirements into consideration but just checks whether the
  10109. disk under consideration is writable (this should be used for cases where
  10110. the file size is not known apriori). An API is provided to read a path that
  10111. was created earlier. That API works by doing a scan of all the disks for the
  10112. input pathname.
  10113. This implementation also provides the functionality of having multiple
  10114. allocators per JVM (one for each unique functionality or context, like
  10115. mapred, dfs-client, etc.). It ensures that there is only one instance of
  10116. an allocator per context per JVM.
  10117. Note:
  10118. 1. The contexts referred above are actually the configuration items defined
  10119. in the Configuration class like "mapred.local.dir" (for which we want to
  10120. control the dir allocations). The context-strings are exactly those
  10121. configuration items.
  10122. 2. This implementation does not take into consideration cases where
  10123. a disk becomes read-only or goes out of space while a file is being written
  10124. to (disks are shared between multiple processes, and so the latter situation
  10125. is probable).
  10126. 3. In the class implementation, "Disk" is referred to as "Dir", which
  10127. actually points to the configured directory on the Disk which will be the
  10128. parent for all file write/read allocations.]]>
  10129. </doc>
  10130. </class>
  10131. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  10132. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  10133. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  10134. abstract="false"
  10135. static="false" final="false" visibility="public"
  10136. deprecated="not deprecated">
  10137. <constructor name="LocalFileSystem"
  10138. static="false" final="false" visibility="public"
  10139. deprecated="not deprecated">
  10140. </constructor>
  10141. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  10142. static="false" final="false" visibility="public"
  10143. deprecated="not deprecated">
  10144. </constructor>
  10145. <method name="pathToFile" return="java.io.File"
  10146. abstract="false" native="false" synchronized="false"
  10147. static="false" final="false" visibility="public"
  10148. deprecated="not deprecated">
  10149. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10150. <doc>
  10151. <![CDATA[Convert a path to a File.]]>
  10152. </doc>
  10153. </method>
  10154. <method name="copyFromLocalFile"
  10155. abstract="false" native="false" synchronized="false"
  10156. static="false" final="false" visibility="public"
  10157. deprecated="not deprecated">
  10158. <param name="delSrc" type="boolean"/>
  10159. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10160. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10161. <exception name="IOException" type="java.io.IOException"/>
  10162. </method>
  10163. <method name="copyToLocalFile"
  10164. abstract="false" native="false" synchronized="false"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. <param name="delSrc" type="boolean"/>
  10168. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10169. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10170. <exception name="IOException" type="java.io.IOException"/>
  10171. </method>
  10172. <method name="reportChecksumFailure" return="boolean"
  10173. abstract="false" native="false" synchronized="false"
  10174. static="false" final="false" visibility="public"
  10175. deprecated="not deprecated">
  10176. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10177. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  10178. <param name="inPos" type="long"/>
  10179. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  10180. <param name="sumsPos" type="long"/>
  10181. <doc>
  10182. <![CDATA[Moves files to a bad file directory on the same device, so that their
  10183. storage will not be reused.]]>
  10184. </doc>
  10185. </method>
  10186. <doc>
  10187. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  10188. </doc>
  10189. </class>
  10190. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  10191. <!-- start class org.apache.hadoop.fs.Path -->
  10192. <class name="Path" extends="java.lang.Object"
  10193. abstract="false"
  10194. static="false" final="false" visibility="public"
  10195. deprecated="not deprecated">
  10196. <implements name="java.lang.Comparable"/>
  10197. <constructor name="Path" type="java.lang.String, java.lang.String"
  10198. static="false" final="false" visibility="public"
  10199. deprecated="not deprecated">
  10200. <doc>
  10201. <![CDATA[Resolve a child path against a parent path.]]>
  10202. </doc>
  10203. </constructor>
  10204. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  10205. static="false" final="false" visibility="public"
  10206. deprecated="not deprecated">
  10207. <doc>
  10208. <![CDATA[Resolve a child path against a parent path.]]>
  10209. </doc>
  10210. </constructor>
  10211. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  10212. static="false" final="false" visibility="public"
  10213. deprecated="not deprecated">
  10214. <doc>
  10215. <![CDATA[Resolve a child path against a parent path.]]>
  10216. </doc>
  10217. </constructor>
  10218. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  10219. static="false" final="false" visibility="public"
  10220. deprecated="not deprecated">
  10221. <doc>
  10222. <![CDATA[Resolve a child path against a parent path.]]>
  10223. </doc>
  10224. </constructor>
  10225. <constructor name="Path" type="java.lang.String"
  10226. static="false" final="false" visibility="public"
  10227. deprecated="not deprecated">
  10228. <doc>
  10229. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  10230. unescaped elements and some additional normalization.]]>
  10231. </doc>
  10232. </constructor>
  10233. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  10234. static="false" final="false" visibility="public"
  10235. deprecated="not deprecated">
  10236. <doc>
  10237. <![CDATA[Construct a Path from components.]]>
  10238. </doc>
  10239. </constructor>
  10240. <method name="toUri" return="java.net.URI"
  10241. abstract="false" native="false" synchronized="false"
  10242. static="false" final="false" visibility="public"
  10243. deprecated="not deprecated">
  10244. <doc>
  10245. <![CDATA[Convert this to a URI.]]>
  10246. </doc>
  10247. </method>
  10248. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  10249. abstract="false" native="false" synchronized="false"
  10250. static="false" final="false" visibility="public"
  10251. deprecated="not deprecated">
  10252. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10253. <exception name="IOException" type="java.io.IOException"/>
  10254. <doc>
  10255. <![CDATA[Return the FileSystem that owns this Path.]]>
  10256. </doc>
  10257. </method>
  10258. <method name="isAbsolute" return="boolean"
  10259. abstract="false" native="false" synchronized="false"
  10260. static="false" final="false" visibility="public"
  10261. deprecated="not deprecated">
  10262. <doc>
  10263. <![CDATA[True if the directory of this path is absolute.]]>
  10264. </doc>
  10265. </method>
  10266. <method name="getName" return="java.lang.String"
  10267. abstract="false" native="false" synchronized="false"
  10268. static="false" final="false" visibility="public"
  10269. deprecated="not deprecated">
  10270. <doc>
  10271. <![CDATA[Returns the final component of this path.]]>
  10272. </doc>
  10273. </method>
  10274. <method name="getParent" return="org.apache.hadoop.fs.Path"
  10275. abstract="false" native="false" synchronized="false"
  10276. static="false" final="false" visibility="public"
  10277. deprecated="not deprecated">
  10278. <doc>
  10279. <![CDATA[Returns the parent of a path or null if at root.]]>
  10280. </doc>
  10281. </method>
  10282. <method name="suffix" return="org.apache.hadoop.fs.Path"
  10283. abstract="false" native="false" synchronized="false"
  10284. static="false" final="false" visibility="public"
  10285. deprecated="not deprecated">
  10286. <param name="suffix" type="java.lang.String"/>
  10287. <doc>
  10288. <![CDATA[Adds a suffix to the final name in the path.]]>
  10289. </doc>
  10290. </method>
  10291. <method name="toString" return="java.lang.String"
  10292. abstract="false" native="false" synchronized="false"
  10293. static="false" final="false" visibility="public"
  10294. deprecated="not deprecated">
  10295. </method>
  10296. <method name="equals" return="boolean"
  10297. abstract="false" native="false" synchronized="false"
  10298. static="false" final="false" visibility="public"
  10299. deprecated="not deprecated">
  10300. <param name="o" type="java.lang.Object"/>
  10301. </method>
  10302. <method name="hashCode" return="int"
  10303. abstract="false" native="false" synchronized="false"
  10304. static="false" final="false" visibility="public"
  10305. deprecated="not deprecated">
  10306. </method>
  10307. <method name="compareTo" return="int"
  10308. abstract="false" native="false" synchronized="false"
  10309. static="false" final="false" visibility="public"
  10310. deprecated="not deprecated">
  10311. <param name="o" type="java.lang.Object"/>
  10312. </method>
  10313. <method name="depth" return="int"
  10314. abstract="false" native="false" synchronized="false"
  10315. static="false" final="false" visibility="public"
  10316. deprecated="not deprecated">
  10317. <doc>
  10318. <![CDATA[Return the number of elements in this path.]]>
  10319. </doc>
  10320. </method>
  10321. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  10322. abstract="false" native="false" synchronized="false"
  10323. static="false" final="false" visibility="public"
  10324. deprecated="not deprecated">
  10325. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  10326. <doc>
  10327. <![CDATA[Returns a qualified path object.]]>
  10328. </doc>
  10329. </method>
  10330. <field name="SEPARATOR" type="java.lang.String"
  10331. transient="false" volatile="false"
  10332. static="true" final="true" visibility="public"
  10333. deprecated="not deprecated">
  10334. <doc>
  10335. <![CDATA[The directory separator, a slash.]]>
  10336. </doc>
  10337. </field>
  10338. <field name="SEPARATOR_CHAR" type="char"
  10339. transient="false" volatile="false"
  10340. static="true" final="true" visibility="public"
  10341. deprecated="not deprecated">
  10342. </field>
  10343. <field name="CUR_DIR" type="java.lang.String"
  10344. transient="false" volatile="false"
  10345. static="true" final="true" visibility="public"
  10346. deprecated="not deprecated">
  10347. </field>
  10348. <doc>
  10349. <![CDATA[Names a file or directory in a {@link FileSystem}.
  10350. Path strings use slash as the directory separator. A path string is
  10351. absolute if it begins with a slash.]]>
  10352. </doc>
  10353. </class>
  10354. <!-- end class org.apache.hadoop.fs.Path -->
  10355. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  10356. <interface name="PathFilter" abstract="true"
  10357. static="false" final="false" visibility="public"
  10358. deprecated="not deprecated">
  10359. <method name="accept" return="boolean"
  10360. abstract="false" native="false" synchronized="false"
  10361. static="false" final="false" visibility="public"
  10362. deprecated="not deprecated">
  10363. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10364. <doc>
  10365. <![CDATA[Tests whether or not the specified abstract pathname should be
  10366. included in a pathname list.
  10367. @param path The abstract pathname to be tested
  10368. @return <code>true</code> if and only if <code>pathname</code>
  10369. should be included]]>
  10370. </doc>
  10371. </method>
  10372. </interface>
  10373. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  10374. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  10375. <interface name="PositionedReadable" abstract="true"
  10376. static="false" final="false" visibility="public"
  10377. deprecated="not deprecated">
  10378. <method name="read" return="int"
  10379. abstract="false" native="false" synchronized="false"
  10380. static="false" final="false" visibility="public"
  10381. deprecated="not deprecated">
  10382. <param name="position" type="long"/>
  10383. <param name="buffer" type="byte[]"/>
  10384. <param name="offset" type="int"/>
  10385. <param name="length" type="int"/>
  10386. <exception name="IOException" type="java.io.IOException"/>
  10387. <doc>
  10388. <![CDATA[Read upto the specified number of bytes, from a given
  10389. position within a file, and return the number of bytes read. This does not
  10390. change the current offset of a file, and is thread-safe.]]>
  10391. </doc>
  10392. </method>
  10393. <method name="readFully"
  10394. abstract="false" native="false" synchronized="false"
  10395. static="false" final="false" visibility="public"
  10396. deprecated="not deprecated">
  10397. <param name="position" type="long"/>
  10398. <param name="buffer" type="byte[]"/>
  10399. <param name="offset" type="int"/>
  10400. <param name="length" type="int"/>
  10401. <exception name="IOException" type="java.io.IOException"/>
  10402. <doc>
  10403. <![CDATA[Read the specified number of bytes, from a given
  10404. position within a file. This does not
  10405. change the current offset of a file, and is thread-safe.]]>
  10406. </doc>
  10407. </method>
  10408. <method name="readFully"
  10409. abstract="false" native="false" synchronized="false"
  10410. static="false" final="false" visibility="public"
  10411. deprecated="not deprecated">
  10412. <param name="position" type="long"/>
  10413. <param name="buffer" type="byte[]"/>
  10414. <exception name="IOException" type="java.io.IOException"/>
  10415. <doc>
  10416. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  10417. position within a file. This does not
  10418. change the current offset of a file, and is thread-safe.]]>
  10419. </doc>
  10420. </method>
  10421. <doc>
  10422. <![CDATA[Stream that permits positional reading.]]>
  10423. </doc>
  10424. </interface>
  10425. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  10426. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  10427. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  10428. abstract="false"
  10429. static="false" final="false" visibility="public"
  10430. deprecated="not deprecated">
  10431. <constructor name="RawLocalFileSystem"
  10432. static="false" final="false" visibility="public"
  10433. deprecated="not deprecated">
  10434. </constructor>
  10435. <method name="pathToFile" return="java.io.File"
  10436. abstract="false" native="false" synchronized="false"
  10437. static="false" final="false" visibility="public"
  10438. deprecated="not deprecated">
  10439. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10440. <doc>
  10441. <![CDATA[Convert a path to a File.]]>
  10442. </doc>
  10443. </method>
  10444. <method name="getName" return="java.lang.String"
  10445. abstract="false" native="false" synchronized="false"
  10446. static="false" final="false" visibility="public"
  10447. deprecated="deprecated, no comment">
  10448. <doc>
  10449. <![CDATA[@deprecated]]>
  10450. </doc>
  10451. </method>
  10452. <method name="getUri" return="java.net.URI"
  10453. abstract="false" native="false" synchronized="false"
  10454. static="false" final="false" visibility="public"
  10455. deprecated="not deprecated">
  10456. </method>
  10457. <method name="initialize"
  10458. abstract="false" native="false" synchronized="false"
  10459. static="false" final="false" visibility="public"
  10460. deprecated="not deprecated">
  10461. <param name="uri" type="java.net.URI"/>
  10462. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10463. </method>
  10464. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  10465. abstract="false" native="false" synchronized="false"
  10466. static="false" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10469. <param name="bufferSize" type="int"/>
  10470. <exception name="IOException" type="java.io.IOException"/>
  10471. </method>
  10472. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10473. abstract="false" native="false" synchronized="false"
  10474. static="false" final="false" visibility="public"
  10475. deprecated="not deprecated">
  10476. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10477. <param name="overwrite" type="boolean"/>
  10478. <param name="bufferSize" type="int"/>
  10479. <param name="replication" type="short"/>
  10480. <param name="blockSize" type="long"/>
  10481. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10482. <exception name="IOException" type="java.io.IOException"/>
  10483. </method>
  10484. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10485. abstract="false" native="false" synchronized="false"
  10486. static="false" final="false" visibility="public"
  10487. deprecated="not deprecated">
  10488. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10489. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10490. <param name="overwrite" type="boolean"/>
  10491. <param name="bufferSize" type="int"/>
  10492. <param name="replication" type="short"/>
  10493. <param name="blockSize" type="long"/>
  10494. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10495. <exception name="IOException" type="java.io.IOException"/>
  10496. <doc>
  10497. <![CDATA[{@inheritDoc}]]>
  10498. </doc>
  10499. </method>
  10500. <method name="rename" return="boolean"
  10501. abstract="false" native="false" synchronized="false"
  10502. static="false" final="false" visibility="public"
  10503. deprecated="not deprecated">
  10504. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10505. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10506. <exception name="IOException" type="java.io.IOException"/>
  10507. </method>
  10508. <method name="delete" return="boolean"
  10509. abstract="false" native="false" synchronized="false"
  10510. static="false" final="false" visibility="public"
  10511. deprecated="not deprecated">
  10512. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10513. <exception name="IOException" type="java.io.IOException"/>
  10514. </method>
  10515. <method name="delete" return="boolean"
  10516. abstract="false" native="false" synchronized="false"
  10517. static="false" final="false" visibility="public"
  10518. deprecated="not deprecated">
  10519. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10520. <param name="recursive" type="boolean"/>
  10521. <exception name="IOException" type="java.io.IOException"/>
  10522. </method>
  10523. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10524. abstract="false" native="false" synchronized="false"
  10525. static="false" final="false" visibility="public"
  10526. deprecated="not deprecated">
  10527. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10528. <exception name="IOException" type="java.io.IOException"/>
  10529. </method>
  10530. <method name="mkdirs" return="boolean"
  10531. abstract="false" native="false" synchronized="false"
  10532. static="false" final="false" visibility="public"
  10533. deprecated="not deprecated">
  10534. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10535. <exception name="IOException" type="java.io.IOException"/>
  10536. <doc>
  10537. <![CDATA[Creates the specified directory hierarchy. Does not
  10538. treat existence as an error.]]>
  10539. </doc>
  10540. </method>
  10541. <method name="mkdirs" return="boolean"
  10542. abstract="false" native="false" synchronized="false"
  10543. static="false" final="false" visibility="public"
  10544. deprecated="not deprecated">
  10545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10546. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10547. <exception name="IOException" type="java.io.IOException"/>
  10548. <doc>
  10549. <![CDATA[{@inheritDoc}]]>
  10550. </doc>
  10551. </method>
  10552. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10553. abstract="false" native="false" synchronized="false"
  10554. static="false" final="false" visibility="public"
  10555. deprecated="not deprecated">
  10556. </method>
  10557. <method name="setWorkingDirectory"
  10558. abstract="false" native="false" synchronized="false"
  10559. static="false" final="false" visibility="public"
  10560. deprecated="not deprecated">
  10561. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  10562. <doc>
  10563. <![CDATA[Set the working directory to the given directory.]]>
  10564. </doc>
  10565. </method>
  10566. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10567. abstract="false" native="false" synchronized="false"
  10568. static="false" final="false" visibility="public"
  10569. deprecated="not deprecated">
  10570. </method>
  10571. <method name="lock"
  10572. abstract="false" native="false" synchronized="false"
  10573. static="false" final="false" visibility="public"
  10574. deprecated="deprecated, no comment">
  10575. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10576. <param name="shared" type="boolean"/>
  10577. <exception name="IOException" type="java.io.IOException"/>
  10578. <doc>
  10579. <![CDATA[@deprecated]]>
  10580. </doc>
  10581. </method>
  10582. <method name="release"
  10583. abstract="false" native="false" synchronized="false"
  10584. static="false" final="false" visibility="public"
  10585. deprecated="deprecated, no comment">
  10586. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10587. <exception name="IOException" type="java.io.IOException"/>
  10588. <doc>
  10589. <![CDATA[@deprecated]]>
  10590. </doc>
  10591. </method>
  10592. <method name="moveFromLocalFile"
  10593. abstract="false" native="false" synchronized="false"
  10594. static="false" final="false" visibility="public"
  10595. deprecated="not deprecated">
  10596. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10597. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10598. <exception name="IOException" type="java.io.IOException"/>
  10599. </method>
  10600. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10601. abstract="false" native="false" synchronized="false"
  10602. static="false" final="false" visibility="public"
  10603. deprecated="not deprecated">
  10604. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10605. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10606. <exception name="IOException" type="java.io.IOException"/>
  10607. </method>
  10608. <method name="completeLocalOutput"
  10609. abstract="false" native="false" synchronized="false"
  10610. static="false" final="false" visibility="public"
  10611. deprecated="not deprecated">
  10612. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  10613. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10614. <exception name="IOException" type="java.io.IOException"/>
  10615. </method>
  10616. <method name="close"
  10617. abstract="false" native="false" synchronized="false"
  10618. static="false" final="false" visibility="public"
  10619. deprecated="not deprecated">
  10620. <exception name="IOException" type="java.io.IOException"/>
  10621. </method>
  10622. <method name="toString" return="java.lang.String"
  10623. abstract="false" native="false" synchronized="false"
  10624. static="false" final="false" visibility="public"
  10625. deprecated="not deprecated">
  10626. </method>
  10627. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10628. abstract="false" native="false" synchronized="false"
  10629. static="false" final="false" visibility="public"
  10630. deprecated="not deprecated">
  10631. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10632. <exception name="IOException" type="java.io.IOException"/>
  10633. </method>
  10634. <method name="setOwner"
  10635. abstract="false" native="false" synchronized="false"
  10636. static="false" final="false" visibility="public"
  10637. deprecated="not deprecated">
  10638. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10639. <param name="username" type="java.lang.String"/>
  10640. <param name="groupname" type="java.lang.String"/>
  10641. <exception name="IOException" type="java.io.IOException"/>
  10642. <doc>
  10643. <![CDATA[Use the command chown to set owner.]]>
  10644. </doc>
  10645. </method>
  10646. <method name="setPermission"
  10647. abstract="false" native="false" synchronized="false"
  10648. static="false" final="false" visibility="public"
  10649. deprecated="not deprecated">
  10650. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10651. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10652. <exception name="IOException" type="java.io.IOException"/>
  10653. <doc>
  10654. <![CDATA[Use the command chmod to set permission.]]>
  10655. </doc>
  10656. </method>
  10657. <doc>
  10658. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  10659. </doc>
  10660. </class>
  10661. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  10662. <!-- start interface org.apache.hadoop.fs.Seekable -->
  10663. <interface name="Seekable" abstract="true"
  10664. static="false" final="false" visibility="public"
  10665. deprecated="not deprecated">
  10666. <method name="seek"
  10667. abstract="false" native="false" synchronized="false"
  10668. static="false" final="false" visibility="public"
  10669. deprecated="not deprecated">
  10670. <param name="pos" type="long"/>
  10671. <exception name="IOException" type="java.io.IOException"/>
  10672. <doc>
  10673. <![CDATA[Seek to the given offset from the start of the file.
  10674. The next read() will be from that location. Can't
  10675. seek past the end of the file.]]>
  10676. </doc>
  10677. </method>
  10678. <method name="getPos" return="long"
  10679. abstract="false" native="false" synchronized="false"
  10680. static="false" final="false" visibility="public"
  10681. deprecated="not deprecated">
  10682. <exception name="IOException" type="java.io.IOException"/>
  10683. <doc>
  10684. <![CDATA[Return the current offset from the start of the file]]>
  10685. </doc>
  10686. </method>
  10687. <method name="seekToNewSource" return="boolean"
  10688. abstract="false" native="false" synchronized="false"
  10689. static="false" final="false" visibility="public"
  10690. deprecated="not deprecated">
  10691. <param name="targetPos" type="long"/>
  10692. <exception name="IOException" type="java.io.IOException"/>
  10693. <doc>
  10694. <![CDATA[Seeks a different copy of the data. Returns true if
  10695. found a new source, false otherwise.]]>
  10696. </doc>
  10697. </method>
  10698. <doc>
  10699. <![CDATA[Stream that permits seeking.]]>
  10700. </doc>
  10701. </interface>
  10702. <!-- end interface org.apache.hadoop.fs.Seekable -->
  10703. <!-- start class org.apache.hadoop.fs.ShellCommand -->
  10704. <class name="ShellCommand" extends="org.apache.hadoop.util.Shell"
  10705. abstract="true"
  10706. static="false" final="false" visibility="public"
  10707. deprecated="Use {@link Shell} instead.">
  10708. <constructor name="ShellCommand"
  10709. static="false" final="false" visibility="public"
  10710. deprecated="not deprecated">
  10711. </constructor>
  10712. <doc>
  10713. <![CDATA[A base class for running a unix command like du or df.
  10714. @deprecated Use {@link Shell} instead.]]>
  10715. </doc>
  10716. </class>
  10717. <!-- end class org.apache.hadoop.fs.ShellCommand -->
  10718. <!-- start class org.apache.hadoop.fs.Trash -->
  10719. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  10720. abstract="false"
  10721. static="false" final="false" visibility="public"
  10722. deprecated="not deprecated">
  10723. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  10724. static="false" final="false" visibility="public"
  10725. deprecated="not deprecated">
  10726. <exception name="IOException" type="java.io.IOException"/>
  10727. <doc>
  10728. <![CDATA[Construct a trash can accessor.
  10729. @param conf a Configuration]]>
  10730. </doc>
  10731. </constructor>
  10732. <method name="moveToTrash" return="boolean"
  10733. abstract="false" native="false" synchronized="false"
  10734. static="false" final="false" visibility="public"
  10735. deprecated="not deprecated">
  10736. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10737. <exception name="IOException" type="java.io.IOException"/>
  10738. <doc>
  10739. <![CDATA[Move a file or directory to the current trash directory.
  10740. @return false if the item is already in the trash or trash is disabled]]>
  10741. </doc>
  10742. </method>
  10743. <method name="checkpoint"
  10744. abstract="false" native="false" synchronized="false"
  10745. static="false" final="false" visibility="public"
  10746. deprecated="not deprecated">
  10747. <exception name="IOException" type="java.io.IOException"/>
  10748. <doc>
  10749. <![CDATA[Create a trash checkpoint.]]>
  10750. </doc>
  10751. </method>
  10752. <method name="expunge"
  10753. abstract="false" native="false" synchronized="false"
  10754. static="false" final="false" visibility="public"
  10755. deprecated="not deprecated">
  10756. <exception name="IOException" type="java.io.IOException"/>
  10757. <doc>
  10758. <![CDATA[Delete old checkpoints.]]>
  10759. </doc>
  10760. </method>
  10761. <method name="getEmptier" return="java.lang.Runnable"
  10762. abstract="false" native="false" synchronized="false"
  10763. static="false" final="false" visibility="public"
  10764. deprecated="not deprecated">
  10765. <exception name="IOException" type="java.io.IOException"/>
  10766. <doc>
  10767. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  10768. users, intended to be run by the superuser. Only one checkpoint is kept
  10769. at a time.]]>
  10770. </doc>
  10771. </method>
  10772. <method name="main"
  10773. abstract="false" native="false" synchronized="false"
  10774. static="true" final="false" visibility="public"
  10775. deprecated="not deprecated">
  10776. <param name="args" type="java.lang.String[]"/>
  10777. <exception name="Exception" type="java.lang.Exception"/>
  10778. <doc>
  10779. <![CDATA[Run an emptier.]]>
  10780. </doc>
  10781. </method>
  10782. <doc>
  10783. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  10784. directory, a subdirectory of their home directory named ".Trash". Files are
  10785. initially moved to a <i>current</i> sub-directory of the trash directory.
  10786. Within that sub-directory their original path is preserved. Periodically
  10787. one may checkpoint the current trash and remove older checkpoints. (This
  10788. design permits trash management without enumeration of the full trash
  10789. content, without date support in the filesystem, and without clock
  10790. synchronization.)]]>
  10791. </doc>
  10792. </class>
  10793. <!-- end class org.apache.hadoop.fs.Trash -->
  10794. <doc>
  10795. <![CDATA[An abstract file system API.]]>
  10796. </doc>
  10797. </package>
  10798. <package name="org.apache.hadoop.fs.kfs">
  10799. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  10800. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  10801. abstract="false"
  10802. static="false" final="false" visibility="public"
  10803. deprecated="not deprecated">
  10804. <constructor name="KosmosFileSystem"
  10805. static="false" final="false" visibility="public"
  10806. deprecated="not deprecated">
  10807. </constructor>
  10808. <method name="getUri" return="java.net.URI"
  10809. abstract="false" native="false" synchronized="false"
  10810. static="false" final="false" visibility="public"
  10811. deprecated="not deprecated">
  10812. </method>
  10813. <method name="initialize"
  10814. abstract="false" native="false" synchronized="false"
  10815. static="false" final="false" visibility="public"
  10816. deprecated="not deprecated">
  10817. <param name="uri" type="java.net.URI"/>
  10818. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10819. <exception name="IOException" type="java.io.IOException"/>
  10820. </method>
  10821. <method name="getName" return="java.lang.String"
  10822. abstract="false" native="false" synchronized="false"
  10823. static="false" final="false" visibility="public"
  10824. deprecated="not deprecated">
  10825. </method>
  10826. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10827. abstract="false" native="false" synchronized="false"
  10828. static="false" final="false" visibility="public"
  10829. deprecated="not deprecated">
  10830. </method>
  10831. <method name="setWorkingDirectory"
  10832. abstract="false" native="false" synchronized="false"
  10833. static="false" final="false" visibility="public"
  10834. deprecated="not deprecated">
  10835. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  10836. </method>
  10837. <method name="mkdirs" return="boolean"
  10838. abstract="false" native="false" synchronized="false"
  10839. static="false" final="false" visibility="public"
  10840. deprecated="not deprecated">
  10841. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10842. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10843. <exception name="IOException" type="java.io.IOException"/>
  10844. </method>
  10845. <method name="isDirectory" return="boolean"
  10846. abstract="false" native="false" synchronized="false"
  10847. static="false" final="false" visibility="public"
  10848. deprecated="not deprecated">
  10849. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10850. <exception name="IOException" type="java.io.IOException"/>
  10851. </method>
  10852. <method name="isFile" return="boolean"
  10853. abstract="false" native="false" synchronized="false"
  10854. static="false" final="false" visibility="public"
  10855. deprecated="not deprecated">
  10856. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10857. <exception name="IOException" type="java.io.IOException"/>
  10858. </method>
  10859. <method name="getContentLength" return="long"
  10860. abstract="false" native="false" synchronized="false"
  10861. static="false" final="false" visibility="public"
  10862. deprecated="not deprecated">
  10863. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10864. <exception name="IOException" type="java.io.IOException"/>
  10865. </method>
  10866. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10867. abstract="false" native="false" synchronized="false"
  10868. static="false" final="false" visibility="public"
  10869. deprecated="not deprecated">
  10870. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10871. <exception name="IOException" type="java.io.IOException"/>
  10872. </method>
  10873. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10874. abstract="false" native="false" synchronized="false"
  10875. static="false" final="false" visibility="public"
  10876. deprecated="not deprecated">
  10877. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10878. <exception name="IOException" type="java.io.IOException"/>
  10879. </method>
  10880. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10881. abstract="false" native="false" synchronized="false"
  10882. static="false" final="false" visibility="public"
  10883. deprecated="not deprecated">
  10884. <param name="file" type="org.apache.hadoop.fs.Path"/>
  10885. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10886. <param name="overwrite" type="boolean"/>
  10887. <param name="bufferSize" type="int"/>
  10888. <param name="replication" type="short"/>
  10889. <param name="blockSize" type="long"/>
  10890. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10891. <exception name="IOException" type="java.io.IOException"/>
  10892. </method>
  10893. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  10894. abstract="false" native="false" synchronized="false"
  10895. static="false" final="false" visibility="public"
  10896. deprecated="not deprecated">
  10897. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10898. <param name="bufferSize" type="int"/>
  10899. <exception name="IOException" type="java.io.IOException"/>
  10900. </method>
  10901. <method name="rename" return="boolean"
  10902. abstract="false" native="false" synchronized="false"
  10903. static="false" final="false" visibility="public"
  10904. deprecated="not deprecated">
  10905. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10906. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10907. <exception name="IOException" type="java.io.IOException"/>
  10908. </method>
  10909. <method name="delete" return="boolean"
  10910. abstract="false" native="false" synchronized="false"
  10911. static="false" final="false" visibility="public"
  10912. deprecated="not deprecated">
  10913. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10914. <param name="recursive" type="boolean"/>
  10915. <exception name="IOException" type="java.io.IOException"/>
  10916. </method>
  10917. <method name="delete" return="boolean"
  10918. abstract="false" native="false" synchronized="false"
  10919. static="false" final="false" visibility="public"
  10920. deprecated="not deprecated">
  10921. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10922. <exception name="IOException" type="java.io.IOException"/>
  10923. </method>
  10924. <method name="getLength" return="long"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="false" visibility="public"
  10927. deprecated="not deprecated">
  10928. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10929. <exception name="IOException" type="java.io.IOException"/>
  10930. </method>
  10931. <method name="getReplication" return="short"
  10932. abstract="false" native="false" synchronized="false"
  10933. static="false" final="false" visibility="public"
  10934. deprecated="not deprecated">
  10935. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10936. <exception name="IOException" type="java.io.IOException"/>
  10937. </method>
  10938. <method name="getDefaultReplication" return="short"
  10939. abstract="false" native="false" synchronized="false"
  10940. static="false" final="false" visibility="public"
  10941. deprecated="not deprecated">
  10942. </method>
  10943. <method name="setReplication" return="boolean"
  10944. abstract="false" native="false" synchronized="false"
  10945. static="false" final="false" visibility="public"
  10946. deprecated="not deprecated">
  10947. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10948. <param name="replication" type="short"/>
  10949. <exception name="IOException" type="java.io.IOException"/>
  10950. </method>
  10951. <method name="getDefaultBlockSize" return="long"
  10952. abstract="false" native="false" synchronized="false"
  10953. static="false" final="false" visibility="public"
  10954. deprecated="not deprecated">
  10955. </method>
  10956. <method name="lock"
  10957. abstract="false" native="false" synchronized="false"
  10958. static="false" final="false" visibility="public"
  10959. deprecated="not deprecated">
  10960. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10961. <param name="shared" type="boolean"/>
  10962. <exception name="IOException" type="java.io.IOException"/>
  10963. </method>
  10964. <method name="release"
  10965. abstract="false" native="false" synchronized="false"
  10966. static="false" final="false" visibility="public"
  10967. deprecated="not deprecated">
  10968. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10969. <exception name="IOException" type="java.io.IOException"/>
  10970. </method>
  10971. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  10972. abstract="false" native="false" synchronized="false"
  10973. static="false" final="false" visibility="public"
  10974. deprecated="not deprecated">
  10975. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10976. <param name="start" type="long"/>
  10977. <param name="len" type="long"/>
  10978. <exception name="IOException" type="java.io.IOException"/>
  10979. <doc>
  10980. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  10981. locations of the various chunks of the file file from KFS.]]>
  10982. </doc>
  10983. </method>
  10984. <method name="copyFromLocalFile"
  10985. abstract="false" native="false" synchronized="false"
  10986. static="false" final="false" visibility="public"
  10987. deprecated="not deprecated">
  10988. <param name="delSrc" type="boolean"/>
  10989. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10990. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10991. <exception name="IOException" type="java.io.IOException"/>
  10992. </method>
  10993. <method name="copyToLocalFile"
  10994. abstract="false" native="false" synchronized="false"
  10995. static="false" final="false" visibility="public"
  10996. deprecated="not deprecated">
  10997. <param name="delSrc" type="boolean"/>
  10998. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10999. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11000. <exception name="IOException" type="java.io.IOException"/>
  11001. </method>
  11002. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11003. abstract="false" native="false" synchronized="false"
  11004. static="false" final="false" visibility="public"
  11005. deprecated="not deprecated">
  11006. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11007. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11008. <exception name="IOException" type="java.io.IOException"/>
  11009. </method>
  11010. <method name="completeLocalOutput"
  11011. abstract="false" native="false" synchronized="false"
  11012. static="false" final="false" visibility="public"
  11013. deprecated="not deprecated">
  11014. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11015. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11016. <exception name="IOException" type="java.io.IOException"/>
  11017. </method>
  11018. <doc>
  11019. <![CDATA[A FileSystem backed by KFS.]]>
  11020. </doc>
  11021. </class>
  11022. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  11023. <doc>
  11024. <![CDATA[<h1>A client for the Kosmos filesystem (KFS)</h1>
  11025. <h3>Introduction</h3>
  11026. This pages describes how to use Kosmos Filesystem
  11027. (<a href="http://kosmosfs.sourceforge.net"> KFS </a>) as a backing
  11028. store with Hadoop. This page assumes that you have downloaded the
  11029. KFS software and installed necessary binaries as outlined in the KFS
  11030. documentation.
  11031. <h3>Steps</h3>
  11032. <ul>
  11033. <li>In the Hadoop conf directory edit hadoop-default.xml,
  11034. add the following:
  11035. <pre>
  11036. &lt;property&gt;
  11037. &lt;name&gt;fs.kfs.impl&lt;/name&gt;
  11038. &lt;value&gt;org.apache.hadoop.fs.kfs.KosmosFileSystem&lt;/value&gt;
  11039. &lt;description&gt;The FileSystem for kfs: uris.&lt;/description&gt;
  11040. &lt;/property&gt;
  11041. </pre>
  11042. <li>In the Hadoop conf directory edit hadoop-site.xml,
  11043. adding the following (with appropriate values for
  11044. &lt;server&gt; and &lt;port&gt;):
  11045. <pre>
  11046. &lt;property&gt;
  11047. &lt;name&gt;fs.default.name&lt;/name&gt;
  11048. &lt;value&gt;kfs://&lt;server:port&gt;&lt;/value&gt;
  11049. &lt;/property&gt;
  11050. &lt;property&gt;
  11051. &lt;name&gt;fs.kfs.metaServerHost&lt;/name&gt;
  11052. &lt;value&gt;&lt;server&gt;&lt;/value&gt;
  11053. &lt;description&gt;The location of the KFS meta server.&lt;/description&gt;
  11054. &lt;/property&gt;
  11055. &lt;property&gt;
  11056. &lt;name&gt;fs.kfs.metaServerPort&lt;/name&gt;
  11057. &lt;value&gt;&lt;port&gt;&lt;/value&gt;
  11058. &lt;description&gt;The location of the meta server's port.&lt;/description&gt;
  11059. &lt;/property&gt;
  11060. </pre>
  11061. </li>
  11062. <li>Copy KFS's <i> kfs-0.1.jar </i> to Hadoop's lib directory. This step
  11063. enables Hadoop's to load the KFS specific modules. Note
  11064. that, kfs-0.1.jar was built when you compiled KFS source
  11065. code. This jar file contains code that calls KFS's client
  11066. library code via JNI; the native code is in KFS's <i>
  11067. libkfsClient.so </i> library.
  11068. </li>
  11069. <li> When the Hadoop map/reduce trackers start up, those
  11070. processes (on local as well as remote nodes) will now need to load
  11071. KFS's <i> libkfsClient.so </i> library. To simplify this process, it is advisable to
  11072. store libkfsClient.so in an NFS accessible directory (similar to where
  11073. Hadoop binaries/scripts are stored); then, modify Hadoop's
  11074. conf/hadoop-env.sh adding the following line and providing suitable
  11075. value for &lt;path&gt;:
  11076. <pre>
  11077. export LD_LIBRARY_PATH=&lt;path&gt;
  11078. </pre>
  11079. <li>Start only the map/reduce trackers
  11080. <br />
  11081. example: execute Hadoop's bin/start-mapred.sh</li>
  11082. </ul>
  11083. <br/>
  11084. If the map/reduce job trackers start up, all file-I/O is done to KFS.]]>
  11085. </doc>
  11086. </package>
  11087. <package name="org.apache.hadoop.fs.permission">
  11088. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  11089. <class name="AccessControlException" extends="java.io.IOException"
  11090. abstract="false"
  11091. static="false" final="false" visibility="public"
  11092. deprecated="not deprecated">
  11093. <constructor name="AccessControlException"
  11094. static="false" final="false" visibility="public"
  11095. deprecated="not deprecated">
  11096. <doc>
  11097. <![CDATA[Default constructor is needed for unwrapping from
  11098. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  11099. </doc>
  11100. </constructor>
  11101. <constructor name="AccessControlException" type="java.lang.String"
  11102. static="false" final="false" visibility="public"
  11103. deprecated="not deprecated">
  11104. <doc>
  11105. <![CDATA[Constructs an {@link AccessControlException}
  11106. with the specified detail message.
  11107. @param s the detail message.]]>
  11108. </doc>
  11109. </constructor>
  11110. <doc>
  11111. <![CDATA[An exception class for access control related issues.]]>
  11112. </doc>
  11113. </class>
  11114. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  11115. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  11116. <class name="FsAction" extends="java.lang.Enum&lt;org.apache.hadoop.fs.permission.FsAction&gt;"
  11117. abstract="false"
  11118. static="false" final="true" visibility="public"
  11119. deprecated="not deprecated">
  11120. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  11121. abstract="false" native="false" synchronized="false"
  11122. static="true" final="false" visibility="public"
  11123. deprecated="not deprecated">
  11124. </method>
  11125. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  11126. abstract="false" native="false" synchronized="false"
  11127. static="true" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <param name="name" type="java.lang.String"/>
  11130. </method>
  11131. <method name="implies" return="boolean"
  11132. abstract="false" native="false" synchronized="false"
  11133. static="false" final="false" visibility="public"
  11134. deprecated="not deprecated">
  11135. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  11136. <doc>
  11137. <![CDATA[Return true if this action implies that action.
  11138. @param that]]>
  11139. </doc>
  11140. </method>
  11141. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  11142. abstract="false" native="false" synchronized="false"
  11143. static="false" final="false" visibility="public"
  11144. deprecated="not deprecated">
  11145. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  11146. <doc>
  11147. <![CDATA[AND operation.]]>
  11148. </doc>
  11149. </method>
  11150. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  11151. abstract="false" native="false" synchronized="false"
  11152. static="false" final="false" visibility="public"
  11153. deprecated="not deprecated">
  11154. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  11155. <doc>
  11156. <![CDATA[OR operation.]]>
  11157. </doc>
  11158. </method>
  11159. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  11160. abstract="false" native="false" synchronized="false"
  11161. static="false" final="false" visibility="public"
  11162. deprecated="not deprecated">
  11163. <doc>
  11164. <![CDATA[NOT operation.]]>
  11165. </doc>
  11166. </method>
  11167. <field name="INDEX" type="int"
  11168. transient="false" volatile="false"
  11169. static="false" final="true" visibility="public"
  11170. deprecated="not deprecated">
  11171. <doc>
  11172. <![CDATA[Octal representation]]>
  11173. </doc>
  11174. </field>
  11175. <field name="SYMBOL" type="java.lang.String"
  11176. transient="false" volatile="false"
  11177. static="false" final="true" visibility="public"
  11178. deprecated="not deprecated">
  11179. <doc>
  11180. <![CDATA[Symbolic representation]]>
  11181. </doc>
  11182. </field>
  11183. <doc>
  11184. <![CDATA[File system actions, e.g. read, write, etc.]]>
  11185. </doc>
  11186. </class>
  11187. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  11188. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  11189. <class name="FsPermission" extends="java.lang.Object"
  11190. abstract="false"
  11191. static="false" final="false" visibility="public"
  11192. deprecated="not deprecated">
  11193. <implements name="org.apache.hadoop.io.Writable"/>
  11194. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  11195. static="false" final="false" visibility="public"
  11196. deprecated="not deprecated">
  11197. <doc>
  11198. <![CDATA[Construct by the given {@link FsAction}.
  11199. @param u user action
  11200. @param g group action
  11201. @param o other action]]>
  11202. </doc>
  11203. </constructor>
  11204. <constructor name="FsPermission" type="short"
  11205. static="false" final="false" visibility="public"
  11206. deprecated="not deprecated">
  11207. <doc>
  11208. <![CDATA[Construct by the given mode.
  11209. @param mode
  11210. @see #toShort()]]>
  11211. </doc>
  11212. </constructor>
  11213. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  11214. static="false" final="false" visibility="public"
  11215. deprecated="not deprecated">
  11216. <doc>
  11217. <![CDATA[Copy constructor
  11218. @param other other permission]]>
  11219. </doc>
  11220. </constructor>
  11221. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  11222. abstract="false" native="false" synchronized="false"
  11223. static="true" final="false" visibility="public"
  11224. deprecated="not deprecated">
  11225. <param name="permission" type="short"/>
  11226. <doc>
  11227. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  11228. </doc>
  11229. </method>
  11230. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  11231. abstract="false" native="false" synchronized="false"
  11232. static="false" final="false" visibility="public"
  11233. deprecated="not deprecated">
  11234. <doc>
  11235. <![CDATA[Return user {@link FsAction}.]]>
  11236. </doc>
  11237. </method>
  11238. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  11239. abstract="false" native="false" synchronized="false"
  11240. static="false" final="false" visibility="public"
  11241. deprecated="not deprecated">
  11242. <doc>
  11243. <![CDATA[Return group {@link FsAction}.]]>
  11244. </doc>
  11245. </method>
  11246. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  11247. abstract="false" native="false" synchronized="false"
  11248. static="false" final="false" visibility="public"
  11249. deprecated="not deprecated">
  11250. <doc>
  11251. <![CDATA[Return other {@link FsAction}.]]>
  11252. </doc>
  11253. </method>
  11254. <method name="write"
  11255. abstract="false" native="false" synchronized="false"
  11256. static="false" final="false" visibility="public"
  11257. deprecated="not deprecated">
  11258. <param name="out" type="java.io.DataOutput"/>
  11259. <exception name="IOException" type="java.io.IOException"/>
  11260. <doc>
  11261. <![CDATA[{@inheritDoc}]]>
  11262. </doc>
  11263. </method>
  11264. <method name="readFields"
  11265. abstract="false" native="false" synchronized="false"
  11266. static="false" final="false" visibility="public"
  11267. deprecated="not deprecated">
  11268. <param name="in" type="java.io.DataInput"/>
  11269. <exception name="IOException" type="java.io.IOException"/>
  11270. <doc>
  11271. <![CDATA[{@inheritDoc}]]>
  11272. </doc>
  11273. </method>
  11274. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  11275. abstract="false" native="false" synchronized="false"
  11276. static="true" final="false" visibility="public"
  11277. deprecated="not deprecated">
  11278. <param name="in" type="java.io.DataInput"/>
  11279. <exception name="IOException" type="java.io.IOException"/>
  11280. <doc>
  11281. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  11282. </doc>
  11283. </method>
  11284. <method name="toShort" return="short"
  11285. abstract="false" native="false" synchronized="false"
  11286. static="false" final="false" visibility="public"
  11287. deprecated="not deprecated">
  11288. <doc>
  11289. <![CDATA[Encode the object to a short.]]>
  11290. </doc>
  11291. </method>
  11292. <method name="equals" return="boolean"
  11293. abstract="false" native="false" synchronized="false"
  11294. static="false" final="false" visibility="public"
  11295. deprecated="not deprecated">
  11296. <param name="obj" type="java.lang.Object"/>
  11297. <doc>
  11298. <![CDATA[{@inheritDoc}]]>
  11299. </doc>
  11300. </method>
  11301. <method name="hashCode" return="int"
  11302. abstract="false" native="false" synchronized="false"
  11303. static="false" final="false" visibility="public"
  11304. deprecated="not deprecated">
  11305. <doc>
  11306. <![CDATA[{@inheritDoc}]]>
  11307. </doc>
  11308. </method>
  11309. <method name="toString" return="java.lang.String"
  11310. abstract="false" native="false" synchronized="false"
  11311. static="false" final="false" visibility="public"
  11312. deprecated="not deprecated">
  11313. <doc>
  11314. <![CDATA[{@inheritDoc}]]>
  11315. </doc>
  11316. </method>
  11317. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  11318. abstract="false" native="false" synchronized="false"
  11319. static="false" final="false" visibility="public"
  11320. deprecated="not deprecated">
  11321. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11322. <doc>
  11323. <![CDATA[Apply a umask to this permission and return a new one]]>
  11324. </doc>
  11325. </method>
  11326. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  11327. abstract="false" native="false" synchronized="false"
  11328. static="true" final="false" visibility="public"
  11329. deprecated="not deprecated">
  11330. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11331. <doc>
  11332. <![CDATA[Get the user file creation mask (umask)]]>
  11333. </doc>
  11334. </method>
  11335. <method name="setUMask"
  11336. abstract="false" native="false" synchronized="false"
  11337. static="true" final="false" visibility="public"
  11338. deprecated="not deprecated">
  11339. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11340. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11341. <doc>
  11342. <![CDATA[Set the user file creation mask (umask)]]>
  11343. </doc>
  11344. </method>
  11345. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  11346. abstract="false" native="false" synchronized="false"
  11347. static="true" final="false" visibility="public"
  11348. deprecated="not deprecated">
  11349. <doc>
  11350. <![CDATA[Get the default permission.]]>
  11351. </doc>
  11352. </method>
  11353. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  11354. abstract="false" native="false" synchronized="false"
  11355. static="true" final="false" visibility="public"
  11356. deprecated="not deprecated">
  11357. <param name="unixSymbolicPermission" type="java.lang.String"/>
  11358. <doc>
  11359. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  11360. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  11361. </doc>
  11362. </method>
  11363. <field name="UMASK_LABEL" type="java.lang.String"
  11364. transient="false" volatile="false"
  11365. static="true" final="true" visibility="public"
  11366. deprecated="not deprecated">
  11367. <doc>
  11368. <![CDATA[umask property label]]>
  11369. </doc>
  11370. </field>
  11371. <field name="DEFAULT_UMASK" type="int"
  11372. transient="false" volatile="false"
  11373. static="true" final="true" visibility="public"
  11374. deprecated="not deprecated">
  11375. </field>
  11376. <doc>
  11377. <![CDATA[A class for file/directory permissions.]]>
  11378. </doc>
  11379. </class>
  11380. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  11381. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  11382. <class name="PermissionStatus" extends="java.lang.Object"
  11383. abstract="false"
  11384. static="false" final="false" visibility="public"
  11385. deprecated="not deprecated">
  11386. <implements name="org.apache.hadoop.io.Writable"/>
  11387. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  11388. static="false" final="false" visibility="public"
  11389. deprecated="not deprecated">
  11390. <doc>
  11391. <![CDATA[Constructor]]>
  11392. </doc>
  11393. </constructor>
  11394. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  11395. abstract="false" native="false" synchronized="false"
  11396. static="true" final="false" visibility="public"
  11397. deprecated="not deprecated">
  11398. <param name="user" type="java.lang.String"/>
  11399. <param name="group" type="java.lang.String"/>
  11400. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11401. <doc>
  11402. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  11403. </doc>
  11404. </method>
  11405. <method name="getUserName" return="java.lang.String"
  11406. abstract="false" native="false" synchronized="false"
  11407. static="false" final="false" visibility="public"
  11408. deprecated="not deprecated">
  11409. <doc>
  11410. <![CDATA[Return user name]]>
  11411. </doc>
  11412. </method>
  11413. <method name="getGroupName" return="java.lang.String"
  11414. abstract="false" native="false" synchronized="false"
  11415. static="false" final="false" visibility="public"
  11416. deprecated="not deprecated">
  11417. <doc>
  11418. <![CDATA[Return group name]]>
  11419. </doc>
  11420. </method>
  11421. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  11422. abstract="false" native="false" synchronized="false"
  11423. static="false" final="false" visibility="public"
  11424. deprecated="not deprecated">
  11425. <doc>
  11426. <![CDATA[Return permission]]>
  11427. </doc>
  11428. </method>
  11429. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  11430. abstract="false" native="false" synchronized="false"
  11431. static="false" final="false" visibility="public"
  11432. deprecated="not deprecated">
  11433. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11434. <doc>
  11435. <![CDATA[Apply umask.
  11436. @see FsPermission#applyUMask(FsPermission)]]>
  11437. </doc>
  11438. </method>
  11439. <method name="readFields"
  11440. abstract="false" native="false" synchronized="false"
  11441. static="false" final="false" visibility="public"
  11442. deprecated="not deprecated">
  11443. <param name="in" type="java.io.DataInput"/>
  11444. <exception name="IOException" type="java.io.IOException"/>
  11445. <doc>
  11446. <![CDATA[{@inheritDoc}]]>
  11447. </doc>
  11448. </method>
  11449. <method name="write"
  11450. abstract="false" native="false" synchronized="false"
  11451. static="false" final="false" visibility="public"
  11452. deprecated="not deprecated">
  11453. <param name="out" type="java.io.DataOutput"/>
  11454. <exception name="IOException" type="java.io.IOException"/>
  11455. <doc>
  11456. <![CDATA[{@inheritDoc}]]>
  11457. </doc>
  11458. </method>
  11459. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  11460. abstract="false" native="false" synchronized="false"
  11461. static="true" final="false" visibility="public"
  11462. deprecated="not deprecated">
  11463. <param name="in" type="java.io.DataInput"/>
  11464. <exception name="IOException" type="java.io.IOException"/>
  11465. <doc>
  11466. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  11467. </doc>
  11468. </method>
  11469. <method name="toString" return="java.lang.String"
  11470. abstract="false" native="false" synchronized="false"
  11471. static="false" final="false" visibility="public"
  11472. deprecated="not deprecated">
  11473. <doc>
  11474. <![CDATA[{@inheritDoc}]]>
  11475. </doc>
  11476. </method>
  11477. <doc>
  11478. <![CDATA[Store permission related information.]]>
  11479. </doc>
  11480. </class>
  11481. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  11482. </package>
  11483. <package name="org.apache.hadoop.fs.s3">
  11484. <!-- start class org.apache.hadoop.fs.s3.Block -->
  11485. <class name="Block" extends="java.lang.Object"
  11486. abstract="false"
  11487. static="false" final="false" visibility="public"
  11488. deprecated="not deprecated">
  11489. <constructor name="Block" type="long, long"
  11490. static="false" final="false" visibility="public"
  11491. deprecated="not deprecated">
  11492. </constructor>
  11493. <method name="getId" return="long"
  11494. abstract="false" native="false" synchronized="false"
  11495. static="false" final="false" visibility="public"
  11496. deprecated="not deprecated">
  11497. </method>
  11498. <method name="getLength" return="long"
  11499. abstract="false" native="false" synchronized="false"
  11500. static="false" final="false" visibility="public"
  11501. deprecated="not deprecated">
  11502. </method>
  11503. <method name="toString" return="java.lang.String"
  11504. abstract="false" native="false" synchronized="false"
  11505. static="false" final="false" visibility="public"
  11506. deprecated="not deprecated">
  11507. </method>
  11508. <doc>
  11509. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  11510. </doc>
  11511. </class>
  11512. <!-- end class org.apache.hadoop.fs.s3.Block -->
  11513. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  11514. <interface name="FileSystemStore" abstract="true"
  11515. static="false" final="false" visibility="public"
  11516. deprecated="not deprecated">
  11517. <method name="initialize"
  11518. abstract="false" native="false" synchronized="false"
  11519. static="false" final="false" visibility="public"
  11520. deprecated="not deprecated">
  11521. <param name="uri" type="java.net.URI"/>
  11522. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11523. <exception name="IOException" type="java.io.IOException"/>
  11524. </method>
  11525. <method name="getVersion" return="java.lang.String"
  11526. abstract="false" native="false" synchronized="false"
  11527. static="false" final="false" visibility="public"
  11528. deprecated="not deprecated">
  11529. <exception name="IOException" type="java.io.IOException"/>
  11530. </method>
  11531. <method name="storeINode"
  11532. abstract="false" native="false" synchronized="false"
  11533. static="false" final="false" visibility="public"
  11534. deprecated="not deprecated">
  11535. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11536. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  11537. <exception name="IOException" type="java.io.IOException"/>
  11538. </method>
  11539. <method name="storeBlock"
  11540. abstract="false" native="false" synchronized="false"
  11541. static="false" final="false" visibility="public"
  11542. deprecated="not deprecated">
  11543. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  11544. <param name="file" type="java.io.File"/>
  11545. <exception name="IOException" type="java.io.IOException"/>
  11546. </method>
  11547. <method name="inodeExists" return="boolean"
  11548. abstract="false" native="false" synchronized="false"
  11549. static="false" final="false" visibility="public"
  11550. deprecated="not deprecated">
  11551. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11552. <exception name="IOException" type="java.io.IOException"/>
  11553. </method>
  11554. <method name="blockExists" return="boolean"
  11555. abstract="false" native="false" synchronized="false"
  11556. static="false" final="false" visibility="public"
  11557. deprecated="not deprecated">
  11558. <param name="blockId" type="long"/>
  11559. <exception name="IOException" type="java.io.IOException"/>
  11560. </method>
  11561. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  11562. abstract="false" native="false" synchronized="false"
  11563. static="false" final="false" visibility="public"
  11564. deprecated="not deprecated">
  11565. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11566. <exception name="IOException" type="java.io.IOException"/>
  11567. </method>
  11568. <method name="retrieveBlock" return="java.io.File"
  11569. abstract="false" native="false" synchronized="false"
  11570. static="false" final="false" visibility="public"
  11571. deprecated="not deprecated">
  11572. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  11573. <param name="byteRangeStart" type="long"/>
  11574. <exception name="IOException" type="java.io.IOException"/>
  11575. </method>
  11576. <method name="deleteINode"
  11577. abstract="false" native="false" synchronized="false"
  11578. static="false" final="false" visibility="public"
  11579. deprecated="not deprecated">
  11580. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11581. <exception name="IOException" type="java.io.IOException"/>
  11582. </method>
  11583. <method name="deleteBlock"
  11584. abstract="false" native="false" synchronized="false"
  11585. static="false" final="false" visibility="public"
  11586. deprecated="not deprecated">
  11587. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  11588. <exception name="IOException" type="java.io.IOException"/>
  11589. </method>
  11590. <method name="listSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  11591. abstract="false" native="false" synchronized="false"
  11592. static="false" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11595. <exception name="IOException" type="java.io.IOException"/>
  11596. </method>
  11597. <method name="listDeepSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  11598. abstract="false" native="false" synchronized="false"
  11599. static="false" final="false" visibility="public"
  11600. deprecated="not deprecated">
  11601. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11602. <exception name="IOException" type="java.io.IOException"/>
  11603. </method>
  11604. <method name="purge"
  11605. abstract="false" native="false" synchronized="false"
  11606. static="false" final="false" visibility="public"
  11607. deprecated="not deprecated">
  11608. <exception name="IOException" type="java.io.IOException"/>
  11609. <doc>
  11610. <![CDATA[Delete everything. Used for testing.
  11611. @throws IOException]]>
  11612. </doc>
  11613. </method>
  11614. <method name="dump"
  11615. abstract="false" native="false" synchronized="false"
  11616. static="false" final="false" visibility="public"
  11617. deprecated="not deprecated">
  11618. <exception name="IOException" type="java.io.IOException"/>
  11619. <doc>
  11620. <![CDATA[Diagnostic method to dump all INodes to the console.
  11621. @throws IOException]]>
  11622. </doc>
  11623. </method>
  11624. <doc>
  11625. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  11626. </doc>
  11627. </interface>
  11628. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  11629. <!-- start class org.apache.hadoop.fs.s3.INode -->
  11630. <class name="INode" extends="java.lang.Object"
  11631. abstract="false"
  11632. static="false" final="false" visibility="public"
  11633. deprecated="not deprecated">
  11634. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  11635. static="false" final="false" visibility="public"
  11636. deprecated="not deprecated">
  11637. </constructor>
  11638. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  11639. abstract="false" native="false" synchronized="false"
  11640. static="false" final="false" visibility="public"
  11641. deprecated="not deprecated">
  11642. </method>
  11643. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  11644. abstract="false" native="false" synchronized="false"
  11645. static="false" final="false" visibility="public"
  11646. deprecated="not deprecated">
  11647. </method>
  11648. <method name="isDirectory" return="boolean"
  11649. abstract="false" native="false" synchronized="false"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="not deprecated">
  11652. </method>
  11653. <method name="isFile" return="boolean"
  11654. abstract="false" native="false" synchronized="false"
  11655. static="false" final="false" visibility="public"
  11656. deprecated="not deprecated">
  11657. </method>
  11658. <method name="getSerializedLength" return="long"
  11659. abstract="false" native="false" synchronized="false"
  11660. static="false" final="false" visibility="public"
  11661. deprecated="not deprecated">
  11662. </method>
  11663. <method name="serialize" return="java.io.InputStream"
  11664. abstract="false" native="false" synchronized="false"
  11665. static="false" final="false" visibility="public"
  11666. deprecated="not deprecated">
  11667. <exception name="IOException" type="java.io.IOException"/>
  11668. </method>
  11669. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  11670. abstract="false" native="false" synchronized="false"
  11671. static="true" final="false" visibility="public"
  11672. deprecated="not deprecated">
  11673. <param name="in" type="java.io.InputStream"/>
  11674. <exception name="IOException" type="java.io.IOException"/>
  11675. </method>
  11676. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  11677. transient="false" volatile="false"
  11678. static="true" final="true" visibility="public"
  11679. deprecated="not deprecated">
  11680. </field>
  11681. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  11682. transient="false" volatile="false"
  11683. static="true" final="true" visibility="public"
  11684. deprecated="not deprecated">
  11685. </field>
  11686. <doc>
  11687. <![CDATA[Holds file metadata including type (regular file, or directory),
  11688. and the list of blocks that are pointers to the data.]]>
  11689. </doc>
  11690. </class>
  11691. <!-- end class org.apache.hadoop.fs.s3.INode -->
  11692. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  11693. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  11694. abstract="false"
  11695. static="false" final="false" visibility="public"
  11696. deprecated="not deprecated">
  11697. <implements name="org.apache.hadoop.util.Tool"/>
  11698. <constructor name="MigrationTool"
  11699. static="false" final="false" visibility="public"
  11700. deprecated="not deprecated">
  11701. </constructor>
  11702. <method name="main"
  11703. abstract="false" native="false" synchronized="false"
  11704. static="true" final="false" visibility="public"
  11705. deprecated="not deprecated">
  11706. <param name="args" type="java.lang.String[]"/>
  11707. <exception name="Exception" type="java.lang.Exception"/>
  11708. </method>
  11709. <method name="run" return="int"
  11710. abstract="false" native="false" synchronized="false"
  11711. static="false" final="false" visibility="public"
  11712. deprecated="not deprecated">
  11713. <param name="args" type="java.lang.String[]"/>
  11714. <exception name="Exception" type="java.lang.Exception"/>
  11715. </method>
  11716. <method name="initialize"
  11717. abstract="false" native="false" synchronized="false"
  11718. static="false" final="false" visibility="public"
  11719. deprecated="not deprecated">
  11720. <param name="uri" type="java.net.URI"/>
  11721. <exception name="IOException" type="java.io.IOException"/>
  11722. </method>
  11723. <doc>
  11724. <![CDATA[<p>
  11725. This class is a tool for migrating data from an older to a newer version
  11726. of an S3 filesystem.
  11727. </p>
  11728. <p>
  11729. All files in the filesystem are migrated by re-writing the block metadata
  11730. - no datafiles are touched.
  11731. </p>]]>
  11732. </doc>
  11733. </class>
  11734. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  11735. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  11736. <class name="S3Exception" extends="java.lang.RuntimeException"
  11737. abstract="false"
  11738. static="false" final="false" visibility="public"
  11739. deprecated="not deprecated">
  11740. <constructor name="S3Exception" type="java.lang.Throwable"
  11741. static="false" final="false" visibility="public"
  11742. deprecated="not deprecated">
  11743. </constructor>
  11744. <doc>
  11745. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  11746. </doc>
  11747. </class>
  11748. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  11749. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  11750. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11751. abstract="false"
  11752. static="false" final="false" visibility="public"
  11753. deprecated="not deprecated">
  11754. <constructor name="S3FileSystem"
  11755. static="false" final="false" visibility="public"
  11756. deprecated="not deprecated">
  11757. </constructor>
  11758. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  11759. static="false" final="false" visibility="public"
  11760. deprecated="not deprecated">
  11761. </constructor>
  11762. <method name="getUri" return="java.net.URI"
  11763. abstract="false" native="false" synchronized="false"
  11764. static="false" final="false" visibility="public"
  11765. deprecated="not deprecated">
  11766. </method>
  11767. <method name="initialize"
  11768. abstract="false" native="false" synchronized="false"
  11769. static="false" final="false" visibility="public"
  11770. deprecated="not deprecated">
  11771. <param name="uri" type="java.net.URI"/>
  11772. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11773. <exception name="IOException" type="java.io.IOException"/>
  11774. </method>
  11775. <method name="getName" return="java.lang.String"
  11776. abstract="false" native="false" synchronized="false"
  11777. static="false" final="false" visibility="public"
  11778. deprecated="not deprecated">
  11779. </method>
  11780. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11781. abstract="false" native="false" synchronized="false"
  11782. static="false" final="false" visibility="public"
  11783. deprecated="not deprecated">
  11784. </method>
  11785. <method name="setWorkingDirectory"
  11786. abstract="false" native="false" synchronized="false"
  11787. static="false" final="false" visibility="public"
  11788. deprecated="not deprecated">
  11789. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  11790. </method>
  11791. <method name="mkdirs" return="boolean"
  11792. abstract="false" native="false" synchronized="false"
  11793. static="false" final="false" visibility="public"
  11794. deprecated="not deprecated">
  11795. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11796. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11797. <exception name="IOException" type="java.io.IOException"/>
  11798. <doc>
  11799. <![CDATA[@param permission Currently ignored.]]>
  11800. </doc>
  11801. </method>
  11802. <method name="isFile" return="boolean"
  11803. abstract="false" native="false" synchronized="false"
  11804. static="false" final="false" visibility="public"
  11805. deprecated="not deprecated">
  11806. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11807. <exception name="IOException" type="java.io.IOException"/>
  11808. </method>
  11809. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11810. abstract="false" native="false" synchronized="false"
  11811. static="false" final="false" visibility="public"
  11812. deprecated="not deprecated">
  11813. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11814. <exception name="IOException" type="java.io.IOException"/>
  11815. </method>
  11816. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11817. abstract="false" native="false" synchronized="false"
  11818. static="false" final="false" visibility="public"
  11819. deprecated="not deprecated">
  11820. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11821. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11822. <param name="overwrite" type="boolean"/>
  11823. <param name="bufferSize" type="int"/>
  11824. <param name="replication" type="short"/>
  11825. <param name="blockSize" type="long"/>
  11826. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11827. <exception name="IOException" type="java.io.IOException"/>
  11828. <doc>
  11829. <![CDATA[@param permission Currently ignored.]]>
  11830. </doc>
  11831. </method>
  11832. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11833. abstract="false" native="false" synchronized="false"
  11834. static="false" final="false" visibility="public"
  11835. deprecated="not deprecated">
  11836. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11837. <param name="bufferSize" type="int"/>
  11838. <exception name="IOException" type="java.io.IOException"/>
  11839. </method>
  11840. <method name="rename" return="boolean"
  11841. abstract="false" native="false" synchronized="false"
  11842. static="false" final="false" visibility="public"
  11843. deprecated="not deprecated">
  11844. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11845. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11846. <exception name="IOException" type="java.io.IOException"/>
  11847. </method>
  11848. <method name="delete" return="boolean"
  11849. abstract="false" native="false" synchronized="false"
  11850. static="false" final="false" visibility="public"
  11851. deprecated="not deprecated">
  11852. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11853. <param name="recursive" type="boolean"/>
  11854. <exception name="IOException" type="java.io.IOException"/>
  11855. </method>
  11856. <method name="delete" return="boolean"
  11857. abstract="false" native="false" synchronized="false"
  11858. static="false" final="false" visibility="public"
  11859. deprecated="not deprecated">
  11860. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11861. <exception name="IOException" type="java.io.IOException"/>
  11862. </method>
  11863. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11864. abstract="false" native="false" synchronized="false"
  11865. static="false" final="false" visibility="public"
  11866. deprecated="not deprecated">
  11867. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11868. <exception name="IOException" type="java.io.IOException"/>
  11869. <doc>
  11870. <![CDATA[FileStatus for S3 file systems.]]>
  11871. </doc>
  11872. </method>
  11873. <doc>
  11874. <![CDATA[<p>
  11875. A {@link FileSystem} backed by <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  11876. </p>]]>
  11877. </doc>
  11878. </class>
  11879. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  11880. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  11881. <class name="S3FileSystemException" extends="java.io.IOException"
  11882. abstract="false"
  11883. static="false" final="false" visibility="public"
  11884. deprecated="not deprecated">
  11885. <constructor name="S3FileSystemException" type="java.lang.String"
  11886. static="false" final="false" visibility="public"
  11887. deprecated="not deprecated">
  11888. </constructor>
  11889. <doc>
  11890. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  11891. </doc>
  11892. </class>
  11893. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  11894. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  11895. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  11896. abstract="false"
  11897. static="false" final="false" visibility="public"
  11898. deprecated="not deprecated">
  11899. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  11900. static="false" final="false" visibility="public"
  11901. deprecated="not deprecated">
  11902. </constructor>
  11903. <doc>
  11904. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  11905. in {@link S3FileSystem}.]]>
  11906. </doc>
  11907. </class>
  11908. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  11909. <doc>
  11910. <![CDATA[<p>A distributed implementation of {@link
  11911. org.apache.hadoop.fs.FileSystem} that uses <a href="http://aws.amazon.com/s3">Amazon S3</a>.</p>
  11912. <p>
  11913. Files are stored in S3 as blocks (represented by
  11914. {@link org.apache.hadoop.fs.s3.Block}), which have an ID and a length.
  11915. Block metadata is stored in S3 as a small record (represented by
  11916. {@link org.apache.hadoop.fs.s3.INode}) using the URL-encoded
  11917. path string as a key. Inodes record the file type (regular file or directory) and the list of blocks.
  11918. This design makes it easy to seek to any given position in a file by reading the inode data to compute
  11919. which block to access, then using S3's support for
  11920. <a href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35.2">HTTP Range</a> headers
  11921. to start streaming from the correct position.
  11922. Renames are also efficient since only the inode is moved (by a DELETE followed by a PUT since
  11923. S3 does not support renames).
  11924. </p>
  11925. <p>
  11926. For a single file <i>/dir1/file1</i> which takes two blocks of storage, the file structure in S3
  11927. would be something like this:
  11928. </p>
  11929. <pre>
  11930. /
  11931. /dir1
  11932. /dir1/file1
  11933. block-6415776850131549260
  11934. block-3026438247347758425
  11935. </pre>
  11936. <p>
  11937. Inodes start with a leading <code>/</code>, while blocks are prefixed with <code>block-</code>.
  11938. </p>]]>
  11939. </doc>
  11940. </package>
  11941. <package name="org.apache.hadoop.fs.shell">
  11942. <!-- start class org.apache.hadoop.fs.shell.Count -->
  11943. <class name="Count" extends="java.lang.Object"
  11944. abstract="false"
  11945. static="false" final="false" visibility="public"
  11946. deprecated="not deprecated">
  11947. <constructor name="Count"
  11948. static="false" final="false" visibility="public"
  11949. deprecated="not deprecated">
  11950. </constructor>
  11951. <method name="matches" return="boolean"
  11952. abstract="false" native="false" synchronized="false"
  11953. static="true" final="false" visibility="public"
  11954. deprecated="not deprecated">
  11955. <param name="cmd" type="java.lang.String"/>
  11956. </method>
  11957. <method name="count"
  11958. abstract="false" native="false" synchronized="false"
  11959. static="true" final="false" visibility="public"
  11960. deprecated="not deprecated">
  11961. <param name="src" type="java.lang.String"/>
  11962. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11963. <param name="out" type="java.io.PrintStream"/>
  11964. <exception name="IOException" type="java.io.IOException"/>
  11965. </method>
  11966. <field name="NAME" type="java.lang.String"
  11967. transient="false" volatile="false"
  11968. static="true" final="true" visibility="public"
  11969. deprecated="not deprecated">
  11970. </field>
  11971. <field name="USAGE" type="java.lang.String"
  11972. transient="false" volatile="false"
  11973. static="true" final="true" visibility="public"
  11974. deprecated="not deprecated">
  11975. </field>
  11976. <field name="DESCRIPTION" type="java.lang.String"
  11977. transient="false" volatile="false"
  11978. static="true" final="true" visibility="public"
  11979. deprecated="not deprecated">
  11980. </field>
  11981. <doc>
  11982. <![CDATA[Count the number of directories, files and bytes.]]>
  11983. </doc>
  11984. </class>
  11985. <!-- end class org.apache.hadoop.fs.shell.Count -->
  11986. </package>
  11987. <package name="org.apache.hadoop.io">
  11988. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  11989. <class name="AbstractMapWritable" extends="java.lang.Object"
  11990. abstract="true"
  11991. static="false" final="false" visibility="public"
  11992. deprecated="not deprecated">
  11993. <implements name="org.apache.hadoop.io.Writable"/>
  11994. <implements name="org.apache.hadoop.conf.Configurable"/>
  11995. <constructor name="AbstractMapWritable"
  11996. static="false" final="false" visibility="protected"
  11997. deprecated="not deprecated">
  11998. <doc>
  11999. <![CDATA[constructor.]]>
  12000. </doc>
  12001. </constructor>
  12002. <method name="addToMap"
  12003. abstract="false" native="false" synchronized="true"
  12004. static="false" final="false" visibility="protected"
  12005. deprecated="not deprecated">
  12006. <param name="clazz" type="java.lang.Class"/>
  12007. <doc>
  12008. <![CDATA[Add a Class to the maps if it is not already present.]]>
  12009. </doc>
  12010. </method>
  12011. <method name="getClass" return="java.lang.Class"
  12012. abstract="false" native="false" synchronized="false"
  12013. static="false" final="false" visibility="protected"
  12014. deprecated="not deprecated">
  12015. <param name="id" type="byte"/>
  12016. <doc>
  12017. <![CDATA[@return the Class class for the specified id]]>
  12018. </doc>
  12019. </method>
  12020. <method name="getId" return="byte"
  12021. abstract="false" native="false" synchronized="false"
  12022. static="false" final="false" visibility="protected"
  12023. deprecated="not deprecated">
  12024. <param name="clazz" type="java.lang.Class"/>
  12025. <doc>
  12026. <![CDATA[@return the id for the specified Class]]>
  12027. </doc>
  12028. </method>
  12029. <method name="copy"
  12030. abstract="false" native="false" synchronized="true"
  12031. static="false" final="false" visibility="protected"
  12032. deprecated="not deprecated">
  12033. <param name="other" type="org.apache.hadoop.io.Writable"/>
  12034. <doc>
  12035. <![CDATA[Used by child copy constructors.]]>
  12036. </doc>
  12037. </method>
  12038. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  12039. abstract="false" native="false" synchronized="false"
  12040. static="false" final="false" visibility="public"
  12041. deprecated="not deprecated">
  12042. <doc>
  12043. <![CDATA[@return the conf]]>
  12044. </doc>
  12045. </method>
  12046. <method name="setConf"
  12047. abstract="false" native="false" synchronized="false"
  12048. static="false" final="false" visibility="public"
  12049. deprecated="not deprecated">
  12050. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12051. <doc>
  12052. <![CDATA[@param conf the conf to set]]>
  12053. </doc>
  12054. </method>
  12055. <method name="write"
  12056. abstract="false" native="false" synchronized="false"
  12057. static="false" final="false" visibility="public"
  12058. deprecated="not deprecated">
  12059. <param name="out" type="java.io.DataOutput"/>
  12060. <exception name="IOException" type="java.io.IOException"/>
  12061. <doc>
  12062. <![CDATA[{@inheritDoc}]]>
  12063. </doc>
  12064. </method>
  12065. <method name="readFields"
  12066. abstract="false" native="false" synchronized="false"
  12067. static="false" final="false" visibility="public"
  12068. deprecated="not deprecated">
  12069. <param name="in" type="java.io.DataInput"/>
  12070. <exception name="IOException" type="java.io.IOException"/>
  12071. <doc>
  12072. <![CDATA[{@inheritDoc}]]>
  12073. </doc>
  12074. </method>
  12075. <doc>
  12076. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  12077. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  12078. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  12079. maps travel with the class instead of being static.
  12080. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  12081. in any specific map instance.]]>
  12082. </doc>
  12083. </class>
  12084. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  12085. <!-- start class org.apache.hadoop.io.ArrayFile -->
  12086. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  12087. abstract="false"
  12088. static="false" final="false" visibility="public"
  12089. deprecated="not deprecated">
  12090. <constructor name="ArrayFile"
  12091. static="false" final="false" visibility="protected"
  12092. deprecated="not deprecated">
  12093. </constructor>
  12094. <doc>
  12095. <![CDATA[A dense file-based mapping from integers to values.]]>
  12096. </doc>
  12097. </class>
  12098. <!-- end class org.apache.hadoop.io.ArrayFile -->
  12099. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  12100. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  12101. abstract="false"
  12102. static="true" final="false" visibility="public"
  12103. deprecated="not deprecated">
  12104. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  12105. static="false" final="false" visibility="public"
  12106. deprecated="not deprecated">
  12107. <exception name="IOException" type="java.io.IOException"/>
  12108. <doc>
  12109. <![CDATA[Construct an array reader for the named file.]]>
  12110. </doc>
  12111. </constructor>
  12112. <method name="seek"
  12113. abstract="false" native="false" synchronized="true"
  12114. static="false" final="false" visibility="public"
  12115. deprecated="not deprecated">
  12116. <param name="n" type="long"/>
  12117. <exception name="IOException" type="java.io.IOException"/>
  12118. <doc>
  12119. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  12120. </doc>
  12121. </method>
  12122. <method name="next" return="org.apache.hadoop.io.Writable"
  12123. abstract="false" native="false" synchronized="true"
  12124. static="false" final="false" visibility="public"
  12125. deprecated="not deprecated">
  12126. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12127. <exception name="IOException" type="java.io.IOException"/>
  12128. <doc>
  12129. <![CDATA[Read and return the next value in the file.]]>
  12130. </doc>
  12131. </method>
  12132. <method name="key" return="long"
  12133. abstract="false" native="false" synchronized="true"
  12134. static="false" final="false" visibility="public"
  12135. deprecated="not deprecated">
  12136. <exception name="IOException" type="java.io.IOException"/>
  12137. <doc>
  12138. <![CDATA[Returns the key associated with the most recent call to {@link
  12139. #seek(long)}, {@link #next(Writable)}, or {@link
  12140. #get(long,Writable)}.]]>
  12141. </doc>
  12142. </method>
  12143. <method name="get" return="org.apache.hadoop.io.Writable"
  12144. abstract="false" native="false" synchronized="true"
  12145. static="false" final="false" visibility="public"
  12146. deprecated="not deprecated">
  12147. <param name="n" type="long"/>
  12148. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12149. <exception name="IOException" type="java.io.IOException"/>
  12150. <doc>
  12151. <![CDATA[Return the <code>n</code>th value in the file.]]>
  12152. </doc>
  12153. </method>
  12154. <doc>
  12155. <![CDATA[Provide access to an existing array file.]]>
  12156. </doc>
  12157. </class>
  12158. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  12159. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  12160. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  12161. abstract="false"
  12162. static="true" final="false" visibility="public"
  12163. deprecated="not deprecated">
  12164. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  12165. static="false" final="false" visibility="public"
  12166. deprecated="not deprecated">
  12167. <exception name="IOException" type="java.io.IOException"/>
  12168. <doc>
  12169. <![CDATA[Create the named file for values of the named class.]]>
  12170. </doc>
  12171. </constructor>
  12172. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  12173. static="false" final="false" visibility="public"
  12174. deprecated="not deprecated">
  12175. <exception name="IOException" type="java.io.IOException"/>
  12176. <doc>
  12177. <![CDATA[Create the named file for values of the named class.]]>
  12178. </doc>
  12179. </constructor>
  12180. <method name="append"
  12181. abstract="false" native="false" synchronized="true"
  12182. static="false" final="false" visibility="public"
  12183. deprecated="not deprecated">
  12184. <param name="value" type="org.apache.hadoop.io.Writable"/>
  12185. <exception name="IOException" type="java.io.IOException"/>
  12186. <doc>
  12187. <![CDATA[Append a value to the file.]]>
  12188. </doc>
  12189. </method>
  12190. <doc>
  12191. <![CDATA[Write a new array file.]]>
  12192. </doc>
  12193. </class>
  12194. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  12195. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  12196. <class name="ArrayWritable" extends="java.lang.Object"
  12197. abstract="false"
  12198. static="false" final="false" visibility="public"
  12199. deprecated="not deprecated">
  12200. <implements name="org.apache.hadoop.io.Writable"/>
  12201. <constructor name="ArrayWritable" type="java.lang.Class"
  12202. static="false" final="false" visibility="public"
  12203. deprecated="not deprecated">
  12204. </constructor>
  12205. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  12206. static="false" final="false" visibility="public"
  12207. deprecated="not deprecated">
  12208. </constructor>
  12209. <constructor name="ArrayWritable" type="java.lang.String[]"
  12210. static="false" final="false" visibility="public"
  12211. deprecated="not deprecated">
  12212. </constructor>
  12213. <method name="getValueClass" return="java.lang.Class"
  12214. abstract="false" native="false" synchronized="false"
  12215. static="false" final="false" visibility="public"
  12216. deprecated="not deprecated">
  12217. </method>
  12218. <method name="toStrings" return="java.lang.String[]"
  12219. abstract="false" native="false" synchronized="false"
  12220. static="false" final="false" visibility="public"
  12221. deprecated="not deprecated">
  12222. </method>
  12223. <method name="toArray" return="java.lang.Object"
  12224. abstract="false" native="false" synchronized="false"
  12225. static="false" final="false" visibility="public"
  12226. deprecated="not deprecated">
  12227. </method>
  12228. <method name="set"
  12229. abstract="false" native="false" synchronized="false"
  12230. static="false" final="false" visibility="public"
  12231. deprecated="not deprecated">
  12232. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  12233. </method>
  12234. <method name="get" return="org.apache.hadoop.io.Writable[]"
  12235. abstract="false" native="false" synchronized="false"
  12236. static="false" final="false" visibility="public"
  12237. deprecated="not deprecated">
  12238. </method>
  12239. <method name="readFields"
  12240. abstract="false" native="false" synchronized="false"
  12241. static="false" final="false" visibility="public"
  12242. deprecated="not deprecated">
  12243. <param name="in" type="java.io.DataInput"/>
  12244. <exception name="IOException" type="java.io.IOException"/>
  12245. </method>
  12246. <method name="write"
  12247. abstract="false" native="false" synchronized="false"
  12248. static="false" final="false" visibility="public"
  12249. deprecated="not deprecated">
  12250. <param name="out" type="java.io.DataOutput"/>
  12251. <exception name="IOException" type="java.io.IOException"/>
  12252. </method>
  12253. <doc>
  12254. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  12255. writable must all be instances of the same class. If this writable will be
  12256. the input for a Reducer, you will need to create a subclass that sets the
  12257. value to be of the proper type.
  12258. For example:
  12259. <code>
  12260. public class IntArrayWritable extends ArrayWritable {
  12261. public IntArrayWritable() {
  12262. super(IntWritable.class);
  12263. }
  12264. }
  12265. </code>]]>
  12266. </doc>
  12267. </class>
  12268. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  12269. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  12270. <class name="BooleanWritable" extends="java.lang.Object"
  12271. abstract="false"
  12272. static="false" final="false" visibility="public"
  12273. deprecated="not deprecated">
  12274. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12275. <constructor name="BooleanWritable"
  12276. static="false" final="false" visibility="public"
  12277. deprecated="not deprecated">
  12278. </constructor>
  12279. <constructor name="BooleanWritable" type="boolean"
  12280. static="false" final="false" visibility="public"
  12281. deprecated="not deprecated">
  12282. </constructor>
  12283. <method name="set"
  12284. abstract="false" native="false" synchronized="false"
  12285. static="false" final="false" visibility="public"
  12286. deprecated="not deprecated">
  12287. <param name="value" type="boolean"/>
  12288. <doc>
  12289. <![CDATA[Set the value of the BooleanWritable]]>
  12290. </doc>
  12291. </method>
  12292. <method name="get" return="boolean"
  12293. abstract="false" native="false" synchronized="false"
  12294. static="false" final="false" visibility="public"
  12295. deprecated="not deprecated">
  12296. <doc>
  12297. <![CDATA[Returns the value of the BooleanWritable]]>
  12298. </doc>
  12299. </method>
  12300. <method name="readFields"
  12301. abstract="false" native="false" synchronized="false"
  12302. static="false" final="false" visibility="public"
  12303. deprecated="not deprecated">
  12304. <param name="in" type="java.io.DataInput"/>
  12305. <exception name="IOException" type="java.io.IOException"/>
  12306. </method>
  12307. <method name="write"
  12308. abstract="false" native="false" synchronized="false"
  12309. static="false" final="false" visibility="public"
  12310. deprecated="not deprecated">
  12311. <param name="out" type="java.io.DataOutput"/>
  12312. <exception name="IOException" type="java.io.IOException"/>
  12313. </method>
  12314. <method name="equals" return="boolean"
  12315. abstract="false" native="false" synchronized="false"
  12316. static="false" final="false" visibility="public"
  12317. deprecated="not deprecated">
  12318. <param name="o" type="java.lang.Object"/>
  12319. </method>
  12320. <method name="hashCode" return="int"
  12321. abstract="false" native="false" synchronized="false"
  12322. static="false" final="false" visibility="public"
  12323. deprecated="not deprecated">
  12324. </method>
  12325. <method name="compareTo" return="int"
  12326. abstract="false" native="false" synchronized="false"
  12327. static="false" final="false" visibility="public"
  12328. deprecated="not deprecated">
  12329. <param name="o" type="java.lang.Object"/>
  12330. </method>
  12331. <method name="toString" return="java.lang.String"
  12332. abstract="false" native="false" synchronized="false"
  12333. static="false" final="false" visibility="public"
  12334. deprecated="not deprecated">
  12335. </method>
  12336. <doc>
  12337. <![CDATA[A WritableComparable for booleans.]]>
  12338. </doc>
  12339. </class>
  12340. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  12341. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  12342. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12343. abstract="false"
  12344. static="true" final="false" visibility="public"
  12345. deprecated="not deprecated">
  12346. <constructor name="BooleanWritable.Comparator"
  12347. static="false" final="false" visibility="public"
  12348. deprecated="not deprecated">
  12349. </constructor>
  12350. <method name="compare" return="int"
  12351. abstract="false" native="false" synchronized="false"
  12352. static="false" final="false" visibility="public"
  12353. deprecated="not deprecated">
  12354. <param name="b1" type="byte[]"/>
  12355. <param name="s1" type="int"/>
  12356. <param name="l1" type="int"/>
  12357. <param name="b2" type="byte[]"/>
  12358. <param name="s2" type="int"/>
  12359. <param name="l2" type="int"/>
  12360. </method>
  12361. <doc>
  12362. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  12363. </doc>
  12364. </class>
  12365. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  12366. <!-- start class org.apache.hadoop.io.BytesWritable -->
  12367. <class name="BytesWritable" extends="java.lang.Object"
  12368. abstract="false"
  12369. static="false" final="false" visibility="public"
  12370. deprecated="not deprecated">
  12371. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12372. <constructor name="BytesWritable"
  12373. static="false" final="false" visibility="public"
  12374. deprecated="not deprecated">
  12375. <doc>
  12376. <![CDATA[Create a zero-size sequence.]]>
  12377. </doc>
  12378. </constructor>
  12379. <constructor name="BytesWritable" type="byte[]"
  12380. static="false" final="false" visibility="public"
  12381. deprecated="not deprecated">
  12382. <doc>
  12383. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  12384. @param bytes This array becomes the backing storage for the object.]]>
  12385. </doc>
  12386. </constructor>
  12387. <method name="get" return="byte[]"
  12388. abstract="false" native="false" synchronized="false"
  12389. static="false" final="false" visibility="public"
  12390. deprecated="not deprecated">
  12391. <doc>
  12392. <![CDATA[Get the data from the BytesWritable.
  12393. @return The data is only valid between 0 and getSize() - 1.]]>
  12394. </doc>
  12395. </method>
  12396. <method name="getSize" return="int"
  12397. abstract="false" native="false" synchronized="false"
  12398. static="false" final="false" visibility="public"
  12399. deprecated="not deprecated">
  12400. <doc>
  12401. <![CDATA[Get the current size of the buffer.]]>
  12402. </doc>
  12403. </method>
  12404. <method name="setSize"
  12405. abstract="false" native="false" synchronized="false"
  12406. static="false" final="false" visibility="public"
  12407. deprecated="not deprecated">
  12408. <param name="size" type="int"/>
  12409. <doc>
  12410. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  12411. and any new values are undefined. The capacity is changed if it is
  12412. necessary.
  12413. @param size The new number of bytes]]>
  12414. </doc>
  12415. </method>
  12416. <method name="getCapacity" return="int"
  12417. abstract="false" native="false" synchronized="false"
  12418. static="false" final="false" visibility="public"
  12419. deprecated="not deprecated">
  12420. <doc>
  12421. <![CDATA[Get the capacity, which is the maximum size that could handled without
  12422. resizing the backing storage.
  12423. @return The number of bytes]]>
  12424. </doc>
  12425. </method>
  12426. <method name="setCapacity"
  12427. abstract="false" native="false" synchronized="false"
  12428. static="false" final="false" visibility="public"
  12429. deprecated="not deprecated">
  12430. <param name="new_cap" type="int"/>
  12431. <doc>
  12432. <![CDATA[Change the capacity of the backing storage.
  12433. The data is preserved.
  12434. @param new_cap The new capacity in bytes.]]>
  12435. </doc>
  12436. </method>
  12437. <method name="set"
  12438. abstract="false" native="false" synchronized="false"
  12439. static="false" final="false" visibility="public"
  12440. deprecated="not deprecated">
  12441. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  12442. <doc>
  12443. <![CDATA[Set the BytesWritable to the contents of the given newData.
  12444. @param newData the value to set this BytesWritable to.]]>
  12445. </doc>
  12446. </method>
  12447. <method name="set"
  12448. abstract="false" native="false" synchronized="false"
  12449. static="false" final="false" visibility="public"
  12450. deprecated="not deprecated">
  12451. <param name="newData" type="byte[]"/>
  12452. <param name="offset" type="int"/>
  12453. <param name="length" type="int"/>
  12454. <doc>
  12455. <![CDATA[Set the value to a copy of the given byte range
  12456. @param newData the new values to copy in
  12457. @param offset the offset in newData to start at
  12458. @param length the number of bytes to copy]]>
  12459. </doc>
  12460. </method>
  12461. <method name="readFields"
  12462. abstract="false" native="false" synchronized="false"
  12463. static="false" final="false" visibility="public"
  12464. deprecated="not deprecated">
  12465. <param name="in" type="java.io.DataInput"/>
  12466. <exception name="IOException" type="java.io.IOException"/>
  12467. </method>
  12468. <method name="write"
  12469. abstract="false" native="false" synchronized="false"
  12470. static="false" final="false" visibility="public"
  12471. deprecated="not deprecated">
  12472. <param name="out" type="java.io.DataOutput"/>
  12473. <exception name="IOException" type="java.io.IOException"/>
  12474. </method>
  12475. <method name="hashCode" return="int"
  12476. abstract="false" native="false" synchronized="false"
  12477. static="false" final="false" visibility="public"
  12478. deprecated="not deprecated">
  12479. </method>
  12480. <method name="compareTo" return="int"
  12481. abstract="false" native="false" synchronized="false"
  12482. static="false" final="false" visibility="public"
  12483. deprecated="not deprecated">
  12484. <param name="right_obj" type="java.lang.Object"/>
  12485. <doc>
  12486. <![CDATA[Define the sort order of the BytesWritable.
  12487. @param right_obj The other bytes writable
  12488. @return Positive if left is bigger than right, 0 if they are equal, and
  12489. negative if left is smaller than right.]]>
  12490. </doc>
  12491. </method>
  12492. <method name="equals" return="boolean"
  12493. abstract="false" native="false" synchronized="false"
  12494. static="false" final="false" visibility="public"
  12495. deprecated="not deprecated">
  12496. <param name="right_obj" type="java.lang.Object"/>
  12497. <doc>
  12498. <![CDATA[Are the two byte sequences equal?]]>
  12499. </doc>
  12500. </method>
  12501. <method name="toString" return="java.lang.String"
  12502. abstract="false" native="false" synchronized="false"
  12503. static="false" final="false" visibility="public"
  12504. deprecated="not deprecated">
  12505. <doc>
  12506. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  12507. </doc>
  12508. </method>
  12509. <doc>
  12510. <![CDATA[A byte sequence that is usable as a key or value.
  12511. It is resizable and distinguishes between the size of the seqeunce and
  12512. the current capacity. The hash function is the front of the md5 of the
  12513. buffer. The sort order is the same as memcmp.]]>
  12514. </doc>
  12515. </class>
  12516. <!-- end class org.apache.hadoop.io.BytesWritable -->
  12517. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  12518. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12519. abstract="false"
  12520. static="true" final="false" visibility="public"
  12521. deprecated="not deprecated">
  12522. <constructor name="BytesWritable.Comparator"
  12523. static="false" final="false" visibility="public"
  12524. deprecated="not deprecated">
  12525. </constructor>
  12526. <method name="compare" return="int"
  12527. abstract="false" native="false" synchronized="false"
  12528. static="false" final="false" visibility="public"
  12529. deprecated="not deprecated">
  12530. <param name="b1" type="byte[]"/>
  12531. <param name="s1" type="int"/>
  12532. <param name="l1" type="int"/>
  12533. <param name="b2" type="byte[]"/>
  12534. <param name="s2" type="int"/>
  12535. <param name="l2" type="int"/>
  12536. <doc>
  12537. <![CDATA[Compare the buffers in serialized form.]]>
  12538. </doc>
  12539. </method>
  12540. <doc>
  12541. <![CDATA[A Comparator optimized for BytesWritable.]]>
  12542. </doc>
  12543. </class>
  12544. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  12545. <!-- start interface org.apache.hadoop.io.Closeable -->
  12546. <interface name="Closeable" abstract="true"
  12547. static="false" final="false" visibility="public"
  12548. deprecated="not deprecated">
  12549. <method name="close"
  12550. abstract="false" native="false" synchronized="false"
  12551. static="false" final="false" visibility="public"
  12552. deprecated="not deprecated">
  12553. <exception name="IOException" type="java.io.IOException"/>
  12554. <doc>
  12555. <![CDATA[Called after the last call to any other method on this object to free
  12556. and/or flush resources. Typical implementations do nothing.]]>
  12557. </doc>
  12558. </method>
  12559. <doc>
  12560. <![CDATA[That which can be closed.]]>
  12561. </doc>
  12562. </interface>
  12563. <!-- end interface org.apache.hadoop.io.Closeable -->
  12564. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  12565. <class name="CompressedWritable" extends="java.lang.Object"
  12566. abstract="true"
  12567. static="false" final="false" visibility="public"
  12568. deprecated="not deprecated">
  12569. <implements name="org.apache.hadoop.io.Writable"/>
  12570. <constructor name="CompressedWritable"
  12571. static="false" final="false" visibility="public"
  12572. deprecated="not deprecated">
  12573. </constructor>
  12574. <method name="readFields"
  12575. abstract="false" native="false" synchronized="false"
  12576. static="false" final="true" visibility="public"
  12577. deprecated="not deprecated">
  12578. <param name="in" type="java.io.DataInput"/>
  12579. <exception name="IOException" type="java.io.IOException"/>
  12580. </method>
  12581. <method name="ensureInflated"
  12582. abstract="false" native="false" synchronized="false"
  12583. static="false" final="false" visibility="protected"
  12584. deprecated="not deprecated">
  12585. <doc>
  12586. <![CDATA[Must be called by all methods which access fields to ensure that the data
  12587. has been uncompressed.]]>
  12588. </doc>
  12589. </method>
  12590. <method name="readFieldsCompressed"
  12591. abstract="true" native="false" synchronized="false"
  12592. static="false" final="false" visibility="protected"
  12593. deprecated="not deprecated">
  12594. <param name="in" type="java.io.DataInput"/>
  12595. <exception name="IOException" type="java.io.IOException"/>
  12596. <doc>
  12597. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  12598. </doc>
  12599. </method>
  12600. <method name="write"
  12601. abstract="false" native="false" synchronized="false"
  12602. static="false" final="true" visibility="public"
  12603. deprecated="not deprecated">
  12604. <param name="out" type="java.io.DataOutput"/>
  12605. <exception name="IOException" type="java.io.IOException"/>
  12606. </method>
  12607. <method name="writeCompressed"
  12608. abstract="true" native="false" synchronized="false"
  12609. static="false" final="false" visibility="protected"
  12610. deprecated="not deprecated">
  12611. <param name="out" type="java.io.DataOutput"/>
  12612. <exception name="IOException" type="java.io.IOException"/>
  12613. <doc>
  12614. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  12615. </doc>
  12616. </method>
  12617. <doc>
  12618. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  12619. inflate on field access. This is useful for large objects whose fields are
  12620. not be altered during a map or reduce operation: leaving the field data
  12621. compressed makes copying the instance from one file to another much
  12622. faster.]]>
  12623. </doc>
  12624. </class>
  12625. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  12626. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  12627. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  12628. abstract="false"
  12629. static="false" final="false" visibility="public"
  12630. deprecated="not deprecated">
  12631. <constructor name="DataInputBuffer"
  12632. static="false" final="false" visibility="public"
  12633. deprecated="not deprecated">
  12634. <doc>
  12635. <![CDATA[Constructs a new empty buffer.]]>
  12636. </doc>
  12637. </constructor>
  12638. <method name="reset"
  12639. abstract="false" native="false" synchronized="false"
  12640. static="false" final="false" visibility="public"
  12641. deprecated="not deprecated">
  12642. <param name="input" type="byte[]"/>
  12643. <param name="length" type="int"/>
  12644. <doc>
  12645. <![CDATA[Resets the data that the buffer reads.]]>
  12646. </doc>
  12647. </method>
  12648. <method name="reset"
  12649. abstract="false" native="false" synchronized="false"
  12650. static="false" final="false" visibility="public"
  12651. deprecated="not deprecated">
  12652. <param name="input" type="byte[]"/>
  12653. <param name="start" type="int"/>
  12654. <param name="length" type="int"/>
  12655. <doc>
  12656. <![CDATA[Resets the data that the buffer reads.]]>
  12657. </doc>
  12658. </method>
  12659. <method name="getPosition" return="int"
  12660. abstract="false" native="false" synchronized="false"
  12661. static="false" final="false" visibility="public"
  12662. deprecated="not deprecated">
  12663. <doc>
  12664. <![CDATA[Returns the current position in the input.]]>
  12665. </doc>
  12666. </method>
  12667. <method name="getLength" return="int"
  12668. abstract="false" native="false" synchronized="false"
  12669. static="false" final="false" visibility="public"
  12670. deprecated="not deprecated">
  12671. <doc>
  12672. <![CDATA[Returns the length of the input.]]>
  12673. </doc>
  12674. </method>
  12675. <doc>
  12676. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  12677. buffer.
  12678. <p>This saves memory over creating a new DataInputStream and
  12679. ByteArrayInputStream each time data is read.
  12680. <p>Typical usage is something like the following:<pre>
  12681. DataInputBuffer buffer = new DataInputBuffer();
  12682. while (... loop condition ...) {
  12683. byte[] data = ... get data ...;
  12684. int dataLength = ... get data length ...;
  12685. buffer.reset(data, dataLength);
  12686. ... read buffer using DataInput methods ...
  12687. }
  12688. </pre>]]>
  12689. </doc>
  12690. </class>
  12691. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  12692. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  12693. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  12694. abstract="false"
  12695. static="false" final="false" visibility="public"
  12696. deprecated="not deprecated">
  12697. <constructor name="DataOutputBuffer"
  12698. static="false" final="false" visibility="public"
  12699. deprecated="not deprecated">
  12700. <doc>
  12701. <![CDATA[Constructs a new empty buffer.]]>
  12702. </doc>
  12703. </constructor>
  12704. <method name="getData" return="byte[]"
  12705. abstract="false" native="false" synchronized="false"
  12706. static="false" final="false" visibility="public"
  12707. deprecated="not deprecated">
  12708. <doc>
  12709. <![CDATA[Returns the current contents of the buffer.
  12710. Data is only valid to {@link #getLength()}.]]>
  12711. </doc>
  12712. </method>
  12713. <method name="getLength" return="int"
  12714. abstract="false" native="false" synchronized="false"
  12715. static="false" final="false" visibility="public"
  12716. deprecated="not deprecated">
  12717. <doc>
  12718. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  12719. </doc>
  12720. </method>
  12721. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  12722. abstract="false" native="false" synchronized="false"
  12723. static="false" final="false" visibility="public"
  12724. deprecated="not deprecated">
  12725. <doc>
  12726. <![CDATA[Resets the buffer to empty.]]>
  12727. </doc>
  12728. </method>
  12729. <method name="write"
  12730. abstract="false" native="false" synchronized="false"
  12731. static="false" final="false" visibility="public"
  12732. deprecated="not deprecated">
  12733. <param name="in" type="java.io.DataInput"/>
  12734. <param name="length" type="int"/>
  12735. <exception name="IOException" type="java.io.IOException"/>
  12736. <doc>
  12737. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  12738. </doc>
  12739. </method>
  12740. <doc>
  12741. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  12742. buffer.
  12743. <p>This saves memory over creating a new DataOutputStream and
  12744. ByteArrayOutputStream each time data is written.
  12745. <p>Typical usage is something like the following:<pre>
  12746. DataOutputBuffer buffer = new DataOutputBuffer();
  12747. while (... loop condition ...) {
  12748. buffer.reset();
  12749. ... write buffer using DataOutput methods ...
  12750. byte[] data = buffer.getData();
  12751. int dataLength = buffer.getLength();
  12752. ... write data to its ultimate destination ...
  12753. }
  12754. </pre>]]>
  12755. </doc>
  12756. </class>
  12757. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  12758. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  12759. <class name="DefaultStringifier" extends="java.lang.Object"
  12760. abstract="false"
  12761. static="false" final="false" visibility="public"
  12762. deprecated="not deprecated">
  12763. <implements name="org.apache.hadoop.io.Stringifier&lt;T&gt;"/>
  12764. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class&lt;T&gt;"
  12765. static="false" final="false" visibility="public"
  12766. deprecated="not deprecated">
  12767. </constructor>
  12768. <method name="fromString" return="T"
  12769. abstract="false" native="false" synchronized="false"
  12770. static="false" final="false" visibility="public"
  12771. deprecated="not deprecated">
  12772. <param name="str" type="java.lang.String"/>
  12773. <exception name="IOException" type="java.io.IOException"/>
  12774. </method>
  12775. <method name="toString" return="java.lang.String"
  12776. abstract="false" native="false" synchronized="false"
  12777. static="false" final="false" visibility="public"
  12778. deprecated="not deprecated">
  12779. <param name="obj" type="T"/>
  12780. <exception name="IOException" type="java.io.IOException"/>
  12781. </method>
  12782. <method name="close"
  12783. abstract="false" native="false" synchronized="false"
  12784. static="false" final="false" visibility="public"
  12785. deprecated="not deprecated">
  12786. <exception name="IOException" type="java.io.IOException"/>
  12787. </method>
  12788. <method name="store"
  12789. abstract="false" native="false" synchronized="false"
  12790. static="true" final="false" visibility="public"
  12791. deprecated="not deprecated">
  12792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12793. <param name="item" type="K"/>
  12794. <param name="keyName" type="java.lang.String"/>
  12795. <exception name="IOException" type="java.io.IOException"/>
  12796. <doc>
  12797. <![CDATA[Stores the item in the configuration with the given keyName.
  12798. @param <K> the class of the item
  12799. @param conf the configuration to store
  12800. @param item the object to be stored
  12801. @param keyName the name of the key to use
  12802. @throws IOException : forwards Exceptions from the underlying
  12803. {@link Serialization} classes.]]>
  12804. </doc>
  12805. </method>
  12806. <method name="load" return="K"
  12807. abstract="false" native="false" synchronized="false"
  12808. static="true" final="false" visibility="public"
  12809. deprecated="not deprecated">
  12810. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12811. <param name="keyName" type="java.lang.String"/>
  12812. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  12813. <exception name="IOException" type="java.io.IOException"/>
  12814. <doc>
  12815. <![CDATA[Restores the object from the configuration.
  12816. @param <K> the class of the item
  12817. @param conf the configuration to use
  12818. @param keyName the name of the key to use
  12819. @param itemClass the class of the item
  12820. @return restored object
  12821. @throws IOException : forwards Exceptions from the underlying
  12822. {@link Serialization} classes.]]>
  12823. </doc>
  12824. </method>
  12825. <method name="storeArray"
  12826. abstract="false" native="false" synchronized="false"
  12827. static="true" final="false" visibility="public"
  12828. deprecated="not deprecated">
  12829. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12830. <param name="items" type="K[]"/>
  12831. <param name="keyName" type="java.lang.String"/>
  12832. <exception name="IOException" type="java.io.IOException"/>
  12833. <doc>
  12834. <![CDATA[Stores the array of items in the configuration with the given keyName.
  12835. @param <K> the class of the item
  12836. @param conf the configuration to use
  12837. @param items the objects to be stored
  12838. @param keyName the name of the key to use
  12839. @throws IndexOutOfBoundsException if the items array is empty
  12840. @throws IOException : forwards Exceptions from the underlying
  12841. {@link Serialization} classes.]]>
  12842. </doc>
  12843. </method>
  12844. <method name="loadArray" return="K[]"
  12845. abstract="false" native="false" synchronized="false"
  12846. static="true" final="false" visibility="public"
  12847. deprecated="not deprecated">
  12848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12849. <param name="keyName" type="java.lang.String"/>
  12850. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  12851. <exception name="IOException" type="java.io.IOException"/>
  12852. <doc>
  12853. <![CDATA[Restores the array of objects from the configuration.
  12854. @param <K> the class of the item
  12855. @param conf the configuration to use
  12856. @param keyName the name of the key to use
  12857. @param itemClass the class of the item
  12858. @return restored object
  12859. @throws IOException : forwards Exceptions from the underlying
  12860. {@link Serialization} classes.]]>
  12861. </doc>
  12862. </method>
  12863. <doc>
  12864. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  12865. interface which stringifies the objects using base64 encoding of the
  12866. serialized version of the objects. The {@link Serializer} and
  12867. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  12868. <br>
  12869. DefaultStringifier offers convenience methods to store/load objects to/from
  12870. the configuration.
  12871. @param <T> the class of the objects to stringify]]>
  12872. </doc>
  12873. </class>
  12874. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  12875. <!-- start class org.apache.hadoop.io.FloatWritable -->
  12876. <class name="FloatWritable" extends="java.lang.Object"
  12877. abstract="false"
  12878. static="false" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <implements name="org.apache.hadoop.io.WritableComparable"/>
  12881. <constructor name="FloatWritable"
  12882. static="false" final="false" visibility="public"
  12883. deprecated="not deprecated">
  12884. </constructor>
  12885. <constructor name="FloatWritable" type="float"
  12886. static="false" final="false" visibility="public"
  12887. deprecated="not deprecated">
  12888. </constructor>
  12889. <method name="set"
  12890. abstract="false" native="false" synchronized="false"
  12891. static="false" final="false" visibility="public"
  12892. deprecated="not deprecated">
  12893. <param name="value" type="float"/>
  12894. <doc>
  12895. <![CDATA[Set the value of this FloatWritable.]]>
  12896. </doc>
  12897. </method>
  12898. <method name="get" return="float"
  12899. abstract="false" native="false" synchronized="false"
  12900. static="false" final="false" visibility="public"
  12901. deprecated="not deprecated">
  12902. <doc>
  12903. <![CDATA[Return the value of this FloatWritable.]]>
  12904. </doc>
  12905. </method>
  12906. <method name="readFields"
  12907. abstract="false" native="false" synchronized="false"
  12908. static="false" final="false" visibility="public"
  12909. deprecated="not deprecated">
  12910. <param name="in" type="java.io.DataInput"/>
  12911. <exception name="IOException" type="java.io.IOException"/>
  12912. </method>
  12913. <method name="write"
  12914. abstract="false" native="false" synchronized="false"
  12915. static="false" final="false" visibility="public"
  12916. deprecated="not deprecated">
  12917. <param name="out" type="java.io.DataOutput"/>
  12918. <exception name="IOException" type="java.io.IOException"/>
  12919. </method>
  12920. <method name="equals" return="boolean"
  12921. abstract="false" native="false" synchronized="false"
  12922. static="false" final="false" visibility="public"
  12923. deprecated="not deprecated">
  12924. <param name="o" type="java.lang.Object"/>
  12925. <doc>
  12926. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  12927. </doc>
  12928. </method>
  12929. <method name="hashCode" return="int"
  12930. abstract="false" native="false" synchronized="false"
  12931. static="false" final="false" visibility="public"
  12932. deprecated="not deprecated">
  12933. </method>
  12934. <method name="compareTo" return="int"
  12935. abstract="false" native="false" synchronized="false"
  12936. static="false" final="false" visibility="public"
  12937. deprecated="not deprecated">
  12938. <param name="o" type="java.lang.Object"/>
  12939. <doc>
  12940. <![CDATA[Compares two FloatWritables.]]>
  12941. </doc>
  12942. </method>
  12943. <method name="toString" return="java.lang.String"
  12944. abstract="false" native="false" synchronized="false"
  12945. static="false" final="false" visibility="public"
  12946. deprecated="not deprecated">
  12947. </method>
  12948. <doc>
  12949. <![CDATA[A WritableComparable for floats.]]>
  12950. </doc>
  12951. </class>
  12952. <!-- end class org.apache.hadoop.io.FloatWritable -->
  12953. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  12954. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  12955. abstract="false"
  12956. static="true" final="false" visibility="public"
  12957. deprecated="not deprecated">
  12958. <constructor name="FloatWritable.Comparator"
  12959. static="false" final="false" visibility="public"
  12960. deprecated="not deprecated">
  12961. </constructor>
  12962. <method name="compare" return="int"
  12963. abstract="false" native="false" synchronized="false"
  12964. static="false" final="false" visibility="public"
  12965. deprecated="not deprecated">
  12966. <param name="b1" type="byte[]"/>
  12967. <param name="s1" type="int"/>
  12968. <param name="l1" type="int"/>
  12969. <param name="b2" type="byte[]"/>
  12970. <param name="s2" type="int"/>
  12971. <param name="l2" type="int"/>
  12972. </method>
  12973. <doc>
  12974. <![CDATA[A Comparator optimized for FloatWritable.]]>
  12975. </doc>
  12976. </class>
  12977. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  12978. <!-- start class org.apache.hadoop.io.GenericWritable -->
  12979. <class name="GenericWritable" extends="java.lang.Object"
  12980. abstract="true"
  12981. static="false" final="false" visibility="public"
  12982. deprecated="not deprecated">
  12983. <implements name="org.apache.hadoop.io.Writable"/>
  12984. <implements name="org.apache.hadoop.conf.Configurable"/>
  12985. <constructor name="GenericWritable"
  12986. static="false" final="false" visibility="public"
  12987. deprecated="not deprecated">
  12988. </constructor>
  12989. <method name="set"
  12990. abstract="false" native="false" synchronized="false"
  12991. static="false" final="false" visibility="public"
  12992. deprecated="not deprecated">
  12993. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  12994. <doc>
  12995. <![CDATA[Set the instance that is wrapped.
  12996. @param obj]]>
  12997. </doc>
  12998. </method>
  12999. <method name="get" return="org.apache.hadoop.io.Writable"
  13000. abstract="false" native="false" synchronized="false"
  13001. static="false" final="false" visibility="public"
  13002. deprecated="not deprecated">
  13003. <doc>
  13004. <![CDATA[Return the wrapped instance.]]>
  13005. </doc>
  13006. </method>
  13007. <method name="toString" return="java.lang.String"
  13008. abstract="false" native="false" synchronized="false"
  13009. static="false" final="false" visibility="public"
  13010. deprecated="not deprecated">
  13011. </method>
  13012. <method name="readFields"
  13013. abstract="false" native="false" synchronized="false"
  13014. static="false" final="false" visibility="public"
  13015. deprecated="not deprecated">
  13016. <param name="in" type="java.io.DataInput"/>
  13017. <exception name="IOException" type="java.io.IOException"/>
  13018. </method>
  13019. <method name="write"
  13020. abstract="false" native="false" synchronized="false"
  13021. static="false" final="false" visibility="public"
  13022. deprecated="not deprecated">
  13023. <param name="out" type="java.io.DataOutput"/>
  13024. <exception name="IOException" type="java.io.IOException"/>
  13025. </method>
  13026. <method name="getTypes" return="java.lang.Class[]"
  13027. abstract="true" native="false" synchronized="false"
  13028. static="false" final="false" visibility="protected"
  13029. deprecated="not deprecated">
  13030. <doc>
  13031. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  13032. to return a constant array of classes.]]>
  13033. </doc>
  13034. </method>
  13035. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13036. abstract="false" native="false" synchronized="false"
  13037. static="false" final="false" visibility="public"
  13038. deprecated="not deprecated">
  13039. </method>
  13040. <method name="setConf"
  13041. abstract="false" native="false" synchronized="false"
  13042. static="false" final="false" visibility="public"
  13043. deprecated="not deprecated">
  13044. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13045. </method>
  13046. <doc>
  13047. <![CDATA[A wrapper for Writable instances.
  13048. <p>
  13049. When two sequence files, which have same Key type but different Value
  13050. types, are mapped out to reduce, multiple Value types is not allowed.
  13051. In this case, this class can help you wrap instances with different types.
  13052. </p>
  13053. <p>
  13054. Compared with <code>ObjectWritable</code>, this class is much more effective,
  13055. because <code>ObjectWritable</code> will append the class declaration as a String
  13056. into the output file in every Key-Value pair.
  13057. </p>
  13058. <p>
  13059. Generic Writable implements {@link Configurable} interface, so that it will be
  13060. configured by the framework. The configuration is passed to the wrapped objects
  13061. implementing {@link Configurable} interface <i>before deserialization</i>.
  13062. </p>
  13063. how to use it: <br>
  13064. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  13065. 2. Implements the abstract method <code>getTypes()</code>, defines
  13066. the classes which will be wrapped in GenericObject in application.
  13067. Attention: this classes defined in <code>getTypes()</code> method, must
  13068. implement <code>Writable</code> interface.
  13069. <br><br>
  13070. The code looks like this:
  13071. <blockquote><pre>
  13072. public class GenericObject extends GenericWritable {
  13073. private static Class[] CLASSES = {
  13074. ClassType1.class,
  13075. ClassType2.class,
  13076. ClassType3.class,
  13077. };
  13078. protected Class[] getTypes() {
  13079. return CLASSES;
  13080. }
  13081. }
  13082. </pre></blockquote>
  13083. @since Nov 8, 2006]]>
  13084. </doc>
  13085. </class>
  13086. <!-- end class org.apache.hadoop.io.GenericWritable -->
  13087. <!-- start class org.apache.hadoop.io.InputBuffer -->
  13088. <class name="InputBuffer" extends="java.io.FilterInputStream"
  13089. abstract="false"
  13090. static="false" final="false" visibility="public"
  13091. deprecated="not deprecated">
  13092. <constructor name="InputBuffer"
  13093. static="false" final="false" visibility="public"
  13094. deprecated="not deprecated">
  13095. <doc>
  13096. <![CDATA[Constructs a new empty buffer.]]>
  13097. </doc>
  13098. </constructor>
  13099. <method name="reset"
  13100. abstract="false" native="false" synchronized="false"
  13101. static="false" final="false" visibility="public"
  13102. deprecated="not deprecated">
  13103. <param name="input" type="byte[]"/>
  13104. <param name="length" type="int"/>
  13105. <doc>
  13106. <![CDATA[Resets the data that the buffer reads.]]>
  13107. </doc>
  13108. </method>
  13109. <method name="reset"
  13110. abstract="false" native="false" synchronized="false"
  13111. static="false" final="false" visibility="public"
  13112. deprecated="not deprecated">
  13113. <param name="input" type="byte[]"/>
  13114. <param name="start" type="int"/>
  13115. <param name="length" type="int"/>
  13116. <doc>
  13117. <![CDATA[Resets the data that the buffer reads.]]>
  13118. </doc>
  13119. </method>
  13120. <method name="getPosition" return="int"
  13121. abstract="false" native="false" synchronized="false"
  13122. static="false" final="false" visibility="public"
  13123. deprecated="not deprecated">
  13124. <doc>
  13125. <![CDATA[Returns the current position in the input.]]>
  13126. </doc>
  13127. </method>
  13128. <method name="getLength" return="int"
  13129. abstract="false" native="false" synchronized="false"
  13130. static="false" final="false" visibility="public"
  13131. deprecated="not deprecated">
  13132. <doc>
  13133. <![CDATA[Returns the length of the input.]]>
  13134. </doc>
  13135. </method>
  13136. <doc>
  13137. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  13138. buffer.
  13139. <p>This saves memory over creating a new InputStream and
  13140. ByteArrayInputStream each time data is read.
  13141. <p>Typical usage is something like the following:<pre>
  13142. InputBuffer buffer = new InputBuffer();
  13143. while (... loop condition ...) {
  13144. byte[] data = ... get data ...;
  13145. int dataLength = ... get data length ...;
  13146. buffer.reset(data, dataLength);
  13147. ... read buffer using InputStream methods ...
  13148. }
  13149. </pre>
  13150. @see DataInputBuffer
  13151. @see DataOutput]]>
  13152. </doc>
  13153. </class>
  13154. <!-- end class org.apache.hadoop.io.InputBuffer -->
  13155. <!-- start class org.apache.hadoop.io.IntWritable -->
  13156. <class name="IntWritable" extends="java.lang.Object"
  13157. abstract="false"
  13158. static="false" final="false" visibility="public"
  13159. deprecated="not deprecated">
  13160. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13161. <constructor name="IntWritable"
  13162. static="false" final="false" visibility="public"
  13163. deprecated="not deprecated">
  13164. </constructor>
  13165. <constructor name="IntWritable" type="int"
  13166. static="false" final="false" visibility="public"
  13167. deprecated="not deprecated">
  13168. </constructor>
  13169. <method name="set"
  13170. abstract="false" native="false" synchronized="false"
  13171. static="false" final="false" visibility="public"
  13172. deprecated="not deprecated">
  13173. <param name="value" type="int"/>
  13174. <doc>
  13175. <![CDATA[Set the value of this IntWritable.]]>
  13176. </doc>
  13177. </method>
  13178. <method name="get" return="int"
  13179. abstract="false" native="false" synchronized="false"
  13180. static="false" final="false" visibility="public"
  13181. deprecated="not deprecated">
  13182. <doc>
  13183. <![CDATA[Return the value of this IntWritable.]]>
  13184. </doc>
  13185. </method>
  13186. <method name="readFields"
  13187. abstract="false" native="false" synchronized="false"
  13188. static="false" final="false" visibility="public"
  13189. deprecated="not deprecated">
  13190. <param name="in" type="java.io.DataInput"/>
  13191. <exception name="IOException" type="java.io.IOException"/>
  13192. </method>
  13193. <method name="write"
  13194. abstract="false" native="false" synchronized="false"
  13195. static="false" final="false" visibility="public"
  13196. deprecated="not deprecated">
  13197. <param name="out" type="java.io.DataOutput"/>
  13198. <exception name="IOException" type="java.io.IOException"/>
  13199. </method>
  13200. <method name="equals" return="boolean"
  13201. abstract="false" native="false" synchronized="false"
  13202. static="false" final="false" visibility="public"
  13203. deprecated="not deprecated">
  13204. <param name="o" type="java.lang.Object"/>
  13205. <doc>
  13206. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  13207. </doc>
  13208. </method>
  13209. <method name="hashCode" return="int"
  13210. abstract="false" native="false" synchronized="false"
  13211. static="false" final="false" visibility="public"
  13212. deprecated="not deprecated">
  13213. </method>
  13214. <method name="compareTo" return="int"
  13215. abstract="false" native="false" synchronized="false"
  13216. static="false" final="false" visibility="public"
  13217. deprecated="not deprecated">
  13218. <param name="o" type="java.lang.Object"/>
  13219. <doc>
  13220. <![CDATA[Compares two IntWritables.]]>
  13221. </doc>
  13222. </method>
  13223. <method name="toString" return="java.lang.String"
  13224. abstract="false" native="false" synchronized="false"
  13225. static="false" final="false" visibility="public"
  13226. deprecated="not deprecated">
  13227. </method>
  13228. <doc>
  13229. <![CDATA[A WritableComparable for ints.]]>
  13230. </doc>
  13231. </class>
  13232. <!-- end class org.apache.hadoop.io.IntWritable -->
  13233. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  13234. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13235. abstract="false"
  13236. static="true" final="false" visibility="public"
  13237. deprecated="not deprecated">
  13238. <constructor name="IntWritable.Comparator"
  13239. static="false" final="false" visibility="public"
  13240. deprecated="not deprecated">
  13241. </constructor>
  13242. <method name="compare" return="int"
  13243. abstract="false" native="false" synchronized="false"
  13244. static="false" final="false" visibility="public"
  13245. deprecated="not deprecated">
  13246. <param name="b1" type="byte[]"/>
  13247. <param name="s1" type="int"/>
  13248. <param name="l1" type="int"/>
  13249. <param name="b2" type="byte[]"/>
  13250. <param name="s2" type="int"/>
  13251. <param name="l2" type="int"/>
  13252. </method>
  13253. <doc>
  13254. <![CDATA[A Comparator optimized for IntWritable.]]>
  13255. </doc>
  13256. </class>
  13257. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  13258. <!-- start class org.apache.hadoop.io.IOUtils -->
  13259. <class name="IOUtils" extends="java.lang.Object"
  13260. abstract="false"
  13261. static="false" final="false" visibility="public"
  13262. deprecated="not deprecated">
  13263. <constructor name="IOUtils"
  13264. static="false" final="false" visibility="public"
  13265. deprecated="not deprecated">
  13266. </constructor>
  13267. <method name="copyBytes"
  13268. abstract="false" native="false" synchronized="false"
  13269. static="true" final="false" visibility="public"
  13270. deprecated="not deprecated">
  13271. <param name="in" type="java.io.InputStream"/>
  13272. <param name="out" type="java.io.OutputStream"/>
  13273. <param name="buffSize" type="int"/>
  13274. <param name="close" type="boolean"/>
  13275. <exception name="IOException" type="java.io.IOException"/>
  13276. <doc>
  13277. <![CDATA[Copies from one stream to another.
  13278. @param in InputStrem to read from
  13279. @param out OutputStream to write to
  13280. @param buffSize the size of the buffer
  13281. @param close whether or not close the InputStream and
  13282. OutputStream at the end. The streams are closed in the finally clause.]]>
  13283. </doc>
  13284. </method>
  13285. <method name="copyBytes"
  13286. abstract="false" native="false" synchronized="false"
  13287. static="true" final="false" visibility="public"
  13288. deprecated="not deprecated">
  13289. <param name="in" type="java.io.InputStream"/>
  13290. <param name="out" type="java.io.OutputStream"/>
  13291. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13292. <exception name="IOException" type="java.io.IOException"/>
  13293. <doc>
  13294. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  13295. at the end</strong>.
  13296. @param in InputStrem to read from
  13297. @param out OutputStream to write to
  13298. @param conf the Configuration object]]>
  13299. </doc>
  13300. </method>
  13301. <method name="copyBytes"
  13302. abstract="false" native="false" synchronized="false"
  13303. static="true" final="false" visibility="public"
  13304. deprecated="not deprecated">
  13305. <param name="in" type="java.io.InputStream"/>
  13306. <param name="out" type="java.io.OutputStream"/>
  13307. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13308. <param name="close" type="boolean"/>
  13309. <exception name="IOException" type="java.io.IOException"/>
  13310. <doc>
  13311. <![CDATA[Copies from one stream to another.
  13312. @param in InputStrem to read from
  13313. @param out OutputStream to write to
  13314. @param conf the Configuration object
  13315. @param close whether or not close the InputStream and
  13316. OutputStream at the end. The streams are closed in the finally clause.]]>
  13317. </doc>
  13318. </method>
  13319. <method name="readFully"
  13320. abstract="false" native="false" synchronized="false"
  13321. static="true" final="false" visibility="public"
  13322. deprecated="not deprecated">
  13323. <param name="in" type="java.io.InputStream"/>
  13324. <param name="buf" type="byte[]"/>
  13325. <param name="off" type="int"/>
  13326. <param name="len" type="int"/>
  13327. <exception name="IOException" type="java.io.IOException"/>
  13328. <doc>
  13329. <![CDATA[Reads len bytes in a loop.
  13330. @param in The InputStream to read from
  13331. @param buf The buffer to fill
  13332. @param off offset from the buffer
  13333. @param len the length of bytes to read
  13334. @throws IOException if it could not read requested number of bytes
  13335. for any reason (including EOF)]]>
  13336. </doc>
  13337. </method>
  13338. <method name="skipFully"
  13339. abstract="false" native="false" synchronized="false"
  13340. static="true" final="false" visibility="public"
  13341. deprecated="not deprecated">
  13342. <param name="in" type="java.io.InputStream"/>
  13343. <param name="len" type="long"/>
  13344. <exception name="IOException" type="java.io.IOException"/>
  13345. <doc>
  13346. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  13347. @param in The InputStream to skip bytes from
  13348. @param len number of bytes to skip.
  13349. @throws IOException if it could not skip requested number of bytes
  13350. for any reason (including EOF)]]>
  13351. </doc>
  13352. </method>
  13353. <method name="closeStream"
  13354. abstract="false" native="false" synchronized="false"
  13355. static="true" final="false" visibility="public"
  13356. deprecated="not deprecated">
  13357. <param name="stream" type="java.io.Closeable"/>
  13358. <doc>
  13359. <![CDATA[Closes the stream ignoring {@link IOException}
  13360. @param stream the Stream to close]]>
  13361. </doc>
  13362. </method>
  13363. <method name="closeSocket"
  13364. abstract="false" native="false" synchronized="false"
  13365. static="true" final="false" visibility="public"
  13366. deprecated="not deprecated">
  13367. <param name="sock" type="java.net.Socket"/>
  13368. <doc>
  13369. <![CDATA[Closes the socket ignoring {@link IOException}
  13370. @param sock the Socket to close]]>
  13371. </doc>
  13372. </method>
  13373. <doc>
  13374. <![CDATA[An utility class for I/O related functionality.]]>
  13375. </doc>
  13376. </class>
  13377. <!-- end class org.apache.hadoop.io.IOUtils -->
  13378. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  13379. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  13380. abstract="false"
  13381. static="true" final="false" visibility="public"
  13382. deprecated="not deprecated">
  13383. <constructor name="IOUtils.NullOutputStream"
  13384. static="false" final="false" visibility="public"
  13385. deprecated="not deprecated">
  13386. </constructor>
  13387. <method name="write"
  13388. abstract="false" native="false" synchronized="false"
  13389. static="false" final="false" visibility="public"
  13390. deprecated="not deprecated">
  13391. <param name="b" type="byte[]"/>
  13392. <param name="off" type="int"/>
  13393. <param name="len" type="int"/>
  13394. <exception name="IOException" type="java.io.IOException"/>
  13395. </method>
  13396. <method name="write"
  13397. abstract="false" native="false" synchronized="false"
  13398. static="false" final="false" visibility="public"
  13399. deprecated="not deprecated">
  13400. <param name="b" type="int"/>
  13401. <exception name="IOException" type="java.io.IOException"/>
  13402. </method>
  13403. <doc>
  13404. <![CDATA[/dev/null of OutputStreams.]]>
  13405. </doc>
  13406. </class>
  13407. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  13408. <!-- start class org.apache.hadoop.io.LongWritable -->
  13409. <class name="LongWritable" extends="java.lang.Object"
  13410. abstract="false"
  13411. static="false" final="false" visibility="public"
  13412. deprecated="not deprecated">
  13413. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13414. <constructor name="LongWritable"
  13415. static="false" final="false" visibility="public"
  13416. deprecated="not deprecated">
  13417. </constructor>
  13418. <constructor name="LongWritable" type="long"
  13419. static="false" final="false" visibility="public"
  13420. deprecated="not deprecated">
  13421. </constructor>
  13422. <method name="set"
  13423. abstract="false" native="false" synchronized="false"
  13424. static="false" final="false" visibility="public"
  13425. deprecated="not deprecated">
  13426. <param name="value" type="long"/>
  13427. <doc>
  13428. <![CDATA[Set the value of this LongWritable.]]>
  13429. </doc>
  13430. </method>
  13431. <method name="get" return="long"
  13432. abstract="false" native="false" synchronized="false"
  13433. static="false" final="false" visibility="public"
  13434. deprecated="not deprecated">
  13435. <doc>
  13436. <![CDATA[Return the value of this LongWritable.]]>
  13437. </doc>
  13438. </method>
  13439. <method name="readFields"
  13440. abstract="false" native="false" synchronized="false"
  13441. static="false" final="false" visibility="public"
  13442. deprecated="not deprecated">
  13443. <param name="in" type="java.io.DataInput"/>
  13444. <exception name="IOException" type="java.io.IOException"/>
  13445. </method>
  13446. <method name="write"
  13447. abstract="false" native="false" synchronized="false"
  13448. static="false" final="false" visibility="public"
  13449. deprecated="not deprecated">
  13450. <param name="out" type="java.io.DataOutput"/>
  13451. <exception name="IOException" type="java.io.IOException"/>
  13452. </method>
  13453. <method name="equals" return="boolean"
  13454. abstract="false" native="false" synchronized="false"
  13455. static="false" final="false" visibility="public"
  13456. deprecated="not deprecated">
  13457. <param name="o" type="java.lang.Object"/>
  13458. <doc>
  13459. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  13460. </doc>
  13461. </method>
  13462. <method name="hashCode" return="int"
  13463. abstract="false" native="false" synchronized="false"
  13464. static="false" final="false" visibility="public"
  13465. deprecated="not deprecated">
  13466. </method>
  13467. <method name="compareTo" return="int"
  13468. abstract="false" native="false" synchronized="false"
  13469. static="false" final="false" visibility="public"
  13470. deprecated="not deprecated">
  13471. <param name="o" type="java.lang.Object"/>
  13472. <doc>
  13473. <![CDATA[Compares two LongWritables.]]>
  13474. </doc>
  13475. </method>
  13476. <method name="toString" return="java.lang.String"
  13477. abstract="false" native="false" synchronized="false"
  13478. static="false" final="false" visibility="public"
  13479. deprecated="not deprecated">
  13480. </method>
  13481. <doc>
  13482. <![CDATA[A WritableComparable for longs.]]>
  13483. </doc>
  13484. </class>
  13485. <!-- end class org.apache.hadoop.io.LongWritable -->
  13486. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  13487. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13488. abstract="false"
  13489. static="true" final="false" visibility="public"
  13490. deprecated="not deprecated">
  13491. <constructor name="LongWritable.Comparator"
  13492. static="false" final="false" visibility="public"
  13493. deprecated="not deprecated">
  13494. </constructor>
  13495. <method name="compare" return="int"
  13496. abstract="false" native="false" synchronized="false"
  13497. static="false" final="false" visibility="public"
  13498. deprecated="not deprecated">
  13499. <param name="b1" type="byte[]"/>
  13500. <param name="s1" type="int"/>
  13501. <param name="l1" type="int"/>
  13502. <param name="b2" type="byte[]"/>
  13503. <param name="s2" type="int"/>
  13504. <param name="l2" type="int"/>
  13505. </method>
  13506. <doc>
  13507. <![CDATA[A Comparator optimized for LongWritable.]]>
  13508. </doc>
  13509. </class>
  13510. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  13511. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  13512. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  13513. abstract="false"
  13514. static="true" final="false" visibility="public"
  13515. deprecated="not deprecated">
  13516. <constructor name="LongWritable.DecreasingComparator"
  13517. static="false" final="false" visibility="public"
  13518. deprecated="not deprecated">
  13519. </constructor>
  13520. <method name="compare" return="int"
  13521. abstract="false" native="false" synchronized="false"
  13522. static="false" final="false" visibility="public"
  13523. deprecated="not deprecated">
  13524. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  13525. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  13526. </method>
  13527. <method name="compare" return="int"
  13528. abstract="false" native="false" synchronized="false"
  13529. static="false" final="false" visibility="public"
  13530. deprecated="not deprecated">
  13531. <param name="b1" type="byte[]"/>
  13532. <param name="s1" type="int"/>
  13533. <param name="l1" type="int"/>
  13534. <param name="b2" type="byte[]"/>
  13535. <param name="s2" type="int"/>
  13536. <param name="l2" type="int"/>
  13537. </method>
  13538. <doc>
  13539. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  13540. </doc>
  13541. </class>
  13542. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  13543. <!-- start class org.apache.hadoop.io.MapFile -->
  13544. <class name="MapFile" extends="java.lang.Object"
  13545. abstract="false"
  13546. static="false" final="false" visibility="public"
  13547. deprecated="not deprecated">
  13548. <constructor name="MapFile"
  13549. static="false" final="false" visibility="protected"
  13550. deprecated="not deprecated">
  13551. </constructor>
  13552. <method name="rename"
  13553. abstract="false" native="false" synchronized="false"
  13554. static="true" final="false" visibility="public"
  13555. deprecated="not deprecated">
  13556. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13557. <param name="oldName" type="java.lang.String"/>
  13558. <param name="newName" type="java.lang.String"/>
  13559. <exception name="IOException" type="java.io.IOException"/>
  13560. <doc>
  13561. <![CDATA[Renames an existing map directory.]]>
  13562. </doc>
  13563. </method>
  13564. <method name="delete"
  13565. abstract="false" native="false" synchronized="false"
  13566. static="true" final="false" visibility="public"
  13567. deprecated="not deprecated">
  13568. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13569. <param name="name" type="java.lang.String"/>
  13570. <exception name="IOException" type="java.io.IOException"/>
  13571. <doc>
  13572. <![CDATA[Deletes the named map file.]]>
  13573. </doc>
  13574. </method>
  13575. <method name="fix" return="long"
  13576. abstract="false" native="false" synchronized="false"
  13577. static="true" final="false" visibility="public"
  13578. deprecated="not deprecated">
  13579. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13580. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  13581. <param name="keyClass" type="java.lang.Class"/>
  13582. <param name="valueClass" type="java.lang.Class"/>
  13583. <param name="dryrun" type="boolean"/>
  13584. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13585. <exception name="Exception" type="java.lang.Exception"/>
  13586. <doc>
  13587. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  13588. @param fs filesystem
  13589. @param dir directory containing the MapFile data and index
  13590. @param keyClass key class (has to be a subclass of Writable)
  13591. @param valueClass value class (has to be a subclass of Writable)
  13592. @param dryrun do not perform any changes, just report what needs to be done
  13593. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  13594. @throws Exception]]>
  13595. </doc>
  13596. </method>
  13597. <method name="main"
  13598. abstract="false" native="false" synchronized="false"
  13599. static="true" final="false" visibility="public"
  13600. deprecated="not deprecated">
  13601. <param name="args" type="java.lang.String[]"/>
  13602. <exception name="Exception" type="java.lang.Exception"/>
  13603. </method>
  13604. <field name="INDEX_FILE_NAME" type="java.lang.String"
  13605. transient="false" volatile="false"
  13606. static="true" final="true" visibility="public"
  13607. deprecated="not deprecated">
  13608. <doc>
  13609. <![CDATA[The name of the index file.]]>
  13610. </doc>
  13611. </field>
  13612. <field name="DATA_FILE_NAME" type="java.lang.String"
  13613. transient="false" volatile="false"
  13614. static="true" final="true" visibility="public"
  13615. deprecated="not deprecated">
  13616. <doc>
  13617. <![CDATA[The name of the data file.]]>
  13618. </doc>
  13619. </field>
  13620. <doc>
  13621. <![CDATA[A file-based map from keys to values.
  13622. <p>A map is a directory containing two files, the <code>data</code> file,
  13623. containing all keys and values in the map, and a smaller <code>index</code>
  13624. file, containing a fraction of the keys. The fraction is determined by
  13625. {@link Writer#getIndexInterval()}.
  13626. <p>The index file is read entirely into memory. Thus key implementations
  13627. should try to keep themselves small.
  13628. <p>Map files are created by adding entries in-order. To maintain a large
  13629. database, perform updates by copying the previous version of a database and
  13630. merging in a sorted change list, to create a new version of the database in
  13631. a new file. Sorting large change lists can be done with {@link
  13632. SequenceFile.Sorter}.]]>
  13633. </doc>
  13634. </class>
  13635. <!-- end class org.apache.hadoop.io.MapFile -->
  13636. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  13637. <class name="MapFile.Reader" extends="java.lang.Object"
  13638. abstract="false"
  13639. static="true" final="false" visibility="public"
  13640. deprecated="not deprecated">
  13641. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. <exception name="IOException" type="java.io.IOException"/>
  13645. <doc>
  13646. <![CDATA[Construct a map reader for the named map.]]>
  13647. </doc>
  13648. </constructor>
  13649. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  13650. static="false" final="false" visibility="public"
  13651. deprecated="not deprecated">
  13652. <exception name="IOException" type="java.io.IOException"/>
  13653. <doc>
  13654. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  13655. </doc>
  13656. </constructor>
  13657. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  13658. static="false" final="false" visibility="protected"
  13659. deprecated="not deprecated">
  13660. <exception name="IOException" type="java.io.IOException"/>
  13661. <doc>
  13662. <![CDATA[Hook to allow subclasses to defer opening streams until further
  13663. initialization is complete.
  13664. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  13665. </doc>
  13666. </constructor>
  13667. <method name="getKeyClass" return="java.lang.Class"
  13668. abstract="false" native="false" synchronized="false"
  13669. static="false" final="false" visibility="public"
  13670. deprecated="not deprecated">
  13671. <doc>
  13672. <![CDATA[Returns the class of keys in this file.]]>
  13673. </doc>
  13674. </method>
  13675. <method name="getValueClass" return="java.lang.Class"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <doc>
  13680. <![CDATA[Returns the class of values in this file.]]>
  13681. </doc>
  13682. </method>
  13683. <method name="open"
  13684. abstract="false" native="false" synchronized="true"
  13685. static="false" final="false" visibility="protected"
  13686. deprecated="not deprecated">
  13687. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13688. <param name="dirName" type="java.lang.String"/>
  13689. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  13690. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13691. <exception name="IOException" type="java.io.IOException"/>
  13692. </method>
  13693. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  13694. abstract="false" native="false" synchronized="false"
  13695. static="false" final="false" visibility="protected"
  13696. deprecated="not deprecated">
  13697. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  13698. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  13699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13700. <exception name="IOException" type="java.io.IOException"/>
  13701. <doc>
  13702. <![CDATA[Override this method to specialize the type of
  13703. {@link SequenceFile.Reader} returned.]]>
  13704. </doc>
  13705. </method>
  13706. <method name="reset"
  13707. abstract="false" native="false" synchronized="true"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. <exception name="IOException" type="java.io.IOException"/>
  13711. <doc>
  13712. <![CDATA[Re-positions the reader before its first key.]]>
  13713. </doc>
  13714. </method>
  13715. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  13716. abstract="false" native="false" synchronized="true"
  13717. static="false" final="false" visibility="public"
  13718. deprecated="not deprecated">
  13719. <exception name="IOException" type="java.io.IOException"/>
  13720. <doc>
  13721. <![CDATA[Get the key at approximately the middle of the file.
  13722. @throws IOException]]>
  13723. </doc>
  13724. </method>
  13725. <method name="finalKey"
  13726. abstract="false" native="false" synchronized="true"
  13727. static="false" final="false" visibility="public"
  13728. deprecated="not deprecated">
  13729. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13730. <exception name="IOException" type="java.io.IOException"/>
  13731. <doc>
  13732. <![CDATA[Reads the final key from the file.
  13733. @param key key to read into]]>
  13734. </doc>
  13735. </method>
  13736. <method name="seek" return="boolean"
  13737. abstract="false" native="false" synchronized="true"
  13738. static="false" final="false" visibility="public"
  13739. deprecated="not deprecated">
  13740. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13741. <exception name="IOException" type="java.io.IOException"/>
  13742. <doc>
  13743. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  13744. first entry after the named key. Returns true iff the named key exists
  13745. in this map.]]>
  13746. </doc>
  13747. </method>
  13748. <method name="next" return="boolean"
  13749. abstract="false" native="false" synchronized="true"
  13750. static="false" final="false" visibility="public"
  13751. deprecated="not deprecated">
  13752. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13753. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13754. <exception name="IOException" type="java.io.IOException"/>
  13755. <doc>
  13756. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  13757. <code>val</code>. Returns true if such a pair exists and false when at
  13758. the end of the map]]>
  13759. </doc>
  13760. </method>
  13761. <method name="get" return="org.apache.hadoop.io.Writable"
  13762. abstract="false" native="false" synchronized="true"
  13763. static="false" final="false" visibility="public"
  13764. deprecated="not deprecated">
  13765. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13766. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13767. <exception name="IOException" type="java.io.IOException"/>
  13768. <doc>
  13769. <![CDATA[Return the value for the named key, or null if none exists.]]>
  13770. </doc>
  13771. </method>
  13772. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  13773. abstract="false" native="false" synchronized="true"
  13774. static="false" final="false" visibility="public"
  13775. deprecated="not deprecated">
  13776. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13777. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13778. <exception name="IOException" type="java.io.IOException"/>
  13779. <doc>
  13780. <![CDATA[Finds the record that is the closest match to the specified key.
  13781. Returns <code>key</code> or if it does not exist, at the first entry
  13782. after the named key.
  13783. - * @param key - key that we're trying to find
  13784. - * @param val - data value if key is found
  13785. - * @return - the key that was the closest match or null if eof.]]>
  13786. </doc>
  13787. </method>
  13788. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  13789. abstract="false" native="false" synchronized="true"
  13790. static="false" final="false" visibility="public"
  13791. deprecated="not deprecated">
  13792. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13793. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13794. <param name="before" type="boolean"/>
  13795. <exception name="IOException" type="java.io.IOException"/>
  13796. <doc>
  13797. <![CDATA[Finds the record that is the closest match to the specified key.
  13798. @param key - key that we're trying to find
  13799. @param val - data value if key is found
  13800. @param before - IF true, and <code>key</code> does not exist, return
  13801. the first entry that falls just before the <code>key</code>. Otherwise,
  13802. return the record that sorts just after.
  13803. @return - the key that was the closest match or null if eof.]]>
  13804. </doc>
  13805. </method>
  13806. <method name="close"
  13807. abstract="false" native="false" synchronized="true"
  13808. static="false" final="false" visibility="public"
  13809. deprecated="not deprecated">
  13810. <exception name="IOException" type="java.io.IOException"/>
  13811. <doc>
  13812. <![CDATA[Close the map.]]>
  13813. </doc>
  13814. </method>
  13815. <doc>
  13816. <![CDATA[Provide access to an existing map.]]>
  13817. </doc>
  13818. </class>
  13819. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  13820. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  13821. <class name="MapFile.Writer" extends="java.lang.Object"
  13822. abstract="false"
  13823. static="true" final="false" visibility="public"
  13824. deprecated="not deprecated">
  13825. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  13826. static="false" final="false" visibility="public"
  13827. deprecated="not deprecated">
  13828. <exception name="IOException" type="java.io.IOException"/>
  13829. <doc>
  13830. <![CDATA[Create the named map for keys of the named class.]]>
  13831. </doc>
  13832. </constructor>
  13833. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.util.Progressable"
  13834. static="false" final="false" visibility="public"
  13835. deprecated="not deprecated">
  13836. <exception name="IOException" type="java.io.IOException"/>
  13837. <doc>
  13838. <![CDATA[Create the named map for keys of the named class.]]>
  13839. </doc>
  13840. </constructor>
  13841. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType, org.apache.hadoop.io.compress.CompressionCodec, org.apache.hadoop.util.Progressable"
  13842. static="false" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <exception name="IOException" type="java.io.IOException"/>
  13845. <doc>
  13846. <![CDATA[Create the named map for keys of the named class.]]>
  13847. </doc>
  13848. </constructor>
  13849. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  13850. static="false" final="false" visibility="public"
  13851. deprecated="not deprecated">
  13852. <exception name="IOException" type="java.io.IOException"/>
  13853. <doc>
  13854. <![CDATA[Create the named map for keys of the named class.]]>
  13855. </doc>
  13856. </constructor>
  13857. <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"
  13858. static="false" final="false" visibility="public"
  13859. deprecated="not deprecated">
  13860. <exception name="IOException" type="java.io.IOException"/>
  13861. <doc>
  13862. <![CDATA[Create the named map using the named key comparator.]]>
  13863. </doc>
  13864. </constructor>
  13865. <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"
  13866. static="false" final="false" visibility="public"
  13867. deprecated="not deprecated">
  13868. <exception name="IOException" type="java.io.IOException"/>
  13869. <doc>
  13870. <![CDATA[Create the named map using the named key comparator.]]>
  13871. </doc>
  13872. </constructor>
  13873. <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"
  13874. static="false" final="false" visibility="public"
  13875. deprecated="not deprecated">
  13876. <exception name="IOException" type="java.io.IOException"/>
  13877. <doc>
  13878. <![CDATA[Create the named map using the named key comparator.]]>
  13879. </doc>
  13880. </constructor>
  13881. <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"
  13882. static="false" final="false" visibility="public"
  13883. deprecated="not deprecated">
  13884. <exception name="IOException" type="java.io.IOException"/>
  13885. <doc>
  13886. <![CDATA[Create the named map using the named key comparator.]]>
  13887. </doc>
  13888. </constructor>
  13889. <method name="getIndexInterval" return="int"
  13890. abstract="false" native="false" synchronized="false"
  13891. static="false" final="false" visibility="public"
  13892. deprecated="not deprecated">
  13893. <doc>
  13894. <![CDATA[The number of entries that are added before an index entry is added.]]>
  13895. </doc>
  13896. </method>
  13897. <method name="setIndexInterval"
  13898. abstract="false" native="false" synchronized="false"
  13899. static="false" final="false" visibility="public"
  13900. deprecated="not deprecated">
  13901. <param name="interval" type="int"/>
  13902. <doc>
  13903. <![CDATA[Sets the index interval.
  13904. @see #getIndexInterval()]]>
  13905. </doc>
  13906. </method>
  13907. <method name="setIndexInterval"
  13908. abstract="false" native="false" synchronized="false"
  13909. static="true" final="false" visibility="public"
  13910. deprecated="not deprecated">
  13911. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13912. <param name="interval" type="int"/>
  13913. <doc>
  13914. <![CDATA[Sets the index interval and stores it in conf
  13915. @see #getIndexInterval()]]>
  13916. </doc>
  13917. </method>
  13918. <method name="close"
  13919. abstract="false" native="false" synchronized="true"
  13920. static="false" final="false" visibility="public"
  13921. deprecated="not deprecated">
  13922. <exception name="IOException" type="java.io.IOException"/>
  13923. <doc>
  13924. <![CDATA[Close the map.]]>
  13925. </doc>
  13926. </method>
  13927. <method name="append"
  13928. abstract="false" native="false" synchronized="true"
  13929. static="false" final="false" visibility="public"
  13930. deprecated="not deprecated">
  13931. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  13932. <param name="val" type="org.apache.hadoop.io.Writable"/>
  13933. <exception name="IOException" type="java.io.IOException"/>
  13934. <doc>
  13935. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  13936. to the previous key added to the map.]]>
  13937. </doc>
  13938. </method>
  13939. <doc>
  13940. <![CDATA[Writes a new map.]]>
  13941. </doc>
  13942. </class>
  13943. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  13944. <!-- start class org.apache.hadoop.io.MapWritable -->
  13945. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  13946. abstract="false"
  13947. static="false" final="false" visibility="public"
  13948. deprecated="not deprecated">
  13949. <implements name="java.util.Map&lt;org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable&gt;"/>
  13950. <constructor name="MapWritable"
  13951. static="false" final="false" visibility="public"
  13952. deprecated="not deprecated">
  13953. <doc>
  13954. <![CDATA[Default constructor.]]>
  13955. </doc>
  13956. </constructor>
  13957. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  13958. static="false" final="false" visibility="public"
  13959. deprecated="not deprecated">
  13960. <doc>
  13961. <![CDATA[Copy constructor.
  13962. @param other the map to copy from]]>
  13963. </doc>
  13964. </constructor>
  13965. <method name="clear"
  13966. abstract="false" native="false" synchronized="false"
  13967. static="false" final="false" visibility="public"
  13968. deprecated="not deprecated">
  13969. <doc>
  13970. <![CDATA[{@inheritDoc}]]>
  13971. </doc>
  13972. </method>
  13973. <method name="containsKey" return="boolean"
  13974. abstract="false" native="false" synchronized="false"
  13975. static="false" final="false" visibility="public"
  13976. deprecated="not deprecated">
  13977. <param name="key" type="java.lang.Object"/>
  13978. <doc>
  13979. <![CDATA[{@inheritDoc}]]>
  13980. </doc>
  13981. </method>
  13982. <method name="containsValue" return="boolean"
  13983. abstract="false" native="false" synchronized="false"
  13984. static="false" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <param name="value" type="java.lang.Object"/>
  13987. <doc>
  13988. <![CDATA[{@inheritDoc}]]>
  13989. </doc>
  13990. </method>
  13991. <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;"
  13992. abstract="false" native="false" synchronized="false"
  13993. static="false" final="false" visibility="public"
  13994. deprecated="not deprecated">
  13995. <doc>
  13996. <![CDATA[{@inheritDoc}]]>
  13997. </doc>
  13998. </method>
  13999. <method name="get" return="org.apache.hadoop.io.Writable"
  14000. abstract="false" native="false" synchronized="false"
  14001. static="false" final="false" visibility="public"
  14002. deprecated="not deprecated">
  14003. <param name="key" type="java.lang.Object"/>
  14004. <doc>
  14005. <![CDATA[{@inheritDoc}]]>
  14006. </doc>
  14007. </method>
  14008. <method name="isEmpty" return="boolean"
  14009. abstract="false" native="false" synchronized="false"
  14010. static="false" final="false" visibility="public"
  14011. deprecated="not deprecated">
  14012. <doc>
  14013. <![CDATA[{@inheritDoc}]]>
  14014. </doc>
  14015. </method>
  14016. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.Writable&gt;"
  14017. abstract="false" native="false" synchronized="false"
  14018. static="false" final="false" visibility="public"
  14019. deprecated="not deprecated">
  14020. <doc>
  14021. <![CDATA[{@inheritDoc}]]>
  14022. </doc>
  14023. </method>
  14024. <method name="put" return="org.apache.hadoop.io.Writable"
  14025. abstract="false" native="false" synchronized="false"
  14026. static="false" final="false" visibility="public"
  14027. deprecated="not deprecated">
  14028. <param name="key" type="org.apache.hadoop.io.Writable"/>
  14029. <param name="value" type="org.apache.hadoop.io.Writable"/>
  14030. <doc>
  14031. <![CDATA[{@inheritDoc}]]>
  14032. </doc>
  14033. </method>
  14034. <method name="putAll"
  14035. abstract="false" native="false" synchronized="false"
  14036. static="false" final="false" visibility="public"
  14037. deprecated="not deprecated">
  14038. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.Writable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  14039. <doc>
  14040. <![CDATA[{@inheritDoc}]]>
  14041. </doc>
  14042. </method>
  14043. <method name="remove" return="org.apache.hadoop.io.Writable"
  14044. abstract="false" native="false" synchronized="false"
  14045. static="false" final="false" visibility="public"
  14046. deprecated="not deprecated">
  14047. <param name="key" type="java.lang.Object"/>
  14048. <doc>
  14049. <![CDATA[{@inheritDoc}]]>
  14050. </doc>
  14051. </method>
  14052. <method name="size" return="int"
  14053. abstract="false" native="false" synchronized="false"
  14054. static="false" final="false" visibility="public"
  14055. deprecated="not deprecated">
  14056. <doc>
  14057. <![CDATA[{@inheritDoc}]]>
  14058. </doc>
  14059. </method>
  14060. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  14061. abstract="false" native="false" synchronized="false"
  14062. static="false" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. <doc>
  14065. <![CDATA[{@inheritDoc}]]>
  14066. </doc>
  14067. </method>
  14068. <method name="write"
  14069. abstract="false" native="false" synchronized="false"
  14070. static="false" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <param name="out" type="java.io.DataOutput"/>
  14073. <exception name="IOException" type="java.io.IOException"/>
  14074. <doc>
  14075. <![CDATA[{@inheritDoc}]]>
  14076. </doc>
  14077. </method>
  14078. <method name="readFields"
  14079. abstract="false" native="false" synchronized="false"
  14080. static="false" final="false" visibility="public"
  14081. deprecated="not deprecated">
  14082. <param name="in" type="java.io.DataInput"/>
  14083. <exception name="IOException" type="java.io.IOException"/>
  14084. <doc>
  14085. <![CDATA[{@inheritDoc}]]>
  14086. </doc>
  14087. </method>
  14088. <doc>
  14089. <![CDATA[A Writable Map.]]>
  14090. </doc>
  14091. </class>
  14092. <!-- end class org.apache.hadoop.io.MapWritable -->
  14093. <!-- start class org.apache.hadoop.io.MD5Hash -->
  14094. <class name="MD5Hash" extends="java.lang.Object"
  14095. abstract="false"
  14096. static="false" final="false" visibility="public"
  14097. deprecated="not deprecated">
  14098. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14099. <constructor name="MD5Hash"
  14100. static="false" final="false" visibility="public"
  14101. deprecated="not deprecated">
  14102. <doc>
  14103. <![CDATA[Constructs an MD5Hash.]]>
  14104. </doc>
  14105. </constructor>
  14106. <constructor name="MD5Hash" type="java.lang.String"
  14107. static="false" final="false" visibility="public"
  14108. deprecated="not deprecated">
  14109. <doc>
  14110. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  14111. </doc>
  14112. </constructor>
  14113. <constructor name="MD5Hash" type="byte[]"
  14114. static="false" final="false" visibility="public"
  14115. deprecated="not deprecated">
  14116. <doc>
  14117. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  14118. </doc>
  14119. </constructor>
  14120. <method name="readFields"
  14121. abstract="false" native="false" synchronized="false"
  14122. static="false" final="false" visibility="public"
  14123. deprecated="not deprecated">
  14124. <param name="in" type="java.io.DataInput"/>
  14125. <exception name="IOException" type="java.io.IOException"/>
  14126. </method>
  14127. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  14128. abstract="false" native="false" synchronized="false"
  14129. static="true" final="false" visibility="public"
  14130. deprecated="not deprecated">
  14131. <param name="in" type="java.io.DataInput"/>
  14132. <exception name="IOException" type="java.io.IOException"/>
  14133. <doc>
  14134. <![CDATA[Constructs, reads and returns an instance.]]>
  14135. </doc>
  14136. </method>
  14137. <method name="write"
  14138. abstract="false" native="false" synchronized="false"
  14139. static="false" final="false" visibility="public"
  14140. deprecated="not deprecated">
  14141. <param name="out" type="java.io.DataOutput"/>
  14142. <exception name="IOException" type="java.io.IOException"/>
  14143. </method>
  14144. <method name="set"
  14145. abstract="false" native="false" synchronized="false"
  14146. static="false" final="false" visibility="public"
  14147. deprecated="not deprecated">
  14148. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  14149. <doc>
  14150. <![CDATA[Copy the contents of another instance into this instance.]]>
  14151. </doc>
  14152. </method>
  14153. <method name="getDigest" return="byte[]"
  14154. abstract="false" native="false" synchronized="false"
  14155. static="false" final="false" visibility="public"
  14156. deprecated="not deprecated">
  14157. <doc>
  14158. <![CDATA[Returns the digest bytes.]]>
  14159. </doc>
  14160. </method>
  14161. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  14162. abstract="false" native="false" synchronized="false"
  14163. static="true" final="false" visibility="public"
  14164. deprecated="not deprecated">
  14165. <param name="data" type="byte[]"/>
  14166. <doc>
  14167. <![CDATA[Construct a hash value for a byte array.]]>
  14168. </doc>
  14169. </method>
  14170. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  14171. abstract="false" native="false" synchronized="false"
  14172. static="true" final="false" visibility="public"
  14173. deprecated="not deprecated">
  14174. <param name="data" type="byte[]"/>
  14175. <param name="start" type="int"/>
  14176. <param name="len" type="int"/>
  14177. <doc>
  14178. <![CDATA[Construct a hash value for a byte array.]]>
  14179. </doc>
  14180. </method>
  14181. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  14182. abstract="false" native="false" synchronized="false"
  14183. static="true" final="false" visibility="public"
  14184. deprecated="not deprecated">
  14185. <param name="string" type="java.lang.String"/>
  14186. <doc>
  14187. <![CDATA[Construct a hash value for a String.]]>
  14188. </doc>
  14189. </method>
  14190. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  14191. abstract="false" native="false" synchronized="false"
  14192. static="true" final="false" visibility="public"
  14193. deprecated="not deprecated">
  14194. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  14195. <doc>
  14196. <![CDATA[Construct a hash value for a String.]]>
  14197. </doc>
  14198. </method>
  14199. <method name="halfDigest" return="long"
  14200. abstract="false" native="false" synchronized="false"
  14201. static="false" final="false" visibility="public"
  14202. deprecated="not deprecated">
  14203. <doc>
  14204. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  14205. </doc>
  14206. </method>
  14207. <method name="quarterDigest" return="int"
  14208. abstract="false" native="false" synchronized="false"
  14209. static="false" final="false" visibility="public"
  14210. deprecated="not deprecated">
  14211. <doc>
  14212. <![CDATA[Return a 32-bit digest of the MD5.
  14213. @return the first 4 bytes of the md5]]>
  14214. </doc>
  14215. </method>
  14216. <method name="equals" return="boolean"
  14217. abstract="false" native="false" synchronized="false"
  14218. static="false" final="false" visibility="public"
  14219. deprecated="not deprecated">
  14220. <param name="o" type="java.lang.Object"/>
  14221. <doc>
  14222. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  14223. same values.]]>
  14224. </doc>
  14225. </method>
  14226. <method name="hashCode" return="int"
  14227. abstract="false" native="false" synchronized="false"
  14228. static="false" final="false" visibility="public"
  14229. deprecated="not deprecated">
  14230. <doc>
  14231. <![CDATA[Returns a hash code value for this object.
  14232. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  14233. </doc>
  14234. </method>
  14235. <method name="compareTo" return="int"
  14236. abstract="false" native="false" synchronized="false"
  14237. static="false" final="false" visibility="public"
  14238. deprecated="not deprecated">
  14239. <param name="o" type="java.lang.Object"/>
  14240. <doc>
  14241. <![CDATA[Compares this object with the specified object for order.]]>
  14242. </doc>
  14243. </method>
  14244. <method name="toString" return="java.lang.String"
  14245. abstract="false" native="false" synchronized="false"
  14246. static="false" final="false" visibility="public"
  14247. deprecated="not deprecated">
  14248. <doc>
  14249. <![CDATA[Returns a string representation of this object.]]>
  14250. </doc>
  14251. </method>
  14252. <method name="setDigest"
  14253. abstract="false" native="false" synchronized="false"
  14254. static="false" final="false" visibility="public"
  14255. deprecated="not deprecated">
  14256. <param name="hex" type="java.lang.String"/>
  14257. <doc>
  14258. <![CDATA[Sets the digest value from a hex string.]]>
  14259. </doc>
  14260. </method>
  14261. <field name="MD5_LEN" type="int"
  14262. transient="false" volatile="false"
  14263. static="true" final="true" visibility="public"
  14264. deprecated="not deprecated">
  14265. </field>
  14266. <doc>
  14267. <![CDATA[A Writable for MD5 hash values.]]>
  14268. </doc>
  14269. </class>
  14270. <!-- end class org.apache.hadoop.io.MD5Hash -->
  14271. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  14272. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14273. abstract="false"
  14274. static="true" final="false" visibility="public"
  14275. deprecated="not deprecated">
  14276. <constructor name="MD5Hash.Comparator"
  14277. static="false" final="false" visibility="public"
  14278. deprecated="not deprecated">
  14279. </constructor>
  14280. <method name="compare" return="int"
  14281. abstract="false" native="false" synchronized="false"
  14282. static="false" final="false" visibility="public"
  14283. deprecated="not deprecated">
  14284. <param name="b1" type="byte[]"/>
  14285. <param name="s1" type="int"/>
  14286. <param name="l1" type="int"/>
  14287. <param name="b2" type="byte[]"/>
  14288. <param name="s2" type="int"/>
  14289. <param name="l2" type="int"/>
  14290. </method>
  14291. <doc>
  14292. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  14293. </doc>
  14294. </class>
  14295. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  14296. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  14297. <class name="MultipleIOException" extends="java.io.IOException"
  14298. abstract="false"
  14299. static="false" final="false" visibility="public"
  14300. deprecated="not deprecated">
  14301. <method name="getExceptions" return="java.util.List&lt;java.io.IOException&gt;"
  14302. abstract="false" native="false" synchronized="false"
  14303. static="false" final="false" visibility="public"
  14304. deprecated="not deprecated">
  14305. <doc>
  14306. <![CDATA[@return the underlying exceptions]]>
  14307. </doc>
  14308. </method>
  14309. <method name="createIOException" return="java.io.IOException"
  14310. abstract="false" native="false" synchronized="false"
  14311. static="true" final="false" visibility="public"
  14312. deprecated="not deprecated">
  14313. <param name="exceptions" type="java.util.List&lt;java.io.IOException&gt;"/>
  14314. <doc>
  14315. <![CDATA[A convenient method to create an {@link IOException}.]]>
  14316. </doc>
  14317. </method>
  14318. <doc>
  14319. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  14320. </doc>
  14321. </class>
  14322. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  14323. <!-- start class org.apache.hadoop.io.NullWritable -->
  14324. <class name="NullWritable" extends="java.lang.Object"
  14325. abstract="false"
  14326. static="false" final="false" visibility="public"
  14327. deprecated="not deprecated">
  14328. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14329. <method name="get" return="org.apache.hadoop.io.NullWritable"
  14330. abstract="false" native="false" synchronized="false"
  14331. static="true" final="false" visibility="public"
  14332. deprecated="not deprecated">
  14333. <doc>
  14334. <![CDATA[Returns the single instance of this class.]]>
  14335. </doc>
  14336. </method>
  14337. <method name="toString" return="java.lang.String"
  14338. abstract="false" native="false" synchronized="false"
  14339. static="false" final="false" visibility="public"
  14340. deprecated="not deprecated">
  14341. </method>
  14342. <method name="hashCode" return="int"
  14343. abstract="false" native="false" synchronized="false"
  14344. static="false" final="false" visibility="public"
  14345. deprecated="not deprecated">
  14346. </method>
  14347. <method name="compareTo" return="int"
  14348. abstract="false" native="false" synchronized="false"
  14349. static="false" final="false" visibility="public"
  14350. deprecated="not deprecated">
  14351. <param name="other" type="java.lang.Object"/>
  14352. </method>
  14353. <method name="equals" return="boolean"
  14354. abstract="false" native="false" synchronized="false"
  14355. static="false" final="false" visibility="public"
  14356. deprecated="not deprecated">
  14357. <param name="other" type="java.lang.Object"/>
  14358. </method>
  14359. <method name="readFields"
  14360. abstract="false" native="false" synchronized="false"
  14361. static="false" final="false" visibility="public"
  14362. deprecated="not deprecated">
  14363. <param name="in" type="java.io.DataInput"/>
  14364. <exception name="IOException" type="java.io.IOException"/>
  14365. </method>
  14366. <method name="write"
  14367. abstract="false" native="false" synchronized="false"
  14368. static="false" final="false" visibility="public"
  14369. deprecated="not deprecated">
  14370. <param name="out" type="java.io.DataOutput"/>
  14371. <exception name="IOException" type="java.io.IOException"/>
  14372. </method>
  14373. <doc>
  14374. <![CDATA[Singleton Writable with no data.]]>
  14375. </doc>
  14376. </class>
  14377. <!-- end class org.apache.hadoop.io.NullWritable -->
  14378. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  14379. <class name="ObjectWritable" extends="java.lang.Object"
  14380. abstract="false"
  14381. static="false" final="false" visibility="public"
  14382. deprecated="not deprecated">
  14383. <implements name="org.apache.hadoop.io.Writable"/>
  14384. <implements name="org.apache.hadoop.conf.Configurable"/>
  14385. <constructor name="ObjectWritable"
  14386. static="false" final="false" visibility="public"
  14387. deprecated="not deprecated">
  14388. </constructor>
  14389. <constructor name="ObjectWritable" type="java.lang.Object"
  14390. static="false" final="false" visibility="public"
  14391. deprecated="not deprecated">
  14392. </constructor>
  14393. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  14394. static="false" final="false" visibility="public"
  14395. deprecated="not deprecated">
  14396. </constructor>
  14397. <method name="get" return="java.lang.Object"
  14398. abstract="false" native="false" synchronized="false"
  14399. static="false" final="false" visibility="public"
  14400. deprecated="not deprecated">
  14401. <doc>
  14402. <![CDATA[Return the instance, or null if none.]]>
  14403. </doc>
  14404. </method>
  14405. <method name="getDeclaredClass" return="java.lang.Class"
  14406. abstract="false" native="false" synchronized="false"
  14407. static="false" final="false" visibility="public"
  14408. deprecated="not deprecated">
  14409. <doc>
  14410. <![CDATA[Return the class this is meant to be.]]>
  14411. </doc>
  14412. </method>
  14413. <method name="set"
  14414. abstract="false" native="false" synchronized="false"
  14415. static="false" final="false" visibility="public"
  14416. deprecated="not deprecated">
  14417. <param name="instance" type="java.lang.Object"/>
  14418. <doc>
  14419. <![CDATA[Reset the instance.]]>
  14420. </doc>
  14421. </method>
  14422. <method name="toString" return="java.lang.String"
  14423. abstract="false" native="false" synchronized="false"
  14424. static="false" final="false" visibility="public"
  14425. deprecated="not deprecated">
  14426. </method>
  14427. <method name="readFields"
  14428. abstract="false" native="false" synchronized="false"
  14429. static="false" final="false" visibility="public"
  14430. deprecated="not deprecated">
  14431. <param name="in" type="java.io.DataInput"/>
  14432. <exception name="IOException" type="java.io.IOException"/>
  14433. </method>
  14434. <method name="write"
  14435. abstract="false" native="false" synchronized="false"
  14436. static="false" final="false" visibility="public"
  14437. deprecated="not deprecated">
  14438. <param name="out" type="java.io.DataOutput"/>
  14439. <exception name="IOException" type="java.io.IOException"/>
  14440. </method>
  14441. <method name="writeObject"
  14442. abstract="false" native="false" synchronized="false"
  14443. static="true" final="false" visibility="public"
  14444. deprecated="not deprecated">
  14445. <param name="out" type="java.io.DataOutput"/>
  14446. <param name="instance" type="java.lang.Object"/>
  14447. <param name="declaredClass" type="java.lang.Class"/>
  14448. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14449. <exception name="IOException" type="java.io.IOException"/>
  14450. <doc>
  14451. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  14452. the preceding.]]>
  14453. </doc>
  14454. </method>
  14455. <method name="readObject" return="java.lang.Object"
  14456. abstract="false" native="false" synchronized="false"
  14457. static="true" final="false" visibility="public"
  14458. deprecated="not deprecated">
  14459. <param name="in" type="java.io.DataInput"/>
  14460. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14461. <exception name="IOException" type="java.io.IOException"/>
  14462. <doc>
  14463. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  14464. the preceding.]]>
  14465. </doc>
  14466. </method>
  14467. <method name="readObject" return="java.lang.Object"
  14468. abstract="false" native="false" synchronized="false"
  14469. static="true" final="false" visibility="public"
  14470. deprecated="not deprecated">
  14471. <param name="in" type="java.io.DataInput"/>
  14472. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  14473. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14474. <exception name="IOException" type="java.io.IOException"/>
  14475. <doc>
  14476. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  14477. the preceding.]]>
  14478. </doc>
  14479. </method>
  14480. <method name="setConf"
  14481. abstract="false" native="false" synchronized="false"
  14482. static="false" final="false" visibility="public"
  14483. deprecated="not deprecated">
  14484. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14485. </method>
  14486. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  14487. abstract="false" native="false" synchronized="false"
  14488. static="false" final="false" visibility="public"
  14489. deprecated="not deprecated">
  14490. </method>
  14491. <doc>
  14492. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  14493. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  14494. </doc>
  14495. </class>
  14496. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  14497. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  14498. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  14499. abstract="false"
  14500. static="false" final="false" visibility="public"
  14501. deprecated="not deprecated">
  14502. <constructor name="OutputBuffer"
  14503. static="false" final="false" visibility="public"
  14504. deprecated="not deprecated">
  14505. <doc>
  14506. <![CDATA[Constructs a new empty buffer.]]>
  14507. </doc>
  14508. </constructor>
  14509. <method name="getData" return="byte[]"
  14510. abstract="false" native="false" synchronized="false"
  14511. static="false" final="false" visibility="public"
  14512. deprecated="not deprecated">
  14513. <doc>
  14514. <![CDATA[Returns the current contents of the buffer.
  14515. Data is only valid to {@link #getLength()}.]]>
  14516. </doc>
  14517. </method>
  14518. <method name="getLength" return="int"
  14519. abstract="false" native="false" synchronized="false"
  14520. static="false" final="false" visibility="public"
  14521. deprecated="not deprecated">
  14522. <doc>
  14523. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  14524. </doc>
  14525. </method>
  14526. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  14527. abstract="false" native="false" synchronized="false"
  14528. static="false" final="false" visibility="public"
  14529. deprecated="not deprecated">
  14530. <doc>
  14531. <![CDATA[Resets the buffer to empty.]]>
  14532. </doc>
  14533. </method>
  14534. <method name="write"
  14535. abstract="false" native="false" synchronized="false"
  14536. static="false" final="false" visibility="public"
  14537. deprecated="not deprecated">
  14538. <param name="in" type="java.io.InputStream"/>
  14539. <param name="length" type="int"/>
  14540. <exception name="IOException" type="java.io.IOException"/>
  14541. <doc>
  14542. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  14543. </doc>
  14544. </method>
  14545. <doc>
  14546. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  14547. buffer.
  14548. <p>This saves memory over creating a new OutputStream and
  14549. ByteArrayOutputStream each time data is written.
  14550. <p>Typical usage is something like the following:<pre>
  14551. OutputBuffer buffer = new OutputBuffer();
  14552. while (... loop condition ...) {
  14553. buffer.reset();
  14554. ... write buffer using OutputStream methods ...
  14555. byte[] data = buffer.getData();
  14556. int dataLength = buffer.getLength();
  14557. ... write data to its ultimate destination ...
  14558. }
  14559. </pre>
  14560. @see DataOutputBuffer
  14561. @see InputBuffer]]>
  14562. </doc>
  14563. </class>
  14564. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  14565. <!-- start interface org.apache.hadoop.io.RawComparator -->
  14566. <interface name="RawComparator" abstract="true"
  14567. static="false" final="false" visibility="public"
  14568. deprecated="not deprecated">
  14569. <implements name="java.util.Comparator&lt;T&gt;"/>
  14570. <method name="compare" return="int"
  14571. abstract="false" native="false" synchronized="false"
  14572. static="false" final="false" visibility="public"
  14573. deprecated="not deprecated">
  14574. <param name="b1" type="byte[]"/>
  14575. <param name="s1" type="int"/>
  14576. <param name="l1" type="int"/>
  14577. <param name="b2" type="byte[]"/>
  14578. <param name="s2" type="int"/>
  14579. <param name="l2" type="int"/>
  14580. </method>
  14581. <doc>
  14582. <![CDATA[<p>
  14583. A {@link Comparator} that operates directly on byte representations of
  14584. objects.
  14585. </p>
  14586. @param <T>
  14587. @see DeserializerComparator]]>
  14588. </doc>
  14589. </interface>
  14590. <!-- end interface org.apache.hadoop.io.RawComparator -->
  14591. <!-- start class org.apache.hadoop.io.SequenceFile -->
  14592. <class name="SequenceFile" extends="java.lang.Object"
  14593. abstract="false"
  14594. static="false" final="false" visibility="public"
  14595. deprecated="not deprecated">
  14596. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  14597. abstract="false" native="false" synchronized="false"
  14598. static="true" final="false" visibility="public"
  14599. deprecated="Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  14600. to get {@link CompressionType} for intermediate map-outputs or
  14601. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  14602. to get {@link CompressionType} for job-outputs.">
  14603. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  14604. <doc>
  14605. <![CDATA[Get the compression type for the reduce outputs
  14606. @param job the job config to look in
  14607. @return the kind of compression to use
  14608. @deprecated Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  14609. to get {@link CompressionType} for intermediate map-outputs or
  14610. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  14611. to get {@link CompressionType} for job-outputs.]]>
  14612. </doc>
  14613. </method>
  14614. <method name="setCompressionType"
  14615. abstract="false" native="false" synchronized="false"
  14616. static="true" final="false" visibility="public"
  14617. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  14618. the {@link CompressionType} while creating the {@link SequenceFile} or
  14619. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  14620. to specify the {@link CompressionType} for intermediate map-outputs or
  14621. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  14622. to specify the {@link CompressionType} for job-outputs.
  14623. or">
  14624. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  14625. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14626. <doc>
  14627. <![CDATA[Set the compression type for sequence files.
  14628. @param job the configuration to modify
  14629. @param val the new compression type (none, block, record)
  14630. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  14631. the {@link CompressionType} while creating the {@link SequenceFile} or
  14632. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  14633. to specify the {@link CompressionType} for intermediate map-outputs or
  14634. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  14635. to specify the {@link CompressionType} for job-outputs.
  14636. or]]>
  14637. </doc>
  14638. </method>
  14639. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14640. abstract="false" native="false" synchronized="false"
  14641. static="true" final="false" visibility="public"
  14642. deprecated="not deprecated">
  14643. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14644. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14645. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14646. <param name="keyClass" type="java.lang.Class"/>
  14647. <param name="valClass" type="java.lang.Class"/>
  14648. <exception name="IOException" type="java.io.IOException"/>
  14649. <doc>
  14650. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14651. @param fs The configured filesystem.
  14652. @param conf The configuration.
  14653. @param name The name of the file.
  14654. @param keyClass The 'key' type.
  14655. @param valClass The 'value' type.
  14656. @return Returns the handle to the constructed SequenceFile Writer.
  14657. @throws IOException]]>
  14658. </doc>
  14659. </method>
  14660. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14661. abstract="false" native="false" synchronized="false"
  14662. static="true" final="false" visibility="public"
  14663. deprecated="not deprecated">
  14664. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14665. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14666. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14667. <param name="keyClass" type="java.lang.Class"/>
  14668. <param name="valClass" type="java.lang.Class"/>
  14669. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14670. <exception name="IOException" type="java.io.IOException"/>
  14671. <doc>
  14672. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14673. @param fs The configured filesystem.
  14674. @param conf The configuration.
  14675. @param name The name of the file.
  14676. @param keyClass The 'key' type.
  14677. @param valClass The 'value' type.
  14678. @param compressionType The compression type.
  14679. @return Returns the handle to the constructed SequenceFile Writer.
  14680. @throws IOException]]>
  14681. </doc>
  14682. </method>
  14683. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14684. abstract="false" native="false" synchronized="false"
  14685. static="true" final="false" visibility="public"
  14686. deprecated="not deprecated">
  14687. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14688. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14689. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14690. <param name="keyClass" type="java.lang.Class"/>
  14691. <param name="valClass" type="java.lang.Class"/>
  14692. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14693. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14694. <exception name="IOException" type="java.io.IOException"/>
  14695. <doc>
  14696. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14697. @param fs The configured filesystem.
  14698. @param conf The configuration.
  14699. @param name The name of the file.
  14700. @param keyClass The 'key' type.
  14701. @param valClass The 'value' type.
  14702. @param compressionType The compression type.
  14703. @param progress The Progressable object to track progress.
  14704. @return Returns the handle to the constructed SequenceFile Writer.
  14705. @throws IOException]]>
  14706. </doc>
  14707. </method>
  14708. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14709. abstract="false" native="false" synchronized="false"
  14710. static="true" final="false" visibility="public"
  14711. deprecated="not deprecated">
  14712. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14713. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14714. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14715. <param name="keyClass" type="java.lang.Class"/>
  14716. <param name="valClass" type="java.lang.Class"/>
  14717. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14718. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14719. <exception name="IOException" type="java.io.IOException"/>
  14720. <doc>
  14721. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14722. @param fs The configured filesystem.
  14723. @param conf The configuration.
  14724. @param name The name of the file.
  14725. @param keyClass The 'key' type.
  14726. @param valClass The 'value' type.
  14727. @param compressionType The compression type.
  14728. @param codec The compression codec.
  14729. @return Returns the handle to the constructed SequenceFile Writer.
  14730. @throws IOException]]>
  14731. </doc>
  14732. </method>
  14733. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14734. abstract="false" native="false" synchronized="false"
  14735. static="true" final="false" visibility="public"
  14736. deprecated="not deprecated">
  14737. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14738. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14739. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14740. <param name="keyClass" type="java.lang.Class"/>
  14741. <param name="valClass" type="java.lang.Class"/>
  14742. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14743. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14744. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14745. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  14746. <exception name="IOException" type="java.io.IOException"/>
  14747. <doc>
  14748. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14749. @param fs The configured filesystem.
  14750. @param conf The configuration.
  14751. @param name The name of the file.
  14752. @param keyClass The 'key' type.
  14753. @param valClass The 'value' type.
  14754. @param compressionType The compression type.
  14755. @param codec The compression codec.
  14756. @param progress The Progressable object to track progress.
  14757. @param metadata The metadata of the file.
  14758. @return Returns the handle to the constructed SequenceFile Writer.
  14759. @throws IOException]]>
  14760. </doc>
  14761. </method>
  14762. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14763. abstract="false" native="false" synchronized="false"
  14764. static="true" final="false" visibility="public"
  14765. deprecated="not deprecated">
  14766. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14768. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14769. <param name="keyClass" type="java.lang.Class"/>
  14770. <param name="valClass" type="java.lang.Class"/>
  14771. <param name="bufferSize" type="int"/>
  14772. <param name="replication" type="short"/>
  14773. <param name="blockSize" type="long"/>
  14774. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14775. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14776. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14777. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  14778. <exception name="IOException" type="java.io.IOException"/>
  14779. <doc>
  14780. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14781. @param fs The configured filesystem.
  14782. @param conf The configuration.
  14783. @param name The name of the file.
  14784. @param keyClass The 'key' type.
  14785. @param valClass The 'value' type.
  14786. @param bufferSize buffer size for the underlaying outputstream.
  14787. @param replication replication factor for the file.
  14788. @param blockSize block size for the file.
  14789. @param compressionType The compression type.
  14790. @param codec The compression codec.
  14791. @param progress The Progressable object to track progress.
  14792. @param metadata The metadata of the file.
  14793. @return Returns the handle to the constructed SequenceFile Writer.
  14794. @throws IOException]]>
  14795. </doc>
  14796. </method>
  14797. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14798. abstract="false" native="false" synchronized="false"
  14799. static="true" final="false" visibility="public"
  14800. deprecated="not deprecated">
  14801. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  14802. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14803. <param name="name" type="org.apache.hadoop.fs.Path"/>
  14804. <param name="keyClass" type="java.lang.Class"/>
  14805. <param name="valClass" type="java.lang.Class"/>
  14806. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14807. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14808. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  14809. <exception name="IOException" type="java.io.IOException"/>
  14810. <doc>
  14811. <![CDATA[Construct the preferred type of SequenceFile Writer.
  14812. @param fs The configured filesystem.
  14813. @param conf The configuration.
  14814. @param name The name of the file.
  14815. @param keyClass The 'key' type.
  14816. @param valClass The 'value' type.
  14817. @param compressionType The compression type.
  14818. @param codec The compression codec.
  14819. @param progress The Progressable object to track progress.
  14820. @return Returns the handle to the constructed SequenceFile Writer.
  14821. @throws IOException]]>
  14822. </doc>
  14823. </method>
  14824. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14825. abstract="false" native="false" synchronized="false"
  14826. static="true" final="false" visibility="public"
  14827. deprecated="not deprecated">
  14828. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14829. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  14830. <param name="keyClass" type="java.lang.Class"/>
  14831. <param name="valClass" type="java.lang.Class"/>
  14832. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14833. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14834. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  14835. <exception name="IOException" type="java.io.IOException"/>
  14836. <doc>
  14837. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  14838. @param conf The configuration.
  14839. @param out The stream on top which the writer is to be constructed.
  14840. @param keyClass The 'key' type.
  14841. @param valClass The 'value' type.
  14842. @param compressionType The compression type.
  14843. @param codec The compression codec.
  14844. @param metadata The metadata of the file.
  14845. @return Returns the handle to the constructed SequenceFile Writer.
  14846. @throws IOException]]>
  14847. </doc>
  14848. </method>
  14849. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  14850. abstract="false" native="false" synchronized="false"
  14851. static="true" final="false" visibility="public"
  14852. deprecated="not deprecated">
  14853. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14854. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  14855. <param name="keyClass" type="java.lang.Class"/>
  14856. <param name="valClass" type="java.lang.Class"/>
  14857. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  14858. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  14859. <exception name="IOException" type="java.io.IOException"/>
  14860. <doc>
  14861. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  14862. @param conf The configuration.
  14863. @param out The stream on top which the writer is to be constructed.
  14864. @param keyClass The 'key' type.
  14865. @param valClass The 'value' type.
  14866. @param compressionType The compression type.
  14867. @param codec The compression codec.
  14868. @return Returns the handle to the constructed SequenceFile Writer.
  14869. @throws IOException]]>
  14870. </doc>
  14871. </method>
  14872. <field name="SYNC_INTERVAL" type="int"
  14873. transient="false" volatile="false"
  14874. static="true" final="true" visibility="public"
  14875. deprecated="not deprecated">
  14876. <doc>
  14877. <![CDATA[The number of bytes between sync points.]]>
  14878. </doc>
  14879. </field>
  14880. <doc>
  14881. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  14882. pairs.
  14883. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  14884. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  14885. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  14886. {@link CompressionType} used to compress key/value pairs:
  14887. <ol>
  14888. <li>
  14889. <code>Writer</code> : Uncompressed records.
  14890. </li>
  14891. <li>
  14892. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  14893. values.
  14894. </li>
  14895. <li>
  14896. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  14897. values are collected in 'blocks'
  14898. separately and compressed. The size of
  14899. the 'block' is configurable.
  14900. </ol>
  14901. <p>The actual compression algorithm used to compress key and/or values can be
  14902. specified by using the appropriate {@link CompressionCodec}.</p>
  14903. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  14904. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  14905. <p>The {@link Reader} acts as the bridge and can read any of the above
  14906. <code>SequenceFile</code> formats.</p>
  14907. <h4 id="Formats">SequenceFile Formats</h4>
  14908. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  14909. depending on the <code>CompressionType</code> specified. All of them share a
  14910. <a href="#Header">common header</a> described below.
  14911. <h5 id="Header">SequenceFile Header</h5>
  14912. <ul>
  14913. <li>
  14914. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  14915. version number (e.g. SEQ4 or SEQ6)
  14916. </li>
  14917. <li>
  14918. keyClassName -key class
  14919. </li>
  14920. <li>
  14921. valueClassName - value class
  14922. </li>
  14923. <li>
  14924. compression - A boolean which specifies if compression is turned on for
  14925. keys/values in this file.
  14926. </li>
  14927. <li>
  14928. blockCompression - A boolean which specifies if block-compression is
  14929. turned on for keys/values in this file.
  14930. </li>
  14931. <li>
  14932. compression codec - <code>CompressionCodec</code> class which is used for
  14933. compression of keys and/or values (if compression is
  14934. enabled).
  14935. </li>
  14936. <li>
  14937. metadata - {@link Metadata} for this file.
  14938. </li>
  14939. <li>
  14940. sync - A sync marker to denote end of the header.
  14941. </li>
  14942. </ul>
  14943. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  14944. <ul>
  14945. <li>
  14946. <a href="#Header">Header</a>
  14947. </li>
  14948. <li>
  14949. Record
  14950. <ul>
  14951. <li>Record length</li>
  14952. <li>Key length</li>
  14953. <li>Key</li>
  14954. <li>Value</li>
  14955. </ul>
  14956. </li>
  14957. <li>
  14958. A sync-marker every few <code>100</code> bytes or so.
  14959. </li>
  14960. </ul>
  14961. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  14962. <ul>
  14963. <li>
  14964. <a href="#Header">Header</a>
  14965. </li>
  14966. <li>
  14967. Record
  14968. <ul>
  14969. <li>Record length</li>
  14970. <li>Key length</li>
  14971. <li>Key</li>
  14972. <li><i>Compressed</i> Value</li>
  14973. </ul>
  14974. </li>
  14975. <li>
  14976. A sync-marker every few <code>100</code> bytes or so.
  14977. </li>
  14978. </ul>
  14979. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  14980. <ul>
  14981. <li>
  14982. <a href="#Header">Header</a>
  14983. </li>
  14984. <li>
  14985. Record <i>Block</i>
  14986. <ul>
  14987. <li>Compressed key-lengths block-size</li>
  14988. <li>Compressed key-lengths block</li>
  14989. <li>Compressed keys block-size</li>
  14990. <li>Compressed keys block</li>
  14991. <li>Compressed value-lengths block-size</li>
  14992. <li>Compressed value-lengths block</li>
  14993. <li>Compressed values block-size</li>
  14994. <li>Compressed values block</li>
  14995. </ul>
  14996. </li>
  14997. <li>
  14998. A sync-marker every few <code>100</code> bytes or so.
  14999. </li>
  15000. </ul>
  15001. <p>The compressed blocks of key lengths and value lengths consist of the
  15002. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  15003. format.</p>
  15004. @see CompressionCodec]]>
  15005. </doc>
  15006. </class>
  15007. <!-- end class org.apache.hadoop.io.SequenceFile -->
  15008. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  15009. <class name="SequenceFile.CompressionType" extends="java.lang.Enum&lt;org.apache.hadoop.io.SequenceFile.CompressionType&gt;"
  15010. abstract="false"
  15011. static="true" final="true" visibility="public"
  15012. deprecated="not deprecated">
  15013. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  15014. abstract="false" native="false" synchronized="false"
  15015. static="true" final="false" visibility="public"
  15016. deprecated="not deprecated">
  15017. </method>
  15018. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  15019. abstract="false" native="false" synchronized="false"
  15020. static="true" final="false" visibility="public"
  15021. deprecated="not deprecated">
  15022. <param name="name" type="java.lang.String"/>
  15023. </method>
  15024. <doc>
  15025. <![CDATA[The compression type used to compress key/value pairs in the
  15026. {@link SequenceFile}.
  15027. @see SequenceFile.Writer]]>
  15028. </doc>
  15029. </class>
  15030. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  15031. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  15032. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  15033. abstract="false"
  15034. static="true" final="false" visibility="public"
  15035. deprecated="not deprecated">
  15036. <implements name="org.apache.hadoop.io.Writable"/>
  15037. <constructor name="SequenceFile.Metadata"
  15038. static="false" final="false" visibility="public"
  15039. deprecated="not deprecated">
  15040. </constructor>
  15041. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  15042. static="false" final="false" visibility="public"
  15043. deprecated="not deprecated">
  15044. </constructor>
  15045. <method name="get" return="org.apache.hadoop.io.Text"
  15046. abstract="false" native="false" synchronized="false"
  15047. static="false" final="false" visibility="public"
  15048. deprecated="not deprecated">
  15049. <param name="name" type="org.apache.hadoop.io.Text"/>
  15050. </method>
  15051. <method name="set"
  15052. abstract="false" native="false" synchronized="false"
  15053. static="false" final="false" visibility="public"
  15054. deprecated="not deprecated">
  15055. <param name="name" type="org.apache.hadoop.io.Text"/>
  15056. <param name="value" type="org.apache.hadoop.io.Text"/>
  15057. </method>
  15058. <method name="getMetadata" return="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  15059. abstract="false" native="false" synchronized="false"
  15060. static="false" final="false" visibility="public"
  15061. deprecated="not deprecated">
  15062. </method>
  15063. <method name="write"
  15064. abstract="false" native="false" synchronized="false"
  15065. static="false" final="false" visibility="public"
  15066. deprecated="not deprecated">
  15067. <param name="out" type="java.io.DataOutput"/>
  15068. <exception name="IOException" type="java.io.IOException"/>
  15069. </method>
  15070. <method name="readFields"
  15071. abstract="false" native="false" synchronized="false"
  15072. static="false" final="false" visibility="public"
  15073. deprecated="not deprecated">
  15074. <param name="in" type="java.io.DataInput"/>
  15075. <exception name="IOException" type="java.io.IOException"/>
  15076. </method>
  15077. <method name="equals" return="boolean"
  15078. abstract="false" native="false" synchronized="false"
  15079. static="false" final="false" visibility="public"
  15080. deprecated="not deprecated">
  15081. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  15082. </method>
  15083. <method name="hashCode" return="int"
  15084. abstract="false" native="false" synchronized="false"
  15085. static="false" final="false" visibility="public"
  15086. deprecated="not deprecated">
  15087. </method>
  15088. <method name="toString" return="java.lang.String"
  15089. abstract="false" native="false" synchronized="false"
  15090. static="false" final="false" visibility="public"
  15091. deprecated="not deprecated">
  15092. </method>
  15093. <doc>
  15094. <![CDATA[The class encapsulating with the metadata of a file.
  15095. The metadata of a file is a list of attribute name/value
  15096. pairs of Text type.]]>
  15097. </doc>
  15098. </class>
  15099. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  15100. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  15101. <class name="SequenceFile.Reader" extends="java.lang.Object"
  15102. abstract="false"
  15103. static="true" final="false" visibility="public"
  15104. deprecated="not deprecated">
  15105. <implements name="java.io.Closeable"/>
  15106. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  15107. static="false" final="false" visibility="public"
  15108. deprecated="not deprecated">
  15109. <exception name="IOException" type="java.io.IOException"/>
  15110. <doc>
  15111. <![CDATA[Open the named file.]]>
  15112. </doc>
  15113. </constructor>
  15114. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  15115. abstract="false" native="false" synchronized="false"
  15116. static="false" final="false" visibility="protected"
  15117. deprecated="not deprecated">
  15118. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15119. <param name="file" type="org.apache.hadoop.fs.Path"/>
  15120. <param name="bufferSize" type="int"/>
  15121. <param name="length" type="long"/>
  15122. <exception name="IOException" type="java.io.IOException"/>
  15123. <doc>
  15124. <![CDATA[Override this method to specialize the type of
  15125. {@link FSDataInputStream} returned.]]>
  15126. </doc>
  15127. </method>
  15128. <method name="close"
  15129. abstract="false" native="false" synchronized="true"
  15130. static="false" final="false" visibility="public"
  15131. deprecated="not deprecated">
  15132. <exception name="IOException" type="java.io.IOException"/>
  15133. <doc>
  15134. <![CDATA[Close the file.]]>
  15135. </doc>
  15136. </method>
  15137. <method name="getKeyClassName" return="java.lang.String"
  15138. abstract="false" native="false" synchronized="false"
  15139. static="false" final="false" visibility="public"
  15140. deprecated="not deprecated">
  15141. <doc>
  15142. <![CDATA[Returns the name of the key class.]]>
  15143. </doc>
  15144. </method>
  15145. <method name="getKeyClass" return="java.lang.Class"
  15146. abstract="false" native="false" synchronized="true"
  15147. static="false" final="false" visibility="public"
  15148. deprecated="not deprecated">
  15149. <doc>
  15150. <![CDATA[Returns the class of keys in this file.]]>
  15151. </doc>
  15152. </method>
  15153. <method name="getValueClassName" return="java.lang.String"
  15154. abstract="false" native="false" synchronized="false"
  15155. static="false" final="false" visibility="public"
  15156. deprecated="not deprecated">
  15157. <doc>
  15158. <![CDATA[Returns the name of the value class.]]>
  15159. </doc>
  15160. </method>
  15161. <method name="getValueClass" return="java.lang.Class"
  15162. abstract="false" native="false" synchronized="true"
  15163. static="false" final="false" visibility="public"
  15164. deprecated="not deprecated">
  15165. <doc>
  15166. <![CDATA[Returns the class of values in this file.]]>
  15167. </doc>
  15168. </method>
  15169. <method name="isCompressed" return="boolean"
  15170. abstract="false" native="false" synchronized="false"
  15171. static="false" final="false" visibility="public"
  15172. deprecated="not deprecated">
  15173. <doc>
  15174. <![CDATA[Returns true if values are compressed.]]>
  15175. </doc>
  15176. </method>
  15177. <method name="isBlockCompressed" return="boolean"
  15178. abstract="false" native="false" synchronized="false"
  15179. static="false" final="false" visibility="public"
  15180. deprecated="not deprecated">
  15181. <doc>
  15182. <![CDATA[Returns true if records are block-compressed.]]>
  15183. </doc>
  15184. </method>
  15185. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  15186. abstract="false" native="false" synchronized="false"
  15187. static="false" final="false" visibility="public"
  15188. deprecated="not deprecated">
  15189. <doc>
  15190. <![CDATA[Returns the compression codec of data in this file.]]>
  15191. </doc>
  15192. </method>
  15193. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  15194. abstract="false" native="false" synchronized="false"
  15195. static="false" final="false" visibility="public"
  15196. deprecated="not deprecated">
  15197. <doc>
  15198. <![CDATA[Returns the metadata object of the file]]>
  15199. </doc>
  15200. </method>
  15201. <method name="getCurrentValue"
  15202. abstract="false" native="false" synchronized="true"
  15203. static="false" final="false" visibility="public"
  15204. deprecated="not deprecated">
  15205. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15206. <exception name="IOException" type="java.io.IOException"/>
  15207. <doc>
  15208. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  15209. @param val : The 'value' to be read.
  15210. @throws IOException]]>
  15211. </doc>
  15212. </method>
  15213. <method name="next" return="boolean"
  15214. abstract="false" native="false" synchronized="true"
  15215. static="false" final="false" visibility="public"
  15216. deprecated="not deprecated">
  15217. <param name="key" type="org.apache.hadoop.io.Writable"/>
  15218. <exception name="IOException" type="java.io.IOException"/>
  15219. <doc>
  15220. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  15221. value. True if another entry exists, and false at end of file.]]>
  15222. </doc>
  15223. </method>
  15224. <method name="next" return="boolean"
  15225. abstract="false" native="false" synchronized="true"
  15226. static="false" final="false" visibility="public"
  15227. deprecated="not deprecated">
  15228. <param name="key" type="org.apache.hadoop.io.Writable"/>
  15229. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15230. <exception name="IOException" type="java.io.IOException"/>
  15231. <doc>
  15232. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  15233. <code>val</code>. Returns true if such a pair exists and false when at
  15234. end of file]]>
  15235. </doc>
  15236. </method>
  15237. <method name="next" return="int"
  15238. abstract="false" native="false" synchronized="true"
  15239. static="false" final="false" visibility="public"
  15240. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  15241. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  15242. <exception name="IOException" type="java.io.IOException"/>
  15243. <doc>
  15244. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  15245. </doc>
  15246. </method>
  15247. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  15248. abstract="false" native="false" synchronized="false"
  15249. static="false" final="false" visibility="public"
  15250. deprecated="not deprecated">
  15251. </method>
  15252. <method name="nextRaw" return="int"
  15253. abstract="false" native="false" synchronized="true"
  15254. static="false" final="false" visibility="public"
  15255. deprecated="not deprecated">
  15256. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  15257. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  15258. <exception name="IOException" type="java.io.IOException"/>
  15259. <doc>
  15260. <![CDATA[Read 'raw' records.
  15261. @param key - The buffer into which the key is read
  15262. @param val - The 'raw' value
  15263. @return Returns the total record length or -1 for end of file
  15264. @throws IOException]]>
  15265. </doc>
  15266. </method>
  15267. <method name="nextRawKey" return="int"
  15268. abstract="false" native="false" synchronized="false"
  15269. static="false" final="false" visibility="public"
  15270. deprecated="not deprecated">
  15271. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  15272. <exception name="IOException" type="java.io.IOException"/>
  15273. <doc>
  15274. <![CDATA[Read 'raw' keys.
  15275. @param key - The buffer into which the key is read
  15276. @return Returns the key length or -1 for end of file
  15277. @throws IOException]]>
  15278. </doc>
  15279. </method>
  15280. <method name="nextRawValue" return="int"
  15281. abstract="false" native="false" synchronized="true"
  15282. static="false" final="false" visibility="public"
  15283. deprecated="not deprecated">
  15284. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  15285. <exception name="IOException" type="java.io.IOException"/>
  15286. <doc>
  15287. <![CDATA[Read 'raw' values.
  15288. @param val - The 'raw' value
  15289. @return Returns the value length
  15290. @throws IOException]]>
  15291. </doc>
  15292. </method>
  15293. <method name="seek"
  15294. abstract="false" native="false" synchronized="true"
  15295. static="false" final="false" visibility="public"
  15296. deprecated="not deprecated">
  15297. <param name="position" type="long"/>
  15298. <exception name="IOException" type="java.io.IOException"/>
  15299. <doc>
  15300. <![CDATA[Set the current byte position in the input file.
  15301. <p>The position passed must be a position returned by {@link
  15302. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  15303. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  15304. </doc>
  15305. </method>
  15306. <method name="sync"
  15307. abstract="false" native="false" synchronized="true"
  15308. static="false" final="false" visibility="public"
  15309. deprecated="not deprecated">
  15310. <param name="position" type="long"/>
  15311. <exception name="IOException" type="java.io.IOException"/>
  15312. <doc>
  15313. <![CDATA[Seek to the next sync mark past a given position.]]>
  15314. </doc>
  15315. </method>
  15316. <method name="syncSeen" return="boolean"
  15317. abstract="false" native="false" synchronized="false"
  15318. static="false" final="false" visibility="public"
  15319. deprecated="not deprecated">
  15320. <doc>
  15321. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  15322. </doc>
  15323. </method>
  15324. <method name="getPosition" return="long"
  15325. abstract="false" native="false" synchronized="true"
  15326. static="false" final="false" visibility="public"
  15327. deprecated="not deprecated">
  15328. <exception name="IOException" type="java.io.IOException"/>
  15329. <doc>
  15330. <![CDATA[Return the current byte position in the input file.]]>
  15331. </doc>
  15332. </method>
  15333. <method name="toString" return="java.lang.String"
  15334. abstract="false" native="false" synchronized="false"
  15335. static="false" final="false" visibility="public"
  15336. deprecated="not deprecated">
  15337. <doc>
  15338. <![CDATA[Returns the name of the file.]]>
  15339. </doc>
  15340. </method>
  15341. <doc>
  15342. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  15343. </doc>
  15344. </class>
  15345. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  15346. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  15347. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  15348. abstract="false"
  15349. static="true" final="false" visibility="public"
  15350. deprecated="not deprecated">
  15351. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  15352. static="false" final="false" visibility="public"
  15353. deprecated="not deprecated">
  15354. <doc>
  15355. <![CDATA[Sort and merge files containing the named classes.]]>
  15356. </doc>
  15357. </constructor>
  15358. <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"
  15359. static="false" final="false" visibility="public"
  15360. deprecated="not deprecated">
  15361. <doc>
  15362. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  15363. </doc>
  15364. </constructor>
  15365. <method name="setFactor"
  15366. abstract="false" native="false" synchronized="false"
  15367. static="false" final="false" visibility="public"
  15368. deprecated="not deprecated">
  15369. <param name="factor" type="int"/>
  15370. <doc>
  15371. <![CDATA[Set the number of streams to merge at once.]]>
  15372. </doc>
  15373. </method>
  15374. <method name="getFactor" return="int"
  15375. abstract="false" native="false" synchronized="false"
  15376. static="false" final="false" visibility="public"
  15377. deprecated="not deprecated">
  15378. <doc>
  15379. <![CDATA[Get the number of streams to merge at once.]]>
  15380. </doc>
  15381. </method>
  15382. <method name="setMemory"
  15383. abstract="false" native="false" synchronized="false"
  15384. static="false" final="false" visibility="public"
  15385. deprecated="not deprecated">
  15386. <param name="memory" type="int"/>
  15387. <doc>
  15388. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  15389. </doc>
  15390. </method>
  15391. <method name="getMemory" return="int"
  15392. abstract="false" native="false" synchronized="false"
  15393. static="false" final="false" visibility="public"
  15394. deprecated="not deprecated">
  15395. <doc>
  15396. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  15397. </doc>
  15398. </method>
  15399. <method name="setProgressable"
  15400. abstract="false" native="false" synchronized="false"
  15401. static="false" final="false" visibility="public"
  15402. deprecated="not deprecated">
  15403. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  15404. <doc>
  15405. <![CDATA[Set the progressable object in order to report progress.]]>
  15406. </doc>
  15407. </method>
  15408. <method name="sort"
  15409. abstract="false" native="false" synchronized="false"
  15410. static="false" final="false" visibility="public"
  15411. deprecated="not deprecated">
  15412. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  15413. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  15414. <param name="deleteInput" type="boolean"/>
  15415. <exception name="IOException" type="java.io.IOException"/>
  15416. <doc>
  15417. <![CDATA[Perform a file sort from a set of input files into an output file.
  15418. @param inFiles the files to be sorted
  15419. @param outFile the sorted output file
  15420. @param deleteInput should the input files be deleted as they are read?]]>
  15421. </doc>
  15422. </method>
  15423. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  15424. abstract="false" native="false" synchronized="false"
  15425. static="false" final="false" visibility="public"
  15426. deprecated="not deprecated">
  15427. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  15428. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  15429. <param name="deleteInput" type="boolean"/>
  15430. <exception name="IOException" type="java.io.IOException"/>
  15431. <doc>
  15432. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  15433. @param inFiles the files to be sorted
  15434. @param tempDir the directory where temp files are created during sort
  15435. @param deleteInput should the input files be deleted as they are read?
  15436. @return iterator the RawKeyValueIterator]]>
  15437. </doc>
  15438. </method>
  15439. <method name="sort"
  15440. abstract="false" native="false" synchronized="false"
  15441. static="false" final="false" visibility="public"
  15442. deprecated="not deprecated">
  15443. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  15444. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  15445. <exception name="IOException" type="java.io.IOException"/>
  15446. <doc>
  15447. <![CDATA[The backwards compatible interface to sort.
  15448. @param inFile the input file to sort
  15449. @param outFile the sorted output file]]>
  15450. </doc>
  15451. </method>
  15452. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  15453. abstract="false" native="false" synchronized="false"
  15454. static="false" final="false" visibility="public"
  15455. deprecated="not deprecated">
  15456. <param name="segments" type="java.util.List&lt;org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor&gt;"/>
  15457. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  15458. <exception name="IOException" type="java.io.IOException"/>
  15459. <doc>
  15460. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  15461. @param segments the list of SegmentDescriptors
  15462. @param tmpDir the directory to write temporary files into
  15463. @return RawKeyValueIterator
  15464. @throws IOException]]>
  15465. </doc>
  15466. </method>
  15467. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  15468. abstract="false" native="false" synchronized="false"
  15469. static="false" final="false" visibility="public"
  15470. deprecated="not deprecated">
  15471. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  15472. <param name="deleteInputs" type="boolean"/>
  15473. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  15474. <exception name="IOException" type="java.io.IOException"/>
  15475. <doc>
  15476. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  15477. that is already set
  15478. @param inNames the array of path names
  15479. @param deleteInputs true if the input files should be deleted when
  15480. unnecessary
  15481. @param tmpDir the directory to write temporary files into
  15482. @return RawKeyValueIteratorMergeQueue
  15483. @throws IOException]]>
  15484. </doc>
  15485. </method>
  15486. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  15487. abstract="false" native="false" synchronized="false"
  15488. static="false" final="false" visibility="public"
  15489. deprecated="not deprecated">
  15490. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  15491. <param name="deleteInputs" type="boolean"/>
  15492. <param name="factor" type="int"/>
  15493. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  15494. <exception name="IOException" type="java.io.IOException"/>
  15495. <doc>
  15496. <![CDATA[Merges the contents of files passed in Path[]
  15497. @param inNames the array of path names
  15498. @param deleteInputs true if the input files should be deleted when
  15499. unnecessary
  15500. @param factor the factor that will be used as the maximum merge fan-in
  15501. @param tmpDir the directory to write temporary files into
  15502. @return RawKeyValueIteratorMergeQueue
  15503. @throws IOException]]>
  15504. </doc>
  15505. </method>
  15506. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  15507. abstract="false" native="false" synchronized="false"
  15508. static="false" final="false" visibility="public"
  15509. deprecated="not deprecated">
  15510. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  15511. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  15512. <param name="deleteInputs" type="boolean"/>
  15513. <exception name="IOException" type="java.io.IOException"/>
  15514. <doc>
  15515. <![CDATA[Merges the contents of files passed in Path[]
  15516. @param inNames the array of path names
  15517. @param tempDir the directory for creating temp files during merge
  15518. @param deleteInputs true if the input files should be deleted when
  15519. unnecessary
  15520. @return RawKeyValueIteratorMergeQueue
  15521. @throws IOException]]>
  15522. </doc>
  15523. </method>
  15524. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  15525. abstract="false" native="false" synchronized="false"
  15526. static="false" final="false" visibility="public"
  15527. deprecated="not deprecated">
  15528. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  15529. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  15530. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  15531. <exception name="IOException" type="java.io.IOException"/>
  15532. <doc>
  15533. <![CDATA[Clones the attributes (like compression of the input file and creates a
  15534. corresponding Writer
  15535. @param inputFile the path of the input file whose attributes should be
  15536. cloned
  15537. @param outputFile the path of the output file
  15538. @param prog the Progressable to report status during the file write
  15539. @return Writer
  15540. @throws IOException]]>
  15541. </doc>
  15542. </method>
  15543. <method name="writeFile"
  15544. abstract="false" native="false" synchronized="false"
  15545. static="false" final="false" visibility="public"
  15546. deprecated="not deprecated">
  15547. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  15548. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  15549. <exception name="IOException" type="java.io.IOException"/>
  15550. <doc>
  15551. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  15552. passed writer
  15553. @param records the RawKeyValueIterator
  15554. @param writer the Writer created earlier
  15555. @throws IOException]]>
  15556. </doc>
  15557. </method>
  15558. <method name="merge"
  15559. abstract="false" native="false" synchronized="false"
  15560. static="false" final="false" visibility="public"
  15561. deprecated="not deprecated">
  15562. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  15563. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  15564. <exception name="IOException" type="java.io.IOException"/>
  15565. <doc>
  15566. <![CDATA[Merge the provided files.
  15567. @param inFiles the array of input path names
  15568. @param outFile the final output file
  15569. @throws IOException]]>
  15570. </doc>
  15571. </method>
  15572. <doc>
  15573. <![CDATA[Sorts key/value pairs in a sequence-format file.
  15574. <p>For best performance, applications should make sure that the {@link
  15575. Writable#readFields(DataInput)} implementation of their keys is
  15576. very efficient. In particular, it should avoid allocating memory.]]>
  15577. </doc>
  15578. </class>
  15579. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  15580. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  15581. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  15582. static="true" final="false" visibility="public"
  15583. deprecated="not deprecated">
  15584. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  15585. abstract="false" native="false" synchronized="false"
  15586. static="false" final="false" visibility="public"
  15587. deprecated="not deprecated">
  15588. <exception name="IOException" type="java.io.IOException"/>
  15589. <doc>
  15590. <![CDATA[Gets the current raw key
  15591. @return DataOutputBuffer
  15592. @throws IOException]]>
  15593. </doc>
  15594. </method>
  15595. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  15596. abstract="false" native="false" synchronized="false"
  15597. static="false" final="false" visibility="public"
  15598. deprecated="not deprecated">
  15599. <exception name="IOException" type="java.io.IOException"/>
  15600. <doc>
  15601. <![CDATA[Gets the current raw value
  15602. @return ValueBytes
  15603. @throws IOException]]>
  15604. </doc>
  15605. </method>
  15606. <method name="next" return="boolean"
  15607. abstract="false" native="false" synchronized="false"
  15608. static="false" final="false" visibility="public"
  15609. deprecated="not deprecated">
  15610. <exception name="IOException" type="java.io.IOException"/>
  15611. <doc>
  15612. <![CDATA[Sets up the current key and value (for getKey and getValue)
  15613. @return true if there exists a key/value, false otherwise
  15614. @throws IOException]]>
  15615. </doc>
  15616. </method>
  15617. <method name="close"
  15618. abstract="false" native="false" synchronized="false"
  15619. static="false" final="false" visibility="public"
  15620. deprecated="not deprecated">
  15621. <exception name="IOException" type="java.io.IOException"/>
  15622. <doc>
  15623. <![CDATA[closes the iterator so that the underlying streams can be closed
  15624. @throws IOException]]>
  15625. </doc>
  15626. </method>
  15627. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  15628. abstract="false" native="false" synchronized="false"
  15629. static="false" final="false" visibility="public"
  15630. deprecated="not deprecated">
  15631. <doc>
  15632. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  15633. indicating the bytes processed by the iterator so far]]>
  15634. </doc>
  15635. </method>
  15636. <doc>
  15637. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  15638. </doc>
  15639. </interface>
  15640. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  15641. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  15642. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  15643. abstract="false"
  15644. static="false" final="false" visibility="public"
  15645. deprecated="not deprecated">
  15646. <implements name="java.lang.Comparable"/>
  15647. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  15648. static="false" final="false" visibility="public"
  15649. deprecated="not deprecated">
  15650. <doc>
  15651. <![CDATA[Constructs a segment
  15652. @param segmentOffset the offset of the segment in the file
  15653. @param segmentLength the length of the segment
  15654. @param segmentPathName the path name of the file containing the segment]]>
  15655. </doc>
  15656. </constructor>
  15657. <method name="doSync"
  15658. abstract="false" native="false" synchronized="false"
  15659. static="false" final="false" visibility="public"
  15660. deprecated="not deprecated">
  15661. <doc>
  15662. <![CDATA[Do the sync checks]]>
  15663. </doc>
  15664. </method>
  15665. <method name="preserveInput"
  15666. abstract="false" native="false" synchronized="false"
  15667. static="false" final="false" visibility="public"
  15668. deprecated="not deprecated">
  15669. <param name="preserve" type="boolean"/>
  15670. <doc>
  15671. <![CDATA[Whether to delete the files when no longer needed]]>
  15672. </doc>
  15673. </method>
  15674. <method name="shouldPreserveInput" return="boolean"
  15675. abstract="false" native="false" synchronized="false"
  15676. static="false" final="false" visibility="public"
  15677. deprecated="not deprecated">
  15678. </method>
  15679. <method name="compareTo" return="int"
  15680. abstract="false" native="false" synchronized="false"
  15681. static="false" final="false" visibility="public"
  15682. deprecated="not deprecated">
  15683. <param name="o" type="java.lang.Object"/>
  15684. </method>
  15685. <method name="equals" return="boolean"
  15686. abstract="false" native="false" synchronized="false"
  15687. static="false" final="false" visibility="public"
  15688. deprecated="not deprecated">
  15689. <param name="o" type="java.lang.Object"/>
  15690. </method>
  15691. <method name="hashCode" return="int"
  15692. abstract="false" native="false" synchronized="false"
  15693. static="false" final="false" visibility="public"
  15694. deprecated="not deprecated">
  15695. </method>
  15696. <method name="nextRawKey" return="boolean"
  15697. abstract="false" native="false" synchronized="false"
  15698. static="false" final="false" visibility="public"
  15699. deprecated="not deprecated">
  15700. <exception name="IOException" type="java.io.IOException"/>
  15701. <doc>
  15702. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  15703. @return true if there is a key returned; false, otherwise
  15704. @throws IOException]]>
  15705. </doc>
  15706. </method>
  15707. <method name="nextRawValue" return="int"
  15708. abstract="false" native="false" synchronized="false"
  15709. static="false" final="false" visibility="public"
  15710. deprecated="not deprecated">
  15711. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  15712. <exception name="IOException" type="java.io.IOException"/>
  15713. <doc>
  15714. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  15715. read earlier
  15716. @param rawValue
  15717. @return the length of the value
  15718. @throws IOException]]>
  15719. </doc>
  15720. </method>
  15721. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  15722. abstract="false" native="false" synchronized="false"
  15723. static="false" final="false" visibility="public"
  15724. deprecated="not deprecated">
  15725. <doc>
  15726. <![CDATA[Returns the stored rawKey]]>
  15727. </doc>
  15728. </method>
  15729. <method name="cleanup"
  15730. abstract="false" native="false" synchronized="false"
  15731. static="false" final="false" visibility="public"
  15732. deprecated="not deprecated">
  15733. <exception name="IOException" type="java.io.IOException"/>
  15734. <doc>
  15735. <![CDATA[The default cleanup. Subclasses can override this with a custom
  15736. cleanup]]>
  15737. </doc>
  15738. </method>
  15739. <doc>
  15740. <![CDATA[This class defines a merge segment. This class can be subclassed to
  15741. provide a customized cleanup method implementation. In this
  15742. implementation, cleanup closes the file handle and deletes the file]]>
  15743. </doc>
  15744. </class>
  15745. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  15746. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  15747. <interface name="SequenceFile.ValueBytes" abstract="true"
  15748. static="true" final="false" visibility="public"
  15749. deprecated="not deprecated">
  15750. <method name="writeUncompressedBytes"
  15751. abstract="false" native="false" synchronized="false"
  15752. static="false" final="false" visibility="public"
  15753. deprecated="not deprecated">
  15754. <param name="outStream" type="java.io.DataOutputStream"/>
  15755. <exception name="IOException" type="java.io.IOException"/>
  15756. <doc>
  15757. <![CDATA[Writes the uncompressed bytes to the outStream.
  15758. @param outStream : Stream to write uncompressed bytes into.
  15759. @throws IOException]]>
  15760. </doc>
  15761. </method>
  15762. <method name="writeCompressedBytes"
  15763. abstract="false" native="false" synchronized="false"
  15764. static="false" final="false" visibility="public"
  15765. deprecated="not deprecated">
  15766. <param name="outStream" type="java.io.DataOutputStream"/>
  15767. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  15768. <exception name="IOException" type="java.io.IOException"/>
  15769. <doc>
  15770. <![CDATA[Write compressed bytes to outStream.
  15771. Note: that it will NOT compress the bytes if they are not compressed.
  15772. @param outStream : Stream to write compressed bytes into.]]>
  15773. </doc>
  15774. </method>
  15775. <method name="getSize" return="int"
  15776. abstract="false" native="false" synchronized="false"
  15777. static="false" final="false" visibility="public"
  15778. deprecated="not deprecated">
  15779. <doc>
  15780. <![CDATA[Size of stored data.]]>
  15781. </doc>
  15782. </method>
  15783. <doc>
  15784. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  15785. </doc>
  15786. </interface>
  15787. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  15788. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  15789. <class name="SequenceFile.Writer" extends="java.lang.Object"
  15790. abstract="false"
  15791. static="true" final="false" visibility="public"
  15792. deprecated="not deprecated">
  15793. <implements name="java.io.Closeable"/>
  15794. <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"
  15795. static="false" final="false" visibility="public"
  15796. deprecated="not deprecated">
  15797. <exception name="IOException" type="java.io.IOException"/>
  15798. <doc>
  15799. <![CDATA[Create the named file.]]>
  15800. </doc>
  15801. </constructor>
  15802. <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"
  15803. static="false" final="false" visibility="public"
  15804. deprecated="not deprecated">
  15805. <exception name="IOException" type="java.io.IOException"/>
  15806. <doc>
  15807. <![CDATA[Create the named file with write-progress reporter.]]>
  15808. </doc>
  15809. </constructor>
  15810. <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"
  15811. static="false" final="false" visibility="public"
  15812. deprecated="not deprecated">
  15813. <exception name="IOException" type="java.io.IOException"/>
  15814. <doc>
  15815. <![CDATA[Create the named file with write-progress reporter.]]>
  15816. </doc>
  15817. </constructor>
  15818. <method name="getKeyClass" return="java.lang.Class"
  15819. abstract="false" native="false" synchronized="false"
  15820. static="false" final="false" visibility="public"
  15821. deprecated="not deprecated">
  15822. <doc>
  15823. <![CDATA[Returns the class of keys in this file.]]>
  15824. </doc>
  15825. </method>
  15826. <method name="getValueClass" return="java.lang.Class"
  15827. abstract="false" native="false" synchronized="false"
  15828. static="false" final="false" visibility="public"
  15829. deprecated="not deprecated">
  15830. <doc>
  15831. <![CDATA[Returns the class of values in this file.]]>
  15832. </doc>
  15833. </method>
  15834. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  15835. abstract="false" native="false" synchronized="false"
  15836. static="false" final="false" visibility="public"
  15837. deprecated="not deprecated">
  15838. <doc>
  15839. <![CDATA[Returns the compression codec of data in this file.]]>
  15840. </doc>
  15841. </method>
  15842. <method name="sync"
  15843. abstract="false" native="false" synchronized="false"
  15844. static="false" final="false" visibility="public"
  15845. deprecated="not deprecated">
  15846. <exception name="IOException" type="java.io.IOException"/>
  15847. <doc>
  15848. <![CDATA[create a sync point]]>
  15849. </doc>
  15850. </method>
  15851. <method name="close"
  15852. abstract="false" native="false" synchronized="true"
  15853. static="false" final="false" visibility="public"
  15854. deprecated="not deprecated">
  15855. <exception name="IOException" type="java.io.IOException"/>
  15856. <doc>
  15857. <![CDATA[Close the file.]]>
  15858. </doc>
  15859. </method>
  15860. <method name="append"
  15861. abstract="false" native="false" synchronized="true"
  15862. static="false" final="false" visibility="public"
  15863. deprecated="not deprecated">
  15864. <param name="key" type="org.apache.hadoop.io.Writable"/>
  15865. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15866. <exception name="IOException" type="java.io.IOException"/>
  15867. <doc>
  15868. <![CDATA[Append a key/value pair.]]>
  15869. </doc>
  15870. </method>
  15871. <method name="append"
  15872. abstract="false" native="false" synchronized="true"
  15873. static="false" final="false" visibility="public"
  15874. deprecated="not deprecated">
  15875. <param name="key" type="java.lang.Object"/>
  15876. <param name="val" type="java.lang.Object"/>
  15877. <exception name="IOException" type="java.io.IOException"/>
  15878. <doc>
  15879. <![CDATA[Append a key/value pair.]]>
  15880. </doc>
  15881. </method>
  15882. <method name="appendRaw"
  15883. abstract="false" native="false" synchronized="true"
  15884. static="false" final="false" visibility="public"
  15885. deprecated="not deprecated">
  15886. <param name="keyData" type="byte[]"/>
  15887. <param name="keyOffset" type="int"/>
  15888. <param name="keyLength" type="int"/>
  15889. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  15890. <exception name="IOException" type="java.io.IOException"/>
  15891. </method>
  15892. <method name="getLength" return="long"
  15893. abstract="false" native="false" synchronized="true"
  15894. static="false" final="false" visibility="public"
  15895. deprecated="not deprecated">
  15896. <exception name="IOException" type="java.io.IOException"/>
  15897. <doc>
  15898. <![CDATA[Returns the current length of the output file.
  15899. <p>This always returns a synchronized position. In other words,
  15900. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  15901. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  15902. the key may be earlier in the file than key last written when this
  15903. method was called (e.g., with block-compression, it may be the first key
  15904. in the block that was being written when this method was called).]]>
  15905. </doc>
  15906. </method>
  15907. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  15908. transient="false" volatile="false"
  15909. static="false" final="false" visibility="protected"
  15910. deprecated="not deprecated">
  15911. </field>
  15912. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  15913. transient="false" volatile="false"
  15914. static="false" final="false" visibility="protected"
  15915. deprecated="not deprecated">
  15916. </field>
  15917. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  15918. transient="false" volatile="false"
  15919. static="false" final="false" visibility="protected"
  15920. deprecated="not deprecated">
  15921. </field>
  15922. <doc>
  15923. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  15924. </doc>
  15925. </class>
  15926. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  15927. <!-- start class org.apache.hadoop.io.SetFile -->
  15928. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  15929. abstract="false"
  15930. static="false" final="false" visibility="public"
  15931. deprecated="not deprecated">
  15932. <constructor name="SetFile"
  15933. static="false" final="false" visibility="protected"
  15934. deprecated="not deprecated">
  15935. </constructor>
  15936. <doc>
  15937. <![CDATA[A file-based set of keys.]]>
  15938. </doc>
  15939. </class>
  15940. <!-- end class org.apache.hadoop.io.SetFile -->
  15941. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  15942. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  15943. abstract="false"
  15944. static="true" final="false" visibility="public"
  15945. deprecated="not deprecated">
  15946. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  15947. static="false" final="false" visibility="public"
  15948. deprecated="not deprecated">
  15949. <exception name="IOException" type="java.io.IOException"/>
  15950. <doc>
  15951. <![CDATA[Construct a set reader for the named set.]]>
  15952. </doc>
  15953. </constructor>
  15954. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  15955. static="false" final="false" visibility="public"
  15956. deprecated="not deprecated">
  15957. <exception name="IOException" type="java.io.IOException"/>
  15958. <doc>
  15959. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  15960. </doc>
  15961. </constructor>
  15962. <method name="seek" return="boolean"
  15963. abstract="false" native="false" synchronized="false"
  15964. static="false" final="false" visibility="public"
  15965. deprecated="not deprecated">
  15966. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15967. <exception name="IOException" type="java.io.IOException"/>
  15968. </method>
  15969. <method name="next" return="boolean"
  15970. abstract="false" native="false" synchronized="false"
  15971. static="false" final="false" visibility="public"
  15972. deprecated="not deprecated">
  15973. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15974. <exception name="IOException" type="java.io.IOException"/>
  15975. <doc>
  15976. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  15977. true if such a key exists and false when at the end of the set.]]>
  15978. </doc>
  15979. </method>
  15980. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  15981. abstract="false" native="false" synchronized="false"
  15982. static="false" final="false" visibility="public"
  15983. deprecated="not deprecated">
  15984. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15985. <exception name="IOException" type="java.io.IOException"/>
  15986. <doc>
  15987. <![CDATA[Read the matching key from a set into <code>key</code>.
  15988. Returns <code>key</code>, or null if no match exists.]]>
  15989. </doc>
  15990. </method>
  15991. <doc>
  15992. <![CDATA[Provide access to an existing set file.]]>
  15993. </doc>
  15994. </class>
  15995. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  15996. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  15997. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  15998. abstract="false"
  15999. static="true" final="false" visibility="public"
  16000. deprecated="not deprecated">
  16001. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  16002. static="false" final="false" visibility="public"
  16003. deprecated="pass a Configuration too">
  16004. <exception name="IOException" type="java.io.IOException"/>
  16005. <doc>
  16006. <![CDATA[Create the named set for keys of the named class.
  16007. @deprecated pass a Configuration too]]>
  16008. </doc>
  16009. </constructor>
  16010. <constructor name="SetFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, org.apache.hadoop.io.SequenceFile.CompressionType"
  16011. static="false" final="false" visibility="public"
  16012. deprecated="not deprecated">
  16013. <exception name="IOException" type="java.io.IOException"/>
  16014. <doc>
  16015. <![CDATA[Create a set naming the element class and compression type.]]>
  16016. </doc>
  16017. </constructor>
  16018. <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"
  16019. static="false" final="false" visibility="public"
  16020. deprecated="not deprecated">
  16021. <exception name="IOException" type="java.io.IOException"/>
  16022. <doc>
  16023. <![CDATA[Create a set naming the element comparator and compression type.]]>
  16024. </doc>
  16025. </constructor>
  16026. <method name="append"
  16027. abstract="false" native="false" synchronized="false"
  16028. static="false" final="false" visibility="public"
  16029. deprecated="not deprecated">
  16030. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  16031. <exception name="IOException" type="java.io.IOException"/>
  16032. <doc>
  16033. <![CDATA[Append a key to a set. The key must be strictly greater than the
  16034. previous key added to the set.]]>
  16035. </doc>
  16036. </method>
  16037. <doc>
  16038. <![CDATA[Write a new set file.]]>
  16039. </doc>
  16040. </class>
  16041. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  16042. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  16043. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  16044. abstract="false"
  16045. static="false" final="false" visibility="public"
  16046. deprecated="not deprecated">
  16047. <implements name="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"/>
  16048. <constructor name="SortedMapWritable"
  16049. static="false" final="false" visibility="public"
  16050. deprecated="not deprecated">
  16051. <doc>
  16052. <![CDATA[default constructor.]]>
  16053. </doc>
  16054. </constructor>
  16055. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  16056. static="false" final="false" visibility="public"
  16057. deprecated="not deprecated">
  16058. <doc>
  16059. <![CDATA[Copy constructor.
  16060. @param other the map to copy from]]>
  16061. </doc>
  16062. </constructor>
  16063. <method name="comparator" return="java.util.Comparator&lt;? super org.apache.hadoop.io.WritableComparable&gt;"
  16064. abstract="false" native="false" synchronized="false"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. <doc>
  16068. <![CDATA[{@inheritDoc}]]>
  16069. </doc>
  16070. </method>
  16071. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  16072. abstract="false" native="false" synchronized="false"
  16073. static="false" final="false" visibility="public"
  16074. deprecated="not deprecated">
  16075. <doc>
  16076. <![CDATA[{@inheritDoc}]]>
  16077. </doc>
  16078. </method>
  16079. <method name="headMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  16080. abstract="false" native="false" synchronized="false"
  16081. static="false" final="false" visibility="public"
  16082. deprecated="not deprecated">
  16083. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  16084. <doc>
  16085. <![CDATA[{@inheritDoc}]]>
  16086. </doc>
  16087. </method>
  16088. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  16089. abstract="false" native="false" synchronized="false"
  16090. static="false" final="false" visibility="public"
  16091. deprecated="not deprecated">
  16092. <doc>
  16093. <![CDATA[{@inheritDoc}]]>
  16094. </doc>
  16095. </method>
  16096. <method name="subMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  16097. abstract="false" native="false" synchronized="false"
  16098. static="false" final="false" visibility="public"
  16099. deprecated="not deprecated">
  16100. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  16101. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  16102. <doc>
  16103. <![CDATA[{@inheritDoc}]]>
  16104. </doc>
  16105. </method>
  16106. <method name="tailMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  16107. abstract="false" native="false" synchronized="false"
  16108. static="false" final="false" visibility="public"
  16109. deprecated="not deprecated">
  16110. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  16111. <doc>
  16112. <![CDATA[{@inheritDoc}]]>
  16113. </doc>
  16114. </method>
  16115. <method name="clear"
  16116. abstract="false" native="false" synchronized="false"
  16117. static="false" final="false" visibility="public"
  16118. deprecated="not deprecated">
  16119. <doc>
  16120. <![CDATA[{@inheritDoc}]]>
  16121. </doc>
  16122. </method>
  16123. <method name="containsKey" return="boolean"
  16124. abstract="false" native="false" synchronized="false"
  16125. static="false" final="false" visibility="public"
  16126. deprecated="not deprecated">
  16127. <param name="key" type="java.lang.Object"/>
  16128. <doc>
  16129. <![CDATA[{@inheritDoc}]]>
  16130. </doc>
  16131. </method>
  16132. <method name="containsValue" return="boolean"
  16133. abstract="false" native="false" synchronized="false"
  16134. static="false" final="false" visibility="public"
  16135. deprecated="not deprecated">
  16136. <param name="value" type="java.lang.Object"/>
  16137. <doc>
  16138. <![CDATA[{@inheritDoc}]]>
  16139. </doc>
  16140. </method>
  16141. <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;"
  16142. abstract="false" native="false" synchronized="false"
  16143. static="false" final="false" visibility="public"
  16144. deprecated="not deprecated">
  16145. <doc>
  16146. <![CDATA[{@inheritDoc}]]>
  16147. </doc>
  16148. </method>
  16149. <method name="get" return="org.apache.hadoop.io.Writable"
  16150. abstract="false" native="false" synchronized="false"
  16151. static="false" final="false" visibility="public"
  16152. deprecated="not deprecated">
  16153. <param name="key" type="java.lang.Object"/>
  16154. <doc>
  16155. <![CDATA[{@inheritDoc}]]>
  16156. </doc>
  16157. </method>
  16158. <method name="isEmpty" return="boolean"
  16159. abstract="false" native="false" synchronized="false"
  16160. static="false" final="false" visibility="public"
  16161. deprecated="not deprecated">
  16162. <doc>
  16163. <![CDATA[{@inheritDoc}]]>
  16164. </doc>
  16165. </method>
  16166. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.WritableComparable&gt;"
  16167. abstract="false" native="false" synchronized="false"
  16168. static="false" final="false" visibility="public"
  16169. deprecated="not deprecated">
  16170. <doc>
  16171. <![CDATA[{@inheritDoc}]]>
  16172. </doc>
  16173. </method>
  16174. <method name="put" return="org.apache.hadoop.io.Writable"
  16175. abstract="false" native="false" synchronized="false"
  16176. static="false" final="false" visibility="public"
  16177. deprecated="not deprecated">
  16178. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  16179. <param name="value" type="org.apache.hadoop.io.Writable"/>
  16180. <doc>
  16181. <![CDATA[{@inheritDoc}]]>
  16182. </doc>
  16183. </method>
  16184. <method name="putAll"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="false" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.WritableComparable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  16189. <doc>
  16190. <![CDATA[{@inheritDoc}]]>
  16191. </doc>
  16192. </method>
  16193. <method name="remove" return="org.apache.hadoop.io.Writable"
  16194. abstract="false" native="false" synchronized="false"
  16195. static="false" final="false" visibility="public"
  16196. deprecated="not deprecated">
  16197. <param name="key" type="java.lang.Object"/>
  16198. <doc>
  16199. <![CDATA[{@inheritDoc}]]>
  16200. </doc>
  16201. </method>
  16202. <method name="size" return="int"
  16203. abstract="false" native="false" synchronized="false"
  16204. static="false" final="false" visibility="public"
  16205. deprecated="not deprecated">
  16206. <doc>
  16207. <![CDATA[{@inheritDoc}]]>
  16208. </doc>
  16209. </method>
  16210. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  16211. abstract="false" native="false" synchronized="false"
  16212. static="false" final="false" visibility="public"
  16213. deprecated="not deprecated">
  16214. <doc>
  16215. <![CDATA[{@inheritDoc}]]>
  16216. </doc>
  16217. </method>
  16218. <method name="readFields"
  16219. abstract="false" native="false" synchronized="false"
  16220. static="false" final="false" visibility="public"
  16221. deprecated="not deprecated">
  16222. <param name="in" type="java.io.DataInput"/>
  16223. <exception name="IOException" type="java.io.IOException"/>
  16224. <doc>
  16225. <![CDATA[{@inheritDoc}]]>
  16226. </doc>
  16227. </method>
  16228. <method name="write"
  16229. abstract="false" native="false" synchronized="false"
  16230. static="false" final="false" visibility="public"
  16231. deprecated="not deprecated">
  16232. <param name="out" type="java.io.DataOutput"/>
  16233. <exception name="IOException" type="java.io.IOException"/>
  16234. <doc>
  16235. <![CDATA[{@inheritDoc}]]>
  16236. </doc>
  16237. </method>
  16238. <doc>
  16239. <![CDATA[A Writable SortedMap.]]>
  16240. </doc>
  16241. </class>
  16242. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  16243. <!-- start interface org.apache.hadoop.io.Stringifier -->
  16244. <interface name="Stringifier" abstract="true"
  16245. static="false" final="false" visibility="public"
  16246. deprecated="not deprecated">
  16247. <implements name="java.io.Closeable"/>
  16248. <method name="toString" return="java.lang.String"
  16249. abstract="false" native="false" synchronized="false"
  16250. static="false" final="false" visibility="public"
  16251. deprecated="not deprecated">
  16252. <param name="obj" type="T"/>
  16253. <exception name="IOException" type="java.io.IOException"/>
  16254. <doc>
  16255. <![CDATA[Converts the object to a string representation
  16256. @param obj the object to convert
  16257. @return the string representation of the object
  16258. @throws IOException if the object cannot be converted]]>
  16259. </doc>
  16260. </method>
  16261. <method name="fromString" return="T"
  16262. abstract="false" native="false" synchronized="false"
  16263. static="false" final="false" visibility="public"
  16264. deprecated="not deprecated">
  16265. <param name="str" type="java.lang.String"/>
  16266. <exception name="IOException" type="java.io.IOException"/>
  16267. <doc>
  16268. <![CDATA[Restores the object from its string representation.
  16269. @param str the string representation of the object
  16270. @return restored object
  16271. @throws IOException if the object cannot be restored]]>
  16272. </doc>
  16273. </method>
  16274. <method name="close"
  16275. abstract="false" native="false" synchronized="false"
  16276. static="false" final="false" visibility="public"
  16277. deprecated="not deprecated">
  16278. <exception name="IOException" type="java.io.IOException"/>
  16279. <doc>
  16280. <![CDATA[Closes this object.
  16281. @throws IOException if an I/O error occurs]]>
  16282. </doc>
  16283. </method>
  16284. <doc>
  16285. <![CDATA[Stringifier interface offers two methods to convert an object
  16286. to a string representation and restore the object given its
  16287. string representation.
  16288. @param <T> the class of the objects to stringify]]>
  16289. </doc>
  16290. </interface>
  16291. <!-- end interface org.apache.hadoop.io.Stringifier -->
  16292. <!-- start class org.apache.hadoop.io.Text -->
  16293. <class name="Text" extends="java.lang.Object"
  16294. abstract="false"
  16295. static="false" final="false" visibility="public"
  16296. deprecated="not deprecated">
  16297. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16298. <constructor name="Text"
  16299. static="false" final="false" visibility="public"
  16300. deprecated="not deprecated">
  16301. </constructor>
  16302. <constructor name="Text" type="java.lang.String"
  16303. static="false" final="false" visibility="public"
  16304. deprecated="not deprecated">
  16305. <doc>
  16306. <![CDATA[Construct from a string.]]>
  16307. </doc>
  16308. </constructor>
  16309. <constructor name="Text" type="org.apache.hadoop.io.Text"
  16310. static="false" final="false" visibility="public"
  16311. deprecated="not deprecated">
  16312. <doc>
  16313. <![CDATA[Construct from another text.]]>
  16314. </doc>
  16315. </constructor>
  16316. <constructor name="Text" type="byte[]"
  16317. static="false" final="false" visibility="public"
  16318. deprecated="not deprecated">
  16319. <doc>
  16320. <![CDATA[Construct from a byte array.]]>
  16321. </doc>
  16322. </constructor>
  16323. <method name="getBytes" return="byte[]"
  16324. abstract="false" native="false" synchronized="false"
  16325. static="false" final="false" visibility="public"
  16326. deprecated="not deprecated">
  16327. <doc>
  16328. <![CDATA[Retuns the raw bytes.]]>
  16329. </doc>
  16330. </method>
  16331. <method name="getLength" return="int"
  16332. abstract="false" native="false" synchronized="false"
  16333. static="false" final="false" visibility="public"
  16334. deprecated="not deprecated">
  16335. <doc>
  16336. <![CDATA[Returns the number of bytes in the byte array]]>
  16337. </doc>
  16338. </method>
  16339. <method name="charAt" return="int"
  16340. abstract="false" native="false" synchronized="false"
  16341. static="false" final="false" visibility="public"
  16342. deprecated="not deprecated">
  16343. <param name="position" type="int"/>
  16344. <doc>
  16345. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  16346. for the character at <code>position</code>. Note that this
  16347. method avoids using the converter or doing String instatiation
  16348. @return the Unicode scalar value at position or -1
  16349. if the position is invalid or points to a
  16350. trailing byte]]>
  16351. </doc>
  16352. </method>
  16353. <method name="find" return="int"
  16354. abstract="false" native="false" synchronized="false"
  16355. static="false" final="false" visibility="public"
  16356. deprecated="not deprecated">
  16357. <param name="what" type="java.lang.String"/>
  16358. </method>
  16359. <method name="find" return="int"
  16360. abstract="false" native="false" synchronized="false"
  16361. static="false" final="false" visibility="public"
  16362. deprecated="not deprecated">
  16363. <param name="what" type="java.lang.String"/>
  16364. <param name="start" type="int"/>
  16365. <doc>
  16366. <![CDATA[Finds any occurence of <code>what</code> in the backing
  16367. buffer, starting as position <code>start</code>. The starting
  16368. position is measured in bytes and the return value is in
  16369. terms of byte position in the buffer. The backing buffer is
  16370. not converted to a string for this operation.
  16371. @return byte position of the first occurence of the search
  16372. string in the UTF-8 buffer or -1 if not found]]>
  16373. </doc>
  16374. </method>
  16375. <method name="set"
  16376. abstract="false" native="false" synchronized="false"
  16377. static="false" final="false" visibility="public"
  16378. deprecated="not deprecated">
  16379. <param name="string" type="java.lang.String"/>
  16380. <doc>
  16381. <![CDATA[Set to contain the contents of a string.]]>
  16382. </doc>
  16383. </method>
  16384. <method name="set"
  16385. abstract="false" native="false" synchronized="false"
  16386. static="false" final="false" visibility="public"
  16387. deprecated="not deprecated">
  16388. <param name="utf8" type="byte[]"/>
  16389. <doc>
  16390. <![CDATA[Set to a utf8 byte array]]>
  16391. </doc>
  16392. </method>
  16393. <method name="set"
  16394. abstract="false" native="false" synchronized="false"
  16395. static="false" final="false" visibility="public"
  16396. deprecated="not deprecated">
  16397. <param name="other" type="org.apache.hadoop.io.Text"/>
  16398. <doc>
  16399. <![CDATA[copy a text.]]>
  16400. </doc>
  16401. </method>
  16402. <method name="set"
  16403. abstract="false" native="false" synchronized="false"
  16404. static="false" final="false" visibility="public"
  16405. deprecated="not deprecated">
  16406. <param name="utf8" type="byte[]"/>
  16407. <param name="start" type="int"/>
  16408. <param name="len" type="int"/>
  16409. <doc>
  16410. <![CDATA[Set the Text to range of bytes
  16411. @param utf8 the data to copy from
  16412. @param start the first position of the new string
  16413. @param len the number of bytes of the new string]]>
  16414. </doc>
  16415. </method>
  16416. <method name="append"
  16417. abstract="false" native="false" synchronized="false"
  16418. static="false" final="false" visibility="public"
  16419. deprecated="not deprecated">
  16420. <param name="utf8" type="byte[]"/>
  16421. <param name="start" type="int"/>
  16422. <param name="len" type="int"/>
  16423. <doc>
  16424. <![CDATA[Append a range of bytes to the end of the given text
  16425. @param utf8 the data to copy from
  16426. @param start the first position to append from utf8
  16427. @param len the number of bytes to append]]>
  16428. </doc>
  16429. </method>
  16430. <method name="clear"
  16431. abstract="false" native="false" synchronized="false"
  16432. static="false" final="false" visibility="public"
  16433. deprecated="not deprecated">
  16434. <doc>
  16435. <![CDATA[Clear the string to empty.]]>
  16436. </doc>
  16437. </method>
  16438. <method name="toString" return="java.lang.String"
  16439. abstract="false" native="false" synchronized="false"
  16440. static="false" final="false" visibility="public"
  16441. deprecated="not deprecated">
  16442. <doc>
  16443. <![CDATA[Convert text back to string
  16444. @see java.lang.Object#toString()]]>
  16445. </doc>
  16446. </method>
  16447. <method name="readFields"
  16448. abstract="false" native="false" synchronized="false"
  16449. static="false" final="false" visibility="public"
  16450. deprecated="not deprecated">
  16451. <param name="in" type="java.io.DataInput"/>
  16452. <exception name="IOException" type="java.io.IOException"/>
  16453. <doc>
  16454. <![CDATA[deserialize]]>
  16455. </doc>
  16456. </method>
  16457. <method name="skip"
  16458. abstract="false" native="false" synchronized="false"
  16459. static="true" final="false" visibility="public"
  16460. deprecated="not deprecated">
  16461. <param name="in" type="java.io.DataInput"/>
  16462. <exception name="IOException" type="java.io.IOException"/>
  16463. <doc>
  16464. <![CDATA[Skips over one Text in the input.]]>
  16465. </doc>
  16466. </method>
  16467. <method name="write"
  16468. abstract="false" native="false" synchronized="false"
  16469. static="false" final="false" visibility="public"
  16470. deprecated="not deprecated">
  16471. <param name="out" type="java.io.DataOutput"/>
  16472. <exception name="IOException" type="java.io.IOException"/>
  16473. <doc>
  16474. <![CDATA[serialize
  16475. write this object to out
  16476. length uses zero-compressed encoding
  16477. @see Writable#write(DataOutput)]]>
  16478. </doc>
  16479. </method>
  16480. <method name="compareTo" return="int"
  16481. abstract="false" native="false" synchronized="false"
  16482. static="false" final="false" visibility="public"
  16483. deprecated="not deprecated">
  16484. <param name="o" type="java.lang.Object"/>
  16485. <doc>
  16486. <![CDATA[Compare two Texts bytewise using standard UTF8 ordering.]]>
  16487. </doc>
  16488. </method>
  16489. <method name="equals" return="boolean"
  16490. abstract="false" native="false" synchronized="false"
  16491. static="false" final="false" visibility="public"
  16492. deprecated="not deprecated">
  16493. <param name="o" type="java.lang.Object"/>
  16494. <doc>
  16495. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  16496. </doc>
  16497. </method>
  16498. <method name="hashCode" return="int"
  16499. abstract="false" native="false" synchronized="false"
  16500. static="false" final="false" visibility="public"
  16501. deprecated="not deprecated">
  16502. <doc>
  16503. <![CDATA[hash function]]>
  16504. </doc>
  16505. </method>
  16506. <method name="decode" return="java.lang.String"
  16507. abstract="false" native="false" synchronized="false"
  16508. static="true" final="false" visibility="public"
  16509. deprecated="not deprecated">
  16510. <param name="utf8" type="byte[]"/>
  16511. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  16512. <doc>
  16513. <![CDATA[Converts the provided byte array to a String using the
  16514. UTF-8 encoding. If the input is malformed,
  16515. replace by a default value.]]>
  16516. </doc>
  16517. </method>
  16518. <method name="decode" return="java.lang.String"
  16519. abstract="false" native="false" synchronized="false"
  16520. static="true" final="false" visibility="public"
  16521. deprecated="not deprecated">
  16522. <param name="utf8" type="byte[]"/>
  16523. <param name="start" type="int"/>
  16524. <param name="length" type="int"/>
  16525. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  16526. </method>
  16527. <method name="decode" return="java.lang.String"
  16528. abstract="false" native="false" synchronized="false"
  16529. static="true" final="false" visibility="public"
  16530. deprecated="not deprecated">
  16531. <param name="utf8" type="byte[]"/>
  16532. <param name="start" type="int"/>
  16533. <param name="length" type="int"/>
  16534. <param name="replace" type="boolean"/>
  16535. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  16536. <doc>
  16537. <![CDATA[Converts the provided byte array to a String using the
  16538. UTF-8 encoding. If <code>replace</code> is true, then
  16539. malformed input is replaced with the
  16540. substitution character, which is U+FFFD. Otherwise the
  16541. method throws a MalformedInputException.]]>
  16542. </doc>
  16543. </method>
  16544. <method name="encode" return="java.nio.ByteBuffer"
  16545. abstract="false" native="false" synchronized="false"
  16546. static="true" final="false" visibility="public"
  16547. deprecated="not deprecated">
  16548. <param name="string" type="java.lang.String"/>
  16549. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  16550. <doc>
  16551. <![CDATA[Converts the provided String to bytes using the
  16552. UTF-8 encoding. If the input is malformed,
  16553. invalid chars are replaced by a default value.
  16554. @return ByteBuffer: bytes stores at ByteBuffer.array()
  16555. and length is ByteBuffer.limit()]]>
  16556. </doc>
  16557. </method>
  16558. <method name="encode" return="java.nio.ByteBuffer"
  16559. abstract="false" native="false" synchronized="false"
  16560. static="true" final="false" visibility="public"
  16561. deprecated="not deprecated">
  16562. <param name="string" type="java.lang.String"/>
  16563. <param name="replace" type="boolean"/>
  16564. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  16565. <doc>
  16566. <![CDATA[Converts the provided String to bytes using the
  16567. UTF-8 encoding. If <code>replace</code> is true, then
  16568. malformed input is replaced with the
  16569. substitution character, which is U+FFFD. Otherwise the
  16570. method throws a MalformedInputException.
  16571. @return ByteBuffer: bytes stores at ByteBuffer.array()
  16572. and length is ByteBuffer.limit()]]>
  16573. </doc>
  16574. </method>
  16575. <method name="readString" return="java.lang.String"
  16576. abstract="false" native="false" synchronized="false"
  16577. static="true" final="false" visibility="public"
  16578. deprecated="not deprecated">
  16579. <param name="in" type="java.io.DataInput"/>
  16580. <exception name="IOException" type="java.io.IOException"/>
  16581. <doc>
  16582. <![CDATA[Read a UTF8 encoded string from in]]>
  16583. </doc>
  16584. </method>
  16585. <method name="writeString" return="int"
  16586. abstract="false" native="false" synchronized="false"
  16587. static="true" final="false" visibility="public"
  16588. deprecated="not deprecated">
  16589. <param name="out" type="java.io.DataOutput"/>
  16590. <param name="s" type="java.lang.String"/>
  16591. <exception name="IOException" type="java.io.IOException"/>
  16592. <doc>
  16593. <![CDATA[Write a UTF8 encoded string to out]]>
  16594. </doc>
  16595. </method>
  16596. <method name="validateUTF8"
  16597. abstract="false" native="false" synchronized="false"
  16598. static="true" final="false" visibility="public"
  16599. deprecated="not deprecated">
  16600. <param name="utf8" type="byte[]"/>
  16601. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  16602. <doc>
  16603. <![CDATA[Check if a byte array contains valid utf-8
  16604. @param utf8 byte array
  16605. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  16606. </doc>
  16607. </method>
  16608. <method name="validateUTF8"
  16609. abstract="false" native="false" synchronized="false"
  16610. static="true" final="false" visibility="public"
  16611. deprecated="not deprecated">
  16612. <param name="utf8" type="byte[]"/>
  16613. <param name="start" type="int"/>
  16614. <param name="len" type="int"/>
  16615. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  16616. <doc>
  16617. <![CDATA[Check to see if a byte array is valid utf-8
  16618. @param utf8 the array of bytes
  16619. @param start the offset of the first byte in the array
  16620. @param len the length of the byte sequence
  16621. @throws MalformedInputException if the byte array contains invalid bytes]]>
  16622. </doc>
  16623. </method>
  16624. <method name="bytesToCodePoint" return="int"
  16625. abstract="false" native="false" synchronized="false"
  16626. static="true" final="false" visibility="public"
  16627. deprecated="not deprecated">
  16628. <param name="bytes" type="java.nio.ByteBuffer"/>
  16629. <doc>
  16630. <![CDATA[Returns the next code point at the current position in
  16631. the buffer. The buffer's position will be incremented.
  16632. Any mark set on this buffer will be changed by this method!]]>
  16633. </doc>
  16634. </method>
  16635. <method name="utf8Length" return="int"
  16636. abstract="false" native="false" synchronized="false"
  16637. static="true" final="false" visibility="public"
  16638. deprecated="not deprecated">
  16639. <param name="string" type="java.lang.String"/>
  16640. <doc>
  16641. <![CDATA[For the given string, returns the number of UTF-8 bytes
  16642. required to encode the string.
  16643. @param string text to encode
  16644. @return number of UTF-8 bytes required to encode]]>
  16645. </doc>
  16646. </method>
  16647. <doc>
  16648. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  16649. to serialize, deserialize, and compare texts at byte level. The type of
  16650. length is integer and is serialized using zero-compressed format. <p>In
  16651. addition, it provides methods for string traversal without converting the
  16652. byte array to a string. <p>Also includes utilities for
  16653. serializing/deserialing a string, coding/decoding a string, checking if a
  16654. byte array contains valid UTF8 code, calculating the length of an encoded
  16655. string.]]>
  16656. </doc>
  16657. </class>
  16658. <!-- end class org.apache.hadoop.io.Text -->
  16659. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  16660. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  16661. abstract="false"
  16662. static="true" final="false" visibility="public"
  16663. deprecated="not deprecated">
  16664. <constructor name="Text.Comparator"
  16665. static="false" final="false" visibility="public"
  16666. deprecated="not deprecated">
  16667. </constructor>
  16668. <method name="compare" return="int"
  16669. abstract="false" native="false" synchronized="false"
  16670. static="false" final="false" visibility="public"
  16671. deprecated="not deprecated">
  16672. <param name="b1" type="byte[]"/>
  16673. <param name="s1" type="int"/>
  16674. <param name="l1" type="int"/>
  16675. <param name="b2" type="byte[]"/>
  16676. <param name="s2" type="int"/>
  16677. <param name="l2" type="int"/>
  16678. </method>
  16679. <doc>
  16680. <![CDATA[A WritableComparator optimized for Text keys.]]>
  16681. </doc>
  16682. </class>
  16683. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  16684. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  16685. <class name="TwoDArrayWritable" extends="java.lang.Object"
  16686. abstract="false"
  16687. static="false" final="false" visibility="public"
  16688. deprecated="not deprecated">
  16689. <implements name="org.apache.hadoop.io.Writable"/>
  16690. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  16691. static="false" final="false" visibility="public"
  16692. deprecated="not deprecated">
  16693. </constructor>
  16694. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  16695. static="false" final="false" visibility="public"
  16696. deprecated="not deprecated">
  16697. </constructor>
  16698. <method name="toArray" return="java.lang.Object"
  16699. abstract="false" native="false" synchronized="false"
  16700. static="false" final="false" visibility="public"
  16701. deprecated="not deprecated">
  16702. </method>
  16703. <method name="set"
  16704. abstract="false" native="false" synchronized="false"
  16705. static="false" final="false" visibility="public"
  16706. deprecated="not deprecated">
  16707. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  16708. </method>
  16709. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  16710. abstract="false" native="false" synchronized="false"
  16711. static="false" final="false" visibility="public"
  16712. deprecated="not deprecated">
  16713. </method>
  16714. <method name="readFields"
  16715. abstract="false" native="false" synchronized="false"
  16716. static="false" final="false" visibility="public"
  16717. deprecated="not deprecated">
  16718. <param name="in" type="java.io.DataInput"/>
  16719. <exception name="IOException" type="java.io.IOException"/>
  16720. </method>
  16721. <method name="write"
  16722. abstract="false" native="false" synchronized="false"
  16723. static="false" final="false" visibility="public"
  16724. deprecated="not deprecated">
  16725. <param name="out" type="java.io.DataOutput"/>
  16726. <exception name="IOException" type="java.io.IOException"/>
  16727. </method>
  16728. <doc>
  16729. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  16730. </doc>
  16731. </class>
  16732. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  16733. <!-- start class org.apache.hadoop.io.UTF8 -->
  16734. <class name="UTF8" extends="java.lang.Object"
  16735. abstract="false"
  16736. static="false" final="false" visibility="public"
  16737. deprecated="replaced by Text">
  16738. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16739. <constructor name="UTF8"
  16740. static="false" final="false" visibility="public"
  16741. deprecated="not deprecated">
  16742. </constructor>
  16743. <constructor name="UTF8" type="java.lang.String"
  16744. static="false" final="false" visibility="public"
  16745. deprecated="not deprecated">
  16746. <doc>
  16747. <![CDATA[Construct from a given string.]]>
  16748. </doc>
  16749. </constructor>
  16750. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  16751. static="false" final="false" visibility="public"
  16752. deprecated="not deprecated">
  16753. <doc>
  16754. <![CDATA[Construct from a given string.]]>
  16755. </doc>
  16756. </constructor>
  16757. <method name="getBytes" return="byte[]"
  16758. abstract="false" native="false" synchronized="false"
  16759. static="false" final="false" visibility="public"
  16760. deprecated="not deprecated">
  16761. <doc>
  16762. <![CDATA[The raw bytes.]]>
  16763. </doc>
  16764. </method>
  16765. <method name="getLength" return="int"
  16766. abstract="false" native="false" synchronized="false"
  16767. static="false" final="false" visibility="public"
  16768. deprecated="not deprecated">
  16769. <doc>
  16770. <![CDATA[The number of bytes in the encoded string.]]>
  16771. </doc>
  16772. </method>
  16773. <method name="set"
  16774. abstract="false" native="false" synchronized="false"
  16775. static="false" final="false" visibility="public"
  16776. deprecated="not deprecated">
  16777. <param name="string" type="java.lang.String"/>
  16778. <doc>
  16779. <![CDATA[Set to contain the contents of a string.]]>
  16780. </doc>
  16781. </method>
  16782. <method name="set"
  16783. abstract="false" native="false" synchronized="false"
  16784. static="false" final="false" visibility="public"
  16785. deprecated="not deprecated">
  16786. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  16787. <doc>
  16788. <![CDATA[Set to contain the contents of a string.]]>
  16789. </doc>
  16790. </method>
  16791. <method name="readFields"
  16792. abstract="false" native="false" synchronized="false"
  16793. static="false" final="false" visibility="public"
  16794. deprecated="not deprecated">
  16795. <param name="in" type="java.io.DataInput"/>
  16796. <exception name="IOException" type="java.io.IOException"/>
  16797. </method>
  16798. <method name="skip"
  16799. abstract="false" native="false" synchronized="false"
  16800. static="true" final="false" visibility="public"
  16801. deprecated="not deprecated">
  16802. <param name="in" type="java.io.DataInput"/>
  16803. <exception name="IOException" type="java.io.IOException"/>
  16804. <doc>
  16805. <![CDATA[Skips over one UTF8 in the input.]]>
  16806. </doc>
  16807. </method>
  16808. <method name="write"
  16809. abstract="false" native="false" synchronized="false"
  16810. static="false" final="false" visibility="public"
  16811. deprecated="not deprecated">
  16812. <param name="out" type="java.io.DataOutput"/>
  16813. <exception name="IOException" type="java.io.IOException"/>
  16814. </method>
  16815. <method name="compareTo" return="int"
  16816. abstract="false" native="false" synchronized="false"
  16817. static="false" final="false" visibility="public"
  16818. deprecated="not deprecated">
  16819. <param name="o" type="java.lang.Object"/>
  16820. <doc>
  16821. <![CDATA[Compare two UTF8s.]]>
  16822. </doc>
  16823. </method>
  16824. <method name="toString" return="java.lang.String"
  16825. abstract="false" native="false" synchronized="false"
  16826. static="false" final="false" visibility="public"
  16827. deprecated="not deprecated">
  16828. <doc>
  16829. <![CDATA[Convert to a String.]]>
  16830. </doc>
  16831. </method>
  16832. <method name="equals" return="boolean"
  16833. abstract="false" native="false" synchronized="false"
  16834. static="false" final="false" visibility="public"
  16835. deprecated="not deprecated">
  16836. <param name="o" type="java.lang.Object"/>
  16837. <doc>
  16838. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  16839. </doc>
  16840. </method>
  16841. <method name="hashCode" return="int"
  16842. abstract="false" native="false" synchronized="false"
  16843. static="false" final="false" visibility="public"
  16844. deprecated="not deprecated">
  16845. </method>
  16846. <method name="getBytes" return="byte[]"
  16847. abstract="false" native="false" synchronized="false"
  16848. static="true" final="false" visibility="public"
  16849. deprecated="not deprecated">
  16850. <param name="string" type="java.lang.String"/>
  16851. <doc>
  16852. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  16853. @see String#getBytes(String)]]>
  16854. </doc>
  16855. </method>
  16856. <method name="readString" return="java.lang.String"
  16857. abstract="false" native="false" synchronized="false"
  16858. static="true" final="false" visibility="public"
  16859. deprecated="not deprecated">
  16860. <param name="in" type="java.io.DataInput"/>
  16861. <exception name="IOException" type="java.io.IOException"/>
  16862. <doc>
  16863. <![CDATA[Read a UTF-8 encoded string.
  16864. @see DataInput#readUTF()]]>
  16865. </doc>
  16866. </method>
  16867. <method name="writeString" return="int"
  16868. abstract="false" native="false" synchronized="false"
  16869. static="true" final="false" visibility="public"
  16870. deprecated="not deprecated">
  16871. <param name="out" type="java.io.DataOutput"/>
  16872. <param name="s" type="java.lang.String"/>
  16873. <exception name="IOException" type="java.io.IOException"/>
  16874. <doc>
  16875. <![CDATA[Write a UTF-8 encoded string.
  16876. @see DataOutput#writeUTF(String)]]>
  16877. </doc>
  16878. </method>
  16879. <doc>
  16880. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  16881. <p>Also includes utilities for efficiently reading and writing UTF-8.
  16882. @deprecated replaced by Text]]>
  16883. </doc>
  16884. </class>
  16885. <!-- end class org.apache.hadoop.io.UTF8 -->
  16886. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  16887. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  16888. abstract="false"
  16889. static="true" final="false" visibility="public"
  16890. deprecated="not deprecated">
  16891. <constructor name="UTF8.Comparator"
  16892. static="false" final="false" visibility="public"
  16893. deprecated="not deprecated">
  16894. </constructor>
  16895. <method name="compare" return="int"
  16896. abstract="false" native="false" synchronized="false"
  16897. static="false" final="false" visibility="public"
  16898. deprecated="not deprecated">
  16899. <param name="b1" type="byte[]"/>
  16900. <param name="s1" type="int"/>
  16901. <param name="l1" type="int"/>
  16902. <param name="b2" type="byte[]"/>
  16903. <param name="s2" type="int"/>
  16904. <param name="l2" type="int"/>
  16905. </method>
  16906. <doc>
  16907. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  16908. </doc>
  16909. </class>
  16910. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  16911. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  16912. <class name="VersionedWritable" extends="java.lang.Object"
  16913. abstract="true"
  16914. static="false" final="false" visibility="public"
  16915. deprecated="not deprecated">
  16916. <implements name="org.apache.hadoop.io.Writable"/>
  16917. <constructor name="VersionedWritable"
  16918. static="false" final="false" visibility="public"
  16919. deprecated="not deprecated">
  16920. </constructor>
  16921. <method name="getVersion" return="byte"
  16922. abstract="true" native="false" synchronized="false"
  16923. static="false" final="false" visibility="public"
  16924. deprecated="not deprecated">
  16925. <doc>
  16926. <![CDATA[Return the version number of the current implementation.]]>
  16927. </doc>
  16928. </method>
  16929. <method name="write"
  16930. abstract="false" native="false" synchronized="false"
  16931. static="false" final="false" visibility="public"
  16932. deprecated="not deprecated">
  16933. <param name="out" type="java.io.DataOutput"/>
  16934. <exception name="IOException" type="java.io.IOException"/>
  16935. </method>
  16936. <method name="readFields"
  16937. abstract="false" native="false" synchronized="false"
  16938. static="false" final="false" visibility="public"
  16939. deprecated="not deprecated">
  16940. <param name="in" type="java.io.DataInput"/>
  16941. <exception name="IOException" type="java.io.IOException"/>
  16942. </method>
  16943. <doc>
  16944. <![CDATA[A base class for Writables that provides version checking.
  16945. <p>This is useful when a class may evolve, so that instances written by the
  16946. old version of the class may still be processed by the new version. To
  16947. handle this situation, {@link #readFields(DataInput)}
  16948. implementations should catch {@link VersionMismatchException}.]]>
  16949. </doc>
  16950. </class>
  16951. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  16952. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  16953. <class name="VersionMismatchException" extends="java.io.IOException"
  16954. abstract="false"
  16955. static="false" final="false" visibility="public"
  16956. deprecated="not deprecated">
  16957. <constructor name="VersionMismatchException" type="byte, byte"
  16958. static="false" final="false" visibility="public"
  16959. deprecated="not deprecated">
  16960. </constructor>
  16961. <method name="toString" return="java.lang.String"
  16962. abstract="false" native="false" synchronized="false"
  16963. static="false" final="false" visibility="public"
  16964. deprecated="not deprecated">
  16965. <doc>
  16966. <![CDATA[Returns a string representation of this object.]]>
  16967. </doc>
  16968. </method>
  16969. <doc>
  16970. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  16971. version of an object being read does not match the current implementation
  16972. version as returned by {@link VersionedWritable#getVersion()}.]]>
  16973. </doc>
  16974. </class>
  16975. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  16976. <!-- start class org.apache.hadoop.io.VIntWritable -->
  16977. <class name="VIntWritable" extends="java.lang.Object"
  16978. abstract="false"
  16979. static="false" final="false" visibility="public"
  16980. deprecated="not deprecated">
  16981. <implements name="org.apache.hadoop.io.WritableComparable"/>
  16982. <constructor name="VIntWritable"
  16983. static="false" final="false" visibility="public"
  16984. deprecated="not deprecated">
  16985. </constructor>
  16986. <constructor name="VIntWritable" type="int"
  16987. static="false" final="false" visibility="public"
  16988. deprecated="not deprecated">
  16989. </constructor>
  16990. <method name="set"
  16991. abstract="false" native="false" synchronized="false"
  16992. static="false" final="false" visibility="public"
  16993. deprecated="not deprecated">
  16994. <param name="value" type="int"/>
  16995. <doc>
  16996. <![CDATA[Set the value of this VIntWritable.]]>
  16997. </doc>
  16998. </method>
  16999. <method name="get" return="int"
  17000. abstract="false" native="false" synchronized="false"
  17001. static="false" final="false" visibility="public"
  17002. deprecated="not deprecated">
  17003. <doc>
  17004. <![CDATA[Return the value of this VIntWritable.]]>
  17005. </doc>
  17006. </method>
  17007. <method name="readFields"
  17008. abstract="false" native="false" synchronized="false"
  17009. static="false" final="false" visibility="public"
  17010. deprecated="not deprecated">
  17011. <param name="in" type="java.io.DataInput"/>
  17012. <exception name="IOException" type="java.io.IOException"/>
  17013. </method>
  17014. <method name="write"
  17015. abstract="false" native="false" synchronized="false"
  17016. static="false" final="false" visibility="public"
  17017. deprecated="not deprecated">
  17018. <param name="out" type="java.io.DataOutput"/>
  17019. <exception name="IOException" type="java.io.IOException"/>
  17020. </method>
  17021. <method name="equals" return="boolean"
  17022. abstract="false" native="false" synchronized="false"
  17023. static="false" final="false" visibility="public"
  17024. deprecated="not deprecated">
  17025. <param name="o" type="java.lang.Object"/>
  17026. <doc>
  17027. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  17028. </doc>
  17029. </method>
  17030. <method name="hashCode" return="int"
  17031. abstract="false" native="false" synchronized="false"
  17032. static="false" final="false" visibility="public"
  17033. deprecated="not deprecated">
  17034. </method>
  17035. <method name="compareTo" return="int"
  17036. abstract="false" native="false" synchronized="false"
  17037. static="false" final="false" visibility="public"
  17038. deprecated="not deprecated">
  17039. <param name="o" type="java.lang.Object"/>
  17040. <doc>
  17041. <![CDATA[Compares two VIntWritables.]]>
  17042. </doc>
  17043. </method>
  17044. <method name="toString" return="java.lang.String"
  17045. abstract="false" native="false" synchronized="false"
  17046. static="false" final="false" visibility="public"
  17047. deprecated="not deprecated">
  17048. </method>
  17049. <doc>
  17050. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  17051. Such values take between one and five bytes. Smaller values take fewer bytes.
  17052. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  17053. </doc>
  17054. </class>
  17055. <!-- end class org.apache.hadoop.io.VIntWritable -->
  17056. <!-- start class org.apache.hadoop.io.VLongWritable -->
  17057. <class name="VLongWritable" extends="java.lang.Object"
  17058. abstract="false"
  17059. static="false" final="false" visibility="public"
  17060. deprecated="not deprecated">
  17061. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17062. <constructor name="VLongWritable"
  17063. static="false" final="false" visibility="public"
  17064. deprecated="not deprecated">
  17065. </constructor>
  17066. <constructor name="VLongWritable" type="long"
  17067. static="false" final="false" visibility="public"
  17068. deprecated="not deprecated">
  17069. </constructor>
  17070. <method name="set"
  17071. abstract="false" native="false" synchronized="false"
  17072. static="false" final="false" visibility="public"
  17073. deprecated="not deprecated">
  17074. <param name="value" type="long"/>
  17075. <doc>
  17076. <![CDATA[Set the value of this LongWritable.]]>
  17077. </doc>
  17078. </method>
  17079. <method name="get" return="long"
  17080. abstract="false" native="false" synchronized="false"
  17081. static="false" final="false" visibility="public"
  17082. deprecated="not deprecated">
  17083. <doc>
  17084. <![CDATA[Return the value of this LongWritable.]]>
  17085. </doc>
  17086. </method>
  17087. <method name="readFields"
  17088. abstract="false" native="false" synchronized="false"
  17089. static="false" final="false" visibility="public"
  17090. deprecated="not deprecated">
  17091. <param name="in" type="java.io.DataInput"/>
  17092. <exception name="IOException" type="java.io.IOException"/>
  17093. </method>
  17094. <method name="write"
  17095. abstract="false" native="false" synchronized="false"
  17096. static="false" final="false" visibility="public"
  17097. deprecated="not deprecated">
  17098. <param name="out" type="java.io.DataOutput"/>
  17099. <exception name="IOException" type="java.io.IOException"/>
  17100. </method>
  17101. <method name="equals" return="boolean"
  17102. abstract="false" native="false" synchronized="false"
  17103. static="false" final="false" visibility="public"
  17104. deprecated="not deprecated">
  17105. <param name="o" type="java.lang.Object"/>
  17106. <doc>
  17107. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  17108. </doc>
  17109. </method>
  17110. <method name="hashCode" return="int"
  17111. abstract="false" native="false" synchronized="false"
  17112. static="false" final="false" visibility="public"
  17113. deprecated="not deprecated">
  17114. </method>
  17115. <method name="compareTo" return="int"
  17116. abstract="false" native="false" synchronized="false"
  17117. static="false" final="false" visibility="public"
  17118. deprecated="not deprecated">
  17119. <param name="o" type="java.lang.Object"/>
  17120. <doc>
  17121. <![CDATA[Compares two VLongWritables.]]>
  17122. </doc>
  17123. </method>
  17124. <method name="toString" return="java.lang.String"
  17125. abstract="false" native="false" synchronized="false"
  17126. static="false" final="false" visibility="public"
  17127. deprecated="not deprecated">
  17128. </method>
  17129. <doc>
  17130. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  17131. between one and five bytes. Smaller values take fewer bytes.
  17132. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  17133. </doc>
  17134. </class>
  17135. <!-- end class org.apache.hadoop.io.VLongWritable -->
  17136. <!-- start interface org.apache.hadoop.io.Writable -->
  17137. <interface name="Writable" abstract="true"
  17138. static="false" final="false" visibility="public"
  17139. deprecated="not deprecated">
  17140. <method name="write"
  17141. abstract="false" native="false" synchronized="false"
  17142. static="false" final="false" visibility="public"
  17143. deprecated="not deprecated">
  17144. <param name="out" type="java.io.DataOutput"/>
  17145. <exception name="IOException" type="java.io.IOException"/>
  17146. <doc>
  17147. <![CDATA[Serialize the fields of this object to <code>out</code>.
  17148. @param out <code>DataOuput</code> to serialize this object into.
  17149. @throws IOException]]>
  17150. </doc>
  17151. </method>
  17152. <method name="readFields"
  17153. abstract="false" native="false" synchronized="false"
  17154. static="false" final="false" visibility="public"
  17155. deprecated="not deprecated">
  17156. <param name="in" type="java.io.DataInput"/>
  17157. <exception name="IOException" type="java.io.IOException"/>
  17158. <doc>
  17159. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  17160. <p>For efficiency, implementations should attempt to re-use storage in the
  17161. existing object where possible.</p>
  17162. @param in <code>DataInput</code> to deseriablize this object from.
  17163. @throws IOException]]>
  17164. </doc>
  17165. </method>
  17166. <doc>
  17167. <![CDATA[A serializable object which implements a simple, efficient, serialization
  17168. protocol, based on {@link DataInput} and {@link DataOutput}.
  17169. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  17170. framework implements this interface.</p>
  17171. <p>Implementations typically implement a static <code>read(DataInput)</code>
  17172. method which constructs a new instance, calls {@link #readFields(DataInput)}
  17173. and returns the instance.</p>
  17174. <p>Example:</p>
  17175. <p><blockquote><pre>
  17176. public class MyWritable implements Writable {
  17177. // Some data
  17178. private int counter;
  17179. private long timestamp;
  17180. public void write(DataOutput out) throws IOException {
  17181. out.writeInt(counter);
  17182. out.writeLong(timestamp);
  17183. }
  17184. public void readFields(DataInput in) throws IOException {
  17185. counter = in.readInt();
  17186. timestamp = in.readLong();
  17187. }
  17188. public static MyWritable read(DataInput in) throws IOException {
  17189. MyWritable w = new MyWritable();
  17190. w.readFields(in);
  17191. return w;
  17192. }
  17193. }
  17194. </pre></blockquote></p>]]>
  17195. </doc>
  17196. </interface>
  17197. <!-- end interface org.apache.hadoop.io.Writable -->
  17198. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  17199. <interface name="WritableComparable" abstract="true"
  17200. static="false" final="false" visibility="public"
  17201. deprecated="not deprecated">
  17202. <implements name="org.apache.hadoop.io.Writable"/>
  17203. <implements name="java.lang.Comparable"/>
  17204. <doc>
  17205. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  17206. <p><code>WritableComparable</code>s can be compared to each other, typically
  17207. via <code>Comparator</code>s. Any type which is to be used as a
  17208. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  17209. interface.</p>
  17210. <p>Example:</p>
  17211. <p><blockquote><pre>
  17212. public class MyWritableComparable implements WritableComparable {
  17213. // Some data
  17214. private int counter;
  17215. private long timestamp;
  17216. public void write(DataOutput out) throws IOException {
  17217. out.writeInt(counter);
  17218. out.writeLong(timestamp);
  17219. }
  17220. public void readFields(DataInput in) throws IOException {
  17221. counter = in.readInt();
  17222. timestamp = in.readLong();
  17223. }
  17224. public int compareTo(MyWritableComparable w) {
  17225. int thisValue = this.value;
  17226. int thatValue = ((IntWritable)o).value;
  17227. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  17228. }
  17229. }
  17230. </pre></blockquote></p>]]>
  17231. </doc>
  17232. </interface>
  17233. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  17234. <!-- start class org.apache.hadoop.io.WritableComparator -->
  17235. <class name="WritableComparator" extends="java.lang.Object"
  17236. abstract="false"
  17237. static="false" final="false" visibility="public"
  17238. deprecated="not deprecated">
  17239. <implements name="org.apache.hadoop.io.RawComparator"/>
  17240. <constructor name="WritableComparator" type="java.lang.Class"
  17241. static="false" final="false" visibility="protected"
  17242. deprecated="not deprecated">
  17243. <doc>
  17244. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  17245. </doc>
  17246. </constructor>
  17247. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  17248. abstract="false" native="false" synchronized="true"
  17249. static="true" final="false" visibility="public"
  17250. deprecated="not deprecated">
  17251. <param name="c" type="java.lang.Class"/>
  17252. <doc>
  17253. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  17254. </doc>
  17255. </method>
  17256. <method name="define"
  17257. abstract="false" native="false" synchronized="true"
  17258. static="true" final="false" visibility="public"
  17259. deprecated="not deprecated">
  17260. <param name="c" type="java.lang.Class"/>
  17261. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  17262. <doc>
  17263. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  17264. implementation.]]>
  17265. </doc>
  17266. </method>
  17267. <method name="getKeyClass" return="java.lang.Class"
  17268. abstract="false" native="false" synchronized="false"
  17269. static="false" final="false" visibility="public"
  17270. deprecated="not deprecated">
  17271. <doc>
  17272. <![CDATA[Returns the WritableComparable implementation class.]]>
  17273. </doc>
  17274. </method>
  17275. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  17276. abstract="false" native="false" synchronized="false"
  17277. static="false" final="false" visibility="public"
  17278. deprecated="not deprecated">
  17279. <doc>
  17280. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  17281. </doc>
  17282. </method>
  17283. <method name="compare" return="int"
  17284. abstract="false" native="false" synchronized="false"
  17285. static="false" final="false" visibility="public"
  17286. deprecated="not deprecated">
  17287. <param name="b1" type="byte[]"/>
  17288. <param name="s1" type="int"/>
  17289. <param name="l1" type="int"/>
  17290. <param name="b2" type="byte[]"/>
  17291. <param name="s2" type="int"/>
  17292. <param name="l2" type="int"/>
  17293. <doc>
  17294. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  17295. <p>The default implementation reads the data into two {@link
  17296. WritableComparable}s (using {@link
  17297. Writable#readFields(DataInput)}, then calls {@link
  17298. #compare(WritableComparable,WritableComparable)}.]]>
  17299. </doc>
  17300. </method>
  17301. <method name="compare" return="int"
  17302. abstract="false" native="false" synchronized="false"
  17303. static="false" final="false" visibility="public"
  17304. deprecated="not deprecated">
  17305. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  17306. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  17307. <doc>
  17308. <![CDATA[Compare two WritableComparables.
  17309. <p> The default implementation uses the natural ordering, calling {@link
  17310. Comparable#compareTo(Object)}.]]>
  17311. </doc>
  17312. </method>
  17313. <method name="compare" return="int"
  17314. abstract="false" native="false" synchronized="false"
  17315. static="false" final="false" visibility="public"
  17316. deprecated="not deprecated">
  17317. <param name="a" type="java.lang.Object"/>
  17318. <param name="b" type="java.lang.Object"/>
  17319. </method>
  17320. <method name="compareBytes" return="int"
  17321. abstract="false" native="false" synchronized="false"
  17322. static="true" final="false" visibility="public"
  17323. deprecated="not deprecated">
  17324. <param name="b1" type="byte[]"/>
  17325. <param name="s1" type="int"/>
  17326. <param name="l1" type="int"/>
  17327. <param name="b2" type="byte[]"/>
  17328. <param name="s2" type="int"/>
  17329. <param name="l2" type="int"/>
  17330. <doc>
  17331. <![CDATA[Lexicographic order of binary data.]]>
  17332. </doc>
  17333. </method>
  17334. <method name="hashBytes" return="int"
  17335. abstract="false" native="false" synchronized="false"
  17336. static="true" final="false" visibility="public"
  17337. deprecated="not deprecated">
  17338. <param name="bytes" type="byte[]"/>
  17339. <param name="length" type="int"/>
  17340. <doc>
  17341. <![CDATA[Compute hash for binary data.]]>
  17342. </doc>
  17343. </method>
  17344. <method name="readUnsignedShort" return="int"
  17345. abstract="false" native="false" synchronized="false"
  17346. static="true" final="false" visibility="public"
  17347. deprecated="not deprecated">
  17348. <param name="bytes" type="byte[]"/>
  17349. <param name="start" type="int"/>
  17350. <doc>
  17351. <![CDATA[Parse an unsigned short from a byte array.]]>
  17352. </doc>
  17353. </method>
  17354. <method name="readInt" return="int"
  17355. abstract="false" native="false" synchronized="false"
  17356. static="true" final="false" visibility="public"
  17357. deprecated="not deprecated">
  17358. <param name="bytes" type="byte[]"/>
  17359. <param name="start" type="int"/>
  17360. <doc>
  17361. <![CDATA[Parse an integer from a byte array.]]>
  17362. </doc>
  17363. </method>
  17364. <method name="readFloat" return="float"
  17365. abstract="false" native="false" synchronized="false"
  17366. static="true" final="false" visibility="public"
  17367. deprecated="not deprecated">
  17368. <param name="bytes" type="byte[]"/>
  17369. <param name="start" type="int"/>
  17370. <doc>
  17371. <![CDATA[Parse a float from a byte array.]]>
  17372. </doc>
  17373. </method>
  17374. <method name="readLong" return="long"
  17375. abstract="false" native="false" synchronized="false"
  17376. static="true" final="false" visibility="public"
  17377. deprecated="not deprecated">
  17378. <param name="bytes" type="byte[]"/>
  17379. <param name="start" type="int"/>
  17380. <doc>
  17381. <![CDATA[Parse a long from a byte array.]]>
  17382. </doc>
  17383. </method>
  17384. <method name="readDouble" return="double"
  17385. abstract="false" native="false" synchronized="false"
  17386. static="true" final="false" visibility="public"
  17387. deprecated="not deprecated">
  17388. <param name="bytes" type="byte[]"/>
  17389. <param name="start" type="int"/>
  17390. <doc>
  17391. <![CDATA[Parse a double from a byte array.]]>
  17392. </doc>
  17393. </method>
  17394. <method name="readVLong" return="long"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="true" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <param name="bytes" type="byte[]"/>
  17399. <param name="start" type="int"/>
  17400. <exception name="IOException" type="java.io.IOException"/>
  17401. <doc>
  17402. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  17403. @param bytes byte array with decode long
  17404. @param start starting index
  17405. @throws java.io.IOException
  17406. @return deserialized long]]>
  17407. </doc>
  17408. </method>
  17409. <method name="readVInt" return="int"
  17410. abstract="false" native="false" synchronized="false"
  17411. static="true" final="false" visibility="public"
  17412. deprecated="not deprecated">
  17413. <param name="bytes" type="byte[]"/>
  17414. <param name="start" type="int"/>
  17415. <exception name="IOException" type="java.io.IOException"/>
  17416. <doc>
  17417. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  17418. @param bytes byte array with the encoded integer
  17419. @param start start index
  17420. @throws java.io.IOException
  17421. @return deserialized integer]]>
  17422. </doc>
  17423. </method>
  17424. <doc>
  17425. <![CDATA[A Comparator for {@link WritableComparable}s.
  17426. <p>This base implemenation uses the natural ordering. To define alternate
  17427. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  17428. <p>One may optimize compare-intensive operations by overriding
  17429. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  17430. provided to assist in optimized implementations of this method.]]>
  17431. </doc>
  17432. </class>
  17433. <!-- end class org.apache.hadoop.io.WritableComparator -->
  17434. <!-- start class org.apache.hadoop.io.WritableFactories -->
  17435. <class name="WritableFactories" extends="java.lang.Object"
  17436. abstract="false"
  17437. static="false" final="false" visibility="public"
  17438. deprecated="not deprecated">
  17439. <method name="setFactory"
  17440. abstract="false" native="false" synchronized="true"
  17441. static="true" final="false" visibility="public"
  17442. deprecated="not deprecated">
  17443. <param name="c" type="java.lang.Class"/>
  17444. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  17445. <doc>
  17446. <![CDATA[Define a factory for a class.]]>
  17447. </doc>
  17448. </method>
  17449. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  17450. abstract="false" native="false" synchronized="true"
  17451. static="true" final="false" visibility="public"
  17452. deprecated="not deprecated">
  17453. <param name="c" type="java.lang.Class"/>
  17454. <doc>
  17455. <![CDATA[Define a factory for a class.]]>
  17456. </doc>
  17457. </method>
  17458. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  17459. abstract="false" native="false" synchronized="false"
  17460. static="true" final="false" visibility="public"
  17461. deprecated="not deprecated">
  17462. <param name="c" type="java.lang.Class"/>
  17463. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17464. <doc>
  17465. <![CDATA[Create a new instance of a class with a defined factory.]]>
  17466. </doc>
  17467. </method>
  17468. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  17469. abstract="false" native="false" synchronized="false"
  17470. static="true" final="false" visibility="public"
  17471. deprecated="not deprecated">
  17472. <param name="c" type="java.lang.Class"/>
  17473. <doc>
  17474. <![CDATA[Create a new instance of a class with a defined factory.]]>
  17475. </doc>
  17476. </method>
  17477. <doc>
  17478. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  17479. ObjectWritable} to be able to construct instances of non-public classes.]]>
  17480. </doc>
  17481. </class>
  17482. <!-- end class org.apache.hadoop.io.WritableFactories -->
  17483. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  17484. <interface name="WritableFactory" abstract="true"
  17485. static="false" final="false" visibility="public"
  17486. deprecated="not deprecated">
  17487. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  17488. abstract="false" native="false" synchronized="false"
  17489. static="false" final="false" visibility="public"
  17490. deprecated="not deprecated">
  17491. <doc>
  17492. <![CDATA[Return a new instance.]]>
  17493. </doc>
  17494. </method>
  17495. <doc>
  17496. <![CDATA[A factory for a class of Writable.
  17497. @see WritableFactories]]>
  17498. </doc>
  17499. </interface>
  17500. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  17501. <!-- start class org.apache.hadoop.io.WritableName -->
  17502. <class name="WritableName" extends="java.lang.Object"
  17503. abstract="false"
  17504. static="false" final="false" visibility="public"
  17505. deprecated="not deprecated">
  17506. <method name="setName"
  17507. abstract="false" native="false" synchronized="true"
  17508. static="true" final="false" visibility="public"
  17509. deprecated="not deprecated">
  17510. <param name="writableClass" type="java.lang.Class"/>
  17511. <param name="name" type="java.lang.String"/>
  17512. <doc>
  17513. <![CDATA[Set the name that a class should be known as to something other than the
  17514. class name.]]>
  17515. </doc>
  17516. </method>
  17517. <method name="addName"
  17518. abstract="false" native="false" synchronized="true"
  17519. static="true" final="false" visibility="public"
  17520. deprecated="not deprecated">
  17521. <param name="writableClass" type="java.lang.Class"/>
  17522. <param name="name" type="java.lang.String"/>
  17523. <doc>
  17524. <![CDATA[Add an alternate name for a class.]]>
  17525. </doc>
  17526. </method>
  17527. <method name="getName" return="java.lang.String"
  17528. abstract="false" native="false" synchronized="true"
  17529. static="true" final="false" visibility="public"
  17530. deprecated="not deprecated">
  17531. <param name="writableClass" type="java.lang.Class"/>
  17532. <doc>
  17533. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  17534. </doc>
  17535. </method>
  17536. <method name="getClass" return="java.lang.Class"
  17537. abstract="false" native="false" synchronized="true"
  17538. static="true" final="false" visibility="public"
  17539. deprecated="not deprecated">
  17540. <param name="name" type="java.lang.String"/>
  17541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17542. <exception name="IOException" type="java.io.IOException"/>
  17543. <doc>
  17544. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  17545. </doc>
  17546. </method>
  17547. <doc>
  17548. <![CDATA[Utility to permit renaming of Writable implementation classes without
  17549. invalidiating files that contain their class name.]]>
  17550. </doc>
  17551. </class>
  17552. <!-- end class org.apache.hadoop.io.WritableName -->
  17553. <!-- start class org.apache.hadoop.io.WritableUtils -->
  17554. <class name="WritableUtils" extends="java.lang.Object"
  17555. abstract="false"
  17556. static="false" final="true" visibility="public"
  17557. deprecated="not deprecated">
  17558. <constructor name="WritableUtils"
  17559. static="false" final="false" visibility="public"
  17560. deprecated="not deprecated">
  17561. </constructor>
  17562. <method name="readCompressedByteArray" return="byte[]"
  17563. abstract="false" native="false" synchronized="false"
  17564. static="true" final="false" visibility="public"
  17565. deprecated="not deprecated">
  17566. <param name="in" type="java.io.DataInput"/>
  17567. <exception name="IOException" type="java.io.IOException"/>
  17568. </method>
  17569. <method name="skipCompressedByteArray"
  17570. abstract="false" native="false" synchronized="false"
  17571. static="true" final="false" visibility="public"
  17572. deprecated="not deprecated">
  17573. <param name="in" type="java.io.DataInput"/>
  17574. <exception name="IOException" type="java.io.IOException"/>
  17575. </method>
  17576. <method name="writeCompressedByteArray" return="int"
  17577. abstract="false" native="false" synchronized="false"
  17578. static="true" final="false" visibility="public"
  17579. deprecated="not deprecated">
  17580. <param name="out" type="java.io.DataOutput"/>
  17581. <param name="bytes" type="byte[]"/>
  17582. <exception name="IOException" type="java.io.IOException"/>
  17583. </method>
  17584. <method name="readCompressedString" return="java.lang.String"
  17585. abstract="false" native="false" synchronized="false"
  17586. static="true" final="false" visibility="public"
  17587. deprecated="not deprecated">
  17588. <param name="in" type="java.io.DataInput"/>
  17589. <exception name="IOException" type="java.io.IOException"/>
  17590. </method>
  17591. <method name="writeCompressedString" return="int"
  17592. abstract="false" native="false" synchronized="false"
  17593. static="true" final="false" visibility="public"
  17594. deprecated="not deprecated">
  17595. <param name="out" type="java.io.DataOutput"/>
  17596. <param name="s" type="java.lang.String"/>
  17597. <exception name="IOException" type="java.io.IOException"/>
  17598. </method>
  17599. <method name="writeString"
  17600. abstract="false" native="false" synchronized="false"
  17601. static="true" final="false" visibility="public"
  17602. deprecated="not deprecated">
  17603. <param name="out" type="java.io.DataOutput"/>
  17604. <param name="s" type="java.lang.String"/>
  17605. <exception name="IOException" type="java.io.IOException"/>
  17606. </method>
  17607. <method name="readString" return="java.lang.String"
  17608. abstract="false" native="false" synchronized="false"
  17609. static="true" final="false" visibility="public"
  17610. deprecated="not deprecated">
  17611. <param name="in" type="java.io.DataInput"/>
  17612. <exception name="IOException" type="java.io.IOException"/>
  17613. </method>
  17614. <method name="writeStringArray"
  17615. abstract="false" native="false" synchronized="false"
  17616. static="true" final="false" visibility="public"
  17617. deprecated="not deprecated">
  17618. <param name="out" type="java.io.DataOutput"/>
  17619. <param name="s" type="java.lang.String[]"/>
  17620. <exception name="IOException" type="java.io.IOException"/>
  17621. </method>
  17622. <method name="writeCompressedStringArray"
  17623. abstract="false" native="false" synchronized="false"
  17624. static="true" final="false" visibility="public"
  17625. deprecated="not deprecated">
  17626. <param name="out" type="java.io.DataOutput"/>
  17627. <param name="s" type="java.lang.String[]"/>
  17628. <exception name="IOException" type="java.io.IOException"/>
  17629. </method>
  17630. <method name="readStringArray" return="java.lang.String[]"
  17631. abstract="false" native="false" synchronized="false"
  17632. static="true" final="false" visibility="public"
  17633. deprecated="not deprecated">
  17634. <param name="in" type="java.io.DataInput"/>
  17635. <exception name="IOException" type="java.io.IOException"/>
  17636. </method>
  17637. <method name="readCompressedStringArray" return="java.lang.String[]"
  17638. abstract="false" native="false" synchronized="false"
  17639. static="true" final="false" visibility="public"
  17640. deprecated="not deprecated">
  17641. <param name="in" type="java.io.DataInput"/>
  17642. <exception name="IOException" type="java.io.IOException"/>
  17643. </method>
  17644. <method name="displayByteArray"
  17645. abstract="false" native="false" synchronized="false"
  17646. static="true" final="false" visibility="public"
  17647. deprecated="not deprecated">
  17648. <param name="record" type="byte[]"/>
  17649. </method>
  17650. <method name="clone" return="org.apache.hadoop.io.Writable"
  17651. abstract="false" native="false" synchronized="false"
  17652. static="true" final="false" visibility="public"
  17653. deprecated="not deprecated">
  17654. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  17655. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17656. <doc>
  17657. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  17658. @param orig The object to copy
  17659. @return The copied object]]>
  17660. </doc>
  17661. </method>
  17662. <method name="cloneInto"
  17663. abstract="false" native="false" synchronized="false"
  17664. static="true" final="false" visibility="public"
  17665. deprecated="not deprecated">
  17666. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  17667. <param name="src" type="org.apache.hadoop.io.Writable"/>
  17668. <exception name="IOException" type="java.io.IOException"/>
  17669. <doc>
  17670. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  17671. @param dst the object to copy from
  17672. @param src the object to copy into, which is destroyed
  17673. @throws IOException]]>
  17674. </doc>
  17675. </method>
  17676. <method name="writeVInt"
  17677. abstract="false" native="false" synchronized="false"
  17678. static="true" final="false" visibility="public"
  17679. deprecated="not deprecated">
  17680. <param name="stream" type="java.io.DataOutput"/>
  17681. <param name="i" type="int"/>
  17682. <exception name="IOException" type="java.io.IOException"/>
  17683. <doc>
  17684. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  17685. For -120 <= i <= 127, only one byte is used with the actual value.
  17686. For other values of i, the first byte value indicates whether the
  17687. integer is positive or negative, and the number of bytes that follow.
  17688. If the first byte value v is between -121 and -124, the following integer
  17689. is positive, with number of bytes that follow are -(v+120).
  17690. If the first byte value v is between -125 and -128, the following integer
  17691. is negative, with number of bytes that follow are -(v+124). Bytes are
  17692. stored in the high-non-zero-byte-first order.
  17693. @param stream Binary output stream
  17694. @param i Integer to be serialized
  17695. @throws java.io.IOException]]>
  17696. </doc>
  17697. </method>
  17698. <method name="writeVLong"
  17699. abstract="false" native="false" synchronized="false"
  17700. static="true" final="false" visibility="public"
  17701. deprecated="not deprecated">
  17702. <param name="stream" type="java.io.DataOutput"/>
  17703. <param name="i" type="long"/>
  17704. <exception name="IOException" type="java.io.IOException"/>
  17705. <doc>
  17706. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  17707. For -112 <= i <= 127, only one byte is used with the actual value.
  17708. For other values of i, the first byte value indicates whether the
  17709. long is positive or negative, and the number of bytes that follow.
  17710. If the first byte value v is between -113 and -120, the following long
  17711. is positive, with number of bytes that follow are -(v+112).
  17712. If the first byte value v is between -121 and -128, the following long
  17713. is negative, with number of bytes that follow are -(v+120). Bytes are
  17714. stored in the high-non-zero-byte-first order.
  17715. @param stream Binary output stream
  17716. @param i Long to be serialized
  17717. @throws java.io.IOException]]>
  17718. </doc>
  17719. </method>
  17720. <method name="readVLong" return="long"
  17721. abstract="false" native="false" synchronized="false"
  17722. static="true" final="false" visibility="public"
  17723. deprecated="not deprecated">
  17724. <param name="stream" type="java.io.DataInput"/>
  17725. <exception name="IOException" type="java.io.IOException"/>
  17726. <doc>
  17727. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  17728. @param stream Binary input stream
  17729. @throws java.io.IOException
  17730. @return deserialized long from stream.]]>
  17731. </doc>
  17732. </method>
  17733. <method name="readVInt" return="int"
  17734. abstract="false" native="false" synchronized="false"
  17735. static="true" final="false" visibility="public"
  17736. deprecated="not deprecated">
  17737. <param name="stream" type="java.io.DataInput"/>
  17738. <exception name="IOException" type="java.io.IOException"/>
  17739. <doc>
  17740. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  17741. @param stream Binary input stream
  17742. @throws java.io.IOException
  17743. @return deserialized integer from stream.]]>
  17744. </doc>
  17745. </method>
  17746. <method name="isNegativeVInt" return="boolean"
  17747. abstract="false" native="false" synchronized="false"
  17748. static="true" final="false" visibility="public"
  17749. deprecated="not deprecated">
  17750. <param name="value" type="byte"/>
  17751. <doc>
  17752. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  17753. @param value the first byte
  17754. @return is the value negative]]>
  17755. </doc>
  17756. </method>
  17757. <method name="decodeVIntSize" return="int"
  17758. abstract="false" native="false" synchronized="false"
  17759. static="true" final="false" visibility="public"
  17760. deprecated="not deprecated">
  17761. <param name="value" type="byte"/>
  17762. <doc>
  17763. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  17764. @param value the first byte of the vint/vlong
  17765. @return the total number of bytes (1 to 9)]]>
  17766. </doc>
  17767. </method>
  17768. <method name="getVIntSize" return="int"
  17769. abstract="false" native="false" synchronized="false"
  17770. static="true" final="false" visibility="public"
  17771. deprecated="not deprecated">
  17772. <param name="i" type="long"/>
  17773. <doc>
  17774. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  17775. @return the encoded length]]>
  17776. </doc>
  17777. </method>
  17778. <method name="readEnum" return="T extends java.lang.Enum&lt;T&gt;"
  17779. abstract="false" native="false" synchronized="false"
  17780. static="true" final="false" visibility="public"
  17781. deprecated="not deprecated">
  17782. <param name="in" type="java.io.DataInput"/>
  17783. <param name="enumType" type="java.lang.Class&lt;T&gt;"/>
  17784. <exception name="IOException" type="java.io.IOException"/>
  17785. <doc>
  17786. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  17787. using String values.
  17788. @param <T> Enum type
  17789. @param in DataInput to read from
  17790. @param enumType Class type of Enum
  17791. @return Enum represented by String read from DataInput
  17792. @throws IOException]]>
  17793. </doc>
  17794. </method>
  17795. <method name="writeEnum"
  17796. abstract="false" native="false" synchronized="false"
  17797. static="true" final="false" visibility="public"
  17798. deprecated="not deprecated">
  17799. <param name="out" type="java.io.DataOutput"/>
  17800. <param name="enumVal" type="java.lang.Enum"/>
  17801. <exception name="IOException" type="java.io.IOException"/>
  17802. <doc>
  17803. <![CDATA[writes String value of enum to DataOutput.
  17804. @param out Dataoutput stream
  17805. @param enumVal enum value
  17806. @throws IOException]]>
  17807. </doc>
  17808. </method>
  17809. <method name="skipFully"
  17810. abstract="false" native="false" synchronized="false"
  17811. static="true" final="false" visibility="public"
  17812. deprecated="not deprecated">
  17813. <param name="in" type="java.io.DataInput"/>
  17814. <param name="len" type="int"/>
  17815. <exception name="IOException" type="java.io.IOException"/>
  17816. <doc>
  17817. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  17818. @param in input stream
  17819. @param len number of bytes to skip
  17820. @throws IOException when skipped less number of bytes]]>
  17821. </doc>
  17822. </method>
  17823. </class>
  17824. <!-- end class org.apache.hadoop.io.WritableUtils -->
  17825. <doc>
  17826. <![CDATA[Generic i/o code for use when reading and writing data to the network,
  17827. to databases, and to files.]]>
  17828. </doc>
  17829. </package>
  17830. <package name="org.apache.hadoop.io.compress">
  17831. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  17832. <interface name="CompressionCodec" abstract="true"
  17833. static="false" final="false" visibility="public"
  17834. deprecated="not deprecated">
  17835. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17836. abstract="false" native="false" synchronized="false"
  17837. static="false" final="false" visibility="public"
  17838. deprecated="not deprecated">
  17839. <param name="out" type="java.io.OutputStream"/>
  17840. <exception name="IOException" type="java.io.IOException"/>
  17841. <doc>
  17842. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17843. {@link OutputStream}.
  17844. @param out the location for the final output stream
  17845. @return a stream the user can write uncompressed data to have it compressed
  17846. @throws IOException]]>
  17847. </doc>
  17848. </method>
  17849. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  17850. abstract="false" native="false" synchronized="false"
  17851. static="false" final="false" visibility="public"
  17852. deprecated="not deprecated">
  17853. <param name="out" type="java.io.OutputStream"/>
  17854. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  17855. <exception name="IOException" type="java.io.IOException"/>
  17856. <doc>
  17857. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  17858. {@link OutputStream} with the given {@link Compressor}.
  17859. @param out the location for the final output stream
  17860. @param compressor compressor to use
  17861. @return a stream the user can write uncompressed data to have it compressed
  17862. @throws IOException]]>
  17863. </doc>
  17864. </method>
  17865. <method name="getCompressorType" return="java.lang.Class"
  17866. abstract="false" native="false" synchronized="false"
  17867. static="false" final="false" visibility="public"
  17868. deprecated="not deprecated">
  17869. <doc>
  17870. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  17871. @return the type of compressor needed by this codec.]]>
  17872. </doc>
  17873. </method>
  17874. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  17875. abstract="false" native="false" synchronized="false"
  17876. static="false" final="false" visibility="public"
  17877. deprecated="not deprecated">
  17878. <doc>
  17879. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  17880. @return a new compressor for use by this codec]]>
  17881. </doc>
  17882. </method>
  17883. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17884. abstract="false" native="false" synchronized="false"
  17885. static="false" final="false" visibility="public"
  17886. deprecated="not deprecated">
  17887. <param name="in" type="java.io.InputStream"/>
  17888. <exception name="IOException" type="java.io.IOException"/>
  17889. <doc>
  17890. <![CDATA[Create a stream decompressor that will read from the given input stream.
  17891. @param in the stream to read compressed bytes from
  17892. @return a stream to read uncompressed bytes from
  17893. @throws IOException]]>
  17894. </doc>
  17895. </method>
  17896. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  17897. abstract="false" native="false" synchronized="false"
  17898. static="false" final="false" visibility="public"
  17899. deprecated="not deprecated">
  17900. <param name="in" type="java.io.InputStream"/>
  17901. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  17902. <exception name="IOException" type="java.io.IOException"/>
  17903. <doc>
  17904. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  17905. {@link InputStream} with the given {@link Decompressor}.
  17906. @param in the stream to read compressed bytes from
  17907. @param decompressor decompressor to use
  17908. @return a stream to read uncompressed bytes from
  17909. @throws IOException]]>
  17910. </doc>
  17911. </method>
  17912. <method name="getDecompressorType" return="java.lang.Class"
  17913. abstract="false" native="false" synchronized="false"
  17914. static="false" final="false" visibility="public"
  17915. deprecated="not deprecated">
  17916. <doc>
  17917. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  17918. @return the type of decompressor needed by this codec.]]>
  17919. </doc>
  17920. </method>
  17921. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  17922. abstract="false" native="false" synchronized="false"
  17923. static="false" final="false" visibility="public"
  17924. deprecated="not deprecated">
  17925. <doc>
  17926. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  17927. @return a new decompressor for use by this codec]]>
  17928. </doc>
  17929. </method>
  17930. <method name="getDefaultExtension" return="java.lang.String"
  17931. abstract="false" native="false" synchronized="false"
  17932. static="false" final="false" visibility="public"
  17933. deprecated="not deprecated">
  17934. <doc>
  17935. <![CDATA[Get the default filename extension for this kind of compression.
  17936. @return the extension including the '.']]>
  17937. </doc>
  17938. </method>
  17939. <doc>
  17940. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  17941. </doc>
  17942. </interface>
  17943. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  17944. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  17945. <class name="CompressionCodecFactory" extends="java.lang.Object"
  17946. abstract="false"
  17947. static="false" final="false" visibility="public"
  17948. deprecated="not deprecated">
  17949. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  17950. static="false" final="false" visibility="public"
  17951. deprecated="not deprecated">
  17952. <doc>
  17953. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  17954. and register them. Defaults to gzip and zip.]]>
  17955. </doc>
  17956. </constructor>
  17957. <method name="toString" return="java.lang.String"
  17958. abstract="false" native="false" synchronized="false"
  17959. static="false" final="false" visibility="public"
  17960. deprecated="not deprecated">
  17961. <doc>
  17962. <![CDATA[Print the extension map out as a string.]]>
  17963. </doc>
  17964. </method>
  17965. <method name="getCodecClasses" return="java.util.List&lt;java.lang.Class&gt;"
  17966. abstract="false" native="false" synchronized="false"
  17967. static="true" final="false" visibility="public"
  17968. deprecated="not deprecated">
  17969. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17970. <doc>
  17971. <![CDATA[Get the list of codecs listed in the configuration
  17972. @param conf the configuration to look in
  17973. @return a list of the Configuration classes or null if the attribute
  17974. was not set]]>
  17975. </doc>
  17976. </method>
  17977. <method name="setCodecClasses"
  17978. abstract="false" native="false" synchronized="false"
  17979. static="true" final="false" visibility="public"
  17980. deprecated="not deprecated">
  17981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  17982. <param name="classes" type="java.util.List&lt;java.lang.Class&gt;"/>
  17983. <doc>
  17984. <![CDATA[Sets a list of codec classes in the configuration.
  17985. @param conf the configuration to modify
  17986. @param classes the list of classes to set]]>
  17987. </doc>
  17988. </method>
  17989. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  17990. abstract="false" native="false" synchronized="false"
  17991. static="false" final="false" visibility="public"
  17992. deprecated="not deprecated">
  17993. <param name="file" type="org.apache.hadoop.fs.Path"/>
  17994. <doc>
  17995. <![CDATA[Find the relevant compression codec for the given file based on its
  17996. filename suffix.
  17997. @param file the filename to check
  17998. @return the codec object]]>
  17999. </doc>
  18000. </method>
  18001. <method name="removeSuffix" return="java.lang.String"
  18002. abstract="false" native="false" synchronized="false"
  18003. static="true" final="false" visibility="public"
  18004. deprecated="not deprecated">
  18005. <param name="filename" type="java.lang.String"/>
  18006. <param name="suffix" type="java.lang.String"/>
  18007. <doc>
  18008. <![CDATA[Removes a suffix from a filename, if it has it.
  18009. @param filename the filename to strip
  18010. @param suffix the suffix to remove
  18011. @return the shortened filename]]>
  18012. </doc>
  18013. </method>
  18014. <method name="main"
  18015. abstract="false" native="false" synchronized="false"
  18016. static="true" final="false" visibility="public"
  18017. deprecated="not deprecated">
  18018. <param name="args" type="java.lang.String[]"/>
  18019. <exception name="Exception" type="java.lang.Exception"/>
  18020. <doc>
  18021. <![CDATA[A little test program.
  18022. @param args]]>
  18023. </doc>
  18024. </method>
  18025. <field name="LOG" type="org.apache.commons.logging.Log"
  18026. transient="false" volatile="false"
  18027. static="true" final="true" visibility="public"
  18028. deprecated="not deprecated">
  18029. </field>
  18030. <doc>
  18031. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  18032. </doc>
  18033. </class>
  18034. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  18035. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  18036. <class name="CompressionInputStream" extends="java.io.InputStream"
  18037. abstract="true"
  18038. static="false" final="false" visibility="public"
  18039. deprecated="not deprecated">
  18040. <constructor name="CompressionInputStream" type="java.io.InputStream"
  18041. static="false" final="false" visibility="protected"
  18042. deprecated="not deprecated">
  18043. <doc>
  18044. <![CDATA[Create a compression input stream that reads
  18045. the decompressed bytes from the given stream.
  18046. @param in The input stream to be compressed.]]>
  18047. </doc>
  18048. </constructor>
  18049. <method name="close"
  18050. abstract="false" native="false" synchronized="false"
  18051. static="false" final="false" visibility="public"
  18052. deprecated="not deprecated">
  18053. <exception name="IOException" type="java.io.IOException"/>
  18054. </method>
  18055. <method name="read" return="int"
  18056. abstract="true" native="false" synchronized="false"
  18057. static="false" final="false" visibility="public"
  18058. deprecated="not deprecated">
  18059. <param name="b" type="byte[]"/>
  18060. <param name="off" type="int"/>
  18061. <param name="len" type="int"/>
  18062. <exception name="IOException" type="java.io.IOException"/>
  18063. <doc>
  18064. <![CDATA[Read bytes from the stream.
  18065. Made abstract to prevent leakage to underlying stream.]]>
  18066. </doc>
  18067. </method>
  18068. <method name="resetState"
  18069. abstract="true" native="false" synchronized="false"
  18070. static="false" final="false" visibility="public"
  18071. deprecated="not deprecated">
  18072. <exception name="IOException" type="java.io.IOException"/>
  18073. <doc>
  18074. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  18075. as the underlying stream may have been repositioned.]]>
  18076. </doc>
  18077. </method>
  18078. <field name="in" type="java.io.InputStream"
  18079. transient="false" volatile="false"
  18080. static="false" final="true" visibility="protected"
  18081. deprecated="not deprecated">
  18082. <doc>
  18083. <![CDATA[The input stream to be compressed.]]>
  18084. </doc>
  18085. </field>
  18086. <doc>
  18087. <![CDATA[A compression input stream.
  18088. <p>Implementations are assumed to be buffered. This permits clients to
  18089. reposition the underlying input stream then call {@link #resetState()},
  18090. without having to also synchronize client buffers.]]>
  18091. </doc>
  18092. </class>
  18093. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  18094. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  18095. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  18096. abstract="true"
  18097. static="false" final="false" visibility="public"
  18098. deprecated="not deprecated">
  18099. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  18100. static="false" final="false" visibility="protected"
  18101. deprecated="not deprecated">
  18102. <doc>
  18103. <![CDATA[Create a compression output stream that writes
  18104. the compressed bytes to the given stream.
  18105. @param out]]>
  18106. </doc>
  18107. </constructor>
  18108. <method name="close"
  18109. abstract="false" native="false" synchronized="false"
  18110. static="false" final="false" visibility="public"
  18111. deprecated="not deprecated">
  18112. <exception name="IOException" type="java.io.IOException"/>
  18113. </method>
  18114. <method name="flush"
  18115. abstract="false" native="false" synchronized="false"
  18116. static="false" final="false" visibility="public"
  18117. deprecated="not deprecated">
  18118. <exception name="IOException" type="java.io.IOException"/>
  18119. </method>
  18120. <method name="write"
  18121. abstract="true" native="false" synchronized="false"
  18122. static="false" final="false" visibility="public"
  18123. deprecated="not deprecated">
  18124. <param name="b" type="byte[]"/>
  18125. <param name="off" type="int"/>
  18126. <param name="len" type="int"/>
  18127. <exception name="IOException" type="java.io.IOException"/>
  18128. <doc>
  18129. <![CDATA[Write compressed bytes to the stream.
  18130. Made abstract to prevent leakage to underlying stream.]]>
  18131. </doc>
  18132. </method>
  18133. <method name="finish"
  18134. abstract="true" native="false" synchronized="false"
  18135. static="false" final="false" visibility="public"
  18136. deprecated="not deprecated">
  18137. <exception name="IOException" type="java.io.IOException"/>
  18138. <doc>
  18139. <![CDATA[Finishes writing compressed data to the output stream
  18140. without closing the underlying stream.]]>
  18141. </doc>
  18142. </method>
  18143. <method name="resetState"
  18144. abstract="true" native="false" synchronized="false"
  18145. static="false" final="false" visibility="public"
  18146. deprecated="not deprecated">
  18147. <exception name="IOException" type="java.io.IOException"/>
  18148. <doc>
  18149. <![CDATA[Reset the compression to the initial state.
  18150. Does not reset the underlying stream.]]>
  18151. </doc>
  18152. </method>
  18153. <field name="out" type="java.io.OutputStream"
  18154. transient="false" volatile="false"
  18155. static="false" final="true" visibility="protected"
  18156. deprecated="not deprecated">
  18157. <doc>
  18158. <![CDATA[The output stream to be compressed.]]>
  18159. </doc>
  18160. </field>
  18161. <doc>
  18162. <![CDATA[A compression output stream.]]>
  18163. </doc>
  18164. </class>
  18165. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  18166. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  18167. <interface name="Compressor" abstract="true"
  18168. static="false" final="false" visibility="public"
  18169. deprecated="not deprecated">
  18170. <method name="setInput"
  18171. abstract="false" native="false" synchronized="false"
  18172. static="false" final="false" visibility="public"
  18173. deprecated="not deprecated">
  18174. <param name="b" type="byte[]"/>
  18175. <param name="off" type="int"/>
  18176. <param name="len" type="int"/>
  18177. <doc>
  18178. <![CDATA[Sets input data for compression.
  18179. This should be called whenever #needsInput() returns
  18180. <code>true</code> indicating that more input data is required.
  18181. @param b Input data
  18182. @param off Start offset
  18183. @param len Length]]>
  18184. </doc>
  18185. </method>
  18186. <method name="needsInput" return="boolean"
  18187. abstract="false" native="false" synchronized="false"
  18188. static="false" final="false" visibility="public"
  18189. deprecated="not deprecated">
  18190. <doc>
  18191. <![CDATA[Returns true if the input data buffer is empty and
  18192. #setInput() should be called to provide more input.
  18193. @return <code>true</code> if the input data buffer is empty and
  18194. #setInput() should be called in order to provide more input.]]>
  18195. </doc>
  18196. </method>
  18197. <method name="setDictionary"
  18198. abstract="false" native="false" synchronized="false"
  18199. static="false" final="false" visibility="public"
  18200. deprecated="not deprecated">
  18201. <param name="b" type="byte[]"/>
  18202. <param name="off" type="int"/>
  18203. <param name="len" type="int"/>
  18204. <doc>
  18205. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  18206. is used when the history buffer can be predetermined.
  18207. @param b Dictionary data bytes
  18208. @param off Start offset
  18209. @param len Length]]>
  18210. </doc>
  18211. </method>
  18212. <method name="getBytesRead" return="long"
  18213. abstract="false" native="false" synchronized="false"
  18214. static="false" final="false" visibility="public"
  18215. deprecated="not deprecated">
  18216. <doc>
  18217. <![CDATA[Return number of uncompressed bytes input so far.]]>
  18218. </doc>
  18219. </method>
  18220. <method name="getBytesWritten" return="long"
  18221. abstract="false" native="false" synchronized="false"
  18222. static="false" final="false" visibility="public"
  18223. deprecated="not deprecated">
  18224. <doc>
  18225. <![CDATA[Return number of compressed bytes output so far.]]>
  18226. </doc>
  18227. </method>
  18228. <method name="finish"
  18229. abstract="false" native="false" synchronized="false"
  18230. static="false" final="false" visibility="public"
  18231. deprecated="not deprecated">
  18232. <doc>
  18233. <![CDATA[When called, indicates that compression should end
  18234. with the current contents of the input buffer.]]>
  18235. </doc>
  18236. </method>
  18237. <method name="finished" return="boolean"
  18238. abstract="false" native="false" synchronized="false"
  18239. static="false" final="false" visibility="public"
  18240. deprecated="not deprecated">
  18241. <doc>
  18242. <![CDATA[Returns true if the end of the compressed
  18243. data output stream has been reached.
  18244. @return <code>true</code> if the end of the compressed
  18245. data output stream has been reached.]]>
  18246. </doc>
  18247. </method>
  18248. <method name="compress" return="int"
  18249. abstract="false" native="false" synchronized="false"
  18250. static="false" final="false" visibility="public"
  18251. deprecated="not deprecated">
  18252. <param name="b" type="byte[]"/>
  18253. <param name="off" type="int"/>
  18254. <param name="len" type="int"/>
  18255. <exception name="IOException" type="java.io.IOException"/>
  18256. <doc>
  18257. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  18258. of bytes of compressed data. A return value of 0 indicates that
  18259. needsInput() should be called in order to determine if more input
  18260. data is required.
  18261. @param b Buffer for the compressed data
  18262. @param off Start offset of the data
  18263. @param len Size of the buffer
  18264. @return The actual number of bytes of compressed data.]]>
  18265. </doc>
  18266. </method>
  18267. <method name="reset"
  18268. abstract="false" native="false" synchronized="false"
  18269. static="false" final="false" visibility="public"
  18270. deprecated="not deprecated">
  18271. <doc>
  18272. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  18273. </doc>
  18274. </method>
  18275. <method name="end"
  18276. abstract="false" native="false" synchronized="false"
  18277. static="false" final="false" visibility="public"
  18278. deprecated="not deprecated">
  18279. <doc>
  18280. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  18281. </doc>
  18282. </method>
  18283. <doc>
  18284. <![CDATA[Specification of a stream-based 'compressor' which can be
  18285. plugged into a {@link CompressionOutputStream} to compress data.
  18286. This is modelled after {@link java.util.zip.Deflater}]]>
  18287. </doc>
  18288. </interface>
  18289. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  18290. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  18291. <interface name="Decompressor" abstract="true"
  18292. static="false" final="false" visibility="public"
  18293. deprecated="not deprecated">
  18294. <method name="setInput"
  18295. abstract="false" native="false" synchronized="false"
  18296. static="false" final="false" visibility="public"
  18297. deprecated="not deprecated">
  18298. <param name="b" type="byte[]"/>
  18299. <param name="off" type="int"/>
  18300. <param name="len" type="int"/>
  18301. <doc>
  18302. <![CDATA[Sets input data for decompression.
  18303. This should be called whenever #needsInput() returns
  18304. <code>true</code> indicating that more input data is required.
  18305. @param b Input data
  18306. @param off Start offset
  18307. @param len Length]]>
  18308. </doc>
  18309. </method>
  18310. <method name="needsInput" return="boolean"
  18311. abstract="false" native="false" synchronized="false"
  18312. static="false" final="false" visibility="public"
  18313. deprecated="not deprecated">
  18314. <doc>
  18315. <![CDATA[Returns true if the input data buffer is empty and
  18316. #setInput() should be called to provide more input.
  18317. @return <code>true</code> if the input data buffer is empty and
  18318. #setInput() should be called in order to provide more input.]]>
  18319. </doc>
  18320. </method>
  18321. <method name="setDictionary"
  18322. abstract="false" native="false" synchronized="false"
  18323. static="false" final="false" visibility="public"
  18324. deprecated="not deprecated">
  18325. <param name="b" type="byte[]"/>
  18326. <param name="off" type="int"/>
  18327. <param name="len" type="int"/>
  18328. <doc>
  18329. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  18330. is used when the history buffer can be predetermined.
  18331. @param b Dictionary data bytes
  18332. @param off Start offset
  18333. @param len Length]]>
  18334. </doc>
  18335. </method>
  18336. <method name="needsDictionary" return="boolean"
  18337. abstract="false" native="false" synchronized="false"
  18338. static="false" final="false" visibility="public"
  18339. deprecated="not deprecated">
  18340. <doc>
  18341. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  18342. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  18343. </doc>
  18344. </method>
  18345. <method name="finished" return="boolean"
  18346. abstract="false" native="false" synchronized="false"
  18347. static="false" final="false" visibility="public"
  18348. deprecated="not deprecated">
  18349. <doc>
  18350. <![CDATA[Returns true if the end of the compressed
  18351. data output stream has been reached.
  18352. @return <code>true</code> if the end of the compressed
  18353. data output stream has been reached.]]>
  18354. </doc>
  18355. </method>
  18356. <method name="decompress" return="int"
  18357. abstract="false" native="false" synchronized="false"
  18358. static="false" final="false" visibility="public"
  18359. deprecated="not deprecated">
  18360. <param name="b" type="byte[]"/>
  18361. <param name="off" type="int"/>
  18362. <param name="len" type="int"/>
  18363. <exception name="IOException" type="java.io.IOException"/>
  18364. <doc>
  18365. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  18366. of bytes of uncompressed data. A return value of 0 indicates that
  18367. #needsInput() should be called in order to determine if more input
  18368. data is required.
  18369. @param b Buffer for the compressed data
  18370. @param off Start offset of the data
  18371. @param len Size of the buffer
  18372. @return The actual number of bytes of compressed data.
  18373. @throws IOException]]>
  18374. </doc>
  18375. </method>
  18376. <method name="reset"
  18377. abstract="false" native="false" synchronized="false"
  18378. static="false" final="false" visibility="public"
  18379. deprecated="not deprecated">
  18380. <doc>
  18381. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  18382. </doc>
  18383. </method>
  18384. <method name="end"
  18385. abstract="false" native="false" synchronized="false"
  18386. static="false" final="false" visibility="public"
  18387. deprecated="not deprecated">
  18388. <doc>
  18389. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  18390. </doc>
  18391. </method>
  18392. <doc>
  18393. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  18394. plugged into a {@link CompressionInputStream} to compress data.
  18395. This is modelled after {@link java.util.zip.Inflater}]]>
  18396. </doc>
  18397. </interface>
  18398. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  18399. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  18400. <class name="DefaultCodec" extends="java.lang.Object"
  18401. abstract="false"
  18402. static="false" final="false" visibility="public"
  18403. deprecated="not deprecated">
  18404. <implements name="org.apache.hadoop.conf.Configurable"/>
  18405. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  18406. <constructor name="DefaultCodec"
  18407. static="false" final="false" visibility="public"
  18408. deprecated="not deprecated">
  18409. </constructor>
  18410. <method name="setConf"
  18411. abstract="false" native="false" synchronized="false"
  18412. static="false" final="false" visibility="public"
  18413. deprecated="not deprecated">
  18414. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18415. </method>
  18416. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18417. abstract="false" native="false" synchronized="false"
  18418. static="false" final="false" visibility="public"
  18419. deprecated="not deprecated">
  18420. </method>
  18421. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18422. abstract="false" native="false" synchronized="false"
  18423. static="false" final="false" visibility="public"
  18424. deprecated="not deprecated">
  18425. <param name="out" type="java.io.OutputStream"/>
  18426. <exception name="IOException" type="java.io.IOException"/>
  18427. </method>
  18428. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18429. abstract="false" native="false" synchronized="false"
  18430. static="false" final="false" visibility="public"
  18431. deprecated="not deprecated">
  18432. <param name="out" type="java.io.OutputStream"/>
  18433. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  18434. <exception name="IOException" type="java.io.IOException"/>
  18435. </method>
  18436. <method name="getCompressorType" return="java.lang.Class"
  18437. abstract="false" native="false" synchronized="false"
  18438. static="false" final="false" visibility="public"
  18439. deprecated="not deprecated">
  18440. </method>
  18441. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18442. abstract="false" native="false" synchronized="false"
  18443. static="false" final="false" visibility="public"
  18444. deprecated="not deprecated">
  18445. </method>
  18446. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18447. abstract="false" native="false" synchronized="false"
  18448. static="false" final="false" visibility="public"
  18449. deprecated="not deprecated">
  18450. <param name="in" type="java.io.InputStream"/>
  18451. <exception name="IOException" type="java.io.IOException"/>
  18452. </method>
  18453. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18454. abstract="false" native="false" synchronized="false"
  18455. static="false" final="false" visibility="public"
  18456. deprecated="not deprecated">
  18457. <param name="in" type="java.io.InputStream"/>
  18458. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  18459. <exception name="IOException" type="java.io.IOException"/>
  18460. </method>
  18461. <method name="getDecompressorType" return="java.lang.Class"
  18462. abstract="false" native="false" synchronized="false"
  18463. static="false" final="false" visibility="public"
  18464. deprecated="not deprecated">
  18465. </method>
  18466. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18467. abstract="false" native="false" synchronized="false"
  18468. static="false" final="false" visibility="public"
  18469. deprecated="not deprecated">
  18470. </method>
  18471. <method name="getDefaultExtension" return="java.lang.String"
  18472. abstract="false" native="false" synchronized="false"
  18473. static="false" final="false" visibility="public"
  18474. deprecated="not deprecated">
  18475. </method>
  18476. </class>
  18477. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  18478. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  18479. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  18480. abstract="false"
  18481. static="false" final="false" visibility="public"
  18482. deprecated="not deprecated">
  18483. <constructor name="GzipCodec"
  18484. static="false" final="false" visibility="public"
  18485. deprecated="not deprecated">
  18486. </constructor>
  18487. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18488. abstract="false" native="false" synchronized="false"
  18489. static="false" final="false" visibility="public"
  18490. deprecated="not deprecated">
  18491. <param name="out" type="java.io.OutputStream"/>
  18492. <exception name="IOException" type="java.io.IOException"/>
  18493. </method>
  18494. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18495. abstract="false" native="false" synchronized="false"
  18496. static="false" final="false" visibility="public"
  18497. deprecated="not deprecated">
  18498. <param name="out" type="java.io.OutputStream"/>
  18499. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  18500. <exception name="IOException" type="java.io.IOException"/>
  18501. </method>
  18502. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18503. abstract="false" native="false" synchronized="false"
  18504. static="false" final="false" visibility="public"
  18505. deprecated="not deprecated">
  18506. </method>
  18507. <method name="getCompressorType" return="java.lang.Class"
  18508. abstract="false" native="false" synchronized="false"
  18509. static="false" final="false" visibility="public"
  18510. deprecated="not deprecated">
  18511. </method>
  18512. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18513. abstract="false" native="false" synchronized="false"
  18514. static="false" final="false" visibility="public"
  18515. deprecated="not deprecated">
  18516. <param name="in" type="java.io.InputStream"/>
  18517. <exception name="IOException" type="java.io.IOException"/>
  18518. </method>
  18519. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18520. abstract="false" native="false" synchronized="false"
  18521. static="false" final="false" visibility="public"
  18522. deprecated="not deprecated">
  18523. <param name="in" type="java.io.InputStream"/>
  18524. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  18525. <exception name="IOException" type="java.io.IOException"/>
  18526. </method>
  18527. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18528. abstract="false" native="false" synchronized="false"
  18529. static="false" final="false" visibility="public"
  18530. deprecated="not deprecated">
  18531. </method>
  18532. <method name="getDecompressorType" return="java.lang.Class"
  18533. abstract="false" native="false" synchronized="false"
  18534. static="false" final="false" visibility="public"
  18535. deprecated="not deprecated">
  18536. </method>
  18537. <method name="getDefaultExtension" return="java.lang.String"
  18538. abstract="false" native="false" synchronized="false"
  18539. static="false" final="false" visibility="public"
  18540. deprecated="not deprecated">
  18541. </method>
  18542. <doc>
  18543. <![CDATA[This class creates gzip compressors/decompressors.]]>
  18544. </doc>
  18545. </class>
  18546. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  18547. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  18548. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  18549. abstract="false"
  18550. static="true" final="false" visibility="protected"
  18551. deprecated="not deprecated">
  18552. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  18553. static="false" final="false" visibility="public"
  18554. deprecated="not deprecated">
  18555. <exception name="IOException" type="java.io.IOException"/>
  18556. </constructor>
  18557. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  18558. static="false" final="false" visibility="protected"
  18559. deprecated="not deprecated">
  18560. <doc>
  18561. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  18562. </doc>
  18563. </constructor>
  18564. <method name="available" return="int"
  18565. abstract="false" native="false" synchronized="false"
  18566. static="false" final="false" visibility="public"
  18567. deprecated="not deprecated">
  18568. <exception name="IOException" type="java.io.IOException"/>
  18569. </method>
  18570. <method name="close"
  18571. abstract="false" native="false" synchronized="false"
  18572. static="false" final="false" visibility="public"
  18573. deprecated="not deprecated">
  18574. <exception name="IOException" type="java.io.IOException"/>
  18575. </method>
  18576. <method name="read" return="int"
  18577. abstract="false" native="false" synchronized="false"
  18578. static="false" final="false" visibility="public"
  18579. deprecated="not deprecated">
  18580. <exception name="IOException" type="java.io.IOException"/>
  18581. </method>
  18582. <method name="read" return="int"
  18583. abstract="false" native="false" synchronized="false"
  18584. static="false" final="false" visibility="public"
  18585. deprecated="not deprecated">
  18586. <param name="data" type="byte[]"/>
  18587. <param name="offset" type="int"/>
  18588. <param name="len" type="int"/>
  18589. <exception name="IOException" type="java.io.IOException"/>
  18590. </method>
  18591. <method name="skip" return="long"
  18592. abstract="false" native="false" synchronized="false"
  18593. static="false" final="false" visibility="public"
  18594. deprecated="not deprecated">
  18595. <param name="offset" type="long"/>
  18596. <exception name="IOException" type="java.io.IOException"/>
  18597. </method>
  18598. <method name="resetState"
  18599. abstract="false" native="false" synchronized="false"
  18600. static="false" final="false" visibility="public"
  18601. deprecated="not deprecated">
  18602. <exception name="IOException" type="java.io.IOException"/>
  18603. </method>
  18604. </class>
  18605. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  18606. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  18607. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  18608. abstract="false"
  18609. static="true" final="false" visibility="protected"
  18610. deprecated="not deprecated">
  18611. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  18612. static="false" final="false" visibility="public"
  18613. deprecated="not deprecated">
  18614. <exception name="IOException" type="java.io.IOException"/>
  18615. </constructor>
  18616. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  18617. static="false" final="false" visibility="protected"
  18618. deprecated="not deprecated">
  18619. <doc>
  18620. <![CDATA[Allow children types to put a different type in here.
  18621. @param out the Deflater stream to use]]>
  18622. </doc>
  18623. </constructor>
  18624. <method name="close"
  18625. abstract="false" native="false" synchronized="false"
  18626. static="false" final="false" visibility="public"
  18627. deprecated="not deprecated">
  18628. <exception name="IOException" type="java.io.IOException"/>
  18629. </method>
  18630. <method name="flush"
  18631. abstract="false" native="false" synchronized="false"
  18632. static="false" final="false" visibility="public"
  18633. deprecated="not deprecated">
  18634. <exception name="IOException" type="java.io.IOException"/>
  18635. </method>
  18636. <method name="write"
  18637. abstract="false" native="false" synchronized="false"
  18638. static="false" final="false" visibility="public"
  18639. deprecated="not deprecated">
  18640. <param name="b" type="int"/>
  18641. <exception name="IOException" type="java.io.IOException"/>
  18642. </method>
  18643. <method name="write"
  18644. abstract="false" native="false" synchronized="false"
  18645. static="false" final="false" visibility="public"
  18646. deprecated="not deprecated">
  18647. <param name="data" type="byte[]"/>
  18648. <param name="offset" type="int"/>
  18649. <param name="length" type="int"/>
  18650. <exception name="IOException" type="java.io.IOException"/>
  18651. </method>
  18652. <method name="finish"
  18653. abstract="false" native="false" synchronized="false"
  18654. static="false" final="false" visibility="public"
  18655. deprecated="not deprecated">
  18656. <exception name="IOException" type="java.io.IOException"/>
  18657. </method>
  18658. <method name="resetState"
  18659. abstract="false" native="false" synchronized="false"
  18660. static="false" final="false" visibility="public"
  18661. deprecated="not deprecated">
  18662. <exception name="IOException" type="java.io.IOException"/>
  18663. </method>
  18664. <doc>
  18665. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  18666. a CompressionOutputStream.]]>
  18667. </doc>
  18668. </class>
  18669. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  18670. <!-- start class org.apache.hadoop.io.compress.LzoCodec -->
  18671. <class name="LzoCodec" extends="java.lang.Object"
  18672. abstract="false"
  18673. static="false" final="false" visibility="public"
  18674. deprecated="not deprecated">
  18675. <implements name="org.apache.hadoop.conf.Configurable"/>
  18676. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  18677. <constructor name="LzoCodec"
  18678. static="false" final="false" visibility="public"
  18679. deprecated="not deprecated">
  18680. </constructor>
  18681. <method name="setConf"
  18682. abstract="false" native="false" synchronized="false"
  18683. static="false" final="false" visibility="public"
  18684. deprecated="not deprecated">
  18685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18686. </method>
  18687. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  18688. abstract="false" native="false" synchronized="false"
  18689. static="false" final="false" visibility="public"
  18690. deprecated="not deprecated">
  18691. </method>
  18692. <method name="isNativeLzoLoaded" return="boolean"
  18693. abstract="false" native="false" synchronized="false"
  18694. static="true" final="false" visibility="public"
  18695. deprecated="not deprecated">
  18696. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  18697. <doc>
  18698. <![CDATA[Check if native-lzo library is loaded & initialized.
  18699. @param conf configuration
  18700. @return <code>true</code> if native-lzo library is loaded & initialized;
  18701. else <code>false</code>]]>
  18702. </doc>
  18703. </method>
  18704. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18705. abstract="false" native="false" synchronized="false"
  18706. static="false" final="false" visibility="public"
  18707. deprecated="not deprecated">
  18708. <param name="out" type="java.io.OutputStream"/>
  18709. <exception name="IOException" type="java.io.IOException"/>
  18710. </method>
  18711. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  18712. abstract="false" native="false" synchronized="false"
  18713. static="false" final="false" visibility="public"
  18714. deprecated="not deprecated">
  18715. <param name="out" type="java.io.OutputStream"/>
  18716. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  18717. <exception name="IOException" type="java.io.IOException"/>
  18718. </method>
  18719. <method name="getCompressorType" return="java.lang.Class"
  18720. abstract="false" native="false" synchronized="false"
  18721. static="false" final="false" visibility="public"
  18722. deprecated="not deprecated">
  18723. </method>
  18724. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  18725. abstract="false" native="false" synchronized="false"
  18726. static="false" final="false" visibility="public"
  18727. deprecated="not deprecated">
  18728. </method>
  18729. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18730. abstract="false" native="false" synchronized="false"
  18731. static="false" final="false" visibility="public"
  18732. deprecated="not deprecated">
  18733. <param name="in" type="java.io.InputStream"/>
  18734. <exception name="IOException" type="java.io.IOException"/>
  18735. </method>
  18736. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  18737. abstract="false" native="false" synchronized="false"
  18738. static="false" final="false" visibility="public"
  18739. deprecated="not deprecated">
  18740. <param name="in" type="java.io.InputStream"/>
  18741. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  18742. <exception name="IOException" type="java.io.IOException"/>
  18743. </method>
  18744. <method name="getDecompressorType" return="java.lang.Class"
  18745. abstract="false" native="false" synchronized="false"
  18746. static="false" final="false" visibility="public"
  18747. deprecated="not deprecated">
  18748. </method>
  18749. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  18750. abstract="false" native="false" synchronized="false"
  18751. static="false" final="false" visibility="public"
  18752. deprecated="not deprecated">
  18753. </method>
  18754. <method name="getDefaultExtension" return="java.lang.String"
  18755. abstract="false" native="false" synchronized="false"
  18756. static="false" final="false" visibility="public"
  18757. deprecated="not deprecated">
  18758. <doc>
  18759. <![CDATA[Get the default filename extension for this kind of compression.
  18760. @return the extension including the '.']]>
  18761. </doc>
  18762. </method>
  18763. <doc>
  18764. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressionCodec} for a streaming
  18765. <b>lzo</b> compression/decompression pair.
  18766. http://www.oberhumer.com/opensource/lzo/]]>
  18767. </doc>
  18768. </class>
  18769. <!-- end class org.apache.hadoop.io.compress.LzoCodec -->
  18770. </package>
  18771. <package name="org.apache.hadoop.io.compress.lzo">
  18772. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  18773. <class name="LzoCompressor" extends="java.lang.Object"
  18774. abstract="false"
  18775. static="false" final="false" visibility="public"
  18776. deprecated="not deprecated">
  18777. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  18778. <constructor name="LzoCompressor" type="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy, int"
  18779. static="false" final="false" visibility="public"
  18780. deprecated="not deprecated">
  18781. <doc>
  18782. <![CDATA[Creates a new compressor using the specified {@link CompressionStrategy}.
  18783. @param strategy lzo compression algorithm to use
  18784. @param directBufferSize size of the direct buffer to be used.]]>
  18785. </doc>
  18786. </constructor>
  18787. <constructor name="LzoCompressor"
  18788. static="false" final="false" visibility="public"
  18789. deprecated="not deprecated">
  18790. <doc>
  18791. <![CDATA[Creates a new compressor with the default lzo1x_1 compression.]]>
  18792. </doc>
  18793. </constructor>
  18794. <method name="isNativeLzoLoaded" return="boolean"
  18795. abstract="false" native="false" synchronized="false"
  18796. static="true" final="false" visibility="public"
  18797. deprecated="not deprecated">
  18798. <doc>
  18799. <![CDATA[Check if lzo compressors are loaded and initialized.
  18800. @return <code>true</code> if lzo compressors are loaded & initialized,
  18801. else <code>false</code>]]>
  18802. </doc>
  18803. </method>
  18804. <method name="setInput"
  18805. abstract="false" native="false" synchronized="true"
  18806. static="false" final="false" visibility="public"
  18807. deprecated="not deprecated">
  18808. <param name="b" type="byte[]"/>
  18809. <param name="off" type="int"/>
  18810. <param name="len" type="int"/>
  18811. </method>
  18812. <method name="setDictionary"
  18813. abstract="false" native="false" synchronized="true"
  18814. static="false" final="false" visibility="public"
  18815. deprecated="not deprecated">
  18816. <param name="b" type="byte[]"/>
  18817. <param name="off" type="int"/>
  18818. <param name="len" type="int"/>
  18819. </method>
  18820. <method name="needsInput" return="boolean"
  18821. abstract="false" native="false" synchronized="false"
  18822. static="false" final="false" visibility="public"
  18823. deprecated="not deprecated">
  18824. <doc>
  18825. <![CDATA[{@inheritDoc}]]>
  18826. </doc>
  18827. </method>
  18828. <method name="finish"
  18829. abstract="false" native="false" synchronized="true"
  18830. static="false" final="false" visibility="public"
  18831. deprecated="not deprecated">
  18832. </method>
  18833. <method name="finished" return="boolean"
  18834. abstract="false" native="false" synchronized="true"
  18835. static="false" final="false" visibility="public"
  18836. deprecated="not deprecated">
  18837. </method>
  18838. <method name="compress" return="int"
  18839. abstract="false" native="false" synchronized="true"
  18840. static="false" final="false" visibility="public"
  18841. deprecated="not deprecated">
  18842. <param name="b" type="byte[]"/>
  18843. <param name="off" type="int"/>
  18844. <param name="len" type="int"/>
  18845. <exception name="IOException" type="java.io.IOException"/>
  18846. </method>
  18847. <method name="reset"
  18848. abstract="false" native="false" synchronized="true"
  18849. static="false" final="false" visibility="public"
  18850. deprecated="not deprecated">
  18851. </method>
  18852. <method name="getBytesRead" return="long"
  18853. abstract="false" native="false" synchronized="true"
  18854. static="false" final="false" visibility="public"
  18855. deprecated="not deprecated">
  18856. <doc>
  18857. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  18858. </doc>
  18859. </method>
  18860. <method name="getBytesWritten" return="long"
  18861. abstract="false" native="false" synchronized="true"
  18862. static="false" final="false" visibility="public"
  18863. deprecated="not deprecated">
  18864. <doc>
  18865. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  18866. </doc>
  18867. </method>
  18868. <method name="end"
  18869. abstract="false" native="false" synchronized="true"
  18870. static="false" final="false" visibility="public"
  18871. deprecated="not deprecated">
  18872. <doc>
  18873. <![CDATA[Noop.]]>
  18874. </doc>
  18875. </method>
  18876. <doc>
  18877. <![CDATA[A {@link Compressor} based on the lzo algorithm.
  18878. http://www.oberhumer.com/opensource/lzo/]]>
  18879. </doc>
  18880. </class>
  18881. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  18882. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  18883. <class name="LzoCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy&gt;"
  18884. abstract="false"
  18885. static="true" final="true" visibility="public"
  18886. deprecated="not deprecated">
  18887. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy[]"
  18888. abstract="false" native="false" synchronized="false"
  18889. static="true" final="false" visibility="public"
  18890. deprecated="not deprecated">
  18891. </method>
  18892. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"
  18893. abstract="false" native="false" synchronized="false"
  18894. static="true" final="false" visibility="public"
  18895. deprecated="not deprecated">
  18896. <param name="name" type="java.lang.String"/>
  18897. </method>
  18898. <doc>
  18899. <![CDATA[The compression algorithm for lzo library.]]>
  18900. </doc>
  18901. </class>
  18902. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  18903. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  18904. <class name="LzoDecompressor" extends="java.lang.Object"
  18905. abstract="false"
  18906. static="false" final="false" visibility="public"
  18907. deprecated="not deprecated">
  18908. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  18909. <constructor name="LzoDecompressor" type="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy, int"
  18910. static="false" final="false" visibility="public"
  18911. deprecated="not deprecated">
  18912. <doc>
  18913. <![CDATA[Creates a new lzo decompressor.
  18914. @param strategy lzo decompression algorithm
  18915. @param directBufferSize size of the direct-buffer]]>
  18916. </doc>
  18917. </constructor>
  18918. <constructor name="LzoDecompressor"
  18919. static="false" final="false" visibility="public"
  18920. deprecated="not deprecated">
  18921. <doc>
  18922. <![CDATA[Creates a new lzo decompressor.]]>
  18923. </doc>
  18924. </constructor>
  18925. <method name="isNativeLzoLoaded" return="boolean"
  18926. abstract="false" native="false" synchronized="false"
  18927. static="true" final="false" visibility="public"
  18928. deprecated="not deprecated">
  18929. <doc>
  18930. <![CDATA[Check if lzo decompressors are loaded and initialized.
  18931. @return <code>true</code> if lzo decompressors are loaded & initialized,
  18932. else <code>false</code>]]>
  18933. </doc>
  18934. </method>
  18935. <method name="setInput"
  18936. abstract="false" native="false" synchronized="true"
  18937. static="false" final="false" visibility="public"
  18938. deprecated="not deprecated">
  18939. <param name="b" type="byte[]"/>
  18940. <param name="off" type="int"/>
  18941. <param name="len" type="int"/>
  18942. </method>
  18943. <method name="setDictionary"
  18944. abstract="false" native="false" synchronized="true"
  18945. static="false" final="false" visibility="public"
  18946. deprecated="not deprecated">
  18947. <param name="b" type="byte[]"/>
  18948. <param name="off" type="int"/>
  18949. <param name="len" type="int"/>
  18950. </method>
  18951. <method name="needsInput" return="boolean"
  18952. abstract="false" native="false" synchronized="true"
  18953. static="false" final="false" visibility="public"
  18954. deprecated="not deprecated">
  18955. </method>
  18956. <method name="needsDictionary" return="boolean"
  18957. abstract="false" native="false" synchronized="true"
  18958. static="false" final="false" visibility="public"
  18959. deprecated="not deprecated">
  18960. </method>
  18961. <method name="finished" return="boolean"
  18962. abstract="false" native="false" synchronized="true"
  18963. static="false" final="false" visibility="public"
  18964. deprecated="not deprecated">
  18965. </method>
  18966. <method name="decompress" return="int"
  18967. abstract="false" native="false" synchronized="true"
  18968. static="false" final="false" visibility="public"
  18969. deprecated="not deprecated">
  18970. <param name="b" type="byte[]"/>
  18971. <param name="off" type="int"/>
  18972. <param name="len" type="int"/>
  18973. <exception name="IOException" type="java.io.IOException"/>
  18974. </method>
  18975. <method name="reset"
  18976. abstract="false" native="false" synchronized="true"
  18977. static="false" final="false" visibility="public"
  18978. deprecated="not deprecated">
  18979. </method>
  18980. <method name="end"
  18981. abstract="false" native="false" synchronized="true"
  18982. static="false" final="false" visibility="public"
  18983. deprecated="not deprecated">
  18984. </method>
  18985. <method name="finalize"
  18986. abstract="false" native="false" synchronized="false"
  18987. static="false" final="false" visibility="protected"
  18988. deprecated="not deprecated">
  18989. </method>
  18990. <doc>
  18991. <![CDATA[A {@link Decompressor} based on the lzo algorithm.
  18992. http://www.oberhumer.com/opensource/lzo/]]>
  18993. </doc>
  18994. </class>
  18995. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  18996. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  18997. <class name="LzoDecompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy&gt;"
  18998. abstract="false"
  18999. static="true" final="true" visibility="public"
  19000. deprecated="not deprecated">
  19001. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy[]"
  19002. abstract="false" native="false" synchronized="false"
  19003. static="true" final="false" visibility="public"
  19004. deprecated="not deprecated">
  19005. </method>
  19006. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy"
  19007. abstract="false" native="false" synchronized="false"
  19008. static="true" final="false" visibility="public"
  19009. deprecated="not deprecated">
  19010. <param name="name" type="java.lang.String"/>
  19011. </method>
  19012. </class>
  19013. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  19014. </package>
  19015. <package name="org.apache.hadoop.io.compress.zlib">
  19016. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19017. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  19018. abstract="false"
  19019. static="false" final="false" visibility="public"
  19020. deprecated="not deprecated">
  19021. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19022. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  19023. static="false" final="false" visibility="public"
  19024. deprecated="not deprecated">
  19025. </constructor>
  19026. <constructor name="BuiltInZlibDeflater" type="int"
  19027. static="false" final="false" visibility="public"
  19028. deprecated="not deprecated">
  19029. </constructor>
  19030. <constructor name="BuiltInZlibDeflater"
  19031. static="false" final="false" visibility="public"
  19032. deprecated="not deprecated">
  19033. </constructor>
  19034. <method name="compress" return="int"
  19035. abstract="false" native="false" synchronized="true"
  19036. static="false" final="false" visibility="public"
  19037. deprecated="not deprecated">
  19038. <param name="b" type="byte[]"/>
  19039. <param name="off" type="int"/>
  19040. <param name="len" type="int"/>
  19041. <exception name="IOException" type="java.io.IOException"/>
  19042. </method>
  19043. <doc>
  19044. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  19045. to org.apache.hadoop.io.compress.Compressor interface.]]>
  19046. </doc>
  19047. </class>
  19048. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  19049. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19050. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  19051. abstract="false"
  19052. static="false" final="false" visibility="public"
  19053. deprecated="not deprecated">
  19054. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19055. <constructor name="BuiltInZlibInflater" type="boolean"
  19056. static="false" final="false" visibility="public"
  19057. deprecated="not deprecated">
  19058. </constructor>
  19059. <constructor name="BuiltInZlibInflater"
  19060. static="false" final="false" visibility="public"
  19061. deprecated="not deprecated">
  19062. </constructor>
  19063. <method name="decompress" return="int"
  19064. abstract="false" native="false" synchronized="true"
  19065. static="false" final="false" visibility="public"
  19066. deprecated="not deprecated">
  19067. <param name="b" type="byte[]"/>
  19068. <param name="off" type="int"/>
  19069. <param name="len" type="int"/>
  19070. <exception name="IOException" type="java.io.IOException"/>
  19071. </method>
  19072. <doc>
  19073. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  19074. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  19075. </doc>
  19076. </class>
  19077. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  19078. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19079. <class name="ZlibCompressor" extends="java.lang.Object"
  19080. abstract="false"
  19081. static="false" final="false" visibility="public"
  19082. deprecated="not deprecated">
  19083. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  19084. <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"
  19085. static="false" final="false" visibility="public"
  19086. deprecated="not deprecated">
  19087. <doc>
  19088. <![CDATA[Creates a new compressor using the specified compression level.
  19089. Compressed data will be generated in ZLIB format.
  19090. @param level Compression level #CompressionLevel
  19091. @param strategy Compression strategy #CompressionStrategy
  19092. @param header Compression header #CompressionHeader
  19093. @param directBufferSize Size of the direct buffer to be used.]]>
  19094. </doc>
  19095. </constructor>
  19096. <constructor name="ZlibCompressor"
  19097. static="false" final="false" visibility="public"
  19098. deprecated="not deprecated">
  19099. <doc>
  19100. <![CDATA[Creates a new compressor with the default compression level.
  19101. Compressed data will be generated in ZLIB format.]]>
  19102. </doc>
  19103. </constructor>
  19104. <method name="setInput"
  19105. abstract="false" native="false" synchronized="true"
  19106. static="false" final="false" visibility="public"
  19107. deprecated="not deprecated">
  19108. <param name="b" type="byte[]"/>
  19109. <param name="off" type="int"/>
  19110. <param name="len" type="int"/>
  19111. </method>
  19112. <method name="setDictionary"
  19113. abstract="false" native="false" synchronized="true"
  19114. static="false" final="false" visibility="public"
  19115. deprecated="not deprecated">
  19116. <param name="b" type="byte[]"/>
  19117. <param name="off" type="int"/>
  19118. <param name="len" type="int"/>
  19119. </method>
  19120. <method name="needsInput" return="boolean"
  19121. abstract="false" native="false" synchronized="false"
  19122. static="false" final="false" visibility="public"
  19123. deprecated="not deprecated">
  19124. </method>
  19125. <method name="finish"
  19126. abstract="false" native="false" synchronized="true"
  19127. static="false" final="false" visibility="public"
  19128. deprecated="not deprecated">
  19129. </method>
  19130. <method name="finished" return="boolean"
  19131. abstract="false" native="false" synchronized="true"
  19132. static="false" final="false" visibility="public"
  19133. deprecated="not deprecated">
  19134. </method>
  19135. <method name="compress" return="int"
  19136. abstract="false" native="false" synchronized="true"
  19137. static="false" final="false" visibility="public"
  19138. deprecated="not deprecated">
  19139. <param name="b" type="byte[]"/>
  19140. <param name="off" type="int"/>
  19141. <param name="len" type="int"/>
  19142. <exception name="IOException" type="java.io.IOException"/>
  19143. </method>
  19144. <method name="getBytesWritten" return="long"
  19145. abstract="false" native="false" synchronized="true"
  19146. static="false" final="false" visibility="public"
  19147. deprecated="not deprecated">
  19148. <doc>
  19149. <![CDATA[Returns the total number of compressed bytes output so far.
  19150. @return the total (non-negative) number of compressed bytes output so far]]>
  19151. </doc>
  19152. </method>
  19153. <method name="getBytesRead" return="long"
  19154. abstract="false" native="false" synchronized="true"
  19155. static="false" final="false" visibility="public"
  19156. deprecated="not deprecated">
  19157. <doc>
  19158. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19159. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19160. </doc>
  19161. </method>
  19162. <method name="reset"
  19163. abstract="false" native="false" synchronized="true"
  19164. static="false" final="false" visibility="public"
  19165. deprecated="not deprecated">
  19166. </method>
  19167. <method name="end"
  19168. abstract="false" native="false" synchronized="true"
  19169. static="false" final="false" visibility="public"
  19170. deprecated="not deprecated">
  19171. </method>
  19172. <doc>
  19173. <![CDATA[A {@link Compressor} based on the popular
  19174. zlib compression algorithm.
  19175. http://www.zlib.net/]]>
  19176. </doc>
  19177. </class>
  19178. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  19179. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19180. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader&gt;"
  19181. abstract="false"
  19182. static="true" final="true" visibility="public"
  19183. deprecated="not deprecated">
  19184. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  19185. abstract="false" native="false" synchronized="false"
  19186. static="true" final="false" visibility="public"
  19187. deprecated="not deprecated">
  19188. </method>
  19189. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  19190. abstract="false" native="false" synchronized="false"
  19191. static="true" final="false" visibility="public"
  19192. deprecated="not deprecated">
  19193. <param name="name" type="java.lang.String"/>
  19194. </method>
  19195. <method name="windowBits" return="int"
  19196. abstract="false" native="false" synchronized="false"
  19197. static="false" final="false" visibility="public"
  19198. deprecated="not deprecated">
  19199. </method>
  19200. <doc>
  19201. <![CDATA[The type of header for compressed data.]]>
  19202. </doc>
  19203. </class>
  19204. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  19205. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19206. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel&gt;"
  19207. abstract="false"
  19208. static="true" final="true" visibility="public"
  19209. deprecated="not deprecated">
  19210. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  19211. abstract="false" native="false" synchronized="false"
  19212. static="true" final="false" visibility="public"
  19213. deprecated="not deprecated">
  19214. </method>
  19215. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  19216. abstract="false" native="false" synchronized="false"
  19217. static="true" final="false" visibility="public"
  19218. deprecated="not deprecated">
  19219. <param name="name" type="java.lang.String"/>
  19220. </method>
  19221. <doc>
  19222. <![CDATA[The compression level for zlib library.]]>
  19223. </doc>
  19224. </class>
  19225. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  19226. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19227. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy&gt;"
  19228. abstract="false"
  19229. static="true" final="true" visibility="public"
  19230. deprecated="not deprecated">
  19231. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  19232. abstract="false" native="false" synchronized="false"
  19233. static="true" final="false" visibility="public"
  19234. deprecated="not deprecated">
  19235. </method>
  19236. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  19237. abstract="false" native="false" synchronized="false"
  19238. static="true" final="false" visibility="public"
  19239. deprecated="not deprecated">
  19240. <param name="name" type="java.lang.String"/>
  19241. </method>
  19242. <doc>
  19243. <![CDATA[The compression level for zlib library.]]>
  19244. </doc>
  19245. </class>
  19246. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  19247. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19248. <class name="ZlibDecompressor" extends="java.lang.Object"
  19249. abstract="false"
  19250. static="false" final="false" visibility="public"
  19251. deprecated="not deprecated">
  19252. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  19253. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  19254. static="false" final="false" visibility="public"
  19255. deprecated="not deprecated">
  19256. <doc>
  19257. <![CDATA[Creates a new decompressor.]]>
  19258. </doc>
  19259. </constructor>
  19260. <constructor name="ZlibDecompressor"
  19261. static="false" final="false" visibility="public"
  19262. deprecated="not deprecated">
  19263. </constructor>
  19264. <method name="setInput"
  19265. abstract="false" native="false" synchronized="true"
  19266. static="false" final="false" visibility="public"
  19267. deprecated="not deprecated">
  19268. <param name="b" type="byte[]"/>
  19269. <param name="off" type="int"/>
  19270. <param name="len" type="int"/>
  19271. </method>
  19272. <method name="setDictionary"
  19273. abstract="false" native="false" synchronized="true"
  19274. static="false" final="false" visibility="public"
  19275. deprecated="not deprecated">
  19276. <param name="b" type="byte[]"/>
  19277. <param name="off" type="int"/>
  19278. <param name="len" type="int"/>
  19279. </method>
  19280. <method name="needsInput" return="boolean"
  19281. abstract="false" native="false" synchronized="true"
  19282. static="false" final="false" visibility="public"
  19283. deprecated="not deprecated">
  19284. </method>
  19285. <method name="needsDictionary" return="boolean"
  19286. abstract="false" native="false" synchronized="true"
  19287. static="false" final="false" visibility="public"
  19288. deprecated="not deprecated">
  19289. </method>
  19290. <method name="finished" return="boolean"
  19291. abstract="false" native="false" synchronized="true"
  19292. static="false" final="false" visibility="public"
  19293. deprecated="not deprecated">
  19294. </method>
  19295. <method name="decompress" return="int"
  19296. abstract="false" native="false" synchronized="true"
  19297. static="false" final="false" visibility="public"
  19298. deprecated="not deprecated">
  19299. <param name="b" type="byte[]"/>
  19300. <param name="off" type="int"/>
  19301. <param name="len" type="int"/>
  19302. <exception name="IOException" type="java.io.IOException"/>
  19303. </method>
  19304. <method name="getBytesWritten" return="long"
  19305. abstract="false" native="false" synchronized="true"
  19306. static="false" final="false" visibility="public"
  19307. deprecated="not deprecated">
  19308. <doc>
  19309. <![CDATA[Returns the total number of compressed bytes output so far.
  19310. @return the total (non-negative) number of compressed bytes output so far]]>
  19311. </doc>
  19312. </method>
  19313. <method name="getBytesRead" return="long"
  19314. abstract="false" native="false" synchronized="true"
  19315. static="false" final="false" visibility="public"
  19316. deprecated="not deprecated">
  19317. <doc>
  19318. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  19319. @return the total (non-negative) number of uncompressed bytes input so far]]>
  19320. </doc>
  19321. </method>
  19322. <method name="reset"
  19323. abstract="false" native="false" synchronized="true"
  19324. static="false" final="false" visibility="public"
  19325. deprecated="not deprecated">
  19326. </method>
  19327. <method name="end"
  19328. abstract="false" native="false" synchronized="true"
  19329. static="false" final="false" visibility="public"
  19330. deprecated="not deprecated">
  19331. </method>
  19332. <method name="finalize"
  19333. abstract="false" native="false" synchronized="false"
  19334. static="false" final="false" visibility="protected"
  19335. deprecated="not deprecated">
  19336. </method>
  19337. <doc>
  19338. <![CDATA[A {@link Decompressor} based on the popular
  19339. zlib compression algorithm.
  19340. http://www.zlib.net/]]>
  19341. </doc>
  19342. </class>
  19343. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  19344. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19345. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader&gt;"
  19346. abstract="false"
  19347. static="true" final="true" visibility="public"
  19348. deprecated="not deprecated">
  19349. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  19350. abstract="false" native="false" synchronized="false"
  19351. static="true" final="false" visibility="public"
  19352. deprecated="not deprecated">
  19353. </method>
  19354. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  19355. abstract="false" native="false" synchronized="false"
  19356. static="true" final="false" visibility="public"
  19357. deprecated="not deprecated">
  19358. <param name="name" type="java.lang.String"/>
  19359. </method>
  19360. <method name="windowBits" return="int"
  19361. abstract="false" native="false" synchronized="false"
  19362. static="false" final="false" visibility="public"
  19363. deprecated="not deprecated">
  19364. </method>
  19365. <doc>
  19366. <![CDATA[The headers to detect from compressed data.]]>
  19367. </doc>
  19368. </class>
  19369. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  19370. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19371. <class name="ZlibFactory" extends="java.lang.Object"
  19372. abstract="false"
  19373. static="false" final="false" visibility="public"
  19374. deprecated="not deprecated">
  19375. <constructor name="ZlibFactory"
  19376. static="false" final="false" visibility="public"
  19377. deprecated="not deprecated">
  19378. </constructor>
  19379. <method name="isNativeZlibLoaded" return="boolean"
  19380. abstract="false" native="false" synchronized="false"
  19381. static="true" final="false" visibility="public"
  19382. deprecated="not deprecated">
  19383. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19384. <doc>
  19385. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  19386. can be loaded for this job.
  19387. @param conf configuration
  19388. @return <code>true</code> if native-zlib is loaded & initialized
  19389. and can be loaded for this job, else <code>false</code>]]>
  19390. </doc>
  19391. </method>
  19392. <method name="getZlibCompressorType" return="java.lang.Class"
  19393. abstract="false" native="false" synchronized="false"
  19394. static="true" final="false" visibility="public"
  19395. deprecated="not deprecated">
  19396. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19397. <doc>
  19398. <![CDATA[Return the appropriate type of the zlib compressor.
  19399. @param conf configuration
  19400. @return the appropriate type of the zlib compressor.]]>
  19401. </doc>
  19402. </method>
  19403. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19404. abstract="false" native="false" synchronized="false"
  19405. static="true" final="false" visibility="public"
  19406. deprecated="not deprecated">
  19407. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19408. <doc>
  19409. <![CDATA[Return the appropriate implementation of the zlib compressor.
  19410. @param conf configuration
  19411. @return the appropriate implementation of the zlib compressor.]]>
  19412. </doc>
  19413. </method>
  19414. <method name="getZlibDecompressorType" return="java.lang.Class"
  19415. abstract="false" native="false" synchronized="false"
  19416. static="true" final="false" visibility="public"
  19417. deprecated="not deprecated">
  19418. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19419. <doc>
  19420. <![CDATA[Return the appropriate type of the zlib decompressor.
  19421. @param conf configuration
  19422. @return the appropriate type of the zlib decompressor.]]>
  19423. </doc>
  19424. </method>
  19425. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19426. abstract="false" native="false" synchronized="false"
  19427. static="true" final="false" visibility="public"
  19428. deprecated="not deprecated">
  19429. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19430. <doc>
  19431. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  19432. @param conf configuration
  19433. @return the appropriate implementation of the zlib decompressor.]]>
  19434. </doc>
  19435. </method>
  19436. <doc>
  19437. <![CDATA[A collection of factories to create the right
  19438. zlib/gzip compressor/decompressor instances.]]>
  19439. </doc>
  19440. </class>
  19441. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  19442. </package>
  19443. <package name="org.apache.hadoop.io.retry">
  19444. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  19445. <class name="RetryPolicies" extends="java.lang.Object"
  19446. abstract="false"
  19447. static="false" final="false" visibility="public"
  19448. deprecated="not deprecated">
  19449. <constructor name="RetryPolicies"
  19450. static="false" final="false" visibility="public"
  19451. deprecated="not deprecated">
  19452. </constructor>
  19453. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  19454. abstract="false" native="false" synchronized="false"
  19455. static="true" final="true" visibility="public"
  19456. deprecated="not deprecated">
  19457. <param name="maxRetries" type="int"/>
  19458. <param name="sleepTime" type="long"/>
  19459. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  19460. <doc>
  19461. <![CDATA[<p>
  19462. Keep trying a limited number of times, waiting a fixed time between attempts,
  19463. and then fail by re-throwing the exception.
  19464. </p>]]>
  19465. </doc>
  19466. </method>
  19467. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  19468. abstract="false" native="false" synchronized="false"
  19469. static="true" final="true" visibility="public"
  19470. deprecated="not deprecated">
  19471. <param name="maxTime" type="long"/>
  19472. <param name="sleepTime" type="long"/>
  19473. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  19474. <doc>
  19475. <![CDATA[<p>
  19476. Keep trying for a maximum time, waiting a fixed time between attempts,
  19477. and then fail by re-throwing the exception.
  19478. </p>]]>
  19479. </doc>
  19480. </method>
  19481. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  19482. abstract="false" native="false" synchronized="false"
  19483. static="true" final="true" visibility="public"
  19484. deprecated="not deprecated">
  19485. <param name="maxRetries" type="int"/>
  19486. <param name="sleepTime" type="long"/>
  19487. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  19488. <doc>
  19489. <![CDATA[<p>
  19490. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  19491. and then fail by re-throwing the exception.
  19492. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  19493. </p>]]>
  19494. </doc>
  19495. </method>
  19496. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  19497. abstract="false" native="false" synchronized="false"
  19498. static="true" final="true" visibility="public"
  19499. deprecated="not deprecated">
  19500. <param name="maxRetries" type="int"/>
  19501. <param name="sleepTime" type="long"/>
  19502. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  19503. <doc>
  19504. <![CDATA[<p>
  19505. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  19506. and then fail by re-throwing the exception.
  19507. The time between attempts is <code>sleepTime</code> mutliplied by a random
  19508. number in the range of [0, 2 to the number of retries)
  19509. </p>]]>
  19510. </doc>
  19511. </method>
  19512. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  19513. abstract="false" native="false" synchronized="false"
  19514. static="true" final="true" visibility="public"
  19515. deprecated="not deprecated">
  19516. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  19517. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  19518. <doc>
  19519. <![CDATA[<p>
  19520. Set a default policy with some explicit handlers for specific exceptions.
  19521. </p>]]>
  19522. </doc>
  19523. </method>
  19524. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  19525. abstract="false" native="false" synchronized="false"
  19526. static="true" final="true" visibility="public"
  19527. deprecated="not deprecated">
  19528. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  19529. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  19530. <doc>
  19531. <![CDATA[<p>
  19532. A retry policy for RemoteException
  19533. Set a default policy with some explicit handlers for specific exceptions.
  19534. </p>]]>
  19535. </doc>
  19536. </method>
  19537. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  19538. transient="false" volatile="false"
  19539. static="true" final="true" visibility="public"
  19540. deprecated="not deprecated">
  19541. <doc>
  19542. <![CDATA[<p>
  19543. Try once, and fail by re-throwing the exception.
  19544. This corresponds to having no retry mechanism in place.
  19545. </p>]]>
  19546. </doc>
  19547. </field>
  19548. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  19549. transient="false" volatile="false"
  19550. static="true" final="true" visibility="public"
  19551. deprecated="not deprecated">
  19552. <doc>
  19553. <![CDATA[<p>
  19554. Try once, and fail silently for <code>void</code> methods, or by
  19555. re-throwing the exception for non-<code>void</code> methods.
  19556. </p>]]>
  19557. </doc>
  19558. </field>
  19559. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  19560. transient="false" volatile="false"
  19561. static="true" final="true" visibility="public"
  19562. deprecated="not deprecated">
  19563. <doc>
  19564. <![CDATA[<p>
  19565. Keep trying forever.
  19566. </p>]]>
  19567. </doc>
  19568. </field>
  19569. <doc>
  19570. <![CDATA[<p>
  19571. A collection of useful implementations of {@link RetryPolicy}.
  19572. </p>]]>
  19573. </doc>
  19574. </class>
  19575. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  19576. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  19577. <interface name="RetryPolicy" abstract="true"
  19578. static="false" final="false" visibility="public"
  19579. deprecated="not deprecated">
  19580. <method name="shouldRetry" return="boolean"
  19581. abstract="false" native="false" synchronized="false"
  19582. static="false" final="false" visibility="public"
  19583. deprecated="not deprecated">
  19584. <param name="e" type="java.lang.Exception"/>
  19585. <param name="retries" type="int"/>
  19586. <exception name="Exception" type="java.lang.Exception"/>
  19587. <doc>
  19588. <![CDATA[<p>
  19589. Determines whether the framework should retry a
  19590. method for the given exception, and the number
  19591. of retries that have been made for that operation
  19592. so far.
  19593. </p>
  19594. @param e The exception that caused the method to fail.
  19595. @param retries The number of times the method has been retried.
  19596. @return <code>true</code> if the method should be retried,
  19597. <code>false</code> if the method should not be retried
  19598. but shouldn't fail with an exception (only for void methods).
  19599. @throws Exception The re-thrown exception <code>e</code> indicating
  19600. that the method failed and should not be retried further.]]>
  19601. </doc>
  19602. </method>
  19603. <doc>
  19604. <![CDATA[<p>
  19605. Specifies a policy for retrying method failures.
  19606. Implementations of this interface should be immutable.
  19607. </p>]]>
  19608. </doc>
  19609. </interface>
  19610. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  19611. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  19612. <class name="RetryProxy" extends="java.lang.Object"
  19613. abstract="false"
  19614. static="false" final="false" visibility="public"
  19615. deprecated="not deprecated">
  19616. <constructor name="RetryProxy"
  19617. static="false" final="false" visibility="public"
  19618. deprecated="not deprecated">
  19619. </constructor>
  19620. <method name="create" return="java.lang.Object"
  19621. abstract="false" native="false" synchronized="false"
  19622. static="true" final="false" visibility="public"
  19623. deprecated="not deprecated">
  19624. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  19625. <param name="implementation" type="java.lang.Object"/>
  19626. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  19627. <doc>
  19628. <![CDATA[<p>
  19629. Create a proxy for an interface of an implementation class
  19630. using the same retry policy for each method in the interface.
  19631. </p>
  19632. @param iface the interface that the retry will implement
  19633. @param implementation the instance whose methods should be retried
  19634. @param retryPolicy the policy for retirying method call failures
  19635. @return the retry proxy]]>
  19636. </doc>
  19637. </method>
  19638. <method name="create" return="java.lang.Object"
  19639. abstract="false" native="false" synchronized="false"
  19640. static="true" final="false" visibility="public"
  19641. deprecated="not deprecated">
  19642. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  19643. <param name="implementation" type="java.lang.Object"/>
  19644. <param name="methodNameToPolicyMap" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  19645. <doc>
  19646. <![CDATA[<p>
  19647. Create a proxy for an interface of an implementation class
  19648. using the a set of retry policies specified by method name.
  19649. If no retry policy is defined for a method then a default of
  19650. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  19651. </p>
  19652. @param iface the interface that the retry will implement
  19653. @param implementation the instance whose methods should be retried
  19654. @param methodNameToPolicyMap a map of method names to retry policies
  19655. @return the retry proxy]]>
  19656. </doc>
  19657. </method>
  19658. <doc>
  19659. <![CDATA[<p>
  19660. A factory for creating retry proxies.
  19661. </p>]]>
  19662. </doc>
  19663. </class>
  19664. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  19665. <doc>
  19666. <![CDATA[<p>
  19667. A mechanism for selectively retrying methods that throw exceptions under certain circumstances.
  19668. </p>
  19669. <p>
  19670. Typical usage is
  19671. </p>
  19672. <pre>
  19673. UnreliableImplementation unreliableImpl = new UnreliableImplementation();
  19674. UnreliableInterface unreliable = (UnreliableInterface)
  19675. RetryProxy.create(UnreliableInterface.class, unreliableImpl,
  19676. RetryPolicies.retryUpToMaximumCountWithFixedSleep(4, 10, TimeUnit.SECONDS));
  19677. unreliable.call();
  19678. </pre>
  19679. <p>
  19680. This will retry any method called on <code>unreliable</code> four times - in this case the <code>call()</code>
  19681. method - sleeping 10 seconds between
  19682. each retry. There are a number of {@link org.apache.hadoop.io.retry.RetryPolicies retry policies}
  19683. available, or you can implement a custom one by implementing {@link org.apache.hadoop.io.retry.RetryPolicy}.
  19684. It is also possible to specify retry policies on a
  19685. {@link org.apache.hadoop.io.retry.RetryProxy#create(Class, Object, Map) per-method basis}.
  19686. </p>]]>
  19687. </doc>
  19688. </package>
  19689. <package name="org.apache.hadoop.io.serializer">
  19690. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  19691. <interface name="Deserializer" abstract="true"
  19692. static="false" final="false" visibility="public"
  19693. deprecated="not deprecated">
  19694. <method name="open"
  19695. abstract="false" native="false" synchronized="false"
  19696. static="false" final="false" visibility="public"
  19697. deprecated="not deprecated">
  19698. <param name="in" type="java.io.InputStream"/>
  19699. <exception name="IOException" type="java.io.IOException"/>
  19700. <doc>
  19701. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  19702. </doc>
  19703. </method>
  19704. <method name="deserialize" return="T"
  19705. abstract="false" native="false" synchronized="false"
  19706. static="false" final="false" visibility="public"
  19707. deprecated="not deprecated">
  19708. <param name="t" type="T"/>
  19709. <exception name="IOException" type="java.io.IOException"/>
  19710. <doc>
  19711. <![CDATA[<p>
  19712. Deserialize the next object from the underlying input stream.
  19713. If the object <code>t</code> is non-null then this deserializer
  19714. <i>may</i> set its internal state to the next object read from the input
  19715. stream. Otherwise, if the object <code>t</code> is null a new
  19716. deserialized object will be created.
  19717. </p>
  19718. @return the deserialized object]]>
  19719. </doc>
  19720. </method>
  19721. <method name="close"
  19722. abstract="false" native="false" synchronized="false"
  19723. static="false" final="false" visibility="public"
  19724. deprecated="not deprecated">
  19725. <exception name="IOException" type="java.io.IOException"/>
  19726. <doc>
  19727. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  19728. </doc>
  19729. </method>
  19730. <doc>
  19731. <![CDATA[<p>
  19732. Provides a facility for deserializing objects of type <T> from an
  19733. {@link InputStream}.
  19734. </p>
  19735. <p>
  19736. Deserializers are stateful, but must not buffer the input since
  19737. other producers may read from the input between calls to
  19738. {@link #deserialize(Object)}.
  19739. </p>
  19740. @param <T>]]>
  19741. </doc>
  19742. </interface>
  19743. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  19744. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  19745. <class name="DeserializerComparator" extends="java.lang.Object"
  19746. abstract="true"
  19747. static="false" final="false" visibility="public"
  19748. deprecated="not deprecated">
  19749. <implements name="org.apache.hadoop.io.RawComparator&lt;T&gt;"/>
  19750. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  19751. static="false" final="false" visibility="protected"
  19752. deprecated="not deprecated">
  19753. <exception name="IOException" type="java.io.IOException"/>
  19754. </constructor>
  19755. <method name="compare" return="int"
  19756. abstract="false" native="false" synchronized="false"
  19757. static="false" final="false" visibility="public"
  19758. deprecated="not deprecated">
  19759. <param name="b1" type="byte[]"/>
  19760. <param name="s1" type="int"/>
  19761. <param name="l1" type="int"/>
  19762. <param name="b2" type="byte[]"/>
  19763. <param name="s2" type="int"/>
  19764. <param name="l2" type="int"/>
  19765. </method>
  19766. <doc>
  19767. <![CDATA[<p>
  19768. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  19769. the objects to be compared so that the standard {@link Comparator} can
  19770. be used to compare them.
  19771. </p>
  19772. <p>
  19773. One may optimize compare-intensive operations by using a custom
  19774. implementation of {@link RawComparator} that operates directly
  19775. on byte representations.
  19776. </p>
  19777. @param <T>]]>
  19778. </doc>
  19779. </class>
  19780. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  19781. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  19782. <class name="JavaSerialization" extends="java.lang.Object"
  19783. abstract="false"
  19784. static="false" final="false" visibility="public"
  19785. deprecated="not deprecated">
  19786. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;java.io.Serializable&gt;"/>
  19787. <constructor name="JavaSerialization"
  19788. static="false" final="false" visibility="public"
  19789. deprecated="not deprecated">
  19790. </constructor>
  19791. <method name="accept" return="boolean"
  19792. abstract="false" native="false" synchronized="false"
  19793. static="false" final="false" visibility="public"
  19794. deprecated="not deprecated">
  19795. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  19796. </method>
  19797. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;java.io.Serializable&gt;"
  19798. abstract="false" native="false" synchronized="false"
  19799. static="false" final="false" visibility="public"
  19800. deprecated="not deprecated">
  19801. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  19802. </method>
  19803. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;java.io.Serializable&gt;"
  19804. abstract="false" native="false" synchronized="false"
  19805. static="false" final="false" visibility="public"
  19806. deprecated="not deprecated">
  19807. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  19808. </method>
  19809. <doc>
  19810. <![CDATA[<p>
  19811. An experimental {@link Serialization} for Java {@link Serializable} classes.
  19812. </p>
  19813. @see JavaSerializationComparator]]>
  19814. </doc>
  19815. </class>
  19816. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  19817. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  19818. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator&lt;T&gt;"
  19819. abstract="false"
  19820. static="false" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <constructor name="JavaSerializationComparator"
  19823. static="false" final="false" visibility="public"
  19824. deprecated="not deprecated">
  19825. <exception name="IOException" type="java.io.IOException"/>
  19826. </constructor>
  19827. <method name="compare" return="int"
  19828. abstract="false" native="false" synchronized="false"
  19829. static="false" final="false" visibility="public"
  19830. deprecated="not deprecated">
  19831. <param name="o1" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  19832. <param name="o2" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  19833. </method>
  19834. <doc>
  19835. <![CDATA[<p>
  19836. A {@link RawComparator} that uses a {@link JavaSerialization}
  19837. {@link Deserializer} to deserialize objects that are then compared via
  19838. their {@link Comparable} interfaces.
  19839. </p>
  19840. @param <T>
  19841. @see JavaSerialization]]>
  19842. </doc>
  19843. </class>
  19844. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  19845. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  19846. <interface name="Serialization" abstract="true"
  19847. static="false" final="false" visibility="public"
  19848. deprecated="not deprecated">
  19849. <method name="accept" return="boolean"
  19850. abstract="false" native="false" synchronized="false"
  19851. static="false" final="false" visibility="public"
  19852. deprecated="not deprecated">
  19853. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  19854. <doc>
  19855. <![CDATA[Allows clients to test whether this {@link Serialization}
  19856. supports the given class.]]>
  19857. </doc>
  19858. </method>
  19859. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  19860. abstract="false" native="false" synchronized="false"
  19861. static="false" final="false" visibility="public"
  19862. deprecated="not deprecated">
  19863. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  19864. <doc>
  19865. <![CDATA[@return a {@link Serializer} for the given class.]]>
  19866. </doc>
  19867. </method>
  19868. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  19869. abstract="false" native="false" synchronized="false"
  19870. static="false" final="false" visibility="public"
  19871. deprecated="not deprecated">
  19872. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  19873. <doc>
  19874. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  19875. </doc>
  19876. </method>
  19877. <doc>
  19878. <![CDATA[<p>
  19879. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  19880. </p>
  19881. @param <T>]]>
  19882. </doc>
  19883. </interface>
  19884. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  19885. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  19886. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  19887. abstract="false"
  19888. static="false" final="false" visibility="public"
  19889. deprecated="not deprecated">
  19890. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  19891. static="false" final="false" visibility="public"
  19892. deprecated="not deprecated">
  19893. <doc>
  19894. <![CDATA[<p>
  19895. Serializations are found by reading the <code>io.serializations</code>
  19896. property from <code>conf</code>, which is a comma-delimited list of
  19897. classnames.
  19898. </p>]]>
  19899. </doc>
  19900. </constructor>
  19901. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  19902. abstract="false" native="false" synchronized="false"
  19903. static="false" final="false" visibility="public"
  19904. deprecated="not deprecated">
  19905. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  19906. </method>
  19907. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  19908. abstract="false" native="false" synchronized="false"
  19909. static="false" final="false" visibility="public"
  19910. deprecated="not deprecated">
  19911. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  19912. </method>
  19913. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization&lt;T&gt;"
  19914. abstract="false" native="false" synchronized="false"
  19915. static="false" final="false" visibility="public"
  19916. deprecated="not deprecated">
  19917. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  19918. </method>
  19919. <doc>
  19920. <![CDATA[<p>
  19921. A factory for {@link Serialization}s.
  19922. </p>]]>
  19923. </doc>
  19924. </class>
  19925. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  19926. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  19927. <interface name="Serializer" abstract="true"
  19928. static="false" final="false" visibility="public"
  19929. deprecated="not deprecated">
  19930. <method name="open"
  19931. abstract="false" native="false" synchronized="false"
  19932. static="false" final="false" visibility="public"
  19933. deprecated="not deprecated">
  19934. <param name="out" type="java.io.OutputStream"/>
  19935. <exception name="IOException" type="java.io.IOException"/>
  19936. <doc>
  19937. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  19938. </doc>
  19939. </method>
  19940. <method name="serialize"
  19941. abstract="false" native="false" synchronized="false"
  19942. static="false" final="false" visibility="public"
  19943. deprecated="not deprecated">
  19944. <param name="t" type="T"/>
  19945. <exception name="IOException" type="java.io.IOException"/>
  19946. <doc>
  19947. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  19948. </doc>
  19949. </method>
  19950. <method name="close"
  19951. abstract="false" native="false" synchronized="false"
  19952. static="false" final="false" visibility="public"
  19953. deprecated="not deprecated">
  19954. <exception name="IOException" type="java.io.IOException"/>
  19955. <doc>
  19956. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  19957. </doc>
  19958. </method>
  19959. <doc>
  19960. <![CDATA[<p>
  19961. Provides a facility for serializing objects of type <T> to an
  19962. {@link OutputStream}.
  19963. </p>
  19964. <p>
  19965. Serializers are stateful, but must not buffer the output since
  19966. other producers may write to the output between calls to
  19967. {@link #serialize(Object)}.
  19968. </p>
  19969. @param <T>]]>
  19970. </doc>
  19971. </interface>
  19972. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  19973. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  19974. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  19975. abstract="false"
  19976. static="false" final="false" visibility="public"
  19977. deprecated="not deprecated">
  19978. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;org.apache.hadoop.io.Writable&gt;"/>
  19979. <constructor name="WritableSerialization"
  19980. static="false" final="false" visibility="public"
  19981. deprecated="not deprecated">
  19982. </constructor>
  19983. <method name="accept" return="boolean"
  19984. abstract="false" native="false" synchronized="false"
  19985. static="false" final="false" visibility="public"
  19986. deprecated="not deprecated">
  19987. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  19988. </method>
  19989. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;org.apache.hadoop.io.Writable&gt;"
  19990. abstract="false" native="false" synchronized="false"
  19991. static="false" final="false" visibility="public"
  19992. deprecated="not deprecated">
  19993. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  19994. </method>
  19995. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;org.apache.hadoop.io.Writable&gt;"
  19996. abstract="false" native="false" synchronized="false"
  19997. static="false" final="false" visibility="public"
  19998. deprecated="not deprecated">
  19999. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  20000. </method>
  20001. <doc>
  20002. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  20003. {@link Writable#write(java.io.DataOutput)} and
  20004. {@link Writable#readFields(java.io.DataInput)}.]]>
  20005. </doc>
  20006. </class>
  20007. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  20008. <doc>
  20009. <![CDATA[<p>
  20010. This package provides a mechanism for using different serialization frameworks
  20011. in Hadoop. The property "io.serializations" defines a list of
  20012. {@link org.apache.hadoop.io.serializer.Serialization}s that know how to create
  20013. {@link org.apache.hadoop.io.serializer.Serializer}s and
  20014. {@link org.apache.hadoop.io.serializer.Deserializer}s.
  20015. </p>
  20016. <p>
  20017. To add a new serialization framework write an implementation of
  20018. {@link org.apache.hadoop.io.serializer.Serialization} and add its name to the
  20019. "io.serializations" property.
  20020. </p>]]>
  20021. </doc>
  20022. </package>
  20023. <package name="org.apache.hadoop.ipc">
  20024. <!-- start class org.apache.hadoop.ipc.Client -->
  20025. <class name="Client" extends="java.lang.Object"
  20026. abstract="false"
  20027. static="false" final="false" visibility="public"
  20028. deprecated="not deprecated">
  20029. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  20030. static="false" final="false" visibility="public"
  20031. deprecated="not deprecated">
  20032. <doc>
  20033. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  20034. class.]]>
  20035. </doc>
  20036. </constructor>
  20037. <constructor name="Client" type="java.lang.Class&lt;?&gt;, org.apache.hadoop.conf.Configuration"
  20038. static="false" final="false" visibility="public"
  20039. deprecated="not deprecated">
  20040. <doc>
  20041. <![CDATA[Construct an IPC client with the default SocketFactory
  20042. @param valueClass
  20043. @param conf]]>
  20044. </doc>
  20045. </constructor>
  20046. <method name="stop"
  20047. abstract="false" native="false" synchronized="false"
  20048. static="false" final="false" visibility="public"
  20049. deprecated="not deprecated">
  20050. <doc>
  20051. <![CDATA[Stop all threads related to this client. No further calls may be made
  20052. using this client.]]>
  20053. </doc>
  20054. </method>
  20055. <method name="setTimeout"
  20056. abstract="false" native="false" synchronized="false"
  20057. static="false" final="false" visibility="public"
  20058. deprecated="not deprecated">
  20059. <param name="timeout" type="int"/>
  20060. <doc>
  20061. <![CDATA[Sets the timeout used for network i/o.]]>
  20062. </doc>
  20063. </method>
  20064. <method name="call" return="org.apache.hadoop.io.Writable"
  20065. abstract="false" native="false" synchronized="false"
  20066. static="false" final="false" visibility="public"
  20067. deprecated="not deprecated">
  20068. <param name="param" type="org.apache.hadoop.io.Writable"/>
  20069. <param name="address" type="java.net.InetSocketAddress"/>
  20070. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  20071. <exception name="IOException" type="java.io.IOException"/>
  20072. <doc>
  20073. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  20074. <code>address</code>, returning the value. Throws exceptions if there are
  20075. network problems or if the remote code threw an exception.]]>
  20076. </doc>
  20077. </method>
  20078. <method name="call" return="org.apache.hadoop.io.Writable"
  20079. abstract="false" native="false" synchronized="false"
  20080. static="false" final="false" visibility="public"
  20081. deprecated="not deprecated">
  20082. <param name="param" type="org.apache.hadoop.io.Writable"/>
  20083. <param name="addr" type="java.net.InetSocketAddress"/>
  20084. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  20085. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  20086. <exception name="IOException" type="java.io.IOException"/>
  20087. </method>
  20088. <method name="call" return="org.apache.hadoop.io.Writable[]"
  20089. abstract="false" native="false" synchronized="false"
  20090. static="false" final="false" visibility="public"
  20091. deprecated="not deprecated">
  20092. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  20093. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  20094. <exception name="IOException" type="java.io.IOException"/>
  20095. <doc>
  20096. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  20097. corresponding address. When all values are available, or have timed out
  20098. or errored, the collected results are returned in an array. The array
  20099. contains nulls for calls that timed out or errored.]]>
  20100. </doc>
  20101. </method>
  20102. <field name="LOG" type="org.apache.commons.logging.Log"
  20103. transient="false" volatile="false"
  20104. static="true" final="true" visibility="public"
  20105. deprecated="not deprecated">
  20106. </field>
  20107. <doc>
  20108. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  20109. parameter, and return a {@link Writable} as their value. A service runs on
  20110. a port and is defined by a parameter class and a value class.
  20111. @see Server]]>
  20112. </doc>
  20113. </class>
  20114. <!-- end class org.apache.hadoop.ipc.Client -->
  20115. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  20116. <class name="RemoteException" extends="java.io.IOException"
  20117. abstract="false"
  20118. static="false" final="false" visibility="public"
  20119. deprecated="not deprecated">
  20120. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. </constructor>
  20124. <method name="getClassName" return="java.lang.String"
  20125. abstract="false" native="false" synchronized="false"
  20126. static="false" final="false" visibility="public"
  20127. deprecated="not deprecated">
  20128. </method>
  20129. <method name="unwrapRemoteException" return="java.io.IOException"
  20130. abstract="false" native="false" synchronized="false"
  20131. static="false" final="false" visibility="public"
  20132. deprecated="not deprecated">
  20133. <param name="lookupTypes" type="java.lang.Class[]"/>
  20134. <doc>
  20135. <![CDATA[If this remote exception wraps up one of the lookupTypes
  20136. then return this exception.
  20137. <p>
  20138. Unwraps any IOException.
  20139. @param lookupTypes the desired exception class.
  20140. @return IOException, which is either the lookupClass exception or this.]]>
  20141. </doc>
  20142. </method>
  20143. <method name="unwrapRemoteException" return="java.io.IOException"
  20144. abstract="false" native="false" synchronized="false"
  20145. static="false" final="false" visibility="public"
  20146. deprecated="not deprecated">
  20147. <doc>
  20148. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  20149. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  20150. a <code>String</code> as a parameter.
  20151. Otherwise it returns this.
  20152. @return <code>Throwable]]>
  20153. </doc>
  20154. </method>
  20155. </class>
  20156. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  20157. <!-- start class org.apache.hadoop.ipc.RPC -->
  20158. <class name="RPC" extends="java.lang.Object"
  20159. abstract="false"
  20160. static="false" final="false" visibility="public"
  20161. deprecated="not deprecated">
  20162. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  20163. abstract="false" native="false" synchronized="false"
  20164. static="true" final="false" visibility="public"
  20165. deprecated="not deprecated">
  20166. <param name="protocol" type="java.lang.Class"/>
  20167. <param name="clientVersion" type="long"/>
  20168. <param name="addr" type="java.net.InetSocketAddress"/>
  20169. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20170. <exception name="IOException" type="java.io.IOException"/>
  20171. </method>
  20172. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  20173. abstract="false" native="false" synchronized="false"
  20174. static="true" final="false" visibility="public"
  20175. deprecated="not deprecated">
  20176. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  20177. <param name="clientVersion" type="long"/>
  20178. <param name="addr" type="java.net.InetSocketAddress"/>
  20179. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20180. <param name="factory" type="javax.net.SocketFactory"/>
  20181. <exception name="IOException" type="java.io.IOException"/>
  20182. <doc>
  20183. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  20184. talking to a server at the named address.]]>
  20185. </doc>
  20186. </method>
  20187. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  20188. abstract="false" native="false" synchronized="false"
  20189. static="true" final="false" visibility="public"
  20190. deprecated="not deprecated">
  20191. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  20192. <param name="clientVersion" type="long"/>
  20193. <param name="addr" type="java.net.InetSocketAddress"/>
  20194. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  20195. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20196. <param name="factory" type="javax.net.SocketFactory"/>
  20197. <exception name="IOException" type="java.io.IOException"/>
  20198. <doc>
  20199. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  20200. talking to a server at the named address.]]>
  20201. </doc>
  20202. </method>
  20203. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  20204. abstract="false" native="false" synchronized="false"
  20205. static="true" final="false" visibility="public"
  20206. deprecated="not deprecated">
  20207. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  20208. <param name="clientVersion" type="long"/>
  20209. <param name="addr" type="java.net.InetSocketAddress"/>
  20210. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20211. <exception name="IOException" type="java.io.IOException"/>
  20212. <doc>
  20213. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  20214. @param protocol
  20215. @param clientVersion
  20216. @param addr
  20217. @param conf
  20218. @return a proxy instance
  20219. @throws IOException]]>
  20220. </doc>
  20221. </method>
  20222. <method name="stopProxy"
  20223. abstract="false" native="false" synchronized="false"
  20224. static="true" final="false" visibility="public"
  20225. deprecated="not deprecated">
  20226. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  20227. <doc>
  20228. <![CDATA[Stop this proxy and release its invoker's resource
  20229. @param proxy the proxy to be stopped]]>
  20230. </doc>
  20231. </method>
  20232. <method name="call" return="java.lang.Object[]"
  20233. abstract="false" native="false" synchronized="false"
  20234. static="true" final="false" visibility="public"
  20235. deprecated="not deprecated">
  20236. <param name="method" type="java.lang.reflect.Method"/>
  20237. <param name="params" type="java.lang.Object[][]"/>
  20238. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  20239. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20240. <exception name="IOException" type="java.io.IOException"/>
  20241. <doc>
  20242. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  20243. </doc>
  20244. </method>
  20245. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  20246. abstract="false" native="false" synchronized="false"
  20247. static="true" final="false" visibility="public"
  20248. deprecated="not deprecated">
  20249. <param name="instance" type="java.lang.Object"/>
  20250. <param name="bindAddress" type="java.lang.String"/>
  20251. <param name="port" type="int"/>
  20252. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20253. <exception name="IOException" type="java.io.IOException"/>
  20254. <doc>
  20255. <![CDATA[Construct a server for a protocol implementation instance listening on a
  20256. port and address.]]>
  20257. </doc>
  20258. </method>
  20259. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  20260. abstract="false" native="false" synchronized="false"
  20261. static="true" final="false" visibility="public"
  20262. deprecated="not deprecated">
  20263. <param name="instance" type="java.lang.Object"/>
  20264. <param name="bindAddress" type="java.lang.String"/>
  20265. <param name="port" type="int"/>
  20266. <param name="numHandlers" type="int"/>
  20267. <param name="verbose" type="boolean"/>
  20268. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20269. <exception name="IOException" type="java.io.IOException"/>
  20270. <doc>
  20271. <![CDATA[Construct a server for a protocol implementation instance listening on a
  20272. port and address.]]>
  20273. </doc>
  20274. </method>
  20275. <doc>
  20276. <![CDATA[A simple RPC mechanism.
  20277. A <i>protocol</i> is a Java interface. All parameters and return types must
  20278. be one of:
  20279. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  20280. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  20281. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  20282. <li>a {@link String}; or</li>
  20283. <li>a {@link Writable}; or</li>
  20284. <li>an array of the above types</li> </ul>
  20285. All methods in the protocol should throw only IOException. No field data of
  20286. the protocol instance is transmitted.]]>
  20287. </doc>
  20288. </class>
  20289. <!-- end class org.apache.hadoop.ipc.RPC -->
  20290. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  20291. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  20292. abstract="false"
  20293. static="true" final="false" visibility="public"
  20294. deprecated="not deprecated">
  20295. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  20296. static="false" final="false" visibility="public"
  20297. deprecated="not deprecated">
  20298. <exception name="IOException" type="java.io.IOException"/>
  20299. <doc>
  20300. <![CDATA[Construct an RPC server.
  20301. @param instance the instance whose methods will be called
  20302. @param conf the configuration to use
  20303. @param bindAddress the address to bind on to listen for connection
  20304. @param port the port to listen for connections on]]>
  20305. </doc>
  20306. </constructor>
  20307. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  20308. static="false" final="false" visibility="public"
  20309. deprecated="not deprecated">
  20310. <exception name="IOException" type="java.io.IOException"/>
  20311. <doc>
  20312. <![CDATA[Construct an RPC server.
  20313. @param instance the instance whose methods will be called
  20314. @param conf the configuration to use
  20315. @param bindAddress the address to bind on to listen for connection
  20316. @param port the port to listen for connections on
  20317. @param numHandlers the number of method handler threads to run
  20318. @param verbose whether each call should be logged]]>
  20319. </doc>
  20320. </constructor>
  20321. <method name="call" return="org.apache.hadoop.io.Writable"
  20322. abstract="false" native="false" synchronized="false"
  20323. static="false" final="false" visibility="public"
  20324. deprecated="not deprecated">
  20325. <param name="param" type="org.apache.hadoop.io.Writable"/>
  20326. <param name="receivedTime" type="long"/>
  20327. <exception name="IOException" type="java.io.IOException"/>
  20328. </method>
  20329. <doc>
  20330. <![CDATA[An RPC Server.]]>
  20331. </doc>
  20332. </class>
  20333. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  20334. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  20335. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  20336. abstract="false"
  20337. static="true" final="false" visibility="public"
  20338. deprecated="not deprecated">
  20339. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  20340. static="false" final="false" visibility="public"
  20341. deprecated="not deprecated">
  20342. <doc>
  20343. <![CDATA[Create a version mismatch exception
  20344. @param interfaceName the name of the protocol mismatch
  20345. @param clientVersion the client's version of the protocol
  20346. @param serverVersion the server's version of the protocol]]>
  20347. </doc>
  20348. </constructor>
  20349. <method name="getInterfaceName" return="java.lang.String"
  20350. abstract="false" native="false" synchronized="false"
  20351. static="false" final="false" visibility="public"
  20352. deprecated="not deprecated">
  20353. <doc>
  20354. <![CDATA[Get the interface name
  20355. @return the java class name
  20356. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  20357. </doc>
  20358. </method>
  20359. <method name="getClientVersion" return="long"
  20360. abstract="false" native="false" synchronized="false"
  20361. static="false" final="false" visibility="public"
  20362. deprecated="not deprecated">
  20363. <doc>
  20364. <![CDATA[Get the client's preferred version]]>
  20365. </doc>
  20366. </method>
  20367. <method name="getServerVersion" return="long"
  20368. abstract="false" native="false" synchronized="false"
  20369. static="false" final="false" visibility="public"
  20370. deprecated="not deprecated">
  20371. <doc>
  20372. <![CDATA[Get the server's agreed to version.]]>
  20373. </doc>
  20374. </method>
  20375. <doc>
  20376. <![CDATA[A version mismatch for the RPC protocol.]]>
  20377. </doc>
  20378. </class>
  20379. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  20380. <!-- start class org.apache.hadoop.ipc.Server -->
  20381. <class name="Server" extends="java.lang.Object"
  20382. abstract="true"
  20383. static="false" final="false" visibility="public"
  20384. deprecated="not deprecated">
  20385. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  20386. static="false" final="false" visibility="protected"
  20387. deprecated="not deprecated">
  20388. <exception name="IOException" type="java.io.IOException"/>
  20389. </constructor>
  20390. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  20391. static="false" final="false" visibility="protected"
  20392. deprecated="not deprecated">
  20393. <exception name="IOException" type="java.io.IOException"/>
  20394. <doc>
  20395. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  20396. be of the named class. The <code>handlerCount</handlerCount> determines
  20397. the number of handler threads that will be used to process calls.]]>
  20398. </doc>
  20399. </constructor>
  20400. <method name="get" return="org.apache.hadoop.ipc.Server"
  20401. abstract="false" native="false" synchronized="false"
  20402. static="true" final="false" visibility="public"
  20403. deprecated="not deprecated">
  20404. <doc>
  20405. <![CDATA[Returns the server instance called under or null. May be called under
  20406. {@link #call(Writable, long)} implementations, and under {@link Writable}
  20407. methods of paramters and return values. Permits applications to access
  20408. the server context.]]>
  20409. </doc>
  20410. </method>
  20411. <method name="getRemoteIp" return="java.net.InetAddress"
  20412. abstract="false" native="false" synchronized="false"
  20413. static="true" final="false" visibility="public"
  20414. deprecated="not deprecated">
  20415. <doc>
  20416. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  20417. Returns null incase of an error.]]>
  20418. </doc>
  20419. </method>
  20420. <method name="getRemoteAddress" return="java.lang.String"
  20421. abstract="false" native="false" synchronized="false"
  20422. static="true" final="false" visibility="public"
  20423. deprecated="not deprecated">
  20424. <doc>
  20425. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  20426. Returns null in case of an error.]]>
  20427. </doc>
  20428. </method>
  20429. <method name="bind"
  20430. abstract="false" native="false" synchronized="false"
  20431. static="true" final="false" visibility="public"
  20432. deprecated="not deprecated">
  20433. <param name="socket" type="java.net.ServerSocket"/>
  20434. <param name="address" type="java.net.InetSocketAddress"/>
  20435. <param name="backlog" type="int"/>
  20436. <exception name="IOException" type="java.io.IOException"/>
  20437. <doc>
  20438. <![CDATA[A convience method to bind to a given address and report
  20439. better exceptions if the address is not a valid host.
  20440. @param socket the socket to bind
  20441. @param address the address to bind to
  20442. @param backlog the number of connections allowed in the queue
  20443. @throws BindException if the address can't be bound
  20444. @throws UnknownHostException if the address isn't a valid host name
  20445. @throws IOException other random errors from bind]]>
  20446. </doc>
  20447. </method>
  20448. <method name="setTimeout"
  20449. abstract="false" native="false" synchronized="false"
  20450. static="false" final="false" visibility="public"
  20451. deprecated="not deprecated">
  20452. <param name="timeout" type="int"/>
  20453. <doc>
  20454. <![CDATA[Sets the timeout used for network i/o.]]>
  20455. </doc>
  20456. </method>
  20457. <method name="setSocketSendBufSize"
  20458. abstract="false" native="false" synchronized="false"
  20459. static="false" final="false" visibility="public"
  20460. deprecated="not deprecated">
  20461. <param name="size" type="int"/>
  20462. <doc>
  20463. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  20464. </doc>
  20465. </method>
  20466. <method name="start"
  20467. abstract="false" native="false" synchronized="true"
  20468. static="false" final="false" visibility="public"
  20469. deprecated="not deprecated">
  20470. <exception name="IOException" type="java.io.IOException"/>
  20471. <doc>
  20472. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  20473. </doc>
  20474. </method>
  20475. <method name="stop"
  20476. abstract="false" native="false" synchronized="true"
  20477. static="false" final="false" visibility="public"
  20478. deprecated="not deprecated">
  20479. <doc>
  20480. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  20481. </doc>
  20482. </method>
  20483. <method name="join"
  20484. abstract="false" native="false" synchronized="true"
  20485. static="false" final="false" visibility="public"
  20486. deprecated="not deprecated">
  20487. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  20488. <doc>
  20489. <![CDATA[Wait for the server to be stopped.
  20490. Does not wait for all subthreads to finish.
  20491. See {@link #stop()}.]]>
  20492. </doc>
  20493. </method>
  20494. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  20495. abstract="false" native="false" synchronized="true"
  20496. static="false" final="false" visibility="public"
  20497. deprecated="not deprecated">
  20498. <doc>
  20499. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  20500. @return the socket (ip+port) on which the RPC server is listening to.]]>
  20501. </doc>
  20502. </method>
  20503. <method name="call" return="org.apache.hadoop.io.Writable"
  20504. abstract="true" native="false" synchronized="false"
  20505. static="false" final="false" visibility="public"
  20506. deprecated="not deprecated">
  20507. <param name="param" type="org.apache.hadoop.io.Writable"/>
  20508. <param name="receiveTime" type="long"/>
  20509. <exception name="IOException" type="java.io.IOException"/>
  20510. <doc>
  20511. <![CDATA[Called for each call.]]>
  20512. </doc>
  20513. </method>
  20514. <method name="getNumOpenConnections" return="int"
  20515. abstract="false" native="false" synchronized="false"
  20516. static="false" final="false" visibility="public"
  20517. deprecated="not deprecated">
  20518. <doc>
  20519. <![CDATA[The number of open RPC conections
  20520. @return the number of open rpc connections]]>
  20521. </doc>
  20522. </method>
  20523. <method name="getCallQueueLen" return="int"
  20524. abstract="false" native="false" synchronized="false"
  20525. static="false" final="false" visibility="public"
  20526. deprecated="not deprecated">
  20527. <doc>
  20528. <![CDATA[The number of rpc calls in the queue.
  20529. @return The number of rpc calls in the queue.]]>
  20530. </doc>
  20531. </method>
  20532. <field name="HEADER" type="java.nio.ByteBuffer"
  20533. transient="false" volatile="false"
  20534. static="true" final="true" visibility="public"
  20535. deprecated="not deprecated">
  20536. <doc>
  20537. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  20538. </doc>
  20539. </field>
  20540. <field name="CURRENT_VERSION" type="byte"
  20541. transient="false" volatile="false"
  20542. static="true" final="true" visibility="public"
  20543. deprecated="not deprecated">
  20544. </field>
  20545. <field name="LOG" type="org.apache.commons.logging.Log"
  20546. transient="false" volatile="false"
  20547. static="true" final="true" visibility="public"
  20548. deprecated="not deprecated">
  20549. </field>
  20550. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  20551. transient="false" volatile="false"
  20552. static="false" final="false" visibility="protected"
  20553. deprecated="not deprecated">
  20554. </field>
  20555. <doc>
  20556. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  20557. parameter, and return a {@link Writable} as their value. A service runs on
  20558. a port and is defined by a parameter class and a value class.
  20559. @see Client]]>
  20560. </doc>
  20561. </class>
  20562. <!-- end class org.apache.hadoop.ipc.Server -->
  20563. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  20564. <interface name="VersionedProtocol" abstract="true"
  20565. static="false" final="false" visibility="public"
  20566. deprecated="not deprecated">
  20567. <method name="getProtocolVersion" return="long"
  20568. abstract="false" native="false" synchronized="false"
  20569. static="false" final="false" visibility="public"
  20570. deprecated="not deprecated">
  20571. <param name="protocol" type="java.lang.String"/>
  20572. <param name="clientVersion" type="long"/>
  20573. <exception name="IOException" type="java.io.IOException"/>
  20574. <doc>
  20575. <![CDATA[Return protocol version corresponding to protocol interface.
  20576. @param protocol The classname of the protocol interface
  20577. @param clientVersion The version of the protocol that the client speaks
  20578. @return the version that the server will speak]]>
  20579. </doc>
  20580. </method>
  20581. <doc>
  20582. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  20583. Subclasses of this interface are also supposed to have
  20584. a static final long versionID field.]]>
  20585. </doc>
  20586. </interface>
  20587. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  20588. <doc>
  20589. <![CDATA[Tools to help define network clients and servers.]]>
  20590. </doc>
  20591. </package>
  20592. <package name="org.apache.hadoop.ipc.metrics">
  20593. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  20594. <class name="RpcMetrics" extends="java.lang.Object"
  20595. abstract="false"
  20596. static="false" final="false" visibility="public"
  20597. deprecated="not deprecated">
  20598. <implements name="org.apache.hadoop.metrics.Updater"/>
  20599. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  20600. static="false" final="false" visibility="public"
  20601. deprecated="not deprecated">
  20602. </constructor>
  20603. <method name="doUpdates"
  20604. abstract="false" native="false" synchronized="false"
  20605. static="false" final="false" visibility="public"
  20606. deprecated="not deprecated">
  20607. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  20608. <doc>
  20609. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  20610. </doc>
  20611. </method>
  20612. <method name="shutdown"
  20613. abstract="false" native="false" synchronized="false"
  20614. static="false" final="false" visibility="public"
  20615. deprecated="not deprecated">
  20616. </method>
  20617. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  20618. transient="false" volatile="false"
  20619. static="false" final="false" visibility="public"
  20620. deprecated="not deprecated">
  20621. <doc>
  20622. <![CDATA[The metrics variables are public:
  20623. - they can be set directly by calling their set/inc methods
  20624. -they can also be read directly - e.g. JMX does this.]]>
  20625. </doc>
  20626. </field>
  20627. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  20628. transient="false" volatile="false"
  20629. static="false" final="false" visibility="public"
  20630. deprecated="not deprecated">
  20631. </field>
  20632. <field name="rpcDiscardedOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  20633. transient="false" volatile="false"
  20634. static="false" final="false" visibility="public"
  20635. deprecated="not deprecated">
  20636. </field>
  20637. <field name="metricsList" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.metrics.util.MetricsTimeVaryingRate&gt;"
  20638. transient="false" volatile="false"
  20639. static="false" final="false" visibility="public"
  20640. deprecated="not deprecated">
  20641. </field>
  20642. <doc>
  20643. <![CDATA[This class is for maintaining the various RPC statistics
  20644. and publishing them through the metrics interfaces.
  20645. This also registers the JMX MBean for RPC.
  20646. <p>
  20647. This class has a number of metrics variables that are publicly accessible;
  20648. these variables (objects) have methods to update their values;
  20649. for example:
  20650. <p> {@link #rpcDiscardedOps}.inc(time)]]>
  20651. </doc>
  20652. </class>
  20653. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  20654. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  20655. <interface name="RpcMgtMBean" abstract="true"
  20656. static="false" final="false" visibility="public"
  20657. deprecated="not deprecated">
  20658. <method name="getRpcOpsNumber" return="int"
  20659. abstract="false" native="false" synchronized="false"
  20660. static="false" final="false" visibility="public"
  20661. deprecated="not deprecated">
  20662. <doc>
  20663. <![CDATA[Number of RPC Operations in the last interval
  20664. @return number of operations]]>
  20665. </doc>
  20666. </method>
  20667. <method name="getRpcOpsAvgProcessingTime" return="long"
  20668. abstract="false" native="false" synchronized="false"
  20669. static="false" final="false" visibility="public"
  20670. deprecated="not deprecated">
  20671. <doc>
  20672. <![CDATA[Average time for RPC Operations in last interval
  20673. @return time in msec]]>
  20674. </doc>
  20675. </method>
  20676. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  20677. abstract="false" native="false" synchronized="false"
  20678. static="false" final="false" visibility="public"
  20679. deprecated="not deprecated">
  20680. <doc>
  20681. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  20682. @return time in msec]]>
  20683. </doc>
  20684. </method>
  20685. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  20686. abstract="false" native="false" synchronized="false"
  20687. static="false" final="false" visibility="public"
  20688. deprecated="not deprecated">
  20689. <doc>
  20690. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  20691. @return time in msec]]>
  20692. </doc>
  20693. </method>
  20694. <method name="getRpcOpsAvgQueueTime" return="long"
  20695. abstract="false" native="false" synchronized="false"
  20696. static="false" final="false" visibility="public"
  20697. deprecated="not deprecated">
  20698. <doc>
  20699. <![CDATA[The Average RPC Operation Queued Time in the last interval
  20700. @return time in msec]]>
  20701. </doc>
  20702. </method>
  20703. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  20704. abstract="false" native="false" synchronized="false"
  20705. static="false" final="false" visibility="public"
  20706. deprecated="not deprecated">
  20707. <doc>
  20708. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  20709. @return time in msec]]>
  20710. </doc>
  20711. </method>
  20712. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  20713. abstract="false" native="false" synchronized="false"
  20714. static="false" final="false" visibility="public"
  20715. deprecated="not deprecated">
  20716. <doc>
  20717. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  20718. @return time in msec]]>
  20719. </doc>
  20720. </method>
  20721. <method name="getRpcOpsDiscardedOpsNum" return="int"
  20722. abstract="false" native="false" synchronized="false"
  20723. static="false" final="false" visibility="public"
  20724. deprecated="not deprecated">
  20725. <doc>
  20726. <![CDATA[Number of Discarded RPC operations due to timeout in the last interval
  20727. @return number of operations]]>
  20728. </doc>
  20729. </method>
  20730. <method name="getRpcOpsDiscardedOpsQtime" return="long"
  20731. abstract="false" native="false" synchronized="false"
  20732. static="false" final="false" visibility="public"
  20733. deprecated="not deprecated">
  20734. <doc>
  20735. <![CDATA[Average Queued time for Discarded RPC Operations in last interval
  20736. @return time in msec]]>
  20737. </doc>
  20738. </method>
  20739. <method name="resetAllMinMax"
  20740. abstract="false" native="false" synchronized="false"
  20741. static="false" final="false" visibility="public"
  20742. deprecated="not deprecated">
  20743. <doc>
  20744. <![CDATA[Reset all min max times]]>
  20745. </doc>
  20746. </method>
  20747. <method name="getNumOpenConnections" return="int"
  20748. abstract="false" native="false" synchronized="false"
  20749. static="false" final="false" visibility="public"
  20750. deprecated="not deprecated">
  20751. <doc>
  20752. <![CDATA[The number of open RPC conections
  20753. @return the number of open rpc connections]]>
  20754. </doc>
  20755. </method>
  20756. <method name="getCallQueueLen" return="int"
  20757. abstract="false" native="false" synchronized="false"
  20758. static="false" final="false" visibility="public"
  20759. deprecated="not deprecated">
  20760. <doc>
  20761. <![CDATA[The number of rpc calls in the queue.
  20762. @return The number of rpc calls in the queue.]]>
  20763. </doc>
  20764. </method>
  20765. <doc>
  20766. <![CDATA[This is the JMX management interface for the RPC layer.
  20767. Many of the statistics are sampled and averaged on an interval
  20768. which can be specified in the metrics config file.
  20769. <p>
  20770. For the statistics that are sampled and averaged, one must specify
  20771. a metrics context that does periodic update calls. Most do.
  20772. The default Null metrics context however does NOT. So if you aren't
  20773. using any other metrics context then you can turn on the viewing and averaging
  20774. of sampled metrics by specifying the following two lines
  20775. in the hadoop-meterics.properties file:
  20776. <pre>
  20777. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  20778. rpc.period=10
  20779. </pre>
  20780. <p>
  20781. Note that the metrics are collected regardless of the context used.
  20782. The context with the update thread is used to average the data periodically]]>
  20783. </doc>
  20784. </interface>
  20785. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  20786. </package>
  20787. <package name="org.apache.hadoop.log">
  20788. <!-- start class org.apache.hadoop.log.LogLevel -->
  20789. <class name="LogLevel" extends="java.lang.Object"
  20790. abstract="false"
  20791. static="false" final="false" visibility="public"
  20792. deprecated="not deprecated">
  20793. <constructor name="LogLevel"
  20794. static="false" final="false" visibility="public"
  20795. deprecated="not deprecated">
  20796. </constructor>
  20797. <method name="main"
  20798. abstract="false" native="false" synchronized="false"
  20799. static="true" final="false" visibility="public"
  20800. deprecated="not deprecated">
  20801. <param name="args" type="java.lang.String[]"/>
  20802. <doc>
  20803. <![CDATA[A command line implementation]]>
  20804. </doc>
  20805. </method>
  20806. <field name="USAGES" type="java.lang.String"
  20807. transient="false" volatile="false"
  20808. static="true" final="true" visibility="public"
  20809. deprecated="not deprecated">
  20810. </field>
  20811. <doc>
  20812. <![CDATA[Change log level in runtime.]]>
  20813. </doc>
  20814. </class>
  20815. <!-- end class org.apache.hadoop.log.LogLevel -->
  20816. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  20817. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  20818. abstract="false"
  20819. static="true" final="false" visibility="public"
  20820. deprecated="not deprecated">
  20821. <constructor name="LogLevel.Servlet"
  20822. static="false" final="false" visibility="public"
  20823. deprecated="not deprecated">
  20824. </constructor>
  20825. <method name="doGet"
  20826. abstract="false" native="false" synchronized="false"
  20827. static="false" final="false" visibility="public"
  20828. deprecated="not deprecated">
  20829. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  20830. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  20831. <exception name="ServletException" type="javax.servlet.ServletException"/>
  20832. <exception name="IOException" type="java.io.IOException"/>
  20833. </method>
  20834. <doc>
  20835. <![CDATA[A servlet implementation]]>
  20836. </doc>
  20837. </class>
  20838. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  20839. </package>
  20840. <package name="org.apache.hadoop.mapred">
  20841. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  20842. <class name="ClusterStatus" extends="java.lang.Object"
  20843. abstract="false"
  20844. static="false" final="false" visibility="public"
  20845. deprecated="not deprecated">
  20846. <implements name="org.apache.hadoop.io.Writable"/>
  20847. <method name="getTaskTrackers" return="int"
  20848. abstract="false" native="false" synchronized="false"
  20849. static="false" final="false" visibility="public"
  20850. deprecated="not deprecated">
  20851. <doc>
  20852. <![CDATA[Get the number of task trackers in the cluster.
  20853. @return the number of task trackers in the cluster.]]>
  20854. </doc>
  20855. </method>
  20856. <method name="getMapTasks" return="int"
  20857. abstract="false" native="false" synchronized="false"
  20858. static="false" final="false" visibility="public"
  20859. deprecated="not deprecated">
  20860. <doc>
  20861. <![CDATA[Get the number of currently running map tasks in the cluster.
  20862. @return the number of currently running map tasks in the cluster.]]>
  20863. </doc>
  20864. </method>
  20865. <method name="getReduceTasks" return="int"
  20866. abstract="false" native="false" synchronized="false"
  20867. static="false" final="false" visibility="public"
  20868. deprecated="not deprecated">
  20869. <doc>
  20870. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  20871. @return the number of currently running reduce tasks in the cluster.]]>
  20872. </doc>
  20873. </method>
  20874. <method name="getMaxMapTasks" return="int"
  20875. abstract="false" native="false" synchronized="false"
  20876. static="false" final="false" visibility="public"
  20877. deprecated="not deprecated">
  20878. <doc>
  20879. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  20880. @return the maximum capacity for running map tasks in the cluster.]]>
  20881. </doc>
  20882. </method>
  20883. <method name="getMaxReduceTasks" return="int"
  20884. abstract="false" native="false" synchronized="false"
  20885. static="false" final="false" visibility="public"
  20886. deprecated="not deprecated">
  20887. <doc>
  20888. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  20889. @return the maximum capacity for running reduce tasks in the cluster.]]>
  20890. </doc>
  20891. </method>
  20892. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  20893. abstract="false" native="false" synchronized="false"
  20894. static="false" final="false" visibility="public"
  20895. deprecated="not deprecated">
  20896. <doc>
  20897. <![CDATA[Get the current state of the <code>JobTracker</code>,
  20898. as {@link JobTracker.State}
  20899. @return the current state of the <code>JobTracker</code>.]]>
  20900. </doc>
  20901. </method>
  20902. <method name="write"
  20903. abstract="false" native="false" synchronized="false"
  20904. static="false" final="false" visibility="public"
  20905. deprecated="not deprecated">
  20906. <param name="out" type="java.io.DataOutput"/>
  20907. <exception name="IOException" type="java.io.IOException"/>
  20908. </method>
  20909. <method name="readFields"
  20910. abstract="false" native="false" synchronized="false"
  20911. static="false" final="false" visibility="public"
  20912. deprecated="not deprecated">
  20913. <param name="in" type="java.io.DataInput"/>
  20914. <exception name="IOException" type="java.io.IOException"/>
  20915. </method>
  20916. <doc>
  20917. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  20918. <p><code>ClusterStatus</code> provides clients with information such as:
  20919. <ol>
  20920. <li>
  20921. Size of the cluster.
  20922. </li>
  20923. <li>
  20924. Task capacity of the cluster.
  20925. </li>
  20926. <li>
  20927. The number of currently running map & reduce tasks.
  20928. </li>
  20929. <li>
  20930. State of the <code>JobTracker</code>.
  20931. </li>
  20932. </ol></p>
  20933. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  20934. {@link JobClient#getClusterStatus()}.</p>
  20935. @see JobClient]]>
  20936. </doc>
  20937. </class>
  20938. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  20939. <!-- start class org.apache.hadoop.mapred.CompletedJobStatusStore -->
  20940. <class name="CompletedJobStatusStore" extends="java.lang.Object"
  20941. abstract="false"
  20942. static="false" final="false" visibility="public"
  20943. deprecated="not deprecated">
  20944. <implements name="java.lang.Runnable"/>
  20945. <method name="isActive" return="boolean"
  20946. abstract="false" native="false" synchronized="false"
  20947. static="false" final="false" visibility="public"
  20948. deprecated="not deprecated">
  20949. <doc>
  20950. <![CDATA[Indicates if job status persistency is active or not.
  20951. @return TRUE if active, FALSE otherwise.]]>
  20952. </doc>
  20953. </method>
  20954. <method name="run"
  20955. abstract="false" native="false" synchronized="false"
  20956. static="false" final="false" visibility="public"
  20957. deprecated="not deprecated">
  20958. </method>
  20959. <method name="store"
  20960. abstract="false" native="false" synchronized="false"
  20961. static="false" final="false" visibility="public"
  20962. deprecated="not deprecated">
  20963. <param name="job" type="org.apache.hadoop.mapred.JobInProgress"/>
  20964. <doc>
  20965. <![CDATA[Persists a job in DFS.
  20966. @param job the job about to be 'retired']]>
  20967. </doc>
  20968. </method>
  20969. <method name="readJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  20970. abstract="false" native="false" synchronized="false"
  20971. static="false" final="false" visibility="public"
  20972. deprecated="not deprecated">
  20973. <param name="jobId" type="java.lang.String"/>
  20974. <doc>
  20975. <![CDATA[This method retrieves JobStatus information from DFS stored using
  20976. store method.
  20977. @param jobId the jobId for which jobStatus is queried
  20978. @return JobStatus object, null if not able to retrieve]]>
  20979. </doc>
  20980. </method>
  20981. <method name="readJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  20982. abstract="false" native="false" synchronized="false"
  20983. static="false" final="false" visibility="public"
  20984. deprecated="not deprecated">
  20985. <param name="jobId" type="java.lang.String"/>
  20986. <doc>
  20987. <![CDATA[This method retrieves JobProfile information from DFS stored using
  20988. store method.
  20989. @param jobId the jobId for which jobProfile is queried
  20990. @return JobProfile object, null if not able to retrieve]]>
  20991. </doc>
  20992. </method>
  20993. <method name="readCounters" return="org.apache.hadoop.mapred.Counters"
  20994. abstract="false" native="false" synchronized="false"
  20995. static="false" final="false" visibility="public"
  20996. deprecated="not deprecated">
  20997. <param name="jobId" type="java.lang.String"/>
  20998. <doc>
  20999. <![CDATA[This method retrieves Counters information from DFS stored using
  21000. store method.
  21001. @param jobId the jobId for which Counters is queried
  21002. @return Counters object, null if not able to retrieve]]>
  21003. </doc>
  21004. </method>
  21005. <method name="readJobTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  21006. abstract="false" native="false" synchronized="false"
  21007. static="false" final="false" visibility="public"
  21008. deprecated="not deprecated">
  21009. <param name="jobId" type="java.lang.String"/>
  21010. <param name="fromEventId" type="int"/>
  21011. <param name="maxEvents" type="int"/>
  21012. <doc>
  21013. <![CDATA[This method retrieves TaskCompletionEvents information from DFS stored
  21014. using store method.
  21015. @param jobId the jobId for which TaskCompletionEvents is queried
  21016. @param fromEventId events offset
  21017. @param maxEvents max number of events
  21018. @return TaskCompletionEvent[], empty array if not able to retrieve]]>
  21019. </doc>
  21020. </method>
  21021. <field name="LOG" type="org.apache.commons.logging.Log"
  21022. transient="false" volatile="false"
  21023. static="true" final="true" visibility="public"
  21024. deprecated="not deprecated">
  21025. </field>
  21026. <doc>
  21027. <![CDATA[Persists and retrieves the Job info of a job into/from DFS.
  21028. <p/>
  21029. If the retain time is zero jobs are not persisted.
  21030. <p/>
  21031. A daemon thread cleans up job info files older than the retain time
  21032. <p/>
  21033. The retain time can be set with the 'persist.jobstatus.hours'
  21034. configuration variable (it is in hours).]]>
  21035. </doc>
  21036. </class>
  21037. <!-- end class org.apache.hadoop.mapred.CompletedJobStatusStore -->
  21038. <!-- start class org.apache.hadoop.mapred.Counters -->
  21039. <class name="Counters" extends="java.lang.Object"
  21040. abstract="false"
  21041. static="false" final="false" visibility="public"
  21042. deprecated="not deprecated">
  21043. <implements name="org.apache.hadoop.io.Writable"/>
  21044. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Group&gt;"/>
  21045. <constructor name="Counters"
  21046. static="false" final="false" visibility="public"
  21047. deprecated="not deprecated">
  21048. </constructor>
  21049. <method name="getGroupNames" return="java.util.Collection&lt;java.lang.String&gt;"
  21050. abstract="false" native="false" synchronized="true"
  21051. static="false" final="false" visibility="public"
  21052. deprecated="not deprecated">
  21053. <doc>
  21054. <![CDATA[Returns the names of all counter classes.
  21055. @return Set of counter names.]]>
  21056. </doc>
  21057. </method>
  21058. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Group&gt;"
  21059. abstract="false" native="false" synchronized="true"
  21060. static="false" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. </method>
  21063. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  21064. abstract="false" native="false" synchronized="true"
  21065. static="false" final="false" visibility="public"
  21066. deprecated="not deprecated">
  21067. <param name="groupName" type="java.lang.String"/>
  21068. <doc>
  21069. <![CDATA[Returns the named counter group, or an empty group if there is none
  21070. with the specified name.]]>
  21071. </doc>
  21072. </method>
  21073. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  21074. abstract="false" native="false" synchronized="true"
  21075. static="false" final="false" visibility="public"
  21076. deprecated="not deprecated">
  21077. <param name="key" type="java.lang.Enum"/>
  21078. <doc>
  21079. <![CDATA[Find the counter for the given enum. The same enum will always return the
  21080. same counter.
  21081. @param key the counter key
  21082. @return the matching counter object]]>
  21083. </doc>
  21084. </method>
  21085. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  21086. abstract="false" native="false" synchronized="true"
  21087. static="false" final="false" visibility="public"
  21088. deprecated="not deprecated">
  21089. <param name="group" type="java.lang.String"/>
  21090. <param name="id" type="int"/>
  21091. <param name="name" type="java.lang.String"/>
  21092. <doc>
  21093. <![CDATA[Find a counter by using strings
  21094. @param group the name of the group
  21095. @param id the id of the counter within the group (0 to N-1)
  21096. @param name the internal name of the counter
  21097. @return the counter for that name]]>
  21098. </doc>
  21099. </method>
  21100. <method name="incrCounter"
  21101. abstract="false" native="false" synchronized="true"
  21102. static="false" final="false" visibility="public"
  21103. deprecated="not deprecated">
  21104. <param name="key" type="java.lang.Enum"/>
  21105. <param name="amount" type="long"/>
  21106. <doc>
  21107. <![CDATA[Increments the specified counter by the specified amount, creating it if
  21108. it didn't already exist.
  21109. @param key identifies a counter
  21110. @param amount amount by which counter is to be incremented]]>
  21111. </doc>
  21112. </method>
  21113. <method name="getCounter" return="long"
  21114. abstract="false" native="false" synchronized="true"
  21115. static="false" final="false" visibility="public"
  21116. deprecated="not deprecated">
  21117. <param name="key" type="java.lang.Enum"/>
  21118. <doc>
  21119. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  21120. does not exist.]]>
  21121. </doc>
  21122. </method>
  21123. <method name="incrAllCounters"
  21124. abstract="false" native="false" synchronized="true"
  21125. static="false" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  21128. <doc>
  21129. <![CDATA[Increments multiple counters by their amounts in another Counters
  21130. instance.
  21131. @param other the other Counters instance]]>
  21132. </doc>
  21133. </method>
  21134. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  21135. abstract="false" native="false" synchronized="false"
  21136. static="true" final="false" visibility="public"
  21137. deprecated="not deprecated">
  21138. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  21139. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  21140. <doc>
  21141. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  21142. </doc>
  21143. </method>
  21144. <method name="size" return="int"
  21145. abstract="false" native="false" synchronized="true"
  21146. static="false" final="false" visibility="public"
  21147. deprecated="not deprecated">
  21148. <doc>
  21149. <![CDATA[Returns the total number of counters, by summing the number of counters
  21150. in each group.]]>
  21151. </doc>
  21152. </method>
  21153. <method name="write"
  21154. abstract="false" native="false" synchronized="true"
  21155. static="false" final="false" visibility="public"
  21156. deprecated="not deprecated">
  21157. <param name="out" type="java.io.DataOutput"/>
  21158. <exception name="IOException" type="java.io.IOException"/>
  21159. <doc>
  21160. <![CDATA[Write the set of groups.
  21161. The external format is:
  21162. #groups (groupName group)*
  21163. i.e. the number of groups followed by 0 or more groups, where each
  21164. group is of the form:
  21165. groupDisplayName #counters (false | true counter)*
  21166. where each counter is of the form:
  21167. name value]]>
  21168. </doc>
  21169. </method>
  21170. <method name="readFields"
  21171. abstract="false" native="false" synchronized="true"
  21172. static="false" final="false" visibility="public"
  21173. deprecated="not deprecated">
  21174. <param name="in" type="java.io.DataInput"/>
  21175. <exception name="IOException" type="java.io.IOException"/>
  21176. <doc>
  21177. <![CDATA[Read a set of groups.]]>
  21178. </doc>
  21179. </method>
  21180. <method name="log"
  21181. abstract="false" native="false" synchronized="false"
  21182. static="false" final="false" visibility="public"
  21183. deprecated="not deprecated">
  21184. <param name="log" type="org.apache.commons.logging.Log"/>
  21185. <doc>
  21186. <![CDATA[Logs the current counter values.
  21187. @param log The log to use.]]>
  21188. </doc>
  21189. </method>
  21190. <method name="toString" return="java.lang.String"
  21191. abstract="false" native="false" synchronized="true"
  21192. static="false" final="false" visibility="public"
  21193. deprecated="not deprecated">
  21194. <doc>
  21195. <![CDATA[Return textual representation of the counter values.]]>
  21196. </doc>
  21197. </method>
  21198. <method name="makeCompactString" return="java.lang.String"
  21199. abstract="false" native="false" synchronized="true"
  21200. static="false" final="false" visibility="public"
  21201. deprecated="not deprecated">
  21202. <doc>
  21203. <![CDATA[Convert a counters object into a single line that is easy to parse.
  21204. @return the string with "name=value" for each counter and separated by ","]]>
  21205. </doc>
  21206. </method>
  21207. <doc>
  21208. <![CDATA[A set of named counters.
  21209. <p><code>Counters</code> represent global counters, defined either by the
  21210. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  21211. any {@link Enum} type.</p>
  21212. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  21213. counters from a particular <code>Enum</code> class.]]>
  21214. </doc>
  21215. </class>
  21216. <!-- end class org.apache.hadoop.mapred.Counters -->
  21217. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  21218. <class name="Counters.Counter" extends="java.lang.Object"
  21219. abstract="false"
  21220. static="true" final="false" visibility="public"
  21221. deprecated="not deprecated">
  21222. <implements name="org.apache.hadoop.io.Writable"/>
  21223. <method name="readFields"
  21224. abstract="false" native="false" synchronized="true"
  21225. static="false" final="false" visibility="public"
  21226. deprecated="not deprecated">
  21227. <param name="in" type="java.io.DataInput"/>
  21228. <exception name="IOException" type="java.io.IOException"/>
  21229. <doc>
  21230. <![CDATA[Read the binary representation of the counter]]>
  21231. </doc>
  21232. </method>
  21233. <method name="write"
  21234. abstract="false" native="false" synchronized="true"
  21235. static="false" final="false" visibility="public"
  21236. deprecated="not deprecated">
  21237. <param name="out" type="java.io.DataOutput"/>
  21238. <exception name="IOException" type="java.io.IOException"/>
  21239. <doc>
  21240. <![CDATA[Write the binary representation of the counter]]>
  21241. </doc>
  21242. </method>
  21243. <method name="getDisplayName" return="java.lang.String"
  21244. abstract="false" native="false" synchronized="false"
  21245. static="false" final="false" visibility="public"
  21246. deprecated="not deprecated">
  21247. <doc>
  21248. <![CDATA[Get the name of the counter.
  21249. @return the user facing name of the counter]]>
  21250. </doc>
  21251. </method>
  21252. <method name="getCounter" return="long"
  21253. abstract="false" native="false" synchronized="true"
  21254. static="false" final="false" visibility="public"
  21255. deprecated="not deprecated">
  21256. <doc>
  21257. <![CDATA[What is the current value of this counter?
  21258. @return the current value]]>
  21259. </doc>
  21260. </method>
  21261. <method name="increment"
  21262. abstract="false" native="false" synchronized="true"
  21263. static="false" final="false" visibility="public"
  21264. deprecated="not deprecated">
  21265. <param name="incr" type="long"/>
  21266. <doc>
  21267. <![CDATA[Increment this counter by the given value
  21268. @param incr the value to increase this counter by]]>
  21269. </doc>
  21270. </method>
  21271. <doc>
  21272. <![CDATA[A counter record, comprising its name and value.]]>
  21273. </doc>
  21274. </class>
  21275. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  21276. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  21277. <class name="Counters.Group" extends="java.lang.Object"
  21278. abstract="false"
  21279. static="true" final="false" visibility="public"
  21280. deprecated="not deprecated">
  21281. <implements name="org.apache.hadoop.io.Writable"/>
  21282. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"/>
  21283. <method name="getName" return="java.lang.String"
  21284. abstract="false" native="false" synchronized="false"
  21285. static="false" final="false" visibility="public"
  21286. deprecated="not deprecated">
  21287. <doc>
  21288. <![CDATA[Returns raw name of the group. This is the name of the enum class
  21289. for this group of counters.]]>
  21290. </doc>
  21291. </method>
  21292. <method name="getDisplayName" return="java.lang.String"
  21293. abstract="false" native="false" synchronized="false"
  21294. static="false" final="false" visibility="public"
  21295. deprecated="not deprecated">
  21296. <doc>
  21297. <![CDATA[Returns localized name of the group. This is the same as getName() by
  21298. default, but different if an appropriate ResourceBundle is found.]]>
  21299. </doc>
  21300. </method>
  21301. <method name="getCounter" return="long"
  21302. abstract="false" native="false" synchronized="true"
  21303. static="false" final="false" visibility="public"
  21304. deprecated="not deprecated">
  21305. <param name="counterName" type="java.lang.String"/>
  21306. <doc>
  21307. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  21308. not exist.]]>
  21309. </doc>
  21310. </method>
  21311. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  21312. abstract="false" native="false" synchronized="true"
  21313. static="false" final="false" visibility="public"
  21314. deprecated="not deprecated">
  21315. <param name="id" type="int"/>
  21316. <param name="name" type="java.lang.String"/>
  21317. <doc>
  21318. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  21319. @param id the numeric id of the counter within the group
  21320. @param name the internal counter name
  21321. @return the counter]]>
  21322. </doc>
  21323. </method>
  21324. <method name="size" return="int"
  21325. abstract="false" native="false" synchronized="true"
  21326. static="false" final="false" visibility="public"
  21327. deprecated="not deprecated">
  21328. <doc>
  21329. <![CDATA[Returns the number of counters in this group.]]>
  21330. </doc>
  21331. </method>
  21332. <method name="write"
  21333. abstract="false" native="false" synchronized="true"
  21334. static="false" final="false" visibility="public"
  21335. deprecated="not deprecated">
  21336. <param name="out" type="java.io.DataOutput"/>
  21337. <exception name="IOException" type="java.io.IOException"/>
  21338. </method>
  21339. <method name="readFields"
  21340. abstract="false" native="false" synchronized="true"
  21341. static="false" final="false" visibility="public"
  21342. deprecated="not deprecated">
  21343. <param name="in" type="java.io.DataInput"/>
  21344. <exception name="IOException" type="java.io.IOException"/>
  21345. </method>
  21346. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"
  21347. abstract="false" native="false" synchronized="false"
  21348. static="false" final="false" visibility="public"
  21349. deprecated="not deprecated">
  21350. </method>
  21351. <doc>
  21352. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  21353. counter {@link Enum} class.
  21354. <p><code>Group</code>handles localization of the class name and the
  21355. counter names.</p>]]>
  21356. </doc>
  21357. </class>
  21358. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  21359. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  21360. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  21361. abstract="false"
  21362. static="false" final="false" visibility="public"
  21363. deprecated="not deprecated">
  21364. <constructor name="DefaultJobHistoryParser"
  21365. static="false" final="false" visibility="public"
  21366. deprecated="not deprecated">
  21367. </constructor>
  21368. <method name="parseJobTasks"
  21369. abstract="false" native="false" synchronized="false"
  21370. static="true" final="false" visibility="public"
  21371. deprecated="not deprecated">
  21372. <param name="jobHistoryFile" type="java.lang.String"/>
  21373. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  21374. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21375. <exception name="IOException" type="java.io.IOException"/>
  21376. <doc>
  21377. <![CDATA[Populates a JobInfo object from the job's history log file.
  21378. @param jobHistoryFile history file for this job.
  21379. @param job a precreated JobInfo object, should be non-null.
  21380. @param fs FileSystem where historyFile is present.
  21381. @throws IOException]]>
  21382. </doc>
  21383. </method>
  21384. <doc>
  21385. <![CDATA[Default parser for job history files. It creates object model from
  21386. job history file.]]>
  21387. </doc>
  21388. </class>
  21389. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  21390. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  21391. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  21392. abstract="false"
  21393. static="false" final="false" visibility="public"
  21394. deprecated="not deprecated">
  21395. <constructor name="FileAlreadyExistsException"
  21396. static="false" final="false" visibility="public"
  21397. deprecated="not deprecated">
  21398. </constructor>
  21399. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  21400. static="false" final="false" visibility="public"
  21401. deprecated="not deprecated">
  21402. </constructor>
  21403. <doc>
  21404. <![CDATA[Used when target file already exists for any operation and
  21405. is not configured to be overwritten.]]>
  21406. </doc>
  21407. </class>
  21408. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  21409. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  21410. <class name="FileInputFormat" extends="java.lang.Object"
  21411. abstract="true"
  21412. static="false" final="false" visibility="public"
  21413. deprecated="not deprecated">
  21414. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  21415. <constructor name="FileInputFormat"
  21416. static="false" final="false" visibility="public"
  21417. deprecated="not deprecated">
  21418. </constructor>
  21419. <method name="setMinSplitSize"
  21420. abstract="false" native="false" synchronized="false"
  21421. static="false" final="false" visibility="protected"
  21422. deprecated="not deprecated">
  21423. <param name="minSplitSize" type="long"/>
  21424. </method>
  21425. <method name="isSplitable" return="boolean"
  21426. abstract="false" native="false" synchronized="false"
  21427. static="false" final="false" visibility="protected"
  21428. deprecated="not deprecated">
  21429. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  21430. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  21431. <doc>
  21432. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  21433. stream compressed, it will not be.
  21434. <code>FileInputFormat</code> implementations can override this and return
  21435. <code>false</code> to ensure that individual input files are never split-up
  21436. so that {@link Mapper}s process entire files.
  21437. @param fs the file system that the file is on
  21438. @param filename the file name to check
  21439. @return is this file splitable?]]>
  21440. </doc>
  21441. </method>
  21442. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  21443. abstract="true" native="false" synchronized="false"
  21444. static="false" final="false" visibility="public"
  21445. deprecated="not deprecated">
  21446. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  21447. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21448. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21449. <exception name="IOException" type="java.io.IOException"/>
  21450. </method>
  21451. <method name="setInputPathFilter"
  21452. abstract="false" native="false" synchronized="false"
  21453. static="true" final="false" visibility="public"
  21454. deprecated="not deprecated">
  21455. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21456. <param name="filter" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.PathFilter&gt;"/>
  21457. <doc>
  21458. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  21459. @param filter the PathFilter class use for filtering the input paths.]]>
  21460. </doc>
  21461. </method>
  21462. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  21463. abstract="false" native="false" synchronized="false"
  21464. static="true" final="false" visibility="public"
  21465. deprecated="not deprecated">
  21466. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21467. <doc>
  21468. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  21469. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  21470. </doc>
  21471. </method>
  21472. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  21473. abstract="false" native="false" synchronized="false"
  21474. static="false" final="false" visibility="protected"
  21475. deprecated="not deprecated">
  21476. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21477. <exception name="IOException" type="java.io.IOException"/>
  21478. <doc>
  21479. <![CDATA[List input directories.
  21480. Subclasses may override to, e.g., select only files matching a regular
  21481. expression.
  21482. @param job the job to list input paths for
  21483. @return array of Path objects
  21484. @throws IOException if zero items.]]>
  21485. </doc>
  21486. </method>
  21487. <method name="validateInput"
  21488. abstract="false" native="false" synchronized="false"
  21489. static="false" final="false" visibility="public"
  21490. deprecated="not deprecated">
  21491. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21492. <exception name="IOException" type="java.io.IOException"/>
  21493. </method>
  21494. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  21495. abstract="false" native="false" synchronized="false"
  21496. static="false" final="false" visibility="public"
  21497. deprecated="not deprecated">
  21498. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21499. <param name="numSplits" type="int"/>
  21500. <exception name="IOException" type="java.io.IOException"/>
  21501. <doc>
  21502. <![CDATA[Splits files returned by {@link #listPaths(JobConf)} when
  21503. they're too big.]]>
  21504. </doc>
  21505. </method>
  21506. <method name="computeSplitSize" return="long"
  21507. abstract="false" native="false" synchronized="false"
  21508. static="false" final="false" visibility="protected"
  21509. deprecated="not deprecated">
  21510. <param name="goalSize" type="long"/>
  21511. <param name="minSize" type="long"/>
  21512. <param name="blockSize" type="long"/>
  21513. </method>
  21514. <method name="getBlockIndex" return="int"
  21515. abstract="false" native="false" synchronized="false"
  21516. static="false" final="false" visibility="protected"
  21517. deprecated="not deprecated">
  21518. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  21519. <param name="offset" type="long"/>
  21520. </method>
  21521. <method name="setInputPaths"
  21522. abstract="false" native="false" synchronized="false"
  21523. static="true" final="false" visibility="public"
  21524. deprecated="not deprecated">
  21525. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21526. <param name="commaSeparatedPaths" type="java.lang.String"/>
  21527. <doc>
  21528. <![CDATA[Sets the given comma separated paths as the list of inputs
  21529. for the map-reduce job.
  21530. @param conf Configuration of the job
  21531. @param commaSeparatedPaths Comma separated paths to be set as
  21532. the list of inputs for the map-reduce job.]]>
  21533. </doc>
  21534. </method>
  21535. <method name="addInputPaths"
  21536. abstract="false" native="false" synchronized="false"
  21537. static="true" final="false" visibility="public"
  21538. deprecated="not deprecated">
  21539. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21540. <param name="commaSeparatedPaths" type="java.lang.String"/>
  21541. <doc>
  21542. <![CDATA[Add the given comma separated paths to the list of inputs for
  21543. the map-reduce job.
  21544. @param conf The configuration of the job
  21545. @param commaSeparatedPaths Comma separated paths to be added to
  21546. the list of inputs for the map-reduce job.]]>
  21547. </doc>
  21548. </method>
  21549. <method name="setInputPaths"
  21550. abstract="false" native="false" synchronized="false"
  21551. static="true" final="false" visibility="public"
  21552. deprecated="not deprecated">
  21553. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21554. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  21555. <doc>
  21556. <![CDATA[Set the array of {@link Path}s as the list of inputs
  21557. for the map-reduce job.
  21558. @param conf Configuration of the job.
  21559. @param inputPaths the {@link Path}s of the input directories/files
  21560. for the map-reduce job.]]>
  21561. </doc>
  21562. </method>
  21563. <method name="addInputPath"
  21564. abstract="false" native="false" synchronized="false"
  21565. static="true" final="false" visibility="public"
  21566. deprecated="not deprecated">
  21567. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21568. <param name="path" type="org.apache.hadoop.fs.Path"/>
  21569. <doc>
  21570. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  21571. @param conf The configuration of the job
  21572. @param path {@link Path} to be added to the list of inputs for
  21573. the map-reduce job.]]>
  21574. </doc>
  21575. </method>
  21576. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  21577. abstract="false" native="false" synchronized="false"
  21578. static="true" final="false" visibility="public"
  21579. deprecated="not deprecated">
  21580. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21581. <doc>
  21582. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  21583. @param conf The configuration of the job
  21584. @return the list of input {@link Path}s for the map-reduce job.]]>
  21585. </doc>
  21586. </method>
  21587. <field name="LOG" type="org.apache.commons.logging.Log"
  21588. transient="false" volatile="false"
  21589. static="true" final="true" visibility="public"
  21590. deprecated="not deprecated">
  21591. </field>
  21592. <doc>
  21593. <![CDATA[A base class for file-based {@link InputFormat}.
  21594. <p><code>FileInputFormat</code> is the base class for all file-based
  21595. <code>InputFormat</code>s. This provides generic implementations of
  21596. {@link #validateInput(JobConf)} and {@link #getSplits(JobConf, int)}.
  21597. Implementations fo <code>FileInputFormat</code> can also override the
  21598. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  21599. not split-up and are processed as a whole by {@link Mapper}s.]]>
  21600. </doc>
  21601. </class>
  21602. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  21603. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  21604. <class name="FileOutputFormat" extends="java.lang.Object"
  21605. abstract="true"
  21606. static="false" final="false" visibility="public"
  21607. deprecated="not deprecated">
  21608. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  21609. <constructor name="FileOutputFormat"
  21610. static="false" final="false" visibility="public"
  21611. deprecated="not deprecated">
  21612. </constructor>
  21613. <method name="setCompressOutput"
  21614. abstract="false" native="false" synchronized="false"
  21615. static="true" final="false" visibility="public"
  21616. deprecated="not deprecated">
  21617. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21618. <param name="compress" type="boolean"/>
  21619. <doc>
  21620. <![CDATA[Set whether the output of the job is compressed.
  21621. @param conf the {@link JobConf} to modify
  21622. @param compress should the output of the job be compressed?]]>
  21623. </doc>
  21624. </method>
  21625. <method name="getCompressOutput" return="boolean"
  21626. abstract="false" native="false" synchronized="false"
  21627. static="true" final="false" visibility="public"
  21628. deprecated="not deprecated">
  21629. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21630. <doc>
  21631. <![CDATA[Is the job output compressed?
  21632. @param conf the {@link JobConf} to look in
  21633. @return <code>true</code> if the job output should be compressed,
  21634. <code>false</code> otherwise]]>
  21635. </doc>
  21636. </method>
  21637. <method name="setOutputCompressorClass"
  21638. abstract="false" native="false" synchronized="false"
  21639. static="true" final="false" visibility="public"
  21640. deprecated="not deprecated">
  21641. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21642. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  21643. <doc>
  21644. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  21645. @param conf the {@link JobConf} to modify
  21646. @param codecClass the {@link CompressionCodec} to be used to
  21647. compress the job outputs]]>
  21648. </doc>
  21649. </method>
  21650. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  21651. abstract="false" native="false" synchronized="false"
  21652. static="true" final="false" visibility="public"
  21653. deprecated="not deprecated">
  21654. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21655. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  21656. <doc>
  21657. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  21658. @param conf the {@link JobConf} to look in
  21659. @param defaultValue the {@link CompressionCodec} to return if not set
  21660. @return the {@link CompressionCodec} to be used to compress the
  21661. job outputs
  21662. @throws IllegalArgumentException if the class was specified, but not found]]>
  21663. </doc>
  21664. </method>
  21665. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  21666. abstract="true" native="false" synchronized="false"
  21667. static="false" final="false" visibility="public"
  21668. deprecated="not deprecated">
  21669. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21670. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21671. <param name="name" type="java.lang.String"/>
  21672. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  21673. <exception name="IOException" type="java.io.IOException"/>
  21674. </method>
  21675. <method name="checkOutputSpecs"
  21676. abstract="false" native="false" synchronized="false"
  21677. static="false" final="false" visibility="public"
  21678. deprecated="not deprecated">
  21679. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  21680. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21681. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  21682. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  21683. <exception name="IOException" type="java.io.IOException"/>
  21684. </method>
  21685. <method name="setOutputPath"
  21686. abstract="false" native="false" synchronized="false"
  21687. static="true" final="false" visibility="public"
  21688. deprecated="not deprecated">
  21689. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21690. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  21691. <doc>
  21692. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  21693. @param conf The configuration of the job.
  21694. @param outputDir the {@link Path} of the output directory for
  21695. the map-reduce job.]]>
  21696. </doc>
  21697. </method>
  21698. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  21699. abstract="false" native="false" synchronized="false"
  21700. static="true" final="false" visibility="public"
  21701. deprecated="not deprecated">
  21702. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21703. <doc>
  21704. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  21705. @return the {@link Path} to the output directory for the map-reduce job.
  21706. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  21707. </doc>
  21708. </method>
  21709. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  21710. abstract="false" native="false" synchronized="false"
  21711. static="true" final="false" visibility="public"
  21712. deprecated="not deprecated">
  21713. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  21714. <doc>
  21715. <![CDATA[Get the {@link Path} to the task's temporary output directory
  21716. for the map-reduce job
  21717. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  21718. <p>Some applications need to create/write-to side-files, which differ from
  21719. the actual job-outputs.
  21720. <p>In such cases there could be issues with 2 instances of the same TIP
  21721. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  21722. same file (path) on HDFS. Hence the application-writer will have to pick
  21723. unique names per task-attempt (e.g. using the taskid, say
  21724. <tt>task_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  21725. <p>To get around this the Map-Reduce framework helps the application-writer
  21726. out by maintaining a special
  21727. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  21728. sub-directory for each task-attempt on HDFS where the output of the
  21729. task-attempt goes. On successful completion of the task-attempt the files
  21730. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  21731. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  21732. framework discards the sub-directory of unsuccessful task-attempts. This
  21733. is completely transparent to the application.</p>
  21734. <p>The application-writer can take advantage of this by creating any
  21735. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  21736. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  21737. framework will move them out similarly - thus she doesn't have to pick
  21738. unique paths per task-attempt.</p>
  21739. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  21740. execution of a particular task-attempt is actually
  21741. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  21742. set by the map-reduce framework. So, just create any side-files in the
  21743. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  21744. task to take advantage of this feature.</p>
  21745. <p>The entire discussion holds true for maps of jobs with
  21746. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  21747. goes directly to HDFS.</p>
  21748. @return the {@link Path} to the task's temporary output directory
  21749. for the map-reduce job.]]>
  21750. </doc>
  21751. </method>
  21752. <doc>
  21753. <![CDATA[A base class for {@link OutputFormat}.]]>
  21754. </doc>
  21755. </class>
  21756. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  21757. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  21758. <class name="FileSplit" extends="java.lang.Object"
  21759. abstract="false"
  21760. static="false" final="false" visibility="public"
  21761. deprecated="not deprecated">
  21762. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  21763. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="deprecated, no comment">
  21766. <doc>
  21767. <![CDATA[Constructs a split.
  21768. @deprecated
  21769. @param file the file name
  21770. @param start the position of the first byte in the file to process
  21771. @param length the number of bytes in the file to process]]>
  21772. </doc>
  21773. </constructor>
  21774. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  21775. static="false" final="false" visibility="public"
  21776. deprecated="not deprecated">
  21777. <doc>
  21778. <![CDATA[Constructs a split with host information
  21779. @param file the file name
  21780. @param start the position of the first byte in the file to process
  21781. @param length the number of bytes in the file to process
  21782. @param hosts the list of hosts containing the block, possibly null]]>
  21783. </doc>
  21784. </constructor>
  21785. <method name="getPath" return="org.apache.hadoop.fs.Path"
  21786. abstract="false" native="false" synchronized="false"
  21787. static="false" final="false" visibility="public"
  21788. deprecated="not deprecated">
  21789. <doc>
  21790. <![CDATA[The file containing this split's data.]]>
  21791. </doc>
  21792. </method>
  21793. <method name="getStart" return="long"
  21794. abstract="false" native="false" synchronized="false"
  21795. static="false" final="false" visibility="public"
  21796. deprecated="not deprecated">
  21797. <doc>
  21798. <![CDATA[The position of the first byte in the file to process.]]>
  21799. </doc>
  21800. </method>
  21801. <method name="getLength" return="long"
  21802. abstract="false" native="false" synchronized="false"
  21803. static="false" final="false" visibility="public"
  21804. deprecated="not deprecated">
  21805. <doc>
  21806. <![CDATA[The number of bytes in the file to process.]]>
  21807. </doc>
  21808. </method>
  21809. <method name="toString" return="java.lang.String"
  21810. abstract="false" native="false" synchronized="false"
  21811. static="false" final="false" visibility="public"
  21812. deprecated="not deprecated">
  21813. </method>
  21814. <method name="write"
  21815. abstract="false" native="false" synchronized="false"
  21816. static="false" final="false" visibility="public"
  21817. deprecated="not deprecated">
  21818. <param name="out" type="java.io.DataOutput"/>
  21819. <exception name="IOException" type="java.io.IOException"/>
  21820. </method>
  21821. <method name="readFields"
  21822. abstract="false" native="false" synchronized="false"
  21823. static="false" final="false" visibility="public"
  21824. deprecated="not deprecated">
  21825. <param name="in" type="java.io.DataInput"/>
  21826. <exception name="IOException" type="java.io.IOException"/>
  21827. </method>
  21828. <method name="getLocations" return="java.lang.String[]"
  21829. abstract="false" native="false" synchronized="false"
  21830. static="false" final="false" visibility="public"
  21831. deprecated="not deprecated">
  21832. <exception name="IOException" type="java.io.IOException"/>
  21833. </method>
  21834. <doc>
  21835. <![CDATA[A section of an input file. Returned by {@link
  21836. InputFormat#getSplits(JobConf, int)} and passed to
  21837. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  21838. </doc>
  21839. </class>
  21840. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  21841. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  21842. <interface name="InputFormat" abstract="true"
  21843. static="false" final="false" visibility="public"
  21844. deprecated="not deprecated">
  21845. <method name="validateInput"
  21846. abstract="false" native="false" synchronized="false"
  21847. static="false" final="false" visibility="public"
  21848. deprecated="not deprecated">
  21849. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21850. <exception name="IOException" type="java.io.IOException"/>
  21851. <doc>
  21852. <![CDATA[Check for validity of the input-specification for the job.
  21853. <p>This method is used to validate the input directories when a job is
  21854. submitted so that the {@link JobClient} can fail early, with an useful
  21855. error message, in case of errors. For e.g. input directory does not exist.
  21856. </p>
  21857. @param job job configuration.
  21858. @throws InvalidInputException if the job does not have valid input]]>
  21859. </doc>
  21860. </method>
  21861. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  21862. abstract="false" native="false" synchronized="false"
  21863. static="false" final="false" visibility="public"
  21864. deprecated="not deprecated">
  21865. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21866. <param name="numSplits" type="int"/>
  21867. <exception name="IOException" type="java.io.IOException"/>
  21868. <doc>
  21869. <![CDATA[Logically split the set of input files for the job.
  21870. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  21871. for processing.</p>
  21872. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  21873. input files are not physically split into chunks. For e.g. a split could
  21874. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  21875. @param job job configuration.
  21876. @param numSplits the desired number of splits, a hint.
  21877. @return an array of {@link InputSplit}s for the job.]]>
  21878. </doc>
  21879. </method>
  21880. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  21881. abstract="false" native="false" synchronized="false"
  21882. static="false" final="false" visibility="public"
  21883. deprecated="not deprecated">
  21884. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  21885. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  21886. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  21887. <exception name="IOException" type="java.io.IOException"/>
  21888. <doc>
  21889. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  21890. <p>It is the responsibility of the <code>RecordReader</code> to respect
  21891. record boundaries while processing the logical split to present a
  21892. record-oriented view to the individual task.</p>
  21893. @param split the {@link InputSplit}
  21894. @param job the job that this split belongs to
  21895. @return a {@link RecordReader}]]>
  21896. </doc>
  21897. </method>
  21898. <doc>
  21899. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  21900. Map-Reduce job.
  21901. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  21902. job to:<p>
  21903. <ol>
  21904. <li>
  21905. Validate the input-specification of the job.
  21906. <li>
  21907. Split-up the input file(s) into logical {@link InputSplit}s, each of
  21908. which is then assigned to an individual {@link Mapper}.
  21909. </li>
  21910. <li>
  21911. Provide the {@link RecordReader} implementation to be used to glean
  21912. input records from the logical <code>InputSplit</code> for processing by
  21913. the {@link Mapper}.
  21914. </li>
  21915. </ol>
  21916. <p>The default behavior of file-based {@link InputFormat}s, typically
  21917. sub-classes of {@link FileInputFormat}, is to split the
  21918. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  21919. bytes, of the input files. However, the {@link FileSystem} blocksize of
  21920. the input files is treated as an upper bound for input splits. A lower bound
  21921. on the split size can be set via
  21922. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  21923. mapred.min.split.size</a>.</p>
  21924. <p>Clearly, logical splits based on input-size is insufficient for many
  21925. applications since record boundaries are to respected. In such cases, the
  21926. application has to also implement a {@link RecordReader} on whom lies the
  21927. responsibilty to respect record-boundaries and present a record-oriented
  21928. view of the logical <code>InputSplit</code> to the individual task.
  21929. @see InputSplit
  21930. @see RecordReader
  21931. @see JobClient
  21932. @see FileInputFormat]]>
  21933. </doc>
  21934. </interface>
  21935. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  21936. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  21937. <interface name="InputSplit" abstract="true"
  21938. static="false" final="false" visibility="public"
  21939. deprecated="not deprecated">
  21940. <implements name="org.apache.hadoop.io.Writable"/>
  21941. <method name="getLength" return="long"
  21942. abstract="false" native="false" synchronized="false"
  21943. static="false" final="false" visibility="public"
  21944. deprecated="not deprecated">
  21945. <exception name="IOException" type="java.io.IOException"/>
  21946. <doc>
  21947. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  21948. @return the number of bytes in the input split.
  21949. @throws IOException]]>
  21950. </doc>
  21951. </method>
  21952. <method name="getLocations" return="java.lang.String[]"
  21953. abstract="false" native="false" synchronized="false"
  21954. static="false" final="false" visibility="public"
  21955. deprecated="not deprecated">
  21956. <exception name="IOException" type="java.io.IOException"/>
  21957. <doc>
  21958. <![CDATA[Get the list of hostnames where the input split is located.
  21959. @return list of hostnames where data of the <code>InputSplit</code> is
  21960. located as an array of <code>String</code>s.
  21961. @throws IOException]]>
  21962. </doc>
  21963. </method>
  21964. <doc>
  21965. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  21966. individual {@link Mapper}.
  21967. <p>Typically, it presents a byte-oriented view on the input and is the
  21968. responsibility of {@link RecordReader} of the job to process this and present
  21969. a record-oriented view.
  21970. @see InputFormat
  21971. @see RecordReader]]>
  21972. </doc>
  21973. </interface>
  21974. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  21975. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  21976. <class name="InvalidFileTypeException" extends="java.io.IOException"
  21977. abstract="false"
  21978. static="false" final="false" visibility="public"
  21979. deprecated="not deprecated">
  21980. <constructor name="InvalidFileTypeException"
  21981. static="false" final="false" visibility="public"
  21982. deprecated="not deprecated">
  21983. </constructor>
  21984. <constructor name="InvalidFileTypeException" type="java.lang.String"
  21985. static="false" final="false" visibility="public"
  21986. deprecated="not deprecated">
  21987. </constructor>
  21988. <doc>
  21989. <![CDATA[Used when file type differs from the desired file type. like
  21990. getting a file when a directory is expected. Or a wrong file type.]]>
  21991. </doc>
  21992. </class>
  21993. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  21994. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  21995. <class name="InvalidInputException" extends="java.io.IOException"
  21996. abstract="false"
  21997. static="false" final="false" visibility="public"
  21998. deprecated="not deprecated">
  21999. <constructor name="InvalidInputException" type="java.util.List&lt;java.io.IOException&gt;"
  22000. static="false" final="false" visibility="public"
  22001. deprecated="not deprecated">
  22002. <doc>
  22003. <![CDATA[Create the exception with the given list.
  22004. @param probs the list of problems to report. this list is not copied.]]>
  22005. </doc>
  22006. </constructor>
  22007. <method name="getProblems" return="java.util.List&lt;java.io.IOException&gt;"
  22008. abstract="false" native="false" synchronized="false"
  22009. static="false" final="false" visibility="public"
  22010. deprecated="not deprecated">
  22011. <doc>
  22012. <![CDATA[Get the complete list of the problems reported.
  22013. @return the list of problems, which must not be modified]]>
  22014. </doc>
  22015. </method>
  22016. <method name="getMessage" return="java.lang.String"
  22017. abstract="false" native="false" synchronized="false"
  22018. static="false" final="false" visibility="public"
  22019. deprecated="not deprecated">
  22020. <doc>
  22021. <![CDATA[Get a summary message of the problems found.
  22022. @return the concatenated messages from all of the problems.]]>
  22023. </doc>
  22024. </method>
  22025. <doc>
  22026. <![CDATA[This class wraps a list of problems with the input, so that the user
  22027. can get a list of problems together instead of finding and fixing them one
  22028. by one.]]>
  22029. </doc>
  22030. </class>
  22031. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  22032. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  22033. <class name="InvalidJobConfException" extends="java.io.IOException"
  22034. abstract="false"
  22035. static="false" final="false" visibility="public"
  22036. deprecated="not deprecated">
  22037. <constructor name="InvalidJobConfException"
  22038. static="false" final="false" visibility="public"
  22039. deprecated="not deprecated">
  22040. </constructor>
  22041. <constructor name="InvalidJobConfException" type="java.lang.String"
  22042. static="false" final="false" visibility="public"
  22043. deprecated="not deprecated">
  22044. </constructor>
  22045. <doc>
  22046. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  22047. or value of some attributes is invalid.]]>
  22048. </doc>
  22049. </class>
  22050. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  22051. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  22052. <class name="IsolationRunner" extends="java.lang.Object"
  22053. abstract="false"
  22054. static="false" final="false" visibility="public"
  22055. deprecated="not deprecated">
  22056. <constructor name="IsolationRunner"
  22057. static="false" final="false" visibility="public"
  22058. deprecated="not deprecated">
  22059. </constructor>
  22060. <method name="main"
  22061. abstract="false" native="false" synchronized="false"
  22062. static="true" final="false" visibility="public"
  22063. deprecated="not deprecated">
  22064. <param name="args" type="java.lang.String[]"/>
  22065. <exception name="IOException" type="java.io.IOException"/>
  22066. <doc>
  22067. <![CDATA[Run a single task
  22068. @param args the first argument is the task directory]]>
  22069. </doc>
  22070. </method>
  22071. </class>
  22072. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  22073. <!-- start class org.apache.hadoop.mapred.JobClient -->
  22074. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  22075. abstract="false"
  22076. static="false" final="false" visibility="public"
  22077. deprecated="not deprecated">
  22078. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  22079. <implements name="org.apache.hadoop.util.Tool"/>
  22080. <constructor name="JobClient"
  22081. static="false" final="false" visibility="public"
  22082. deprecated="not deprecated">
  22083. <doc>
  22084. <![CDATA[Create a job client.]]>
  22085. </doc>
  22086. </constructor>
  22087. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  22088. static="false" final="false" visibility="public"
  22089. deprecated="not deprecated">
  22090. <exception name="IOException" type="java.io.IOException"/>
  22091. <doc>
  22092. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  22093. default {@link JobTracker}.
  22094. @param conf the job configuration.
  22095. @throws IOException]]>
  22096. </doc>
  22097. </constructor>
  22098. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  22099. static="false" final="false" visibility="public"
  22100. deprecated="not deprecated">
  22101. <exception name="IOException" type="java.io.IOException"/>
  22102. <doc>
  22103. <![CDATA[Build a job client, connect to the indicated job tracker.
  22104. @param jobTrackAddr the job tracker to connect to.
  22105. @param conf configuration.]]>
  22106. </doc>
  22107. </constructor>
  22108. <method name="getCommandLineConfig" return="org.apache.hadoop.conf.Configuration"
  22109. abstract="false" native="false" synchronized="false"
  22110. static="true" final="false" visibility="public"
  22111. deprecated="not deprecated">
  22112. <doc>
  22113. <![CDATA[return the command line configuration]]>
  22114. </doc>
  22115. </method>
  22116. <method name="init"
  22117. abstract="false" native="false" synchronized="false"
  22118. static="false" final="false" visibility="public"
  22119. deprecated="not deprecated">
  22120. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  22121. <exception name="IOException" type="java.io.IOException"/>
  22122. <doc>
  22123. <![CDATA[Connect to the default {@link JobTracker}.
  22124. @param conf the job configuration.
  22125. @throws IOException]]>
  22126. </doc>
  22127. </method>
  22128. <method name="close"
  22129. abstract="false" native="false" synchronized="true"
  22130. static="false" final="false" visibility="public"
  22131. deprecated="not deprecated">
  22132. <exception name="IOException" type="java.io.IOException"/>
  22133. <doc>
  22134. <![CDATA[Close the <code>JobClient</code>.]]>
  22135. </doc>
  22136. </method>
  22137. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  22138. abstract="false" native="false" synchronized="true"
  22139. static="false" final="false" visibility="public"
  22140. deprecated="not deprecated">
  22141. <exception name="IOException" type="java.io.IOException"/>
  22142. <doc>
  22143. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  22144. for submission to the MapReduce system.
  22145. @return the filesystem handle.]]>
  22146. </doc>
  22147. </method>
  22148. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  22149. abstract="false" native="false" synchronized="false"
  22150. static="false" final="false" visibility="public"
  22151. deprecated="not deprecated">
  22152. <param name="jobFile" type="java.lang.String"/>
  22153. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  22154. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  22155. <exception name="IOException" type="java.io.IOException"/>
  22156. <doc>
  22157. <![CDATA[Submit a job to the MR system.
  22158. This returns a handle to the {@link RunningJob} which can be used to track
  22159. the running-job.
  22160. @param jobFile the job configuration.
  22161. @return a handle to the {@link RunningJob} which can be used to track the
  22162. running-job.
  22163. @throws FileNotFoundException
  22164. @throws InvalidJobConfException
  22165. @throws IOException]]>
  22166. </doc>
  22167. </method>
  22168. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  22169. abstract="false" native="false" synchronized="false"
  22170. static="false" final="false" visibility="public"
  22171. deprecated="not deprecated">
  22172. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22173. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  22174. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  22175. <exception name="IOException" type="java.io.IOException"/>
  22176. <doc>
  22177. <![CDATA[Submit a job to the MR system.
  22178. This returns a handle to the {@link RunningJob} which can be used to track
  22179. the running-job.
  22180. @param job the job configuration.
  22181. @return a handle to the {@link RunningJob} which can be used to track the
  22182. running-job.
  22183. @throws FileNotFoundException
  22184. @throws InvalidJobConfException
  22185. @throws IOException]]>
  22186. </doc>
  22187. </method>
  22188. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  22189. abstract="false" native="false" synchronized="false"
  22190. static="false" final="false" visibility="public"
  22191. deprecated="not deprecated">
  22192. <param name="jobid" type="java.lang.String"/>
  22193. <exception name="IOException" type="java.io.IOException"/>
  22194. <doc>
  22195. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  22196. null if the id does not correspond to any known job.
  22197. @param jobid the jobid of the job.
  22198. @return the {@link RunningJob} handle to track the job, null if the
  22199. <code>jobid</code> doesn't correspond to any known job.
  22200. @throws IOException]]>
  22201. </doc>
  22202. </method>
  22203. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  22204. abstract="false" native="false" synchronized="false"
  22205. static="false" final="false" visibility="public"
  22206. deprecated="not deprecated">
  22207. <param name="jobId" type="java.lang.String"/>
  22208. <exception name="IOException" type="java.io.IOException"/>
  22209. <doc>
  22210. <![CDATA[Get the information of the current state of the map tasks of a job.
  22211. @param jobId the job to query.
  22212. @return the list of all of the map tips.
  22213. @throws IOException]]>
  22214. </doc>
  22215. </method>
  22216. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  22217. abstract="false" native="false" synchronized="false"
  22218. static="false" final="false" visibility="public"
  22219. deprecated="not deprecated">
  22220. <param name="jobId" type="java.lang.String"/>
  22221. <exception name="IOException" type="java.io.IOException"/>
  22222. <doc>
  22223. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  22224. @param jobId the job to query.
  22225. @return the list of all of the reduce tips.
  22226. @throws IOException]]>
  22227. </doc>
  22228. </method>
  22229. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  22230. abstract="false" native="false" synchronized="false"
  22231. static="false" final="false" visibility="public"
  22232. deprecated="not deprecated">
  22233. <exception name="IOException" type="java.io.IOException"/>
  22234. <doc>
  22235. <![CDATA[Get status information about the Map-Reduce cluster.
  22236. @return the status information about the Map-Reduce cluster as an object
  22237. of {@link ClusterStatus}.
  22238. @throws IOException]]>
  22239. </doc>
  22240. </method>
  22241. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  22242. abstract="false" native="false" synchronized="false"
  22243. static="false" final="false" visibility="public"
  22244. deprecated="not deprecated">
  22245. <exception name="IOException" type="java.io.IOException"/>
  22246. <doc>
  22247. <![CDATA[Get the jobs that are not completed and not failed.
  22248. @return array of {@link JobStatus} for the running/to-be-run jobs.
  22249. @throws IOException]]>
  22250. </doc>
  22251. </method>
  22252. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  22253. abstract="false" native="false" synchronized="false"
  22254. static="false" final="false" visibility="public"
  22255. deprecated="not deprecated">
  22256. <exception name="IOException" type="java.io.IOException"/>
  22257. <doc>
  22258. <![CDATA[Get the jobs that are submitted.
  22259. @return array of {@link JobStatus} for the submitted jobs.
  22260. @throws IOException]]>
  22261. </doc>
  22262. </method>
  22263. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  22264. abstract="false" native="false" synchronized="false"
  22265. static="true" final="false" visibility="public"
  22266. deprecated="not deprecated">
  22267. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22268. <exception name="IOException" type="java.io.IOException"/>
  22269. <doc>
  22270. <![CDATA[Utility that submits a job, then polls for progress until the job is
  22271. complete.
  22272. @param job the job configuration.
  22273. @throws IOException]]>
  22274. </doc>
  22275. </method>
  22276. <method name="setTaskOutputFilter"
  22277. abstract="false" native="false" synchronized="false"
  22278. static="false" final="false" visibility="public"
  22279. deprecated="not deprecated">
  22280. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  22281. <doc>
  22282. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  22283. output matches the filter.
  22284. @param newValue task filter.]]>
  22285. </doc>
  22286. </method>
  22287. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  22288. abstract="false" native="false" synchronized="false"
  22289. static="true" final="false" visibility="public"
  22290. deprecated="not deprecated">
  22291. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22292. <doc>
  22293. <![CDATA[Get the task output filter out of the JobConf.
  22294. @param job the JobConf to examine.
  22295. @return the filter level.]]>
  22296. </doc>
  22297. </method>
  22298. <method name="setTaskOutputFilter"
  22299. abstract="false" native="false" synchronized="false"
  22300. static="true" final="false" visibility="public"
  22301. deprecated="not deprecated">
  22302. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  22303. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  22304. <doc>
  22305. <![CDATA[Modify the JobConf to set the task output filter.
  22306. @param job the JobConf to modify.
  22307. @param newValue the value to set.]]>
  22308. </doc>
  22309. </method>
  22310. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  22311. abstract="false" native="false" synchronized="false"
  22312. static="false" final="false" visibility="public"
  22313. deprecated="not deprecated">
  22314. <doc>
  22315. <![CDATA[Returns task output filter.
  22316. @return task filter.]]>
  22317. </doc>
  22318. </method>
  22319. <method name="run" return="int"
  22320. abstract="false" native="false" synchronized="false"
  22321. static="false" final="false" visibility="public"
  22322. deprecated="not deprecated">
  22323. <param name="argv" type="java.lang.String[]"/>
  22324. <exception name="Exception" type="java.lang.Exception"/>
  22325. </method>
  22326. <method name="main"
  22327. abstract="false" native="false" synchronized="false"
  22328. static="true" final="false" visibility="public"
  22329. deprecated="not deprecated">
  22330. <param name="argv" type="java.lang.String[]"/>
  22331. <exception name="Exception" type="java.lang.Exception"/>
  22332. </method>
  22333. <doc>
  22334. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  22335. with the {@link JobTracker}.
  22336. <code>JobClient</code> provides facilities to submit jobs, track their
  22337. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  22338. status information etc.
  22339. <p>The job submission process involves:
  22340. <ol>
  22341. <li>
  22342. Checking the input and output specifications of the job.
  22343. </li>
  22344. <li>
  22345. Computing the {@link InputSplit}s for the job.
  22346. </li>
  22347. <li>
  22348. Setup the requisite accounting information for the {@link DistributedCache}
  22349. of the job, if necessary.
  22350. </li>
  22351. <li>
  22352. Copying the job's jar and configuration to the map-reduce system directory
  22353. on the distributed file-system.
  22354. </li>
  22355. <li>
  22356. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  22357. it's status.
  22358. </li>
  22359. </ol></p>
  22360. Normally the user creates the application, describes various facets of the
  22361. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  22362. the job and monitor its progress.
  22363. <p>Here is an example on how to use <code>JobClient</code>:</p>
  22364. <p><blockquote><pre>
  22365. // Create a new JobConf
  22366. JobConf job = new JobConf(new Configuration(), MyJob.class);
  22367. // Specify various job-specific parameters
  22368. job.setJobName("myjob");
  22369. job.setInputPath(new Path("in"));
  22370. job.setOutputPath(new Path("out"));
  22371. job.setMapperClass(MyJob.MyMapper.class);
  22372. job.setReducerClass(MyJob.MyReducer.class);
  22373. // Submit the job, then poll for progress until the job is complete
  22374. JobClient.runJob(job);
  22375. </pre></blockquote></p>
  22376. <h4 id="JobControl">Job Control</h4>
  22377. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  22378. which cannot be done via a single map-reduce job. This is fairly easy since
  22379. the output of the job, typically, goes to distributed file-system and that
  22380. can be used as the input for the next job.</p>
  22381. <p>However, this also means that the onus on ensuring jobs are complete
  22382. (success/failure) lies squarely on the clients. In such situations the
  22383. various job-control options are:
  22384. <ol>
  22385. <li>
  22386. {@link #runJob(JobConf)} : submits the job and returns only after
  22387. the job has completed.
  22388. </li>
  22389. <li>
  22390. {@link #submitJob(JobConf)} : only submits the job, then poll the
  22391. returned handle to the {@link RunningJob} to query status and make
  22392. scheduling decisions.
  22393. </li>
  22394. <li>
  22395. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  22396. on job-completion, thus avoiding polling.
  22397. </li>
  22398. </ol></p>
  22399. @see JobConf
  22400. @see ClusterStatus
  22401. @see Tool
  22402. @see DistributedCache]]>
  22403. </doc>
  22404. </class>
  22405. <!-- end class org.apache.hadoop.mapred.JobClient -->
  22406. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  22407. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobClient.TaskStatusFilter&gt;"
  22408. abstract="false"
  22409. static="true" final="true" visibility="public"
  22410. deprecated="not deprecated">
  22411. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  22412. abstract="false" native="false" synchronized="false"
  22413. static="true" final="false" visibility="public"
  22414. deprecated="not deprecated">
  22415. </method>
  22416. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  22417. abstract="false" native="false" synchronized="false"
  22418. static="true" final="false" visibility="public"
  22419. deprecated="not deprecated">
  22420. <param name="name" type="java.lang.String"/>
  22421. </method>
  22422. </class>
  22423. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  22424. <!-- start class org.apache.hadoop.mapred.JobConf -->
  22425. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  22426. abstract="false"
  22427. static="false" final="false" visibility="public"
  22428. deprecated="not deprecated">
  22429. <constructor name="JobConf"
  22430. static="false" final="false" visibility="public"
  22431. deprecated="not deprecated">
  22432. <doc>
  22433. <![CDATA[Construct a map/reduce job configuration.]]>
  22434. </doc>
  22435. </constructor>
  22436. <constructor name="JobConf" type="java.lang.Class"
  22437. static="false" final="false" visibility="public"
  22438. deprecated="not deprecated">
  22439. <doc>
  22440. <![CDATA[Construct a map/reduce job configuration.
  22441. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  22442. </doc>
  22443. </constructor>
  22444. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  22445. static="false" final="false" visibility="public"
  22446. deprecated="not deprecated">
  22447. <doc>
  22448. <![CDATA[Construct a map/reduce job configuration.
  22449. @param conf a Configuration whose settings will be inherited.]]>
  22450. </doc>
  22451. </constructor>
  22452. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  22453. static="false" final="false" visibility="public"
  22454. deprecated="not deprecated">
  22455. <doc>
  22456. <![CDATA[Construct a map/reduce job configuration.
  22457. @param conf a Configuration whose settings will be inherited.
  22458. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  22459. </doc>
  22460. </constructor>
  22461. <constructor name="JobConf" type="java.lang.String"
  22462. static="false" final="false" visibility="public"
  22463. deprecated="not deprecated">
  22464. <doc>
  22465. <![CDATA[Construct a map/reduce configuration.
  22466. @param config a Configuration-format XML job description file.]]>
  22467. </doc>
  22468. </constructor>
  22469. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  22470. static="false" final="false" visibility="public"
  22471. deprecated="not deprecated">
  22472. <doc>
  22473. <![CDATA[Construct a map/reduce configuration.
  22474. @param config a Configuration-format XML job description file.]]>
  22475. </doc>
  22476. </constructor>
  22477. <method name="getJar" return="java.lang.String"
  22478. abstract="false" native="false" synchronized="false"
  22479. static="false" final="false" visibility="public"
  22480. deprecated="not deprecated">
  22481. <doc>
  22482. <![CDATA[Get the user jar for the map-reduce job.
  22483. @return the user jar for the map-reduce job.]]>
  22484. </doc>
  22485. </method>
  22486. <method name="setJar"
  22487. abstract="false" native="false" synchronized="false"
  22488. static="false" final="false" visibility="public"
  22489. deprecated="not deprecated">
  22490. <param name="jar" type="java.lang.String"/>
  22491. <doc>
  22492. <![CDATA[Set the user jar for the map-reduce job.
  22493. @param jar the user jar for the map-reduce job.]]>
  22494. </doc>
  22495. </method>
  22496. <method name="setJarByClass"
  22497. abstract="false" native="false" synchronized="false"
  22498. static="false" final="false" visibility="public"
  22499. deprecated="not deprecated">
  22500. <param name="cls" type="java.lang.Class"/>
  22501. <doc>
  22502. <![CDATA[Set the job's jar file by finding an example class location.
  22503. @param cls the example class.]]>
  22504. </doc>
  22505. </method>
  22506. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  22507. abstract="false" native="false" synchronized="false"
  22508. static="false" final="false" visibility="public"
  22509. deprecated="not deprecated">
  22510. <doc>
  22511. <![CDATA[Get the system directory where job-specific files are to be placed.
  22512. @return the system directory where job-specific files are to be placed.]]>
  22513. </doc>
  22514. </method>
  22515. <method name="getLocalDirs" return="java.lang.String[]"
  22516. abstract="false" native="false" synchronized="false"
  22517. static="false" final="false" visibility="public"
  22518. deprecated="not deprecated">
  22519. <exception name="IOException" type="java.io.IOException"/>
  22520. </method>
  22521. <method name="deleteLocalFiles"
  22522. abstract="false" native="false" synchronized="false"
  22523. static="false" final="false" visibility="public"
  22524. deprecated="not deprecated">
  22525. <exception name="IOException" type="java.io.IOException"/>
  22526. </method>
  22527. <method name="deleteLocalFiles"
  22528. abstract="false" native="false" synchronized="false"
  22529. static="false" final="false" visibility="public"
  22530. deprecated="not deprecated">
  22531. <param name="subdir" type="java.lang.String"/>
  22532. <exception name="IOException" type="java.io.IOException"/>
  22533. </method>
  22534. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  22535. abstract="false" native="false" synchronized="false"
  22536. static="false" final="false" visibility="public"
  22537. deprecated="not deprecated">
  22538. <param name="pathString" type="java.lang.String"/>
  22539. <exception name="IOException" type="java.io.IOException"/>
  22540. <doc>
  22541. <![CDATA[Constructs a local file name. Files are distributed among configured
  22542. local directories.]]>
  22543. </doc>
  22544. </method>
  22545. <method name="setInputPath"
  22546. abstract="false" native="false" synchronized="false"
  22547. static="false" final="false" visibility="public"
  22548. deprecated="Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  22549. {@link FileInputFormat#setInputPaths(JobConf, String)}">
  22550. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22551. <doc>
  22552. <![CDATA[Set the {@link Path} of the input directory for the map-reduce job.
  22553. @param dir the {@link Path} of the input directory for the map-reduce job.
  22554. @deprecated Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  22555. {@link FileInputFormat#setInputPaths(JobConf, String)}]]>
  22556. </doc>
  22557. </method>
  22558. <method name="addInputPath"
  22559. abstract="false" native="false" synchronized="false"
  22560. static="false" final="false" visibility="public"
  22561. deprecated="Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  22562. {@link FileInputFormat#addInputPaths(JobConf, String)}">
  22563. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22564. <doc>
  22565. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  22566. @param dir {@link Path} to be added to the list of inputs for
  22567. the map-reduce job.
  22568. @deprecated Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  22569. {@link FileInputFormat#addInputPaths(JobConf, String)}]]>
  22570. </doc>
  22571. </method>
  22572. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  22573. abstract="false" native="false" synchronized="false"
  22574. static="false" final="false" visibility="public"
  22575. deprecated="Use {@link FileInputFormat#getInputPaths(JobConf)}">
  22576. <doc>
  22577. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  22578. @return the list of input {@link Path}s for the map-reduce job.
  22579. @deprecated Use {@link FileInputFormat#getInputPaths(JobConf)}]]>
  22580. </doc>
  22581. </method>
  22582. <method name="getUser" return="java.lang.String"
  22583. abstract="false" native="false" synchronized="false"
  22584. static="false" final="false" visibility="public"
  22585. deprecated="not deprecated">
  22586. <doc>
  22587. <![CDATA[Get the reported username for this job.
  22588. @return the username]]>
  22589. </doc>
  22590. </method>
  22591. <method name="setUser"
  22592. abstract="false" native="false" synchronized="false"
  22593. static="false" final="false" visibility="public"
  22594. deprecated="not deprecated">
  22595. <param name="user" type="java.lang.String"/>
  22596. <doc>
  22597. <![CDATA[Set the reported username for this job.
  22598. @param user the username for this job.]]>
  22599. </doc>
  22600. </method>
  22601. <method name="setKeepFailedTaskFiles"
  22602. abstract="false" native="false" synchronized="false"
  22603. static="false" final="false" visibility="public"
  22604. deprecated="not deprecated">
  22605. <param name="keep" type="boolean"/>
  22606. <doc>
  22607. <![CDATA[Set whether the framework should keep the intermediate files for
  22608. failed tasks.
  22609. @param keep <code>true</code> if framework should keep the intermediate files
  22610. for failed tasks, <code>false</code> otherwise.]]>
  22611. </doc>
  22612. </method>
  22613. <method name="getKeepFailedTaskFiles" return="boolean"
  22614. abstract="false" native="false" synchronized="false"
  22615. static="false" final="false" visibility="public"
  22616. deprecated="not deprecated">
  22617. <doc>
  22618. <![CDATA[Should the temporary files for failed tasks be kept?
  22619. @return should the files be kept?]]>
  22620. </doc>
  22621. </method>
  22622. <method name="setKeepTaskFilesPattern"
  22623. abstract="false" native="false" synchronized="false"
  22624. static="false" final="false" visibility="public"
  22625. deprecated="not deprecated">
  22626. <param name="pattern" type="java.lang.String"/>
  22627. <doc>
  22628. <![CDATA[Set a regular expression for task names that should be kept.
  22629. The regular expression ".*_m_000123_0" would keep the files
  22630. for the first instance of map 123 that ran.
  22631. @param pattern the java.util.regex.Pattern to match against the
  22632. task names.]]>
  22633. </doc>
  22634. </method>
  22635. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  22636. abstract="false" native="false" synchronized="false"
  22637. static="false" final="false" visibility="public"
  22638. deprecated="not deprecated">
  22639. <doc>
  22640. <![CDATA[Get the regular expression that is matched against the task names
  22641. to see if we need to keep the files.
  22642. @return the pattern as a string, if it was set, othewise null.]]>
  22643. </doc>
  22644. </method>
  22645. <method name="setWorkingDirectory"
  22646. abstract="false" native="false" synchronized="false"
  22647. static="false" final="false" visibility="public"
  22648. deprecated="not deprecated">
  22649. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22650. <doc>
  22651. <![CDATA[Set the current working directory for the default file system.
  22652. @param dir the new current working directory.]]>
  22653. </doc>
  22654. </method>
  22655. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  22656. abstract="false" native="false" synchronized="false"
  22657. static="false" final="false" visibility="public"
  22658. deprecated="not deprecated">
  22659. <doc>
  22660. <![CDATA[Get the current working directory for the default file system.
  22661. @return the directory name.]]>
  22662. </doc>
  22663. </method>
  22664. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  22665. abstract="false" native="false" synchronized="false"
  22666. static="false" final="false" visibility="public"
  22667. deprecated="Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  22668. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  22669. Get the {@link Path} to the output directory for the map-reduce job.">
  22670. <doc>
  22671. <![CDATA[@deprecated Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  22672. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  22673. Get the {@link Path} to the output directory for the map-reduce job.
  22674. @return the {@link Path} to the output directory for the map-reduce job.]]>
  22675. </doc>
  22676. </method>
  22677. <method name="setOutputPath"
  22678. abstract="false" native="false" synchronized="false"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  22681. Set the {@link Path} of the output directory for the map-reduce job.
  22682. lEsS_tHaNp>lEsS_tHaNi>NotelEsS_tHaN/i>:
  22683. lEsS_tHaN/p>">
  22684. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  22685. <doc>
  22686. <![CDATA[@deprecated Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  22687. Set the {@link Path} of the output directory for the map-reduce job.
  22688. <p><i>Note</i>:
  22689. </p>
  22690. @param dir the {@link Path} of the output directory for the map-reduce job.]]>
  22691. </doc>
  22692. </method>
  22693. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  22694. abstract="false" native="false" synchronized="false"
  22695. static="false" final="false" visibility="public"
  22696. deprecated="not deprecated">
  22697. <doc>
  22698. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  22699. defaults to {@link TextInputFormat} if not specified explicity.
  22700. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  22701. </doc>
  22702. </method>
  22703. <method name="setInputFormat"
  22704. abstract="false" native="false" synchronized="false"
  22705. static="false" final="false" visibility="public"
  22706. deprecated="not deprecated">
  22707. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  22708. <doc>
  22709. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  22710. @param theClass the {@link InputFormat} implementation for the map-reduce
  22711. job.]]>
  22712. </doc>
  22713. </method>
  22714. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  22715. abstract="false" native="false" synchronized="false"
  22716. static="false" final="false" visibility="public"
  22717. deprecated="not deprecated">
  22718. <doc>
  22719. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  22720. defaults to {@link TextOutputFormat} if not specified explicity.
  22721. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  22722. </doc>
  22723. </method>
  22724. <method name="setOutputFormat"
  22725. abstract="false" native="false" synchronized="false"
  22726. static="false" final="false" visibility="public"
  22727. deprecated="not deprecated">
  22728. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  22729. <doc>
  22730. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  22731. @param theClass the {@link OutputFormat} implementation for the map-reduce
  22732. job.]]>
  22733. </doc>
  22734. </method>
  22735. <method name="setCompressMapOutput"
  22736. abstract="false" native="false" synchronized="false"
  22737. static="false" final="false" visibility="public"
  22738. deprecated="not deprecated">
  22739. <param name="compress" type="boolean"/>
  22740. <doc>
  22741. <![CDATA[Should the map outputs be compressed before transfer?
  22742. Uses the SequenceFile compression.
  22743. @param compress should the map outputs be compressed?]]>
  22744. </doc>
  22745. </method>
  22746. <method name="getCompressMapOutput" return="boolean"
  22747. abstract="false" native="false" synchronized="false"
  22748. static="false" final="false" visibility="public"
  22749. deprecated="not deprecated">
  22750. <doc>
  22751. <![CDATA[Are the outputs of the maps be compressed?
  22752. @return <code>true</code> if the outputs of the maps are to be compressed,
  22753. <code>false</code> otherwise.]]>
  22754. </doc>
  22755. </method>
  22756. <method name="setMapOutputCompressionType"
  22757. abstract="false" native="false" synchronized="false"
  22758. static="false" final="false" visibility="public"
  22759. deprecated="not deprecated">
  22760. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  22761. <doc>
  22762. <![CDATA[Set the {@link CompressionType} for the map outputs.
  22763. @param style the {@link CompressionType} to control how the map outputs
  22764. are compressed.]]>
  22765. </doc>
  22766. </method>
  22767. <method name="getMapOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  22768. abstract="false" native="false" synchronized="false"
  22769. static="false" final="false" visibility="public"
  22770. deprecated="not deprecated">
  22771. <doc>
  22772. <![CDATA[Get the {@link CompressionType} for the map outputs.
  22773. @return the {@link CompressionType} for map outputs, defaulting to
  22774. {@link CompressionType#RECORD}.]]>
  22775. </doc>
  22776. </method>
  22777. <method name="setMapOutputCompressorClass"
  22778. abstract="false" native="false" synchronized="false"
  22779. static="false" final="false" visibility="public"
  22780. deprecated="not deprecated">
  22781. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  22782. <doc>
  22783. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  22784. @param codecClass the {@link CompressionCodec} class that will compress
  22785. the map outputs.]]>
  22786. </doc>
  22787. </method>
  22788. <method name="getMapOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  22789. abstract="false" native="false" synchronized="false"
  22790. static="false" final="false" visibility="public"
  22791. deprecated="not deprecated">
  22792. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  22793. <doc>
  22794. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  22795. @param defaultValue the {@link CompressionCodec} to return if not set
  22796. @return the {@link CompressionCodec} class that should be used to compress the
  22797. map outputs.
  22798. @throws IllegalArgumentException if the class was specified, but not found]]>
  22799. </doc>
  22800. </method>
  22801. <method name="getMapOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  22802. abstract="false" native="false" synchronized="false"
  22803. static="false" final="false" visibility="public"
  22804. deprecated="not deprecated">
  22805. <doc>
  22806. <![CDATA[Get the key class for the map output data. If it is not set, use the
  22807. (final) output key class. This allows the map output key class to be
  22808. different than the final output key class.
  22809. @return the map output key class.]]>
  22810. </doc>
  22811. </method>
  22812. <method name="setMapOutputKeyClass"
  22813. abstract="false" native="false" synchronized="false"
  22814. static="false" final="false" visibility="public"
  22815. deprecated="not deprecated">
  22816. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22817. <doc>
  22818. <![CDATA[Set the key class for the map output data. This allows the user to
  22819. specify the map output key class to be different than the final output
  22820. value class.
  22821. @param theClass the map output key class.]]>
  22822. </doc>
  22823. </method>
  22824. <method name="getMapOutputValueClass" return="java.lang.Class&lt;?&gt;"
  22825. abstract="false" native="false" synchronized="false"
  22826. static="false" final="false" visibility="public"
  22827. deprecated="not deprecated">
  22828. <doc>
  22829. <![CDATA[Get the value class for the map output data. If it is not set, use the
  22830. (final) output value class This allows the map output value class to be
  22831. different than the final output value class.
  22832. @return the map output value class.]]>
  22833. </doc>
  22834. </method>
  22835. <method name="setMapOutputValueClass"
  22836. abstract="false" native="false" synchronized="false"
  22837. static="false" final="false" visibility="public"
  22838. deprecated="not deprecated">
  22839. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22840. <doc>
  22841. <![CDATA[Set the value class for the map output data. This allows the user to
  22842. specify the map output value class to be different than the final output
  22843. value class.
  22844. @param theClass the map output value class.]]>
  22845. </doc>
  22846. </method>
  22847. <method name="getOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  22848. abstract="false" native="false" synchronized="false"
  22849. static="false" final="false" visibility="public"
  22850. deprecated="not deprecated">
  22851. <doc>
  22852. <![CDATA[Get the key class for the job output data.
  22853. @return the key class for the job output data.]]>
  22854. </doc>
  22855. </method>
  22856. <method name="setOutputKeyClass"
  22857. abstract="false" native="false" synchronized="false"
  22858. static="false" final="false" visibility="public"
  22859. deprecated="not deprecated">
  22860. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22861. <doc>
  22862. <![CDATA[Set the key class for the job output data.
  22863. @param theClass the key class for the job output data.]]>
  22864. </doc>
  22865. </method>
  22866. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  22867. abstract="false" native="false" synchronized="false"
  22868. static="false" final="false" visibility="public"
  22869. deprecated="not deprecated">
  22870. <doc>
  22871. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  22872. @return the {@link RawComparator} comparator used to compare keys.]]>
  22873. </doc>
  22874. </method>
  22875. <method name="setOutputKeyComparatorClass"
  22876. abstract="false" native="false" synchronized="false"
  22877. static="false" final="false" visibility="public"
  22878. deprecated="not deprecated">
  22879. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  22880. <doc>
  22881. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  22882. @param theClass the {@link RawComparator} comparator used to
  22883. compare keys.
  22884. @see #setOutputValueGroupingComparator(Class)]]>
  22885. </doc>
  22886. </method>
  22887. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  22888. abstract="false" native="false" synchronized="false"
  22889. static="false" final="false" visibility="public"
  22890. deprecated="not deprecated">
  22891. <doc>
  22892. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  22893. grouping keys of inputs to the reduce.
  22894. @return comparator set by the user for grouping values.
  22895. @see #setOutputValueGroupingComparator(Class) for details.]]>
  22896. </doc>
  22897. </method>
  22898. <method name="setOutputValueGroupingComparator"
  22899. abstract="false" native="false" synchronized="false"
  22900. static="false" final="false" visibility="public"
  22901. deprecated="not deprecated">
  22902. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  22903. <doc>
  22904. <![CDATA[Set the user defined {@link RawComparator} comparator for
  22905. grouping keys in the input to the reduce.
  22906. <p>This comparator should be provided if the equivalence rules for keys
  22907. for sorting the intermediates are different from those for grouping keys
  22908. before each call to
  22909. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  22910. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  22911. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  22912. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  22913. how keys are sorted, this can be used in conjunction to simulate
  22914. <i>secondary sort on values</i>.</p>
  22915. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  22916. <i>stable</i> in any sense. (In any case, with the order of available
  22917. map-outputs to the reduce being non-deterministic, it wouldn't make
  22918. that much sense.)</p>
  22919. @param theClass the comparator class to be used for grouping keys.
  22920. It should implement <code>RawComparator</code>.
  22921. @see #setOutputKeyComparatorClass(Class)]]>
  22922. </doc>
  22923. </method>
  22924. <method name="getOutputValueClass" return="java.lang.Class&lt;?&gt;"
  22925. abstract="false" native="false" synchronized="false"
  22926. static="false" final="false" visibility="public"
  22927. deprecated="not deprecated">
  22928. <doc>
  22929. <![CDATA[Get the value class for job outputs.
  22930. @return the value class for job outputs.]]>
  22931. </doc>
  22932. </method>
  22933. <method name="setOutputValueClass"
  22934. abstract="false" native="false" synchronized="false"
  22935. static="false" final="false" visibility="public"
  22936. deprecated="not deprecated">
  22937. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  22938. <doc>
  22939. <![CDATA[Set the value class for job outputs.
  22940. @param theClass the value class for job outputs.]]>
  22941. </doc>
  22942. </method>
  22943. <method name="getMapperClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"
  22944. abstract="false" native="false" synchronized="false"
  22945. static="false" final="false" visibility="public"
  22946. deprecated="not deprecated">
  22947. <doc>
  22948. <![CDATA[Get the {@link Mapper} class for the job.
  22949. @return the {@link Mapper} class for the job.]]>
  22950. </doc>
  22951. </method>
  22952. <method name="setMapperClass"
  22953. abstract="false" native="false" synchronized="false"
  22954. static="false" final="false" visibility="public"
  22955. deprecated="not deprecated">
  22956. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"/>
  22957. <doc>
  22958. <![CDATA[Set the {@link Mapper} class for the job.
  22959. @param theClass the {@link Mapper} class for the job.]]>
  22960. </doc>
  22961. </method>
  22962. <method name="getMapRunnerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"
  22963. abstract="false" native="false" synchronized="false"
  22964. static="false" final="false" visibility="public"
  22965. deprecated="not deprecated">
  22966. <doc>
  22967. <![CDATA[Get the {@link MapRunnable} class for the job.
  22968. @return the {@link MapRunnable} class for the job.]]>
  22969. </doc>
  22970. </method>
  22971. <method name="setMapRunnerClass"
  22972. abstract="false" native="false" synchronized="false"
  22973. static="false" final="false" visibility="public"
  22974. deprecated="not deprecated">
  22975. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"/>
  22976. <doc>
  22977. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  22978. Typically used to exert greater control on {@link Mapper}s.
  22979. @param theClass the {@link MapRunnable} class for the job.]]>
  22980. </doc>
  22981. </method>
  22982. <method name="getPartitionerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"
  22983. abstract="false" native="false" synchronized="false"
  22984. static="false" final="false" visibility="public"
  22985. deprecated="not deprecated">
  22986. <doc>
  22987. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  22988. to be sent to the {@link Reducer}s.
  22989. @return the {@link Partitioner} used to partition map-outputs.]]>
  22990. </doc>
  22991. </method>
  22992. <method name="setPartitionerClass"
  22993. abstract="false" native="false" synchronized="false"
  22994. static="false" final="false" visibility="public"
  22995. deprecated="not deprecated">
  22996. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"/>
  22997. <doc>
  22998. <![CDATA[Set the {@link Partitioner} class used to partition
  22999. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  23000. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  23001. </doc>
  23002. </method>
  23003. <method name="getReducerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  23004. abstract="false" native="false" synchronized="false"
  23005. static="false" final="false" visibility="public"
  23006. deprecated="not deprecated">
  23007. <doc>
  23008. <![CDATA[Get the {@link Reducer} class for the job.
  23009. @return the {@link Reducer} class for the job.]]>
  23010. </doc>
  23011. </method>
  23012. <method name="setReducerClass"
  23013. abstract="false" native="false" synchronized="false"
  23014. static="false" final="false" visibility="public"
  23015. deprecated="not deprecated">
  23016. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  23017. <doc>
  23018. <![CDATA[Set the {@link Reducer} class for the job.
  23019. @param theClass the {@link Reducer} class for the job.]]>
  23020. </doc>
  23021. </method>
  23022. <method name="getCombinerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  23023. abstract="false" native="false" synchronized="false"
  23024. static="false" final="false" visibility="public"
  23025. deprecated="not deprecated">
  23026. <doc>
  23027. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  23028. before being sent to the reducers. Typically the combiner is same as the
  23029. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  23030. @return the user-defined combiner class used to combine map-outputs.]]>
  23031. </doc>
  23032. </method>
  23033. <method name="setCombinerClass"
  23034. abstract="false" native="false" synchronized="false"
  23035. static="false" final="false" visibility="public"
  23036. deprecated="not deprecated">
  23037. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  23038. <doc>
  23039. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  23040. before being sent to the reducers.
  23041. <p>The combiner is a task-level aggregation operation which, in some cases,
  23042. helps to cut down the amount of data transferred from the {@link Mapper} to
  23043. the {@link Reducer}, leading to better performance.</p>
  23044. <p>Typically the combiner is same as the <code>Reducer</code> for the
  23045. job i.e. {@link #setReducerClass(Class)}.</p>
  23046. @param theClass the user-defined combiner class used to combine
  23047. map-outputs.]]>
  23048. </doc>
  23049. </method>
  23050. <method name="getSpeculativeExecution" return="boolean"
  23051. abstract="false" native="false" synchronized="false"
  23052. static="false" final="false" visibility="public"
  23053. deprecated="not deprecated">
  23054. <doc>
  23055. <![CDATA[Should speculative execution be used for this job?
  23056. Defaults to <code>true</code>.
  23057. @return <code>true</code> if speculative execution be used for this job,
  23058. <code>false</code> otherwise.]]>
  23059. </doc>
  23060. </method>
  23061. <method name="setSpeculativeExecution"
  23062. abstract="false" native="false" synchronized="false"
  23063. static="false" final="false" visibility="public"
  23064. deprecated="not deprecated">
  23065. <param name="speculativeExecution" type="boolean"/>
  23066. <doc>
  23067. <![CDATA[Turn speculative execution on or off for this job.
  23068. @param speculativeExecution <code>true</code> if speculative execution
  23069. should be turned on, else <code>false</code>.]]>
  23070. </doc>
  23071. </method>
  23072. <method name="getMapSpeculativeExecution" return="boolean"
  23073. abstract="false" native="false" synchronized="false"
  23074. static="false" final="false" visibility="public"
  23075. deprecated="not deprecated">
  23076. <doc>
  23077. <![CDATA[Should speculative execution be used for this job for map tasks?
  23078. Defaults to <code>true</code>.
  23079. @return <code>true</code> if speculative execution be
  23080. used for this job for map tasks,
  23081. <code>false</code> otherwise.]]>
  23082. </doc>
  23083. </method>
  23084. <method name="setMapSpeculativeExecution"
  23085. abstract="false" native="false" synchronized="false"
  23086. static="false" final="false" visibility="public"
  23087. deprecated="not deprecated">
  23088. <param name="speculativeExecution" type="boolean"/>
  23089. <doc>
  23090. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  23091. @param speculativeExecution <code>true</code> if speculative execution
  23092. should be turned on for map tasks,
  23093. else <code>false</code>.]]>
  23094. </doc>
  23095. </method>
  23096. <method name="getReduceSpeculativeExecution" return="boolean"
  23097. abstract="false" native="false" synchronized="false"
  23098. static="false" final="false" visibility="public"
  23099. deprecated="not deprecated">
  23100. <doc>
  23101. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  23102. Defaults to <code>true</code>.
  23103. @return <code>true</code> if speculative execution be used
  23104. for reduce tasks for this job,
  23105. <code>false</code> otherwise.]]>
  23106. </doc>
  23107. </method>
  23108. <method name="setReduceSpeculativeExecution"
  23109. abstract="false" native="false" synchronized="false"
  23110. static="false" final="false" visibility="public"
  23111. deprecated="not deprecated">
  23112. <param name="speculativeExecution" type="boolean"/>
  23113. <doc>
  23114. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  23115. @param speculativeExecution <code>true</code> if speculative execution
  23116. should be turned on for reduce tasks,
  23117. else <code>false</code>.]]>
  23118. </doc>
  23119. </method>
  23120. <method name="getNumMapTasks" return="int"
  23121. abstract="false" native="false" synchronized="false"
  23122. static="false" final="false" visibility="public"
  23123. deprecated="not deprecated">
  23124. <doc>
  23125. <![CDATA[Get configured the number of reduce tasks for this job.
  23126. Defaults to <code>1</code>.
  23127. @return the number of reduce tasks for this job.]]>
  23128. </doc>
  23129. </method>
  23130. <method name="setNumMapTasks"
  23131. abstract="false" native="false" synchronized="false"
  23132. static="false" final="false" visibility="public"
  23133. deprecated="not deprecated">
  23134. <param name="n" type="int"/>
  23135. <doc>
  23136. <![CDATA[Set the number of map tasks for this job.
  23137. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  23138. number of spawned map tasks depends on the number of {@link InputSplit}s
  23139. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  23140. A custom {@link InputFormat} is typically used to accurately control
  23141. the number of map tasks for the job.</p>
  23142. <h4 id="NoOfMaps">How many maps?</h4>
  23143. <p>The number of maps is usually driven by the total size of the inputs
  23144. i.e. total number of blocks of the input files.</p>
  23145. <p>The right level of parallelism for maps seems to be around 10-100 maps
  23146. per-node, although it has been set up to 300 or so for very cpu-light map
  23147. tasks. Task setup takes awhile, so it is best if the maps take at least a
  23148. minute to execute.</p>
  23149. <p>The default behavior of file-based {@link InputFormat}s is to split the
  23150. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  23151. bytes, of input files. However, the {@link FileSystem} blocksize of the
  23152. input files is treated as an upper bound for input splits. A lower bound
  23153. on the split size can be set via
  23154. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  23155. mapred.min.split.size</a>.</p>
  23156. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  23157. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  23158. used to set it even higher.</p>
  23159. @param n the number of map tasks for this job.
  23160. @see InputFormat#getSplits(JobConf, int)
  23161. @see FileInputFormat
  23162. @see FileSystem#getDefaultBlockSize()
  23163. @see FileStatus#getBlockSize()]]>
  23164. </doc>
  23165. </method>
  23166. <method name="getNumReduceTasks" return="int"
  23167. abstract="false" native="false" synchronized="false"
  23168. static="false" final="false" visibility="public"
  23169. deprecated="not deprecated">
  23170. <doc>
  23171. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  23172. <code>1</code>.
  23173. @return the number of reduce tasks for this job.]]>
  23174. </doc>
  23175. </method>
  23176. <method name="setNumReduceTasks"
  23177. abstract="false" native="false" synchronized="false"
  23178. static="false" final="false" visibility="public"
  23179. deprecated="not deprecated">
  23180. <param name="n" type="int"/>
  23181. <doc>
  23182. <![CDATA[Set the requisite number of reduce tasks for this job.
  23183. <h4 id="NoOfReduces">How many reduces?</h4>
  23184. <p>The right number of reduces seems to be <code>0.95</code> or
  23185. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  23186. <a href="{@docRoot}/../hadoop-default.html#mapred.tasktracker.reduce.tasks.maximum">
  23187. mapred.tasktracker.reduce.tasks.maximum</a>).
  23188. </p>
  23189. <p>With <code>0.95</code> all of the reduces can launch immediately and
  23190. start transfering map outputs as the maps finish. With <code>1.75</code>
  23191. the faster nodes will finish their first round of reduces and launch a
  23192. second wave of reduces doing a much better job of load balancing.</p>
  23193. <p>Increasing the number of reduces increases the framework overhead, but
  23194. increases load balancing and lowers the cost of failures.</p>
  23195. <p>The scaling factors above are slightly less than whole numbers to
  23196. reserve a few reduce slots in the framework for speculative-tasks, failures
  23197. etc.</p>
  23198. <h4 id="ReducerNone">Reducer NONE</h4>
  23199. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  23200. <p>In this case the output of the map-tasks directly go to distributed
  23201. file-system, to the path set by
  23202. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  23203. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  23204. @param n the number of reduce tasks for this job.]]>
  23205. </doc>
  23206. </method>
  23207. <method name="getMaxMapAttempts" return="int"
  23208. abstract="false" native="false" synchronized="false"
  23209. static="false" final="false" visibility="public"
  23210. deprecated="not deprecated">
  23211. <doc>
  23212. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  23213. map task, as specified by the <code>mapred.map.max.attempts</code>
  23214. property. If this property is not already set, the default is 4 attempts.
  23215. @return the max number of attempts per map task.]]>
  23216. </doc>
  23217. </method>
  23218. <method name="setMaxMapAttempts"
  23219. abstract="false" native="false" synchronized="false"
  23220. static="false" final="false" visibility="public"
  23221. deprecated="not deprecated">
  23222. <param name="n" type="int"/>
  23223. <doc>
  23224. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  23225. map task.
  23226. @param n the number of attempts per map task.]]>
  23227. </doc>
  23228. </method>
  23229. <method name="getMaxReduceAttempts" return="int"
  23230. abstract="false" native="false" synchronized="false"
  23231. static="false" final="false" visibility="public"
  23232. deprecated="not deprecated">
  23233. <doc>
  23234. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  23235. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  23236. property. If this property is not already set, the default is 4 attempts.
  23237. @return the max number of attempts per reduce task.]]>
  23238. </doc>
  23239. </method>
  23240. <method name="setMaxReduceAttempts"
  23241. abstract="false" native="false" synchronized="false"
  23242. static="false" final="false" visibility="public"
  23243. deprecated="not deprecated">
  23244. <param name="n" type="int"/>
  23245. <doc>
  23246. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  23247. reduce task.
  23248. @param n the number of attempts per reduce task.]]>
  23249. </doc>
  23250. </method>
  23251. <method name="getJobName" return="java.lang.String"
  23252. abstract="false" native="false" synchronized="false"
  23253. static="false" final="false" visibility="public"
  23254. deprecated="not deprecated">
  23255. <doc>
  23256. <![CDATA[Get the user-specified job name. This is only used to identify the
  23257. job to the user.
  23258. @return the job's name, defaulting to "".]]>
  23259. </doc>
  23260. </method>
  23261. <method name="setJobName"
  23262. abstract="false" native="false" synchronized="false"
  23263. static="false" final="false" visibility="public"
  23264. deprecated="not deprecated">
  23265. <param name="name" type="java.lang.String"/>
  23266. <doc>
  23267. <![CDATA[Set the user-specified job name.
  23268. @param name the job's new name.]]>
  23269. </doc>
  23270. </method>
  23271. <method name="getSessionId" return="java.lang.String"
  23272. abstract="false" native="false" synchronized="false"
  23273. static="false" final="false" visibility="public"
  23274. deprecated="not deprecated">
  23275. <doc>
  23276. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  23277. The session identifier is used to tag metric data that is reported to some
  23278. performance metrics system via the org.apache.hadoop.metrics API. The
  23279. session identifier is intended, in particular, for use by Hadoop-On-Demand
  23280. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  23281. HOD will set the session identifier by modifying the hadoop-site.xml file
  23282. before starting the cluster.
  23283. When not running under HOD, this identifer is expected to remain set to
  23284. the empty string.
  23285. @return the session identifier, defaulting to "".]]>
  23286. </doc>
  23287. </method>
  23288. <method name="setSessionId"
  23289. abstract="false" native="false" synchronized="false"
  23290. static="false" final="false" visibility="public"
  23291. deprecated="not deprecated">
  23292. <param name="sessionId" type="java.lang.String"/>
  23293. <doc>
  23294. <![CDATA[Set the user-specified session identifier.
  23295. @param sessionId the new session id.]]>
  23296. </doc>
  23297. </method>
  23298. <method name="setMaxTaskFailuresPerTracker"
  23299. abstract="false" native="false" synchronized="false"
  23300. static="false" final="false" visibility="public"
  23301. deprecated="not deprecated">
  23302. <param name="noFailures" type="int"/>
  23303. <doc>
  23304. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  23305. If the no. of task failures exceeds <code>noFailures</code>, the
  23306. tasktracker is <i>blacklisted</i> for this job.
  23307. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  23308. </doc>
  23309. </method>
  23310. <method name="getMaxTaskFailuresPerTracker" return="int"
  23311. abstract="false" native="false" synchronized="false"
  23312. static="false" final="false" visibility="public"
  23313. deprecated="not deprecated">
  23314. <doc>
  23315. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  23316. If the no. of task failures exceeds this, the tasktracker is
  23317. <i>blacklisted</i> for this job.
  23318. @return the maximum no. of failures of a given job per tasktracker.]]>
  23319. </doc>
  23320. </method>
  23321. <method name="getMaxMapTaskFailuresPercent" return="int"
  23322. abstract="false" native="false" synchronized="false"
  23323. static="false" final="false" visibility="public"
  23324. deprecated="not deprecated">
  23325. <doc>
  23326. <![CDATA[Get the maximum percentage of map tasks that can fail without
  23327. the job being aborted.
  23328. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  23329. attempts before being declared as <i>failed</i>.
  23330. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  23331. the job being declared as {@link JobStatus#FAILED}.
  23332. @return the maximum percentage of map tasks that can fail without
  23333. the job being aborted.]]>
  23334. </doc>
  23335. </method>
  23336. <method name="setMaxMapTaskFailuresPercent"
  23337. abstract="false" native="false" synchronized="false"
  23338. static="false" final="false" visibility="public"
  23339. deprecated="not deprecated">
  23340. <param name="percent" type="int"/>
  23341. <doc>
  23342. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  23343. job being aborted.
  23344. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  23345. before being declared as <i>failed</i>.
  23346. @param percent the maximum percentage of map tasks that can fail without
  23347. the job being aborted.]]>
  23348. </doc>
  23349. </method>
  23350. <method name="getMaxReduceTaskFailuresPercent" return="int"
  23351. abstract="false" native="false" synchronized="false"
  23352. static="false" final="false" visibility="public"
  23353. deprecated="not deprecated">
  23354. <doc>
  23355. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  23356. the job being aborted.
  23357. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  23358. attempts before being declared as <i>failed</i>.
  23359. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  23360. in the job being declared as {@link JobStatus#FAILED}.
  23361. @return the maximum percentage of reduce tasks that can fail without
  23362. the job being aborted.]]>
  23363. </doc>
  23364. </method>
  23365. <method name="setMaxReduceTaskFailuresPercent"
  23366. abstract="false" native="false" synchronized="false"
  23367. static="false" final="false" visibility="public"
  23368. deprecated="not deprecated">
  23369. <param name="percent" type="int"/>
  23370. <doc>
  23371. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  23372. being aborted.
  23373. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  23374. attempts before being declared as <i>failed</i>.
  23375. @param percent the maximum percentage of reduce tasks that can fail without
  23376. the job being aborted.]]>
  23377. </doc>
  23378. </method>
  23379. <method name="setJobPriority"
  23380. abstract="false" native="false" synchronized="false"
  23381. static="false" final="false" visibility="public"
  23382. deprecated="not deprecated">
  23383. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  23384. <doc>
  23385. <![CDATA[Set {@link JobPriority} for this job.
  23386. @param prio the {@link JobPriority} for this job.]]>
  23387. </doc>
  23388. </method>
  23389. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  23390. abstract="false" native="false" synchronized="false"
  23391. static="false" final="false" visibility="public"
  23392. deprecated="not deprecated">
  23393. <doc>
  23394. <![CDATA[Get the {@link JobPriority} for this job.
  23395. @return the {@link JobPriority} for this job.]]>
  23396. </doc>
  23397. </method>
  23398. <method name="getProfileEnabled" return="boolean"
  23399. abstract="false" native="false" synchronized="false"
  23400. static="false" final="false" visibility="public"
  23401. deprecated="not deprecated">
  23402. <doc>
  23403. <![CDATA[Get whether the task profiling is enabled.
  23404. @return true if some tasks will be profiled]]>
  23405. </doc>
  23406. </method>
  23407. <method name="setProfileEnabled"
  23408. abstract="false" native="false" synchronized="false"
  23409. static="false" final="false" visibility="public"
  23410. deprecated="not deprecated">
  23411. <param name="newValue" type="boolean"/>
  23412. <doc>
  23413. <![CDATA[Set whether the system should collect profiler information for some of
  23414. the tasks in this job? The information is stored in the user log
  23415. directory.
  23416. @param newValue true means it should be gathered]]>
  23417. </doc>
  23418. </method>
  23419. <method name="getProfileParams" return="java.lang.String"
  23420. abstract="false" native="false" synchronized="false"
  23421. static="false" final="false" visibility="public"
  23422. deprecated="not deprecated">
  23423. <doc>
  23424. <![CDATA[Get the profiler configuration arguments.
  23425. The default value for this property is
  23426. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  23427. @return the parameters to pass to the task child to configure profiling]]>
  23428. </doc>
  23429. </method>
  23430. <method name="setProfileParams"
  23431. abstract="false" native="false" synchronized="false"
  23432. static="false" final="false" visibility="public"
  23433. deprecated="not deprecated">
  23434. <param name="value" type="java.lang.String"/>
  23435. <doc>
  23436. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  23437. will be replaced with the name of the profiling output file when the task
  23438. runs.
  23439. This value is passed to the task child JVM on the command line.
  23440. @param value the configuration string]]>
  23441. </doc>
  23442. </method>
  23443. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  23444. abstract="false" native="false" synchronized="false"
  23445. static="false" final="false" visibility="public"
  23446. deprecated="not deprecated">
  23447. <param name="isMap" type="boolean"/>
  23448. <doc>
  23449. <![CDATA[Get the range of maps or reduces to profile.
  23450. @param isMap is the task a map?
  23451. @return the task ranges]]>
  23452. </doc>
  23453. </method>
  23454. <method name="setProfileTaskRange"
  23455. abstract="false" native="false" synchronized="false"
  23456. static="false" final="false" visibility="public"
  23457. deprecated="not deprecated">
  23458. <param name="isMap" type="boolean"/>
  23459. <param name="newValue" type="java.lang.String"/>
  23460. <doc>
  23461. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  23462. must also be called.
  23463. @param newValue a set of integer ranges of the map ids]]>
  23464. </doc>
  23465. </method>
  23466. <method name="setMapDebugScript"
  23467. abstract="false" native="false" synchronized="false"
  23468. static="false" final="false" visibility="public"
  23469. deprecated="not deprecated">
  23470. <param name="mDbgScript" type="java.lang.String"/>
  23471. <doc>
  23472. <![CDATA[Set the debug script to run when the map tasks fail.
  23473. <p>The debug script can aid debugging of failed map tasks. The script is
  23474. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  23475. <p>The debug command, run on the node where the map failed, is:</p>
  23476. <p><pre><blockquote>
  23477. $script $stdout $stderr $syslog $jobconf.
  23478. </blockquote></pre></p>
  23479. <p> The script file is distributed through {@link DistributedCache}
  23480. APIs. The script needs to be symlinked. </p>
  23481. <p>Here is an example on how to submit a script
  23482. <p><blockquote><pre>
  23483. job.setMapDebugScript("./myscript");
  23484. DistributedCache.createSymlink(job);
  23485. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  23486. </pre></blockquote></p>
  23487. @param mDbgScript the script name]]>
  23488. </doc>
  23489. </method>
  23490. <method name="getMapDebugScript" return="java.lang.String"
  23491. abstract="false" native="false" synchronized="false"
  23492. static="false" final="false" visibility="public"
  23493. deprecated="not deprecated">
  23494. <doc>
  23495. <![CDATA[Get the map task's debug script.
  23496. @return the debug Script for the mapred job for failed map tasks.
  23497. @see #setMapDebugScript(String)]]>
  23498. </doc>
  23499. </method>
  23500. <method name="setReduceDebugScript"
  23501. abstract="false" native="false" synchronized="false"
  23502. static="false" final="false" visibility="public"
  23503. deprecated="not deprecated">
  23504. <param name="rDbgScript" type="java.lang.String"/>
  23505. <doc>
  23506. <![CDATA[Set the debug script to run when the reduce tasks fail.
  23507. <p>The debug script can aid debugging of failed reduce tasks. The script
  23508. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  23509. <p>The debug command, run on the node where the map failed, is:</p>
  23510. <p><pre><blockquote>
  23511. $script $stdout $stderr $syslog $jobconf.
  23512. </blockquote></pre></p>
  23513. <p> The script file is distributed through {@link DistributedCache}
  23514. APIs. The script file needs to be symlinked </p>
  23515. <p>Here is an example on how to submit a script
  23516. <p><blockquote><pre>
  23517. job.setReduceDebugScript("./myscript");
  23518. DistributedCache.createSymlink(job);
  23519. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  23520. </pre></blockquote></p>
  23521. @param rDbgScript the script name]]>
  23522. </doc>
  23523. </method>
  23524. <method name="getReduceDebugScript" return="java.lang.String"
  23525. abstract="false" native="false" synchronized="false"
  23526. static="false" final="false" visibility="public"
  23527. deprecated="not deprecated">
  23528. <doc>
  23529. <![CDATA[Get the reduce task's debug Script
  23530. @return the debug script for the mapred job for failed reduce tasks.
  23531. @see #setReduceDebugScript(String)]]>
  23532. </doc>
  23533. </method>
  23534. <method name="getJobEndNotificationURI" return="java.lang.String"
  23535. abstract="false" native="false" synchronized="false"
  23536. static="false" final="false" visibility="public"
  23537. deprecated="not deprecated">
  23538. <doc>
  23539. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  23540. has completed (success/failure).
  23541. @return the job end notification uri, <code>null</code> if it hasn't
  23542. been set.
  23543. @see #setJobEndNotificationURI(String)]]>
  23544. </doc>
  23545. </method>
  23546. <method name="setJobEndNotificationURI"
  23547. abstract="false" native="false" synchronized="false"
  23548. static="false" final="false" visibility="public"
  23549. deprecated="not deprecated">
  23550. <param name="uri" type="java.lang.String"/>
  23551. <doc>
  23552. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  23553. has completed (success/failure).
  23554. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  23555. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  23556. identifier and completion-status respectively.</p>
  23557. <p>This is typically used by application-writers to implement chaining of
  23558. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  23559. @param uri the job end notification uri
  23560. @see JobStatus
  23561. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  23562. </doc>
  23563. </method>
  23564. <method name="getJobLocalDir" return="java.lang.String"
  23565. abstract="false" native="false" synchronized="false"
  23566. static="false" final="false" visibility="public"
  23567. deprecated="not deprecated">
  23568. <doc>
  23569. <![CDATA[Get job-specific shared directory for use as scratch space
  23570. <p>
  23571. When a job starts, a shared directory is created at location
  23572. <code>
  23573. ${mapred.local.dir}/taskTracker/jobcache/$jobid/work/ </code>.
  23574. This directory is exposed to the users through
  23575. <code>job.local.dir </code>.
  23576. So, the tasks can use this space
  23577. as scratch space and share files among them. </p>
  23578. This value is available as System property also.
  23579. @return The localized job specific shared directory]]>
  23580. </doc>
  23581. </method>
  23582. <doc>
  23583. <![CDATA[A map/reduce job configuration.
  23584. <p><code>JobConf</code> is the primary interface for a user to describe a
  23585. map-reduce job to the Hadoop framework for execution. The framework tries to
  23586. faithfully execute the job as-is described by <code>JobConf</code>, however:
  23587. <ol>
  23588. <li>
  23589. Some configuration parameters might have been marked as
  23590. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  23591. final</a> by administrators and hence cannot be altered.
  23592. </li>
  23593. <li>
  23594. While some job parameters are straight-forward to set
  23595. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  23596. rest of the framework and/or job-configuration and is relatively more
  23597. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  23598. </li>
  23599. </ol></p>
  23600. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  23601. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  23602. {@link OutputFormat} implementations to be used etc.
  23603. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  23604. of the job such as <code>Comparator</code>s to be used, files to be put in
  23605. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  23606. are to be compressed (and how), debugability via user-provided scripts
  23607. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  23608. for doing post-processing on task logs, task's stdout, stderr, syslog.
  23609. and etc.</p>
  23610. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  23611. <p><blockquote><pre>
  23612. // Create a new JobConf
  23613. JobConf job = new JobConf(new Configuration(), MyJob.class);
  23614. // Specify various job-specific parameters
  23615. job.setJobName("myjob");
  23616. FileInputFormat.setInputPaths(job, new Path("in"));
  23617. FileOutputFormat.setOutputPath(job, new Path("out"));
  23618. job.setMapperClass(MyJob.MyMapper.class);
  23619. job.setCombinerClass(MyJob.MyReducer.class);
  23620. job.setReducerClass(MyJob.MyReducer.class);
  23621. job.setInputFormat(SequenceFileInputFormat.class);
  23622. job.setOutputFormat(SequenceFileOutputFormat.class);
  23623. </pre></blockquote></p>
  23624. @see JobClient
  23625. @see ClusterStatus
  23626. @see Tool
  23627. @see DistributedCache]]>
  23628. </doc>
  23629. </class>
  23630. <!-- end class org.apache.hadoop.mapred.JobConf -->
  23631. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  23632. <interface name="JobConfigurable" abstract="true"
  23633. static="false" final="false" visibility="public"
  23634. deprecated="not deprecated">
  23635. <method name="configure"
  23636. abstract="false" native="false" synchronized="false"
  23637. static="false" final="false" visibility="public"
  23638. deprecated="not deprecated">
  23639. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23640. <doc>
  23641. <![CDATA[Initializes a new instance from a {@link JobConf}.
  23642. @param job the configuration]]>
  23643. </doc>
  23644. </method>
  23645. <doc>
  23646. <![CDATA[That what may be configured.]]>
  23647. </doc>
  23648. </interface>
  23649. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  23650. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  23651. <class name="JobEndNotifier" extends="java.lang.Object"
  23652. abstract="false"
  23653. static="false" final="false" visibility="public"
  23654. deprecated="not deprecated">
  23655. <constructor name="JobEndNotifier"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. </constructor>
  23659. <method name="startNotifier"
  23660. abstract="false" native="false" synchronized="false"
  23661. static="true" final="false" visibility="public"
  23662. deprecated="not deprecated">
  23663. </method>
  23664. <method name="stopNotifier"
  23665. abstract="false" native="false" synchronized="false"
  23666. static="true" final="false" visibility="public"
  23667. deprecated="not deprecated">
  23668. </method>
  23669. <method name="registerNotification"
  23670. abstract="false" native="false" synchronized="false"
  23671. static="true" final="false" visibility="public"
  23672. deprecated="not deprecated">
  23673. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  23674. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  23675. </method>
  23676. <method name="localRunnerNotification"
  23677. abstract="false" native="false" synchronized="false"
  23678. static="true" final="false" visibility="public"
  23679. deprecated="not deprecated">
  23680. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23681. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  23682. </method>
  23683. </class>
  23684. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  23685. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  23686. <class name="JobHistory" extends="java.lang.Object"
  23687. abstract="false"
  23688. static="false" final="false" visibility="public"
  23689. deprecated="not deprecated">
  23690. <constructor name="JobHistory"
  23691. static="false" final="false" visibility="public"
  23692. deprecated="not deprecated">
  23693. </constructor>
  23694. <method name="init" return="boolean"
  23695. abstract="false" native="false" synchronized="false"
  23696. static="true" final="false" visibility="public"
  23697. deprecated="not deprecated">
  23698. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23699. <param name="hostname" type="java.lang.String"/>
  23700. <doc>
  23701. <![CDATA[Initialize JobHistory files.
  23702. @param conf Jobconf of the job tracker.
  23703. @param hostname jobtracker's hostname
  23704. @return true if intialized properly
  23705. false otherwise]]>
  23706. </doc>
  23707. </method>
  23708. <method name="parseHistoryFromFS"
  23709. abstract="false" native="false" synchronized="false"
  23710. static="true" final="false" visibility="public"
  23711. deprecated="not deprecated">
  23712. <param name="path" type="java.lang.String"/>
  23713. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  23714. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23715. <exception name="IOException" type="java.io.IOException"/>
  23716. <doc>
  23717. <![CDATA[Parses history file and invokes Listener.handle() for
  23718. each line of history. It can be used for looking through history
  23719. files for specific items without having to keep whole history in memory.
  23720. @param path path to history file
  23721. @param l Listener for history events
  23722. @param fs FileSystem where history file is present
  23723. @throws IOException]]>
  23724. </doc>
  23725. </method>
  23726. <method name="isDisableHistory" return="boolean"
  23727. abstract="false" native="false" synchronized="false"
  23728. static="true" final="false" visibility="public"
  23729. deprecated="not deprecated">
  23730. <doc>
  23731. <![CDATA[Returns history disable status. by default history is enabled so this
  23732. method returns false.
  23733. @return true if history logging is disabled, false otherwise.]]>
  23734. </doc>
  23735. </method>
  23736. <method name="setDisableHistory"
  23737. abstract="false" native="false" synchronized="false"
  23738. static="true" final="false" visibility="public"
  23739. deprecated="not deprecated">
  23740. <param name="disableHistory" type="boolean"/>
  23741. <doc>
  23742. <![CDATA[Enable/disable history logging. Default value is false, so history
  23743. is enabled by default.
  23744. @param disableHistory true if history should be disabled, false otherwise.]]>
  23745. </doc>
  23746. </method>
  23747. <field name="LOG" type="org.apache.commons.logging.Log"
  23748. transient="false" volatile="false"
  23749. static="true" final="true" visibility="public"
  23750. deprecated="not deprecated">
  23751. </field>
  23752. <field name="JOBTRACKER_START_TIME" type="java.lang.String"
  23753. transient="false" volatile="false"
  23754. static="true" final="true" visibility="public"
  23755. deprecated="not deprecated">
  23756. </field>
  23757. <doc>
  23758. <![CDATA[Provides methods for writing to and reading from job history.
  23759. Job History works in an append mode, JobHistory and its inner classes provide methods
  23760. to log job events.
  23761. JobHistory is split into multiple files, format of each file is plain text where each line
  23762. is of the format [type (key=value)*], where type identifies the type of the record.
  23763. Type maps to UID of one of the inner classes of this class.
  23764. Job history is maintained in a master index which contains star/stop times of all jobs with
  23765. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  23766. file. name of job history files follows the format jobtrackerId_jobid
  23767. For parsing the job history it supports a listener based interface where each line is parsed
  23768. and passed to listener. The listener can create an object model of history or look for specific
  23769. events and discard rest of the history.]]>
  23770. </doc>
  23771. </class>
  23772. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  23773. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  23774. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  23775. abstract="false"
  23776. static="true" final="false" visibility="public"
  23777. deprecated="not deprecated">
  23778. <implements name="java.lang.Runnable"/>
  23779. <constructor name="JobHistory.HistoryCleaner"
  23780. static="false" final="false" visibility="public"
  23781. deprecated="not deprecated">
  23782. </constructor>
  23783. <method name="run"
  23784. abstract="false" native="false" synchronized="false"
  23785. static="false" final="false" visibility="public"
  23786. deprecated="not deprecated">
  23787. <doc>
  23788. <![CDATA[Cleans up history data.]]>
  23789. </doc>
  23790. </method>
  23791. <doc>
  23792. <![CDATA[Delete history files older than one month. Update master index and remove all
  23793. jobs older than one month. Also if a job tracker has no jobs in last one month
  23794. remove reference to the job tracker.]]>
  23795. </doc>
  23796. </class>
  23797. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  23798. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  23799. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  23800. abstract="false"
  23801. static="true" final="false" visibility="public"
  23802. deprecated="not deprecated">
  23803. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  23804. static="false" final="false" visibility="public"
  23805. deprecated="not deprecated">
  23806. <doc>
  23807. <![CDATA[Create new JobInfo]]>
  23808. </doc>
  23809. </constructor>
  23810. <method name="getAllTasks" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.Task&gt;"
  23811. abstract="false" native="false" synchronized="false"
  23812. static="false" final="false" visibility="public"
  23813. deprecated="not deprecated">
  23814. <doc>
  23815. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  23816. </doc>
  23817. </method>
  23818. <method name="getLocalJobFilePath" return="java.lang.String"
  23819. abstract="false" native="false" synchronized="false"
  23820. static="true" final="false" visibility="public"
  23821. deprecated="not deprecated">
  23822. <param name="jobId" type="java.lang.String"/>
  23823. <doc>
  23824. <![CDATA[Get the path of the locally stored job file
  23825. @param jobId id of the job
  23826. @return the path of the job file on the local file system]]>
  23827. </doc>
  23828. </method>
  23829. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  23830. abstract="false" native="false" synchronized="false"
  23831. static="true" final="false" visibility="public"
  23832. deprecated="not deprecated">
  23833. <param name="logFile" type="java.lang.String"/>
  23834. <exception name="IOException" type="java.io.IOException"/>
  23835. <doc>
  23836. <![CDATA[Helper function to encode the URL of the path of the job-history
  23837. log file.
  23838. @param logFile path of the job-history file
  23839. @return URL encoded path
  23840. @throws IOException]]>
  23841. </doc>
  23842. </method>
  23843. <method name="encodeJobHistoryFileName" return="java.lang.String"
  23844. abstract="false" native="false" synchronized="false"
  23845. static="true" final="false" visibility="public"
  23846. deprecated="not deprecated">
  23847. <param name="logFileName" type="java.lang.String"/>
  23848. <exception name="IOException" type="java.io.IOException"/>
  23849. <doc>
  23850. <![CDATA[Helper function to encode the URL of the filename of the job-history
  23851. log file.
  23852. @param logFileName file name of the job-history file
  23853. @return URL encoded filename
  23854. @throws IOException]]>
  23855. </doc>
  23856. </method>
  23857. <method name="decodeJobHistoryFileName" return="java.lang.String"
  23858. abstract="false" native="false" synchronized="false"
  23859. static="true" final="false" visibility="public"
  23860. deprecated="not deprecated">
  23861. <param name="logFileName" type="java.lang.String"/>
  23862. <exception name="IOException" type="java.io.IOException"/>
  23863. <doc>
  23864. <![CDATA[Helper function to decode the URL of the filename of the job-history
  23865. log file.
  23866. @param logFileName file name of the job-history file
  23867. @return URL decoded filename
  23868. @throws IOException]]>
  23869. </doc>
  23870. </method>
  23871. <method name="logSubmitted"
  23872. abstract="false" native="false" synchronized="false"
  23873. static="true" final="false" visibility="public"
  23874. deprecated="not deprecated">
  23875. <param name="jobId" type="java.lang.String"/>
  23876. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  23877. <param name="jobConfPath" type="java.lang.String"/>
  23878. <param name="submitTime" type="long"/>
  23879. <exception name="IOException" type="java.io.IOException"/>
  23880. <doc>
  23881. <![CDATA[Log job submitted event to history. Creates a new file in history
  23882. for the job. if history file creation fails, it disables history
  23883. for all other events.
  23884. @param jobId job id assigned by job tracker.
  23885. @param jobConf job conf of the job
  23886. @param jobConfPath path to job conf xml file in HDFS.
  23887. @param submitTime time when job tracker received the job
  23888. @throws IOException]]>
  23889. </doc>
  23890. </method>
  23891. <method name="logStarted"
  23892. abstract="false" native="false" synchronized="false"
  23893. static="true" final="false" visibility="public"
  23894. deprecated="not deprecated">
  23895. <param name="jobId" type="java.lang.String"/>
  23896. <param name="startTime" type="long"/>
  23897. <param name="totalMaps" type="int"/>
  23898. <param name="totalReduces" type="int"/>
  23899. <doc>
  23900. <![CDATA[Logs launch time of job.
  23901. @param jobId job id, assigned by jobtracker.
  23902. @param startTime start time of job.
  23903. @param totalMaps total maps assigned by jobtracker.
  23904. @param totalReduces total reduces.]]>
  23905. </doc>
  23906. </method>
  23907. <method name="logFinished"
  23908. abstract="false" native="false" synchronized="false"
  23909. static="true" final="false" visibility="public"
  23910. deprecated="not deprecated">
  23911. <param name="jobId" type="java.lang.String"/>
  23912. <param name="finishTime" type="long"/>
  23913. <param name="finishedMaps" type="int"/>
  23914. <param name="finishedReduces" type="int"/>
  23915. <param name="failedMaps" type="int"/>
  23916. <param name="failedReduces" type="int"/>
  23917. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  23918. <doc>
  23919. <![CDATA[Log job finished. closes the job file in history.
  23920. @param jobId job id, assigned by jobtracker.
  23921. @param finishTime finish time of job in ms.
  23922. @param finishedMaps no of maps successfully finished.
  23923. @param finishedReduces no of reduces finished sucessfully.
  23924. @param failedMaps no of failed map tasks.
  23925. @param failedReduces no of failed reduce tasks.
  23926. @param counters the counters from the job]]>
  23927. </doc>
  23928. </method>
  23929. <method name="logFailed"
  23930. abstract="false" native="false" synchronized="false"
  23931. static="true" final="false" visibility="public"
  23932. deprecated="not deprecated">
  23933. <param name="jobid" type="java.lang.String"/>
  23934. <param name="timestamp" type="long"/>
  23935. <param name="finishedMaps" type="int"/>
  23936. <param name="finishedReduces" type="int"/>
  23937. <doc>
  23938. <![CDATA[Logs job failed event. Closes the job history log file.
  23939. @param jobid job id
  23940. @param timestamp time when job failure was detected in ms.
  23941. @param finishedMaps no finished map tasks.
  23942. @param finishedReduces no of finished reduce tasks.]]>
  23943. </doc>
  23944. </method>
  23945. <doc>
  23946. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  23947. </doc>
  23948. </class>
  23949. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  23950. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  23951. <class name="JobHistory.Keys" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Keys&gt;"
  23952. abstract="false"
  23953. static="true" final="true" visibility="public"
  23954. deprecated="not deprecated">
  23955. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  23956. abstract="false" native="false" synchronized="false"
  23957. static="true" final="false" visibility="public"
  23958. deprecated="not deprecated">
  23959. </method>
  23960. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  23961. abstract="false" native="false" synchronized="false"
  23962. static="true" final="false" visibility="public"
  23963. deprecated="not deprecated">
  23964. <param name="name" type="java.lang.String"/>
  23965. </method>
  23966. <doc>
  23967. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  23968. It acts as a global namespace for all keys.]]>
  23969. </doc>
  23970. </class>
  23971. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  23972. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  23973. <interface name="JobHistory.Listener" abstract="true"
  23974. static="true" final="false" visibility="public"
  23975. deprecated="not deprecated">
  23976. <method name="handle"
  23977. abstract="false" native="false" synchronized="false"
  23978. static="false" final="false" visibility="public"
  23979. deprecated="not deprecated">
  23980. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  23981. <param name="values" type="java.util.Map&lt;org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String&gt;"/>
  23982. <exception name="IOException" type="java.io.IOException"/>
  23983. <doc>
  23984. <![CDATA[Callback method for history parser.
  23985. @param recType type of record, which is the first entry in the line.
  23986. @param values a map of key-value pairs as thry appear in history.
  23987. @throws IOException]]>
  23988. </doc>
  23989. </method>
  23990. <doc>
  23991. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  23992. should be implemented and passed to JobHistory.parseHistory()]]>
  23993. </doc>
  23994. </interface>
  23995. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  23996. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  23997. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  23998. abstract="false"
  23999. static="true" final="false" visibility="public"
  24000. deprecated="not deprecated">
  24001. <constructor name="JobHistory.MapAttempt"
  24002. static="false" final="false" visibility="public"
  24003. deprecated="not deprecated">
  24004. </constructor>
  24005. <method name="logStarted"
  24006. abstract="false" native="false" synchronized="false"
  24007. static="true" final="false" visibility="public"
  24008. deprecated="not deprecated">
  24009. <param name="jobId" type="java.lang.String"/>
  24010. <param name="taskId" type="java.lang.String"/>
  24011. <param name="taskAttemptId" type="java.lang.String"/>
  24012. <param name="startTime" type="long"/>
  24013. <param name="hostName" type="java.lang.String"/>
  24014. <doc>
  24015. <![CDATA[Log start time of this map task attempt.
  24016. @param jobId job id
  24017. @param taskId task id
  24018. @param taskAttemptId task attempt id
  24019. @param startTime start time of task attempt as reported by task tracker.
  24020. @param hostName host name of the task attempt.]]>
  24021. </doc>
  24022. </method>
  24023. <method name="logFinished"
  24024. abstract="false" native="false" synchronized="false"
  24025. static="true" final="false" visibility="public"
  24026. deprecated="not deprecated">
  24027. <param name="jobId" type="java.lang.String"/>
  24028. <param name="taskId" type="java.lang.String"/>
  24029. <param name="taskAttemptId" type="java.lang.String"/>
  24030. <param name="finishTime" type="long"/>
  24031. <param name="hostName" type="java.lang.String"/>
  24032. <doc>
  24033. <![CDATA[Log finish time of map task attempt.
  24034. @param jobId job id
  24035. @param taskId task id
  24036. @param taskAttemptId task attempt id
  24037. @param finishTime finish time
  24038. @param hostName host name]]>
  24039. </doc>
  24040. </method>
  24041. <method name="logFailed"
  24042. abstract="false" native="false" synchronized="false"
  24043. static="true" final="false" visibility="public"
  24044. deprecated="not deprecated">
  24045. <param name="jobId" type="java.lang.String"/>
  24046. <param name="taskId" type="java.lang.String"/>
  24047. <param name="taskAttemptId" type="java.lang.String"/>
  24048. <param name="timestamp" type="long"/>
  24049. <param name="hostName" type="java.lang.String"/>
  24050. <param name="error" type="java.lang.String"/>
  24051. <doc>
  24052. <![CDATA[Log task attempt failed event.
  24053. @param jobId jobid
  24054. @param taskId taskid
  24055. @param taskAttemptId task attempt id
  24056. @param timestamp timestamp
  24057. @param hostName hostname of this task attempt.
  24058. @param error error message if any for this task attempt.]]>
  24059. </doc>
  24060. </method>
  24061. <method name="logKilled"
  24062. abstract="false" native="false" synchronized="false"
  24063. static="true" final="false" visibility="public"
  24064. deprecated="not deprecated">
  24065. <param name="jobId" type="java.lang.String"/>
  24066. <param name="taskId" type="java.lang.String"/>
  24067. <param name="taskAttemptId" type="java.lang.String"/>
  24068. <param name="timestamp" type="long"/>
  24069. <param name="hostName" type="java.lang.String"/>
  24070. <param name="error" type="java.lang.String"/>
  24071. <doc>
  24072. <![CDATA[Log task attempt killed event.
  24073. @param jobId jobid
  24074. @param taskId taskid
  24075. @param taskAttemptId task attempt id
  24076. @param timestamp timestamp
  24077. @param hostName hostname of this task attempt.
  24078. @param error error message if any for this task attempt.]]>
  24079. </doc>
  24080. </method>
  24081. <doc>
  24082. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  24083. a Map Attempt on a node.]]>
  24084. </doc>
  24085. </class>
  24086. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  24087. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  24088. <class name="JobHistory.RecordTypes" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.RecordTypes&gt;"
  24089. abstract="false"
  24090. static="true" final="true" visibility="public"
  24091. deprecated="not deprecated">
  24092. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  24093. abstract="false" native="false" synchronized="false"
  24094. static="true" final="false" visibility="public"
  24095. deprecated="not deprecated">
  24096. </method>
  24097. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  24098. abstract="false" native="false" synchronized="false"
  24099. static="true" final="false" visibility="public"
  24100. deprecated="not deprecated">
  24101. <param name="name" type="java.lang.String"/>
  24102. </method>
  24103. <doc>
  24104. <![CDATA[Record types are identifiers for each line of log in history files.
  24105. A record type appears as the first token in a single line of log.]]>
  24106. </doc>
  24107. </class>
  24108. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  24109. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  24110. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  24111. abstract="false"
  24112. static="true" final="false" visibility="public"
  24113. deprecated="not deprecated">
  24114. <constructor name="JobHistory.ReduceAttempt"
  24115. static="false" final="false" visibility="public"
  24116. deprecated="not deprecated">
  24117. </constructor>
  24118. <method name="logStarted"
  24119. abstract="false" native="false" synchronized="false"
  24120. static="true" final="false" visibility="public"
  24121. deprecated="not deprecated">
  24122. <param name="jobId" type="java.lang.String"/>
  24123. <param name="taskId" type="java.lang.String"/>
  24124. <param name="taskAttemptId" type="java.lang.String"/>
  24125. <param name="startTime" type="long"/>
  24126. <param name="hostName" type="java.lang.String"/>
  24127. <doc>
  24128. <![CDATA[Log start time of Reduce task attempt.
  24129. @param jobId job id
  24130. @param taskId task id (tip)
  24131. @param taskAttemptId task attempt id
  24132. @param startTime start time
  24133. @param hostName host name]]>
  24134. </doc>
  24135. </method>
  24136. <method name="logFinished"
  24137. abstract="false" native="false" synchronized="false"
  24138. static="true" final="false" visibility="public"
  24139. deprecated="not deprecated">
  24140. <param name="jobId" type="java.lang.String"/>
  24141. <param name="taskId" type="java.lang.String"/>
  24142. <param name="taskAttemptId" type="java.lang.String"/>
  24143. <param name="shuffleFinished" type="long"/>
  24144. <param name="sortFinished" type="long"/>
  24145. <param name="finishTime" type="long"/>
  24146. <param name="hostName" type="java.lang.String"/>
  24147. <doc>
  24148. <![CDATA[Log finished event of this task.
  24149. @param jobId job id
  24150. @param taskId task id
  24151. @param taskAttemptId task attempt id
  24152. @param shuffleFinished shuffle finish time
  24153. @param sortFinished sort finish time
  24154. @param finishTime finish time of task
  24155. @param hostName host name where task attempt executed]]>
  24156. </doc>
  24157. </method>
  24158. <method name="logFailed"
  24159. abstract="false" native="false" synchronized="false"
  24160. static="true" final="false" visibility="public"
  24161. deprecated="not deprecated">
  24162. <param name="jobId" type="java.lang.String"/>
  24163. <param name="taskId" type="java.lang.String"/>
  24164. <param name="taskAttemptId" type="java.lang.String"/>
  24165. <param name="timestamp" type="long"/>
  24166. <param name="hostName" type="java.lang.String"/>
  24167. <param name="error" type="java.lang.String"/>
  24168. <doc>
  24169. <![CDATA[Log failed reduce task attempt.
  24170. @param jobId job id
  24171. @param taskId task id
  24172. @param taskAttemptId task attempt id
  24173. @param timestamp time stamp when task failed
  24174. @param hostName host name of the task attempt.
  24175. @param error error message of the task.]]>
  24176. </doc>
  24177. </method>
  24178. <method name="logKilled"
  24179. abstract="false" native="false" synchronized="false"
  24180. static="true" final="false" visibility="public"
  24181. deprecated="not deprecated">
  24182. <param name="jobId" type="java.lang.String"/>
  24183. <param name="taskId" type="java.lang.String"/>
  24184. <param name="taskAttemptId" type="java.lang.String"/>
  24185. <param name="timestamp" type="long"/>
  24186. <param name="hostName" type="java.lang.String"/>
  24187. <param name="error" type="java.lang.String"/>
  24188. <doc>
  24189. <![CDATA[Log killed reduce task attempt.
  24190. @param jobId job id
  24191. @param taskId task id
  24192. @param taskAttemptId task attempt id
  24193. @param timestamp time stamp when task failed
  24194. @param hostName host name of the task attempt.
  24195. @param error error message of the task.]]>
  24196. </doc>
  24197. </method>
  24198. <doc>
  24199. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  24200. a Map Attempt on a node.]]>
  24201. </doc>
  24202. </class>
  24203. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  24204. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  24205. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  24206. abstract="false"
  24207. static="true" final="false" visibility="public"
  24208. deprecated="not deprecated">
  24209. <constructor name="JobHistory.Task"
  24210. static="false" final="false" visibility="public"
  24211. deprecated="not deprecated">
  24212. </constructor>
  24213. <method name="logStarted"
  24214. abstract="false" native="false" synchronized="false"
  24215. static="true" final="false" visibility="public"
  24216. deprecated="not deprecated">
  24217. <param name="jobId" type="java.lang.String"/>
  24218. <param name="taskId" type="java.lang.String"/>
  24219. <param name="taskType" type="java.lang.String"/>
  24220. <param name="startTime" type="long"/>
  24221. <doc>
  24222. <![CDATA[Log start time of task (TIP).
  24223. @param jobId job id
  24224. @param taskId task id
  24225. @param taskType MAP or REDUCE
  24226. @param startTime startTime of tip.]]>
  24227. </doc>
  24228. </method>
  24229. <method name="logFinished"
  24230. abstract="false" native="false" synchronized="false"
  24231. static="true" final="false" visibility="public"
  24232. deprecated="not deprecated">
  24233. <param name="jobId" type="java.lang.String"/>
  24234. <param name="taskId" type="java.lang.String"/>
  24235. <param name="taskType" type="java.lang.String"/>
  24236. <param name="finishTime" type="long"/>
  24237. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  24238. <doc>
  24239. <![CDATA[Log finish time of task.
  24240. @param jobId job id
  24241. @param taskId task id
  24242. @param taskType MAP or REDUCE
  24243. @param finishTime finish timeof task in ms]]>
  24244. </doc>
  24245. </method>
  24246. <method name="logFailed"
  24247. abstract="false" native="false" synchronized="false"
  24248. static="true" final="false" visibility="public"
  24249. deprecated="not deprecated">
  24250. <param name="jobId" type="java.lang.String"/>
  24251. <param name="taskId" type="java.lang.String"/>
  24252. <param name="taskType" type="java.lang.String"/>
  24253. <param name="time" type="long"/>
  24254. <param name="error" type="java.lang.String"/>
  24255. <doc>
  24256. <![CDATA[Log job failed event.
  24257. @param jobId jobid
  24258. @param taskId task id
  24259. @param taskType MAP or REDUCE.
  24260. @param time timestamp when job failed detected.
  24261. @param error error message for failure.]]>
  24262. </doc>
  24263. </method>
  24264. <method name="getTaskAttempts" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.TaskAttempt&gt;"
  24265. abstract="false" native="false" synchronized="false"
  24266. static="false" final="false" visibility="public"
  24267. deprecated="not deprecated">
  24268. <doc>
  24269. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  24270. </doc>
  24271. </method>
  24272. <doc>
  24273. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  24274. All events logged by this class are logged in a separate file per job in
  24275. job tracker history. These events map to TIPs in jobtracker.]]>
  24276. </doc>
  24277. </class>
  24278. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  24279. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  24280. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  24281. abstract="false"
  24282. static="true" final="false" visibility="public"
  24283. deprecated="not deprecated">
  24284. <constructor name="JobHistory.TaskAttempt"
  24285. static="false" final="false" visibility="public"
  24286. deprecated="not deprecated">
  24287. </constructor>
  24288. <doc>
  24289. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  24290. </doc>
  24291. </class>
  24292. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  24293. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  24294. <class name="JobHistory.Values" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Values&gt;"
  24295. abstract="false"
  24296. static="true" final="true" visibility="public"
  24297. deprecated="not deprecated">
  24298. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  24299. abstract="false" native="false" synchronized="false"
  24300. static="true" final="false" visibility="public"
  24301. deprecated="not deprecated">
  24302. </method>
  24303. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  24304. abstract="false" native="false" synchronized="false"
  24305. static="true" final="false" visibility="public"
  24306. deprecated="not deprecated">
  24307. <param name="name" type="java.lang.String"/>
  24308. </method>
  24309. <doc>
  24310. <![CDATA[This enum contains some of the values commonly used by history log events.
  24311. since values in history can only be strings - Values.name() is used in
  24312. most places in history file.]]>
  24313. </doc>
  24314. </class>
  24315. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  24316. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  24317. <class name="JobPriority" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobPriority&gt;"
  24318. abstract="false"
  24319. static="false" final="true" visibility="public"
  24320. deprecated="not deprecated">
  24321. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  24322. abstract="false" native="false" synchronized="false"
  24323. static="true" final="false" visibility="public"
  24324. deprecated="not deprecated">
  24325. </method>
  24326. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  24327. abstract="false" native="false" synchronized="false"
  24328. static="true" final="false" visibility="public"
  24329. deprecated="not deprecated">
  24330. <param name="name" type="java.lang.String"/>
  24331. </method>
  24332. <doc>
  24333. <![CDATA[Used to describe the priority of the running job.]]>
  24334. </doc>
  24335. </class>
  24336. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  24337. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  24338. <class name="JobProfile" extends="java.lang.Object"
  24339. abstract="false"
  24340. static="false" final="false" visibility="public"
  24341. deprecated="not deprecated">
  24342. <implements name="org.apache.hadoop.io.Writable"/>
  24343. <constructor name="JobProfile"
  24344. static="false" final="false" visibility="public"
  24345. deprecated="not deprecated">
  24346. <doc>
  24347. <![CDATA[Construct an empty {@link JobProfile}.]]>
  24348. </doc>
  24349. </constructor>
  24350. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  24351. static="false" final="false" visibility="public"
  24352. deprecated="not deprecated">
  24353. <doc>
  24354. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  24355. job config-file, job-details url and job name.
  24356. @param user userid of the person who submitted the job.
  24357. @param jobid id of the job.
  24358. @param jobFile job configuration file.
  24359. @param url link to the web-ui for details of the job.
  24360. @param name user-specified job name.]]>
  24361. </doc>
  24362. </constructor>
  24363. <method name="getUser" return="java.lang.String"
  24364. abstract="false" native="false" synchronized="false"
  24365. static="false" final="false" visibility="public"
  24366. deprecated="not deprecated">
  24367. <doc>
  24368. <![CDATA[Get the user id.]]>
  24369. </doc>
  24370. </method>
  24371. <method name="getJobId" return="java.lang.String"
  24372. abstract="false" native="false" synchronized="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <doc>
  24376. <![CDATA[Get the job id.]]>
  24377. </doc>
  24378. </method>
  24379. <method name="getJobFile" return="java.lang.String"
  24380. abstract="false" native="false" synchronized="false"
  24381. static="false" final="false" visibility="public"
  24382. deprecated="not deprecated">
  24383. <doc>
  24384. <![CDATA[Get the configuration file for the job.]]>
  24385. </doc>
  24386. </method>
  24387. <method name="getURL" return="java.net.URL"
  24388. abstract="false" native="false" synchronized="false"
  24389. static="false" final="false" visibility="public"
  24390. deprecated="not deprecated">
  24391. <doc>
  24392. <![CDATA[Get the link to the web-ui for details of the job.]]>
  24393. </doc>
  24394. </method>
  24395. <method name="getJobName" return="java.lang.String"
  24396. abstract="false" native="false" synchronized="false"
  24397. static="false" final="false" visibility="public"
  24398. deprecated="not deprecated">
  24399. <doc>
  24400. <![CDATA[Get the user-specified job name.]]>
  24401. </doc>
  24402. </method>
  24403. <method name="write"
  24404. abstract="false" native="false" synchronized="false"
  24405. static="false" final="false" visibility="public"
  24406. deprecated="not deprecated">
  24407. <param name="out" type="java.io.DataOutput"/>
  24408. <exception name="IOException" type="java.io.IOException"/>
  24409. </method>
  24410. <method name="readFields"
  24411. abstract="false" native="false" synchronized="false"
  24412. static="false" final="false" visibility="public"
  24413. deprecated="not deprecated">
  24414. <param name="in" type="java.io.DataInput"/>
  24415. <exception name="IOException" type="java.io.IOException"/>
  24416. </method>
  24417. <doc>
  24418. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  24419. whether living or dead.]]>
  24420. </doc>
  24421. </class>
  24422. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  24423. <!-- start class org.apache.hadoop.mapred.JobShell -->
  24424. <class name="JobShell" extends="org.apache.hadoop.conf.Configured"
  24425. abstract="false"
  24426. static="false" final="false" visibility="public"
  24427. deprecated="not deprecated">
  24428. <implements name="org.apache.hadoop.util.Tool"/>
  24429. <constructor name="JobShell"
  24430. static="false" final="false" visibility="public"
  24431. deprecated="not deprecated">
  24432. </constructor>
  24433. <constructor name="JobShell" type="org.apache.hadoop.conf.Configuration"
  24434. static="false" final="false" visibility="public"
  24435. deprecated="not deprecated">
  24436. </constructor>
  24437. <method name="init"
  24438. abstract="false" native="false" synchronized="false"
  24439. static="false" final="false" visibility="protected"
  24440. deprecated="not deprecated">
  24441. <exception name="IOException" type="java.io.IOException"/>
  24442. </method>
  24443. <method name="run" return="int"
  24444. abstract="false" native="false" synchronized="false"
  24445. static="false" final="false" visibility="public"
  24446. deprecated="not deprecated">
  24447. <param name="argv" type="java.lang.String[]"/>
  24448. <exception name="Exception" type="java.lang.Exception"/>
  24449. <doc>
  24450. <![CDATA[run method from Tool]]>
  24451. </doc>
  24452. </method>
  24453. <method name="main"
  24454. abstract="false" native="false" synchronized="false"
  24455. static="true" final="false" visibility="public"
  24456. deprecated="not deprecated">
  24457. <param name="argv" type="java.lang.String[]"/>
  24458. <exception name="Exception" type="java.lang.Exception"/>
  24459. </method>
  24460. <field name="LOG" type="org.apache.commons.logging.Log"
  24461. transient="false" volatile="false"
  24462. static="true" final="true" visibility="protected"
  24463. deprecated="not deprecated">
  24464. </field>
  24465. <doc>
  24466. <![CDATA[Provide command line parsing for JobSubmission
  24467. job submission looks like
  24468. hadoop jar -libjars <comma seperated jars> -archives <comma seperated archives>
  24469. -files <comma seperated files> inputjar args]]>
  24470. </doc>
  24471. </class>
  24472. <!-- end class org.apache.hadoop.mapred.JobShell -->
  24473. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  24474. <class name="JobStatus" extends="java.lang.Object"
  24475. abstract="false"
  24476. static="false" final="false" visibility="public"
  24477. deprecated="not deprecated">
  24478. <implements name="org.apache.hadoop.io.Writable"/>
  24479. <constructor name="JobStatus"
  24480. static="false" final="false" visibility="public"
  24481. deprecated="not deprecated">
  24482. </constructor>
  24483. <constructor name="JobStatus" type="java.lang.String, float, float, int"
  24484. static="false" final="false" visibility="public"
  24485. deprecated="not deprecated">
  24486. <doc>
  24487. <![CDATA[Create a job status object for a given jobid.
  24488. @param jobid The jobid of the job
  24489. @param mapProgress The progress made on the maps
  24490. @param reduceProgress The progress made on the reduces
  24491. @param runState The current state of the job]]>
  24492. </doc>
  24493. </constructor>
  24494. <method name="getJobId" return="java.lang.String"
  24495. abstract="false" native="false" synchronized="false"
  24496. static="false" final="false" visibility="public"
  24497. deprecated="not deprecated">
  24498. <doc>
  24499. <![CDATA[@return The jobid of the Job]]>
  24500. </doc>
  24501. </method>
  24502. <method name="mapProgress" return="float"
  24503. abstract="false" native="false" synchronized="true"
  24504. static="false" final="false" visibility="public"
  24505. deprecated="not deprecated">
  24506. <doc>
  24507. <![CDATA[@return Percentage of progress in maps]]>
  24508. </doc>
  24509. </method>
  24510. <method name="reduceProgress" return="float"
  24511. abstract="false" native="false" synchronized="true"
  24512. static="false" final="false" visibility="public"
  24513. deprecated="not deprecated">
  24514. <doc>
  24515. <![CDATA[@return Percentage of progress in reduce]]>
  24516. </doc>
  24517. </method>
  24518. <method name="getRunState" return="int"
  24519. abstract="false" native="false" synchronized="true"
  24520. static="false" final="false" visibility="public"
  24521. deprecated="not deprecated">
  24522. <doc>
  24523. <![CDATA[@return running state of the job]]>
  24524. </doc>
  24525. </method>
  24526. <method name="setRunState"
  24527. abstract="false" native="false" synchronized="true"
  24528. static="false" final="false" visibility="public"
  24529. deprecated="not deprecated">
  24530. <param name="state" type="int"/>
  24531. <doc>
  24532. <![CDATA[Change the current run state of the job.]]>
  24533. </doc>
  24534. </method>
  24535. <method name="getStartTime" return="long"
  24536. abstract="false" native="false" synchronized="true"
  24537. static="false" final="false" visibility="public"
  24538. deprecated="not deprecated">
  24539. <doc>
  24540. <![CDATA[@return start time of the job]]>
  24541. </doc>
  24542. </method>
  24543. <method name="getUsername" return="java.lang.String"
  24544. abstract="false" native="false" synchronized="true"
  24545. static="false" final="false" visibility="public"
  24546. deprecated="not deprecated">
  24547. <doc>
  24548. <![CDATA[@return the username of the job]]>
  24549. </doc>
  24550. </method>
  24551. <method name="write"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <param name="out" type="java.io.DataOutput"/>
  24556. <exception name="IOException" type="java.io.IOException"/>
  24557. </method>
  24558. <method name="readFields"
  24559. abstract="false" native="false" synchronized="false"
  24560. static="false" final="false" visibility="public"
  24561. deprecated="not deprecated">
  24562. <param name="in" type="java.io.DataInput"/>
  24563. <exception name="IOException" type="java.io.IOException"/>
  24564. </method>
  24565. <field name="RUNNING" type="int"
  24566. transient="false" volatile="false"
  24567. static="true" final="true" visibility="public"
  24568. deprecated="not deprecated">
  24569. </field>
  24570. <field name="SUCCEEDED" type="int"
  24571. transient="false" volatile="false"
  24572. static="true" final="true" visibility="public"
  24573. deprecated="not deprecated">
  24574. </field>
  24575. <field name="FAILED" type="int"
  24576. transient="false" volatile="false"
  24577. static="true" final="true" visibility="public"
  24578. deprecated="not deprecated">
  24579. </field>
  24580. <field name="PREP" type="int"
  24581. transient="false" volatile="false"
  24582. static="true" final="true" visibility="public"
  24583. deprecated="not deprecated">
  24584. </field>
  24585. <doc>
  24586. <![CDATA[Describes the current status of a job. This is
  24587. not intended to be a comprehensive piece of data.
  24588. For that, look at JobProfile.]]>
  24589. </doc>
  24590. </class>
  24591. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  24592. <!-- start interface org.apache.hadoop.mapred.JobSubmissionProtocol -->
  24593. <interface name="JobSubmissionProtocol" abstract="true"
  24594. static="false" final="false" visibility="public"
  24595. deprecated="not deprecated">
  24596. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  24597. <method name="getNewJobId" return="java.lang.String"
  24598. abstract="false" native="false" synchronized="false"
  24599. static="false" final="false" visibility="public"
  24600. deprecated="not deprecated">
  24601. <exception name="IOException" type="java.io.IOException"/>
  24602. <doc>
  24603. <![CDATA[Allocate a name for the job.
  24604. @return a unique job name for submitting jobs.
  24605. @throws IOException]]>
  24606. </doc>
  24607. </method>
  24608. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  24609. abstract="false" native="false" synchronized="false"
  24610. static="false" final="false" visibility="public"
  24611. deprecated="not deprecated">
  24612. <param name="jobName" type="java.lang.String"/>
  24613. <exception name="IOException" type="java.io.IOException"/>
  24614. <doc>
  24615. <![CDATA[Submit a Job for execution. Returns the latest profile for
  24616. that job.
  24617. The job files should be submitted in <b>system-dir</b>/<b>jobName</b>.]]>
  24618. </doc>
  24619. </method>
  24620. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  24621. abstract="false" native="false" synchronized="false"
  24622. static="false" final="false" visibility="public"
  24623. deprecated="not deprecated">
  24624. <exception name="IOException" type="java.io.IOException"/>
  24625. <doc>
  24626. <![CDATA[Get the current status of the cluster
  24627. @return summary of the state of the cluster]]>
  24628. </doc>
  24629. </method>
  24630. <method name="killJob"
  24631. abstract="false" native="false" synchronized="false"
  24632. static="false" final="false" visibility="public"
  24633. deprecated="not deprecated">
  24634. <param name="jobid" type="java.lang.String"/>
  24635. <exception name="IOException" type="java.io.IOException"/>
  24636. <doc>
  24637. <![CDATA[Kill the indicated job]]>
  24638. </doc>
  24639. </method>
  24640. <method name="killTask" return="boolean"
  24641. abstract="false" native="false" synchronized="false"
  24642. static="false" final="false" visibility="public"
  24643. deprecated="not deprecated">
  24644. <param name="taskId" type="java.lang.String"/>
  24645. <param name="shouldFail" type="boolean"/>
  24646. <exception name="IOException" type="java.io.IOException"/>
  24647. <doc>
  24648. <![CDATA[Kill indicated task attempt.
  24649. @param taskId the id of the task to kill.
  24650. @param shouldFail if true the task is failed and added to failed tasks list, otherwise
  24651. it is just killed, w/o affecting job failure status.]]>
  24652. </doc>
  24653. </method>
  24654. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  24655. abstract="false" native="false" synchronized="false"
  24656. static="false" final="false" visibility="public"
  24657. deprecated="not deprecated">
  24658. <param name="jobid" type="java.lang.String"/>
  24659. <exception name="IOException" type="java.io.IOException"/>
  24660. <doc>
  24661. <![CDATA[Grab a handle to a job that is already known to the JobTracker.
  24662. @return Profile of the job, or null if not found.]]>
  24663. </doc>
  24664. </method>
  24665. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  24666. abstract="false" native="false" synchronized="false"
  24667. static="false" final="false" visibility="public"
  24668. deprecated="not deprecated">
  24669. <param name="jobid" type="java.lang.String"/>
  24670. <exception name="IOException" type="java.io.IOException"/>
  24671. <doc>
  24672. <![CDATA[Grab a handle to a job that is already known to the JobTracker.
  24673. @return Status of the job, or null if not found.]]>
  24674. </doc>
  24675. </method>
  24676. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  24677. abstract="false" native="false" synchronized="false"
  24678. static="false" final="false" visibility="public"
  24679. deprecated="not deprecated">
  24680. <param name="jobid" type="java.lang.String"/>
  24681. <exception name="IOException" type="java.io.IOException"/>
  24682. <doc>
  24683. <![CDATA[Grab the current job counters]]>
  24684. </doc>
  24685. </method>
  24686. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  24687. abstract="false" native="false" synchronized="false"
  24688. static="false" final="false" visibility="public"
  24689. deprecated="not deprecated">
  24690. <param name="jobid" type="java.lang.String"/>
  24691. <exception name="IOException" type="java.io.IOException"/>
  24692. <doc>
  24693. <![CDATA[Grab a bunch of info on the map tasks that make up the job]]>
  24694. </doc>
  24695. </method>
  24696. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  24697. abstract="false" native="false" synchronized="false"
  24698. static="false" final="false" visibility="public"
  24699. deprecated="not deprecated">
  24700. <param name="jobid" type="java.lang.String"/>
  24701. <exception name="IOException" type="java.io.IOException"/>
  24702. <doc>
  24703. <![CDATA[Grab a bunch of info on the reduce tasks that make up the job]]>
  24704. </doc>
  24705. </method>
  24706. <method name="getFilesystemName" return="java.lang.String"
  24707. abstract="false" native="false" synchronized="false"
  24708. static="false" final="false" visibility="public"
  24709. deprecated="not deprecated">
  24710. <exception name="IOException" type="java.io.IOException"/>
  24711. <doc>
  24712. <![CDATA[A MapReduce system always operates on a single filesystem. This
  24713. function returns the fs name. ('local' if the localfs; 'addr:port'
  24714. if dfs). The client can then copy files into the right locations
  24715. prior to submitting the job.]]>
  24716. </doc>
  24717. </method>
  24718. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <exception name="IOException" type="java.io.IOException"/>
  24723. <doc>
  24724. <![CDATA[Get the jobs that are not completed and not failed
  24725. @return array of JobStatus for the running/to-be-run
  24726. jobs.]]>
  24727. </doc>
  24728. </method>
  24729. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  24730. abstract="false" native="false" synchronized="false"
  24731. static="false" final="false" visibility="public"
  24732. deprecated="not deprecated">
  24733. <exception name="IOException" type="java.io.IOException"/>
  24734. <doc>
  24735. <![CDATA[Get all the jobs submitted.
  24736. @return array of JobStatus for the submitted jobs]]>
  24737. </doc>
  24738. </method>
  24739. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  24740. abstract="false" native="false" synchronized="false"
  24741. static="false" final="false" visibility="public"
  24742. deprecated="not deprecated">
  24743. <param name="jobid" type="java.lang.String"/>
  24744. <param name="fromEventId" type="int"/>
  24745. <param name="maxEvents" type="int"/>
  24746. <exception name="IOException" type="java.io.IOException"/>
  24747. <doc>
  24748. <![CDATA[Get task completion events for the jobid, starting from fromEventId.
  24749. Returns empty aray if no events are available.
  24750. @param jobid job id
  24751. @param fromEventId event id to start from.
  24752. @param maxEvents the max number of events we want to look at
  24753. @return array of task completion events.
  24754. @throws IOException]]>
  24755. </doc>
  24756. </method>
  24757. <method name="getTaskDiagnostics" return="java.lang.String[]"
  24758. abstract="false" native="false" synchronized="false"
  24759. static="false" final="false" visibility="public"
  24760. deprecated="not deprecated">
  24761. <param name="jobId" type="java.lang.String"/>
  24762. <param name="tipId" type="java.lang.String"/>
  24763. <param name="taskId" type="java.lang.String"/>
  24764. <exception name="IOException" type="java.io.IOException"/>
  24765. <doc>
  24766. <![CDATA[Get the diagnostics for a given task in a given job
  24767. @param jobId the id of the job
  24768. @return an array of the diagnostic messages]]>
  24769. </doc>
  24770. </method>
  24771. <field name="versionID" type="long"
  24772. transient="false" volatile="false"
  24773. static="true" final="true" visibility="public"
  24774. deprecated="not deprecated">
  24775. </field>
  24776. <doc>
  24777. <![CDATA[Protocol that a JobClient and the central JobTracker use to communicate. The
  24778. JobClient can use these methods to submit a Job for execution, and learn about
  24779. the current system status.]]>
  24780. </doc>
  24781. </interface>
  24782. <!-- end interface org.apache.hadoop.mapred.JobSubmissionProtocol -->
  24783. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  24784. <class name="JobTracker" extends="java.lang.Object"
  24785. abstract="false"
  24786. static="false" final="false" visibility="public"
  24787. deprecated="not deprecated">
  24788. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  24789. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  24790. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  24791. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  24792. abstract="false" native="false" synchronized="false"
  24793. static="true" final="false" visibility="public"
  24794. deprecated="not deprecated">
  24795. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  24796. <exception name="IOException" type="java.io.IOException"/>
  24797. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  24798. <doc>
  24799. <![CDATA[Start the JobTracker with given configuration.
  24800. The conf will be modified to reflect the actual ports on which
  24801. the JobTracker is up and running if the user passes the port as
  24802. <code>zero</code>.
  24803. @param conf configuration for the JobTracker.
  24804. @throws IOException]]>
  24805. </doc>
  24806. </method>
  24807. <method name="stopTracker"
  24808. abstract="false" native="false" synchronized="false"
  24809. static="false" final="false" visibility="public"
  24810. deprecated="not deprecated">
  24811. <exception name="IOException" type="java.io.IOException"/>
  24812. </method>
  24813. <method name="getProtocolVersion" return="long"
  24814. abstract="false" native="false" synchronized="false"
  24815. static="false" final="false" visibility="public"
  24816. deprecated="not deprecated">
  24817. <param name="protocol" type="java.lang.String"/>
  24818. <param name="clientVersion" type="long"/>
  24819. <exception name="IOException" type="java.io.IOException"/>
  24820. </method>
  24821. <method name="getAddress" return="java.net.InetSocketAddress"
  24822. abstract="false" native="false" synchronized="false"
  24823. static="true" final="false" visibility="public"
  24824. deprecated="not deprecated">
  24825. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  24826. </method>
  24827. <method name="offerService"
  24828. abstract="false" native="false" synchronized="false"
  24829. static="false" final="false" visibility="public"
  24830. deprecated="not deprecated">
  24831. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  24832. <doc>
  24833. <![CDATA[Run forever]]>
  24834. </doc>
  24835. </method>
  24836. <method name="getTotalSubmissions" return="int"
  24837. abstract="false" native="false" synchronized="false"
  24838. static="false" final="false" visibility="public"
  24839. deprecated="not deprecated">
  24840. </method>
  24841. <method name="getJobTrackerMachine" return="java.lang.String"
  24842. abstract="false" native="false" synchronized="false"
  24843. static="false" final="false" visibility="public"
  24844. deprecated="not deprecated">
  24845. </method>
  24846. <method name="getTrackerIdentifier" return="java.lang.String"
  24847. abstract="false" native="false" synchronized="false"
  24848. static="false" final="false" visibility="public"
  24849. deprecated="not deprecated">
  24850. <doc>
  24851. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  24852. @return a string with a unique identifier]]>
  24853. </doc>
  24854. </method>
  24855. <method name="getTrackerPort" return="int"
  24856. abstract="false" native="false" synchronized="false"
  24857. static="false" final="false" visibility="public"
  24858. deprecated="not deprecated">
  24859. </method>
  24860. <method name="getInfoPort" return="int"
  24861. abstract="false" native="false" synchronized="false"
  24862. static="false" final="false" visibility="public"
  24863. deprecated="not deprecated">
  24864. </method>
  24865. <method name="getStartTime" return="long"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. </method>
  24870. <method name="runningJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  24871. abstract="false" native="false" synchronized="false"
  24872. static="false" final="false" visibility="public"
  24873. deprecated="not deprecated">
  24874. </method>
  24875. <method name="getRunningJobs" return="java.util.List&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  24876. abstract="false" native="false" synchronized="true"
  24877. static="false" final="false" visibility="public"
  24878. deprecated="not deprecated">
  24879. <doc>
  24880. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  24881. careful to synchronize.]]>
  24882. </doc>
  24883. </method>
  24884. <method name="failedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  24885. abstract="false" native="false" synchronized="false"
  24886. static="false" final="false" visibility="public"
  24887. deprecated="not deprecated">
  24888. </method>
  24889. <method name="completedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  24890. abstract="false" native="false" synchronized="false"
  24891. static="false" final="false" visibility="public"
  24892. deprecated="not deprecated">
  24893. </method>
  24894. <method name="taskTrackers" return="java.util.Collection"
  24895. abstract="false" native="false" synchronized="false"
  24896. static="false" final="false" visibility="public"
  24897. deprecated="not deprecated">
  24898. </method>
  24899. <method name="getTaskTracker" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  24900. abstract="false" native="false" synchronized="false"
  24901. static="false" final="false" visibility="public"
  24902. deprecated="not deprecated">
  24903. <param name="trackerID" type="java.lang.String"/>
  24904. </method>
  24905. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  24906. abstract="false" native="false" synchronized="false"
  24907. static="false" final="false" visibility="public"
  24908. deprecated="not deprecated">
  24909. <param name="name" type="java.lang.String"/>
  24910. </method>
  24911. <method name="getNodesAtMaxLevel" return="java.util.Collection&lt;org.apache.hadoop.net.Node&gt;"
  24912. abstract="false" native="false" synchronized="false"
  24913. static="false" final="false" visibility="public"
  24914. deprecated="not deprecated">
  24915. <doc>
  24916. <![CDATA[Returns a collection of nodes at the max level]]>
  24917. </doc>
  24918. </method>
  24919. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  24920. abstract="false" native="false" synchronized="false"
  24921. static="true" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. <param name="node" type="org.apache.hadoop.net.Node"/>
  24924. <param name="level" type="int"/>
  24925. </method>
  24926. <method name="getNode" return="org.apache.hadoop.net.Node"
  24927. abstract="false" native="false" synchronized="false"
  24928. static="false" final="false" visibility="public"
  24929. deprecated="not deprecated">
  24930. <param name="name" type="java.lang.String"/>
  24931. <doc>
  24932. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  24933. </doc>
  24934. </method>
  24935. <method name="getNumTaskCacheLevels" return="int"
  24936. abstract="false" native="false" synchronized="false"
  24937. static="false" final="false" visibility="public"
  24938. deprecated="not deprecated">
  24939. </method>
  24940. <method name="getNumResolvedTaskTrackers" return="int"
  24941. abstract="false" native="false" synchronized="false"
  24942. static="false" final="false" visibility="public"
  24943. deprecated="not deprecated">
  24944. </method>
  24945. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  24946. abstract="false" native="false" synchronized="true"
  24947. static="false" final="false" visibility="public"
  24948. deprecated="not deprecated">
  24949. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  24950. <param name="initialContact" type="boolean"/>
  24951. <param name="acceptNewTasks" type="boolean"/>
  24952. <param name="responseId" type="short"/>
  24953. <exception name="IOException" type="java.io.IOException"/>
  24954. <doc>
  24955. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  24956. the {@link JobTracker}.
  24957. The {@link JobTracker} processes the status information sent by the
  24958. {@link TaskTracker} and responds with instructions to start/stop
  24959. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  24960. </doc>
  24961. </method>
  24962. <method name="getFilesystemName" return="java.lang.String"
  24963. abstract="false" native="false" synchronized="true"
  24964. static="false" final="false" visibility="public"
  24965. deprecated="not deprecated">
  24966. <exception name="IOException" type="java.io.IOException"/>
  24967. <doc>
  24968. <![CDATA[Grab the local fs name]]>
  24969. </doc>
  24970. </method>
  24971. <method name="reportTaskTrackerError"
  24972. abstract="false" native="false" synchronized="false"
  24973. static="false" final="false" visibility="public"
  24974. deprecated="not deprecated">
  24975. <param name="taskTracker" type="java.lang.String"/>
  24976. <param name="errorClass" type="java.lang.String"/>
  24977. <param name="errorMessage" type="java.lang.String"/>
  24978. <exception name="IOException" type="java.io.IOException"/>
  24979. </method>
  24980. <method name="getNewJobId" return="java.lang.String"
  24981. abstract="false" native="false" synchronized="true"
  24982. static="false" final="false" visibility="public"
  24983. deprecated="not deprecated">
  24984. <exception name="IOException" type="java.io.IOException"/>
  24985. <doc>
  24986. <![CDATA[Allocates a new JobId string.]]>
  24987. </doc>
  24988. </method>
  24989. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  24990. abstract="false" native="false" synchronized="true"
  24991. static="false" final="false" visibility="public"
  24992. deprecated="not deprecated">
  24993. <param name="jobId" type="java.lang.String"/>
  24994. <exception name="IOException" type="java.io.IOException"/>
  24995. <doc>
  24996. <![CDATA[JobTracker.submitJob() kicks off a new job.
  24997. Create a 'JobInProgress' object, which contains both JobProfile
  24998. and JobStatus. Those two sub-objects are sometimes shipped outside
  24999. of the JobTracker. But JobInProgress adds info that's useful for
  25000. the JobTracker alone.
  25001. We add the JIP to the jobInitQueue, which is processed
  25002. asynchronously to handle split-computation and build up
  25003. the right TaskTracker/Block mapping.]]>
  25004. </doc>
  25005. </method>
  25006. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  25007. abstract="false" native="false" synchronized="true"
  25008. static="false" final="false" visibility="public"
  25009. deprecated="not deprecated">
  25010. </method>
  25011. <method name="killJob"
  25012. abstract="false" native="false" synchronized="true"
  25013. static="false" final="false" visibility="public"
  25014. deprecated="not deprecated">
  25015. <param name="jobid" type="java.lang.String"/>
  25016. </method>
  25017. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  25018. abstract="false" native="false" synchronized="true"
  25019. static="false" final="false" visibility="public"
  25020. deprecated="not deprecated">
  25021. <param name="jobid" type="java.lang.String"/>
  25022. </method>
  25023. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  25024. abstract="false" native="false" synchronized="true"
  25025. static="false" final="false" visibility="public"
  25026. deprecated="not deprecated">
  25027. <param name="jobid" type="java.lang.String"/>
  25028. </method>
  25029. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  25030. abstract="false" native="false" synchronized="true"
  25031. static="false" final="false" visibility="public"
  25032. deprecated="not deprecated">
  25033. <param name="jobid" type="java.lang.String"/>
  25034. </method>
  25035. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  25036. abstract="false" native="false" synchronized="true"
  25037. static="false" final="false" visibility="public"
  25038. deprecated="not deprecated">
  25039. <param name="jobid" type="java.lang.String"/>
  25040. </method>
  25041. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  25042. abstract="false" native="false" synchronized="true"
  25043. static="false" final="false" visibility="public"
  25044. deprecated="not deprecated">
  25045. <param name="jobid" type="java.lang.String"/>
  25046. </method>
  25047. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  25048. abstract="false" native="false" synchronized="true"
  25049. static="false" final="false" visibility="public"
  25050. deprecated="not deprecated">
  25051. <param name="jobid" type="java.lang.String"/>
  25052. <param name="fromEventId" type="int"/>
  25053. <param name="maxEvents" type="int"/>
  25054. <exception name="IOException" type="java.io.IOException"/>
  25055. </method>
  25056. <method name="getTaskDiagnostics" return="java.lang.String[]"
  25057. abstract="false" native="false" synchronized="true"
  25058. static="false" final="false" visibility="public"
  25059. deprecated="not deprecated">
  25060. <param name="jobId" type="java.lang.String"/>
  25061. <param name="tipId" type="java.lang.String"/>
  25062. <param name="taskId" type="java.lang.String"/>
  25063. <exception name="IOException" type="java.io.IOException"/>
  25064. <doc>
  25065. <![CDATA[Get the diagnostics for a given task
  25066. @param jobId the id of the job
  25067. @param tipId the id of the tip
  25068. @param taskId the id of the task
  25069. @return an array of the diagnostic messages]]>
  25070. </doc>
  25071. </method>
  25072. <method name="killTask" return="boolean"
  25073. abstract="false" native="false" synchronized="true"
  25074. static="false" final="false" visibility="public"
  25075. deprecated="not deprecated">
  25076. <param name="taskid" type="java.lang.String"/>
  25077. <param name="shouldFail" type="boolean"/>
  25078. <exception name="IOException" type="java.io.IOException"/>
  25079. <doc>
  25080. <![CDATA[Mark a Task to be killed]]>
  25081. </doc>
  25082. </method>
  25083. <method name="getAssignedTracker" return="java.lang.String"
  25084. abstract="false" native="false" synchronized="true"
  25085. static="false" final="false" visibility="public"
  25086. deprecated="not deprecated">
  25087. <param name="taskId" type="java.lang.String"/>
  25088. <doc>
  25089. <![CDATA[Get tracker name for a given task id.
  25090. @param taskId the name of the task
  25091. @return The name of the task tracker]]>
  25092. </doc>
  25093. </method>
  25094. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  25095. abstract="false" native="false" synchronized="false"
  25096. static="false" final="false" visibility="public"
  25097. deprecated="not deprecated">
  25098. </method>
  25099. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  25100. abstract="false" native="false" synchronized="false"
  25101. static="false" final="false" visibility="public"
  25102. deprecated="not deprecated">
  25103. </method>
  25104. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  25105. abstract="false" native="false" synchronized="false"
  25106. static="false" final="false" visibility="public"
  25107. deprecated="not deprecated">
  25108. <param name="jobid" type="java.lang.String"/>
  25109. </method>
  25110. <method name="getLocalJobFilePath" return="java.lang.String"
  25111. abstract="false" native="false" synchronized="false"
  25112. static="true" final="false" visibility="public"
  25113. deprecated="not deprecated">
  25114. <param name="jobId" type="java.lang.String"/>
  25115. <doc>
  25116. <![CDATA[Get the localized job file path on the job trackers local file system
  25117. @param jobId id of the job
  25118. @return the path of the job conf file on the local file system]]>
  25119. </doc>
  25120. </method>
  25121. <method name="main"
  25122. abstract="false" native="false" synchronized="false"
  25123. static="true" final="false" visibility="public"
  25124. deprecated="not deprecated">
  25125. <param name="argv" type="java.lang.String[]"/>
  25126. <exception name="IOException" type="java.io.IOException"/>
  25127. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  25128. <doc>
  25129. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  25130. JobTracker should be run as part of the DFS Namenode process.]]>
  25131. </doc>
  25132. </method>
  25133. <field name="LOG" type="org.apache.commons.logging.Log"
  25134. transient="false" volatile="false"
  25135. static="true" final="true" visibility="public"
  25136. deprecated="not deprecated">
  25137. </field>
  25138. <doc>
  25139. <![CDATA[JobTracker is the central location for submitting and
  25140. tracking MR jobs in a network environment.]]>
  25141. </doc>
  25142. </class>
  25143. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  25144. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  25145. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  25146. abstract="false"
  25147. static="true" final="false" visibility="public"
  25148. deprecated="not deprecated">
  25149. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  25150. static="false" final="false" visibility="public"
  25151. deprecated="not deprecated">
  25152. </constructor>
  25153. <doc>
  25154. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  25155. </doc>
  25156. </class>
  25157. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  25158. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  25159. <class name="JobTracker.State" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobTracker.State&gt;"
  25160. abstract="false"
  25161. static="true" final="true" visibility="public"
  25162. deprecated="not deprecated">
  25163. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  25164. abstract="false" native="false" synchronized="false"
  25165. static="true" final="false" visibility="public"
  25166. deprecated="not deprecated">
  25167. </method>
  25168. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  25169. abstract="false" native="false" synchronized="false"
  25170. static="true" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <param name="name" type="java.lang.String"/>
  25173. </method>
  25174. </class>
  25175. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  25176. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  25177. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  25178. abstract="false"
  25179. static="false" final="false" visibility="public"
  25180. deprecated="not deprecated">
  25181. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  25182. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  25183. static="false" final="false" visibility="public"
  25184. deprecated="not deprecated">
  25185. <exception name="IOException" type="java.io.IOException"/>
  25186. </constructor>
  25187. <method name="getKeyClass" return="java.lang.Class"
  25188. abstract="false" native="false" synchronized="false"
  25189. static="false" final="false" visibility="public"
  25190. deprecated="not deprecated">
  25191. </method>
  25192. <method name="createKey" return="org.apache.hadoop.io.Text"
  25193. abstract="false" native="false" synchronized="false"
  25194. static="false" final="false" visibility="public"
  25195. deprecated="not deprecated">
  25196. </method>
  25197. <method name="createValue" return="org.apache.hadoop.io.Text"
  25198. abstract="false" native="false" synchronized="false"
  25199. static="false" final="false" visibility="public"
  25200. deprecated="not deprecated">
  25201. </method>
  25202. <method name="findSeparator" return="int"
  25203. abstract="false" native="false" synchronized="false"
  25204. static="true" final="false" visibility="public"
  25205. deprecated="not deprecated">
  25206. <param name="utf" type="byte[]"/>
  25207. <param name="start" type="int"/>
  25208. <param name="length" type="int"/>
  25209. <param name="sep" type="byte"/>
  25210. </method>
  25211. <method name="next" return="boolean"
  25212. abstract="false" native="false" synchronized="true"
  25213. static="false" final="false" visibility="public"
  25214. deprecated="not deprecated">
  25215. <param name="key" type="org.apache.hadoop.io.Text"/>
  25216. <param name="value" type="org.apache.hadoop.io.Text"/>
  25217. <exception name="IOException" type="java.io.IOException"/>
  25218. <doc>
  25219. <![CDATA[Read key/value pair in a line.]]>
  25220. </doc>
  25221. </method>
  25222. <method name="getProgress" return="float"
  25223. abstract="false" native="false" synchronized="false"
  25224. static="false" final="false" visibility="public"
  25225. deprecated="not deprecated">
  25226. </method>
  25227. <method name="getPos" return="long"
  25228. abstract="false" native="false" synchronized="true"
  25229. static="false" final="false" visibility="public"
  25230. deprecated="not deprecated">
  25231. <exception name="IOException" type="java.io.IOException"/>
  25232. </method>
  25233. <method name="close"
  25234. abstract="false" native="false" synchronized="true"
  25235. static="false" final="false" visibility="public"
  25236. deprecated="not deprecated">
  25237. <exception name="IOException" type="java.io.IOException"/>
  25238. </method>
  25239. <doc>
  25240. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  25241. separator character. The separator can be specified in config file
  25242. under the attribute name key.value.separator.in.input.line. The default
  25243. separator is the tab character ('\t').]]>
  25244. </doc>
  25245. </class>
  25246. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  25247. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  25248. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  25249. abstract="false"
  25250. static="false" final="false" visibility="public"
  25251. deprecated="not deprecated">
  25252. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  25253. <constructor name="KeyValueTextInputFormat"
  25254. static="false" final="false" visibility="public"
  25255. deprecated="not deprecated">
  25256. </constructor>
  25257. <method name="configure"
  25258. abstract="false" native="false" synchronized="false"
  25259. static="false" final="false" visibility="public"
  25260. deprecated="not deprecated">
  25261. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25262. </method>
  25263. <method name="isSplitable" return="boolean"
  25264. abstract="false" native="false" synchronized="false"
  25265. static="false" final="false" visibility="protected"
  25266. deprecated="not deprecated">
  25267. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  25268. <param name="file" type="org.apache.hadoop.fs.Path"/>
  25269. </method>
  25270. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  25271. abstract="false" native="false" synchronized="false"
  25272. static="false" final="false" visibility="public"
  25273. deprecated="not deprecated">
  25274. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  25275. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25276. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25277. <exception name="IOException" type="java.io.IOException"/>
  25278. </method>
  25279. <doc>
  25280. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  25281. Either linefeed or carriage-return are used to signal end of line. Each line
  25282. is divided into key and value parts by a separator byte. If no such a byte
  25283. exists, the key will be the entire line and value will be empty.]]>
  25284. </doc>
  25285. </class>
  25286. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  25287. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  25288. <class name="LineRecordReader" extends="java.lang.Object"
  25289. abstract="false"
  25290. static="false" final="false" visibility="public"
  25291. deprecated="not deprecated">
  25292. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"/>
  25293. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  25294. static="false" final="false" visibility="public"
  25295. deprecated="not deprecated">
  25296. <exception name="IOException" type="java.io.IOException"/>
  25297. </constructor>
  25298. <constructor name="LineRecordReader" type="java.io.InputStream, long, long"
  25299. static="false" final="false" visibility="public"
  25300. deprecated="not deprecated">
  25301. </constructor>
  25302. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="not deprecated">
  25305. <exception name="IOException" type="java.io.IOException"/>
  25306. </constructor>
  25307. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  25308. abstract="false" native="false" synchronized="false"
  25309. static="false" final="false" visibility="public"
  25310. deprecated="not deprecated">
  25311. </method>
  25312. <method name="createValue" return="org.apache.hadoop.io.Text"
  25313. abstract="false" native="false" synchronized="false"
  25314. static="false" final="false" visibility="public"
  25315. deprecated="not deprecated">
  25316. </method>
  25317. <method name="next" return="boolean"
  25318. abstract="false" native="false" synchronized="true"
  25319. static="false" final="false" visibility="public"
  25320. deprecated="not deprecated">
  25321. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  25322. <param name="value" type="org.apache.hadoop.io.Text"/>
  25323. <exception name="IOException" type="java.io.IOException"/>
  25324. <doc>
  25325. <![CDATA[Read a line.]]>
  25326. </doc>
  25327. </method>
  25328. <method name="getProgress" return="float"
  25329. abstract="false" native="false" synchronized="false"
  25330. static="false" final="false" visibility="public"
  25331. deprecated="not deprecated">
  25332. <doc>
  25333. <![CDATA[Get the progress within the split]]>
  25334. </doc>
  25335. </method>
  25336. <method name="getPos" return="long"
  25337. abstract="false" native="false" synchronized="true"
  25338. static="false" final="false" visibility="public"
  25339. deprecated="not deprecated">
  25340. <exception name="IOException" type="java.io.IOException"/>
  25341. </method>
  25342. <method name="close"
  25343. abstract="false" native="false" synchronized="true"
  25344. static="false" final="false" visibility="public"
  25345. deprecated="not deprecated">
  25346. <exception name="IOException" type="java.io.IOException"/>
  25347. </method>
  25348. <doc>
  25349. <![CDATA[Treats keys as offset in file and value as line.]]>
  25350. </doc>
  25351. </class>
  25352. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  25353. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  25354. <class name="LineRecordReader.LineReader" extends="java.lang.Object"
  25355. abstract="false"
  25356. static="true" final="false" visibility="public"
  25357. deprecated="not deprecated">
  25358. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  25359. static="false" final="false" visibility="public"
  25360. deprecated="not deprecated">
  25361. <exception name="IOException" type="java.io.IOException"/>
  25362. <doc>
  25363. <![CDATA[Create a line reader that reads from the given stream using the
  25364. <code>io.file.buffer.size</code> specified in the given
  25365. <code>Configuration</code>.
  25366. @param in input stream
  25367. @param conf configuration
  25368. @throws IOException]]>
  25369. </doc>
  25370. </constructor>
  25371. <method name="close"
  25372. abstract="false" native="false" synchronized="false"
  25373. static="false" final="false" visibility="public"
  25374. deprecated="not deprecated">
  25375. <exception name="IOException" type="java.io.IOException"/>
  25376. <doc>
  25377. <![CDATA[Close the underlying stream.
  25378. @throws IOException]]>
  25379. </doc>
  25380. </method>
  25381. <method name="readLine" return="int"
  25382. abstract="false" native="false" synchronized="false"
  25383. static="false" final="false" visibility="public"
  25384. deprecated="not deprecated">
  25385. <param name="str" type="org.apache.hadoop.io.Text"/>
  25386. <exception name="IOException" type="java.io.IOException"/>
  25387. <doc>
  25388. <![CDATA[Read from the InputStream into the given Text.
  25389. @param str the object to store the given line
  25390. @return the number of bytes read including the newline
  25391. @throws IOException if the underlying stream throws]]>
  25392. </doc>
  25393. </method>
  25394. <doc>
  25395. <![CDATA[A class that provides a line reader from an input stream.]]>
  25396. </doc>
  25397. </class>
  25398. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  25399. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  25400. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  25401. abstract="false"
  25402. static="false" final="false" visibility="public"
  25403. deprecated="not deprecated">
  25404. <constructor name="MapFileOutputFormat"
  25405. static="false" final="false" visibility="public"
  25406. deprecated="not deprecated">
  25407. </constructor>
  25408. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  25409. abstract="false" native="false" synchronized="false"
  25410. static="false" final="false" visibility="public"
  25411. deprecated="not deprecated">
  25412. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25413. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25414. <param name="name" type="java.lang.String"/>
  25415. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  25416. <exception name="IOException" type="java.io.IOException"/>
  25417. </method>
  25418. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  25419. abstract="false" native="false" synchronized="false"
  25420. static="true" final="false" visibility="public"
  25421. deprecated="not deprecated">
  25422. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25423. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  25424. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  25425. <exception name="IOException" type="java.io.IOException"/>
  25426. <doc>
  25427. <![CDATA[Open the output generated by this format.]]>
  25428. </doc>
  25429. </method>
  25430. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  25431. abstract="false" native="false" synchronized="false"
  25432. static="true" final="false" visibility="public"
  25433. deprecated="not deprecated">
  25434. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  25435. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner&lt;K, V&gt;"/>
  25436. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  25437. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  25438. <exception name="IOException" type="java.io.IOException"/>
  25439. <doc>
  25440. <![CDATA[Get an entry from output generated by this class.]]>
  25441. </doc>
  25442. </method>
  25443. <doc>
  25444. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  25445. </doc>
  25446. </class>
  25447. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  25448. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  25449. <interface name="Mapper" abstract="true"
  25450. static="false" final="false" visibility="public"
  25451. deprecated="not deprecated">
  25452. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  25453. <implements name="org.apache.hadoop.io.Closeable"/>
  25454. <method name="map"
  25455. abstract="false" native="false" synchronized="false"
  25456. static="false" final="false" visibility="public"
  25457. deprecated="not deprecated">
  25458. <param name="key" type="K1"/>
  25459. <param name="value" type="V1"/>
  25460. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  25461. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25462. <exception name="IOException" type="java.io.IOException"/>
  25463. <doc>
  25464. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  25465. <p>Output pairs need not be of the same types as input pairs. A given
  25466. input pair may map to zero or many output pairs. Output pairs are
  25467. collected with calls to
  25468. {@link OutputCollector#collect(Object,Object)}.</p>
  25469. <p>Applications can use the {@link Reporter} provided to report progress
  25470. or just indicate that they are alive. In scenarios where the application
  25471. takes an insignificant amount of time to process individual key/value
  25472. pairs, this is crucial since the framework might assume that the task has
  25473. timed-out and kill that task. The other way of avoiding this is to set
  25474. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  25475. mapred.task.timeout</a> to a high-enough value (or even zero for no
  25476. time-outs).</p>
  25477. @param key the input key.
  25478. @param value the input value.
  25479. @param output collects mapped keys and values.
  25480. @param reporter facility to report progress.]]>
  25481. </doc>
  25482. </method>
  25483. <doc>
  25484. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  25485. <p>Maps are the individual tasks which transform input records into a
  25486. intermediate records. The transformed intermediate records need not be of
  25487. the same type as the input records. A given input pair may map to zero or
  25488. many output pairs.</p>
  25489. <p>The Hadoop Map-Reduce framework spawns one map task for each
  25490. {@link InputSplit} generated by the {@link InputFormat} for the job.
  25491. <code>Mapper</code> implementations can access the {@link JobConf} for the
  25492. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  25493. themselves. Similarly they can use the {@link Closeable#close()} method for
  25494. de-initialization.</p>
  25495. <p>The framework then calls
  25496. {@link #map(Object, Object, OutputCollector, Reporter)}
  25497. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  25498. <p>All intermediate values associated with a given output key are
  25499. subsequently grouped by the framework, and passed to a {@link Reducer} to
  25500. determine the final output. Users can control the grouping by specifying
  25501. a <code>Comparator</code> via
  25502. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  25503. <p>The grouped <code>Mapper</code> outputs are partitioned per
  25504. <code>Reducer</code>. Users can control which keys (and hence records) go to
  25505. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  25506. <p>Users can optionally specify a <code>combiner</code>, via
  25507. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  25508. intermediate outputs, which helps to cut down the amount of data transferred
  25509. from the <code>Mapper</code> to the <code>Reducer</code>.
  25510. <p>The intermediate, grouped outputs are always stored in
  25511. {@link SequenceFile}s. Applications can specify if and how the intermediate
  25512. outputs are to be compressed and which {@link CompressionCodec}s are to be
  25513. used via the <code>JobConf</code>.</p>
  25514. <p>If the job has
  25515. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  25516. reduces</a> then the output of the <code>Mapper</code> is directly written
  25517. to the {@link FileSystem} without grouping by keys.</p>
  25518. <p>Example:</p>
  25519. <p><blockquote><pre>
  25520. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  25521. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  25522. static enum MyCounters { NUM_RECORDS }
  25523. private String mapTaskId;
  25524. private String inputFile;
  25525. private int noRecords = 0;
  25526. public void configure(JobConf job) {
  25527. mapTaskId = job.get("mapred.task.id");
  25528. inputFile = job.get("mapred.input.file");
  25529. }
  25530. public void map(K key, V val,
  25531. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  25532. throws IOException {
  25533. // Process the &lt;key, value&gt; pair (assume this takes a while)
  25534. // ...
  25535. // ...
  25536. // Let the framework know that we are alive, and kicking!
  25537. // reporter.progress();
  25538. // Process some more
  25539. // ...
  25540. // ...
  25541. // Increment the no. of &lt;key, value&gt; pairs processed
  25542. ++noRecords;
  25543. // Increment counters
  25544. reporter.incrCounter(NUM_RECORDS, 1);
  25545. // Every 100 records update application-level status
  25546. if ((noRecords%100) == 0) {
  25547. reporter.setStatus(mapTaskId + " processed " + noRecords +
  25548. " from input-file: " + inputFile);
  25549. }
  25550. // Output the result
  25551. output.collect(key, val);
  25552. }
  25553. }
  25554. </pre></blockquote></p>
  25555. <p>Applications may write a custom {@link MapRunnable} to exert greater
  25556. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  25557. @see JobConf
  25558. @see InputFormat
  25559. @see Partitioner
  25560. @see Reducer
  25561. @see MapReduceBase
  25562. @see MapRunnable
  25563. @see SequenceFile]]>
  25564. </doc>
  25565. </interface>
  25566. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  25567. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  25568. <class name="MapReduceBase" extends="java.lang.Object"
  25569. abstract="false"
  25570. static="false" final="false" visibility="public"
  25571. deprecated="not deprecated">
  25572. <implements name="org.apache.hadoop.io.Closeable"/>
  25573. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  25574. <constructor name="MapReduceBase"
  25575. static="false" final="false" visibility="public"
  25576. deprecated="not deprecated">
  25577. </constructor>
  25578. <method name="close"
  25579. abstract="false" native="false" synchronized="false"
  25580. static="false" final="false" visibility="public"
  25581. deprecated="not deprecated">
  25582. <exception name="IOException" type="java.io.IOException"/>
  25583. <doc>
  25584. <![CDATA[Default implementation that does nothing.]]>
  25585. </doc>
  25586. </method>
  25587. <method name="configure"
  25588. abstract="false" native="false" synchronized="false"
  25589. static="false" final="false" visibility="public"
  25590. deprecated="not deprecated">
  25591. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25592. <doc>
  25593. <![CDATA[Default implementation that does nothing.]]>
  25594. </doc>
  25595. </method>
  25596. <doc>
  25597. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  25598. <p>Provides default no-op implementations for a few methods, most non-trivial
  25599. applications need to override some of them.</p>]]>
  25600. </doc>
  25601. </class>
  25602. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  25603. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  25604. <interface name="MapRunnable" abstract="true"
  25605. static="false" final="false" visibility="public"
  25606. deprecated="not deprecated">
  25607. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  25608. <method name="run"
  25609. abstract="false" native="false" synchronized="false"
  25610. static="false" final="false" visibility="public"
  25611. deprecated="not deprecated">
  25612. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  25613. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  25614. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25615. <exception name="IOException" type="java.io.IOException"/>
  25616. <doc>
  25617. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  25618. <p>Mapping of input records to output records is complete when this method
  25619. returns.</p>
  25620. @param input the {@link RecordReader} to read the input records.
  25621. @param output the {@link OutputCollector} to collect the outputrecords.
  25622. @param reporter {@link Reporter} to report progress, status-updates etc.
  25623. @throws IOException]]>
  25624. </doc>
  25625. </method>
  25626. <doc>
  25627. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  25628. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  25629. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  25630. @see Mapper]]>
  25631. </doc>
  25632. </interface>
  25633. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  25634. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  25635. <class name="MapRunner" extends="java.lang.Object"
  25636. abstract="false"
  25637. static="false" final="false" visibility="public"
  25638. deprecated="not deprecated">
  25639. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  25640. <constructor name="MapRunner"
  25641. static="false" final="false" visibility="public"
  25642. deprecated="not deprecated">
  25643. </constructor>
  25644. <method name="configure"
  25645. abstract="false" native="false" synchronized="false"
  25646. static="false" final="false" visibility="public"
  25647. deprecated="not deprecated">
  25648. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25649. </method>
  25650. <method name="run"
  25651. abstract="false" native="false" synchronized="false"
  25652. static="false" final="false" visibility="public"
  25653. deprecated="not deprecated">
  25654. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  25655. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  25656. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25657. <exception name="IOException" type="java.io.IOException"/>
  25658. </method>
  25659. <doc>
  25660. <![CDATA[Default {@link MapRunnable} implementation.]]>
  25661. </doc>
  25662. </class>
  25663. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  25664. <!-- start class org.apache.hadoop.mapred.MapTaskStatus -->
  25665. <class name="MapTaskStatus" extends="org.apache.hadoop.mapred.TaskStatus"
  25666. abstract="false"
  25667. static="false" final="false" visibility="public"
  25668. deprecated="not deprecated">
  25669. <constructor name="MapTaskStatus"
  25670. static="false" final="false" visibility="public"
  25671. deprecated="not deprecated">
  25672. </constructor>
  25673. <constructor name="MapTaskStatus" type="java.lang.String, float, org.apache.hadoop.mapred.TaskStatus.State, java.lang.String, java.lang.String, java.lang.String, org.apache.hadoop.mapred.TaskStatus.Phase, org.apache.hadoop.mapred.Counters"
  25674. static="false" final="false" visibility="public"
  25675. deprecated="not deprecated">
  25676. </constructor>
  25677. <method name="getIsMap" return="boolean"
  25678. abstract="false" native="false" synchronized="false"
  25679. static="false" final="false" visibility="public"
  25680. deprecated="not deprecated">
  25681. </method>
  25682. <method name="getShuffleFinishTime" return="long"
  25683. abstract="false" native="false" synchronized="false"
  25684. static="false" final="false" visibility="public"
  25685. deprecated="not deprecated">
  25686. </method>
  25687. <method name="getSortFinishTime" return="long"
  25688. abstract="false" native="false" synchronized="false"
  25689. static="false" final="false" visibility="public"
  25690. deprecated="not deprecated">
  25691. </method>
  25692. </class>
  25693. <!-- end class org.apache.hadoop.mapred.MapTaskStatus -->
  25694. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  25695. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  25696. abstract="true"
  25697. static="false" final="false" visibility="public"
  25698. deprecated="not deprecated">
  25699. <constructor name="MultiFileInputFormat"
  25700. static="false" final="false" visibility="public"
  25701. deprecated="not deprecated">
  25702. </constructor>
  25703. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  25704. abstract="false" native="false" synchronized="false"
  25705. static="false" final="false" visibility="public"
  25706. deprecated="not deprecated">
  25707. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25708. <param name="numSplits" type="int"/>
  25709. <exception name="IOException" type="java.io.IOException"/>
  25710. </method>
  25711. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  25712. abstract="true" native="false" synchronized="false"
  25713. static="false" final="false" visibility="public"
  25714. deprecated="not deprecated">
  25715. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  25716. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25717. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  25718. <exception name="IOException" type="java.io.IOException"/>
  25719. </method>
  25720. <doc>
  25721. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  25722. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  25723. the files under the input paths. Each split returned contains <i>nearly</i>
  25724. equal content length. <br>
  25725. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  25726. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  25727. @see MultiFileSplit]]>
  25728. </doc>
  25729. </class>
  25730. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  25731. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  25732. <class name="MultiFileSplit" extends="java.lang.Object"
  25733. abstract="false"
  25734. static="false" final="false" visibility="public"
  25735. deprecated="not deprecated">
  25736. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  25737. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  25738. static="false" final="false" visibility="public"
  25739. deprecated="not deprecated">
  25740. </constructor>
  25741. <method name="getLength" return="long"
  25742. abstract="false" native="false" synchronized="false"
  25743. static="false" final="false" visibility="public"
  25744. deprecated="not deprecated">
  25745. </method>
  25746. <method name="getLengths" return="long[]"
  25747. abstract="false" native="false" synchronized="false"
  25748. static="false" final="false" visibility="public"
  25749. deprecated="not deprecated">
  25750. <doc>
  25751. <![CDATA[Returns an array containing the lengths of the files in
  25752. the split]]>
  25753. </doc>
  25754. </method>
  25755. <method name="getLength" return="long"
  25756. abstract="false" native="false" synchronized="false"
  25757. static="false" final="false" visibility="public"
  25758. deprecated="not deprecated">
  25759. <param name="i" type="int"/>
  25760. <doc>
  25761. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  25762. </doc>
  25763. </method>
  25764. <method name="getNumPaths" return="int"
  25765. abstract="false" native="false" synchronized="false"
  25766. static="false" final="false" visibility="public"
  25767. deprecated="not deprecated">
  25768. <doc>
  25769. <![CDATA[Returns the number of Paths in the split]]>
  25770. </doc>
  25771. </method>
  25772. <method name="getPath" return="org.apache.hadoop.fs.Path"
  25773. abstract="false" native="false" synchronized="false"
  25774. static="false" final="false" visibility="public"
  25775. deprecated="not deprecated">
  25776. <param name="i" type="int"/>
  25777. <doc>
  25778. <![CDATA[Returns the i<sup>th</sup> Path]]>
  25779. </doc>
  25780. </method>
  25781. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  25782. abstract="false" native="false" synchronized="false"
  25783. static="false" final="false" visibility="public"
  25784. deprecated="not deprecated">
  25785. <doc>
  25786. <![CDATA[Returns all the Paths in the split]]>
  25787. </doc>
  25788. </method>
  25789. <method name="getLocations" return="java.lang.String[]"
  25790. abstract="false" native="false" synchronized="false"
  25791. static="false" final="false" visibility="public"
  25792. deprecated="not deprecated">
  25793. <exception name="IOException" type="java.io.IOException"/>
  25794. </method>
  25795. <method name="readFields"
  25796. abstract="false" native="false" synchronized="false"
  25797. static="false" final="false" visibility="public"
  25798. deprecated="not deprecated">
  25799. <param name="in" type="java.io.DataInput"/>
  25800. <exception name="IOException" type="java.io.IOException"/>
  25801. </method>
  25802. <method name="write"
  25803. abstract="false" native="false" synchronized="false"
  25804. static="false" final="false" visibility="public"
  25805. deprecated="not deprecated">
  25806. <param name="out" type="java.io.DataOutput"/>
  25807. <exception name="IOException" type="java.io.IOException"/>
  25808. </method>
  25809. <method name="toString" return="java.lang.String"
  25810. abstract="false" native="false" synchronized="false"
  25811. static="false" final="false" visibility="public"
  25812. deprecated="not deprecated">
  25813. </method>
  25814. <doc>
  25815. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  25816. class does not represent a split of a file, but a split of input files
  25817. into smaller sets. The atomic unit of split is a file. <br>
  25818. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  25819. reading one record per file.
  25820. @see FileSplit
  25821. @see MultiFileInputFormat]]>
  25822. </doc>
  25823. </class>
  25824. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  25825. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  25826. <interface name="OutputCollector" abstract="true"
  25827. static="false" final="false" visibility="public"
  25828. deprecated="not deprecated">
  25829. <method name="collect"
  25830. abstract="false" native="false" synchronized="false"
  25831. static="false" final="false" visibility="public"
  25832. deprecated="not deprecated">
  25833. <param name="key" type="K"/>
  25834. <param name="value" type="V"/>
  25835. <exception name="IOException" type="java.io.IOException"/>
  25836. <doc>
  25837. <![CDATA[Adds a key/value pair to the output.
  25838. @param key the key to collect.
  25839. @param value to value to collect.
  25840. @throws IOException]]>
  25841. </doc>
  25842. </method>
  25843. <doc>
  25844. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  25845. and {@link Reducer}s.
  25846. <p><code>OutputCollector</code> is the generalization of the facility
  25847. provided by the Map-Reduce framework to collect data output by either the
  25848. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  25849. or the output of the job.</p>]]>
  25850. </doc>
  25851. </interface>
  25852. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  25853. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  25854. <interface name="OutputFormat" abstract="true"
  25855. static="false" final="false" visibility="public"
  25856. deprecated="not deprecated">
  25857. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  25858. abstract="false" native="false" synchronized="false"
  25859. static="false" final="false" visibility="public"
  25860. deprecated="not deprecated">
  25861. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25862. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25863. <param name="name" type="java.lang.String"/>
  25864. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  25865. <exception name="IOException" type="java.io.IOException"/>
  25866. <doc>
  25867. <![CDATA[Get the {@link RecordWriter} for the given job.
  25868. @param ignored
  25869. @param job configuration for the job whose output is being written.
  25870. @param name the unique name for this part of the output.
  25871. @param progress mechanism for reporting progress while writing to file.
  25872. @return a {@link RecordWriter} to write the output for the job.
  25873. @throws IOException]]>
  25874. </doc>
  25875. </method>
  25876. <method name="checkOutputSpecs"
  25877. abstract="false" native="false" synchronized="false"
  25878. static="false" final="false" visibility="public"
  25879. deprecated="not deprecated">
  25880. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25881. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25882. <exception name="IOException" type="java.io.IOException"/>
  25883. <doc>
  25884. <![CDATA[Check for validity of the output-specification for the job.
  25885. <p>This is to validate the output specification for the job when it is
  25886. a job is submitted. Typically checks that it does not already exist,
  25887. throwing an exception when it already exists, so that output is not
  25888. overwritten.</p>
  25889. @param ignored
  25890. @param job job configuration.
  25891. @throws IOException when output should not be attempted]]>
  25892. </doc>
  25893. </method>
  25894. <doc>
  25895. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  25896. Map-Reduce job.
  25897. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  25898. job to:<p>
  25899. <ol>
  25900. <li>
  25901. Validate the output-specification of the job. For e.g. check that the
  25902. output directory doesn't already exist.
  25903. <li>
  25904. Provide the {@link RecordWriter} implementation to be used to write out
  25905. the output files of the job. Output files are stored in a
  25906. {@link FileSystem}.
  25907. </li>
  25908. </ol>
  25909. @see RecordWriter
  25910. @see JobConf]]>
  25911. </doc>
  25912. </interface>
  25913. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  25914. <!-- start class org.apache.hadoop.mapred.OutputFormatBase -->
  25915. <class name="OutputFormatBase" extends="java.lang.Object"
  25916. abstract="true"
  25917. static="false" final="false" visibility="public"
  25918. deprecated="Use {@link FileOutputFormat}">
  25919. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  25920. <constructor name="OutputFormatBase"
  25921. static="false" final="false" visibility="public"
  25922. deprecated="not deprecated">
  25923. </constructor>
  25924. <method name="setCompressOutput"
  25925. abstract="false" native="false" synchronized="false"
  25926. static="true" final="false" visibility="public"
  25927. deprecated="not deprecated">
  25928. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25929. <param name="compress" type="boolean"/>
  25930. <doc>
  25931. <![CDATA[Set whether the output of the job is compressed.
  25932. @param conf the {@link JobConf} to modify
  25933. @param compress should the output of the job be compressed?]]>
  25934. </doc>
  25935. </method>
  25936. <method name="getCompressOutput" return="boolean"
  25937. abstract="false" native="false" synchronized="false"
  25938. static="true" final="false" visibility="public"
  25939. deprecated="not deprecated">
  25940. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25941. <doc>
  25942. <![CDATA[Is the job output compressed?
  25943. @param conf the {@link JobConf} to look in
  25944. @return <code>true</code> if the job output should be compressed,
  25945. <code>false</code> otherwise]]>
  25946. </doc>
  25947. </method>
  25948. <method name="setOutputCompressorClass"
  25949. abstract="false" native="false" synchronized="false"
  25950. static="true" final="false" visibility="public"
  25951. deprecated="not deprecated">
  25952. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25953. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  25954. <doc>
  25955. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  25956. @param conf the {@link JobConf} to modify
  25957. @param codecClass the {@link CompressionCodec} to be used to
  25958. compress the job outputs]]>
  25959. </doc>
  25960. </method>
  25961. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  25962. abstract="false" native="false" synchronized="false"
  25963. static="true" final="false" visibility="public"
  25964. deprecated="not deprecated">
  25965. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25966. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  25967. <doc>
  25968. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  25969. @param conf the {@link JobConf} to look in
  25970. @param defaultValue the {@link CompressionCodec} to return if not set
  25971. @return the {@link CompressionCodec} to be used to compress the
  25972. job outputs
  25973. @throws IllegalArgumentException if the class was specified, but not found]]>
  25974. </doc>
  25975. </method>
  25976. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  25977. abstract="true" native="false" synchronized="false"
  25978. static="false" final="false" visibility="public"
  25979. deprecated="not deprecated">
  25980. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25981. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25982. <param name="name" type="java.lang.String"/>
  25983. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  25984. <exception name="IOException" type="java.io.IOException"/>
  25985. </method>
  25986. <method name="checkOutputSpecs"
  25987. abstract="false" native="false" synchronized="false"
  25988. static="false" final="false" visibility="public"
  25989. deprecated="not deprecated">
  25990. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  25991. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25992. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  25993. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  25994. <exception name="IOException" type="java.io.IOException"/>
  25995. </method>
  25996. <doc>
  25997. <![CDATA[A base class for {@link OutputFormat}.
  25998. @deprecated Use {@link FileOutputFormat}]]>
  25999. </doc>
  26000. </class>
  26001. <!-- end class org.apache.hadoop.mapred.OutputFormatBase -->
  26002. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  26003. <class name="OutputLogFilter" extends="java.lang.Object"
  26004. abstract="false"
  26005. static="false" final="false" visibility="public"
  26006. deprecated="not deprecated">
  26007. <implements name="org.apache.hadoop.fs.PathFilter"/>
  26008. <constructor name="OutputLogFilter"
  26009. static="false" final="false" visibility="public"
  26010. deprecated="not deprecated">
  26011. </constructor>
  26012. <method name="accept" return="boolean"
  26013. abstract="false" native="false" synchronized="false"
  26014. static="false" final="false" visibility="public"
  26015. deprecated="not deprecated">
  26016. <param name="path" type="org.apache.hadoop.fs.Path"/>
  26017. </method>
  26018. <doc>
  26019. <![CDATA[This class filters log files from directory given
  26020. It doesnt accept paths having _logs.
  26021. This can be used to list paths of output directory as follows:
  26022. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  26023. new OutputLogFilter()));]]>
  26024. </doc>
  26025. </class>
  26026. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  26027. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  26028. <interface name="Partitioner" abstract="true"
  26029. static="false" final="false" visibility="public"
  26030. deprecated="not deprecated">
  26031. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  26032. <method name="getPartition" return="int"
  26033. abstract="false" native="false" synchronized="false"
  26034. static="false" final="false" visibility="public"
  26035. deprecated="not deprecated">
  26036. <param name="key" type="K2"/>
  26037. <param name="value" type="V2"/>
  26038. <param name="numPartitions" type="int"/>
  26039. <doc>
  26040. <![CDATA[Get the paritition number for a given key (hence record) given the total
  26041. number of partitions i.e. number of reduce-tasks for the job.
  26042. <p>Typically a hash function on a all or a subset of the key.</p>
  26043. @param key the key to be paritioned.
  26044. @param value the entry value.
  26045. @param numPartitions the total number of partitions.
  26046. @return the partition number for the <code>key</code>.]]>
  26047. </doc>
  26048. </method>
  26049. <doc>
  26050. <![CDATA[Partitions the key space.
  26051. <p><code>Partitioner</code> controls the partitioning of the keys of the
  26052. intermediate map-outputs. The key (or a subset of the key) is used to derive
  26053. the partition, typically by a hash function. The total number of partitions
  26054. is the same as the number of reduce tasks for the job. Hence this controls
  26055. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  26056. record) is sent for reduction.</p>
  26057. @see Reducer]]>
  26058. </doc>
  26059. </interface>
  26060. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  26061. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  26062. <interface name="RecordReader" abstract="true"
  26063. static="false" final="false" visibility="public"
  26064. deprecated="not deprecated">
  26065. <method name="next" return="boolean"
  26066. abstract="false" native="false" synchronized="false"
  26067. static="false" final="false" visibility="public"
  26068. deprecated="not deprecated">
  26069. <param name="key" type="K"/>
  26070. <param name="value" type="V"/>
  26071. <exception name="IOException" type="java.io.IOException"/>
  26072. <doc>
  26073. <![CDATA[Reads the next key/value pair from the input for processing.
  26074. @param key the key to read data into
  26075. @param value the value to read data into
  26076. @return true iff a key/value was read, false if at EOF]]>
  26077. </doc>
  26078. </method>
  26079. <method name="createKey" return="K"
  26080. abstract="false" native="false" synchronized="false"
  26081. static="false" final="false" visibility="public"
  26082. deprecated="not deprecated">
  26083. <doc>
  26084. <![CDATA[Create an object of the appropriate type to be used as a key.
  26085. @return a new key object.]]>
  26086. </doc>
  26087. </method>
  26088. <method name="createValue" return="V"
  26089. abstract="false" native="false" synchronized="false"
  26090. static="false" final="false" visibility="public"
  26091. deprecated="not deprecated">
  26092. <doc>
  26093. <![CDATA[Create an object of the appropriate type to be used as a value.
  26094. @return a new value object.]]>
  26095. </doc>
  26096. </method>
  26097. <method name="getPos" return="long"
  26098. abstract="false" native="false" synchronized="false"
  26099. static="false" final="false" visibility="public"
  26100. deprecated="not deprecated">
  26101. <exception name="IOException" type="java.io.IOException"/>
  26102. <doc>
  26103. <![CDATA[Returns the current position in the input.
  26104. @return the current position in the input.
  26105. @throws IOException]]>
  26106. </doc>
  26107. </method>
  26108. <method name="close"
  26109. abstract="false" native="false" synchronized="false"
  26110. static="false" final="false" visibility="public"
  26111. deprecated="not deprecated">
  26112. <exception name="IOException" type="java.io.IOException"/>
  26113. <doc>
  26114. <![CDATA[Close this {@link InputSplit} to future operations.
  26115. @throws IOException]]>
  26116. </doc>
  26117. </method>
  26118. <method name="getProgress" return="float"
  26119. abstract="false" native="false" synchronized="false"
  26120. static="false" final="false" visibility="public"
  26121. deprecated="not deprecated">
  26122. <exception name="IOException" type="java.io.IOException"/>
  26123. <doc>
  26124. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  26125. has been processed by?
  26126. @return progress from <code>0.0</code> to <code>1.0</code>.
  26127. @throws IOException]]>
  26128. </doc>
  26129. </method>
  26130. <doc>
  26131. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  26132. {@link InputSplit}.
  26133. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  26134. the input, provided by the <code>InputSplit</code>, and presents a
  26135. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  26136. processing. It thus assumes the responsibility of processing record
  26137. boundaries and presenting the tasks with keys and values.</p>
  26138. @see InputSplit
  26139. @see InputFormat]]>
  26140. </doc>
  26141. </interface>
  26142. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  26143. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  26144. <interface name="RecordWriter" abstract="true"
  26145. static="false" final="false" visibility="public"
  26146. deprecated="not deprecated">
  26147. <method name="write"
  26148. abstract="false" native="false" synchronized="false"
  26149. static="false" final="false" visibility="public"
  26150. deprecated="not deprecated">
  26151. <param name="key" type="K"/>
  26152. <param name="value" type="V"/>
  26153. <exception name="IOException" type="java.io.IOException"/>
  26154. <doc>
  26155. <![CDATA[Writes a key/value pair.
  26156. @param key the key to write.
  26157. @param value the value to write.
  26158. @throws IOException]]>
  26159. </doc>
  26160. </method>
  26161. <method name="close"
  26162. abstract="false" native="false" synchronized="false"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26166. <exception name="IOException" type="java.io.IOException"/>
  26167. <doc>
  26168. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  26169. @param reporter facility to report progress.
  26170. @throws IOException]]>
  26171. </doc>
  26172. </method>
  26173. <doc>
  26174. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  26175. to an output file.
  26176. <p><code>RecordWriter</code> implementations write the job outputs to the
  26177. {@link FileSystem}.
  26178. @see OutputFormat]]>
  26179. </doc>
  26180. </interface>
  26181. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  26182. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  26183. <interface name="Reducer" abstract="true"
  26184. static="false" final="false" visibility="public"
  26185. deprecated="not deprecated">
  26186. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  26187. <implements name="org.apache.hadoop.io.Closeable"/>
  26188. <method name="reduce"
  26189. abstract="false" native="false" synchronized="false"
  26190. static="false" final="false" visibility="public"
  26191. deprecated="not deprecated">
  26192. <param name="key" type="K2"/>
  26193. <param name="values" type="java.util.Iterator&lt;V2&gt;"/>
  26194. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K3, V3&gt;"/>
  26195. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26196. <exception name="IOException" type="java.io.IOException"/>
  26197. <doc>
  26198. <![CDATA[<i>Reduces</i> values for a given key.
  26199. <p>The framework calls this method for each
  26200. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  26201. Output values must be of the same type as input values. Input keys must
  26202. not be altered. Typically all values are combined into zero or one value.
  26203. </p>
  26204. <p>Output pairs are collected with calls to
  26205. {@link OutputCollector#collect(Object,Object)}.</p>
  26206. <p>Applications can use the {@link Reporter} provided to report progress
  26207. or just indicate that they are alive. In scenarios where the application
  26208. takes an insignificant amount of time to process individual key/value
  26209. pairs, this is crucial since the framework might assume that the task has
  26210. timed-out and kill that task. The other way of avoiding this is to set
  26211. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  26212. mapred.task.timeout</a> to a high-enough value (or even zero for no
  26213. time-outs).</p>
  26214. @param key the key.
  26215. @param values the list of values to reduce.
  26216. @param output to collect keys and combined values.
  26217. @param reporter facility to report progress.]]>
  26218. </doc>
  26219. </method>
  26220. <doc>
  26221. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  26222. values.
  26223. <p>The number of <code>Reducer</code>s for the job is set by the user via
  26224. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  26225. can access the {@link JobConf} for the job via the
  26226. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  26227. Similarly they can use the {@link Closeable#close()} method for
  26228. de-initialization.</p>
  26229. <p><code>Reducer</code> has 3 primary phases:</p>
  26230. <ol>
  26231. <li>
  26232. <h4 id="Shuffle">Shuffle</h4>
  26233. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  26234. In the phase the framework, for each <code>Reducer</code>, fetches the
  26235. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  26236. </p>
  26237. </li>
  26238. <li>
  26239. <h4 id="Sort">Sort</h4>
  26240. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  26241. (since different <code>Mapper</code>s may have output the same key) in this
  26242. stage.</p>
  26243. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  26244. being fetched they are merged.</p>
  26245. <h5 id="SecondarySort">SecondarySort</h5>
  26246. <p>If equivalence rules for keys while grouping the intermediates are
  26247. different from those for grouping keys before reduction, then one may
  26248. specify a <code>Comparator</code> via
  26249. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  26250. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  26251. control how intermediate keys are grouped, these can be used in conjunction
  26252. to simulate <i>secondary sort on values</i>.</p>
  26253. For example, say that you want to find duplicate web pages and tag them
  26254. all with the url of the "best" known example. You would set up the job
  26255. like:
  26256. <ul>
  26257. <li>Map Input Key: url</li>
  26258. <li>Map Input Value: document</li>
  26259. <li>Map Output Key: document checksum, url pagerank</li>
  26260. <li>Map Output Value: url</li>
  26261. <li>Partitioner: by checksum</li>
  26262. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  26263. <li>OutputValueGroupingComparator: by checksum</li>
  26264. </ul>
  26265. </li>
  26266. <li>
  26267. <h4 id="Reduce">Reduce</h4>
  26268. <p>In this phase the
  26269. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  26270. method is called for each <code>&lt;key, (list of values)></code> pair in
  26271. the grouped inputs.</p>
  26272. <p>The output of the reduce task is typically written to the
  26273. {@link FileSystem} via
  26274. {@link OutputCollector#collect(Object, Object)}.</p>
  26275. </li>
  26276. </ol>
  26277. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  26278. <p>Example:</p>
  26279. <p><blockquote><pre>
  26280. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  26281. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  26282. static enum MyCounters { NUM_RECORDS }
  26283. private String reduceTaskId;
  26284. private int noKeys = 0;
  26285. public void configure(JobConf job) {
  26286. reduceTaskId = job.get("mapred.task.id");
  26287. }
  26288. public void reduce(K key, Iterator&lt;V&gt; values,
  26289. OutputCollector&lt;K, V&gt; output,
  26290. Reporter reporter)
  26291. throws IOException {
  26292. // Process
  26293. int noValues = 0;
  26294. while (values.hasNext()) {
  26295. V value = values.next();
  26296. // Increment the no. of values for this key
  26297. ++noValues;
  26298. // Process the &lt;key, value&gt; pair (assume this takes a while)
  26299. // ...
  26300. // ...
  26301. // Let the framework know that we are alive, and kicking!
  26302. if ((noValues%10) == 0) {
  26303. reporter.progress();
  26304. }
  26305. // Process some more
  26306. // ...
  26307. // ...
  26308. // Output the &lt;key, value&gt;
  26309. output.collect(key, value);
  26310. }
  26311. // Increment the no. of &lt;key, list of values&gt; pairs processed
  26312. ++noKeys;
  26313. // Increment counters
  26314. reporter.incrCounter(NUM_RECORDS, 1);
  26315. // Every 100 keys update application-level status
  26316. if ((noKeys%100) == 0) {
  26317. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  26318. }
  26319. }
  26320. }
  26321. </pre></blockquote></p>
  26322. @see Mapper
  26323. @see Partitioner
  26324. @see Reporter
  26325. @see MapReduceBase]]>
  26326. </doc>
  26327. </interface>
  26328. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  26329. <!-- start class org.apache.hadoop.mapred.ReduceTaskStatus -->
  26330. <class name="ReduceTaskStatus" extends="org.apache.hadoop.mapred.TaskStatus"
  26331. abstract="false"
  26332. static="false" final="false" visibility="public"
  26333. deprecated="not deprecated">
  26334. <constructor name="ReduceTaskStatus"
  26335. static="false" final="false" visibility="public"
  26336. deprecated="not deprecated">
  26337. </constructor>
  26338. <constructor name="ReduceTaskStatus" type="java.lang.String, float, org.apache.hadoop.mapred.TaskStatus.State, java.lang.String, java.lang.String, java.lang.String, org.apache.hadoop.mapred.TaskStatus.Phase, org.apache.hadoop.mapred.Counters"
  26339. static="false" final="false" visibility="public"
  26340. deprecated="not deprecated">
  26341. </constructor>
  26342. <method name="clone" return="java.lang.Object"
  26343. abstract="false" native="false" synchronized="false"
  26344. static="false" final="false" visibility="public"
  26345. deprecated="not deprecated">
  26346. </method>
  26347. <method name="getIsMap" return="boolean"
  26348. abstract="false" native="false" synchronized="false"
  26349. static="false" final="false" visibility="public"
  26350. deprecated="not deprecated">
  26351. </method>
  26352. <method name="getShuffleFinishTime" return="long"
  26353. abstract="false" native="false" synchronized="false"
  26354. static="false" final="false" visibility="public"
  26355. deprecated="not deprecated">
  26356. </method>
  26357. <method name="getSortFinishTime" return="long"
  26358. abstract="false" native="false" synchronized="false"
  26359. static="false" final="false" visibility="public"
  26360. deprecated="not deprecated">
  26361. </method>
  26362. <method name="getFetchFailedMaps" return="java.util.List&lt;java.lang.String&gt;"
  26363. abstract="false" native="false" synchronized="false"
  26364. static="false" final="false" visibility="public"
  26365. deprecated="not deprecated">
  26366. </method>
  26367. <method name="readFields"
  26368. abstract="false" native="false" synchronized="false"
  26369. static="false" final="false" visibility="public"
  26370. deprecated="not deprecated">
  26371. <param name="in" type="java.io.DataInput"/>
  26372. <exception name="IOException" type="java.io.IOException"/>
  26373. </method>
  26374. <method name="write"
  26375. abstract="false" native="false" synchronized="false"
  26376. static="false" final="false" visibility="public"
  26377. deprecated="not deprecated">
  26378. <param name="out" type="java.io.DataOutput"/>
  26379. <exception name="IOException" type="java.io.IOException"/>
  26380. </method>
  26381. </class>
  26382. <!-- end class org.apache.hadoop.mapred.ReduceTaskStatus -->
  26383. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  26384. <interface name="Reporter" abstract="true"
  26385. static="false" final="false" visibility="public"
  26386. deprecated="not deprecated">
  26387. <implements name="org.apache.hadoop.util.Progressable"/>
  26388. <method name="setStatus"
  26389. abstract="false" native="false" synchronized="false"
  26390. static="false" final="false" visibility="public"
  26391. deprecated="not deprecated">
  26392. <param name="status" type="java.lang.String"/>
  26393. <doc>
  26394. <![CDATA[Set the status description for the task.
  26395. @param status brief description of the current status.]]>
  26396. </doc>
  26397. </method>
  26398. <method name="incrCounter"
  26399. abstract="false" native="false" synchronized="false"
  26400. static="false" final="false" visibility="public"
  26401. deprecated="not deprecated">
  26402. <param name="key" type="java.lang.Enum"/>
  26403. <param name="amount" type="long"/>
  26404. <doc>
  26405. <![CDATA[Increments the counter identified by the key, which can be of
  26406. any {@link Enum} type, by the specified amount.
  26407. @param key key to identify the counter to be incremented. The key can be
  26408. be any <code>Enum</code>.
  26409. @param amount A non-negative amount by which the counter is to
  26410. be incremented.]]>
  26411. </doc>
  26412. </method>
  26413. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  26414. abstract="false" native="false" synchronized="false"
  26415. static="false" final="false" visibility="public"
  26416. deprecated="not deprecated">
  26417. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  26418. <doc>
  26419. <![CDATA[Get the {@link InputSplit} object for a map.
  26420. @return the <code>InputSplit</code> that the map is reading from.
  26421. @throws UnsupportedOperationException if called outside a mapper]]>
  26422. </doc>
  26423. </method>
  26424. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  26425. transient="false" volatile="false"
  26426. static="true" final="true" visibility="public"
  26427. deprecated="not deprecated">
  26428. <doc>
  26429. <![CDATA[A constant of Reporter type that does nothing.]]>
  26430. </doc>
  26431. </field>
  26432. <doc>
  26433. <![CDATA[A facility for Map-Reduce applications to report progress and update
  26434. counters, status information etc.
  26435. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  26436. provided to report progress or just indicate that they are alive. In
  26437. scenarios where the application takes an insignificant amount of time to
  26438. process individual key/value pairs, this is crucial since the framework
  26439. might assume that the task has timed-out and kill that task.
  26440. <p>Applications can also update {@link Counters} via the provided
  26441. <code>Reporter</code> .</p>
  26442. @see Progressable
  26443. @see Counters]]>
  26444. </doc>
  26445. </interface>
  26446. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  26447. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  26448. <interface name="RunningJob" abstract="true"
  26449. static="false" final="false" visibility="public"
  26450. deprecated="not deprecated">
  26451. <method name="getJobID" return="java.lang.String"
  26452. abstract="false" native="false" synchronized="false"
  26453. static="false" final="false" visibility="public"
  26454. deprecated="not deprecated">
  26455. <doc>
  26456. <![CDATA[Get the job identifier.
  26457. @return the job identifier.]]>
  26458. </doc>
  26459. </method>
  26460. <method name="getJobName" return="java.lang.String"
  26461. abstract="false" native="false" synchronized="false"
  26462. static="false" final="false" visibility="public"
  26463. deprecated="not deprecated">
  26464. <doc>
  26465. <![CDATA[Get the name of the job.
  26466. @return the name of the job.]]>
  26467. </doc>
  26468. </method>
  26469. <method name="getJobFile" return="java.lang.String"
  26470. abstract="false" native="false" synchronized="false"
  26471. static="false" final="false" visibility="public"
  26472. deprecated="not deprecated">
  26473. <doc>
  26474. <![CDATA[Get the path of the submitted job configuration.
  26475. @return the path of the submitted job configuration.]]>
  26476. </doc>
  26477. </method>
  26478. <method name="getTrackingURL" return="java.lang.String"
  26479. abstract="false" native="false" synchronized="false"
  26480. static="false" final="false" visibility="public"
  26481. deprecated="not deprecated">
  26482. <doc>
  26483. <![CDATA[Get the URL where some job progress information will be displayed.
  26484. @return the URL where some job progress information will be displayed.]]>
  26485. </doc>
  26486. </method>
  26487. <method name="mapProgress" return="float"
  26488. abstract="false" native="false" synchronized="false"
  26489. static="false" final="false" visibility="public"
  26490. deprecated="not deprecated">
  26491. <exception name="IOException" type="java.io.IOException"/>
  26492. <doc>
  26493. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  26494. and 1.0. When all map tasks have completed, the function returns 1.0.
  26495. @return the progress of the job's map-tasks.
  26496. @throws IOException]]>
  26497. </doc>
  26498. </method>
  26499. <method name="reduceProgress" return="float"
  26500. abstract="false" native="false" synchronized="false"
  26501. static="false" final="false" visibility="public"
  26502. deprecated="not deprecated">
  26503. <exception name="IOException" type="java.io.IOException"/>
  26504. <doc>
  26505. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  26506. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  26507. @return the progress of the job's reduce-tasks.
  26508. @throws IOException]]>
  26509. </doc>
  26510. </method>
  26511. <method name="isComplete" return="boolean"
  26512. abstract="false" native="false" synchronized="false"
  26513. static="false" final="false" visibility="public"
  26514. deprecated="not deprecated">
  26515. <exception name="IOException" type="java.io.IOException"/>
  26516. <doc>
  26517. <![CDATA[Check if the job is finished or not.
  26518. This is a non-blocking call.
  26519. @return <code>true</code> if the job is complete, else <code>false</code>.
  26520. @throws IOException]]>
  26521. </doc>
  26522. </method>
  26523. <method name="isSuccessful" return="boolean"
  26524. abstract="false" native="false" synchronized="false"
  26525. static="false" final="false" visibility="public"
  26526. deprecated="not deprecated">
  26527. <exception name="IOException" type="java.io.IOException"/>
  26528. <doc>
  26529. <![CDATA[Check if the job completed successfully.
  26530. @return <code>true</code> if the job succeeded, else <code>false</code>.
  26531. @throws IOException]]>
  26532. </doc>
  26533. </method>
  26534. <method name="waitForCompletion"
  26535. abstract="false" native="false" synchronized="false"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. <exception name="IOException" type="java.io.IOException"/>
  26539. <doc>
  26540. <![CDATA[Blocks until the job is complete.
  26541. @throws IOException]]>
  26542. </doc>
  26543. </method>
  26544. <method name="killJob"
  26545. abstract="false" native="false" synchronized="false"
  26546. static="false" final="false" visibility="public"
  26547. deprecated="not deprecated">
  26548. <exception name="IOException" type="java.io.IOException"/>
  26549. <doc>
  26550. <![CDATA[Kill the running job. Blocks until all job tasks have been
  26551. killed as well. If the job is no longer running, it simply returns.
  26552. @throws IOException]]>
  26553. </doc>
  26554. </method>
  26555. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  26556. abstract="false" native="false" synchronized="false"
  26557. static="false" final="false" visibility="public"
  26558. deprecated="not deprecated">
  26559. <param name="startFrom" type="int"/>
  26560. <exception name="IOException" type="java.io.IOException"/>
  26561. <doc>
  26562. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  26563. @param startFrom index to start fetching events from
  26564. @return an array of {@link TaskCompletionEvent}s
  26565. @throws IOException]]>
  26566. </doc>
  26567. </method>
  26568. <method name="killTask"
  26569. abstract="false" native="false" synchronized="false"
  26570. static="false" final="false" visibility="public"
  26571. deprecated="not deprecated">
  26572. <param name="taskId" type="java.lang.String"/>
  26573. <param name="shouldFail" type="boolean"/>
  26574. <exception name="IOException" type="java.io.IOException"/>
  26575. <doc>
  26576. <![CDATA[Kill indicated task attempt.
  26577. @param taskId the id of the task to be terminated.
  26578. @param shouldFail if true the task is failed and added to failed tasks
  26579. list, otherwise it is just killed, w/o affecting
  26580. job failure status.
  26581. @throws IOException]]>
  26582. </doc>
  26583. </method>
  26584. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  26585. abstract="false" native="false" synchronized="false"
  26586. static="false" final="false" visibility="public"
  26587. deprecated="not deprecated">
  26588. <exception name="IOException" type="java.io.IOException"/>
  26589. <doc>
  26590. <![CDATA[Gets the counters for this job.
  26591. @return the counters for this job.
  26592. @throws IOException]]>
  26593. </doc>
  26594. </method>
  26595. <doc>
  26596. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  26597. running Map-Reduce job.
  26598. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  26599. and then query the running-job for details such as name, configuration,
  26600. progress etc.</p>
  26601. @see JobClient]]>
  26602. </doc>
  26603. </interface>
  26604. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  26605. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  26606. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  26607. abstract="false"
  26608. static="false" final="false" visibility="public"
  26609. deprecated="not deprecated">
  26610. <constructor name="SequenceFileAsBinaryInputFormat"
  26611. static="false" final="false" visibility="public"
  26612. deprecated="not deprecated">
  26613. </constructor>
  26614. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  26615. abstract="false" native="false" synchronized="false"
  26616. static="false" final="false" visibility="public"
  26617. deprecated="not deprecated">
  26618. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  26619. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  26620. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26621. <exception name="IOException" type="java.io.IOException"/>
  26622. </method>
  26623. <doc>
  26624. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  26625. format.]]>
  26626. </doc>
  26627. </class>
  26628. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  26629. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  26630. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  26631. abstract="false"
  26632. static="true" final="false" visibility="public"
  26633. deprecated="not deprecated">
  26634. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"/>
  26635. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  26636. static="false" final="false" visibility="public"
  26637. deprecated="not deprecated">
  26638. <exception name="IOException" type="java.io.IOException"/>
  26639. </constructor>
  26640. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  26641. abstract="false" native="false" synchronized="false"
  26642. static="false" final="false" visibility="public"
  26643. deprecated="not deprecated">
  26644. </method>
  26645. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  26646. abstract="false" native="false" synchronized="false"
  26647. static="false" final="false" visibility="public"
  26648. deprecated="not deprecated">
  26649. </method>
  26650. <method name="getKeyClassName" return="java.lang.String"
  26651. abstract="false" native="false" synchronized="false"
  26652. static="false" final="false" visibility="public"
  26653. deprecated="not deprecated">
  26654. <doc>
  26655. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  26656. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  26657. </doc>
  26658. </method>
  26659. <method name="getValueClassName" return="java.lang.String"
  26660. abstract="false" native="false" synchronized="false"
  26661. static="false" final="false" visibility="public"
  26662. deprecated="not deprecated">
  26663. <doc>
  26664. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  26665. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  26666. </doc>
  26667. </method>
  26668. <method name="next" return="boolean"
  26669. abstract="false" native="false" synchronized="true"
  26670. static="false" final="false" visibility="public"
  26671. deprecated="not deprecated">
  26672. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  26673. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  26674. <exception name="IOException" type="java.io.IOException"/>
  26675. <doc>
  26676. <![CDATA[Read raw bytes from a SequenceFile.]]>
  26677. </doc>
  26678. </method>
  26679. <method name="getPos" return="long"
  26680. abstract="false" native="false" synchronized="false"
  26681. static="false" final="false" visibility="public"
  26682. deprecated="not deprecated">
  26683. <exception name="IOException" type="java.io.IOException"/>
  26684. </method>
  26685. <method name="close"
  26686. abstract="false" native="false" synchronized="false"
  26687. static="false" final="false" visibility="public"
  26688. deprecated="not deprecated">
  26689. <exception name="IOException" type="java.io.IOException"/>
  26690. </method>
  26691. <method name="getProgress" return="float"
  26692. abstract="false" native="false" synchronized="false"
  26693. static="false" final="false" visibility="public"
  26694. deprecated="not deprecated">
  26695. <exception name="IOException" type="java.io.IOException"/>
  26696. <doc>
  26697. <![CDATA[Return the progress within the input split
  26698. @return 0.0 to 1.0 of the input byte range]]>
  26699. </doc>
  26700. </method>
  26701. <doc>
  26702. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  26703. </doc>
  26704. </class>
  26705. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  26706. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  26707. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  26708. abstract="false"
  26709. static="false" final="false" visibility="public"
  26710. deprecated="not deprecated">
  26711. <constructor name="SequenceFileAsTextInputFormat"
  26712. static="false" final="false" visibility="public"
  26713. deprecated="not deprecated">
  26714. </constructor>
  26715. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  26716. abstract="false" native="false" synchronized="false"
  26717. static="false" final="false" visibility="public"
  26718. deprecated="not deprecated">
  26719. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  26720. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  26721. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26722. <exception name="IOException" type="java.io.IOException"/>
  26723. </method>
  26724. <doc>
  26725. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  26726. which converts the input keys and values to their String forms by calling toString() method.]]>
  26727. </doc>
  26728. </class>
  26729. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  26730. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  26731. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  26732. abstract="false"
  26733. static="false" final="false" visibility="public"
  26734. deprecated="not deprecated">
  26735. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  26736. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  26737. static="false" final="false" visibility="public"
  26738. deprecated="not deprecated">
  26739. <exception name="IOException" type="java.io.IOException"/>
  26740. </constructor>
  26741. <method name="createKey" return="org.apache.hadoop.io.Text"
  26742. abstract="false" native="false" synchronized="false"
  26743. static="false" final="false" visibility="public"
  26744. deprecated="not deprecated">
  26745. </method>
  26746. <method name="createValue" return="org.apache.hadoop.io.Text"
  26747. abstract="false" native="false" synchronized="false"
  26748. static="false" final="false" visibility="public"
  26749. deprecated="not deprecated">
  26750. </method>
  26751. <method name="next" return="boolean"
  26752. abstract="false" native="false" synchronized="true"
  26753. static="false" final="false" visibility="public"
  26754. deprecated="not deprecated">
  26755. <param name="key" type="org.apache.hadoop.io.Text"/>
  26756. <param name="value" type="org.apache.hadoop.io.Text"/>
  26757. <exception name="IOException" type="java.io.IOException"/>
  26758. <doc>
  26759. <![CDATA[Read key/value pair in a line.]]>
  26760. </doc>
  26761. </method>
  26762. <method name="getProgress" return="float"
  26763. abstract="false" native="false" synchronized="false"
  26764. static="false" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. <exception name="IOException" type="java.io.IOException"/>
  26767. </method>
  26768. <method name="getPos" return="long"
  26769. abstract="false" native="false" synchronized="true"
  26770. static="false" final="false" visibility="public"
  26771. deprecated="not deprecated">
  26772. <exception name="IOException" type="java.io.IOException"/>
  26773. </method>
  26774. <method name="close"
  26775. abstract="false" native="false" synchronized="true"
  26776. static="false" final="false" visibility="public"
  26777. deprecated="not deprecated">
  26778. <exception name="IOException" type="java.io.IOException"/>
  26779. </method>
  26780. <doc>
  26781. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  26782. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  26783. class to TextInputFormat class.]]>
  26784. </doc>
  26785. </class>
  26786. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  26787. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  26788. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;K, V&gt;"
  26789. abstract="false"
  26790. static="false" final="false" visibility="public"
  26791. deprecated="not deprecated">
  26792. <constructor name="SequenceFileInputFilter"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. </constructor>
  26796. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  26797. abstract="false" native="false" synchronized="false"
  26798. static="false" final="false" visibility="public"
  26799. deprecated="not deprecated">
  26800. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  26801. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  26802. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  26803. <exception name="IOException" type="java.io.IOException"/>
  26804. <doc>
  26805. <![CDATA[Create a record reader for the given split
  26806. @param split file split
  26807. @param job job configuration
  26808. @param reporter reporter who sends report to task tracker
  26809. @return RecordReader]]>
  26810. </doc>
  26811. </method>
  26812. <method name="setFilterClass"
  26813. abstract="false" native="false" synchronized="false"
  26814. static="true" final="false" visibility="public"
  26815. deprecated="not deprecated">
  26816. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26817. <param name="filterClass" type="java.lang.Class"/>
  26818. <doc>
  26819. <![CDATA[set the filter class
  26820. @param conf application configuration
  26821. @param filterClass filter class]]>
  26822. </doc>
  26823. </method>
  26824. <doc>
  26825. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  26826. The sample is decided by the filter class set by the job.]]>
  26827. </doc>
  26828. </class>
  26829. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  26830. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  26831. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  26832. static="true" final="false" visibility="public"
  26833. deprecated="not deprecated">
  26834. <implements name="org.apache.hadoop.conf.Configurable"/>
  26835. <method name="accept" return="boolean"
  26836. abstract="false" native="false" synchronized="false"
  26837. static="false" final="false" visibility="public"
  26838. deprecated="not deprecated">
  26839. <param name="key" type="org.apache.hadoop.io.Writable"/>
  26840. <doc>
  26841. <![CDATA[filter function
  26842. Decide if a record should be filtered or not
  26843. @param key record key
  26844. @return true if a record is accepted; return false otherwise]]>
  26845. </doc>
  26846. </method>
  26847. <doc>
  26848. <![CDATA[filter interface]]>
  26849. </doc>
  26850. </interface>
  26851. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  26852. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  26853. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  26854. abstract="true"
  26855. static="true" final="false" visibility="public"
  26856. deprecated="not deprecated">
  26857. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  26858. <constructor name="SequenceFileInputFilter.FilterBase"
  26859. static="false" final="false" visibility="public"
  26860. deprecated="not deprecated">
  26861. </constructor>
  26862. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  26863. abstract="false" native="false" synchronized="false"
  26864. static="false" final="false" visibility="public"
  26865. deprecated="not deprecated">
  26866. </method>
  26867. <doc>
  26868. <![CDATA[base calss for Filters]]>
  26869. </doc>
  26870. </class>
  26871. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  26872. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  26873. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  26874. abstract="false"
  26875. static="true" final="false" visibility="public"
  26876. deprecated="not deprecated">
  26877. <constructor name="SequenceFileInputFilter.MD5Filter"
  26878. static="false" final="false" visibility="public"
  26879. deprecated="not deprecated">
  26880. </constructor>
  26881. <method name="setFrequency"
  26882. abstract="false" native="false" synchronized="false"
  26883. static="true" final="false" visibility="public"
  26884. deprecated="not deprecated">
  26885. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26886. <param name="frequency" type="int"/>
  26887. <doc>
  26888. <![CDATA[set the filtering frequency in configuration
  26889. @param conf configuration
  26890. @param frequency filtering frequency]]>
  26891. </doc>
  26892. </method>
  26893. <method name="setConf"
  26894. abstract="false" native="false" synchronized="false"
  26895. static="false" final="false" visibility="public"
  26896. deprecated="not deprecated">
  26897. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26898. <doc>
  26899. <![CDATA[configure the filter according to configuration
  26900. @param conf configuration]]>
  26901. </doc>
  26902. </method>
  26903. <method name="accept" return="boolean"
  26904. abstract="false" native="false" synchronized="false"
  26905. static="false" final="false" visibility="public"
  26906. deprecated="not deprecated">
  26907. <param name="key" type="org.apache.hadoop.io.Writable"/>
  26908. <doc>
  26909. <![CDATA[Filtering method
  26910. If MD5(key) % frequency==0, return true; otherwise return false
  26911. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(org.apache.hadoop.io.Writable)]]>
  26912. </doc>
  26913. </method>
  26914. <field name="MD5_LEN" type="int"
  26915. transient="false" volatile="false"
  26916. static="true" final="true" visibility="public"
  26917. deprecated="not deprecated">
  26918. </field>
  26919. <doc>
  26920. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  26921. key against a filtering frequency <i>f</i>. The filtering criteria is
  26922. MD5(key) % f == 0.]]>
  26923. </doc>
  26924. </class>
  26925. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  26926. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  26927. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  26928. abstract="false"
  26929. static="true" final="false" visibility="public"
  26930. deprecated="not deprecated">
  26931. <constructor name="SequenceFileInputFilter.PercentFilter"
  26932. static="false" final="false" visibility="public"
  26933. deprecated="not deprecated">
  26934. </constructor>
  26935. <method name="setFrequency"
  26936. abstract="false" native="false" synchronized="false"
  26937. static="true" final="false" visibility="public"
  26938. deprecated="not deprecated">
  26939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26940. <param name="frequency" type="int"/>
  26941. <doc>
  26942. <![CDATA[set the frequency and stores it in conf
  26943. @param conf configuration
  26944. @param frequency filtering frequencey]]>
  26945. </doc>
  26946. </method>
  26947. <method name="setConf"
  26948. abstract="false" native="false" synchronized="false"
  26949. static="false" final="false" visibility="public"
  26950. deprecated="not deprecated">
  26951. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26952. <doc>
  26953. <![CDATA[configure the filter by checking the configuration
  26954. @param conf configuration]]>
  26955. </doc>
  26956. </method>
  26957. <method name="accept" return="boolean"
  26958. abstract="false" native="false" synchronized="false"
  26959. static="false" final="false" visibility="public"
  26960. deprecated="not deprecated">
  26961. <param name="key" type="org.apache.hadoop.io.Writable"/>
  26962. <doc>
  26963. <![CDATA[Filtering method
  26964. If record# % frequency==0, return true; otherwise return false
  26965. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(org.apache.hadoop.io.Writable)]]>
  26966. </doc>
  26967. </method>
  26968. <doc>
  26969. <![CDATA[This class returns a percentage of records
  26970. The percentage is determined by a filtering frequency <i>f</i> using
  26971. the criteria record# % f == 0.
  26972. For example, if the frequency is 10, one out of 10 records is returned.]]>
  26973. </doc>
  26974. </class>
  26975. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  26976. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  26977. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  26978. abstract="false"
  26979. static="true" final="false" visibility="public"
  26980. deprecated="not deprecated">
  26981. <constructor name="SequenceFileInputFilter.RegexFilter"
  26982. static="false" final="false" visibility="public"
  26983. deprecated="not deprecated">
  26984. </constructor>
  26985. <method name="setPattern"
  26986. abstract="false" native="false" synchronized="false"
  26987. static="true" final="false" visibility="public"
  26988. deprecated="not deprecated">
  26989. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26990. <param name="regex" type="java.lang.String"/>
  26991. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  26992. <doc>
  26993. <![CDATA[Define the filtering regex and stores it in conf
  26994. @param conf where the regex is set
  26995. @param regex regex used as a filter]]>
  26996. </doc>
  26997. </method>
  26998. <method name="setConf"
  26999. abstract="false" native="false" synchronized="false"
  27000. static="false" final="false" visibility="public"
  27001. deprecated="not deprecated">
  27002. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27003. <doc>
  27004. <![CDATA[configure the Filter by checking the configuration]]>
  27005. </doc>
  27006. </method>
  27007. <method name="accept" return="boolean"
  27008. abstract="false" native="false" synchronized="false"
  27009. static="false" final="false" visibility="public"
  27010. deprecated="not deprecated">
  27011. <param name="key" type="org.apache.hadoop.io.Writable"/>
  27012. <doc>
  27013. <![CDATA[Filtering method
  27014. If key matches the regex, return true; otherwise return false
  27015. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(org.apache.hadoop.io.Writable)]]>
  27016. </doc>
  27017. </method>
  27018. <doc>
  27019. <![CDATA[Records filter by matching key to regex]]>
  27020. </doc>
  27021. </class>
  27022. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  27023. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  27024. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  27025. abstract="false"
  27026. static="false" final="false" visibility="public"
  27027. deprecated="not deprecated">
  27028. <constructor name="SequenceFileInputFormat"
  27029. static="false" final="false" visibility="public"
  27030. deprecated="not deprecated">
  27031. </constructor>
  27032. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  27033. abstract="false" native="false" synchronized="false"
  27034. static="false" final="false" visibility="protected"
  27035. deprecated="not deprecated">
  27036. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27037. <exception name="IOException" type="java.io.IOException"/>
  27038. </method>
  27039. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  27040. abstract="false" native="false" synchronized="false"
  27041. static="false" final="false" visibility="public"
  27042. deprecated="not deprecated">
  27043. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  27044. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27045. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27046. <exception name="IOException" type="java.io.IOException"/>
  27047. </method>
  27048. <doc>
  27049. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  27050. </doc>
  27051. </class>
  27052. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  27053. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  27054. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  27055. abstract="false"
  27056. static="false" final="false" visibility="public"
  27057. deprecated="not deprecated">
  27058. <constructor name="SequenceFileOutputFormat"
  27059. static="false" final="false" visibility="public"
  27060. deprecated="not deprecated">
  27061. </constructor>
  27062. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  27063. abstract="false" native="false" synchronized="false"
  27064. static="false" final="false" visibility="public"
  27065. deprecated="not deprecated">
  27066. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27067. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27068. <param name="name" type="java.lang.String"/>
  27069. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  27070. <exception name="IOException" type="java.io.IOException"/>
  27071. </method>
  27072. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  27073. abstract="false" native="false" synchronized="false"
  27074. static="true" final="false" visibility="public"
  27075. deprecated="not deprecated">
  27076. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27077. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  27078. <exception name="IOException" type="java.io.IOException"/>
  27079. <doc>
  27080. <![CDATA[Open the output generated by this format.]]>
  27081. </doc>
  27082. </method>
  27083. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  27084. abstract="false" native="false" synchronized="false"
  27085. static="true" final="false" visibility="public"
  27086. deprecated="not deprecated">
  27087. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27088. <doc>
  27089. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  27090. @param conf the {@link JobConf}
  27091. @return the {@link CompressionType} for the output {@link SequenceFile},
  27092. defaulting to {@link CompressionType#RECORD}]]>
  27093. </doc>
  27094. </method>
  27095. <method name="setOutputCompressionType"
  27096. abstract="false" native="false" synchronized="false"
  27097. static="true" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27100. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  27101. <doc>
  27102. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  27103. @param conf the {@link JobConf} to modify
  27104. @param style the {@link CompressionType} for the output
  27105. {@link SequenceFile}]]>
  27106. </doc>
  27107. </method>
  27108. <doc>
  27109. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  27110. </doc>
  27111. </class>
  27112. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  27113. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  27114. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  27115. abstract="false"
  27116. static="false" final="false" visibility="public"
  27117. deprecated="not deprecated">
  27118. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  27119. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  27120. static="false" final="false" visibility="public"
  27121. deprecated="not deprecated">
  27122. <exception name="IOException" type="java.io.IOException"/>
  27123. </constructor>
  27124. <method name="getKeyClass" return="java.lang.Class"
  27125. abstract="false" native="false" synchronized="false"
  27126. static="false" final="false" visibility="public"
  27127. deprecated="not deprecated">
  27128. <doc>
  27129. <![CDATA[The class of key that must be passed to {@link
  27130. #next(WritableComparable,Writable)}..]]>
  27131. </doc>
  27132. </method>
  27133. <method name="getValueClass" return="java.lang.Class"
  27134. abstract="false" native="false" synchronized="false"
  27135. static="false" final="false" visibility="public"
  27136. deprecated="not deprecated">
  27137. <doc>
  27138. <![CDATA[The class of value that must be passed to {@link
  27139. #next(WritableComparable,Writable)}..]]>
  27140. </doc>
  27141. </method>
  27142. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  27143. abstract="false" native="false" synchronized="false"
  27144. static="false" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. </method>
  27147. <method name="createValue" return="V extends org.apache.hadoop.io.Writable"
  27148. abstract="false" native="false" synchronized="false"
  27149. static="false" final="false" visibility="public"
  27150. deprecated="not deprecated">
  27151. </method>
  27152. <method name="next" return="boolean"
  27153. abstract="false" native="false" synchronized="true"
  27154. static="false" final="false" visibility="public"
  27155. deprecated="not deprecated">
  27156. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  27157. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  27158. <exception name="IOException" type="java.io.IOException"/>
  27159. </method>
  27160. <method name="next" return="boolean"
  27161. abstract="false" native="false" synchronized="true"
  27162. static="false" final="false" visibility="protected"
  27163. deprecated="not deprecated">
  27164. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  27165. <exception name="IOException" type="java.io.IOException"/>
  27166. </method>
  27167. <method name="getCurrentValue"
  27168. abstract="false" native="false" synchronized="true"
  27169. static="false" final="false" visibility="protected"
  27170. deprecated="not deprecated">
  27171. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  27172. <exception name="IOException" type="java.io.IOException"/>
  27173. </method>
  27174. <method name="getProgress" return="float"
  27175. abstract="false" native="false" synchronized="false"
  27176. static="false" final="false" visibility="public"
  27177. deprecated="not deprecated">
  27178. <exception name="IOException" type="java.io.IOException"/>
  27179. <doc>
  27180. <![CDATA[Return the progress within the input split
  27181. @return 0.0 to 1.0 of the input byte range]]>
  27182. </doc>
  27183. </method>
  27184. <method name="getPos" return="long"
  27185. abstract="false" native="false" synchronized="true"
  27186. static="false" final="false" visibility="public"
  27187. deprecated="not deprecated">
  27188. <exception name="IOException" type="java.io.IOException"/>
  27189. </method>
  27190. <method name="seek"
  27191. abstract="false" native="false" synchronized="true"
  27192. static="false" final="false" visibility="protected"
  27193. deprecated="not deprecated">
  27194. <param name="pos" type="long"/>
  27195. <exception name="IOException" type="java.io.IOException"/>
  27196. </method>
  27197. <method name="close"
  27198. abstract="false" native="false" synchronized="true"
  27199. static="false" final="false" visibility="public"
  27200. deprecated="not deprecated">
  27201. <exception name="IOException" type="java.io.IOException"/>
  27202. </method>
  27203. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  27204. transient="false" volatile="false"
  27205. static="false" final="false" visibility="protected"
  27206. deprecated="not deprecated">
  27207. </field>
  27208. <doc>
  27209. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  27210. </doc>
  27211. </class>
  27212. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  27213. <!-- start class org.apache.hadoop.mapred.StatusHttpServer -->
  27214. <class name="StatusHttpServer" extends="java.lang.Object"
  27215. abstract="false"
  27216. static="false" final="false" visibility="public"
  27217. deprecated="not deprecated">
  27218. <constructor name="StatusHttpServer" type="java.lang.String, java.lang.String, int, boolean"
  27219. static="false" final="false" visibility="public"
  27220. deprecated="not deprecated">
  27221. <exception name="IOException" type="java.io.IOException"/>
  27222. <doc>
  27223. <![CDATA[Create a status server on the given port.
  27224. The jsp scripts are taken from src/webapps/<name>.
  27225. @param name The name of the server
  27226. @param port The port to use on the server
  27227. @param findPort whether the server should start at the given port and
  27228. increment by 1 until it finds a free port.]]>
  27229. </doc>
  27230. </constructor>
  27231. <method name="setAttribute"
  27232. abstract="false" native="false" synchronized="false"
  27233. static="false" final="false" visibility="public"
  27234. deprecated="not deprecated">
  27235. <param name="name" type="java.lang.String"/>
  27236. <param name="value" type="java.lang.Object"/>
  27237. <doc>
  27238. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  27239. pages as "application.getAttribute(name)".
  27240. @param name The name of the attribute
  27241. @param value The value of the attribute]]>
  27242. </doc>
  27243. </method>
  27244. <method name="addServlet"
  27245. abstract="false" native="false" synchronized="false"
  27246. static="false" final="false" visibility="public"
  27247. deprecated="not deprecated">
  27248. <param name="name" type="java.lang.String"/>
  27249. <param name="pathSpec" type="java.lang.String"/>
  27250. <param name="servletClass" type="java.lang.Class&lt;T&gt;"/>
  27251. <doc>
  27252. <![CDATA[Add a servlet in the server.
  27253. @param name The name of the servlet (can be passed as null)
  27254. @param pathSpec The path spec for the servlet
  27255. @param servletClass The servlet class]]>
  27256. </doc>
  27257. </method>
  27258. <method name="getAttribute" return="java.lang.Object"
  27259. abstract="false" native="false" synchronized="false"
  27260. static="false" final="false" visibility="public"
  27261. deprecated="not deprecated">
  27262. <param name="name" type="java.lang.String"/>
  27263. <doc>
  27264. <![CDATA[Get the value in the webapp context.
  27265. @param name The name of the attribute
  27266. @return The value of the attribute]]>
  27267. </doc>
  27268. </method>
  27269. <method name="getPort" return="int"
  27270. abstract="false" native="false" synchronized="false"
  27271. static="false" final="false" visibility="public"
  27272. deprecated="not deprecated">
  27273. <doc>
  27274. <![CDATA[Get the port that the server is on
  27275. @return the port]]>
  27276. </doc>
  27277. </method>
  27278. <method name="setThreads"
  27279. abstract="false" native="false" synchronized="false"
  27280. static="false" final="false" visibility="public"
  27281. deprecated="not deprecated">
  27282. <param name="min" type="int"/>
  27283. <param name="max" type="int"/>
  27284. </method>
  27285. <method name="addSslListener"
  27286. abstract="false" native="false" synchronized="false"
  27287. static="false" final="false" visibility="public"
  27288. deprecated="not deprecated">
  27289. <param name="addr" type="java.net.InetSocketAddress"/>
  27290. <param name="keystore" type="java.lang.String"/>
  27291. <param name="storPass" type="java.lang.String"/>
  27292. <param name="keyPass" type="java.lang.String"/>
  27293. <exception name="IOException" type="java.io.IOException"/>
  27294. <doc>
  27295. <![CDATA[Configure an ssl listener on the server.
  27296. @param addr address to listen on
  27297. @param keystore location of the keystore
  27298. @param storPass password for the keystore
  27299. @param keyPass password for the key]]>
  27300. </doc>
  27301. </method>
  27302. <method name="start"
  27303. abstract="false" native="false" synchronized="false"
  27304. static="false" final="false" visibility="public"
  27305. deprecated="not deprecated">
  27306. <exception name="IOException" type="java.io.IOException"/>
  27307. <doc>
  27308. <![CDATA[Start the server. Does not wait for the server to start.]]>
  27309. </doc>
  27310. </method>
  27311. <method name="stop"
  27312. abstract="false" native="false" synchronized="false"
  27313. static="false" final="false" visibility="public"
  27314. deprecated="not deprecated">
  27315. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  27316. <doc>
  27317. <![CDATA[stop the server]]>
  27318. </doc>
  27319. </method>
  27320. <doc>
  27321. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  27322. is to serve up status information for the server.
  27323. There are three contexts:
  27324. "/logs/" -> points to the log directory
  27325. "/static/" -> points to common static files (src/webapps/static)
  27326. "/" -> the jsp server code from (src/webapps/<name>)]]>
  27327. </doc>
  27328. </class>
  27329. <!-- end class org.apache.hadoop.mapred.StatusHttpServer -->
  27330. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  27331. <class name="StatusHttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  27332. abstract="false"
  27333. static="true" final="false" visibility="public"
  27334. deprecated="not deprecated">
  27335. <constructor name="StatusHttpServer.StackServlet"
  27336. static="false" final="false" visibility="public"
  27337. deprecated="not deprecated">
  27338. </constructor>
  27339. <method name="doGet"
  27340. abstract="false" native="false" synchronized="false"
  27341. static="false" final="false" visibility="public"
  27342. deprecated="not deprecated">
  27343. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  27344. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  27345. <exception name="ServletException" type="javax.servlet.ServletException"/>
  27346. <exception name="IOException" type="java.io.IOException"/>
  27347. </method>
  27348. <doc>
  27349. <![CDATA[A very simple servlet to serve up a text representation of the current
  27350. stack traces. It both returns the stacks to the caller and logs them.
  27351. Currently the stack traces are done sequentially rather than exactly the
  27352. same data.]]>
  27353. </doc>
  27354. </class>
  27355. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  27356. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  27357. <class name="StatusHttpServer.TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  27358. abstract="false"
  27359. static="true" final="false" visibility="public"
  27360. deprecated="not deprecated">
  27361. <constructor name="StatusHttpServer.TaskGraphServlet"
  27362. static="false" final="false" visibility="public"
  27363. deprecated="not deprecated">
  27364. </constructor>
  27365. <method name="doGet"
  27366. abstract="false" native="false" synchronized="false"
  27367. static="false" final="false" visibility="public"
  27368. deprecated="not deprecated">
  27369. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  27370. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  27371. <exception name="ServletException" type="javax.servlet.ServletException"/>
  27372. <exception name="IOException" type="java.io.IOException"/>
  27373. </method>
  27374. <field name="width" type="int"
  27375. transient="false" volatile="false"
  27376. static="true" final="true" visibility="public"
  27377. deprecated="not deprecated">
  27378. <doc>
  27379. <![CDATA[height of the graph w/o margins]]>
  27380. </doc>
  27381. </field>
  27382. <field name="height" type="int"
  27383. transient="false" volatile="false"
  27384. static="true" final="true" visibility="public"
  27385. deprecated="not deprecated">
  27386. <doc>
  27387. <![CDATA[height of the graph w/o margins]]>
  27388. </doc>
  27389. </field>
  27390. <field name="ymargin" type="int"
  27391. transient="false" volatile="false"
  27392. static="true" final="true" visibility="public"
  27393. deprecated="not deprecated">
  27394. <doc>
  27395. <![CDATA[margin space on y axis]]>
  27396. </doc>
  27397. </field>
  27398. <field name="xmargin" type="int"
  27399. transient="false" volatile="false"
  27400. static="true" final="true" visibility="public"
  27401. deprecated="not deprecated">
  27402. <doc>
  27403. <![CDATA[margin space on x axis]]>
  27404. </doc>
  27405. </field>
  27406. <doc>
  27407. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  27408. statuses]]>
  27409. </doc>
  27410. </class>
  27411. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  27412. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  27413. <class name="TaskCompletionEvent" extends="java.lang.Object"
  27414. abstract="false"
  27415. static="false" final="false" visibility="public"
  27416. deprecated="not deprecated">
  27417. <implements name="org.apache.hadoop.io.Writable"/>
  27418. <constructor name="TaskCompletionEvent"
  27419. static="false" final="false" visibility="public"
  27420. deprecated="not deprecated">
  27421. <doc>
  27422. <![CDATA[Default constructor for Writable.]]>
  27423. </doc>
  27424. </constructor>
  27425. <constructor name="TaskCompletionEvent" type="int, java.lang.String, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  27426. static="false" final="false" visibility="public"
  27427. deprecated="not deprecated">
  27428. <doc>
  27429. <![CDATA[Constructor. eventId should be created externally and incremented
  27430. per event for each job.
  27431. @param eventId event id, event id should be unique and assigned in
  27432. incrementally, starting from 0.
  27433. @param taskId task id
  27434. @param status task's status
  27435. @param taskTrackerHttp task tracker's host:port for http.]]>
  27436. </doc>
  27437. </constructor>
  27438. <method name="getEventId" return="int"
  27439. abstract="false" native="false" synchronized="false"
  27440. static="false" final="false" visibility="public"
  27441. deprecated="not deprecated">
  27442. <doc>
  27443. <![CDATA[Returns event Id.
  27444. @return event id]]>
  27445. </doc>
  27446. </method>
  27447. <method name="getTaskId" return="java.lang.String"
  27448. abstract="false" native="false" synchronized="false"
  27449. static="false" final="false" visibility="public"
  27450. deprecated="not deprecated">
  27451. <doc>
  27452. <![CDATA[Returns task id.
  27453. @return task id]]>
  27454. </doc>
  27455. </method>
  27456. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  27457. abstract="false" native="false" synchronized="false"
  27458. static="false" final="false" visibility="public"
  27459. deprecated="not deprecated">
  27460. <doc>
  27461. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  27462. @return task tracker status]]>
  27463. </doc>
  27464. </method>
  27465. <method name="getTaskTrackerHttp" return="java.lang.String"
  27466. abstract="false" native="false" synchronized="false"
  27467. static="false" final="false" visibility="public"
  27468. deprecated="not deprecated">
  27469. <doc>
  27470. <![CDATA[http location of the tasktracker where this task ran.
  27471. @return http location of tasktracker user logs]]>
  27472. </doc>
  27473. </method>
  27474. <method name="getTaskRunTime" return="int"
  27475. abstract="false" native="false" synchronized="false"
  27476. static="false" final="false" visibility="public"
  27477. deprecated="not deprecated">
  27478. <doc>
  27479. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  27480. </doc>
  27481. </method>
  27482. <method name="setTaskRunTime"
  27483. abstract="false" native="false" synchronized="false"
  27484. static="false" final="false" visibility="public"
  27485. deprecated="not deprecated">
  27486. <param name="taskCompletionTime" type="int"/>
  27487. <doc>
  27488. <![CDATA[Set the task completion time
  27489. @param taskCompletionTime time (in millisec) the task took to complete]]>
  27490. </doc>
  27491. </method>
  27492. <method name="setEventId"
  27493. abstract="false" native="false" synchronized="false"
  27494. static="false" final="false" visibility="public"
  27495. deprecated="not deprecated">
  27496. <param name="eventId" type="int"/>
  27497. <doc>
  27498. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  27499. @param eventId]]>
  27500. </doc>
  27501. </method>
  27502. <method name="setTaskId"
  27503. abstract="false" native="false" synchronized="false"
  27504. static="false" final="false" visibility="public"
  27505. deprecated="not deprecated">
  27506. <param name="taskId" type="java.lang.String"/>
  27507. <doc>
  27508. <![CDATA[Sets task id.
  27509. @param taskId]]>
  27510. </doc>
  27511. </method>
  27512. <method name="setTaskStatus"
  27513. abstract="false" native="false" synchronized="false"
  27514. static="false" final="false" visibility="public"
  27515. deprecated="not deprecated">
  27516. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  27517. <doc>
  27518. <![CDATA[Set task status.
  27519. @param status]]>
  27520. </doc>
  27521. </method>
  27522. <method name="setTaskTrackerHttp"
  27523. abstract="false" native="false" synchronized="false"
  27524. static="false" final="false" visibility="public"
  27525. deprecated="not deprecated">
  27526. <param name="taskTrackerHttp" type="java.lang.String"/>
  27527. <doc>
  27528. <![CDATA[Set task tracker http location.
  27529. @param taskTrackerHttp]]>
  27530. </doc>
  27531. </method>
  27532. <method name="toString" return="java.lang.String"
  27533. abstract="false" native="false" synchronized="false"
  27534. static="false" final="false" visibility="public"
  27535. deprecated="not deprecated">
  27536. </method>
  27537. <method name="isMapTask" return="boolean"
  27538. abstract="false" native="false" synchronized="false"
  27539. static="false" final="false" visibility="public"
  27540. deprecated="not deprecated">
  27541. </method>
  27542. <method name="idWithinJob" return="int"
  27543. abstract="false" native="false" synchronized="false"
  27544. static="false" final="false" visibility="public"
  27545. deprecated="not deprecated">
  27546. </method>
  27547. <method name="write"
  27548. abstract="false" native="false" synchronized="false"
  27549. static="false" final="false" visibility="public"
  27550. deprecated="not deprecated">
  27551. <param name="out" type="java.io.DataOutput"/>
  27552. <exception name="IOException" type="java.io.IOException"/>
  27553. </method>
  27554. <method name="readFields"
  27555. abstract="false" native="false" synchronized="false"
  27556. static="false" final="false" visibility="public"
  27557. deprecated="not deprecated">
  27558. <param name="in" type="java.io.DataInput"/>
  27559. <exception name="IOException" type="java.io.IOException"/>
  27560. </method>
  27561. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  27562. transient="false" volatile="false"
  27563. static="true" final="true" visibility="public"
  27564. deprecated="not deprecated">
  27565. </field>
  27566. <doc>
  27567. <![CDATA[This is used to track task completion events on
  27568. job tracker.]]>
  27569. </doc>
  27570. </class>
  27571. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  27572. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  27573. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskCompletionEvent.Status&gt;"
  27574. abstract="false"
  27575. static="true" final="true" visibility="public"
  27576. deprecated="not deprecated">
  27577. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  27578. abstract="false" native="false" synchronized="false"
  27579. static="true" final="false" visibility="public"
  27580. deprecated="not deprecated">
  27581. </method>
  27582. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  27583. abstract="false" native="false" synchronized="false"
  27584. static="true" final="false" visibility="public"
  27585. deprecated="not deprecated">
  27586. <param name="name" type="java.lang.String"/>
  27587. </method>
  27588. </class>
  27589. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  27590. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  27591. <class name="TaskLog" extends="java.lang.Object"
  27592. abstract="false"
  27593. static="false" final="false" visibility="public"
  27594. deprecated="not deprecated">
  27595. <constructor name="TaskLog"
  27596. static="false" final="false" visibility="public"
  27597. deprecated="not deprecated">
  27598. </constructor>
  27599. <method name="getTaskLogFile" return="java.io.File"
  27600. abstract="false" native="false" synchronized="false"
  27601. static="true" final="false" visibility="public"
  27602. deprecated="not deprecated">
  27603. <param name="taskid" type="java.lang.String"/>
  27604. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  27605. </method>
  27606. <method name="cleanup"
  27607. abstract="false" native="false" synchronized="true"
  27608. static="true" final="false" visibility="public"
  27609. deprecated="not deprecated">
  27610. <param name="logsRetainHours" type="int"/>
  27611. <exception name="IOException" type="java.io.IOException"/>
  27612. <doc>
  27613. <![CDATA[Purge old user logs.
  27614. @throws IOException]]>
  27615. </doc>
  27616. </method>
  27617. <method name="getTaskLogLength" return="long"
  27618. abstract="false" native="false" synchronized="false"
  27619. static="true" final="false" visibility="public"
  27620. deprecated="not deprecated">
  27621. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27622. <doc>
  27623. <![CDATA[Get the desired maximum length of task's logs.
  27624. @param conf the job to look in
  27625. @return the number of bytes to cap the log files at]]>
  27626. </doc>
  27627. </method>
  27628. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  27629. abstract="false" native="false" synchronized="false"
  27630. static="true" final="false" visibility="public"
  27631. deprecated="not deprecated">
  27632. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  27633. <param name="stdoutFilename" type="java.io.File"/>
  27634. <param name="stderrFilename" type="java.io.File"/>
  27635. <param name="tailLength" type="long"/>
  27636. <exception name="IOException" type="java.io.IOException"/>
  27637. <doc>
  27638. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  27639. If the tailLength is 0, the entire output will be saved.
  27640. @param cmd The command and the arguments that should be run
  27641. @param stdoutFilename The filename that stdout should be saved to
  27642. @param stderrFilename The filename that stderr should be saved to
  27643. @param tailLength The length of the tail to be saved.
  27644. @return the modified command that should be run]]>
  27645. </doc>
  27646. </method>
  27647. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  27648. abstract="false" native="false" synchronized="false"
  27649. static="true" final="false" visibility="public"
  27650. deprecated="not deprecated">
  27651. <param name="setup" type="java.util.List&lt;java.lang.String&gt;"/>
  27652. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  27653. <param name="stdoutFilename" type="java.io.File"/>
  27654. <param name="stderrFilename" type="java.io.File"/>
  27655. <param name="tailLength" type="long"/>
  27656. <exception name="IOException" type="java.io.IOException"/>
  27657. <doc>
  27658. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  27659. Setup commands such as setting memory limit can be passed which
  27660. will be executed before exec.
  27661. If the tailLength is 0, the entire output will be saved.
  27662. @param setup The setup commands for the execed process.
  27663. @param cmd The command and the arguments that should be run
  27664. @param stdoutFilename The filename that stdout should be saved to
  27665. @param stderrFilename The filename that stderr should be saved to
  27666. @param tailLength The length of the tail to be saved.
  27667. @return the modified command that should be run]]>
  27668. </doc>
  27669. </method>
  27670. <method name="addCommand" return="java.lang.String"
  27671. abstract="false" native="false" synchronized="false"
  27672. static="true" final="false" visibility="public"
  27673. deprecated="not deprecated">
  27674. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  27675. <param name="isExecutable" type="boolean"/>
  27676. <exception name="IOException" type="java.io.IOException"/>
  27677. <doc>
  27678. <![CDATA[Add quotes to each of the command strings and
  27679. return as a single string
  27680. @param cmd The command to be quoted
  27681. @param isExecutable makes shell path if the first
  27682. argument is executable
  27683. @return returns The quoted string.
  27684. @throws IOException]]>
  27685. </doc>
  27686. </method>
  27687. <method name="captureDebugOut" return="java.util.List&lt;java.lang.String&gt;"
  27688. abstract="false" native="false" synchronized="false"
  27689. static="true" final="false" visibility="public"
  27690. deprecated="not deprecated">
  27691. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  27692. <param name="debugoutFilename" type="java.io.File"/>
  27693. <exception name="IOException" type="java.io.IOException"/>
  27694. <doc>
  27695. <![CDATA[Wrap a command in a shell to capture debug script's
  27696. stdout and stderr to debugout.
  27697. @param cmd The command and the arguments that should be run
  27698. @param debugoutFilename The filename that stdout and stderr
  27699. should be saved to.
  27700. @return the modified command that should be run
  27701. @throws IOException]]>
  27702. </doc>
  27703. </method>
  27704. <doc>
  27705. <![CDATA[A simple logger to handle the task-specific user logs.
  27706. This class uses the system property <code>hadoop.log.dir</code>.]]>
  27707. </doc>
  27708. </class>
  27709. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  27710. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  27711. <class name="TaskLog.LogName" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskLog.LogName&gt;"
  27712. abstract="false"
  27713. static="true" final="true" visibility="public"
  27714. deprecated="not deprecated">
  27715. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  27716. abstract="false" native="false" synchronized="false"
  27717. static="true" final="false" visibility="public"
  27718. deprecated="not deprecated">
  27719. </method>
  27720. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  27721. abstract="false" native="false" synchronized="false"
  27722. static="true" final="false" visibility="public"
  27723. deprecated="not deprecated">
  27724. <param name="name" type="java.lang.String"/>
  27725. </method>
  27726. <method name="toString" return="java.lang.String"
  27727. abstract="false" native="false" synchronized="false"
  27728. static="false" final="false" visibility="public"
  27729. deprecated="not deprecated">
  27730. </method>
  27731. <doc>
  27732. <![CDATA[The filter for userlogs.]]>
  27733. </doc>
  27734. </class>
  27735. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  27736. <!-- start class org.apache.hadoop.mapred.TaskLog.Reader -->
  27737. <class name="TaskLog.Reader" extends="java.io.InputStream"
  27738. abstract="false"
  27739. static="true" final="false" visibility="public"
  27740. deprecated="not deprecated">
  27741. <constructor name="TaskLog.Reader" type="java.lang.String, org.apache.hadoop.mapred.TaskLog.LogName, long, long"
  27742. static="false" final="false" visibility="public"
  27743. deprecated="not deprecated">
  27744. <exception name="IOException" type="java.io.IOException"/>
  27745. <doc>
  27746. <![CDATA[Read a log file from start to end positions. The offsets may be negative,
  27747. in which case they are relative to the end of the file. For example,
  27748. Reader(taskid, kind, 0, -1) is the entire file and
  27749. Reader(taskid, kind, -4197, -1) is the last 4196 bytes.
  27750. @param taskid the id of the task to read the log file for
  27751. @param kind the kind of log to read
  27752. @param start the offset to read from (negative is relative to tail)
  27753. @param end the offset to read upto (negative is relative to tail)
  27754. @throws IOException]]>
  27755. </doc>
  27756. </constructor>
  27757. <method name="read" return="int"
  27758. abstract="false" native="false" synchronized="false"
  27759. static="false" final="false" visibility="public"
  27760. deprecated="not deprecated">
  27761. <exception name="IOException" type="java.io.IOException"/>
  27762. </method>
  27763. <method name="read" return="int"
  27764. abstract="false" native="false" synchronized="false"
  27765. static="false" final="false" visibility="public"
  27766. deprecated="not deprecated">
  27767. <param name="buffer" type="byte[]"/>
  27768. <param name="offset" type="int"/>
  27769. <param name="length" type="int"/>
  27770. <exception name="IOException" type="java.io.IOException"/>
  27771. </method>
  27772. <method name="available" return="int"
  27773. abstract="false" native="false" synchronized="false"
  27774. static="false" final="false" visibility="public"
  27775. deprecated="not deprecated">
  27776. <exception name="IOException" type="java.io.IOException"/>
  27777. </method>
  27778. <method name="close"
  27779. abstract="false" native="false" synchronized="false"
  27780. static="false" final="false" visibility="public"
  27781. deprecated="not deprecated">
  27782. <exception name="IOException" type="java.io.IOException"/>
  27783. </method>
  27784. </class>
  27785. <!-- end class org.apache.hadoop.mapred.TaskLog.Reader -->
  27786. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  27787. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  27788. abstract="false"
  27789. static="false" final="false" visibility="public"
  27790. deprecated="not deprecated">
  27791. <constructor name="TaskLogAppender"
  27792. static="false" final="false" visibility="public"
  27793. deprecated="not deprecated">
  27794. </constructor>
  27795. <method name="activateOptions"
  27796. abstract="false" native="false" synchronized="false"
  27797. static="false" final="false" visibility="public"
  27798. deprecated="not deprecated">
  27799. </method>
  27800. <method name="append"
  27801. abstract="false" native="false" synchronized="false"
  27802. static="false" final="false" visibility="public"
  27803. deprecated="not deprecated">
  27804. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  27805. </method>
  27806. <method name="close"
  27807. abstract="false" native="false" synchronized="true"
  27808. static="false" final="false" visibility="public"
  27809. deprecated="not deprecated">
  27810. </method>
  27811. <method name="getTaskId" return="java.lang.String"
  27812. abstract="false" native="false" synchronized="false"
  27813. static="false" final="false" visibility="public"
  27814. deprecated="not deprecated">
  27815. <doc>
  27816. <![CDATA[Getter/Setter methods for log4j.]]>
  27817. </doc>
  27818. </method>
  27819. <method name="setTaskId"
  27820. abstract="false" native="false" synchronized="false"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. <param name="taskId" type="java.lang.String"/>
  27824. </method>
  27825. <method name="getTotalLogFileSize" return="long"
  27826. abstract="false" native="false" synchronized="false"
  27827. static="false" final="false" visibility="public"
  27828. deprecated="not deprecated">
  27829. </method>
  27830. <method name="setTotalLogFileSize"
  27831. abstract="false" native="false" synchronized="false"
  27832. static="false" final="false" visibility="public"
  27833. deprecated="not deprecated">
  27834. <param name="logSize" type="long"/>
  27835. </method>
  27836. <doc>
  27837. <![CDATA[A simple log4j-appender for the task child's
  27838. map-reduce system logs.]]>
  27839. </doc>
  27840. </class>
  27841. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  27842. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  27843. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  27844. abstract="false"
  27845. static="false" final="false" visibility="public"
  27846. deprecated="not deprecated">
  27847. <constructor name="TaskLogServlet"
  27848. static="false" final="false" visibility="public"
  27849. deprecated="not deprecated">
  27850. </constructor>
  27851. <method name="doGet"
  27852. abstract="false" native="false" synchronized="false"
  27853. static="false" final="false" visibility="public"
  27854. deprecated="not deprecated">
  27855. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  27856. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  27857. <exception name="ServletException" type="javax.servlet.ServletException"/>
  27858. <exception name="IOException" type="java.io.IOException"/>
  27859. <doc>
  27860. <![CDATA[Get the logs via http.]]>
  27861. </doc>
  27862. </method>
  27863. <doc>
  27864. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  27865. </doc>
  27866. </class>
  27867. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  27868. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  27869. <class name="TaskReport" extends="java.lang.Object"
  27870. abstract="false"
  27871. static="false" final="false" visibility="public"
  27872. deprecated="not deprecated">
  27873. <implements name="org.apache.hadoop.io.Writable"/>
  27874. <constructor name="TaskReport"
  27875. static="false" final="false" visibility="public"
  27876. deprecated="not deprecated">
  27877. </constructor>
  27878. <method name="getTaskId" return="java.lang.String"
  27879. abstract="false" native="false" synchronized="false"
  27880. static="false" final="false" visibility="public"
  27881. deprecated="not deprecated">
  27882. <doc>
  27883. <![CDATA[The id of the task.]]>
  27884. </doc>
  27885. </method>
  27886. <method name="getProgress" return="float"
  27887. abstract="false" native="false" synchronized="false"
  27888. static="false" final="false" visibility="public"
  27889. deprecated="not deprecated">
  27890. <doc>
  27891. <![CDATA[The amount completed, between zero and one.]]>
  27892. </doc>
  27893. </method>
  27894. <method name="getState" return="java.lang.String"
  27895. abstract="false" native="false" synchronized="false"
  27896. static="false" final="false" visibility="public"
  27897. deprecated="not deprecated">
  27898. <doc>
  27899. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  27900. </doc>
  27901. </method>
  27902. <method name="getDiagnostics" return="java.lang.String[]"
  27903. abstract="false" native="false" synchronized="false"
  27904. static="false" final="false" visibility="public"
  27905. deprecated="not deprecated">
  27906. <doc>
  27907. <![CDATA[A list of error messages.]]>
  27908. </doc>
  27909. </method>
  27910. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  27911. abstract="false" native="false" synchronized="false"
  27912. static="false" final="false" visibility="public"
  27913. deprecated="not deprecated">
  27914. <doc>
  27915. <![CDATA[A table of counters.]]>
  27916. </doc>
  27917. </method>
  27918. <method name="getFinishTime" return="long"
  27919. abstract="false" native="false" synchronized="false"
  27920. static="false" final="false" visibility="public"
  27921. deprecated="not deprecated">
  27922. <doc>
  27923. <![CDATA[Get finish time of task.
  27924. @return 0, if finish time was not set else returns finish time.]]>
  27925. </doc>
  27926. </method>
  27927. <method name="getStartTime" return="long"
  27928. abstract="false" native="false" synchronized="false"
  27929. static="false" final="false" visibility="public"
  27930. deprecated="not deprecated">
  27931. <doc>
  27932. <![CDATA[Get start time of task.
  27933. @return 0 if start time was not set, else start time.]]>
  27934. </doc>
  27935. </method>
  27936. <method name="write"
  27937. abstract="false" native="false" synchronized="false"
  27938. static="false" final="false" visibility="public"
  27939. deprecated="not deprecated">
  27940. <param name="out" type="java.io.DataOutput"/>
  27941. <exception name="IOException" type="java.io.IOException"/>
  27942. </method>
  27943. <method name="readFields"
  27944. abstract="false" native="false" synchronized="false"
  27945. static="false" final="false" visibility="public"
  27946. deprecated="not deprecated">
  27947. <param name="in" type="java.io.DataInput"/>
  27948. <exception name="IOException" type="java.io.IOException"/>
  27949. </method>
  27950. <doc>
  27951. <![CDATA[A report on the state of a task.]]>
  27952. </doc>
  27953. </class>
  27954. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  27955. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  27956. <class name="TaskTracker" extends="java.lang.Object"
  27957. abstract="false"
  27958. static="false" final="false" visibility="public"
  27959. deprecated="not deprecated">
  27960. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  27961. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  27962. <implements name="java.lang.Runnable"/>
  27963. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  27964. static="false" final="false" visibility="public"
  27965. deprecated="not deprecated">
  27966. <exception name="IOException" type="java.io.IOException"/>
  27967. <doc>
  27968. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  27969. </doc>
  27970. </constructor>
  27971. <method name="getTaskTrackerMetrics" return="org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics"
  27972. abstract="false" native="false" synchronized="false"
  27973. static="false" final="false" visibility="public"
  27974. deprecated="not deprecated">
  27975. </method>
  27976. <method name="getProtocolVersion" return="long"
  27977. abstract="false" native="false" synchronized="false"
  27978. static="false" final="false" visibility="public"
  27979. deprecated="not deprecated">
  27980. <param name="protocol" type="java.lang.String"/>
  27981. <param name="clientVersion" type="long"/>
  27982. <exception name="IOException" type="java.io.IOException"/>
  27983. </method>
  27984. <method name="cleanupStorage"
  27985. abstract="false" native="false" synchronized="false"
  27986. static="false" final="false" visibility="public"
  27987. deprecated="not deprecated">
  27988. <exception name="IOException" type="java.io.IOException"/>
  27989. <doc>
  27990. <![CDATA[Removes all contents of temporary storage. Called upon
  27991. startup, to remove any leftovers from previous run.]]>
  27992. </doc>
  27993. </method>
  27994. <method name="shutdown"
  27995. abstract="false" native="false" synchronized="true"
  27996. static="false" final="false" visibility="public"
  27997. deprecated="not deprecated">
  27998. <exception name="IOException" type="java.io.IOException"/>
  27999. </method>
  28000. <method name="close"
  28001. abstract="false" native="false" synchronized="true"
  28002. static="false" final="false" visibility="public"
  28003. deprecated="not deprecated">
  28004. <exception name="IOException" type="java.io.IOException"/>
  28005. <doc>
  28006. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  28007. any running tasks or threads, and cleanup disk space. A new TaskTracker
  28008. within the same process space might be restarted, so everything must be
  28009. clean.]]>
  28010. </doc>
  28011. </method>
  28012. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  28013. abstract="false" native="false" synchronized="false"
  28014. static="false" final="false" visibility="public"
  28015. deprecated="not deprecated">
  28016. <doc>
  28017. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  28018. for locating remote files.]]>
  28019. </doc>
  28020. </method>
  28021. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  28022. abstract="false" native="false" synchronized="true"
  28023. static="false" final="false" visibility="public"
  28024. deprecated="not deprecated">
  28025. <doc>
  28026. <![CDATA[Return the port at which the tasktracker bound to]]>
  28027. </doc>
  28028. </method>
  28029. <method name="run"
  28030. abstract="false" native="false" synchronized="false"
  28031. static="false" final="false" visibility="public"
  28032. deprecated="not deprecated">
  28033. <doc>
  28034. <![CDATA[The server retry loop.
  28035. This while-loop attempts to connect to the JobTracker. It only
  28036. loops when the old TaskTracker has gone bad (its state is
  28037. stale somehow) and we need to reinitialize everything.]]>
  28038. </doc>
  28039. </method>
  28040. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  28041. abstract="false" native="false" synchronized="true"
  28042. static="false" final="false" visibility="public"
  28043. deprecated="not deprecated">
  28044. <param name="taskid" type="java.lang.String"/>
  28045. <exception name="IOException" type="java.io.IOException"/>
  28046. <doc>
  28047. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  28048. </doc>
  28049. </method>
  28050. <method name="statusUpdate" return="boolean"
  28051. abstract="false" native="false" synchronized="true"
  28052. static="false" final="false" visibility="public"
  28053. deprecated="not deprecated">
  28054. <param name="taskid" type="java.lang.String"/>
  28055. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  28056. <exception name="IOException" type="java.io.IOException"/>
  28057. <doc>
  28058. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  28059. </doc>
  28060. </method>
  28061. <method name="reportDiagnosticInfo"
  28062. abstract="false" native="false" synchronized="true"
  28063. static="false" final="false" visibility="public"
  28064. deprecated="not deprecated">
  28065. <param name="taskid" type="java.lang.String"/>
  28066. <param name="info" type="java.lang.String"/>
  28067. <exception name="IOException" type="java.io.IOException"/>
  28068. <doc>
  28069. <![CDATA[Called when the task dies before completion, and we want to report back
  28070. diagnostic info]]>
  28071. </doc>
  28072. </method>
  28073. <method name="ping" return="boolean"
  28074. abstract="false" native="false" synchronized="true"
  28075. static="false" final="false" visibility="public"
  28076. deprecated="not deprecated">
  28077. <param name="taskid" type="java.lang.String"/>
  28078. <exception name="IOException" type="java.io.IOException"/>
  28079. <doc>
  28080. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  28081. </doc>
  28082. </method>
  28083. <method name="done"
  28084. abstract="false" native="false" synchronized="true"
  28085. static="false" final="false" visibility="public"
  28086. deprecated="not deprecated">
  28087. <param name="taskid" type="java.lang.String"/>
  28088. <param name="shouldPromote" type="boolean"/>
  28089. <exception name="IOException" type="java.io.IOException"/>
  28090. <doc>
  28091. <![CDATA[The task is done.]]>
  28092. </doc>
  28093. </method>
  28094. <method name="shuffleError"
  28095. abstract="false" native="false" synchronized="true"
  28096. static="false" final="false" visibility="public"
  28097. deprecated="not deprecated">
  28098. <param name="taskId" type="java.lang.String"/>
  28099. <param name="message" type="java.lang.String"/>
  28100. <exception name="IOException" type="java.io.IOException"/>
  28101. <doc>
  28102. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  28103. </doc>
  28104. </method>
  28105. <method name="fsError"
  28106. abstract="false" native="false" synchronized="true"
  28107. static="false" final="false" visibility="public"
  28108. deprecated="not deprecated">
  28109. <param name="taskId" type="java.lang.String"/>
  28110. <param name="message" type="java.lang.String"/>
  28111. <exception name="IOException" type="java.io.IOException"/>
  28112. <doc>
  28113. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  28114. </doc>
  28115. </method>
  28116. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  28117. abstract="false" native="false" synchronized="false"
  28118. static="false" final="false" visibility="public"
  28119. deprecated="not deprecated">
  28120. <param name="jobId" type="java.lang.String"/>
  28121. <param name="fromEventId" type="int"/>
  28122. <param name="maxLocs" type="int"/>
  28123. <exception name="IOException" type="java.io.IOException"/>
  28124. </method>
  28125. <method name="mapOutputLost"
  28126. abstract="false" native="false" synchronized="true"
  28127. static="false" final="false" visibility="public"
  28128. deprecated="not deprecated">
  28129. <param name="taskid" type="java.lang.String"/>
  28130. <param name="errorMsg" type="java.lang.String"/>
  28131. <exception name="IOException" type="java.io.IOException"/>
  28132. <doc>
  28133. <![CDATA[A completed map task's output has been lost.]]>
  28134. </doc>
  28135. </method>
  28136. <method name="isIdle" return="boolean"
  28137. abstract="false" native="false" synchronized="true"
  28138. static="false" final="false" visibility="public"
  28139. deprecated="not deprecated">
  28140. <doc>
  28141. <![CDATA[Is this task tracker idle?
  28142. @return has this task tracker finished and cleaned up all of its tasks?]]>
  28143. </doc>
  28144. </method>
  28145. <method name="main"
  28146. abstract="false" native="false" synchronized="false"
  28147. static="true" final="false" visibility="public"
  28148. deprecated="not deprecated">
  28149. <param name="argv" type="java.lang.String[]"/>
  28150. <exception name="Exception" type="java.lang.Exception"/>
  28151. <doc>
  28152. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  28153. </doc>
  28154. </method>
  28155. <field name="LOG" type="org.apache.commons.logging.Log"
  28156. transient="false" volatile="false"
  28157. static="true" final="true" visibility="public"
  28158. deprecated="not deprecated">
  28159. </field>
  28160. <doc>
  28161. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  28162. in a networked environment. It contacts the JobTracker
  28163. for Task assignments and reporting results.]]>
  28164. </doc>
  28165. </class>
  28166. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  28167. <!-- start class org.apache.hadoop.mapred.TaskTracker.Child -->
  28168. <class name="TaskTracker.Child" extends="java.lang.Object"
  28169. abstract="false"
  28170. static="true" final="false" visibility="public"
  28171. deprecated="not deprecated">
  28172. <constructor name="TaskTracker.Child"
  28173. static="false" final="false" visibility="public"
  28174. deprecated="not deprecated">
  28175. </constructor>
  28176. <method name="main"
  28177. abstract="false" native="false" synchronized="false"
  28178. static="true" final="false" visibility="public"
  28179. deprecated="not deprecated">
  28180. <param name="args" type="java.lang.String[]"/>
  28181. <exception name="Throwable" type="java.lang.Throwable"/>
  28182. </method>
  28183. <doc>
  28184. <![CDATA[The main() for child processes.]]>
  28185. </doc>
  28186. </class>
  28187. <!-- end class org.apache.hadoop.mapred.TaskTracker.Child -->
  28188. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  28189. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  28190. abstract="false"
  28191. static="true" final="false" visibility="public"
  28192. deprecated="not deprecated">
  28193. <constructor name="TaskTracker.MapOutputServlet"
  28194. static="false" final="false" visibility="public"
  28195. deprecated="not deprecated">
  28196. </constructor>
  28197. <method name="doGet"
  28198. abstract="false" native="false" synchronized="false"
  28199. static="false" final="false" visibility="public"
  28200. deprecated="not deprecated">
  28201. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  28202. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  28203. <exception name="ServletException" type="javax.servlet.ServletException"/>
  28204. <exception name="IOException" type="java.io.IOException"/>
  28205. </method>
  28206. <doc>
  28207. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  28208. to other nodes.]]>
  28209. </doc>
  28210. </class>
  28211. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  28212. <!-- start class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  28213. <class name="TaskTracker.TaskTrackerMetrics" extends="java.lang.Object"
  28214. abstract="false"
  28215. static="false" final="false" visibility="public"
  28216. deprecated="not deprecated">
  28217. <implements name="org.apache.hadoop.metrics.Updater"/>
  28218. <method name="doUpdates"
  28219. abstract="false" native="false" synchronized="false"
  28220. static="false" final="false" visibility="public"
  28221. deprecated="not deprecated">
  28222. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  28223. <doc>
  28224. <![CDATA[Since this object is a registered updater, this method will be called
  28225. periodically, e.g. every 5 seconds.]]>
  28226. </doc>
  28227. </method>
  28228. </class>
  28229. <!-- end class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  28230. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  28231. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  28232. abstract="false"
  28233. static="false" final="false" visibility="public"
  28234. deprecated="not deprecated">
  28235. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  28236. <constructor name="TextInputFormat"
  28237. static="false" final="false" visibility="public"
  28238. deprecated="not deprecated">
  28239. </constructor>
  28240. <method name="configure"
  28241. abstract="false" native="false" synchronized="false"
  28242. static="false" final="false" visibility="public"
  28243. deprecated="not deprecated">
  28244. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28245. </method>
  28246. <method name="isSplitable" return="boolean"
  28247. abstract="false" native="false" synchronized="false"
  28248. static="false" final="false" visibility="protected"
  28249. deprecated="not deprecated">
  28250. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  28251. <param name="file" type="org.apache.hadoop.fs.Path"/>
  28252. </method>
  28253. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  28254. abstract="false" native="false" synchronized="false"
  28255. static="false" final="false" visibility="public"
  28256. deprecated="not deprecated">
  28257. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  28258. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28259. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28260. <exception name="IOException" type="java.io.IOException"/>
  28261. </method>
  28262. <doc>
  28263. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  28264. Either linefeed or carriage-return are used to signal end of line. Keys are
  28265. the position in the file, and values are the line of text..]]>
  28266. </doc>
  28267. </class>
  28268. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  28269. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  28270. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  28271. abstract="false"
  28272. static="false" final="false" visibility="public"
  28273. deprecated="not deprecated">
  28274. <constructor name="TextOutputFormat"
  28275. static="false" final="false" visibility="public"
  28276. deprecated="not deprecated">
  28277. </constructor>
  28278. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  28279. abstract="false" native="false" synchronized="false"
  28280. static="false" final="false" visibility="public"
  28281. deprecated="not deprecated">
  28282. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  28283. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28284. <param name="name" type="java.lang.String"/>
  28285. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  28286. <exception name="IOException" type="java.io.IOException"/>
  28287. </method>
  28288. <doc>
  28289. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  28290. </doc>
  28291. </class>
  28292. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  28293. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  28294. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  28295. abstract="false"
  28296. static="true" final="false" visibility="protected"
  28297. deprecated="not deprecated">
  28298. <implements name="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"/>
  28299. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  28300. static="false" final="false" visibility="public"
  28301. deprecated="not deprecated">
  28302. </constructor>
  28303. <method name="write"
  28304. abstract="false" native="false" synchronized="true"
  28305. static="false" final="false" visibility="public"
  28306. deprecated="not deprecated">
  28307. <param name="key" type="K"/>
  28308. <param name="value" type="V"/>
  28309. <exception name="IOException" type="java.io.IOException"/>
  28310. </method>
  28311. <method name="close"
  28312. abstract="false" native="false" synchronized="true"
  28313. static="false" final="false" visibility="public"
  28314. deprecated="not deprecated">
  28315. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28316. <exception name="IOException" type="java.io.IOException"/>
  28317. </method>
  28318. </class>
  28319. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  28320. <doc>
  28321. <![CDATA[<p>A software framework for easily writing applications which process vast
  28322. amounts of data (multi-terabyte data-sets) parallelly on large clusters
  28323. (thousands of nodes) built of commodity hardware in a reliable, fault-tolerant
  28324. manner.</p>
  28325. <p>A Map-Reduce <i>job</i> usually splits the input data-set into independent
  28326. chunks which processed by <i>map</i> tasks in completely parallel manner,
  28327. followed by <i>reduce</i> tasks which aggregating their output. Typically both
  28328. the input and the output of the job are stored in a
  28329. {@link org.apache.hadoop.fs.FileSystem}. The framework takes care of monitoring
  28330. tasks and re-executing failed ones. Since, usually, the compute nodes and the
  28331. storage nodes are the same i.e. Hadoop's Map-Reduce framework and Distributed
  28332. FileSystem are running on the same set of nodes, tasks are effectively scheduled
  28333. on the nodes where data is already present, resulting in very high aggregate
  28334. bandwidth across the cluster.</p>
  28335. <p>The Map-Reduce framework operates exclusively on <tt>&lt;key, value&gt;</tt>
  28336. pairs i.e. the input to the job is viewed as a set of <tt>&lt;key, value&gt;</tt>
  28337. pairs and the output as another, possibly different, set of
  28338. <tt>&lt;key, value&gt;</tt> pairs. The <tt>key</tt>s and <tt>value</tt>s have to
  28339. be serializable as {@link org.apache.hadoop.io.Writable}s and additionally the
  28340. <tt>key</tt>s have to be {@link org.apache.hadoop.io.WritableComparable}s in
  28341. order to facilitate grouping by the framework.</p>
  28342. <p>Data flow:</p>
  28343. <pre>
  28344. (input)
  28345. <tt>&lt;k1, v1&gt;</tt>
  28346. |
  28347. V
  28348. <b>map</b>
  28349. |
  28350. V
  28351. <tt>&lt;k2, v2&gt;</tt>
  28352. |
  28353. V
  28354. <b>combine</b>
  28355. |
  28356. V
  28357. <tt>&lt;k2, v2&gt;</tt>
  28358. |
  28359. V
  28360. <b>reduce</b>
  28361. |
  28362. V
  28363. <tt>&lt;k3, v3&gt;</tt>
  28364. (output)
  28365. </pre>
  28366. <p>Applications typically implement
  28367. {@link org.apache.hadoop.mapred.Mapper#map(Object, Object, OutputCollector, Reporter)}
  28368. and
  28369. {@link org.apache.hadoop.mapred.Reducer#reduce(Object, Iterator, OutputCollector, Reporter)}
  28370. methods. The application-writer also specifies various facets of the job such
  28371. as input and output locations, the <tt>Partitioner</tt>, <tt>InputFormat</tt>
  28372. &amp; <tt>OutputFormat</tt> implementations to be used etc. as
  28373. a {@link org.apache.hadoop.mapred.JobConf}. The client program,
  28374. {@link org.apache.hadoop.mapred.JobClient}, then submits the job to the framework
  28375. and optionally monitors it.</p>
  28376. <p>The framework spawns one map task per
  28377. {@link org.apache.hadoop.mapred.InputSplit} generated by the
  28378. {@link org.apache.hadoop.mapred.InputFormat} of the job and calls
  28379. {@link org.apache.hadoop.mapred.Mapper#map(Object, Object, OutputCollector, Reporter)}
  28380. with each &lt;key, value&gt; pair read by the
  28381. {@link org.apache.hadoop.mapred.RecordReader} from the <tt>InputSplit</tt> for
  28382. the task. The intermediate outputs of the maps are then grouped by <tt>key</tt>s
  28383. and optionally aggregated by <i>combiner</i>. The key space of intermediate
  28384. outputs are paritioned by the {@link org.apache.hadoop.mapred.Partitioner}, where
  28385. the number of partitions is exactly the number of reduce tasks for the job.</p>
  28386. <p>The reduce tasks fetch the sorted intermediate outputs of the maps, via http,
  28387. merge the &lt;key, value&gt; pairs and call
  28388. {@link org.apache.hadoop.mapred.Reducer#reduce(Object, Iterator, OutputCollector, Reporter)}
  28389. for each &lt;key, list of values&gt; pair. The output of the reduce tasks' is
  28390. stored on the <tt>FileSystem</tt> by the
  28391. {@link org.apache.hadoop.mapred.RecordWriter} provided by the
  28392. {@link org.apache.hadoop.mapred.OutputFormat} of the job.</p>
  28393. <p>Map-Reduce application to perform a distributed <i>grep</i>:</p>
  28394. <pre><tt>
  28395. public class Grep extends Configured implements Tool {
  28396. // <i>map: Search for the pattern specified by 'grep.mapper.regex' &amp;</i>
  28397. // <i>'grep.mapper.regex.group'</i>
  28398. class GrepMapper&lt;K, Text&gt;
  28399. extends MapReduceBase implements Mapper&lt;K, Text, Text, LongWritable&gt; {
  28400. private Pattern pattern;
  28401. private int group;
  28402. public void configure(JobConf job) {
  28403. pattern = Pattern.compile(job.get("grep.mapper.regex"));
  28404. group = job.getInt("grep.mapper.regex.group", 0);
  28405. }
  28406. public void map(K key, Text value,
  28407. OutputCollector&lt;Text, LongWritable&gt; output,
  28408. Reporter reporter)
  28409. throws IOException {
  28410. String text = value.toString();
  28411. Matcher matcher = pattern.matcher(text);
  28412. while (matcher.find()) {
  28413. output.collect(new Text(matcher.group(group)), new LongWritable(1));
  28414. }
  28415. }
  28416. }
  28417. // <i>reduce: Count the number of occurrences of the pattern</i>
  28418. class GrepReducer&lt;K&gt; extends MapReduceBase
  28419. implements Reducer&lt;K, LongWritable, K, LongWritable&gt; {
  28420. public void reduce(K key, Iterator&lt;LongWritable&gt; values,
  28421. OutputCollector&lt;K, LongWritable&gt; output,
  28422. Reporter reporter)
  28423. throws IOException {
  28424. // sum all values for this key
  28425. long sum = 0;
  28426. while (values.hasNext()) {
  28427. sum += values.next().get();
  28428. }
  28429. // output sum
  28430. output.collect(key, new LongWritable(sum));
  28431. }
  28432. }
  28433. public int run(String[] args) throws Exception {
  28434. if (args.length &lt; 3) {
  28435. System.out.println("Grep &lt;inDir&gt; &lt;outDir&gt; &lt;regex&gt; [&lt;group&gt;]");
  28436. ToolRunner.printGenericCommandUsage(System.out);
  28437. return -1;
  28438. }
  28439. JobConf grepJob = new JobConf(getConf(), Grep.class);
  28440. grepJob.setJobName("grep");
  28441. grepJob.setInputPath(new Path(args[0]));
  28442. grepJob.setOutputPath(args[1]);
  28443. grepJob.setMapperClass(GrepMapper.class);
  28444. grepJob.setCombinerClass(GrepReducer.class);
  28445. grepJob.setReducerClass(GrepReducer.class);
  28446. grepJob.set("mapred.mapper.regex", args[2]);
  28447. if (args.length == 4)
  28448. grepJob.set("mapred.mapper.regex.group", args[3]);
  28449. grepJob.setOutputFormat(SequenceFileOutputFormat.class);
  28450. grepJob.setOutputKeyClass(Text.class);
  28451. grepJob.setOutputValueClass(LongWritable.class);
  28452. JobClient.runJob(grepJob);
  28453. return 0;
  28454. }
  28455. public static void main(String[] args) throws Exception {
  28456. int res = ToolRunner.run(new Configuration(), new Grep(), args);
  28457. System.exit(res);
  28458. }
  28459. }
  28460. </tt></pre>
  28461. <p>Notice how the data-flow of the above grep job is very similar to doing the
  28462. same via the unix pipeline:</p>
  28463. <pre>
  28464. cat input/* | grep | sort | uniq -c &gt; out
  28465. </pre>
  28466. <pre>
  28467. input | map | shuffle | reduce &gt; out
  28468. </pre>
  28469. <p>Hadoop Map-Reduce applications need not be written in
  28470. Java<small><sup>TM</sup></small> only.
  28471. <a href="../streaming/package-summary.html">Hadoop Streaming</a> is a utility
  28472. which allows users to create and run jobs with any executables (e.g. shell
  28473. utilities) as the mapper and/or the reducer.
  28474. <a href="pipes/package-summary.html">Hadoop Pipes</a> is a
  28475. <a href="http://www.swig.org/">SWIG</a>-compatible <em>C++ API</em> to implement
  28476. Map-Reduce applications (non JNI<small><sup>TM</sup></small> based).</p>
  28477. <p>See <a href="http://labs.google.com/papers/mapreduce.html">Google's original
  28478. Map/Reduce paper</a> for background information.</p>
  28479. <p><i>Java and JNI are trademarks or registered trademarks of
  28480. Sun Microsystems, Inc. in the United States and other countries.</i></p>]]>
  28481. </doc>
  28482. </package>
  28483. <package name="org.apache.hadoop.mapred.jobcontrol">
  28484. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  28485. <class name="Job" extends="java.lang.Object"
  28486. abstract="false"
  28487. static="false" final="false" visibility="public"
  28488. deprecated="not deprecated">
  28489. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28490. static="false" final="false" visibility="public"
  28491. deprecated="not deprecated">
  28492. <exception name="IOException" type="java.io.IOException"/>
  28493. <doc>
  28494. <![CDATA[Construct a job.
  28495. @param jobConf a mapred job configuration representing a job to be executed.
  28496. @param dependingJobs an array of jobs the current job depends on]]>
  28497. </doc>
  28498. </constructor>
  28499. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  28500. static="false" final="false" visibility="public"
  28501. deprecated="not deprecated">
  28502. <exception name="IOException" type="java.io.IOException"/>
  28503. <doc>
  28504. <![CDATA[Construct a job.
  28505. @param jobConf mapred job configuration representing a job to be executed.
  28506. @throws IOException]]>
  28507. </doc>
  28508. </constructor>
  28509. <method name="toString" return="java.lang.String"
  28510. abstract="false" native="false" synchronized="false"
  28511. static="false" final="false" visibility="public"
  28512. deprecated="not deprecated">
  28513. </method>
  28514. <method name="getJobName" return="java.lang.String"
  28515. abstract="false" native="false" synchronized="false"
  28516. static="false" final="false" visibility="public"
  28517. deprecated="not deprecated">
  28518. <doc>
  28519. <![CDATA[@return the job name of this job]]>
  28520. </doc>
  28521. </method>
  28522. <method name="setJobName"
  28523. abstract="false" native="false" synchronized="false"
  28524. static="false" final="false" visibility="public"
  28525. deprecated="not deprecated">
  28526. <param name="jobName" type="java.lang.String"/>
  28527. <doc>
  28528. <![CDATA[Set the job name for this job.
  28529. @param jobName the job name]]>
  28530. </doc>
  28531. </method>
  28532. <method name="getJobID" return="java.lang.String"
  28533. abstract="false" native="false" synchronized="false"
  28534. static="false" final="false" visibility="public"
  28535. deprecated="not deprecated">
  28536. <doc>
  28537. <![CDATA[@return the job ID of this job]]>
  28538. </doc>
  28539. </method>
  28540. <method name="setJobID"
  28541. abstract="false" native="false" synchronized="false"
  28542. static="false" final="false" visibility="public"
  28543. deprecated="not deprecated">
  28544. <param name="id" type="java.lang.String"/>
  28545. <doc>
  28546. <![CDATA[Set the job ID for this job.
  28547. @param id the job ID]]>
  28548. </doc>
  28549. </method>
  28550. <method name="getMapredJobID" return="java.lang.String"
  28551. abstract="false" native="false" synchronized="false"
  28552. static="false" final="false" visibility="public"
  28553. deprecated="not deprecated">
  28554. <doc>
  28555. <![CDATA[@return the mapred ID of this job]]>
  28556. </doc>
  28557. </method>
  28558. <method name="setMapredJobID"
  28559. abstract="false" native="false" synchronized="false"
  28560. static="false" final="false" visibility="public"
  28561. deprecated="not deprecated">
  28562. <param name="mapredJobID" type="java.lang.String"/>
  28563. <doc>
  28564. <![CDATA[Set the mapred ID for this job.
  28565. @param mapredJobID the mapred job ID for this job.]]>
  28566. </doc>
  28567. </method>
  28568. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  28569. abstract="false" native="false" synchronized="false"
  28570. static="false" final="false" visibility="public"
  28571. deprecated="not deprecated">
  28572. <doc>
  28573. <![CDATA[@return the mapred job conf of this job]]>
  28574. </doc>
  28575. </method>
  28576. <method name="setJobConf"
  28577. abstract="false" native="false" synchronized="false"
  28578. static="false" final="false" visibility="public"
  28579. deprecated="not deprecated">
  28580. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  28581. <doc>
  28582. <![CDATA[Set the mapred job conf for this job.
  28583. @param jobConf the mapred job conf for this job.]]>
  28584. </doc>
  28585. </method>
  28586. <method name="getState" return="int"
  28587. abstract="false" native="false" synchronized="true"
  28588. static="false" final="false" visibility="public"
  28589. deprecated="not deprecated">
  28590. <doc>
  28591. <![CDATA[@return the state of this job]]>
  28592. </doc>
  28593. </method>
  28594. <method name="setState"
  28595. abstract="false" native="false" synchronized="true"
  28596. static="false" final="false" visibility="protected"
  28597. deprecated="not deprecated">
  28598. <param name="state" type="int"/>
  28599. <doc>
  28600. <![CDATA[Set the state for this job.
  28601. @param state the new state for this job.]]>
  28602. </doc>
  28603. </method>
  28604. <method name="getMessage" return="java.lang.String"
  28605. abstract="false" native="false" synchronized="false"
  28606. static="false" final="false" visibility="public"
  28607. deprecated="not deprecated">
  28608. <doc>
  28609. <![CDATA[@return the message of this job]]>
  28610. </doc>
  28611. </method>
  28612. <method name="setMessage"
  28613. abstract="false" native="false" synchronized="false"
  28614. static="false" final="false" visibility="public"
  28615. deprecated="not deprecated">
  28616. <param name="message" type="java.lang.String"/>
  28617. <doc>
  28618. <![CDATA[Set the message for this job.
  28619. @param message the message for this job.]]>
  28620. </doc>
  28621. </method>
  28622. <method name="getDependingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28623. abstract="false" native="false" synchronized="false"
  28624. static="false" final="false" visibility="public"
  28625. deprecated="not deprecated">
  28626. <doc>
  28627. <![CDATA[@return the depending jobs of this job]]>
  28628. </doc>
  28629. </method>
  28630. <method name="addDependingJob" return="boolean"
  28631. abstract="false" native="false" synchronized="true"
  28632. static="false" final="false" visibility="public"
  28633. deprecated="not deprecated">
  28634. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  28635. <doc>
  28636. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  28637. is waiting to run, not during or afterwards.
  28638. @param dependingJob Job that this Job depends on.
  28639. @return <tt>true</tt> if the Job was added.]]>
  28640. </doc>
  28641. </method>
  28642. <method name="isCompleted" return="boolean"
  28643. abstract="false" native="false" synchronized="false"
  28644. static="false" final="false" visibility="public"
  28645. deprecated="not deprecated">
  28646. <doc>
  28647. <![CDATA[@return true if this job is in a complete state]]>
  28648. </doc>
  28649. </method>
  28650. <method name="isReady" return="boolean"
  28651. abstract="false" native="false" synchronized="false"
  28652. static="false" final="false" visibility="public"
  28653. deprecated="not deprecated">
  28654. <doc>
  28655. <![CDATA[@return true if this job is in READY state]]>
  28656. </doc>
  28657. </method>
  28658. <method name="submit"
  28659. abstract="false" native="false" synchronized="true"
  28660. static="false" final="false" visibility="protected"
  28661. deprecated="not deprecated">
  28662. <doc>
  28663. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  28664. is successful, FAILED otherwise.]]>
  28665. </doc>
  28666. </method>
  28667. <method name="main"
  28668. abstract="false" native="false" synchronized="false"
  28669. static="true" final="false" visibility="public"
  28670. deprecated="not deprecated">
  28671. <param name="args" type="java.lang.String[]"/>
  28672. <doc>
  28673. <![CDATA[@param args]]>
  28674. </doc>
  28675. </method>
  28676. <field name="SUCCESS" type="int"
  28677. transient="false" volatile="false"
  28678. static="true" final="true" visibility="public"
  28679. deprecated="not deprecated">
  28680. </field>
  28681. <field name="WAITING" type="int"
  28682. transient="false" volatile="false"
  28683. static="true" final="true" visibility="public"
  28684. deprecated="not deprecated">
  28685. </field>
  28686. <field name="RUNNING" type="int"
  28687. transient="false" volatile="false"
  28688. static="true" final="true" visibility="public"
  28689. deprecated="not deprecated">
  28690. </field>
  28691. <field name="READY" type="int"
  28692. transient="false" volatile="false"
  28693. static="true" final="true" visibility="public"
  28694. deprecated="not deprecated">
  28695. </field>
  28696. <field name="FAILED" type="int"
  28697. transient="false" volatile="false"
  28698. static="true" final="true" visibility="public"
  28699. deprecated="not deprecated">
  28700. </field>
  28701. <field name="DEPENDENT_FAILED" type="int"
  28702. transient="false" volatile="false"
  28703. static="true" final="true" visibility="public"
  28704. deprecated="not deprecated">
  28705. </field>
  28706. <doc>
  28707. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  28708. the states of the depending jobs and updates the state of this job.
  28709. A job stats in the WAITING state. If it does not have any deoending jobs, or
  28710. all of the depending jobs are in SUCCESS state, then the job state will become
  28711. READY. If any depending jobs fail, the job will fail too.
  28712. When in READY state, the job can be submitted to Hadoop for execution, with
  28713. the state changing into RUNNING state. From RUNNING state, the job can get into
  28714. SUCCESS or FAILED state, depending the status of the jon execution.]]>
  28715. </doc>
  28716. </class>
  28717. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  28718. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  28719. <class name="JobControl" extends="java.lang.Object"
  28720. abstract="false"
  28721. static="false" final="false" visibility="public"
  28722. deprecated="not deprecated">
  28723. <implements name="java.lang.Runnable"/>
  28724. <constructor name="JobControl" type="java.lang.String"
  28725. static="false" final="false" visibility="public"
  28726. deprecated="not deprecated">
  28727. <doc>
  28728. <![CDATA[Construct a job control for a group of jobs.
  28729. @param groupName a name identifying this group]]>
  28730. </doc>
  28731. </constructor>
  28732. <method name="getWaitingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28733. abstract="false" native="false" synchronized="false"
  28734. static="false" final="false" visibility="public"
  28735. deprecated="not deprecated">
  28736. <doc>
  28737. <![CDATA[@return the jobs in the waiting state]]>
  28738. </doc>
  28739. </method>
  28740. <method name="getRunningJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28741. abstract="false" native="false" synchronized="false"
  28742. static="false" final="false" visibility="public"
  28743. deprecated="not deprecated">
  28744. <doc>
  28745. <![CDATA[@return the jobs in the running state]]>
  28746. </doc>
  28747. </method>
  28748. <method name="getReadyJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28749. abstract="false" native="false" synchronized="false"
  28750. static="false" final="false" visibility="public"
  28751. deprecated="not deprecated">
  28752. <doc>
  28753. <![CDATA[@return the jobs in the ready state]]>
  28754. </doc>
  28755. </method>
  28756. <method name="getSuccessfulJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28757. abstract="false" native="false" synchronized="false"
  28758. static="false" final="false" visibility="public"
  28759. deprecated="not deprecated">
  28760. <doc>
  28761. <![CDATA[@return the jobs in the success state]]>
  28762. </doc>
  28763. </method>
  28764. <method name="getFailedJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  28765. abstract="false" native="false" synchronized="false"
  28766. static="false" final="false" visibility="public"
  28767. deprecated="not deprecated">
  28768. </method>
  28769. <method name="addJob" return="java.lang.String"
  28770. abstract="false" native="false" synchronized="true"
  28771. static="false" final="false" visibility="public"
  28772. deprecated="not deprecated">
  28773. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  28774. <doc>
  28775. <![CDATA[Add a new job.
  28776. @param aJob the new job]]>
  28777. </doc>
  28778. </method>
  28779. <method name="addJobs"
  28780. abstract="false" native="false" synchronized="false"
  28781. static="false" final="false" visibility="public"
  28782. deprecated="not deprecated">
  28783. <param name="jobs" type="java.util.Collection&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"/>
  28784. <doc>
  28785. <![CDATA[Add a collection of jobs
  28786. @param jobs]]>
  28787. </doc>
  28788. </method>
  28789. <method name="getState" return="int"
  28790. abstract="false" native="false" synchronized="false"
  28791. static="false" final="false" visibility="public"
  28792. deprecated="not deprecated">
  28793. <doc>
  28794. <![CDATA[@return the thread state]]>
  28795. </doc>
  28796. </method>
  28797. <method name="stop"
  28798. abstract="false" native="false" synchronized="false"
  28799. static="false" final="false" visibility="public"
  28800. deprecated="not deprecated">
  28801. <doc>
  28802. <![CDATA[set the thread state to STOPPING so that the
  28803. thread will stop when it wakes up.]]>
  28804. </doc>
  28805. </method>
  28806. <method name="suspend"
  28807. abstract="false" native="false" synchronized="false"
  28808. static="false" final="false" visibility="public"
  28809. deprecated="not deprecated">
  28810. <doc>
  28811. <![CDATA[suspend the running thread]]>
  28812. </doc>
  28813. </method>
  28814. <method name="resume"
  28815. abstract="false" native="false" synchronized="false"
  28816. static="false" final="false" visibility="public"
  28817. deprecated="not deprecated">
  28818. <doc>
  28819. <![CDATA[resume the suspended thread]]>
  28820. </doc>
  28821. </method>
  28822. <method name="allFinished" return="boolean"
  28823. abstract="false" native="false" synchronized="true"
  28824. static="false" final="false" visibility="public"
  28825. deprecated="not deprecated">
  28826. </method>
  28827. <method name="run"
  28828. abstract="false" native="false" synchronized="false"
  28829. static="false" final="false" visibility="public"
  28830. deprecated="not deprecated">
  28831. <doc>
  28832. <![CDATA[The main loop for the thread.
  28833. The loop does the following:
  28834. Check the states of the running jobs
  28835. Update the states of waiting jobs
  28836. Submit the jobs in ready state]]>
  28837. </doc>
  28838. </method>
  28839. <doc>
  28840. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  28841. the states of the jobs by placing them into different tables according to their
  28842. states.
  28843. This class provides APIs for the client app to add a job to the group and to get
  28844. the jobs in the group in different states. When a
  28845. job is added, an ID unique to the group is assigned to the job.
  28846. This class has a thread that submits jobs when they become ready, monitors the
  28847. states of the running jobs, and updates the states of jobs based on the state changes
  28848. of their depending jobs states. The class provides APIs for suspending/resuming
  28849. the thread,and for stopping the thread.]]>
  28850. </doc>
  28851. </class>
  28852. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  28853. <doc>
  28854. <![CDATA[<p>Utilities for managing dependent jobs.</p>]]>
  28855. </doc>
  28856. </package>
  28857. <package name="org.apache.hadoop.mapred.join">
  28858. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  28859. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  28860. abstract="false"
  28861. static="false" final="false" visibility="public"
  28862. deprecated="not deprecated">
  28863. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  28864. <constructor name="ArrayListBackedIterator"
  28865. static="false" final="false" visibility="public"
  28866. deprecated="not deprecated">
  28867. </constructor>
  28868. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList&lt;X&gt;"
  28869. static="false" final="false" visibility="public"
  28870. deprecated="not deprecated">
  28871. </constructor>
  28872. <method name="hasNext" return="boolean"
  28873. abstract="false" native="false" synchronized="false"
  28874. static="false" final="false" visibility="public"
  28875. deprecated="not deprecated">
  28876. </method>
  28877. <method name="next" return="boolean"
  28878. abstract="false" native="false" synchronized="false"
  28879. static="false" final="false" visibility="public"
  28880. deprecated="not deprecated">
  28881. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  28882. <exception name="IOException" type="java.io.IOException"/>
  28883. </method>
  28884. <method name="replay"
  28885. abstract="false" native="false" synchronized="false"
  28886. static="false" final="false" visibility="public"
  28887. deprecated="not deprecated">
  28888. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  28889. <exception name="IOException" type="java.io.IOException"/>
  28890. </method>
  28891. <method name="reset"
  28892. abstract="false" native="false" synchronized="false"
  28893. static="false" final="false" visibility="public"
  28894. deprecated="not deprecated">
  28895. </method>
  28896. <method name="add"
  28897. abstract="false" native="false" synchronized="false"
  28898. static="false" final="false" visibility="public"
  28899. deprecated="not deprecated">
  28900. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  28901. <exception name="IOException" type="java.io.IOException"/>
  28902. </method>
  28903. <method name="close"
  28904. abstract="false" native="false" synchronized="false"
  28905. static="false" final="false" visibility="public"
  28906. deprecated="not deprecated">
  28907. <exception name="IOException" type="java.io.IOException"/>
  28908. </method>
  28909. <method name="clear"
  28910. abstract="false" native="false" synchronized="false"
  28911. static="false" final="false" visibility="public"
  28912. deprecated="not deprecated">
  28913. </method>
  28914. <doc>
  28915. <![CDATA[This class provides an implementation of ResetableIterator. The
  28916. implementation uses an {@link java.util.ArrayList} to store elements
  28917. added to it, replaying them as requested.
  28918. Prefer {@link StreamBackedIterator}.]]>
  28919. </doc>
  28920. </class>
  28921. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  28922. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  28923. <interface name="ComposableInputFormat" abstract="true"
  28924. static="false" final="false" visibility="public"
  28925. deprecated="not deprecated">
  28926. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  28927. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"
  28928. abstract="false" native="false" synchronized="false"
  28929. static="false" final="false" visibility="public"
  28930. deprecated="not deprecated">
  28931. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28932. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28933. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28934. <exception name="IOException" type="java.io.IOException"/>
  28935. </method>
  28936. <doc>
  28937. <![CDATA[Refinement of InputFormat requiring implementors to provide
  28938. ComposableRecordReader instead of RecordReader.]]>
  28939. </doc>
  28940. </interface>
  28941. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  28942. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  28943. <interface name="ComposableRecordReader" abstract="true"
  28944. static="false" final="false" visibility="public"
  28945. deprecated="not deprecated">
  28946. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  28947. <implements name="java.lang.Comparable&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"/>
  28948. <method name="id" return="int"
  28949. abstract="false" native="false" synchronized="false"
  28950. static="false" final="false" visibility="public"
  28951. deprecated="not deprecated">
  28952. <doc>
  28953. <![CDATA[Return the position in the collector this class occupies.]]>
  28954. </doc>
  28955. </method>
  28956. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  28957. abstract="false" native="false" synchronized="false"
  28958. static="false" final="false" visibility="public"
  28959. deprecated="not deprecated">
  28960. <doc>
  28961. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  28962. </doc>
  28963. </method>
  28964. <method name="key"
  28965. abstract="false" native="false" synchronized="false"
  28966. static="false" final="false" visibility="public"
  28967. deprecated="not deprecated">
  28968. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28969. <exception name="IOException" type="java.io.IOException"/>
  28970. <doc>
  28971. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  28972. </doc>
  28973. </method>
  28974. <method name="hasNext" return="boolean"
  28975. abstract="false" native="false" synchronized="false"
  28976. static="false" final="false" visibility="public"
  28977. deprecated="not deprecated">
  28978. <doc>
  28979. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  28980. a call to next(K,V) will succeed.]]>
  28981. </doc>
  28982. </method>
  28983. <method name="skip"
  28984. abstract="false" native="false" synchronized="false"
  28985. static="false" final="false" visibility="public"
  28986. deprecated="not deprecated">
  28987. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28988. <exception name="IOException" type="java.io.IOException"/>
  28989. <doc>
  28990. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  28991. </doc>
  28992. </method>
  28993. <method name="accept"
  28994. abstract="false" native="false" synchronized="false"
  28995. static="false" final="false" visibility="public"
  28996. deprecated="not deprecated">
  28997. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  28998. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  28999. <exception name="IOException" type="java.io.IOException"/>
  29000. <doc>
  29001. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  29002. them with the JoinCollector provided.]]>
  29003. </doc>
  29004. </method>
  29005. <doc>
  29006. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  29007. </doc>
  29008. </interface>
  29009. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  29010. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  29011. <class name="CompositeInputFormat" extends="java.lang.Object"
  29012. abstract="false"
  29013. static="false" final="false" visibility="public"
  29014. deprecated="not deprecated">
  29015. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  29016. <constructor name="CompositeInputFormat"
  29017. static="false" final="false" visibility="public"
  29018. deprecated="not deprecated">
  29019. </constructor>
  29020. <method name="setFormat"
  29021. abstract="false" native="false" synchronized="false"
  29022. static="false" final="false" visibility="public"
  29023. deprecated="not deprecated">
  29024. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29025. <exception name="IOException" type="java.io.IOException"/>
  29026. <doc>
  29027. <![CDATA[Interpret a given string as a composite expression.
  29028. {@code
  29029. func ::= <ident>([<func>,]*<func>)
  29030. func ::= tbl(<class>,"<path>")
  29031. class ::= @see java.lang.Class#forName(java.lang.String)
  29032. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  29033. }
  29034. Reads expression from the <tt>mapred.join.expr</tt> property and
  29035. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  29036. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  29037. InputFormat class listed.
  29038. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  29039. </doc>
  29040. </method>
  29041. <method name="addDefaults"
  29042. abstract="false" native="false" synchronized="false"
  29043. static="false" final="false" visibility="protected"
  29044. deprecated="not deprecated">
  29045. <doc>
  29046. <![CDATA[Adds the default set of identifiers to the parser.]]>
  29047. </doc>
  29048. </method>
  29049. <method name="validateInput"
  29050. abstract="false" native="false" synchronized="false"
  29051. static="false" final="false" visibility="public"
  29052. deprecated="not deprecated">
  29053. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29054. <exception name="IOException" type="java.io.IOException"/>
  29055. <doc>
  29056. <![CDATA[Verify that this composite has children and that all its children
  29057. can validate their input.]]>
  29058. </doc>
  29059. </method>
  29060. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  29061. abstract="false" native="false" synchronized="false"
  29062. static="false" final="false" visibility="public"
  29063. deprecated="not deprecated">
  29064. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29065. <param name="numSplits" type="int"/>
  29066. <exception name="IOException" type="java.io.IOException"/>
  29067. <doc>
  29068. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  29069. ith split from each child to the ith composite split.]]>
  29070. </doc>
  29071. </method>
  29072. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  29073. abstract="false" native="false" synchronized="false"
  29074. static="false" final="false" visibility="public"
  29075. deprecated="not deprecated">
  29076. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  29077. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29078. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29079. <exception name="IOException" type="java.io.IOException"/>
  29080. <doc>
  29081. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  29082. as defined in the init expression.
  29083. The outermost join need only be composable, not necessarily a composite.
  29084. Mandating TupleWritable isn't strictly correct.]]>
  29085. </doc>
  29086. </method>
  29087. <method name="compose" return="java.lang.String"
  29088. abstract="false" native="false" synchronized="false"
  29089. static="true" final="false" visibility="public"
  29090. deprecated="not deprecated">
  29091. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  29092. <param name="path" type="java.lang.String"/>
  29093. <doc>
  29094. <![CDATA[Convenience method for constructing composite formats.
  29095. Given InputFormat class (inf), path (p) return:
  29096. {@code tbl(<inf>, <p>) }]]>
  29097. </doc>
  29098. </method>
  29099. <method name="compose" return="java.lang.String"
  29100. abstract="false" native="false" synchronized="false"
  29101. static="true" final="false" visibility="public"
  29102. deprecated="not deprecated">
  29103. <param name="op" type="java.lang.String"/>
  29104. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  29105. <param name="path" type="java.lang.String[]"/>
  29106. <doc>
  29107. <![CDATA[Convenience method for constructing composite formats.
  29108. Given operation (op), Object class (inf), set of paths (p) return:
  29109. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  29110. </doc>
  29111. </method>
  29112. <method name="compose" return="java.lang.String"
  29113. abstract="false" native="false" synchronized="false"
  29114. static="true" final="false" visibility="public"
  29115. deprecated="not deprecated">
  29116. <param name="op" type="java.lang.String"/>
  29117. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  29118. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  29119. <doc>
  29120. <![CDATA[Convenience method for constructing composite formats.
  29121. Given operation (op), Object class (inf), set of paths (p) return:
  29122. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  29123. </doc>
  29124. </method>
  29125. <doc>
  29126. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  29127. and partitioned the same way.
  29128. @see #setFormat
  29129. A user may define new join types by setting the property
  29130. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  29131. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  29132. ComposableRecordReader.
  29133. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  29134. in the join.
  29135. @see JoinRecordReader
  29136. @see MultiFilterRecordReader]]>
  29137. </doc>
  29138. </class>
  29139. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  29140. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  29141. <class name="CompositeInputSplit" extends="java.lang.Object"
  29142. abstract="false"
  29143. static="false" final="false" visibility="public"
  29144. deprecated="not deprecated">
  29145. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  29146. <constructor name="CompositeInputSplit"
  29147. static="false" final="false" visibility="public"
  29148. deprecated="not deprecated">
  29149. </constructor>
  29150. <constructor name="CompositeInputSplit" type="int"
  29151. static="false" final="false" visibility="public"
  29152. deprecated="not deprecated">
  29153. </constructor>
  29154. <method name="add"
  29155. abstract="false" native="false" synchronized="false"
  29156. static="false" final="false" visibility="public"
  29157. deprecated="not deprecated">
  29158. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  29159. <exception name="IOException" type="java.io.IOException"/>
  29160. <doc>
  29161. <![CDATA[Add an InputSplit to this collection.
  29162. @throws IOException If capacity was not specified during construction
  29163. or if capacity has been reached.]]>
  29164. </doc>
  29165. </method>
  29166. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  29167. abstract="false" native="false" synchronized="false"
  29168. static="false" final="false" visibility="public"
  29169. deprecated="not deprecated">
  29170. <param name="i" type="int"/>
  29171. <doc>
  29172. <![CDATA[Get ith child InputSplit.]]>
  29173. </doc>
  29174. </method>
  29175. <method name="getLength" return="long"
  29176. abstract="false" native="false" synchronized="false"
  29177. static="false" final="false" visibility="public"
  29178. deprecated="not deprecated">
  29179. <exception name="IOException" type="java.io.IOException"/>
  29180. <doc>
  29181. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  29182. </doc>
  29183. </method>
  29184. <method name="getLength" return="long"
  29185. abstract="false" native="false" synchronized="false"
  29186. static="false" final="false" visibility="public"
  29187. deprecated="not deprecated">
  29188. <param name="i" type="int"/>
  29189. <exception name="IOException" type="java.io.IOException"/>
  29190. <doc>
  29191. <![CDATA[Get the length of ith child InputSplit.]]>
  29192. </doc>
  29193. </method>
  29194. <method name="getLocations" return="java.lang.String[]"
  29195. abstract="false" native="false" synchronized="false"
  29196. static="false" final="false" visibility="public"
  29197. deprecated="not deprecated">
  29198. <exception name="IOException" type="java.io.IOException"/>
  29199. <doc>
  29200. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  29201. </doc>
  29202. </method>
  29203. <method name="getLocation" return="java.lang.String[]"
  29204. abstract="false" native="false" synchronized="false"
  29205. static="false" final="false" visibility="public"
  29206. deprecated="not deprecated">
  29207. <param name="i" type="int"/>
  29208. <exception name="IOException" type="java.io.IOException"/>
  29209. <doc>
  29210. <![CDATA[getLocations from ith InputSplit.]]>
  29211. </doc>
  29212. </method>
  29213. <method name="write"
  29214. abstract="false" native="false" synchronized="false"
  29215. static="false" final="false" visibility="public"
  29216. deprecated="not deprecated">
  29217. <param name="out" type="java.io.DataOutput"/>
  29218. <exception name="IOException" type="java.io.IOException"/>
  29219. <doc>
  29220. <![CDATA[Write splits in the following format.
  29221. {@code
  29222. <count><class1><class2>...<classn><split1><split2>...<splitn>
  29223. }]]>
  29224. </doc>
  29225. </method>
  29226. <method name="readFields"
  29227. abstract="false" native="false" synchronized="false"
  29228. static="false" final="false" visibility="public"
  29229. deprecated="not deprecated">
  29230. <param name="in" type="java.io.DataInput"/>
  29231. <exception name="IOException" type="java.io.IOException"/>
  29232. <doc>
  29233. <![CDATA[{@inheritDoc}
  29234. @throws IOException If the child InputSplit cannot be read, typically
  29235. for faliing access checks.]]>
  29236. </doc>
  29237. </method>
  29238. <doc>
  29239. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  29240. into this collection must have a public default constructor.]]>
  29241. </doc>
  29242. </class>
  29243. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  29244. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  29245. <class name="CompositeRecordReader" extends="java.lang.Object"
  29246. abstract="true"
  29247. static="false" final="false" visibility="public"
  29248. deprecated="not deprecated">
  29249. <implements name="org.apache.hadoop.conf.Configurable"/>
  29250. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  29251. static="false" final="false" visibility="public"
  29252. deprecated="not deprecated">
  29253. <exception name="IOException" type="java.io.IOException"/>
  29254. <doc>
  29255. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  29256. <tt>id</tt> in the parent reader.
  29257. The id of a root CompositeRecordReader is -1 by convention, but relying
  29258. on this is not recommended.]]>
  29259. </doc>
  29260. </constructor>
  29261. <method name="combine" return="boolean"
  29262. abstract="true" native="false" synchronized="false"
  29263. static="false" final="false" visibility="protected"
  29264. deprecated="not deprecated">
  29265. <param name="srcs" type="java.lang.Object[]"/>
  29266. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29267. </method>
  29268. <method name="id" return="int"
  29269. abstract="false" native="false" synchronized="false"
  29270. static="false" final="false" visibility="public"
  29271. deprecated="not deprecated">
  29272. <doc>
  29273. <![CDATA[Return the position in the collector this class occupies.]]>
  29274. </doc>
  29275. </method>
  29276. <method name="setConf"
  29277. abstract="false" native="false" synchronized="false"
  29278. static="false" final="false" visibility="public"
  29279. deprecated="not deprecated">
  29280. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29281. <doc>
  29282. <![CDATA[{@inheritDoc}]]>
  29283. </doc>
  29284. </method>
  29285. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29286. abstract="false" native="false" synchronized="false"
  29287. static="false" final="false" visibility="public"
  29288. deprecated="not deprecated">
  29289. <doc>
  29290. <![CDATA[{@inheritDoc}]]>
  29291. </doc>
  29292. </method>
  29293. <method name="getRecordReaderQueue" return="java.util.PriorityQueue&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"
  29294. abstract="false" native="false" synchronized="false"
  29295. static="false" final="false" visibility="protected"
  29296. deprecated="not deprecated">
  29297. <doc>
  29298. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  29299. </doc>
  29300. </method>
  29301. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  29302. abstract="false" native="false" synchronized="false"
  29303. static="false" final="false" visibility="protected"
  29304. deprecated="not deprecated">
  29305. <doc>
  29306. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  29307. composite.]]>
  29308. </doc>
  29309. </method>
  29310. <method name="add"
  29311. abstract="false" native="false" synchronized="false"
  29312. static="false" final="false" visibility="public"
  29313. deprecated="not deprecated">
  29314. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ? extends V&gt;"/>
  29315. <exception name="IOException" type="java.io.IOException"/>
  29316. <doc>
  29317. <![CDATA[Add a RecordReader to this collection.
  29318. The id() of a RecordReader determines where in the Tuple its
  29319. entry will appear. Adding RecordReaders with the same id has
  29320. undefined behavior.]]>
  29321. </doc>
  29322. </method>
  29323. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  29324. abstract="false" native="false" synchronized="false"
  29325. static="false" final="false" visibility="public"
  29326. deprecated="not deprecated">
  29327. <doc>
  29328. <![CDATA[Return the key for the current join or the value at the top of the
  29329. RecordReader heap.]]>
  29330. </doc>
  29331. </method>
  29332. <method name="key"
  29333. abstract="false" native="false" synchronized="false"
  29334. static="false" final="false" visibility="public"
  29335. deprecated="not deprecated">
  29336. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29337. <exception name="IOException" type="java.io.IOException"/>
  29338. <doc>
  29339. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  29340. </doc>
  29341. </method>
  29342. <method name="hasNext" return="boolean"
  29343. abstract="false" native="false" synchronized="false"
  29344. static="false" final="false" visibility="public"
  29345. deprecated="not deprecated">
  29346. <doc>
  29347. <![CDATA[Return true if it is possible that this could emit more values.]]>
  29348. </doc>
  29349. </method>
  29350. <method name="skip"
  29351. abstract="false" native="false" synchronized="false"
  29352. static="false" final="false" visibility="public"
  29353. deprecated="not deprecated">
  29354. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29355. <exception name="IOException" type="java.io.IOException"/>
  29356. <doc>
  29357. <![CDATA[Pass skip key to child RRs.]]>
  29358. </doc>
  29359. </method>
  29360. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"
  29361. abstract="true" native="false" synchronized="false"
  29362. static="false" final="false" visibility="protected"
  29363. deprecated="not deprecated">
  29364. <doc>
  29365. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  29366. ultimately emitted from this join.]]>
  29367. </doc>
  29368. </method>
  29369. <method name="accept"
  29370. abstract="false" native="false" synchronized="false"
  29371. static="false" final="false" visibility="public"
  29372. deprecated="not deprecated">
  29373. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  29374. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29375. <exception name="IOException" type="java.io.IOException"/>
  29376. <doc>
  29377. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  29378. iterator over values it may emit.]]>
  29379. </doc>
  29380. </method>
  29381. <method name="fillJoinCollector"
  29382. abstract="false" native="false" synchronized="false"
  29383. static="false" final="false" visibility="protected"
  29384. deprecated="not deprecated">
  29385. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29386. <exception name="IOException" type="java.io.IOException"/>
  29387. <doc>
  29388. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  29389. at that position in the JoinCollector.]]>
  29390. </doc>
  29391. </method>
  29392. <method name="compareTo" return="int"
  29393. abstract="false" native="false" synchronized="false"
  29394. static="false" final="false" visibility="public"
  29395. deprecated="not deprecated">
  29396. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  29397. <doc>
  29398. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  29399. with that of another).]]>
  29400. </doc>
  29401. </method>
  29402. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  29403. abstract="false" native="false" synchronized="false"
  29404. static="false" final="false" visibility="public"
  29405. deprecated="not deprecated">
  29406. <doc>
  29407. <![CDATA[Create a new key value common to all child RRs.
  29408. @throws ClassCastException if key classes differ.]]>
  29409. </doc>
  29410. </method>
  29411. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  29412. abstract="false" native="false" synchronized="false"
  29413. static="false" final="false" visibility="protected"
  29414. deprecated="not deprecated">
  29415. <doc>
  29416. <![CDATA[Create a value to be used internally for joins.]]>
  29417. </doc>
  29418. </method>
  29419. <method name="getPos" return="long"
  29420. abstract="false" native="false" synchronized="false"
  29421. static="false" final="false" visibility="public"
  29422. deprecated="not deprecated">
  29423. <exception name="IOException" type="java.io.IOException"/>
  29424. <doc>
  29425. <![CDATA[Unsupported (returns zero in all cases).]]>
  29426. </doc>
  29427. </method>
  29428. <method name="close"
  29429. abstract="false" native="false" synchronized="false"
  29430. static="false" final="false" visibility="public"
  29431. deprecated="not deprecated">
  29432. <exception name="IOException" type="java.io.IOException"/>
  29433. <doc>
  29434. <![CDATA[Close all child RRs.]]>
  29435. </doc>
  29436. </method>
  29437. <method name="getProgress" return="float"
  29438. abstract="false" native="false" synchronized="false"
  29439. static="false" final="false" visibility="public"
  29440. deprecated="not deprecated">
  29441. <exception name="IOException" type="java.io.IOException"/>
  29442. <doc>
  29443. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  29444. </doc>
  29445. </method>
  29446. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, X&gt;.JoinCollector"
  29447. transient="false" volatile="false"
  29448. static="false" final="true" visibility="protected"
  29449. deprecated="not deprecated">
  29450. </field>
  29451. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  29452. transient="false" volatile="false"
  29453. static="false" final="true" visibility="protected"
  29454. deprecated="not deprecated">
  29455. </field>
  29456. <doc>
  29457. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  29458. type and partitioning.]]>
  29459. </doc>
  29460. </class>
  29461. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  29462. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  29463. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  29464. abstract="false"
  29465. static="false" final="false" visibility="public"
  29466. deprecated="not deprecated">
  29467. <method name="combine" return="boolean"
  29468. abstract="false" native="false" synchronized="false"
  29469. static="false" final="false" visibility="protected"
  29470. deprecated="not deprecated">
  29471. <param name="srcs" type="java.lang.Object[]"/>
  29472. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29473. <doc>
  29474. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  29475. </doc>
  29476. </method>
  29477. <doc>
  29478. <![CDATA[Full inner join.]]>
  29479. </doc>
  29480. </class>
  29481. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  29482. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  29483. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  29484. abstract="true"
  29485. static="false" final="false" visibility="public"
  29486. deprecated="not deprecated">
  29487. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  29488. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  29489. static="false" final="false" visibility="public"
  29490. deprecated="not deprecated">
  29491. <exception name="IOException" type="java.io.IOException"/>
  29492. </constructor>
  29493. <method name="next" return="boolean"
  29494. abstract="false" native="false" synchronized="false"
  29495. static="false" final="false" visibility="public"
  29496. deprecated="not deprecated">
  29497. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29498. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29499. <exception name="IOException" type="java.io.IOException"/>
  29500. <doc>
  29501. <![CDATA[Emit the next set of key, value pairs as defined by the child
  29502. RecordReaders and operation associated with this composite RR.]]>
  29503. </doc>
  29504. </method>
  29505. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  29506. abstract="false" native="false" synchronized="false"
  29507. static="false" final="false" visibility="public"
  29508. deprecated="not deprecated">
  29509. <doc>
  29510. <![CDATA[{@inheritDoc}]]>
  29511. </doc>
  29512. </method>
  29513. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"
  29514. abstract="false" native="false" synchronized="false"
  29515. static="false" final="false" visibility="protected"
  29516. deprecated="not deprecated">
  29517. <doc>
  29518. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  29519. </doc>
  29520. </method>
  29521. <doc>
  29522. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  29523. </doc>
  29524. </class>
  29525. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  29526. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  29527. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  29528. abstract="false"
  29529. static="false" final="false" visibility="protected"
  29530. deprecated="not deprecated">
  29531. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  29532. <constructor name="JoinRecordReader.JoinDelegationIterator"
  29533. static="false" final="false" visibility="protected"
  29534. deprecated="not deprecated">
  29535. </constructor>
  29536. <method name="hasNext" return="boolean"
  29537. abstract="false" native="false" synchronized="false"
  29538. static="false" final="false" visibility="public"
  29539. deprecated="not deprecated">
  29540. </method>
  29541. <method name="next" return="boolean"
  29542. abstract="false" native="false" synchronized="false"
  29543. static="false" final="false" visibility="public"
  29544. deprecated="not deprecated">
  29545. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29546. <exception name="IOException" type="java.io.IOException"/>
  29547. </method>
  29548. <method name="replay"
  29549. abstract="false" native="false" synchronized="false"
  29550. static="false" final="false" visibility="public"
  29551. deprecated="not deprecated">
  29552. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29553. <exception name="IOException" type="java.io.IOException"/>
  29554. </method>
  29555. <method name="reset"
  29556. abstract="false" native="false" synchronized="false"
  29557. static="false" final="false" visibility="public"
  29558. deprecated="not deprecated">
  29559. </method>
  29560. <method name="add"
  29561. abstract="false" native="false" synchronized="false"
  29562. static="false" final="false" visibility="public"
  29563. deprecated="not deprecated">
  29564. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29565. <exception name="IOException" type="java.io.IOException"/>
  29566. </method>
  29567. <method name="close"
  29568. abstract="false" native="false" synchronized="false"
  29569. static="false" final="false" visibility="public"
  29570. deprecated="not deprecated">
  29571. <exception name="IOException" type="java.io.IOException"/>
  29572. </method>
  29573. <method name="clear"
  29574. abstract="false" native="false" synchronized="false"
  29575. static="false" final="false" visibility="public"
  29576. deprecated="not deprecated">
  29577. </method>
  29578. <doc>
  29579. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  29580. provide an iterator proxy wrapping its operation.]]>
  29581. </doc>
  29582. </class>
  29583. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  29584. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  29585. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, V&gt;"
  29586. abstract="true"
  29587. static="false" final="false" visibility="public"
  29588. deprecated="not deprecated">
  29589. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"/>
  29590. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  29591. static="false" final="false" visibility="public"
  29592. deprecated="not deprecated">
  29593. <exception name="IOException" type="java.io.IOException"/>
  29594. </constructor>
  29595. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  29596. abstract="true" native="false" synchronized="false"
  29597. static="false" final="false" visibility="protected"
  29598. deprecated="not deprecated">
  29599. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29600. <exception name="IOException" type="java.io.IOException"/>
  29601. <doc>
  29602. <![CDATA[For each tuple emitted, return a value (typically one of the values
  29603. in the tuple).
  29604. Modifying the Writables in the tuple is permitted and unlikely to affect
  29605. join behavior in most cases, but it is not recommended. It's safer to
  29606. clone first.]]>
  29607. </doc>
  29608. </method>
  29609. <method name="combine" return="boolean"
  29610. abstract="false" native="false" synchronized="false"
  29611. static="false" final="false" visibility="protected"
  29612. deprecated="not deprecated">
  29613. <param name="srcs" type="java.lang.Object[]"/>
  29614. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29615. <doc>
  29616. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  29617. collector (the outer join of child RRs).]]>
  29618. </doc>
  29619. </method>
  29620. <method name="next" return="boolean"
  29621. abstract="false" native="false" synchronized="false"
  29622. static="false" final="false" visibility="public"
  29623. deprecated="not deprecated">
  29624. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29625. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  29626. <exception name="IOException" type="java.io.IOException"/>
  29627. <doc>
  29628. <![CDATA[{@inheritDoc}]]>
  29629. </doc>
  29630. </method>
  29631. <method name="createValue" return="V extends org.apache.hadoop.io.Writable"
  29632. abstract="false" native="false" synchronized="false"
  29633. static="false" final="false" visibility="public"
  29634. deprecated="not deprecated">
  29635. <doc>
  29636. <![CDATA[{@inheritDoc}]]>
  29637. </doc>
  29638. </method>
  29639. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"
  29640. abstract="false" native="false" synchronized="false"
  29641. static="false" final="false" visibility="protected"
  29642. deprecated="not deprecated">
  29643. <doc>
  29644. <![CDATA[Return an iterator returning a single value from the tuple.
  29645. @see MultiFilterDelegationIterator]]>
  29646. </doc>
  29647. </method>
  29648. <doc>
  29649. <![CDATA[Base class for Composite join returning values derived from multiple
  29650. sources, but generally not tuples.]]>
  29651. </doc>
  29652. </class>
  29653. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  29654. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  29655. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  29656. abstract="false"
  29657. static="false" final="false" visibility="protected"
  29658. deprecated="not deprecated">
  29659. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"/>
  29660. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  29661. static="false" final="false" visibility="protected"
  29662. deprecated="not deprecated">
  29663. </constructor>
  29664. <method name="hasNext" return="boolean"
  29665. abstract="false" native="false" synchronized="false"
  29666. static="false" final="false" visibility="public"
  29667. deprecated="not deprecated">
  29668. </method>
  29669. <method name="next" return="boolean"
  29670. abstract="false" native="false" synchronized="false"
  29671. static="false" final="false" visibility="public"
  29672. deprecated="not deprecated">
  29673. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  29674. <exception name="IOException" type="java.io.IOException"/>
  29675. </method>
  29676. <method name="replay"
  29677. abstract="false" native="false" synchronized="false"
  29678. static="false" final="false" visibility="public"
  29679. deprecated="not deprecated">
  29680. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  29681. <exception name="IOException" type="java.io.IOException"/>
  29682. </method>
  29683. <method name="reset"
  29684. abstract="false" native="false" synchronized="false"
  29685. static="false" final="false" visibility="public"
  29686. deprecated="not deprecated">
  29687. </method>
  29688. <method name="add"
  29689. abstract="false" native="false" synchronized="false"
  29690. static="false" final="false" visibility="public"
  29691. deprecated="not deprecated">
  29692. <param name="item" type="V extends org.apache.hadoop.io.Writable"/>
  29693. <exception name="IOException" type="java.io.IOException"/>
  29694. </method>
  29695. <method name="close"
  29696. abstract="false" native="false" synchronized="false"
  29697. static="false" final="false" visibility="public"
  29698. deprecated="not deprecated">
  29699. <exception name="IOException" type="java.io.IOException"/>
  29700. </method>
  29701. <method name="clear"
  29702. abstract="false" native="false" synchronized="false"
  29703. static="false" final="false" visibility="public"
  29704. deprecated="not deprecated">
  29705. </method>
  29706. <doc>
  29707. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  29708. </doc>
  29709. </class>
  29710. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  29711. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  29712. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  29713. abstract="false"
  29714. static="false" final="false" visibility="public"
  29715. deprecated="not deprecated">
  29716. <method name="combine" return="boolean"
  29717. abstract="false" native="false" synchronized="false"
  29718. static="false" final="false" visibility="protected"
  29719. deprecated="not deprecated">
  29720. <param name="srcs" type="java.lang.Object[]"/>
  29721. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29722. <doc>
  29723. <![CDATA[Emit everything from the collector.]]>
  29724. </doc>
  29725. </method>
  29726. <doc>
  29727. <![CDATA[Full outer join.]]>
  29728. </doc>
  29729. </class>
  29730. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  29731. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  29732. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader&lt;K, V&gt;"
  29733. abstract="false"
  29734. static="false" final="false" visibility="public"
  29735. deprecated="not deprecated">
  29736. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  29737. abstract="false" native="false" synchronized="false"
  29738. static="false" final="false" visibility="protected"
  29739. deprecated="not deprecated">
  29740. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  29741. <doc>
  29742. <![CDATA[Emit the value with the highest position in the tuple.]]>
  29743. </doc>
  29744. </method>
  29745. <method name="fillJoinCollector"
  29746. abstract="false" native="false" synchronized="false"
  29747. static="false" final="false" visibility="protected"
  29748. deprecated="not deprecated">
  29749. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  29750. <exception name="IOException" type="java.io.IOException"/>
  29751. <doc>
  29752. <![CDATA[Instead of filling the JoinCollector with iterators from all
  29753. data sources, fill only the rightmost for this key.
  29754. This not only saves space by discarding the other sources, but
  29755. it also emits the number of key-value pairs in the preferred
  29756. RecordReader instead of repeating that stream n times, where
  29757. n is the cardinality of the cross product of the discarded
  29758. streams for the given key.]]>
  29759. </doc>
  29760. </method>
  29761. <doc>
  29762. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  29763. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  29764. from S3 over S2, and values from S2 over S1 for all keys
  29765. emitted from all sources.]]>
  29766. </doc>
  29767. </class>
  29768. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  29769. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  29770. <class name="Parser" extends="java.lang.Object"
  29771. abstract="false"
  29772. static="false" final="false" visibility="public"
  29773. deprecated="not deprecated">
  29774. <constructor name="Parser"
  29775. static="false" final="false" visibility="public"
  29776. deprecated="not deprecated">
  29777. </constructor>
  29778. <doc>
  29779. <![CDATA[Very simple shift-reduce parser for join expressions.
  29780. This should be sufficient for the user extension permitted now, but ought to
  29781. be replaced with a parser generator if more complex grammars are supported.
  29782. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  29783. of formals requires a different internal node type, which is responsible for
  29784. interpreting the list of tokens it receives. This is sufficient for the
  29785. current grammar, but it has several annoying properties that might inhibit
  29786. extension. In particular, parenthesis are always function calls; an
  29787. algebraic or filter grammar would not only require a node type, but must
  29788. also work around the internals of this parser.
  29789. For most other cases, adding classes to the hierarchy- particularly by
  29790. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  29791. straightforward. One need only override the relevant method(s) (usually only
  29792. {@link CompositeRecordReader#combine}) and include a property to map its
  29793. value to an identifier in the parser.]]>
  29794. </doc>
  29795. </class>
  29796. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  29797. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  29798. <class name="Parser.Node" extends="java.lang.Object"
  29799. abstract="true"
  29800. static="true" final="false" visibility="public"
  29801. deprecated="not deprecated">
  29802. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  29803. <constructor name="Parser.Node" type="java.lang.String"
  29804. static="false" final="false" visibility="protected"
  29805. deprecated="not deprecated">
  29806. </constructor>
  29807. <method name="addIdentifier"
  29808. abstract="false" native="false" synchronized="false"
  29809. static="true" final="false" visibility="protected"
  29810. deprecated="not deprecated">
  29811. <param name="ident" type="java.lang.String"/>
  29812. <param name="mcstrSig" type="java.lang.Class[]"/>
  29813. <param name="nodetype" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.Parser.Node&gt;"/>
  29814. <param name="cl" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.ComposableRecordReader&gt;"/>
  29815. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  29816. <doc>
  29817. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  29818. tree and to the ComposableRecordReader to be created, including the
  29819. formals required to invoke the constructor.
  29820. The nodetype and constructor signature should be filled in from the
  29821. child node.]]>
  29822. </doc>
  29823. </method>
  29824. <method name="setID"
  29825. abstract="false" native="false" synchronized="false"
  29826. static="false" final="false" visibility="protected"
  29827. deprecated="not deprecated">
  29828. <param name="id" type="int"/>
  29829. </method>
  29830. <method name="setKeyComparator"
  29831. abstract="false" native="false" synchronized="false"
  29832. static="false" final="false" visibility="protected"
  29833. deprecated="not deprecated">
  29834. <param name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"/>
  29835. </method>
  29836. <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;"
  29837. transient="false" volatile="false"
  29838. static="true" final="true" visibility="protected"
  29839. deprecated="not deprecated">
  29840. </field>
  29841. <field name="id" type="int"
  29842. transient="false" volatile="false"
  29843. static="false" final="false" visibility="protected"
  29844. deprecated="not deprecated">
  29845. </field>
  29846. <field name="ident" type="java.lang.String"
  29847. transient="false" volatile="false"
  29848. static="false" final="false" visibility="protected"
  29849. deprecated="not deprecated">
  29850. </field>
  29851. <field name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  29852. transient="false" volatile="false"
  29853. static="false" final="false" visibility="protected"
  29854. deprecated="not deprecated">
  29855. </field>
  29856. </class>
  29857. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  29858. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  29859. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  29860. abstract="false"
  29861. static="true" final="false" visibility="public"
  29862. deprecated="not deprecated">
  29863. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  29864. abstract="false" native="false" synchronized="false"
  29865. static="false" final="false" visibility="public"
  29866. deprecated="not deprecated">
  29867. </method>
  29868. </class>
  29869. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  29870. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  29871. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  29872. abstract="false"
  29873. static="true" final="false" visibility="public"
  29874. deprecated="not deprecated">
  29875. <constructor name="Parser.NumToken" type="double"
  29876. static="false" final="false" visibility="public"
  29877. deprecated="not deprecated">
  29878. </constructor>
  29879. <method name="getNum" return="double"
  29880. abstract="false" native="false" synchronized="false"
  29881. static="false" final="false" visibility="public"
  29882. deprecated="not deprecated">
  29883. </method>
  29884. </class>
  29885. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  29886. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  29887. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  29888. abstract="false"
  29889. static="true" final="false" visibility="public"
  29890. deprecated="not deprecated">
  29891. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  29892. static="false" final="false" visibility="public"
  29893. deprecated="not deprecated">
  29894. </constructor>
  29895. <method name="getStr" return="java.lang.String"
  29896. abstract="false" native="false" synchronized="false"
  29897. static="false" final="false" visibility="public"
  29898. deprecated="not deprecated">
  29899. </method>
  29900. </class>
  29901. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  29902. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  29903. <class name="Parser.Token" extends="java.lang.Object"
  29904. abstract="false"
  29905. static="true" final="false" visibility="public"
  29906. deprecated="not deprecated">
  29907. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  29908. abstract="false" native="false" synchronized="false"
  29909. static="false" final="false" visibility="public"
  29910. deprecated="not deprecated">
  29911. </method>
  29912. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  29913. abstract="false" native="false" synchronized="false"
  29914. static="false" final="false" visibility="public"
  29915. deprecated="not deprecated">
  29916. <exception name="IOException" type="java.io.IOException"/>
  29917. </method>
  29918. <method name="getNum" return="double"
  29919. abstract="false" native="false" synchronized="false"
  29920. static="false" final="false" visibility="public"
  29921. deprecated="not deprecated">
  29922. <exception name="IOException" type="java.io.IOException"/>
  29923. </method>
  29924. <method name="getStr" return="java.lang.String"
  29925. abstract="false" native="false" synchronized="false"
  29926. static="false" final="false" visibility="public"
  29927. deprecated="not deprecated">
  29928. <exception name="IOException" type="java.io.IOException"/>
  29929. </method>
  29930. <doc>
  29931. <![CDATA[Tagged-union type for tokens from the join expression.
  29932. @see Parser.TType]]>
  29933. </doc>
  29934. </class>
  29935. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  29936. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  29937. <class name="Parser.TType" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.join.Parser.TType&gt;"
  29938. abstract="false"
  29939. static="true" final="true" visibility="public"
  29940. deprecated="not deprecated">
  29941. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  29942. abstract="false" native="false" synchronized="false"
  29943. static="true" final="false" visibility="public"
  29944. deprecated="not deprecated">
  29945. </method>
  29946. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  29947. abstract="false" native="false" synchronized="false"
  29948. static="true" final="false" visibility="public"
  29949. deprecated="not deprecated">
  29950. <param name="name" type="java.lang.String"/>
  29951. </method>
  29952. </class>
  29953. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  29954. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  29955. <interface name="ResetableIterator" abstract="true"
  29956. static="false" final="false" visibility="public"
  29957. deprecated="not deprecated">
  29958. <method name="hasNext" return="boolean"
  29959. abstract="false" native="false" synchronized="false"
  29960. static="false" final="false" visibility="public"
  29961. deprecated="not deprecated">
  29962. <doc>
  29963. <![CDATA[True iff a call to next will succeed.]]>
  29964. </doc>
  29965. </method>
  29966. <method name="next" return="boolean"
  29967. abstract="false" native="false" synchronized="false"
  29968. static="false" final="false" visibility="public"
  29969. deprecated="not deprecated">
  29970. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  29971. <exception name="IOException" type="java.io.IOException"/>
  29972. <doc>
  29973. <![CDATA[Assign next value to actual.
  29974. It is required that elements added to a ResetableIterator be returned in
  29975. the same order after a call to {@link #reset} (FIFO).
  29976. Note that a call to this may fail for nested joins (i.e. more elements
  29977. available, but none satisfying the constraints of the join)]]>
  29978. </doc>
  29979. </method>
  29980. <method name="replay"
  29981. abstract="false" native="false" synchronized="false"
  29982. static="false" final="false" visibility="public"
  29983. deprecated="not deprecated">
  29984. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  29985. <exception name="IOException" type="java.io.IOException"/>
  29986. <doc>
  29987. <![CDATA[Assign last value returned to actual.]]>
  29988. </doc>
  29989. </method>
  29990. <method name="reset"
  29991. abstract="false" native="false" synchronized="false"
  29992. static="false" final="false" visibility="public"
  29993. deprecated="not deprecated">
  29994. <doc>
  29995. <![CDATA[Set iterator to return to the start of its range. Must be called after
  29996. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  29997. </doc>
  29998. </method>
  29999. <method name="add"
  30000. abstract="false" native="false" synchronized="false"
  30001. static="false" final="false" visibility="public"
  30002. deprecated="not deprecated">
  30003. <param name="item" type="T extends org.apache.hadoop.io.Writable"/>
  30004. <exception name="IOException" type="java.io.IOException"/>
  30005. <doc>
  30006. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  30007. </doc>
  30008. </method>
  30009. <method name="close"
  30010. abstract="false" native="false" synchronized="false"
  30011. static="false" final="false" visibility="public"
  30012. deprecated="not deprecated">
  30013. <exception name="IOException" type="java.io.IOException"/>
  30014. <doc>
  30015. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  30016. after calling close has undefined behavior.]]>
  30017. </doc>
  30018. </method>
  30019. <method name="clear"
  30020. abstract="false" native="false" synchronized="false"
  30021. static="false" final="false" visibility="public"
  30022. deprecated="not deprecated">
  30023. <doc>
  30024. <![CDATA[Close datasources, but do not release internal resources. Calling this
  30025. method should permit the object to be reused with a different datasource.]]>
  30026. </doc>
  30027. </method>
  30028. <doc>
  30029. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  30030. added to it directly.
  30031. Note that this does not extend {@link java.util.Iterator}.]]>
  30032. </doc>
  30033. </interface>
  30034. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  30035. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  30036. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  30037. abstract="false"
  30038. static="true" final="false" visibility="public"
  30039. deprecated="not deprecated">
  30040. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;U&gt;"/>
  30041. <constructor name="ResetableIterator.EMPTY"
  30042. static="false" final="false" visibility="public"
  30043. deprecated="not deprecated">
  30044. </constructor>
  30045. <method name="hasNext" return="boolean"
  30046. abstract="false" native="false" synchronized="false"
  30047. static="false" final="false" visibility="public"
  30048. deprecated="not deprecated">
  30049. </method>
  30050. <method name="reset"
  30051. abstract="false" native="false" synchronized="false"
  30052. static="false" final="false" visibility="public"
  30053. deprecated="not deprecated">
  30054. </method>
  30055. <method name="close"
  30056. abstract="false" native="false" synchronized="false"
  30057. static="false" final="false" visibility="public"
  30058. deprecated="not deprecated">
  30059. <exception name="IOException" type="java.io.IOException"/>
  30060. </method>
  30061. <method name="clear"
  30062. abstract="false" native="false" synchronized="false"
  30063. static="false" final="false" visibility="public"
  30064. deprecated="not deprecated">
  30065. </method>
  30066. <method name="next" return="boolean"
  30067. abstract="false" native="false" synchronized="false"
  30068. static="false" final="false" visibility="public"
  30069. deprecated="not deprecated">
  30070. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  30071. <exception name="IOException" type="java.io.IOException"/>
  30072. </method>
  30073. <method name="replay"
  30074. abstract="false" native="false" synchronized="false"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  30078. <exception name="IOException" type="java.io.IOException"/>
  30079. </method>
  30080. <method name="add"
  30081. abstract="false" native="false" synchronized="false"
  30082. static="false" final="false" visibility="public"
  30083. deprecated="not deprecated">
  30084. <param name="item" type="U extends org.apache.hadoop.io.Writable"/>
  30085. <exception name="IOException" type="java.io.IOException"/>
  30086. </method>
  30087. </class>
  30088. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  30089. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  30090. <class name="StreamBackedIterator" extends="java.lang.Object"
  30091. abstract="false"
  30092. static="false" final="false" visibility="public"
  30093. deprecated="not deprecated">
  30094. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  30095. <constructor name="StreamBackedIterator"
  30096. static="false" final="false" visibility="public"
  30097. deprecated="not deprecated">
  30098. </constructor>
  30099. <method name="hasNext" return="boolean"
  30100. abstract="false" native="false" synchronized="false"
  30101. static="false" final="false" visibility="public"
  30102. deprecated="not deprecated">
  30103. </method>
  30104. <method name="next" return="boolean"
  30105. abstract="false" native="false" synchronized="false"
  30106. static="false" final="false" visibility="public"
  30107. deprecated="not deprecated">
  30108. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  30109. <exception name="IOException" type="java.io.IOException"/>
  30110. </method>
  30111. <method name="replay"
  30112. abstract="false" native="false" synchronized="false"
  30113. static="false" final="false" visibility="public"
  30114. deprecated="not deprecated">
  30115. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  30116. <exception name="IOException" type="java.io.IOException"/>
  30117. </method>
  30118. <method name="reset"
  30119. abstract="false" native="false" synchronized="false"
  30120. static="false" final="false" visibility="public"
  30121. deprecated="not deprecated">
  30122. </method>
  30123. <method name="add"
  30124. abstract="false" native="false" synchronized="false"
  30125. static="false" final="false" visibility="public"
  30126. deprecated="not deprecated">
  30127. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  30128. <exception name="IOException" type="java.io.IOException"/>
  30129. </method>
  30130. <method name="close"
  30131. abstract="false" native="false" synchronized="false"
  30132. static="false" final="false" visibility="public"
  30133. deprecated="not deprecated">
  30134. <exception name="IOException" type="java.io.IOException"/>
  30135. </method>
  30136. <method name="clear"
  30137. abstract="false" native="false" synchronized="false"
  30138. static="false" final="false" visibility="public"
  30139. deprecated="not deprecated">
  30140. </method>
  30141. <doc>
  30142. <![CDATA[This class provides an implementation of ResetableIterator. This
  30143. implementation uses a byte array to store elements added to it.]]>
  30144. </doc>
  30145. </class>
  30146. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  30147. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  30148. <class name="TupleWritable" extends="java.lang.Object"
  30149. abstract="false"
  30150. static="false" final="false" visibility="public"
  30151. deprecated="not deprecated">
  30152. <implements name="org.apache.hadoop.io.Writable"/>
  30153. <implements name="java.lang.Iterable&lt;org.apache.hadoop.io.Writable&gt;"/>
  30154. <constructor name="TupleWritable"
  30155. static="false" final="false" visibility="public"
  30156. deprecated="not deprecated">
  30157. <doc>
  30158. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  30159. </doc>
  30160. </constructor>
  30161. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  30162. static="false" final="false" visibility="public"
  30163. deprecated="not deprecated">
  30164. <doc>
  30165. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  30166. &quot;written&quot; values.]]>
  30167. </doc>
  30168. </constructor>
  30169. <method name="has" return="boolean"
  30170. abstract="false" native="false" synchronized="false"
  30171. static="false" final="false" visibility="public"
  30172. deprecated="not deprecated">
  30173. <param name="i" type="int"/>
  30174. <doc>
  30175. <![CDATA[Return true if tuple has an element at the position provided.]]>
  30176. </doc>
  30177. </method>
  30178. <method name="get" return="org.apache.hadoop.io.Writable"
  30179. abstract="false" native="false" synchronized="false"
  30180. static="false" final="false" visibility="public"
  30181. deprecated="not deprecated">
  30182. <param name="i" type="int"/>
  30183. <doc>
  30184. <![CDATA[Get ith Writable from Tuple.]]>
  30185. </doc>
  30186. </method>
  30187. <method name="size" return="int"
  30188. abstract="false" native="false" synchronized="false"
  30189. static="false" final="false" visibility="public"
  30190. deprecated="not deprecated">
  30191. <doc>
  30192. <![CDATA[The number of children in this Tuple.]]>
  30193. </doc>
  30194. </method>
  30195. <method name="equals" return="boolean"
  30196. abstract="false" native="false" synchronized="false"
  30197. static="false" final="false" visibility="public"
  30198. deprecated="not deprecated">
  30199. <param name="other" type="java.lang.Object"/>
  30200. <doc>
  30201. <![CDATA[{@inheritDoc}]]>
  30202. </doc>
  30203. </method>
  30204. <method name="hashCode" return="int"
  30205. abstract="false" native="false" synchronized="false"
  30206. static="false" final="false" visibility="public"
  30207. deprecated="not deprecated">
  30208. </method>
  30209. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.io.Writable&gt;"
  30210. abstract="false" native="false" synchronized="false"
  30211. static="false" final="false" visibility="public"
  30212. deprecated="not deprecated">
  30213. <doc>
  30214. <![CDATA[Return an iterator over the elements in this tuple.
  30215. Note that this doesn't flatten the tuple; one may receive tuples
  30216. from this iterator.]]>
  30217. </doc>
  30218. </method>
  30219. <method name="toString" return="java.lang.String"
  30220. abstract="false" native="false" synchronized="false"
  30221. static="false" final="false" visibility="public"
  30222. deprecated="not deprecated">
  30223. <doc>
  30224. <![CDATA[Convert Tuple to String as in the following.
  30225. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  30226. </doc>
  30227. </method>
  30228. <method name="write"
  30229. abstract="false" native="false" synchronized="false"
  30230. static="false" final="false" visibility="public"
  30231. deprecated="not deprecated">
  30232. <param name="out" type="java.io.DataOutput"/>
  30233. <exception name="IOException" type="java.io.IOException"/>
  30234. <doc>
  30235. <![CDATA[Writes each Writable to <code>out</code>.
  30236. TupleWritable format:
  30237. {@code
  30238. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  30239. }]]>
  30240. </doc>
  30241. </method>
  30242. <method name="readFields"
  30243. abstract="false" native="false" synchronized="false"
  30244. static="false" final="false" visibility="public"
  30245. deprecated="not deprecated">
  30246. <param name="in" type="java.io.DataInput"/>
  30247. <exception name="IOException" type="java.io.IOException"/>
  30248. <doc>
  30249. <![CDATA[{@inheritDoc}]]>
  30250. </doc>
  30251. </method>
  30252. <doc>
  30253. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.]]>
  30254. </doc>
  30255. </class>
  30256. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  30257. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  30258. <class name="WrappedRecordReader" extends="java.lang.Object"
  30259. abstract="false"
  30260. static="false" final="false" visibility="public"
  30261. deprecated="not deprecated">
  30262. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, U&gt;"/>
  30263. <method name="id" return="int"
  30264. abstract="false" native="false" synchronized="false"
  30265. static="false" final="false" visibility="public"
  30266. deprecated="not deprecated">
  30267. <doc>
  30268. <![CDATA[{@inheritDoc}]]>
  30269. </doc>
  30270. </method>
  30271. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  30272. abstract="false" native="false" synchronized="false"
  30273. static="false" final="false" visibility="public"
  30274. deprecated="not deprecated">
  30275. <doc>
  30276. <![CDATA[Return the key at the head of this RR.]]>
  30277. </doc>
  30278. </method>
  30279. <method name="key"
  30280. abstract="false" native="false" synchronized="false"
  30281. static="false" final="false" visibility="public"
  30282. deprecated="not deprecated">
  30283. <param name="qkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30284. <exception name="IOException" type="java.io.IOException"/>
  30285. <doc>
  30286. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  30287. </doc>
  30288. </method>
  30289. <method name="hasNext" return="boolean"
  30290. abstract="false" native="false" synchronized="false"
  30291. static="false" final="false" visibility="public"
  30292. deprecated="not deprecated">
  30293. <doc>
  30294. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  30295. is exhausted.]]>
  30296. </doc>
  30297. </method>
  30298. <method name="skip"
  30299. abstract="false" native="false" synchronized="false"
  30300. static="false" final="false" visibility="public"
  30301. deprecated="not deprecated">
  30302. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30303. <exception name="IOException" type="java.io.IOException"/>
  30304. <doc>
  30305. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  30306. </doc>
  30307. </method>
  30308. <method name="next" return="boolean"
  30309. abstract="false" native="false" synchronized="false"
  30310. static="false" final="false" visibility="protected"
  30311. deprecated="not deprecated">
  30312. <exception name="IOException" type="java.io.IOException"/>
  30313. <doc>
  30314. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  30315. the RR and this are exhausted.]]>
  30316. </doc>
  30317. </method>
  30318. <method name="accept"
  30319. abstract="false" native="false" synchronized="false"
  30320. static="false" final="false" visibility="public"
  30321. deprecated="not deprecated">
  30322. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  30323. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30324. <exception name="IOException" type="java.io.IOException"/>
  30325. <doc>
  30326. <![CDATA[Add an iterator to the collector at the position occupied by this
  30327. RecordReader over the values in this stream paired with the key
  30328. provided (ie register a stream of values from this source matching K
  30329. with a collector).]]>
  30330. </doc>
  30331. </method>
  30332. <method name="next" return="boolean"
  30333. abstract="false" native="false" synchronized="false"
  30334. static="false" final="false" visibility="public"
  30335. deprecated="not deprecated">
  30336. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30337. <param name="value" type="U extends org.apache.hadoop.io.Writable"/>
  30338. <exception name="IOException" type="java.io.IOException"/>
  30339. <doc>
  30340. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  30341. get next key-value pair from proxied RR.]]>
  30342. </doc>
  30343. </method>
  30344. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  30345. abstract="false" native="false" synchronized="false"
  30346. static="false" final="false" visibility="public"
  30347. deprecated="not deprecated">
  30348. <doc>
  30349. <![CDATA[Request new key from proxied RR.]]>
  30350. </doc>
  30351. </method>
  30352. <method name="createValue" return="U extends org.apache.hadoop.io.Writable"
  30353. abstract="false" native="false" synchronized="false"
  30354. static="false" final="false" visibility="public"
  30355. deprecated="not deprecated">
  30356. <doc>
  30357. <![CDATA[Request new value from proxied RR.]]>
  30358. </doc>
  30359. </method>
  30360. <method name="getProgress" return="float"
  30361. abstract="false" native="false" synchronized="false"
  30362. static="false" final="false" visibility="public"
  30363. deprecated="not deprecated">
  30364. <exception name="IOException" type="java.io.IOException"/>
  30365. <doc>
  30366. <![CDATA[Request progress from proxied RR.]]>
  30367. </doc>
  30368. </method>
  30369. <method name="getPos" return="long"
  30370. abstract="false" native="false" synchronized="false"
  30371. static="false" final="false" visibility="public"
  30372. deprecated="not deprecated">
  30373. <exception name="IOException" type="java.io.IOException"/>
  30374. <doc>
  30375. <![CDATA[Request position from proxied RR.]]>
  30376. </doc>
  30377. </method>
  30378. <method name="close"
  30379. abstract="false" native="false" synchronized="false"
  30380. static="false" final="false" visibility="public"
  30381. deprecated="not deprecated">
  30382. <exception name="IOException" type="java.io.IOException"/>
  30383. <doc>
  30384. <![CDATA[Forward close request to proxied RR.]]>
  30385. </doc>
  30386. </method>
  30387. <method name="compareTo" return="int"
  30388. abstract="false" native="false" synchronized="false"
  30389. static="false" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  30392. <doc>
  30393. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  30394. with that of another).]]>
  30395. </doc>
  30396. </method>
  30397. <method name="equals" return="boolean"
  30398. abstract="false" native="false" synchronized="false"
  30399. static="false" final="false" visibility="public"
  30400. deprecated="not deprecated">
  30401. <param name="other" type="java.lang.Object"/>
  30402. <doc>
  30403. <![CDATA[Return true iff compareTo(other) retn true.]]>
  30404. </doc>
  30405. </method>
  30406. <method name="hashCode" return="int"
  30407. abstract="false" native="false" synchronized="false"
  30408. static="false" final="false" visibility="public"
  30409. deprecated="not deprecated">
  30410. </method>
  30411. <doc>
  30412. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  30413. This class keeps track of the &quot;head&quot; key-value pair for the
  30414. provided RecordReader and keeps a store of values matching a key when
  30415. this source is participating in a join.]]>
  30416. </doc>
  30417. </class>
  30418. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  30419. <doc>
  30420. <![CDATA[<p>Given a set of sorted datasets keyed with the same class and yielding equal
  30421. partitions, it is possible to effect a join of those datasets prior to the map.
  30422. This could save costs in re-partitioning, sorting, shuffling, and writing out
  30423. data required in the general case.</p>
  30424. <h3><a name="Interface"></a>Interface</h3>
  30425. <p>The attached code offers the following interface to users of these
  30426. classes.</p>
  30427. <table>
  30428. <tr><th>property</th><th>required</th><th>value</th></tr>
  30429. <tr><td>mapred.join.expr</td><td>yes</td>
  30430. <td>Join expression to effect over input data</td></tr>
  30431. <tr><td>mapred.join.keycomparator</td><td>no</td>
  30432. <td><tt>WritableComparator</tt> class to use for comparing keys</td></tr>
  30433. <tr><td>mapred.join.define.&lt;ident&gt;</td><td>no</td>
  30434. <td>Class mapped to identifier in join expression</td></tr>
  30435. </table>
  30436. <p>The join expression understands the following grammar:</p>
  30437. <pre>func ::= &lt;ident&gt;([&lt;func&gt;,]*&lt;func&gt;)
  30438. func ::= tbl(&lt;class&gt;,"&lt;path&gt;");
  30439. </pre>
  30440. <p>Operations included in this patch are partitioned into one of two types:
  30441. join operations emitting tuples and "multi-filter" operations emitting a
  30442. single value from (but not necessarily included in) a set of input values.
  30443. For a given key, each operation will consider the cross product of all
  30444. values for all sources at that node.</p>
  30445. <p>Identifiers supported by default:</p>
  30446. <table>
  30447. <tr><th>identifier</th><th>type</th><th>description</th></tr>
  30448. <tr><td>inner</td><td>Join</td><td>Full inner join</td></tr>
  30449. <tr><td>outer</td><td>Join</td><td>Full outer join</td></tr>
  30450. <tr><td>override</td><td>MultiFilter</td>
  30451. <td>For a given key, prefer values from the rightmost source</td></tr>
  30452. </table>
  30453. <p>A user of this class must set the <tt>InputFormat</tt> for the job to
  30454. <tt>CompositeInputFormat</tt> and define a join expression accepted by the
  30455. preceding grammar. For example, both of the following are acceptable:</p>
  30456. <pre>inner(tbl(org.apache.hadoop.mapred.SequenceFileInputFormat.class,
  30457. "hdfs://host:8020/foo/bar"),
  30458. tbl(org.apache.hadoop.mapred.SequenceFileInputFormat.class,
  30459. "hdfs://host:8020/foo/baz"))
  30460. outer(override(tbl(org.apache.hadoop.mapred.SequenceFileInputFormat.class,
  30461. "hdfs://host:8020/foo/bar"),
  30462. tbl(org.apache.hadoop.mapred.SequenceFileInputFormat.class,
  30463. "hdfs://host:8020/foo/baz")),
  30464. tbl(org.apache.hadoop.mapred/SequenceFileInputFormat.class,
  30465. "hdfs://host:8020/foo/rab"))
  30466. </pre>
  30467. <p><tt>CompositeInputFormat</tt> includes a handful of convenience methods to
  30468. aid construction of these verbose statements.</p>
  30469. <p>As in the second example, joins may be nested. Users may provide a
  30470. comparator class in the <tt>mapred.join.keycomparator</tt> property to specify
  30471. the ordering of their keys, or accept the default comparator as returned by
  30472. <tt>WritableComparator.get(keyclass)</tt>.</p>
  30473. <p>Users can specify their own join operations, typically by overriding
  30474. <tt>JoinRecordReader</tt> or <tt>MultiFilterRecordReader</tt> and mapping that
  30475. class to an identifier in the join expression using the
  30476. <tt>mapred.join.define.<em>ident</em></tt> property, where <em>ident</em> is
  30477. the identifier appearing in the join expression. Users may elect to emit- or
  30478. modify- values passing through their join operation. Consulting the existing
  30479. operations for guidance is recommended. Adding arguments is considerably more
  30480. complex (and only partially supported), as one must also add a <tt>Node</tt>
  30481. type to the parse tree. One is probably better off extending
  30482. <tt>RecordReader</tt> in most cases.</p>
  30483. <a href="http://issues.apache.org/jira/browse/HADOOP-2085">JIRA</a>]]>
  30484. </doc>
  30485. </package>
  30486. <package name="org.apache.hadoop.mapred.lib">
  30487. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  30488. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  30489. abstract="false"
  30490. static="false" final="false" visibility="public"
  30491. deprecated="not deprecated">
  30492. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  30493. <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;"/>
  30494. <constructor name="FieldSelectionMapReduce"
  30495. static="false" final="false" visibility="public"
  30496. deprecated="not deprecated">
  30497. </constructor>
  30498. <method name="map"
  30499. abstract="false" native="false" synchronized="false"
  30500. static="false" final="false" visibility="public"
  30501. deprecated="not deprecated">
  30502. <param name="key" type="K"/>
  30503. <param name="val" type="V"/>
  30504. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  30505. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30506. <exception name="IOException" type="java.io.IOException"/>
  30507. <doc>
  30508. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  30509. </doc>
  30510. </method>
  30511. <method name="configure"
  30512. abstract="false" native="false" synchronized="false"
  30513. static="false" final="false" visibility="public"
  30514. deprecated="not deprecated">
  30515. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30516. </method>
  30517. <method name="close"
  30518. abstract="false" native="false" synchronized="false"
  30519. static="false" final="false" visibility="public"
  30520. deprecated="not deprecated">
  30521. <exception name="IOException" type="java.io.IOException"/>
  30522. </method>
  30523. <method name="reduce"
  30524. abstract="false" native="false" synchronized="false"
  30525. static="false" final="false" visibility="public"
  30526. deprecated="not deprecated">
  30527. <param name="key" type="org.apache.hadoop.io.Text"/>
  30528. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  30529. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  30530. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30531. <exception name="IOException" type="java.io.IOException"/>
  30532. </method>
  30533. <field name="LOG" type="org.apache.commons.logging.Log"
  30534. transient="false" volatile="false"
  30535. static="true" final="true" visibility="public"
  30536. deprecated="not deprecated">
  30537. </field>
  30538. <doc>
  30539. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  30540. field selections in a manner similar to unix cut. The input data is treated
  30541. as fields separated by a user specified separator (the default value is
  30542. "\t"). The user can specify a list of fields that form the map output keys,
  30543. and a list of fields that form the map output values. If the inputformat is
  30544. TextInputFormat, the mapper will ignore the key to the map function. and the
  30545. fields are from the value only. Otherwise, the fields are the union of those
  30546. from the key and those from the value.
  30547. The field separator is under attribute "mapred.data.field.separator"
  30548. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  30549. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  30550. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  30551. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  30552. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  30553. the fields starting from field 3. The open range field spec applies value fields only.
  30554. They have no effect on the key fields.
  30555. 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,
  30556. and use fields 6,5,1,2,3,7 and above for values.
  30557. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  30558. The reducer extracts output key/value pairs in a similar manner, except that
  30559. the key is never ignored.]]>
  30560. </doc>
  30561. </class>
  30562. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  30563. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  30564. <class name="HashPartitioner" extends="java.lang.Object"
  30565. abstract="false"
  30566. static="false" final="false" visibility="public"
  30567. deprecated="not deprecated">
  30568. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  30569. <constructor name="HashPartitioner"
  30570. static="false" final="false" visibility="public"
  30571. deprecated="not deprecated">
  30572. </constructor>
  30573. <method name="configure"
  30574. abstract="false" native="false" synchronized="false"
  30575. static="false" final="false" visibility="public"
  30576. deprecated="not deprecated">
  30577. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30578. </method>
  30579. <method name="getPartition" return="int"
  30580. abstract="false" native="false" synchronized="false"
  30581. static="false" final="false" visibility="public"
  30582. deprecated="not deprecated">
  30583. <param name="key" type="K2"/>
  30584. <param name="value" type="V2"/>
  30585. <param name="numReduceTasks" type="int"/>
  30586. <doc>
  30587. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  30588. </doc>
  30589. </method>
  30590. <doc>
  30591. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  30592. </doc>
  30593. </class>
  30594. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  30595. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  30596. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  30597. abstract="false"
  30598. static="false" final="false" visibility="public"
  30599. deprecated="not deprecated">
  30600. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, K, V&gt;"/>
  30601. <constructor name="IdentityMapper"
  30602. static="false" final="false" visibility="public"
  30603. deprecated="not deprecated">
  30604. </constructor>
  30605. <method name="map"
  30606. abstract="false" native="false" synchronized="false"
  30607. static="false" final="false" visibility="public"
  30608. deprecated="not deprecated">
  30609. <param name="key" type="K"/>
  30610. <param name="val" type="V"/>
  30611. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  30612. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30613. <exception name="IOException" type="java.io.IOException"/>
  30614. <doc>
  30615. <![CDATA[The identify function. Input key/value pair is written directly to
  30616. output.]]>
  30617. </doc>
  30618. </method>
  30619. <doc>
  30620. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  30621. </doc>
  30622. </class>
  30623. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  30624. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  30625. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  30626. abstract="false"
  30627. static="false" final="false" visibility="public"
  30628. deprecated="not deprecated">
  30629. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, V, K, V&gt;"/>
  30630. <constructor name="IdentityReducer"
  30631. static="false" final="false" visibility="public"
  30632. deprecated="not deprecated">
  30633. </constructor>
  30634. <method name="reduce"
  30635. abstract="false" native="false" synchronized="false"
  30636. static="false" final="false" visibility="public"
  30637. deprecated="not deprecated">
  30638. <param name="key" type="K"/>
  30639. <param name="values" type="java.util.Iterator&lt;V&gt;"/>
  30640. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  30641. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30642. <exception name="IOException" type="java.io.IOException"/>
  30643. <doc>
  30644. <![CDATA[Writes all keys and values directly to output.]]>
  30645. </doc>
  30646. </method>
  30647. <doc>
  30648. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  30649. </doc>
  30650. </class>
  30651. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  30652. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  30653. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  30654. abstract="false"
  30655. static="false" final="false" visibility="public"
  30656. deprecated="not deprecated">
  30657. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, V, K&gt;"/>
  30658. <constructor name="InverseMapper"
  30659. static="false" final="false" visibility="public"
  30660. deprecated="not deprecated">
  30661. </constructor>
  30662. <method name="map"
  30663. abstract="false" native="false" synchronized="false"
  30664. static="false" final="false" visibility="public"
  30665. deprecated="not deprecated">
  30666. <param name="key" type="K"/>
  30667. <param name="value" type="V"/>
  30668. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;V, K&gt;"/>
  30669. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30670. <exception name="IOException" type="java.io.IOException"/>
  30671. <doc>
  30672. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  30673. </doc>
  30674. </method>
  30675. <doc>
  30676. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  30677. </doc>
  30678. </class>
  30679. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  30680. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  30681. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  30682. abstract="false"
  30683. static="false" final="false" visibility="public"
  30684. deprecated="not deprecated">
  30685. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  30686. <constructor name="KeyFieldBasedPartitioner"
  30687. static="false" final="false" visibility="public"
  30688. deprecated="not deprecated">
  30689. </constructor>
  30690. <method name="configure"
  30691. abstract="false" native="false" synchronized="false"
  30692. static="false" final="false" visibility="public"
  30693. deprecated="not deprecated">
  30694. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30695. </method>
  30696. <method name="getPartition" return="int"
  30697. abstract="false" native="false" synchronized="false"
  30698. static="false" final="false" visibility="public"
  30699. deprecated="not deprecated">
  30700. <param name="key" type="K2"/>
  30701. <param name="value" type="V2"/>
  30702. <param name="numReduceTasks" type="int"/>
  30703. <doc>
  30704. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  30705. </doc>
  30706. </method>
  30707. </class>
  30708. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  30709. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  30710. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  30711. abstract="false"
  30712. static="false" final="false" visibility="public"
  30713. deprecated="not deprecated">
  30714. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, org.apache.hadoop.io.LongWritable, K, org.apache.hadoop.io.LongWritable&gt;"/>
  30715. <constructor name="LongSumReducer"
  30716. static="false" final="false" visibility="public"
  30717. deprecated="not deprecated">
  30718. </constructor>
  30719. <method name="reduce"
  30720. abstract="false" native="false" synchronized="false"
  30721. static="false" final="false" visibility="public"
  30722. deprecated="not deprecated">
  30723. <param name="key" type="K"/>
  30724. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.LongWritable&gt;"/>
  30725. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, org.apache.hadoop.io.LongWritable&gt;"/>
  30726. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30727. <exception name="IOException" type="java.io.IOException"/>
  30728. </method>
  30729. <doc>
  30730. <![CDATA[A {@link Reducer} that sums long values.]]>
  30731. </doc>
  30732. </class>
  30733. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  30734. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  30735. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  30736. abstract="true"
  30737. static="false" final="false" visibility="public"
  30738. deprecated="not deprecated">
  30739. <constructor name="MultipleOutputFormat"
  30740. static="false" final="false" visibility="public"
  30741. deprecated="not deprecated">
  30742. </constructor>
  30743. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30744. abstract="false" native="false" synchronized="false"
  30745. static="false" final="false" visibility="public"
  30746. deprecated="not deprecated">
  30747. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30748. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30749. <param name="name" type="java.lang.String"/>
  30750. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30751. <exception name="IOException" type="java.io.IOException"/>
  30752. <doc>
  30753. <![CDATA[Create a composite record writer that can write key/value data to different
  30754. output files
  30755. @param fs
  30756. the file system to use
  30757. @param job
  30758. the job conf for the job
  30759. @param name
  30760. the leaf file name for the output file (such as part-00000")
  30761. @param arg3
  30762. a progressable for reporting progress.
  30763. @return a composite record writer
  30764. @throws IOException]]>
  30765. </doc>
  30766. </method>
  30767. <method name="generateLeafFileName" return="java.lang.String"
  30768. abstract="false" native="false" synchronized="false"
  30769. static="false" final="false" visibility="protected"
  30770. deprecated="not deprecated">
  30771. <param name="name" type="java.lang.String"/>
  30772. <doc>
  30773. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  30774. not change the leaf file name (such as part-00000)
  30775. @param name
  30776. the leaf file name for the output file
  30777. @return the given leaf file name]]>
  30778. </doc>
  30779. </method>
  30780. <method name="generateFileNameForKeyValue" return="java.lang.String"
  30781. abstract="false" native="false" synchronized="false"
  30782. static="false" final="false" visibility="protected"
  30783. deprecated="not deprecated">
  30784. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30785. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  30786. <param name="name" type="java.lang.String"/>
  30787. <doc>
  30788. <![CDATA[Generate the file output file name based on the given key and the leaf file
  30789. name. The default behavior is that the file name does not depend on the
  30790. key.
  30791. @param key
  30792. the key of the output data
  30793. @param name
  30794. the leaf file name
  30795. @return generated file name]]>
  30796. </doc>
  30797. </method>
  30798. <method name="generateActualKey" return="K extends org.apache.hadoop.io.WritableComparable"
  30799. abstract="false" native="false" synchronized="false"
  30800. static="false" final="false" visibility="protected"
  30801. deprecated="not deprecated">
  30802. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30803. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  30804. <doc>
  30805. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  30806. the actual key is equal to the given key
  30807. @param key
  30808. the key of the output data
  30809. @param value
  30810. the value of the output data
  30811. @return the actual key derived from the given key/value]]>
  30812. </doc>
  30813. </method>
  30814. <method name="generateActualValue" return="V extends org.apache.hadoop.io.Writable"
  30815. abstract="false" native="false" synchronized="false"
  30816. static="false" final="false" visibility="protected"
  30817. deprecated="not deprecated">
  30818. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  30819. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  30820. <doc>
  30821. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  30822. the actual value is equal to the given value
  30823. @param key
  30824. the key of the output data
  30825. @param value
  30826. the value of the output data
  30827. @return the actual value derived from the given key/value]]>
  30828. </doc>
  30829. </method>
  30830. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  30831. abstract="false" native="false" synchronized="false"
  30832. static="false" final="false" visibility="protected"
  30833. deprecated="not deprecated">
  30834. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30835. <param name="name" type="java.lang.String"/>
  30836. <doc>
  30837. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  30838. the map input file does not exists (i.e. this is not for a map only job),
  30839. the given name is returned unchanged. If the config value for
  30840. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  30841. name is returned unchanged. Otherwise, return a file name consisting of the
  30842. N trailing legs of the input file name where N is the config value for
  30843. "num.of.trailing.legs.to.use".
  30844. @param job
  30845. the job config
  30846. @param name
  30847. the output file name
  30848. @return the outfile name based on a given anme and the input file name.]]>
  30849. </doc>
  30850. </method>
  30851. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30852. abstract="true" native="false" synchronized="false"
  30853. static="false" final="false" visibility="protected"
  30854. deprecated="not deprecated">
  30855. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30856. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30857. <param name="name" type="java.lang.String"/>
  30858. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30859. <exception name="IOException" type="java.io.IOException"/>
  30860. <doc>
  30861. <![CDATA[@param fs
  30862. the file system to use
  30863. @param job
  30864. a job conf object
  30865. @param name
  30866. the name of the file over which a record writer object will be
  30867. constructed
  30868. @param arg3
  30869. a progressable object
  30870. @return A RecordWriter object over the given file
  30871. @throws IOException]]>
  30872. </doc>
  30873. </method>
  30874. <doc>
  30875. <![CDATA[This abstract class extends the OutputFormatBase, allowing to write the
  30876. output data to different output files. There are three basic use cases for
  30877. this class.
  30878. Case one: This class is used for a map reduce job with at least one reducer.
  30879. The reducer wants to write data to different files depending on the actual
  30880. keys. It is assumed that a key (or value) enocodes the actual key (value)
  30881. and the desired location for the actual key (value).
  30882. Case two: Tis class is used for a map only job. The job wants to use an
  30883. output file name that is either a part of the input file name of the input
  30884. data, or some derivation of it.
  30885. Case three: This class is used for a map only job. The job wants to use an
  30886. output file name that depends on both the keys and the input file name,]]>
  30887. </doc>
  30888. </class>
  30889. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  30890. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  30891. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  30892. abstract="false"
  30893. static="false" final="false" visibility="public"
  30894. deprecated="not deprecated">
  30895. <constructor name="MultipleSequenceFileOutputFormat"
  30896. static="false" final="false" visibility="public"
  30897. deprecated="not deprecated">
  30898. </constructor>
  30899. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  30900. abstract="false" native="false" synchronized="false"
  30901. static="false" final="false" visibility="protected"
  30902. deprecated="not deprecated">
  30903. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30904. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30905. <param name="name" type="java.lang.String"/>
  30906. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30907. <exception name="IOException" type="java.io.IOException"/>
  30908. </method>
  30909. <doc>
  30910. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  30911. to different output files in sequence file output format.]]>
  30912. </doc>
  30913. </class>
  30914. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  30915. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  30916. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  30917. abstract="false"
  30918. static="false" final="false" visibility="public"
  30919. deprecated="not deprecated">
  30920. <constructor name="MultipleTextOutputFormat"
  30921. static="false" final="false" visibility="public"
  30922. deprecated="not deprecated">
  30923. </constructor>
  30924. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30925. abstract="false" native="false" synchronized="false"
  30926. static="false" final="false" visibility="protected"
  30927. deprecated="not deprecated">
  30928. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30929. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30930. <param name="name" type="java.lang.String"/>
  30931. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  30932. <exception name="IOException" type="java.io.IOException"/>
  30933. </method>
  30934. <doc>
  30935. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  30936. data to different output files in Text output format.]]>
  30937. </doc>
  30938. </class>
  30939. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  30940. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  30941. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  30942. abstract="false"
  30943. static="false" final="false" visibility="public"
  30944. deprecated="not deprecated">
  30945. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  30946. <constructor name="MultithreadedMapRunner"
  30947. static="false" final="false" visibility="public"
  30948. deprecated="not deprecated">
  30949. </constructor>
  30950. <method name="configure"
  30951. abstract="false" native="false" synchronized="false"
  30952. static="false" final="false" visibility="public"
  30953. deprecated="not deprecated">
  30954. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  30955. </method>
  30956. <method name="run"
  30957. abstract="false" native="false" synchronized="false"
  30958. static="false" final="false" visibility="public"
  30959. deprecated="not deprecated">
  30960. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  30961. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  30962. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30963. <exception name="IOException" type="java.io.IOException"/>
  30964. </method>
  30965. <doc>
  30966. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  30967. <p>
  30968. It can be used instead of the default implementation,
  30969. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  30970. bound in order to improve throughput.
  30971. <p>
  30972. Map implementations using this MapRunnable must be thread-safe.
  30973. <p>
  30974. The Map-Reduce job has to be configured to use this MapRunnable class (using
  30975. the JobConf.setMapRunnerClass method) and
  30976. the number of thread the thread-pool can use with the
  30977. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  30978. value is 10 threads.
  30979. <p>]]>
  30980. </doc>
  30981. </class>
  30982. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  30983. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  30984. <class name="NullOutputFormat" extends="java.lang.Object"
  30985. abstract="false"
  30986. static="false" final="false" visibility="public"
  30987. deprecated="not deprecated">
  30988. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  30989. <constructor name="NullOutputFormat"
  30990. static="false" final="false" visibility="public"
  30991. deprecated="not deprecated">
  30992. </constructor>
  30993. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30994. abstract="false" native="false" synchronized="false"
  30995. static="false" final="false" visibility="public"
  30996. deprecated="not deprecated">
  30997. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  30998. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30999. <param name="name" type="java.lang.String"/>
  31000. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  31001. </method>
  31002. <method name="checkOutputSpecs"
  31003. abstract="false" native="false" synchronized="false"
  31004. static="false" final="false" visibility="public"
  31005. deprecated="not deprecated">
  31006. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  31007. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31008. </method>
  31009. <doc>
  31010. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  31011. </doc>
  31012. </class>
  31013. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  31014. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  31015. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  31016. abstract="false"
  31017. static="false" final="false" visibility="public"
  31018. deprecated="not deprecated">
  31019. <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;"/>
  31020. <constructor name="RegexMapper"
  31021. static="false" final="false" visibility="public"
  31022. deprecated="not deprecated">
  31023. </constructor>
  31024. <method name="configure"
  31025. abstract="false" native="false" synchronized="false"
  31026. static="false" final="false" visibility="public"
  31027. deprecated="not deprecated">
  31028. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31029. </method>
  31030. <method name="map"
  31031. abstract="false" native="false" synchronized="false"
  31032. static="false" final="false" visibility="public"
  31033. deprecated="not deprecated">
  31034. <param name="key" type="K"/>
  31035. <param name="value" type="org.apache.hadoop.io.Text"/>
  31036. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  31037. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31038. <exception name="IOException" type="java.io.IOException"/>
  31039. </method>
  31040. <doc>
  31041. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  31042. </doc>
  31043. </class>
  31044. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  31045. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  31046. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  31047. abstract="false"
  31048. static="false" final="false" visibility="public"
  31049. deprecated="not deprecated">
  31050. <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;"/>
  31051. <constructor name="TokenCountMapper"
  31052. static="false" final="false" visibility="public"
  31053. deprecated="not deprecated">
  31054. </constructor>
  31055. <method name="map"
  31056. abstract="false" native="false" synchronized="false"
  31057. static="false" final="false" visibility="public"
  31058. deprecated="not deprecated">
  31059. <param name="key" type="K"/>
  31060. <param name="value" type="org.apache.hadoop.io.Text"/>
  31061. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  31062. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31063. <exception name="IOException" type="java.io.IOException"/>
  31064. </method>
  31065. <doc>
  31066. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  31067. {@link StringTokenizer} to break text into tokens.]]>
  31068. </doc>
  31069. </class>
  31070. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  31071. <doc>
  31072. <![CDATA[<p>Library of generally useful mappers, reducers, and partitioners.</p>]]>
  31073. </doc>
  31074. </package>
  31075. <package name="org.apache.hadoop.mapred.lib.aggregate">
  31076. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  31077. <class name="DoubleValueSum" extends="java.lang.Object"
  31078. abstract="false"
  31079. static="false" final="false" visibility="public"
  31080. deprecated="not deprecated">
  31081. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31082. <constructor name="DoubleValueSum"
  31083. static="false" final="false" visibility="public"
  31084. deprecated="not deprecated">
  31085. <doc>
  31086. <![CDATA[The default constructor]]>
  31087. </doc>
  31088. </constructor>
  31089. <method name="addNextValue"
  31090. abstract="false" native="false" synchronized="false"
  31091. static="false" final="false" visibility="public"
  31092. deprecated="not deprecated">
  31093. <param name="val" type="java.lang.Object"/>
  31094. <doc>
  31095. <![CDATA[add a value to the aggregator
  31096. @param val
  31097. an object whose string representation represents a double value.]]>
  31098. </doc>
  31099. </method>
  31100. <method name="addNextValue"
  31101. abstract="false" native="false" synchronized="false"
  31102. static="false" final="false" visibility="public"
  31103. deprecated="not deprecated">
  31104. <param name="val" type="double"/>
  31105. <doc>
  31106. <![CDATA[add a value to the aggregator
  31107. @param val
  31108. a double value.]]>
  31109. </doc>
  31110. </method>
  31111. <method name="getReport" return="java.lang.String"
  31112. abstract="false" native="false" synchronized="false"
  31113. static="false" final="false" visibility="public"
  31114. deprecated="not deprecated">
  31115. <doc>
  31116. <![CDATA[@return the string representation of the aggregated value]]>
  31117. </doc>
  31118. </method>
  31119. <method name="getSum" return="double"
  31120. abstract="false" native="false" synchronized="false"
  31121. static="false" final="false" visibility="public"
  31122. deprecated="not deprecated">
  31123. <doc>
  31124. <![CDATA[@return the aggregated value]]>
  31125. </doc>
  31126. </method>
  31127. <method name="reset"
  31128. abstract="false" native="false" synchronized="false"
  31129. static="false" final="false" visibility="public"
  31130. deprecated="not deprecated">
  31131. <doc>
  31132. <![CDATA[reset the aggregator]]>
  31133. </doc>
  31134. </method>
  31135. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31136. abstract="false" native="false" synchronized="false"
  31137. static="false" final="false" visibility="public"
  31138. deprecated="not deprecated">
  31139. <doc>
  31140. <![CDATA[@return return an array of one element. The element is a string
  31141. representation of the aggregated value. The return value is
  31142. expected to be used by the a combiner.]]>
  31143. </doc>
  31144. </method>
  31145. <doc>
  31146. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  31147. values.]]>
  31148. </doc>
  31149. </class>
  31150. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  31151. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  31152. <class name="LongValueMax" extends="java.lang.Object"
  31153. abstract="false"
  31154. static="false" final="false" visibility="public"
  31155. deprecated="not deprecated">
  31156. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31157. <constructor name="LongValueMax"
  31158. static="false" final="false" visibility="public"
  31159. deprecated="not deprecated">
  31160. <doc>
  31161. <![CDATA[the default constructor]]>
  31162. </doc>
  31163. </constructor>
  31164. <method name="addNextValue"
  31165. abstract="false" native="false" synchronized="false"
  31166. static="false" final="false" visibility="public"
  31167. deprecated="not deprecated">
  31168. <param name="val" type="java.lang.Object"/>
  31169. <doc>
  31170. <![CDATA[add a value to the aggregator
  31171. @param val
  31172. an object whose string representation represents a long value.]]>
  31173. </doc>
  31174. </method>
  31175. <method name="addNextValue"
  31176. abstract="false" native="false" synchronized="false"
  31177. static="false" final="false" visibility="public"
  31178. deprecated="not deprecated">
  31179. <param name="newVal" type="long"/>
  31180. <doc>
  31181. <![CDATA[add a value to the aggregator
  31182. @param newVal
  31183. a long value.]]>
  31184. </doc>
  31185. </method>
  31186. <method name="getVal" return="long"
  31187. abstract="false" native="false" synchronized="false"
  31188. static="false" final="false" visibility="public"
  31189. deprecated="not deprecated">
  31190. <doc>
  31191. <![CDATA[@return the aggregated value]]>
  31192. </doc>
  31193. </method>
  31194. <method name="getReport" return="java.lang.String"
  31195. abstract="false" native="false" synchronized="false"
  31196. static="false" final="false" visibility="public"
  31197. deprecated="not deprecated">
  31198. <doc>
  31199. <![CDATA[@return the string representation of the aggregated value]]>
  31200. </doc>
  31201. </method>
  31202. <method name="reset"
  31203. abstract="false" native="false" synchronized="false"
  31204. static="false" final="false" visibility="public"
  31205. deprecated="not deprecated">
  31206. <doc>
  31207. <![CDATA[reset the aggregator]]>
  31208. </doc>
  31209. </method>
  31210. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31211. abstract="false" native="false" synchronized="false"
  31212. static="false" final="false" visibility="public"
  31213. deprecated="not deprecated">
  31214. <doc>
  31215. <![CDATA[@return return an array of one element. The element is a string
  31216. representation of the aggregated value. The return value is
  31217. expected to be used by the a combiner.]]>
  31218. </doc>
  31219. </method>
  31220. <doc>
  31221. <![CDATA[This class implements a value aggregator that maintain the maximum of
  31222. a sequence of long values.]]>
  31223. </doc>
  31224. </class>
  31225. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  31226. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  31227. <class name="LongValueMin" extends="java.lang.Object"
  31228. abstract="false"
  31229. static="false" final="false" visibility="public"
  31230. deprecated="not deprecated">
  31231. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31232. <constructor name="LongValueMin"
  31233. static="false" final="false" visibility="public"
  31234. deprecated="not deprecated">
  31235. <doc>
  31236. <![CDATA[the default constructor]]>
  31237. </doc>
  31238. </constructor>
  31239. <method name="addNextValue"
  31240. abstract="false" native="false" synchronized="false"
  31241. static="false" final="false" visibility="public"
  31242. deprecated="not deprecated">
  31243. <param name="val" type="java.lang.Object"/>
  31244. <doc>
  31245. <![CDATA[add a value to the aggregator
  31246. @param val
  31247. an object whose string representation represents a long value.]]>
  31248. </doc>
  31249. </method>
  31250. <method name="addNextValue"
  31251. abstract="false" native="false" synchronized="false"
  31252. static="false" final="false" visibility="public"
  31253. deprecated="not deprecated">
  31254. <param name="newVal" type="long"/>
  31255. <doc>
  31256. <![CDATA[add a value to the aggregator
  31257. @param newVal
  31258. a long value.]]>
  31259. </doc>
  31260. </method>
  31261. <method name="getVal" return="long"
  31262. abstract="false" native="false" synchronized="false"
  31263. static="false" final="false" visibility="public"
  31264. deprecated="not deprecated">
  31265. <doc>
  31266. <![CDATA[@return the aggregated value]]>
  31267. </doc>
  31268. </method>
  31269. <method name="getReport" return="java.lang.String"
  31270. abstract="false" native="false" synchronized="false"
  31271. static="false" final="false" visibility="public"
  31272. deprecated="not deprecated">
  31273. <doc>
  31274. <![CDATA[@return the string representation of the aggregated value]]>
  31275. </doc>
  31276. </method>
  31277. <method name="reset"
  31278. abstract="false" native="false" synchronized="false"
  31279. static="false" final="false" visibility="public"
  31280. deprecated="not deprecated">
  31281. <doc>
  31282. <![CDATA[reset the aggregator]]>
  31283. </doc>
  31284. </method>
  31285. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31286. abstract="false" native="false" synchronized="false"
  31287. static="false" final="false" visibility="public"
  31288. deprecated="not deprecated">
  31289. <doc>
  31290. <![CDATA[@return return an array of one element. The element is a string
  31291. representation of the aggregated value. The return value is
  31292. expected to be used by the a combiner.]]>
  31293. </doc>
  31294. </method>
  31295. <doc>
  31296. <![CDATA[This class implements a value aggregator that maintain the minimum of
  31297. a sequence of long values.]]>
  31298. </doc>
  31299. </class>
  31300. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  31301. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  31302. <class name="LongValueSum" extends="java.lang.Object"
  31303. abstract="false"
  31304. static="false" final="false" visibility="public"
  31305. deprecated="not deprecated">
  31306. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31307. <constructor name="LongValueSum"
  31308. static="false" final="false" visibility="public"
  31309. deprecated="not deprecated">
  31310. <doc>
  31311. <![CDATA[the default constructor]]>
  31312. </doc>
  31313. </constructor>
  31314. <method name="addNextValue"
  31315. abstract="false" native="false" synchronized="false"
  31316. static="false" final="false" visibility="public"
  31317. deprecated="not deprecated">
  31318. <param name="val" type="java.lang.Object"/>
  31319. <doc>
  31320. <![CDATA[add a value to the aggregator
  31321. @param val
  31322. an object whose string representation represents a long value.]]>
  31323. </doc>
  31324. </method>
  31325. <method name="addNextValue"
  31326. abstract="false" native="false" synchronized="false"
  31327. static="false" final="false" visibility="public"
  31328. deprecated="not deprecated">
  31329. <param name="val" type="long"/>
  31330. <doc>
  31331. <![CDATA[add a value to the aggregator
  31332. @param val
  31333. a long value.]]>
  31334. </doc>
  31335. </method>
  31336. <method name="getSum" return="long"
  31337. abstract="false" native="false" synchronized="false"
  31338. static="false" final="false" visibility="public"
  31339. deprecated="not deprecated">
  31340. <doc>
  31341. <![CDATA[@return the aggregated value]]>
  31342. </doc>
  31343. </method>
  31344. <method name="getReport" return="java.lang.String"
  31345. abstract="false" native="false" synchronized="false"
  31346. static="false" final="false" visibility="public"
  31347. deprecated="not deprecated">
  31348. <doc>
  31349. <![CDATA[@return the string representation of the aggregated value]]>
  31350. </doc>
  31351. </method>
  31352. <method name="reset"
  31353. abstract="false" native="false" synchronized="false"
  31354. static="false" final="false" visibility="public"
  31355. deprecated="not deprecated">
  31356. <doc>
  31357. <![CDATA[reset the aggregator]]>
  31358. </doc>
  31359. </method>
  31360. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31361. abstract="false" native="false" synchronized="false"
  31362. static="false" final="false" visibility="public"
  31363. deprecated="not deprecated">
  31364. <doc>
  31365. <![CDATA[@return return an array of one element. The element is a string
  31366. representation of the aggregated value. The return value is
  31367. expected to be used by the a combiner.]]>
  31368. </doc>
  31369. </method>
  31370. <doc>
  31371. <![CDATA[This class implements a value aggregator that sums up
  31372. a sequence of long values.]]>
  31373. </doc>
  31374. </class>
  31375. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  31376. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  31377. <class name="StringValueMax" extends="java.lang.Object"
  31378. abstract="false"
  31379. static="false" final="false" visibility="public"
  31380. deprecated="not deprecated">
  31381. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31382. <constructor name="StringValueMax"
  31383. static="false" final="false" visibility="public"
  31384. deprecated="not deprecated">
  31385. <doc>
  31386. <![CDATA[the default constructor]]>
  31387. </doc>
  31388. </constructor>
  31389. <method name="addNextValue"
  31390. abstract="false" native="false" synchronized="false"
  31391. static="false" final="false" visibility="public"
  31392. deprecated="not deprecated">
  31393. <param name="val" type="java.lang.Object"/>
  31394. <doc>
  31395. <![CDATA[add a value to the aggregator
  31396. @param val
  31397. a string.]]>
  31398. </doc>
  31399. </method>
  31400. <method name="getVal" return="java.lang.String"
  31401. abstract="false" native="false" synchronized="false"
  31402. static="false" final="false" visibility="public"
  31403. deprecated="not deprecated">
  31404. <doc>
  31405. <![CDATA[@return the aggregated value]]>
  31406. </doc>
  31407. </method>
  31408. <method name="getReport" return="java.lang.String"
  31409. abstract="false" native="false" synchronized="false"
  31410. static="false" final="false" visibility="public"
  31411. deprecated="not deprecated">
  31412. <doc>
  31413. <![CDATA[@return the string representation of the aggregated value]]>
  31414. </doc>
  31415. </method>
  31416. <method name="reset"
  31417. abstract="false" native="false" synchronized="false"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <doc>
  31421. <![CDATA[reset the aggregator]]>
  31422. </doc>
  31423. </method>
  31424. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31425. abstract="false" native="false" synchronized="false"
  31426. static="false" final="false" visibility="public"
  31427. deprecated="not deprecated">
  31428. <doc>
  31429. <![CDATA[@return return an array of one element. The element is a string
  31430. representation of the aggregated value. The return value is
  31431. expected to be used by the a combiner.]]>
  31432. </doc>
  31433. </method>
  31434. <doc>
  31435. <![CDATA[This class implements a value aggregator that maintain the biggest of
  31436. a sequence of strings.]]>
  31437. </doc>
  31438. </class>
  31439. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  31440. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  31441. <class name="StringValueMin" extends="java.lang.Object"
  31442. abstract="false"
  31443. static="false" final="false" visibility="public"
  31444. deprecated="not deprecated">
  31445. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31446. <constructor name="StringValueMin"
  31447. static="false" final="false" visibility="public"
  31448. deprecated="not deprecated">
  31449. <doc>
  31450. <![CDATA[the default constructor]]>
  31451. </doc>
  31452. </constructor>
  31453. <method name="addNextValue"
  31454. abstract="false" native="false" synchronized="false"
  31455. static="false" final="false" visibility="public"
  31456. deprecated="not deprecated">
  31457. <param name="val" type="java.lang.Object"/>
  31458. <doc>
  31459. <![CDATA[add a value to the aggregator
  31460. @param val
  31461. a string.]]>
  31462. </doc>
  31463. </method>
  31464. <method name="getVal" return="java.lang.String"
  31465. abstract="false" native="false" synchronized="false"
  31466. static="false" final="false" visibility="public"
  31467. deprecated="not deprecated">
  31468. <doc>
  31469. <![CDATA[@return the aggregated value]]>
  31470. </doc>
  31471. </method>
  31472. <method name="getReport" return="java.lang.String"
  31473. abstract="false" native="false" synchronized="false"
  31474. static="false" final="false" visibility="public"
  31475. deprecated="not deprecated">
  31476. <doc>
  31477. <![CDATA[@return the string representation of the aggregated value]]>
  31478. </doc>
  31479. </method>
  31480. <method name="reset"
  31481. abstract="false" native="false" synchronized="false"
  31482. static="false" final="false" visibility="public"
  31483. deprecated="not deprecated">
  31484. <doc>
  31485. <![CDATA[reset the aggregator]]>
  31486. </doc>
  31487. </method>
  31488. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  31489. abstract="false" native="false" synchronized="false"
  31490. static="false" final="false" visibility="public"
  31491. deprecated="not deprecated">
  31492. <doc>
  31493. <![CDATA[@return return an array of one element. The element is a string
  31494. representation of the aggregated value. The return value is
  31495. expected to be used by the a combiner.]]>
  31496. </doc>
  31497. </method>
  31498. <doc>
  31499. <![CDATA[This class implements a value aggregator that maintain the smallest of
  31500. a sequence of strings.]]>
  31501. </doc>
  31502. </class>
  31503. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  31504. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  31505. <class name="UniqValueCount" extends="java.lang.Object"
  31506. abstract="false"
  31507. static="false" final="false" visibility="public"
  31508. deprecated="not deprecated">
  31509. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  31510. <constructor name="UniqValueCount"
  31511. static="false" final="false" visibility="public"
  31512. deprecated="not deprecated">
  31513. <doc>
  31514. <![CDATA[the default constructor]]>
  31515. </doc>
  31516. </constructor>
  31517. <constructor name="UniqValueCount" type="long"
  31518. static="false" final="false" visibility="public"
  31519. deprecated="not deprecated">
  31520. <doc>
  31521. <![CDATA[constructor
  31522. @param maxNum the limit in the number of unique values to keep.]]>
  31523. </doc>
  31524. </constructor>
  31525. <method name="setMaxItems" return="long"
  31526. abstract="false" native="false" synchronized="false"
  31527. static="false" final="false" visibility="public"
  31528. deprecated="not deprecated">
  31529. <param name="n" type="long"/>
  31530. <doc>
  31531. <![CDATA[Set the limit on the number of unique values
  31532. @param n the desired limit on the number of unique values
  31533. @return the new limit on the number of unique values]]>
  31534. </doc>
  31535. </method>
  31536. <method name="addNextValue"
  31537. abstract="false" native="false" synchronized="false"
  31538. static="false" final="false" visibility="public"
  31539. deprecated="not deprecated">
  31540. <param name="val" type="java.lang.Object"/>
  31541. <doc>
  31542. <![CDATA[add a value to the aggregator
  31543. @param val
  31544. an object.]]>
  31545. </doc>
  31546. </method>
  31547. <method name="getReport" return="java.lang.String"
  31548. abstract="false" native="false" synchronized="false"
  31549. static="false" final="false" visibility="public"
  31550. deprecated="not deprecated">
  31551. <doc>
  31552. <![CDATA[@return return the number of unique objects aggregated]]>
  31553. </doc>
  31554. </method>
  31555. <method name="getUniqueItems" return="java.util.Set"
  31556. abstract="false" native="false" synchronized="false"
  31557. static="false" final="false" visibility="public"
  31558. deprecated="not deprecated">
  31559. <doc>
  31560. <![CDATA[@return the set of the unique objects]]>
  31561. </doc>
  31562. </method>
  31563. <method name="reset"
  31564. abstract="false" native="false" synchronized="false"
  31565. static="false" final="false" visibility="public"
  31566. deprecated="not deprecated">
  31567. <doc>
  31568. <![CDATA[reset the aggregator]]>
  31569. </doc>
  31570. </method>
  31571. <method name="getCombinerOutput" return="java.util.ArrayList"
  31572. abstract="false" native="false" synchronized="false"
  31573. static="false" final="false" visibility="public"
  31574. deprecated="not deprecated">
  31575. <doc>
  31576. <![CDATA[@return return an array of the unique objects. The return value is
  31577. expected to be used by the a combiner.]]>
  31578. </doc>
  31579. </method>
  31580. <doc>
  31581. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  31582. </doc>
  31583. </class>
  31584. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  31585. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  31586. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  31587. abstract="false"
  31588. static="false" final="false" visibility="public"
  31589. deprecated="not deprecated">
  31590. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  31591. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  31592. static="false" final="false" visibility="public"
  31593. deprecated="not deprecated">
  31594. <doc>
  31595. <![CDATA[@param className the class name of the user defined descriptor class
  31596. @param job a configure object used for decriptor configuration]]>
  31597. </doc>
  31598. </constructor>
  31599. <method name="createInstance" return="java.lang.Object"
  31600. abstract="false" native="false" synchronized="false"
  31601. static="true" final="false" visibility="public"
  31602. deprecated="not deprecated">
  31603. <param name="className" type="java.lang.String"/>
  31604. <doc>
  31605. <![CDATA[Create an instance of the given class
  31606. @param className the name of the class
  31607. @return a dynamically created instance of the given class]]>
  31608. </doc>
  31609. </method>
  31610. <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;"
  31611. abstract="false" native="false" synchronized="false"
  31612. static="false" final="false" visibility="public"
  31613. deprecated="not deprecated">
  31614. <param name="key" type="java.lang.Object"/>
  31615. <param name="val" type="java.lang.Object"/>
  31616. <doc>
  31617. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  31618. by delegating the invocation to the real object.
  31619. @param key
  31620. input key
  31621. @param val
  31622. input value
  31623. @return a list of aggregation id/value pairs. An aggregation id encodes an
  31624. aggregation type which is used to guide the way to aggregate the
  31625. value in the reduce/combiner phrase of an Aggregate based job.]]>
  31626. </doc>
  31627. </method>
  31628. <method name="toString" return="java.lang.String"
  31629. abstract="false" native="false" synchronized="false"
  31630. static="false" final="false" visibility="public"
  31631. deprecated="not deprecated">
  31632. <doc>
  31633. <![CDATA[@return the string representation of this object.]]>
  31634. </doc>
  31635. </method>
  31636. <method name="configure"
  31637. abstract="false" native="false" synchronized="false"
  31638. static="false" final="false" visibility="public"
  31639. deprecated="not deprecated">
  31640. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31641. <doc>
  31642. <![CDATA[Do nothing.]]>
  31643. </doc>
  31644. </method>
  31645. <doc>
  31646. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  31647. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  31648. name of a user defined class that may be dynamically loaded. The other is to
  31649. deligate inviokations of generateKeyValPairs function to the created object.]]>
  31650. </doc>
  31651. </class>
  31652. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  31653. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  31654. <interface name="ValueAggregator" abstract="true"
  31655. static="false" final="false" visibility="public"
  31656. deprecated="not deprecated">
  31657. <method name="addNextValue"
  31658. abstract="false" native="false" synchronized="false"
  31659. static="false" final="false" visibility="public"
  31660. deprecated="not deprecated">
  31661. <param name="val" type="java.lang.Object"/>
  31662. <doc>
  31663. <![CDATA[add a value to the aggregator
  31664. @param val the value to be added]]>
  31665. </doc>
  31666. </method>
  31667. <method name="reset"
  31668. abstract="false" native="false" synchronized="false"
  31669. static="false" final="false" visibility="public"
  31670. deprecated="not deprecated">
  31671. <doc>
  31672. <![CDATA[reset the aggregator]]>
  31673. </doc>
  31674. </method>
  31675. <method name="getReport" return="java.lang.String"
  31676. abstract="false" native="false" synchronized="false"
  31677. static="false" final="false" visibility="public"
  31678. deprecated="not deprecated">
  31679. <doc>
  31680. <![CDATA[@return the string representation of the agregator]]>
  31681. </doc>
  31682. </method>
  31683. <method name="getCombinerOutput" return="java.util.ArrayList"
  31684. abstract="false" native="false" synchronized="false"
  31685. static="false" final="false" visibility="public"
  31686. deprecated="not deprecated">
  31687. <doc>
  31688. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  31689. </doc>
  31690. </method>
  31691. <doc>
  31692. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  31693. </doc>
  31694. </interface>
  31695. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  31696. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  31697. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  31698. abstract="false"
  31699. static="false" final="false" visibility="public"
  31700. deprecated="not deprecated">
  31701. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  31702. <constructor name="ValueAggregatorBaseDescriptor"
  31703. static="false" final="false" visibility="public"
  31704. deprecated="not deprecated">
  31705. </constructor>
  31706. <method name="generateEntry" return="java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  31707. abstract="false" native="false" synchronized="false"
  31708. static="true" final="false" visibility="public"
  31709. deprecated="not deprecated">
  31710. <param name="type" type="java.lang.String"/>
  31711. <param name="id" type="java.lang.String"/>
  31712. <param name="val" type="org.apache.hadoop.io.Text"/>
  31713. <doc>
  31714. <![CDATA[@param type the aggregation type
  31715. @param id the aggregation id
  31716. @param val the val associated with the id to be aggregated
  31717. @return an Entry whose key is the aggregation id prefixed with
  31718. the aggregation type.]]>
  31719. </doc>
  31720. </method>
  31721. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  31722. abstract="false" native="false" synchronized="false"
  31723. static="true" final="false" visibility="public"
  31724. deprecated="not deprecated">
  31725. <param name="type" type="java.lang.String"/>
  31726. <doc>
  31727. <![CDATA[@param type the aggregation type
  31728. @return a value aggregator of the given type.]]>
  31729. </doc>
  31730. </method>
  31731. <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;"
  31732. abstract="false" native="false" synchronized="false"
  31733. static="false" final="false" visibility="public"
  31734. deprecated="not deprecated">
  31735. <param name="key" type="java.lang.Object"/>
  31736. <param name="val" type="java.lang.Object"/>
  31737. <doc>
  31738. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  31739. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  31740. its aggregation id. If the input is a file split,
  31741. the second id of the same type will be generated too, with the file name
  31742. as its aggregation id. This achieves the behavior of counting the total number
  31743. of records in the input data, and the number of records in each input file.
  31744. @param key
  31745. input key
  31746. @param val
  31747. input value
  31748. @return a list of aggregation id/value pairs. An aggregation id encodes an
  31749. aggregation type which is used to guide the way to aggregate the
  31750. value in the reduce/combiner phrase of an Aggregate based job.]]>
  31751. </doc>
  31752. </method>
  31753. <method name="configure"
  31754. abstract="false" native="false" synchronized="false"
  31755. static="false" final="false" visibility="public"
  31756. deprecated="not deprecated">
  31757. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31758. <doc>
  31759. <![CDATA[get the input file name.
  31760. @param job a job configuration object]]>
  31761. </doc>
  31762. </method>
  31763. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  31764. transient="false" volatile="false"
  31765. static="true" final="true" visibility="public"
  31766. deprecated="not deprecated">
  31767. </field>
  31768. <field name="LONG_VALUE_SUM" type="java.lang.String"
  31769. transient="false" volatile="false"
  31770. static="true" final="true" visibility="public"
  31771. deprecated="not deprecated">
  31772. </field>
  31773. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  31774. transient="false" volatile="false"
  31775. static="true" final="true" visibility="public"
  31776. deprecated="not deprecated">
  31777. </field>
  31778. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  31779. transient="false" volatile="false"
  31780. static="true" final="true" visibility="public"
  31781. deprecated="not deprecated">
  31782. </field>
  31783. <field name="LONG_VALUE_MAX" type="java.lang.String"
  31784. transient="false" volatile="false"
  31785. static="true" final="true" visibility="public"
  31786. deprecated="not deprecated">
  31787. </field>
  31788. <field name="LONG_VALUE_MIN" type="java.lang.String"
  31789. transient="false" volatile="false"
  31790. static="true" final="true" visibility="public"
  31791. deprecated="not deprecated">
  31792. </field>
  31793. <field name="STRING_VALUE_MAX" type="java.lang.String"
  31794. transient="false" volatile="false"
  31795. static="true" final="true" visibility="public"
  31796. deprecated="not deprecated">
  31797. </field>
  31798. <field name="STRING_VALUE_MIN" type="java.lang.String"
  31799. transient="false" volatile="false"
  31800. static="true" final="true" visibility="public"
  31801. deprecated="not deprecated">
  31802. </field>
  31803. <field name="inputFile" type="java.lang.String"
  31804. transient="false" volatile="false"
  31805. static="false" final="false" visibility="public"
  31806. deprecated="not deprecated">
  31807. </field>
  31808. <doc>
  31809. <![CDATA[This class implements the common functionalities of
  31810. the subclasses of ValueAggregatorDescriptor class.]]>
  31811. </doc>
  31812. </class>
  31813. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  31814. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  31815. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  31816. abstract="false"
  31817. static="false" final="false" visibility="public"
  31818. deprecated="not deprecated">
  31819. <constructor name="ValueAggregatorCombiner"
  31820. static="false" final="false" visibility="public"
  31821. deprecated="not deprecated">
  31822. </constructor>
  31823. <method name="configure"
  31824. abstract="false" native="false" synchronized="false"
  31825. static="false" final="false" visibility="public"
  31826. deprecated="not deprecated">
  31827. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31828. <doc>
  31829. <![CDATA[Combiner does not need to configure.]]>
  31830. </doc>
  31831. </method>
  31832. <method name="reduce"
  31833. abstract="false" native="false" synchronized="false"
  31834. static="false" final="false" visibility="public"
  31835. deprecated="not deprecated">
  31836. <param name="key" type="org.apache.hadoop.io.Text"/>
  31837. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  31838. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  31839. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31840. <exception name="IOException" type="java.io.IOException"/>
  31841. <doc>
  31842. <![CDATA[Combines values for a given key.
  31843. @param key the key is expected to be a Text object, whose prefix indicates
  31844. the type of aggregation to aggregate the values.
  31845. @param values the values to combine
  31846. @param output to collect combined values]]>
  31847. </doc>
  31848. </method>
  31849. <method name="close"
  31850. abstract="false" native="false" synchronized="false"
  31851. static="false" final="false" visibility="public"
  31852. deprecated="not deprecated">
  31853. <exception name="IOException" type="java.io.IOException"/>
  31854. <doc>
  31855. <![CDATA[Do nothing.]]>
  31856. </doc>
  31857. </method>
  31858. <method name="map"
  31859. abstract="false" native="false" synchronized="false"
  31860. static="false" final="false" visibility="public"
  31861. deprecated="not deprecated">
  31862. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  31863. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  31864. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  31865. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  31866. <exception name="IOException" type="java.io.IOException"/>
  31867. <doc>
  31868. <![CDATA[Do nothing. Should not be called.]]>
  31869. </doc>
  31870. </method>
  31871. <doc>
  31872. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  31873. </doc>
  31874. </class>
  31875. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  31876. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  31877. <interface name="ValueAggregatorDescriptor" abstract="true"
  31878. static="false" final="false" visibility="public"
  31879. deprecated="not deprecated">
  31880. <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;"
  31881. abstract="false" native="false" synchronized="false"
  31882. static="false" final="false" visibility="public"
  31883. deprecated="not deprecated">
  31884. <param name="key" type="java.lang.Object"/>
  31885. <param name="val" type="java.lang.Object"/>
  31886. <doc>
  31887. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  31888. This function is usually called by the mapper of an Aggregate based job.
  31889. @param key
  31890. input key
  31891. @param val
  31892. input value
  31893. @return a list of aggregation id/value pairs. An aggregation id encodes an
  31894. aggregation type which is used to guide the way to aggregate the
  31895. value in the reduce/combiner phrase of an Aggregate based job.]]>
  31896. </doc>
  31897. </method>
  31898. <method name="configure"
  31899. abstract="false" native="false" synchronized="false"
  31900. static="false" final="false" visibility="public"
  31901. deprecated="not deprecated">
  31902. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31903. <doc>
  31904. <![CDATA[Configure the object
  31905. @param job
  31906. a JobConf object that may contain the information that can be used
  31907. to configure the object.]]>
  31908. </doc>
  31909. </method>
  31910. <field name="TYPE_SEPARATOR" type="java.lang.String"
  31911. transient="false" volatile="false"
  31912. static="true" final="true" visibility="public"
  31913. deprecated="not deprecated">
  31914. </field>
  31915. <field name="ONE" type="org.apache.hadoop.io.Text"
  31916. transient="false" volatile="false"
  31917. static="true" final="true" visibility="public"
  31918. deprecated="not deprecated">
  31919. </field>
  31920. <doc>
  31921. <![CDATA[This interface defines the contract a value aggregator descriptor must
  31922. support. Such a descriptor can be configured with a JobConf object. Its main
  31923. function is to generate a list of aggregation-id/value pairs. An aggregation
  31924. id encodes an aggregation type which is used to guide the way to aggregate
  31925. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  31926. an Aggregate based map/reduce job may create one or more of
  31927. ValueAggregatorDescriptor objects at configuration time. For each input
  31928. key/value pair, the mapper will use those objects to create aggregation
  31929. id/value pairs.]]>
  31930. </doc>
  31931. </interface>
  31932. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  31933. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  31934. <class name="ValueAggregatorJob" extends="java.lang.Object"
  31935. abstract="false"
  31936. static="false" final="false" visibility="public"
  31937. deprecated="not deprecated">
  31938. <constructor name="ValueAggregatorJob"
  31939. static="false" final="false" visibility="public"
  31940. deprecated="not deprecated">
  31941. </constructor>
  31942. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  31943. abstract="false" native="false" synchronized="false"
  31944. static="true" final="false" visibility="public"
  31945. deprecated="not deprecated">
  31946. <param name="args" type="java.lang.String[]"/>
  31947. <param name="descriptors" type="java.lang.Class[]"/>
  31948. <exception name="IOException" type="java.io.IOException"/>
  31949. </method>
  31950. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  31951. abstract="false" native="false" synchronized="false"
  31952. static="true" final="false" visibility="public"
  31953. deprecated="not deprecated">
  31954. <param name="args" type="java.lang.String[]"/>
  31955. <exception name="IOException" type="java.io.IOException"/>
  31956. </method>
  31957. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  31958. abstract="false" native="false" synchronized="false"
  31959. static="true" final="false" visibility="public"
  31960. deprecated="not deprecated">
  31961. <param name="args" type="java.lang.String[]"/>
  31962. <exception name="IOException" type="java.io.IOException"/>
  31963. <doc>
  31964. <![CDATA[Create an Aggregate based map/reduce job.
  31965. @param args the arguments used for job creation. Generic hadoop
  31966. arguments are accepted.
  31967. @return a JobConf object ready for submission.
  31968. @throws IOException
  31969. @see GenericOptionsParser]]>
  31970. </doc>
  31971. </method>
  31972. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  31973. abstract="false" native="false" synchronized="false"
  31974. static="true" final="false" visibility="public"
  31975. deprecated="not deprecated">
  31976. <param name="args" type="java.lang.String[]"/>
  31977. <param name="descriptors" type="java.lang.Class[]"/>
  31978. <exception name="IOException" type="java.io.IOException"/>
  31979. </method>
  31980. <method name="setAggregatorDescriptors"
  31981. abstract="false" native="false" synchronized="false"
  31982. static="true" final="false" visibility="public"
  31983. deprecated="not deprecated">
  31984. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31985. <param name="descriptors" type="java.lang.Class[]"/>
  31986. </method>
  31987. <method name="main"
  31988. abstract="false" native="false" synchronized="false"
  31989. static="true" final="false" visibility="public"
  31990. deprecated="not deprecated">
  31991. <param name="args" type="java.lang.String[]"/>
  31992. <exception name="IOException" type="java.io.IOException"/>
  31993. <doc>
  31994. <![CDATA[create and run an Aggregate based map/reduce job.
  31995. @param args the arguments used for job creation
  31996. @throws IOException]]>
  31997. </doc>
  31998. </method>
  31999. <doc>
  32000. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  32001. framework. The Aggregate is a specialization of map/reduce framework,
  32002. specilizing for performing various simple aggregations.
  32003. Generally speaking, in order to implement an application using Map/Reduce
  32004. model, the developer is to implement Map and Reduce functions (and possibly
  32005. combine function). However, a lot of applications related to counting and
  32006. statistics computing have very similar characteristics. Aggregate abstracts
  32007. out the general patterns of these functions and implementing those patterns.
  32008. In particular, the package provides generic mapper/redducer/combiner classes,
  32009. and a set of built-in value aggregators, and a generic utility class that
  32010. helps user create map/reduce jobs using the generic class. The built-in
  32011. aggregators include:
  32012. sum over numeric values count the number of distinct values compute the
  32013. histogram of values compute the minimum, maximum, media,average, standard
  32014. deviation of numeric values
  32015. The developer using Aggregate will need only to provide a plugin class
  32016. conforming to the following interface:
  32017. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  32018. generateKeyValPairs(Object key, Object value); public void
  32019. configure(JobConfjob); }
  32020. The package also provides a base class, ValueAggregatorBaseDescriptor,
  32021. implementing the above interface. The user can extend the base class and
  32022. implement generateKeyValPairs accordingly.
  32023. The primary work of generateKeyValPairs is to emit one or more key/value
  32024. pairs based on the input key/value pair. The key in an output key/value pair
  32025. encode two pieces of information: aggregation type and aggregation id. The
  32026. value will be aggregated onto the aggregation id according the aggregation
  32027. type.
  32028. This class offers a function to generate a map/reduce job using Aggregate
  32029. framework. The function takes the following parameters: input directory spec
  32030. input format (text or sequence file) output directory a file specifying the
  32031. user plugin class]]>
  32032. </doc>
  32033. </class>
  32034. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  32035. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  32036. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  32037. abstract="true"
  32038. static="false" final="false" visibility="public"
  32039. deprecated="not deprecated">
  32040. <implements name="org.apache.hadoop.mapred.Mapper&lt;K1, V1, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32041. <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;"/>
  32042. <constructor name="ValueAggregatorJobBase"
  32043. static="false" final="false" visibility="public"
  32044. deprecated="not deprecated">
  32045. </constructor>
  32046. <method name="configure"
  32047. abstract="false" native="false" synchronized="false"
  32048. static="false" final="false" visibility="public"
  32049. deprecated="not deprecated">
  32050. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32051. </method>
  32052. <method name="logSpec"
  32053. abstract="false" native="false" synchronized="false"
  32054. static="false" final="false" visibility="protected"
  32055. deprecated="not deprecated">
  32056. </method>
  32057. <method name="close"
  32058. abstract="false" native="false" synchronized="false"
  32059. static="false" final="false" visibility="public"
  32060. deprecated="not deprecated">
  32061. <exception name="IOException" type="java.io.IOException"/>
  32062. </method>
  32063. <field name="aggregatorDescriptorList" type="java.util.ArrayList&lt;org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor&gt;"
  32064. transient="false" volatile="false"
  32065. static="false" final="false" visibility="protected"
  32066. deprecated="not deprecated">
  32067. </field>
  32068. <doc>
  32069. <![CDATA[This abstract class implements some common functionalities of the
  32070. the generic mapper, reducer and combiner classes of Aggregate.]]>
  32071. </doc>
  32072. </class>
  32073. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  32074. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  32075. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  32076. abstract="false"
  32077. static="false" final="false" visibility="public"
  32078. deprecated="not deprecated">
  32079. <constructor name="ValueAggregatorMapper"
  32080. static="false" final="false" visibility="public"
  32081. deprecated="not deprecated">
  32082. </constructor>
  32083. <method name="map"
  32084. abstract="false" native="false" synchronized="false"
  32085. static="false" final="false" visibility="public"
  32086. deprecated="not deprecated">
  32087. <param name="key" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  32088. <param name="value" type="V1 extends org.apache.hadoop.io.Writable"/>
  32089. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32090. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32091. <exception name="IOException" type="java.io.IOException"/>
  32092. <doc>
  32093. <![CDATA[the map function. It iterates through the value aggregator descriptor
  32094. list to generate aggregation id/value pairs and emit them.]]>
  32095. </doc>
  32096. </method>
  32097. <method name="reduce"
  32098. abstract="false" native="false" synchronized="false"
  32099. static="false" final="false" visibility="public"
  32100. deprecated="not deprecated">
  32101. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  32102. <param name="arg1" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32103. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32104. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  32105. <exception name="IOException" type="java.io.IOException"/>
  32106. <doc>
  32107. <![CDATA[Do nothing. Should not be called.]]>
  32108. </doc>
  32109. </method>
  32110. <doc>
  32111. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  32112. </doc>
  32113. </class>
  32114. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  32115. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  32116. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  32117. abstract="false"
  32118. static="false" final="false" visibility="public"
  32119. deprecated="not deprecated">
  32120. <constructor name="ValueAggregatorReducer"
  32121. static="false" final="false" visibility="public"
  32122. deprecated="not deprecated">
  32123. </constructor>
  32124. <method name="reduce"
  32125. abstract="false" native="false" synchronized="false"
  32126. static="false" final="false" visibility="public"
  32127. deprecated="not deprecated">
  32128. <param name="key" type="org.apache.hadoop.io.Text"/>
  32129. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32130. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32131. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32132. <exception name="IOException" type="java.io.IOException"/>
  32133. <doc>
  32134. <![CDATA[@param key
  32135. the key is expected to be a Text object, whose prefix indicates
  32136. the type of aggregation to aggregate the values. In effect, data
  32137. driven computing is achieved. It is assumed that each aggregator's
  32138. getReport method emits appropriate output for the aggregator. This
  32139. may be further customiized.
  32140. @value the values to be aggregated]]>
  32141. </doc>
  32142. </method>
  32143. <method name="map"
  32144. abstract="false" native="false" synchronized="false"
  32145. static="false" final="false" visibility="public"
  32146. deprecated="not deprecated">
  32147. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  32148. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  32149. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32150. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  32151. <exception name="IOException" type="java.io.IOException"/>
  32152. <doc>
  32153. <![CDATA[Do nothing. Should not be called]]>
  32154. </doc>
  32155. </method>
  32156. <doc>
  32157. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  32158. </doc>
  32159. </class>
  32160. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  32161. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  32162. <class name="ValueHistogram" extends="java.lang.Object"
  32163. abstract="false"
  32164. static="false" final="false" visibility="public"
  32165. deprecated="not deprecated">
  32166. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  32167. <constructor name="ValueHistogram"
  32168. static="false" final="false" visibility="public"
  32169. deprecated="not deprecated">
  32170. </constructor>
  32171. <method name="addNextValue"
  32172. abstract="false" native="false" synchronized="false"
  32173. static="false" final="false" visibility="public"
  32174. deprecated="not deprecated">
  32175. <param name="val" type="java.lang.Object"/>
  32176. <doc>
  32177. <![CDATA[add the given val to the aggregator.
  32178. @param val the value to be added. It is expected to be a string
  32179. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  32180. </doc>
  32181. </method>
  32182. <method name="getReport" return="java.lang.String"
  32183. abstract="false" native="false" synchronized="false"
  32184. static="false" final="false" visibility="public"
  32185. deprecated="not deprecated">
  32186. <doc>
  32187. <![CDATA[@return the string representation of this aggregator.
  32188. It includes the following basic statistics of the histogram:
  32189. the number of unique values
  32190. the minimum value
  32191. the media value
  32192. the maximum value
  32193. the average value
  32194. the standard deviation]]>
  32195. </doc>
  32196. </method>
  32197. <method name="getReportDetails" return="java.lang.String"
  32198. abstract="false" native="false" synchronized="false"
  32199. static="false" final="false" visibility="public"
  32200. deprecated="not deprecated">
  32201. <doc>
  32202. <![CDATA[@return a string representation of the list of value/frequence pairs of
  32203. the histogram]]>
  32204. </doc>
  32205. </method>
  32206. <method name="getCombinerOutput" return="java.util.ArrayList"
  32207. abstract="false" native="false" synchronized="false"
  32208. static="false" final="false" visibility="public"
  32209. deprecated="not deprecated">
  32210. <doc>
  32211. <![CDATA[@return a list value/frequence pairs.
  32212. The return value is expected to be used by the reducer.]]>
  32213. </doc>
  32214. </method>
  32215. <method name="getReportItems" return="java.util.TreeMap"
  32216. abstract="false" native="false" synchronized="false"
  32217. static="false" final="false" visibility="public"
  32218. deprecated="not deprecated">
  32219. <doc>
  32220. <![CDATA[@return a TreeMap representation of the histogram]]>
  32221. </doc>
  32222. </method>
  32223. <method name="reset"
  32224. abstract="false" native="false" synchronized="false"
  32225. static="false" final="false" visibility="public"
  32226. deprecated="not deprecated">
  32227. <doc>
  32228. <![CDATA[reset the aggregator]]>
  32229. </doc>
  32230. </method>
  32231. <doc>
  32232. <![CDATA[This class implements a value aggregator that computes the
  32233. histogram of a sequence of strings.]]>
  32234. </doc>
  32235. </class>
  32236. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  32237. <doc>
  32238. <![CDATA[Classes for performing various counting and aggregations.
  32239. <p />
  32240. <h2><a name="Aggregate"></a>Aggregate framework </h2>
  32241. <p />
  32242. Generally speaking, in order to implement an application using Map/Reduce
  32243. model, the developer needs to implement Map and Reduce functions (and possibly
  32244. Combine function). However, for a lot of applications related to counting and
  32245. statistics computing, these functions have very similar
  32246. characteristics. This provides a package implementing
  32247. those patterns. In particular, the package provides a generic mapper class,
  32248. a reducer class and a combiner class, and a set of built-in value aggregators.
  32249. It also provides a generic utility class, ValueAggregatorJob, that offers a static function that
  32250. creates map/reduce jobs:
  32251. <blockquote>
  32252. <pre>
  32253. public static JobConf createValueAggregatorJob(String args&#91;]) throws IOException;
  32254. </pre>
  32255. </blockquote>
  32256. To call this function, the user needs to pass in arguments specifying the input directories, the output directory,
  32257. the number of reducers, the input data format (textinputformat or sequencefileinputformat), and a file specifying user plugin class(es) to load by the mapper.
  32258. A user plugin class is responsible for specifying what
  32259. aggregators to use and what values are for which aggregators.
  32260. A plugin class must implement the following interface:
  32261. <blockquote>
  32262. <pre>
  32263. public interface ValueAggregatorDescriptor {
  32264. public ArrayList&#60;Entry&#62; generateKeyValPairs(Object key, Object value);
  32265. public void configure(JobConfjob);
  32266. }
  32267. </pre>
  32268. </blockquote>
  32269. Function generateKeyValPairs will generate aggregation key/value pairs for the
  32270. input key/value pair. Each aggregation key encodes two pieces of information: the aggregation type and aggregation ID.
  32271. The value is the value to be aggregated onto the aggregation ID according to the aggregation type. Here
  32272. is a simple example user plugin class for counting the words in the input texts:
  32273. <blockquote>
  32274. <pre>
  32275. public class WordCountAggregatorDescriptor extends ValueAggregatorBaseDescriptor {
  32276. public ArrayList&#60;Entry&#62; generateKeyValPairs(Object key, Object val) {
  32277. String words &#91;] &#61; val.toString().split(&#34; &#124;\t&#34;);
  32278. ArrayList&#60;Entry&#62; retv &#61; new ArrayList&#60;Entry&#62;();
  32279. for (int i &#61; 0; i &#60; words.length; i++) {
  32280. retv.add(generateEntry(LONG&#95;VALUE&#95;SUM, words&#91;i], ONE))
  32281. }
  32282. return retv;
  32283. }
  32284. public void configure(JobConf job) {}
  32285. }
  32286. </pre>
  32287. </blockquote>
  32288. In the above code, LONG_VALUE_SUM is a string denoting the aggregation type LongValueSum, which sums over long values.
  32289. ONE denotes a string "1". Function generateEntry(LONG_VALUE_SUM, words[i], ONE) will inperpret the first argument as an aggregation type, the second as an aggregation ID, and the third argumnent as the value to be aggregated. The output will look like: "LongValueSum:xxxx", where XXXX is the string value of words[i]. The value will be "1". The mapper will call generateKeyValPairs(Object key, Object val) for each input key/value pair to generate the desired aggregation id/value pairs.
  32290. The down stream combiner/reducer will interpret these pairs as adding one to the aggregator XXXX.
  32291. <p />
  32292. Class ValueAggregatorBaseDescriptor is a base class that user plugin classes can extend. Here is the XML fragment specifying the user plugin class:
  32293. <blockquote>
  32294. <pre>
  32295. &#60;property&#62;
  32296. &#60;name&#62;aggregator.descriptor.num&#60;/name&#62;
  32297. &#60;value&#62;1&#60;/value&#62;
  32298. &#60;/property&#62;
  32299. &#60;property&#62;
  32300. &#60;name&#62;aggregator.descriptor.0&#60;/name&#62;
  32301. &#60;value&#62;UserDefined,org.apache.hadoop.mapred.lib.aggregate.examples.WordCountAggregatorDescriptor&#60;/value&#62;
  32302. &#60;/property&#62;
  32303. </pre>
  32304. </blockquote>
  32305. Class ValueAggregatorBaseDescriptor itself provides a default implementation for generateKeyValPairs:
  32306. <blockquote>
  32307. <pre>
  32308. public ArrayList&#60;Entry&#62; generateKeyValPairs(Object key, Object val) {
  32309. ArrayList&#60;Entry&#62; retv &#61; new ArrayList&#60;Entry&#62;();
  32310. String countType &#61; LONG&#95;VALUE&#95;SUM;
  32311. String id &#61; &#34;record&#95;count&#34;;
  32312. retv.add(generateEntry(countType, id, ONE));
  32313. return retv;
  32314. }
  32315. </pre>
  32316. </blockquote>
  32317. Thus, if no user plugin class is specified, the default behavior of the map/reduce job is to count the number of records (lines) in the imput files.
  32318. <p />
  32319. During runtime, the mapper will invoke the generateKeyValPairs function for each input key/value pair, and emit the generated
  32320. key/value pairs:
  32321. <blockquote>
  32322. <pre>
  32323. public void map(WritableComparable key, Writable value,
  32324. OutputCollector output, Reporter reporter) throws IOException {
  32325. Iterator iter &#61; this.aggregatorDescriptorList.iterator();
  32326. while (iter.hasNext()) {
  32327. ValueAggregatorDescriptor ad &#61; (ValueAggregatorDescriptor) iter.next();
  32328. Iterator&#60;Entry&#62; ens &#61; ad.generateKeyValPairs(key, value).iterator();
  32329. while (ens.hasNext()) {
  32330. Entry en &#61; ens.next();
  32331. output.collect((WritableComparable)en.getKey(), (Writable)en.getValue());
  32332. }
  32333. }
  32334. }
  32335. </pre>
  32336. </blockquote>
  32337. The reducer will create an aggregator object for each key/value list pair, and perform the appropriate aggregation.
  32338. At the end, it will emit the aggregator's results:
  32339. <blockquote>
  32340. <pre>
  32341. public void reduce(WritableComparable key, Iterator values,
  32342. OutputCollector output, Reporter reporter) throws IOException {
  32343. String keyStr &#61; key.toString();
  32344. int pos &#61; keyStr.indexOf(ValueAggregatorDescriptor.TYPE&#95;SEPARATOR);
  32345. String type &#61; keyStr.substring(0,pos);
  32346. keyStr &#61; keyStr.substring(pos+ValueAggregatorDescriptor.TYPE&#95;SEPARATOR.length());
  32347. ValueAggregator aggregator &#61;
  32348. ValueAggregatorBaseDescriptor.generateValueAggregator(type);
  32349. while (values.hasNext()) {
  32350. aggregator.addNextValue(values.next());
  32351. }
  32352. String val &#61; aggregator.getReport();
  32353. key &#61; new Text(keyStr);
  32354. output.collect(key, new Text(val));
  32355. }
  32356. </pre>
  32357. </blockquote>
  32358. In order to be able to use combiner, all the aggregation type be aggregators must be associative and communitive.
  32359. The following are the types supported: <ul>
  32360. <li> LongValueSum: sum over long values
  32361. </li> <li> DoubleValueSum: sum over float/double values
  32362. </li> <li> uniqValueCount: count the number of distinct values
  32363. </li> <li> ValueHistogram: compute the histogram of values compute the minimum, maximum, media,average, standard deviation of numeric values
  32364. </li></ul>
  32365. <p />
  32366. <h2><a name="Create_and_run"></a> Create and run an application </h2>
  32367. <p />
  32368. To create an application, the user needs to do the following things:
  32369. <p />
  32370. 1. Implement a user plugin:
  32371. <blockquote>
  32372. <pre>
  32373. import org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor;
  32374. import org.apache.hadoop.mapred.JobConf;
  32375. public class WordCountAggregatorDescriptor extends ValueAggregatorBaseDescriptor {
  32376. public void map(WritableComparable key, Writable value,
  32377. OutputCollector output, Reporter reporter) throws IOException {
  32378. }
  32379. public void configure(JobConf job) {
  32380. }
  32381. }
  32382. </pre>
  32383. </blockquote>
  32384. 2. Create an xml file specifying the user plugin.
  32385. <p />
  32386. 3. Compile your java class and create a jar file, say wc.jar.
  32387. <p />
  32388. Finally, run the job:
  32389. <blockquote>
  32390. <pre>
  32391. hadoop jar wc.jar org.apache.hadoop.mapred.lib.aggregate..ValueAggregatorJob indirs outdir numofreducers textinputformat|sequencefileinputformat spec_file
  32392. </pre>
  32393. </blockquote>
  32394. <p />]]>
  32395. </doc>
  32396. </package>
  32397. <package name="org.apache.hadoop.mapred.pipes">
  32398. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  32399. <class name="Submitter" extends="java.lang.Object"
  32400. abstract="false"
  32401. static="false" final="false" visibility="public"
  32402. deprecated="not deprecated">
  32403. <constructor name="Submitter"
  32404. static="false" final="false" visibility="public"
  32405. deprecated="not deprecated">
  32406. </constructor>
  32407. <method name="getExecutable" return="java.lang.String"
  32408. abstract="false" native="false" synchronized="false"
  32409. static="true" final="false" visibility="public"
  32410. deprecated="not deprecated">
  32411. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32412. <doc>
  32413. <![CDATA[Get the URI of the application's executable.
  32414. @param conf
  32415. @return the URI where the application's executable is located]]>
  32416. </doc>
  32417. </method>
  32418. <method name="setExecutable"
  32419. abstract="false" native="false" synchronized="false"
  32420. static="true" final="false" visibility="public"
  32421. deprecated="not deprecated">
  32422. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32423. <param name="executable" type="java.lang.String"/>
  32424. <doc>
  32425. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  32426. location.
  32427. @param conf
  32428. @param executable The URI of the application's executable.]]>
  32429. </doc>
  32430. </method>
  32431. <method name="setIsJavaRecordReader"
  32432. abstract="false" native="false" synchronized="false"
  32433. static="true" final="false" visibility="public"
  32434. deprecated="not deprecated">
  32435. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32436. <param name="value" type="boolean"/>
  32437. <doc>
  32438. <![CDATA[Set whether the job is using a Java RecordReader.
  32439. @param conf the configuration to modify
  32440. @param value the new value]]>
  32441. </doc>
  32442. </method>
  32443. <method name="getIsJavaRecordReader" return="boolean"
  32444. abstract="false" native="false" synchronized="false"
  32445. static="true" final="false" visibility="public"
  32446. deprecated="not deprecated">
  32447. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32448. <doc>
  32449. <![CDATA[Check whether the job is using a Java RecordReader
  32450. @param conf the configuration to check
  32451. @return is it a Java RecordReader?]]>
  32452. </doc>
  32453. </method>
  32454. <method name="setIsJavaMapper"
  32455. abstract="false" native="false" synchronized="false"
  32456. static="true" final="false" visibility="public"
  32457. deprecated="not deprecated">
  32458. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32459. <param name="value" type="boolean"/>
  32460. <doc>
  32461. <![CDATA[Set whether the Mapper is written in Java.
  32462. @param conf the configuration to modify
  32463. @param value the new value]]>
  32464. </doc>
  32465. </method>
  32466. <method name="getIsJavaMapper" return="boolean"
  32467. abstract="false" native="false" synchronized="false"
  32468. static="true" final="false" visibility="public"
  32469. deprecated="not deprecated">
  32470. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32471. <doc>
  32472. <![CDATA[Check whether the job is using a Java Mapper.
  32473. @param conf the configuration to check
  32474. @return is it a Java Mapper?]]>
  32475. </doc>
  32476. </method>
  32477. <method name="setIsJavaReducer"
  32478. abstract="false" native="false" synchronized="false"
  32479. static="true" final="false" visibility="public"
  32480. deprecated="not deprecated">
  32481. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32482. <param name="value" type="boolean"/>
  32483. <doc>
  32484. <![CDATA[Set whether the Reducer is written in Java.
  32485. @param conf the configuration to modify
  32486. @param value the new value]]>
  32487. </doc>
  32488. </method>
  32489. <method name="getIsJavaReducer" return="boolean"
  32490. abstract="false" native="false" synchronized="false"
  32491. static="true" final="false" visibility="public"
  32492. deprecated="not deprecated">
  32493. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32494. <doc>
  32495. <![CDATA[Check whether the job is using a Java Reducer.
  32496. @param conf the configuration to check
  32497. @return is it a Java Reducer?]]>
  32498. </doc>
  32499. </method>
  32500. <method name="setIsJavaRecordWriter"
  32501. abstract="false" native="false" synchronized="false"
  32502. static="true" final="false" visibility="public"
  32503. deprecated="not deprecated">
  32504. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32505. <param name="value" type="boolean"/>
  32506. <doc>
  32507. <![CDATA[Set whether the job will use a Java RecordWriter.
  32508. @param conf the configuration to modify
  32509. @param value the new value to set]]>
  32510. </doc>
  32511. </method>
  32512. <method name="getIsJavaRecordWriter" return="boolean"
  32513. abstract="false" native="false" synchronized="false"
  32514. static="true" final="false" visibility="public"
  32515. deprecated="not deprecated">
  32516. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32517. <doc>
  32518. <![CDATA[Will the reduce use a Java RecordWriter?
  32519. @param conf the configuration to check
  32520. @return true, if the output of the job will be written by Java]]>
  32521. </doc>
  32522. </method>
  32523. <method name="getKeepCommandFile" return="boolean"
  32524. abstract="false" native="false" synchronized="false"
  32525. static="true" final="false" visibility="public"
  32526. deprecated="not deprecated">
  32527. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32528. <doc>
  32529. <![CDATA[Does the user want to keep the command file for debugging? If this is
  32530. true, pipes will write a copy of the command data to a file in the
  32531. task directory named "downlink.data", which may be used to run the C++
  32532. program under the debugger. You probably also want to set
  32533. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  32534. being deleted.
  32535. To run using the data file, set the environment variable
  32536. "hadoop.pipes.command.file" to point to the file.
  32537. @param conf the configuration to check
  32538. @return will the framework save the command file?]]>
  32539. </doc>
  32540. </method>
  32541. <method name="setKeepCommandFile"
  32542. abstract="false" native="false" synchronized="false"
  32543. static="true" final="false" visibility="public"
  32544. deprecated="not deprecated">
  32545. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32546. <param name="keep" type="boolean"/>
  32547. <doc>
  32548. <![CDATA[Set whether to keep the command file for debugging
  32549. @param conf the configuration to modify
  32550. @param keep the new value]]>
  32551. </doc>
  32552. </method>
  32553. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  32554. abstract="false" native="false" synchronized="false"
  32555. static="true" final="false" visibility="public"
  32556. deprecated="not deprecated">
  32557. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  32558. <exception name="IOException" type="java.io.IOException"/>
  32559. <doc>
  32560. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  32561. to the job to run under pipes are made to the configuration.
  32562. @param conf the job to submit to the cluster (MODIFIED)
  32563. @throws IOException]]>
  32564. </doc>
  32565. </method>
  32566. <method name="main"
  32567. abstract="false" native="false" synchronized="false"
  32568. static="true" final="false" visibility="public"
  32569. deprecated="not deprecated">
  32570. <param name="args" type="java.lang.String[]"/>
  32571. <exception name="Exception" type="java.lang.Exception"/>
  32572. <doc>
  32573. <![CDATA[Submit a pipes job based on the command line arguments.
  32574. @param args]]>
  32575. </doc>
  32576. </method>
  32577. <doc>
  32578. <![CDATA[The main entry point and job submitter. It may either be used as a command
  32579. line-based or API-based method to launch Pipes jobs.]]>
  32580. </doc>
  32581. </class>
  32582. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  32583. <doc>
  32584. <![CDATA[Hadoop Pipes allows C++ code to use Hadoop DFS and map/reduce. The
  32585. primary approach is to split the C++ code into a separate process that
  32586. does the application specific code. In many ways, the approach will be
  32587. similar to Hadoop streaming, but using Writable serialization to
  32588. convert the types into bytes that are sent to the process via a
  32589. socket.
  32590. <p>
  32591. The class org.apache.hadoop.mapred.pipes.Submitter has a public static
  32592. method to submit a job as a JobConf and a main method that takes an
  32593. application and optional configuration file, input directories, and
  32594. output directory. The cli for the main looks like:
  32595. <pre>
  32596. bin/hadoop pipes \
  32597. [-conf <i>path</i>] \
  32598. [-input <i>inputDir</i>] \
  32599. [-output <i>outputDir</i>] \
  32600. [-jar <i>applicationJarFile</i>] \
  32601. [-inputformat <i>class</i>] \
  32602. [-map <i>class</i>] \
  32603. [-partitioner <i>class</i>] \
  32604. [-reduce <i>class</i>] \
  32605. [-writer <i>class</i>] \
  32606. [-program <i>program url</i>]
  32607. </pre>
  32608. <p>
  32609. The application programs link against a thin C++ wrapper library that
  32610. handles the communication with the rest of the Hadoop system. The C++
  32611. interface is "swigable" so that interfaces can be generated for python
  32612. and other scripting languages. All of the C++ functions and classes
  32613. are in the HadoopPipes namespace. The job may consist of any
  32614. combination of Java and C++ RecordReaders, Mappers, Paritioner,
  32615. Combiner, Reducer, and RecordWriter.
  32616. <p>
  32617. Hadoop Pipes has a generic Java class for handling the mapper and
  32618. reducer (PipesMapRunner and PipesReducer). They fork off the
  32619. application program and communicate with it over a socket. The
  32620. communication is handled by the C++ wrapper library and the
  32621. PipesMapRunner and PipesReducer.
  32622. <p>
  32623. The application program passes in a factory object that can create
  32624. the various objects needed by the framework to the runTask
  32625. function. The framework creates the Mapper or Reducer as
  32626. appropriate and calls the map or reduce method to invoke the
  32627. application's code. The JobConf is available to the application.
  32628. <p>
  32629. The Mapper and Reducer objects get all of their inputs, outputs, and
  32630. context via context objects. The advantage of using the context
  32631. objects is that their interface can be extended with additional
  32632. methods without breaking clients. Although this interface is different
  32633. from the current Java interface, the plan is to migrate the Java
  32634. interface in this direction.
  32635. <p>
  32636. Although the Java implementation is typed, the C++ interfaces of keys
  32637. and values is just a byte buffer. Since STL strings provide precisely
  32638. the right functionality and are standard, they will be used. The
  32639. decision to not use stronger types was to simplify the interface.
  32640. <p>
  32641. The application can also define combiner functions. The combiner will
  32642. be run locally by the framework in the application process to avoid
  32643. the round trip to the Java process and back. Because the compare
  32644. function is not available in C++, the combiner will use memcmp to
  32645. sort the inputs to the combiner. This is not as general as the Java
  32646. equivalent, which uses the user's comparator, but should cover the
  32647. majority of the use cases. As the map function outputs key/value
  32648. pairs, they will be buffered. When the buffer is full, it will be
  32649. sorted and passed to the combiner. The output of the combiner will be
  32650. sent to the Java process.
  32651. <p>
  32652. The application can also set a partition function to control which key
  32653. is given to a particular reduce. If a partition function is not
  32654. defined, the Java one will be used. The partition function will be
  32655. called by the C++ framework before the key/value pair is sent back to
  32656. Java.]]>
  32657. </doc>
  32658. </package>
  32659. <package name="org.apache.hadoop.metrics">
  32660. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  32661. <class name="ContextFactory" extends="java.lang.Object"
  32662. abstract="false"
  32663. static="false" final="false" visibility="public"
  32664. deprecated="not deprecated">
  32665. <constructor name="ContextFactory"
  32666. static="false" final="false" visibility="protected"
  32667. deprecated="not deprecated">
  32668. <doc>
  32669. <![CDATA[Creates a new instance of ContextFactory]]>
  32670. </doc>
  32671. </constructor>
  32672. <method name="getAttribute" return="java.lang.Object"
  32673. abstract="false" native="false" synchronized="false"
  32674. static="false" final="false" visibility="public"
  32675. deprecated="not deprecated">
  32676. <param name="attributeName" type="java.lang.String"/>
  32677. <doc>
  32678. <![CDATA[Returns the value of the named attribute, or null if there is no
  32679. attribute of that name.
  32680. @param attributeName the attribute name
  32681. @return the attribute value]]>
  32682. </doc>
  32683. </method>
  32684. <method name="getAttributeNames" return="java.lang.String[]"
  32685. abstract="false" native="false" synchronized="false"
  32686. static="false" final="false" visibility="public"
  32687. deprecated="not deprecated">
  32688. <doc>
  32689. <![CDATA[Returns the names of all the factory's attributes.
  32690. @return the attribute names]]>
  32691. </doc>
  32692. </method>
  32693. <method name="setAttribute"
  32694. abstract="false" native="false" synchronized="false"
  32695. static="false" final="false" visibility="public"
  32696. deprecated="not deprecated">
  32697. <param name="attributeName" type="java.lang.String"/>
  32698. <param name="value" type="java.lang.Object"/>
  32699. <doc>
  32700. <![CDATA[Sets the named factory attribute to the specified value, creating it
  32701. if it did not already exist. If the value is null, this is the same as
  32702. calling removeAttribute.
  32703. @param attributeName the attribute name
  32704. @param value the new attribute value]]>
  32705. </doc>
  32706. </method>
  32707. <method name="removeAttribute"
  32708. abstract="false" native="false" synchronized="false"
  32709. static="false" final="false" visibility="public"
  32710. deprecated="not deprecated">
  32711. <param name="attributeName" type="java.lang.String"/>
  32712. <doc>
  32713. <![CDATA[Removes the named attribute if it exists.
  32714. @param attributeName the attribute name]]>
  32715. </doc>
  32716. </method>
  32717. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  32718. abstract="false" native="false" synchronized="true"
  32719. static="false" final="false" visibility="public"
  32720. deprecated="not deprecated">
  32721. <param name="contextName" type="java.lang.String"/>
  32722. <exception name="IOException" type="java.io.IOException"/>
  32723. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  32724. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  32725. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  32726. <doc>
  32727. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  32728. using the factory's current configuration attributes. <p/>
  32729. When constructing the instance, if the factory property
  32730. <i>contextName</i>.class</code> exists,
  32731. its value is taken to be the name of the class to instantiate. Otherwise,
  32732. the default is to create an instance of
  32733. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  32734. dummy "no-op" context which will cause all metric data to be discarded.
  32735. @param contextName the name of the context
  32736. @return the named MetricsContext]]>
  32737. </doc>
  32738. </method>
  32739. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  32740. abstract="false" native="false" synchronized="true"
  32741. static="true" final="false" visibility="public"
  32742. deprecated="not deprecated">
  32743. <param name="contextName" type="java.lang.String"/>
  32744. <doc>
  32745. <![CDATA[Returns a "null" context - one which does nothing.]]>
  32746. </doc>
  32747. </method>
  32748. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  32749. abstract="false" native="false" synchronized="true"
  32750. static="true" final="false" visibility="public"
  32751. deprecated="not deprecated">
  32752. <exception name="IOException" type="java.io.IOException"/>
  32753. <doc>
  32754. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  32755. necessary. <p/>
  32756. When the instance is constructed, this method checks if the file
  32757. <code>hadoop-metrics.properties</code> exists on the class path. If it
  32758. exists, it must be in the format defined by java.util.Properties, and all
  32759. the properties in the file are set as attributes on the newly created
  32760. ContextFactory instance.
  32761. @return the singleton ContextFactory instance]]>
  32762. </doc>
  32763. </method>
  32764. <doc>
  32765. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  32766. of this class, use the static <code>getFactory()</code> method.]]>
  32767. </doc>
  32768. </class>
  32769. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  32770. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  32771. <interface name="MetricsContext" abstract="true"
  32772. static="false" final="false" visibility="public"
  32773. deprecated="not deprecated">
  32774. <method name="getContextName" return="java.lang.String"
  32775. abstract="false" native="false" synchronized="false"
  32776. static="false" final="false" visibility="public"
  32777. deprecated="not deprecated">
  32778. <doc>
  32779. <![CDATA[Returns the context name.
  32780. @return the context name]]>
  32781. </doc>
  32782. </method>
  32783. <method name="startMonitoring"
  32784. abstract="false" native="false" synchronized="false"
  32785. static="false" final="false" visibility="public"
  32786. deprecated="not deprecated">
  32787. <exception name="IOException" type="java.io.IOException"/>
  32788. <doc>
  32789. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  32790. updated.]]>
  32791. </doc>
  32792. </method>
  32793. <method name="stopMonitoring"
  32794. abstract="false" native="false" synchronized="false"
  32795. static="false" final="false" visibility="public"
  32796. deprecated="not deprecated">
  32797. <doc>
  32798. <![CDATA[Stops monitoring. This does not free any data that the implementation
  32799. may have buffered for sending at the next timer event. It
  32800. is OK to call <code>startMonitoring()</code> again after calling
  32801. this.
  32802. @see #close()]]>
  32803. </doc>
  32804. </method>
  32805. <method name="isMonitoring" return="boolean"
  32806. abstract="false" native="false" synchronized="false"
  32807. static="false" final="false" visibility="public"
  32808. deprecated="not deprecated">
  32809. <doc>
  32810. <![CDATA[Returns true if monitoring is currently in progress.]]>
  32811. </doc>
  32812. </method>
  32813. <method name="close"
  32814. abstract="false" native="false" synchronized="false"
  32815. static="false" final="false" visibility="public"
  32816. deprecated="not deprecated">
  32817. <doc>
  32818. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  32819. object to its initial state.]]>
  32820. </doc>
  32821. </method>
  32822. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  32823. abstract="false" native="false" synchronized="false"
  32824. static="false" final="false" visibility="public"
  32825. deprecated="not deprecated">
  32826. <param name="recordName" type="java.lang.String"/>
  32827. <doc>
  32828. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  32829. Throws an exception if the metrics implementation is configured with a fixed
  32830. set of record names and <code>recordName</code> is not in that set.
  32831. @param recordName the name of the record
  32832. @throws MetricsException if recordName conflicts with configuration data]]>
  32833. </doc>
  32834. </method>
  32835. <method name="registerUpdater"
  32836. abstract="false" native="false" synchronized="false"
  32837. static="false" final="false" visibility="public"
  32838. deprecated="not deprecated">
  32839. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  32840. <doc>
  32841. <![CDATA[Registers a callback to be called at regular time intervals, as
  32842. determined by the implementation-class specific configuration.
  32843. @param updater object to be run periodically; it should updated
  32844. some metrics records and then return]]>
  32845. </doc>
  32846. </method>
  32847. <method name="unregisterUpdater"
  32848. abstract="false" native="false" synchronized="false"
  32849. static="false" final="false" visibility="public"
  32850. deprecated="not deprecated">
  32851. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  32852. <doc>
  32853. <![CDATA[Removes a callback, if it exists.
  32854. @param updater object to be removed from the callback list]]>
  32855. </doc>
  32856. </method>
  32857. <field name="DEFAULT_PERIOD" type="int"
  32858. transient="false" volatile="false"
  32859. static="true" final="true" visibility="public"
  32860. deprecated="not deprecated">
  32861. <doc>
  32862. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  32863. </doc>
  32864. </field>
  32865. <doc>
  32866. <![CDATA[The main interface to the metrics package.]]>
  32867. </doc>
  32868. </interface>
  32869. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  32870. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  32871. <class name="MetricsException" extends="java.lang.RuntimeException"
  32872. abstract="false"
  32873. static="false" final="false" visibility="public"
  32874. deprecated="not deprecated">
  32875. <constructor name="MetricsException"
  32876. static="false" final="false" visibility="public"
  32877. deprecated="not deprecated">
  32878. <doc>
  32879. <![CDATA[Creates a new instance of MetricsException]]>
  32880. </doc>
  32881. </constructor>
  32882. <constructor name="MetricsException" type="java.lang.String"
  32883. static="false" final="false" visibility="public"
  32884. deprecated="not deprecated">
  32885. <doc>
  32886. <![CDATA[Creates a new instance of MetricsException
  32887. @param message an error message]]>
  32888. </doc>
  32889. </constructor>
  32890. <doc>
  32891. <![CDATA[General-purpose, unchecked metrics exception.]]>
  32892. </doc>
  32893. </class>
  32894. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  32895. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  32896. <interface name="MetricsRecord" abstract="true"
  32897. static="false" final="false" visibility="public"
  32898. deprecated="not deprecated">
  32899. <method name="getRecordName" return="java.lang.String"
  32900. abstract="false" native="false" synchronized="false"
  32901. static="false" final="false" visibility="public"
  32902. deprecated="not deprecated">
  32903. <doc>
  32904. <![CDATA[Returns the record name.
  32905. @return the record name]]>
  32906. </doc>
  32907. </method>
  32908. <method name="setTag"
  32909. abstract="false" native="false" synchronized="false"
  32910. static="false" final="false" visibility="public"
  32911. deprecated="not deprecated">
  32912. <param name="tagName" type="java.lang.String"/>
  32913. <param name="tagValue" type="java.lang.String"/>
  32914. <doc>
  32915. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  32916. which is treated the same as an empty String.
  32917. @param tagName name of the tag
  32918. @param tagValue new value of the tag
  32919. @throws MetricsException if the tagName conflicts with the configuration]]>
  32920. </doc>
  32921. </method>
  32922. <method name="setTag"
  32923. abstract="false" native="false" synchronized="false"
  32924. static="false" final="false" visibility="public"
  32925. deprecated="not deprecated">
  32926. <param name="tagName" type="java.lang.String"/>
  32927. <param name="tagValue" type="int"/>
  32928. <doc>
  32929. <![CDATA[Sets the named tag to the specified value.
  32930. @param tagName name of the tag
  32931. @param tagValue new value of the tag
  32932. @throws MetricsException if the tagName conflicts with the configuration]]>
  32933. </doc>
  32934. </method>
  32935. <method name="setTag"
  32936. abstract="false" native="false" synchronized="false"
  32937. static="false" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. <param name="tagName" type="java.lang.String"/>
  32940. <param name="tagValue" type="short"/>
  32941. <doc>
  32942. <![CDATA[Sets the named tag to the specified value.
  32943. @param tagName name of the tag
  32944. @param tagValue new value of the tag
  32945. @throws MetricsException if the tagName conflicts with the configuration]]>
  32946. </doc>
  32947. </method>
  32948. <method name="setTag"
  32949. abstract="false" native="false" synchronized="false"
  32950. static="false" final="false" visibility="public"
  32951. deprecated="not deprecated">
  32952. <param name="tagName" type="java.lang.String"/>
  32953. <param name="tagValue" type="byte"/>
  32954. <doc>
  32955. <![CDATA[Sets the named tag to the specified value.
  32956. @param tagName name of the tag
  32957. @param tagValue new value of the tag
  32958. @throws MetricsException if the tagName conflicts with the configuration]]>
  32959. </doc>
  32960. </method>
  32961. <method name="removeTag"
  32962. abstract="false" native="false" synchronized="false"
  32963. static="false" final="false" visibility="public"
  32964. deprecated="not deprecated">
  32965. <param name="tagName" type="java.lang.String"/>
  32966. <doc>
  32967. <![CDATA[Removes any tag of the specified name.
  32968. @param tagName name of a tag]]>
  32969. </doc>
  32970. </method>
  32971. <method name="setMetric"
  32972. abstract="false" native="false" synchronized="false"
  32973. static="false" final="false" visibility="public"
  32974. deprecated="not deprecated">
  32975. <param name="metricName" type="java.lang.String"/>
  32976. <param name="metricValue" type="int"/>
  32977. <doc>
  32978. <![CDATA[Sets the named metric to the specified value.
  32979. @param metricName name of the metric
  32980. @param metricValue new value of the metric
  32981. @throws MetricsException if the metricName or the type of the metricValue
  32982. conflicts with the configuration]]>
  32983. </doc>
  32984. </method>
  32985. <method name="setMetric"
  32986. abstract="false" native="false" synchronized="false"
  32987. static="false" final="false" visibility="public"
  32988. deprecated="not deprecated">
  32989. <param name="metricName" type="java.lang.String"/>
  32990. <param name="metricValue" type="short"/>
  32991. <doc>
  32992. <![CDATA[Sets the named metric to the specified value.
  32993. @param metricName name of the metric
  32994. @param metricValue new value of the metric
  32995. @throws MetricsException if the metricName or the type of the metricValue
  32996. conflicts with the configuration]]>
  32997. </doc>
  32998. </method>
  32999. <method name="setMetric"
  33000. abstract="false" native="false" synchronized="false"
  33001. static="false" final="false" visibility="public"
  33002. deprecated="not deprecated">
  33003. <param name="metricName" type="java.lang.String"/>
  33004. <param name="metricValue" type="byte"/>
  33005. <doc>
  33006. <![CDATA[Sets the named metric to the specified value.
  33007. @param metricName name of the metric
  33008. @param metricValue new value of the metric
  33009. @throws MetricsException if the metricName or the type of the metricValue
  33010. conflicts with the configuration]]>
  33011. </doc>
  33012. </method>
  33013. <method name="setMetric"
  33014. abstract="false" native="false" synchronized="false"
  33015. static="false" final="false" visibility="public"
  33016. deprecated="not deprecated">
  33017. <param name="metricName" type="java.lang.String"/>
  33018. <param name="metricValue" type="float"/>
  33019. <doc>
  33020. <![CDATA[Sets the named metric to the specified value.
  33021. @param metricName name of the metric
  33022. @param metricValue new value of the metric
  33023. @throws MetricsException if the metricName or the type of the metricValue
  33024. conflicts with the configuration]]>
  33025. </doc>
  33026. </method>
  33027. <method name="incrMetric"
  33028. abstract="false" native="false" synchronized="false"
  33029. static="false" final="false" visibility="public"
  33030. deprecated="not deprecated">
  33031. <param name="metricName" type="java.lang.String"/>
  33032. <param name="metricValue" type="int"/>
  33033. <doc>
  33034. <![CDATA[Increments the named metric by the specified value.
  33035. @param metricName name of the metric
  33036. @param metricValue incremental value
  33037. @throws MetricsException if the metricName or the type of the metricValue
  33038. conflicts with the configuration]]>
  33039. </doc>
  33040. </method>
  33041. <method name="incrMetric"
  33042. abstract="false" native="false" synchronized="false"
  33043. static="false" final="false" visibility="public"
  33044. deprecated="not deprecated">
  33045. <param name="metricName" type="java.lang.String"/>
  33046. <param name="metricValue" type="short"/>
  33047. <doc>
  33048. <![CDATA[Increments the named metric by the specified value.
  33049. @param metricName name of the metric
  33050. @param metricValue incremental value
  33051. @throws MetricsException if the metricName or the type of the metricValue
  33052. conflicts with the configuration]]>
  33053. </doc>
  33054. </method>
  33055. <method name="incrMetric"
  33056. abstract="false" native="false" synchronized="false"
  33057. static="false" final="false" visibility="public"
  33058. deprecated="not deprecated">
  33059. <param name="metricName" type="java.lang.String"/>
  33060. <param name="metricValue" type="byte"/>
  33061. <doc>
  33062. <![CDATA[Increments the named metric by the specified value.
  33063. @param metricName name of the metric
  33064. @param metricValue incremental value
  33065. @throws MetricsException if the metricName or the type of the metricValue
  33066. conflicts with the configuration]]>
  33067. </doc>
  33068. </method>
  33069. <method name="incrMetric"
  33070. abstract="false" native="false" synchronized="false"
  33071. static="false" final="false" visibility="public"
  33072. deprecated="not deprecated">
  33073. <param name="metricName" type="java.lang.String"/>
  33074. <param name="metricValue" type="float"/>
  33075. <doc>
  33076. <![CDATA[Increments the named metric by the specified value.
  33077. @param metricName name of the metric
  33078. @param metricValue incremental value
  33079. @throws MetricsException if the metricName or the type of the metricValue
  33080. conflicts with the configuration]]>
  33081. </doc>
  33082. </method>
  33083. <method name="update"
  33084. abstract="false" native="false" synchronized="false"
  33085. static="false" final="false" visibility="public"
  33086. deprecated="not deprecated">
  33087. <doc>
  33088. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  33089. If the tag values match an existing row, that row is updated;
  33090. otherwise, a new row is added.]]>
  33091. </doc>
  33092. </method>
  33093. <method name="remove"
  33094. abstract="false" native="false" synchronized="false"
  33095. static="false" final="false" visibility="public"
  33096. deprecated="not deprecated">
  33097. <doc>
  33098. <![CDATA[Removes, from the buffered data table, all rows having tags
  33099. that equal the tags that have been set on this record. For example,
  33100. if there are no tags on this record, all rows for this record name
  33101. would be removed. Or, if there is a single tag on this record, then
  33102. just rows containing a tag with the same name and value would be removed.]]>
  33103. </doc>
  33104. </method>
  33105. <doc>
  33106. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  33107. system. <p/>
  33108. A record name identifies the kind of data to be reported. For example, a
  33109. program reporting statistics relating to the disks on a computer might use
  33110. a record name "diskStats".<p/>
  33111. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  33112. continue the example, the "diskStats" record might use a tag named
  33113. "diskName" to identify a particular disk. Sometimes it is useful to have
  33114. more than one tag, so there might also be a "diskType" with value "ide" or
  33115. "scsi" or whatever.<p/>
  33116. A record also has zero or more <i>metrics</i>. These are the named
  33117. values that are to be reported to the metrics system. In the "diskStats"
  33118. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  33119. "kbReadPerSecond", etc.<p/>
  33120. The general procedure for using a MetricsRecord is to fill in its tag and
  33121. metric values, and then call <code>update()</code> to pass the record to the
  33122. client library.
  33123. Metric data is not immediately sent to the metrics system
  33124. each time that <code>update()</code> is called.
  33125. An internal table is maintained, identified by the record name. This
  33126. table has columns
  33127. corresponding to the tag and the metric names, and rows
  33128. corresponding to each unique set of tag values. An update
  33129. either modifies an existing row in the table, or adds a new row with a set of
  33130. tag values that are different from all the other rows. Note that if there
  33131. are no tags, then there can be at most one row in the table. <p/>
  33132. Once a row is added to the table, its data will be sent to the metrics system
  33133. on every timer period, whether or not it has been updated since the previous
  33134. timer period. If this is inappropriate, for example if metrics were being
  33135. reported by some transient object in an application, the <code>remove()</code>
  33136. method can be used to remove the row and thus stop the data from being
  33137. sent.<p/>
  33138. Note that the <code>update()</code> method is atomic. This means that it is
  33139. safe for different threads to be updating the same metric. More precisely,
  33140. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  33141. with the same set of tag names and tag values. Different threads should
  33142. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  33143. </doc>
  33144. </interface>
  33145. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  33146. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  33147. <class name="MetricsUtil" extends="java.lang.Object"
  33148. abstract="false"
  33149. static="false" final="false" visibility="public"
  33150. deprecated="not deprecated">
  33151. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  33152. abstract="false" native="false" synchronized="false"
  33153. static="true" final="false" visibility="public"
  33154. deprecated="not deprecated">
  33155. <param name="contextName" type="java.lang.String"/>
  33156. <doc>
  33157. <![CDATA[Utility method to return the named context.
  33158. If the desired context cannot be created for any reason, the exception
  33159. is logged, and a null context is returned.]]>
  33160. </doc>
  33161. </method>
  33162. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  33163. abstract="false" native="false" synchronized="false"
  33164. static="true" final="false" visibility="public"
  33165. deprecated="not deprecated">
  33166. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  33167. <param name="recordName" type="java.lang.String"/>
  33168. <doc>
  33169. <![CDATA[Utility method to create and return new metrics record instance within the
  33170. given context. This record is tagged with the host name.
  33171. @param context the context
  33172. @param recordName name of the record
  33173. @return newly created metrics record]]>
  33174. </doc>
  33175. </method>
  33176. <doc>
  33177. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  33178. For examples of usage, see {@link org.apache.hadoop.dfs.DataNode}.
  33179. @see org.apache.hadoop.metrics.MetricsRecord
  33180. @see org.apache.hadoop.metrics.MetricsContext
  33181. @see org.apache.hadoop.metrics.ContextFactory]]>
  33182. </doc>
  33183. </class>
  33184. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  33185. <!-- start interface org.apache.hadoop.metrics.Updater -->
  33186. <interface name="Updater" abstract="true"
  33187. static="false" final="false" visibility="public"
  33188. deprecated="not deprecated">
  33189. <method name="doUpdates"
  33190. abstract="false" native="false" synchronized="false"
  33191. static="false" final="false" visibility="public"
  33192. deprecated="not deprecated">
  33193. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  33194. <doc>
  33195. <![CDATA[Timer-based call-back from the metric library.]]>
  33196. </doc>
  33197. </method>
  33198. <doc>
  33199. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  33200. </doc>
  33201. </interface>
  33202. <!-- end interface org.apache.hadoop.metrics.Updater -->
  33203. <doc>
  33204. <![CDATA[This package defines an API for reporting performance metric information.
  33205. <p/>
  33206. The API is abstract so that it can be implemented on top of
  33207. a variety of metrics client libraries. The choice of
  33208. client library is a configuration option, and different
  33209. modules within the same application can use
  33210. different metrics implementation libraries.
  33211. <p/>
  33212. Sub-packages:
  33213. <dl>
  33214. <dt><code>org.apache.hadoop.metrics.spi</code></dt>
  33215. <dd>The abstract Server Provider Interface package. Those wishing to
  33216. integrate the metrics API with a particular metrics client library should
  33217. extend this package.</dd>
  33218. <dt><code>org.apache.hadoop.metrics.file</code></dt>
  33219. <dd>An implementation package which writes the metric data to
  33220. a file, or sends it to the standard output stream.</dd>
  33221. <dt> <code>org.apache.hadoop.metrics.ganglia</code></dt>
  33222. <dd>An implementation package which sends metric data to
  33223. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.</dd>
  33224. </dl>
  33225. <h3>Introduction to the Metrics API</h3>
  33226. Here is a simple example of how to use this package to report a single
  33227. metric value:
  33228. <pre>
  33229. private ContextFactory contextFactory = ContextFactory.getFactory();
  33230. void reportMyMetric(float myMetric) {
  33231. MetricsContext myContext = contextFactory.getContext("myContext");
  33232. MetricsRecord myRecord = myContext.getRecord("myRecord");
  33233. myRecord.setMetric("myMetric", myMetric);
  33234. myRecord.update();
  33235. }
  33236. </pre>
  33237. In this example there are three names:
  33238. <dl>
  33239. <dt><i>myContext</i></dt>
  33240. <dd>The context name will typically identify either the application, or else a
  33241. module within an application or library.</dd>
  33242. <dt><i>myRecord</i></dt>
  33243. <dd>The record name generally identifies some entity for which a set of
  33244. metrics are to be reported. For example, you could have a record named
  33245. "cacheStats" for reporting a number of statistics relating to the usage of
  33246. some cache in your application.</dd>
  33247. <dt><i>myMetric</i></dt>
  33248. <dd>This identifies a particular metric. For example, you might have metrics
  33249. named "cache_hits" and "cache_misses".
  33250. </dd>
  33251. </dl>
  33252. <h3>Tags</h3>
  33253. In some cases it is useful to have multiple records with the same name. For
  33254. example, suppose that you want to report statistics about each disk on a computer.
  33255. In this case, the record name would be something like "diskStats", but you also
  33256. need to identify the disk which is done by adding a <i>tag</i> to the record.
  33257. The code could look something like this:
  33258. <pre>
  33259. private MetricsRecord diskStats =
  33260. contextFactory.getContext("myContext").getRecord("diskStats");
  33261. void reportDiskMetrics(String diskName, float diskBusy, float diskUsed) {
  33262. diskStats.setTag("diskName", diskName);
  33263. diskStats.setMetric("diskBusy", diskBusy);
  33264. diskStats.setMetric("diskUsed", diskUsed);
  33265. diskStats.update();
  33266. }
  33267. </pre>
  33268. <h3>Buffering and Callbacks</h3>
  33269. Data is not sent immediately to the metrics system when
  33270. <code>MetricsRecord.update()</code> is called. Instead it is stored in an
  33271. internal table, and the contents of the table are sent periodically.
  33272. This can be important for two reasons:
  33273. <ol>
  33274. <li>It means that a programmer is free to put calls to this API in an
  33275. inner loop, since updates can be very frequent without slowing down
  33276. the application significantly.</li>
  33277. <li>Some implementations can gain efficiency by combining many metrics
  33278. into a single UDP message.</li>
  33279. </ol>
  33280. The API provides a timer-based callback via the
  33281. <code>registerUpdater()</code> method. The benefit of this
  33282. versus using <code>java.util.Timer</code> is that the callbacks will be done
  33283. immediately before sending the data, making the data as current as possible.
  33284. <h3>Configuration</h3>
  33285. It is possible to programmatically examine and modify configuration data
  33286. before creating a context, like this:
  33287. <pre>
  33288. ContextFactory factory = ContextFactory.getFactory();
  33289. ... examine and/or modify factory attributes ...
  33290. MetricsContext context = factory.getContext("myContext");
  33291. </pre>
  33292. The factory attributes can be examined and modified using the following
  33293. <code>ContextFactory</code>methods:
  33294. <ul>
  33295. <li><code>Object getAttribute(String attributeName)</code></li>
  33296. <li><code>String[] getAttributeNames()</code></li>
  33297. <li><code>void setAttribute(String name, Object value)</code></li>
  33298. <li><code>void removeAttribute(attributeName)</code></li>
  33299. </ul>
  33300. <p/>
  33301. <code>ContextFactory.getFactory()</code> initializes the factory attributes by
  33302. reading the properties file <code>hadoop-metrics.properties</code> if it exists
  33303. on the class path.
  33304. <p/>
  33305. A factory attribute named:
  33306. <pre>
  33307. <i>contextName</i>.class
  33308. </pre>
  33309. should have as its value the fully qualified name of the class to be
  33310. instantiated by a call of the <code>CodeFactory</code> method
  33311. <code>getContext(<i>contextName</i>)</code>. If this factory attribute is not
  33312. specified, the default is to instantiate
  33313. <code>org.apache.hadoop.metrics.file.FileContext</code>.
  33314. <p/>
  33315. Other factory attributes are specific to a particular implementation of this
  33316. API and are documented elsewhere. For example, configuration attributes for
  33317. the file and Ganglia implementations can be found in the javadoc for
  33318. their respective packages.]]>
  33319. </doc>
  33320. </package>
  33321. <package name="org.apache.hadoop.metrics.file">
  33322. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  33323. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  33324. abstract="false"
  33325. static="false" final="false" visibility="public"
  33326. deprecated="not deprecated">
  33327. <constructor name="FileContext"
  33328. static="false" final="false" visibility="public"
  33329. deprecated="not deprecated">
  33330. <doc>
  33331. <![CDATA[Creates a new instance of FileContext]]>
  33332. </doc>
  33333. </constructor>
  33334. <method name="init"
  33335. abstract="false" native="false" synchronized="false"
  33336. static="false" final="false" visibility="public"
  33337. deprecated="not deprecated">
  33338. <param name="contextName" type="java.lang.String"/>
  33339. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  33340. </method>
  33341. <method name="getFileName" return="java.lang.String"
  33342. abstract="false" native="false" synchronized="false"
  33343. static="false" final="false" visibility="public"
  33344. deprecated="not deprecated">
  33345. <doc>
  33346. <![CDATA[Returns the configured file name, or null.]]>
  33347. </doc>
  33348. </method>
  33349. <method name="startMonitoring"
  33350. abstract="false" native="false" synchronized="false"
  33351. static="false" final="false" visibility="public"
  33352. deprecated="not deprecated">
  33353. <exception name="IOException" type="java.io.IOException"/>
  33354. <doc>
  33355. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  33356. file specified by the <code>fileName</code> attribute,
  33357. if specified. Otherwise the data will be written to standard
  33358. output.]]>
  33359. </doc>
  33360. </method>
  33361. <method name="stopMonitoring"
  33362. abstract="false" native="false" synchronized="false"
  33363. static="false" final="false" visibility="public"
  33364. deprecated="not deprecated">
  33365. <doc>
  33366. <![CDATA[Stops monitoring, closing the file.
  33367. @see #close()]]>
  33368. </doc>
  33369. </method>
  33370. <method name="emitRecord"
  33371. abstract="false" native="false" synchronized="false"
  33372. static="false" final="false" visibility="public"
  33373. deprecated="not deprecated">
  33374. <param name="contextName" type="java.lang.String"/>
  33375. <param name="recordName" type="java.lang.String"/>
  33376. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  33377. <doc>
  33378. <![CDATA[Emits a metrics record to a file.]]>
  33379. </doc>
  33380. </method>
  33381. <method name="flush"
  33382. abstract="false" native="false" synchronized="false"
  33383. static="false" final="false" visibility="public"
  33384. deprecated="not deprecated">
  33385. <doc>
  33386. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  33387. </doc>
  33388. </method>
  33389. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  33390. transient="false" volatile="false"
  33391. static="true" final="true" visibility="protected"
  33392. deprecated="not deprecated">
  33393. </field>
  33394. <field name="PERIOD_PROPERTY" type="java.lang.String"
  33395. transient="false" volatile="false"
  33396. static="true" final="true" visibility="protected"
  33397. deprecated="not deprecated">
  33398. </field>
  33399. <doc>
  33400. <![CDATA[Metrics context for writing metrics to a file.<p/>
  33401. This class is configured by setting ContextFactory attributes which in turn
  33402. are usually configured through a properties file. All the attributes are
  33403. prefixed by the contextName. For example, the properties file might contain:
  33404. <pre>
  33405. myContextName.fileName=/tmp/metrics.log
  33406. myContextName.period=5
  33407. </pre>]]>
  33408. </doc>
  33409. </class>
  33410. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  33411. <doc>
  33412. <![CDATA[Implementation of the metrics package that writes the metrics to a file.
  33413. Programmers should not normally need to use this package directly. Instead
  33414. they should use org.hadoop.metrics.
  33415. <p/>
  33416. These are the implementation specific factory attributes
  33417. (See ContextFactory.getFactory()):
  33418. <dl>
  33419. <dt><i>contextName</i>.fileName</dt>
  33420. <dd>The path of the file to which metrics in context <i>contextName</i>
  33421. are to be appended. If this attribute is not specified, the metrics
  33422. are written to standard output by default.</dd>
  33423. <dt><i>contextName</i>.period</dt>
  33424. <dd>The period in seconds on which the metric data is written to the
  33425. file.</dd>
  33426. </dl>]]>
  33427. </doc>
  33428. </package>
  33429. <package name="org.apache.hadoop.metrics.ganglia">
  33430. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  33431. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  33432. abstract="false"
  33433. static="false" final="false" visibility="public"
  33434. deprecated="not deprecated">
  33435. <constructor name="GangliaContext"
  33436. static="false" final="false" visibility="public"
  33437. deprecated="not deprecated">
  33438. <doc>
  33439. <![CDATA[Creates a new instance of GangliaContext]]>
  33440. </doc>
  33441. </constructor>
  33442. <method name="init"
  33443. abstract="false" native="false" synchronized="false"
  33444. static="false" final="false" visibility="public"
  33445. deprecated="not deprecated">
  33446. <param name="contextName" type="java.lang.String"/>
  33447. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  33448. </method>
  33449. <method name="emitRecord"
  33450. abstract="false" native="false" synchronized="false"
  33451. static="false" final="false" visibility="public"
  33452. deprecated="not deprecated">
  33453. <param name="contextName" type="java.lang.String"/>
  33454. <param name="recordName" type="java.lang.String"/>
  33455. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  33456. <exception name="IOException" type="java.io.IOException"/>
  33457. </method>
  33458. <doc>
  33459. <![CDATA[Context for sending metrics to Ganglia.]]>
  33460. </doc>
  33461. </class>
  33462. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  33463. <doc>
  33464. <![CDATA[<!--
  33465. * Licensed to the Apache Software Foundation (ASF) under one
  33466. * or more contributor license agreements. See the NOTICE file
  33467. * distributed with this work for additional information
  33468. * regarding copyright ownership. The ASF licenses this file
  33469. * to you under the Apache License, Version 2.0 (the
  33470. * "License"); you may not use this file except in compliance
  33471. * with the License. You may obtain a copy of the License at
  33472. *
  33473. * http://www.apache.org/licenses/LICENSE-2.0
  33474. *
  33475. * Unless required by applicable law or agreed to in writing, software
  33476. * distributed under the License is distributed on an "AS IS" BASIS,
  33477. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  33478. * See the License for the specific language governing permissions and
  33479. * limitations under the License.
  33480. -->
  33481. Implementation of the metrics package that sends metric data to
  33482. <a href="http://ganglia.sourceforge.net/">Ganglia</a>.
  33483. Programmers should not normally need to use this package directly. Instead
  33484. they should use org.hadoop.metrics.
  33485. <p/>
  33486. These are the implementation specific factory attributes
  33487. (See ContextFactory.getFactory()):
  33488. <dl>
  33489. <dt><i>contextName</i>.servers</dt>
  33490. <dd>Space and/or comma separated sequence of servers to which UDP
  33491. messages should be sent.</dd>
  33492. <dt><i>contextName</i>.period</dt>
  33493. <dd>The period in seconds on which the metric data is sent to the
  33494. server(s).</dd>
  33495. <dt><i>contextName</i>.units.<i>recordName</i>.<i>metricName</i></dt>
  33496. <dd>The units for the specified metric in the specified record.</dd>
  33497. <dt><i>contextName</i>.slope.<i>recordName</i>.<i>metricName</i></dt>
  33498. <dd>The slope for the specified metric in the specified record.</dd>
  33499. <dt><i>contextName</i>.tmax.<i>recordName</i>.<i>metricName</i></dt>
  33500. <dd>The tmax for the specified metric in the specified record.</dd>
  33501. <dt><i>contextName</i>.dmax.<i>recordName</i>.<i>metricName</i></dt>
  33502. <dd>The dmax for the specified metric in the specified record.</dd>
  33503. </dl>]]>
  33504. </doc>
  33505. </package>
  33506. <package name="org.apache.hadoop.metrics.jvm">
  33507. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  33508. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  33509. abstract="false"
  33510. static="false" final="false" visibility="public"
  33511. deprecated="not deprecated">
  33512. <constructor name="EventCounter"
  33513. static="false" final="false" visibility="public"
  33514. deprecated="not deprecated">
  33515. </constructor>
  33516. <method name="getFatal" return="long"
  33517. abstract="false" native="false" synchronized="false"
  33518. static="true" final="false" visibility="public"
  33519. deprecated="not deprecated">
  33520. </method>
  33521. <method name="getError" return="long"
  33522. abstract="false" native="false" synchronized="false"
  33523. static="true" final="false" visibility="public"
  33524. deprecated="not deprecated">
  33525. </method>
  33526. <method name="getWarn" return="long"
  33527. abstract="false" native="false" synchronized="false"
  33528. static="true" final="false" visibility="public"
  33529. deprecated="not deprecated">
  33530. </method>
  33531. <method name="getInfo" return="long"
  33532. abstract="false" native="false" synchronized="false"
  33533. static="true" final="false" visibility="public"
  33534. deprecated="not deprecated">
  33535. </method>
  33536. <method name="append"
  33537. abstract="false" native="false" synchronized="false"
  33538. static="false" final="false" visibility="public"
  33539. deprecated="not deprecated">
  33540. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  33541. </method>
  33542. <method name="close"
  33543. abstract="false" native="false" synchronized="false"
  33544. static="false" final="false" visibility="public"
  33545. deprecated="not deprecated">
  33546. </method>
  33547. <method name="requiresLayout" return="boolean"
  33548. abstract="false" native="false" synchronized="false"
  33549. static="false" final="false" visibility="public"
  33550. deprecated="not deprecated">
  33551. </method>
  33552. <doc>
  33553. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  33554. fatal, error and warn.]]>
  33555. </doc>
  33556. </class>
  33557. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  33558. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  33559. <class name="JvmMetrics" extends="java.lang.Object"
  33560. abstract="false"
  33561. static="false" final="false" visibility="public"
  33562. deprecated="not deprecated">
  33563. <implements name="org.apache.hadoop.metrics.Updater"/>
  33564. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  33565. abstract="false" native="false" synchronized="true"
  33566. static="true" final="false" visibility="public"
  33567. deprecated="not deprecated">
  33568. <param name="processName" type="java.lang.String"/>
  33569. <param name="sessionId" type="java.lang.String"/>
  33570. </method>
  33571. <method name="doUpdates"
  33572. abstract="false" native="false" synchronized="false"
  33573. static="false" final="false" visibility="public"
  33574. deprecated="not deprecated">
  33575. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  33576. <doc>
  33577. <![CDATA[This will be called periodically (with the period being configuration
  33578. dependent).]]>
  33579. </doc>
  33580. </method>
  33581. <doc>
  33582. <![CDATA[Singleton class which eports Java Virtual Machine metrics to the metrics API.
  33583. Any application can create an instance of this class in order to emit
  33584. Java VM metrics.]]>
  33585. </doc>
  33586. </class>
  33587. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  33588. </package>
  33589. <package name="org.apache.hadoop.metrics.spi">
  33590. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  33591. <class name="AbstractMetricsContext" extends="java.lang.Object"
  33592. abstract="true"
  33593. static="false" final="false" visibility="public"
  33594. deprecated="not deprecated">
  33595. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  33596. <constructor name="AbstractMetricsContext"
  33597. static="false" final="false" visibility="protected"
  33598. deprecated="not deprecated">
  33599. <doc>
  33600. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  33601. </doc>
  33602. </constructor>
  33603. <method name="init"
  33604. abstract="false" native="false" synchronized="false"
  33605. static="false" final="false" visibility="public"
  33606. deprecated="not deprecated">
  33607. <param name="contextName" type="java.lang.String"/>
  33608. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  33609. <doc>
  33610. <![CDATA[Initializes the context.]]>
  33611. </doc>
  33612. </method>
  33613. <method name="getAttribute" return="java.lang.String"
  33614. abstract="false" native="false" synchronized="false"
  33615. static="false" final="false" visibility="protected"
  33616. deprecated="not deprecated">
  33617. <param name="attributeName" type="java.lang.String"/>
  33618. <doc>
  33619. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  33620. </doc>
  33621. </method>
  33622. <method name="getAttributeTable" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  33623. abstract="false" native="false" synchronized="false"
  33624. static="false" final="false" visibility="protected"
  33625. deprecated="not deprecated">
  33626. <param name="tableName" type="java.lang.String"/>
  33627. <doc>
  33628. <![CDATA[Returns an attribute-value map derived from the factory attributes
  33629. by finding all factory attributes that begin with
  33630. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  33631. those attributes with the contextName and tableName stripped off.]]>
  33632. </doc>
  33633. </method>
  33634. <method name="getContextName" return="java.lang.String"
  33635. abstract="false" native="false" synchronized="false"
  33636. static="false" final="false" visibility="public"
  33637. deprecated="not deprecated">
  33638. <doc>
  33639. <![CDATA[Returns the context name.]]>
  33640. </doc>
  33641. </method>
  33642. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  33643. abstract="false" native="false" synchronized="false"
  33644. static="false" final="false" visibility="public"
  33645. deprecated="not deprecated">
  33646. <doc>
  33647. <![CDATA[Returns the factory by which this context was created.]]>
  33648. </doc>
  33649. </method>
  33650. <method name="startMonitoring"
  33651. abstract="false" native="false" synchronized="true"
  33652. static="false" final="false" visibility="public"
  33653. deprecated="not deprecated">
  33654. <exception name="IOException" type="java.io.IOException"/>
  33655. <doc>
  33656. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  33657. </doc>
  33658. </method>
  33659. <method name="stopMonitoring"
  33660. abstract="false" native="false" synchronized="true"
  33661. static="false" final="false" visibility="public"
  33662. deprecated="not deprecated">
  33663. <doc>
  33664. <![CDATA[Stops monitoring. This does not free buffered data.
  33665. @see #close()]]>
  33666. </doc>
  33667. </method>
  33668. <method name="isMonitoring" return="boolean"
  33669. abstract="false" native="false" synchronized="false"
  33670. static="false" final="false" visibility="public"
  33671. deprecated="not deprecated">
  33672. <doc>
  33673. <![CDATA[Returns true if monitoring is currently in progress.]]>
  33674. </doc>
  33675. </method>
  33676. <method name="close"
  33677. abstract="false" native="false" synchronized="true"
  33678. static="false" final="false" visibility="public"
  33679. deprecated="not deprecated">
  33680. <doc>
  33681. <![CDATA[Stops monitoring and frees buffered data, returning this
  33682. object to its initial state.]]>
  33683. </doc>
  33684. </method>
  33685. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  33686. abstract="false" native="false" synchronized="true"
  33687. static="false" final="true" visibility="public"
  33688. deprecated="not deprecated">
  33689. <param name="recordName" type="java.lang.String"/>
  33690. <doc>
  33691. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  33692. Throws an exception if the metrics implementation is configured with a fixed
  33693. set of record names and <code>recordName</code> is not in that set.
  33694. @param recordName the name of the record
  33695. @throws MetricsException if recordName conflicts with configuration data]]>
  33696. </doc>
  33697. </method>
  33698. <method name="newRecord" return="org.apache.hadoop.metrics.spi.MetricsRecordImpl"
  33699. abstract="false" native="false" synchronized="false"
  33700. static="false" final="false" visibility="protected"
  33701. deprecated="not deprecated">
  33702. <param name="recordName" type="java.lang.String"/>
  33703. <doc>
  33704. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  33705. @param recordName the name of the record
  33706. @return newly created instance of MetricsRecordImpl or subclass]]>
  33707. </doc>
  33708. </method>
  33709. <method name="registerUpdater"
  33710. abstract="false" native="false" synchronized="true"
  33711. static="false" final="false" visibility="public"
  33712. deprecated="not deprecated">
  33713. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  33714. <doc>
  33715. <![CDATA[Registers a callback to be called at time intervals determined by
  33716. the configuration.
  33717. @param updater object to be run periodically; it should update
  33718. some metrics records]]>
  33719. </doc>
  33720. </method>
  33721. <method name="unregisterUpdater"
  33722. abstract="false" native="false" synchronized="true"
  33723. static="false" final="false" visibility="public"
  33724. deprecated="not deprecated">
  33725. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  33726. <doc>
  33727. <![CDATA[Removes a callback, if it exists.
  33728. @param updater object to be removed from the callback list]]>
  33729. </doc>
  33730. </method>
  33731. <method name="emitRecord"
  33732. abstract="true" native="false" synchronized="false"
  33733. static="false" final="false" visibility="protected"
  33734. deprecated="not deprecated">
  33735. <param name="contextName" type="java.lang.String"/>
  33736. <param name="recordName" type="java.lang.String"/>
  33737. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  33738. <exception name="IOException" type="java.io.IOException"/>
  33739. <doc>
  33740. <![CDATA[Sends a record to the metrics system.]]>
  33741. </doc>
  33742. </method>
  33743. <method name="flush"
  33744. abstract="false" native="false" synchronized="false"
  33745. static="false" final="false" visibility="protected"
  33746. deprecated="not deprecated">
  33747. <exception name="IOException" type="java.io.IOException"/>
  33748. <doc>
  33749. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  33750. Subclasses may override it in order to perform some kind of flush.]]>
  33751. </doc>
  33752. </method>
  33753. <method name="update"
  33754. abstract="false" native="false" synchronized="false"
  33755. static="false" final="false" visibility="protected"
  33756. deprecated="not deprecated">
  33757. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  33758. <doc>
  33759. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  33760. the internal table of metric data.]]>
  33761. </doc>
  33762. </method>
  33763. <method name="remove"
  33764. abstract="false" native="false" synchronized="false"
  33765. static="false" final="false" visibility="protected"
  33766. deprecated="not deprecated">
  33767. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  33768. <doc>
  33769. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  33770. the internal table of metric data. A row matches if it has the same
  33771. tag names and values as record, but it may also have additional
  33772. tags.]]>
  33773. </doc>
  33774. </method>
  33775. <method name="getPeriod" return="int"
  33776. abstract="false" native="false" synchronized="false"
  33777. static="false" final="false" visibility="public"
  33778. deprecated="not deprecated">
  33779. <doc>
  33780. <![CDATA[Returns the timer period.]]>
  33781. </doc>
  33782. </method>
  33783. <method name="setPeriod"
  33784. abstract="false" native="false" synchronized="false"
  33785. static="false" final="false" visibility="protected"
  33786. deprecated="not deprecated">
  33787. <param name="period" type="int"/>
  33788. <doc>
  33789. <![CDATA[Sets the timer period]]>
  33790. </doc>
  33791. </method>
  33792. <doc>
  33793. <![CDATA[The main class of the Service Provider Interface. This class should be
  33794. extended in order to integrate the Metrics API with a specific metrics
  33795. client library. <p/>
  33796. This class implements the internal table of metric data, and the timer
  33797. on which data is to be sent to the metrics system. Subclasses must
  33798. override the abstract <code>emitRecord</code> method in order to transmit
  33799. the data. <p/>]]>
  33800. </doc>
  33801. </class>
  33802. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  33803. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  33804. <class name="MetricsRecordImpl" extends="java.lang.Object"
  33805. abstract="false"
  33806. static="false" final="false" visibility="public"
  33807. deprecated="not deprecated">
  33808. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  33809. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  33810. static="false" final="false" visibility="protected"
  33811. deprecated="not deprecated">
  33812. <doc>
  33813. <![CDATA[Creates a new instance of FileRecord]]>
  33814. </doc>
  33815. </constructor>
  33816. <method name="getRecordName" return="java.lang.String"
  33817. abstract="false" native="false" synchronized="false"
  33818. static="false" final="false" visibility="public"
  33819. deprecated="not deprecated">
  33820. <doc>
  33821. <![CDATA[Returns the record name.
  33822. @return the record name]]>
  33823. </doc>
  33824. </method>
  33825. <method name="setTag"
  33826. abstract="false" native="false" synchronized="false"
  33827. static="false" final="false" visibility="public"
  33828. deprecated="not deprecated">
  33829. <param name="tagName" type="java.lang.String"/>
  33830. <param name="tagValue" type="java.lang.String"/>
  33831. <doc>
  33832. <![CDATA[Sets the named tag to the specified value.
  33833. @param tagName name of the tag
  33834. @param tagValue new value of the tag
  33835. @throws MetricsException if the tagName conflicts with the configuration]]>
  33836. </doc>
  33837. </method>
  33838. <method name="setTag"
  33839. abstract="false" native="false" synchronized="false"
  33840. static="false" final="false" visibility="public"
  33841. deprecated="not deprecated">
  33842. <param name="tagName" type="java.lang.String"/>
  33843. <param name="tagValue" type="int"/>
  33844. <doc>
  33845. <![CDATA[Sets the named tag to the specified value.
  33846. @param tagName name of the tag
  33847. @param tagValue new value of the tag
  33848. @throws MetricsException if the tagName conflicts with the configuration]]>
  33849. </doc>
  33850. </method>
  33851. <method name="setTag"
  33852. abstract="false" native="false" synchronized="false"
  33853. static="false" final="false" visibility="public"
  33854. deprecated="not deprecated">
  33855. <param name="tagName" type="java.lang.String"/>
  33856. <param name="tagValue" type="short"/>
  33857. <doc>
  33858. <![CDATA[Sets the named tag to the specified value.
  33859. @param tagName name of the tag
  33860. @param tagValue new value of the tag
  33861. @throws MetricsException if the tagName conflicts with the configuration]]>
  33862. </doc>
  33863. </method>
  33864. <method name="setTag"
  33865. abstract="false" native="false" synchronized="false"
  33866. static="false" final="false" visibility="public"
  33867. deprecated="not deprecated">
  33868. <param name="tagName" type="java.lang.String"/>
  33869. <param name="tagValue" type="byte"/>
  33870. <doc>
  33871. <![CDATA[Sets the named tag to the specified value.
  33872. @param tagName name of the tag
  33873. @param tagValue new value of the tag
  33874. @throws MetricsException if the tagName conflicts with the configuration]]>
  33875. </doc>
  33876. </method>
  33877. <method name="removeTag"
  33878. abstract="false" native="false" synchronized="false"
  33879. static="false" final="false" visibility="public"
  33880. deprecated="not deprecated">
  33881. <param name="tagName" type="java.lang.String"/>
  33882. <doc>
  33883. <![CDATA[Removes any tag of the specified name.]]>
  33884. </doc>
  33885. </method>
  33886. <method name="setMetric"
  33887. abstract="false" native="false" synchronized="false"
  33888. static="false" final="false" visibility="public"
  33889. deprecated="not deprecated">
  33890. <param name="metricName" type="java.lang.String"/>
  33891. <param name="metricValue" type="int"/>
  33892. <doc>
  33893. <![CDATA[Sets the named metric to the specified value.
  33894. @param metricName name of the metric
  33895. @param metricValue new value of the metric
  33896. @throws MetricsException if the metricName or the type of the metricValue
  33897. conflicts with the configuration]]>
  33898. </doc>
  33899. </method>
  33900. <method name="setMetric"
  33901. abstract="false" native="false" synchronized="false"
  33902. static="false" final="false" visibility="public"
  33903. deprecated="not deprecated">
  33904. <param name="metricName" type="java.lang.String"/>
  33905. <param name="metricValue" type="short"/>
  33906. <doc>
  33907. <![CDATA[Sets the named metric to the specified value.
  33908. @param metricName name of the metric
  33909. @param metricValue new value of the metric
  33910. @throws MetricsException if the metricName or the type of the metricValue
  33911. conflicts with the configuration]]>
  33912. </doc>
  33913. </method>
  33914. <method name="setMetric"
  33915. abstract="false" native="false" synchronized="false"
  33916. static="false" final="false" visibility="public"
  33917. deprecated="not deprecated">
  33918. <param name="metricName" type="java.lang.String"/>
  33919. <param name="metricValue" type="byte"/>
  33920. <doc>
  33921. <![CDATA[Sets the named metric to the specified value.
  33922. @param metricName name of the metric
  33923. @param metricValue new value of the metric
  33924. @throws MetricsException if the metricName or the type of the metricValue
  33925. conflicts with the configuration]]>
  33926. </doc>
  33927. </method>
  33928. <method name="setMetric"
  33929. abstract="false" native="false" synchronized="false"
  33930. static="false" final="false" visibility="public"
  33931. deprecated="not deprecated">
  33932. <param name="metricName" type="java.lang.String"/>
  33933. <param name="metricValue" type="float"/>
  33934. <doc>
  33935. <![CDATA[Sets the named metric to the specified value.
  33936. @param metricName name of the metric
  33937. @param metricValue new value of the metric
  33938. @throws MetricsException if the metricName or the type of the metricValue
  33939. conflicts with the configuration]]>
  33940. </doc>
  33941. </method>
  33942. <method name="incrMetric"
  33943. abstract="false" native="false" synchronized="false"
  33944. static="false" final="false" visibility="public"
  33945. deprecated="not deprecated">
  33946. <param name="metricName" type="java.lang.String"/>
  33947. <param name="metricValue" type="int"/>
  33948. <doc>
  33949. <![CDATA[Increments the named metric by the specified value.
  33950. @param metricName name of the metric
  33951. @param metricValue incremental value
  33952. @throws MetricsException if the metricName or the type of the metricValue
  33953. conflicts with the configuration]]>
  33954. </doc>
  33955. </method>
  33956. <method name="incrMetric"
  33957. abstract="false" native="false" synchronized="false"
  33958. static="false" final="false" visibility="public"
  33959. deprecated="not deprecated">
  33960. <param name="metricName" type="java.lang.String"/>
  33961. <param name="metricValue" type="short"/>
  33962. <doc>
  33963. <![CDATA[Increments the named metric by the specified value.
  33964. @param metricName name of the metric
  33965. @param metricValue incremental value
  33966. @throws MetricsException if the metricName or the type of the metricValue
  33967. conflicts with the configuration]]>
  33968. </doc>
  33969. </method>
  33970. <method name="incrMetric"
  33971. abstract="false" native="false" synchronized="false"
  33972. static="false" final="false" visibility="public"
  33973. deprecated="not deprecated">
  33974. <param name="metricName" type="java.lang.String"/>
  33975. <param name="metricValue" type="byte"/>
  33976. <doc>
  33977. <![CDATA[Increments the named metric by the specified value.
  33978. @param metricName name of the metric
  33979. @param metricValue incremental value
  33980. @throws MetricsException if the metricName or the type of the metricValue
  33981. conflicts with the configuration]]>
  33982. </doc>
  33983. </method>
  33984. <method name="incrMetric"
  33985. abstract="false" native="false" synchronized="false"
  33986. static="false" final="false" visibility="public"
  33987. deprecated="not deprecated">
  33988. <param name="metricName" type="java.lang.String"/>
  33989. <param name="metricValue" type="float"/>
  33990. <doc>
  33991. <![CDATA[Increments the named metric by the specified value.
  33992. @param metricName name of the metric
  33993. @param metricValue incremental value
  33994. @throws MetricsException if the metricName or the type of the metricValue
  33995. conflicts with the configuration]]>
  33996. </doc>
  33997. </method>
  33998. <method name="update"
  33999. abstract="false" native="false" synchronized="false"
  34000. static="false" final="false" visibility="public"
  34001. deprecated="not deprecated">
  34002. <doc>
  34003. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  34004. If the tag values match an existing row, that row is updated;
  34005. otherwise, a new row is added.]]>
  34006. </doc>
  34007. </method>
  34008. <method name="remove"
  34009. abstract="false" native="false" synchronized="false"
  34010. static="false" final="false" visibility="public"
  34011. deprecated="not deprecated">
  34012. <doc>
  34013. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  34014. that equal the tags that have been set on this record.]]>
  34015. </doc>
  34016. </method>
  34017. <doc>
  34018. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  34019. from which it was created, and delegates back to it on <code>update</code>
  34020. and <code>remove()</code>.]]>
  34021. </doc>
  34022. </class>
  34023. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  34024. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  34025. <class name="MetricValue" extends="java.lang.Object"
  34026. abstract="false"
  34027. static="false" final="false" visibility="public"
  34028. deprecated="not deprecated">
  34029. <constructor name="MetricValue" type="java.lang.Number, boolean"
  34030. static="false" final="false" visibility="public"
  34031. deprecated="not deprecated">
  34032. <doc>
  34033. <![CDATA[Creates a new instance of MetricValue]]>
  34034. </doc>
  34035. </constructor>
  34036. <method name="isIncrement" return="boolean"
  34037. abstract="false" native="false" synchronized="false"
  34038. static="false" final="false" visibility="public"
  34039. deprecated="not deprecated">
  34040. </method>
  34041. <method name="isAbsolute" return="boolean"
  34042. abstract="false" native="false" synchronized="false"
  34043. static="false" final="false" visibility="public"
  34044. deprecated="not deprecated">
  34045. </method>
  34046. <method name="getNumber" return="java.lang.Number"
  34047. abstract="false" native="false" synchronized="false"
  34048. static="false" final="false" visibility="public"
  34049. deprecated="not deprecated">
  34050. </method>
  34051. <field name="ABSOLUTE" type="boolean"
  34052. transient="false" volatile="false"
  34053. static="true" final="true" visibility="public"
  34054. deprecated="not deprecated">
  34055. </field>
  34056. <field name="INCREMENT" type="boolean"
  34057. transient="false" volatile="false"
  34058. static="true" final="true" visibility="public"
  34059. deprecated="not deprecated">
  34060. </field>
  34061. <doc>
  34062. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  34063. </doc>
  34064. </class>
  34065. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  34066. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  34067. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34068. abstract="false"
  34069. static="false" final="false" visibility="public"
  34070. deprecated="not deprecated">
  34071. <constructor name="NullContext"
  34072. static="false" final="false" visibility="public"
  34073. deprecated="not deprecated">
  34074. <doc>
  34075. <![CDATA[Creates a new instance of NullContext]]>
  34076. </doc>
  34077. </constructor>
  34078. <method name="startMonitoring"
  34079. abstract="false" native="false" synchronized="false"
  34080. static="false" final="false" visibility="public"
  34081. deprecated="not deprecated">
  34082. <doc>
  34083. <![CDATA[Do-nothing version of startMonitoring]]>
  34084. </doc>
  34085. </method>
  34086. <method name="emitRecord"
  34087. abstract="false" native="false" synchronized="false"
  34088. static="false" final="false" visibility="protected"
  34089. deprecated="not deprecated">
  34090. <param name="contextName" type="java.lang.String"/>
  34091. <param name="recordName" type="java.lang.String"/>
  34092. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34093. <doc>
  34094. <![CDATA[Do-nothing version of emitRecord]]>
  34095. </doc>
  34096. </method>
  34097. <method name="update"
  34098. abstract="false" native="false" synchronized="false"
  34099. static="false" final="false" visibility="protected"
  34100. deprecated="not deprecated">
  34101. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34102. <doc>
  34103. <![CDATA[Do-nothing version of update]]>
  34104. </doc>
  34105. </method>
  34106. <method name="remove"
  34107. abstract="false" native="false" synchronized="false"
  34108. static="false" final="false" visibility="protected"
  34109. deprecated="not deprecated">
  34110. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34111. <doc>
  34112. <![CDATA[Do-nothing version of remove]]>
  34113. </doc>
  34114. </method>
  34115. <doc>
  34116. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  34117. default context, so that no performance data is emitted if no configuration
  34118. data is found.]]>
  34119. </doc>
  34120. </class>
  34121. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  34122. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  34123. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  34124. abstract="false"
  34125. static="false" final="false" visibility="public"
  34126. deprecated="not deprecated">
  34127. <constructor name="NullContextWithUpdateThread"
  34128. static="false" final="false" visibility="public"
  34129. deprecated="not deprecated">
  34130. <doc>
  34131. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  34132. </doc>
  34133. </constructor>
  34134. <method name="init"
  34135. abstract="false" native="false" synchronized="false"
  34136. static="false" final="false" visibility="public"
  34137. deprecated="not deprecated">
  34138. <param name="contextName" type="java.lang.String"/>
  34139. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  34140. </method>
  34141. <method name="emitRecord"
  34142. abstract="false" native="false" synchronized="false"
  34143. static="false" final="false" visibility="protected"
  34144. deprecated="not deprecated">
  34145. <param name="contextName" type="java.lang.String"/>
  34146. <param name="recordName" type="java.lang.String"/>
  34147. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  34148. <doc>
  34149. <![CDATA[Do-nothing version of emitRecord]]>
  34150. </doc>
  34151. </method>
  34152. <method name="update"
  34153. abstract="false" native="false" synchronized="false"
  34154. static="false" final="false" visibility="protected"
  34155. deprecated="not deprecated">
  34156. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34157. <doc>
  34158. <![CDATA[Do-nothing version of update]]>
  34159. </doc>
  34160. </method>
  34161. <method name="remove"
  34162. abstract="false" native="false" synchronized="false"
  34163. static="false" final="false" visibility="protected"
  34164. deprecated="not deprecated">
  34165. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  34166. <doc>
  34167. <![CDATA[Do-nothing version of remove]]>
  34168. </doc>
  34169. </method>
  34170. <doc>
  34171. <![CDATA[A null context which has a thread calling
  34172. periodically when monitoring is started. This keeps the data sampled
  34173. correctly.
  34174. In all other respects, this is like the NULL context: No data is emitted.
  34175. This is suitable for Monitoring systems like JMX which reads the metrics
  34176. when someone reads the data from JMX.
  34177. The default impl of start and stop monitoring:
  34178. is the AbstractMetricsContext is good enough.]]>
  34179. </doc>
  34180. </class>
  34181. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  34182. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  34183. <class name="OutputRecord" extends="java.lang.Object"
  34184. abstract="false"
  34185. static="false" final="false" visibility="public"
  34186. deprecated="not deprecated">
  34187. <method name="getTagNames" return="java.util.Set&lt;java.lang.String&gt;"
  34188. abstract="false" native="false" synchronized="false"
  34189. static="false" final="false" visibility="public"
  34190. deprecated="not deprecated">
  34191. <doc>
  34192. <![CDATA[Returns the set of tag names]]>
  34193. </doc>
  34194. </method>
  34195. <method name="getTag" return="java.lang.Object"
  34196. abstract="false" native="false" synchronized="false"
  34197. static="false" final="false" visibility="public"
  34198. deprecated="not deprecated">
  34199. <param name="name" type="java.lang.String"/>
  34200. <doc>
  34201. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  34202. @return the tag value, or null if there is no such tag]]>
  34203. </doc>
  34204. </method>
  34205. <method name="getMetricNames" return="java.util.Set&lt;java.lang.String&gt;"
  34206. abstract="false" native="false" synchronized="false"
  34207. static="false" final="false" visibility="public"
  34208. deprecated="not deprecated">
  34209. <doc>
  34210. <![CDATA[Returns the set of metric names.]]>
  34211. </doc>
  34212. </method>
  34213. <method name="getMetric" return="java.lang.Number"
  34214. abstract="false" native="false" synchronized="false"
  34215. static="false" final="false" visibility="public"
  34216. deprecated="not deprecated">
  34217. <param name="name" type="java.lang.String"/>
  34218. <doc>
  34219. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  34220. </doc>
  34221. </method>
  34222. <doc>
  34223. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  34224. </doc>
  34225. </class>
  34226. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  34227. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  34228. <class name="Util" extends="java.lang.Object"
  34229. abstract="false"
  34230. static="false" final="false" visibility="public"
  34231. deprecated="not deprecated">
  34232. <method name="parse" return="java.util.List&lt;java.net.InetSocketAddress&gt;"
  34233. abstract="false" native="false" synchronized="false"
  34234. static="true" final="false" visibility="public"
  34235. deprecated="not deprecated">
  34236. <param name="specs" type="java.lang.String"/>
  34237. <param name="defaultPort" type="int"/>
  34238. <doc>
  34239. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  34240. of the form <i>hostname</i> or <i>hostname:port</i>. If
  34241. the specs string is null, defaults to localhost:defaultPort.
  34242. @return a list of InetSocketAddress objects.]]>
  34243. </doc>
  34244. </method>
  34245. <doc>
  34246. <![CDATA[Static utility methods]]>
  34247. </doc>
  34248. </class>
  34249. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  34250. <doc>
  34251. <![CDATA[The Service Provider Interface for the Metrics API. This package provides
  34252. an interface allowing a variety of metrics reporting implementations to be
  34253. plugged in to the Metrics API. Examples of such implementations can be found
  34254. in the packages <code>org.apache.hadoop.metrics.file</code> and
  34255. <code>org.apache.hadoop.metrics.ganglia</code>.<p/>
  34256. Plugging in an implementation involves writing a concrete subclass of
  34257. <code>AbstractMetricsContext</code>. The subclass should get its
  34258. configuration information using the <code>getAttribute(<i>attributeName</i>)</code>
  34259. method.]]>
  34260. </doc>
  34261. </package>
  34262. <package name="org.apache.hadoop.metrics.util">
  34263. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  34264. <class name="MBeanUtil" extends="java.lang.Object"
  34265. abstract="false"
  34266. static="false" final="false" visibility="public"
  34267. deprecated="not deprecated">
  34268. <constructor name="MBeanUtil"
  34269. static="false" final="false" visibility="public"
  34270. deprecated="not deprecated">
  34271. </constructor>
  34272. <method name="registerMBean" return="javax.management.ObjectName"
  34273. abstract="false" native="false" synchronized="false"
  34274. static="true" final="false" visibility="public"
  34275. deprecated="not deprecated">
  34276. <param name="serviceName" type="java.lang.String"/>
  34277. <param name="nameName" type="java.lang.String"/>
  34278. <param name="theMbean" type="java.lang.Object"/>
  34279. <doc>
  34280. <![CDATA[Register the mbean using out standard MBeanName format
  34281. "hadoop.dfs:service=<serviceName>,name=<nameName>"
  34282. Where the <serviceName> and <nameName> are the supplied parameters
  34283. @param serviceName
  34284. @param nameName
  34285. @param theMbean - the MBean to register
  34286. @return the named used to register the MBean]]>
  34287. </doc>
  34288. </method>
  34289. <method name="unregisterMBean"
  34290. abstract="false" native="false" synchronized="false"
  34291. static="true" final="false" visibility="public"
  34292. deprecated="not deprecated">
  34293. <param name="mbeanName" type="javax.management.ObjectName"/>
  34294. </method>
  34295. <doc>
  34296. <![CDATA[This util class provides a method to register an MBean using
  34297. our standard naming convention as described in the doc
  34298. for {link {@link #registerMBean(String, String, Object)}]]>
  34299. </doc>
  34300. </class>
  34301. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  34302. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  34303. <class name="MetricsIntValue" extends="java.lang.Object"
  34304. abstract="false"
  34305. static="false" final="false" visibility="public"
  34306. deprecated="not deprecated">
  34307. <constructor name="MetricsIntValue" type="java.lang.String"
  34308. static="false" final="false" visibility="public"
  34309. deprecated="not deprecated">
  34310. <doc>
  34311. <![CDATA[Constructor - create a new metric
  34312. @param nam the name of the metrics to be used to publish the metric]]>
  34313. </doc>
  34314. </constructor>
  34315. <method name="set"
  34316. abstract="false" native="false" synchronized="true"
  34317. static="false" final="false" visibility="public"
  34318. deprecated="not deprecated">
  34319. <param name="newValue" type="int"/>
  34320. <doc>
  34321. <![CDATA[Set the value
  34322. @param newValue]]>
  34323. </doc>
  34324. </method>
  34325. <method name="get" return="int"
  34326. abstract="false" native="false" synchronized="true"
  34327. static="false" final="false" visibility="public"
  34328. deprecated="not deprecated">
  34329. <doc>
  34330. <![CDATA[Get value
  34331. @return the value last set]]>
  34332. </doc>
  34333. </method>
  34334. <method name="pushMetric"
  34335. abstract="false" native="false" synchronized="true"
  34336. static="false" final="false" visibility="public"
  34337. deprecated="not deprecated">
  34338. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  34339. <doc>
  34340. <![CDATA[Push the metric to the mr.
  34341. The metric is pushed only if it was updated since last push
  34342. Note this does NOT push to JMX
  34343. (JMX gets the info via {@link #get()}
  34344. @param mr]]>
  34345. </doc>
  34346. </method>
  34347. <doc>
  34348. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  34349. but changes only when it is set.
  34350. Each time its value is set, it is published only *once* at the next update
  34351. call.]]>
  34352. </doc>
  34353. </class>
  34354. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  34355. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  34356. <class name="MetricsTimeVaryingInt" extends="java.lang.Object"
  34357. abstract="false"
  34358. static="false" final="false" visibility="public"
  34359. deprecated="not deprecated">
  34360. <constructor name="MetricsTimeVaryingInt" type="java.lang.String"
  34361. static="false" final="false" visibility="public"
  34362. deprecated="not deprecated">
  34363. <doc>
  34364. <![CDATA[Constructor - create a new metric
  34365. @param nam the name of the metrics to be used to publish the metric]]>
  34366. </doc>
  34367. </constructor>
  34368. <method name="inc"
  34369. abstract="false" native="false" synchronized="true"
  34370. static="false" final="false" visibility="public"
  34371. deprecated="not deprecated">
  34372. <param name="incr" type="int"/>
  34373. <doc>
  34374. <![CDATA[Inc metrics for incr vlaue
  34375. @param incr - number of operations]]>
  34376. </doc>
  34377. </method>
  34378. <method name="inc"
  34379. abstract="false" native="false" synchronized="true"
  34380. static="false" final="false" visibility="public"
  34381. deprecated="not deprecated">
  34382. <doc>
  34383. <![CDATA[Inc metrics by one]]>
  34384. </doc>
  34385. </method>
  34386. <method name="pushMetric"
  34387. abstract="false" native="false" synchronized="true"
  34388. static="false" final="false" visibility="public"
  34389. deprecated="not deprecated">
  34390. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  34391. <doc>
  34392. <![CDATA[Push the delta metrics to the mr.
  34393. The delta is since the last push/interval.
  34394. Note this does NOT push to JMX
  34395. (JMX gets the info via {@link #previousIntervalValue}
  34396. @param mr]]>
  34397. </doc>
  34398. </method>
  34399. <method name="getPreviousIntervalValue" return="int"
  34400. abstract="false" native="false" synchronized="true"
  34401. static="false" final="false" visibility="public"
  34402. deprecated="not deprecated">
  34403. <doc>
  34404. <![CDATA[The Value at the Previous interval
  34405. @return prev interval value]]>
  34406. </doc>
  34407. </method>
  34408. <doc>
  34409. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  34410. varies over time (e.g. number of files created).
  34411. The metric is is published at interval heart beat (the interval
  34412. is set in the metrics config file).
  34413. Note if one wants a time associated with the metric then use
  34414. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  34415. </doc>
  34416. </class>
  34417. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  34418. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  34419. <class name="MetricsTimeVaryingRate" extends="java.lang.Object"
  34420. abstract="false"
  34421. static="false" final="false" visibility="public"
  34422. deprecated="not deprecated">
  34423. <constructor name="MetricsTimeVaryingRate" type="java.lang.String"
  34424. static="false" final="false" visibility="public"
  34425. deprecated="not deprecated">
  34426. <doc>
  34427. <![CDATA[Constructor - create a new metric
  34428. @param n the name of the metrics to be used to publish the metric]]>
  34429. </doc>
  34430. </constructor>
  34431. <method name="inc"
  34432. abstract="false" native="false" synchronized="true"
  34433. static="false" final="false" visibility="public"
  34434. deprecated="not deprecated">
  34435. <param name="numOps" type="int"/>
  34436. <param name="time" type="long"/>
  34437. <doc>
  34438. <![CDATA[Increment the metrics for numOps operations
  34439. @param numOps - number of operations
  34440. @param time - time for numOps operations]]>
  34441. </doc>
  34442. </method>
  34443. <method name="inc"
  34444. abstract="false" native="false" synchronized="true"
  34445. static="false" final="false" visibility="public"
  34446. deprecated="not deprecated">
  34447. <param name="time" type="long"/>
  34448. <doc>
  34449. <![CDATA[Increment the metrics for one operation
  34450. @param time for one operation]]>
  34451. </doc>
  34452. </method>
  34453. <method name="pushMetric"
  34454. abstract="false" native="false" synchronized="true"
  34455. static="false" final="false" visibility="public"
  34456. deprecated="not deprecated">
  34457. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  34458. <doc>
  34459. <![CDATA[Push the delta metrics to the mr.
  34460. The delta is since the last push/interval.
  34461. Note this does NOT push to JMX
  34462. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  34463. {@link #getPreviousIntervalNumOps()}
  34464. @param mr]]>
  34465. </doc>
  34466. </method>
  34467. <method name="getPreviousIntervalNumOps" return="int"
  34468. abstract="false" native="false" synchronized="true"
  34469. static="false" final="false" visibility="public"
  34470. deprecated="not deprecated">
  34471. <doc>
  34472. <![CDATA[The number of operations in the previous interval
  34473. @return - ops in prev interval]]>
  34474. </doc>
  34475. </method>
  34476. <method name="getPreviousIntervalAverageTime" return="long"
  34477. abstract="false" native="false" synchronized="true"
  34478. static="false" final="false" visibility="public"
  34479. deprecated="not deprecated">
  34480. <doc>
  34481. <![CDATA[The average rate of an operation in the previous interval
  34482. @return - the average rate.]]>
  34483. </doc>
  34484. </method>
  34485. <method name="getMinTime" return="long"
  34486. abstract="false" native="false" synchronized="true"
  34487. static="false" final="false" visibility="public"
  34488. deprecated="not deprecated">
  34489. <doc>
  34490. <![CDATA[The min time for a single operation since the last reset
  34491. {@link #resetMinMax()}
  34492. @return min time for an operation]]>
  34493. </doc>
  34494. </method>
  34495. <method name="getMaxTime" return="long"
  34496. abstract="false" native="false" synchronized="true"
  34497. static="false" final="false" visibility="public"
  34498. deprecated="not deprecated">
  34499. <doc>
  34500. <![CDATA[The max time for a single operation since the last reset
  34501. {@link #resetMinMax()}
  34502. @return max time for an operation]]>
  34503. </doc>
  34504. </method>
  34505. <method name="resetMinMax"
  34506. abstract="false" native="false" synchronized="true"
  34507. static="false" final="false" visibility="public"
  34508. deprecated="not deprecated">
  34509. <doc>
  34510. <![CDATA[Reset the min max values]]>
  34511. </doc>
  34512. </method>
  34513. <doc>
  34514. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  34515. naturally varies over time (e.g. time taken to create a file).
  34516. The rate is averaged at each interval heart beat (the interval
  34517. is set in the metrics config file).
  34518. This class also keeps track of the min and max rates along with
  34519. a method to reset the min-max.]]>
  34520. </doc>
  34521. </class>
  34522. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  34523. </package>
  34524. <package name="org.apache.hadoop.net">
  34525. <!-- start class org.apache.hadoop.net.DNS -->
  34526. <class name="DNS" extends="java.lang.Object"
  34527. abstract="false"
  34528. static="false" final="false" visibility="public"
  34529. deprecated="not deprecated">
  34530. <constructor name="DNS"
  34531. static="false" final="false" visibility="public"
  34532. deprecated="not deprecated">
  34533. </constructor>
  34534. <method name="reverseDns" return="java.lang.String"
  34535. abstract="false" native="false" synchronized="false"
  34536. static="true" final="false" visibility="public"
  34537. deprecated="not deprecated">
  34538. <param name="hostIp" type="java.net.InetAddress"/>
  34539. <param name="ns" type="java.lang.String"/>
  34540. <exception name="NamingException" type="javax.naming.NamingException"/>
  34541. <doc>
  34542. <![CDATA[Returns the hostname associated with the specified IP address by the
  34543. provided nameserver.
  34544. @param hostIp
  34545. The address to reverse lookup
  34546. @param ns
  34547. The host name of a reachable DNS server
  34548. @return The host name associated with the provided IP
  34549. @throws NamingException
  34550. If a NamingException is encountered]]>
  34551. </doc>
  34552. </method>
  34553. <method name="getIPs" return="java.lang.String[]"
  34554. abstract="false" native="false" synchronized="false"
  34555. static="true" final="false" visibility="public"
  34556. deprecated="not deprecated">
  34557. <param name="strInterface" type="java.lang.String"/>
  34558. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34559. <doc>
  34560. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  34561. textual form.
  34562. @param strInterface
  34563. The name of the network interface to query (e.g. eth0)
  34564. @return A string vector of all the IPs associated with the provided
  34565. interface
  34566. @throws UnknownHostException
  34567. If an UnknownHostException is encountered in querying the
  34568. default interface]]>
  34569. </doc>
  34570. </method>
  34571. <method name="getDefaultIP" return="java.lang.String"
  34572. abstract="false" native="false" synchronized="false"
  34573. static="true" final="false" visibility="public"
  34574. deprecated="not deprecated">
  34575. <param name="strInterface" type="java.lang.String"/>
  34576. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34577. <doc>
  34578. <![CDATA[Returns the first available IP address associated with the provided
  34579. network interface
  34580. @param strInterface
  34581. The name of the network interface to query (e.g. eth0)
  34582. @return The IP address in text form
  34583. @throws UnknownHostException
  34584. If one is encountered in querying the default interface]]>
  34585. </doc>
  34586. </method>
  34587. <method name="getHosts" return="java.lang.String[]"
  34588. abstract="false" native="false" synchronized="false"
  34589. static="true" final="false" visibility="public"
  34590. deprecated="not deprecated">
  34591. <param name="strInterface" type="java.lang.String"/>
  34592. <param name="nameserver" type="java.lang.String"/>
  34593. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34594. <doc>
  34595. <![CDATA[Returns all the host names associated by the provided nameserver with the
  34596. address bound to the specified network interface
  34597. @param strInterface
  34598. The name of the network interface to query (e.g. eth0)
  34599. @param nameserver
  34600. The DNS host name
  34601. @return A string vector of all host names associated with the IPs tied to
  34602. the specified interface
  34603. @throws UnknownHostException]]>
  34604. </doc>
  34605. </method>
  34606. <method name="getHosts" return="java.lang.String[]"
  34607. abstract="false" native="false" synchronized="false"
  34608. static="true" final="false" visibility="public"
  34609. deprecated="not deprecated">
  34610. <param name="strInterface" type="java.lang.String"/>
  34611. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34612. <doc>
  34613. <![CDATA[Returns all the host names associated by the default nameserver with the
  34614. address bound to the specified network interface
  34615. @param strInterface
  34616. The name of the network interface to query (e.g. eth0)
  34617. @return The list of host names associated with IPs bound to the network
  34618. interface
  34619. @throws UnknownHostException
  34620. If one is encountered while querying the deault interface]]>
  34621. </doc>
  34622. </method>
  34623. <method name="getDefaultHost" return="java.lang.String"
  34624. abstract="false" native="false" synchronized="false"
  34625. static="true" final="false" visibility="public"
  34626. deprecated="not deprecated">
  34627. <param name="strInterface" type="java.lang.String"/>
  34628. <param name="nameserver" type="java.lang.String"/>
  34629. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34630. <doc>
  34631. <![CDATA[Returns the default (first) host name associated by the provided
  34632. nameserver with the address bound to the specified network interface
  34633. @param strInterface
  34634. The name of the network interface to query (e.g. eth0)
  34635. @param nameserver
  34636. The DNS host name
  34637. @return The default host names associated with IPs bound to the network
  34638. interface
  34639. @throws UnknownHostException
  34640. If one is encountered while querying the deault interface]]>
  34641. </doc>
  34642. </method>
  34643. <method name="getDefaultHost" return="java.lang.String"
  34644. abstract="false" native="false" synchronized="false"
  34645. static="true" final="false" visibility="public"
  34646. deprecated="not deprecated">
  34647. <param name="strInterface" type="java.lang.String"/>
  34648. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  34649. <doc>
  34650. <![CDATA[Returns the default (first) host name associated by the default
  34651. nameserver with the address bound to the specified network interface
  34652. @param strInterface
  34653. The name of the network interface to query (e.g. eth0)
  34654. @return The default host name associated with IPs bound to the network
  34655. interface
  34656. @throws UnknownHostException
  34657. If one is encountered while querying the deault interface]]>
  34658. </doc>
  34659. </method>
  34660. <doc>
  34661. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  34662. the querying of specific network interfaces or nameservers.]]>
  34663. </doc>
  34664. </class>
  34665. <!-- end class org.apache.hadoop.net.DNS -->
  34666. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  34667. <interface name="DNSToSwitchMapping" abstract="true"
  34668. static="false" final="false" visibility="public"
  34669. deprecated="not deprecated">
  34670. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  34671. abstract="false" native="false" synchronized="false"
  34672. static="false" final="false" visibility="public"
  34673. deprecated="not deprecated">
  34674. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  34675. <doc>
  34676. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  34677. switch information (network paths). One-to-one correspondence must be
  34678. maintained between the elements in the lists.
  34679. Consider an element in the argument list - x.y.com. The switch information
  34680. that is returned must be a network path of the form /foo/rack,
  34681. where / is the root, and 'foo' is the switch where 'rack' is connected.
  34682. Note the hostname/ip-address is not part of the returned path.
  34683. The network topology of the cluster would determine the number of
  34684. components in the network path.
  34685. @param names
  34686. @return list of resolved network paths]]>
  34687. </doc>
  34688. </method>
  34689. <doc>
  34690. <![CDATA[An interface that should be implemented to allow pluggable
  34691. DNS-name/IP-address to RackID resolvers.]]>
  34692. </doc>
  34693. </interface>
  34694. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  34695. <!-- start class org.apache.hadoop.net.NetUtils -->
  34696. <class name="NetUtils" extends="java.lang.Object"
  34697. abstract="false"
  34698. static="false" final="false" visibility="public"
  34699. deprecated="not deprecated">
  34700. <constructor name="NetUtils"
  34701. static="false" final="false" visibility="public"
  34702. deprecated="not deprecated">
  34703. </constructor>
  34704. <method name="getSocketFactory" return="javax.net.SocketFactory"
  34705. abstract="false" native="false" synchronized="false"
  34706. static="true" final="false" visibility="public"
  34707. deprecated="not deprecated">
  34708. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34709. <param name="clazz" type="java.lang.Class&lt;?&gt;"/>
  34710. <doc>
  34711. <![CDATA[Get the socket factory for the given class according to its
  34712. configuration parameter
  34713. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  34714. such parameter exists then fall back on the default socket factory as
  34715. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  34716. this default socket factory is not configured, then fall back on the JVM
  34717. default socket factory.
  34718. @param conf the configuration
  34719. @param clazz the class (usually a {@link VersionedProtocol})
  34720. @return a socket factory]]>
  34721. </doc>
  34722. </method>
  34723. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  34724. abstract="false" native="false" synchronized="false"
  34725. static="true" final="false" visibility="public"
  34726. deprecated="not deprecated">
  34727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34728. <doc>
  34729. <![CDATA[Get the default socket factory as specified by the configuration
  34730. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  34731. @param conf the configuration
  34732. @return the default socket factory as specified in the configuration or
  34733. the JVM default socket factory if the configuration does not
  34734. contain a default socket factory property.]]>
  34735. </doc>
  34736. </method>
  34737. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  34738. abstract="false" native="false" synchronized="false"
  34739. static="true" final="false" visibility="public"
  34740. deprecated="not deprecated">
  34741. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34742. <param name="propValue" type="java.lang.String"/>
  34743. <doc>
  34744. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  34745. given proxy URI corresponds to an absence of configuration parameter,
  34746. returns null. If the URI is malformed raises an exception.
  34747. @param propValue the property which is the class name of the
  34748. SocketFactory to instantiate; assumed non null and non empty.
  34749. @return a socket factory as defined in the property value.]]>
  34750. </doc>
  34751. </method>
  34752. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  34753. abstract="false" native="false" synchronized="false"
  34754. static="true" final="false" visibility="public"
  34755. deprecated="not deprecated">
  34756. <param name="target" type="java.lang.String"/>
  34757. <doc>
  34758. <![CDATA[Util method to build socket addr from either:
  34759. <host>:<post>
  34760. <fs>://<host>:<port>/<path>]]>
  34761. </doc>
  34762. </method>
  34763. <method name="getServerAddress" return="java.lang.String"
  34764. abstract="false" native="false" synchronized="false"
  34765. static="true" final="false" visibility="public"
  34766. deprecated="not deprecated">
  34767. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  34768. <param name="oldBindAddressName" type="java.lang.String"/>
  34769. <param name="oldPortName" type="java.lang.String"/>
  34770. <param name="newBindAddressName" type="java.lang.String"/>
  34771. <doc>
  34772. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  34773. to a single colon separated one.
  34774. @param conf the configuration to check
  34775. @param oldBindAddressName the old address attribute name
  34776. @param oldPortName the old port attribute name
  34777. @param newBindAddressName the new combined name
  34778. @return the complete address from the configuration]]>
  34779. </doc>
  34780. </method>
  34781. <method name="addStaticResolution"
  34782. abstract="false" native="false" synchronized="false"
  34783. static="true" final="false" visibility="public"
  34784. deprecated="not deprecated">
  34785. <param name="host" type="java.lang.String"/>
  34786. <param name="resolvedName" type="java.lang.String"/>
  34787. <doc>
  34788. <![CDATA[Adds a static resolution for host. This can be used for setting up
  34789. hostnames with names that are fake to point to a well known host. For e.g.
  34790. in some testcases we require to have daemons with different hostnames
  34791. running on the same machine. In order to create connections to these
  34792. daemons, one can set up mappings from those hostnames to "localhost".
  34793. {@link NetUtils#getStaticResolution(String)} can be used to query for
  34794. the actual hostname.
  34795. @param host
  34796. @param resolvedName]]>
  34797. </doc>
  34798. </method>
  34799. <method name="getStaticResolution" return="java.lang.String"
  34800. abstract="false" native="false" synchronized="false"
  34801. static="true" final="false" visibility="public"
  34802. deprecated="not deprecated">
  34803. <param name="host" type="java.lang.String"/>
  34804. <doc>
  34805. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  34806. have been set earlier using
  34807. {@link NetUtils#addStaticResolution(String, String)}
  34808. @param host
  34809. @return the resolution]]>
  34810. </doc>
  34811. </method>
  34812. <method name="getAllStaticResolutions" return="java.util.List&lt;java.lang.String[]&gt;"
  34813. abstract="false" native="false" synchronized="false"
  34814. static="true" final="false" visibility="public"
  34815. deprecated="not deprecated">
  34816. <doc>
  34817. <![CDATA[This is used to get all the resolutions that were added using
  34818. {@link NetUtils#addStaticResolution(String, String)}. The return
  34819. value is a List each element of which contains an array of String
  34820. of the form String[0]=hostname, String[1]=resolved-hostname
  34821. @return the list of resolutions]]>
  34822. </doc>
  34823. </method>
  34824. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  34825. abstract="false" native="false" synchronized="false"
  34826. static="true" final="false" visibility="public"
  34827. deprecated="not deprecated">
  34828. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  34829. <doc>
  34830. <![CDATA[Returns InetSocketAddress that a client can use to
  34831. connect to the server. Server.getListenerAddress() is not correct when
  34832. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  34833. the getListenerAddress() returns "0.0.0.0:port".
  34834. @param server
  34835. @return socket address that a client can use to connect to the server.]]>
  34836. </doc>
  34837. </method>
  34838. <method name="getInputStream" return="java.io.InputStream"
  34839. abstract="false" native="false" synchronized="false"
  34840. static="true" final="false" visibility="public"
  34841. deprecated="not deprecated">
  34842. <param name="socket" type="java.net.Socket"/>
  34843. <exception name="IOException" type="java.io.IOException"/>
  34844. <doc>
  34845. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  34846. From documentation for {@link #getInputStream(Socket, long)}:<br>
  34847. Returns InputStream for the socket. If the socket has an associated
  34848. SocketChannel then it returns a
  34849. {@link SocketInputStream} with the given timeout. If the socket does not
  34850. have a channel, {@link Socket#getInputStream()} is returned. In the later
  34851. case, the timeout argument is ignored and the timeout set with
  34852. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  34853. Any socket created using socket factories returned by {@link #NetUtils},
  34854. must use this interface instead of {@link Socket#getInputStream()}.
  34855. @see #getInputStream(Socket, long)
  34856. @param socket
  34857. @return InputStream for reading from the socket.
  34858. @throws IOException]]>
  34859. </doc>
  34860. </method>
  34861. <method name="getInputStream" return="java.io.InputStream"
  34862. abstract="false" native="false" synchronized="false"
  34863. static="true" final="false" visibility="public"
  34864. deprecated="not deprecated">
  34865. <param name="socket" type="java.net.Socket"/>
  34866. <param name="timeout" type="long"/>
  34867. <exception name="IOException" type="java.io.IOException"/>
  34868. <doc>
  34869. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  34870. SocketChannel then it returns a
  34871. {@link SocketInputStream} with the given timeout. If the socket does not
  34872. have a channel, {@link Socket#getInputStream()} is returned. In the later
  34873. case, the timeout argument is ignored and the timeout set with
  34874. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  34875. Any socket created using socket factories returned by {@link #NetUtils},
  34876. must use this interface instead of {@link Socket#getInputStream()}.
  34877. @see Socket#getChannel()
  34878. @param socket
  34879. @param timeout timeout in milliseconds. This may not always apply. zero
  34880. for waiting as long as necessary.
  34881. @return InputStream for reading from the socket.
  34882. @throws IOException]]>
  34883. </doc>
  34884. </method>
  34885. <method name="getOutputStream" return="java.io.OutputStream"
  34886. abstract="false" native="false" synchronized="false"
  34887. static="true" final="false" visibility="public"
  34888. deprecated="not deprecated">
  34889. <param name="socket" type="java.net.Socket"/>
  34890. <exception name="IOException" type="java.io.IOException"/>
  34891. <doc>
  34892. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  34893. wait until data is available.<br><br>
  34894. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  34895. Returns OutputStream for the socket. If the socket has an associated
  34896. SocketChannel then it returns a
  34897. {@link SocketOutputStream} with the given timeout. If the socket does not
  34898. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  34899. case, the timeout argument is ignored and the write will wait until
  34900. data is available.<br><br>
  34901. Any socket created using socket factories returned by {@link #NetUtils},
  34902. must use this interface instead of {@link Socket#getOutputStream()}.
  34903. @see #getOutputStream(Socket, long)
  34904. @param socket
  34905. @return OutputStream for writing to the socket.
  34906. @throws IOException]]>
  34907. </doc>
  34908. </method>
  34909. <method name="getOutputStream" return="java.io.OutputStream"
  34910. abstract="false" native="false" synchronized="false"
  34911. static="true" final="false" visibility="public"
  34912. deprecated="not deprecated">
  34913. <param name="socket" type="java.net.Socket"/>
  34914. <param name="timeout" type="long"/>
  34915. <exception name="IOException" type="java.io.IOException"/>
  34916. <doc>
  34917. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  34918. SocketChannel then it returns a
  34919. {@link SocketOutputStream} with the given timeout. If the socket does not
  34920. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  34921. case, the timeout argument is ignored and the write will wait until
  34922. data is available.<br><br>
  34923. Any socket created using socket factories returned by {@link #NetUtils},
  34924. must use this interface instead of {@link Socket#getOutputStream()}.
  34925. @see Socket#getChannel()
  34926. @param socket
  34927. @param timeout timeout in milliseconds. This may not always apply. zero
  34928. for waiting as long as necessary.
  34929. @return OutputStream for writing to the socket.
  34930. @throws IOException]]>
  34931. </doc>
  34932. </method>
  34933. </class>
  34934. <!-- end class org.apache.hadoop.net.NetUtils -->
  34935. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  34936. <class name="NetworkTopology" extends="java.lang.Object"
  34937. abstract="false"
  34938. static="false" final="false" visibility="public"
  34939. deprecated="not deprecated">
  34940. <constructor name="NetworkTopology"
  34941. static="false" final="false" visibility="public"
  34942. deprecated="not deprecated">
  34943. </constructor>
  34944. <method name="add"
  34945. abstract="false" native="false" synchronized="false"
  34946. static="false" final="false" visibility="public"
  34947. deprecated="not deprecated">
  34948. <param name="node" type="org.apache.hadoop.net.Node"/>
  34949. <doc>
  34950. <![CDATA[Add a leaf node
  34951. Update node counter & rack counter if neccessary
  34952. @param node
  34953. node to be added
  34954. @exception IllegalArgumentException if add a node to a leave
  34955. or node to be added is not a leaf]]>
  34956. </doc>
  34957. </method>
  34958. <method name="remove"
  34959. abstract="false" native="false" synchronized="false"
  34960. static="false" final="false" visibility="public"
  34961. deprecated="not deprecated">
  34962. <param name="node" type="org.apache.hadoop.net.Node"/>
  34963. <doc>
  34964. <![CDATA[Remove a node
  34965. Update node counter & rack counter if neccessary
  34966. @param node
  34967. node to be removed]]>
  34968. </doc>
  34969. </method>
  34970. <method name="contains" return="boolean"
  34971. abstract="false" native="false" synchronized="false"
  34972. static="false" final="false" visibility="public"
  34973. deprecated="not deprecated">
  34974. <param name="node" type="org.apache.hadoop.net.Node"/>
  34975. <doc>
  34976. <![CDATA[Check if the tree contains node <i>node</i>
  34977. @param node
  34978. a node
  34979. @return true if <i>node</i> is already in the tree; false otherwise]]>
  34980. </doc>
  34981. </method>
  34982. <method name="getNode" return="org.apache.hadoop.net.Node"
  34983. abstract="false" native="false" synchronized="false"
  34984. static="false" final="false" visibility="public"
  34985. deprecated="not deprecated">
  34986. <param name="loc" type="java.lang.String"/>
  34987. <doc>
  34988. <![CDATA[Given a string representation of a node, return its reference
  34989. @param loc
  34990. a path-like string representation of a node
  34991. @return a reference to the node; null if the node is not in the tree]]>
  34992. </doc>
  34993. </method>
  34994. <method name="getNumOfRacks" return="int"
  34995. abstract="false" native="false" synchronized="false"
  34996. static="false" final="false" visibility="public"
  34997. deprecated="not deprecated">
  34998. <doc>
  34999. <![CDATA[Return the total number of racks]]>
  35000. </doc>
  35001. </method>
  35002. <method name="getNumOfLeaves" return="int"
  35003. abstract="false" native="false" synchronized="false"
  35004. static="false" final="false" visibility="public"
  35005. deprecated="not deprecated">
  35006. <doc>
  35007. <![CDATA[Return the total number of nodes]]>
  35008. </doc>
  35009. </method>
  35010. <method name="getDistance" return="int"
  35011. abstract="false" native="false" synchronized="false"
  35012. static="false" final="false" visibility="public"
  35013. deprecated="not deprecated">
  35014. <param name="node1" type="org.apache.hadoop.net.Node"/>
  35015. <param name="node2" type="org.apache.hadoop.net.Node"/>
  35016. <doc>
  35017. <![CDATA[Return the distance between two nodes
  35018. It is assumed that the distance from one node to its parent is 1
  35019. The distance between two nodes is calculated by summing up their distances
  35020. to their closest common ancestor.
  35021. @param node1 one node
  35022. @param node2 another node
  35023. @return the distance between node1 and node2
  35024. node1 or node2 do not belong to the cluster]]>
  35025. </doc>
  35026. </method>
  35027. <method name="isOnSameRack" return="boolean"
  35028. abstract="false" native="false" synchronized="false"
  35029. static="false" final="false" visibility="public"
  35030. deprecated="not deprecated">
  35031. <param name="node1" type="org.apache.hadoop.net.Node"/>
  35032. <param name="node2" type="org.apache.hadoop.net.Node"/>
  35033. <doc>
  35034. <![CDATA[Check if two nodes are on the same rack
  35035. @param node1 one node
  35036. @param node2 another node
  35037. @return true if node1 and node2 are pm the same rack; false otherwise
  35038. @exception IllegalArgumentException when either node1 or node2 is null, or
  35039. node1 or node2 do not belong to the cluster]]>
  35040. </doc>
  35041. </method>
  35042. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  35043. abstract="false" native="false" synchronized="false"
  35044. static="false" final="false" visibility="public"
  35045. deprecated="not deprecated">
  35046. <param name="scope" type="java.lang.String"/>
  35047. <doc>
  35048. <![CDATA[randomly choose one node from <i>scope</i>
  35049. if scope starts with ~, choose one from the all nodes except for the
  35050. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  35051. @param scope range of nodes from which a node will be choosen
  35052. @return the choosen node]]>
  35053. </doc>
  35054. </method>
  35055. <method name="countNumOfAvailableNodes" return="int"
  35056. abstract="false" native="false" synchronized="false"
  35057. static="false" final="false" visibility="public"
  35058. deprecated="not deprecated">
  35059. <param name="scope" type="java.lang.String"/>
  35060. <param name="excludedNodes" type="java.util.List&lt;org.apache.hadoop.net.Node&gt;"/>
  35061. <doc>
  35062. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  35063. if scope starts with ~, return the number of nodes that are not
  35064. in <i>scope</i> and <i>excludedNodes</i>;
  35065. @param scope a path string that may start with ~
  35066. @param excludedNodes a list of nodes
  35067. @return number of available nodes]]>
  35068. </doc>
  35069. </method>
  35070. <method name="toString" return="java.lang.String"
  35071. abstract="false" native="false" synchronized="false"
  35072. static="false" final="false" visibility="public"
  35073. deprecated="not deprecated">
  35074. <doc>
  35075. <![CDATA[convert a network tree to a string]]>
  35076. </doc>
  35077. </method>
  35078. <method name="pseudoSortByDistance"
  35079. abstract="false" native="false" synchronized="true"
  35080. static="false" final="false" visibility="public"
  35081. deprecated="not deprecated">
  35082. <param name="reader" type="org.apache.hadoop.net.Node"/>
  35083. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  35084. <doc>
  35085. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  35086. It linearly scans the array, if a local node is found, swap it with
  35087. the first element of the array.
  35088. If a local rack node is found, swap it with the first element following
  35089. the local node.
  35090. If neither local node or local rack node is found, put a random replica
  35091. location at postion 0.
  35092. It leaves the rest nodes untouched.]]>
  35093. </doc>
  35094. </method>
  35095. <field name="DEFAULT_RACK" type="java.lang.String"
  35096. transient="false" volatile="false"
  35097. static="true" final="true" visibility="public"
  35098. deprecated="not deprecated">
  35099. </field>
  35100. <field name="UNRESOLVED" type="java.lang.String"
  35101. transient="false" volatile="false"
  35102. static="true" final="true" visibility="public"
  35103. deprecated="not deprecated">
  35104. </field>
  35105. <field name="DEFAULT_HOST_LEVEL" type="int"
  35106. transient="false" volatile="false"
  35107. static="true" final="true" visibility="public"
  35108. deprecated="not deprecated">
  35109. </field>
  35110. <field name="LOG" type="org.apache.commons.logging.Log"
  35111. transient="false" volatile="false"
  35112. static="true" final="true" visibility="public"
  35113. deprecated="not deprecated">
  35114. </field>
  35115. <doc>
  35116. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  35117. network topology.
  35118. For example, a cluster may be consists of many data centers filled
  35119. with racks of computers.
  35120. In a network topology, leaves represent data nodes (computers) and inner
  35121. nodes represent switches/routers that manage traffic in/out of data centers
  35122. or racks.]]>
  35123. </doc>
  35124. </class>
  35125. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  35126. <!-- start interface org.apache.hadoop.net.Node -->
  35127. <interface name="Node" abstract="true"
  35128. static="false" final="false" visibility="public"
  35129. deprecated="not deprecated">
  35130. <method name="getNetworkLocation" return="java.lang.String"
  35131. abstract="false" native="false" synchronized="false"
  35132. static="false" final="false" visibility="public"
  35133. deprecated="not deprecated">
  35134. <doc>
  35135. <![CDATA[Return the string representation of this node's network location]]>
  35136. </doc>
  35137. </method>
  35138. <method name="setNetworkLocation"
  35139. abstract="false" native="false" synchronized="false"
  35140. static="false" final="false" visibility="public"
  35141. deprecated="not deprecated">
  35142. <param name="location" type="java.lang.String"/>
  35143. <doc>
  35144. <![CDATA[Set the node's network location]]>
  35145. </doc>
  35146. </method>
  35147. <method name="getName" return="java.lang.String"
  35148. abstract="false" native="false" synchronized="false"
  35149. static="false" final="false" visibility="public"
  35150. deprecated="not deprecated">
  35151. <doc>
  35152. <![CDATA[Return this node's name]]>
  35153. </doc>
  35154. </method>
  35155. <method name="getParent" return="org.apache.hadoop.net.Node"
  35156. abstract="false" native="false" synchronized="false"
  35157. static="false" final="false" visibility="public"
  35158. deprecated="not deprecated">
  35159. <doc>
  35160. <![CDATA[Return this node's parent]]>
  35161. </doc>
  35162. </method>
  35163. <method name="setParent"
  35164. abstract="false" native="false" synchronized="false"
  35165. static="false" final="false" visibility="public"
  35166. deprecated="not deprecated">
  35167. <param name="parent" type="org.apache.hadoop.net.Node"/>
  35168. <doc>
  35169. <![CDATA[Set this node's parent]]>
  35170. </doc>
  35171. </method>
  35172. <method name="getLevel" return="int"
  35173. abstract="false" native="false" synchronized="false"
  35174. static="false" final="false" visibility="public"
  35175. deprecated="not deprecated">
  35176. <doc>
  35177. <![CDATA[Return this node's level in the tree.
  35178. E.g. the root of a tree returns 0 and its children return 1]]>
  35179. </doc>
  35180. </method>
  35181. <method name="setLevel"
  35182. abstract="false" native="false" synchronized="false"
  35183. static="false" final="false" visibility="public"
  35184. deprecated="not deprecated">
  35185. <param name="i" type="int"/>
  35186. <doc>
  35187. <![CDATA[Set this node's level in the tree.]]>
  35188. </doc>
  35189. </method>
  35190. <doc>
  35191. <![CDATA[The interface defines a node in a network topology.
  35192. A node may be a leave representing a data node or an inner
  35193. node representing a datacenter or rack.
  35194. Each data has a name and its location in the network is
  35195. decided by a string with syntax similar to a file name.
  35196. For example, a data node's name is hostname:port# and if it's located at
  35197. rack "orange" in datacenter "dog", the string representation of its
  35198. network location is /dog/orange]]>
  35199. </doc>
  35200. </interface>
  35201. <!-- end interface org.apache.hadoop.net.Node -->
  35202. <!-- start class org.apache.hadoop.net.NodeBase -->
  35203. <class name="NodeBase" extends="java.lang.Object"
  35204. abstract="false"
  35205. static="false" final="false" visibility="public"
  35206. deprecated="not deprecated">
  35207. <implements name="org.apache.hadoop.net.Node"/>
  35208. <constructor name="NodeBase"
  35209. static="false" final="false" visibility="public"
  35210. deprecated="not deprecated">
  35211. <doc>
  35212. <![CDATA[Default constructor]]>
  35213. </doc>
  35214. </constructor>
  35215. <constructor name="NodeBase" type="java.lang.String"
  35216. static="false" final="false" visibility="public"
  35217. deprecated="not deprecated">
  35218. <doc>
  35219. <![CDATA[Construct a node from its path
  35220. @param path
  35221. a concatenation of this node's location, the path seperator, and its name]]>
  35222. </doc>
  35223. </constructor>
  35224. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  35225. static="false" final="false" visibility="public"
  35226. deprecated="not deprecated">
  35227. <doc>
  35228. <![CDATA[Construct a node from its name and its location
  35229. @param name this node's name
  35230. @param location this node's location]]>
  35231. </doc>
  35232. </constructor>
  35233. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  35234. static="false" final="false" visibility="public"
  35235. deprecated="not deprecated">
  35236. <doc>
  35237. <![CDATA[Construct a node from its name and its location
  35238. @param name this node's name
  35239. @param location this node's location
  35240. @param parent this node's parent node
  35241. @param level this node's level in the tree]]>
  35242. </doc>
  35243. </constructor>
  35244. <method name="getName" return="java.lang.String"
  35245. abstract="false" native="false" synchronized="false"
  35246. static="false" final="false" visibility="public"
  35247. deprecated="not deprecated">
  35248. <doc>
  35249. <![CDATA[Return this node's name]]>
  35250. </doc>
  35251. </method>
  35252. <method name="getNetworkLocation" return="java.lang.String"
  35253. abstract="false" native="false" synchronized="false"
  35254. static="false" final="false" visibility="public"
  35255. deprecated="not deprecated">
  35256. <doc>
  35257. <![CDATA[Return this node's network location]]>
  35258. </doc>
  35259. </method>
  35260. <method name="setNetworkLocation"
  35261. abstract="false" native="false" synchronized="false"
  35262. static="false" final="false" visibility="public"
  35263. deprecated="not deprecated">
  35264. <param name="location" type="java.lang.String"/>
  35265. <doc>
  35266. <![CDATA[Set this node's network location]]>
  35267. </doc>
  35268. </method>
  35269. <method name="getPath" return="java.lang.String"
  35270. abstract="false" native="false" synchronized="false"
  35271. static="true" final="false" visibility="public"
  35272. deprecated="not deprecated">
  35273. <param name="node" type="org.apache.hadoop.net.Node"/>
  35274. <doc>
  35275. <![CDATA[Return this node's path]]>
  35276. </doc>
  35277. </method>
  35278. <method name="toString" return="java.lang.String"
  35279. abstract="false" native="false" synchronized="false"
  35280. static="false" final="false" visibility="public"
  35281. deprecated="not deprecated">
  35282. <doc>
  35283. <![CDATA[Return this node's string representation]]>
  35284. </doc>
  35285. </method>
  35286. <method name="normalize" return="java.lang.String"
  35287. abstract="false" native="false" synchronized="false"
  35288. static="true" final="false" visibility="public"
  35289. deprecated="not deprecated">
  35290. <param name="path" type="java.lang.String"/>
  35291. <doc>
  35292. <![CDATA[Normalize a path]]>
  35293. </doc>
  35294. </method>
  35295. <method name="getParent" return="org.apache.hadoop.net.Node"
  35296. abstract="false" native="false" synchronized="false"
  35297. static="false" final="false" visibility="public"
  35298. deprecated="not deprecated">
  35299. <doc>
  35300. <![CDATA[Return this node's parent]]>
  35301. </doc>
  35302. </method>
  35303. <method name="setParent"
  35304. abstract="false" native="false" synchronized="false"
  35305. static="false" final="false" visibility="public"
  35306. deprecated="not deprecated">
  35307. <param name="parent" type="org.apache.hadoop.net.Node"/>
  35308. <doc>
  35309. <![CDATA[Set this node's parent]]>
  35310. </doc>
  35311. </method>
  35312. <method name="getLevel" return="int"
  35313. abstract="false" native="false" synchronized="false"
  35314. static="false" final="false" visibility="public"
  35315. deprecated="not deprecated">
  35316. <doc>
  35317. <![CDATA[Return this node's level in the tree.
  35318. E.g. the root of a tree returns 0 and its children return 1]]>
  35319. </doc>
  35320. </method>
  35321. <method name="setLevel"
  35322. abstract="false" native="false" synchronized="false"
  35323. static="false" final="false" visibility="public"
  35324. deprecated="not deprecated">
  35325. <param name="level" type="int"/>
  35326. <doc>
  35327. <![CDATA[Set this node's level in the tree]]>
  35328. </doc>
  35329. </method>
  35330. <field name="PATH_SEPARATOR" type="char"
  35331. transient="false" volatile="false"
  35332. static="true" final="true" visibility="public"
  35333. deprecated="not deprecated">
  35334. </field>
  35335. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  35336. transient="false" volatile="false"
  35337. static="true" final="false" visibility="public"
  35338. deprecated="not deprecated">
  35339. </field>
  35340. <field name="ROOT" type="java.lang.String"
  35341. transient="false" volatile="false"
  35342. static="true" final="true" visibility="public"
  35343. deprecated="not deprecated">
  35344. </field>
  35345. <field name="name" type="java.lang.String"
  35346. transient="false" volatile="false"
  35347. static="false" final="false" visibility="protected"
  35348. deprecated="not deprecated">
  35349. </field>
  35350. <field name="location" type="java.lang.String"
  35351. transient="false" volatile="false"
  35352. static="false" final="false" visibility="protected"
  35353. deprecated="not deprecated">
  35354. </field>
  35355. <field name="level" type="int"
  35356. transient="false" volatile="false"
  35357. static="false" final="false" visibility="protected"
  35358. deprecated="not deprecated">
  35359. </field>
  35360. <field name="parent" type="org.apache.hadoop.net.Node"
  35361. transient="false" volatile="false"
  35362. static="false" final="false" visibility="protected"
  35363. deprecated="not deprecated">
  35364. </field>
  35365. <doc>
  35366. <![CDATA[A base class that implements interface Node]]>
  35367. </doc>
  35368. </class>
  35369. <!-- end class org.apache.hadoop.net.NodeBase -->
  35370. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  35371. <class name="ScriptBasedMapping" extends="java.lang.Object"
  35372. abstract="false"
  35373. static="false" final="true" visibility="public"
  35374. deprecated="not deprecated">
  35375. <implements name="org.apache.hadoop.conf.Configurable"/>
  35376. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  35377. <constructor name="ScriptBasedMapping"
  35378. static="false" final="false" visibility="public"
  35379. deprecated="not deprecated">
  35380. </constructor>
  35381. <method name="setConf"
  35382. abstract="false" native="false" synchronized="false"
  35383. static="false" final="false" visibility="public"
  35384. deprecated="not deprecated">
  35385. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35386. </method>
  35387. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35388. abstract="false" native="false" synchronized="false"
  35389. static="false" final="false" visibility="public"
  35390. deprecated="not deprecated">
  35391. </method>
  35392. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  35393. abstract="false" native="false" synchronized="false"
  35394. static="false" final="false" visibility="public"
  35395. deprecated="not deprecated">
  35396. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  35397. </method>
  35398. <doc>
  35399. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  35400. script configured via topology.script.file.name .]]>
  35401. </doc>
  35402. </class>
  35403. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  35404. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  35405. <class name="SocketInputStream" extends="java.io.InputStream"
  35406. abstract="false"
  35407. static="false" final="false" visibility="public"
  35408. deprecated="not deprecated">
  35409. <implements name="java.nio.channels.ReadableByteChannel"/>
  35410. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  35411. static="false" final="false" visibility="public"
  35412. deprecated="not deprecated">
  35413. <exception name="IOException" type="java.io.IOException"/>
  35414. <doc>
  35415. <![CDATA[Create a new input stream with the given timeout. If the timeout
  35416. is zero, it will be treated as infinite timeout. The socket's
  35417. channel will be configured to be non-blocking.
  35418. @param channel
  35419. Channel for reading, should also be a {@link SelectableChannel}.
  35420. The channel will be configured to be non-blocking.
  35421. @param timeout timeout in milliseconds. must not be negative.
  35422. @throws IOException]]>
  35423. </doc>
  35424. </constructor>
  35425. <constructor name="SocketInputStream" type="java.net.Socket, long"
  35426. static="false" final="false" visibility="public"
  35427. deprecated="not deprecated">
  35428. <exception name="IOException" type="java.io.IOException"/>
  35429. <doc>
  35430. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  35431. Create a new input stream with the given timeout. If the timeout
  35432. is zero, it will be treated as infinite timeout. The socket's
  35433. channel will be configured to be non-blocking.
  35434. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  35435. @param socket should have a channel associated with it.
  35436. @param timeout timeout timeout in milliseconds. must not be negative.
  35437. @throws IOException]]>
  35438. </doc>
  35439. </constructor>
  35440. <constructor name="SocketInputStream" type="java.net.Socket"
  35441. static="false" final="false" visibility="public"
  35442. deprecated="not deprecated">
  35443. <exception name="IOException" type="java.io.IOException"/>
  35444. <doc>
  35445. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  35446. :<br><br>
  35447. Create a new input stream with the given timeout. If the timeout
  35448. is zero, it will be treated as infinite timeout. The socket's
  35449. channel will be configured to be non-blocking.
  35450. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  35451. @param socket should have a channel associated with it.
  35452. @throws IOException]]>
  35453. </doc>
  35454. </constructor>
  35455. <method name="read" return="int"
  35456. abstract="false" native="false" synchronized="false"
  35457. static="false" final="false" visibility="public"
  35458. deprecated="not deprecated">
  35459. <exception name="IOException" type="java.io.IOException"/>
  35460. </method>
  35461. <method name="read" return="int"
  35462. abstract="false" native="false" synchronized="false"
  35463. static="false" final="false" visibility="public"
  35464. deprecated="not deprecated">
  35465. <param name="b" type="byte[]"/>
  35466. <param name="off" type="int"/>
  35467. <param name="len" type="int"/>
  35468. <exception name="IOException" type="java.io.IOException"/>
  35469. </method>
  35470. <method name="close"
  35471. abstract="false" native="false" synchronized="true"
  35472. static="false" final="false" visibility="public"
  35473. deprecated="not deprecated">
  35474. <exception name="IOException" type="java.io.IOException"/>
  35475. </method>
  35476. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  35477. abstract="false" native="false" synchronized="false"
  35478. static="false" final="false" visibility="public"
  35479. deprecated="not deprecated">
  35480. <doc>
  35481. <![CDATA[Returns underlying channel used by inputstream.
  35482. This is useful in certain cases like channel for
  35483. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  35484. </doc>
  35485. </method>
  35486. <method name="isOpen" return="boolean"
  35487. abstract="false" native="false" synchronized="false"
  35488. static="false" final="false" visibility="public"
  35489. deprecated="not deprecated">
  35490. </method>
  35491. <method name="read" return="int"
  35492. abstract="false" native="false" synchronized="false"
  35493. static="false" final="false" visibility="public"
  35494. deprecated="not deprecated">
  35495. <param name="dst" type="java.nio.ByteBuffer"/>
  35496. <exception name="IOException" type="java.io.IOException"/>
  35497. </method>
  35498. <doc>
  35499. <![CDATA[This implements an input stream that can have a timeout while reading.
  35500. This sets non-blocking flag on the socket channel.
  35501. So after create this object, read() on
  35502. {@link Socket#getInputStream()} and write() on
  35503. {@link Socket#getOutputStream()} for the associated socket will throw
  35504. IllegalBlockingModeException.
  35505. Please use {@link SocketOutputStream} for writing.]]>
  35506. </doc>
  35507. </class>
  35508. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  35509. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  35510. <class name="SocketOutputStream" extends="java.io.OutputStream"
  35511. abstract="false"
  35512. static="false" final="false" visibility="public"
  35513. deprecated="not deprecated">
  35514. <implements name="java.nio.channels.WritableByteChannel"/>
  35515. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  35516. static="false" final="false" visibility="public"
  35517. deprecated="not deprecated">
  35518. <exception name="IOException" type="java.io.IOException"/>
  35519. <doc>
  35520. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  35521. is zero, it will be treated as infinite timeout. The socket's
  35522. channel will be configured to be non-blocking.
  35523. @param channel
  35524. Channel for writing, should also be a {@link SelectableChannel}.
  35525. The channel will be configured to be non-blocking.
  35526. @param timeout timeout in milliseconds. must not be negative.
  35527. @throws IOException]]>
  35528. </doc>
  35529. </constructor>
  35530. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  35531. static="false" final="false" visibility="public"
  35532. deprecated="not deprecated">
  35533. <exception name="IOException" type="java.io.IOException"/>
  35534. <doc>
  35535. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  35536. Create a new ouput stream with the given timeout. If the timeout
  35537. is zero, it will be treated as infinite timeout. The socket's
  35538. channel will be configured to be non-blocking.
  35539. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  35540. @param socket should have a channel associated with it.
  35541. @param timeout timeout timeout in milliseconds. must not be negative.
  35542. @throws IOException]]>
  35543. </doc>
  35544. </constructor>
  35545. <method name="write"
  35546. abstract="false" native="false" synchronized="false"
  35547. static="false" final="false" visibility="public"
  35548. deprecated="not deprecated">
  35549. <param name="b" type="int"/>
  35550. <exception name="IOException" type="java.io.IOException"/>
  35551. </method>
  35552. <method name="write"
  35553. abstract="false" native="false" synchronized="false"
  35554. static="false" final="false" visibility="public"
  35555. deprecated="not deprecated">
  35556. <param name="b" type="byte[]"/>
  35557. <param name="off" type="int"/>
  35558. <param name="len" type="int"/>
  35559. <exception name="IOException" type="java.io.IOException"/>
  35560. </method>
  35561. <method name="close"
  35562. abstract="false" native="false" synchronized="true"
  35563. static="false" final="false" visibility="public"
  35564. deprecated="not deprecated">
  35565. <exception name="IOException" type="java.io.IOException"/>
  35566. </method>
  35567. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  35568. abstract="false" native="false" synchronized="false"
  35569. static="false" final="false" visibility="public"
  35570. deprecated="not deprecated">
  35571. <doc>
  35572. <![CDATA[Returns underlying channel used by this stream.
  35573. This is useful in certain cases like channel for
  35574. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  35575. </doc>
  35576. </method>
  35577. <method name="isOpen" return="boolean"
  35578. abstract="false" native="false" synchronized="false"
  35579. static="false" final="false" visibility="public"
  35580. deprecated="not deprecated">
  35581. </method>
  35582. <method name="write" return="int"
  35583. abstract="false" native="false" synchronized="false"
  35584. static="false" final="false" visibility="public"
  35585. deprecated="not deprecated">
  35586. <param name="src" type="java.nio.ByteBuffer"/>
  35587. <exception name="IOException" type="java.io.IOException"/>
  35588. </method>
  35589. <doc>
  35590. <![CDATA[This implements an output stream that can have a timeout while writing.
  35591. This sets non-blocking flag on the socket channel.
  35592. So after creating this object , read() on
  35593. {@link Socket#getInputStream()} and write() on
  35594. {@link Socket#getOutputStream()} on the associated socket will throw
  35595. llegalBlockingModeException.
  35596. Please use {@link SocketInputStream} for reading.]]>
  35597. </doc>
  35598. </class>
  35599. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  35600. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  35601. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  35602. abstract="false"
  35603. static="false" final="false" visibility="public"
  35604. deprecated="not deprecated">
  35605. <implements name="org.apache.hadoop.conf.Configurable"/>
  35606. <constructor name="SocksSocketFactory"
  35607. static="false" final="false" visibility="public"
  35608. deprecated="not deprecated">
  35609. <doc>
  35610. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  35611. </doc>
  35612. </constructor>
  35613. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  35614. static="false" final="false" visibility="public"
  35615. deprecated="not deprecated">
  35616. <doc>
  35617. <![CDATA[Constructor with a supplied Proxy
  35618. @param proxy the proxy to use to create sockets]]>
  35619. </doc>
  35620. </constructor>
  35621. <method name="createSocket" return="java.net.Socket"
  35622. abstract="false" native="false" synchronized="false"
  35623. static="false" final="false" visibility="public"
  35624. deprecated="not deprecated">
  35625. <exception name="IOException" type="java.io.IOException"/>
  35626. </method>
  35627. <method name="createSocket" return="java.net.Socket"
  35628. abstract="false" native="false" synchronized="false"
  35629. static="false" final="false" visibility="public"
  35630. deprecated="not deprecated">
  35631. <param name="addr" type="java.net.InetAddress"/>
  35632. <param name="port" type="int"/>
  35633. <exception name="IOException" type="java.io.IOException"/>
  35634. </method>
  35635. <method name="createSocket" return="java.net.Socket"
  35636. abstract="false" native="false" synchronized="false"
  35637. static="false" final="false" visibility="public"
  35638. deprecated="not deprecated">
  35639. <param name="addr" type="java.net.InetAddress"/>
  35640. <param name="port" type="int"/>
  35641. <param name="localHostAddr" type="java.net.InetAddress"/>
  35642. <param name="localPort" type="int"/>
  35643. <exception name="IOException" type="java.io.IOException"/>
  35644. </method>
  35645. <method name="createSocket" return="java.net.Socket"
  35646. abstract="false" native="false" synchronized="false"
  35647. static="false" final="false" visibility="public"
  35648. deprecated="not deprecated">
  35649. <param name="host" type="java.lang.String"/>
  35650. <param name="port" type="int"/>
  35651. <exception name="IOException" type="java.io.IOException"/>
  35652. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35653. </method>
  35654. <method name="createSocket" return="java.net.Socket"
  35655. abstract="false" native="false" synchronized="false"
  35656. static="false" final="false" visibility="public"
  35657. deprecated="not deprecated">
  35658. <param name="host" type="java.lang.String"/>
  35659. <param name="port" type="int"/>
  35660. <param name="localHostAddr" type="java.net.InetAddress"/>
  35661. <param name="localPort" type="int"/>
  35662. <exception name="IOException" type="java.io.IOException"/>
  35663. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35664. </method>
  35665. <method name="hashCode" return="int"
  35666. abstract="false" native="false" synchronized="false"
  35667. static="false" final="false" visibility="public"
  35668. deprecated="not deprecated">
  35669. </method>
  35670. <method name="equals" return="boolean"
  35671. abstract="false" native="false" synchronized="false"
  35672. static="false" final="false" visibility="public"
  35673. deprecated="not deprecated">
  35674. <param name="obj" type="java.lang.Object"/>
  35675. </method>
  35676. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  35677. abstract="false" native="false" synchronized="false"
  35678. static="false" final="false" visibility="public"
  35679. deprecated="not deprecated">
  35680. </method>
  35681. <method name="setConf"
  35682. abstract="false" native="false" synchronized="false"
  35683. static="false" final="false" visibility="public"
  35684. deprecated="not deprecated">
  35685. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  35686. </method>
  35687. <doc>
  35688. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  35689. </doc>
  35690. </class>
  35691. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  35692. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  35693. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  35694. abstract="false"
  35695. static="false" final="false" visibility="public"
  35696. deprecated="not deprecated">
  35697. <constructor name="StandardSocketFactory"
  35698. static="false" final="false" visibility="public"
  35699. deprecated="not deprecated">
  35700. <doc>
  35701. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  35702. </doc>
  35703. </constructor>
  35704. <method name="createSocket" return="java.net.Socket"
  35705. abstract="false" native="false" synchronized="false"
  35706. static="false" final="false" visibility="public"
  35707. deprecated="not deprecated">
  35708. <exception name="IOException" type="java.io.IOException"/>
  35709. </method>
  35710. <method name="createSocket" return="java.net.Socket"
  35711. abstract="false" native="false" synchronized="false"
  35712. static="false" final="false" visibility="public"
  35713. deprecated="not deprecated">
  35714. <param name="addr" type="java.net.InetAddress"/>
  35715. <param name="port" type="int"/>
  35716. <exception name="IOException" type="java.io.IOException"/>
  35717. </method>
  35718. <method name="createSocket" return="java.net.Socket"
  35719. abstract="false" native="false" synchronized="false"
  35720. static="false" final="false" visibility="public"
  35721. deprecated="not deprecated">
  35722. <param name="addr" type="java.net.InetAddress"/>
  35723. <param name="port" type="int"/>
  35724. <param name="localHostAddr" type="java.net.InetAddress"/>
  35725. <param name="localPort" type="int"/>
  35726. <exception name="IOException" type="java.io.IOException"/>
  35727. </method>
  35728. <method name="createSocket" return="java.net.Socket"
  35729. abstract="false" native="false" synchronized="false"
  35730. static="false" final="false" visibility="public"
  35731. deprecated="not deprecated">
  35732. <param name="host" type="java.lang.String"/>
  35733. <param name="port" type="int"/>
  35734. <exception name="IOException" type="java.io.IOException"/>
  35735. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35736. </method>
  35737. <method name="createSocket" return="java.net.Socket"
  35738. abstract="false" native="false" synchronized="false"
  35739. static="false" final="false" visibility="public"
  35740. deprecated="not deprecated">
  35741. <param name="host" type="java.lang.String"/>
  35742. <param name="port" type="int"/>
  35743. <param name="localHostAddr" type="java.net.InetAddress"/>
  35744. <param name="localPort" type="int"/>
  35745. <exception name="IOException" type="java.io.IOException"/>
  35746. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  35747. </method>
  35748. <method name="equals" return="boolean"
  35749. abstract="false" native="false" synchronized="false"
  35750. static="false" final="false" visibility="public"
  35751. deprecated="not deprecated">
  35752. <param name="obj" type="java.lang.Object"/>
  35753. </method>
  35754. <method name="hashCode" return="int"
  35755. abstract="false" native="false" synchronized="false"
  35756. static="false" final="false" visibility="public"
  35757. deprecated="not deprecated">
  35758. </method>
  35759. <doc>
  35760. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  35761. </doc>
  35762. </class>
  35763. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  35764. <doc>
  35765. <![CDATA[Network-related classes.]]>
  35766. </doc>
  35767. </package>
  35768. <package name="org.apache.hadoop.record">
  35769. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  35770. <class name="BinaryRecordInput" extends="java.lang.Object"
  35771. abstract="false"
  35772. static="false" final="false" visibility="public"
  35773. deprecated="not deprecated">
  35774. <implements name="org.apache.hadoop.record.RecordInput"/>
  35775. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  35776. static="false" final="false" visibility="public"
  35777. deprecated="not deprecated">
  35778. <doc>
  35779. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  35780. </doc>
  35781. </constructor>
  35782. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  35783. static="false" final="false" visibility="public"
  35784. deprecated="not deprecated">
  35785. <doc>
  35786. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  35787. </doc>
  35788. </constructor>
  35789. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  35790. abstract="false" native="false" synchronized="false"
  35791. static="true" final="false" visibility="public"
  35792. deprecated="not deprecated">
  35793. <param name="inp" type="java.io.DataInput"/>
  35794. <doc>
  35795. <![CDATA[Get a thread-local record input for the supplied DataInput.
  35796. @param inp data input stream
  35797. @return binary record input corresponding to the supplied DataInput.]]>
  35798. </doc>
  35799. </method>
  35800. <method name="readByte" return="byte"
  35801. abstract="false" native="false" synchronized="false"
  35802. static="false" final="false" visibility="public"
  35803. deprecated="not deprecated">
  35804. <param name="tag" type="java.lang.String"/>
  35805. <exception name="IOException" type="java.io.IOException"/>
  35806. </method>
  35807. <method name="readBool" return="boolean"
  35808. abstract="false" native="false" synchronized="false"
  35809. static="false" final="false" visibility="public"
  35810. deprecated="not deprecated">
  35811. <param name="tag" type="java.lang.String"/>
  35812. <exception name="IOException" type="java.io.IOException"/>
  35813. </method>
  35814. <method name="readInt" return="int"
  35815. abstract="false" native="false" synchronized="false"
  35816. static="false" final="false" visibility="public"
  35817. deprecated="not deprecated">
  35818. <param name="tag" type="java.lang.String"/>
  35819. <exception name="IOException" type="java.io.IOException"/>
  35820. </method>
  35821. <method name="readLong" return="long"
  35822. abstract="false" native="false" synchronized="false"
  35823. static="false" final="false" visibility="public"
  35824. deprecated="not deprecated">
  35825. <param name="tag" type="java.lang.String"/>
  35826. <exception name="IOException" type="java.io.IOException"/>
  35827. </method>
  35828. <method name="readFloat" return="float"
  35829. abstract="false" native="false" synchronized="false"
  35830. static="false" final="false" visibility="public"
  35831. deprecated="not deprecated">
  35832. <param name="tag" type="java.lang.String"/>
  35833. <exception name="IOException" type="java.io.IOException"/>
  35834. </method>
  35835. <method name="readDouble" return="double"
  35836. abstract="false" native="false" synchronized="false"
  35837. static="false" final="false" visibility="public"
  35838. deprecated="not deprecated">
  35839. <param name="tag" type="java.lang.String"/>
  35840. <exception name="IOException" type="java.io.IOException"/>
  35841. </method>
  35842. <method name="readString" return="java.lang.String"
  35843. abstract="false" native="false" synchronized="false"
  35844. static="false" final="false" visibility="public"
  35845. deprecated="not deprecated">
  35846. <param name="tag" type="java.lang.String"/>
  35847. <exception name="IOException" type="java.io.IOException"/>
  35848. </method>
  35849. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  35850. abstract="false" native="false" synchronized="false"
  35851. static="false" final="false" visibility="public"
  35852. deprecated="not deprecated">
  35853. <param name="tag" type="java.lang.String"/>
  35854. <exception name="IOException" type="java.io.IOException"/>
  35855. </method>
  35856. <method name="startRecord"
  35857. abstract="false" native="false" synchronized="false"
  35858. static="false" final="false" visibility="public"
  35859. deprecated="not deprecated">
  35860. <param name="tag" type="java.lang.String"/>
  35861. <exception name="IOException" type="java.io.IOException"/>
  35862. </method>
  35863. <method name="endRecord"
  35864. abstract="false" native="false" synchronized="false"
  35865. static="false" final="false" visibility="public"
  35866. deprecated="not deprecated">
  35867. <param name="tag" type="java.lang.String"/>
  35868. <exception name="IOException" type="java.io.IOException"/>
  35869. </method>
  35870. <method name="startVector" return="org.apache.hadoop.record.Index"
  35871. abstract="false" native="false" synchronized="false"
  35872. static="false" final="false" visibility="public"
  35873. deprecated="not deprecated">
  35874. <param name="tag" type="java.lang.String"/>
  35875. <exception name="IOException" type="java.io.IOException"/>
  35876. </method>
  35877. <method name="endVector"
  35878. abstract="false" native="false" synchronized="false"
  35879. static="false" final="false" visibility="public"
  35880. deprecated="not deprecated">
  35881. <param name="tag" type="java.lang.String"/>
  35882. <exception name="IOException" type="java.io.IOException"/>
  35883. </method>
  35884. <method name="startMap" return="org.apache.hadoop.record.Index"
  35885. abstract="false" native="false" synchronized="false"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <param name="tag" type="java.lang.String"/>
  35889. <exception name="IOException" type="java.io.IOException"/>
  35890. </method>
  35891. <method name="endMap"
  35892. abstract="false" native="false" synchronized="false"
  35893. static="false" final="false" visibility="public"
  35894. deprecated="not deprecated">
  35895. <param name="tag" type="java.lang.String"/>
  35896. <exception name="IOException" type="java.io.IOException"/>
  35897. </method>
  35898. </class>
  35899. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  35900. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  35901. <class name="BinaryRecordOutput" extends="java.lang.Object"
  35902. abstract="false"
  35903. static="false" final="false" visibility="public"
  35904. deprecated="not deprecated">
  35905. <implements name="org.apache.hadoop.record.RecordOutput"/>
  35906. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  35907. static="false" final="false" visibility="public"
  35908. deprecated="not deprecated">
  35909. <doc>
  35910. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  35911. </doc>
  35912. </constructor>
  35913. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  35914. static="false" final="false" visibility="public"
  35915. deprecated="not deprecated">
  35916. <doc>
  35917. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  35918. </doc>
  35919. </constructor>
  35920. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  35921. abstract="false" native="false" synchronized="false"
  35922. static="true" final="false" visibility="public"
  35923. deprecated="not deprecated">
  35924. <param name="out" type="java.io.DataOutput"/>
  35925. <doc>
  35926. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  35927. @param out data output stream
  35928. @return binary record output corresponding to the supplied DataOutput.]]>
  35929. </doc>
  35930. </method>
  35931. <method name="writeByte"
  35932. abstract="false" native="false" synchronized="false"
  35933. static="false" final="false" visibility="public"
  35934. deprecated="not deprecated">
  35935. <param name="b" type="byte"/>
  35936. <param name="tag" type="java.lang.String"/>
  35937. <exception name="IOException" type="java.io.IOException"/>
  35938. </method>
  35939. <method name="writeBool"
  35940. abstract="false" native="false" synchronized="false"
  35941. static="false" final="false" visibility="public"
  35942. deprecated="not deprecated">
  35943. <param name="b" type="boolean"/>
  35944. <param name="tag" type="java.lang.String"/>
  35945. <exception name="IOException" type="java.io.IOException"/>
  35946. </method>
  35947. <method name="writeInt"
  35948. abstract="false" native="false" synchronized="false"
  35949. static="false" final="false" visibility="public"
  35950. deprecated="not deprecated">
  35951. <param name="i" type="int"/>
  35952. <param name="tag" type="java.lang.String"/>
  35953. <exception name="IOException" type="java.io.IOException"/>
  35954. </method>
  35955. <method name="writeLong"
  35956. abstract="false" native="false" synchronized="false"
  35957. static="false" final="false" visibility="public"
  35958. deprecated="not deprecated">
  35959. <param name="l" type="long"/>
  35960. <param name="tag" type="java.lang.String"/>
  35961. <exception name="IOException" type="java.io.IOException"/>
  35962. </method>
  35963. <method name="writeFloat"
  35964. abstract="false" native="false" synchronized="false"
  35965. static="false" final="false" visibility="public"
  35966. deprecated="not deprecated">
  35967. <param name="f" type="float"/>
  35968. <param name="tag" type="java.lang.String"/>
  35969. <exception name="IOException" type="java.io.IOException"/>
  35970. </method>
  35971. <method name="writeDouble"
  35972. abstract="false" native="false" synchronized="false"
  35973. static="false" final="false" visibility="public"
  35974. deprecated="not deprecated">
  35975. <param name="d" type="double"/>
  35976. <param name="tag" type="java.lang.String"/>
  35977. <exception name="IOException" type="java.io.IOException"/>
  35978. </method>
  35979. <method name="writeString"
  35980. abstract="false" native="false" synchronized="false"
  35981. static="false" final="false" visibility="public"
  35982. deprecated="not deprecated">
  35983. <param name="s" type="java.lang.String"/>
  35984. <param name="tag" type="java.lang.String"/>
  35985. <exception name="IOException" type="java.io.IOException"/>
  35986. </method>
  35987. <method name="writeBuffer"
  35988. abstract="false" native="false" synchronized="false"
  35989. static="false" final="false" visibility="public"
  35990. deprecated="not deprecated">
  35991. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  35992. <param name="tag" type="java.lang.String"/>
  35993. <exception name="IOException" type="java.io.IOException"/>
  35994. </method>
  35995. <method name="startRecord"
  35996. abstract="false" native="false" synchronized="false"
  35997. static="false" final="false" visibility="public"
  35998. deprecated="not deprecated">
  35999. <param name="r" type="org.apache.hadoop.record.Record"/>
  36000. <param name="tag" type="java.lang.String"/>
  36001. <exception name="IOException" type="java.io.IOException"/>
  36002. </method>
  36003. <method name="endRecord"
  36004. abstract="false" native="false" synchronized="false"
  36005. static="false" final="false" visibility="public"
  36006. deprecated="not deprecated">
  36007. <param name="r" type="org.apache.hadoop.record.Record"/>
  36008. <param name="tag" type="java.lang.String"/>
  36009. <exception name="IOException" type="java.io.IOException"/>
  36010. </method>
  36011. <method name="startVector"
  36012. abstract="false" native="false" synchronized="false"
  36013. static="false" final="false" visibility="public"
  36014. deprecated="not deprecated">
  36015. <param name="v" type="java.util.ArrayList"/>
  36016. <param name="tag" type="java.lang.String"/>
  36017. <exception name="IOException" type="java.io.IOException"/>
  36018. </method>
  36019. <method name="endVector"
  36020. abstract="false" native="false" synchronized="false"
  36021. static="false" final="false" visibility="public"
  36022. deprecated="not deprecated">
  36023. <param name="v" type="java.util.ArrayList"/>
  36024. <param name="tag" type="java.lang.String"/>
  36025. <exception name="IOException" type="java.io.IOException"/>
  36026. </method>
  36027. <method name="startMap"
  36028. abstract="false" native="false" synchronized="false"
  36029. static="false" final="false" visibility="public"
  36030. deprecated="not deprecated">
  36031. <param name="v" type="java.util.TreeMap"/>
  36032. <param name="tag" type="java.lang.String"/>
  36033. <exception name="IOException" type="java.io.IOException"/>
  36034. </method>
  36035. <method name="endMap"
  36036. abstract="false" native="false" synchronized="false"
  36037. static="false" final="false" visibility="public"
  36038. deprecated="not deprecated">
  36039. <param name="v" type="java.util.TreeMap"/>
  36040. <param name="tag" type="java.lang.String"/>
  36041. <exception name="IOException" type="java.io.IOException"/>
  36042. </method>
  36043. </class>
  36044. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  36045. <!-- start class org.apache.hadoop.record.Buffer -->
  36046. <class name="Buffer" extends="java.lang.Object"
  36047. abstract="false"
  36048. static="false" final="false" visibility="public"
  36049. deprecated="not deprecated">
  36050. <implements name="java.lang.Comparable"/>
  36051. <implements name="java.lang.Cloneable"/>
  36052. <constructor name="Buffer"
  36053. static="false" final="false" visibility="public"
  36054. deprecated="not deprecated">
  36055. <doc>
  36056. <![CDATA[Create a zero-count sequence.]]>
  36057. </doc>
  36058. </constructor>
  36059. <constructor name="Buffer" type="byte[]"
  36060. static="false" final="false" visibility="public"
  36061. deprecated="not deprecated">
  36062. <doc>
  36063. <![CDATA[Create a Buffer using the byte array as the initial value.
  36064. @param bytes This array becomes the backing storage for the object.]]>
  36065. </doc>
  36066. </constructor>
  36067. <constructor name="Buffer" type="byte[], int, int"
  36068. static="false" final="false" visibility="public"
  36069. deprecated="not deprecated">
  36070. <doc>
  36071. <![CDATA[Create a Buffer using the byte range as the initial value.
  36072. @param bytes Copy of this array becomes the backing storage for the object.
  36073. @param offset offset into byte array
  36074. @param length length of data]]>
  36075. </doc>
  36076. </constructor>
  36077. <method name="set"
  36078. abstract="false" native="false" synchronized="false"
  36079. static="false" final="false" visibility="public"
  36080. deprecated="not deprecated">
  36081. <param name="bytes" type="byte[]"/>
  36082. <doc>
  36083. <![CDATA[Use the specified bytes array as underlying sequence.
  36084. @param bytes byte sequence]]>
  36085. </doc>
  36086. </method>
  36087. <method name="copy"
  36088. abstract="false" native="false" synchronized="false"
  36089. static="false" final="true" visibility="public"
  36090. deprecated="not deprecated">
  36091. <param name="bytes" type="byte[]"/>
  36092. <param name="offset" type="int"/>
  36093. <param name="length" type="int"/>
  36094. <doc>
  36095. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  36096. @param bytes byte array to be assigned
  36097. @param offset offset into byte array
  36098. @param length length of data]]>
  36099. </doc>
  36100. </method>
  36101. <method name="get" return="byte[]"
  36102. abstract="false" native="false" synchronized="false"
  36103. static="false" final="false" visibility="public"
  36104. deprecated="not deprecated">
  36105. <doc>
  36106. <![CDATA[Get the data from the Buffer.
  36107. @return The data is only valid between 0 and getCount() - 1.]]>
  36108. </doc>
  36109. </method>
  36110. <method name="getCount" return="int"
  36111. abstract="false" native="false" synchronized="false"
  36112. static="false" final="false" visibility="public"
  36113. deprecated="not deprecated">
  36114. <doc>
  36115. <![CDATA[Get the current count of the buffer.]]>
  36116. </doc>
  36117. </method>
  36118. <method name="getCapacity" return="int"
  36119. abstract="false" native="false" synchronized="false"
  36120. static="false" final="false" visibility="public"
  36121. deprecated="not deprecated">
  36122. <doc>
  36123. <![CDATA[Get the capacity, which is the maximum count that could handled without
  36124. resizing the backing storage.
  36125. @return The number of bytes]]>
  36126. </doc>
  36127. </method>
  36128. <method name="setCapacity"
  36129. abstract="false" native="false" synchronized="false"
  36130. static="false" final="false" visibility="public"
  36131. deprecated="not deprecated">
  36132. <param name="newCapacity" type="int"/>
  36133. <doc>
  36134. <![CDATA[Change the capacity of the backing storage.
  36135. The data is preserved if newCapacity >= getCount().
  36136. @param newCapacity The new capacity in bytes.]]>
  36137. </doc>
  36138. </method>
  36139. <method name="reset"
  36140. abstract="false" native="false" synchronized="false"
  36141. static="false" final="false" visibility="public"
  36142. deprecated="not deprecated">
  36143. <doc>
  36144. <![CDATA[Reset the buffer to 0 size]]>
  36145. </doc>
  36146. </method>
  36147. <method name="truncate"
  36148. abstract="false" native="false" synchronized="false"
  36149. static="false" final="false" visibility="public"
  36150. deprecated="not deprecated">
  36151. <doc>
  36152. <![CDATA[Change the capacity of the backing store to be the same as the current
  36153. count of buffer.]]>
  36154. </doc>
  36155. </method>
  36156. <method name="append"
  36157. abstract="false" native="false" synchronized="false"
  36158. static="false" final="false" visibility="public"
  36159. deprecated="not deprecated">
  36160. <param name="bytes" type="byte[]"/>
  36161. <param name="offset" type="int"/>
  36162. <param name="length" type="int"/>
  36163. <doc>
  36164. <![CDATA[Append specified bytes to the buffer.
  36165. @param bytes byte array to be appended
  36166. @param offset offset into byte array
  36167. @param length length of data]]>
  36168. </doc>
  36169. </method>
  36170. <method name="append"
  36171. abstract="false" native="false" synchronized="false"
  36172. static="false" final="false" visibility="public"
  36173. deprecated="not deprecated">
  36174. <param name="bytes" type="byte[]"/>
  36175. <doc>
  36176. <![CDATA[Append specified bytes to the buffer
  36177. @param bytes byte array to be appended]]>
  36178. </doc>
  36179. </method>
  36180. <method name="hashCode" return="int"
  36181. abstract="false" native="false" synchronized="false"
  36182. static="false" final="false" visibility="public"
  36183. deprecated="not deprecated">
  36184. </method>
  36185. <method name="compareTo" return="int"
  36186. abstract="false" native="false" synchronized="false"
  36187. static="false" final="false" visibility="public"
  36188. deprecated="not deprecated">
  36189. <param name="other" type="java.lang.Object"/>
  36190. <doc>
  36191. <![CDATA[Define the sort order of the Buffer.
  36192. @param other The other buffer
  36193. @return Positive if this is bigger than other, 0 if they are equal, and
  36194. negative if this is smaller than other.]]>
  36195. </doc>
  36196. </method>
  36197. <method name="equals" return="boolean"
  36198. abstract="false" native="false" synchronized="false"
  36199. static="false" final="false" visibility="public"
  36200. deprecated="not deprecated">
  36201. <param name="other" type="java.lang.Object"/>
  36202. </method>
  36203. <method name="toString" return="java.lang.String"
  36204. abstract="false" native="false" synchronized="false"
  36205. static="false" final="false" visibility="public"
  36206. deprecated="not deprecated">
  36207. </method>
  36208. <method name="toString" return="java.lang.String"
  36209. abstract="false" native="false" synchronized="false"
  36210. static="false" final="false" visibility="public"
  36211. deprecated="not deprecated">
  36212. <param name="charsetName" type="java.lang.String"/>
  36213. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  36214. <doc>
  36215. <![CDATA[Convert the byte buffer to a string an specific character encoding
  36216. @param charsetName Valid Java Character Set Name]]>
  36217. </doc>
  36218. </method>
  36219. <method name="clone" return="java.lang.Object"
  36220. abstract="false" native="false" synchronized="false"
  36221. static="false" final="false" visibility="public"
  36222. deprecated="not deprecated">
  36223. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  36224. </method>
  36225. <doc>
  36226. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  36227. It is resizable and distinguishes between the count of the seqeunce and
  36228. the current capacity.]]>
  36229. </doc>
  36230. </class>
  36231. <!-- end class org.apache.hadoop.record.Buffer -->
  36232. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  36233. <class name="CsvRecordInput" extends="java.lang.Object"
  36234. abstract="false"
  36235. static="false" final="false" visibility="public"
  36236. deprecated="not deprecated">
  36237. <implements name="org.apache.hadoop.record.RecordInput"/>
  36238. <constructor name="CsvRecordInput" type="java.io.InputStream"
  36239. static="false" final="false" visibility="public"
  36240. deprecated="not deprecated">
  36241. <doc>
  36242. <![CDATA[Creates a new instance of CsvRecordInput]]>
  36243. </doc>
  36244. </constructor>
  36245. <method name="readByte" return="byte"
  36246. abstract="false" native="false" synchronized="false"
  36247. static="false" final="false" visibility="public"
  36248. deprecated="not deprecated">
  36249. <param name="tag" type="java.lang.String"/>
  36250. <exception name="IOException" type="java.io.IOException"/>
  36251. </method>
  36252. <method name="readBool" return="boolean"
  36253. abstract="false" native="false" synchronized="false"
  36254. static="false" final="false" visibility="public"
  36255. deprecated="not deprecated">
  36256. <param name="tag" type="java.lang.String"/>
  36257. <exception name="IOException" type="java.io.IOException"/>
  36258. </method>
  36259. <method name="readInt" return="int"
  36260. abstract="false" native="false" synchronized="false"
  36261. static="false" final="false" visibility="public"
  36262. deprecated="not deprecated">
  36263. <param name="tag" type="java.lang.String"/>
  36264. <exception name="IOException" type="java.io.IOException"/>
  36265. </method>
  36266. <method name="readLong" return="long"
  36267. abstract="false" native="false" synchronized="false"
  36268. static="false" final="false" visibility="public"
  36269. deprecated="not deprecated">
  36270. <param name="tag" type="java.lang.String"/>
  36271. <exception name="IOException" type="java.io.IOException"/>
  36272. </method>
  36273. <method name="readFloat" return="float"
  36274. abstract="false" native="false" synchronized="false"
  36275. static="false" final="false" visibility="public"
  36276. deprecated="not deprecated">
  36277. <param name="tag" type="java.lang.String"/>
  36278. <exception name="IOException" type="java.io.IOException"/>
  36279. </method>
  36280. <method name="readDouble" return="double"
  36281. abstract="false" native="false" synchronized="false"
  36282. static="false" final="false" visibility="public"
  36283. deprecated="not deprecated">
  36284. <param name="tag" type="java.lang.String"/>
  36285. <exception name="IOException" type="java.io.IOException"/>
  36286. </method>
  36287. <method name="readString" return="java.lang.String"
  36288. abstract="false" native="false" synchronized="false"
  36289. static="false" final="false" visibility="public"
  36290. deprecated="not deprecated">
  36291. <param name="tag" type="java.lang.String"/>
  36292. <exception name="IOException" type="java.io.IOException"/>
  36293. </method>
  36294. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36295. abstract="false" native="false" synchronized="false"
  36296. static="false" final="false" visibility="public"
  36297. deprecated="not deprecated">
  36298. <param name="tag" type="java.lang.String"/>
  36299. <exception name="IOException" type="java.io.IOException"/>
  36300. </method>
  36301. <method name="startRecord"
  36302. abstract="false" native="false" synchronized="false"
  36303. static="false" final="false" visibility="public"
  36304. deprecated="not deprecated">
  36305. <param name="tag" type="java.lang.String"/>
  36306. <exception name="IOException" type="java.io.IOException"/>
  36307. </method>
  36308. <method name="endRecord"
  36309. abstract="false" native="false" synchronized="false"
  36310. static="false" final="false" visibility="public"
  36311. deprecated="not deprecated">
  36312. <param name="tag" type="java.lang.String"/>
  36313. <exception name="IOException" type="java.io.IOException"/>
  36314. </method>
  36315. <method name="startVector" return="org.apache.hadoop.record.Index"
  36316. abstract="false" native="false" synchronized="false"
  36317. static="false" final="false" visibility="public"
  36318. deprecated="not deprecated">
  36319. <param name="tag" type="java.lang.String"/>
  36320. <exception name="IOException" type="java.io.IOException"/>
  36321. </method>
  36322. <method name="endVector"
  36323. abstract="false" native="false" synchronized="false"
  36324. static="false" final="false" visibility="public"
  36325. deprecated="not deprecated">
  36326. <param name="tag" type="java.lang.String"/>
  36327. <exception name="IOException" type="java.io.IOException"/>
  36328. </method>
  36329. <method name="startMap" return="org.apache.hadoop.record.Index"
  36330. abstract="false" native="false" synchronized="false"
  36331. static="false" final="false" visibility="public"
  36332. deprecated="not deprecated">
  36333. <param name="tag" type="java.lang.String"/>
  36334. <exception name="IOException" type="java.io.IOException"/>
  36335. </method>
  36336. <method name="endMap"
  36337. abstract="false" native="false" synchronized="false"
  36338. static="false" final="false" visibility="public"
  36339. deprecated="not deprecated">
  36340. <param name="tag" type="java.lang.String"/>
  36341. <exception name="IOException" type="java.io.IOException"/>
  36342. </method>
  36343. </class>
  36344. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  36345. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  36346. <class name="CsvRecordOutput" extends="java.lang.Object"
  36347. abstract="false"
  36348. static="false" final="false" visibility="public"
  36349. deprecated="not deprecated">
  36350. <implements name="org.apache.hadoop.record.RecordOutput"/>
  36351. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  36352. static="false" final="false" visibility="public"
  36353. deprecated="not deprecated">
  36354. <doc>
  36355. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  36356. </doc>
  36357. </constructor>
  36358. <method name="writeByte"
  36359. abstract="false" native="false" synchronized="false"
  36360. static="false" final="false" visibility="public"
  36361. deprecated="not deprecated">
  36362. <param name="b" type="byte"/>
  36363. <param name="tag" type="java.lang.String"/>
  36364. <exception name="IOException" type="java.io.IOException"/>
  36365. </method>
  36366. <method name="writeBool"
  36367. abstract="false" native="false" synchronized="false"
  36368. static="false" final="false" visibility="public"
  36369. deprecated="not deprecated">
  36370. <param name="b" type="boolean"/>
  36371. <param name="tag" type="java.lang.String"/>
  36372. <exception name="IOException" type="java.io.IOException"/>
  36373. </method>
  36374. <method name="writeInt"
  36375. abstract="false" native="false" synchronized="false"
  36376. static="false" final="false" visibility="public"
  36377. deprecated="not deprecated">
  36378. <param name="i" type="int"/>
  36379. <param name="tag" type="java.lang.String"/>
  36380. <exception name="IOException" type="java.io.IOException"/>
  36381. </method>
  36382. <method name="writeLong"
  36383. abstract="false" native="false" synchronized="false"
  36384. static="false" final="false" visibility="public"
  36385. deprecated="not deprecated">
  36386. <param name="l" type="long"/>
  36387. <param name="tag" type="java.lang.String"/>
  36388. <exception name="IOException" type="java.io.IOException"/>
  36389. </method>
  36390. <method name="writeFloat"
  36391. abstract="false" native="false" synchronized="false"
  36392. static="false" final="false" visibility="public"
  36393. deprecated="not deprecated">
  36394. <param name="f" type="float"/>
  36395. <param name="tag" type="java.lang.String"/>
  36396. <exception name="IOException" type="java.io.IOException"/>
  36397. </method>
  36398. <method name="writeDouble"
  36399. abstract="false" native="false" synchronized="false"
  36400. static="false" final="false" visibility="public"
  36401. deprecated="not deprecated">
  36402. <param name="d" type="double"/>
  36403. <param name="tag" type="java.lang.String"/>
  36404. <exception name="IOException" type="java.io.IOException"/>
  36405. </method>
  36406. <method name="writeString"
  36407. abstract="false" native="false" synchronized="false"
  36408. static="false" final="false" visibility="public"
  36409. deprecated="not deprecated">
  36410. <param name="s" type="java.lang.String"/>
  36411. <param name="tag" type="java.lang.String"/>
  36412. <exception name="IOException" type="java.io.IOException"/>
  36413. </method>
  36414. <method name="writeBuffer"
  36415. abstract="false" native="false" synchronized="false"
  36416. static="false" final="false" visibility="public"
  36417. deprecated="not deprecated">
  36418. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36419. <param name="tag" type="java.lang.String"/>
  36420. <exception name="IOException" type="java.io.IOException"/>
  36421. </method>
  36422. <method name="startRecord"
  36423. abstract="false" native="false" synchronized="false"
  36424. static="false" final="false" visibility="public"
  36425. deprecated="not deprecated">
  36426. <param name="r" type="org.apache.hadoop.record.Record"/>
  36427. <param name="tag" type="java.lang.String"/>
  36428. <exception name="IOException" type="java.io.IOException"/>
  36429. </method>
  36430. <method name="endRecord"
  36431. abstract="false" native="false" synchronized="false"
  36432. static="false" final="false" visibility="public"
  36433. deprecated="not deprecated">
  36434. <param name="r" type="org.apache.hadoop.record.Record"/>
  36435. <param name="tag" type="java.lang.String"/>
  36436. <exception name="IOException" type="java.io.IOException"/>
  36437. </method>
  36438. <method name="startVector"
  36439. abstract="false" native="false" synchronized="false"
  36440. static="false" final="false" visibility="public"
  36441. deprecated="not deprecated">
  36442. <param name="v" type="java.util.ArrayList"/>
  36443. <param name="tag" type="java.lang.String"/>
  36444. <exception name="IOException" type="java.io.IOException"/>
  36445. </method>
  36446. <method name="endVector"
  36447. abstract="false" native="false" synchronized="false"
  36448. static="false" final="false" visibility="public"
  36449. deprecated="not deprecated">
  36450. <param name="v" type="java.util.ArrayList"/>
  36451. <param name="tag" type="java.lang.String"/>
  36452. <exception name="IOException" type="java.io.IOException"/>
  36453. </method>
  36454. <method name="startMap"
  36455. abstract="false" native="false" synchronized="false"
  36456. static="false" final="false" visibility="public"
  36457. deprecated="not deprecated">
  36458. <param name="v" type="java.util.TreeMap"/>
  36459. <param name="tag" type="java.lang.String"/>
  36460. <exception name="IOException" type="java.io.IOException"/>
  36461. </method>
  36462. <method name="endMap"
  36463. abstract="false" native="false" synchronized="false"
  36464. static="false" final="false" visibility="public"
  36465. deprecated="not deprecated">
  36466. <param name="v" type="java.util.TreeMap"/>
  36467. <param name="tag" type="java.lang.String"/>
  36468. <exception name="IOException" type="java.io.IOException"/>
  36469. </method>
  36470. </class>
  36471. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  36472. <!-- start interface org.apache.hadoop.record.Index -->
  36473. <interface name="Index" abstract="true"
  36474. static="false" final="false" visibility="public"
  36475. deprecated="not deprecated">
  36476. <method name="done" return="boolean"
  36477. abstract="false" native="false" synchronized="false"
  36478. static="false" final="false" visibility="public"
  36479. deprecated="not deprecated">
  36480. </method>
  36481. <method name="incr"
  36482. abstract="false" native="false" synchronized="false"
  36483. static="false" final="false" visibility="public"
  36484. deprecated="not deprecated">
  36485. </method>
  36486. <doc>
  36487. <![CDATA[Interface that acts as an iterator for deserializing maps.
  36488. The deserializer returns an instance that the record uses to
  36489. read vectors and maps. An example of usage is as follows:
  36490. <code>
  36491. Index idx = startVector(...);
  36492. while (!idx.done()) {
  36493. .... // read element of a vector
  36494. idx.incr();
  36495. }
  36496. </code>]]>
  36497. </doc>
  36498. </interface>
  36499. <!-- end interface org.apache.hadoop.record.Index -->
  36500. <!-- start class org.apache.hadoop.record.Record -->
  36501. <class name="Record" extends="java.lang.Object"
  36502. abstract="true"
  36503. static="false" final="false" visibility="public"
  36504. deprecated="not deprecated">
  36505. <implements name="org.apache.hadoop.io.WritableComparable"/>
  36506. <implements name="java.lang.Cloneable"/>
  36507. <constructor name="Record"
  36508. static="false" final="false" visibility="public"
  36509. deprecated="not deprecated">
  36510. </constructor>
  36511. <method name="serialize"
  36512. abstract="true" native="false" synchronized="false"
  36513. static="false" final="false" visibility="public"
  36514. deprecated="not deprecated">
  36515. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  36516. <param name="tag" type="java.lang.String"/>
  36517. <exception name="IOException" type="java.io.IOException"/>
  36518. <doc>
  36519. <![CDATA[Serialize a record with tag (ususally field name)
  36520. @param rout Record output destination
  36521. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  36522. </doc>
  36523. </method>
  36524. <method name="deserialize"
  36525. abstract="true" native="false" synchronized="false"
  36526. static="false" final="false" visibility="public"
  36527. deprecated="not deprecated">
  36528. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  36529. <param name="tag" type="java.lang.String"/>
  36530. <exception name="IOException" type="java.io.IOException"/>
  36531. <doc>
  36532. <![CDATA[Deserialize a record with a tag (usually field name)
  36533. @param rin Record input source
  36534. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  36535. </doc>
  36536. </method>
  36537. <method name="compareTo" return="int"
  36538. abstract="true" native="false" synchronized="false"
  36539. static="false" final="false" visibility="public"
  36540. deprecated="not deprecated">
  36541. <param name="peer" type="java.lang.Object"/>
  36542. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  36543. </method>
  36544. <method name="serialize"
  36545. abstract="false" native="false" synchronized="false"
  36546. static="false" final="false" visibility="public"
  36547. deprecated="not deprecated">
  36548. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  36549. <exception name="IOException" type="java.io.IOException"/>
  36550. <doc>
  36551. <![CDATA[Serialize a record without a tag
  36552. @param rout Record output destination]]>
  36553. </doc>
  36554. </method>
  36555. <method name="deserialize"
  36556. abstract="false" native="false" synchronized="false"
  36557. static="false" final="false" visibility="public"
  36558. deprecated="not deprecated">
  36559. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  36560. <exception name="IOException" type="java.io.IOException"/>
  36561. <doc>
  36562. <![CDATA[Deserialize a record without a tag
  36563. @param rin Record input source]]>
  36564. </doc>
  36565. </method>
  36566. <method name="write"
  36567. abstract="false" native="false" synchronized="false"
  36568. static="false" final="false" visibility="public"
  36569. deprecated="not deprecated">
  36570. <param name="out" type="java.io.DataOutput"/>
  36571. <exception name="IOException" type="java.io.IOException"/>
  36572. </method>
  36573. <method name="readFields"
  36574. abstract="false" native="false" synchronized="false"
  36575. static="false" final="false" visibility="public"
  36576. deprecated="not deprecated">
  36577. <param name="din" type="java.io.DataInput"/>
  36578. <exception name="IOException" type="java.io.IOException"/>
  36579. </method>
  36580. <method name="toString" return="java.lang.String"
  36581. abstract="false" native="false" synchronized="false"
  36582. static="false" final="false" visibility="public"
  36583. deprecated="not deprecated">
  36584. </method>
  36585. <doc>
  36586. <![CDATA[Abstract class that is extended by generated classes.]]>
  36587. </doc>
  36588. </class>
  36589. <!-- end class org.apache.hadoop.record.Record -->
  36590. <!-- start class org.apache.hadoop.record.RecordComparator -->
  36591. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  36592. abstract="true"
  36593. static="false" final="false" visibility="public"
  36594. deprecated="not deprecated">
  36595. <constructor name="RecordComparator" type="java.lang.Class"
  36596. static="false" final="false" visibility="protected"
  36597. deprecated="not deprecated">
  36598. <doc>
  36599. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  36600. </doc>
  36601. </constructor>
  36602. <method name="compare" return="int"
  36603. abstract="true" native="false" synchronized="false"
  36604. static="false" final="false" visibility="public"
  36605. deprecated="not deprecated">
  36606. <param name="b1" type="byte[]"/>
  36607. <param name="s1" type="int"/>
  36608. <param name="l1" type="int"/>
  36609. <param name="b2" type="byte[]"/>
  36610. <param name="s2" type="int"/>
  36611. <param name="l2" type="int"/>
  36612. </method>
  36613. <method name="define"
  36614. abstract="false" native="false" synchronized="true"
  36615. static="true" final="false" visibility="public"
  36616. deprecated="not deprecated">
  36617. <param name="c" type="java.lang.Class"/>
  36618. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  36619. <doc>
  36620. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  36621. @param c record classs for which a raw comparator is provided
  36622. @param comparator Raw comparator instance for class c]]>
  36623. </doc>
  36624. </method>
  36625. <doc>
  36626. <![CDATA[A raw record comparator base class]]>
  36627. </doc>
  36628. </class>
  36629. <!-- end class org.apache.hadoop.record.RecordComparator -->
  36630. <!-- start interface org.apache.hadoop.record.RecordInput -->
  36631. <interface name="RecordInput" abstract="true"
  36632. static="false" final="false" visibility="public"
  36633. deprecated="not deprecated">
  36634. <method name="readByte" return="byte"
  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. <doc>
  36641. <![CDATA[Read a byte from serialized record.
  36642. @param tag Used by tagged serialization formats (such as XML)
  36643. @return value read from serialized record.]]>
  36644. </doc>
  36645. </method>
  36646. <method name="readBool" return="boolean"
  36647. abstract="false" native="false" synchronized="false"
  36648. static="false" final="false" visibility="public"
  36649. deprecated="not deprecated">
  36650. <param name="tag" type="java.lang.String"/>
  36651. <exception name="IOException" type="java.io.IOException"/>
  36652. <doc>
  36653. <![CDATA[Read a boolean from serialized record.
  36654. @param tag Used by tagged serialization formats (such as XML)
  36655. @return value read from serialized record.]]>
  36656. </doc>
  36657. </method>
  36658. <method name="readInt" return="int"
  36659. abstract="false" native="false" synchronized="false"
  36660. static="false" final="false" visibility="public"
  36661. deprecated="not deprecated">
  36662. <param name="tag" type="java.lang.String"/>
  36663. <exception name="IOException" type="java.io.IOException"/>
  36664. <doc>
  36665. <![CDATA[Read an integer from serialized record.
  36666. @param tag Used by tagged serialization formats (such as XML)
  36667. @return value read from serialized record.]]>
  36668. </doc>
  36669. </method>
  36670. <method name="readLong" return="long"
  36671. abstract="false" native="false" synchronized="false"
  36672. static="false" final="false" visibility="public"
  36673. deprecated="not deprecated">
  36674. <param name="tag" type="java.lang.String"/>
  36675. <exception name="IOException" type="java.io.IOException"/>
  36676. <doc>
  36677. <![CDATA[Read a long integer from serialized record.
  36678. @param tag Used by tagged serialization formats (such as XML)
  36679. @return value read from serialized record.]]>
  36680. </doc>
  36681. </method>
  36682. <method name="readFloat" return="float"
  36683. abstract="false" native="false" synchronized="false"
  36684. static="false" final="false" visibility="public"
  36685. deprecated="not deprecated">
  36686. <param name="tag" type="java.lang.String"/>
  36687. <exception name="IOException" type="java.io.IOException"/>
  36688. <doc>
  36689. <![CDATA[Read a single-precision float from serialized record.
  36690. @param tag Used by tagged serialization formats (such as XML)
  36691. @return value read from serialized record.]]>
  36692. </doc>
  36693. </method>
  36694. <method name="readDouble" return="double"
  36695. abstract="false" native="false" synchronized="false"
  36696. static="false" final="false" visibility="public"
  36697. deprecated="not deprecated">
  36698. <param name="tag" type="java.lang.String"/>
  36699. <exception name="IOException" type="java.io.IOException"/>
  36700. <doc>
  36701. <![CDATA[Read a double-precision number from serialized record.
  36702. @param tag Used by tagged serialization formats (such as XML)
  36703. @return value read from serialized record.]]>
  36704. </doc>
  36705. </method>
  36706. <method name="readString" return="java.lang.String"
  36707. abstract="false" native="false" synchronized="false"
  36708. static="false" final="false" visibility="public"
  36709. deprecated="not deprecated">
  36710. <param name="tag" type="java.lang.String"/>
  36711. <exception name="IOException" type="java.io.IOException"/>
  36712. <doc>
  36713. <![CDATA[Read a UTF-8 encoded string from serialized record.
  36714. @param tag Used by tagged serialization formats (such as XML)
  36715. @return value read from serialized record.]]>
  36716. </doc>
  36717. </method>
  36718. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  36719. abstract="false" native="false" synchronized="false"
  36720. static="false" final="false" visibility="public"
  36721. deprecated="not deprecated">
  36722. <param name="tag" type="java.lang.String"/>
  36723. <exception name="IOException" type="java.io.IOException"/>
  36724. <doc>
  36725. <![CDATA[Read byte array from serialized record.
  36726. @param tag Used by tagged serialization formats (such as XML)
  36727. @return value read from serialized record.]]>
  36728. </doc>
  36729. </method>
  36730. <method name="startRecord"
  36731. abstract="false" native="false" synchronized="false"
  36732. static="false" final="false" visibility="public"
  36733. deprecated="not deprecated">
  36734. <param name="tag" type="java.lang.String"/>
  36735. <exception name="IOException" type="java.io.IOException"/>
  36736. <doc>
  36737. <![CDATA[Check the mark for start of the serialized record.
  36738. @param tag Used by tagged serialization formats (such as XML)]]>
  36739. </doc>
  36740. </method>
  36741. <method name="endRecord"
  36742. abstract="false" native="false" synchronized="false"
  36743. static="false" final="false" visibility="public"
  36744. deprecated="not deprecated">
  36745. <param name="tag" type="java.lang.String"/>
  36746. <exception name="IOException" type="java.io.IOException"/>
  36747. <doc>
  36748. <![CDATA[Check the mark for end of the serialized record.
  36749. @param tag Used by tagged serialization formats (such as XML)]]>
  36750. </doc>
  36751. </method>
  36752. <method name="startVector" return="org.apache.hadoop.record.Index"
  36753. abstract="false" native="false" synchronized="false"
  36754. static="false" final="false" visibility="public"
  36755. deprecated="not deprecated">
  36756. <param name="tag" type="java.lang.String"/>
  36757. <exception name="IOException" type="java.io.IOException"/>
  36758. <doc>
  36759. <![CDATA[Check the mark for start of the serialized vector.
  36760. @param tag Used by tagged serialization formats (such as XML)
  36761. @return Index that is used to count the number of elements.]]>
  36762. </doc>
  36763. </method>
  36764. <method name="endVector"
  36765. abstract="false" native="false" synchronized="false"
  36766. static="false" final="false" visibility="public"
  36767. deprecated="not deprecated">
  36768. <param name="tag" type="java.lang.String"/>
  36769. <exception name="IOException" type="java.io.IOException"/>
  36770. <doc>
  36771. <![CDATA[Check the mark for end of the serialized vector.
  36772. @param tag Used by tagged serialization formats (such as XML)]]>
  36773. </doc>
  36774. </method>
  36775. <method name="startMap" return="org.apache.hadoop.record.Index"
  36776. abstract="false" native="false" synchronized="false"
  36777. static="false" final="false" visibility="public"
  36778. deprecated="not deprecated">
  36779. <param name="tag" type="java.lang.String"/>
  36780. <exception name="IOException" type="java.io.IOException"/>
  36781. <doc>
  36782. <![CDATA[Check the mark for start of the serialized map.
  36783. @param tag Used by tagged serialization formats (such as XML)
  36784. @return Index that is used to count the number of map entries.]]>
  36785. </doc>
  36786. </method>
  36787. <method name="endMap"
  36788. abstract="false" native="false" synchronized="false"
  36789. static="false" final="false" visibility="public"
  36790. deprecated="not deprecated">
  36791. <param name="tag" type="java.lang.String"/>
  36792. <exception name="IOException" type="java.io.IOException"/>
  36793. <doc>
  36794. <![CDATA[Check the mark for end of the serialized map.
  36795. @param tag Used by tagged serialization formats (such as XML)]]>
  36796. </doc>
  36797. </method>
  36798. <doc>
  36799. <![CDATA[Interface that all the Deserializers have to implement.]]>
  36800. </doc>
  36801. </interface>
  36802. <!-- end interface org.apache.hadoop.record.RecordInput -->
  36803. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  36804. <interface name="RecordOutput" abstract="true"
  36805. static="false" final="false" visibility="public"
  36806. deprecated="not deprecated">
  36807. <method name="writeByte"
  36808. abstract="false" native="false" synchronized="false"
  36809. static="false" final="false" visibility="public"
  36810. deprecated="not deprecated">
  36811. <param name="b" type="byte"/>
  36812. <param name="tag" type="java.lang.String"/>
  36813. <exception name="IOException" type="java.io.IOException"/>
  36814. <doc>
  36815. <![CDATA[Write a byte to serialized record.
  36816. @param b Byte to be serialized
  36817. @param tag Used by tagged serialization formats (such as XML)
  36818. @throws IOException Indicates error in serialization]]>
  36819. </doc>
  36820. </method>
  36821. <method name="writeBool"
  36822. abstract="false" native="false" synchronized="false"
  36823. static="false" final="false" visibility="public"
  36824. deprecated="not deprecated">
  36825. <param name="b" type="boolean"/>
  36826. <param name="tag" type="java.lang.String"/>
  36827. <exception name="IOException" type="java.io.IOException"/>
  36828. <doc>
  36829. <![CDATA[Write a boolean to serialized record.
  36830. @param b Boolean to be serialized
  36831. @param tag Used by tagged serialization formats (such as XML)
  36832. @throws IOException Indicates error in serialization]]>
  36833. </doc>
  36834. </method>
  36835. <method name="writeInt"
  36836. abstract="false" native="false" synchronized="false"
  36837. static="false" final="false" visibility="public"
  36838. deprecated="not deprecated">
  36839. <param name="i" type="int"/>
  36840. <param name="tag" type="java.lang.String"/>
  36841. <exception name="IOException" type="java.io.IOException"/>
  36842. <doc>
  36843. <![CDATA[Write an integer to serialized record.
  36844. @param i Integer to be serialized
  36845. @param tag Used by tagged serialization formats (such as XML)
  36846. @throws IOException Indicates error in serialization]]>
  36847. </doc>
  36848. </method>
  36849. <method name="writeLong"
  36850. abstract="false" native="false" synchronized="false"
  36851. static="false" final="false" visibility="public"
  36852. deprecated="not deprecated">
  36853. <param name="l" type="long"/>
  36854. <param name="tag" type="java.lang.String"/>
  36855. <exception name="IOException" type="java.io.IOException"/>
  36856. <doc>
  36857. <![CDATA[Write a long integer to serialized record.
  36858. @param l Long to be serialized
  36859. @param tag Used by tagged serialization formats (such as XML)
  36860. @throws IOException Indicates error in serialization]]>
  36861. </doc>
  36862. </method>
  36863. <method name="writeFloat"
  36864. abstract="false" native="false" synchronized="false"
  36865. static="false" final="false" visibility="public"
  36866. deprecated="not deprecated">
  36867. <param name="f" type="float"/>
  36868. <param name="tag" type="java.lang.String"/>
  36869. <exception name="IOException" type="java.io.IOException"/>
  36870. <doc>
  36871. <![CDATA[Write a single-precision float to serialized record.
  36872. @param f Float to be serialized
  36873. @param tag Used by tagged serialization formats (such as XML)
  36874. @throws IOException Indicates error in serialization]]>
  36875. </doc>
  36876. </method>
  36877. <method name="writeDouble"
  36878. abstract="false" native="false" synchronized="false"
  36879. static="false" final="false" visibility="public"
  36880. deprecated="not deprecated">
  36881. <param name="d" type="double"/>
  36882. <param name="tag" type="java.lang.String"/>
  36883. <exception name="IOException" type="java.io.IOException"/>
  36884. <doc>
  36885. <![CDATA[Write a double precision floating point number to serialized record.
  36886. @param d Double to be serialized
  36887. @param tag Used by tagged serialization formats (such as XML)
  36888. @throws IOException Indicates error in serialization]]>
  36889. </doc>
  36890. </method>
  36891. <method name="writeString"
  36892. abstract="false" native="false" synchronized="false"
  36893. static="false" final="false" visibility="public"
  36894. deprecated="not deprecated">
  36895. <param name="s" type="java.lang.String"/>
  36896. <param name="tag" type="java.lang.String"/>
  36897. <exception name="IOException" type="java.io.IOException"/>
  36898. <doc>
  36899. <![CDATA[Write a unicode string to serialized record.
  36900. @param s String to be serialized
  36901. @param tag Used by tagged serialization formats (such as XML)
  36902. @throws IOException Indicates error in serialization]]>
  36903. </doc>
  36904. </method>
  36905. <method name="writeBuffer"
  36906. abstract="false" native="false" synchronized="false"
  36907. static="false" final="false" visibility="public"
  36908. deprecated="not deprecated">
  36909. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  36910. <param name="tag" type="java.lang.String"/>
  36911. <exception name="IOException" type="java.io.IOException"/>
  36912. <doc>
  36913. <![CDATA[Write a buffer to serialized record.
  36914. @param buf Buffer to be serialized
  36915. @param tag Used by tagged serialization formats (such as XML)
  36916. @throws IOException Indicates error in serialization]]>
  36917. </doc>
  36918. </method>
  36919. <method name="startRecord"
  36920. abstract="false" native="false" synchronized="false"
  36921. static="false" final="false" visibility="public"
  36922. deprecated="not deprecated">
  36923. <param name="r" type="org.apache.hadoop.record.Record"/>
  36924. <param name="tag" type="java.lang.String"/>
  36925. <exception name="IOException" type="java.io.IOException"/>
  36926. <doc>
  36927. <![CDATA[Mark the start of a record to be serialized.
  36928. @param r Record to be serialized
  36929. @param tag Used by tagged serialization formats (such as XML)
  36930. @throws IOException Indicates error in serialization]]>
  36931. </doc>
  36932. </method>
  36933. <method name="endRecord"
  36934. abstract="false" native="false" synchronized="false"
  36935. static="false" final="false" visibility="public"
  36936. deprecated="not deprecated">
  36937. <param name="r" type="org.apache.hadoop.record.Record"/>
  36938. <param name="tag" type="java.lang.String"/>
  36939. <exception name="IOException" type="java.io.IOException"/>
  36940. <doc>
  36941. <![CDATA[Mark the end of a serialized record.
  36942. @param r Record to be serialized
  36943. @param tag Used by tagged serialization formats (such as XML)
  36944. @throws IOException Indicates error in serialization]]>
  36945. </doc>
  36946. </method>
  36947. <method name="startVector"
  36948. abstract="false" native="false" synchronized="false"
  36949. static="false" final="false" visibility="public"
  36950. deprecated="not deprecated">
  36951. <param name="v" type="java.util.ArrayList"/>
  36952. <param name="tag" type="java.lang.String"/>
  36953. <exception name="IOException" type="java.io.IOException"/>
  36954. <doc>
  36955. <![CDATA[Mark the start of a vector to be serialized.
  36956. @param v Vector to be serialized
  36957. @param tag Used by tagged serialization formats (such as XML)
  36958. @throws IOException Indicates error in serialization]]>
  36959. </doc>
  36960. </method>
  36961. <method name="endVector"
  36962. abstract="false" native="false" synchronized="false"
  36963. static="false" final="false" visibility="public"
  36964. deprecated="not deprecated">
  36965. <param name="v" type="java.util.ArrayList"/>
  36966. <param name="tag" type="java.lang.String"/>
  36967. <exception name="IOException" type="java.io.IOException"/>
  36968. <doc>
  36969. <![CDATA[Mark the end of a serialized vector.
  36970. @param v Vector to be serialized
  36971. @param tag Used by tagged serialization formats (such as XML)
  36972. @throws IOException Indicates error in serialization]]>
  36973. </doc>
  36974. </method>
  36975. <method name="startMap"
  36976. abstract="false" native="false" synchronized="false"
  36977. static="false" final="false" visibility="public"
  36978. deprecated="not deprecated">
  36979. <param name="m" type="java.util.TreeMap"/>
  36980. <param name="tag" type="java.lang.String"/>
  36981. <exception name="IOException" type="java.io.IOException"/>
  36982. <doc>
  36983. <![CDATA[Mark the start of a map to be serialized.
  36984. @param m Map to be serialized
  36985. @param tag Used by tagged serialization formats (such as XML)
  36986. @throws IOException Indicates error in serialization]]>
  36987. </doc>
  36988. </method>
  36989. <method name="endMap"
  36990. abstract="false" native="false" synchronized="false"
  36991. static="false" final="false" visibility="public"
  36992. deprecated="not deprecated">
  36993. <param name="m" type="java.util.TreeMap"/>
  36994. <param name="tag" type="java.lang.String"/>
  36995. <exception name="IOException" type="java.io.IOException"/>
  36996. <doc>
  36997. <![CDATA[Mark the end of a serialized map.
  36998. @param m Map to be serialized
  36999. @param tag Used by tagged serialization formats (such as XML)
  37000. @throws IOException Indicates error in serialization]]>
  37001. </doc>
  37002. </method>
  37003. <doc>
  37004. <![CDATA[Interface that alll the serializers have to implement.]]>
  37005. </doc>
  37006. </interface>
  37007. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  37008. <!-- start class org.apache.hadoop.record.Utils -->
  37009. <class name="Utils" extends="java.lang.Object"
  37010. abstract="false"
  37011. static="false" final="false" visibility="public"
  37012. deprecated="not deprecated">
  37013. <method name="readFloat" return="float"
  37014. abstract="false" native="false" synchronized="false"
  37015. static="true" final="false" visibility="public"
  37016. deprecated="not deprecated">
  37017. <param name="bytes" type="byte[]"/>
  37018. <param name="start" type="int"/>
  37019. <doc>
  37020. <![CDATA[Parse a float from a byte array.]]>
  37021. </doc>
  37022. </method>
  37023. <method name="readDouble" return="double"
  37024. abstract="false" native="false" synchronized="false"
  37025. static="true" final="false" visibility="public"
  37026. deprecated="not deprecated">
  37027. <param name="bytes" type="byte[]"/>
  37028. <param name="start" type="int"/>
  37029. <doc>
  37030. <![CDATA[Parse a double from a byte array.]]>
  37031. </doc>
  37032. </method>
  37033. <method name="readVLong" return="long"
  37034. abstract="false" native="false" synchronized="false"
  37035. static="true" final="false" visibility="public"
  37036. deprecated="not deprecated">
  37037. <param name="bytes" type="byte[]"/>
  37038. <param name="start" type="int"/>
  37039. <exception name="IOException" type="java.io.IOException"/>
  37040. <doc>
  37041. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  37042. @param bytes byte array with decode long
  37043. @param start starting index
  37044. @throws java.io.IOException
  37045. @return deserialized long]]>
  37046. </doc>
  37047. </method>
  37048. <method name="readVInt" return="int"
  37049. abstract="false" native="false" synchronized="false"
  37050. static="true" final="false" visibility="public"
  37051. deprecated="not deprecated">
  37052. <param name="bytes" type="byte[]"/>
  37053. <param name="start" type="int"/>
  37054. <exception name="IOException" type="java.io.IOException"/>
  37055. <doc>
  37056. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  37057. @param bytes byte array with the encoded integer
  37058. @param start start index
  37059. @throws java.io.IOException
  37060. @return deserialized integer]]>
  37061. </doc>
  37062. </method>
  37063. <method name="readVLong" return="long"
  37064. abstract="false" native="false" synchronized="false"
  37065. static="true" final="false" visibility="public"
  37066. deprecated="not deprecated">
  37067. <param name="in" type="java.io.DataInput"/>
  37068. <exception name="IOException" type="java.io.IOException"/>
  37069. <doc>
  37070. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  37071. @param in input stream
  37072. @throws java.io.IOException
  37073. @return deserialized long]]>
  37074. </doc>
  37075. </method>
  37076. <method name="readVInt" return="int"
  37077. abstract="false" native="false" synchronized="false"
  37078. static="true" final="false" visibility="public"
  37079. deprecated="not deprecated">
  37080. <param name="in" type="java.io.DataInput"/>
  37081. <exception name="IOException" type="java.io.IOException"/>
  37082. <doc>
  37083. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  37084. @param in input stream
  37085. @throws java.io.IOException
  37086. @return deserialized integer]]>
  37087. </doc>
  37088. </method>
  37089. <method name="getVIntSize" return="int"
  37090. abstract="false" native="false" synchronized="false"
  37091. static="true" final="false" visibility="public"
  37092. deprecated="not deprecated">
  37093. <param name="i" type="long"/>
  37094. <doc>
  37095. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  37096. @return the encoded length]]>
  37097. </doc>
  37098. </method>
  37099. <method name="writeVLong"
  37100. abstract="false" native="false" synchronized="false"
  37101. static="true" final="false" visibility="public"
  37102. deprecated="not deprecated">
  37103. <param name="stream" type="java.io.DataOutput"/>
  37104. <param name="i" type="long"/>
  37105. <exception name="IOException" type="java.io.IOException"/>
  37106. <doc>
  37107. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  37108. For -112 <= i <= 127, only one byte is used with the actual value.
  37109. For other values of i, the first byte value indicates whether the
  37110. long is positive or negative, and the number of bytes that follow.
  37111. If the first byte value v is between -113 and -120, the following long
  37112. is positive, with number of bytes that follow are -(v+112).
  37113. If the first byte value v is between -121 and -128, the following long
  37114. is negative, with number of bytes that follow are -(v+120). Bytes are
  37115. stored in the high-non-zero-byte-first order.
  37116. @param stream Binary output stream
  37117. @param i Long to be serialized
  37118. @throws java.io.IOException]]>
  37119. </doc>
  37120. </method>
  37121. <method name="writeVInt"
  37122. abstract="false" native="false" synchronized="false"
  37123. static="true" final="false" visibility="public"
  37124. deprecated="not deprecated">
  37125. <param name="stream" type="java.io.DataOutput"/>
  37126. <param name="i" type="int"/>
  37127. <exception name="IOException" type="java.io.IOException"/>
  37128. <doc>
  37129. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  37130. @param stream Binary output stream
  37131. @param i int to be serialized
  37132. @throws java.io.IOException]]>
  37133. </doc>
  37134. </method>
  37135. <method name="compareBytes" return="int"
  37136. abstract="false" native="false" synchronized="false"
  37137. static="true" final="false" visibility="public"
  37138. deprecated="not deprecated">
  37139. <param name="b1" type="byte[]"/>
  37140. <param name="s1" type="int"/>
  37141. <param name="l1" type="int"/>
  37142. <param name="b2" type="byte[]"/>
  37143. <param name="s2" type="int"/>
  37144. <param name="l2" type="int"/>
  37145. <doc>
  37146. <![CDATA[Lexicographic order of binary data.]]>
  37147. </doc>
  37148. </method>
  37149. <field name="hexchars" type="char[]"
  37150. transient="false" volatile="false"
  37151. static="true" final="true" visibility="public"
  37152. deprecated="not deprecated">
  37153. </field>
  37154. <doc>
  37155. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  37156. </doc>
  37157. </class>
  37158. <!-- end class org.apache.hadoop.record.Utils -->
  37159. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  37160. <class name="XmlRecordInput" extends="java.lang.Object"
  37161. abstract="false"
  37162. static="false" final="false" visibility="public"
  37163. deprecated="not deprecated">
  37164. <implements name="org.apache.hadoop.record.RecordInput"/>
  37165. <constructor name="XmlRecordInput" type="java.io.InputStream"
  37166. static="false" final="false" visibility="public"
  37167. deprecated="not deprecated">
  37168. <doc>
  37169. <![CDATA[Creates a new instance of XmlRecordInput]]>
  37170. </doc>
  37171. </constructor>
  37172. <method name="readByte" return="byte"
  37173. abstract="false" native="false" synchronized="false"
  37174. static="false" final="false" visibility="public"
  37175. deprecated="not deprecated">
  37176. <param name="tag" type="java.lang.String"/>
  37177. <exception name="IOException" type="java.io.IOException"/>
  37178. </method>
  37179. <method name="readBool" return="boolean"
  37180. abstract="false" native="false" synchronized="false"
  37181. static="false" final="false" visibility="public"
  37182. deprecated="not deprecated">
  37183. <param name="tag" type="java.lang.String"/>
  37184. <exception name="IOException" type="java.io.IOException"/>
  37185. </method>
  37186. <method name="readInt" return="int"
  37187. abstract="false" native="false" synchronized="false"
  37188. static="false" final="false" visibility="public"
  37189. deprecated="not deprecated">
  37190. <param name="tag" type="java.lang.String"/>
  37191. <exception name="IOException" type="java.io.IOException"/>
  37192. </method>
  37193. <method name="readLong" return="long"
  37194. abstract="false" native="false" synchronized="false"
  37195. static="false" final="false" visibility="public"
  37196. deprecated="not deprecated">
  37197. <param name="tag" type="java.lang.String"/>
  37198. <exception name="IOException" type="java.io.IOException"/>
  37199. </method>
  37200. <method name="readFloat" return="float"
  37201. abstract="false" native="false" synchronized="false"
  37202. static="false" final="false" visibility="public"
  37203. deprecated="not deprecated">
  37204. <param name="tag" type="java.lang.String"/>
  37205. <exception name="IOException" type="java.io.IOException"/>
  37206. </method>
  37207. <method name="readDouble" return="double"
  37208. abstract="false" native="false" synchronized="false"
  37209. static="false" final="false" visibility="public"
  37210. deprecated="not deprecated">
  37211. <param name="tag" type="java.lang.String"/>
  37212. <exception name="IOException" type="java.io.IOException"/>
  37213. </method>
  37214. <method name="readString" return="java.lang.String"
  37215. abstract="false" native="false" synchronized="false"
  37216. static="false" final="false" visibility="public"
  37217. deprecated="not deprecated">
  37218. <param name="tag" type="java.lang.String"/>
  37219. <exception name="IOException" type="java.io.IOException"/>
  37220. </method>
  37221. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  37222. abstract="false" native="false" synchronized="false"
  37223. static="false" final="false" visibility="public"
  37224. deprecated="not deprecated">
  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="tag" type="java.lang.String"/>
  37233. <exception name="IOException" type="java.io.IOException"/>
  37234. </method>
  37235. <method name="endRecord"
  37236. abstract="false" native="false" synchronized="false"
  37237. static="false" final="false" visibility="public"
  37238. deprecated="not deprecated">
  37239. <param name="tag" type="java.lang.String"/>
  37240. <exception name="IOException" type="java.io.IOException"/>
  37241. </method>
  37242. <method name="startVector" return="org.apache.hadoop.record.Index"
  37243. abstract="false" native="false" synchronized="false"
  37244. static="false" final="false" visibility="public"
  37245. deprecated="not deprecated">
  37246. <param name="tag" type="java.lang.String"/>
  37247. <exception name="IOException" type="java.io.IOException"/>
  37248. </method>
  37249. <method name="endVector"
  37250. abstract="false" native="false" synchronized="false"
  37251. static="false" final="false" visibility="public"
  37252. deprecated="not deprecated">
  37253. <param name="tag" type="java.lang.String"/>
  37254. <exception name="IOException" type="java.io.IOException"/>
  37255. </method>
  37256. <method name="startMap" return="org.apache.hadoop.record.Index"
  37257. abstract="false" native="false" synchronized="false"
  37258. static="false" final="false" visibility="public"
  37259. deprecated="not deprecated">
  37260. <param name="tag" type="java.lang.String"/>
  37261. <exception name="IOException" type="java.io.IOException"/>
  37262. </method>
  37263. <method name="endMap"
  37264. abstract="false" native="false" synchronized="false"
  37265. static="false" final="false" visibility="public"
  37266. deprecated="not deprecated">
  37267. <param name="tag" type="java.lang.String"/>
  37268. <exception name="IOException" type="java.io.IOException"/>
  37269. </method>
  37270. <doc>
  37271. <![CDATA[XML Deserializer.]]>
  37272. </doc>
  37273. </class>
  37274. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  37275. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  37276. <class name="XmlRecordOutput" extends="java.lang.Object"
  37277. abstract="false"
  37278. static="false" final="false" visibility="public"
  37279. deprecated="not deprecated">
  37280. <implements name="org.apache.hadoop.record.RecordOutput"/>
  37281. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  37282. static="false" final="false" visibility="public"
  37283. deprecated="not deprecated">
  37284. <doc>
  37285. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  37286. </doc>
  37287. </constructor>
  37288. <method name="writeByte"
  37289. abstract="false" native="false" synchronized="false"
  37290. static="false" final="false" visibility="public"
  37291. deprecated="not deprecated">
  37292. <param name="b" type="byte"/>
  37293. <param name="tag" type="java.lang.String"/>
  37294. <exception name="IOException" type="java.io.IOException"/>
  37295. </method>
  37296. <method name="writeBool"
  37297. abstract="false" native="false" synchronized="false"
  37298. static="false" final="false" visibility="public"
  37299. deprecated="not deprecated">
  37300. <param name="b" type="boolean"/>
  37301. <param name="tag" type="java.lang.String"/>
  37302. <exception name="IOException" type="java.io.IOException"/>
  37303. </method>
  37304. <method name="writeInt"
  37305. abstract="false" native="false" synchronized="false"
  37306. static="false" final="false" visibility="public"
  37307. deprecated="not deprecated">
  37308. <param name="i" type="int"/>
  37309. <param name="tag" type="java.lang.String"/>
  37310. <exception name="IOException" type="java.io.IOException"/>
  37311. </method>
  37312. <method name="writeLong"
  37313. abstract="false" native="false" synchronized="false"
  37314. static="false" final="false" visibility="public"
  37315. deprecated="not deprecated">
  37316. <param name="l" type="long"/>
  37317. <param name="tag" type="java.lang.String"/>
  37318. <exception name="IOException" type="java.io.IOException"/>
  37319. </method>
  37320. <method name="writeFloat"
  37321. abstract="false" native="false" synchronized="false"
  37322. static="false" final="false" visibility="public"
  37323. deprecated="not deprecated">
  37324. <param name="f" type="float"/>
  37325. <param name="tag" type="java.lang.String"/>
  37326. <exception name="IOException" type="java.io.IOException"/>
  37327. </method>
  37328. <method name="writeDouble"
  37329. abstract="false" native="false" synchronized="false"
  37330. static="false" final="false" visibility="public"
  37331. deprecated="not deprecated">
  37332. <param name="d" type="double"/>
  37333. <param name="tag" type="java.lang.String"/>
  37334. <exception name="IOException" type="java.io.IOException"/>
  37335. </method>
  37336. <method name="writeString"
  37337. abstract="false" native="false" synchronized="false"
  37338. static="false" final="false" visibility="public"
  37339. deprecated="not deprecated">
  37340. <param name="s" type="java.lang.String"/>
  37341. <param name="tag" type="java.lang.String"/>
  37342. <exception name="IOException" type="java.io.IOException"/>
  37343. </method>
  37344. <method name="writeBuffer"
  37345. abstract="false" native="false" synchronized="false"
  37346. static="false" final="false" visibility="public"
  37347. deprecated="not deprecated">
  37348. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  37349. <param name="tag" type="java.lang.String"/>
  37350. <exception name="IOException" type="java.io.IOException"/>
  37351. </method>
  37352. <method name="startRecord"
  37353. abstract="false" native="false" synchronized="false"
  37354. static="false" final="false" visibility="public"
  37355. deprecated="not deprecated">
  37356. <param name="r" type="org.apache.hadoop.record.Record"/>
  37357. <param name="tag" type="java.lang.String"/>
  37358. <exception name="IOException" type="java.io.IOException"/>
  37359. </method>
  37360. <method name="endRecord"
  37361. abstract="false" native="false" synchronized="false"
  37362. static="false" final="false" visibility="public"
  37363. deprecated="not deprecated">
  37364. <param name="r" type="org.apache.hadoop.record.Record"/>
  37365. <param name="tag" type="java.lang.String"/>
  37366. <exception name="IOException" type="java.io.IOException"/>
  37367. </method>
  37368. <method name="startVector"
  37369. abstract="false" native="false" synchronized="false"
  37370. static="false" final="false" visibility="public"
  37371. deprecated="not deprecated">
  37372. <param name="v" type="java.util.ArrayList"/>
  37373. <param name="tag" type="java.lang.String"/>
  37374. <exception name="IOException" type="java.io.IOException"/>
  37375. </method>
  37376. <method name="endVector"
  37377. abstract="false" native="false" synchronized="false"
  37378. static="false" final="false" visibility="public"
  37379. deprecated="not deprecated">
  37380. <param name="v" type="java.util.ArrayList"/>
  37381. <param name="tag" type="java.lang.String"/>
  37382. <exception name="IOException" type="java.io.IOException"/>
  37383. </method>
  37384. <method name="startMap"
  37385. abstract="false" native="false" synchronized="false"
  37386. static="false" final="false" visibility="public"
  37387. deprecated="not deprecated">
  37388. <param name="v" type="java.util.TreeMap"/>
  37389. <param name="tag" type="java.lang.String"/>
  37390. <exception name="IOException" type="java.io.IOException"/>
  37391. </method>
  37392. <method name="endMap"
  37393. abstract="false" native="false" synchronized="false"
  37394. static="false" final="false" visibility="public"
  37395. deprecated="not deprecated">
  37396. <param name="v" type="java.util.TreeMap"/>
  37397. <param name="tag" type="java.lang.String"/>
  37398. <exception name="IOException" type="java.io.IOException"/>
  37399. </method>
  37400. <doc>
  37401. <![CDATA[XML Serializer.]]>
  37402. </doc>
  37403. </class>
  37404. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  37405. <doc>
  37406. <![CDATA[Hadoop record I/O contains classes and a record description language
  37407. translator for simplifying serialization and deserialization of records in a
  37408. language-neutral manner.
  37409. <h2>Introduction</h2>
  37410. Software systems of any significant complexity require mechanisms for data
  37411. interchange with the outside world. These interchanges typically involve the
  37412. marshaling and unmarshaling of logical units of data to and from data streams
  37413. (files, network connections, memory buffers etc.). Applications usually have
  37414. some code for serializing and deserializing the data types that they manipulate
  37415. embedded in them. The work of serialization has several features that make
  37416. automatic code generation for it worthwhile. Given a particular output encoding
  37417. (binary, XML, etc.), serialization of primitive types and simple compositions
  37418. of primitives (structs, vectors etc.) is a very mechanical task. Manually
  37419. written serialization code can be susceptible to bugs especially when records
  37420. have a large number of fields or a record definition changes between software
  37421. versions. Lastly, it can be very useful for applications written in different
  37422. programming languages to be able to share and interchange data. This can be
  37423. made a lot easier by describing the data records manipulated by these
  37424. applications in a language agnostic manner and using the descriptions to derive
  37425. implementations of serialization in multiple target languages.
  37426. This document describes Hadoop Record I/O, a mechanism that is aimed
  37427. at
  37428. <ul>
  37429. <li> enabling the specification of simple serializable data types (records)
  37430. <li> enabling the generation of code in multiple target languages for
  37431. marshaling and unmarshaling such types
  37432. <li> providing target language specific support that will enable application
  37433. programmers to incorporate generated code into their applications
  37434. </ul>
  37435. The goals of Hadoop Record I/O are similar to those of mechanisms such as XDR,
  37436. ASN.1, PADS and ICE. While these systems all include a DDL that enables
  37437. the specification of most record types, they differ widely in what else they
  37438. focus on. The focus in Hadoop Record I/O is on data marshaling and
  37439. multi-lingual support. We take a translator-based approach to serialization.
  37440. Hadoop users have to describe their data in a simple data description
  37441. language. The Hadoop DDL translator rcc generates code that users
  37442. can invoke in order to read/write their data from/to simple stream
  37443. abstractions. Next we list explicitly some of the goals and non-goals of
  37444. Hadoop Record I/O.
  37445. <h3>Goals</h3>
  37446. <ul>
  37447. <li> Support for commonly used primitive types. Hadoop should include as
  37448. primitives commonly used builtin types from programming languages we intend to
  37449. support.
  37450. <li> Support for common data compositions (including recursive compositions).
  37451. Hadoop should support widely used composite types such as structs and
  37452. vectors.
  37453. <li> Code generation in multiple target languages. Hadoop should be capable of
  37454. generating serialization code in multiple target languages and should be
  37455. easily extensible to new target languages. The initial target languages are
  37456. C++ and Java.
  37457. <li> Support for generated target languages. Hadooop should include support
  37458. in the form of headers, libraries, packages for supported target languages
  37459. that enable easy inclusion and use of generated code in applications.
  37460. <li> Support for multiple output encodings. Candidates include
  37461. packed binary, comma-separated text, XML etc.
  37462. <li> Support for specifying record types in a backwards/forwards compatible
  37463. manner. This will probably be in the form of support for optional fields in
  37464. records. This version of the document does not include a description of the
  37465. planned mechanism, we intend to include it in the next iteration.
  37466. </ul>
  37467. <h3>Non-Goals</h3>
  37468. <ul>
  37469. <li> Serializing existing arbitrary C++ classes.
  37470. <li> Serializing complex data structures such as trees, linked lists etc.
  37471. <li> Built-in indexing schemes, compression, or check-sums.
  37472. <li> Dynamic construction of objects from an XML schema.
  37473. </ul>
  37474. The remainder of this document describes the features of Hadoop record I/O
  37475. in more detail. Section 2 describes the data types supported by the system.
  37476. Section 3 lays out the DDL syntax with some examples of simple records.
  37477. Section 4 describes the process of code generation with rcc. Section 5
  37478. describes target language mappings and support for Hadoop types. We include a
  37479. fairly complete description of C++ mappings with intent to include Java and
  37480. others in upcoming iterations of this document. The last section talks about
  37481. supported output encodings.
  37482. <h2>Data Types and Streams</h2>
  37483. This section describes the primitive and composite types supported by Hadoop.
  37484. We aim to support a set of types that can be used to simply and efficiently
  37485. express a wide range of record types in different programming languages.
  37486. <h3>Primitive Types</h3>
  37487. For the most part, the primitive types of Hadoop map directly to primitive
  37488. types in high level programming languages. Special cases are the
  37489. ustring (a Unicode string) and buffer types, which we believe
  37490. find wide use and which are usually implemented in library code and not
  37491. available as language built-ins. Hadoop also supplies these via library code
  37492. when a target language built-in is not present and there is no widely
  37493. adopted "standard" implementation. The complete list of primitive types is:
  37494. <ul>
  37495. <li> byte: An 8-bit unsigned integer.
  37496. <li> boolean: A boolean value.
  37497. <li> int: A 32-bit signed integer.
  37498. <li> long: A 64-bit signed integer.
  37499. <li> float: A single precision floating point number as described by
  37500. IEEE-754.
  37501. <li> double: A double precision floating point number as described by
  37502. IEEE-754.
  37503. <li> ustring: A string consisting of Unicode characters.
  37504. <li> buffer: An arbitrary sequence of bytes.
  37505. </ul>
  37506. <h3>Composite Types</h3>
  37507. Hadoop supports a small set of composite types that enable the description
  37508. of simple aggregate types and containers. A composite type is serialized
  37509. by sequentially serializing it constituent elements. The supported
  37510. composite types are:
  37511. <ul>
  37512. <li> record: An aggregate type like a C-struct. This is a list of
  37513. typed fields that are together considered a single unit of data. A record
  37514. is serialized by sequentially serializing its constituent fields. In addition
  37515. to serialization a record has comparison operations (equality and less-than)
  37516. implemented for it, these are defined as memberwise comparisons.
  37517. <li>vector: A sequence of entries of the same data type, primitive
  37518. or composite.
  37519. <li> map: An associative container mapping instances of a key type to
  37520. instances of a value type. The key and value types may themselves be primitive
  37521. or composite types.
  37522. </ul>
  37523. <h3>Streams</h3>
  37524. Hadoop generates code for serializing and deserializing record types to
  37525. abstract streams. For each target language Hadoop defines very simple input
  37526. and output stream interfaces. Application writers can usually develop
  37527. concrete implementations of these by putting a one method wrapper around
  37528. an existing stream implementation.
  37529. <h2>DDL Syntax and Examples</h2>
  37530. We now describe the syntax of the Hadoop data description language. This is
  37531. followed by a few examples of DDL usage.
  37532. <h3>Hadoop DDL Syntax</h3>
  37533. <pre><code>
  37534. recfile = *include module *record
  37535. include = "include" path
  37536. path = (relative-path / absolute-path)
  37537. module = "module" module-name
  37538. module-name = name *("." name)
  37539. record := "class" name "{" 1*(field) "}"
  37540. field := type name ";"
  37541. name := ALPHA (ALPHA / DIGIT / "_" )*
  37542. type := (ptype / ctype)
  37543. ptype := ("byte" / "boolean" / "int" |
  37544. "long" / "float" / "double"
  37545. "ustring" / "buffer")
  37546. ctype := (("vector" "<" type ">") /
  37547. ("map" "<" type "," type ">" ) ) / name)
  37548. </code></pre>
  37549. A DDL file describes one or more record types. It begins with zero or
  37550. more include declarations, a single mandatory module declaration
  37551. followed by zero or more class declarations. The semantics of each of
  37552. these declarations are described below:
  37553. <ul>
  37554. <li>include: An include declaration specifies a DDL file to be
  37555. referenced when generating code for types in the current DDL file. Record types
  37556. in the current compilation unit may refer to types in all included files.
  37557. File inclusion is recursive. An include does not trigger code
  37558. generation for the referenced file.
  37559. <li> module: Every Hadoop DDL file must have a single module
  37560. declaration that follows the list of includes and precedes all record
  37561. declarations. A module declaration identifies a scope within which
  37562. the names of all types in the current file are visible. Module names are
  37563. mapped to C++ namespaces, Java packages etc. in generated code.
  37564. <li> class: Records types are specified through class
  37565. declarations. A class declaration is like a Java class declaration.
  37566. It specifies a named record type and a list of fields that constitute records
  37567. of the type. Usage is illustrated in the following examples.
  37568. </ul>
  37569. <h3>Examples</h3>
  37570. <ul>
  37571. <li>A simple DDL file links.jr with just one record declaration.
  37572. <pre><code>
  37573. module links {
  37574. class Link {
  37575. ustring URL;
  37576. boolean isRelative;
  37577. ustring anchorText;
  37578. };
  37579. }
  37580. </code></pre>
  37581. <li> A DDL file outlinks.jr which includes another
  37582. <pre><code>
  37583. include "links.jr"
  37584. module outlinks {
  37585. class OutLinks {
  37586. ustring baseURL;
  37587. vector<links.Link> outLinks;
  37588. };
  37589. }
  37590. </code></pre>
  37591. </ul>
  37592. <h2>Code Generation</h2>
  37593. The Hadoop translator is written in Java. Invocation is done by executing a
  37594. wrapper shell script named named rcc. It takes a list of
  37595. record description files as a mandatory argument and an
  37596. optional language argument (the default is Java) --language or
  37597. -l. Thus a typical invocation would look like:
  37598. <pre><code>
  37599. $ rcc -l C++ <filename> ...
  37600. </code></pre>
  37601. <h2>Target Language Mappings and Support</h2>
  37602. For all target languages, the unit of code generation is a record type.
  37603. For each record type, Hadoop generates code for serialization and
  37604. deserialization, record comparison and access to record members.
  37605. <h3>C++</h3>
  37606. Support for including Hadoop generated C++ code in applications comes in the
  37607. form of a header file recordio.hh which needs to be included in source
  37608. that uses Hadoop types and a library librecordio.a which applications need
  37609. to be linked with. The header declares the Hadoop C++ namespace which defines
  37610. appropriate types for the various primitives, the basic interfaces for
  37611. records and streams and enumerates the supported serialization encodings.
  37612. Declarations of these interfaces and a description of their semantics follow:
  37613. <pre><code>
  37614. namespace hadoop {
  37615. enum RecFormat { kBinary, kXML, kCSV };
  37616. class InStream {
  37617. public:
  37618. virtual ssize_t read(void *buf, size_t n) = 0;
  37619. };
  37620. class OutStream {
  37621. public:
  37622. virtual ssize_t write(const void *buf, size_t n) = 0;
  37623. };
  37624. class IOError : public runtime_error {
  37625. public:
  37626. explicit IOError(const std::string& msg);
  37627. };
  37628. class IArchive;
  37629. class OArchive;
  37630. class RecordReader {
  37631. public:
  37632. RecordReader(InStream& in, RecFormat fmt);
  37633. virtual ~RecordReader(void);
  37634. virtual void read(Record& rec);
  37635. };
  37636. class RecordWriter {
  37637. public:
  37638. RecordWriter(OutStream& out, RecFormat fmt);
  37639. virtual ~RecordWriter(void);
  37640. virtual void write(Record& rec);
  37641. };
  37642. class Record {
  37643. public:
  37644. virtual std::string type(void) const = 0;
  37645. virtual std::string signature(void) const = 0;
  37646. protected:
  37647. virtual bool validate(void) const = 0;
  37648. virtual void
  37649. serialize(OArchive& oa, const std::string& tag) const = 0;
  37650. virtual void
  37651. deserialize(IArchive& ia, const std::string& tag) = 0;
  37652. };
  37653. }
  37654. </code></pre>
  37655. <ul>
  37656. <li> RecFormat: An enumeration of the serialization encodings supported
  37657. by this implementation of Hadoop.
  37658. <li> InStream: A simple abstraction for an input stream. This has a
  37659. single public read method that reads n bytes from the stream into
  37660. the buffer buf. Has the same semantics as a blocking read system
  37661. call. Returns the number of bytes read or -1 if an error occurs.
  37662. <li> OutStream: A simple abstraction for an output stream. This has a
  37663. single write method that writes n bytes to the stream from the
  37664. buffer buf. Has the same semantics as a blocking write system
  37665. call. Returns the number of bytes written or -1 if an error occurs.
  37666. <li> RecordReader: A RecordReader reads records one at a time from
  37667. an underlying stream in a specified record format. The reader is instantiated
  37668. with a stream and a serialization format. It has a read method that
  37669. takes an instance of a record and deserializes the record from the stream.
  37670. <li> RecordWriter: A RecordWriter writes records one at a
  37671. time to an underlying stream in a specified record format. The writer is
  37672. instantiated with a stream and a serialization format. It has a
  37673. write method that takes an instance of a record and serializes the
  37674. record to the stream.
  37675. <li> Record: The base class for all generated record types. This has two
  37676. public methods type and signature that return the typename and the
  37677. type signature of the record.
  37678. </ul>
  37679. Two files are generated for each record file (note: not for each record). If a
  37680. record file is named "name.jr", the generated files are
  37681. "name.jr.cc" and "name.jr.hh" containing serialization
  37682. implementations and record type declarations respectively.
  37683. For each record in the DDL file, the generated header file will contain a
  37684. class definition corresponding to the record type, method definitions for the
  37685. generated type will be present in the '.cc' file. The generated class will
  37686. inherit from the abstract class hadoop::Record. The DDL files
  37687. module declaration determines the namespace the record belongs to.
  37688. Each '.' delimited token in the module declaration results in the
  37689. creation of a namespace. For instance, the declaration module docs.links
  37690. results in the creation of a docs namespace and a nested
  37691. docs::links namespace. In the preceding examples, the Link class
  37692. is placed in the links namespace. The header file corresponding to
  37693. the links.jr file will contain:
  37694. <pre><code>
  37695. namespace links {
  37696. class Link : public hadoop::Record {
  37697. // ....
  37698. };
  37699. };
  37700. </code></pre>
  37701. Each field within the record will cause the generation of a private member
  37702. declaration of the appropriate type in the class declaration, and one or more
  37703. acccessor methods. The generated class will implement the serialize and
  37704. deserialize methods defined in hadoop::Record+. It will also
  37705. implement the inspection methods type and signature from
  37706. hadoop::Record. A default constructor and virtual destructor will also
  37707. be generated. Serialization code will read/write records into streams that
  37708. implement the hadoop::InStream and the hadoop::OutStream interfaces.
  37709. For each member of a record an accessor method is generated that returns
  37710. either the member or a reference to the member. For members that are returned
  37711. by value, a setter method is also generated. This is true for primitive
  37712. data members of the types byte, int, long, boolean, float and
  37713. double. For example, for a int field called MyField the folowing
  37714. code is generated.
  37715. <pre><code>
  37716. ...
  37717. private:
  37718. int32_t mMyField;
  37719. ...
  37720. public:
  37721. int32_t getMyField(void) const {
  37722. return mMyField;
  37723. };
  37724. void setMyField(int32_t m) {
  37725. mMyField = m;
  37726. };
  37727. ...
  37728. </code></pre>
  37729. For a ustring or buffer or composite field. The generated code
  37730. only contains accessors that return a reference to the field. A const
  37731. and a non-const accessor are generated. For example:
  37732. <pre><code>
  37733. ...
  37734. private:
  37735. std::string mMyBuf;
  37736. ...
  37737. public:
  37738. std::string& getMyBuf() {
  37739. return mMyBuf;
  37740. };
  37741. const std::string& getMyBuf() const {
  37742. return mMyBuf;
  37743. };
  37744. ...
  37745. </code></pre>
  37746. <h4>Examples</h4>
  37747. Suppose the inclrec.jr file contains:
  37748. <pre><code>
  37749. module inclrec {
  37750. class RI {
  37751. int I32;
  37752. double D;
  37753. ustring S;
  37754. };
  37755. }
  37756. </code></pre>
  37757. and the testrec.jr file contains:
  37758. <pre><code>
  37759. include "inclrec.jr"
  37760. module testrec {
  37761. class R {
  37762. vector<float> VF;
  37763. RI Rec;
  37764. buffer Buf;
  37765. };
  37766. }
  37767. </code></pre>
  37768. Then the invocation of rcc such as:
  37769. <pre><code>
  37770. $ rcc -l c++ inclrec.jr testrec.jr
  37771. </code></pre>
  37772. will result in generation of four files:
  37773. inclrec.jr.{cc,hh} and testrec.jr.{cc,hh}.
  37774. The inclrec.jr.hh will contain:
  37775. <pre><code>
  37776. #ifndef _INCLREC_JR_HH_
  37777. #define _INCLREC_JR_HH_
  37778. #include "recordio.hh"
  37779. namespace inclrec {
  37780. class RI : public hadoop::Record {
  37781. private:
  37782. int32_t I32;
  37783. double D;
  37784. std::string S;
  37785. public:
  37786. RI(void);
  37787. virtual ~RI(void);
  37788. virtual bool operator==(const RI& peer) const;
  37789. virtual bool operator<(const RI& peer) const;
  37790. virtual int32_t getI32(void) const { return I32; }
  37791. virtual void setI32(int32_t v) { I32 = v; }
  37792. virtual double getD(void) const { return D; }
  37793. virtual void setD(double v) { D = v; }
  37794. virtual std::string& getS(void) const { return S; }
  37795. virtual const std::string& getS(void) const { return S; }
  37796. virtual std::string type(void) const;
  37797. virtual std::string signature(void) const;
  37798. protected:
  37799. virtual void serialize(hadoop::OArchive& a) const;
  37800. virtual void deserialize(hadoop::IArchive& a);
  37801. };
  37802. } // end namespace inclrec
  37803. #endif /* _INCLREC_JR_HH_ */
  37804. </code></pre>
  37805. The testrec.jr.hh file will contain:
  37806. <pre><code>
  37807. #ifndef _TESTREC_JR_HH_
  37808. #define _TESTREC_JR_HH_
  37809. #include "inclrec.jr.hh"
  37810. namespace testrec {
  37811. class R : public hadoop::Record {
  37812. private:
  37813. std::vector<float> VF;
  37814. inclrec::RI Rec;
  37815. std::string Buf;
  37816. public:
  37817. R(void);
  37818. virtual ~R(void);
  37819. virtual bool operator==(const R& peer) const;
  37820. virtual bool operator<(const R& peer) const;
  37821. virtual std::vector<float>& getVF(void) const;
  37822. virtual const std::vector<float>& getVF(void) const;
  37823. virtual std::string& getBuf(void) const ;
  37824. virtual const std::string& getBuf(void) const;
  37825. virtual inclrec::RI& getRec(void) const;
  37826. virtual const inclrec::RI& getRec(void) const;
  37827. virtual bool serialize(hadoop::OutArchive& a) const;
  37828. virtual bool deserialize(hadoop::InArchive& a);
  37829. virtual std::string type(void) const;
  37830. virtual std::string signature(void) const;
  37831. };
  37832. }; // end namespace testrec
  37833. #endif /* _TESTREC_JR_HH_ */
  37834. </code></pre>
  37835. <h3>Java</h3>
  37836. Code generation for Java is similar to that for C++. A Java class is generated
  37837. for each record type with private members corresponding to the fields. Getters
  37838. and setters for fields are also generated. Some differences arise in the
  37839. way comparison is expressed and in the mapping of modules to packages and
  37840. classes to files. For equality testing, an equals method is generated
  37841. for each record type. As per Java requirements a hashCode method is also
  37842. generated. For comparison a compareTo method is generated for each
  37843. record type. This has the semantics as defined by the Java Comparable
  37844. interface, that is, the method returns a negative integer, zero, or a positive
  37845. integer as the invoked object is less than, equal to, or greater than the
  37846. comparison parameter.
  37847. A .java file is generated per record type as opposed to per DDL
  37848. file as in C++. The module declaration translates to a Java
  37849. package declaration. The module name maps to an identical Java package
  37850. name. In addition to this mapping, the DDL compiler creates the appropriate
  37851. directory hierarchy for the package and places the generated .java
  37852. files in the correct directories.
  37853. <h2>Mapping Summary</h2>
  37854. <pre><code>
  37855. DDL Type C++ Type Java Type
  37856. boolean bool boolean
  37857. byte int8_t byte
  37858. int int32_t int
  37859. long int64_t long
  37860. float float float
  37861. double double double
  37862. ustring std::string java.lang.String
  37863. buffer std::string org.apache.hadoop.record.Buffer
  37864. class type class type class type
  37865. vector<type> std::vector<type> java.util.ArrayList<type>
  37866. map<type,type> std::map<type,type> java.util.TreeMap<type,type>
  37867. </code></pre>
  37868. <h2>Data encodings</h2>
  37869. This section describes the format of the data encodings supported by Hadoop.
  37870. Currently, three data encodings are supported, namely binary, CSV and XML.
  37871. <h3>Binary Serialization Format</h3>
  37872. The binary data encoding format is fairly dense. Serialization of composite
  37873. types is simply defined as a concatenation of serializations of the constituent
  37874. elements (lengths are included in vectors and maps).
  37875. Composite types are serialized as follows:
  37876. <ul>
  37877. <li> class: Sequence of serialized members.
  37878. <li> vector: The number of elements serialized as an int. Followed by a
  37879. sequence of serialized elements.
  37880. <li> map: The number of key value pairs serialized as an int. Followed
  37881. by a sequence of serialized (key,value) pairs.
  37882. </ul>
  37883. Serialization of primitives is more interesting, with a zero compression
  37884. optimization for integral types and normalization to UTF-8 for strings.
  37885. Primitive types are serialized as follows:
  37886. <ul>
  37887. <li> byte: Represented by 1 byte, as is.
  37888. <li> boolean: Represented by 1-byte (0 or 1)
  37889. <li> int/long: Integers and longs are serialized zero compressed.
  37890. Represented as 1-byte if -120 <= value < 128. Otherwise, serialized as a
  37891. sequence of 2-5 bytes for ints, 2-9 bytes for longs. The first byte represents
  37892. the number of trailing bytes, N, as the negative number (-120-N). For example,
  37893. the number 1024 (0x400) is represented by the byte sequence 'x86 x04 x00'.
  37894. This doesn't help much for 4-byte integers but does a reasonably good job with
  37895. longs without bit twiddling.
  37896. <li> float/double: Serialized in IEEE 754 single and double precision
  37897. format in network byte order. This is the format used by Java.
  37898. <li> ustring: Serialized as 4-byte zero compressed length followed by
  37899. data encoded as UTF-8. Strings are normalized to UTF-8 regardless of native
  37900. language representation.
  37901. <li> buffer: Serialized as a 4-byte zero compressed length followed by the
  37902. raw bytes in the buffer.
  37903. </ul>
  37904. <h3>CSV Serialization Format</h3>
  37905. The CSV serialization format has a lot more structure than the "standard"
  37906. Excel CSV format, but we believe the additional structure is useful because
  37907. <ul>
  37908. <li> it makes parsing a lot easier without detracting too much from legibility
  37909. <li> the delimiters around composites make it obvious when one is reading a
  37910. sequence of Hadoop records
  37911. </ul>
  37912. Serialization formats for the various types are detailed in the grammar that
  37913. follows. The notable feature of the formats is the use of delimiters for
  37914. indicating the certain field types.
  37915. <ul>
  37916. <li> A string field begins with a single quote (').
  37917. <li> A buffer field begins with a sharp (#).
  37918. <li> A class, vector or map begins with 's{', 'v{' or 'm{' respectively and
  37919. ends with '}'.
  37920. </ul>
  37921. The CSV format can be described by the following grammar:
  37922. <pre><code>
  37923. record = primitive / struct / vector / map
  37924. primitive = boolean / int / long / float / double / ustring / buffer
  37925. boolean = "T" / "F"
  37926. int = ["-"] 1*DIGIT
  37927. long = ";" ["-"] 1*DIGIT
  37928. float = ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  37929. double = ";" ["-"] 1*DIGIT "." 1*DIGIT ["E" / "e" ["-"] 1*DIGIT]
  37930. ustring = "'" *(UTF8 char except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  37931. buffer = "#" *(BYTE except NULL, LF, % and , / "%00" / "%0a" / "%25" / "%2c" )
  37932. struct = "s{" record *("," record) "}"
  37933. vector = "v{" [record *("," record)] "}"
  37934. map = "m{" [*(record "," record)] "}"
  37935. </code></pre>
  37936. <h3>XML Serialization Format</h3>
  37937. The XML serialization format is the same used by Apache XML-RPC
  37938. (http://ws.apache.org/xmlrpc/types.html). This is an extension of the original
  37939. XML-RPC format and adds some additional data types. All record I/O types are
  37940. not directly expressible in this format, and access to a DDL is required in
  37941. order to convert these to valid types. All types primitive or composite are
  37942. represented by &lt;value&gt; elements. The particular XML-RPC type is
  37943. indicated by a nested element in the &lt;value&gt; element. The encoding for
  37944. records is always UTF-8. Primitive types are serialized as follows:
  37945. <ul>
  37946. <li> byte: XML tag &lt;ex:i1&gt;. Values: 1-byte unsigned
  37947. integers represented in US-ASCII
  37948. <li> boolean: XML tag &lt;boolean&gt;. Values: "0" or "1"
  37949. <li> int: XML tags &lt;i4&gt; or &lt;int&gt;. Values: 4-byte
  37950. signed integers represented in US-ASCII.
  37951. <li> long: XML tag &lt;ex:i8&gt;. Values: 8-byte signed integers
  37952. represented in US-ASCII.
  37953. <li> float: XML tag &lt;ex:float&gt;. Values: Single precision
  37954. floating point numbers represented in US-ASCII.
  37955. <li> double: XML tag &lt;double&gt;. Values: Double precision
  37956. floating point numbers represented in US-ASCII.
  37957. <li> ustring: XML tag &lt;;string&gt;. Values: String values
  37958. represented as UTF-8. XML does not permit all Unicode characters in literal
  37959. data. In particular, NULLs and control chars are not allowed. Additionally,
  37960. XML processors are required to replace carriage returns with line feeds and to
  37961. replace CRLF sequences with line feeds. Programming languages that we work
  37962. with do not impose these restrictions on string types. To work around these
  37963. restrictions, disallowed characters and CRs are percent escaped in strings.
  37964. The '%' character is also percent escaped.
  37965. <li> buffer: XML tag &lt;string&&gt;. Values: Arbitrary binary
  37966. data. Represented as hexBinary, each byte is replaced by its 2-byte
  37967. hexadecimal representation.
  37968. </ul>
  37969. Composite types are serialized as follows:
  37970. <ul>
  37971. <li> class: XML tag &lt;struct&gt;. A struct is a sequence of
  37972. &lt;member&gt; elements. Each &lt;member&gt; element has a &lt;name&gt;
  37973. element and a &lt;value&gt; element. The &lt;name&gt; is a string that must
  37974. match /[a-zA-Z][a-zA-Z0-9_]*/. The value of the member is represented
  37975. by a &lt;value&gt; element.
  37976. <li> vector: XML tag &lt;array&lt;. An &lt;array&gt; contains a
  37977. single &lt;data&gt; element. The &lt;data&gt; element is a sequence of
  37978. &lt;value&gt; elements each of which represents an element of the vector.
  37979. <li> map: XML tag &lt;array&gt;. Same as vector.
  37980. </ul>
  37981. For example:
  37982. <pre><code>
  37983. class {
  37984. int MY_INT; // value 5
  37985. vector<float> MY_VEC; // values 0.1, -0.89, 2.45e4
  37986. buffer MY_BUF; // value '\00\n\tabc%'
  37987. }
  37988. </code></pre>
  37989. is serialized as
  37990. <pre><code class="XML">
  37991. &lt;value&gt;
  37992. &lt;struct&gt;
  37993. &lt;member&gt;
  37994. &lt;name&gt;MY_INT&lt;/name&gt;
  37995. &lt;value&gt;&lt;i4&gt;5&lt;/i4&gt;&lt;/value&gt;
  37996. &lt;/member&gt;
  37997. &lt;member&gt;
  37998. &lt;name&gt;MY_VEC&lt;/name&gt;
  37999. &lt;value&gt;
  38000. &lt;array&gt;
  38001. &lt;data&gt;
  38002. &lt;value&gt;&lt;ex:float&gt;0.1&lt;/ex:float&gt;&lt;/value&gt;
  38003. &lt;value&gt;&lt;ex:float&gt;-0.89&lt;/ex:float&gt;&lt;/value&gt;
  38004. &lt;value&gt;&lt;ex:float&gt;2.45e4&lt;/ex:float&gt;&lt;/value&gt;
  38005. &lt;/data&gt;
  38006. &lt;/array&gt;
  38007. &lt;/value&gt;
  38008. &lt;/member&gt;
  38009. &lt;member&gt;
  38010. &lt;name&gt;MY_BUF&lt;/name&gt;
  38011. &lt;value&gt;&lt;string&gt;%00\n\tabc%25&lt;/string&gt;&lt;/value&gt;
  38012. &lt;/member&gt;
  38013. &lt;/struct&gt;
  38014. &lt;/value&gt;
  38015. </code></pre>]]>
  38016. </doc>
  38017. </package>
  38018. <package name="org.apache.hadoop.record.compiler">
  38019. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  38020. <class name="CodeBuffer" extends="java.lang.Object"
  38021. abstract="false"
  38022. static="false" final="false" visibility="public"
  38023. deprecated="not deprecated">
  38024. <method name="toString" return="java.lang.String"
  38025. abstract="false" native="false" synchronized="false"
  38026. static="false" final="false" visibility="public"
  38027. deprecated="not deprecated">
  38028. </method>
  38029. <doc>
  38030. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  38031. </doc>
  38032. </class>
  38033. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  38034. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  38035. <class name="Consts" extends="java.lang.Object"
  38036. abstract="false"
  38037. static="false" final="false" visibility="public"
  38038. deprecated="not deprecated">
  38039. <field name="RIO_PREFIX" type="java.lang.String"
  38040. transient="false" volatile="false"
  38041. static="true" final="true" visibility="public"
  38042. deprecated="not deprecated">
  38043. </field>
  38044. <field name="RTI_VAR" type="java.lang.String"
  38045. transient="false" volatile="false"
  38046. static="true" final="true" visibility="public"
  38047. deprecated="not deprecated">
  38048. </field>
  38049. <field name="RTI_FILTER" type="java.lang.String"
  38050. transient="false" volatile="false"
  38051. static="true" final="true" visibility="public"
  38052. deprecated="not deprecated">
  38053. </field>
  38054. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  38055. transient="false" volatile="false"
  38056. static="true" final="true" visibility="public"
  38057. deprecated="not deprecated">
  38058. </field>
  38059. <field name="RECORD_OUTPUT" type="java.lang.String"
  38060. transient="false" volatile="false"
  38061. static="true" final="true" visibility="public"
  38062. deprecated="not deprecated">
  38063. </field>
  38064. <field name="RECORD_INPUT" type="java.lang.String"
  38065. transient="false" volatile="false"
  38066. static="true" final="true" visibility="public"
  38067. deprecated="not deprecated">
  38068. </field>
  38069. <field name="TAG" type="java.lang.String"
  38070. transient="false" volatile="false"
  38071. static="true" final="true" visibility="public"
  38072. deprecated="not deprecated">
  38073. </field>
  38074. <doc>
  38075. <![CDATA[const definitions for Record I/O compiler]]>
  38076. </doc>
  38077. </class>
  38078. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  38079. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  38080. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  38081. abstract="false"
  38082. static="false" final="false" visibility="public"
  38083. deprecated="not deprecated">
  38084. <constructor name="JBoolean"
  38085. static="false" final="false" visibility="public"
  38086. deprecated="not deprecated">
  38087. <doc>
  38088. <![CDATA[Creates a new instance of JBoolean]]>
  38089. </doc>
  38090. </constructor>
  38091. </class>
  38092. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  38093. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  38094. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  38095. abstract="false"
  38096. static="false" final="false" visibility="public"
  38097. deprecated="not deprecated">
  38098. <constructor name="JBuffer"
  38099. static="false" final="false" visibility="public"
  38100. deprecated="not deprecated">
  38101. <doc>
  38102. <![CDATA[Creates a new instance of JBuffer]]>
  38103. </doc>
  38104. </constructor>
  38105. <doc>
  38106. <![CDATA[Code generator for "buffer" type.]]>
  38107. </doc>
  38108. </class>
  38109. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  38110. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  38111. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  38112. abstract="false"
  38113. static="false" final="false" visibility="public"
  38114. deprecated="not deprecated">
  38115. <constructor name="JByte"
  38116. static="false" final="false" visibility="public"
  38117. deprecated="not deprecated">
  38118. </constructor>
  38119. <doc>
  38120. <![CDATA[Code generator for "byte" type.]]>
  38121. </doc>
  38122. </class>
  38123. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  38124. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  38125. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  38126. abstract="false"
  38127. static="false" final="false" visibility="public"
  38128. deprecated="not deprecated">
  38129. <constructor name="JDouble"
  38130. static="false" final="false" visibility="public"
  38131. deprecated="not deprecated">
  38132. <doc>
  38133. <![CDATA[Creates a new instance of JDouble]]>
  38134. </doc>
  38135. </constructor>
  38136. </class>
  38137. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  38138. <!-- start class org.apache.hadoop.record.compiler.JField -->
  38139. <class name="JField" extends="java.lang.Object"
  38140. abstract="false"
  38141. static="false" final="false" visibility="public"
  38142. deprecated="not deprecated">
  38143. <constructor name="JField" type="java.lang.String, T"
  38144. static="false" final="false" visibility="public"
  38145. deprecated="not deprecated">
  38146. <doc>
  38147. <![CDATA[Creates a new instance of JField]]>
  38148. </doc>
  38149. </constructor>
  38150. <doc>
  38151. <![CDATA[A thin wrappper around record field.]]>
  38152. </doc>
  38153. </class>
  38154. <!-- end class org.apache.hadoop.record.compiler.JField -->
  38155. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  38156. <class name="JFile" extends="java.lang.Object"
  38157. abstract="false"
  38158. static="false" final="false" visibility="public"
  38159. deprecated="not deprecated">
  38160. <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;"
  38161. static="false" final="false" visibility="public"
  38162. deprecated="not deprecated">
  38163. <doc>
  38164. <![CDATA[Creates a new instance of JFile
  38165. @param name possibly full pathname to the file
  38166. @param inclFiles included files (as JFile)
  38167. @param recList List of records defined within this file]]>
  38168. </doc>
  38169. </constructor>
  38170. <method name="genCode" return="int"
  38171. abstract="false" native="false" synchronized="false"
  38172. static="false" final="false" visibility="public"
  38173. deprecated="not deprecated">
  38174. <param name="language" type="java.lang.String"/>
  38175. <param name="destDir" type="java.lang.String"/>
  38176. <param name="options" type="java.util.ArrayList&lt;java.lang.String&gt;"/>
  38177. <exception name="IOException" type="java.io.IOException"/>
  38178. <doc>
  38179. <![CDATA[Generate record code in given language. Language should be all
  38180. lowercase.]]>
  38181. </doc>
  38182. </method>
  38183. <doc>
  38184. <![CDATA[Container for the Hadoop Record DDL.
  38185. The main components of the file are filename, list of included files,
  38186. and records defined in that file.]]>
  38187. </doc>
  38188. </class>
  38189. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  38190. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  38191. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  38192. abstract="false"
  38193. static="false" final="false" visibility="public"
  38194. deprecated="not deprecated">
  38195. <constructor name="JFloat"
  38196. static="false" final="false" visibility="public"
  38197. deprecated="not deprecated">
  38198. <doc>
  38199. <![CDATA[Creates a new instance of JFloat]]>
  38200. </doc>
  38201. </constructor>
  38202. </class>
  38203. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  38204. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  38205. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  38206. abstract="false"
  38207. static="false" final="false" visibility="public"
  38208. deprecated="not deprecated">
  38209. <constructor name="JInt"
  38210. static="false" final="false" visibility="public"
  38211. deprecated="not deprecated">
  38212. <doc>
  38213. <![CDATA[Creates a new instance of JInt]]>
  38214. </doc>
  38215. </constructor>
  38216. <doc>
  38217. <![CDATA[Code generator for "int" type]]>
  38218. </doc>
  38219. </class>
  38220. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  38221. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  38222. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  38223. abstract="false"
  38224. static="false" final="false" visibility="public"
  38225. deprecated="not deprecated">
  38226. <constructor name="JLong"
  38227. static="false" final="false" visibility="public"
  38228. deprecated="not deprecated">
  38229. <doc>
  38230. <![CDATA[Creates a new instance of JLong]]>
  38231. </doc>
  38232. </constructor>
  38233. <doc>
  38234. <![CDATA[Code generator for "long" type]]>
  38235. </doc>
  38236. </class>
  38237. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  38238. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  38239. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  38240. abstract="false"
  38241. static="false" final="false" visibility="public"
  38242. deprecated="not deprecated">
  38243. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  38244. static="false" final="false" visibility="public"
  38245. deprecated="not deprecated">
  38246. <doc>
  38247. <![CDATA[Creates a new instance of JMap]]>
  38248. </doc>
  38249. </constructor>
  38250. </class>
  38251. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  38252. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  38253. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  38254. abstract="false"
  38255. static="false" final="false" visibility="public"
  38256. deprecated="not deprecated">
  38257. <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;"
  38258. static="false" final="false" visibility="public"
  38259. deprecated="not deprecated">
  38260. <doc>
  38261. <![CDATA[Creates a new instance of JRecord]]>
  38262. </doc>
  38263. </constructor>
  38264. </class>
  38265. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  38266. <!-- start class org.apache.hadoop.record.compiler.JString -->
  38267. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  38268. abstract="false"
  38269. static="false" final="false" visibility="public"
  38270. deprecated="not deprecated">
  38271. <constructor name="JString"
  38272. static="false" final="false" visibility="public"
  38273. deprecated="not deprecated">
  38274. <doc>
  38275. <![CDATA[Creates a new instance of JString]]>
  38276. </doc>
  38277. </constructor>
  38278. </class>
  38279. <!-- end class org.apache.hadoop.record.compiler.JString -->
  38280. <!-- start class org.apache.hadoop.record.compiler.JType -->
  38281. <class name="JType" extends="java.lang.Object"
  38282. abstract="true"
  38283. static="false" final="false" visibility="public"
  38284. deprecated="not deprecated">
  38285. <constructor name="JType"
  38286. static="false" final="false" visibility="public"
  38287. deprecated="not deprecated">
  38288. </constructor>
  38289. <doc>
  38290. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  38291. </doc>
  38292. </class>
  38293. <!-- end class org.apache.hadoop.record.compiler.JType -->
  38294. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  38295. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  38296. abstract="false"
  38297. static="false" final="false" visibility="public"
  38298. deprecated="not deprecated">
  38299. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  38300. static="false" final="false" visibility="public"
  38301. deprecated="not deprecated">
  38302. <doc>
  38303. <![CDATA[Creates a new instance of JVector]]>
  38304. </doc>
  38305. </constructor>
  38306. </class>
  38307. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  38308. <doc>
  38309. <![CDATA[This package contains classes needed for code generation
  38310. from the hadoop record compiler. CppGenerator and JavaGenerator
  38311. are the main entry points from the parser. There are classes
  38312. corrsponding to every primitive type and compound type
  38313. included in Hadoop record I/O syntax.]]>
  38314. </doc>
  38315. </package>
  38316. <package name="org.apache.hadoop.record.compiler.ant">
  38317. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  38318. <class name="RccTask" extends="org.apache.tools.ant.Task"
  38319. abstract="false"
  38320. static="false" final="false" visibility="public"
  38321. deprecated="not deprecated">
  38322. <constructor name="RccTask"
  38323. static="false" final="false" visibility="public"
  38324. deprecated="not deprecated">
  38325. <doc>
  38326. <![CDATA[Creates a new instance of RccTask]]>
  38327. </doc>
  38328. </constructor>
  38329. <method name="setLanguage"
  38330. abstract="false" native="false" synchronized="false"
  38331. static="false" final="false" visibility="public"
  38332. deprecated="not deprecated">
  38333. <param name="language" type="java.lang.String"/>
  38334. <doc>
  38335. <![CDATA[Sets the output language option
  38336. @param language "java"/"c++"]]>
  38337. </doc>
  38338. </method>
  38339. <method name="setFile"
  38340. abstract="false" native="false" synchronized="false"
  38341. static="false" final="false" visibility="public"
  38342. deprecated="not deprecated">
  38343. <param name="file" type="java.io.File"/>
  38344. <doc>
  38345. <![CDATA[Sets the record definition file attribute
  38346. @param file record definition file]]>
  38347. </doc>
  38348. </method>
  38349. <method name="setFailonerror"
  38350. abstract="false" native="false" synchronized="false"
  38351. static="false" final="false" visibility="public"
  38352. deprecated="not deprecated">
  38353. <param name="flag" type="boolean"/>
  38354. <doc>
  38355. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  38356. @param flag true will throw build exception in case of failure (default)]]>
  38357. </doc>
  38358. </method>
  38359. <method name="setDestdir"
  38360. abstract="false" native="false" synchronized="false"
  38361. static="false" final="false" visibility="public"
  38362. deprecated="not deprecated">
  38363. <param name="dir" type="java.io.File"/>
  38364. <doc>
  38365. <![CDATA[Sets directory where output files will be generated
  38366. @param dir output directory]]>
  38367. </doc>
  38368. </method>
  38369. <method name="addFileset"
  38370. abstract="false" native="false" synchronized="false"
  38371. static="false" final="false" visibility="public"
  38372. deprecated="not deprecated">
  38373. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  38374. <doc>
  38375. <![CDATA[Adds a fileset that can consist of one or more files
  38376. @param set Set of record definition files]]>
  38377. </doc>
  38378. </method>
  38379. <method name="execute"
  38380. abstract="false" native="false" synchronized="false"
  38381. static="false" final="false" visibility="public"
  38382. deprecated="not deprecated">
  38383. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  38384. <doc>
  38385. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  38386. </doc>
  38387. </method>
  38388. <doc>
  38389. <![CDATA[Hadoop record compiler ant Task
  38390. <p> This task takes the given record definition files and compiles them into
  38391. java or c++
  38392. files. It is then up to the user to compile the generated files.
  38393. <p> The task requires the <code>file</code> or the nested fileset element to be
  38394. specified. Optional attributes are <code>language</code> (set the output
  38395. language, default is "java"),
  38396. <code>destdir</code> (name of the destination directory for generated java/c++
  38397. code, default is ".") and <code>failonerror</code> (specifies error handling
  38398. behavior. default is true).
  38399. <p><h4>Usage</h4>
  38400. <pre>
  38401. &lt;recordcc
  38402. destdir="${basedir}/gensrc"
  38403. language="java"&gt;
  38404. &lt;fileset include="**\/*.jr" /&gt;
  38405. &lt;/recordcc&gt;
  38406. </pre>]]>
  38407. </doc>
  38408. </class>
  38409. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  38410. </package>
  38411. <package name="org.apache.hadoop.record.compiler.generated">
  38412. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  38413. <class name="ParseException" extends="java.lang.Exception"
  38414. abstract="false"
  38415. static="false" final="false" visibility="public"
  38416. deprecated="not deprecated">
  38417. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  38418. static="false" final="false" visibility="public"
  38419. deprecated="not deprecated">
  38420. <doc>
  38421. <![CDATA[This constructor is used by the method "generateParseException"
  38422. in the generated parser. Calling this constructor generates
  38423. a new object of this type with the fields "currentToken",
  38424. "expectedTokenSequences", and "tokenImage" set. The boolean
  38425. flag "specialConstructor" is also set to true to indicate that
  38426. this constructor was used to create this object.
  38427. This constructor calls its super class with the empty string
  38428. to force the "toString" method of parent class "Throwable" to
  38429. print the error message in the form:
  38430. ParseException: <result of getMessage>]]>
  38431. </doc>
  38432. </constructor>
  38433. <constructor name="ParseException"
  38434. static="false" final="false" visibility="public"
  38435. deprecated="not deprecated">
  38436. <doc>
  38437. <![CDATA[The following constructors are for use by you for whatever
  38438. purpose you can think of. Constructing the exception in this
  38439. manner makes the exception behave in the normal way - i.e., as
  38440. documented in the class "Throwable". The fields "errorToken",
  38441. "expectedTokenSequences", and "tokenImage" do not contain
  38442. relevant information. The JavaCC generated code does not use
  38443. these constructors.]]>
  38444. </doc>
  38445. </constructor>
  38446. <constructor name="ParseException" type="java.lang.String"
  38447. static="false" final="false" visibility="public"
  38448. deprecated="not deprecated">
  38449. </constructor>
  38450. <method name="getMessage" return="java.lang.String"
  38451. abstract="false" native="false" synchronized="false"
  38452. static="false" final="false" visibility="public"
  38453. deprecated="not deprecated">
  38454. <doc>
  38455. <![CDATA[This method has the standard behavior when this object has been
  38456. created using the standard constructors. Otherwise, it uses
  38457. "currentToken" and "expectedTokenSequences" to generate a parse
  38458. error message and returns it. If this object has been created
  38459. due to a parse error, and you do not catch it (it gets thrown
  38460. from the parser), then this method is called during the printing
  38461. of the final stack trace, and hence the correct error message
  38462. gets displayed.]]>
  38463. </doc>
  38464. </method>
  38465. <method name="add_escapes" return="java.lang.String"
  38466. abstract="false" native="false" synchronized="false"
  38467. static="false" final="false" visibility="protected"
  38468. deprecated="not deprecated">
  38469. <param name="str" type="java.lang.String"/>
  38470. <doc>
  38471. <![CDATA[Used to convert raw characters to their escaped version
  38472. when these raw version cannot be used as part of an ASCII
  38473. string literal.]]>
  38474. </doc>
  38475. </method>
  38476. <field name="specialConstructor" type="boolean"
  38477. transient="false" volatile="false"
  38478. static="false" final="false" visibility="protected"
  38479. deprecated="not deprecated">
  38480. <doc>
  38481. <![CDATA[This variable determines which constructor was used to create
  38482. this object and thereby affects the semantics of the
  38483. "getMessage" method (see below).]]>
  38484. </doc>
  38485. </field>
  38486. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  38487. transient="false" volatile="false"
  38488. static="false" final="false" visibility="public"
  38489. deprecated="not deprecated">
  38490. <doc>
  38491. <![CDATA[This is the last token that has been consumed successfully. If
  38492. this object has been created due to a parse error, the token
  38493. followng this token will (therefore) be the first error token.]]>
  38494. </doc>
  38495. </field>
  38496. <field name="expectedTokenSequences" type="int[][]"
  38497. transient="false" volatile="false"
  38498. static="false" final="false" visibility="public"
  38499. deprecated="not deprecated">
  38500. <doc>
  38501. <![CDATA[Each entry in this array is an array of integers. Each array
  38502. of integers represents a sequence of tokens (by their ordinal
  38503. values) that is expected at this point of the parse.]]>
  38504. </doc>
  38505. </field>
  38506. <field name="tokenImage" type="java.lang.String[]"
  38507. transient="false" volatile="false"
  38508. static="false" final="false" visibility="public"
  38509. deprecated="not deprecated">
  38510. <doc>
  38511. <![CDATA[This is a reference to the "tokenImage" array of the generated
  38512. parser within which the parse error occurred. This array is
  38513. defined in the generated ...Constants interface.]]>
  38514. </doc>
  38515. </field>
  38516. <field name="eol" type="java.lang.String"
  38517. transient="false" volatile="false"
  38518. static="false" final="false" visibility="protected"
  38519. deprecated="not deprecated">
  38520. <doc>
  38521. <![CDATA[The end of line string for this machine.]]>
  38522. </doc>
  38523. </field>
  38524. <doc>
  38525. <![CDATA[This exception is thrown when parse errors are encountered.
  38526. You can explicitly create objects of this exception type by
  38527. calling the method generateParseException in the generated
  38528. parser.
  38529. You can modify this class to customize your error reporting
  38530. mechanisms so long as you retain the public fields.]]>
  38531. </doc>
  38532. </class>
  38533. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  38534. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  38535. <class name="Rcc" extends="java.lang.Object"
  38536. abstract="false"
  38537. static="false" final="false" visibility="public"
  38538. deprecated="not deprecated">
  38539. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  38540. <constructor name="Rcc" type="java.io.InputStream"
  38541. static="false" final="false" visibility="public"
  38542. deprecated="not deprecated">
  38543. </constructor>
  38544. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  38545. static="false" final="false" visibility="public"
  38546. deprecated="not deprecated">
  38547. </constructor>
  38548. <constructor name="Rcc" type="java.io.Reader"
  38549. static="false" final="false" visibility="public"
  38550. deprecated="not deprecated">
  38551. </constructor>
  38552. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38553. static="false" final="false" visibility="public"
  38554. deprecated="not deprecated">
  38555. </constructor>
  38556. <method name="main"
  38557. abstract="false" native="false" synchronized="false"
  38558. static="true" final="false" visibility="public"
  38559. deprecated="not deprecated">
  38560. <param name="args" type="java.lang.String[]"/>
  38561. </method>
  38562. <method name="usage"
  38563. abstract="false" native="false" synchronized="false"
  38564. static="true" final="false" visibility="public"
  38565. deprecated="not deprecated">
  38566. </method>
  38567. <method name="driver" return="int"
  38568. abstract="false" native="false" synchronized="false"
  38569. static="true" final="false" visibility="public"
  38570. deprecated="not deprecated">
  38571. <param name="args" type="java.lang.String[]"/>
  38572. </method>
  38573. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  38574. abstract="false" native="false" synchronized="false"
  38575. static="false" final="true" visibility="public"
  38576. deprecated="not deprecated">
  38577. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38578. </method>
  38579. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  38580. abstract="false" native="false" synchronized="false"
  38581. static="false" final="true" visibility="public"
  38582. deprecated="not deprecated">
  38583. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38584. </method>
  38585. <method name="Module" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  38586. abstract="false" native="false" synchronized="false"
  38587. static="false" final="true" visibility="public"
  38588. deprecated="not deprecated">
  38589. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38590. </method>
  38591. <method name="ModuleName" return="java.lang.String"
  38592. abstract="false" native="false" synchronized="false"
  38593. static="false" final="true" visibility="public"
  38594. deprecated="not deprecated">
  38595. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38596. </method>
  38597. <method name="RecordList" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  38598. abstract="false" native="false" synchronized="false"
  38599. static="false" final="true" visibility="public"
  38600. deprecated="not deprecated">
  38601. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38602. </method>
  38603. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  38604. abstract="false" native="false" synchronized="false"
  38605. static="false" final="true" visibility="public"
  38606. deprecated="not deprecated">
  38607. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38608. </method>
  38609. <method name="Field" return="org.apache.hadoop.record.compiler.JField&lt;org.apache.hadoop.record.compiler.JType&gt;"
  38610. abstract="false" native="false" synchronized="false"
  38611. static="false" final="true" visibility="public"
  38612. deprecated="not deprecated">
  38613. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38614. </method>
  38615. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  38616. abstract="false" native="false" synchronized="false"
  38617. static="false" final="true" visibility="public"
  38618. deprecated="not deprecated">
  38619. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38620. </method>
  38621. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  38622. abstract="false" native="false" synchronized="false"
  38623. static="false" final="true" visibility="public"
  38624. deprecated="not deprecated">
  38625. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38626. </method>
  38627. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  38628. abstract="false" native="false" synchronized="false"
  38629. static="false" final="true" visibility="public"
  38630. deprecated="not deprecated">
  38631. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  38632. </method>
  38633. <method name="ReInit"
  38634. abstract="false" native="false" synchronized="false"
  38635. static="false" final="false" visibility="public"
  38636. deprecated="not deprecated">
  38637. <param name="stream" type="java.io.InputStream"/>
  38638. </method>
  38639. <method name="ReInit"
  38640. abstract="false" native="false" synchronized="false"
  38641. static="false" final="false" visibility="public"
  38642. deprecated="not deprecated">
  38643. <param name="stream" type="java.io.InputStream"/>
  38644. <param name="encoding" type="java.lang.String"/>
  38645. </method>
  38646. <method name="ReInit"
  38647. abstract="false" native="false" synchronized="false"
  38648. static="false" final="false" visibility="public"
  38649. deprecated="not deprecated">
  38650. <param name="stream" type="java.io.Reader"/>
  38651. </method>
  38652. <method name="ReInit"
  38653. abstract="false" native="false" synchronized="false"
  38654. static="false" final="false" visibility="public"
  38655. deprecated="not deprecated">
  38656. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  38657. </method>
  38658. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38659. abstract="false" native="false" synchronized="false"
  38660. static="false" final="true" visibility="public"
  38661. deprecated="not deprecated">
  38662. </method>
  38663. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38664. abstract="false" native="false" synchronized="false"
  38665. static="false" final="true" visibility="public"
  38666. deprecated="not deprecated">
  38667. <param name="index" type="int"/>
  38668. </method>
  38669. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  38670. abstract="false" native="false" synchronized="false"
  38671. static="false" final="false" visibility="public"
  38672. deprecated="not deprecated">
  38673. </method>
  38674. <method name="enable_tracing"
  38675. abstract="false" native="false" synchronized="false"
  38676. static="false" final="true" visibility="public"
  38677. deprecated="not deprecated">
  38678. </method>
  38679. <method name="disable_tracing"
  38680. abstract="false" native="false" synchronized="false"
  38681. static="false" final="true" visibility="public"
  38682. deprecated="not deprecated">
  38683. </method>
  38684. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  38685. transient="false" volatile="false"
  38686. static="false" final="false" visibility="public"
  38687. deprecated="not deprecated">
  38688. </field>
  38689. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  38690. transient="false" volatile="false"
  38691. static="false" final="false" visibility="public"
  38692. deprecated="not deprecated">
  38693. </field>
  38694. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  38695. transient="false" volatile="false"
  38696. static="false" final="false" visibility="public"
  38697. deprecated="not deprecated">
  38698. </field>
  38699. </class>
  38700. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  38701. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  38702. <interface name="RccConstants" abstract="true"
  38703. static="false" final="false" visibility="public"
  38704. deprecated="not deprecated">
  38705. <field name="EOF" type="int"
  38706. transient="false" volatile="false"
  38707. static="true" final="true" visibility="public"
  38708. deprecated="not deprecated">
  38709. </field>
  38710. <field name="MODULE_TKN" type="int"
  38711. transient="false" volatile="false"
  38712. static="true" final="true" visibility="public"
  38713. deprecated="not deprecated">
  38714. </field>
  38715. <field name="RECORD_TKN" type="int"
  38716. transient="false" volatile="false"
  38717. static="true" final="true" visibility="public"
  38718. deprecated="not deprecated">
  38719. </field>
  38720. <field name="INCLUDE_TKN" type="int"
  38721. transient="false" volatile="false"
  38722. static="true" final="true" visibility="public"
  38723. deprecated="not deprecated">
  38724. </field>
  38725. <field name="BYTE_TKN" type="int"
  38726. transient="false" volatile="false"
  38727. static="true" final="true" visibility="public"
  38728. deprecated="not deprecated">
  38729. </field>
  38730. <field name="BOOLEAN_TKN" type="int"
  38731. transient="false" volatile="false"
  38732. static="true" final="true" visibility="public"
  38733. deprecated="not deprecated">
  38734. </field>
  38735. <field name="INT_TKN" type="int"
  38736. transient="false" volatile="false"
  38737. static="true" final="true" visibility="public"
  38738. deprecated="not deprecated">
  38739. </field>
  38740. <field name="LONG_TKN" type="int"
  38741. transient="false" volatile="false"
  38742. static="true" final="true" visibility="public"
  38743. deprecated="not deprecated">
  38744. </field>
  38745. <field name="FLOAT_TKN" type="int"
  38746. transient="false" volatile="false"
  38747. static="true" final="true" visibility="public"
  38748. deprecated="not deprecated">
  38749. </field>
  38750. <field name="DOUBLE_TKN" type="int"
  38751. transient="false" volatile="false"
  38752. static="true" final="true" visibility="public"
  38753. deprecated="not deprecated">
  38754. </field>
  38755. <field name="USTRING_TKN" type="int"
  38756. transient="false" volatile="false"
  38757. static="true" final="true" visibility="public"
  38758. deprecated="not deprecated">
  38759. </field>
  38760. <field name="BUFFER_TKN" type="int"
  38761. transient="false" volatile="false"
  38762. static="true" final="true" visibility="public"
  38763. deprecated="not deprecated">
  38764. </field>
  38765. <field name="VECTOR_TKN" type="int"
  38766. transient="false" volatile="false"
  38767. static="true" final="true" visibility="public"
  38768. deprecated="not deprecated">
  38769. </field>
  38770. <field name="MAP_TKN" type="int"
  38771. transient="false" volatile="false"
  38772. static="true" final="true" visibility="public"
  38773. deprecated="not deprecated">
  38774. </field>
  38775. <field name="LBRACE_TKN" type="int"
  38776. transient="false" volatile="false"
  38777. static="true" final="true" visibility="public"
  38778. deprecated="not deprecated">
  38779. </field>
  38780. <field name="RBRACE_TKN" type="int"
  38781. transient="false" volatile="false"
  38782. static="true" final="true" visibility="public"
  38783. deprecated="not deprecated">
  38784. </field>
  38785. <field name="LT_TKN" type="int"
  38786. transient="false" volatile="false"
  38787. static="true" final="true" visibility="public"
  38788. deprecated="not deprecated">
  38789. </field>
  38790. <field name="GT_TKN" type="int"
  38791. transient="false" volatile="false"
  38792. static="true" final="true" visibility="public"
  38793. deprecated="not deprecated">
  38794. </field>
  38795. <field name="SEMICOLON_TKN" type="int"
  38796. transient="false" volatile="false"
  38797. static="true" final="true" visibility="public"
  38798. deprecated="not deprecated">
  38799. </field>
  38800. <field name="COMMA_TKN" type="int"
  38801. transient="false" volatile="false"
  38802. static="true" final="true" visibility="public"
  38803. deprecated="not deprecated">
  38804. </field>
  38805. <field name="DOT_TKN" type="int"
  38806. transient="false" volatile="false"
  38807. static="true" final="true" visibility="public"
  38808. deprecated="not deprecated">
  38809. </field>
  38810. <field name="CSTRING_TKN" type="int"
  38811. transient="false" volatile="false"
  38812. static="true" final="true" visibility="public"
  38813. deprecated="not deprecated">
  38814. </field>
  38815. <field name="IDENT_TKN" type="int"
  38816. transient="false" volatile="false"
  38817. static="true" final="true" visibility="public"
  38818. deprecated="not deprecated">
  38819. </field>
  38820. <field name="DEFAULT" type="int"
  38821. transient="false" volatile="false"
  38822. static="true" final="true" visibility="public"
  38823. deprecated="not deprecated">
  38824. </field>
  38825. <field name="WithinOneLineComment" type="int"
  38826. transient="false" volatile="false"
  38827. static="true" final="true" visibility="public"
  38828. deprecated="not deprecated">
  38829. </field>
  38830. <field name="WithinMultiLineComment" type="int"
  38831. transient="false" volatile="false"
  38832. static="true" final="true" visibility="public"
  38833. deprecated="not deprecated">
  38834. </field>
  38835. <field name="tokenImage" type="java.lang.String[]"
  38836. transient="false" volatile="false"
  38837. static="true" final="true" visibility="public"
  38838. deprecated="not deprecated">
  38839. </field>
  38840. </interface>
  38841. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  38842. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  38843. <class name="RccTokenManager" extends="java.lang.Object"
  38844. abstract="false"
  38845. static="false" final="false" visibility="public"
  38846. deprecated="not deprecated">
  38847. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  38848. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  38849. static="false" final="false" visibility="public"
  38850. deprecated="not deprecated">
  38851. </constructor>
  38852. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  38853. static="false" final="false" visibility="public"
  38854. deprecated="not deprecated">
  38855. </constructor>
  38856. <method name="setDebugStream"
  38857. abstract="false" native="false" synchronized="false"
  38858. static="false" final="false" visibility="public"
  38859. deprecated="not deprecated">
  38860. <param name="ds" type="java.io.PrintStream"/>
  38861. </method>
  38862. <method name="ReInit"
  38863. abstract="false" native="false" synchronized="false"
  38864. static="false" final="false" visibility="public"
  38865. deprecated="not deprecated">
  38866. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  38867. </method>
  38868. <method name="ReInit"
  38869. abstract="false" native="false" synchronized="false"
  38870. static="false" final="false" visibility="public"
  38871. deprecated="not deprecated">
  38872. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  38873. <param name="lexState" type="int"/>
  38874. </method>
  38875. <method name="SwitchTo"
  38876. abstract="false" native="false" synchronized="false"
  38877. static="false" final="false" visibility="public"
  38878. deprecated="not deprecated">
  38879. <param name="lexState" type="int"/>
  38880. </method>
  38881. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38882. abstract="false" native="false" synchronized="false"
  38883. static="false" final="false" visibility="protected"
  38884. deprecated="not deprecated">
  38885. </method>
  38886. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  38887. abstract="false" native="false" synchronized="false"
  38888. static="false" final="false" visibility="public"
  38889. deprecated="not deprecated">
  38890. </method>
  38891. <field name="debugStream" type="java.io.PrintStream"
  38892. transient="false" volatile="false"
  38893. static="false" final="false" visibility="public"
  38894. deprecated="not deprecated">
  38895. </field>
  38896. <field name="jjstrLiteralImages" type="java.lang.String[]"
  38897. transient="false" volatile="false"
  38898. static="true" final="true" visibility="public"
  38899. deprecated="not deprecated">
  38900. </field>
  38901. <field name="lexStateNames" type="java.lang.String[]"
  38902. transient="false" volatile="false"
  38903. static="true" final="true" visibility="public"
  38904. deprecated="not deprecated">
  38905. </field>
  38906. <field name="jjnewLexState" type="int[]"
  38907. transient="false" volatile="false"
  38908. static="true" final="true" visibility="public"
  38909. deprecated="not deprecated">
  38910. </field>
  38911. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  38912. transient="false" volatile="false"
  38913. static="false" final="false" visibility="protected"
  38914. deprecated="not deprecated">
  38915. </field>
  38916. <field name="curChar" type="char"
  38917. transient="false" volatile="false"
  38918. static="false" final="false" visibility="protected"
  38919. deprecated="not deprecated">
  38920. </field>
  38921. </class>
  38922. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  38923. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  38924. <class name="SimpleCharStream" extends="java.lang.Object"
  38925. abstract="false"
  38926. static="false" final="false" visibility="public"
  38927. deprecated="not deprecated">
  38928. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  38929. static="false" final="false" visibility="public"
  38930. deprecated="not deprecated">
  38931. </constructor>
  38932. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  38933. static="false" final="false" visibility="public"
  38934. deprecated="not deprecated">
  38935. </constructor>
  38936. <constructor name="SimpleCharStream" type="java.io.Reader"
  38937. static="false" final="false" visibility="public"
  38938. deprecated="not deprecated">
  38939. </constructor>
  38940. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  38941. static="false" final="false" visibility="public"
  38942. deprecated="not deprecated">
  38943. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38944. </constructor>
  38945. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  38946. static="false" final="false" visibility="public"
  38947. deprecated="not deprecated">
  38948. </constructor>
  38949. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  38950. static="false" final="false" visibility="public"
  38951. deprecated="not deprecated">
  38952. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38953. </constructor>
  38954. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  38955. static="false" final="false" visibility="public"
  38956. deprecated="not deprecated">
  38957. </constructor>
  38958. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  38959. static="false" final="false" visibility="public"
  38960. deprecated="not deprecated">
  38961. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38962. </constructor>
  38963. <constructor name="SimpleCharStream" type="java.io.InputStream"
  38964. static="false" final="false" visibility="public"
  38965. deprecated="not deprecated">
  38966. </constructor>
  38967. <method name="setTabSize"
  38968. abstract="false" native="false" synchronized="false"
  38969. static="false" final="false" visibility="protected"
  38970. deprecated="not deprecated">
  38971. <param name="i" type="int"/>
  38972. </method>
  38973. <method name="getTabSize" return="int"
  38974. abstract="false" native="false" synchronized="false"
  38975. static="false" final="false" visibility="protected"
  38976. deprecated="not deprecated">
  38977. <param name="i" type="int"/>
  38978. </method>
  38979. <method name="ExpandBuff"
  38980. abstract="false" native="false" synchronized="false"
  38981. static="false" final="false" visibility="protected"
  38982. deprecated="not deprecated">
  38983. <param name="wrapAround" type="boolean"/>
  38984. </method>
  38985. <method name="FillBuff"
  38986. abstract="false" native="false" synchronized="false"
  38987. static="false" final="false" visibility="protected"
  38988. deprecated="not deprecated">
  38989. <exception name="IOException" type="java.io.IOException"/>
  38990. </method>
  38991. <method name="BeginToken" return="char"
  38992. abstract="false" native="false" synchronized="false"
  38993. static="false" final="false" visibility="public"
  38994. deprecated="not deprecated">
  38995. <exception name="IOException" type="java.io.IOException"/>
  38996. </method>
  38997. <method name="UpdateLineColumn"
  38998. abstract="false" native="false" synchronized="false"
  38999. static="false" final="false" visibility="protected"
  39000. deprecated="not deprecated">
  39001. <param name="c" type="char"/>
  39002. </method>
  39003. <method name="readChar" return="char"
  39004. abstract="false" native="false" synchronized="false"
  39005. static="false" final="false" visibility="public"
  39006. deprecated="not deprecated">
  39007. <exception name="IOException" type="java.io.IOException"/>
  39008. </method>
  39009. <method name="getEndColumn" return="int"
  39010. abstract="false" native="false" synchronized="false"
  39011. static="false" final="false" visibility="public"
  39012. deprecated="not deprecated">
  39013. </method>
  39014. <method name="getEndLine" return="int"
  39015. abstract="false" native="false" synchronized="false"
  39016. static="false" final="false" visibility="public"
  39017. deprecated="not deprecated">
  39018. </method>
  39019. <method name="getBeginColumn" return="int"
  39020. abstract="false" native="false" synchronized="false"
  39021. static="false" final="false" visibility="public"
  39022. deprecated="not deprecated">
  39023. </method>
  39024. <method name="getBeginLine" return="int"
  39025. abstract="false" native="false" synchronized="false"
  39026. static="false" final="false" visibility="public"
  39027. deprecated="not deprecated">
  39028. </method>
  39029. <method name="backup"
  39030. abstract="false" native="false" synchronized="false"
  39031. static="false" final="false" visibility="public"
  39032. deprecated="not deprecated">
  39033. <param name="amount" type="int"/>
  39034. </method>
  39035. <method name="ReInit"
  39036. abstract="false" native="false" synchronized="false"
  39037. static="false" final="false" visibility="public"
  39038. deprecated="not deprecated">
  39039. <param name="dstream" type="java.io.Reader"/>
  39040. <param name="startline" type="int"/>
  39041. <param name="startcolumn" type="int"/>
  39042. <param name="buffersize" type="int"/>
  39043. </method>
  39044. <method name="ReInit"
  39045. abstract="false" native="false" synchronized="false"
  39046. static="false" final="false" visibility="public"
  39047. deprecated="not deprecated">
  39048. <param name="dstream" type="java.io.Reader"/>
  39049. <param name="startline" type="int"/>
  39050. <param name="startcolumn" type="int"/>
  39051. </method>
  39052. <method name="ReInit"
  39053. abstract="false" native="false" synchronized="false"
  39054. static="false" final="false" visibility="public"
  39055. deprecated="not deprecated">
  39056. <param name="dstream" type="java.io.Reader"/>
  39057. </method>
  39058. <method name="ReInit"
  39059. abstract="false" native="false" synchronized="false"
  39060. static="false" final="false" visibility="public"
  39061. deprecated="not deprecated">
  39062. <param name="dstream" type="java.io.InputStream"/>
  39063. <param name="encoding" type="java.lang.String"/>
  39064. <param name="startline" type="int"/>
  39065. <param name="startcolumn" type="int"/>
  39066. <param name="buffersize" type="int"/>
  39067. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39068. </method>
  39069. <method name="ReInit"
  39070. abstract="false" native="false" synchronized="false"
  39071. static="false" final="false" visibility="public"
  39072. deprecated="not deprecated">
  39073. <param name="dstream" type="java.io.InputStream"/>
  39074. <param name="startline" type="int"/>
  39075. <param name="startcolumn" type="int"/>
  39076. <param name="buffersize" type="int"/>
  39077. </method>
  39078. <method name="ReInit"
  39079. abstract="false" native="false" synchronized="false"
  39080. static="false" final="false" visibility="public"
  39081. deprecated="not deprecated">
  39082. <param name="dstream" type="java.io.InputStream"/>
  39083. <param name="encoding" type="java.lang.String"/>
  39084. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39085. </method>
  39086. <method name="ReInit"
  39087. abstract="false" native="false" synchronized="false"
  39088. static="false" final="false" visibility="public"
  39089. deprecated="not deprecated">
  39090. <param name="dstream" type="java.io.InputStream"/>
  39091. </method>
  39092. <method name="ReInit"
  39093. abstract="false" native="false" synchronized="false"
  39094. static="false" final="false" visibility="public"
  39095. deprecated="not deprecated">
  39096. <param name="dstream" type="java.io.InputStream"/>
  39097. <param name="encoding" type="java.lang.String"/>
  39098. <param name="startline" type="int"/>
  39099. <param name="startcolumn" type="int"/>
  39100. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  39101. </method>
  39102. <method name="ReInit"
  39103. abstract="false" native="false" synchronized="false"
  39104. static="false" final="false" visibility="public"
  39105. deprecated="not deprecated">
  39106. <param name="dstream" type="java.io.InputStream"/>
  39107. <param name="startline" type="int"/>
  39108. <param name="startcolumn" type="int"/>
  39109. </method>
  39110. <method name="GetImage" return="java.lang.String"
  39111. abstract="false" native="false" synchronized="false"
  39112. static="false" final="false" visibility="public"
  39113. deprecated="not deprecated">
  39114. </method>
  39115. <method name="GetSuffix" return="char[]"
  39116. abstract="false" native="false" synchronized="false"
  39117. static="false" final="false" visibility="public"
  39118. deprecated="not deprecated">
  39119. <param name="len" type="int"/>
  39120. </method>
  39121. <method name="Done"
  39122. abstract="false" native="false" synchronized="false"
  39123. static="false" final="false" visibility="public"
  39124. deprecated="not deprecated">
  39125. </method>
  39126. <method name="adjustBeginLineColumn"
  39127. abstract="false" native="false" synchronized="false"
  39128. static="false" final="false" visibility="public"
  39129. deprecated="not deprecated">
  39130. <param name="newLine" type="int"/>
  39131. <param name="newCol" type="int"/>
  39132. <doc>
  39133. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  39134. </doc>
  39135. </method>
  39136. <field name="staticFlag" type="boolean"
  39137. transient="false" volatile="false"
  39138. static="true" final="true" visibility="public"
  39139. deprecated="not deprecated">
  39140. </field>
  39141. <field name="bufpos" type="int"
  39142. transient="false" volatile="false"
  39143. static="false" final="false" visibility="public"
  39144. deprecated="not deprecated">
  39145. </field>
  39146. <field name="bufline" type="int[]"
  39147. transient="false" volatile="false"
  39148. static="false" final="false" visibility="protected"
  39149. deprecated="not deprecated">
  39150. </field>
  39151. <field name="bufcolumn" type="int[]"
  39152. transient="false" volatile="false"
  39153. static="false" final="false" visibility="protected"
  39154. deprecated="not deprecated">
  39155. </field>
  39156. <field name="column" type="int"
  39157. transient="false" volatile="false"
  39158. static="false" final="false" visibility="protected"
  39159. deprecated="not deprecated">
  39160. </field>
  39161. <field name="line" type="int"
  39162. transient="false" volatile="false"
  39163. static="false" final="false" visibility="protected"
  39164. deprecated="not deprecated">
  39165. </field>
  39166. <field name="prevCharIsCR" type="boolean"
  39167. transient="false" volatile="false"
  39168. static="false" final="false" visibility="protected"
  39169. deprecated="not deprecated">
  39170. </field>
  39171. <field name="prevCharIsLF" type="boolean"
  39172. transient="false" volatile="false"
  39173. static="false" final="false" visibility="protected"
  39174. deprecated="not deprecated">
  39175. </field>
  39176. <field name="inputStream" type="java.io.Reader"
  39177. transient="false" volatile="false"
  39178. static="false" final="false" visibility="protected"
  39179. deprecated="not deprecated">
  39180. </field>
  39181. <field name="buffer" type="char[]"
  39182. transient="false" volatile="false"
  39183. static="false" final="false" visibility="protected"
  39184. deprecated="not deprecated">
  39185. </field>
  39186. <field name="maxNextCharInd" type="int"
  39187. transient="false" volatile="false"
  39188. static="false" final="false" visibility="protected"
  39189. deprecated="not deprecated">
  39190. </field>
  39191. <field name="inBuf" type="int"
  39192. transient="false" volatile="false"
  39193. static="false" final="false" visibility="protected"
  39194. deprecated="not deprecated">
  39195. </field>
  39196. <field name="tabSize" type="int"
  39197. transient="false" volatile="false"
  39198. static="false" final="false" visibility="protected"
  39199. deprecated="not deprecated">
  39200. </field>
  39201. <doc>
  39202. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  39203. contain only ASCII characters (without unicode processing).]]>
  39204. </doc>
  39205. </class>
  39206. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  39207. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  39208. <class name="Token" extends="java.lang.Object"
  39209. abstract="false"
  39210. static="false" final="false" visibility="public"
  39211. deprecated="not deprecated">
  39212. <constructor name="Token"
  39213. static="false" final="false" visibility="public"
  39214. deprecated="not deprecated">
  39215. </constructor>
  39216. <method name="toString" return="java.lang.String"
  39217. abstract="false" native="false" synchronized="false"
  39218. static="false" final="false" visibility="public"
  39219. deprecated="not deprecated">
  39220. <doc>
  39221. <![CDATA[Returns the image.]]>
  39222. </doc>
  39223. </method>
  39224. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  39225. abstract="false" native="false" synchronized="false"
  39226. static="true" final="true" visibility="public"
  39227. deprecated="not deprecated">
  39228. <param name="ofKind" type="int"/>
  39229. <doc>
  39230. <![CDATA[Returns a new Token object, by default. However, if you want, you
  39231. can create and return subclass objects based on the value of ofKind.
  39232. Simply add the cases to the switch for all those special cases.
  39233. For example, if you have a subclass of Token called IDToken that
  39234. you want to create if ofKind is ID, simlpy add something like :
  39235. case MyParserConstants.ID : return new IDToken();
  39236. to the following switch statement. Then you can cast matchedToken
  39237. variable to the appropriate type and use it in your lexical actions.]]>
  39238. </doc>
  39239. </method>
  39240. <field name="kind" type="int"
  39241. transient="false" volatile="false"
  39242. static="false" final="false" visibility="public"
  39243. deprecated="not deprecated">
  39244. <doc>
  39245. <![CDATA[An integer that describes the kind of this token. This numbering
  39246. system is determined by JavaCCParser, and a table of these numbers is
  39247. stored in the file ...Constants.java.]]>
  39248. </doc>
  39249. </field>
  39250. <field name="beginLine" type="int"
  39251. transient="false" volatile="false"
  39252. static="false" final="false" visibility="public"
  39253. deprecated="not deprecated">
  39254. <doc>
  39255. <![CDATA[beginLine and beginColumn describe the position of the first character
  39256. of this token; endLine and endColumn describe the position of the
  39257. last character of this token.]]>
  39258. </doc>
  39259. </field>
  39260. <field name="beginColumn" type="int"
  39261. transient="false" volatile="false"
  39262. static="false" final="false" visibility="public"
  39263. deprecated="not deprecated">
  39264. <doc>
  39265. <![CDATA[beginLine and beginColumn describe the position of the first character
  39266. of this token; endLine and endColumn describe the position of the
  39267. last character of this token.]]>
  39268. </doc>
  39269. </field>
  39270. <field name="endLine" type="int"
  39271. transient="false" volatile="false"
  39272. static="false" final="false" visibility="public"
  39273. deprecated="not deprecated">
  39274. <doc>
  39275. <![CDATA[beginLine and beginColumn describe the position of the first character
  39276. of this token; endLine and endColumn describe the position of the
  39277. last character of this token.]]>
  39278. </doc>
  39279. </field>
  39280. <field name="endColumn" type="int"
  39281. transient="false" volatile="false"
  39282. static="false" final="false" visibility="public"
  39283. deprecated="not deprecated">
  39284. <doc>
  39285. <![CDATA[beginLine and beginColumn describe the position of the first character
  39286. of this token; endLine and endColumn describe the position of the
  39287. last character of this token.]]>
  39288. </doc>
  39289. </field>
  39290. <field name="image" type="java.lang.String"
  39291. transient="false" volatile="false"
  39292. static="false" final="false" visibility="public"
  39293. deprecated="not deprecated">
  39294. <doc>
  39295. <![CDATA[The string image of the token.]]>
  39296. </doc>
  39297. </field>
  39298. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  39299. transient="false" volatile="false"
  39300. static="false" final="false" visibility="public"
  39301. deprecated="not deprecated">
  39302. <doc>
  39303. <![CDATA[A reference to the next regular (non-special) token from the input
  39304. stream. If this is the last token from the input stream, or if the
  39305. token manager has not read tokens beyond this one, this field is
  39306. set to null. This is true only if this token is also a regular
  39307. token. Otherwise, see below for a description of the contents of
  39308. this field.]]>
  39309. </doc>
  39310. </field>
  39311. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  39312. transient="false" volatile="false"
  39313. static="false" final="false" visibility="public"
  39314. deprecated="not deprecated">
  39315. <doc>
  39316. <![CDATA[This field is used to access special tokens that occur prior to this
  39317. token, but after the immediately preceding regular (non-special) token.
  39318. If there are no such special tokens, this field is set to null.
  39319. When there are more than one such special token, this field refers
  39320. to the last of these special tokens, which in turn refers to the next
  39321. previous special token through its specialToken field, and so on
  39322. until the first special token (whose specialToken field is null).
  39323. The next fields of special tokens refer to other special tokens that
  39324. immediately follow it (without an intervening regular token). If there
  39325. is no such token, this field is null.]]>
  39326. </doc>
  39327. </field>
  39328. <doc>
  39329. <![CDATA[Describes the input token stream.]]>
  39330. </doc>
  39331. </class>
  39332. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  39333. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39334. <class name="TokenMgrError" extends="java.lang.Error"
  39335. abstract="false"
  39336. static="false" final="false" visibility="public"
  39337. deprecated="not deprecated">
  39338. <constructor name="TokenMgrError"
  39339. static="false" final="false" visibility="public"
  39340. deprecated="not deprecated">
  39341. </constructor>
  39342. <constructor name="TokenMgrError" type="java.lang.String, int"
  39343. static="false" final="false" visibility="public"
  39344. deprecated="not deprecated">
  39345. </constructor>
  39346. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  39347. static="false" final="false" visibility="public"
  39348. deprecated="not deprecated">
  39349. </constructor>
  39350. <method name="addEscapes" return="java.lang.String"
  39351. abstract="false" native="false" synchronized="false"
  39352. static="true" final="true" visibility="protected"
  39353. deprecated="not deprecated">
  39354. <param name="str" type="java.lang.String"/>
  39355. <doc>
  39356. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  39357. equivalents in the given string]]>
  39358. </doc>
  39359. </method>
  39360. <method name="LexicalError" return="java.lang.String"
  39361. abstract="false" native="false" synchronized="false"
  39362. static="true" final="false" visibility="protected"
  39363. deprecated="not deprecated">
  39364. <param name="EOFSeen" type="boolean"/>
  39365. <param name="lexState" type="int"/>
  39366. <param name="errorLine" type="int"/>
  39367. <param name="errorColumn" type="int"/>
  39368. <param name="errorAfter" type="java.lang.String"/>
  39369. <param name="curChar" type="char"/>
  39370. <doc>
  39371. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  39372. token manager to indicate a lexical error.
  39373. Parameters :
  39374. EOFSeen : indicates if EOF caused the lexicl error
  39375. curLexState : lexical state in which this error occured
  39376. errorLine : line number when the error occured
  39377. errorColumn : column number when the error occured
  39378. errorAfter : prefix that was seen before this error occured
  39379. curchar : the offending character
  39380. Note: You can customize the lexical error message by modifying this method.]]>
  39381. </doc>
  39382. </method>
  39383. <method name="getMessage" return="java.lang.String"
  39384. abstract="false" native="false" synchronized="false"
  39385. static="false" final="false" visibility="public"
  39386. deprecated="not deprecated">
  39387. <doc>
  39388. <![CDATA[You can also modify the body of this method to customize your error messages.
  39389. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  39390. of end-users concern, so you can return something like :
  39391. "Internal Error : Please file a bug report .... "
  39392. from this method for such cases in the release version of your parser.]]>
  39393. </doc>
  39394. </method>
  39395. </class>
  39396. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  39397. <doc>
  39398. <![CDATA[This package contains code generated by JavaCC from the
  39399. Hadoop record syntax file rcc.jj. For details about the
  39400. record file syntax please @see org.apache.hadoop.record.]]>
  39401. </doc>
  39402. </package>
  39403. <package name="org.apache.hadoop.record.meta">
  39404. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39405. <class name="FieldTypeInfo" extends="java.lang.Object"
  39406. abstract="false"
  39407. static="false" final="false" visibility="public"
  39408. deprecated="not deprecated">
  39409. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39410. abstract="false" native="false" synchronized="false"
  39411. static="false" final="false" visibility="public"
  39412. deprecated="not deprecated">
  39413. <doc>
  39414. <![CDATA[get the field's TypeID object]]>
  39415. </doc>
  39416. </method>
  39417. <method name="getFieldID" return="java.lang.String"
  39418. abstract="false" native="false" synchronized="false"
  39419. static="false" final="false" visibility="public"
  39420. deprecated="not deprecated">
  39421. <doc>
  39422. <![CDATA[get the field's id (name)]]>
  39423. </doc>
  39424. </method>
  39425. <method name="equals" return="boolean"
  39426. abstract="false" native="false" synchronized="false"
  39427. static="false" final="false" visibility="public"
  39428. deprecated="not deprecated">
  39429. <param name="o" type="java.lang.Object"/>
  39430. <doc>
  39431. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  39432. </doc>
  39433. </method>
  39434. <method name="hashCode" return="int"
  39435. abstract="false" native="false" synchronized="false"
  39436. static="false" final="false" visibility="public"
  39437. deprecated="not deprecated">
  39438. <doc>
  39439. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39440. be used as a hashmap key]]>
  39441. </doc>
  39442. </method>
  39443. <method name="equals" return="boolean"
  39444. abstract="false" native="false" synchronized="false"
  39445. static="false" final="false" visibility="public"
  39446. deprecated="not deprecated">
  39447. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  39448. </method>
  39449. <doc>
  39450. <![CDATA[Represents a type information for a field, which is made up of its
  39451. ID (name) and its type (a TypeID object).]]>
  39452. </doc>
  39453. </class>
  39454. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  39455. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  39456. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39457. abstract="false"
  39458. static="false" final="false" visibility="public"
  39459. deprecated="not deprecated">
  39460. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  39461. static="false" final="false" visibility="public"
  39462. deprecated="not deprecated">
  39463. </constructor>
  39464. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39465. abstract="false" native="false" synchronized="false"
  39466. static="false" final="false" visibility="public"
  39467. deprecated="not deprecated">
  39468. <doc>
  39469. <![CDATA[get the TypeID of the map's key element]]>
  39470. </doc>
  39471. </method>
  39472. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39473. abstract="false" native="false" synchronized="false"
  39474. static="false" final="false" visibility="public"
  39475. deprecated="not deprecated">
  39476. <doc>
  39477. <![CDATA[get the TypeID of the map's value element]]>
  39478. </doc>
  39479. </method>
  39480. <method name="equals" return="boolean"
  39481. abstract="false" native="false" synchronized="false"
  39482. static="false" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. <param name="o" type="java.lang.Object"/>
  39485. <doc>
  39486. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  39487. same type]]>
  39488. </doc>
  39489. </method>
  39490. <method name="hashCode" return="int"
  39491. abstract="false" native="false" synchronized="false"
  39492. static="false" final="false" visibility="public"
  39493. deprecated="not deprecated">
  39494. <doc>
  39495. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39496. be used as a hashmap key]]>
  39497. </doc>
  39498. </method>
  39499. <doc>
  39500. <![CDATA[Represents typeID for a Map]]>
  39501. </doc>
  39502. </class>
  39503. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  39504. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39505. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  39506. abstract="false"
  39507. static="false" final="false" visibility="public"
  39508. deprecated="not deprecated">
  39509. <constructor name="RecordTypeInfo"
  39510. static="false" final="false" visibility="public"
  39511. deprecated="not deprecated">
  39512. <doc>
  39513. <![CDATA[Create an empty RecordTypeInfo object.]]>
  39514. </doc>
  39515. </constructor>
  39516. <constructor name="RecordTypeInfo" type="java.lang.String"
  39517. static="false" final="false" visibility="public"
  39518. deprecated="not deprecated">
  39519. <doc>
  39520. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  39521. @param name Name of the record]]>
  39522. </doc>
  39523. </constructor>
  39524. <method name="getName" return="java.lang.String"
  39525. abstract="false" native="false" synchronized="false"
  39526. static="false" final="false" visibility="public"
  39527. deprecated="not deprecated">
  39528. <doc>
  39529. <![CDATA[return the name of the record]]>
  39530. </doc>
  39531. </method>
  39532. <method name="setName"
  39533. abstract="false" native="false" synchronized="false"
  39534. static="false" final="false" visibility="public"
  39535. deprecated="not deprecated">
  39536. <param name="name" type="java.lang.String"/>
  39537. <doc>
  39538. <![CDATA[set the name of the record]]>
  39539. </doc>
  39540. </method>
  39541. <method name="addField"
  39542. abstract="false" native="false" synchronized="false"
  39543. static="false" final="false" visibility="public"
  39544. deprecated="not deprecated">
  39545. <param name="fieldName" type="java.lang.String"/>
  39546. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  39547. <doc>
  39548. <![CDATA[Add a field.
  39549. @param fieldName Name of the field
  39550. @param tid Type ID of the field]]>
  39551. </doc>
  39552. </method>
  39553. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  39554. abstract="false" native="false" synchronized="false"
  39555. static="false" final="false" visibility="public"
  39556. deprecated="not deprecated">
  39557. <doc>
  39558. <![CDATA[Return a collection of field type infos]]>
  39559. </doc>
  39560. </method>
  39561. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  39562. abstract="false" native="false" synchronized="false"
  39563. static="false" final="false" visibility="public"
  39564. deprecated="not deprecated">
  39565. <param name="name" type="java.lang.String"/>
  39566. <doc>
  39567. <![CDATA[Return the type info of a nested record. We only consider nesting
  39568. to one level.
  39569. @param name Name of the nested record]]>
  39570. </doc>
  39571. </method>
  39572. <method name="serialize"
  39573. abstract="false" native="false" synchronized="false"
  39574. static="false" final="false" visibility="public"
  39575. deprecated="not deprecated">
  39576. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  39577. <param name="tag" type="java.lang.String"/>
  39578. <exception name="IOException" type="java.io.IOException"/>
  39579. <doc>
  39580. <![CDATA[Serialize the type information for a record]]>
  39581. </doc>
  39582. </method>
  39583. <method name="deserialize"
  39584. abstract="false" native="false" synchronized="false"
  39585. static="false" final="false" visibility="public"
  39586. deprecated="not deprecated">
  39587. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39588. <param name="tag" type="java.lang.String"/>
  39589. <exception name="IOException" type="java.io.IOException"/>
  39590. <doc>
  39591. <![CDATA[Deserialize the type information for a record]]>
  39592. </doc>
  39593. </method>
  39594. <method name="compareTo" return="int"
  39595. abstract="false" native="false" synchronized="false"
  39596. static="false" final="false" visibility="public"
  39597. deprecated="not deprecated">
  39598. <param name="peer_" type="java.lang.Object"/>
  39599. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  39600. <doc>
  39601. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  39602. for anything besides de/serializing.
  39603. So we always throw an exception.
  39604. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  39605. </doc>
  39606. </method>
  39607. <doc>
  39608. <![CDATA[A record's Type Information object which can read/write itself.
  39609. Type information for a record comprises metadata about the record,
  39610. as well as a collection of type information for each field in the record.]]>
  39611. </doc>
  39612. </class>
  39613. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  39614. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  39615. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39616. abstract="false"
  39617. static="false" final="false" visibility="public"
  39618. deprecated="not deprecated">
  39619. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  39620. static="false" final="false" visibility="public"
  39621. deprecated="not deprecated">
  39622. <doc>
  39623. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  39624. </doc>
  39625. </constructor>
  39626. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  39627. abstract="false" native="false" synchronized="false"
  39628. static="false" final="false" visibility="public"
  39629. deprecated="not deprecated">
  39630. </method>
  39631. <doc>
  39632. <![CDATA[Represents typeID for a struct]]>
  39633. </doc>
  39634. </class>
  39635. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  39636. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  39637. <class name="TypeID" extends="java.lang.Object"
  39638. abstract="false"
  39639. static="false" final="false" visibility="public"
  39640. deprecated="not deprecated">
  39641. <method name="getTypeVal" return="byte"
  39642. abstract="false" native="false" synchronized="false"
  39643. static="false" final="false" visibility="public"
  39644. deprecated="not deprecated">
  39645. <doc>
  39646. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  39647. </doc>
  39648. </method>
  39649. <method name="equals" return="boolean"
  39650. abstract="false" native="false" synchronized="false"
  39651. static="false" final="false" visibility="public"
  39652. deprecated="not deprecated">
  39653. <param name="o" type="java.lang.Object"/>
  39654. <doc>
  39655. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  39656. </doc>
  39657. </method>
  39658. <method name="hashCode" return="int"
  39659. abstract="false" native="false" synchronized="false"
  39660. static="false" final="false" visibility="public"
  39661. deprecated="not deprecated">
  39662. <doc>
  39663. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39664. be used as a hashmap key]]>
  39665. </doc>
  39666. </method>
  39667. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39668. transient="false" volatile="false"
  39669. static="true" final="true" visibility="public"
  39670. deprecated="not deprecated">
  39671. <doc>
  39672. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  39673. </doc>
  39674. </field>
  39675. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39676. transient="false" volatile="false"
  39677. static="true" final="true" visibility="public"
  39678. deprecated="not deprecated">
  39679. </field>
  39680. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39681. transient="false" volatile="false"
  39682. static="true" final="true" visibility="public"
  39683. deprecated="not deprecated">
  39684. </field>
  39685. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39686. transient="false" volatile="false"
  39687. static="true" final="true" visibility="public"
  39688. deprecated="not deprecated">
  39689. </field>
  39690. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39691. transient="false" volatile="false"
  39692. static="true" final="true" visibility="public"
  39693. deprecated="not deprecated">
  39694. </field>
  39695. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39696. transient="false" volatile="false"
  39697. static="true" final="true" visibility="public"
  39698. deprecated="not deprecated">
  39699. </field>
  39700. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39701. transient="false" volatile="false"
  39702. static="true" final="true" visibility="public"
  39703. deprecated="not deprecated">
  39704. </field>
  39705. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39706. transient="false" volatile="false"
  39707. static="true" final="true" visibility="public"
  39708. deprecated="not deprecated">
  39709. </field>
  39710. <field name="typeVal" type="byte"
  39711. transient="false" volatile="false"
  39712. static="false" final="false" visibility="protected"
  39713. deprecated="not deprecated">
  39714. </field>
  39715. <doc>
  39716. <![CDATA[Represents typeID for basic types.]]>
  39717. </doc>
  39718. </class>
  39719. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  39720. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39721. <class name="TypeID.RIOType" extends="java.lang.Object"
  39722. abstract="false"
  39723. static="true" final="true" visibility="public"
  39724. deprecated="not deprecated">
  39725. <constructor name="TypeID.RIOType"
  39726. static="false" final="false" visibility="public"
  39727. deprecated="not deprecated">
  39728. </constructor>
  39729. <field name="BOOL" type="byte"
  39730. transient="false" volatile="false"
  39731. static="true" final="true" visibility="public"
  39732. deprecated="not deprecated">
  39733. </field>
  39734. <field name="BUFFER" type="byte"
  39735. transient="false" volatile="false"
  39736. static="true" final="true" visibility="public"
  39737. deprecated="not deprecated">
  39738. </field>
  39739. <field name="BYTE" type="byte"
  39740. transient="false" volatile="false"
  39741. static="true" final="true" visibility="public"
  39742. deprecated="not deprecated">
  39743. </field>
  39744. <field name="DOUBLE" type="byte"
  39745. transient="false" volatile="false"
  39746. static="true" final="true" visibility="public"
  39747. deprecated="not deprecated">
  39748. </field>
  39749. <field name="FLOAT" type="byte"
  39750. transient="false" volatile="false"
  39751. static="true" final="true" visibility="public"
  39752. deprecated="not deprecated">
  39753. </field>
  39754. <field name="INT" type="byte"
  39755. transient="false" volatile="false"
  39756. static="true" final="true" visibility="public"
  39757. deprecated="not deprecated">
  39758. </field>
  39759. <field name="LONG" type="byte"
  39760. transient="false" volatile="false"
  39761. static="true" final="true" visibility="public"
  39762. deprecated="not deprecated">
  39763. </field>
  39764. <field name="MAP" type="byte"
  39765. transient="false" volatile="false"
  39766. static="true" final="true" visibility="public"
  39767. deprecated="not deprecated">
  39768. </field>
  39769. <field name="STRING" type="byte"
  39770. transient="false" volatile="false"
  39771. static="true" final="true" visibility="public"
  39772. deprecated="not deprecated">
  39773. </field>
  39774. <field name="STRUCT" type="byte"
  39775. transient="false" volatile="false"
  39776. static="true" final="true" visibility="public"
  39777. deprecated="not deprecated">
  39778. </field>
  39779. <field name="VECTOR" type="byte"
  39780. transient="false" volatile="false"
  39781. static="true" final="true" visibility="public"
  39782. deprecated="not deprecated">
  39783. </field>
  39784. <doc>
  39785. <![CDATA[constants representing the IDL types we support]]>
  39786. </doc>
  39787. </class>
  39788. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  39789. <!-- start class org.apache.hadoop.record.meta.Utils -->
  39790. <class name="Utils" extends="java.lang.Object"
  39791. abstract="false"
  39792. static="false" final="false" visibility="public"
  39793. deprecated="not deprecated">
  39794. <method name="skip"
  39795. abstract="false" native="false" synchronized="false"
  39796. static="true" final="false" visibility="public"
  39797. deprecated="not deprecated">
  39798. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  39799. <param name="tag" type="java.lang.String"/>
  39800. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  39801. <exception name="IOException" type="java.io.IOException"/>
  39802. <doc>
  39803. <![CDATA[read/skip bytes from stream based on a type]]>
  39804. </doc>
  39805. </method>
  39806. <doc>
  39807. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  39808. </doc>
  39809. </class>
  39810. <!-- end class org.apache.hadoop.record.meta.Utils -->
  39811. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  39812. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  39813. abstract="false"
  39814. static="false" final="false" visibility="public"
  39815. deprecated="not deprecated">
  39816. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  39817. static="false" final="false" visibility="public"
  39818. deprecated="not deprecated">
  39819. </constructor>
  39820. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  39821. abstract="false" native="false" synchronized="false"
  39822. static="false" final="false" visibility="public"
  39823. deprecated="not deprecated">
  39824. </method>
  39825. <method name="equals" return="boolean"
  39826. abstract="false" native="false" synchronized="false"
  39827. static="false" final="false" visibility="public"
  39828. deprecated="not deprecated">
  39829. <param name="o" type="java.lang.Object"/>
  39830. <doc>
  39831. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  39832. same type]]>
  39833. </doc>
  39834. </method>
  39835. <method name="hashCode" return="int"
  39836. abstract="false" native="false" synchronized="false"
  39837. static="false" final="false" visibility="public"
  39838. deprecated="not deprecated">
  39839. <doc>
  39840. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  39841. be used as a hashmap key]]>
  39842. </doc>
  39843. </method>
  39844. <doc>
  39845. <![CDATA[Represents typeID for vector.]]>
  39846. </doc>
  39847. </class>
  39848. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  39849. </package>
  39850. <package name="org.apache.hadoop.security">
  39851. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  39852. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  39853. abstract="false"
  39854. static="false" final="false" visibility="public"
  39855. deprecated="not deprecated">
  39856. <constructor name="UnixUserGroupInformation"
  39857. static="false" final="false" visibility="public"
  39858. deprecated="not deprecated">
  39859. <doc>
  39860. <![CDATA[Default constructor]]>
  39861. </doc>
  39862. </constructor>
  39863. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  39864. static="false" final="false" visibility="public"
  39865. deprecated="not deprecated">
  39866. <doc>
  39867. <![CDATA[Constructor with parameters user name and its group names.
  39868. The first entry in the groups list is the default group.
  39869. @param userName a user's name
  39870. @param groupNames groups list, first of which is the default group
  39871. @exception IllegalArgumentException if any argument is null]]>
  39872. </doc>
  39873. </constructor>
  39874. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  39875. static="false" final="false" visibility="public"
  39876. deprecated="not deprecated">
  39877. <doc>
  39878. <![CDATA[Constructor with parameter user/group names
  39879. @param ugi an array containing user/group names, the first
  39880. element of which is the user name, the second of
  39881. which is the default group name.
  39882. @exception IllegalArgumentException if the array size is less than 2
  39883. or any element is null.]]>
  39884. </doc>
  39885. </constructor>
  39886. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  39887. abstract="false" native="false" synchronized="false"
  39888. static="true" final="false" visibility="public"
  39889. deprecated="not deprecated">
  39890. <param name="ugi" type="java.lang.String[]"/>
  39891. <doc>
  39892. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  39893. </doc>
  39894. </method>
  39895. <method name="getGroupNames" return="java.lang.String[]"
  39896. abstract="false" native="false" synchronized="false"
  39897. static="false" final="false" visibility="public"
  39898. deprecated="not deprecated">
  39899. <doc>
  39900. <![CDATA[Return an array of group names]]>
  39901. </doc>
  39902. </method>
  39903. <method name="getUserName" return="java.lang.String"
  39904. abstract="false" native="false" synchronized="false"
  39905. static="false" final="false" visibility="public"
  39906. deprecated="not deprecated">
  39907. <doc>
  39908. <![CDATA[Return the user's name]]>
  39909. </doc>
  39910. </method>
  39911. <method name="readFields"
  39912. abstract="false" native="false" synchronized="false"
  39913. static="false" final="false" visibility="public"
  39914. deprecated="not deprecated">
  39915. <param name="in" type="java.io.DataInput"/>
  39916. <exception name="IOException" type="java.io.IOException"/>
  39917. <doc>
  39918. <![CDATA[Deserialize this object
  39919. First check if this is a UGI in the string format.
  39920. If no, throw an IOException; otherwise
  39921. set this object's fields by reading them from the given data input
  39922. @param in input stream
  39923. @exception IOException is thrown if encounter any error when reading]]>
  39924. </doc>
  39925. </method>
  39926. <method name="write"
  39927. abstract="false" native="false" synchronized="false"
  39928. static="false" final="false" visibility="public"
  39929. deprecated="not deprecated">
  39930. <param name="out" type="java.io.DataOutput"/>
  39931. <exception name="IOException" type="java.io.IOException"/>
  39932. <doc>
  39933. <![CDATA[Serialize this object
  39934. First write a string marking that this is a UGI in the string format,
  39935. then write this object's serialized form to the given data output
  39936. @param out output stream
  39937. @exception IOException if encounter any error during writing]]>
  39938. </doc>
  39939. </method>
  39940. <method name="saveToConf"
  39941. abstract="false" native="false" synchronized="false"
  39942. static="true" final="false" visibility="public"
  39943. deprecated="not deprecated">
  39944. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39945. <param name="attr" type="java.lang.String"/>
  39946. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  39947. <doc>
  39948. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  39949. <code>conf</code> as a property <code>attr</code>
  39950. The String starts with the user name followed by the default group names,
  39951. and other group names.
  39952. @param conf configuration
  39953. @param attr property name
  39954. @param ugi a UnixUserGroupInformation]]>
  39955. </doc>
  39956. </method>
  39957. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  39958. abstract="false" native="false" synchronized="false"
  39959. static="true" final="false" visibility="public"
  39960. deprecated="not deprecated">
  39961. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39962. <param name="attr" type="java.lang.String"/>
  39963. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  39964. <doc>
  39965. <![CDATA[Read a UGI from the given <code>conf</code>
  39966. The object is expected to store with the property name <code>attr</code>
  39967. as a comma separated string that starts
  39968. with the user name followed by group names.
  39969. If the property name is not defined, return null.
  39970. It's assumed that there is only one UGI per user. If this user already
  39971. has a UGI in the ugi map, return the ugi in the map.
  39972. Otherwise, construct a UGI from the configuration, store it in the
  39973. ugi map and return it.
  39974. @param conf configuration
  39975. @param attr property name
  39976. @return a UnixUGI
  39977. @throws LoginException if the stored string is ill-formatted.]]>
  39978. </doc>
  39979. </method>
  39980. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  39981. abstract="false" native="false" synchronized="false"
  39982. static="true" final="false" visibility="public"
  39983. deprecated="not deprecated">
  39984. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  39985. <doc>
  39986. <![CDATA[Get current user's name and the names of all its groups from Unix.
  39987. It's assumed that there is only one UGI per user. If this user already
  39988. has a UGI in the ugi map, return the ugi in the map.
  39989. Otherwise get the current user's information from Unix, store it
  39990. in the map, and return it.]]>
  39991. </doc>
  39992. </method>
  39993. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  39994. abstract="false" native="false" synchronized="false"
  39995. static="true" final="false" visibility="public"
  39996. deprecated="not deprecated">
  39997. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  39998. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  39999. <doc>
  40000. <![CDATA[Equivalent to login(conf, false).]]>
  40001. </doc>
  40002. </method>
  40003. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  40004. abstract="false" native="false" synchronized="false"
  40005. static="true" final="false" visibility="public"
  40006. deprecated="not deprecated">
  40007. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40008. <param name="save" type="boolean"/>
  40009. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40010. <doc>
  40011. <![CDATA[Get a user's name & its group names from the given configuration;
  40012. If it is not defined in the configuration, get the current user's
  40013. information from Unix.
  40014. If the user has a UGI in the ugi map, return the one in
  40015. the UGI map.
  40016. @param conf either a job configuration or client's configuration
  40017. @param save saving it to conf?
  40018. @return UnixUserGroupInformation a user/group information
  40019. @exception LoginException if not able to get the user/group information]]>
  40020. </doc>
  40021. </method>
  40022. <method name="equals" return="boolean"
  40023. abstract="false" native="false" synchronized="false"
  40024. static="false" final="false" visibility="public"
  40025. deprecated="not deprecated">
  40026. <param name="other" type="java.lang.Object"/>
  40027. <doc>
  40028. <![CDATA[Decide if two UGIs are the same
  40029. @param other other object
  40030. @return true if they are the same; false otherwise.]]>
  40031. </doc>
  40032. </method>
  40033. <method name="hashCode" return="int"
  40034. abstract="false" native="false" synchronized="false"
  40035. static="false" final="false" visibility="public"
  40036. deprecated="not deprecated">
  40037. <doc>
  40038. <![CDATA[Returns a hash code for this UGI.
  40039. The hash code for a UGI is the hash code of its user name string.
  40040. @return a hash code value for this UGI.]]>
  40041. </doc>
  40042. </method>
  40043. <method name="toString" return="java.lang.String"
  40044. abstract="false" native="false" synchronized="false"
  40045. static="false" final="false" visibility="public"
  40046. deprecated="not deprecated">
  40047. <doc>
  40048. <![CDATA[Convert this object to a string
  40049. @return a comma separated string containing the user name and group names]]>
  40050. </doc>
  40051. </method>
  40052. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  40053. transient="false" volatile="false"
  40054. static="true" final="true" visibility="public"
  40055. deprecated="not deprecated">
  40056. </field>
  40057. <doc>
  40058. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  40059. </doc>
  40060. </class>
  40061. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  40062. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  40063. <class name="UserGroupInformation" extends="java.lang.Object"
  40064. abstract="true"
  40065. static="false" final="false" visibility="public"
  40066. deprecated="not deprecated">
  40067. <implements name="org.apache.hadoop.io.Writable"/>
  40068. <constructor name="UserGroupInformation"
  40069. static="false" final="false" visibility="public"
  40070. deprecated="not deprecated">
  40071. </constructor>
  40072. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  40073. abstract="false" native="false" synchronized="false"
  40074. static="true" final="false" visibility="public"
  40075. deprecated="not deprecated">
  40076. <doc>
  40077. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  40078. </doc>
  40079. </method>
  40080. <method name="setCurrentUGI"
  40081. abstract="false" native="false" synchronized="false"
  40082. static="true" final="false" visibility="public"
  40083. deprecated="not deprecated">
  40084. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  40085. <doc>
  40086. <![CDATA[Set the {@link UserGroupInformation} for the current thread]]>
  40087. </doc>
  40088. </method>
  40089. <method name="getUserName" return="java.lang.String"
  40090. abstract="true" native="false" synchronized="false"
  40091. static="false" final="false" visibility="public"
  40092. deprecated="not deprecated">
  40093. <doc>
  40094. <![CDATA[Get username
  40095. @return the user's name]]>
  40096. </doc>
  40097. </method>
  40098. <method name="getGroupNames" return="java.lang.String[]"
  40099. abstract="true" native="false" synchronized="false"
  40100. static="false" final="false" visibility="public"
  40101. deprecated="not deprecated">
  40102. <doc>
  40103. <![CDATA[Get the name of the groups that the user belong to
  40104. @return an array of group names]]>
  40105. </doc>
  40106. </method>
  40107. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  40108. abstract="false" native="false" synchronized="false"
  40109. static="true" final="false" visibility="public"
  40110. deprecated="not deprecated">
  40111. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40112. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  40113. <doc>
  40114. <![CDATA[Login and return a UserGroupInformation object.]]>
  40115. </doc>
  40116. </method>
  40117. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  40118. abstract="false" native="false" synchronized="false"
  40119. static="true" final="false" visibility="public"
  40120. deprecated="not deprecated">
  40121. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40122. <exception name="IOException" type="java.io.IOException"/>
  40123. <doc>
  40124. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  40125. </doc>
  40126. </method>
  40127. <field name="LOG" type="org.apache.commons.logging.Log"
  40128. transient="false" volatile="false"
  40129. static="true" final="true" visibility="public"
  40130. deprecated="not deprecated">
  40131. </field>
  40132. <doc>
  40133. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  40134. </doc>
  40135. </class>
  40136. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  40137. </package>
  40138. <package name="org.apache.hadoop.tools">
  40139. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  40140. <class name="Logalyzer" extends="java.lang.Object"
  40141. abstract="false"
  40142. static="false" final="false" visibility="public"
  40143. deprecated="not deprecated">
  40144. <constructor name="Logalyzer"
  40145. static="false" final="false" visibility="public"
  40146. deprecated="not deprecated">
  40147. </constructor>
  40148. <method name="doArchive"
  40149. abstract="false" native="false" synchronized="false"
  40150. static="false" final="false" visibility="public"
  40151. deprecated="not deprecated">
  40152. <param name="logListURI" type="java.lang.String"/>
  40153. <param name="archiveDirectory" type="java.lang.String"/>
  40154. <exception name="IOException" type="java.io.IOException"/>
  40155. <doc>
  40156. <![CDATA[doArchive: Workhorse function to archive log-files.
  40157. @param logListURI : The uri which will serve list of log-files to archive.
  40158. @param archiveDirectory : The directory to store archived logfiles.
  40159. @throws IOException]]>
  40160. </doc>
  40161. </method>
  40162. <method name="doAnalyze"
  40163. abstract="false" native="false" synchronized="false"
  40164. static="false" final="false" visibility="public"
  40165. deprecated="not deprecated">
  40166. <param name="inputFilesDirectory" type="java.lang.String"/>
  40167. <param name="outputDirectory" type="java.lang.String"/>
  40168. <param name="grepPattern" type="java.lang.String"/>
  40169. <param name="sortColumns" type="java.lang.String"/>
  40170. <param name="columnSeparator" type="java.lang.String"/>
  40171. <exception name="IOException" type="java.io.IOException"/>
  40172. <doc>
  40173. <![CDATA[doAnalyze:
  40174. @param inputFilesDirectory : Directory containing the files to be analyzed.
  40175. @param outputDirectory : Directory to store analysis (output).
  40176. @param grepPattern : Pattern to *grep* for.
  40177. @param sortColumns : Sort specification for output.
  40178. @param columnSeparator : Column separator.
  40179. @throws IOException]]>
  40180. </doc>
  40181. </method>
  40182. <method name="main"
  40183. abstract="false" native="false" synchronized="false"
  40184. static="true" final="false" visibility="public"
  40185. deprecated="not deprecated">
  40186. <param name="args" type="java.lang.String[]"/>
  40187. </method>
  40188. <doc>
  40189. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  40190. <p>
  40191. This tool supports archiving and anaylzing (sort/grep) of log-files.
  40192. It takes as input
  40193. a) Input uri which will serve uris of the logs to be archived.
  40194. b) Output directory (not mandatory).
  40195. b) Directory on dfs to archive the logs.
  40196. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  40197. Usage:
  40198. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  40199. <p>]]>
  40200. </doc>
  40201. </class>
  40202. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  40203. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  40204. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  40205. abstract="false"
  40206. static="true" final="false" visibility="public"
  40207. deprecated="not deprecated">
  40208. <implements name="org.apache.hadoop.conf.Configurable"/>
  40209. <constructor name="Logalyzer.LogComparator"
  40210. static="false" final="false" visibility="public"
  40211. deprecated="not deprecated">
  40212. </constructor>
  40213. <method name="setConf"
  40214. abstract="false" native="false" synchronized="false"
  40215. static="false" final="false" visibility="public"
  40216. deprecated="not deprecated">
  40217. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40218. </method>
  40219. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40220. abstract="false" native="false" synchronized="false"
  40221. static="false" final="false" visibility="public"
  40222. deprecated="not deprecated">
  40223. </method>
  40224. <method name="compare" return="int"
  40225. abstract="false" native="false" synchronized="false"
  40226. static="false" final="false" visibility="public"
  40227. deprecated="not deprecated">
  40228. <param name="b1" type="byte[]"/>
  40229. <param name="s1" type="int"/>
  40230. <param name="l1" type="int"/>
  40231. <param name="b2" type="byte[]"/>
  40232. <param name="s2" type="int"/>
  40233. <param name="l2" type="int"/>
  40234. </method>
  40235. <doc>
  40236. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  40237. </doc>
  40238. </class>
  40239. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  40240. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  40241. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  40242. abstract="false"
  40243. static="true" final="false" visibility="public"
  40244. deprecated="not deprecated">
  40245. <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;"/>
  40246. <constructor name="Logalyzer.LogRegexMapper"
  40247. static="false" final="false" visibility="public"
  40248. deprecated="not deprecated">
  40249. </constructor>
  40250. <method name="configure"
  40251. abstract="false" native="false" synchronized="false"
  40252. static="false" final="false" visibility="public"
  40253. deprecated="not deprecated">
  40254. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  40255. </method>
  40256. <method name="map"
  40257. abstract="false" native="false" synchronized="false"
  40258. static="false" final="false" visibility="public"
  40259. deprecated="not deprecated">
  40260. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  40261. <param name="value" type="org.apache.hadoop.io.Text"/>
  40262. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  40263. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  40264. <exception name="IOException" type="java.io.IOException"/>
  40265. </method>
  40266. <doc>
  40267. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  40268. </doc>
  40269. </class>
  40270. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  40271. </package>
  40272. <package name="org.apache.hadoop.util">
  40273. <!-- start class org.apache.hadoop.util.CopyFiles -->
  40274. <class name="CopyFiles" extends="java.lang.Object"
  40275. abstract="false"
  40276. static="false" final="false" visibility="public"
  40277. deprecated="not deprecated">
  40278. <implements name="org.apache.hadoop.util.Tool"/>
  40279. <constructor name="CopyFiles" type="org.apache.hadoop.conf.Configuration"
  40280. static="false" final="false" visibility="public"
  40281. deprecated="not deprecated">
  40282. </constructor>
  40283. <method name="setConf"
  40284. abstract="false" native="false" synchronized="false"
  40285. static="false" final="false" visibility="public"
  40286. deprecated="not deprecated">
  40287. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40288. </method>
  40289. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  40290. abstract="false" native="false" synchronized="false"
  40291. static="false" final="false" visibility="public"
  40292. deprecated="not deprecated">
  40293. </method>
  40294. <method name="copy"
  40295. abstract="false" native="false" synchronized="false"
  40296. static="true" final="false" visibility="public"
  40297. deprecated="not deprecated">
  40298. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  40299. <param name="srcPath" type="java.lang.String"/>
  40300. <param name="destPath" type="java.lang.String"/>
  40301. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  40302. <param name="srcAsList" type="boolean"/>
  40303. <param name="ignoreReadFailures" type="boolean"/>
  40304. <exception name="IOException" type="java.io.IOException"/>
  40305. </method>
  40306. <method name="run" return="int"
  40307. abstract="false" native="false" synchronized="false"
  40308. static="false" final="false" visibility="public"
  40309. deprecated="not deprecated">
  40310. <param name="args" type="java.lang.String[]"/>
  40311. <exception name="Exception" type="java.lang.Exception"/>
  40312. <doc>
  40313. <![CDATA[This is the main driver for recursively copying directories
  40314. across file systems. It takes at least two cmdline parameters. A source
  40315. URL and a destination URL. It then essentially does an "ls -lR" on the
  40316. source URL, and writes the output in a round-robin manner to all the map
  40317. input files. The mapper actually copies the files allotted to it. The
  40318. reduce is empty.]]>
  40319. </doc>
  40320. </method>
  40321. <method name="main"
  40322. abstract="false" native="false" synchronized="false"
  40323. static="true" final="false" visibility="public"
  40324. deprecated="not deprecated">
  40325. <param name="args" type="java.lang.String[]"/>
  40326. <exception name="Exception" type="java.lang.Exception"/>
  40327. </method>
  40328. <doc>
  40329. <![CDATA[A Map-reduce program to recursively copy directories between
  40330. different file-systems.]]>
  40331. </doc>
  40332. </class>
  40333. <!-- end class org.apache.hadoop.util.CopyFiles -->
  40334. <!-- start class org.apache.hadoop.util.CopyFiles.DuplicationException -->
  40335. <class name="CopyFiles.DuplicationException" extends="java.io.IOException"
  40336. abstract="false"
  40337. static="true" final="false" visibility="public"
  40338. deprecated="not deprecated">
  40339. <field name="ERROR_CODE" type="int"
  40340. transient="false" volatile="false"
  40341. static="true" final="true" visibility="public"
  40342. deprecated="not deprecated">
  40343. <doc>
  40344. <![CDATA[Error code for this exception]]>
  40345. </doc>
  40346. </field>
  40347. <doc>
  40348. <![CDATA[An exception class for duplicated source files.]]>
  40349. </doc>
  40350. </class>
  40351. <!-- end class org.apache.hadoop.util.CopyFiles.DuplicationException -->
  40352. <!-- start class org.apache.hadoop.util.Daemon -->
  40353. <class name="Daemon" extends="java.lang.Thread"
  40354. abstract="false"
  40355. static="false" final="false" visibility="public"
  40356. deprecated="not deprecated">
  40357. <constructor name="Daemon"
  40358. static="false" final="false" visibility="public"
  40359. deprecated="not deprecated">
  40360. <doc>
  40361. <![CDATA[Construct a daemon thread.]]>
  40362. </doc>
  40363. </constructor>
  40364. <constructor name="Daemon" type="java.lang.Runnable"
  40365. static="false" final="false" visibility="public"
  40366. deprecated="not deprecated">
  40367. <doc>
  40368. <![CDATA[Construct a daemon thread.]]>
  40369. </doc>
  40370. </constructor>
  40371. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  40372. static="false" final="false" visibility="public"
  40373. deprecated="not deprecated">
  40374. <doc>
  40375. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  40376. </doc>
  40377. </constructor>
  40378. <method name="getRunnable" return="java.lang.Runnable"
  40379. abstract="false" native="false" synchronized="false"
  40380. static="false" final="false" visibility="public"
  40381. deprecated="not deprecated">
  40382. </method>
  40383. <doc>
  40384. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  40385. </doc>
  40386. </class>
  40387. <!-- end class org.apache.hadoop.util.Daemon -->
  40388. <!-- start class org.apache.hadoop.util.DiskChecker -->
  40389. <class name="DiskChecker" extends="java.lang.Object"
  40390. abstract="false"
  40391. static="false" final="false" visibility="public"
  40392. deprecated="not deprecated">
  40393. <constructor name="DiskChecker"
  40394. static="false" final="false" visibility="public"
  40395. deprecated="not deprecated">
  40396. </constructor>
  40397. <method name="mkdirsWithExistsCheck" return="boolean"
  40398. abstract="false" native="false" synchronized="false"
  40399. static="true" final="false" visibility="public"
  40400. deprecated="not deprecated">
  40401. <param name="dir" type="java.io.File"/>
  40402. <doc>
  40403. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  40404. method provided in the Sun's java.io.File class in the following way:
  40405. While creating the non-existent parent directories, this method checks for
  40406. the existence of those directories if the mkdir fails at any point (since
  40407. that directory might have just been created by some other process).
  40408. If both mkdir() and the exists() check fails for any seemingly
  40409. non-existent directory, then we signal an error; Sun's mkdir would signal
  40410. an error (return false) if a directory it is attempting to create already
  40411. exists or the mkdir fails.
  40412. @param dir
  40413. @return true on success, false on failure]]>
  40414. </doc>
  40415. </method>
  40416. <method name="checkDir"
  40417. abstract="false" native="false" synchronized="false"
  40418. static="true" final="false" visibility="public"
  40419. deprecated="not deprecated">
  40420. <param name="dir" type="java.io.File"/>
  40421. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  40422. </method>
  40423. <doc>
  40424. <![CDATA[Class that provides utility functions for checking disk problem]]>
  40425. </doc>
  40426. </class>
  40427. <!-- end class org.apache.hadoop.util.DiskChecker -->
  40428. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40429. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  40430. abstract="false"
  40431. static="true" final="false" visibility="public"
  40432. deprecated="not deprecated">
  40433. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  40434. static="false" final="false" visibility="public"
  40435. deprecated="not deprecated">
  40436. </constructor>
  40437. </class>
  40438. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  40439. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40440. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  40441. abstract="false"
  40442. static="true" final="false" visibility="public"
  40443. deprecated="not deprecated">
  40444. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  40445. static="false" final="false" visibility="public"
  40446. deprecated="not deprecated">
  40447. </constructor>
  40448. </class>
  40449. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  40450. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  40451. <class name="GenericOptionsParser" extends="java.lang.Object"
  40452. abstract="false"
  40453. static="false" final="false" visibility="public"
  40454. deprecated="not deprecated">
  40455. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  40456. static="false" final="false" visibility="public"
  40457. deprecated="not deprecated">
  40458. <doc>
  40459. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  40460. arguments.
  40461. The array of string arguments other than the generic arguments can be
  40462. obtained by {@link #getRemainingArgs()}.
  40463. @param conf the <code>Configuration</code> to modify.
  40464. @param args command-line arguments.]]>
  40465. </doc>
  40466. </constructor>
  40467. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  40468. static="false" final="false" visibility="public"
  40469. deprecated="not deprecated">
  40470. <doc>
  40471. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  40472. as generic Hadoop options.
  40473. The resulting <code>CommandLine</code> object can be obtained by
  40474. {@link #getCommandLine()}.
  40475. @param conf the configuration to modify
  40476. @param options options built by the caller
  40477. @param args User-specified arguments]]>
  40478. </doc>
  40479. </constructor>
  40480. <method name="getRemainingArgs" return="java.lang.String[]"
  40481. abstract="false" native="false" synchronized="false"
  40482. static="false" final="false" visibility="public"
  40483. deprecated="not deprecated">
  40484. <doc>
  40485. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  40486. @return array of <code>String</code>s containing the un-parsed arguments.]]>
  40487. </doc>
  40488. </method>
  40489. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  40490. abstract="false" native="false" synchronized="false"
  40491. static="false" final="false" visibility="public"
  40492. deprecated="not deprecated">
  40493. <doc>
  40494. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  40495. to process the parsed arguments.
  40496. Note: If the object is created with
  40497. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  40498. object will only contain parsed generic options.
  40499. @return <code>CommandLine</code> representing list of arguments
  40500. parsed against Options descriptor.]]>
  40501. </doc>
  40502. </method>
  40503. <method name="printGenericCommandUsage"
  40504. abstract="false" native="false" synchronized="false"
  40505. static="true" final="false" visibility="public"
  40506. deprecated="not deprecated">
  40507. <param name="out" type="java.io.PrintStream"/>
  40508. <doc>
  40509. <![CDATA[Print the usage message for generic command-line options supported.
  40510. @param out stream to print the usage message to.]]>
  40511. </doc>
  40512. </method>
  40513. <doc>
  40514. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  40515. arguments generic to the Hadoop framework.
  40516. <code>GenericOptionsParser</code> recognizes several standarad command
  40517. line arguments, enabling applications to easily specify a namenode, a
  40518. jobtracker, additional configuration resources etc.
  40519. <h4 id="GenericOptions">Generic Options</h4>
  40520. <p>The supported generic options are:</p>
  40521. <p><blockquote><pre>
  40522. -conf &lt;configuration file&gt; specify a configuration file
  40523. -D &lt;property=value&gt; use value for given property
  40524. -fs &lt;local|namenode:port&gt; specify a namenode
  40525. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  40526. </pre></blockquote></p>
  40527. <p>The general command line syntax is:</p>
  40528. <p><tt><pre>
  40529. bin/hadoop command [genericOptions] [commandOptions]
  40530. </pre></tt></p>
  40531. <p>Generic command line arguments <strong>might</strong> modify
  40532. <code>Configuration </code> objects, given to constructors.</p>
  40533. <p>The functionality is implemented using Commons CLI.</p>
  40534. <p>Examples:</p>
  40535. <p><blockquote><pre>
  40536. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  40537. list /data directory in dfs with namenode darwin:8020
  40538. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  40539. list /data directory in dfs with namenode darwin:8020
  40540. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  40541. list /data directory in dfs with conf specified in hadoop-site.xml
  40542. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  40543. submit a job to job tracker darwin:50020
  40544. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  40545. submit a job to job tracker darwin:50020
  40546. $ bin/hadoop job -jt local -submit job.xml
  40547. submit a job to local runner
  40548. </pre></blockquote></p>
  40549. @see Tool
  40550. @see ToolRunner]]>
  40551. </doc>
  40552. </class>
  40553. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  40554. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  40555. <class name="GenericsUtil" extends="java.lang.Object"
  40556. abstract="false"
  40557. static="false" final="false" visibility="public"
  40558. deprecated="not deprecated">
  40559. <constructor name="GenericsUtil"
  40560. static="false" final="false" visibility="public"
  40561. deprecated="not deprecated">
  40562. </constructor>
  40563. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  40564. abstract="false" native="false" synchronized="false"
  40565. static="true" final="false" visibility="public"
  40566. deprecated="not deprecated">
  40567. <param name="t" type="T"/>
  40568. <doc>
  40569. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  40570. argument of type <code>T</code>.
  40571. @param <T> The type of the argument
  40572. @param t the object to get it class
  40573. @return <code>Class&lt;T&gt;</code>]]>
  40574. </doc>
  40575. </method>
  40576. <method name="toArray" return="T[]"
  40577. abstract="false" native="false" synchronized="false"
  40578. static="true" final="false" visibility="public"
  40579. deprecated="not deprecated">
  40580. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  40581. <param name="list" type="java.util.List&lt;T&gt;"/>
  40582. <doc>
  40583. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40584. <code>T[]</code>.
  40585. @param c the Class object of the items in the list
  40586. @param list the list to convert]]>
  40587. </doc>
  40588. </method>
  40589. <method name="toArray" return="T[]"
  40590. abstract="false" native="false" synchronized="false"
  40591. static="true" final="false" visibility="public"
  40592. deprecated="not deprecated">
  40593. <param name="list" type="java.util.List&lt;T&gt;"/>
  40594. <doc>
  40595. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  40596. <code>T[]</code>.
  40597. @param list the list to convert
  40598. @throws ArrayIndexOutOfBoundsException if the list is empty.
  40599. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  40600. </doc>
  40601. </method>
  40602. <doc>
  40603. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  40604. </doc>
  40605. </class>
  40606. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  40607. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  40608. <class name="HostsFileReader" extends="java.lang.Object"
  40609. abstract="false"
  40610. static="false" final="false" visibility="public"
  40611. deprecated="not deprecated">
  40612. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  40613. static="false" final="false" visibility="public"
  40614. deprecated="not deprecated">
  40615. <exception name="IOException" type="java.io.IOException"/>
  40616. </constructor>
  40617. <method name="refresh"
  40618. abstract="false" native="false" synchronized="false"
  40619. static="false" final="false" visibility="public"
  40620. deprecated="not deprecated">
  40621. <exception name="IOException" type="java.io.IOException"/>
  40622. </method>
  40623. <method name="getHosts" return="java.util.Set&lt;java.lang.String&gt;"
  40624. abstract="false" native="false" synchronized="false"
  40625. static="false" final="false" visibility="public"
  40626. deprecated="not deprecated">
  40627. </method>
  40628. <method name="getExcludedHosts" return="java.util.Set&lt;java.lang.String&gt;"
  40629. abstract="false" native="false" synchronized="false"
  40630. static="false" final="false" visibility="public"
  40631. deprecated="not deprecated">
  40632. </method>
  40633. </class>
  40634. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  40635. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  40636. <interface name="IndexedSortable" abstract="true"
  40637. static="false" final="false" visibility="public"
  40638. deprecated="not deprecated">
  40639. <method name="compare" return="int"
  40640. abstract="false" native="false" synchronized="false"
  40641. static="false" final="false" visibility="public"
  40642. deprecated="not deprecated">
  40643. <param name="i" type="int"/>
  40644. <param name="j" type="int"/>
  40645. <doc>
  40646. <![CDATA[Compare items at the given addresses consistent with the semantics of
  40647. {@link java.util.Comparable#compare}.]]>
  40648. </doc>
  40649. </method>
  40650. <method name="swap"
  40651. abstract="false" native="false" synchronized="false"
  40652. static="false" final="false" visibility="public"
  40653. deprecated="not deprecated">
  40654. <param name="i" type="int"/>
  40655. <param name="j" type="int"/>
  40656. <doc>
  40657. <![CDATA[Swap items at the given addresses.]]>
  40658. </doc>
  40659. </method>
  40660. <doc>
  40661. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  40662. algorithms.]]>
  40663. </doc>
  40664. </interface>
  40665. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  40666. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  40667. <interface name="IndexedSorter" abstract="true"
  40668. static="false" final="false" visibility="public"
  40669. deprecated="not deprecated">
  40670. <method name="sort"
  40671. abstract="false" native="false" synchronized="false"
  40672. static="false" final="false" visibility="public"
  40673. deprecated="not deprecated">
  40674. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  40675. <param name="l" type="int"/>
  40676. <param name="r" type="int"/>
  40677. <doc>
  40678. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  40679. range of logical indices. From the perspective of the sort algorithm,
  40680. each index between l (inclusive) and r (exclusive) is an addressable
  40681. entry.
  40682. @see IndexedSortable#compare
  40683. @see IndexedSortable#swap]]>
  40684. </doc>
  40685. </method>
  40686. <doc>
  40687. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  40688. A sort algorithm implementing this interface may only
  40689. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  40690. for a range of indices to effect a sort across that range.]]>
  40691. </doc>
  40692. </interface>
  40693. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  40694. <!-- start class org.apache.hadoop.util.MergeSort -->
  40695. <class name="MergeSort" extends="java.lang.Object"
  40696. abstract="false"
  40697. static="false" final="false" visibility="public"
  40698. deprecated="not deprecated">
  40699. <constructor name="MergeSort" type="java.util.Comparator&lt;org.apache.hadoop.io.IntWritable&gt;"
  40700. static="false" final="false" visibility="public"
  40701. deprecated="not deprecated">
  40702. </constructor>
  40703. <method name="mergeSort"
  40704. abstract="false" native="false" synchronized="false"
  40705. static="false" final="false" visibility="public"
  40706. deprecated="not deprecated">
  40707. <param name="src" type="int[]"/>
  40708. <param name="dest" type="int[]"/>
  40709. <param name="low" type="int"/>
  40710. <param name="high" type="int"/>
  40711. </method>
  40712. <doc>
  40713. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  40714. </doc>
  40715. </class>
  40716. <!-- end class org.apache.hadoop.util.MergeSort -->
  40717. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  40718. <class name="NativeCodeLoader" extends="java.lang.Object"
  40719. abstract="false"
  40720. static="false" final="false" visibility="public"
  40721. deprecated="not deprecated">
  40722. <constructor name="NativeCodeLoader"
  40723. static="false" final="false" visibility="public"
  40724. deprecated="not deprecated">
  40725. </constructor>
  40726. <method name="isNativeCodeLoaded" return="boolean"
  40727. abstract="false" native="false" synchronized="false"
  40728. static="true" final="false" visibility="public"
  40729. deprecated="not deprecated">
  40730. <doc>
  40731. <![CDATA[Check if native-hadoop code is loaded for this platform.
  40732. @return <code>true</code> if native-hadoop is loaded,
  40733. else <code>false</code>]]>
  40734. </doc>
  40735. </method>
  40736. <method name="getLoadNativeLibraries" return="boolean"
  40737. abstract="false" native="false" synchronized="false"
  40738. static="false" final="false" visibility="public"
  40739. deprecated="not deprecated">
  40740. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  40741. <doc>
  40742. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  40743. @param jobConf job configuration
  40744. @return <code>true</code> if native hadoop libraries, if present, can be
  40745. used for this job; <code>false</code> otherwise.]]>
  40746. </doc>
  40747. </method>
  40748. <method name="setLoadNativeLibraries"
  40749. abstract="false" native="false" synchronized="false"
  40750. static="false" final="false" visibility="public"
  40751. deprecated="not deprecated">
  40752. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  40753. <param name="loadNativeLibraries" type="boolean"/>
  40754. <doc>
  40755. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  40756. @param jobConf job configuration
  40757. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  40758. </doc>
  40759. </method>
  40760. <doc>
  40761. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  40762. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  40763. or the default java implementations where appropriate.]]>
  40764. </doc>
  40765. </class>
  40766. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  40767. <!-- start class org.apache.hadoop.util.PlatformName -->
  40768. <class name="PlatformName" extends="java.lang.Object"
  40769. abstract="false"
  40770. static="false" final="false" visibility="public"
  40771. deprecated="not deprecated">
  40772. <constructor name="PlatformName"
  40773. static="false" final="false" visibility="public"
  40774. deprecated="not deprecated">
  40775. </constructor>
  40776. <method name="getPlatformName" return="java.lang.String"
  40777. abstract="false" native="false" synchronized="false"
  40778. static="true" final="false" visibility="public"
  40779. deprecated="not deprecated">
  40780. <doc>
  40781. <![CDATA[Get the complete platform as per the java-vm.
  40782. @return returns the complete platform as per the java-vm.]]>
  40783. </doc>
  40784. </method>
  40785. <method name="main"
  40786. abstract="false" native="false" synchronized="false"
  40787. static="true" final="false" visibility="public"
  40788. deprecated="not deprecated">
  40789. <param name="args" type="java.lang.String[]"/>
  40790. </method>
  40791. <doc>
  40792. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  40793. </doc>
  40794. </class>
  40795. <!-- end class org.apache.hadoop.util.PlatformName -->
  40796. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  40797. <class name="PrintJarMainClass" extends="java.lang.Object"
  40798. abstract="false"
  40799. static="false" final="false" visibility="public"
  40800. deprecated="not deprecated">
  40801. <constructor name="PrintJarMainClass"
  40802. static="false" final="false" visibility="public"
  40803. deprecated="not deprecated">
  40804. </constructor>
  40805. <method name="main"
  40806. abstract="false" native="false" synchronized="false"
  40807. static="true" final="false" visibility="public"
  40808. deprecated="not deprecated">
  40809. <param name="args" type="java.lang.String[]"/>
  40810. <doc>
  40811. <![CDATA[@param args]]>
  40812. </doc>
  40813. </method>
  40814. <doc>
  40815. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  40816. </doc>
  40817. </class>
  40818. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  40819. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  40820. <class name="PriorityQueue" extends="java.lang.Object"
  40821. abstract="true"
  40822. static="false" final="false" visibility="public"
  40823. deprecated="not deprecated">
  40824. <constructor name="PriorityQueue"
  40825. static="false" final="false" visibility="public"
  40826. deprecated="not deprecated">
  40827. </constructor>
  40828. <method name="lessThan" return="boolean"
  40829. abstract="true" native="false" synchronized="false"
  40830. static="false" final="false" visibility="protected"
  40831. deprecated="not deprecated">
  40832. <param name="a" type="java.lang.Object"/>
  40833. <param name="b" type="java.lang.Object"/>
  40834. <doc>
  40835. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  40836. must define this one method.]]>
  40837. </doc>
  40838. </method>
  40839. <method name="initialize"
  40840. abstract="false" native="false" synchronized="false"
  40841. static="false" final="true" visibility="protected"
  40842. deprecated="not deprecated">
  40843. <param name="maxSize" type="int"/>
  40844. <doc>
  40845. <![CDATA[Subclass constructors must call this.]]>
  40846. </doc>
  40847. </method>
  40848. <method name="put"
  40849. abstract="false" native="false" synchronized="false"
  40850. static="false" final="true" visibility="public"
  40851. deprecated="not deprecated">
  40852. <param name="element" type="java.lang.Object"/>
  40853. <doc>
  40854. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  40855. If one tries to add more objects than maxSize from initialize
  40856. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  40857. </doc>
  40858. </method>
  40859. <method name="insert" return="boolean"
  40860. abstract="false" native="false" synchronized="false"
  40861. static="false" final="false" visibility="public"
  40862. deprecated="not deprecated">
  40863. <param name="element" type="java.lang.Object"/>
  40864. <doc>
  40865. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  40866. the PriorityQueue is not full, or not lessThan(element, top()).
  40867. @param element
  40868. @return true if element is added, false otherwise.]]>
  40869. </doc>
  40870. </method>
  40871. <method name="top" return="java.lang.Object"
  40872. abstract="false" native="false" synchronized="false"
  40873. static="false" final="true" visibility="public"
  40874. deprecated="not deprecated">
  40875. <doc>
  40876. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  40877. </doc>
  40878. </method>
  40879. <method name="pop" return="java.lang.Object"
  40880. abstract="false" native="false" synchronized="false"
  40881. static="false" final="true" visibility="public"
  40882. deprecated="not deprecated">
  40883. <doc>
  40884. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  40885. time.]]>
  40886. </doc>
  40887. </method>
  40888. <method name="adjustTop"
  40889. abstract="false" native="false" synchronized="false"
  40890. static="false" final="true" visibility="public"
  40891. deprecated="not deprecated">
  40892. <doc>
  40893. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  40894. worst case, but it's at least twice as fast to <pre>
  40895. { pq.top().change(); pq.adjustTop(); }
  40896. </pre> instead of <pre>
  40897. { o = pq.pop(); o.change(); pq.push(o); }
  40898. </pre>]]>
  40899. </doc>
  40900. </method>
  40901. <method name="size" return="int"
  40902. abstract="false" native="false" synchronized="false"
  40903. static="false" final="true" visibility="public"
  40904. deprecated="not deprecated">
  40905. <doc>
  40906. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  40907. </doc>
  40908. </method>
  40909. <method name="clear"
  40910. abstract="false" native="false" synchronized="false"
  40911. static="false" final="true" visibility="public"
  40912. deprecated="not deprecated">
  40913. <doc>
  40914. <![CDATA[Removes all entries from the PriorityQueue.]]>
  40915. </doc>
  40916. </method>
  40917. <doc>
  40918. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  40919. least element can always be found in constant time. Put()'s and pop()'s
  40920. require log(size) time.]]>
  40921. </doc>
  40922. </class>
  40923. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  40924. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  40925. <class name="ProgramDriver" extends="java.lang.Object"
  40926. abstract="false"
  40927. static="false" final="false" visibility="public"
  40928. deprecated="not deprecated">
  40929. <constructor name="ProgramDriver"
  40930. static="false" final="false" visibility="public"
  40931. deprecated="not deprecated">
  40932. </constructor>
  40933. <method name="addClass"
  40934. abstract="false" native="false" synchronized="false"
  40935. static="false" final="false" visibility="public"
  40936. deprecated="not deprecated">
  40937. <param name="name" type="java.lang.String"/>
  40938. <param name="mainClass" type="java.lang.Class"/>
  40939. <param name="description" type="java.lang.String"/>
  40940. <exception name="Throwable" type="java.lang.Throwable"/>
  40941. <doc>
  40942. <![CDATA[This is the method that adds the classed to the repository
  40943. @param name The name of the string you want the class instance to be called with
  40944. @param mainClass The class that you want to add to the repository
  40945. @param description The description of the class
  40946. @throws NoSuchMethodException
  40947. @throws SecurityException]]>
  40948. </doc>
  40949. </method>
  40950. <method name="driver"
  40951. abstract="false" native="false" synchronized="false"
  40952. static="false" final="false" visibility="public"
  40953. deprecated="not deprecated">
  40954. <param name="args" type="java.lang.String[]"/>
  40955. <exception name="Throwable" type="java.lang.Throwable"/>
  40956. <doc>
  40957. <![CDATA[This is a driver for the example programs.
  40958. It looks at the first command line argument and tries to find an
  40959. example program with that name.
  40960. If it is found, it calls the main method in that class with the rest
  40961. of the command line arguments.
  40962. @param args The argument from the user. args[0] is the command to run.
  40963. @throws NoSuchMethodException
  40964. @throws SecurityException
  40965. @throws IllegalAccessException
  40966. @throws IllegalArgumentException
  40967. @throws Throwable Anything thrown by the example program's main]]>
  40968. </doc>
  40969. </method>
  40970. <doc>
  40971. <![CDATA[A driver that is used to run programs added to it]]>
  40972. </doc>
  40973. </class>
  40974. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  40975. <!-- start class org.apache.hadoop.util.Progress -->
  40976. <class name="Progress" extends="java.lang.Object"
  40977. abstract="false"
  40978. static="false" final="false" visibility="public"
  40979. deprecated="not deprecated">
  40980. <constructor name="Progress"
  40981. static="false" final="false" visibility="public"
  40982. deprecated="not deprecated">
  40983. <doc>
  40984. <![CDATA[Creates a new root node.]]>
  40985. </doc>
  40986. </constructor>
  40987. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40988. abstract="false" native="false" synchronized="false"
  40989. static="false" final="false" visibility="public"
  40990. deprecated="not deprecated">
  40991. <param name="status" type="java.lang.String"/>
  40992. <doc>
  40993. <![CDATA[Adds a named node to the tree.]]>
  40994. </doc>
  40995. </method>
  40996. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  40997. abstract="false" native="false" synchronized="true"
  40998. static="false" final="false" visibility="public"
  40999. deprecated="not deprecated">
  41000. <doc>
  41001. <![CDATA[Adds a node to the tree.]]>
  41002. </doc>
  41003. </method>
  41004. <method name="startNextPhase"
  41005. abstract="false" native="false" synchronized="true"
  41006. static="false" final="false" visibility="public"
  41007. deprecated="not deprecated">
  41008. <doc>
  41009. <![CDATA[Called during execution to move to the next phase at this level in the
  41010. tree.]]>
  41011. </doc>
  41012. </method>
  41013. <method name="phase" return="org.apache.hadoop.util.Progress"
  41014. abstract="false" native="false" synchronized="true"
  41015. static="false" final="false" visibility="public"
  41016. deprecated="not deprecated">
  41017. <doc>
  41018. <![CDATA[Returns the current sub-node executing.]]>
  41019. </doc>
  41020. </method>
  41021. <method name="complete"
  41022. abstract="false" native="false" synchronized="false"
  41023. static="false" final="false" visibility="public"
  41024. deprecated="not deprecated">
  41025. <doc>
  41026. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  41027. </doc>
  41028. </method>
  41029. <method name="set"
  41030. abstract="false" native="false" synchronized="true"
  41031. static="false" final="false" visibility="public"
  41032. deprecated="not deprecated">
  41033. <param name="progress" type="float"/>
  41034. <doc>
  41035. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  41036. </doc>
  41037. </method>
  41038. <method name="get" return="float"
  41039. abstract="false" native="false" synchronized="true"
  41040. static="false" final="false" visibility="public"
  41041. deprecated="not deprecated">
  41042. <doc>
  41043. <![CDATA[Returns the overall progress of the root.]]>
  41044. </doc>
  41045. </method>
  41046. <method name="setStatus"
  41047. abstract="false" native="false" synchronized="true"
  41048. static="false" final="false" visibility="public"
  41049. deprecated="not deprecated">
  41050. <param name="status" type="java.lang.String"/>
  41051. </method>
  41052. <method name="toString" return="java.lang.String"
  41053. abstract="false" native="false" synchronized="false"
  41054. static="false" final="false" visibility="public"
  41055. deprecated="not deprecated">
  41056. </method>
  41057. <doc>
  41058. <![CDATA[Utility to assist with generation of progress reports. Applications build
  41059. a hierarchy of {@link Progress} instances, each modelling a phase of
  41060. execution. The root is constructed with {@link #Progress()}. Nodes for
  41061. sub-phases are created by calling {@link #addPhase()}.]]>
  41062. </doc>
  41063. </class>
  41064. <!-- end class org.apache.hadoop.util.Progress -->
  41065. <!-- start interface org.apache.hadoop.util.Progressable -->
  41066. <interface name="Progressable" abstract="true"
  41067. static="false" final="false" visibility="public"
  41068. deprecated="not deprecated">
  41069. <method name="progress"
  41070. abstract="false" native="false" synchronized="false"
  41071. static="false" final="false" visibility="public"
  41072. deprecated="not deprecated">
  41073. <doc>
  41074. <![CDATA[Report progress to the Hadoop framework.]]>
  41075. </doc>
  41076. </method>
  41077. <doc>
  41078. <![CDATA[A facility for reporting progress.
  41079. <p>Clients and/or applications can use the provided <code>Progressable</code>
  41080. to explicitly report progress to the Hadoop framework. This is especially
  41081. important for operations which take an insignificant amount of time since,
  41082. in-lieu of the reported progress, the framework has to assume that an error
  41083. has occured and time-out the operation.</p>]]>
  41084. </doc>
  41085. </interface>
  41086. <!-- end interface org.apache.hadoop.util.Progressable -->
  41087. <!-- start class org.apache.hadoop.util.QuickSort -->
  41088. <class name="QuickSort" extends="java.lang.Object"
  41089. abstract="false"
  41090. static="false" final="false" visibility="public"
  41091. deprecated="not deprecated">
  41092. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  41093. <constructor name="QuickSort"
  41094. static="false" final="false" visibility="public"
  41095. deprecated="not deprecated">
  41096. </constructor>
  41097. <method name="sort"
  41098. abstract="false" native="false" synchronized="false"
  41099. static="false" final="false" visibility="public"
  41100. deprecated="not deprecated">
  41101. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41102. <param name="p" type="int"/>
  41103. <param name="r" type="int"/>
  41104. </method>
  41105. <method name="sort"
  41106. abstract="false" native="false" synchronized="false"
  41107. static="false" final="false" visibility="public"
  41108. deprecated="not deprecated">
  41109. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  41110. <param name="p" type="int"/>
  41111. <param name="r" type="int"/>
  41112. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  41113. <doc>
  41114. <![CDATA[Same as {@link #sort}, but indicate that we're making progress after
  41115. each partition.]]>
  41116. </doc>
  41117. </method>
  41118. <doc>
  41119. <![CDATA[An implementation of the core algorithm of QuickSort.
  41120. See "Median-of-Three Partitioning" in Sedgewick book.]]>
  41121. </doc>
  41122. </class>
  41123. <!-- end class org.apache.hadoop.util.QuickSort -->
  41124. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  41125. <class name="ReflectionUtils" extends="java.lang.Object"
  41126. abstract="false"
  41127. static="false" final="false" visibility="public"
  41128. deprecated="not deprecated">
  41129. <constructor name="ReflectionUtils"
  41130. static="false" final="false" visibility="public"
  41131. deprecated="not deprecated">
  41132. </constructor>
  41133. <method name="setConf"
  41134. abstract="false" native="false" synchronized="false"
  41135. static="true" final="false" visibility="public"
  41136. deprecated="not deprecated">
  41137. <param name="theObject" type="java.lang.Object"/>
  41138. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41139. <doc>
  41140. <![CDATA[Check and set 'configuration' if necessary.
  41141. @param theObject object for which to set configuration
  41142. @param conf Configuration]]>
  41143. </doc>
  41144. </method>
  41145. <method name="newInstance" return="java.lang.Object"
  41146. abstract="false" native="false" synchronized="false"
  41147. static="true" final="false" visibility="public"
  41148. deprecated="not deprecated">
  41149. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  41150. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41151. <doc>
  41152. <![CDATA[Create an object for the given class and initialize it from conf
  41153. @param theClass class of which an object is created
  41154. @param conf Configuration
  41155. @return a new object]]>
  41156. </doc>
  41157. </method>
  41158. <method name="setContentionTracing"
  41159. abstract="false" native="false" synchronized="false"
  41160. static="true" final="false" visibility="public"
  41161. deprecated="not deprecated">
  41162. <param name="val" type="boolean"/>
  41163. </method>
  41164. <method name="printThreadInfo"
  41165. abstract="false" native="false" synchronized="false"
  41166. static="true" final="false" visibility="public"
  41167. deprecated="not deprecated">
  41168. <param name="stream" type="java.io.PrintWriter"/>
  41169. <param name="title" type="java.lang.String"/>
  41170. <doc>
  41171. <![CDATA[Print all of the thread's information and stack traces.
  41172. @param stream the stream to
  41173. @param title a string title for the stack trace]]>
  41174. </doc>
  41175. </method>
  41176. <method name="logThreadInfo"
  41177. abstract="false" native="false" synchronized="false"
  41178. static="true" final="false" visibility="public"
  41179. deprecated="not deprecated">
  41180. <param name="log" type="org.apache.commons.logging.Log"/>
  41181. <param name="title" type="java.lang.String"/>
  41182. <param name="minInterval" type="long"/>
  41183. <doc>
  41184. <![CDATA[Log the current thread stacks at INFO level.
  41185. @param log the logger that logs the stack trace
  41186. @param title a descriptive title for the call stacks
  41187. @param minInterval the minimum time from the last]]>
  41188. </doc>
  41189. </method>
  41190. <doc>
  41191. <![CDATA[General reflection utils]]>
  41192. </doc>
  41193. </class>
  41194. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  41195. <!-- start class org.apache.hadoop.util.RunJar -->
  41196. <class name="RunJar" extends="java.lang.Object"
  41197. abstract="false"
  41198. static="false" final="false" visibility="public"
  41199. deprecated="not deprecated">
  41200. <constructor name="RunJar"
  41201. static="false" final="false" visibility="public"
  41202. deprecated="not deprecated">
  41203. </constructor>
  41204. <method name="unJar"
  41205. abstract="false" native="false" synchronized="false"
  41206. static="true" final="false" visibility="public"
  41207. deprecated="not deprecated">
  41208. <param name="jarFile" type="java.io.File"/>
  41209. <param name="toDir" type="java.io.File"/>
  41210. <exception name="IOException" type="java.io.IOException"/>
  41211. <doc>
  41212. <![CDATA[Unpack a jar file into a directory.]]>
  41213. </doc>
  41214. </method>
  41215. <method name="main"
  41216. abstract="false" native="false" synchronized="false"
  41217. static="true" final="false" visibility="public"
  41218. deprecated="not deprecated">
  41219. <param name="args" type="java.lang.String[]"/>
  41220. <exception name="Throwable" type="java.lang.Throwable"/>
  41221. <doc>
  41222. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  41223. then it must be provided on the command line.]]>
  41224. </doc>
  41225. </method>
  41226. <doc>
  41227. <![CDATA[Run a Hadoop job jar.]]>
  41228. </doc>
  41229. </class>
  41230. <!-- end class org.apache.hadoop.util.RunJar -->
  41231. <!-- start class org.apache.hadoop.util.ServletUtil -->
  41232. <class name="ServletUtil" extends="java.lang.Object"
  41233. abstract="false"
  41234. static="false" final="false" visibility="public"
  41235. deprecated="not deprecated">
  41236. <constructor name="ServletUtil"
  41237. static="false" final="false" visibility="public"
  41238. deprecated="not deprecated">
  41239. </constructor>
  41240. <method name="initHTML" return="java.io.PrintWriter"
  41241. abstract="false" native="false" synchronized="false"
  41242. static="true" final="false" visibility="public"
  41243. deprecated="not deprecated">
  41244. <param name="response" type="javax.servlet.ServletResponse"/>
  41245. <param name="title" type="java.lang.String"/>
  41246. <exception name="IOException" type="java.io.IOException"/>
  41247. <doc>
  41248. <![CDATA[Initial HTML header]]>
  41249. </doc>
  41250. </method>
  41251. <method name="getParameter" return="java.lang.String"
  41252. abstract="false" native="false" synchronized="false"
  41253. static="true" final="false" visibility="public"
  41254. deprecated="not deprecated">
  41255. <param name="request" type="javax.servlet.ServletRequest"/>
  41256. <param name="name" type="java.lang.String"/>
  41257. <doc>
  41258. <![CDATA[Get a parameter from a ServletRequest.
  41259. Return null if the parameter contains only white spaces.]]>
  41260. </doc>
  41261. </method>
  41262. <method name="htmlFooter" return="java.lang.String"
  41263. abstract="false" native="false" synchronized="false"
  41264. static="true" final="false" visibility="public"
  41265. deprecated="not deprecated">
  41266. <doc>
  41267. <![CDATA[HTML footer to be added in the jsps.
  41268. @return the HTML footer.]]>
  41269. </doc>
  41270. </method>
  41271. <field name="HTML_TAIL" type="java.lang.String"
  41272. transient="false" volatile="false"
  41273. static="true" final="true" visibility="public"
  41274. deprecated="not deprecated">
  41275. </field>
  41276. </class>
  41277. <!-- end class org.apache.hadoop.util.ServletUtil -->
  41278. <!-- start class org.apache.hadoop.util.Shell -->
  41279. <class name="Shell" extends="java.lang.Object"
  41280. abstract="true"
  41281. static="false" final="false" visibility="public"
  41282. deprecated="not deprecated">
  41283. <constructor name="Shell"
  41284. static="false" final="false" visibility="public"
  41285. deprecated="not deprecated">
  41286. </constructor>
  41287. <constructor name="Shell" type="long"
  41288. static="false" final="false" visibility="public"
  41289. deprecated="not deprecated">
  41290. <doc>
  41291. <![CDATA[@param interval the minimum duration to wait before re-executing the
  41292. command.]]>
  41293. </doc>
  41294. </constructor>
  41295. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  41296. abstract="false" native="false" synchronized="false"
  41297. static="true" final="false" visibility="public"
  41298. deprecated="not deprecated">
  41299. <doc>
  41300. <![CDATA[a Unix command to get the current user's groups list]]>
  41301. </doc>
  41302. </method>
  41303. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  41304. abstract="false" native="false" synchronized="false"
  41305. static="true" final="false" visibility="public"
  41306. deprecated="not deprecated">
  41307. <doc>
  41308. <![CDATA[Return a Unix command to get permission information.]]>
  41309. </doc>
  41310. </method>
  41311. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  41312. abstract="false" native="false" synchronized="false"
  41313. static="true" final="false" visibility="public"
  41314. deprecated="not deprecated">
  41315. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41316. <doc>
  41317. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  41318. to a given child process. This is only relevant when we are forking a
  41319. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  41320. {@link org.apache.hadoop.mapred.Reducer} implementations
  41321. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  41322. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  41323. It also checks to ensure that we are running on a *nix platform else
  41324. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  41325. @param job job configuration
  41326. @return a <code>String[]</code> with the ulimit command arguments or
  41327. <code>null</code> if we are running on a non *nix platform or
  41328. if the limit is unspecified.]]>
  41329. </doc>
  41330. </method>
  41331. <method name="setEnvironment"
  41332. abstract="false" native="false" synchronized="false"
  41333. static="false" final="false" visibility="protected"
  41334. deprecated="not deprecated">
  41335. <param name="env" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  41336. <doc>
  41337. <![CDATA[set the environment for the command
  41338. @param env Mapping of environment variables]]>
  41339. </doc>
  41340. </method>
  41341. <method name="setWorkingDirectory"
  41342. abstract="false" native="false" synchronized="false"
  41343. static="false" final="false" visibility="protected"
  41344. deprecated="not deprecated">
  41345. <param name="dir" type="java.io.File"/>
  41346. <doc>
  41347. <![CDATA[set the working directory
  41348. @param dir The directory where the command would be executed]]>
  41349. </doc>
  41350. </method>
  41351. <method name="run"
  41352. abstract="false" native="false" synchronized="false"
  41353. static="false" final="false" visibility="protected"
  41354. deprecated="not deprecated">
  41355. <exception name="IOException" type="java.io.IOException"/>
  41356. <doc>
  41357. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  41358. </doc>
  41359. </method>
  41360. <method name="getExecString" return="java.lang.String[]"
  41361. abstract="true" native="false" synchronized="false"
  41362. static="false" final="false" visibility="protected"
  41363. deprecated="not deprecated">
  41364. <doc>
  41365. <![CDATA[return an array containing the command name & its parameters]]>
  41366. </doc>
  41367. </method>
  41368. <method name="parseExecResult"
  41369. abstract="true" native="false" synchronized="false"
  41370. static="false" final="false" visibility="protected"
  41371. deprecated="not deprecated">
  41372. <param name="lines" type="java.io.BufferedReader"/>
  41373. <exception name="IOException" type="java.io.IOException"/>
  41374. <doc>
  41375. <![CDATA[Parse the execution result]]>
  41376. </doc>
  41377. </method>
  41378. <method name="getProcess" return="java.lang.Process"
  41379. abstract="false" native="false" synchronized="false"
  41380. static="false" final="false" visibility="public"
  41381. deprecated="not deprecated">
  41382. <doc>
  41383. <![CDATA[get the current sub-process executing the given command
  41384. @return process executing the command]]>
  41385. </doc>
  41386. </method>
  41387. <method name="getExitCode" return="int"
  41388. abstract="false" native="false" synchronized="false"
  41389. static="false" final="false" visibility="public"
  41390. deprecated="not deprecated">
  41391. <doc>
  41392. <![CDATA[get the exit code
  41393. @return the exit code of the process]]>
  41394. </doc>
  41395. </method>
  41396. <method name="execCommand" return="java.lang.String"
  41397. abstract="false" native="false" synchronized="false"
  41398. static="true" final="false" visibility="public"
  41399. deprecated="not deprecated">
  41400. <param name="cmd" type="java.lang.String[]"/>
  41401. <exception name="IOException" type="java.io.IOException"/>
  41402. <doc>
  41403. <![CDATA[Static method to execute a shell command.
  41404. Covers most of the simple cases without requiring the user to implement
  41405. the <code>Shell</code> interface.
  41406. @param cmd shell command to execute.
  41407. @return the output of the executed command.]]>
  41408. </doc>
  41409. </method>
  41410. <field name="LOG" type="org.apache.commons.logging.Log"
  41411. transient="false" volatile="false"
  41412. static="true" final="true" visibility="public"
  41413. deprecated="not deprecated">
  41414. </field>
  41415. <field name="USER_NAME_COMMAND" type="java.lang.String"
  41416. transient="false" volatile="false"
  41417. static="true" final="true" visibility="public"
  41418. deprecated="not deprecated">
  41419. <doc>
  41420. <![CDATA[a Unix command to get the current user's name]]>
  41421. </doc>
  41422. </field>
  41423. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  41424. transient="false" volatile="false"
  41425. static="true" final="true" visibility="public"
  41426. deprecated="not deprecated">
  41427. <doc>
  41428. <![CDATA[a Unix command to set permission]]>
  41429. </doc>
  41430. </field>
  41431. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  41432. transient="false" volatile="false"
  41433. static="true" final="true" visibility="public"
  41434. deprecated="not deprecated">
  41435. <doc>
  41436. <![CDATA[a Unix command to set owner]]>
  41437. </doc>
  41438. </field>
  41439. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  41440. transient="false" volatile="false"
  41441. static="true" final="true" visibility="public"
  41442. deprecated="not deprecated">
  41443. </field>
  41444. <field name="WINDOWS" type="boolean"
  41445. transient="false" volatile="false"
  41446. static="true" final="true" visibility="public"
  41447. deprecated="not deprecated">
  41448. <doc>
  41449. <![CDATA[Set to true on Windows platforms]]>
  41450. </doc>
  41451. </field>
  41452. <doc>
  41453. <![CDATA[A base class for running a Unix command.
  41454. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  41455. <code>df</code>. It also offers facilities to gate commands by
  41456. time-intervals.]]>
  41457. </doc>
  41458. </class>
  41459. <!-- end class org.apache.hadoop.util.Shell -->
  41460. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  41461. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  41462. abstract="false"
  41463. static="true" final="false" visibility="public"
  41464. deprecated="not deprecated">
  41465. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  41466. static="false" final="false" visibility="public"
  41467. deprecated="not deprecated">
  41468. </constructor>
  41469. <method name="getExitCode" return="int"
  41470. abstract="false" native="false" synchronized="false"
  41471. static="false" final="false" visibility="public"
  41472. deprecated="not deprecated">
  41473. </method>
  41474. <doc>
  41475. <![CDATA[This is an IOException with exit code added.]]>
  41476. </doc>
  41477. </class>
  41478. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  41479. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41480. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  41481. abstract="false"
  41482. static="true" final="false" visibility="public"
  41483. deprecated="not deprecated">
  41484. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  41485. static="false" final="false" visibility="public"
  41486. deprecated="not deprecated">
  41487. </constructor>
  41488. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  41489. static="false" final="false" visibility="public"
  41490. deprecated="not deprecated">
  41491. </constructor>
  41492. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  41493. static="false" final="false" visibility="public"
  41494. deprecated="not deprecated">
  41495. </constructor>
  41496. <method name="execute"
  41497. abstract="false" native="false" synchronized="false"
  41498. static="false" final="false" visibility="public"
  41499. deprecated="not deprecated">
  41500. <exception name="IOException" type="java.io.IOException"/>
  41501. <doc>
  41502. <![CDATA[Execute the shell command.]]>
  41503. </doc>
  41504. </method>
  41505. <method name="getExecString" return="java.lang.String[]"
  41506. abstract="false" native="false" synchronized="false"
  41507. static="false" final="false" visibility="protected"
  41508. deprecated="not deprecated">
  41509. </method>
  41510. <method name="parseExecResult"
  41511. abstract="false" native="false" synchronized="false"
  41512. static="false" final="false" visibility="protected"
  41513. deprecated="not deprecated">
  41514. <param name="lines" type="java.io.BufferedReader"/>
  41515. <exception name="IOException" type="java.io.IOException"/>
  41516. </method>
  41517. <method name="getOutput" return="java.lang.String"
  41518. abstract="false" native="false" synchronized="false"
  41519. static="false" final="false" visibility="public"
  41520. deprecated="not deprecated">
  41521. <doc>
  41522. <![CDATA[Get the output of the shell command.]]>
  41523. </doc>
  41524. </method>
  41525. <doc>
  41526. <![CDATA[A simple shell command executor.
  41527. <code>ShellCommandExecutor</code>should be used in cases where the output
  41528. of the command needs no explicit parsing and where the command, working
  41529. directory and the environment remains unchanged. The output of the command
  41530. is stored as-is and is expected to be small.]]>
  41531. </doc>
  41532. </class>
  41533. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  41534. <!-- start class org.apache.hadoop.util.StringUtils -->
  41535. <class name="StringUtils" extends="java.lang.Object"
  41536. abstract="false"
  41537. static="false" final="false" visibility="public"
  41538. deprecated="not deprecated">
  41539. <constructor name="StringUtils"
  41540. static="false" final="false" visibility="public"
  41541. deprecated="not deprecated">
  41542. </constructor>
  41543. <method name="stringifyException" return="java.lang.String"
  41544. abstract="false" native="false" synchronized="false"
  41545. static="true" final="false" visibility="public"
  41546. deprecated="not deprecated">
  41547. <param name="e" type="java.lang.Throwable"/>
  41548. <doc>
  41549. <![CDATA[Make a string representation of the exception.
  41550. @param e The exception to stringify
  41551. @return A string with exception name and call stack.]]>
  41552. </doc>
  41553. </method>
  41554. <method name="simpleHostname" return="java.lang.String"
  41555. abstract="false" native="false" synchronized="false"
  41556. static="true" final="false" visibility="public"
  41557. deprecated="not deprecated">
  41558. <param name="fullHostname" type="java.lang.String"/>
  41559. <doc>
  41560. <![CDATA[Given a full hostname, return the word upto the first dot.
  41561. @param fullHostname the full hostname
  41562. @return the hostname to the first dot]]>
  41563. </doc>
  41564. </method>
  41565. <method name="humanReadableInt" return="java.lang.String"
  41566. abstract="false" native="false" synchronized="false"
  41567. static="true" final="false" visibility="public"
  41568. deprecated="not deprecated">
  41569. <param name="number" type="long"/>
  41570. <doc>
  41571. <![CDATA[Given an integer, return a string that is in an approximate, but human
  41572. readable format.
  41573. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  41574. @param number the number to format
  41575. @return a human readable form of the integer]]>
  41576. </doc>
  41577. </method>
  41578. <method name="formatPercent" return="java.lang.String"
  41579. abstract="false" native="false" synchronized="false"
  41580. static="true" final="false" visibility="public"
  41581. deprecated="not deprecated">
  41582. <param name="done" type="double"/>
  41583. <param name="digits" type="int"/>
  41584. <doc>
  41585. <![CDATA[Format a percentage for presentation to the user.
  41586. @param done the percentage to format (0.0 to 1.0)
  41587. @param digits the number of digits past the decimal point
  41588. @return a string representation of the percentage]]>
  41589. </doc>
  41590. </method>
  41591. <method name="arrayToString" return="java.lang.String"
  41592. abstract="false" native="false" synchronized="false"
  41593. static="true" final="false" visibility="public"
  41594. deprecated="not deprecated">
  41595. <param name="strs" type="java.lang.String[]"/>
  41596. <doc>
  41597. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  41598. @param strs Array of strings
  41599. @return Empty string if strs.length is 0, comma separated list of strings
  41600. otherwise]]>
  41601. </doc>
  41602. </method>
  41603. <method name="byteToHexString" return="java.lang.String"
  41604. abstract="false" native="false" synchronized="false"
  41605. static="true" final="false" visibility="public"
  41606. deprecated="not deprecated">
  41607. <param name="bytes" type="byte[]"/>
  41608. <doc>
  41609. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  41610. representation of the bytes
  41611. @param bytes
  41612. @return hex string representation of the byte array]]>
  41613. </doc>
  41614. </method>
  41615. <method name="hexStringToByte" return="byte[]"
  41616. abstract="false" native="false" synchronized="false"
  41617. static="true" final="false" visibility="public"
  41618. deprecated="not deprecated">
  41619. <param name="hex" type="java.lang.String"/>
  41620. <doc>
  41621. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  41622. string
  41623. @param hex the hex String array
  41624. @return a byte array that is a hex string representation of the given
  41625. string. The size of the byte array is therefore hex.length/2]]>
  41626. </doc>
  41627. </method>
  41628. <method name="uriToString" return="java.lang.String"
  41629. abstract="false" native="false" synchronized="false"
  41630. static="true" final="false" visibility="public"
  41631. deprecated="not deprecated">
  41632. <param name="uris" type="java.net.URI[]"/>
  41633. <doc>
  41634. <![CDATA[@param uris]]>
  41635. </doc>
  41636. </method>
  41637. <method name="stringToURI" return="java.net.URI[]"
  41638. abstract="false" native="false" synchronized="false"
  41639. static="true" final="false" visibility="public"
  41640. deprecated="not deprecated">
  41641. <param name="str" type="java.lang.String[]"/>
  41642. <doc>
  41643. <![CDATA[@param str]]>
  41644. </doc>
  41645. </method>
  41646. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  41647. abstract="false" native="false" synchronized="false"
  41648. static="true" final="false" visibility="public"
  41649. deprecated="not deprecated">
  41650. <param name="str" type="java.lang.String[]"/>
  41651. <doc>
  41652. <![CDATA[@param str]]>
  41653. </doc>
  41654. </method>
  41655. <method name="formatTimeDiff" return="java.lang.String"
  41656. abstract="false" native="false" synchronized="false"
  41657. static="true" final="false" visibility="public"
  41658. deprecated="not deprecated">
  41659. <param name="finishTime" type="long"/>
  41660. <param name="startTime" type="long"/>
  41661. <doc>
  41662. <![CDATA[Given a finish and start time in long milliseconds, returns a
  41663. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  41664. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  41665. @param finishTime finish time
  41666. @param startTime start time]]>
  41667. </doc>
  41668. </method>
  41669. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  41670. abstract="false" native="false" synchronized="false"
  41671. static="true" final="false" visibility="public"
  41672. deprecated="not deprecated">
  41673. <param name="dateFormat" type="java.text.DateFormat"/>
  41674. <param name="finishTime" type="long"/>
  41675. <param name="startTime" type="long"/>
  41676. <doc>
  41677. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  41678. as returned by formatTimeDiff().
  41679. If finish time is 0, empty string is returned, if start time is 0
  41680. then difference is not appended to return value.
  41681. @param dateFormat date format to use
  41682. @param finishTime fnish time
  41683. @param startTime start time
  41684. @return formatted value.]]>
  41685. </doc>
  41686. </method>
  41687. <method name="getStrings" return="java.lang.String[]"
  41688. abstract="false" native="false" synchronized="false"
  41689. static="true" final="false" visibility="public"
  41690. deprecated="not deprecated">
  41691. <param name="str" type="java.lang.String"/>
  41692. <doc>
  41693. <![CDATA[returns an arraylist of strings
  41694. @param str the comma seperated string values
  41695. @return the arraylist of the comma seperated string values]]>
  41696. </doc>
  41697. </method>
  41698. <method name="split" return="java.lang.String[]"
  41699. abstract="false" native="false" synchronized="false"
  41700. static="true" final="false" visibility="public"
  41701. deprecated="not deprecated">
  41702. <param name="str" type="java.lang.String"/>
  41703. <doc>
  41704. <![CDATA[Split a string using the default separator
  41705. @param str a string that may have escaped separator
  41706. @return an array of strings]]>
  41707. </doc>
  41708. </method>
  41709. <method name="split" return="java.lang.String[]"
  41710. abstract="false" native="false" synchronized="false"
  41711. static="true" final="false" visibility="public"
  41712. deprecated="not deprecated">
  41713. <param name="str" type="java.lang.String"/>
  41714. <param name="escapeChar" type="char"/>
  41715. <param name="separator" type="char"/>
  41716. <doc>
  41717. <![CDATA[Split a string using the given separator
  41718. @param str a string that may have escaped separator
  41719. @param escapeChar a char that be used to escape the separator
  41720. @param separator a separator char
  41721. @return an array of strings]]>
  41722. </doc>
  41723. </method>
  41724. <method name="escapeString" return="java.lang.String"
  41725. abstract="false" native="false" synchronized="false"
  41726. static="true" final="false" visibility="public"
  41727. deprecated="not deprecated">
  41728. <param name="str" type="java.lang.String"/>
  41729. <doc>
  41730. <![CDATA[Escape commas in the string using the default escape char
  41731. @param str a string
  41732. @return an escaped string]]>
  41733. </doc>
  41734. </method>
  41735. <method name="escapeString" return="java.lang.String"
  41736. abstract="false" native="false" synchronized="false"
  41737. static="true" final="false" visibility="public"
  41738. deprecated="not deprecated">
  41739. <param name="str" type="java.lang.String"/>
  41740. <param name="escapeChar" type="char"/>
  41741. <param name="charToEscape" type="char"/>
  41742. <doc>
  41743. <![CDATA[Escape <code>charToEscape</code> in the string
  41744. with the escape char <code>escapeChar</code>
  41745. @param str string
  41746. @param escapeChar escape char
  41747. @param charToEscape the char to be escaped
  41748. @return an escaped string]]>
  41749. </doc>
  41750. </method>
  41751. <method name="unEscapeString" return="java.lang.String"
  41752. abstract="false" native="false" synchronized="false"
  41753. static="true" final="false" visibility="public"
  41754. deprecated="not deprecated">
  41755. <param name="str" type="java.lang.String"/>
  41756. <doc>
  41757. <![CDATA[Unescape commas in the string using the default escape char
  41758. @param str a string
  41759. @return an unescaped string]]>
  41760. </doc>
  41761. </method>
  41762. <method name="unEscapeString" return="java.lang.String"
  41763. abstract="false" native="false" synchronized="false"
  41764. static="true" final="false" visibility="public"
  41765. deprecated="not deprecated">
  41766. <param name="str" type="java.lang.String"/>
  41767. <param name="escapeChar" type="char"/>
  41768. <param name="charToEscape" type="char"/>
  41769. <doc>
  41770. <![CDATA[Unescape <code>charToEscape</code> in the string
  41771. with the escape char <code>escapeChar</code>
  41772. @param str string
  41773. @param escapeChar escape char
  41774. @param charToEscape the escaped char
  41775. @return an unescaped string]]>
  41776. </doc>
  41777. </method>
  41778. <method name="getHostname" return="java.lang.String"
  41779. abstract="false" native="false" synchronized="false"
  41780. static="true" final="false" visibility="public"
  41781. deprecated="not deprecated">
  41782. <doc>
  41783. <![CDATA[Return hostname without throwing exception.
  41784. @return hostname]]>
  41785. </doc>
  41786. </method>
  41787. <method name="startupShutdownMessage"
  41788. abstract="false" native="false" synchronized="false"
  41789. static="true" final="false" visibility="public"
  41790. deprecated="not deprecated">
  41791. <param name="clazz" type="java.lang.Class"/>
  41792. <param name="args" type="java.lang.String[]"/>
  41793. <param name="LOG" type="org.apache.commons.logging.Log"/>
  41794. <doc>
  41795. <![CDATA[Print a log message for starting up and shutting down
  41796. @param clazz the class of the server
  41797. @param args arguments
  41798. @param LOG the target log object]]>
  41799. </doc>
  41800. </method>
  41801. <field name="COMMA" type="char"
  41802. transient="false" volatile="false"
  41803. static="true" final="true" visibility="public"
  41804. deprecated="not deprecated">
  41805. </field>
  41806. <field name="COMMA_STR" type="java.lang.String"
  41807. transient="false" volatile="false"
  41808. static="true" final="true" visibility="public"
  41809. deprecated="not deprecated">
  41810. </field>
  41811. <field name="ESCAPE_CHAR" type="char"
  41812. transient="false" volatile="false"
  41813. static="true" final="true" visibility="public"
  41814. deprecated="not deprecated">
  41815. </field>
  41816. <doc>
  41817. <![CDATA[General string utils]]>
  41818. </doc>
  41819. </class>
  41820. <!-- end class org.apache.hadoop.util.StringUtils -->
  41821. <!-- start interface org.apache.hadoop.util.Tool -->
  41822. <interface name="Tool" abstract="true"
  41823. static="false" final="false" visibility="public"
  41824. deprecated="not deprecated">
  41825. <implements name="org.apache.hadoop.conf.Configurable"/>
  41826. <method name="run" return="int"
  41827. abstract="false" native="false" synchronized="false"
  41828. static="false" final="false" visibility="public"
  41829. deprecated="not deprecated">
  41830. <param name="args" type="java.lang.String[]"/>
  41831. <exception name="Exception" type="java.lang.Exception"/>
  41832. <doc>
  41833. <![CDATA[Execute the command with the given arguments.
  41834. @param args command specific arguments.
  41835. @return exit code.
  41836. @throws Exception]]>
  41837. </doc>
  41838. </method>
  41839. <doc>
  41840. <![CDATA[A tool interface that supports handling of generic command-line options.
  41841. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  41842. The tool/application should delegate the handling of
  41843. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  41844. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  41845. and only handle its custom arguments.</p>
  41846. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  41847. <p><blockquote><pre>
  41848. public class MyApp extends Configured implements Tool {
  41849. public int run(String[] args) throws Exception {
  41850. // <code>Configuration</code> processed by <code>ToolRunner</code>
  41851. Configuration conf = getConf();
  41852. // Create a JobConf using the processed <code>conf</code>
  41853. JobConf job = new JobConf(conf, MyApp.class);
  41854. // Process custom command-line options
  41855. Path in = new Path(args[1]);
  41856. Path out = new Path(args[2]);
  41857. // Specify various job-specific parameters
  41858. job.setJobName("my-app");
  41859. job.setInputPath(in);
  41860. job.setOutputPath(out);
  41861. job.setMapperClass(MyApp.MyMapper.class);
  41862. job.setReducerClass(MyApp.MyReducer.class);
  41863. // Submit the job, then poll for progress until the job is complete
  41864. JobClient.runJob(job);
  41865. }
  41866. public static void main(String[] args) throws Exception {
  41867. // Let <code>ToolRunner</code> handle generic command-line options
  41868. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  41869. System.exit(res);
  41870. }
  41871. }
  41872. </pre></blockquote></p>
  41873. @see GenericOptionsParser
  41874. @see ToolRunner]]>
  41875. </doc>
  41876. </interface>
  41877. <!-- end interface org.apache.hadoop.util.Tool -->
  41878. <!-- start class org.apache.hadoop.util.ToolRunner -->
  41879. <class name="ToolRunner" extends="java.lang.Object"
  41880. abstract="false"
  41881. static="false" final="false" visibility="public"
  41882. deprecated="not deprecated">
  41883. <constructor name="ToolRunner"
  41884. static="false" final="false" visibility="public"
  41885. deprecated="not deprecated">
  41886. </constructor>
  41887. <method name="run" return="int"
  41888. abstract="false" native="false" synchronized="false"
  41889. static="true" final="false" visibility="public"
  41890. deprecated="not deprecated">
  41891. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41892. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  41893. <param name="args" type="java.lang.String[]"/>
  41894. <exception name="Exception" type="java.lang.Exception"/>
  41895. <doc>
  41896. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  41897. parsing with the given generic arguments. Uses the given
  41898. <code>Configuration</code>, or builds one if null.
  41899. Sets the <code>Tool</code>'s configuration with the possibly modified
  41900. version of the <code>conf</code>.
  41901. @param conf <code>Configuration</code> for the <code>Tool</code>.
  41902. @param tool <code>Tool</code> to run.
  41903. @param args command-line arguments to the tool.
  41904. @return exit code of the {@link Tool#run(String[])} method.]]>
  41905. </doc>
  41906. </method>
  41907. <method name="run" return="int"
  41908. abstract="false" native="false" synchronized="false"
  41909. static="true" final="false" visibility="public"
  41910. deprecated="not deprecated">
  41911. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  41912. <param name="args" type="java.lang.String[]"/>
  41913. <exception name="Exception" type="java.lang.Exception"/>
  41914. <doc>
  41915. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  41916. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  41917. @param tool <code>Tool</code> to run.
  41918. @param args command-line arguments to the tool.
  41919. @return exit code of the {@link Tool#run(String[])} method.]]>
  41920. </doc>
  41921. </method>
  41922. <method name="printGenericCommandUsage"
  41923. abstract="false" native="false" synchronized="false"
  41924. static="true" final="false" visibility="public"
  41925. deprecated="not deprecated">
  41926. <param name="out" type="java.io.PrintStream"/>
  41927. <doc>
  41928. <![CDATA[Prints generic command-line argurments and usage information.
  41929. @param out stream to write usage information to.]]>
  41930. </doc>
  41931. </method>
  41932. <doc>
  41933. <![CDATA[A utility to help run {@link Tool}s.
  41934. <p><code>ToolRunner</code> can be used to run classes implementing
  41935. <code>Tool</code> interface. It works in conjunction with
  41936. {@link GenericOptionsParser} to parse the
  41937. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  41938. generic hadoop command line arguments</a> and modifies the
  41939. <code>Configuration</code> of the <code>Tool</code>. The
  41940. application-specific options are passed along without being modified.
  41941. </p>
  41942. @see Tool
  41943. @see GenericOptionsParser]]>
  41944. </doc>
  41945. </class>
  41946. <!-- end class org.apache.hadoop.util.ToolRunner -->
  41947. <!-- start class org.apache.hadoop.util.VersionInfo -->
  41948. <class name="VersionInfo" extends="java.lang.Object"
  41949. abstract="false"
  41950. static="false" final="false" visibility="public"
  41951. deprecated="not deprecated">
  41952. <constructor name="VersionInfo"
  41953. static="false" final="false" visibility="public"
  41954. deprecated="not deprecated">
  41955. </constructor>
  41956. <method name="getVersion" return="java.lang.String"
  41957. abstract="false" native="false" synchronized="false"
  41958. static="true" final="false" visibility="public"
  41959. deprecated="not deprecated">
  41960. <doc>
  41961. <![CDATA[Get the Hadoop version.
  41962. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  41963. </doc>
  41964. </method>
  41965. <method name="getRevision" return="java.lang.String"
  41966. abstract="false" native="false" synchronized="false"
  41967. static="true" final="false" visibility="public"
  41968. deprecated="not deprecated">
  41969. <doc>
  41970. <![CDATA[Get the subversion revision number for the root directory
  41971. @return the revision number, eg. "451451"]]>
  41972. </doc>
  41973. </method>
  41974. <method name="getDate" return="java.lang.String"
  41975. abstract="false" native="false" synchronized="false"
  41976. static="true" final="false" visibility="public"
  41977. deprecated="not deprecated">
  41978. <doc>
  41979. <![CDATA[The date that Hadoop was compiled.
  41980. @return the compilation date in unix date format]]>
  41981. </doc>
  41982. </method>
  41983. <method name="getUser" return="java.lang.String"
  41984. abstract="false" native="false" synchronized="false"
  41985. static="true" final="false" visibility="public"
  41986. deprecated="not deprecated">
  41987. <doc>
  41988. <![CDATA[The user that compiled Hadoop.
  41989. @return the username of the user]]>
  41990. </doc>
  41991. </method>
  41992. <method name="getUrl" return="java.lang.String"
  41993. abstract="false" native="false" synchronized="false"
  41994. static="true" final="false" visibility="public"
  41995. deprecated="not deprecated">
  41996. <doc>
  41997. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  41998. </doc>
  41999. </method>
  42000. <method name="main"
  42001. abstract="false" native="false" synchronized="false"
  42002. static="true" final="false" visibility="public"
  42003. deprecated="not deprecated">
  42004. <param name="args" type="java.lang.String[]"/>
  42005. </method>
  42006. <doc>
  42007. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  42008. information.]]>
  42009. </doc>
  42010. </class>
  42011. <!-- end class org.apache.hadoop.util.VersionInfo -->
  42012. <!-- start class org.apache.hadoop.util.XMLUtils -->
  42013. <class name="XMLUtils" extends="java.lang.Object"
  42014. abstract="false"
  42015. static="false" final="false" visibility="public"
  42016. deprecated="not deprecated">
  42017. <constructor name="XMLUtils"
  42018. static="false" final="false" visibility="public"
  42019. deprecated="not deprecated">
  42020. </constructor>
  42021. <method name="transform"
  42022. abstract="false" native="false" synchronized="false"
  42023. static="true" final="false" visibility="public"
  42024. deprecated="not deprecated">
  42025. <param name="styleSheet" type="java.io.InputStream"/>
  42026. <param name="xml" type="java.io.InputStream"/>
  42027. <param name="out" type="java.io.Writer"/>
  42028. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  42029. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  42030. <doc>
  42031. <![CDATA[Transform input xml given a stylesheet.
  42032. @param styleSheet the style-sheet
  42033. @param xml input xml data
  42034. @param out output
  42035. @throws TransformerConfigurationException
  42036. @throws TransformerException]]>
  42037. </doc>
  42038. </method>
  42039. <doc>
  42040. <![CDATA[General xml utilities.]]>
  42041. </doc>
  42042. </class>
  42043. <!-- end class org.apache.hadoop.util.XMLUtils -->
  42044. <doc>
  42045. <![CDATA[Common utilities.]]>
  42046. </doc>
  42047. </package>
  42048. </api>