hadoop_0.18.1.xml 1.8 MB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498154991550015501155021550315504155051550615507155081550915510155111551215513155141551515516155171551815519155201552115522155231552415525155261552715528155291553015531155321553315534155351553615537155381553915540155411554215543155441554515546155471554815549155501555115552155531555415555155561555715558155591556015561155621556315564155651556615567155681556915570155711557215573155741557515576155771557815579155801558115582155831558415585155861558715588155891559015591155921559315594155951559615597155981559915600156011560215603156041560515606156071560815609156101561115612156131561415615156161561715618156191562015621156221562315624156251562615627156281562915630156311563215633156341563515636156371563815639156401564115642156431564415645156461564715648156491565015651156521565315654156551565615657156581565915660156611566215663156641566515666156671566815669156701567115672156731567415675156761567715678156791568015681156821568315684156851568615687156881568915690156911569215693156941569515696156971569815699157001570115702157031570415705157061570715708157091571015711157121571315714157151571615717157181571915720157211572215723157241572515726157271572815729157301573115732157331573415735157361573715738157391574015741157421574315744157451574615747157481574915750157511575215753157541575515756157571575815759157601576115762157631576415765157661576715768157691577015771157721577315774157751577615777157781577915780157811578215783157841578515786157871578815789157901579115792157931579415795157961579715798157991580015801158021580315804158051580615807158081580915810158111581215813158141581515816158171581815819158201582115822158231582415825158261582715828158291583015831158321583315834158351583615837158381583915840158411584215843158441584515846158471584815849158501585115852158531585415855158561585715858158591586015861158621586315864158651586615867158681586915870158711587215873158741587515876158771587815879158801588115882158831588415885158861588715888158891589015891158921589315894158951589615897158981589915900159011590215903159041590515906159071590815909159101591115912159131591415915159161591715918159191592015921159221592315924159251592615927159281592915930159311593215933159341593515936159371593815939159401594115942159431594415945159461594715948159491595015951159521595315954159551595615957159581595915960159611596215963159641596515966159671596815969159701597115972159731597415975159761597715978159791598015981159821598315984159851598615987159881598915990159911599215993159941599515996159971599815999160001600116002160031600416005160061600716008160091601016011160121601316014160151601616017160181601916020160211602216023160241602516026160271602816029160301603116032160331603416035160361603716038160391604016041160421604316044160451604616047160481604916050160511605216053160541605516056160571605816059160601606116062160631606416065160661606716068160691607016071160721607316074160751607616077160781607916080160811608216083160841608516086160871608816089160901609116092160931609416095160961609716098160991610016101161021610316104161051610616107161081610916110161111611216113161141611516116161171611816119161201612116122161231612416125161261612716128161291613016131161321613316134161351613616137161381613916140161411614216143161441614516146161471614816149161501615116152161531615416155161561615716158161591616016161161621616316164161651616616167161681616916170161711617216173161741617516176161771617816179161801618116182161831618416185161861618716188161891619016191161921619316194161951619616197161981619916200162011620216203162041620516206162071620816209162101621116212162131621416215162161621716218162191622016221162221622316224162251622616227162281622916230162311623216233162341623516236162371623816239162401624116242162431624416245162461624716248162491625016251162521625316254162551625616257162581625916260162611626216263162641626516266162671626816269162701627116272162731627416275162761627716278162791628016281162821628316284162851628616287162881628916290162911629216293162941629516296162971629816299163001630116302163031630416305163061630716308163091631016311163121631316314163151631616317163181631916320163211632216323163241632516326163271632816329163301633116332163331633416335163361633716338163391634016341163421634316344163451634616347163481634916350163511635216353163541635516356163571635816359163601636116362163631636416365163661636716368163691637016371163721637316374163751637616377163781637916380163811638216383163841638516386163871638816389163901639116392163931639416395163961639716398163991640016401164021640316404164051640616407164081640916410164111641216413164141641516416164171641816419164201642116422164231642416425164261642716428164291643016431164321643316434164351643616437164381643916440164411644216443164441644516446164471644816449164501645116452164531645416455164561645716458164591646016461164621646316464164651646616467164681646916470164711647216473164741647516476164771647816479164801648116482164831648416485164861648716488164891649016491164921649316494164951649616497164981649916500165011650216503165041650516506165071650816509165101651116512165131651416515165161651716518165191652016521165221652316524165251652616527165281652916530165311653216533165341653516536165371653816539165401654116542165431654416545165461654716548165491655016551165521655316554165551655616557165581655916560165611656216563165641656516566165671656816569165701657116572165731657416575165761657716578165791658016581165821658316584165851658616587165881658916590165911659216593165941659516596165971659816599166001660116602166031660416605166061660716608166091661016611166121661316614166151661616617166181661916620166211662216623166241662516626166271662816629166301663116632166331663416635166361663716638166391664016641166421664316644166451664616647166481664916650166511665216653166541665516656166571665816659166601666116662166631666416665166661666716668166691667016671166721667316674166751667616677166781667916680166811668216683166841668516686166871668816689166901669116692166931669416695166961669716698166991670016701167021670316704167051670616707167081670916710167111671216713167141671516716167171671816719167201672116722167231672416725167261672716728167291673016731167321673316734167351673616737167381673916740167411674216743167441674516746167471674816749167501675116752167531675416755167561675716758167591676016761167621676316764167651676616767167681676916770167711677216773167741677516776167771677816779167801678116782167831678416785167861678716788167891679016791167921679316794167951679616797167981679916800168011680216803168041680516806168071680816809168101681116812168131681416815168161681716818168191682016821168221682316824168251682616827168281682916830168311683216833168341683516836168371683816839168401684116842168431684416845168461684716848168491685016851168521685316854168551685616857168581685916860168611686216863168641686516866168671686816869168701687116872168731687416875168761687716878168791688016881168821688316884168851688616887168881688916890168911689216893168941689516896168971689816899169001690116902169031690416905169061690716908169091691016911169121691316914169151691616917169181691916920169211692216923169241692516926169271692816929169301693116932169331693416935169361693716938169391694016941169421694316944169451694616947169481694916950169511695216953169541695516956169571695816959169601696116962169631696416965169661696716968169691697016971169721697316974169751697616977169781697916980169811698216983169841698516986169871698816989169901699116992169931699416995169961699716998169991700017001170021700317004170051700617007170081700917010170111701217013170141701517016170171701817019170201702117022170231702417025170261702717028170291703017031170321703317034170351703617037170381703917040170411704217043170441704517046170471704817049170501705117052170531705417055170561705717058170591706017061170621706317064170651706617067170681706917070170711707217073170741707517076170771707817079170801708117082170831708417085170861708717088170891709017091170921709317094170951709617097170981709917100171011710217103171041710517106171071710817109171101711117112171131711417115171161711717118171191712017121171221712317124171251712617127171281712917130171311713217133171341713517136171371713817139171401714117142171431714417145171461714717148171491715017151171521715317154171551715617157171581715917160171611716217163171641716517166171671716817169171701717117172171731717417175171761717717178171791718017181171821718317184171851718617187171881718917190171911719217193171941719517196171971719817199172001720117202172031720417205172061720717208172091721017211172121721317214172151721617217172181721917220172211722217223172241722517226172271722817229172301723117232172331723417235172361723717238172391724017241172421724317244172451724617247172481724917250172511725217253172541725517256172571725817259172601726117262172631726417265172661726717268172691727017271172721727317274172751727617277172781727917280172811728217283172841728517286172871728817289172901729117292172931729417295172961729717298172991730017301173021730317304173051730617307173081730917310173111731217313173141731517316173171731817319173201732117322173231732417325173261732717328173291733017331173321733317334173351733617337173381733917340173411734217343173441734517346173471734817349173501735117352173531735417355173561735717358173591736017361173621736317364173651736617367173681736917370173711737217373173741737517376173771737817379173801738117382173831738417385173861738717388173891739017391173921739317394173951739617397173981739917400174011740217403174041740517406174071740817409174101741117412174131741417415174161741717418174191742017421174221742317424174251742617427174281742917430174311743217433174341743517436174371743817439174401744117442174431744417445174461744717448174491745017451174521745317454174551745617457174581745917460174611746217463174641746517466174671746817469174701747117472174731747417475174761747717478174791748017481174821748317484174851748617487174881748917490174911749217493174941749517496174971749817499175001750117502175031750417505175061750717508175091751017511175121751317514175151751617517175181751917520175211752217523175241752517526175271752817529175301753117532175331753417535175361753717538175391754017541175421754317544175451754617547175481754917550175511755217553175541755517556175571755817559175601756117562175631756417565175661756717568175691757017571175721757317574175751757617577175781757917580175811758217583175841758517586175871758817589175901759117592175931759417595175961759717598175991760017601176021760317604176051760617607176081760917610176111761217613176141761517616176171761817619176201762117622176231762417625176261762717628176291763017631176321763317634176351763617637176381763917640176411764217643176441764517646176471764817649176501765117652176531765417655176561765717658176591766017661176621766317664176651766617667176681766917670176711767217673176741767517676176771767817679176801768117682176831768417685176861768717688176891769017691176921769317694176951769617697176981769917700177011770217703177041770517706177071770817709177101771117712177131771417715177161771717718177191772017721177221772317724177251772617727177281772917730177311773217733177341773517736177371773817739177401774117742177431774417745177461774717748177491775017751177521775317754177551775617757177581775917760177611776217763177641776517766177671776817769177701777117772177731777417775177761777717778177791778017781177821778317784177851778617787177881778917790177911779217793177941779517796177971779817799178001780117802178031780417805178061780717808178091781017811178121781317814178151781617817178181781917820178211782217823178241782517826178271782817829178301783117832178331783417835178361783717838178391784017841178421784317844178451784617847178481784917850178511785217853178541785517856178571785817859178601786117862178631786417865178661786717868178691787017871178721787317874178751787617877178781787917880178811788217883178841788517886178871788817889178901789117892178931789417895178961789717898178991790017901179021790317904179051790617907179081790917910179111791217913179141791517916179171791817919179201792117922179231792417925179261792717928179291793017931179321793317934179351793617937179381793917940179411794217943179441794517946179471794817949179501795117952179531795417955179561795717958179591796017961179621796317964179651796617967179681796917970179711797217973179741797517976179771797817979179801798117982179831798417985179861798717988179891799017991179921799317994179951799617997179981799918000180011800218003180041800518006180071800818009180101801118012180131801418015180161801718018180191802018021180221802318024180251802618027180281802918030180311803218033180341803518036180371803818039180401804118042180431804418045180461804718048180491805018051180521805318054180551805618057180581805918060180611806218063180641806518066180671806818069180701807118072180731807418075180761807718078180791808018081180821808318084180851808618087180881808918090180911809218093180941809518096180971809818099181001810118102181031810418105181061810718108181091811018111181121811318114181151811618117181181811918120181211812218123181241812518126181271812818129181301813118132181331813418135181361813718138181391814018141181421814318144181451814618147181481814918150181511815218153181541815518156181571815818159181601816118162181631816418165181661816718168181691817018171181721817318174181751817618177181781817918180181811818218183181841818518186181871818818189181901819118192181931819418195181961819718198181991820018201182021820318204182051820618207182081820918210182111821218213182141821518216182171821818219182201822118222182231822418225182261822718228182291823018231182321823318234182351823618237182381823918240182411824218243182441824518246182471824818249182501825118252182531825418255182561825718258182591826018261182621826318264182651826618267182681826918270182711827218273182741827518276182771827818279182801828118282182831828418285182861828718288182891829018291182921829318294182951829618297182981829918300183011830218303183041830518306183071830818309183101831118312183131831418315183161831718318183191832018321183221832318324183251832618327183281832918330183311833218333183341833518336183371833818339183401834118342183431834418345183461834718348183491835018351183521835318354183551835618357183581835918360183611836218363183641836518366183671836818369183701837118372183731837418375183761837718378183791838018381183821838318384183851838618387183881838918390183911839218393183941839518396183971839818399184001840118402184031840418405184061840718408184091841018411184121841318414184151841618417184181841918420184211842218423184241842518426184271842818429184301843118432184331843418435184361843718438184391844018441184421844318444184451844618447184481844918450184511845218453184541845518456184571845818459184601846118462184631846418465184661846718468184691847018471184721847318474184751847618477184781847918480184811848218483184841848518486184871848818489184901849118492184931849418495184961849718498184991850018501185021850318504185051850618507185081850918510185111851218513185141851518516185171851818519185201852118522185231852418525185261852718528185291853018531185321853318534185351853618537185381853918540185411854218543185441854518546185471854818549185501855118552185531855418555185561855718558185591856018561185621856318564185651856618567185681856918570185711857218573185741857518576185771857818579185801858118582185831858418585185861858718588185891859018591185921859318594185951859618597185981859918600186011860218603186041860518606186071860818609186101861118612186131861418615186161861718618186191862018621186221862318624186251862618627186281862918630186311863218633186341863518636186371863818639186401864118642186431864418645186461864718648186491865018651186521865318654186551865618657186581865918660186611866218663186641866518666186671866818669186701867118672186731867418675186761867718678186791868018681186821868318684186851868618687186881868918690186911869218693186941869518696186971869818699187001870118702187031870418705187061870718708187091871018711187121871318714187151871618717187181871918720187211872218723187241872518726187271872818729187301873118732187331873418735187361873718738187391874018741187421874318744187451874618747187481874918750187511875218753187541875518756187571875818759187601876118762187631876418765187661876718768187691877018771187721877318774187751877618777187781877918780187811878218783187841878518786187871878818789187901879118792187931879418795187961879718798187991880018801188021880318804188051880618807188081880918810188111881218813188141881518816188171881818819188201882118822188231882418825188261882718828188291883018831188321883318834188351883618837188381883918840188411884218843188441884518846188471884818849188501885118852188531885418855188561885718858188591886018861188621886318864188651886618867188681886918870188711887218873188741887518876188771887818879188801888118882188831888418885188861888718888188891889018891188921889318894188951889618897188981889918900189011890218903189041890518906189071890818909189101891118912189131891418915189161891718918189191892018921189221892318924189251892618927189281892918930189311893218933189341893518936189371893818939189401894118942189431894418945189461894718948189491895018951189521895318954189551895618957189581895918960189611896218963189641896518966189671896818969189701897118972189731897418975189761897718978189791898018981189821898318984189851898618987189881898918990189911899218993189941899518996189971899818999190001900119002190031900419005190061900719008190091901019011190121901319014190151901619017190181901919020190211902219023190241902519026190271902819029190301903119032190331903419035190361903719038190391904019041190421904319044190451904619047190481904919050190511905219053190541905519056190571905819059190601906119062190631906419065190661906719068190691907019071190721907319074190751907619077190781907919080190811908219083190841908519086190871908819089190901909119092190931909419095190961909719098190991910019101191021910319104191051910619107191081910919110191111911219113191141911519116191171911819119191201912119122191231912419125191261912719128191291913019131191321913319134191351913619137191381913919140191411914219143191441914519146191471914819149191501915119152191531915419155191561915719158191591916019161191621916319164191651916619167191681916919170191711917219173191741917519176191771917819179191801918119182191831918419185191861918719188191891919019191191921919319194191951919619197191981919919200192011920219203192041920519206192071920819209192101921119212192131921419215192161921719218192191922019221192221922319224192251922619227192281922919230192311923219233192341923519236192371923819239192401924119242192431924419245192461924719248192491925019251192521925319254192551925619257192581925919260192611926219263192641926519266192671926819269192701927119272192731927419275192761927719278192791928019281192821928319284192851928619287192881928919290192911929219293192941929519296192971929819299193001930119302193031930419305193061930719308193091931019311193121931319314193151931619317193181931919320193211932219323193241932519326193271932819329193301933119332193331933419335193361933719338193391934019341193421934319344193451934619347193481934919350193511935219353193541935519356193571935819359193601936119362193631936419365193661936719368193691937019371193721937319374193751937619377193781937919380193811938219383193841938519386193871938819389193901939119392193931939419395193961939719398193991940019401194021940319404194051940619407194081940919410194111941219413194141941519416194171941819419194201942119422194231942419425194261942719428194291943019431194321943319434194351943619437194381943919440194411944219443194441944519446194471944819449194501945119452194531945419455194561945719458194591946019461194621946319464194651946619467194681946919470194711947219473194741947519476194771947819479194801948119482194831948419485194861948719488194891949019491194921949319494194951949619497194981949919500195011950219503195041950519506195071950819509195101951119512195131951419515195161951719518195191952019521195221952319524195251952619527195281952919530195311953219533195341953519536195371953819539195401954119542195431954419545195461954719548195491955019551195521955319554195551955619557195581955919560195611956219563195641956519566195671956819569195701957119572195731957419575195761957719578195791958019581195821958319584195851958619587195881958919590195911959219593195941959519596195971959819599196001960119602196031960419605196061960719608196091961019611196121961319614196151961619617196181961919620196211962219623196241962519626196271962819629196301963119632196331963419635196361963719638196391964019641196421964319644196451964619647196481964919650196511965219653196541965519656196571965819659196601966119662196631966419665196661966719668196691967019671196721967319674196751967619677196781967919680196811968219683196841968519686196871968819689196901969119692196931969419695196961969719698196991970019701197021970319704197051970619707197081970919710197111971219713197141971519716197171971819719197201972119722197231972419725197261972719728197291973019731197321973319734197351973619737197381973919740197411974219743197441974519746197471974819749197501975119752197531975419755197561975719758197591976019761197621976319764197651976619767197681976919770197711977219773197741977519776197771977819779197801978119782197831978419785197861978719788197891979019791197921979319794197951979619797197981979919800198011980219803198041980519806198071980819809198101981119812198131981419815198161981719818198191982019821198221982319824198251982619827198281982919830198311983219833198341983519836198371983819839198401984119842198431984419845198461984719848198491985019851198521985319854198551985619857198581985919860198611986219863198641986519866198671986819869198701987119872198731987419875198761987719878198791988019881198821988319884198851988619887198881988919890198911989219893198941989519896198971989819899199001990119902199031990419905199061990719908199091991019911199121991319914199151991619917199181991919920199211992219923199241992519926199271992819929199301993119932199331993419935199361993719938199391994019941199421994319944199451994619947199481994919950199511995219953199541995519956199571995819959199601996119962199631996419965199661996719968199691997019971199721997319974199751997619977199781997919980199811998219983199841998519986199871998819989199901999119992199931999419995199961999719998199992000020001200022000320004200052000620007200082000920010200112001220013200142001520016200172001820019200202002120022200232002420025200262002720028200292003020031200322003320034200352003620037200382003920040200412004220043200442004520046200472004820049200502005120052200532005420055200562005720058200592006020061200622006320064200652006620067200682006920070200712007220073200742007520076200772007820079200802008120082200832008420085200862008720088200892009020091200922009320094200952009620097200982009920100201012010220103201042010520106201072010820109201102011120112201132011420115201162011720118201192012020121201222012320124201252012620127201282012920130201312013220133201342013520136201372013820139201402014120142201432014420145201462014720148201492015020151201522015320154201552015620157201582015920160201612016220163201642016520166201672016820169201702017120172201732017420175201762017720178201792018020181201822018320184201852018620187201882018920190201912019220193201942019520196201972019820199202002020120202202032020420205202062020720208202092021020211202122021320214202152021620217202182021920220202212022220223202242022520226202272022820229202302023120232202332023420235202362023720238202392024020241202422024320244202452024620247202482024920250202512025220253202542025520256202572025820259202602026120262202632026420265202662026720268202692027020271202722027320274202752027620277202782027920280202812028220283202842028520286202872028820289202902029120292202932029420295202962029720298202992030020301203022030320304203052030620307203082030920310203112031220313203142031520316203172031820319203202032120322203232032420325203262032720328203292033020331203322033320334203352033620337203382033920340203412034220343203442034520346203472034820349203502035120352203532035420355203562035720358203592036020361203622036320364203652036620367203682036920370203712037220373203742037520376203772037820379203802038120382203832038420385203862038720388203892039020391203922039320394203952039620397203982039920400204012040220403204042040520406204072040820409204102041120412204132041420415204162041720418204192042020421204222042320424204252042620427204282042920430204312043220433204342043520436204372043820439204402044120442204432044420445204462044720448204492045020451204522045320454204552045620457204582045920460204612046220463204642046520466204672046820469204702047120472204732047420475204762047720478204792048020481204822048320484204852048620487204882048920490204912049220493204942049520496204972049820499205002050120502205032050420505205062050720508205092051020511205122051320514205152051620517205182051920520205212052220523205242052520526205272052820529205302053120532205332053420535205362053720538205392054020541205422054320544205452054620547205482054920550205512055220553205542055520556205572055820559205602056120562205632056420565205662056720568205692057020571205722057320574205752057620577205782057920580205812058220583205842058520586205872058820589205902059120592205932059420595205962059720598205992060020601206022060320604206052060620607206082060920610206112061220613206142061520616206172061820619206202062120622206232062420625206262062720628206292063020631206322063320634206352063620637206382063920640206412064220643206442064520646206472064820649206502065120652206532065420655206562065720658206592066020661206622066320664206652066620667206682066920670206712067220673206742067520676206772067820679206802068120682206832068420685206862068720688206892069020691206922069320694206952069620697206982069920700207012070220703207042070520706207072070820709207102071120712207132071420715207162071720718207192072020721207222072320724207252072620727207282072920730207312073220733207342073520736207372073820739207402074120742207432074420745207462074720748207492075020751207522075320754207552075620757207582075920760207612076220763207642076520766207672076820769207702077120772207732077420775207762077720778207792078020781207822078320784207852078620787207882078920790207912079220793207942079520796207972079820799208002080120802208032080420805208062080720808208092081020811208122081320814208152081620817208182081920820208212082220823208242082520826208272082820829208302083120832208332083420835208362083720838208392084020841208422084320844208452084620847208482084920850208512085220853208542085520856208572085820859208602086120862208632086420865208662086720868208692087020871208722087320874208752087620877208782087920880208812088220883208842088520886208872088820889208902089120892208932089420895208962089720898208992090020901209022090320904209052090620907209082090920910209112091220913209142091520916209172091820919209202092120922209232092420925209262092720928209292093020931209322093320934209352093620937209382093920940209412094220943209442094520946209472094820949209502095120952209532095420955209562095720958209592096020961209622096320964209652096620967209682096920970209712097220973209742097520976209772097820979209802098120982209832098420985209862098720988209892099020991209922099320994209952099620997209982099921000210012100221003210042100521006210072100821009210102101121012210132101421015210162101721018210192102021021210222102321024210252102621027210282102921030210312103221033210342103521036210372103821039210402104121042210432104421045210462104721048210492105021051210522105321054210552105621057210582105921060210612106221063210642106521066210672106821069210702107121072210732107421075210762107721078210792108021081210822108321084210852108621087210882108921090210912109221093210942109521096210972109821099211002110121102211032110421105211062110721108211092111021111211122111321114211152111621117211182111921120211212112221123211242112521126211272112821129211302113121132211332113421135211362113721138211392114021141211422114321144211452114621147211482114921150211512115221153211542115521156211572115821159211602116121162211632116421165211662116721168211692117021171211722117321174211752117621177211782117921180211812118221183211842118521186211872118821189211902119121192211932119421195211962119721198211992120021201212022120321204212052120621207212082120921210212112121221213212142121521216212172121821219212202122121222212232122421225212262122721228212292123021231212322123321234212352123621237212382123921240212412124221243212442124521246212472124821249212502125121252212532125421255212562125721258212592126021261212622126321264212652126621267212682126921270212712127221273212742127521276212772127821279212802128121282212832128421285212862128721288212892129021291212922129321294212952129621297212982129921300213012130221303213042130521306213072130821309213102131121312213132131421315213162131721318213192132021321213222132321324213252132621327213282132921330213312133221333213342133521336213372133821339213402134121342213432134421345213462134721348213492135021351213522135321354213552135621357213582135921360213612136221363213642136521366213672136821369213702137121372213732137421375213762137721378213792138021381213822138321384213852138621387213882138921390213912139221393213942139521396213972139821399214002140121402214032140421405214062140721408214092141021411214122141321414214152141621417214182141921420214212142221423214242142521426214272142821429214302143121432214332143421435214362143721438214392144021441214422144321444214452144621447214482144921450214512145221453214542145521456214572145821459214602146121462214632146421465214662146721468214692147021471214722147321474214752147621477214782147921480214812148221483214842148521486214872148821489214902149121492214932149421495214962149721498214992150021501215022150321504215052150621507215082150921510215112151221513215142151521516215172151821519215202152121522215232152421525215262152721528215292153021531215322153321534215352153621537215382153921540215412154221543215442154521546215472154821549215502155121552215532155421555215562155721558215592156021561215622156321564215652156621567215682156921570215712157221573215742157521576215772157821579215802158121582215832158421585215862158721588215892159021591215922159321594215952159621597215982159921600216012160221603216042160521606216072160821609216102161121612216132161421615216162161721618216192162021621216222162321624216252162621627216282162921630216312163221633216342163521636216372163821639216402164121642216432164421645216462164721648216492165021651216522165321654216552165621657216582165921660216612166221663216642166521666216672166821669216702167121672216732167421675216762167721678216792168021681216822168321684216852168621687216882168921690216912169221693216942169521696216972169821699217002170121702217032170421705217062170721708217092171021711217122171321714217152171621717217182171921720217212172221723217242172521726217272172821729217302173121732217332173421735217362173721738217392174021741217422174321744217452174621747217482174921750217512175221753217542175521756217572175821759217602176121762217632176421765217662176721768217692177021771217722177321774217752177621777217782177921780217812178221783217842178521786217872178821789217902179121792217932179421795217962179721798217992180021801218022180321804218052180621807218082180921810218112181221813218142181521816218172181821819218202182121822218232182421825218262182721828218292183021831218322183321834218352183621837218382183921840218412184221843218442184521846218472184821849218502185121852218532185421855218562185721858218592186021861218622186321864218652186621867218682186921870218712187221873218742187521876218772187821879218802188121882218832188421885218862188721888218892189021891218922189321894218952189621897218982189921900219012190221903219042190521906219072190821909219102191121912219132191421915219162191721918219192192021921219222192321924219252192621927219282192921930219312193221933219342193521936219372193821939219402194121942219432194421945219462194721948219492195021951219522195321954219552195621957219582195921960219612196221963219642196521966219672196821969219702197121972219732197421975219762197721978219792198021981219822198321984219852198621987219882198921990219912199221993219942199521996219972199821999220002200122002220032200422005220062200722008220092201022011220122201322014220152201622017220182201922020220212202222023220242202522026220272202822029220302203122032220332203422035220362203722038220392204022041220422204322044220452204622047220482204922050220512205222053220542205522056220572205822059220602206122062220632206422065220662206722068220692207022071220722207322074220752207622077220782207922080220812208222083220842208522086220872208822089220902209122092220932209422095220962209722098220992210022101221022210322104221052210622107221082210922110221112211222113221142211522116221172211822119221202212122122221232212422125221262212722128221292213022131221322213322134221352213622137221382213922140221412214222143221442214522146221472214822149221502215122152221532215422155221562215722158221592216022161221622216322164221652216622167221682216922170221712217222173221742217522176221772217822179221802218122182221832218422185221862218722188221892219022191221922219322194221952219622197221982219922200222012220222203222042220522206222072220822209222102221122212222132221422215222162221722218222192222022221222222222322224222252222622227222282222922230222312223222233222342223522236222372223822239222402224122242222432224422245222462224722248222492225022251222522225322254222552225622257222582225922260222612226222263222642226522266222672226822269222702227122272222732227422275222762227722278222792228022281222822228322284222852228622287222882228922290222912229222293222942229522296222972229822299223002230122302223032230422305223062230722308223092231022311223122231322314223152231622317223182231922320223212232222323223242232522326223272232822329223302233122332223332233422335223362233722338223392234022341223422234322344223452234622347223482234922350223512235222353223542235522356223572235822359223602236122362223632236422365223662236722368223692237022371223722237322374223752237622377223782237922380223812238222383223842238522386223872238822389223902239122392223932239422395223962239722398223992240022401224022240322404224052240622407224082240922410224112241222413224142241522416224172241822419224202242122422224232242422425224262242722428224292243022431224322243322434224352243622437224382243922440224412244222443224442244522446224472244822449224502245122452224532245422455224562245722458224592246022461224622246322464224652246622467224682246922470224712247222473224742247522476224772247822479224802248122482224832248422485224862248722488224892249022491224922249322494224952249622497224982249922500225012250222503225042250522506225072250822509225102251122512225132251422515225162251722518225192252022521225222252322524225252252622527225282252922530225312253222533225342253522536225372253822539225402254122542225432254422545225462254722548225492255022551225522255322554225552255622557225582255922560225612256222563225642256522566225672256822569225702257122572225732257422575225762257722578225792258022581225822258322584225852258622587225882258922590225912259222593225942259522596225972259822599226002260122602226032260422605226062260722608226092261022611226122261322614226152261622617226182261922620226212262222623226242262522626226272262822629226302263122632226332263422635226362263722638226392264022641226422264322644226452264622647226482264922650226512265222653226542265522656226572265822659226602266122662226632266422665226662266722668226692267022671226722267322674226752267622677226782267922680226812268222683226842268522686226872268822689226902269122692226932269422695226962269722698226992270022701227022270322704227052270622707227082270922710227112271222713227142271522716227172271822719227202272122722227232272422725227262272722728227292273022731227322273322734227352273622737227382273922740227412274222743227442274522746227472274822749227502275122752227532275422755227562275722758227592276022761227622276322764227652276622767227682276922770227712277222773227742277522776227772277822779227802278122782227832278422785227862278722788227892279022791227922279322794227952279622797227982279922800228012280222803228042280522806228072280822809228102281122812228132281422815228162281722818228192282022821228222282322824228252282622827228282282922830228312283222833228342283522836228372283822839228402284122842228432284422845228462284722848228492285022851228522285322854228552285622857228582285922860228612286222863228642286522866228672286822869228702287122872228732287422875228762287722878228792288022881228822288322884228852288622887228882288922890228912289222893228942289522896228972289822899229002290122902229032290422905229062290722908229092291022911229122291322914229152291622917229182291922920229212292222923229242292522926229272292822929229302293122932229332293422935229362293722938229392294022941229422294322944229452294622947229482294922950229512295222953229542295522956229572295822959229602296122962229632296422965229662296722968229692297022971229722297322974229752297622977229782297922980229812298222983229842298522986229872298822989229902299122992229932299422995229962299722998229992300023001230022300323004230052300623007230082300923010230112301223013230142301523016230172301823019230202302123022230232302423025230262302723028230292303023031230322303323034230352303623037230382303923040230412304223043230442304523046230472304823049230502305123052230532305423055230562305723058230592306023061230622306323064230652306623067230682306923070230712307223073230742307523076230772307823079230802308123082230832308423085230862308723088230892309023091230922309323094230952309623097230982309923100231012310223103231042310523106231072310823109231102311123112231132311423115231162311723118231192312023121231222312323124231252312623127231282312923130231312313223133231342313523136231372313823139231402314123142231432314423145231462314723148231492315023151231522315323154231552315623157231582315923160231612316223163231642316523166231672316823169231702317123172231732317423175231762317723178231792318023181231822318323184231852318623187231882318923190231912319223193231942319523196231972319823199232002320123202232032320423205232062320723208232092321023211232122321323214232152321623217232182321923220232212322223223232242322523226232272322823229232302323123232232332323423235232362323723238232392324023241232422324323244232452324623247232482324923250232512325223253232542325523256232572325823259232602326123262232632326423265232662326723268232692327023271232722327323274232752327623277232782327923280232812328223283232842328523286232872328823289232902329123292232932329423295232962329723298232992330023301233022330323304233052330623307233082330923310233112331223313233142331523316233172331823319233202332123322233232332423325233262332723328233292333023331233322333323334233352333623337233382333923340233412334223343233442334523346233472334823349233502335123352233532335423355233562335723358233592336023361233622336323364233652336623367233682336923370233712337223373233742337523376233772337823379233802338123382233832338423385233862338723388233892339023391233922339323394233952339623397233982339923400234012340223403234042340523406234072340823409234102341123412234132341423415234162341723418234192342023421234222342323424234252342623427234282342923430234312343223433234342343523436234372343823439234402344123442234432344423445234462344723448234492345023451234522345323454234552345623457234582345923460234612346223463234642346523466234672346823469234702347123472234732347423475234762347723478234792348023481234822348323484234852348623487234882348923490234912349223493234942349523496234972349823499235002350123502235032350423505235062350723508235092351023511235122351323514235152351623517235182351923520235212352223523235242352523526235272352823529235302353123532235332353423535235362353723538235392354023541235422354323544235452354623547235482354923550235512355223553235542355523556235572355823559235602356123562235632356423565235662356723568235692357023571235722357323574235752357623577235782357923580235812358223583235842358523586235872358823589235902359123592235932359423595235962359723598235992360023601236022360323604236052360623607236082360923610236112361223613236142361523616236172361823619236202362123622236232362423625236262362723628236292363023631236322363323634236352363623637236382363923640236412364223643236442364523646236472364823649236502365123652236532365423655236562365723658236592366023661236622366323664236652366623667236682366923670236712367223673236742367523676236772367823679236802368123682236832368423685236862368723688236892369023691236922369323694236952369623697236982369923700237012370223703237042370523706237072370823709237102371123712237132371423715237162371723718237192372023721237222372323724237252372623727237282372923730237312373223733237342373523736237372373823739237402374123742237432374423745237462374723748237492375023751237522375323754237552375623757237582375923760237612376223763237642376523766237672376823769237702377123772237732377423775237762377723778237792378023781237822378323784237852378623787237882378923790237912379223793237942379523796237972379823799238002380123802238032380423805238062380723808238092381023811238122381323814238152381623817238182381923820238212382223823238242382523826238272382823829238302383123832238332383423835238362383723838238392384023841238422384323844238452384623847238482384923850238512385223853238542385523856238572385823859238602386123862238632386423865238662386723868238692387023871238722387323874238752387623877238782387923880238812388223883238842388523886238872388823889238902389123892238932389423895238962389723898238992390023901239022390323904239052390623907239082390923910239112391223913239142391523916239172391823919239202392123922239232392423925239262392723928239292393023931239322393323934239352393623937239382393923940239412394223943239442394523946239472394823949239502395123952239532395423955239562395723958239592396023961239622396323964239652396623967239682396923970239712397223973239742397523976239772397823979239802398123982239832398423985239862398723988239892399023991239922399323994239952399623997239982399924000240012400224003240042400524006240072400824009240102401124012240132401424015240162401724018240192402024021240222402324024240252402624027240282402924030240312403224033240342403524036240372403824039240402404124042240432404424045240462404724048240492405024051240522405324054240552405624057240582405924060240612406224063240642406524066240672406824069240702407124072240732407424075240762407724078240792408024081240822408324084240852408624087240882408924090240912409224093240942409524096240972409824099241002410124102241032410424105241062410724108241092411024111241122411324114241152411624117241182411924120241212412224123241242412524126241272412824129241302413124132241332413424135241362413724138241392414024141241422414324144241452414624147241482414924150241512415224153241542415524156241572415824159241602416124162241632416424165241662416724168241692417024171241722417324174241752417624177241782417924180241812418224183241842418524186241872418824189241902419124192241932419424195241962419724198241992420024201242022420324204242052420624207242082420924210242112421224213242142421524216242172421824219242202422124222242232422424225242262422724228242292423024231242322423324234242352423624237242382423924240242412424224243242442424524246242472424824249242502425124252242532425424255242562425724258242592426024261242622426324264242652426624267242682426924270242712427224273242742427524276242772427824279242802428124282242832428424285242862428724288242892429024291242922429324294242952429624297242982429924300243012430224303243042430524306243072430824309243102431124312243132431424315243162431724318243192432024321243222432324324243252432624327243282432924330243312433224333243342433524336243372433824339243402434124342243432434424345243462434724348243492435024351243522435324354243552435624357243582435924360243612436224363243642436524366243672436824369243702437124372243732437424375243762437724378243792438024381243822438324384243852438624387243882438924390243912439224393243942439524396243972439824399244002440124402244032440424405244062440724408244092441024411244122441324414244152441624417244182441924420244212442224423244242442524426244272442824429244302443124432244332443424435244362443724438244392444024441244422444324444244452444624447244482444924450244512445224453244542445524456244572445824459244602446124462244632446424465244662446724468244692447024471244722447324474244752447624477244782447924480244812448224483244842448524486244872448824489244902449124492244932449424495244962449724498244992450024501245022450324504245052450624507245082450924510245112451224513245142451524516245172451824519245202452124522245232452424525245262452724528245292453024531245322453324534245352453624537245382453924540245412454224543245442454524546245472454824549245502455124552245532455424555245562455724558245592456024561245622456324564245652456624567245682456924570245712457224573245742457524576245772457824579245802458124582245832458424585245862458724588245892459024591245922459324594245952459624597245982459924600246012460224603246042460524606246072460824609246102461124612246132461424615246162461724618246192462024621246222462324624246252462624627246282462924630246312463224633246342463524636246372463824639246402464124642246432464424645246462464724648246492465024651246522465324654246552465624657246582465924660246612466224663246642466524666246672466824669246702467124672246732467424675246762467724678246792468024681246822468324684246852468624687246882468924690246912469224693246942469524696246972469824699247002470124702247032470424705247062470724708247092471024711247122471324714247152471624717247182471924720247212472224723247242472524726247272472824729247302473124732247332473424735247362473724738247392474024741247422474324744247452474624747247482474924750247512475224753247542475524756247572475824759247602476124762247632476424765247662476724768247692477024771247722477324774247752477624777247782477924780247812478224783247842478524786247872478824789247902479124792247932479424795247962479724798247992480024801248022480324804248052480624807248082480924810248112481224813248142481524816248172481824819248202482124822248232482424825248262482724828248292483024831248322483324834248352483624837248382483924840248412484224843248442484524846248472484824849248502485124852248532485424855248562485724858248592486024861248622486324864248652486624867248682486924870248712487224873248742487524876248772487824879248802488124882248832488424885248862488724888248892489024891248922489324894248952489624897248982489924900249012490224903249042490524906249072490824909249102491124912249132491424915249162491724918249192492024921249222492324924249252492624927249282492924930249312493224933249342493524936249372493824939249402494124942249432494424945249462494724948249492495024951249522495324954249552495624957249582495924960249612496224963249642496524966249672496824969249702497124972249732497424975249762497724978249792498024981249822498324984249852498624987249882498924990249912499224993249942499524996249972499824999250002500125002250032500425005250062500725008250092501025011250122501325014250152501625017250182501925020250212502225023250242502525026250272502825029250302503125032250332503425035250362503725038250392504025041250422504325044250452504625047250482504925050250512505225053250542505525056250572505825059250602506125062250632506425065250662506725068250692507025071250722507325074250752507625077250782507925080250812508225083250842508525086250872508825089250902509125092250932509425095250962509725098250992510025101251022510325104251052510625107251082510925110251112511225113251142511525116251172511825119251202512125122251232512425125251262512725128251292513025131251322513325134251352513625137251382513925140251412514225143251442514525146251472514825149251502515125152251532515425155251562515725158251592516025161251622516325164251652516625167251682516925170251712517225173251742517525176251772517825179251802518125182251832518425185251862518725188251892519025191251922519325194251952519625197251982519925200252012520225203252042520525206252072520825209252102521125212252132521425215252162521725218252192522025221252222522325224252252522625227252282522925230252312523225233252342523525236252372523825239252402524125242252432524425245252462524725248252492525025251252522525325254252552525625257252582525925260252612526225263252642526525266252672526825269252702527125272252732527425275252762527725278252792528025281252822528325284252852528625287252882528925290252912529225293252942529525296252972529825299253002530125302253032530425305253062530725308253092531025311253122531325314253152531625317253182531925320253212532225323253242532525326253272532825329253302533125332253332533425335253362533725338253392534025341253422534325344253452534625347253482534925350253512535225353253542535525356253572535825359253602536125362253632536425365253662536725368253692537025371253722537325374253752537625377253782537925380253812538225383253842538525386253872538825389253902539125392253932539425395253962539725398253992540025401254022540325404254052540625407254082540925410254112541225413254142541525416254172541825419254202542125422254232542425425254262542725428254292543025431254322543325434254352543625437254382543925440254412544225443254442544525446254472544825449254502545125452254532545425455254562545725458254592546025461254622546325464254652546625467254682546925470254712547225473254742547525476254772547825479254802548125482254832548425485254862548725488254892549025491254922549325494254952549625497254982549925500255012550225503255042550525506255072550825509255102551125512255132551425515255162551725518255192552025521255222552325524255252552625527255282552925530255312553225533255342553525536255372553825539255402554125542255432554425545255462554725548255492555025551255522555325554255552555625557255582555925560255612556225563255642556525566255672556825569255702557125572255732557425575255762557725578255792558025581255822558325584255852558625587255882558925590255912559225593255942559525596255972559825599256002560125602256032560425605256062560725608256092561025611256122561325614256152561625617256182561925620256212562225623256242562525626256272562825629256302563125632256332563425635256362563725638256392564025641256422564325644256452564625647256482564925650256512565225653256542565525656256572565825659256602566125662256632566425665256662566725668256692567025671256722567325674256752567625677256782567925680256812568225683256842568525686256872568825689256902569125692256932569425695256962569725698256992570025701257022570325704257052570625707257082570925710257112571225713257142571525716257172571825719257202572125722257232572425725257262572725728257292573025731257322573325734257352573625737257382573925740257412574225743257442574525746257472574825749257502575125752257532575425755257562575725758257592576025761257622576325764257652576625767257682576925770257712577225773257742577525776257772577825779257802578125782257832578425785257862578725788257892579025791257922579325794257952579625797257982579925800258012580225803258042580525806258072580825809258102581125812258132581425815258162581725818258192582025821258222582325824258252582625827258282582925830258312583225833258342583525836258372583825839258402584125842258432584425845258462584725848258492585025851258522585325854258552585625857258582585925860258612586225863258642586525866258672586825869258702587125872258732587425875258762587725878258792588025881258822588325884258852588625887258882588925890258912589225893258942589525896258972589825899259002590125902259032590425905259062590725908259092591025911259122591325914259152591625917259182591925920259212592225923259242592525926259272592825929259302593125932259332593425935259362593725938259392594025941259422594325944259452594625947259482594925950259512595225953259542595525956259572595825959259602596125962259632596425965259662596725968259692597025971259722597325974259752597625977259782597925980259812598225983259842598525986259872598825989259902599125992259932599425995259962599725998259992600026001260022600326004260052600626007260082600926010260112601226013260142601526016260172601826019260202602126022260232602426025260262602726028260292603026031260322603326034260352603626037260382603926040260412604226043260442604526046260472604826049260502605126052260532605426055260562605726058260592606026061260622606326064260652606626067260682606926070260712607226073260742607526076260772607826079260802608126082260832608426085260862608726088260892609026091260922609326094260952609626097260982609926100261012610226103261042610526106261072610826109261102611126112261132611426115261162611726118261192612026121261222612326124261252612626127261282612926130261312613226133261342613526136261372613826139261402614126142261432614426145261462614726148261492615026151261522615326154261552615626157261582615926160261612616226163261642616526166261672616826169261702617126172261732617426175261762617726178261792618026181261822618326184261852618626187261882618926190261912619226193261942619526196261972619826199262002620126202262032620426205262062620726208262092621026211262122621326214262152621626217262182621926220262212622226223262242622526226262272622826229262302623126232262332623426235262362623726238262392624026241262422624326244262452624626247262482624926250262512625226253262542625526256262572625826259262602626126262262632626426265262662626726268262692627026271262722627326274262752627626277262782627926280262812628226283262842628526286262872628826289262902629126292262932629426295262962629726298262992630026301263022630326304263052630626307263082630926310263112631226313263142631526316263172631826319263202632126322263232632426325263262632726328263292633026331263322633326334263352633626337263382633926340263412634226343263442634526346263472634826349263502635126352263532635426355263562635726358263592636026361263622636326364263652636626367263682636926370263712637226373263742637526376263772637826379263802638126382263832638426385263862638726388263892639026391263922639326394263952639626397263982639926400264012640226403264042640526406264072640826409264102641126412264132641426415264162641726418264192642026421264222642326424264252642626427264282642926430264312643226433264342643526436264372643826439264402644126442264432644426445264462644726448264492645026451264522645326454264552645626457264582645926460264612646226463264642646526466264672646826469264702647126472264732647426475264762647726478264792648026481264822648326484264852648626487264882648926490264912649226493264942649526496264972649826499265002650126502265032650426505265062650726508265092651026511265122651326514265152651626517265182651926520265212652226523265242652526526265272652826529265302653126532265332653426535265362653726538265392654026541265422654326544265452654626547265482654926550265512655226553265542655526556265572655826559265602656126562265632656426565265662656726568265692657026571265722657326574265752657626577265782657926580265812658226583265842658526586265872658826589265902659126592265932659426595265962659726598265992660026601266022660326604266052660626607266082660926610266112661226613266142661526616266172661826619266202662126622266232662426625266262662726628266292663026631266322663326634266352663626637266382663926640266412664226643266442664526646266472664826649266502665126652266532665426655266562665726658266592666026661266622666326664266652666626667266682666926670266712667226673266742667526676266772667826679266802668126682266832668426685266862668726688266892669026691266922669326694266952669626697266982669926700267012670226703267042670526706267072670826709267102671126712267132671426715267162671726718267192672026721267222672326724267252672626727267282672926730267312673226733267342673526736267372673826739267402674126742267432674426745267462674726748267492675026751267522675326754267552675626757267582675926760267612676226763267642676526766267672676826769267702677126772267732677426775267762677726778267792678026781267822678326784267852678626787267882678926790267912679226793267942679526796267972679826799268002680126802268032680426805268062680726808268092681026811268122681326814268152681626817268182681926820268212682226823268242682526826268272682826829268302683126832268332683426835268362683726838268392684026841268422684326844268452684626847268482684926850268512685226853268542685526856268572685826859268602686126862268632686426865268662686726868268692687026871268722687326874268752687626877268782687926880268812688226883268842688526886268872688826889268902689126892268932689426895268962689726898268992690026901269022690326904269052690626907269082690926910269112691226913269142691526916269172691826919269202692126922269232692426925269262692726928269292693026931269322693326934269352693626937269382693926940269412694226943269442694526946269472694826949269502695126952269532695426955269562695726958269592696026961269622696326964269652696626967269682696926970269712697226973269742697526976269772697826979269802698126982269832698426985269862698726988269892699026991269922699326994269952699626997269982699927000270012700227003270042700527006270072700827009270102701127012270132701427015270162701727018270192702027021270222702327024270252702627027270282702927030270312703227033270342703527036270372703827039270402704127042270432704427045270462704727048270492705027051270522705327054270552705627057270582705927060270612706227063270642706527066270672706827069270702707127072270732707427075270762707727078270792708027081270822708327084270852708627087270882708927090270912709227093270942709527096270972709827099271002710127102271032710427105271062710727108271092711027111271122711327114271152711627117271182711927120271212712227123271242712527126271272712827129271302713127132271332713427135271362713727138271392714027141271422714327144271452714627147271482714927150271512715227153271542715527156271572715827159271602716127162271632716427165271662716727168271692717027171271722717327174271752717627177271782717927180271812718227183271842718527186271872718827189271902719127192271932719427195271962719727198271992720027201272022720327204272052720627207272082720927210272112721227213272142721527216272172721827219272202722127222272232722427225272262722727228272292723027231272322723327234272352723627237272382723927240272412724227243272442724527246272472724827249272502725127252272532725427255272562725727258272592726027261272622726327264272652726627267272682726927270272712727227273272742727527276272772727827279272802728127282272832728427285272862728727288272892729027291272922729327294272952729627297272982729927300273012730227303273042730527306273072730827309273102731127312273132731427315273162731727318273192732027321273222732327324273252732627327273282732927330273312733227333273342733527336273372733827339273402734127342273432734427345273462734727348273492735027351273522735327354273552735627357273582735927360273612736227363273642736527366273672736827369273702737127372273732737427375273762737727378273792738027381273822738327384273852738627387273882738927390273912739227393273942739527396273972739827399274002740127402274032740427405274062740727408274092741027411274122741327414274152741627417274182741927420274212742227423274242742527426274272742827429274302743127432274332743427435274362743727438274392744027441274422744327444274452744627447274482744927450274512745227453274542745527456274572745827459274602746127462274632746427465274662746727468274692747027471274722747327474274752747627477274782747927480274812748227483274842748527486274872748827489274902749127492274932749427495274962749727498274992750027501275022750327504275052750627507275082750927510275112751227513275142751527516275172751827519275202752127522275232752427525275262752727528275292753027531275322753327534275352753627537275382753927540275412754227543275442754527546275472754827549275502755127552275532755427555275562755727558275592756027561275622756327564275652756627567275682756927570275712757227573275742757527576275772757827579275802758127582275832758427585275862758727588275892759027591275922759327594275952759627597275982759927600276012760227603276042760527606276072760827609276102761127612276132761427615276162761727618276192762027621276222762327624276252762627627276282762927630276312763227633276342763527636276372763827639276402764127642276432764427645276462764727648276492765027651276522765327654276552765627657276582765927660276612766227663276642766527666276672766827669276702767127672276732767427675276762767727678276792768027681276822768327684276852768627687276882768927690276912769227693276942769527696276972769827699277002770127702277032770427705277062770727708277092771027711277122771327714277152771627717277182771927720277212772227723277242772527726277272772827729277302773127732277332773427735277362773727738277392774027741277422774327744277452774627747277482774927750277512775227753277542775527756277572775827759277602776127762277632776427765277662776727768277692777027771277722777327774277752777627777277782777927780277812778227783277842778527786277872778827789277902779127792277932779427795277962779727798277992780027801278022780327804278052780627807278082780927810278112781227813278142781527816278172781827819278202782127822278232782427825278262782727828278292783027831278322783327834278352783627837278382783927840278412784227843278442784527846278472784827849278502785127852278532785427855278562785727858278592786027861278622786327864278652786627867278682786927870278712787227873278742787527876278772787827879278802788127882278832788427885278862788727888278892789027891278922789327894278952789627897278982789927900279012790227903279042790527906279072790827909279102791127912279132791427915279162791727918279192792027921279222792327924279252792627927279282792927930279312793227933279342793527936279372793827939279402794127942279432794427945279462794727948279492795027951279522795327954279552795627957279582795927960279612796227963279642796527966279672796827969279702797127972279732797427975279762797727978279792798027981279822798327984279852798627987279882798927990279912799227993279942799527996279972799827999280002800128002280032800428005280062800728008280092801028011280122801328014280152801628017280182801928020280212802228023280242802528026280272802828029280302803128032280332803428035280362803728038280392804028041280422804328044280452804628047280482804928050280512805228053280542805528056280572805828059280602806128062280632806428065280662806728068280692807028071280722807328074280752807628077280782807928080280812808228083280842808528086280872808828089280902809128092280932809428095280962809728098280992810028101281022810328104281052810628107281082810928110281112811228113281142811528116281172811828119281202812128122281232812428125281262812728128281292813028131281322813328134281352813628137281382813928140281412814228143281442814528146281472814828149281502815128152281532815428155281562815728158281592816028161281622816328164281652816628167281682816928170281712817228173281742817528176281772817828179281802818128182281832818428185281862818728188281892819028191281922819328194281952819628197281982819928200282012820228203282042820528206282072820828209282102821128212282132821428215282162821728218282192822028221282222822328224282252822628227282282822928230282312823228233282342823528236282372823828239282402824128242282432824428245282462824728248282492825028251282522825328254282552825628257282582825928260282612826228263282642826528266282672826828269282702827128272282732827428275282762827728278282792828028281282822828328284282852828628287282882828928290282912829228293282942829528296282972829828299283002830128302283032830428305283062830728308283092831028311283122831328314283152831628317283182831928320283212832228323283242832528326283272832828329283302833128332283332833428335283362833728338283392834028341283422834328344283452834628347283482834928350283512835228353283542835528356283572835828359283602836128362283632836428365283662836728368283692837028371283722837328374283752837628377283782837928380283812838228383283842838528386283872838828389283902839128392283932839428395283962839728398283992840028401284022840328404284052840628407284082840928410284112841228413284142841528416284172841828419284202842128422284232842428425284262842728428284292843028431284322843328434284352843628437284382843928440284412844228443284442844528446284472844828449284502845128452284532845428455284562845728458284592846028461284622846328464284652846628467284682846928470284712847228473284742847528476284772847828479284802848128482284832848428485284862848728488284892849028491284922849328494284952849628497284982849928500285012850228503285042850528506285072850828509285102851128512285132851428515285162851728518285192852028521285222852328524285252852628527285282852928530285312853228533285342853528536285372853828539285402854128542285432854428545285462854728548285492855028551285522855328554285552855628557285582855928560285612856228563285642856528566285672856828569285702857128572285732857428575285762857728578285792858028581285822858328584285852858628587285882858928590285912859228593285942859528596285972859828599286002860128602286032860428605286062860728608286092861028611286122861328614286152861628617286182861928620286212862228623286242862528626286272862828629286302863128632286332863428635286362863728638286392864028641286422864328644286452864628647286482864928650286512865228653286542865528656286572865828659286602866128662286632866428665286662866728668286692867028671286722867328674286752867628677286782867928680286812868228683286842868528686286872868828689286902869128692286932869428695286962869728698286992870028701287022870328704287052870628707287082870928710287112871228713287142871528716287172871828719287202872128722287232872428725287262872728728287292873028731287322873328734287352873628737287382873928740287412874228743287442874528746287472874828749287502875128752287532875428755287562875728758287592876028761287622876328764287652876628767287682876928770287712877228773287742877528776287772877828779287802878128782287832878428785287862878728788287892879028791287922879328794287952879628797287982879928800288012880228803288042880528806288072880828809288102881128812288132881428815288162881728818288192882028821288222882328824288252882628827288282882928830288312883228833288342883528836288372883828839288402884128842288432884428845288462884728848288492885028851288522885328854288552885628857288582885928860288612886228863288642886528866288672886828869288702887128872288732887428875288762887728878288792888028881288822888328884288852888628887288882888928890288912889228893288942889528896288972889828899289002890128902289032890428905289062890728908289092891028911289122891328914289152891628917289182891928920289212892228923289242892528926289272892828929289302893128932289332893428935289362893728938289392894028941289422894328944289452894628947289482894928950289512895228953289542895528956289572895828959289602896128962289632896428965289662896728968289692897028971289722897328974289752897628977289782897928980289812898228983289842898528986289872898828989289902899128992289932899428995289962899728998289992900029001290022900329004290052900629007290082900929010290112901229013290142901529016290172901829019290202902129022290232902429025290262902729028290292903029031290322903329034290352903629037290382903929040290412904229043290442904529046290472904829049290502905129052290532905429055290562905729058290592906029061290622906329064290652906629067290682906929070290712907229073290742907529076290772907829079290802908129082290832908429085290862908729088290892909029091290922909329094290952909629097290982909929100291012910229103291042910529106291072910829109291102911129112291132911429115291162911729118291192912029121291222912329124291252912629127291282912929130291312913229133291342913529136291372913829139291402914129142291432914429145291462914729148291492915029151291522915329154291552915629157291582915929160291612916229163291642916529166291672916829169291702917129172291732917429175291762917729178291792918029181291822918329184291852918629187291882918929190291912919229193291942919529196291972919829199292002920129202292032920429205292062920729208292092921029211292122921329214292152921629217292182921929220292212922229223292242922529226292272922829229292302923129232292332923429235292362923729238292392924029241292422924329244292452924629247292482924929250292512925229253292542925529256292572925829259292602926129262292632926429265292662926729268292692927029271292722927329274292752927629277292782927929280292812928229283292842928529286292872928829289292902929129292292932929429295292962929729298292992930029301293022930329304293052930629307293082930929310293112931229313293142931529316293172931829319293202932129322293232932429325293262932729328293292933029331293322933329334293352933629337293382933929340293412934229343293442934529346293472934829349293502935129352293532935429355293562935729358293592936029361293622936329364293652936629367293682936929370293712937229373293742937529376293772937829379293802938129382293832938429385293862938729388293892939029391293922939329394293952939629397293982939929400294012940229403294042940529406294072940829409294102941129412294132941429415294162941729418294192942029421294222942329424294252942629427294282942929430294312943229433294342943529436294372943829439294402944129442294432944429445294462944729448294492945029451294522945329454294552945629457294582945929460294612946229463294642946529466294672946829469294702947129472294732947429475294762947729478294792948029481294822948329484294852948629487294882948929490294912949229493294942949529496294972949829499295002950129502295032950429505295062950729508295092951029511295122951329514295152951629517295182951929520295212952229523295242952529526295272952829529295302953129532295332953429535295362953729538295392954029541295422954329544295452954629547295482954929550295512955229553295542955529556295572955829559295602956129562295632956429565295662956729568295692957029571295722957329574295752957629577295782957929580295812958229583295842958529586295872958829589295902959129592295932959429595295962959729598295992960029601296022960329604296052960629607296082960929610296112961229613296142961529616296172961829619296202962129622296232962429625296262962729628296292963029631296322963329634296352963629637296382963929640296412964229643296442964529646296472964829649296502965129652296532965429655296562965729658296592966029661296622966329664296652966629667296682966929670296712967229673296742967529676296772967829679296802968129682296832968429685296862968729688296892969029691296922969329694296952969629697296982969929700297012970229703297042970529706297072970829709297102971129712297132971429715297162971729718297192972029721297222972329724297252972629727297282972929730297312973229733297342973529736297372973829739297402974129742297432974429745297462974729748297492975029751297522975329754297552975629757297582975929760297612976229763297642976529766297672976829769297702977129772297732977429775297762977729778297792978029781297822978329784297852978629787297882978929790297912979229793297942979529796297972979829799298002980129802298032980429805298062980729808298092981029811298122981329814298152981629817298182981929820298212982229823298242982529826298272982829829298302983129832298332983429835298362983729838298392984029841298422984329844298452984629847298482984929850298512985229853298542985529856298572985829859298602986129862298632986429865298662986729868298692987029871298722987329874298752987629877298782987929880298812988229883298842988529886298872988829889298902989129892298932989429895298962989729898298992990029901299022990329904299052990629907299082990929910299112991229913299142991529916299172991829919299202992129922299232992429925299262992729928299292993029931299322993329934299352993629937299382993929940299412994229943299442994529946299472994829949299502995129952299532995429955299562995729958299592996029961299622996329964299652996629967299682996929970299712997229973299742997529976299772997829979299802998129982299832998429985299862998729988299892999029991299922999329994299952999629997299982999930000300013000230003300043000530006300073000830009300103001130012300133001430015300163001730018300193002030021300223002330024300253002630027300283002930030300313003230033300343003530036300373003830039300403004130042300433004430045300463004730048300493005030051300523005330054300553005630057300583005930060300613006230063300643006530066300673006830069300703007130072300733007430075300763007730078300793008030081300823008330084300853008630087300883008930090300913009230093300943009530096300973009830099301003010130102301033010430105301063010730108301093011030111301123011330114301153011630117301183011930120301213012230123301243012530126301273012830129301303013130132301333013430135301363013730138301393014030141301423014330144301453014630147301483014930150301513015230153301543015530156301573015830159301603016130162301633016430165301663016730168301693017030171301723017330174301753017630177301783017930180301813018230183301843018530186301873018830189301903019130192301933019430195301963019730198301993020030201302023020330204302053020630207302083020930210302113021230213302143021530216302173021830219302203022130222302233022430225302263022730228302293023030231302323023330234302353023630237302383023930240302413024230243302443024530246302473024830249302503025130252302533025430255302563025730258302593026030261302623026330264302653026630267302683026930270302713027230273302743027530276302773027830279302803028130282302833028430285302863028730288302893029030291302923029330294302953029630297302983029930300303013030230303303043030530306303073030830309303103031130312303133031430315303163031730318303193032030321303223032330324303253032630327303283032930330303313033230333303343033530336303373033830339303403034130342303433034430345303463034730348303493035030351303523035330354303553035630357303583035930360303613036230363303643036530366303673036830369303703037130372303733037430375303763037730378303793038030381303823038330384303853038630387303883038930390303913039230393303943039530396303973039830399304003040130402304033040430405304063040730408304093041030411304123041330414304153041630417304183041930420304213042230423304243042530426304273042830429304303043130432304333043430435304363043730438304393044030441304423044330444304453044630447304483044930450304513045230453304543045530456304573045830459304603046130462304633046430465304663046730468304693047030471304723047330474304753047630477304783047930480304813048230483304843048530486304873048830489304903049130492304933049430495304963049730498304993050030501305023050330504305053050630507305083050930510305113051230513305143051530516305173051830519305203052130522305233052430525305263052730528305293053030531305323053330534305353053630537305383053930540305413054230543305443054530546305473054830549305503055130552305533055430555305563055730558305593056030561305623056330564305653056630567305683056930570305713057230573305743057530576305773057830579305803058130582305833058430585305863058730588305893059030591305923059330594305953059630597305983059930600306013060230603306043060530606306073060830609306103061130612306133061430615306163061730618306193062030621306223062330624306253062630627306283062930630306313063230633306343063530636306373063830639306403064130642306433064430645306463064730648306493065030651306523065330654306553065630657306583065930660306613066230663306643066530666306673066830669306703067130672306733067430675306763067730678306793068030681306823068330684306853068630687306883068930690306913069230693306943069530696306973069830699307003070130702307033070430705307063070730708307093071030711307123071330714307153071630717307183071930720307213072230723307243072530726307273072830729307303073130732307333073430735307363073730738307393074030741307423074330744307453074630747307483074930750307513075230753307543075530756307573075830759307603076130762307633076430765307663076730768307693077030771307723077330774307753077630777307783077930780307813078230783307843078530786307873078830789307903079130792307933079430795307963079730798307993080030801308023080330804308053080630807308083080930810308113081230813308143081530816308173081830819308203082130822308233082430825308263082730828308293083030831308323083330834308353083630837308383083930840308413084230843308443084530846308473084830849308503085130852308533085430855308563085730858308593086030861308623086330864308653086630867308683086930870308713087230873308743087530876308773087830879308803088130882308833088430885308863088730888308893089030891308923089330894308953089630897308983089930900309013090230903309043090530906309073090830909309103091130912309133091430915309163091730918309193092030921309223092330924309253092630927309283092930930309313093230933309343093530936309373093830939309403094130942309433094430945309463094730948309493095030951309523095330954309553095630957309583095930960309613096230963309643096530966309673096830969309703097130972309733097430975309763097730978309793098030981309823098330984309853098630987309883098930990309913099230993309943099530996309973099830999310003100131002310033100431005310063100731008310093101031011310123101331014310153101631017310183101931020310213102231023310243102531026310273102831029310303103131032310333103431035310363103731038310393104031041310423104331044310453104631047310483104931050310513105231053310543105531056310573105831059310603106131062310633106431065310663106731068310693107031071310723107331074310753107631077310783107931080310813108231083310843108531086310873108831089310903109131092310933109431095310963109731098310993110031101311023110331104311053110631107311083110931110311113111231113311143111531116311173111831119311203112131122311233112431125311263112731128311293113031131311323113331134311353113631137311383113931140311413114231143311443114531146311473114831149311503115131152311533115431155311563115731158311593116031161311623116331164311653116631167311683116931170311713117231173311743117531176311773117831179311803118131182311833118431185311863118731188311893119031191311923119331194311953119631197311983119931200312013120231203312043120531206312073120831209312103121131212312133121431215312163121731218312193122031221312223122331224312253122631227312283122931230312313123231233312343123531236312373123831239312403124131242312433124431245312463124731248312493125031251312523125331254312553125631257312583125931260312613126231263312643126531266312673126831269312703127131272312733127431275312763127731278312793128031281312823128331284312853128631287312883128931290312913129231293312943129531296312973129831299313003130131302313033130431305313063130731308313093131031311313123131331314313153131631317313183131931320313213132231323313243132531326313273132831329313303133131332313333133431335313363133731338313393134031341313423134331344313453134631347313483134931350313513135231353313543135531356313573135831359313603136131362313633136431365313663136731368313693137031371313723137331374313753137631377313783137931380313813138231383313843138531386313873138831389313903139131392313933139431395313963139731398313993140031401314023140331404314053140631407314083140931410314113141231413314143141531416314173141831419314203142131422314233142431425314263142731428314293143031431314323143331434314353143631437314383143931440314413144231443314443144531446314473144831449314503145131452314533145431455314563145731458314593146031461314623146331464314653146631467314683146931470314713147231473314743147531476314773147831479314803148131482314833148431485314863148731488314893149031491314923149331494314953149631497314983149931500315013150231503315043150531506315073150831509315103151131512315133151431515315163151731518315193152031521315223152331524315253152631527315283152931530315313153231533315343153531536315373153831539315403154131542315433154431545315463154731548315493155031551315523155331554315553155631557315583155931560315613156231563315643156531566315673156831569315703157131572315733157431575315763157731578315793158031581315823158331584315853158631587315883158931590315913159231593315943159531596315973159831599316003160131602316033160431605316063160731608316093161031611316123161331614316153161631617316183161931620316213162231623316243162531626316273162831629316303163131632316333163431635316363163731638316393164031641316423164331644316453164631647316483164931650316513165231653316543165531656316573165831659316603166131662316633166431665316663166731668316693167031671316723167331674316753167631677316783167931680316813168231683316843168531686316873168831689316903169131692316933169431695316963169731698316993170031701317023170331704317053170631707317083170931710317113171231713317143171531716317173171831719317203172131722317233172431725317263172731728317293173031731317323173331734317353173631737317383173931740317413174231743317443174531746317473174831749317503175131752317533175431755317563175731758317593176031761317623176331764317653176631767317683176931770317713177231773317743177531776317773177831779317803178131782317833178431785317863178731788317893179031791317923179331794317953179631797317983179931800318013180231803318043180531806318073180831809318103181131812318133181431815318163181731818318193182031821318223182331824318253182631827318283182931830318313183231833318343183531836318373183831839318403184131842318433184431845318463184731848318493185031851318523185331854318553185631857318583185931860318613186231863318643186531866318673186831869318703187131872318733187431875318763187731878318793188031881318823188331884318853188631887318883188931890318913189231893318943189531896318973189831899319003190131902319033190431905319063190731908319093191031911319123191331914319153191631917319183191931920319213192231923319243192531926319273192831929319303193131932319333193431935319363193731938319393194031941319423194331944319453194631947319483194931950319513195231953319543195531956319573195831959319603196131962319633196431965319663196731968319693197031971319723197331974319753197631977319783197931980319813198231983319843198531986319873198831989319903199131992319933199431995319963199731998319993200032001320023200332004320053200632007320083200932010320113201232013320143201532016320173201832019320203202132022320233202432025320263202732028320293203032031320323203332034320353203632037320383203932040320413204232043320443204532046320473204832049320503205132052320533205432055320563205732058320593206032061320623206332064320653206632067320683206932070320713207232073320743207532076320773207832079320803208132082320833208432085320863208732088320893209032091320923209332094320953209632097320983209932100321013210232103321043210532106321073210832109321103211132112321133211432115321163211732118321193212032121321223212332124321253212632127321283212932130321313213232133321343213532136321373213832139321403214132142321433214432145321463214732148321493215032151321523215332154321553215632157321583215932160321613216232163321643216532166321673216832169321703217132172321733217432175321763217732178321793218032181321823218332184321853218632187321883218932190321913219232193321943219532196321973219832199322003220132202322033220432205322063220732208322093221032211322123221332214322153221632217322183221932220322213222232223322243222532226322273222832229322303223132232322333223432235322363223732238322393224032241322423224332244322453224632247322483224932250322513225232253322543225532256322573225832259322603226132262322633226432265322663226732268322693227032271322723227332274322753227632277322783227932280322813228232283322843228532286322873228832289322903229132292322933229432295322963229732298322993230032301323023230332304323053230632307323083230932310323113231232313323143231532316323173231832319323203232132322323233232432325323263232732328323293233032331323323233332334323353233632337323383233932340323413234232343323443234532346323473234832349323503235132352323533235432355323563235732358323593236032361323623236332364323653236632367323683236932370323713237232373323743237532376323773237832379323803238132382323833238432385323863238732388323893239032391323923239332394323953239632397323983239932400324013240232403324043240532406324073240832409324103241132412324133241432415324163241732418324193242032421324223242332424324253242632427324283242932430324313243232433324343243532436324373243832439324403244132442324433244432445324463244732448324493245032451324523245332454324553245632457324583245932460324613246232463324643246532466324673246832469324703247132472324733247432475324763247732478324793248032481324823248332484324853248632487324883248932490324913249232493324943249532496324973249832499325003250132502325033250432505325063250732508325093251032511325123251332514325153251632517325183251932520325213252232523325243252532526325273252832529325303253132532325333253432535325363253732538325393254032541325423254332544325453254632547325483254932550325513255232553325543255532556325573255832559325603256132562325633256432565325663256732568325693257032571325723257332574325753257632577325783257932580325813258232583325843258532586325873258832589325903259132592325933259432595325963259732598325993260032601326023260332604326053260632607326083260932610326113261232613326143261532616326173261832619326203262132622326233262432625326263262732628326293263032631326323263332634326353263632637326383263932640326413264232643326443264532646326473264832649326503265132652326533265432655326563265732658326593266032661326623266332664326653266632667326683266932670326713267232673326743267532676326773267832679326803268132682326833268432685326863268732688326893269032691326923269332694326953269632697326983269932700327013270232703327043270532706327073270832709327103271132712327133271432715327163271732718327193272032721327223272332724327253272632727327283272932730327313273232733327343273532736327373273832739327403274132742327433274432745327463274732748327493275032751327523275332754327553275632757327583275932760327613276232763327643276532766327673276832769327703277132772327733277432775327763277732778327793278032781327823278332784327853278632787327883278932790327913279232793327943279532796327973279832799328003280132802328033280432805328063280732808328093281032811328123281332814328153281632817328183281932820328213282232823328243282532826328273282832829328303283132832328333283432835328363283732838328393284032841328423284332844328453284632847328483284932850328513285232853328543285532856328573285832859328603286132862328633286432865328663286732868328693287032871328723287332874328753287632877328783287932880328813288232883328843288532886328873288832889328903289132892328933289432895328963289732898328993290032901329023290332904329053290632907329083290932910329113291232913329143291532916329173291832919329203292132922329233292432925329263292732928329293293032931329323293332934329353293632937329383293932940329413294232943329443294532946329473294832949329503295132952329533295432955329563295732958329593296032961329623296332964329653296632967329683296932970329713297232973329743297532976329773297832979329803298132982329833298432985329863298732988329893299032991329923299332994329953299632997329983299933000330013300233003330043300533006330073300833009330103301133012330133301433015330163301733018330193302033021330223302333024330253302633027330283302933030330313303233033330343303533036330373303833039330403304133042330433304433045330463304733048330493305033051330523305333054330553305633057330583305933060330613306233063330643306533066330673306833069330703307133072330733307433075330763307733078330793308033081330823308333084330853308633087330883308933090330913309233093330943309533096330973309833099331003310133102331033310433105331063310733108331093311033111331123311333114331153311633117331183311933120331213312233123331243312533126331273312833129331303313133132331333313433135331363313733138331393314033141331423314333144331453314633147331483314933150331513315233153331543315533156331573315833159331603316133162331633316433165331663316733168331693317033171331723317333174331753317633177331783317933180331813318233183331843318533186331873318833189331903319133192331933319433195331963319733198331993320033201332023320333204332053320633207332083320933210332113321233213332143321533216332173321833219332203322133222332233322433225332263322733228332293323033231332323323333234332353323633237332383323933240332413324233243332443324533246332473324833249332503325133252332533325433255332563325733258332593326033261332623326333264332653326633267332683326933270332713327233273332743327533276332773327833279332803328133282332833328433285332863328733288332893329033291332923329333294332953329633297332983329933300333013330233303333043330533306333073330833309333103331133312333133331433315333163331733318333193332033321333223332333324333253332633327333283332933330333313333233333333343333533336333373333833339333403334133342333433334433345333463334733348333493335033351333523335333354333553335633357333583335933360333613336233363333643336533366333673336833369333703337133372333733337433375333763337733378333793338033381333823338333384333853338633387333883338933390333913339233393333943339533396333973339833399334003340133402334033340433405334063340733408334093341033411334123341333414334153341633417334183341933420334213342233423334243342533426334273342833429334303343133432334333343433435334363343733438334393344033441334423344333444334453344633447334483344933450334513345233453334543345533456334573345833459334603346133462334633346433465334663346733468334693347033471334723347333474334753347633477334783347933480334813348233483334843348533486334873348833489334903349133492334933349433495334963349733498334993350033501335023350333504335053350633507335083350933510335113351233513335143351533516335173351833519335203352133522335233352433525335263352733528335293353033531335323353333534335353353633537335383353933540335413354233543335443354533546335473354833549335503355133552335533355433555335563355733558335593356033561335623356333564335653356633567335683356933570335713357233573335743357533576335773357833579335803358133582335833358433585335863358733588335893359033591335923359333594335953359633597335983359933600336013360233603336043360533606336073360833609336103361133612336133361433615336163361733618336193362033621336223362333624336253362633627336283362933630336313363233633336343363533636336373363833639336403364133642336433364433645336463364733648336493365033651336523365333654336553365633657336583365933660336613366233663336643366533666336673366833669336703367133672336733367433675336763367733678336793368033681336823368333684336853368633687336883368933690336913369233693336943369533696336973369833699337003370133702337033370433705337063370733708337093371033711337123371333714337153371633717337183371933720337213372233723337243372533726337273372833729337303373133732337333373433735337363373733738337393374033741337423374333744337453374633747337483374933750337513375233753337543375533756337573375833759337603376133762337633376433765337663376733768337693377033771337723377333774337753377633777337783377933780337813378233783337843378533786337873378833789337903379133792337933379433795337963379733798337993380033801338023380333804338053380633807338083380933810338113381233813338143381533816338173381833819338203382133822338233382433825338263382733828338293383033831338323383333834338353383633837338383383933840338413384233843338443384533846338473384833849338503385133852338533385433855338563385733858338593386033861338623386333864338653386633867338683386933870338713387233873338743387533876338773387833879338803388133882338833388433885338863388733888338893389033891338923389333894338953389633897338983389933900339013390233903339043390533906339073390833909339103391133912339133391433915339163391733918339193392033921339223392333924339253392633927339283392933930339313393233933339343393533936339373393833939339403394133942339433394433945339463394733948339493395033951339523395333954339553395633957339583395933960339613396233963339643396533966339673396833969339703397133972339733397433975339763397733978339793398033981339823398333984339853398633987339883398933990339913399233993339943399533996339973399833999340003400134002340033400434005340063400734008340093401034011340123401334014340153401634017340183401934020340213402234023340243402534026340273402834029340303403134032340333403434035340363403734038340393404034041340423404334044340453404634047340483404934050340513405234053340543405534056340573405834059340603406134062340633406434065340663406734068340693407034071340723407334074340753407634077340783407934080340813408234083340843408534086340873408834089340903409134092340933409434095340963409734098340993410034101341023410334104341053410634107341083410934110341113411234113341143411534116341173411834119341203412134122341233412434125341263412734128341293413034131341323413334134341353413634137341383413934140341413414234143341443414534146341473414834149341503415134152341533415434155341563415734158341593416034161341623416334164341653416634167341683416934170341713417234173341743417534176341773417834179341803418134182341833418434185341863418734188341893419034191341923419334194341953419634197341983419934200342013420234203342043420534206342073420834209342103421134212342133421434215342163421734218342193422034221342223422334224342253422634227342283422934230342313423234233342343423534236342373423834239342403424134242342433424434245342463424734248342493425034251342523425334254342553425634257342583425934260342613426234263342643426534266342673426834269342703427134272342733427434275342763427734278342793428034281342823428334284342853428634287342883428934290342913429234293342943429534296342973429834299343003430134302343033430434305343063430734308343093431034311343123431334314343153431634317343183431934320343213432234323343243432534326343273432834329343303433134332343333433434335343363433734338343393434034341343423434334344343453434634347343483434934350343513435234353343543435534356343573435834359343603436134362343633436434365343663436734368343693437034371343723437334374343753437634377343783437934380343813438234383343843438534386343873438834389343903439134392343933439434395343963439734398343993440034401344023440334404344053440634407344083440934410344113441234413344143441534416344173441834419344203442134422344233442434425344263442734428344293443034431344323443334434344353443634437344383443934440344413444234443344443444534446344473444834449344503445134452344533445434455344563445734458344593446034461344623446334464344653446634467344683446934470344713447234473344743447534476344773447834479344803448134482344833448434485344863448734488344893449034491344923449334494344953449634497344983449934500345013450234503345043450534506345073450834509345103451134512345133451434515345163451734518345193452034521345223452334524345253452634527345283452934530345313453234533345343453534536345373453834539345403454134542345433454434545345463454734548345493455034551345523455334554345553455634557345583455934560345613456234563345643456534566345673456834569345703457134572345733457434575345763457734578345793458034581345823458334584345853458634587345883458934590345913459234593345943459534596345973459834599346003460134602346033460434605346063460734608346093461034611346123461334614346153461634617346183461934620346213462234623346243462534626346273462834629346303463134632346333463434635346363463734638346393464034641346423464334644346453464634647346483464934650346513465234653346543465534656346573465834659346603466134662346633466434665346663466734668346693467034671346723467334674346753467634677346783467934680346813468234683346843468534686346873468834689346903469134692346933469434695346963469734698346993470034701347023470334704347053470634707347083470934710347113471234713347143471534716347173471834719347203472134722347233472434725347263472734728347293473034731347323473334734347353473634737347383473934740347413474234743347443474534746347473474834749347503475134752347533475434755347563475734758347593476034761347623476334764347653476634767347683476934770347713477234773347743477534776347773477834779347803478134782347833478434785347863478734788347893479034791347923479334794347953479634797347983479934800348013480234803348043480534806348073480834809348103481134812348133481434815348163481734818348193482034821348223482334824348253482634827348283482934830348313483234833348343483534836348373483834839348403484134842348433484434845348463484734848348493485034851348523485334854348553485634857348583485934860348613486234863348643486534866348673486834869348703487134872348733487434875348763487734878348793488034881348823488334884348853488634887348883488934890348913489234893348943489534896348973489834899349003490134902349033490434905349063490734908349093491034911349123491334914349153491634917349183491934920349213492234923349243492534926349273492834929349303493134932349333493434935349363493734938349393494034941349423494334944349453494634947349483494934950349513495234953349543495534956349573495834959349603496134962349633496434965349663496734968349693497034971349723497334974349753497634977349783497934980349813498234983349843498534986349873498834989349903499134992349933499434995349963499734998349993500035001350023500335004350053500635007350083500935010350113501235013350143501535016350173501835019350203502135022350233502435025350263502735028350293503035031350323503335034350353503635037350383503935040350413504235043350443504535046350473504835049350503505135052350533505435055350563505735058350593506035061350623506335064350653506635067350683506935070350713507235073350743507535076350773507835079350803508135082350833508435085350863508735088350893509035091350923509335094350953509635097350983509935100351013510235103351043510535106351073510835109351103511135112351133511435115351163511735118351193512035121351223512335124351253512635127351283512935130351313513235133351343513535136351373513835139351403514135142351433514435145351463514735148351493515035151351523515335154351553515635157351583515935160351613516235163351643516535166351673516835169351703517135172351733517435175351763517735178351793518035181351823518335184351853518635187351883518935190351913519235193351943519535196351973519835199352003520135202352033520435205352063520735208352093521035211352123521335214352153521635217352183521935220352213522235223352243522535226352273522835229352303523135232352333523435235352363523735238352393524035241352423524335244352453524635247352483524935250352513525235253352543525535256352573525835259352603526135262352633526435265352663526735268352693527035271352723527335274352753527635277352783527935280352813528235283352843528535286352873528835289352903529135292352933529435295352963529735298352993530035301353023530335304353053530635307353083530935310353113531235313353143531535316353173531835319353203532135322353233532435325353263532735328353293533035331353323533335334353353533635337353383533935340353413534235343353443534535346353473534835349353503535135352353533535435355353563535735358353593536035361353623536335364353653536635367353683536935370353713537235373353743537535376353773537835379353803538135382353833538435385353863538735388353893539035391353923539335394353953539635397353983539935400354013540235403354043540535406354073540835409354103541135412354133541435415354163541735418354193542035421354223542335424354253542635427354283542935430354313543235433354343543535436354373543835439354403544135442354433544435445354463544735448354493545035451354523545335454354553545635457354583545935460354613546235463354643546535466354673546835469354703547135472354733547435475354763547735478354793548035481354823548335484354853548635487354883548935490354913549235493354943549535496354973549835499355003550135502355033550435505355063550735508355093551035511355123551335514355153551635517355183551935520355213552235523355243552535526355273552835529355303553135532355333553435535355363553735538355393554035541355423554335544355453554635547355483554935550355513555235553355543555535556355573555835559355603556135562355633556435565355663556735568355693557035571355723557335574355753557635577355783557935580355813558235583355843558535586355873558835589355903559135592355933559435595355963559735598355993560035601356023560335604356053560635607356083560935610356113561235613356143561535616356173561835619356203562135622356233562435625356263562735628356293563035631356323563335634356353563635637356383563935640356413564235643356443564535646356473564835649356503565135652356533565435655356563565735658356593566035661356623566335664356653566635667356683566935670356713567235673356743567535676356773567835679356803568135682356833568435685356863568735688356893569035691356923569335694356953569635697356983569935700357013570235703357043570535706357073570835709357103571135712357133571435715357163571735718357193572035721357223572335724357253572635727357283572935730357313573235733357343573535736357373573835739357403574135742357433574435745357463574735748357493575035751357523575335754357553575635757357583575935760357613576235763357643576535766357673576835769357703577135772357733577435775357763577735778357793578035781357823578335784357853578635787357883578935790357913579235793357943579535796357973579835799358003580135802358033580435805358063580735808358093581035811358123581335814358153581635817358183581935820358213582235823358243582535826358273582835829358303583135832358333583435835358363583735838358393584035841358423584335844358453584635847358483584935850358513585235853358543585535856358573585835859358603586135862358633586435865358663586735868358693587035871358723587335874358753587635877358783587935880358813588235883358843588535886358873588835889358903589135892358933589435895358963589735898358993590035901359023590335904359053590635907359083590935910359113591235913359143591535916359173591835919359203592135922359233592435925359263592735928359293593035931359323593335934359353593635937359383593935940359413594235943359443594535946359473594835949359503595135952359533595435955359563595735958359593596035961359623596335964359653596635967359683596935970359713597235973359743597535976359773597835979359803598135982359833598435985359863598735988359893599035991359923599335994359953599635997359983599936000360013600236003360043600536006360073600836009360103601136012360133601436015360163601736018360193602036021360223602336024360253602636027360283602936030360313603236033360343603536036360373603836039360403604136042360433604436045360463604736048360493605036051360523605336054360553605636057360583605936060360613606236063360643606536066360673606836069360703607136072360733607436075360763607736078360793608036081360823608336084360853608636087360883608936090360913609236093360943609536096360973609836099361003610136102361033610436105361063610736108361093611036111361123611336114361153611636117361183611936120361213612236123361243612536126361273612836129361303613136132361333613436135361363613736138361393614036141361423614336144361453614636147361483614936150361513615236153361543615536156361573615836159361603616136162361633616436165361663616736168361693617036171361723617336174361753617636177361783617936180361813618236183361843618536186361873618836189361903619136192361933619436195361963619736198361993620036201362023620336204362053620636207362083620936210362113621236213362143621536216362173621836219362203622136222362233622436225362263622736228362293623036231362323623336234362353623636237362383623936240362413624236243362443624536246362473624836249362503625136252362533625436255362563625736258362593626036261362623626336264362653626636267362683626936270362713627236273362743627536276362773627836279362803628136282362833628436285362863628736288362893629036291362923629336294362953629636297362983629936300363013630236303363043630536306363073630836309363103631136312363133631436315363163631736318363193632036321363223632336324363253632636327363283632936330363313633236333363343633536336363373633836339363403634136342363433634436345363463634736348363493635036351363523635336354363553635636357363583635936360363613636236363363643636536366363673636836369363703637136372363733637436375363763637736378363793638036381363823638336384363853638636387363883638936390363913639236393363943639536396363973639836399364003640136402364033640436405364063640736408364093641036411364123641336414364153641636417364183641936420364213642236423364243642536426364273642836429364303643136432364333643436435364363643736438364393644036441364423644336444364453644636447364483644936450364513645236453364543645536456364573645836459364603646136462364633646436465364663646736468364693647036471364723647336474364753647636477364783647936480364813648236483364843648536486364873648836489364903649136492364933649436495364963649736498364993650036501365023650336504365053650636507365083650936510365113651236513365143651536516365173651836519365203652136522365233652436525365263652736528365293653036531365323653336534365353653636537365383653936540365413654236543365443654536546365473654836549365503655136552365533655436555365563655736558365593656036561365623656336564365653656636567365683656936570365713657236573365743657536576365773657836579365803658136582365833658436585365863658736588365893659036591365923659336594365953659636597365983659936600366013660236603366043660536606366073660836609366103661136612366133661436615366163661736618366193662036621366223662336624366253662636627366283662936630366313663236633366343663536636366373663836639366403664136642366433664436645366463664736648366493665036651366523665336654366553665636657366583665936660366613666236663366643666536666366673666836669366703667136672366733667436675366763667736678366793668036681366823668336684366853668636687366883668936690366913669236693366943669536696366973669836699367003670136702367033670436705367063670736708367093671036711367123671336714367153671636717367183671936720367213672236723367243672536726367273672836729367303673136732367333673436735367363673736738367393674036741367423674336744367453674636747367483674936750367513675236753367543675536756367573675836759367603676136762367633676436765367663676736768367693677036771367723677336774367753677636777367783677936780367813678236783367843678536786367873678836789367903679136792367933679436795367963679736798367993680036801368023680336804368053680636807368083680936810368113681236813368143681536816368173681836819368203682136822368233682436825368263682736828368293683036831368323683336834368353683636837368383683936840368413684236843368443684536846368473684836849368503685136852368533685436855368563685736858368593686036861368623686336864368653686636867368683686936870368713687236873368743687536876368773687836879368803688136882368833688436885368863688736888368893689036891368923689336894368953689636897368983689936900369013690236903369043690536906369073690836909369103691136912369133691436915369163691736918369193692036921369223692336924369253692636927369283692936930369313693236933369343693536936369373693836939369403694136942369433694436945369463694736948369493695036951369523695336954369553695636957369583695936960369613696236963369643696536966369673696836969369703697136972369733697436975369763697736978369793698036981369823698336984369853698636987369883698936990369913699236993369943699536996369973699836999370003700137002370033700437005370063700737008370093701037011370123701337014370153701637017370183701937020370213702237023370243702537026370273702837029370303703137032370333703437035370363703737038370393704037041370423704337044370453704637047370483704937050370513705237053370543705537056370573705837059370603706137062370633706437065370663706737068370693707037071370723707337074370753707637077370783707937080370813708237083370843708537086370873708837089370903709137092370933709437095370963709737098370993710037101371023710337104371053710637107371083710937110371113711237113371143711537116371173711837119371203712137122371233712437125371263712737128371293713037131371323713337134371353713637137371383713937140371413714237143371443714537146371473714837149371503715137152371533715437155371563715737158371593716037161371623716337164371653716637167371683716937170371713717237173371743717537176371773717837179371803718137182371833718437185371863718737188371893719037191371923719337194371953719637197371983719937200372013720237203372043720537206372073720837209372103721137212372133721437215372163721737218372193722037221372223722337224372253722637227372283722937230372313723237233372343723537236372373723837239372403724137242372433724437245372463724737248372493725037251372523725337254372553725637257372583725937260372613726237263372643726537266372673726837269372703727137272372733727437275372763727737278372793728037281372823728337284372853728637287372883728937290372913729237293372943729537296372973729837299373003730137302373033730437305373063730737308373093731037311373123731337314373153731637317373183731937320373213732237323373243732537326373273732837329373303733137332373333733437335373363733737338373393734037341373423734337344373453734637347373483734937350373513735237353373543735537356373573735837359373603736137362373633736437365373663736737368373693737037371373723737337374373753737637377373783737937380373813738237383373843738537386373873738837389373903739137392373933739437395373963739737398373993740037401374023740337404374053740637407374083740937410374113741237413374143741537416374173741837419374203742137422374233742437425374263742737428374293743037431374323743337434374353743637437374383743937440374413744237443374443744537446374473744837449374503745137452374533745437455374563745737458374593746037461374623746337464374653746637467374683746937470374713747237473374743747537476374773747837479374803748137482374833748437485374863748737488374893749037491374923749337494374953749637497374983749937500375013750237503375043750537506375073750837509375103751137512375133751437515375163751737518375193752037521375223752337524375253752637527375283752937530375313753237533375343753537536375373753837539375403754137542375433754437545375463754737548375493755037551375523755337554375553755637557375583755937560375613756237563375643756537566375673756837569375703757137572375733757437575375763757737578375793758037581375823758337584375853758637587375883758937590375913759237593375943759537596375973759837599376003760137602376033760437605376063760737608376093761037611376123761337614376153761637617376183761937620376213762237623376243762537626376273762837629376303763137632376333763437635376363763737638376393764037641376423764337644376453764637647376483764937650376513765237653376543765537656376573765837659376603766137662376633766437665376663766737668376693767037671376723767337674376753767637677376783767937680376813768237683376843768537686376873768837689376903769137692376933769437695376963769737698376993770037701377023770337704377053770637707377083770937710377113771237713377143771537716377173771837719377203772137722377233772437725377263772737728377293773037731377323773337734377353773637737377383773937740377413774237743377443774537746377473774837749377503775137752377533775437755377563775737758377593776037761377623776337764377653776637767377683776937770377713777237773377743777537776377773777837779377803778137782377833778437785377863778737788377893779037791377923779337794377953779637797377983779937800378013780237803378043780537806378073780837809378103781137812378133781437815378163781737818378193782037821378223782337824378253782637827378283782937830378313783237833378343783537836378373783837839378403784137842378433784437845378463784737848378493785037851378523785337854378553785637857378583785937860378613786237863378643786537866378673786837869378703787137872378733787437875378763787737878378793788037881378823788337884378853788637887378883788937890378913789237893378943789537896378973789837899379003790137902379033790437905379063790737908379093791037911379123791337914379153791637917379183791937920379213792237923379243792537926379273792837929379303793137932379333793437935379363793737938379393794037941379423794337944379453794637947379483794937950379513795237953379543795537956379573795837959379603796137962379633796437965379663796737968379693797037971379723797337974379753797637977379783797937980379813798237983379843798537986379873798837989379903799137992379933799437995379963799737998379993800038001380023800338004380053800638007380083800938010380113801238013380143801538016380173801838019380203802138022380233802438025380263802738028380293803038031380323803338034380353803638037380383803938040380413804238043380443804538046380473804838049380503805138052380533805438055380563805738058380593806038061380623806338064380653806638067380683806938070380713807238073380743807538076380773807838079380803808138082380833808438085380863808738088380893809038091380923809338094380953809638097380983809938100381013810238103381043810538106381073810838109381103811138112381133811438115381163811738118381193812038121381223812338124381253812638127381283812938130381313813238133381343813538136381373813838139381403814138142381433814438145381463814738148381493815038151381523815338154381553815638157381583815938160381613816238163381643816538166381673816838169381703817138172381733817438175381763817738178381793818038181381823818338184381853818638187381883818938190381913819238193381943819538196381973819838199382003820138202382033820438205382063820738208382093821038211382123821338214382153821638217382183821938220382213822238223382243822538226382273822838229382303823138232382333823438235382363823738238382393824038241382423824338244382453824638247382483824938250382513825238253382543825538256382573825838259382603826138262382633826438265382663826738268382693827038271382723827338274382753827638277382783827938280382813828238283382843828538286382873828838289382903829138292382933829438295382963829738298382993830038301383023830338304383053830638307383083830938310383113831238313383143831538316383173831838319383203832138322383233832438325383263832738328383293833038331383323833338334383353833638337383383833938340383413834238343383443834538346383473834838349383503835138352383533835438355383563835738358383593836038361383623836338364383653836638367383683836938370383713837238373383743837538376383773837838379383803838138382383833838438385383863838738388383893839038391383923839338394383953839638397383983839938400384013840238403384043840538406384073840838409384103841138412384133841438415384163841738418384193842038421384223842338424384253842638427384283842938430384313843238433384343843538436384373843838439384403844138442384433844438445384463844738448384493845038451384523845338454384553845638457384583845938460384613846238463384643846538466384673846838469384703847138472384733847438475384763847738478384793848038481384823848338484384853848638487384883848938490384913849238493384943849538496384973849838499385003850138502385033850438505385063850738508385093851038511385123851338514385153851638517385183851938520385213852238523385243852538526385273852838529385303853138532385333853438535385363853738538385393854038541385423854338544385453854638547385483854938550385513855238553385543855538556385573855838559385603856138562385633856438565385663856738568385693857038571385723857338574385753857638577385783857938580385813858238583385843858538586385873858838589385903859138592385933859438595385963859738598385993860038601386023860338604386053860638607386083860938610386113861238613386143861538616386173861838619386203862138622386233862438625386263862738628386293863038631386323863338634386353863638637386383863938640386413864238643386443864538646386473864838649386503865138652386533865438655386563865738658386593866038661386623866338664386653866638667386683866938670386713867238673386743867538676386773867838679386803868138682386833868438685386863868738688386893869038691386923869338694386953869638697386983869938700387013870238703387043870538706387073870838709387103871138712387133871438715387163871738718387193872038721387223872338724387253872638727387283872938730387313873238733387343873538736387373873838739387403874138742387433874438745387463874738748387493875038751387523875338754387553875638757387583875938760387613876238763387643876538766387673876838769387703877138772387733877438775387763877738778387793878038781387823878338784387853878638787387883878938790387913879238793387943879538796387973879838799388003880138802388033880438805388063880738808388093881038811388123881338814388153881638817388183881938820388213882238823388243882538826388273882838829388303883138832388333883438835388363883738838388393884038841388423884338844388453884638847388483884938850388513885238853388543885538856388573885838859388603886138862388633886438865388663886738868388693887038871388723887338874388753887638877388783887938880388813888238883388843888538886388873888838889388903889138892388933889438895388963889738898388993890038901389023890338904389053890638907389083890938910389113891238913389143891538916389173891838919389203892138922389233892438925389263892738928389293893038931389323893338934389353893638937389383893938940389413894238943389443894538946389473894838949389503895138952389533895438955389563895738958389593896038961389623896338964389653896638967389683896938970389713897238973389743897538976389773897838979389803898138982389833898438985389863898738988389893899038991389923899338994389953899638997389983899939000390013900239003390043900539006390073900839009390103901139012390133901439015390163901739018390193902039021390223902339024390253902639027390283902939030390313903239033390343903539036390373903839039390403904139042390433904439045390463904739048390493905039051390523905339054390553905639057390583905939060390613906239063390643906539066390673906839069390703907139072390733907439075390763907739078390793908039081390823908339084390853908639087390883908939090390913909239093390943909539096390973909839099391003910139102391033910439105391063910739108391093911039111391123911339114391153911639117391183911939120391213912239123391243912539126391273912839129391303913139132391333913439135391363913739138391393914039141391423914339144391453914639147391483914939150391513915239153391543915539156391573915839159391603916139162391633916439165391663916739168391693917039171391723917339174391753917639177391783917939180391813918239183391843918539186391873918839189391903919139192391933919439195391963919739198391993920039201392023920339204392053920639207392083920939210392113921239213392143921539216392173921839219392203922139222392233922439225392263922739228392293923039231392323923339234392353923639237392383923939240392413924239243392443924539246392473924839249392503925139252392533925439255392563925739258392593926039261392623926339264392653926639267392683926939270392713927239273392743927539276392773927839279392803928139282392833928439285392863928739288392893929039291392923929339294392953929639297392983929939300393013930239303393043930539306393073930839309393103931139312393133931439315393163931739318393193932039321393223932339324393253932639327393283932939330393313933239333393343933539336393373933839339393403934139342393433934439345393463934739348393493935039351393523935339354393553935639357393583935939360393613936239363393643936539366393673936839369393703937139372393733937439375393763937739378393793938039381393823938339384393853938639387393883938939390393913939239393393943939539396393973939839399394003940139402394033940439405394063940739408394093941039411394123941339414394153941639417394183941939420394213942239423394243942539426394273942839429394303943139432394333943439435394363943739438394393944039441394423944339444394453944639447394483944939450394513945239453394543945539456394573945839459394603946139462394633946439465394663946739468394693947039471394723947339474394753947639477394783947939480394813948239483394843948539486394873948839489394903949139492394933949439495394963949739498394993950039501395023950339504395053950639507395083950939510395113951239513395143951539516395173951839519395203952139522395233952439525395263952739528395293953039531395323953339534395353953639537395383953939540395413954239543395443954539546395473954839549395503955139552395533955439555395563955739558395593956039561395623956339564395653956639567395683956939570395713957239573395743957539576395773957839579395803958139582395833958439585395863958739588395893959039591395923959339594395953959639597395983959939600396013960239603396043960539606396073960839609396103961139612396133961439615396163961739618396193962039621396223962339624396253962639627396283962939630396313963239633396343963539636396373963839639396403964139642396433964439645396463964739648396493965039651396523965339654396553965639657396583965939660396613966239663396643966539666396673966839669396703967139672396733967439675396763967739678396793968039681396823968339684396853968639687396883968939690396913969239693396943969539696396973969839699397003970139702397033970439705397063970739708397093971039711397123971339714397153971639717397183971939720397213972239723397243972539726397273972839729397303973139732397333973439735397363973739738397393974039741397423974339744397453974639747397483974939750397513975239753397543975539756397573975839759397603976139762397633976439765397663976739768397693977039771397723977339774397753977639777397783977939780397813978239783397843978539786397873978839789397903979139792397933979439795397963979739798397993980039801398023980339804398053980639807398083980939810398113981239813398143981539816398173981839819398203982139822398233982439825398263982739828398293983039831398323983339834398353983639837398383983939840398413984239843398443984539846398473984839849398503985139852398533985439855398563985739858398593986039861398623986339864398653986639867398683986939870398713987239873398743987539876398773987839879398803988139882398833988439885398863988739888398893989039891398923989339894398953989639897398983989939900399013990239903399043990539906399073990839909399103991139912399133991439915399163991739918399193992039921399223992339924399253992639927399283992939930399313993239933399343993539936399373993839939399403994139942399433994439945399463994739948399493995039951399523995339954399553995639957399583995939960399613996239963399643996539966399673996839969399703997139972399733997439975399763997739978399793998039981399823998339984399853998639987399883998939990399913999239993399943999539996399973999839999400004000140002400034000440005400064000740008400094001040011400124001340014400154001640017400184001940020400214002240023400244002540026400274002840029400304003140032400334003440035400364003740038400394004040041400424004340044400454004640047400484004940050400514005240053400544005540056400574005840059400604006140062400634006440065400664006740068400694007040071400724007340074400754007640077400784007940080400814008240083400844008540086400874008840089400904009140092400934009440095400964009740098400994010040101401024010340104401054010640107401084010940110401114011240113401144011540116401174011840119401204012140122401234012440125401264012740128401294013040131401324013340134401354013640137401384013940140401414014240143401444014540146401474014840149401504015140152401534015440155401564015740158401594016040161401624016340164401654016640167401684016940170401714017240173401744017540176401774017840179401804018140182401834018440185401864018740188401894019040191401924019340194401954019640197401984019940200402014020240203402044020540206402074020840209402104021140212402134021440215402164021740218402194022040221402224022340224402254022640227402284022940230402314023240233402344023540236402374023840239402404024140242402434024440245402464024740248402494025040251402524025340254402554025640257402584025940260402614026240263402644026540266402674026840269402704027140272402734027440275402764027740278402794028040281402824028340284402854028640287402884028940290402914029240293402944029540296402974029840299403004030140302403034030440305403064030740308403094031040311403124031340314403154031640317403184031940320403214032240323403244032540326403274032840329403304033140332403334033440335403364033740338403394034040341403424034340344403454034640347403484034940350403514035240353403544035540356403574035840359403604036140362403634036440365403664036740368403694037040371403724037340374403754037640377403784037940380403814038240383403844038540386403874038840389403904039140392403934039440395403964039740398403994040040401404024040340404404054040640407404084040940410404114041240413404144041540416404174041840419404204042140422404234042440425404264042740428404294043040431404324043340434404354043640437404384043940440404414044240443404444044540446404474044840449404504045140452404534045440455404564045740458404594046040461404624046340464404654046640467404684046940470404714047240473404744047540476404774047840479404804048140482404834048440485404864048740488404894049040491404924049340494404954049640497404984049940500405014050240503405044050540506405074050840509405104051140512405134051440515405164051740518405194052040521405224052340524405254052640527405284052940530405314053240533405344053540536405374053840539405404054140542405434054440545405464054740548405494055040551405524055340554405554055640557405584055940560405614056240563405644056540566405674056840569405704057140572405734057440575405764057740578405794058040581405824058340584405854058640587405884058940590405914059240593405944059540596405974059840599406004060140602406034060440605406064060740608406094061040611406124061340614406154061640617406184061940620406214062240623406244062540626406274062840629406304063140632406334063440635406364063740638406394064040641406424064340644406454064640647406484064940650406514065240653406544065540656406574065840659406604066140662406634066440665406664066740668406694067040671406724067340674406754067640677406784067940680406814068240683406844068540686406874068840689406904069140692406934069440695406964069740698406994070040701407024070340704407054070640707407084070940710407114071240713407144071540716407174071840719407204072140722407234072440725407264072740728407294073040731407324073340734407354073640737407384073940740407414074240743407444074540746407474074840749407504075140752407534075440755407564075740758407594076040761407624076340764407654076640767407684076940770407714077240773407744077540776407774077840779407804078140782407834078440785407864078740788407894079040791407924079340794407954079640797407984079940800408014080240803408044080540806408074080840809408104081140812408134081440815408164081740818408194082040821408224082340824408254082640827408284082940830408314083240833408344083540836408374083840839408404084140842408434084440845408464084740848408494085040851408524085340854408554085640857408584085940860408614086240863408644086540866408674086840869408704087140872408734087440875408764087740878408794088040881408824088340884408854088640887408884088940890408914089240893408944089540896408974089840899409004090140902409034090440905409064090740908409094091040911409124091340914409154091640917409184091940920409214092240923409244092540926409274092840929409304093140932409334093440935409364093740938409394094040941409424094340944409454094640947409484094940950409514095240953409544095540956409574095840959409604096140962409634096440965409664096740968409694097040971409724097340974409754097640977409784097940980409814098240983409844098540986409874098840989409904099140992409934099440995409964099740998409994100041001410024100341004410054100641007410084100941010410114101241013410144101541016410174101841019410204102141022410234102441025410264102741028410294103041031410324103341034410354103641037410384103941040410414104241043410444104541046410474104841049410504105141052410534105441055410564105741058410594106041061410624106341064410654106641067410684106941070410714107241073410744107541076410774107841079410804108141082410834108441085410864108741088410894109041091410924109341094410954109641097410984109941100411014110241103411044110541106411074110841109411104111141112411134111441115411164111741118411194112041121411224112341124411254112641127411284112941130411314113241133411344113541136411374113841139411404114141142411434114441145411464114741148411494115041151411524115341154411554115641157411584115941160411614116241163411644116541166411674116841169411704117141172411734117441175411764117741178411794118041181411824118341184411854118641187411884118941190411914119241193411944119541196411974119841199412004120141202412034120441205412064120741208412094121041211412124121341214412154121641217412184121941220412214122241223412244122541226412274122841229412304123141232412334123441235412364123741238412394124041241412424124341244412454124641247412484124941250412514125241253412544125541256412574125841259412604126141262412634126441265412664126741268412694127041271412724127341274412754127641277412784127941280412814128241283412844128541286412874128841289412904129141292412934129441295412964129741298412994130041301413024130341304413054130641307413084130941310413114131241313413144131541316413174131841319413204132141322413234132441325413264132741328413294133041331413324133341334413354133641337413384133941340413414134241343413444134541346413474134841349413504135141352413534135441355413564135741358413594136041361413624136341364413654136641367413684136941370413714137241373413744137541376413774137841379413804138141382413834138441385413864138741388413894139041391413924139341394413954139641397413984139941400414014140241403414044140541406414074140841409414104141141412414134141441415414164141741418414194142041421414224142341424414254142641427414284142941430414314143241433414344143541436414374143841439414404144141442414434144441445414464144741448414494145041451414524145341454414554145641457414584145941460414614146241463414644146541466414674146841469414704147141472414734147441475414764147741478414794148041481414824148341484414854148641487414884148941490414914149241493414944149541496414974149841499415004150141502415034150441505415064150741508415094151041511415124151341514415154151641517415184151941520415214152241523415244152541526415274152841529415304153141532415334153441535415364153741538415394154041541415424154341544415454154641547415484154941550415514155241553415544155541556415574155841559415604156141562415634156441565415664156741568415694157041571415724157341574415754157641577415784157941580415814158241583415844158541586415874158841589415904159141592415934159441595415964159741598415994160041601416024160341604416054160641607416084160941610416114161241613416144161541616416174161841619416204162141622416234162441625416264162741628416294163041631416324163341634416354163641637416384163941640416414164241643416444164541646416474164841649416504165141652416534165441655416564165741658416594166041661416624166341664416654166641667416684166941670416714167241673416744167541676416774167841679416804168141682416834168441685416864168741688416894169041691416924169341694416954169641697416984169941700417014170241703417044170541706417074170841709417104171141712417134171441715417164171741718417194172041721417224172341724417254172641727417284172941730417314173241733417344173541736417374173841739417404174141742417434174441745417464174741748417494175041751417524175341754417554175641757417584175941760417614176241763417644176541766417674176841769417704177141772417734177441775417764177741778417794178041781417824178341784417854178641787417884178941790417914179241793417944179541796417974179841799418004180141802418034180441805418064180741808418094181041811418124181341814418154181641817418184181941820418214182241823418244182541826418274182841829418304183141832418334183441835418364183741838418394184041841418424184341844418454184641847418484184941850418514185241853418544185541856418574185841859418604186141862418634186441865418664186741868418694187041871418724187341874418754187641877418784187941880418814188241883418844188541886418874188841889418904189141892418934189441895418964189741898418994190041901419024190341904419054190641907419084190941910419114191241913419144191541916419174191841919419204192141922419234192441925419264192741928419294193041931419324193341934419354193641937419384193941940419414194241943419444194541946419474194841949419504195141952419534195441955419564195741958419594196041961419624196341964419654196641967419684196941970419714197241973419744197541976419774197841979419804198141982419834198441985419864198741988419894199041991419924199341994419954199641997419984199942000420014200242003420044200542006420074200842009420104201142012420134201442015420164201742018420194202042021420224202342024420254202642027420284202942030420314203242033420344203542036420374203842039420404204142042420434204442045420464204742048420494205042051420524205342054420554205642057420584205942060420614206242063420644206542066420674206842069420704207142072420734207442075420764207742078420794208042081420824208342084420854208642087420884208942090420914209242093420944209542096420974209842099421004210142102421034210442105421064210742108421094211042111421124211342114421154211642117421184211942120421214212242123421244212542126421274212842129421304213142132421334213442135421364213742138421394214042141421424214342144421454214642147421484214942150421514215242153421544215542156421574215842159421604216142162421634216442165421664216742168421694217042171421724217342174421754217642177421784217942180421814218242183421844218542186421874218842189421904219142192421934219442195421964219742198421994220042201422024220342204422054220642207422084220942210422114221242213422144221542216422174221842219422204222142222422234222442225422264222742228422294223042231422324223342234422354223642237422384223942240422414224242243422444224542246422474224842249422504225142252422534225442255422564225742258422594226042261422624226342264422654226642267422684226942270422714227242273422744227542276422774227842279422804228142282422834228442285422864228742288422894229042291422924229342294422954229642297422984229942300423014230242303423044230542306423074230842309423104231142312423134231442315423164231742318423194232042321423224232342324423254232642327423284232942330423314233242333423344233542336423374233842339423404234142342423434234442345423464234742348423494235042351423524235342354423554235642357423584235942360423614236242363423644236542366423674236842369423704237142372423734237442375423764237742378423794238042381423824238342384423854238642387423884238942390423914239242393423944239542396423974239842399424004240142402424034240442405424064240742408424094241042411424124241342414424154241642417424184241942420424214242242423424244242542426424274242842429424304243142432424334243442435424364243742438424394244042441424424244342444424454244642447424484244942450424514245242453424544245542456424574245842459424604246142462424634246442465424664246742468424694247042471424724247342474424754247642477424784247942480424814248242483424844248542486424874248842489424904249142492424934249442495424964249742498424994250042501425024250342504425054250642507425084250942510425114251242513425144251542516425174251842519425204252142522425234252442525425264252742528425294253042531425324253342534425354253642537425384253942540425414254242543425444254542546425474254842549425504255142552425534255442555425564255742558425594256042561425624256342564425654256642567425684256942570425714257242573425744257542576425774257842579425804258142582425834258442585425864258742588425894259042591425924259342594425954259642597425984259942600426014260242603426044260542606426074260842609426104261142612426134261442615426164261742618426194262042621426224262342624426254262642627426284262942630426314263242633426344263542636426374263842639426404264142642426434264442645426464264742648426494265042651426524265342654426554265642657426584265942660426614266242663426644266542666426674266842669426704267142672426734267442675426764267742678426794268042681426824268342684426854268642687426884268942690426914269242693426944269542696426974269842699427004270142702427034270442705427064270742708427094271042711427124271342714427154271642717427184271942720427214272242723427244272542726427274272842729427304273142732427334273442735427364273742738427394274042741427424274342744427454274642747427484274942750427514275242753427544275542756427574275842759427604276142762427634276442765427664276742768427694277042771427724277342774427754277642777427784277942780427814278242783427844278542786427874278842789427904279142792427934279442795427964279742798427994280042801428024280342804428054280642807428084280942810428114281242813428144281542816428174281842819428204282142822428234282442825428264282742828428294283042831428324283342834428354283642837428384283942840428414284242843428444284542846428474284842849428504285142852428534285442855428564285742858428594286042861428624286342864428654286642867428684286942870428714287242873428744287542876428774287842879428804288142882428834288442885428864288742888428894289042891428924289342894428954289642897428984289942900429014290242903429044290542906429074290842909429104291142912429134291442915429164291742918429194292042921429224292342924429254292642927429284292942930429314293242933429344293542936429374293842939429404294142942429434294442945429464294742948429494295042951429524295342954429554295642957429584295942960429614296242963429644296542966429674296842969429704297142972429734297442975429764297742978429794298042981429824298342984429854298642987429884298942990429914299242993429944299542996429974299842999430004300143002430034300443005430064300743008430094301043011430124301343014430154301643017430184301943020430214302243023430244302543026430274302843029430304303143032430334303443035430364303743038430394304043041430424304343044430454304643047430484304943050430514305243053430544305543056430574305843059430604306143062430634306443065430664306743068430694307043071430724307343074430754307643077430784307943080430814308243083430844308543086430874308843089430904309143092430934309443095430964309743098430994310043101431024310343104431054310643107431084310943110431114311243113431144311543116431174311843119431204312143122431234312443125431264312743128431294313043131431324313343134431354313643137431384313943140431414314243143431444314543146431474314843149431504315143152431534315443155431564315743158431594316043161431624316343164431654316643167431684316943170431714317243173431744317543176431774317843179431804318143182431834318443185431864318743188431894319043191431924319343194431954319643197431984319943200432014320243203432044320543206432074320843209432104321143212432134321443215432164321743218432194322043221432224322343224432254322643227432284322943230432314323243233432344323543236432374323843239432404324143242432434324443245432464324743248432494325043251432524325343254432554325643257432584325943260432614326243263432644326543266432674326843269432704327143272432734327443275432764327743278432794328043281432824328343284432854328643287432884328943290432914329243293432944329543296432974329843299433004330143302433034330443305433064330743308433094331043311433124331343314433154331643317433184331943320433214332243323433244332543326433274332843329433304333143332433334333443335433364333743338433394334043341433424334343344433454334643347433484334943350433514335243353433544335543356433574335843359433604336143362433634336443365433664336743368433694337043371433724337343374433754337643377433784337943380433814338243383433844338543386433874338843389433904339143392433934339443395433964339743398433994340043401434024340343404434054340643407434084340943410434114341243413434144341543416434174341843419434204342143422434234342443425434264342743428434294343043431434324343343434434354343643437434384343943440434414344243443434444344543446434474344843449434504345143452434534345443455434564345743458434594346043461434624346343464434654346643467434684346943470434714347243473434744347543476434774347843479434804348143482434834348443485434864348743488434894349043491434924349343494434954349643497434984349943500435014350243503435044350543506435074350843509435104351143512435134351443515435164351743518435194352043521435224352343524435254352643527435284352943530435314353243533435344353543536435374353843539435404354143542435434354443545435464354743548435494355043551435524355343554435554355643557435584355943560435614356243563435644356543566435674356843569435704357143572435734357443575435764357743578435794358043581435824358343584435854358643587435884358943590435914359243593435944359543596435974359843599436004360143602436034360443605436064360743608436094361043611436124361343614436154361643617436184361943620436214362243623436244362543626436274362843629436304363143632436334363443635436364363743638436394364043641436424364343644436454364643647436484364943650436514365243653436544365543656436574365843659436604366143662436634366443665436664366743668436694367043671436724367343674436754367643677436784367943680436814368243683436844368543686436874368843689436904369143692436934369443695436964369743698436994370043701437024370343704437054370643707437084370943710437114371243713437144371543716437174371843719437204372143722437234372443725437264372743728437294373043731437324373343734437354373643737437384373943740437414374243743437444374543746437474374843749437504375143752437534375443755437564375743758437594376043761437624376343764437654376643767437684376943770437714377243773437744377543776437774377843779437804378143782437834378443785437864378743788437894379043791437924379343794437954379643797437984379943800438014380243803438044380543806438074380843809438104381143812438134381443815438164381743818438194382043821438224382343824438254382643827438284382943830438314383243833438344383543836438374383843839438404384143842438434384443845438464384743848438494385043851438524385343854438554385643857438584385943860438614386243863438644386543866438674386843869438704387143872438734387443875438764387743878438794388043881438824388343884438854388643887438884388943890438914389243893438944389543896438974389843899439004390143902439034390443905439064390743908439094391043911439124391343914439154391643917439184391943920439214392243923439244392543926439274392843929439304393143932439334393443935439364393743938439394394043941439424394343944439454394643947439484394943950439514395243953439544395543956439574395843959439604396143962439634396443965439664396743968439694397043971439724397343974439754397643977439784397943980439814398243983439844398543986439874398843989439904399143992439934399443995439964399743998439994400044001440024400344004440054400644007440084400944010440114401244013440144401544016440174401844019440204402144022440234402444025440264402744028440294403044031440324403344034440354403644037440384403944040440414404244043440444404544046440474404844049440504405144052440534405444055440564405744058440594406044061440624406344064440654406644067440684406944070440714407244073440744407544076440774407844079440804408144082440834408444085440864408744088440894409044091440924409344094440954409644097440984409944100441014410244103441044410544106441074410844109441104411144112441134411444115441164411744118441194412044121441224412344124441254412644127441284412944130441314413244133441344413544136441374413844139441404414144142441434414444145441464414744148441494415044151441524415344154441554415644157441584415944160441614416244163441644416544166441674416844169441704417144172441734417444175441764417744178441794418044181441824418344184441854418644187441884418944190441914419244193441944419544196441974419844199442004420144202442034420444205442064420744208442094421044211442124421344214442154421644217442184421944220442214422244223442244422544226442274422844229442304423144232442334423444235442364423744238442394424044241442424424344244442454424644247442484424944250442514425244253442544425544256442574425844259442604426144262442634426444265442664426744268442694427044271442724427344274442754427644277442784427944280442814428244283442844428544286442874428844289442904429144292442934429444295442964429744298442994430044301443024430344304443054430644307443084430944310443114431244313443144431544316443174431844319443204432144322443234432444325443264432744328443294433044331443324433344334443354433644337443384433944340443414434244343443444434544346443474434844349443504435144352443534435444355443564435744358443594436044361443624436344364443654436644367443684436944370443714437244373443744437544376443774437844379443804438144382443834438444385443864438744388443894439044391443924439344394443954439644397443984439944400444014440244403444044440544406444074440844409444104441144412444134441444415444164441744418444194442044421444224442344424444254442644427444284442944430444314443244433444344443544436444374443844439444404444144442444434444444445444464444744448444494445044451444524445344454444554445644457444584445944460444614446244463444644446544466444674446844469444704447144472444734447444475444764447744478444794448044481444824448344484444854448644487444884448944490444914449244493444944449544496444974449844499445004450144502445034450444505445064450744508445094451044511445124451344514445154451644517445184451944520445214452244523445244452544526445274452844529445304453144532445334453444535445364453744538445394454044541445424454344544445454454644547445484454944550445514455244553445544455544556445574455844559445604456144562445634456444565445664456744568445694457044571445724457344574445754457644577445784457944580445814458244583445844458544586445874458844589445904459144592445934459444595445964459744598445994460044601446024460344604446054460644607446084460944610446114461244613446144461544616446174461844619446204462144622446234462444625446264462744628446294463044631446324463344634446354463644637446384463944640446414464244643446444464544646446474464844649446504465144652446534465444655446564465744658446594466044661446624466344664446654466644667446684466944670446714467244673446744467544676446774467844679446804468144682446834468444685446864468744688446894469044691446924469344694446954469644697446984469944700447014470244703447044470544706447074470844709447104471144712447134471444715447164471744718447194472044721447224472344724447254472644727447284472944730447314473244733447344473544736447374473844739447404474144742447434474444745447464474744748447494475044751447524475344754447554475644757447584475944760447614476244763447644476544766447674476844769447704477144772447734477444775447764477744778
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Thu Sep 25 11:22:04 PDT 2008 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop 0.18.1"
  9. jdversion="1.1.0">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/cutting/local/jdiff/jdiff.jar:/home/cutting/local/jdiff/xerces.jar -classpath /home/cutting/src/hadoop/release-0.18.1/lib/commons-cli-2.0-SNAPSHOT.jar:/home/cutting/src/hadoop/release-0.18.1/lib/commons-codec-1.3.jar:/home/cutting/src/hadoop/release-0.18.1/lib/commons-httpclient-3.0.1.jar:/home/cutting/src/hadoop/release-0.18.1/lib/commons-logging-1.0.4.jar:/home/cutting/src/hadoop/release-0.18.1/lib/commons-logging-api-1.0.4.jar:/home/cutting/src/hadoop/release-0.18.1/lib/commons-net-1.4.1.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jets3t-0.6.0.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jetty-5.1.4.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jetty-ext/commons-el.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jetty-ext/jasper-compiler.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jetty-ext/jasper-runtime.jar:/home/cutting/src/hadoop/release-0.18.1/lib/jetty-ext/jsp-api.jar:/home/cutting/src/hadoop/release-0.18.1/lib/junit-3.8.1.jar:/home/cutting/src/hadoop/release-0.18.1/lib/kfs-0.1.3.jar:/home/cutting/src/hadoop/release-0.18.1/lib/log4j-1.2.15.jar:/home/cutting/src/hadoop/release-0.18.1/lib/oro-2.0.8.jar:/home/cutting/src/hadoop/release-0.18.1/lib/servlet-api.jar:/home/cutting/src/hadoop/release-0.18.1/lib/slf4j-api-1.4.3.jar:/home/cutting/src/hadoop/release-0.18.1/lib/slf4j-log4j12-1.4.3.jar:/home/cutting/src/hadoop/release-0.18.1/lib/xmlenc-0.52.jar:/home/cutting/src/hadoop/release-0.18.1/conf:/usr/share/ant/lib/ant-launcher.jar:/usr/share/java/xmlParserAPIs.jar:/usr/share/java/xercesImpl.jar:/usr/share/ant/lib/ant-javamail.jar:/usr/share/ant/lib/ant-apache-resolver.jar:/usr/share/ant/lib/ant-jdepend.jar:/usr/share/ant/lib/ant-apache-regexp.jar:/usr/share/ant/lib/ant-apache-log4j.jar:/usr/share/ant/lib/ant-apache-oro.jar:/usr/share/ant/lib/junit.jar:/usr/share/ant/lib/ant.jar:/usr/share/ant/lib/ant-jmf.jar:/usr/share/ant/lib/ant-commons-logging.jar:/usr/share/ant/lib/catalina5.5-ant.jar:/usr/share/ant/lib/ant-commons-net.jar:/usr/share/ant/lib/ant-bootstrap.jar:/usr/share/ant/lib/tomcat5.5-jkstatus-ant.jar:/usr/share/ant/lib/ant-nodeps.jar:/usr/share/ant/lib/ant-jsch.jar:/usr/share/ant/lib/jsch.jar:/usr/share/ant/lib/catalina5.5-ant-jmx.jar:/usr/share/ant/lib/ant-swing.jar:/usr/share/ant/lib/ant-antlr.jar:/usr/share/ant/lib/ant-apache-bsf.jar:/usr/share/ant/lib/bcel.jar:/usr/share/ant/lib/ant-trax.jar:/usr/share/ant/lib/junit-3.8.1.jar:/usr/share/ant/lib/ant-apache-bcel.jar:/usr/share/ant/lib/ant-junit.jar:/usr/lib/jvm/java-6-sun-1.6.0.06/lib/tools.jar -sourcepath /home/cutting/src/hadoop/release-0.18.1/src/core:/home/cutting/src/hadoop/release-0.18.1/src/hdfs:/home/cutting/src/hadoop/release-0.18.1/src/mapred:/home/cutting/src/hadoop/release-0.18.1/src/tools -apidir /home/cutting/src/hadoop/release-0.18.1/build -apiname hadoop 0.18.1 -->
  11. <package name="org.apache.hadoop">
  12. <!-- start class org.apache.hadoop.HadoopVersionAnnotation -->
  13. <class name="HadoopVersionAnnotation" abstract="true"
  14. static="false" final="false" visibility="public"
  15. deprecated="not deprecated">
  16. <implements name="java.lang.annotation.Annotation"/>
  17. <doc>
  18. <![CDATA[A package attribute that captures the version of Hadoop that was compiled.]]>
  19. </doc>
  20. </class>
  21. <!-- end class org.apache.hadoop.HadoopVersionAnnotation -->
  22. </package>
  23. <package name="org.apache.hadoop.conf">
  24. <!-- start interface org.apache.hadoop.conf.Configurable -->
  25. <interface name="Configurable" abstract="true"
  26. static="false" final="false" visibility="public"
  27. deprecated="not deprecated">
  28. <method name="setConf"
  29. abstract="false" native="false" synchronized="false"
  30. static="false" final="false" visibility="public"
  31. deprecated="not deprecated">
  32. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  33. <doc>
  34. <![CDATA[Set the configuration to be used by this object.]]>
  35. </doc>
  36. </method>
  37. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  38. abstract="false" native="false" synchronized="false"
  39. static="false" final="false" visibility="public"
  40. deprecated="not deprecated">
  41. <doc>
  42. <![CDATA[Return the configuration used by this object.]]>
  43. </doc>
  44. </method>
  45. <doc>
  46. <![CDATA[Something that may be configured with a {@link Configuration}.]]>
  47. </doc>
  48. </interface>
  49. <!-- end interface org.apache.hadoop.conf.Configurable -->
  50. <!-- start class org.apache.hadoop.conf.Configuration -->
  51. <class name="Configuration" extends="java.lang.Object"
  52. abstract="false"
  53. static="false" final="false" visibility="public"
  54. deprecated="not deprecated">
  55. <implements name="java.lang.Iterable&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"/>
  56. <constructor name="Configuration"
  57. static="false" final="false" visibility="public"
  58. deprecated="not deprecated">
  59. <doc>
  60. <![CDATA[A new configuration.]]>
  61. </doc>
  62. </constructor>
  63. <constructor name="Configuration" type="org.apache.hadoop.conf.Configuration"
  64. static="false" final="false" visibility="public"
  65. deprecated="not deprecated">
  66. <doc>
  67. <![CDATA[A new configuration with the same settings cloned from another.
  68. @param other the configuration from which to clone settings.]]>
  69. </doc>
  70. </constructor>
  71. <method name="addResource"
  72. abstract="false" native="false" synchronized="false"
  73. static="false" final="false" visibility="public"
  74. deprecated="not deprecated">
  75. <param name="name" type="java.lang.String"/>
  76. <doc>
  77. <![CDATA[Add a configuration resource.
  78. The properties of this resource will override properties of previously
  79. added resources, unless they were marked <a href="#Final">final</a>.
  80. @param name resource to be added, the classpath is examined for a file
  81. with that name.]]>
  82. </doc>
  83. </method>
  84. <method name="addResource"
  85. abstract="false" native="false" synchronized="false"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <param name="url" type="java.net.URL"/>
  89. <doc>
  90. <![CDATA[Add a configuration resource.
  91. The properties of this resource will override properties of previously
  92. added resources, unless they were marked <a href="#Final">final</a>.
  93. @param url url of the resource to be added, the local filesystem is
  94. examined directly to find the resource, without referring to
  95. the classpath.]]>
  96. </doc>
  97. </method>
  98. <method name="addResource"
  99. abstract="false" native="false" synchronized="false"
  100. static="false" final="false" visibility="public"
  101. deprecated="not deprecated">
  102. <param name="file" type="org.apache.hadoop.fs.Path"/>
  103. <doc>
  104. <![CDATA[Add a configuration resource.
  105. The properties of this resource will override properties of previously
  106. added resources, unless they were marked <a href="#Final">final</a>.
  107. @param file file-path of resource to be added, the local filesystem is
  108. examined directly to find the resource, without referring to
  109. the classpath.]]>
  110. </doc>
  111. </method>
  112. <method name="get" return="java.lang.String"
  113. abstract="false" native="false" synchronized="false"
  114. static="false" final="false" visibility="public"
  115. deprecated="not deprecated">
  116. <param name="name" type="java.lang.String"/>
  117. <doc>
  118. <![CDATA[Get the value of the <code>name</code> property, <code>null</code> if
  119. no such property exists.
  120. Values are processed for <a href="#VariableExpansion">variable expansion</a>
  121. before being returned.
  122. @param name the property name.
  123. @return the value of the <code>name</code> property,
  124. or null if no such property exists.]]>
  125. </doc>
  126. </method>
  127. <method name="getRaw" return="java.lang.String"
  128. abstract="false" native="false" synchronized="false"
  129. static="false" final="false" visibility="public"
  130. deprecated="not deprecated">
  131. <param name="name" type="java.lang.String"/>
  132. <doc>
  133. <![CDATA[Get the value of the <code>name</code> property, without doing
  134. <a href="#VariableExpansion">variable expansion</a>.
  135. @param name the property name.
  136. @return the value of the <code>name</code> property,
  137. or null if no such property exists.]]>
  138. </doc>
  139. </method>
  140. <method name="set"
  141. abstract="false" native="false" synchronized="false"
  142. static="false" final="false" visibility="public"
  143. deprecated="not deprecated">
  144. <param name="name" type="java.lang.String"/>
  145. <param name="value" type="java.lang.String"/>
  146. <doc>
  147. <![CDATA[Set the <code>value</code> of the <code>name</code> property.
  148. @param name property name.
  149. @param value property value.]]>
  150. </doc>
  151. </method>
  152. <method name="get" return="java.lang.String"
  153. abstract="false" native="false" synchronized="false"
  154. static="false" final="false" visibility="public"
  155. deprecated="not deprecated">
  156. <param name="name" type="java.lang.String"/>
  157. <param name="defaultValue" type="java.lang.String"/>
  158. <doc>
  159. <![CDATA[Get the value of the <code>name</code> property. If no such property
  160. exists, then <code>defaultValue</code> is returned.
  161. @param name property name.
  162. @param defaultValue default value.
  163. @return property value, or <code>defaultValue</code> if the property
  164. doesn't exist.]]>
  165. </doc>
  166. </method>
  167. <method name="getInt" return="int"
  168. abstract="false" native="false" synchronized="false"
  169. static="false" final="false" visibility="public"
  170. deprecated="not deprecated">
  171. <param name="name" type="java.lang.String"/>
  172. <param name="defaultValue" type="int"/>
  173. <doc>
  174. <![CDATA[Get the value of the <code>name</code> property as an <code>int</code>.
  175. If no such property exists, or if the specified value is not a valid
  176. <code>int</code>, then <code>defaultValue</code> is returned.
  177. @param name property name.
  178. @param defaultValue default value.
  179. @return property value as an <code>int</code>,
  180. or <code>defaultValue</code>.]]>
  181. </doc>
  182. </method>
  183. <method name="setInt"
  184. abstract="false" native="false" synchronized="false"
  185. static="false" final="false" visibility="public"
  186. deprecated="not deprecated">
  187. <param name="name" type="java.lang.String"/>
  188. <param name="value" type="int"/>
  189. <doc>
  190. <![CDATA[Set the value of the <code>name</code> property to an <code>int</code>.
  191. @param name property name.
  192. @param value <code>int</code> value of the property.]]>
  193. </doc>
  194. </method>
  195. <method name="getLong" return="long"
  196. abstract="false" native="false" synchronized="false"
  197. static="false" final="false" visibility="public"
  198. deprecated="not deprecated">
  199. <param name="name" type="java.lang.String"/>
  200. <param name="defaultValue" type="long"/>
  201. <doc>
  202. <![CDATA[Get the value of the <code>name</code> property as a <code>long</code>.
  203. If no such property is specified, or if the specified value is not a valid
  204. <code>long</code>, then <code>defaultValue</code> is returned.
  205. @param name property name.
  206. @param defaultValue default value.
  207. @return property value as a <code>long</code>,
  208. or <code>defaultValue</code>.]]>
  209. </doc>
  210. </method>
  211. <method name="setLong"
  212. abstract="false" native="false" synchronized="false"
  213. static="false" final="false" visibility="public"
  214. deprecated="not deprecated">
  215. <param name="name" type="java.lang.String"/>
  216. <param name="value" type="long"/>
  217. <doc>
  218. <![CDATA[Set the value of the <code>name</code> property to a <code>long</code>.
  219. @param name property name.
  220. @param value <code>long</code> value of the property.]]>
  221. </doc>
  222. </method>
  223. <method name="getFloat" return="float"
  224. abstract="false" native="false" synchronized="false"
  225. static="false" final="false" visibility="public"
  226. deprecated="not deprecated">
  227. <param name="name" type="java.lang.String"/>
  228. <param name="defaultValue" type="float"/>
  229. <doc>
  230. <![CDATA[Get the value of the <code>name</code> property as a <code>float</code>.
  231. If no such property is specified, or if the specified value is not a valid
  232. <code>float</code>, then <code>defaultValue</code> is returned.
  233. @param name property name.
  234. @param defaultValue default value.
  235. @return property value as a <code>float</code>,
  236. or <code>defaultValue</code>.]]>
  237. </doc>
  238. </method>
  239. <method name="getBoolean" return="boolean"
  240. abstract="false" native="false" synchronized="false"
  241. static="false" final="false" visibility="public"
  242. deprecated="not deprecated">
  243. <param name="name" type="java.lang.String"/>
  244. <param name="defaultValue" type="boolean"/>
  245. <doc>
  246. <![CDATA[Get the value of the <code>name</code> property as a <code>boolean</code>.
  247. If no such property is specified, or if the specified value is not a valid
  248. <code>boolean</code>, then <code>defaultValue</code> is returned.
  249. @param name property name.
  250. @param defaultValue default value.
  251. @return property value as a <code>boolean</code>,
  252. or <code>defaultValue</code>.]]>
  253. </doc>
  254. </method>
  255. <method name="setBoolean"
  256. abstract="false" native="false" synchronized="false"
  257. static="false" final="false" visibility="public"
  258. deprecated="not deprecated">
  259. <param name="name" type="java.lang.String"/>
  260. <param name="value" type="boolean"/>
  261. <doc>
  262. <![CDATA[Set the value of the <code>name</code> property to a <code>boolean</code>.
  263. @param name property name.
  264. @param value <code>boolean</code> value of the property.]]>
  265. </doc>
  266. </method>
  267. <method name="getRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  268. abstract="false" native="false" synchronized="false"
  269. static="false" final="false" visibility="public"
  270. deprecated="not deprecated">
  271. <param name="name" type="java.lang.String"/>
  272. <param name="defaultValue" type="java.lang.String"/>
  273. <doc>
  274. <![CDATA[Parse the given attribute as a set of integer ranges
  275. @param name the attribute name
  276. @param defaultValue the default value if it is not set
  277. @return a new set of ranges from the configured value]]>
  278. </doc>
  279. </method>
  280. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  281. abstract="false" native="false" synchronized="false"
  282. static="false" final="false" visibility="public"
  283. deprecated="not deprecated">
  284. <param name="name" type="java.lang.String"/>
  285. <doc>
  286. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  287. a collection of <code>String</code>s.
  288. If no such property is specified then empty collection is returned.
  289. <p>
  290. This is an optimized version of {@link #getStrings(String)}
  291. @param name property name.
  292. @return property value as a collection of <code>String</code>s.]]>
  293. </doc>
  294. </method>
  295. <method name="getStrings" return="java.lang.String[]"
  296. abstract="false" native="false" synchronized="false"
  297. static="false" final="false" visibility="public"
  298. deprecated="not deprecated">
  299. <param name="name" type="java.lang.String"/>
  300. <doc>
  301. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  302. an array of <code>String</code>s.
  303. If no such property is specified then <code>null</code> is returned.
  304. @param name property name.
  305. @return property value as an array of <code>String</code>s,
  306. or <code>null</code>.]]>
  307. </doc>
  308. </method>
  309. <method name="getStrings" return="java.lang.String[]"
  310. abstract="false" native="false" synchronized="false"
  311. static="false" final="false" visibility="public"
  312. deprecated="not deprecated">
  313. <param name="name" type="java.lang.String"/>
  314. <param name="defaultValue" type="java.lang.String[]"/>
  315. <doc>
  316. <![CDATA[Get the comma delimited values of the <code>name</code> property as
  317. an array of <code>String</code>s.
  318. If no such property is specified then default value is returned.
  319. @param name property name.
  320. @param defaultValue The default value
  321. @return property value as an array of <code>String</code>s,
  322. or default value.]]>
  323. </doc>
  324. </method>
  325. <method name="setStrings"
  326. abstract="false" native="false" synchronized="false"
  327. static="false" final="false" visibility="public"
  328. deprecated="not deprecated">
  329. <param name="name" type="java.lang.String"/>
  330. <param name="values" type="java.lang.String[]"/>
  331. <doc>
  332. <![CDATA[Set the array of string values for the <code>name</code> property as
  333. as comma delimited values.
  334. @param name property name.
  335. @param values The values]]>
  336. </doc>
  337. </method>
  338. <method name="getClassByName" return="java.lang.Class&lt;?&gt;"
  339. abstract="false" native="false" synchronized="false"
  340. static="false" final="false" visibility="public"
  341. deprecated="not deprecated">
  342. <param name="name" type="java.lang.String"/>
  343. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  344. <doc>
  345. <![CDATA[Load a class by name.
  346. @param name the class name.
  347. @return the class object.
  348. @throws ClassNotFoundException if the class is not found.]]>
  349. </doc>
  350. </method>
  351. <method name="getClass" return="java.lang.Class&lt;?&gt;"
  352. abstract="false" native="false" synchronized="false"
  353. static="false" final="false" visibility="public"
  354. deprecated="not deprecated">
  355. <param name="name" type="java.lang.String"/>
  356. <param name="defaultValue" type="java.lang.Class&lt;?&gt;"/>
  357. <doc>
  358. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>.
  359. If no such property is specified, then <code>defaultValue</code> is
  360. returned.
  361. @param name the class name.
  362. @param defaultValue default value.
  363. @return property value as a <code>Class</code>,
  364. or <code>defaultValue</code>.]]>
  365. </doc>
  366. </method>
  367. <method name="getClass" return="java.lang.Class&lt;? extends U&gt;"
  368. abstract="false" native="false" synchronized="false"
  369. static="false" final="false" visibility="public"
  370. deprecated="not deprecated">
  371. <param name="name" type="java.lang.String"/>
  372. <param name="defaultValue" type="java.lang.Class&lt;? extends U&gt;"/>
  373. <param name="xface" type="java.lang.Class&lt;U&gt;"/>
  374. <doc>
  375. <![CDATA[Get the value of the <code>name</code> property as a <code>Class</code>
  376. implementing the interface specified by <code>xface</code>.
  377. If no such property is specified, then <code>defaultValue</code> is
  378. returned.
  379. An exception is thrown if the returned class does not implement the named
  380. interface.
  381. @param name the class name.
  382. @param defaultValue default value.
  383. @param xface the interface implemented by the named class.
  384. @return property value as a <code>Class</code>,
  385. or <code>defaultValue</code>.]]>
  386. </doc>
  387. </method>
  388. <method name="setClass"
  389. abstract="false" native="false" synchronized="false"
  390. static="false" final="false" visibility="public"
  391. deprecated="not deprecated">
  392. <param name="name" type="java.lang.String"/>
  393. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  394. <param name="xface" type="java.lang.Class&lt;?&gt;"/>
  395. <doc>
  396. <![CDATA[Set the value of the <code>name</code> property to the name of a
  397. <code>theClass</code> implementing the given interface <code>xface</code>.
  398. An exception is thrown if <code>theClass</code> does not implement the
  399. interface <code>xface</code>.
  400. @param name property name.
  401. @param theClass property value.
  402. @param xface the interface implemented by the named class.]]>
  403. </doc>
  404. </method>
  405. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  406. abstract="false" native="false" synchronized="false"
  407. static="false" final="false" visibility="public"
  408. deprecated="not deprecated">
  409. <param name="dirsProp" type="java.lang.String"/>
  410. <param name="path" type="java.lang.String"/>
  411. <exception name="IOException" type="java.io.IOException"/>
  412. <doc>
  413. <![CDATA[Get a local file under a directory named by <i>dirsProp</i> with
  414. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  415. then one is chosen based on <i>path</i>'s hash code. If the selected
  416. directory does not exist, an attempt is made to create it.
  417. @param dirsProp directory in which to locate the file.
  418. @param path file-path.
  419. @return local file under the directory with the given path.]]>
  420. </doc>
  421. </method>
  422. <method name="getFile" return="java.io.File"
  423. abstract="false" native="false" synchronized="false"
  424. static="false" final="false" visibility="public"
  425. deprecated="not deprecated">
  426. <param name="dirsProp" type="java.lang.String"/>
  427. <param name="path" type="java.lang.String"/>
  428. <exception name="IOException" type="java.io.IOException"/>
  429. <doc>
  430. <![CDATA[Get a local file name under a directory named in <i>dirsProp</i> with
  431. the given <i>path</i>. If <i>dirsProp</i> contains multiple directories,
  432. then one is chosen based on <i>path</i>'s hash code. If the selected
  433. directory does not exist, an attempt is made to create it.
  434. @param dirsProp directory in which to locate the file.
  435. @param path file-path.
  436. @return local file under the directory with the given path.]]>
  437. </doc>
  438. </method>
  439. <method name="getResource" return="java.net.URL"
  440. abstract="false" native="false" synchronized="false"
  441. static="false" final="false" visibility="public"
  442. deprecated="not deprecated">
  443. <param name="name" type="java.lang.String"/>
  444. <doc>
  445. <![CDATA[Get the {@link URL} for the named resource.
  446. @param name resource name.
  447. @return the url for the named resource.]]>
  448. </doc>
  449. </method>
  450. <method name="getConfResourceAsInputStream" return="java.io.InputStream"
  451. abstract="false" native="false" synchronized="false"
  452. static="false" final="false" visibility="public"
  453. deprecated="not deprecated">
  454. <param name="name" type="java.lang.String"/>
  455. <doc>
  456. <![CDATA[Get an input stream attached to the configuration resource with the
  457. given <code>name</code>.
  458. @param name configuration resource name.
  459. @return an input stream attached to the resource.]]>
  460. </doc>
  461. </method>
  462. <method name="getConfResourceAsReader" return="java.io.Reader"
  463. abstract="false" native="false" synchronized="false"
  464. static="false" final="false" visibility="public"
  465. deprecated="not deprecated">
  466. <param name="name" type="java.lang.String"/>
  467. <doc>
  468. <![CDATA[Get a {@link Reader} attached to the configuration resource with the
  469. given <code>name</code>.
  470. @param name configuration resource name.
  471. @return a reader attached to the resource.]]>
  472. </doc>
  473. </method>
  474. <method name="iterator" return="java.util.Iterator&lt;java.util.Map.Entry&lt;java.lang.String, java.lang.String&gt;&gt;"
  475. abstract="false" native="false" synchronized="false"
  476. static="false" final="false" visibility="public"
  477. deprecated="not deprecated">
  478. <doc>
  479. <![CDATA[Get an {@link Iterator} to go through the list of <code>String</code>
  480. key-value pairs in the configuration.
  481. @return an iterator over the entries.]]>
  482. </doc>
  483. </method>
  484. <method name="write"
  485. abstract="false" native="false" synchronized="false"
  486. static="false" final="false" visibility="public"
  487. deprecated="not deprecated">
  488. <param name="out" type="java.io.OutputStream"/>
  489. <exception name="IOException" type="java.io.IOException"/>
  490. <doc>
  491. <![CDATA[Write out the non-default properties in this configuration to the give
  492. {@link OutputStream}.
  493. @param out the output stream to write to.]]>
  494. </doc>
  495. </method>
  496. <method name="getClassLoader" return="java.lang.ClassLoader"
  497. abstract="false" native="false" synchronized="false"
  498. static="false" final="false" visibility="public"
  499. deprecated="not deprecated">
  500. <doc>
  501. <![CDATA[Get the {@link ClassLoader} for this job.
  502. @return the correct class loader.]]>
  503. </doc>
  504. </method>
  505. <method name="setClassLoader"
  506. abstract="false" native="false" synchronized="false"
  507. static="false" final="false" visibility="public"
  508. deprecated="not deprecated">
  509. <param name="classLoader" type="java.lang.ClassLoader"/>
  510. <doc>
  511. <![CDATA[Set the class loader that will be used to load the various objects.
  512. @param classLoader the new class loader.]]>
  513. </doc>
  514. </method>
  515. <method name="toString" return="java.lang.String"
  516. abstract="false" native="false" synchronized="false"
  517. static="false" final="false" visibility="public"
  518. deprecated="not deprecated">
  519. </method>
  520. <method name="setQuietMode"
  521. abstract="false" native="false" synchronized="true"
  522. static="false" final="false" visibility="public"
  523. deprecated="not deprecated">
  524. <param name="quietmode" type="boolean"/>
  525. <doc>
  526. <![CDATA[Set the quiteness-mode.
  527. In the quite-mode error and informational messages might not be logged.
  528. @param quietmode <code>true</code> to set quiet-mode on, <code>false</code>
  529. to turn it off.]]>
  530. </doc>
  531. </method>
  532. <method name="main"
  533. abstract="false" native="false" synchronized="false"
  534. static="true" final="false" visibility="public"
  535. deprecated="not deprecated">
  536. <param name="args" type="java.lang.String[]"/>
  537. <exception name="Exception" type="java.lang.Exception"/>
  538. <doc>
  539. <![CDATA[For debugging. List non-default properties to the terminal and exit.]]>
  540. </doc>
  541. </method>
  542. <doc>
  543. <![CDATA[Provides access to configuration parameters.
  544. <h4 id="Resources">Resources</h4>
  545. <p>Configurations are specified by resources. A resource contains a set of
  546. name/value pairs as XML data. Each resource is named by either a
  547. <code>String</code> or by a {@link Path}. If named by a <code>String</code>,
  548. then the classpath is examined for a file with that name. If named by a
  549. <code>Path</code>, then the local filesystem is examined directly, without
  550. referring to the classpath.
  551. <p>Hadoop by default specifies two resources, loaded in-order from the
  552. classpath: <ol>
  553. <li><tt><a href="{@docRoot}/../hadoop-default.html">hadoop-default.xml</a>
  554. </tt>: Read-only defaults for hadoop.</li>
  555. <li><tt>hadoop-site.xml</tt>: Site-specific configuration for a given hadoop
  556. installation.</li>
  557. </ol>
  558. Applications may add additional resources, which are loaded
  559. subsequent to these resources in the order they are added.
  560. <h4 id="FinalParams">Final Parameters</h4>
  561. <p>Configuration parameters may be declared <i>final</i>.
  562. Once a resource declares a value final, no subsequently-loaded
  563. resource can alter that value.
  564. For example, one might define a final parameter with:
  565. <tt><pre>
  566. &lt;property&gt;
  567. &lt;name&gt;dfs.client.buffer.dir&lt;/name&gt;
  568. &lt;value&gt;/tmp/hadoop/dfs/client&lt;/value&gt;
  569. <b>&lt;final&gt;true&lt;/final&gt;</b>
  570. &lt;/property&gt;</pre></tt>
  571. Administrators typically define parameters as final in
  572. <tt>hadoop-site.xml</tt> for values that user applications may not alter.
  573. <h4 id="VariableExpansion">Variable Expansion</h4>
  574. <p>Value strings are first processed for <i>variable expansion</i>. The
  575. available properties are:<ol>
  576. <li>Other properties defined in this Configuration; and, if a name is
  577. undefined here,</li>
  578. <li>Properties in {@link System#getProperties()}.</li>
  579. </ol>
  580. <p>For example, if a configuration resource contains the following property
  581. definitions:
  582. <tt><pre>
  583. &lt;property&gt;
  584. &lt;name&gt;basedir&lt;/name&gt;
  585. &lt;value&gt;/user/${<i>user.name</i>}&lt;/value&gt;
  586. &lt;/property&gt;
  587. &lt;property&gt;
  588. &lt;name&gt;tempdir&lt;/name&gt;
  589. &lt;value&gt;${<i>basedir</i>}/tmp&lt;/value&gt;
  590. &lt;/property&gt;</pre></tt>
  591. When <tt>conf.get("tempdir")</tt> is called, then <tt>${<i>basedir</i>}</tt>
  592. will be resolved to another property in this Configuration, while
  593. <tt>${<i>user.name</i>}</tt> would then ordinarily be resolved to the value
  594. of the System property with that name.]]>
  595. </doc>
  596. </class>
  597. <!-- end class org.apache.hadoop.conf.Configuration -->
  598. <!-- start class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  599. <class name="Configuration.IntegerRanges" extends="java.lang.Object"
  600. abstract="false"
  601. static="true" final="false" visibility="public"
  602. deprecated="not deprecated">
  603. <constructor name="Configuration.IntegerRanges"
  604. static="false" final="false" visibility="public"
  605. deprecated="not deprecated">
  606. </constructor>
  607. <constructor name="Configuration.IntegerRanges" type="java.lang.String"
  608. static="false" final="false" visibility="public"
  609. deprecated="not deprecated">
  610. </constructor>
  611. <method name="isIncluded" return="boolean"
  612. abstract="false" native="false" synchronized="false"
  613. static="false" final="false" visibility="public"
  614. deprecated="not deprecated">
  615. <param name="value" type="int"/>
  616. <doc>
  617. <![CDATA[Is the given value in the set of ranges
  618. @param value the value to check
  619. @return is the value in the ranges?]]>
  620. </doc>
  621. </method>
  622. <method name="toString" return="java.lang.String"
  623. abstract="false" native="false" synchronized="false"
  624. static="false" final="false" visibility="public"
  625. deprecated="not deprecated">
  626. </method>
  627. <doc>
  628. <![CDATA[A class that represents a set of positive integer ranges. It parses
  629. strings of the form: "2-3,5,7-" where ranges are separated by comma and
  630. the lower/upper bounds are separated by dash. Either the lower or upper
  631. bound may be omitted meaning all values up to or over. So the string
  632. above means 2, 3, 5, and 7, 8, 9, ...]]>
  633. </doc>
  634. </class>
  635. <!-- end class org.apache.hadoop.conf.Configuration.IntegerRanges -->
  636. <!-- start class org.apache.hadoop.conf.Configured -->
  637. <class name="Configured" extends="java.lang.Object"
  638. abstract="false"
  639. static="false" final="false" visibility="public"
  640. deprecated="not deprecated">
  641. <implements name="org.apache.hadoop.conf.Configurable"/>
  642. <constructor name="Configured"
  643. static="false" final="false" visibility="public"
  644. deprecated="not deprecated">
  645. <doc>
  646. <![CDATA[Construct a Configured.]]>
  647. </doc>
  648. </constructor>
  649. <constructor name="Configured" type="org.apache.hadoop.conf.Configuration"
  650. static="false" final="false" visibility="public"
  651. deprecated="not deprecated">
  652. <doc>
  653. <![CDATA[Construct a Configured.]]>
  654. </doc>
  655. </constructor>
  656. <method name="setConf"
  657. abstract="false" native="false" synchronized="false"
  658. static="false" final="false" visibility="public"
  659. deprecated="not deprecated">
  660. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  661. </method>
  662. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  663. abstract="false" native="false" synchronized="false"
  664. static="false" final="false" visibility="public"
  665. deprecated="not deprecated">
  666. </method>
  667. <doc>
  668. <![CDATA[Base class for things that may be configured with a {@link Configuration}.]]>
  669. </doc>
  670. </class>
  671. <!-- end class org.apache.hadoop.conf.Configured -->
  672. </package>
  673. <package name="org.apache.hadoop.dfs">
  674. <!-- start class org.apache.hadoop.dfs.AlreadyBeingCreatedException -->
  675. <class name="AlreadyBeingCreatedException" extends="java.io.IOException"
  676. abstract="false"
  677. static="false" final="false" visibility="public"
  678. deprecated="not deprecated">
  679. <constructor name="AlreadyBeingCreatedException" type="java.lang.String"
  680. static="false" final="false" visibility="public"
  681. deprecated="not deprecated">
  682. </constructor>
  683. <doc>
  684. <![CDATA[The exception that happens when you ask to create a file that already
  685. is being created, but is not closed yet.]]>
  686. </doc>
  687. </class>
  688. <!-- end class org.apache.hadoop.dfs.AlreadyBeingCreatedException -->
  689. <!-- start class org.apache.hadoop.dfs.Balancer -->
  690. <class name="Balancer" extends="java.lang.Object"
  691. abstract="false"
  692. static="false" final="false" visibility="public"
  693. deprecated="not deprecated">
  694. <implements name="org.apache.hadoop.util.Tool"/>
  695. <method name="main"
  696. abstract="false" native="false" synchronized="false"
  697. static="true" final="false" visibility="public"
  698. deprecated="not deprecated">
  699. <param name="args" type="java.lang.String[]"/>
  700. <doc>
  701. <![CDATA[Run a balancer
  702. @param args]]>
  703. </doc>
  704. </method>
  705. <method name="run" return="int"
  706. abstract="false" native="false" synchronized="false"
  707. static="false" final="false" visibility="public"
  708. deprecated="not deprecated">
  709. <param name="args" type="java.lang.String[]"/>
  710. <exception name="Exception" type="java.lang.Exception"/>
  711. <doc>
  712. <![CDATA[main method of Balancer
  713. @param args arguments to a Balancer
  714. @exception any exception occurs during datanode balancing]]>
  715. </doc>
  716. </method>
  717. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  718. abstract="false" native="false" synchronized="false"
  719. static="false" final="false" visibility="public"
  720. deprecated="not deprecated">
  721. <doc>
  722. <![CDATA[return this balancer's configuration]]>
  723. </doc>
  724. </method>
  725. <method name="setConf"
  726. abstract="false" native="false" synchronized="false"
  727. static="false" final="false" visibility="public"
  728. deprecated="not deprecated">
  729. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  730. <doc>
  731. <![CDATA[set this balancer's configuration]]>
  732. </doc>
  733. </method>
  734. <field name="SUCCESS" type="int"
  735. transient="false" volatile="false"
  736. static="true" final="true" visibility="public"
  737. deprecated="not deprecated">
  738. </field>
  739. <field name="ALREADY_RUNNING" type="int"
  740. transient="false" volatile="false"
  741. static="true" final="true" visibility="public"
  742. deprecated="not deprecated">
  743. </field>
  744. <field name="NO_MOVE_BLOCK" type="int"
  745. transient="false" volatile="false"
  746. static="true" final="true" visibility="public"
  747. deprecated="not deprecated">
  748. </field>
  749. <field name="NO_MOVE_PROGRESS" type="int"
  750. transient="false" volatile="false"
  751. static="true" final="true" visibility="public"
  752. deprecated="not deprecated">
  753. </field>
  754. <field name="IO_EXCEPTION" type="int"
  755. transient="false" volatile="false"
  756. static="true" final="true" visibility="public"
  757. deprecated="not deprecated">
  758. </field>
  759. <field name="ILLEGAL_ARGS" type="int"
  760. transient="false" volatile="false"
  761. static="true" final="true" visibility="public"
  762. deprecated="not deprecated">
  763. </field>
  764. <doc>
  765. <![CDATA[<p>The balancer is a tool that balances disk space usage on an HDFS cluster
  766. when some datanodes become full or when new empty nodes join the cluster.
  767. The tool is deployed as an application program that can be run by the
  768. cluster administrator on a live HDFS cluster while applications
  769. adding and deleting files.
  770. <p>SYNOPSIS
  771. <pre>
  772. To start:
  773. bin/start-balancer.sh [-threshold <threshold>]
  774. Example: bin/ start-balancer.sh
  775. start the balancer with a default threshold of 10%
  776. bin/ start-balancer.sh -threshold 5
  777. start the balancer with a threshold of 5%
  778. To stop:
  779. bin/ stop-balancer.sh
  780. </pre>
  781. <p>DESCRIPTION
  782. <p>The threshold parameter is a fraction in the range of (0%, 100%) with a
  783. default value of 10%. The threshold sets a target for whether the cluster
  784. is balanced. A cluster is balanced if for each datanode, the utilization
  785. of the node (ratio of used space at the node to total capacity of the node)
  786. differs from the utilization of the (ratio of used space in the cluster
  787. to total capacity of the cluster) by no more than the threshold value.
  788. The smaller the threshold, the more balanced a cluster will become.
  789. It takes more time to run the balancer for small threshold values.
  790. Also for a very small threshold the cluster may not be able to reach the
  791. balanced state when applications write and delete files concurrently.
  792. <p>The tool moves blocks from highly utilized datanodes to poorly
  793. utilized datanodes iteratively. In each iteration a datanode moves or
  794. receives no more than the lesser of 10G bytes or the threshold fraction
  795. of its capacity. Each iteration runs no more than 20 minutes.
  796. At the end of each iteration, the balancer obtains updated datanodes
  797. information from the namenode.
  798. <p>A system property that limits the balancer's use of bandwidth is
  799. defined in the default configuration file:
  800. <pre>
  801. <property>
  802. <name>dfs.balance.bandwidthPerSec</name>
  803. <value>1048576</value>
  804. <description> Specifies the maximum bandwidth that each datanode
  805. can utilize for the balancing purpose in term of the number of bytes
  806. per second. </description>
  807. </property>
  808. </pre>
  809. <p>This property determines the maximum speed at which a block will be
  810. moved from one datanode to another. The default value is 1MB/s. The higher
  811. the bandwidth, the faster a cluster can reach the balanced state,
  812. but with greater competition with application processes. If an
  813. administrator changes the value of this property in the configuration
  814. file, the change is observed when HDFS is next restarted.
  815. <p>MONITERING BALANCER PROGRESS
  816. <p>After the balancer is started, an output file name where the balancer
  817. progress will be recorded is printed on the screen. The administrator
  818. can monitor the running of the balancer by reading the output file.
  819. The output shows the balancer's status iteration by iteration. In each
  820. iteration it prints the starting time, the iteration number, the total
  821. number of bytes that have been moved in the previous iterations,
  822. the total number of bytes that are left to move in order for the cluster
  823. to be balanced, and the number of bytes that are being moved in this
  824. iteration. Normally "Bytes Already Moved" is increasing while "Bytes Left
  825. To Move" is decreasing.
  826. <p>Running multiple instances of the balancer in an HDFS cluster is
  827. prohibited by the tool.
  828. <p>The balancer automatically exits when any of the following five
  829. conditions is satisfied:
  830. <ol>
  831. <li>The cluster is balanced;
  832. <li>No block can be moved;
  833. <li>No block has been moved for five consecutive iterations;
  834. <li>An IOException occurs while communicating with the namenode;
  835. <li>Another balancer is running.
  836. </ol>
  837. <p>Upon exit, a balancer returns an exit code and prints one of the
  838. following messages to the output file in corresponding to the above exit
  839. reasons:
  840. <ol>
  841. <li>The cluster is balanced. Exiting
  842. <li>No block can be moved. Exiting...
  843. <li>No block has been moved for 3 iterations. Exiting...
  844. <li>Received an IO exception: failure reason. Exiting...
  845. <li>Another balancer is running. Exiting...
  846. </ol>
  847. <p>The administrator can interrupt the execution of the balancer at any
  848. time by running the command "stop-balancer.sh" on the machine where the
  849. balancer is running.]]>
  850. </doc>
  851. </class>
  852. <!-- end class org.apache.hadoop.dfs.Balancer -->
  853. <!-- start class org.apache.hadoop.dfs.ChecksumDistributedFileSystem -->
  854. <class name="ChecksumDistributedFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  855. abstract="false"
  856. static="false" final="false" visibility="public"
  857. deprecated="not deprecated">
  858. <constructor name="ChecksumDistributedFileSystem"
  859. static="false" final="false" visibility="public"
  860. deprecated="not deprecated">
  861. </constructor>
  862. <constructor name="ChecksumDistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  863. static="false" final="false" visibility="public"
  864. deprecated="deprecated, no comment">
  865. <exception name="IOException" type="java.io.IOException"/>
  866. <doc>
  867. <![CDATA[@deprecated]]>
  868. </doc>
  869. </constructor>
  870. <method name="getRawCapacity" return="long"
  871. abstract="false" native="false" synchronized="false"
  872. static="false" final="false" visibility="public"
  873. deprecated="not deprecated">
  874. <exception name="IOException" type="java.io.IOException"/>
  875. <doc>
  876. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  877. replication .]]>
  878. </doc>
  879. </method>
  880. <method name="getRawUsed" return="long"
  881. abstract="false" native="false" synchronized="false"
  882. static="false" final="false" visibility="public"
  883. deprecated="not deprecated">
  884. <exception name="IOException" type="java.io.IOException"/>
  885. <doc>
  886. <![CDATA[Return the total raw used space in the filesystem, disregarding
  887. replication .]]>
  888. </doc>
  889. </method>
  890. <method name="getDataNodeStats" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  891. abstract="false" native="false" synchronized="false"
  892. static="false" final="false" visibility="public"
  893. deprecated="not deprecated">
  894. <exception name="IOException" type="java.io.IOException"/>
  895. <doc>
  896. <![CDATA[Return statistics for each datanode.]]>
  897. </doc>
  898. </method>
  899. <method name="setSafeMode" return="boolean"
  900. abstract="false" native="false" synchronized="false"
  901. static="false" final="false" visibility="public"
  902. deprecated="not deprecated">
  903. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  904. <exception name="IOException" type="java.io.IOException"/>
  905. <doc>
  906. <![CDATA[Enter, leave or get safe mode.
  907. @see org.apache.hadoop.dfs.ClientProtocol#setSafeMode(FSConstants.SafeModeAction)]]>
  908. </doc>
  909. </method>
  910. <method name="refreshNodes"
  911. abstract="false" native="false" synchronized="false"
  912. static="false" final="false" visibility="public"
  913. deprecated="not deprecated">
  914. <exception name="IOException" type="java.io.IOException"/>
  915. </method>
  916. <method name="finalizeUpgrade"
  917. abstract="false" native="false" synchronized="false"
  918. static="false" final="false" visibility="public"
  919. deprecated="not deprecated">
  920. <exception name="IOException" type="java.io.IOException"/>
  921. <doc>
  922. <![CDATA[Finalize previously upgraded files system state.]]>
  923. </doc>
  924. </method>
  925. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  926. abstract="false" native="false" synchronized="false"
  927. static="false" final="false" visibility="public"
  928. deprecated="not deprecated">
  929. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  930. <exception name="IOException" type="java.io.IOException"/>
  931. </method>
  932. <method name="metaSave"
  933. abstract="false" native="false" synchronized="false"
  934. static="false" final="false" visibility="public"
  935. deprecated="not deprecated">
  936. <param name="pathname" type="java.lang.String"/>
  937. <exception name="IOException" type="java.io.IOException"/>
  938. </method>
  939. <method name="reportChecksumFailure" return="boolean"
  940. abstract="false" native="false" synchronized="false"
  941. static="false" final="false" visibility="public"
  942. deprecated="not deprecated">
  943. <param name="f" type="org.apache.hadoop.fs.Path"/>
  944. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  945. <param name="inPos" type="long"/>
  946. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  947. <param name="sumsPos" type="long"/>
  948. <doc>
  949. <![CDATA[We need to find the blocks that didn't match. Likely only one
  950. is corrupt but we will report both to the namenode. In the future,
  951. we can consider figuring out exactly which block is corrupt.]]>
  952. </doc>
  953. </method>
  954. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  955. abstract="false" native="false" synchronized="false"
  956. static="false" final="false" visibility="public"
  957. deprecated="not deprecated">
  958. <param name="f" type="org.apache.hadoop.fs.Path"/>
  959. <exception name="IOException" type="java.io.IOException"/>
  960. <doc>
  961. <![CDATA[Returns the stat information about the file.]]>
  962. </doc>
  963. </method>
  964. <doc>
  965. <![CDATA[An implementation of ChecksumFileSystem over DistributedFileSystem.
  966. Note that as of now (May 07), DistributedFileSystem natively checksums
  967. all of its data. Using this class is not be necessary in most cases.
  968. Currently provided mainly for backward compatibility and testing.]]>
  969. </doc>
  970. </class>
  971. <!-- end class org.apache.hadoop.dfs.ChecksumDistributedFileSystem -->
  972. <!-- start class org.apache.hadoop.dfs.DataBlockScanner -->
  973. <class name="DataBlockScanner" extends="java.lang.Object"
  974. abstract="false"
  975. static="false" final="false" visibility="public"
  976. deprecated="not deprecated">
  977. <implements name="java.lang.Runnable"/>
  978. <method name="run"
  979. abstract="false" native="false" synchronized="false"
  980. static="false" final="false" visibility="public"
  981. deprecated="not deprecated">
  982. </method>
  983. <field name="LOG" type="org.apache.commons.logging.Log"
  984. transient="false" volatile="false"
  985. static="true" final="true" visibility="public"
  986. deprecated="not deprecated">
  987. </field>
  988. </class>
  989. <!-- end class org.apache.hadoop.dfs.DataBlockScanner -->
  990. <!-- start class org.apache.hadoop.dfs.DataBlockScanner.Servlet -->
  991. <class name="DataBlockScanner.Servlet" extends="javax.servlet.http.HttpServlet"
  992. abstract="false"
  993. static="true" final="false" visibility="public"
  994. deprecated="not deprecated">
  995. <constructor name="DataBlockScanner.Servlet"
  996. static="false" final="false" visibility="public"
  997. deprecated="not deprecated">
  998. </constructor>
  999. <method name="doGet"
  1000. abstract="false" native="false" synchronized="false"
  1001. static="false" final="false" visibility="public"
  1002. deprecated="not deprecated">
  1003. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  1004. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  1005. <exception name="IOException" type="java.io.IOException"/>
  1006. </method>
  1007. </class>
  1008. <!-- end class org.apache.hadoop.dfs.DataBlockScanner.Servlet -->
  1009. <!-- start class org.apache.hadoop.dfs.DataChecksum -->
  1010. <class name="DataChecksum" extends="java.lang.Object"
  1011. abstract="false"
  1012. static="false" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <implements name="java.util.zip.Checksum"/>
  1015. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1016. abstract="false" native="false" synchronized="false"
  1017. static="true" final="false" visibility="public"
  1018. deprecated="not deprecated">
  1019. <param name="type" type="int"/>
  1020. <param name="bytesPerChecksum" type="int"/>
  1021. </method>
  1022. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1023. abstract="false" native="false" synchronized="false"
  1024. static="true" final="false" visibility="public"
  1025. deprecated="not deprecated">
  1026. <param name="bytes" type="byte[]"/>
  1027. <param name="offset" type="int"/>
  1028. <doc>
  1029. <![CDATA[Creates a DataChecksum from HEADER_LEN bytes from arr[offset].
  1030. @return DataChecksum of the type in the array or null in case of an error.]]>
  1031. </doc>
  1032. </method>
  1033. <method name="newDataChecksum" return="org.apache.hadoop.dfs.DataChecksum"
  1034. abstract="false" native="false" synchronized="false"
  1035. static="true" final="false" visibility="public"
  1036. deprecated="not deprecated">
  1037. <param name="in" type="java.io.DataInputStream"/>
  1038. <exception name="IOException" type="java.io.IOException"/>
  1039. <doc>
  1040. <![CDATA[This constructucts a DataChecksum by reading HEADER_LEN bytes from
  1041. input stream <i>in</i>]]>
  1042. </doc>
  1043. </method>
  1044. <method name="writeHeader"
  1045. abstract="false" native="false" synchronized="false"
  1046. static="false" final="false" visibility="public"
  1047. deprecated="not deprecated">
  1048. <param name="out" type="java.io.DataOutputStream"/>
  1049. <exception name="IOException" type="java.io.IOException"/>
  1050. <doc>
  1051. <![CDATA[Writes the checksum header to the output stream <i>out</i>.]]>
  1052. </doc>
  1053. </method>
  1054. <method name="getHeader" return="byte[]"
  1055. abstract="false" native="false" synchronized="false"
  1056. static="false" final="false" visibility="public"
  1057. deprecated="not deprecated">
  1058. </method>
  1059. <method name="writeValue" return="int"
  1060. abstract="false" native="false" synchronized="false"
  1061. static="false" final="false" visibility="public"
  1062. deprecated="not deprecated">
  1063. <param name="out" type="java.io.DataOutputStream"/>
  1064. <param name="reset" type="boolean"/>
  1065. <exception name="IOException" type="java.io.IOException"/>
  1066. <doc>
  1067. <![CDATA[Writes the current checksum to the stream.
  1068. If <i>reset</i> is true, then resets the checksum.
  1069. @return number of bytes written. Will be equal to getChecksumSize();]]>
  1070. </doc>
  1071. </method>
  1072. <method name="writeValue" return="int"
  1073. abstract="false" native="false" synchronized="false"
  1074. static="false" final="false" visibility="public"
  1075. deprecated="not deprecated">
  1076. <param name="buf" type="byte[]"/>
  1077. <param name="offset" type="int"/>
  1078. <param name="reset" type="boolean"/>
  1079. <exception name="IOException" type="java.io.IOException"/>
  1080. <doc>
  1081. <![CDATA[Writes the current checksum to a buffer.
  1082. If <i>reset</i> is true, then resets the checksum.
  1083. @return number of bytes written. Will be equal to getChecksumSize();]]>
  1084. </doc>
  1085. </method>
  1086. <method name="compare" return="boolean"
  1087. abstract="false" native="false" synchronized="false"
  1088. static="false" final="false" visibility="public"
  1089. deprecated="not deprecated">
  1090. <param name="buf" type="byte[]"/>
  1091. <param name="offset" type="int"/>
  1092. <doc>
  1093. <![CDATA[Compares the checksum located at buf[offset] with the current checksum.
  1094. @return true if the checksum matches and false otherwise.]]>
  1095. </doc>
  1096. </method>
  1097. <method name="getChecksumType" 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="getChecksumSize" 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="getBytesPerChecksum" 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="getNumBytesInSum" 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="getChecksumHeaderSize" return="int"
  1118. abstract="false" native="false" synchronized="false"
  1119. static="true" final="false" visibility="public"
  1120. deprecated="not deprecated">
  1121. </method>
  1122. <method name="getValue" return="long"
  1123. abstract="false" native="false" synchronized="false"
  1124. static="false" final="false" visibility="public"
  1125. deprecated="not deprecated">
  1126. </method>
  1127. <method name="reset"
  1128. abstract="false" native="false" synchronized="false"
  1129. static="false" final="false" visibility="public"
  1130. deprecated="not deprecated">
  1131. </method>
  1132. <method name="update"
  1133. abstract="false" native="false" synchronized="false"
  1134. static="false" final="false" visibility="public"
  1135. deprecated="not deprecated">
  1136. <param name="b" type="byte[]"/>
  1137. <param name="off" type="int"/>
  1138. <param name="len" type="int"/>
  1139. </method>
  1140. <method name="update"
  1141. abstract="false" native="false" synchronized="false"
  1142. static="false" final="false" visibility="public"
  1143. deprecated="not deprecated">
  1144. <param name="b" type="int"/>
  1145. </method>
  1146. <field name="HEADER_LEN" type="int"
  1147. transient="false" volatile="false"
  1148. static="true" final="true" visibility="public"
  1149. deprecated="not deprecated">
  1150. </field>
  1151. <field name="CHECKSUM_NULL" type="int"
  1152. transient="false" volatile="false"
  1153. static="true" final="true" visibility="public"
  1154. deprecated="not deprecated">
  1155. </field>
  1156. <field name="CHECKSUM_CRC32" type="int"
  1157. transient="false" volatile="false"
  1158. static="true" final="true" visibility="public"
  1159. deprecated="not deprecated">
  1160. </field>
  1161. <doc>
  1162. <![CDATA[This class provides inteface and utilities for processing checksums for
  1163. DFS data transfers.]]>
  1164. </doc>
  1165. </class>
  1166. <!-- end class org.apache.hadoop.dfs.DataChecksum -->
  1167. <!-- start class org.apache.hadoop.dfs.DataNode -->
  1168. <class name="DataNode" extends="org.apache.hadoop.conf.Configured"
  1169. abstract="false"
  1170. static="false" final="false" visibility="public"
  1171. deprecated="not deprecated">
  1172. <implements name="org.apache.hadoop.dfs.InterDatanodeProtocol"/>
  1173. <implements name="org.apache.hadoop.dfs.ClientDatanodeProtocol"/>
  1174. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  1175. <implements name="java.lang.Runnable"/>
  1176. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  1177. abstract="false" native="false" synchronized="false"
  1178. static="true" final="false" visibility="public"
  1179. deprecated="not deprecated">
  1180. <param name="target" type="java.lang.String"/>
  1181. <exception name="IOException" type="java.io.IOException"/>
  1182. <doc>
  1183. <![CDATA[Use {@link NetUtils#createSocketAddr(String)} instead.]]>
  1184. </doc>
  1185. </method>
  1186. <method name="getDataNode" return="org.apache.hadoop.dfs.DataNode"
  1187. abstract="false" native="false" synchronized="false"
  1188. static="true" final="false" visibility="public"
  1189. deprecated="not deprecated">
  1190. <doc>
  1191. <![CDATA[Return the DataNode object]]>
  1192. </doc>
  1193. </method>
  1194. <method name="getNameNodeAddr" return="java.net.InetSocketAddress"
  1195. abstract="false" native="false" synchronized="false"
  1196. static="false" final="false" visibility="public"
  1197. deprecated="not deprecated">
  1198. </method>
  1199. <method name="getSelfAddr" return="java.net.InetSocketAddress"
  1200. abstract="false" native="false" synchronized="false"
  1201. static="false" final="false" visibility="public"
  1202. deprecated="not deprecated">
  1203. </method>
  1204. <method name="getNamenode" return="java.lang.String"
  1205. abstract="false" native="false" synchronized="false"
  1206. static="false" final="false" visibility="public"
  1207. deprecated="not deprecated">
  1208. <doc>
  1209. <![CDATA[Return the namenode's identifier]]>
  1210. </doc>
  1211. </method>
  1212. <method name="shutdown"
  1213. abstract="false" native="false" synchronized="false"
  1214. static="false" final="false" visibility="public"
  1215. deprecated="not deprecated">
  1216. <doc>
  1217. <![CDATA[Shut down this instance of the datanode.
  1218. Returns only after shutdown is complete.]]>
  1219. </doc>
  1220. </method>
  1221. <method name="offerService"
  1222. abstract="false" native="false" synchronized="false"
  1223. static="false" final="false" visibility="public"
  1224. deprecated="not deprecated">
  1225. <exception name="Exception" type="java.lang.Exception"/>
  1226. <doc>
  1227. <![CDATA[Main loop for the DataNode. Runs until shutdown,
  1228. forever calling remote NameNode functions.]]>
  1229. </doc>
  1230. </method>
  1231. <method name="run"
  1232. abstract="false" native="false" synchronized="false"
  1233. static="false" final="false" visibility="public"
  1234. deprecated="not deprecated">
  1235. <doc>
  1236. <![CDATA[No matter what kind of exception we get, keep retrying to offerService().
  1237. That's the loop that connects to the NameNode and provides basic DataNode
  1238. functionality.
  1239. Only stop when "shouldRun" is turned off (which can only happen at shutdown).]]>
  1240. </doc>
  1241. </method>
  1242. <method name="toString" return="java.lang.String"
  1243. abstract="false" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. </method>
  1247. <method name="scheduleBlockReport"
  1248. abstract="false" native="false" synchronized="false"
  1249. static="false" final="false" visibility="public"
  1250. deprecated="not deprecated">
  1251. <param name="delay" type="long"/>
  1252. <doc>
  1253. <![CDATA[This methods arranges for the data node to send the block report at the next heartbeat.]]>
  1254. </doc>
  1255. </method>
  1256. <method name="getFSDataset" return="org.apache.hadoop.dfs.FSDatasetInterface"
  1257. abstract="false" native="false" synchronized="false"
  1258. static="false" final="false" visibility="public"
  1259. deprecated="not deprecated">
  1260. <doc>
  1261. <![CDATA[This method is used for testing.
  1262. Examples are adding and deleting blocks directly.
  1263. The most common usage will be when the data node's storage is similated.
  1264. @return the fsdataset that stores the blocks]]>
  1265. </doc>
  1266. </method>
  1267. <method name="main"
  1268. abstract="false" native="false" synchronized="false"
  1269. static="true" final="false" visibility="public"
  1270. deprecated="not deprecated">
  1271. <param name="args" type="java.lang.String[]"/>
  1272. </method>
  1273. <method name="getBlockMetaDataInfo" return="org.apache.hadoop.dfs.BlockMetaDataInfo"
  1274. abstract="false" native="false" synchronized="false"
  1275. static="false" final="false" visibility="public"
  1276. deprecated="not deprecated">
  1277. <param name="block" type="org.apache.hadoop.dfs.Block"/>
  1278. <exception name="IOException" type="java.io.IOException"/>
  1279. <doc>
  1280. <![CDATA[{@inheritDoc}]]>
  1281. </doc>
  1282. </method>
  1283. <method name="updateBlock"
  1284. abstract="false" native="false" synchronized="false"
  1285. static="false" final="false" visibility="public"
  1286. deprecated="not deprecated">
  1287. <param name="oldblock" type="org.apache.hadoop.dfs.Block"/>
  1288. <param name="newblock" type="org.apache.hadoop.dfs.Block"/>
  1289. <param name="finalize" type="boolean"/>
  1290. <exception name="IOException" type="java.io.IOException"/>
  1291. <doc>
  1292. <![CDATA[{@inheritDoc}]]>
  1293. </doc>
  1294. </method>
  1295. <method name="getProtocolVersion" return="long"
  1296. abstract="false" native="false" synchronized="false"
  1297. static="false" final="false" visibility="public"
  1298. deprecated="not deprecated">
  1299. <param name="protocol" type="java.lang.String"/>
  1300. <param name="clientVersion" type="long"/>
  1301. <exception name="IOException" type="java.io.IOException"/>
  1302. <doc>
  1303. <![CDATA[{@inheritDoc}]]>
  1304. </doc>
  1305. </method>
  1306. <method name="recoverBlock" return="org.apache.hadoop.dfs.Block"
  1307. abstract="false" native="false" synchronized="false"
  1308. static="false" final="false" visibility="public"
  1309. deprecated="not deprecated">
  1310. <param name="block" type="org.apache.hadoop.dfs.Block"/>
  1311. <param name="targets" type="org.apache.hadoop.dfs.DatanodeInfo[]"/>
  1312. <exception name="IOException" type="java.io.IOException"/>
  1313. <doc>
  1314. <![CDATA[{@inheritDoc}]]>
  1315. </doc>
  1316. </method>
  1317. <field name="LOG" type="org.apache.commons.logging.Log"
  1318. transient="false" volatile="false"
  1319. static="true" final="true" visibility="public"
  1320. deprecated="not deprecated">
  1321. </field>
  1322. <doc>
  1323. <![CDATA[DataNode is a class (and program) that stores a set of
  1324. blocks for a DFS deployment. A single deployment can
  1325. have one or many DataNodes. Each DataNode communicates
  1326. regularly with a single NameNode. It also communicates
  1327. with client code and other DataNodes from time to time.
  1328. DataNodes store a series of named blocks. The DataNode
  1329. allows client code to read these blocks, or to write new
  1330. block data. The DataNode may also, in response to instructions
  1331. from its NameNode, delete blocks or copy blocks to/from other
  1332. DataNodes.
  1333. The DataNode maintains just one critical table:
  1334. block-> stream of bytes (of BLOCK_SIZE or less)
  1335. This info is stored on a local disk. The DataNode
  1336. reports the table's contents to the NameNode upon startup
  1337. and every so often afterwards.
  1338. DataNodes spend their lives in an endless loop of asking
  1339. the NameNode for something to do. A NameNode cannot connect
  1340. to a DataNode directly; a NameNode simply returns values from
  1341. functions invoked by a DataNode.
  1342. DataNodes maintain an open server socket so that client code
  1343. or other DataNodes can read/write data. The host/port for
  1344. this server is reported to the NameNode, which then sends that
  1345. information to clients or other DataNodes that might be interested.]]>
  1346. </doc>
  1347. </class>
  1348. <!-- end class org.apache.hadoop.dfs.DataNode -->
  1349. <!-- start class org.apache.hadoop.dfs.DatanodeDescriptor -->
  1350. <class name="DatanodeDescriptor" extends="org.apache.hadoop.dfs.DatanodeInfo"
  1351. abstract="false"
  1352. static="false" final="false" visibility="public"
  1353. deprecated="not deprecated">
  1354. <constructor name="DatanodeDescriptor"
  1355. static="false" final="false" visibility="public"
  1356. deprecated="not deprecated">
  1357. <doc>
  1358. <![CDATA[Default constructor]]>
  1359. </doc>
  1360. </constructor>
  1361. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID"
  1362. static="false" final="false" visibility="public"
  1363. deprecated="not deprecated">
  1364. <doc>
  1365. <![CDATA[DatanodeDescriptor constructor
  1366. @param nodeID id of the data node]]>
  1367. </doc>
  1368. </constructor>
  1369. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String"
  1370. static="false" final="false" visibility="public"
  1371. deprecated="not deprecated">
  1372. <doc>
  1373. <![CDATA[DatanodeDescriptor constructor
  1374. @param nodeID id of the data node
  1375. @param networkLocation location of the data node in network]]>
  1376. </doc>
  1377. </constructor>
  1378. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String, java.lang.String"
  1379. static="false" final="false" visibility="public"
  1380. deprecated="not deprecated">
  1381. <doc>
  1382. <![CDATA[DatanodeDescriptor constructor
  1383. @param nodeID id of the data node
  1384. @param networkLocation location of the data node in network
  1385. @param hostName it could be different from host specified for DatanodeID]]>
  1386. </doc>
  1387. </constructor>
  1388. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, long, long, long, int"
  1389. static="false" final="false" visibility="public"
  1390. deprecated="not deprecated">
  1391. <doc>
  1392. <![CDATA[DatanodeDescriptor constructor
  1393. @param nodeID id of the data node
  1394. @param capacity capacity of the data node
  1395. @param dfsUsed space used by the data node
  1396. @param remaining remaing capacity of the data node
  1397. @param xceiverCount # of data transfers at the data node]]>
  1398. </doc>
  1399. </constructor>
  1400. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.dfs.DatanodeID, java.lang.String, java.lang.String, long, long, long, int"
  1401. static="false" final="false" visibility="public"
  1402. deprecated="not deprecated">
  1403. <doc>
  1404. <![CDATA[DatanodeDescriptor constructor
  1405. @param nodeID id of the data node
  1406. @param networkLocation location of the data node in network
  1407. @param capacity capacity of the data node, including space used by non-dfs
  1408. @param dfsUsed the used space by dfs datanode
  1409. @param remaining remaing capacity of the data node
  1410. @param xceiverCount # of data transfers at the data node]]>
  1411. </doc>
  1412. </constructor>
  1413. <method name="getBlocksScheduled" return="int"
  1414. abstract="false" native="false" synchronized="false"
  1415. static="false" final="false" visibility="public"
  1416. deprecated="not deprecated">
  1417. <doc>
  1418. <![CDATA[@return Approximate number of blocks currently scheduled to be written
  1419. to this datanode.]]>
  1420. </doc>
  1421. </method>
  1422. <field name="isAlive" type="boolean"
  1423. transient="false" volatile="false"
  1424. static="false" final="false" visibility="protected"
  1425. deprecated="not deprecated">
  1426. </field>
  1427. <doc>
  1428. <![CDATA[DatanodeDescriptor tracks stats on a given DataNode,
  1429. such as available storage capacity, last update time, etc.,
  1430. and maintains a set of blocks stored on the datanode.
  1431. This data structure is a data structure that is internal
  1432. to the namenode. It is *not* sent over-the-wire to the Client
  1433. or the Datnodes. Neither is it stored persistently in the
  1434. fsImage.]]>
  1435. </doc>
  1436. </class>
  1437. <!-- end class org.apache.hadoop.dfs.DatanodeDescriptor -->
  1438. <!-- start class org.apache.hadoop.dfs.DatanodeID -->
  1439. <class name="DatanodeID" extends="java.lang.Object"
  1440. abstract="false"
  1441. static="false" final="false" visibility="public"
  1442. deprecated="not deprecated">
  1443. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.dfs.DatanodeID&gt;"/>
  1444. <constructor name="DatanodeID"
  1445. static="false" final="false" visibility="public"
  1446. deprecated="not deprecated">
  1447. <doc>
  1448. <![CDATA[Equivalent to DatanodeID("").]]>
  1449. </doc>
  1450. </constructor>
  1451. <constructor name="DatanodeID" type="java.lang.String"
  1452. static="false" final="false" visibility="public"
  1453. deprecated="not deprecated">
  1454. <doc>
  1455. <![CDATA[Equivalent to DatanodeID(nodeName, "", -1, -1).]]>
  1456. </doc>
  1457. </constructor>
  1458. <constructor name="DatanodeID" type="org.apache.hadoop.dfs.DatanodeID"
  1459. static="false" final="false" visibility="public"
  1460. deprecated="not deprecated">
  1461. <doc>
  1462. <![CDATA[DatanodeID copy constructor
  1463. @param from]]>
  1464. </doc>
  1465. </constructor>
  1466. <constructor name="DatanodeID" type="java.lang.String, java.lang.String, int, int"
  1467. static="false" final="false" visibility="public"
  1468. deprecated="not deprecated">
  1469. <doc>
  1470. <![CDATA[Create DatanodeID
  1471. @param nodeName (hostname:portNumber)
  1472. @param storageID data storage ID
  1473. @param infoPort info server port
  1474. @param ipcPort ipc server port]]>
  1475. </doc>
  1476. </constructor>
  1477. <method name="getName" return="java.lang.String"
  1478. abstract="false" native="false" synchronized="false"
  1479. static="false" final="false" visibility="public"
  1480. deprecated="not deprecated">
  1481. <doc>
  1482. <![CDATA[@return hostname:portNumber.]]>
  1483. </doc>
  1484. </method>
  1485. <method name="getStorageID" return="java.lang.String"
  1486. abstract="false" native="false" synchronized="false"
  1487. static="false" final="false" visibility="public"
  1488. deprecated="not deprecated">
  1489. <doc>
  1490. <![CDATA[@return data storage ID.]]>
  1491. </doc>
  1492. </method>
  1493. <method name="getInfoPort" return="int"
  1494. abstract="false" native="false" synchronized="false"
  1495. static="false" final="false" visibility="public"
  1496. deprecated="not deprecated">
  1497. <doc>
  1498. <![CDATA[@return infoPort (the port at which the HTTP server bound to)]]>
  1499. </doc>
  1500. </method>
  1501. <method name="getIpcPort" return="int"
  1502. abstract="false" native="false" synchronized="false"
  1503. static="false" final="false" visibility="public"
  1504. deprecated="not deprecated">
  1505. <doc>
  1506. <![CDATA[@return ipcPort (the port at which the IPC server bound to)]]>
  1507. </doc>
  1508. </method>
  1509. <method name="getHost" return="java.lang.String"
  1510. abstract="false" native="false" synchronized="false"
  1511. static="false" final="false" visibility="public"
  1512. deprecated="not deprecated">
  1513. <doc>
  1514. <![CDATA[@return hostname and no :portNumber.]]>
  1515. </doc>
  1516. </method>
  1517. <method name="getPort" return="int"
  1518. abstract="false" native="false" synchronized="false"
  1519. static="false" final="false" visibility="public"
  1520. deprecated="not deprecated">
  1521. </method>
  1522. <method name="equals" return="boolean"
  1523. abstract="false" native="false" synchronized="false"
  1524. static="false" final="false" visibility="public"
  1525. deprecated="not deprecated">
  1526. <param name="to" type="java.lang.Object"/>
  1527. </method>
  1528. <method name="hashCode" return="int"
  1529. abstract="false" native="false" synchronized="false"
  1530. static="false" final="false" visibility="public"
  1531. deprecated="not deprecated">
  1532. </method>
  1533. <method name="toString" return="java.lang.String"
  1534. abstract="false" native="false" synchronized="false"
  1535. static="false" final="false" visibility="public"
  1536. deprecated="not deprecated">
  1537. </method>
  1538. <method name="compareTo" return="int"
  1539. abstract="false" native="false" synchronized="false"
  1540. static="false" final="false" visibility="public"
  1541. deprecated="not deprecated">
  1542. <param name="that" type="org.apache.hadoop.dfs.DatanodeID"/>
  1543. <doc>
  1544. <![CDATA[Comparable.
  1545. Basis of compare is the String name (host:portNumber) only.
  1546. @param that
  1547. @return as specified by Comparable.]]>
  1548. </doc>
  1549. </method>
  1550. <method name="write"
  1551. abstract="false" native="false" synchronized="false"
  1552. static="false" final="false" visibility="public"
  1553. deprecated="not deprecated">
  1554. <param name="out" type="java.io.DataOutput"/>
  1555. <exception name="IOException" type="java.io.IOException"/>
  1556. <doc>
  1557. <![CDATA[{@inheritDoc}]]>
  1558. </doc>
  1559. </method>
  1560. <method name="readFields"
  1561. abstract="false" native="false" synchronized="false"
  1562. static="false" final="false" visibility="public"
  1563. deprecated="not deprecated">
  1564. <param name="in" type="java.io.DataInput"/>
  1565. <exception name="IOException" type="java.io.IOException"/>
  1566. <doc>
  1567. <![CDATA[{@inheritDoc}]]>
  1568. </doc>
  1569. </method>
  1570. <field name="name" type="java.lang.String"
  1571. transient="false" volatile="false"
  1572. static="false" final="false" visibility="protected"
  1573. deprecated="not deprecated">
  1574. </field>
  1575. <field name="storageID" type="java.lang.String"
  1576. transient="false" volatile="false"
  1577. static="false" final="false" visibility="protected"
  1578. deprecated="not deprecated">
  1579. </field>
  1580. <field name="infoPort" type="int"
  1581. transient="false" volatile="false"
  1582. static="false" final="false" visibility="protected"
  1583. deprecated="not deprecated">
  1584. </field>
  1585. <field name="ipcPort" type="int"
  1586. transient="false" volatile="false"
  1587. static="false" final="false" visibility="protected"
  1588. deprecated="not deprecated">
  1589. </field>
  1590. <doc>
  1591. <![CDATA[DatanodeID is composed of the data node
  1592. name (hostname:portNumber) and the data storage ID,
  1593. which it currently represents.]]>
  1594. </doc>
  1595. </class>
  1596. <!-- end class org.apache.hadoop.dfs.DatanodeID -->
  1597. <!-- start class org.apache.hadoop.dfs.DatanodeInfo -->
  1598. <class name="DatanodeInfo" extends="org.apache.hadoop.dfs.DatanodeID"
  1599. abstract="false"
  1600. static="false" final="false" visibility="public"
  1601. deprecated="not deprecated">
  1602. <implements name="org.apache.hadoop.net.Node"/>
  1603. <method name="getCapacity" return="long"
  1604. abstract="false" native="false" synchronized="false"
  1605. static="false" final="false" visibility="public"
  1606. deprecated="not deprecated">
  1607. <doc>
  1608. <![CDATA[The raw capacity.]]>
  1609. </doc>
  1610. </method>
  1611. <method name="getDfsUsed" return="long"
  1612. abstract="false" native="false" synchronized="false"
  1613. static="false" final="false" visibility="public"
  1614. deprecated="not deprecated">
  1615. <doc>
  1616. <![CDATA[The used space by the data node.]]>
  1617. </doc>
  1618. </method>
  1619. <method name="getRemaining" return="long"
  1620. abstract="false" native="false" synchronized="false"
  1621. static="false" final="false" visibility="public"
  1622. deprecated="not deprecated">
  1623. <doc>
  1624. <![CDATA[The raw free space.]]>
  1625. </doc>
  1626. </method>
  1627. <method name="getLastUpdate" return="long"
  1628. abstract="false" native="false" synchronized="false"
  1629. static="false" final="false" visibility="public"
  1630. deprecated="not deprecated">
  1631. <doc>
  1632. <![CDATA[The time when this information was accurate.]]>
  1633. </doc>
  1634. </method>
  1635. <method name="getXceiverCount" return="int"
  1636. abstract="false" native="false" synchronized="false"
  1637. static="false" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. <doc>
  1640. <![CDATA[number of active connections]]>
  1641. </doc>
  1642. </method>
  1643. <method name="getNetworkLocation" return="java.lang.String"
  1644. abstract="false" native="false" synchronized="true"
  1645. static="false" final="false" visibility="public"
  1646. deprecated="not deprecated">
  1647. <doc>
  1648. <![CDATA[rack name]]>
  1649. </doc>
  1650. </method>
  1651. <method name="setNetworkLocation"
  1652. abstract="false" native="false" synchronized="true"
  1653. static="false" final="false" visibility="public"
  1654. deprecated="not deprecated">
  1655. <param name="location" type="java.lang.String"/>
  1656. <doc>
  1657. <![CDATA[Sets the rack name]]>
  1658. </doc>
  1659. </method>
  1660. <method name="getHostName" return="java.lang.String"
  1661. abstract="false" native="false" synchronized="false"
  1662. static="false" final="false" visibility="public"
  1663. deprecated="not deprecated">
  1664. </method>
  1665. <method name="setHostName"
  1666. abstract="false" native="false" synchronized="false"
  1667. static="false" final="false" visibility="public"
  1668. deprecated="not deprecated">
  1669. <param name="host" type="java.lang.String"/>
  1670. </method>
  1671. <method name="getDatanodeReport" return="java.lang.String"
  1672. abstract="false" native="false" synchronized="false"
  1673. static="false" final="false" visibility="public"
  1674. deprecated="not deprecated">
  1675. <doc>
  1676. <![CDATA[A formatted string for reporting the status of the DataNode.]]>
  1677. </doc>
  1678. </method>
  1679. <method name="getParent" return="org.apache.hadoop.net.Node"
  1680. abstract="false" native="false" synchronized="false"
  1681. static="false" final="false" visibility="public"
  1682. deprecated="not deprecated">
  1683. <doc>
  1684. <![CDATA[Return this node's parent]]>
  1685. </doc>
  1686. </method>
  1687. <method name="setParent"
  1688. abstract="false" native="false" synchronized="false"
  1689. static="false" final="false" visibility="public"
  1690. deprecated="not deprecated">
  1691. <param name="parent" type="org.apache.hadoop.net.Node"/>
  1692. </method>
  1693. <method name="getLevel" return="int"
  1694. abstract="false" native="false" synchronized="false"
  1695. static="false" final="false" visibility="public"
  1696. deprecated="not deprecated">
  1697. <doc>
  1698. <![CDATA[Return this node's level in the tree.
  1699. E.g. the root of a tree returns 0 and its children return 1]]>
  1700. </doc>
  1701. </method>
  1702. <method name="setLevel"
  1703. abstract="false" native="false" synchronized="false"
  1704. static="false" final="false" visibility="public"
  1705. deprecated="not deprecated">
  1706. <param name="level" type="int"/>
  1707. </method>
  1708. <method name="write"
  1709. abstract="false" native="false" synchronized="false"
  1710. static="false" final="false" visibility="public"
  1711. deprecated="not deprecated">
  1712. <param name="out" type="java.io.DataOutput"/>
  1713. <exception name="IOException" type="java.io.IOException"/>
  1714. <doc>
  1715. <![CDATA[{@inheritDoc}]]>
  1716. </doc>
  1717. </method>
  1718. <method name="readFields"
  1719. abstract="false" native="false" synchronized="false"
  1720. static="false" final="false" visibility="public"
  1721. deprecated="not deprecated">
  1722. <param name="in" type="java.io.DataInput"/>
  1723. <exception name="IOException" type="java.io.IOException"/>
  1724. <doc>
  1725. <![CDATA[{@inheritDoc}]]>
  1726. </doc>
  1727. </method>
  1728. <field name="capacity" type="long"
  1729. transient="false" volatile="false"
  1730. static="false" final="false" visibility="protected"
  1731. deprecated="not deprecated">
  1732. </field>
  1733. <field name="dfsUsed" type="long"
  1734. transient="false" volatile="false"
  1735. static="false" final="false" visibility="protected"
  1736. deprecated="not deprecated">
  1737. </field>
  1738. <field name="remaining" type="long"
  1739. transient="false" volatile="false"
  1740. static="false" final="false" visibility="protected"
  1741. deprecated="not deprecated">
  1742. </field>
  1743. <field name="lastUpdate" type="long"
  1744. transient="false" volatile="false"
  1745. static="false" final="false" visibility="protected"
  1746. deprecated="not deprecated">
  1747. </field>
  1748. <field name="xceiverCount" type="int"
  1749. transient="false" volatile="false"
  1750. static="false" final="false" visibility="protected"
  1751. deprecated="not deprecated">
  1752. </field>
  1753. <field name="location" type="java.lang.String"
  1754. transient="false" volatile="false"
  1755. static="false" final="false" visibility="protected"
  1756. deprecated="not deprecated">
  1757. </field>
  1758. <field name="hostName" type="java.lang.String"
  1759. transient="false" volatile="false"
  1760. static="false" final="false" visibility="protected"
  1761. deprecated="not deprecated">
  1762. <doc>
  1763. <![CDATA[HostName as suplied by the datanode during registration as its
  1764. name. Namenode uses datanode IP address as the name.]]>
  1765. </doc>
  1766. </field>
  1767. <field name="adminState" type="org.apache.hadoop.dfs.DatanodeInfo.AdminStates"
  1768. transient="false" volatile="false"
  1769. static="false" final="false" visibility="protected"
  1770. deprecated="not deprecated">
  1771. </field>
  1772. <doc>
  1773. <![CDATA[DatanodeInfo represents the status of a DataNode.
  1774. This object is used for communication in the
  1775. Datanode Protocol and the Client Protocol.]]>
  1776. </doc>
  1777. </class>
  1778. <!-- end class org.apache.hadoop.dfs.DatanodeInfo -->
  1779. <!-- start class org.apache.hadoop.dfs.DatanodeInfo.AdminStates -->
  1780. <class name="DatanodeInfo.AdminStates" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.DatanodeInfo.AdminStates&gt;"
  1781. abstract="false"
  1782. static="true" final="true" visibility="public"
  1783. deprecated="not deprecated">
  1784. <method name="values" return="org.apache.hadoop.dfs.DatanodeInfo.AdminStates[]"
  1785. abstract="false" native="false" synchronized="false"
  1786. static="true" final="false" visibility="public"
  1787. deprecated="not deprecated">
  1788. </method>
  1789. <method name="valueOf" return="org.apache.hadoop.dfs.DatanodeInfo.AdminStates"
  1790. abstract="false" native="false" synchronized="false"
  1791. static="true" final="false" visibility="public"
  1792. deprecated="not deprecated">
  1793. <param name="name" type="java.lang.String"/>
  1794. </method>
  1795. </class>
  1796. <!-- end class org.apache.hadoop.dfs.DatanodeInfo.AdminStates -->
  1797. <!-- start class org.apache.hadoop.dfs.DFSAdmin -->
  1798. <class name="DFSAdmin" extends="org.apache.hadoop.fs.FsShell"
  1799. abstract="false"
  1800. static="false" final="false" visibility="public"
  1801. deprecated="not deprecated">
  1802. <constructor name="DFSAdmin"
  1803. static="false" final="false" visibility="public"
  1804. deprecated="not deprecated">
  1805. <doc>
  1806. <![CDATA[Construct a DFSAdmin object.]]>
  1807. </doc>
  1808. </constructor>
  1809. <constructor name="DFSAdmin" type="org.apache.hadoop.conf.Configuration"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <doc>
  1813. <![CDATA[Construct a DFSAdmin object.]]>
  1814. </doc>
  1815. </constructor>
  1816. <method name="report"
  1817. abstract="false" native="false" synchronized="false"
  1818. static="false" final="false" visibility="public"
  1819. deprecated="not deprecated">
  1820. <exception name="IOException" type="java.io.IOException"/>
  1821. <doc>
  1822. <![CDATA[Gives a report on how the FileSystem is doing.
  1823. @exception IOException if the filesystem does not exist.]]>
  1824. </doc>
  1825. </method>
  1826. <method name="setSafeMode"
  1827. abstract="false" native="false" synchronized="false"
  1828. static="false" final="false" visibility="public"
  1829. deprecated="not deprecated">
  1830. <param name="argv" type="java.lang.String[]"/>
  1831. <param name="idx" type="int"/>
  1832. <exception name="IOException" type="java.io.IOException"/>
  1833. <doc>
  1834. <![CDATA[Safe mode maintenance command.
  1835. Usage: java DFSAdmin -safemode [enter | leave | get]
  1836. @param argv List of of command line parameters.
  1837. @param idx The index of the command that is being processed.
  1838. @exception IOException if the filesystem does not exist.]]>
  1839. </doc>
  1840. </method>
  1841. <method name="refreshNodes" return="int"
  1842. abstract="false" native="false" synchronized="false"
  1843. static="false" final="false" visibility="public"
  1844. deprecated="not deprecated">
  1845. <exception name="IOException" type="java.io.IOException"/>
  1846. <doc>
  1847. <![CDATA[Command to ask the namenode to reread the hosts and excluded hosts
  1848. file.
  1849. Usage: java DFSAdmin -refreshNodes
  1850. @exception IOException]]>
  1851. </doc>
  1852. </method>
  1853. <method name="finalizeUpgrade" return="int"
  1854. abstract="false" native="false" synchronized="false"
  1855. static="false" final="false" visibility="public"
  1856. deprecated="not deprecated">
  1857. <exception name="IOException" type="java.io.IOException"/>
  1858. <doc>
  1859. <![CDATA[Command to ask the namenode to finalize previously performed upgrade.
  1860. Usage: java DFSAdmin -finalizeUpgrade
  1861. @exception IOException]]>
  1862. </doc>
  1863. </method>
  1864. <method name="upgradeProgress" return="int"
  1865. abstract="false" native="false" synchronized="false"
  1866. static="false" final="false" visibility="public"
  1867. deprecated="not deprecated">
  1868. <param name="argv" type="java.lang.String[]"/>
  1869. <param name="idx" type="int"/>
  1870. <exception name="IOException" type="java.io.IOException"/>
  1871. <doc>
  1872. <![CDATA[Command to request current distributed upgrade status,
  1873. a detailed status, or to force the upgrade to proceed.
  1874. Usage: java DFSAdmin -upgradeProgress [status | details | force]
  1875. @exception IOException]]>
  1876. </doc>
  1877. </method>
  1878. <method name="metaSave" return="int"
  1879. abstract="false" native="false" synchronized="false"
  1880. static="false" final="false" visibility="public"
  1881. deprecated="not deprecated">
  1882. <param name="argv" type="java.lang.String[]"/>
  1883. <param name="idx" type="int"/>
  1884. <exception name="IOException" type="java.io.IOException"/>
  1885. <doc>
  1886. <![CDATA[Dumps DFS data structures into specified file.
  1887. Usage: java DFSAdmin -metasave filename
  1888. @param argv List of of command line parameters.
  1889. @param idx The index of the command that is being processed.
  1890. @exception IOException if an error accoured wile accessing
  1891. the file or path.]]>
  1892. </doc>
  1893. </method>
  1894. <method name="run" return="int"
  1895. abstract="false" native="false" synchronized="false"
  1896. static="false" final="false" visibility="public"
  1897. deprecated="not deprecated">
  1898. <param name="argv" type="java.lang.String[]"/>
  1899. <exception name="Exception" type="java.lang.Exception"/>
  1900. <doc>
  1901. <![CDATA[@param argv The parameters passed to this program.
  1902. @exception Exception if the filesystem does not exist.
  1903. @return 0 on success, non zero on error.]]>
  1904. </doc>
  1905. </method>
  1906. <method name="main"
  1907. abstract="false" native="false" synchronized="false"
  1908. static="true" final="false" visibility="public"
  1909. deprecated="not deprecated">
  1910. <param name="argv" type="java.lang.String[]"/>
  1911. <exception name="Exception" type="java.lang.Exception"/>
  1912. <doc>
  1913. <![CDATA[main() has some simple utility methods.
  1914. @param argv Command line parameters.
  1915. @exception Exception if the filesystem does not exist.]]>
  1916. </doc>
  1917. </method>
  1918. <doc>
  1919. <![CDATA[This class provides some DFS administrative access.]]>
  1920. </doc>
  1921. </class>
  1922. <!-- end class org.apache.hadoop.dfs.DFSAdmin -->
  1923. <!-- start class org.apache.hadoop.dfs.DFSck -->
  1924. <class name="DFSck" extends="org.apache.hadoop.conf.Configured"
  1925. abstract="false"
  1926. static="false" final="false" visibility="public"
  1927. deprecated="not deprecated">
  1928. <implements name="org.apache.hadoop.util.Tool"/>
  1929. <constructor name="DFSck" type="org.apache.hadoop.conf.Configuration"
  1930. static="false" final="false" visibility="public"
  1931. deprecated="not deprecated">
  1932. <exception name="Exception" type="java.lang.Exception"/>
  1933. <doc>
  1934. <![CDATA[Filesystem checker.
  1935. @param conf current Configuration
  1936. @throws Exception]]>
  1937. </doc>
  1938. </constructor>
  1939. <method name="run" return="int"
  1940. abstract="false" native="false" synchronized="false"
  1941. static="false" final="false" visibility="public"
  1942. deprecated="not deprecated">
  1943. <param name="args" type="java.lang.String[]"/>
  1944. <exception name="Exception" type="java.lang.Exception"/>
  1945. <doc>
  1946. <![CDATA[@param args]]>
  1947. </doc>
  1948. </method>
  1949. <method name="main"
  1950. abstract="false" native="false" synchronized="false"
  1951. static="true" final="false" visibility="public"
  1952. deprecated="not deprecated">
  1953. <param name="args" type="java.lang.String[]"/>
  1954. <exception name="Exception" type="java.lang.Exception"/>
  1955. </method>
  1956. <doc>
  1957. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  1958. sub-optimal conditions.
  1959. <p>The tool scans all files and directories, starting from an indicated
  1960. root path. The following abnormal conditions are detected and handled:</p>
  1961. <ul>
  1962. <li>files with blocks that are completely missing from all datanodes.<br/>
  1963. In this case the tool can perform one of the following actions:
  1964. <ul>
  1965. <li>none ({@link NamenodeFsck#FIXING_NONE})</li>
  1966. <li>move corrupted files to /lost+found directory on DFS
  1967. ({@link NamenodeFsck#FIXING_MOVE}). Remaining data blocks are saved as a
  1968. block chains, representing longest consecutive series of valid blocks.</li>
  1969. <li>delete corrupted files ({@link NamenodeFsck#FIXING_DELETE})</li>
  1970. </ul>
  1971. </li>
  1972. <li>detect files with under-replicated or over-replicated blocks</li>
  1973. </ul>
  1974. Additionally, the tool collects a detailed overall DFS statistics, and
  1975. optionally can print detailed statistics on block locations and replication
  1976. factors of each file.
  1977. The tool also provides and option to filter open files during the scan.]]>
  1978. </doc>
  1979. </class>
  1980. <!-- end class org.apache.hadoop.dfs.DFSck -->
  1981. <!-- start class org.apache.hadoop.dfs.DistributedFileSystem -->
  1982. <class name="DistributedFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  1983. abstract="false"
  1984. static="false" final="false" visibility="public"
  1985. deprecated="not deprecated">
  1986. <constructor name="DistributedFileSystem"
  1987. static="false" final="false" visibility="public"
  1988. deprecated="not deprecated">
  1989. </constructor>
  1990. <constructor name="DistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  1991. static="false" final="false" visibility="public"
  1992. deprecated="deprecated, no comment">
  1993. <exception name="IOException" type="java.io.IOException"/>
  1994. <doc>
  1995. <![CDATA[@deprecated]]>
  1996. </doc>
  1997. </constructor>
  1998. <method name="getName" return="java.lang.String"
  1999. abstract="false" native="false" synchronized="false"
  2000. static="false" final="false" visibility="public"
  2001. deprecated="deprecated, no comment">
  2002. <doc>
  2003. <![CDATA[@deprecated]]>
  2004. </doc>
  2005. </method>
  2006. <method name="getUri" return="java.net.URI"
  2007. abstract="false" native="false" synchronized="false"
  2008. static="false" final="false" visibility="public"
  2009. deprecated="not deprecated">
  2010. </method>
  2011. <method name="initialize"
  2012. abstract="false" native="false" synchronized="false"
  2013. static="false" final="false" visibility="public"
  2014. deprecated="not deprecated">
  2015. <param name="uri" type="java.net.URI"/>
  2016. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2017. <exception name="IOException" type="java.io.IOException"/>
  2018. </method>
  2019. <method name="checkPath"
  2020. abstract="false" native="false" synchronized="false"
  2021. static="false" final="false" visibility="protected"
  2022. deprecated="not deprecated">
  2023. <param name="path" type="org.apache.hadoop.fs.Path"/>
  2024. <doc>
  2025. <![CDATA[Permit paths which explicitly specify the default port.]]>
  2026. </doc>
  2027. </method>
  2028. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  2029. abstract="false" native="false" synchronized="false"
  2030. static="false" final="false" visibility="public"
  2031. deprecated="not deprecated">
  2032. </method>
  2033. <method name="getDefaultBlockSize" return="long"
  2034. abstract="false" native="false" synchronized="false"
  2035. static="false" final="false" visibility="public"
  2036. deprecated="not deprecated">
  2037. </method>
  2038. <method name="getDefaultReplication" return="short"
  2039. abstract="false" native="false" synchronized="false"
  2040. static="false" final="false" visibility="public"
  2041. deprecated="not deprecated">
  2042. </method>
  2043. <method name="setWorkingDirectory"
  2044. abstract="false" native="false" synchronized="false"
  2045. static="false" final="false" visibility="public"
  2046. deprecated="not deprecated">
  2047. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  2048. </method>
  2049. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  2050. abstract="false" native="false" synchronized="false"
  2051. static="false" final="false" visibility="public"
  2052. deprecated="not deprecated">
  2053. <doc>
  2054. <![CDATA[{@inheritDoc}]]>
  2055. </doc>
  2056. </method>
  2057. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  2058. abstract="false" native="false" synchronized="false"
  2059. static="false" final="false" visibility="public"
  2060. deprecated="not deprecated">
  2061. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  2062. <param name="start" type="long"/>
  2063. <param name="len" type="long"/>
  2064. <exception name="IOException" type="java.io.IOException"/>
  2065. </method>
  2066. <method name="setVerifyChecksum"
  2067. abstract="false" native="false" synchronized="false"
  2068. static="false" final="false" visibility="public"
  2069. deprecated="not deprecated">
  2070. <param name="verifyChecksum" type="boolean"/>
  2071. </method>
  2072. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  2073. abstract="false" native="false" synchronized="false"
  2074. static="false" final="false" visibility="public"
  2075. deprecated="not deprecated">
  2076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2077. <param name="bufferSize" type="int"/>
  2078. <exception name="IOException" type="java.io.IOException"/>
  2079. </method>
  2080. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  2081. abstract="false" native="false" synchronized="false"
  2082. static="false" final="false" visibility="public"
  2083. deprecated="not deprecated">
  2084. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2085. <param name="bufferSize" type="int"/>
  2086. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2087. <exception name="IOException" type="java.io.IOException"/>
  2088. <doc>
  2089. <![CDATA[This optional operation is not yet supported.]]>
  2090. </doc>
  2091. </method>
  2092. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  2093. abstract="false" native="false" synchronized="false"
  2094. static="false" final="false" visibility="public"
  2095. deprecated="not deprecated">
  2096. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2097. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2098. <param name="overwrite" type="boolean"/>
  2099. <param name="bufferSize" type="int"/>
  2100. <param name="replication" type="short"/>
  2101. <param name="blockSize" type="long"/>
  2102. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  2103. <exception name="IOException" type="java.io.IOException"/>
  2104. </method>
  2105. <method name="setReplication" return="boolean"
  2106. abstract="false" native="false" synchronized="false"
  2107. static="false" final="false" visibility="public"
  2108. deprecated="not deprecated">
  2109. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2110. <param name="replication" type="short"/>
  2111. <exception name="IOException" type="java.io.IOException"/>
  2112. </method>
  2113. <method name="rename" return="boolean"
  2114. abstract="false" native="false" synchronized="false"
  2115. static="false" final="false" visibility="public"
  2116. deprecated="not deprecated">
  2117. <param name="src" type="org.apache.hadoop.fs.Path"/>
  2118. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  2119. <exception name="IOException" type="java.io.IOException"/>
  2120. <doc>
  2121. <![CDATA[Rename files/dirs]]>
  2122. </doc>
  2123. </method>
  2124. <method name="delete" return="boolean"
  2125. abstract="false" native="false" synchronized="false"
  2126. static="false" final="false" visibility="public"
  2127. deprecated="not deprecated">
  2128. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2129. <exception name="IOException" type="java.io.IOException"/>
  2130. <doc>
  2131. <![CDATA[Get rid of Path f, whether a true file or dir.]]>
  2132. </doc>
  2133. </method>
  2134. <method name="delete" return="boolean"
  2135. abstract="false" native="false" synchronized="false"
  2136. static="false" final="false" visibility="public"
  2137. deprecated="not deprecated">
  2138. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2139. <param name="recursive" type="boolean"/>
  2140. <exception name="IOException" type="java.io.IOException"/>
  2141. <doc>
  2142. <![CDATA[requires a boolean check to delete a non
  2143. empty directory recursively.]]>
  2144. </doc>
  2145. </method>
  2146. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2147. abstract="false" native="false" synchronized="false"
  2148. static="false" final="false" visibility="public"
  2149. deprecated="not deprecated">
  2150. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2151. <exception name="IOException" type="java.io.IOException"/>
  2152. <doc>
  2153. <![CDATA[{@inheritDoc}]]>
  2154. </doc>
  2155. </method>
  2156. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  2157. abstract="false" native="false" synchronized="false"
  2158. static="false" final="false" visibility="public"
  2159. deprecated="not deprecated">
  2160. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2161. <exception name="IOException" type="java.io.IOException"/>
  2162. </method>
  2163. <method name="mkdirs" return="boolean"
  2164. abstract="false" native="false" synchronized="false"
  2165. static="false" final="false" visibility="public"
  2166. deprecated="not deprecated">
  2167. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2168. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2169. <exception name="IOException" type="java.io.IOException"/>
  2170. </method>
  2171. <method name="close"
  2172. abstract="false" native="false" synchronized="false"
  2173. static="false" final="false" visibility="public"
  2174. deprecated="not deprecated">
  2175. <exception name="IOException" type="java.io.IOException"/>
  2176. <doc>
  2177. <![CDATA[{@inheritDoc}]]>
  2178. </doc>
  2179. </method>
  2180. <method name="toString" return="java.lang.String"
  2181. abstract="false" native="false" synchronized="false"
  2182. static="false" final="false" visibility="public"
  2183. deprecated="not deprecated">
  2184. </method>
  2185. <method name="getDiskStatus" return="org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus"
  2186. abstract="false" native="false" synchronized="false"
  2187. static="false" final="false" visibility="public"
  2188. deprecated="not deprecated">
  2189. <exception name="IOException" type="java.io.IOException"/>
  2190. <doc>
  2191. <![CDATA[Return the disk usage of the filesystem, including total capacity,
  2192. used space, and remaining space]]>
  2193. </doc>
  2194. </method>
  2195. <method name="getRawCapacity" return="long"
  2196. abstract="false" native="false" synchronized="false"
  2197. static="false" final="false" visibility="public"
  2198. deprecated="not deprecated">
  2199. <exception name="IOException" type="java.io.IOException"/>
  2200. <doc>
  2201. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  2202. replication .]]>
  2203. </doc>
  2204. </method>
  2205. <method name="getRawUsed" return="long"
  2206. abstract="false" native="false" synchronized="false"
  2207. static="false" final="false" visibility="public"
  2208. deprecated="not deprecated">
  2209. <exception name="IOException" type="java.io.IOException"/>
  2210. <doc>
  2211. <![CDATA[Return the total raw used space in the filesystem, disregarding
  2212. replication .]]>
  2213. </doc>
  2214. </method>
  2215. <method name="getDataNodeStats" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  2216. abstract="false" native="false" synchronized="false"
  2217. static="false" final="false" visibility="public"
  2218. deprecated="not deprecated">
  2219. <exception name="IOException" type="java.io.IOException"/>
  2220. <doc>
  2221. <![CDATA[Return statistics for each datanode.]]>
  2222. </doc>
  2223. </method>
  2224. <method name="setSafeMode" return="boolean"
  2225. abstract="false" native="false" synchronized="false"
  2226. static="false" final="false" visibility="public"
  2227. deprecated="not deprecated">
  2228. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  2229. <exception name="IOException" type="java.io.IOException"/>
  2230. <doc>
  2231. <![CDATA[Enter, leave or get safe mode.
  2232. @see org.apache.hadoop.dfs.ClientProtocol#setSafeMode(
  2233. FSConstants.SafeModeAction)]]>
  2234. </doc>
  2235. </method>
  2236. <method name="refreshNodes"
  2237. abstract="false" native="false" synchronized="false"
  2238. static="false" final="false" visibility="public"
  2239. deprecated="not deprecated">
  2240. <exception name="IOException" type="java.io.IOException"/>
  2241. </method>
  2242. <method name="finalizeUpgrade"
  2243. abstract="false" native="false" synchronized="false"
  2244. static="false" final="false" visibility="public"
  2245. deprecated="not deprecated">
  2246. <exception name="IOException" type="java.io.IOException"/>
  2247. <doc>
  2248. <![CDATA[Finalize previously upgraded files system state.
  2249. @throws IOException]]>
  2250. </doc>
  2251. </method>
  2252. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  2253. abstract="false" native="false" synchronized="false"
  2254. static="false" final="false" visibility="public"
  2255. deprecated="not deprecated">
  2256. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  2257. <exception name="IOException" type="java.io.IOException"/>
  2258. </method>
  2259. <method name="metaSave"
  2260. abstract="false" native="false" synchronized="false"
  2261. static="false" final="false" visibility="public"
  2262. deprecated="not deprecated">
  2263. <param name="pathname" type="java.lang.String"/>
  2264. <exception name="IOException" type="java.io.IOException"/>
  2265. </method>
  2266. <method name="reportChecksumFailure" return="boolean"
  2267. abstract="false" native="false" synchronized="false"
  2268. static="false" final="false" visibility="public"
  2269. deprecated="not deprecated">
  2270. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2271. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2272. <param name="inPos" type="long"/>
  2273. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  2274. <param name="sumsPos" type="long"/>
  2275. <doc>
  2276. <![CDATA[We need to find the blocks that didn't match. Likely only one
  2277. is corrupt but we will report both to the namenode. In the future,
  2278. we can consider figuring out exactly which block is corrupt.]]>
  2279. </doc>
  2280. </method>
  2281. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  2282. abstract="false" native="false" synchronized="false"
  2283. static="false" final="false" visibility="public"
  2284. deprecated="not deprecated">
  2285. <param name="f" type="org.apache.hadoop.fs.Path"/>
  2286. <exception name="IOException" type="java.io.IOException"/>
  2287. <doc>
  2288. <![CDATA[Returns the stat information about the file.
  2289. @throws FileNotFoundException if the file does not exist.]]>
  2290. </doc>
  2291. </method>
  2292. <method name="setPermission"
  2293. abstract="false" native="false" synchronized="false"
  2294. static="false" final="false" visibility="public"
  2295. deprecated="not deprecated">
  2296. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2297. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2298. <exception name="IOException" type="java.io.IOException"/>
  2299. <doc>
  2300. <![CDATA[{@inheritDoc }]]>
  2301. </doc>
  2302. </method>
  2303. <method name="setOwner"
  2304. abstract="false" native="false" synchronized="false"
  2305. static="false" final="false" visibility="public"
  2306. deprecated="not deprecated">
  2307. <param name="p" type="org.apache.hadoop.fs.Path"/>
  2308. <param name="username" type="java.lang.String"/>
  2309. <param name="groupname" type="java.lang.String"/>
  2310. <exception name="IOException" type="java.io.IOException"/>
  2311. <doc>
  2312. <![CDATA[{@inheritDoc }]]>
  2313. </doc>
  2314. </method>
  2315. <doc>
  2316. <![CDATA[Implementation of the abstract FileSystem for the DFS system.
  2317. This object is the way end-user code interacts with a Hadoop
  2318. DistributedFileSystem.]]>
  2319. </doc>
  2320. </class>
  2321. <!-- end class org.apache.hadoop.dfs.DistributedFileSystem -->
  2322. <!-- start class org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus -->
  2323. <class name="DistributedFileSystem.DiskStatus" extends="java.lang.Object"
  2324. abstract="false"
  2325. static="true" final="false" visibility="public"
  2326. deprecated="not deprecated">
  2327. <constructor name="DistributedFileSystem.DiskStatus" type="long, long, long"
  2328. static="false" final="false" visibility="public"
  2329. deprecated="not deprecated">
  2330. </constructor>
  2331. <method name="getCapacity" return="long"
  2332. abstract="false" native="false" synchronized="false"
  2333. static="false" final="false" visibility="public"
  2334. deprecated="not deprecated">
  2335. </method>
  2336. <method name="getDfsUsed" return="long"
  2337. abstract="false" native="false" synchronized="false"
  2338. static="false" final="false" visibility="public"
  2339. deprecated="not deprecated">
  2340. </method>
  2341. <method name="getRemaining" return="long"
  2342. abstract="false" native="false" synchronized="false"
  2343. static="false" final="false" visibility="public"
  2344. deprecated="not deprecated">
  2345. </method>
  2346. </class>
  2347. <!-- end class org.apache.hadoop.dfs.DistributedFileSystem.DiskStatus -->
  2348. <!-- start class org.apache.hadoop.dfs.FileDataServlet -->
  2349. <class name="FileDataServlet" extends="org.apache.hadoop.dfs.DfsServlet"
  2350. abstract="false"
  2351. static="false" final="false" visibility="public"
  2352. deprecated="not deprecated">
  2353. <constructor name="FileDataServlet"
  2354. static="false" final="false" visibility="public"
  2355. deprecated="not deprecated">
  2356. </constructor>
  2357. <method name="doGet"
  2358. abstract="false" native="false" synchronized="false"
  2359. static="false" final="false" visibility="public"
  2360. deprecated="not deprecated">
  2361. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  2362. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  2363. <exception name="IOException" type="java.io.IOException"/>
  2364. <doc>
  2365. <![CDATA[Service a GET request as described below.
  2366. Request:
  2367. {@code
  2368. GET http://<nn>:<port>/data[/<path>] HTTP/1.1
  2369. }]]>
  2370. </doc>
  2371. </method>
  2372. <doc>
  2373. <![CDATA[Redirect queries about the hosted filesystem to an appropriate datanode.
  2374. @see org.apache.hadoop.dfs.HftpFileSystem]]>
  2375. </doc>
  2376. </class>
  2377. <!-- end class org.apache.hadoop.dfs.FileDataServlet -->
  2378. <!-- start class org.apache.hadoop.dfs.FsckServlet -->
  2379. <class name="FsckServlet" extends="javax.servlet.http.HttpServlet"
  2380. abstract="false"
  2381. static="false" final="false" visibility="public"
  2382. deprecated="not deprecated">
  2383. <constructor name="FsckServlet"
  2384. static="false" final="false" visibility="public"
  2385. deprecated="not deprecated">
  2386. </constructor>
  2387. <method name="doGet"
  2388. abstract="false" native="false" synchronized="false"
  2389. static="false" final="false" visibility="public"
  2390. deprecated="not deprecated">
  2391. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  2392. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  2393. <exception name="ServletException" type="javax.servlet.ServletException"/>
  2394. <exception name="IOException" type="java.io.IOException"/>
  2395. </method>
  2396. <doc>
  2397. <![CDATA[This class is used in Namesystem's jetty to do fsck on namenode.]]>
  2398. </doc>
  2399. </class>
  2400. <!-- end class org.apache.hadoop.dfs.FsckServlet -->
  2401. <!-- start interface org.apache.hadoop.dfs.FSConstants -->
  2402. <interface name="FSConstants" abstract="true"
  2403. static="false" final="false" visibility="public"
  2404. deprecated="not deprecated">
  2405. <field name="MIN_BLOCKS_FOR_WRITE" type="int"
  2406. transient="false" volatile="false"
  2407. static="true" final="true" visibility="public"
  2408. deprecated="not deprecated">
  2409. </field>
  2410. <field name="OP_ERROR" type="byte"
  2411. transient="false" volatile="false"
  2412. static="true" final="true" visibility="public"
  2413. deprecated="not deprecated">
  2414. </field>
  2415. <field name="OP_HEARTBEAT" type="byte"
  2416. transient="false" volatile="false"
  2417. static="true" final="true" visibility="public"
  2418. deprecated="not deprecated">
  2419. </field>
  2420. <field name="OP_BLOCKRECEIVED" type="byte"
  2421. transient="false" volatile="false"
  2422. static="true" final="true" visibility="public"
  2423. deprecated="not deprecated">
  2424. </field>
  2425. <field name="OP_BLOCKREPORT" type="byte"
  2426. transient="false" volatile="false"
  2427. static="true" final="true" visibility="public"
  2428. deprecated="not deprecated">
  2429. </field>
  2430. <field name="OP_TRANSFERDATA" 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_OPEN" 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_STARTFILE" 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_ADDBLOCK" 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_RENAMETO" 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_DELETE" 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_COMPLETEFILE" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" 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" type="byte"
  2516. transient="false" volatile="false"
  2517. static="true" final="true" visibility="public"
  2518. deprecated="not deprecated">
  2519. </field>
  2520. <field name="OP_ACK" type="byte"
  2521. transient="false" volatile="false"
  2522. static="true" final="true" visibility="public"
  2523. deprecated="not deprecated">
  2524. </field>
  2525. <field name="OP_TRANSFERBLOCKS" type="byte"
  2526. transient="false" volatile="false"
  2527. static="true" final="true" visibility="public"
  2528. deprecated="not deprecated">
  2529. </field>
  2530. <field name="OP_INVALIDATE_BLOCKS" type="byte"
  2531. transient="false" volatile="false"
  2532. static="true" final="true" visibility="public"
  2533. deprecated="not deprecated">
  2534. </field>
  2535. <field name="OP_FAILURE" type="byte"
  2536. transient="false" volatile="false"
  2537. static="true" final="true" visibility="public"
  2538. deprecated="not deprecated">
  2539. </field>
  2540. <field name="OP_CLIENT_OPEN_ACK" type="byte"
  2541. transient="false" volatile="false"
  2542. static="true" final="true" visibility="public"
  2543. deprecated="not deprecated">
  2544. </field>
  2545. <field name="OP_CLIENT_STARTFILE_ACK" type="byte"
  2546. transient="false" volatile="false"
  2547. static="true" final="true" visibility="public"
  2548. deprecated="not deprecated">
  2549. </field>
  2550. <field name="OP_CLIENT_ADDBLOCK_ACK" type="byte"
  2551. transient="false" volatile="false"
  2552. static="true" final="true" visibility="public"
  2553. deprecated="not deprecated">
  2554. </field>
  2555. <field name="OP_CLIENT_RENAMETO_ACK" type="byte"
  2556. transient="false" volatile="false"
  2557. static="true" final="true" visibility="public"
  2558. deprecated="not deprecated">
  2559. </field>
  2560. <field name="OP_CLIENT_DELETE_ACK" type="byte"
  2561. transient="false" volatile="false"
  2562. static="true" final="true" visibility="public"
  2563. deprecated="not deprecated">
  2564. </field>
  2565. <field name="OP_CLIENT_COMPLETEFILE_ACK" type="byte"
  2566. transient="false" volatile="false"
  2567. static="true" final="true" visibility="public"
  2568. deprecated="not deprecated">
  2569. </field>
  2570. <field name="OP_CLIENT_TRYAGAIN" type="byte"
  2571. transient="false" volatile="false"
  2572. static="true" final="true" visibility="public"
  2573. deprecated="not deprecated">
  2574. </field>
  2575. <field name="OP_CLIENT_LISTING_ACK" type="byte"
  2576. transient="false" volatile="false"
  2577. static="true" final="true" visibility="public"
  2578. deprecated="not deprecated">
  2579. </field>
  2580. <field name="OP_CLIENT_OBTAINLOCK_ACK" type="byte"
  2581. transient="false" volatile="false"
  2582. static="true" final="true" visibility="public"
  2583. deprecated="not deprecated">
  2584. </field>
  2585. <field name="OP_CLIENT_RELEASELOCK_ACK" type="byte"
  2586. transient="false" volatile="false"
  2587. static="true" final="true" visibility="public"
  2588. deprecated="not deprecated">
  2589. </field>
  2590. <field name="OP_CLIENT_EXISTS_ACK" type="byte"
  2591. transient="false" volatile="false"
  2592. static="true" final="true" visibility="public"
  2593. deprecated="not deprecated">
  2594. </field>
  2595. <field name="OP_CLIENT_ISDIR_ACK" type="byte"
  2596. transient="false" volatile="false"
  2597. static="true" final="true" visibility="public"
  2598. deprecated="not deprecated">
  2599. </field>
  2600. <field name="OP_CLIENT_MKDIRS_ACK" type="byte"
  2601. transient="false" volatile="false"
  2602. static="true" final="true" visibility="public"
  2603. deprecated="not deprecated">
  2604. </field>
  2605. <field name="OP_CLIENT_RENEW_LEASE_ACK" type="byte"
  2606. transient="false" volatile="false"
  2607. static="true" final="true" visibility="public"
  2608. deprecated="not deprecated">
  2609. </field>
  2610. <field name="OP_CLIENT_ABANDONBLOCK_ACK" type="byte"
  2611. transient="false" volatile="false"
  2612. static="true" final="true" visibility="public"
  2613. deprecated="not deprecated">
  2614. </field>
  2615. <field name="OP_CLIENT_RAWSTATS_ACK" type="byte"
  2616. transient="false" volatile="false"
  2617. static="true" final="true" visibility="public"
  2618. deprecated="not deprecated">
  2619. </field>
  2620. <field name="OP_CLIENT_DATANODEREPORT_ACK" type="byte"
  2621. transient="false" volatile="false"
  2622. static="true" final="true" visibility="public"
  2623. deprecated="not deprecated">
  2624. </field>
  2625. <field name="OP_CLIENT_DATANODE_HINTS_ACK" type="byte"
  2626. transient="false" volatile="false"
  2627. static="true" final="true" visibility="public"
  2628. deprecated="not deprecated">
  2629. </field>
  2630. <field name="OP_WRITE_BLOCK" type="byte"
  2631. transient="false" volatile="false"
  2632. static="true" final="true" visibility="public"
  2633. deprecated="not deprecated">
  2634. </field>
  2635. <field name="OP_READ_BLOCK" type="byte"
  2636. transient="false" volatile="false"
  2637. static="true" final="true" visibility="public"
  2638. deprecated="not deprecated">
  2639. </field>
  2640. <field name="OP_READ_METADATA" type="byte"
  2641. transient="false" volatile="false"
  2642. static="true" final="true" visibility="public"
  2643. deprecated="not deprecated">
  2644. </field>
  2645. <field name="OP_REPLACE_BLOCK" type="byte"
  2646. transient="false" volatile="false"
  2647. static="true" final="true" visibility="public"
  2648. deprecated="not deprecated">
  2649. </field>
  2650. <field name="OP_COPY_BLOCK" type="byte"
  2651. transient="false" volatile="false"
  2652. static="true" final="true" visibility="public"
  2653. deprecated="not deprecated">
  2654. </field>
  2655. <field name="OP_STATUS_SUCCESS" type="int"
  2656. transient="false" volatile="false"
  2657. static="true" final="true" visibility="public"
  2658. deprecated="not deprecated">
  2659. </field>
  2660. <field name="OP_STATUS_ERROR" type="int"
  2661. transient="false" volatile="false"
  2662. static="true" final="true" visibility="public"
  2663. deprecated="not deprecated">
  2664. </field>
  2665. <field name="OP_STATUS_ERROR_CHECKSUM" type="int"
  2666. transient="false" volatile="false"
  2667. static="true" final="true" visibility="public"
  2668. deprecated="not deprecated">
  2669. </field>
  2670. <field name="OP_STATUS_ERROR_INVALID" type="int"
  2671. transient="false" volatile="false"
  2672. static="true" final="true" visibility="public"
  2673. deprecated="not deprecated">
  2674. </field>
  2675. <field name="OP_STATUS_ERROR_EXISTS" type="int"
  2676. transient="false" volatile="false"
  2677. static="true" final="true" visibility="public"
  2678. deprecated="not deprecated">
  2679. </field>
  2680. <field name="OP_STATUS_CHECKSUM_OK" type="int"
  2681. transient="false" volatile="false"
  2682. static="true" final="true" visibility="public"
  2683. deprecated="not deprecated">
  2684. </field>
  2685. <field name="DATA_TRANSFER_VERSION" type="int"
  2686. transient="false" volatile="false"
  2687. static="true" final="true" visibility="public"
  2688. deprecated="not deprecated">
  2689. <doc>
  2690. <![CDATA[Version for data transfers between clients and datanodes
  2691. This should change when serialization of DatanodeInfo, not just
  2692. when protocol changes. It is not very obvious.]]>
  2693. </doc>
  2694. </field>
  2695. <field name="OPERATION_FAILED" type="int"
  2696. transient="false" volatile="false"
  2697. static="true" final="true" visibility="public"
  2698. deprecated="not deprecated">
  2699. </field>
  2700. <field name="STILL_WAITING" type="int"
  2701. transient="false" volatile="false"
  2702. static="true" final="true" visibility="public"
  2703. deprecated="not deprecated">
  2704. </field>
  2705. <field name="COMPLETE_SUCCESS" type="int"
  2706. transient="false" volatile="false"
  2707. static="true" final="true" visibility="public"
  2708. deprecated="not deprecated">
  2709. </field>
  2710. <field name="BLOCK_INVALIDATE_CHUNK" type="int"
  2711. transient="false" volatile="false"
  2712. static="true" final="true" visibility="public"
  2713. deprecated="not deprecated">
  2714. </field>
  2715. <field name="HEARTBEAT_INTERVAL" type="long"
  2716. transient="false" volatile="false"
  2717. static="true" final="true" visibility="public"
  2718. deprecated="not deprecated">
  2719. </field>
  2720. <field name="BLOCKREPORT_INTERVAL" type="long"
  2721. transient="false" volatile="false"
  2722. static="true" final="true" visibility="public"
  2723. deprecated="not deprecated">
  2724. </field>
  2725. <field name="BLOCKREPORT_INITIAL_DELAY" type="long"
  2726. transient="false" volatile="false"
  2727. static="true" final="true" visibility="public"
  2728. deprecated="not deprecated">
  2729. </field>
  2730. <field name="LEASE_SOFTLIMIT_PERIOD" type="long"
  2731. transient="false" volatile="false"
  2732. static="true" final="true" visibility="public"
  2733. deprecated="not deprecated">
  2734. </field>
  2735. <field name="LEASE_HARDLIMIT_PERIOD" type="long"
  2736. transient="false" volatile="false"
  2737. static="true" final="true" visibility="public"
  2738. deprecated="not deprecated">
  2739. </field>
  2740. <field name="READ_TIMEOUT" type="int"
  2741. transient="false" volatile="false"
  2742. static="true" final="true" visibility="public"
  2743. deprecated="not deprecated">
  2744. </field>
  2745. <field name="WRITE_TIMEOUT" type="int"
  2746. transient="false" volatile="false"
  2747. static="true" final="true" visibility="public"
  2748. deprecated="not deprecated">
  2749. </field>
  2750. <field name="WRITE_TIMEOUT_EXTENSION" type="int"
  2751. transient="false" volatile="false"
  2752. static="true" final="true" visibility="public"
  2753. deprecated="not deprecated">
  2754. </field>
  2755. <field name="MAX_PATH_LENGTH" type="int"
  2756. transient="false" volatile="false"
  2757. static="true" final="true" visibility="public"
  2758. deprecated="not deprecated">
  2759. </field>
  2760. <field name="MAX_PATH_DEPTH" type="int"
  2761. transient="false" volatile="false"
  2762. static="true" final="true" visibility="public"
  2763. deprecated="not deprecated">
  2764. </field>
  2765. <field name="BUFFER_SIZE" type="int"
  2766. transient="false" volatile="false"
  2767. static="true" final="true" visibility="public"
  2768. deprecated="not deprecated">
  2769. </field>
  2770. <field name="SMALL_BUFFER_SIZE" type="int"
  2771. transient="false" volatile="false"
  2772. static="true" final="true" visibility="public"
  2773. deprecated="not deprecated">
  2774. </field>
  2775. <field name="DEFAULT_BLOCK_SIZE" type="long"
  2776. transient="false" volatile="false"
  2777. static="true" final="true" visibility="public"
  2778. deprecated="not deprecated">
  2779. </field>
  2780. <field name="DEFAULT_DATA_SOCKET_SIZE" type="int"
  2781. transient="false" volatile="false"
  2782. static="true" final="true" visibility="public"
  2783. deprecated="not deprecated">
  2784. </field>
  2785. <field name="SIZE_OF_INTEGER" type="int"
  2786. transient="false" volatile="false"
  2787. static="true" final="true" visibility="public"
  2788. deprecated="not deprecated">
  2789. </field>
  2790. <field name="LAYOUT_VERSION" type="int"
  2791. transient="false" volatile="false"
  2792. static="true" final="true" visibility="public"
  2793. deprecated="not deprecated">
  2794. </field>
  2795. <doc>
  2796. <![CDATA[Some handy constants]]>
  2797. </doc>
  2798. </interface>
  2799. <!-- end interface org.apache.hadoop.dfs.FSConstants -->
  2800. <!-- start class org.apache.hadoop.dfs.FSConstants.CheckpointStates -->
  2801. <class name="FSConstants.CheckpointStates" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.CheckpointStates&gt;"
  2802. abstract="false"
  2803. static="true" final="true" visibility="public"
  2804. deprecated="not deprecated">
  2805. <method name="values" return="org.apache.hadoop.dfs.FSConstants.CheckpointStates[]"
  2806. abstract="false" native="false" synchronized="false"
  2807. static="true" final="false" visibility="public"
  2808. deprecated="not deprecated">
  2809. </method>
  2810. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.CheckpointStates"
  2811. abstract="false" native="false" synchronized="false"
  2812. static="true" final="false" visibility="public"
  2813. deprecated="not deprecated">
  2814. <param name="name" type="java.lang.String"/>
  2815. </method>
  2816. </class>
  2817. <!-- end class org.apache.hadoop.dfs.FSConstants.CheckpointStates -->
  2818. <!-- start class org.apache.hadoop.dfs.FSConstants.DatanodeReportType -->
  2819. <class name="FSConstants.DatanodeReportType" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.DatanodeReportType&gt;"
  2820. abstract="false"
  2821. static="true" final="true" visibility="public"
  2822. deprecated="not deprecated">
  2823. <method name="values" return="org.apache.hadoop.dfs.FSConstants.DatanodeReportType[]"
  2824. abstract="false" native="false" synchronized="false"
  2825. static="true" final="false" visibility="public"
  2826. deprecated="not deprecated">
  2827. </method>
  2828. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.DatanodeReportType"
  2829. abstract="false" native="false" synchronized="false"
  2830. static="true" final="false" visibility="public"
  2831. deprecated="not deprecated">
  2832. <param name="name" type="java.lang.String"/>
  2833. </method>
  2834. </class>
  2835. <!-- end class org.apache.hadoop.dfs.FSConstants.DatanodeReportType -->
  2836. <!-- start class org.apache.hadoop.dfs.FSConstants.NodeType -->
  2837. <class name="FSConstants.NodeType" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.NodeType&gt;"
  2838. abstract="false"
  2839. static="true" final="true" visibility="public"
  2840. deprecated="not deprecated">
  2841. <method name="values" return="org.apache.hadoop.dfs.FSConstants.NodeType[]"
  2842. abstract="false" native="false" synchronized="false"
  2843. static="true" final="false" visibility="public"
  2844. deprecated="not deprecated">
  2845. </method>
  2846. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.NodeType"
  2847. abstract="false" native="false" synchronized="false"
  2848. static="true" final="false" visibility="public"
  2849. deprecated="not deprecated">
  2850. <param name="name" type="java.lang.String"/>
  2851. </method>
  2852. <doc>
  2853. <![CDATA[Type of the node]]>
  2854. </doc>
  2855. </class>
  2856. <!-- end class org.apache.hadoop.dfs.FSConstants.NodeType -->
  2857. <!-- start class org.apache.hadoop.dfs.FSConstants.SafeModeAction -->
  2858. <class name="FSConstants.SafeModeAction" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.SafeModeAction&gt;"
  2859. abstract="false"
  2860. static="true" final="true" visibility="public"
  2861. deprecated="not deprecated">
  2862. <method name="values" return="org.apache.hadoop.dfs.FSConstants.SafeModeAction[]"
  2863. abstract="false" native="false" synchronized="false"
  2864. static="true" final="false" visibility="public"
  2865. deprecated="not deprecated">
  2866. </method>
  2867. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.SafeModeAction"
  2868. abstract="false" native="false" synchronized="false"
  2869. static="true" final="false" visibility="public"
  2870. deprecated="not deprecated">
  2871. <param name="name" type="java.lang.String"/>
  2872. </method>
  2873. </class>
  2874. <!-- end class org.apache.hadoop.dfs.FSConstants.SafeModeAction -->
  2875. <!-- start class org.apache.hadoop.dfs.FSConstants.StartupOption -->
  2876. <class name="FSConstants.StartupOption" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.StartupOption&gt;"
  2877. abstract="false"
  2878. static="true" final="true" visibility="public"
  2879. deprecated="not deprecated">
  2880. <method name="values" return="org.apache.hadoop.dfs.FSConstants.StartupOption[]"
  2881. abstract="false" native="false" synchronized="false"
  2882. static="true" final="false" visibility="public"
  2883. deprecated="not deprecated">
  2884. </method>
  2885. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.StartupOption"
  2886. abstract="false" native="false" synchronized="false"
  2887. static="true" final="false" visibility="public"
  2888. deprecated="not deprecated">
  2889. <param name="name" type="java.lang.String"/>
  2890. </method>
  2891. </class>
  2892. <!-- end class org.apache.hadoop.dfs.FSConstants.StartupOption -->
  2893. <!-- start class org.apache.hadoop.dfs.FSConstants.UpgradeAction -->
  2894. <class name="FSConstants.UpgradeAction" extends="java.lang.Enum&lt;org.apache.hadoop.dfs.FSConstants.UpgradeAction&gt;"
  2895. abstract="false"
  2896. static="true" final="true" visibility="public"
  2897. deprecated="not deprecated">
  2898. <method name="values" return="org.apache.hadoop.dfs.FSConstants.UpgradeAction[]"
  2899. abstract="false" native="false" synchronized="false"
  2900. static="true" final="false" visibility="public"
  2901. deprecated="not deprecated">
  2902. </method>
  2903. <method name="valueOf" return="org.apache.hadoop.dfs.FSConstants.UpgradeAction"
  2904. abstract="false" native="false" synchronized="false"
  2905. static="true" final="false" visibility="public"
  2906. deprecated="not deprecated">
  2907. <param name="name" type="java.lang.String"/>
  2908. </method>
  2909. <doc>
  2910. <![CDATA[Distributed upgrade actions:
  2911. 1. Get upgrade status.
  2912. 2. Get detailed upgrade status.
  2913. 3. Proceed with the upgrade if it is stuck, no matter what the status is.]]>
  2914. </doc>
  2915. </class>
  2916. <!-- end class org.apache.hadoop.dfs.FSConstants.UpgradeAction -->
  2917. <!-- start interface org.apache.hadoop.dfs.FSDatasetInterface -->
  2918. <interface name="FSDatasetInterface" abstract="true"
  2919. static="false" final="false" visibility="public"
  2920. deprecated="not deprecated">
  2921. <implements name="org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean"/>
  2922. <method name="getMetaDataLength" return="long"
  2923. abstract="false" native="false" synchronized="false"
  2924. static="false" final="false" visibility="public"
  2925. deprecated="not deprecated">
  2926. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2927. <exception name="IOException" type="java.io.IOException"/>
  2928. <doc>
  2929. <![CDATA[Returns the length of the metadata file of the specified block
  2930. @param b - the block for which the metadata length is desired
  2931. @return the length of the metadata file for the specified block.
  2932. @throws IOException]]>
  2933. </doc>
  2934. </method>
  2935. <method name="getMetaDataInputStream" return="org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream"
  2936. abstract="false" native="false" synchronized="false"
  2937. static="false" final="false" visibility="public"
  2938. deprecated="not deprecated">
  2939. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2940. <exception name="IOException" type="java.io.IOException"/>
  2941. <doc>
  2942. <![CDATA[Returns metaData of block b as an input stream (and its length)
  2943. @param b - the block
  2944. @return the metadata input stream;
  2945. @throws IOException]]>
  2946. </doc>
  2947. </method>
  2948. <method name="metaFileExists" return="boolean"
  2949. abstract="false" native="false" synchronized="false"
  2950. static="false" final="false" visibility="public"
  2951. deprecated="not deprecated">
  2952. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2953. <exception name="IOException" type="java.io.IOException"/>
  2954. <doc>
  2955. <![CDATA[Does the meta file exist for this block?
  2956. @param b - the block
  2957. @return true of the metafile for specified block exits
  2958. @throws IOException]]>
  2959. </doc>
  2960. </method>
  2961. <method name="getLength" return="long"
  2962. abstract="false" native="false" synchronized="false"
  2963. static="false" final="false" visibility="public"
  2964. deprecated="not deprecated">
  2965. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2966. <exception name="IOException" type="java.io.IOException"/>
  2967. <doc>
  2968. <![CDATA[Returns the specified block's on-disk length (excluding metadata)
  2969. @param b
  2970. @return the specified block's on-disk length (excluding metadta)
  2971. @throws IOException]]>
  2972. </doc>
  2973. </method>
  2974. <method name="getStoredBlock" return="org.apache.hadoop.dfs.Block"
  2975. abstract="false" native="false" synchronized="false"
  2976. static="false" final="false" visibility="public"
  2977. deprecated="not deprecated">
  2978. <param name="blkid" type="long"/>
  2979. <exception name="IOException" type="java.io.IOException"/>
  2980. <doc>
  2981. <![CDATA[@return the generation stamp stored with the block.]]>
  2982. </doc>
  2983. </method>
  2984. <method name="getBlockInputStream" return="java.io.InputStream"
  2985. abstract="false" native="false" synchronized="false"
  2986. static="false" final="false" visibility="public"
  2987. deprecated="not deprecated">
  2988. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  2989. <exception name="IOException" type="java.io.IOException"/>
  2990. <doc>
  2991. <![CDATA[Returns an input stream to read the contents of the specified block
  2992. @param b
  2993. @return an input stream to read the contents of the specified block
  2994. @throws IOException]]>
  2995. </doc>
  2996. </method>
  2997. <method name="getBlockInputStream" return="java.io.InputStream"
  2998. abstract="false" native="false" synchronized="false"
  2999. static="false" final="false" visibility="public"
  3000. deprecated="not deprecated">
  3001. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3002. <param name="seekOffset" type="long"/>
  3003. <exception name="IOException" type="java.io.IOException"/>
  3004. <doc>
  3005. <![CDATA[Returns an input stream at specified offset of the specified block
  3006. @param b
  3007. @param seekOffset
  3008. @return an input stream to read the contents of the specified block,
  3009. starting at the offset
  3010. @throws IOException]]>
  3011. </doc>
  3012. </method>
  3013. <method name="writeToBlock" return="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"
  3014. abstract="false" native="false" synchronized="false"
  3015. static="false" final="false" visibility="public"
  3016. deprecated="not deprecated">
  3017. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3018. <param name="isRecovery" type="boolean"/>
  3019. <exception name="IOException" type="java.io.IOException"/>
  3020. <doc>
  3021. <![CDATA[Creates the block and returns output streams to write data and CRC
  3022. @param b
  3023. @param isRecovery True if this is part of erro recovery, otherwise false
  3024. @return a BlockWriteStreams object to allow writing the block data
  3025. and CRC
  3026. @throws IOException]]>
  3027. </doc>
  3028. </method>
  3029. <method name="updateBlock"
  3030. abstract="false" native="false" synchronized="false"
  3031. static="false" final="false" visibility="public"
  3032. deprecated="not deprecated">
  3033. <param name="oldblock" type="org.apache.hadoop.dfs.Block"/>
  3034. <param name="newblock" type="org.apache.hadoop.dfs.Block"/>
  3035. <exception name="IOException" type="java.io.IOException"/>
  3036. <doc>
  3037. <![CDATA[Update the block to the new generation stamp and length.]]>
  3038. </doc>
  3039. </method>
  3040. <method name="finalizeBlock"
  3041. abstract="false" native="false" synchronized="false"
  3042. static="false" final="false" visibility="public"
  3043. deprecated="not deprecated">
  3044. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3045. <exception name="IOException" type="java.io.IOException"/>
  3046. <doc>
  3047. <![CDATA[Finalizes the block previously opened for writing using writeToBlock.
  3048. The block size is what is in the parameter b and it must match the amount
  3049. of data written
  3050. @param b
  3051. @throws IOException]]>
  3052. </doc>
  3053. </method>
  3054. <method name="unfinalizeBlock"
  3055. abstract="false" native="false" synchronized="false"
  3056. static="false" final="false" visibility="public"
  3057. deprecated="not deprecated">
  3058. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3059. <exception name="IOException" type="java.io.IOException"/>
  3060. <doc>
  3061. <![CDATA[Unfinalizes the block previously opened for writing using writeToBlock.
  3062. The temporary file associated with this block is deleted.
  3063. @param b
  3064. @throws IOException]]>
  3065. </doc>
  3066. </method>
  3067. <method name="getBlockReport" return="org.apache.hadoop.dfs.Block[]"
  3068. abstract="false" native="false" synchronized="false"
  3069. static="false" final="false" visibility="public"
  3070. deprecated="not deprecated">
  3071. <doc>
  3072. <![CDATA[Returns the block report - the full list of blocks stored
  3073. @return - the block report - the full list of blocks stored]]>
  3074. </doc>
  3075. </method>
  3076. <method name="isValidBlock" return="boolean"
  3077. abstract="false" native="false" synchronized="false"
  3078. static="false" final="false" visibility="public"
  3079. deprecated="not deprecated">
  3080. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3081. <doc>
  3082. <![CDATA[Is the block valid?
  3083. @param b
  3084. @return - true if the specified block is valid]]>
  3085. </doc>
  3086. </method>
  3087. <method name="invalidate"
  3088. abstract="false" native="false" synchronized="false"
  3089. static="false" final="false" visibility="public"
  3090. deprecated="not deprecated">
  3091. <param name="invalidBlks" type="org.apache.hadoop.dfs.Block[]"/>
  3092. <exception name="IOException" type="java.io.IOException"/>
  3093. <doc>
  3094. <![CDATA[Invalidates the specified blocks
  3095. @param invalidBlks - the blocks to be invalidated
  3096. @throws IOException]]>
  3097. </doc>
  3098. </method>
  3099. <method name="checkDataDir"
  3100. abstract="false" native="false" synchronized="false"
  3101. static="false" final="false" visibility="public"
  3102. deprecated="not deprecated">
  3103. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  3104. <doc>
  3105. <![CDATA[Check if all the data directories are healthy
  3106. @throws DiskErrorException]]>
  3107. </doc>
  3108. </method>
  3109. <method name="toString" return="java.lang.String"
  3110. abstract="false" native="false" synchronized="false"
  3111. static="false" final="false" visibility="public"
  3112. deprecated="not deprecated">
  3113. <doc>
  3114. <![CDATA[Stringifies the name of the storage]]>
  3115. </doc>
  3116. </method>
  3117. <method name="shutdown"
  3118. abstract="false" native="false" synchronized="false"
  3119. static="false" final="false" visibility="public"
  3120. deprecated="not deprecated">
  3121. <doc>
  3122. <![CDATA[Shutdown the FSDataset]]>
  3123. </doc>
  3124. </method>
  3125. <method name="getChannelPosition" return="long"
  3126. abstract="false" native="false" synchronized="false"
  3127. static="false" final="false" visibility="public"
  3128. deprecated="not deprecated">
  3129. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3130. <param name="stream" type="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"/>
  3131. <exception name="IOException" type="java.io.IOException"/>
  3132. <doc>
  3133. <![CDATA[Returns the current offset in the data stream.
  3134. @param b
  3135. @param stream The stream to the data file and checksum file
  3136. @return the position of the file pointer in the data stream
  3137. @throws IOException]]>
  3138. </doc>
  3139. </method>
  3140. <method name="setChannelPosition"
  3141. abstract="false" native="false" synchronized="false"
  3142. static="false" final="false" visibility="public"
  3143. deprecated="not deprecated">
  3144. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3145. <param name="stream" type="org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams"/>
  3146. <param name="dataOffset" type="long"/>
  3147. <param name="ckOffset" type="long"/>
  3148. <exception name="IOException" type="java.io.IOException"/>
  3149. <doc>
  3150. <![CDATA[Sets the file pointer of the data stream and checksum stream to
  3151. the specified values.
  3152. @param b
  3153. @param stream The stream for the data file and checksum file
  3154. @param dataOffset The position to which the file pointre for the data stream
  3155. should be set
  3156. @param ckOffset The position to which the file pointre for the checksum stream
  3157. should be set
  3158. @throws IOException]]>
  3159. </doc>
  3160. </method>
  3161. <doc>
  3162. <![CDATA[This is an interface for the underlying storage that stores blocks for
  3163. a data node.
  3164. Examples are the FSDataset (which stores blocks on dirs) and
  3165. SimulatedFSDataset (which simulates data).]]>
  3166. </doc>
  3167. </interface>
  3168. <!-- end interface org.apache.hadoop.dfs.FSDatasetInterface -->
  3169. <!-- start class org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams -->
  3170. <class name="FSDatasetInterface.BlockWriteStreams" extends="java.lang.Object"
  3171. abstract="false"
  3172. static="true" final="false" visibility="public"
  3173. deprecated="not deprecated">
  3174. <doc>
  3175. <![CDATA[This class contains the output streams for the data and checksum
  3176. of a block]]>
  3177. </doc>
  3178. </class>
  3179. <!-- end class org.apache.hadoop.dfs.FSDatasetInterface.BlockWriteStreams -->
  3180. <!-- start class org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream -->
  3181. <class name="FSDatasetInterface.MetaDataInputStream" extends="java.io.FilterInputStream"
  3182. abstract="false"
  3183. static="true" final="false" visibility="public"
  3184. deprecated="not deprecated">
  3185. <method name="getLength" return="long"
  3186. abstract="false" native="false" synchronized="false"
  3187. static="false" final="false" visibility="public"
  3188. deprecated="not deprecated">
  3189. </method>
  3190. <doc>
  3191. <![CDATA[This class provides the input stream and length of the metadata
  3192. of a block]]>
  3193. </doc>
  3194. </class>
  3195. <!-- end class org.apache.hadoop.dfs.FSDatasetInterface.MetaDataInputStream -->
  3196. <!-- start class org.apache.hadoop.dfs.FSNamesystemMetrics -->
  3197. <class name="FSNamesystemMetrics" extends="java.lang.Object"
  3198. abstract="false"
  3199. static="false" final="false" visibility="public"
  3200. deprecated="not deprecated">
  3201. <implements name="org.apache.hadoop.metrics.Updater"/>
  3202. <method name="doUpdates"
  3203. abstract="false" native="false" synchronized="false"
  3204. static="false" final="false" visibility="public"
  3205. deprecated="not deprecated">
  3206. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  3207. <doc>
  3208. <![CDATA[Since this object is a registered updater, this method will be called
  3209. periodically, e.g. every 5 seconds.
  3210. We set the metrics value within this function before pushing it out.
  3211. FSNamesystem updates its own local variables which are
  3212. light weight compared to Metrics counters.
  3213. Some of the metrics are explicity casted to int. Few metrics collectors
  3214. do not handle long values. It is safe to cast to int for now as all these
  3215. values fit in int value.
  3216. Metrics related to DFS capacity are stored in bytes which do not fit in
  3217. int, so they are rounded to GB]]>
  3218. </doc>
  3219. </method>
  3220. <field name="filesTotal" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3221. transient="false" volatile="false"
  3222. static="false" final="false" visibility="public"
  3223. deprecated="not deprecated">
  3224. </field>
  3225. <field name="blocksTotal" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3226. transient="false" volatile="false"
  3227. static="false" final="false" visibility="public"
  3228. deprecated="not deprecated">
  3229. </field>
  3230. <field name="capacityTotalGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3231. transient="false" volatile="false"
  3232. static="false" final="false" visibility="public"
  3233. deprecated="not deprecated">
  3234. </field>
  3235. <field name="capacityUsedGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3236. transient="false" volatile="false"
  3237. static="false" final="false" visibility="public"
  3238. deprecated="not deprecated">
  3239. </field>
  3240. <field name="capacityRemainingGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3241. transient="false" volatile="false"
  3242. static="false" final="false" visibility="public"
  3243. deprecated="not deprecated">
  3244. </field>
  3245. <field name="totalLoad" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3246. transient="false" volatile="false"
  3247. static="false" final="false" visibility="public"
  3248. deprecated="not deprecated">
  3249. </field>
  3250. <field name="pendingReplicationBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3251. transient="false" volatile="false"
  3252. static="false" final="false" visibility="public"
  3253. deprecated="not deprecated">
  3254. </field>
  3255. <field name="underReplicatedBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3256. transient="false" volatile="false"
  3257. static="false" final="false" visibility="public"
  3258. deprecated="not deprecated">
  3259. </field>
  3260. <field name="scheduledReplicationBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  3261. transient="false" volatile="false"
  3262. static="false" final="false" visibility="public"
  3263. deprecated="not deprecated">
  3264. </field>
  3265. <doc>
  3266. <![CDATA[This class is for maintaining the various FSNamesystem status metrics
  3267. and publishing them through the metrics interfaces.
  3268. This also registers the JMX MBean for RPC.
  3269. <p>
  3270. This class has a number of metrics variables that are publicly accessible;
  3271. these variables (objects) have methods to update their values;
  3272. for example:
  3273. <p> {@link #filesTotal}.set()]]>
  3274. </doc>
  3275. </class>
  3276. <!-- end class org.apache.hadoop.dfs.FSNamesystemMetrics -->
  3277. <!-- start class org.apache.hadoop.dfs.GetImageServlet -->
  3278. <class name="GetImageServlet" extends="javax.servlet.http.HttpServlet"
  3279. abstract="false"
  3280. static="false" final="false" visibility="public"
  3281. deprecated="not deprecated">
  3282. <constructor name="GetImageServlet"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. </constructor>
  3286. <method name="doGet"
  3287. abstract="false" native="false" synchronized="false"
  3288. static="false" final="false" visibility="public"
  3289. deprecated="not deprecated">
  3290. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3291. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  3292. <exception name="ServletException" type="javax.servlet.ServletException"/>
  3293. <exception name="IOException" type="java.io.IOException"/>
  3294. </method>
  3295. <doc>
  3296. <![CDATA[This class is used in Namesystem's jetty to retrieve a file.
  3297. Typically used by the Secondary NameNode to retrieve image and
  3298. edit file for periodic checkpointing.]]>
  3299. </doc>
  3300. </class>
  3301. <!-- end class org.apache.hadoop.dfs.GetImageServlet -->
  3302. <!-- start class org.apache.hadoop.dfs.HftpFileSystem -->
  3303. <class name="HftpFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  3304. abstract="false"
  3305. static="false" final="false" visibility="public"
  3306. deprecated="not deprecated">
  3307. <constructor name="HftpFileSystem"
  3308. static="false" final="false" visibility="public"
  3309. deprecated="not deprecated">
  3310. </constructor>
  3311. <method name="initialize"
  3312. abstract="false" native="false" synchronized="false"
  3313. static="false" final="false" visibility="public"
  3314. deprecated="not deprecated">
  3315. <param name="name" type="java.net.URI"/>
  3316. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3317. <exception name="IOException" type="java.io.IOException"/>
  3318. </method>
  3319. <method name="getUri" return="java.net.URI"
  3320. abstract="false" native="false" synchronized="false"
  3321. static="false" final="false" visibility="public"
  3322. deprecated="not deprecated">
  3323. </method>
  3324. <method name="openConnection" return="java.net.HttpURLConnection"
  3325. abstract="false" native="false" synchronized="false"
  3326. static="false" final="false" visibility="protected"
  3327. deprecated="not deprecated">
  3328. <param name="path" type="java.lang.String"/>
  3329. <param name="query" type="java.lang.String"/>
  3330. <exception name="IOException" type="java.io.IOException"/>
  3331. <doc>
  3332. <![CDATA[Open an HTTP connection to the namenode to read file data and metadata.
  3333. @param path The path component of the URL
  3334. @param query The query component of the URL]]>
  3335. </doc>
  3336. </method>
  3337. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  3338. abstract="false" native="false" synchronized="false"
  3339. static="false" final="false" visibility="public"
  3340. deprecated="not deprecated">
  3341. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3342. <param name="buffersize" type="int"/>
  3343. <exception name="IOException" type="java.io.IOException"/>
  3344. </method>
  3345. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  3346. abstract="false" native="false" synchronized="false"
  3347. static="false" final="false" visibility="public"
  3348. deprecated="not deprecated">
  3349. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3350. <exception name="IOException" type="java.io.IOException"/>
  3351. </method>
  3352. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  3353. abstract="false" native="false" synchronized="false"
  3354. static="false" final="false" visibility="public"
  3355. deprecated="not deprecated">
  3356. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3357. <exception name="IOException" type="java.io.IOException"/>
  3358. </method>
  3359. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  3360. abstract="false" native="false" synchronized="false"
  3361. static="false" final="false" visibility="public"
  3362. deprecated="not deprecated">
  3363. </method>
  3364. <method name="setWorkingDirectory"
  3365. abstract="false" native="false" synchronized="false"
  3366. static="false" final="false" visibility="public"
  3367. deprecated="not deprecated">
  3368. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3369. </method>
  3370. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  3371. abstract="false" native="false" synchronized="false"
  3372. static="false" final="false" visibility="public"
  3373. deprecated="not deprecated">
  3374. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3375. <param name="bufferSize" type="int"/>
  3376. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3377. <exception name="IOException" type="java.io.IOException"/>
  3378. <doc>
  3379. <![CDATA[This optional operation is not yet supported.]]>
  3380. </doc>
  3381. </method>
  3382. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  3383. abstract="false" native="false" synchronized="false"
  3384. static="false" final="false" visibility="public"
  3385. deprecated="not deprecated">
  3386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3387. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3388. <param name="overwrite" type="boolean"/>
  3389. <param name="bufferSize" type="int"/>
  3390. <param name="replication" type="short"/>
  3391. <param name="blockSize" type="long"/>
  3392. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  3393. <exception name="IOException" type="java.io.IOException"/>
  3394. </method>
  3395. <method name="rename" return="boolean"
  3396. abstract="false" native="false" synchronized="false"
  3397. static="false" final="false" visibility="public"
  3398. deprecated="not deprecated">
  3399. <param name="src" type="org.apache.hadoop.fs.Path"/>
  3400. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  3401. <exception name="IOException" type="java.io.IOException"/>
  3402. </method>
  3403. <method name="delete" return="boolean"
  3404. abstract="false" native="false" synchronized="false"
  3405. static="false" final="false" visibility="public"
  3406. deprecated="not deprecated">
  3407. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3408. <exception name="IOException" type="java.io.IOException"/>
  3409. </method>
  3410. <method name="delete" return="boolean"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3415. <param name="recursive" type="boolean"/>
  3416. <exception name="IOException" type="java.io.IOException"/>
  3417. </method>
  3418. <method name="mkdirs" return="boolean"
  3419. abstract="false" native="false" synchronized="false"
  3420. static="false" final="false" visibility="public"
  3421. deprecated="not deprecated">
  3422. <param name="f" type="org.apache.hadoop.fs.Path"/>
  3423. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3424. <exception name="IOException" type="java.io.IOException"/>
  3425. </method>
  3426. <field name="nnAddr" type="java.net.InetSocketAddress"
  3427. transient="false" volatile="false"
  3428. static="false" final="false" visibility="protected"
  3429. deprecated="not deprecated">
  3430. </field>
  3431. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  3432. transient="false" volatile="false"
  3433. static="false" final="false" visibility="protected"
  3434. deprecated="not deprecated">
  3435. </field>
  3436. <field name="df" type="java.text.SimpleDateFormat"
  3437. transient="false" volatile="false"
  3438. static="true" final="true" visibility="protected"
  3439. deprecated="not deprecated">
  3440. </field>
  3441. <doc>
  3442. <![CDATA[An implementation of a protocol for accessing filesystems over HTTP.
  3443. The following implementation provides a limited, read-only interface
  3444. to a filesystem over HTTP.
  3445. @see org.apache.hadoop.dfs.ListPathsServlet
  3446. @see org.apache.hadoop.dfs.FileDataServlet]]>
  3447. </doc>
  3448. </class>
  3449. <!-- end class org.apache.hadoop.dfs.HftpFileSystem -->
  3450. <!-- start class org.apache.hadoop.dfs.HsftpFileSystem -->
  3451. <class name="HsftpFileSystem" extends="org.apache.hadoop.dfs.HftpFileSystem"
  3452. abstract="false"
  3453. static="false" final="false" visibility="public"
  3454. deprecated="not deprecated">
  3455. <constructor name="HsftpFileSystem"
  3456. static="false" final="false" visibility="public"
  3457. deprecated="not deprecated">
  3458. </constructor>
  3459. <method name="openConnection" return="java.net.HttpURLConnection"
  3460. abstract="false" native="false" synchronized="false"
  3461. static="false" final="false" visibility="protected"
  3462. deprecated="not deprecated">
  3463. <param name="path" type="java.lang.String"/>
  3464. <param name="query" type="java.lang.String"/>
  3465. <exception name="IOException" type="java.io.IOException"/>
  3466. </method>
  3467. <method name="getUri" return="java.net.URI"
  3468. abstract="false" native="false" synchronized="false"
  3469. static="false" final="false" visibility="public"
  3470. deprecated="not deprecated">
  3471. </method>
  3472. <doc>
  3473. <![CDATA[An implementation of a protocol for accessing filesystems over HTTPS.
  3474. The following implementation provides a limited, read-only interface
  3475. to a filesystem over HTTPS.
  3476. @see org.apache.hadoop.dfs.ListPathsServlet
  3477. @see org.apache.hadoop.dfs.FileDataServlet]]>
  3478. </doc>
  3479. </class>
  3480. <!-- end class org.apache.hadoop.dfs.HsftpFileSystem -->
  3481. <!-- start class org.apache.hadoop.dfs.JspHelper -->
  3482. <class name="JspHelper" extends="java.lang.Object"
  3483. abstract="false"
  3484. static="false" final="false" visibility="public"
  3485. deprecated="not deprecated">
  3486. <constructor name="JspHelper"
  3487. static="false" final="false" visibility="public"
  3488. deprecated="not deprecated">
  3489. </constructor>
  3490. <method name="randomNode" return="org.apache.hadoop.dfs.DatanodeID"
  3491. abstract="false" native="false" synchronized="false"
  3492. static="false" final="false" visibility="public"
  3493. deprecated="not deprecated">
  3494. <exception name="IOException" type="java.io.IOException"/>
  3495. </method>
  3496. <method name="bestNode" return="org.apache.hadoop.dfs.DatanodeInfo"
  3497. abstract="false" native="false" synchronized="false"
  3498. static="false" final="false" visibility="public"
  3499. deprecated="not deprecated">
  3500. <param name="blk" type="org.apache.hadoop.dfs.LocatedBlock"/>
  3501. <exception name="IOException" type="java.io.IOException"/>
  3502. </method>
  3503. <method name="streamBlockInAscii"
  3504. abstract="false" native="false" synchronized="false"
  3505. static="false" final="false" visibility="public"
  3506. deprecated="not deprecated">
  3507. <param name="addr" type="java.net.InetSocketAddress"/>
  3508. <param name="blockId" type="long"/>
  3509. <param name="genStamp" type="long"/>
  3510. <param name="blockSize" type="long"/>
  3511. <param name="offsetIntoBlock" type="long"/>
  3512. <param name="chunkSizeToView" type="long"/>
  3513. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3514. <exception name="IOException" type="java.io.IOException"/>
  3515. </method>
  3516. <method name="DFSNodesStatus"
  3517. abstract="false" native="false" synchronized="false"
  3518. static="false" final="false" visibility="public"
  3519. deprecated="not deprecated">
  3520. <param name="live" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3521. <param name="dead" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3522. </method>
  3523. <method name="addTableHeader"
  3524. abstract="false" native="false" synchronized="false"
  3525. static="false" final="false" visibility="public"
  3526. deprecated="not deprecated">
  3527. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3528. <exception name="IOException" type="java.io.IOException"/>
  3529. </method>
  3530. <method name="addTableRow"
  3531. abstract="false" native="false" synchronized="false"
  3532. static="false" final="false" visibility="public"
  3533. deprecated="not deprecated">
  3534. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3535. <param name="columns" type="java.lang.String[]"/>
  3536. <exception name="IOException" type="java.io.IOException"/>
  3537. </method>
  3538. <method name="addTableRow"
  3539. abstract="false" native="false" synchronized="false"
  3540. static="false" final="false" visibility="public"
  3541. deprecated="not deprecated">
  3542. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3543. <param name="columns" type="java.lang.String[]"/>
  3544. <param name="row" type="int"/>
  3545. <exception name="IOException" type="java.io.IOException"/>
  3546. </method>
  3547. <method name="addTableFooter"
  3548. abstract="false" native="false" synchronized="false"
  3549. static="false" final="false" visibility="public"
  3550. deprecated="not deprecated">
  3551. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3552. <exception name="IOException" type="java.io.IOException"/>
  3553. </method>
  3554. <method name="getSafeModeText" return="java.lang.String"
  3555. abstract="false" native="false" synchronized="false"
  3556. static="false" final="false" visibility="public"
  3557. deprecated="not deprecated">
  3558. </method>
  3559. <method name="getInodeLimitText" return="java.lang.String"
  3560. abstract="false" native="false" synchronized="false"
  3561. static="false" final="false" visibility="public"
  3562. deprecated="not deprecated">
  3563. </method>
  3564. <method name="getUpgradeStatusText" return="java.lang.String"
  3565. abstract="false" native="false" synchronized="false"
  3566. static="false" final="false" visibility="public"
  3567. deprecated="not deprecated">
  3568. </method>
  3569. <method name="sortNodeList"
  3570. abstract="false" native="false" synchronized="false"
  3571. static="false" final="false" visibility="public"
  3572. deprecated="not deprecated">
  3573. <param name="nodes" type="java.util.ArrayList&lt;org.apache.hadoop.dfs.DatanodeDescriptor&gt;"/>
  3574. <param name="field" type="java.lang.String"/>
  3575. <param name="order" type="java.lang.String"/>
  3576. </method>
  3577. <method name="printPathWithLinks"
  3578. abstract="false" native="false" synchronized="false"
  3579. static="true" final="false" visibility="public"
  3580. deprecated="not deprecated">
  3581. <param name="dir" type="java.lang.String"/>
  3582. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3583. <param name="namenodeInfoPort" type="int"/>
  3584. <exception name="IOException" type="java.io.IOException"/>
  3585. </method>
  3586. <method name="printGotoForm"
  3587. abstract="false" native="false" synchronized="false"
  3588. static="true" final="false" visibility="public"
  3589. deprecated="not deprecated">
  3590. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3591. <param name="namenodeInfoPort" type="int"/>
  3592. <param name="file" type="java.lang.String"/>
  3593. <exception name="IOException" type="java.io.IOException"/>
  3594. </method>
  3595. <method name="createTitle"
  3596. abstract="false" native="false" synchronized="false"
  3597. static="true" final="false" visibility="public"
  3598. deprecated="not deprecated">
  3599. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  3600. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  3601. <param name="file" type="java.lang.String"/>
  3602. <exception name="IOException" type="java.io.IOException"/>
  3603. </method>
  3604. <method name="percentageGraph" return="java.lang.String"
  3605. abstract="false" native="false" synchronized="false"
  3606. static="true" final="false" visibility="public"
  3607. deprecated="not deprecated">
  3608. <param name="perc" type="int"/>
  3609. <param name="width" type="int"/>
  3610. <exception name="IOException" type="java.io.IOException"/>
  3611. </method>
  3612. <method name="percentageGraph" return="java.lang.String"
  3613. abstract="false" native="false" synchronized="false"
  3614. static="true" final="false" visibility="public"
  3615. deprecated="not deprecated">
  3616. <param name="perc" type="float"/>
  3617. <param name="width" type="int"/>
  3618. <exception name="IOException" type="java.io.IOException"/>
  3619. </method>
  3620. <field name="WEB_UGI_PROPERTY_NAME" type="java.lang.String"
  3621. transient="false" volatile="false"
  3622. static="true" final="true" visibility="public"
  3623. deprecated="not deprecated">
  3624. </field>
  3625. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  3626. transient="false" volatile="false"
  3627. static="true" final="false" visibility="public"
  3628. deprecated="not deprecated">
  3629. </field>
  3630. <field name="webUGI" type="org.apache.hadoop.security.UnixUserGroupInformation"
  3631. transient="false" volatile="false"
  3632. static="true" final="true" visibility="public"
  3633. deprecated="not deprecated">
  3634. </field>
  3635. </class>
  3636. <!-- end class org.apache.hadoop.dfs.JspHelper -->
  3637. <!-- start class org.apache.hadoop.dfs.LeaseExpiredException -->
  3638. <class name="LeaseExpiredException" extends="java.io.IOException"
  3639. abstract="false"
  3640. static="false" final="false" visibility="public"
  3641. deprecated="not deprecated">
  3642. <constructor name="LeaseExpiredException" type="java.lang.String"
  3643. static="false" final="false" visibility="public"
  3644. deprecated="not deprecated">
  3645. </constructor>
  3646. <doc>
  3647. <![CDATA[The lease that was being used to create this file has expired.]]>
  3648. </doc>
  3649. </class>
  3650. <!-- end class org.apache.hadoop.dfs.LeaseExpiredException -->
  3651. <!-- start class org.apache.hadoop.dfs.ListPathsServlet -->
  3652. <class name="ListPathsServlet" extends="org.apache.hadoop.dfs.DfsServlet"
  3653. abstract="false"
  3654. static="false" final="false" visibility="public"
  3655. deprecated="not deprecated">
  3656. <constructor name="ListPathsServlet"
  3657. static="false" final="false" visibility="public"
  3658. deprecated="not deprecated">
  3659. </constructor>
  3660. <method name="buildRoot" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  3661. abstract="false" native="false" synchronized="false"
  3662. static="false" final="false" visibility="protected"
  3663. deprecated="not deprecated">
  3664. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3665. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  3666. <doc>
  3667. <![CDATA[Build a map from the query string, setting values and defaults.]]>
  3668. </doc>
  3669. </method>
  3670. <method name="doGet"
  3671. abstract="false" native="false" synchronized="false"
  3672. static="false" final="false" visibility="public"
  3673. deprecated="not deprecated">
  3674. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  3675. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  3676. <exception name="ServletException" type="javax.servlet.ServletException"/>
  3677. <exception name="IOException" type="java.io.IOException"/>
  3678. <doc>
  3679. <![CDATA[Service a GET request as described below.
  3680. Request:
  3681. {@code
  3682. GET http://<nn>:<port>/listPaths[/<path>][<?option>[&option]*] HTTP/1.1
  3683. }
  3684. Where <i>option</i> (default) in:
  3685. recursive (&quot;no&quot;)
  3686. filter (&quot;.*&quot;)
  3687. exclude (&quot;\..*\.crc&quot;)
  3688. Response: A flat list of files/directories in the following format:
  3689. {@code
  3690. <listing path="..." recursive="(yes|no)" filter="..."
  3691. time="yyyy-MM-dd hh:mm:ss UTC" version="...">
  3692. <directory path="..." modified="yyyy-MM-dd hh:mm:ss"/>
  3693. <file path="..." modified="yyyy-MM-dd'T'hh:mm:ssZ" blocksize="..."
  3694. replication="..." size="..."/>
  3695. </listing>
  3696. }]]>
  3697. </doc>
  3698. </method>
  3699. <doc>
  3700. <![CDATA[Obtain meta-information about a filesystem.
  3701. @see org.apache.hadoop.dfs.HftpFileSystem]]>
  3702. </doc>
  3703. </class>
  3704. <!-- end class org.apache.hadoop.dfs.ListPathsServlet -->
  3705. <!-- start class org.apache.hadoop.dfs.LocatedBlocks -->
  3706. <class name="LocatedBlocks" extends="java.lang.Object"
  3707. abstract="false"
  3708. static="false" final="false" visibility="public"
  3709. deprecated="not deprecated">
  3710. <implements name="org.apache.hadoop.io.Writable"/>
  3711. <method name="getLocatedBlocks" return="java.util.List&lt;org.apache.hadoop.dfs.LocatedBlock&gt;"
  3712. abstract="false" native="false" synchronized="false"
  3713. static="false" final="false" visibility="public"
  3714. deprecated="not deprecated">
  3715. <doc>
  3716. <![CDATA[Get located blocks.]]>
  3717. </doc>
  3718. </method>
  3719. <method name="get" return="org.apache.hadoop.dfs.LocatedBlock"
  3720. abstract="false" native="false" synchronized="false"
  3721. static="false" final="false" visibility="public"
  3722. deprecated="not deprecated">
  3723. <param name="index" type="int"/>
  3724. <doc>
  3725. <![CDATA[Get located block.]]>
  3726. </doc>
  3727. </method>
  3728. <method name="locatedBlockCount" return="int"
  3729. abstract="false" native="false" synchronized="false"
  3730. static="false" final="false" visibility="public"
  3731. deprecated="not deprecated">
  3732. <doc>
  3733. <![CDATA[Get number of located blocks.]]>
  3734. </doc>
  3735. </method>
  3736. <method name="getFileLength" return="long"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="false" final="false" visibility="public"
  3739. deprecated="not deprecated">
  3740. </method>
  3741. <method name="isUnderConstruction" return="boolean"
  3742. abstract="false" native="false" synchronized="false"
  3743. static="false" final="false" visibility="public"
  3744. deprecated="not deprecated">
  3745. <doc>
  3746. <![CDATA[Return ture if file was under construction when
  3747. this LocatedBlocks was constructed, false otherwise.]]>
  3748. </doc>
  3749. </method>
  3750. <method name="write"
  3751. abstract="false" native="false" synchronized="false"
  3752. static="false" final="false" visibility="public"
  3753. deprecated="not deprecated">
  3754. <param name="out" type="java.io.DataOutput"/>
  3755. <exception name="IOException" type="java.io.IOException"/>
  3756. </method>
  3757. <method name="readFields"
  3758. abstract="false" native="false" synchronized="false"
  3759. static="false" final="false" visibility="public"
  3760. deprecated="not deprecated">
  3761. <param name="in" type="java.io.DataInput"/>
  3762. <exception name="IOException" type="java.io.IOException"/>
  3763. </method>
  3764. <doc>
  3765. <![CDATA[Collection of blocks with their locations and the file length.]]>
  3766. </doc>
  3767. </class>
  3768. <!-- end class org.apache.hadoop.dfs.LocatedBlocks -->
  3769. <!-- start class org.apache.hadoop.dfs.NameNode -->
  3770. <class name="NameNode" extends="java.lang.Object"
  3771. abstract="false"
  3772. static="false" final="false" visibility="public"
  3773. deprecated="not deprecated">
  3774. <implements name="org.apache.hadoop.dfs.ClientProtocol"/>
  3775. <implements name="org.apache.hadoop.dfs.DatanodeProtocol"/>
  3776. <implements name="org.apache.hadoop.dfs.NamenodeProtocol"/>
  3777. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  3778. <constructor name="NameNode" type="org.apache.hadoop.conf.Configuration"
  3779. static="false" final="false" visibility="public"
  3780. deprecated="not deprecated">
  3781. <exception name="IOException" type="java.io.IOException"/>
  3782. <doc>
  3783. <![CDATA[Start NameNode.
  3784. <p>
  3785. The name-node can be started with one of the following startup options:
  3786. <ul>
  3787. <li>{@link FSConstants.StartupOption#REGULAR REGULAR} - normal startup</li>
  3788. <li>{@link FSConstants.StartupOption#FORMAT FORMAT} - format name node</li>
  3789. <li>{@link FSConstants.StartupOption#UPGRADE UPGRADE} - start the cluster
  3790. upgrade and create a snapshot of the current file system state</li>
  3791. <li>{@link FSConstants.StartupOption#ROLLBACK ROLLBACK} - roll the
  3792. cluster back to the previous state</li>
  3793. </ul>
  3794. The option is passed via configuration field:
  3795. <tt>dfs.namenode.startup</tt>
  3796. The conf will be modified to reflect the actual ports on which
  3797. the NameNode is up and running if the user passes the port as
  3798. <code>zero</code> in the conf.
  3799. @param conf confirguration
  3800. @throws IOException]]>
  3801. </doc>
  3802. </constructor>
  3803. <constructor name="NameNode" type="java.lang.String, org.apache.hadoop.conf.Configuration"
  3804. static="false" final="false" visibility="public"
  3805. deprecated="not deprecated">
  3806. <exception name="IOException" type="java.io.IOException"/>
  3807. <doc>
  3808. <![CDATA[Create a NameNode at the specified location and start it.
  3809. The conf will be modified to reflect the actual ports on which
  3810. the NameNode is up and running if the user passes the port as
  3811. <code>zero</code>.]]>
  3812. </doc>
  3813. </constructor>
  3814. <method name="getProtocolVersion" return="long"
  3815. abstract="false" native="false" synchronized="false"
  3816. static="false" final="false" visibility="public"
  3817. deprecated="not deprecated">
  3818. <param name="protocol" type="java.lang.String"/>
  3819. <param name="clientVersion" type="long"/>
  3820. <exception name="IOException" type="java.io.IOException"/>
  3821. </method>
  3822. <method name="format"
  3823. abstract="false" native="false" synchronized="false"
  3824. static="true" final="false" visibility="public"
  3825. deprecated="not deprecated">
  3826. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3827. <exception name="IOException" type="java.io.IOException"/>
  3828. <doc>
  3829. <![CDATA[Format a new filesystem. Destroys any filesystem that may already
  3830. exist at this location.]]>
  3831. </doc>
  3832. </method>
  3833. <method name="getNameNodeMetrics" return="org.apache.hadoop.dfs.NameNodeMetrics"
  3834. abstract="false" native="false" synchronized="false"
  3835. static="true" final="false" visibility="public"
  3836. deprecated="not deprecated">
  3837. </method>
  3838. <method name="join"
  3839. abstract="false" native="false" synchronized="false"
  3840. static="false" final="false" visibility="public"
  3841. deprecated="not deprecated">
  3842. <doc>
  3843. <![CDATA[Wait for service to finish.
  3844. (Normally, it runs forever.)]]>
  3845. </doc>
  3846. </method>
  3847. <method name="stop"
  3848. abstract="false" native="false" synchronized="false"
  3849. static="false" final="false" visibility="public"
  3850. deprecated="not deprecated">
  3851. <doc>
  3852. <![CDATA[Stop all NameNode threads and wait for all to finish.]]>
  3853. </doc>
  3854. </method>
  3855. <method name="getBlocks" return="org.apache.hadoop.dfs.BlocksWithLocations"
  3856. abstract="false" native="false" synchronized="false"
  3857. static="false" final="false" visibility="public"
  3858. deprecated="not deprecated">
  3859. <param name="datanode" type="org.apache.hadoop.dfs.DatanodeInfo"/>
  3860. <param name="size" type="long"/>
  3861. <exception name="IOException" type="java.io.IOException"/>
  3862. <doc>
  3863. <![CDATA[return a list of blocks & their locations on <code>datanode</code> whose
  3864. total size is <code>size</code>
  3865. @param datanode on which blocks are located
  3866. @param size total size of blocks]]>
  3867. </doc>
  3868. </method>
  3869. <method name="getBlockLocations" return="org.apache.hadoop.dfs.LocatedBlocks"
  3870. abstract="false" native="false" synchronized="false"
  3871. static="false" final="false" visibility="public"
  3872. deprecated="not deprecated">
  3873. <param name="src" type="java.lang.String"/>
  3874. <param name="offset" type="long"/>
  3875. <param name="length" type="long"/>
  3876. <exception name="IOException" type="java.io.IOException"/>
  3877. <doc>
  3878. <![CDATA[{@inheritDoc}]]>
  3879. </doc>
  3880. </method>
  3881. <method name="create"
  3882. abstract="false" native="false" synchronized="false"
  3883. static="false" final="false" visibility="public"
  3884. deprecated="not deprecated">
  3885. <param name="src" type="java.lang.String"/>
  3886. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3887. <param name="clientName" type="java.lang.String"/>
  3888. <param name="overwrite" type="boolean"/>
  3889. <param name="replication" type="short"/>
  3890. <param name="blockSize" type="long"/>
  3891. <exception name="IOException" type="java.io.IOException"/>
  3892. <doc>
  3893. <![CDATA[{@inheritDoc}]]>
  3894. </doc>
  3895. </method>
  3896. <method name="setReplication" return="boolean"
  3897. abstract="false" native="false" synchronized="false"
  3898. static="false" final="false" visibility="public"
  3899. deprecated="not deprecated">
  3900. <param name="src" type="java.lang.String"/>
  3901. <param name="replication" type="short"/>
  3902. <exception name="IOException" type="java.io.IOException"/>
  3903. <doc>
  3904. <![CDATA[{@inheritDoc}]]>
  3905. </doc>
  3906. </method>
  3907. <method name="setPermission"
  3908. abstract="false" native="false" synchronized="false"
  3909. static="false" final="false" visibility="public"
  3910. deprecated="not deprecated">
  3911. <param name="src" type="java.lang.String"/>
  3912. <param name="permissions" type="org.apache.hadoop.fs.permission.FsPermission"/>
  3913. <exception name="IOException" type="java.io.IOException"/>
  3914. <doc>
  3915. <![CDATA[{@inheritDoc}]]>
  3916. </doc>
  3917. </method>
  3918. <method name="setOwner"
  3919. abstract="false" native="false" synchronized="false"
  3920. static="false" final="false" visibility="public"
  3921. deprecated="not deprecated">
  3922. <param name="src" type="java.lang.String"/>
  3923. <param name="username" type="java.lang.String"/>
  3924. <param name="groupname" type="java.lang.String"/>
  3925. <exception name="IOException" type="java.io.IOException"/>
  3926. <doc>
  3927. <![CDATA[{@inheritDoc}]]>
  3928. </doc>
  3929. </method>
  3930. <method name="addBlock" return="org.apache.hadoop.dfs.LocatedBlock"
  3931. abstract="false" native="false" synchronized="false"
  3932. static="false" final="false" visibility="public"
  3933. deprecated="not deprecated">
  3934. <param name="src" type="java.lang.String"/>
  3935. <param name="clientName" type="java.lang.String"/>
  3936. <exception name="IOException" type="java.io.IOException"/>
  3937. </method>
  3938. <method name="abandonBlock"
  3939. abstract="false" native="false" synchronized="false"
  3940. static="false" final="false" visibility="public"
  3941. deprecated="not deprecated">
  3942. <param name="b" type="org.apache.hadoop.dfs.Block"/>
  3943. <param name="src" type="java.lang.String"/>
  3944. <param name="holder" type="java.lang.String"/>
  3945. <exception name="IOException" type="java.io.IOException"/>
  3946. <doc>
  3947. <![CDATA[The client needs to give up on the block.]]>
  3948. </doc>
  3949. </method>
  3950. <method name="complete" return="boolean"
  3951. abstract="false" native="false" synchronized="false"
  3952. static="false" final="false" visibility="public"
  3953. deprecated="not deprecated">
  3954. <param name="src" type="java.lang.String"/>
  3955. <param name="clientName" type="java.lang.String"/>
  3956. <exception name="IOException" type="java.io.IOException"/>
  3957. <doc>
  3958. <![CDATA[{@inheritDoc}]]>
  3959. </doc>
  3960. </method>
  3961. <method name="reportBadBlocks"
  3962. abstract="false" native="false" synchronized="false"
  3963. static="false" final="false" visibility="public"
  3964. deprecated="not deprecated">
  3965. <param name="blocks" type="org.apache.hadoop.dfs.LocatedBlock[]"/>
  3966. <exception name="IOException" type="java.io.IOException"/>
  3967. <doc>
  3968. <![CDATA[The client has detected an error on the specified located blocks
  3969. and is reporting them to the server. For now, the namenode will
  3970. mark the block as corrupt. In the future we might
  3971. check the blocks are actually corrupt.]]>
  3972. </doc>
  3973. </method>
  3974. <method name="nextGenerationStamp" return="long"
  3975. abstract="false" native="false" synchronized="false"
  3976. static="false" final="false" visibility="public"
  3977. deprecated="not deprecated">
  3978. <param name="block" type="org.apache.hadoop.dfs.Block"/>
  3979. <exception name="IOException" type="java.io.IOException"/>
  3980. <doc>
  3981. <![CDATA[{@inheritDoc}]]>
  3982. </doc>
  3983. </method>
  3984. <method name="commitBlockSynchronization"
  3985. abstract="false" native="false" synchronized="false"
  3986. static="false" final="false" visibility="public"
  3987. deprecated="not deprecated">
  3988. <param name="block" type="org.apache.hadoop.dfs.Block"/>
  3989. <param name="newgenerationstamp" type="long"/>
  3990. <param name="newlength" type="long"/>
  3991. <param name="closeFile" type="boolean"/>
  3992. <param name="deleteblock" type="boolean"/>
  3993. <param name="newtargets" type="org.apache.hadoop.dfs.DatanodeID[]"/>
  3994. <exception name="IOException" type="java.io.IOException"/>
  3995. <doc>
  3996. <![CDATA[{@inheritDoc}]]>
  3997. </doc>
  3998. </method>
  3999. <method name="getPreferredBlockSize" return="long"
  4000. abstract="false" native="false" synchronized="false"
  4001. static="false" final="false" visibility="public"
  4002. deprecated="not deprecated">
  4003. <param name="filename" type="java.lang.String"/>
  4004. <exception name="IOException" type="java.io.IOException"/>
  4005. </method>
  4006. <method name="rename" return="boolean"
  4007. abstract="false" native="false" synchronized="false"
  4008. static="false" final="false" visibility="public"
  4009. deprecated="not deprecated">
  4010. <param name="src" type="java.lang.String"/>
  4011. <param name="dst" type="java.lang.String"/>
  4012. <exception name="IOException" type="java.io.IOException"/>
  4013. </method>
  4014. <method name="delete" return="boolean"
  4015. abstract="false" native="false" synchronized="false"
  4016. static="false" final="false" visibility="public"
  4017. deprecated="not deprecated">
  4018. <param name="src" type="java.lang.String"/>
  4019. <exception name="IOException" type="java.io.IOException"/>
  4020. </method>
  4021. <method name="delete" return="boolean"
  4022. abstract="false" native="false" synchronized="false"
  4023. static="false" final="false" visibility="public"
  4024. deprecated="not deprecated">
  4025. <param name="src" type="java.lang.String"/>
  4026. <param name="recursive" type="boolean"/>
  4027. <exception name="IOException" type="java.io.IOException"/>
  4028. <doc>
  4029. <![CDATA[{@inheritDoc}]]>
  4030. </doc>
  4031. </method>
  4032. <method name="mkdirs" return="boolean"
  4033. abstract="false" native="false" synchronized="false"
  4034. static="false" final="false" visibility="public"
  4035. deprecated="not deprecated">
  4036. <param name="src" type="java.lang.String"/>
  4037. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  4038. <exception name="IOException" type="java.io.IOException"/>
  4039. <doc>
  4040. <![CDATA[{@inheritDoc}]]>
  4041. </doc>
  4042. </method>
  4043. <method name="renewLease"
  4044. abstract="false" native="false" synchronized="false"
  4045. static="false" final="false" visibility="public"
  4046. deprecated="not deprecated">
  4047. <param name="clientName" type="java.lang.String"/>
  4048. <exception name="IOException" type="java.io.IOException"/>
  4049. </method>
  4050. <method name="getListing" return="org.apache.hadoop.dfs.DFSFileInfo[]"
  4051. abstract="false" native="false" synchronized="false"
  4052. static="false" final="false" visibility="public"
  4053. deprecated="not deprecated">
  4054. <param name="src" type="java.lang.String"/>
  4055. <exception name="IOException" type="java.io.IOException"/>
  4056. </method>
  4057. <method name="getFileInfo" return="org.apache.hadoop.dfs.DFSFileInfo"
  4058. abstract="false" native="false" synchronized="false"
  4059. static="false" final="false" visibility="public"
  4060. deprecated="not deprecated">
  4061. <param name="src" type="java.lang.String"/>
  4062. <exception name="IOException" type="java.io.IOException"/>
  4063. <doc>
  4064. <![CDATA[Get the file info for a specific file.
  4065. @param src The string representation of the path to the file
  4066. @throws IOException if permission to access file is denied by the system
  4067. @return object containing information regarding the file
  4068. or null if file not found]]>
  4069. </doc>
  4070. </method>
  4071. <method name="getStats" return="long[]"
  4072. abstract="false" native="false" synchronized="false"
  4073. static="false" final="false" visibility="public"
  4074. deprecated="not deprecated">
  4075. <exception name="IOException" type="java.io.IOException"/>
  4076. <doc>
  4077. <![CDATA[@inheritDoc]]>
  4078. </doc>
  4079. </method>
  4080. <method name="getDatanodeReport" return="org.apache.hadoop.dfs.DatanodeInfo[]"
  4081. abstract="false" native="false" synchronized="false"
  4082. static="false" final="false" visibility="public"
  4083. deprecated="not deprecated">
  4084. <param name="type" type="org.apache.hadoop.dfs.FSConstants.DatanodeReportType"/>
  4085. <exception name="IOException" type="java.io.IOException"/>
  4086. </method>
  4087. <method name="setSafeMode" return="boolean"
  4088. abstract="false" native="false" synchronized="false"
  4089. static="false" final="false" visibility="public"
  4090. deprecated="not deprecated">
  4091. <param name="action" type="org.apache.hadoop.dfs.FSConstants.SafeModeAction"/>
  4092. <exception name="IOException" type="java.io.IOException"/>
  4093. <doc>
  4094. <![CDATA[@inheritDoc]]>
  4095. </doc>
  4096. </method>
  4097. <method name="isInSafeMode" return="boolean"
  4098. abstract="false" native="false" synchronized="false"
  4099. static="false" final="false" visibility="public"
  4100. deprecated="not deprecated">
  4101. <doc>
  4102. <![CDATA[Is the cluster currently in safe mode?]]>
  4103. </doc>
  4104. </method>
  4105. <method name="refreshNodes"
  4106. abstract="false" native="false" synchronized="false"
  4107. static="false" final="false" visibility="public"
  4108. deprecated="not deprecated">
  4109. <exception name="IOException" type="java.io.IOException"/>
  4110. </method>
  4111. <method name="getEditLogSize" return="long"
  4112. abstract="false" native="false" synchronized="false"
  4113. static="false" final="false" visibility="public"
  4114. deprecated="not deprecated">
  4115. <exception name="IOException" type="java.io.IOException"/>
  4116. <doc>
  4117. <![CDATA[Returns the size of the current edit log.]]>
  4118. </doc>
  4119. </method>
  4120. <method name="rollEditLog" return="org.apache.hadoop.dfs.CheckpointSignature"
  4121. abstract="false" native="false" synchronized="false"
  4122. static="false" final="false" visibility="public"
  4123. deprecated="not deprecated">
  4124. <exception name="IOException" type="java.io.IOException"/>
  4125. <doc>
  4126. <![CDATA[Roll the edit log.]]>
  4127. </doc>
  4128. </method>
  4129. <method name="rollFsImage"
  4130. abstract="false" native="false" synchronized="false"
  4131. static="false" final="false" visibility="public"
  4132. deprecated="not deprecated">
  4133. <exception name="IOException" type="java.io.IOException"/>
  4134. <doc>
  4135. <![CDATA[Roll the image]]>
  4136. </doc>
  4137. </method>
  4138. <method name="finalizeUpgrade"
  4139. abstract="false" native="false" synchronized="false"
  4140. static="false" final="false" visibility="public"
  4141. deprecated="not deprecated">
  4142. <exception name="IOException" type="java.io.IOException"/>
  4143. </method>
  4144. <method name="distributedUpgradeProgress" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  4145. abstract="false" native="false" synchronized="false"
  4146. static="false" final="false" visibility="public"
  4147. deprecated="not deprecated">
  4148. <param name="action" type="org.apache.hadoop.dfs.FSConstants.UpgradeAction"/>
  4149. <exception name="IOException" type="java.io.IOException"/>
  4150. </method>
  4151. <method name="metaSave"
  4152. abstract="false" native="false" synchronized="false"
  4153. static="false" final="false" visibility="public"
  4154. deprecated="not deprecated">
  4155. <param name="filename" type="java.lang.String"/>
  4156. <exception name="IOException" type="java.io.IOException"/>
  4157. <doc>
  4158. <![CDATA[Dumps namenode state into specified file]]>
  4159. </doc>
  4160. </method>
  4161. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  4162. abstract="false" native="false" synchronized="false"
  4163. static="false" final="false" visibility="public"
  4164. deprecated="not deprecated">
  4165. <param name="path" type="java.lang.String"/>
  4166. <exception name="IOException" type="java.io.IOException"/>
  4167. <doc>
  4168. <![CDATA[{@inheritDoc}]]>
  4169. </doc>
  4170. </method>
  4171. <method name="setQuota"
  4172. abstract="false" native="false" synchronized="false"
  4173. static="false" final="false" visibility="public"
  4174. deprecated="not deprecated">
  4175. <param name="path" type="java.lang.String"/>
  4176. <param name="quota" type="long"/>
  4177. <exception name="IOException" type="java.io.IOException"/>
  4178. <doc>
  4179. <![CDATA[{@inheritDoc}]]>
  4180. </doc>
  4181. </method>
  4182. <method name="clearQuota"
  4183. abstract="false" native="false" synchronized="false"
  4184. static="false" final="false" visibility="public"
  4185. deprecated="not deprecated">
  4186. <param name="path" type="java.lang.String"/>
  4187. <exception name="IOException" type="java.io.IOException"/>
  4188. <doc>
  4189. <![CDATA[{@inheritDoc}]]>
  4190. </doc>
  4191. </method>
  4192. <method name="fsync"
  4193. abstract="false" native="false" synchronized="false"
  4194. static="false" final="false" visibility="public"
  4195. deprecated="not deprecated">
  4196. <param name="src" type="java.lang.String"/>
  4197. <param name="clientName" type="java.lang.String"/>
  4198. <exception name="IOException" type="java.io.IOException"/>
  4199. <doc>
  4200. <![CDATA[{@inheritDoc}]]>
  4201. </doc>
  4202. </method>
  4203. <method name="register" return="org.apache.hadoop.dfs.DatanodeRegistration"
  4204. abstract="false" native="false" synchronized="false"
  4205. static="false" final="false" visibility="public"
  4206. deprecated="not deprecated">
  4207. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4208. <exception name="IOException" type="java.io.IOException"/>
  4209. </method>
  4210. <method name="sendHeartbeat" return="org.apache.hadoop.dfs.DatanodeCommand"
  4211. abstract="false" native="false" synchronized="false"
  4212. static="false" final="false" visibility="public"
  4213. deprecated="not deprecated">
  4214. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4215. <param name="capacity" type="long"/>
  4216. <param name="dfsUsed" type="long"/>
  4217. <param name="remaining" type="long"/>
  4218. <param name="xmitsInProgress" type="int"/>
  4219. <param name="xceiverCount" type="int"/>
  4220. <exception name="IOException" type="java.io.IOException"/>
  4221. <doc>
  4222. <![CDATA[Data node notify the name node that it is alive
  4223. Return a block-oriented command for the datanode to execute.
  4224. This will be either a transfer or a delete operation.]]>
  4225. </doc>
  4226. </method>
  4227. <method name="blockReport" return="org.apache.hadoop.dfs.DatanodeCommand"
  4228. abstract="false" native="false" synchronized="false"
  4229. static="false" final="false" visibility="public"
  4230. deprecated="not deprecated">
  4231. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4232. <param name="blocks" type="long[]"/>
  4233. <exception name="IOException" type="java.io.IOException"/>
  4234. </method>
  4235. <method name="blockReceived"
  4236. abstract="false" native="false" synchronized="false"
  4237. static="false" final="false" visibility="public"
  4238. deprecated="not deprecated">
  4239. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4240. <param name="blocks" type="org.apache.hadoop.dfs.Block[]"/>
  4241. <param name="delHints" type="java.lang.String[]"/>
  4242. <exception name="IOException" type="java.io.IOException"/>
  4243. </method>
  4244. <method name="errorReport"
  4245. abstract="false" native="false" synchronized="false"
  4246. static="false" final="false" visibility="public"
  4247. deprecated="not deprecated">
  4248. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4249. <param name="errorCode" type="int"/>
  4250. <param name="msg" type="java.lang.String"/>
  4251. <exception name="IOException" type="java.io.IOException"/>
  4252. </method>
  4253. <method name="versionRequest" return="org.apache.hadoop.dfs.NamespaceInfo"
  4254. abstract="false" native="false" synchronized="false"
  4255. static="false" final="false" visibility="public"
  4256. deprecated="not deprecated">
  4257. <exception name="IOException" type="java.io.IOException"/>
  4258. </method>
  4259. <method name="processUpgradeCommand" return="org.apache.hadoop.dfs.UpgradeCommand"
  4260. abstract="false" native="false" synchronized="false"
  4261. static="false" final="false" visibility="public"
  4262. deprecated="not deprecated">
  4263. <param name="comm" type="org.apache.hadoop.dfs.UpgradeCommand"/>
  4264. <exception name="IOException" type="java.io.IOException"/>
  4265. </method>
  4266. <method name="verifyRequest"
  4267. abstract="false" native="false" synchronized="false"
  4268. static="false" final="false" visibility="public"
  4269. deprecated="not deprecated">
  4270. <param name="nodeReg" type="org.apache.hadoop.dfs.DatanodeRegistration"/>
  4271. <exception name="IOException" type="java.io.IOException"/>
  4272. <doc>
  4273. <![CDATA[Verify request.
  4274. Verifies correctness of the datanode version, registration ID, and
  4275. if the datanode does not need to be shutdown.
  4276. @param nodeReg data node registration
  4277. @throws IOException]]>
  4278. </doc>
  4279. </method>
  4280. <method name="verifyVersion"
  4281. abstract="false" native="false" synchronized="false"
  4282. static="false" final="false" visibility="public"
  4283. deprecated="not deprecated">
  4284. <param name="version" type="int"/>
  4285. <exception name="IOException" type="java.io.IOException"/>
  4286. <doc>
  4287. <![CDATA[Verify version.
  4288. @param version
  4289. @throws IOException]]>
  4290. </doc>
  4291. </method>
  4292. <method name="getFsImageName" return="java.io.File"
  4293. abstract="false" native="false" synchronized="false"
  4294. static="false" final="false" visibility="public"
  4295. deprecated="not deprecated">
  4296. <exception name="IOException" type="java.io.IOException"/>
  4297. <doc>
  4298. <![CDATA[Returns the name of the fsImage file]]>
  4299. </doc>
  4300. </method>
  4301. <method name="getFsImageNameCheckpoint" return="java.io.File[]"
  4302. abstract="false" native="false" synchronized="false"
  4303. static="false" final="false" visibility="public"
  4304. deprecated="not deprecated">
  4305. <exception name="IOException" type="java.io.IOException"/>
  4306. <doc>
  4307. <![CDATA[Returns the name of the fsImage file uploaded by periodic
  4308. checkpointing]]>
  4309. </doc>
  4310. </method>
  4311. <method name="getNameNodeAddress" return="java.net.InetSocketAddress"
  4312. abstract="false" native="false" synchronized="false"
  4313. static="false" final="false" visibility="public"
  4314. deprecated="not deprecated">
  4315. <doc>
  4316. <![CDATA[Returns the address on which the NameNodes is listening to.
  4317. @return the address on which the NameNodes is listening to.]]>
  4318. </doc>
  4319. </method>
  4320. <method name="main"
  4321. abstract="false" native="false" synchronized="false"
  4322. static="true" final="false" visibility="public"
  4323. deprecated="not deprecated">
  4324. <param name="argv" type="java.lang.String[]"/>
  4325. <exception name="Exception" type="java.lang.Exception"/>
  4326. </method>
  4327. <field name="DEFAULT_PORT" type="int"
  4328. transient="false" volatile="false"
  4329. static="true" final="true" visibility="public"
  4330. deprecated="not deprecated">
  4331. </field>
  4332. <field name="LOG" type="org.apache.commons.logging.Log"
  4333. transient="false" volatile="false"
  4334. static="true" final="true" visibility="public"
  4335. deprecated="not deprecated">
  4336. </field>
  4337. <field name="stateChangeLog" type="org.apache.commons.logging.Log"
  4338. transient="false" volatile="false"
  4339. static="true" final="true" visibility="public"
  4340. deprecated="not deprecated">
  4341. </field>
  4342. <doc>
  4343. <![CDATA[NameNode serves as both directory namespace manager and
  4344. "inode table" for the Hadoop DFS. There is a single NameNode
  4345. running in any DFS deployment. (Well, except when there
  4346. is a second backup/failover NameNode.)
  4347. The NameNode controls two critical tables:
  4348. 1) filename->blocksequence (namespace)
  4349. 2) block->machinelist ("inodes")
  4350. The first table is stored on disk and is very precious.
  4351. The second table is rebuilt every time the NameNode comes
  4352. up.
  4353. 'NameNode' refers to both this class as well as the 'NameNode server'.
  4354. The 'FSNamesystem' class actually performs most of the filesystem
  4355. management. The majority of the 'NameNode' class itself is concerned
  4356. with exposing the IPC interface to the outside world, plus some
  4357. configuration management.
  4358. NameNode implements the ClientProtocol interface, which allows
  4359. clients to ask for DFS services. ClientProtocol is not
  4360. designed for direct use by authors of DFS client code. End-users
  4361. should instead use the org.apache.nutch.hadoop.fs.FileSystem class.
  4362. NameNode also implements the DatanodeProtocol interface, used by
  4363. DataNode programs that actually store DFS data blocks. These
  4364. methods are invoked repeatedly and automatically by all the
  4365. DataNodes in a DFS deployment.
  4366. NameNode also implements the NamenodeProtocol interface, used by
  4367. secondary namenodes or rebalancing processes to get partial namenode's
  4368. state, for example partial blocksMap etc.]]>
  4369. </doc>
  4370. </class>
  4371. <!-- end class org.apache.hadoop.dfs.NameNode -->
  4372. <!-- start class org.apache.hadoop.dfs.NamenodeFsck -->
  4373. <class name="NamenodeFsck" extends="java.lang.Object"
  4374. abstract="false"
  4375. static="false" final="false" visibility="public"
  4376. deprecated="not deprecated">
  4377. <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"
  4378. static="false" final="false" visibility="public"
  4379. deprecated="not deprecated">
  4380. <exception name="IOException" type="java.io.IOException"/>
  4381. <doc>
  4382. <![CDATA[Filesystem checker.
  4383. @param conf configuration (namenode config)
  4384. @param nn namenode that this fsck is going to use
  4385. @param pmap key=value[] map that is passed to the http servlet as url parameters
  4386. @param response the object into which this servelet writes the url contents
  4387. @throws IOException]]>
  4388. </doc>
  4389. </constructor>
  4390. <method name="fsck"
  4391. abstract="false" native="false" synchronized="false"
  4392. static="false" final="false" visibility="public"
  4393. deprecated="not deprecated">
  4394. <exception name="IOException" type="java.io.IOException"/>
  4395. <doc>
  4396. <![CDATA[Check files on DFS, starting from the indicated path.
  4397. @throws Exception]]>
  4398. </doc>
  4399. </method>
  4400. <method name="run" return="int"
  4401. abstract="false" native="false" synchronized="false"
  4402. static="false" final="false" visibility="public"
  4403. deprecated="not deprecated">
  4404. <param name="args" type="java.lang.String[]"/>
  4405. <exception name="Exception" type="java.lang.Exception"/>
  4406. <doc>
  4407. <![CDATA[@param args]]>
  4408. </doc>
  4409. </method>
  4410. <field name="LOG" type="org.apache.commons.logging.Log"
  4411. transient="false" volatile="false"
  4412. static="true" final="true" visibility="public"
  4413. deprecated="not deprecated">
  4414. </field>
  4415. <field name="FIXING_NONE" type="int"
  4416. transient="false" volatile="false"
  4417. static="true" final="true" visibility="public"
  4418. deprecated="not deprecated">
  4419. <doc>
  4420. <![CDATA[Don't attempt any fixing .]]>
  4421. </doc>
  4422. </field>
  4423. <field name="FIXING_MOVE" type="int"
  4424. transient="false" volatile="false"
  4425. static="true" final="true" visibility="public"
  4426. deprecated="not deprecated">
  4427. <doc>
  4428. <![CDATA[Move corrupted files to /lost+found .]]>
  4429. </doc>
  4430. </field>
  4431. <field name="FIXING_DELETE" type="int"
  4432. transient="false" volatile="false"
  4433. static="true" final="true" visibility="public"
  4434. deprecated="not deprecated">
  4435. <doc>
  4436. <![CDATA[Delete corrupted files.]]>
  4437. </doc>
  4438. </field>
  4439. <doc>
  4440. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  4441. sub-optimal conditions.
  4442. <p>The tool scans all files and directories, starting from an indicated
  4443. root path. The following abnormal conditions are detected and handled:</p>
  4444. <ul>
  4445. <li>files with blocks that are completely missing from all datanodes.<br/>
  4446. In this case the tool can perform one of the following actions:
  4447. <ul>
  4448. <li>none ({@link #FIXING_NONE})</li>
  4449. <li>move corrupted files to /lost+found directory on DFS
  4450. ({@link #FIXING_MOVE}). Remaining data blocks are saved as a
  4451. block chains, representing longest consecutive series of valid blocks.</li>
  4452. <li>delete corrupted files ({@link #FIXING_DELETE})</li>
  4453. </ul>
  4454. </li>
  4455. <li>detect files with under-replicated or over-replicated blocks</li>
  4456. </ul>
  4457. Additionally, the tool collects a detailed overall DFS statistics, and
  4458. optionally can print detailed statistics on block locations and replication
  4459. factors of each file.]]>
  4460. </doc>
  4461. </class>
  4462. <!-- end class org.apache.hadoop.dfs.NamenodeFsck -->
  4463. <!-- start class org.apache.hadoop.dfs.NamenodeFsck.FsckResult -->
  4464. <class name="NamenodeFsck.FsckResult" extends="java.lang.Object"
  4465. abstract="false"
  4466. static="true" final="false" visibility="public"
  4467. deprecated="not deprecated">
  4468. <constructor name="NamenodeFsck.FsckResult"
  4469. static="false" final="false" visibility="public"
  4470. deprecated="not deprecated">
  4471. </constructor>
  4472. <method name="isHealthy" return="boolean"
  4473. abstract="false" native="false" synchronized="false"
  4474. static="false" final="false" visibility="public"
  4475. deprecated="not deprecated">
  4476. <doc>
  4477. <![CDATA[DFS is considered healthy if there are no missing blocks.]]>
  4478. </doc>
  4479. </method>
  4480. <method name="addMissing"
  4481. abstract="false" native="false" synchronized="false"
  4482. static="false" final="false" visibility="public"
  4483. deprecated="not deprecated">
  4484. <param name="id" type="java.lang.String"/>
  4485. <param name="size" type="long"/>
  4486. <doc>
  4487. <![CDATA[Add a missing block name, plus its size.]]>
  4488. </doc>
  4489. </method>
  4490. <method name="getMissingIds" return="java.util.ArrayList&lt;java.lang.String&gt;"
  4491. abstract="false" native="false" synchronized="false"
  4492. static="false" final="false" visibility="public"
  4493. deprecated="not deprecated">
  4494. <doc>
  4495. <![CDATA[Return a list of missing block names (as list of Strings).]]>
  4496. </doc>
  4497. </method>
  4498. <method name="getMissingSize" return="long"
  4499. abstract="false" native="false" synchronized="false"
  4500. static="false" final="false" visibility="public"
  4501. deprecated="not deprecated">
  4502. <doc>
  4503. <![CDATA[Return total size of missing data, in bytes.]]>
  4504. </doc>
  4505. </method>
  4506. <method name="setMissingSize"
  4507. abstract="false" native="false" synchronized="false"
  4508. static="false" final="false" visibility="public"
  4509. deprecated="not deprecated">
  4510. <param name="missingSize" type="long"/>
  4511. </method>
  4512. <method name="getExcessiveReplicas" return="long"
  4513. abstract="false" native="false" synchronized="false"
  4514. static="false" final="false" visibility="public"
  4515. deprecated="not deprecated">
  4516. <doc>
  4517. <![CDATA[Return the number of over-replicated blocks.]]>
  4518. </doc>
  4519. </method>
  4520. <method name="setExcessiveReplicas"
  4521. abstract="false" native="false" synchronized="false"
  4522. static="false" final="false" visibility="public"
  4523. deprecated="not deprecated">
  4524. <param name="overReplicatedBlocks" type="long"/>
  4525. </method>
  4526. <method name="getReplicationFactor" return="float"
  4527. abstract="false" native="false" synchronized="false"
  4528. static="false" final="false" visibility="public"
  4529. deprecated="not deprecated">
  4530. <doc>
  4531. <![CDATA[Return the actual replication factor.]]>
  4532. </doc>
  4533. </method>
  4534. <method name="getMissingReplicas" return="long"
  4535. abstract="false" native="false" synchronized="false"
  4536. static="false" final="false" visibility="public"
  4537. deprecated="not deprecated">
  4538. <doc>
  4539. <![CDATA[Return the number of under-replicated blocks. Note: missing blocks are not counted here.]]>
  4540. </doc>
  4541. </method>
  4542. <method name="setMissingReplicas"
  4543. abstract="false" native="false" synchronized="false"
  4544. static="false" final="false" visibility="public"
  4545. deprecated="not deprecated">
  4546. <param name="underReplicatedBlocks" type="long"/>
  4547. </method>
  4548. <method name="getTotalDirs" return="long"
  4549. abstract="false" native="false" synchronized="false"
  4550. static="false" final="false" visibility="public"
  4551. deprecated="not deprecated">
  4552. <doc>
  4553. <![CDATA[Return total number of directories encountered during this scan.]]>
  4554. </doc>
  4555. </method>
  4556. <method name="setTotalDirs"
  4557. abstract="false" native="false" synchronized="false"
  4558. static="false" final="false" visibility="public"
  4559. deprecated="not deprecated">
  4560. <param name="totalDirs" type="long"/>
  4561. </method>
  4562. <method name="getTotalFiles" return="long"
  4563. abstract="false" native="false" synchronized="false"
  4564. static="false" final="false" visibility="public"
  4565. deprecated="not deprecated">
  4566. <doc>
  4567. <![CDATA[Return total number of files encountered during this scan.]]>
  4568. </doc>
  4569. </method>
  4570. <method name="setTotalFiles"
  4571. abstract="false" native="false" synchronized="false"
  4572. static="false" final="false" visibility="public"
  4573. deprecated="not deprecated">
  4574. <param name="totalFiles" type="long"/>
  4575. </method>
  4576. <method name="getTotalOpenFiles" return="long"
  4577. abstract="false" native="false" synchronized="false"
  4578. static="false" final="false" visibility="public"
  4579. deprecated="not deprecated">
  4580. <doc>
  4581. <![CDATA[Return total number of files opened for write encountered during this scan.]]>
  4582. </doc>
  4583. </method>
  4584. <method name="setTotalOpenFiles"
  4585. abstract="false" native="false" synchronized="false"
  4586. static="false" final="false" visibility="public"
  4587. deprecated="not deprecated">
  4588. <param name="totalOpenFiles" type="long"/>
  4589. <doc>
  4590. <![CDATA[Set total number of open files encountered during this scan.]]>
  4591. </doc>
  4592. </method>
  4593. <method name="getTotalSize" return="long"
  4594. abstract="false" native="false" synchronized="false"
  4595. static="false" final="false" visibility="public"
  4596. deprecated="not deprecated">
  4597. <doc>
  4598. <![CDATA[Return total size of scanned data, in bytes.]]>
  4599. </doc>
  4600. </method>
  4601. <method name="setTotalSize"
  4602. abstract="false" native="false" synchronized="false"
  4603. static="false" final="false" visibility="public"
  4604. deprecated="not deprecated">
  4605. <param name="totalSize" type="long"/>
  4606. </method>
  4607. <method name="getTotalOpenFilesSize" return="long"
  4608. abstract="false" native="false" synchronized="false"
  4609. static="false" final="false" visibility="public"
  4610. deprecated="not deprecated">
  4611. <doc>
  4612. <![CDATA[Return total size of open files data, in bytes.]]>
  4613. </doc>
  4614. </method>
  4615. <method name="setTotalOpenFilesSize"
  4616. abstract="false" native="false" synchronized="false"
  4617. static="false" final="false" visibility="public"
  4618. deprecated="not deprecated">
  4619. <param name="totalOpenFilesSize" type="long"/>
  4620. </method>
  4621. <method name="getReplication" return="int"
  4622. abstract="false" native="false" synchronized="false"
  4623. static="false" final="false" visibility="public"
  4624. deprecated="not deprecated">
  4625. <doc>
  4626. <![CDATA[Return the intended replication factor, against which the over/under-
  4627. replicated blocks are counted. Note: this values comes from the current
  4628. Configuration supplied for the tool, so it may be different from the
  4629. value in DFS Configuration.]]>
  4630. </doc>
  4631. </method>
  4632. <method name="setReplication"
  4633. abstract="false" native="false" synchronized="false"
  4634. static="false" final="false" visibility="public"
  4635. deprecated="not deprecated">
  4636. <param name="replication" type="int"/>
  4637. </method>
  4638. <method name="getTotalBlocks" return="long"
  4639. abstract="false" native="false" synchronized="false"
  4640. static="false" final="false" visibility="public"
  4641. deprecated="not deprecated">
  4642. <doc>
  4643. <![CDATA[Return the total number of blocks in the scanned area.]]>
  4644. </doc>
  4645. </method>
  4646. <method name="setTotalBlocks"
  4647. abstract="false" native="false" synchronized="false"
  4648. static="false" final="false" visibility="public"
  4649. deprecated="not deprecated">
  4650. <param name="totalBlocks" type="long"/>
  4651. </method>
  4652. <method name="getTotalOpenFilesBlocks" return="long"
  4653. abstract="false" native="false" synchronized="false"
  4654. static="false" final="false" visibility="public"
  4655. deprecated="not deprecated">
  4656. <doc>
  4657. <![CDATA[Return the total number of blocks held by open files.]]>
  4658. </doc>
  4659. </method>
  4660. <method name="setTotalOpenFilesBlocks"
  4661. abstract="false" native="false" synchronized="false"
  4662. static="false" final="false" visibility="public"
  4663. deprecated="not deprecated">
  4664. <param name="totalOpenFilesBlocks" type="long"/>
  4665. </method>
  4666. <method name="toString" return="java.lang.String"
  4667. abstract="false" native="false" synchronized="false"
  4668. static="false" final="false" visibility="public"
  4669. deprecated="not deprecated">
  4670. </method>
  4671. <method name="getCorruptFiles" return="long"
  4672. abstract="false" native="false" synchronized="false"
  4673. static="false" final="false" visibility="public"
  4674. deprecated="not deprecated">
  4675. <doc>
  4676. <![CDATA[Return the number of currupted files.]]>
  4677. </doc>
  4678. </method>
  4679. <method name="setCorruptFiles"
  4680. abstract="false" native="false" synchronized="false"
  4681. static="false" final="false" visibility="public"
  4682. deprecated="not deprecated">
  4683. <param name="corruptFiles" type="long"/>
  4684. </method>
  4685. <doc>
  4686. <![CDATA[FsckResult of checking, plus overall DFS statistics.]]>
  4687. </doc>
  4688. </class>
  4689. <!-- end class org.apache.hadoop.dfs.NamenodeFsck.FsckResult -->
  4690. <!-- start class org.apache.hadoop.dfs.NameNodeMetrics -->
  4691. <class name="NameNodeMetrics" extends="java.lang.Object"
  4692. abstract="false"
  4693. static="false" final="false" visibility="public"
  4694. deprecated="not deprecated">
  4695. <implements name="org.apache.hadoop.metrics.Updater"/>
  4696. <method name="shutdown"
  4697. abstract="false" native="false" synchronized="false"
  4698. static="false" final="false" visibility="public"
  4699. deprecated="not deprecated">
  4700. </method>
  4701. <method name="doUpdates"
  4702. abstract="false" native="false" synchronized="false"
  4703. static="false" final="false" visibility="public"
  4704. deprecated="not deprecated">
  4705. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  4706. <doc>
  4707. <![CDATA[Since this object is a registered updater, this method will be called
  4708. periodically, e.g. every 5 seconds.]]>
  4709. </doc>
  4710. </method>
  4711. <method name="resetAllMinMax"
  4712. abstract="false" native="false" synchronized="false"
  4713. static="false" final="false" visibility="public"
  4714. deprecated="not deprecated">
  4715. </method>
  4716. <field name="numFilesCreated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4717. transient="false" volatile="false"
  4718. static="false" final="false" visibility="public"
  4719. deprecated="not deprecated">
  4720. </field>
  4721. <field name="numGetBlockLocations" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4722. transient="false" volatile="false"
  4723. static="false" final="false" visibility="public"
  4724. deprecated="not deprecated">
  4725. </field>
  4726. <field name="numFilesRenamed" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4727. transient="false" volatile="false"
  4728. static="false" final="false" visibility="public"
  4729. deprecated="not deprecated">
  4730. </field>
  4731. <field name="numGetListingOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4732. transient="false" volatile="false"
  4733. static="false" final="false" visibility="public"
  4734. deprecated="not deprecated">
  4735. </field>
  4736. <field name="numCreateFileOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4737. transient="false" volatile="false"
  4738. static="false" final="false" visibility="public"
  4739. deprecated="not deprecated">
  4740. </field>
  4741. <field name="numDeleteFileOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4742. transient="false" volatile="false"
  4743. static="false" final="false" visibility="public"
  4744. deprecated="not deprecated">
  4745. </field>
  4746. <field name="numAddBlockOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  4747. transient="false" volatile="false"
  4748. static="false" final="false" visibility="public"
  4749. deprecated="not deprecated">
  4750. </field>
  4751. <field name="transactions" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4752. transient="false" volatile="false"
  4753. static="false" final="false" visibility="public"
  4754. deprecated="not deprecated">
  4755. </field>
  4756. <field name="syncs" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4757. transient="false" volatile="false"
  4758. static="false" final="false" visibility="public"
  4759. deprecated="not deprecated">
  4760. </field>
  4761. <field name="blockReport" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  4762. transient="false" volatile="false"
  4763. static="false" final="false" visibility="public"
  4764. deprecated="not deprecated">
  4765. </field>
  4766. <field name="safeModeTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  4767. transient="false" volatile="false"
  4768. static="false" final="false" visibility="public"
  4769. deprecated="not deprecated">
  4770. </field>
  4771. <field name="fsImageLoadTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  4772. transient="false" volatile="false"
  4773. static="false" final="false" visibility="public"
  4774. deprecated="not deprecated">
  4775. </field>
  4776. <field name="numBlocksCorrupted" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  4777. transient="false" volatile="false"
  4778. static="false" final="false" visibility="public"
  4779. deprecated="not deprecated">
  4780. </field>
  4781. <doc>
  4782. <![CDATA[This class is for maintaining the various NameNode statistics
  4783. and publishing them through the metrics interfaces.
  4784. This also registers the JMX MBean for RPC.
  4785. <p>
  4786. This class has a number of metrics variables that are publicly accessible;
  4787. these variables (objects) have methods to update their values;
  4788. for example:
  4789. <p> {@link #syncs}.inc()]]>
  4790. </doc>
  4791. </class>
  4792. <!-- end class org.apache.hadoop.dfs.NameNodeMetrics -->
  4793. <!-- start class org.apache.hadoop.dfs.NotReplicatedYetException -->
  4794. <class name="NotReplicatedYetException" extends="java.io.IOException"
  4795. abstract="false"
  4796. static="false" final="false" visibility="public"
  4797. deprecated="not deprecated">
  4798. <constructor name="NotReplicatedYetException" type="java.lang.String"
  4799. static="false" final="false" visibility="public"
  4800. deprecated="not deprecated">
  4801. </constructor>
  4802. <doc>
  4803. <![CDATA[The file has not finished being written to enough datanodes yet.]]>
  4804. </doc>
  4805. </class>
  4806. <!-- end class org.apache.hadoop.dfs.NotReplicatedYetException -->
  4807. <!-- start class org.apache.hadoop.dfs.QuotaExceededException -->
  4808. <class name="QuotaExceededException" extends="java.io.IOException"
  4809. abstract="false"
  4810. static="false" final="true" visibility="public"
  4811. deprecated="not deprecated">
  4812. <constructor name="QuotaExceededException" type="java.lang.String"
  4813. static="false" final="false" visibility="public"
  4814. deprecated="not deprecated">
  4815. </constructor>
  4816. <constructor name="QuotaExceededException" type="long, long"
  4817. static="false" final="false" visibility="public"
  4818. deprecated="not deprecated">
  4819. </constructor>
  4820. <method name="setPathName"
  4821. abstract="false" native="false" synchronized="false"
  4822. static="false" final="false" visibility="public"
  4823. deprecated="not deprecated">
  4824. <param name="path" type="java.lang.String"/>
  4825. </method>
  4826. <method name="getMessage" return="java.lang.String"
  4827. abstract="false" native="false" synchronized="false"
  4828. static="false" final="false" visibility="public"
  4829. deprecated="not deprecated">
  4830. </method>
  4831. <doc>
  4832. <![CDATA[This class is for the error when an attempt to add an inode to namespace
  4833. violates the quota restriction of any inode on the path to the newly added
  4834. inode.]]>
  4835. </doc>
  4836. </class>
  4837. <!-- end class org.apache.hadoop.dfs.QuotaExceededException -->
  4838. <!-- start class org.apache.hadoop.dfs.SafeModeException -->
  4839. <class name="SafeModeException" extends="java.io.IOException"
  4840. abstract="false"
  4841. static="false" final="false" visibility="public"
  4842. deprecated="not deprecated">
  4843. <constructor name="SafeModeException" type="java.lang.String, org.apache.hadoop.dfs.FSNamesystem.SafeModeInfo"
  4844. static="false" final="false" visibility="public"
  4845. deprecated="not deprecated">
  4846. </constructor>
  4847. <doc>
  4848. <![CDATA[This exception is thrown when the name node is in safe mode.
  4849. Client cannot modified namespace until the safe mode is off.]]>
  4850. </doc>
  4851. </class>
  4852. <!-- end class org.apache.hadoop.dfs.SafeModeException -->
  4853. <!-- start class org.apache.hadoop.dfs.SecondaryNameNode -->
  4854. <class name="SecondaryNameNode" extends="java.lang.Object"
  4855. abstract="false"
  4856. static="false" final="false" visibility="public"
  4857. deprecated="not deprecated">
  4858. <implements name="org.apache.hadoop.dfs.FSConstants"/>
  4859. <implements name="java.lang.Runnable"/>
  4860. <method name="shutdown"
  4861. abstract="false" native="false" synchronized="false"
  4862. static="false" final="false" visibility="public"
  4863. deprecated="not deprecated">
  4864. <doc>
  4865. <![CDATA[Shut down this instance of the datanode.
  4866. Returns only after shutdown is complete.]]>
  4867. </doc>
  4868. </method>
  4869. <method name="run"
  4870. abstract="false" native="false" synchronized="false"
  4871. static="false" final="false" visibility="public"
  4872. deprecated="not deprecated">
  4873. </method>
  4874. <method name="main"
  4875. abstract="false" native="false" synchronized="false"
  4876. static="true" final="false" visibility="public"
  4877. deprecated="not deprecated">
  4878. <param name="argv" type="java.lang.String[]"/>
  4879. <exception name="Exception" type="java.lang.Exception"/>
  4880. <doc>
  4881. <![CDATA[main() has some simple utility methods.
  4882. @param argv Command line parameters.
  4883. @exception Exception if the filesystem does not exist.]]>
  4884. </doc>
  4885. </method>
  4886. <field name="LOG" type="org.apache.commons.logging.Log"
  4887. transient="false" volatile="false"
  4888. static="true" final="true" visibility="public"
  4889. deprecated="not deprecated">
  4890. </field>
  4891. <doc>
  4892. <![CDATA[The Secondary NameNode is a helper to the primary NameNode.
  4893. The Secondary is responsible for supporting periodic checkpoints
  4894. of the HDFS metadata. The current design allows only one Secondary
  4895. NameNode per HDFs cluster.
  4896. The Secondary NameNode is a daemon that periodically wakes
  4897. up (determined by the schedule specified in the configuration),
  4898. triggers a periodic checkpoint and then goes back to sleep.
  4899. The Secondary NameNode uses the ClientProtocol to talk to the
  4900. primary NameNode.]]>
  4901. </doc>
  4902. </class>
  4903. <!-- end class org.apache.hadoop.dfs.SecondaryNameNode -->
  4904. <!-- start class org.apache.hadoop.dfs.StreamFile -->
  4905. <class name="StreamFile" extends="org.apache.hadoop.dfs.DfsServlet"
  4906. abstract="false"
  4907. static="false" final="false" visibility="public"
  4908. deprecated="not deprecated">
  4909. <constructor name="StreamFile"
  4910. static="false" final="false" visibility="public"
  4911. deprecated="not deprecated">
  4912. </constructor>
  4913. <method name="doGet"
  4914. abstract="false" native="false" synchronized="false"
  4915. static="false" final="false" visibility="public"
  4916. deprecated="not deprecated">
  4917. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  4918. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  4919. <exception name="ServletException" type="javax.servlet.ServletException"/>
  4920. <exception name="IOException" type="java.io.IOException"/>
  4921. </method>
  4922. </class>
  4923. <!-- end class org.apache.hadoop.dfs.StreamFile -->
  4924. <!-- start interface org.apache.hadoop.dfs.Upgradeable -->
  4925. <interface name="Upgradeable" abstract="true"
  4926. static="false" final="false" visibility="public"
  4927. deprecated="not deprecated">
  4928. <implements name="java.lang.Comparable&lt;org.apache.hadoop.dfs.Upgradeable&gt;"/>
  4929. <method name="getVersion" return="int"
  4930. abstract="false" native="false" synchronized="false"
  4931. static="false" final="false" visibility="public"
  4932. deprecated="not deprecated">
  4933. <doc>
  4934. <![CDATA[Get the layout version of the upgrade object.
  4935. @return layout version]]>
  4936. </doc>
  4937. </method>
  4938. <method name="getType" return="org.apache.hadoop.dfs.FSConstants.NodeType"
  4939. abstract="false" native="false" synchronized="false"
  4940. static="false" final="false" visibility="public"
  4941. deprecated="not deprecated">
  4942. <doc>
  4943. <![CDATA[Get the type of the software component, which this object is upgrading.
  4944. @return type]]>
  4945. </doc>
  4946. </method>
  4947. <method name="getDescription" return="java.lang.String"
  4948. abstract="false" native="false" synchronized="false"
  4949. static="false" final="false" visibility="public"
  4950. deprecated="not deprecated">
  4951. <doc>
  4952. <![CDATA[Description of the upgrade object for displaying.
  4953. @return description]]>
  4954. </doc>
  4955. </method>
  4956. <method name="getUpgradeStatus" return="short"
  4957. abstract="false" native="false" synchronized="false"
  4958. static="false" final="false" visibility="public"
  4959. deprecated="not deprecated">
  4960. <doc>
  4961. <![CDATA[Upgrade status determines a percentage of the work done out of the total
  4962. amount required by the upgrade.
  4963. 100% means that the upgrade is completed.
  4964. Any value < 100 means it is not complete.
  4965. The return value should provide at least 2 values, e.g. 0 and 100.
  4966. @return integer value in the range [0, 100].]]>
  4967. </doc>
  4968. </method>
  4969. <method name="startUpgrade" return="org.apache.hadoop.dfs.UpgradeCommand"
  4970. abstract="false" native="false" synchronized="false"
  4971. static="false" final="false" visibility="public"
  4972. deprecated="not deprecated">
  4973. <exception name="IOException" type="java.io.IOException"/>
  4974. <doc>
  4975. <![CDATA[Prepare for the upgrade.
  4976. E.g. initialize upgrade data structures and set status to 0.
  4977. Returns an upgrade command that is used for broadcasting to other cluster
  4978. components.
  4979. E.g. name-node informs data-nodes that they must perform a distributed upgrade.
  4980. @return an UpgradeCommand for broadcasting.
  4981. @throws IOException]]>
  4982. </doc>
  4983. </method>
  4984. <method name="completeUpgrade" return="org.apache.hadoop.dfs.UpgradeCommand"
  4985. abstract="false" native="false" synchronized="false"
  4986. static="false" final="false" visibility="public"
  4987. deprecated="not deprecated">
  4988. <exception name="IOException" type="java.io.IOException"/>
  4989. <doc>
  4990. <![CDATA[Complete upgrade.
  4991. E.g. cleanup upgrade data structures or write metadata to disk.
  4992. Returns an upgrade command that is used for broadcasting to other cluster
  4993. components.
  4994. E.g. data-nodes inform the name-node that they completed the upgrade
  4995. while other data-nodes are still upgrading.
  4996. @throws IOException]]>
  4997. </doc>
  4998. </method>
  4999. <method name="getUpgradeStatusReport" return="org.apache.hadoop.dfs.UpgradeStatusReport"
  5000. abstract="false" native="false" synchronized="false"
  5001. static="false" final="false" visibility="public"
  5002. deprecated="not deprecated">
  5003. <param name="details" type="boolean"/>
  5004. <exception name="IOException" type="java.io.IOException"/>
  5005. <doc>
  5006. <![CDATA[Get status report for the upgrade.
  5007. @param details true if upgradeStatus details need to be included,
  5008. false otherwise
  5009. @return {@link UpgradeStatusReport}
  5010. @throws IOException]]>
  5011. </doc>
  5012. </method>
  5013. <doc>
  5014. <![CDATA[Common interface for distributed upgrade objects.
  5015. Each upgrade object corresponds to a layout version,
  5016. which is the latest version that should be upgraded using this object.
  5017. That is all components whose layout version is greater or equal to the
  5018. one returned by {@link #getVersion()} must be upgraded with this object.]]>
  5019. </doc>
  5020. </interface>
  5021. <!-- end interface org.apache.hadoop.dfs.Upgradeable -->
  5022. <!-- start class org.apache.hadoop.dfs.UpgradeStatusReport -->
  5023. <class name="UpgradeStatusReport" extends="java.lang.Object"
  5024. abstract="false"
  5025. static="false" final="false" visibility="public"
  5026. deprecated="not deprecated">
  5027. <implements name="org.apache.hadoop.io.Writable"/>
  5028. <constructor name="UpgradeStatusReport"
  5029. static="false" final="false" visibility="public"
  5030. deprecated="not deprecated">
  5031. </constructor>
  5032. <constructor name="UpgradeStatusReport" type="int, short, boolean"
  5033. static="false" final="false" visibility="public"
  5034. deprecated="not deprecated">
  5035. </constructor>
  5036. <method name="getVersion" return="int"
  5037. abstract="false" native="false" synchronized="false"
  5038. static="false" final="false" visibility="public"
  5039. deprecated="not deprecated">
  5040. <doc>
  5041. <![CDATA[Get the layout version of the currently running upgrade.
  5042. @return layout version]]>
  5043. </doc>
  5044. </method>
  5045. <method name="getUpgradeStatus" return="short"
  5046. abstract="false" native="false" synchronized="false"
  5047. static="false" final="false" visibility="public"
  5048. deprecated="not deprecated">
  5049. <doc>
  5050. <![CDATA[Get upgrade upgradeStatus as a percentage of the total upgrade done.
  5051. @see Upgradeable#getUpgradeStatus()]]>
  5052. </doc>
  5053. </method>
  5054. <method name="isFinalized" return="boolean"
  5055. abstract="false" native="false" synchronized="false"
  5056. static="false" final="false" visibility="public"
  5057. deprecated="not deprecated">
  5058. <doc>
  5059. <![CDATA[Is current upgrade finalized.
  5060. @return true if finalized or false otherwise.]]>
  5061. </doc>
  5062. </method>
  5063. <method name="getStatusText" return="java.lang.String"
  5064. abstract="false" native="false" synchronized="false"
  5065. static="false" final="false" visibility="public"
  5066. deprecated="not deprecated">
  5067. <param name="details" type="boolean"/>
  5068. <doc>
  5069. <![CDATA[Get upgradeStatus data as a text for reporting.
  5070. Should be overloaded for a particular upgrade specific upgradeStatus data.
  5071. @param details true if upgradeStatus details need to be included,
  5072. false otherwise
  5073. @return text]]>
  5074. </doc>
  5075. </method>
  5076. <method name="toString" return="java.lang.String"
  5077. abstract="false" native="false" synchronized="false"
  5078. static="false" final="false" visibility="public"
  5079. deprecated="not deprecated">
  5080. <doc>
  5081. <![CDATA[Print basic upgradeStatus details.]]>
  5082. </doc>
  5083. </method>
  5084. <method name="write"
  5085. abstract="false" native="false" synchronized="false"
  5086. static="false" final="false" visibility="public"
  5087. deprecated="not deprecated">
  5088. <param name="out" type="java.io.DataOutput"/>
  5089. <exception name="IOException" type="java.io.IOException"/>
  5090. </method>
  5091. <method name="readFields"
  5092. abstract="false" native="false" synchronized="false"
  5093. static="false" final="false" visibility="public"
  5094. deprecated="not deprecated">
  5095. <param name="in" type="java.io.DataInput"/>
  5096. <exception name="IOException" type="java.io.IOException"/>
  5097. </method>
  5098. <field name="version" type="int"
  5099. transient="false" volatile="false"
  5100. static="false" final="false" visibility="protected"
  5101. deprecated="not deprecated">
  5102. </field>
  5103. <field name="upgradeStatus" type="short"
  5104. transient="false" volatile="false"
  5105. static="false" final="false" visibility="protected"
  5106. deprecated="not deprecated">
  5107. </field>
  5108. <field name="finalized" type="boolean"
  5109. transient="false" volatile="false"
  5110. static="false" final="false" visibility="protected"
  5111. deprecated="not deprecated">
  5112. </field>
  5113. <doc>
  5114. <![CDATA[Base upgrade upgradeStatus class.
  5115. Overload this class if specific status fields need to be reported.
  5116. Describes status of current upgrade.]]>
  5117. </doc>
  5118. </class>
  5119. <!-- end class org.apache.hadoop.dfs.UpgradeStatusReport -->
  5120. </package>
  5121. <package name="org.apache.hadoop.dfs.datanode.metrics">
  5122. <!-- start class org.apache.hadoop.dfs.datanode.metrics.DataNodeMetrics -->
  5123. <class name="DataNodeMetrics" extends="java.lang.Object"
  5124. abstract="false"
  5125. static="false" final="false" visibility="public"
  5126. deprecated="not deprecated">
  5127. <implements name="org.apache.hadoop.metrics.Updater"/>
  5128. <constructor name="DataNodeMetrics" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  5129. static="false" final="false" visibility="public"
  5130. deprecated="not deprecated">
  5131. </constructor>
  5132. <method name="shutdown"
  5133. abstract="false" native="false" synchronized="false"
  5134. static="false" final="false" visibility="public"
  5135. deprecated="not deprecated">
  5136. </method>
  5137. <method name="doUpdates"
  5138. abstract="false" native="false" synchronized="false"
  5139. static="false" final="false" visibility="public"
  5140. deprecated="not deprecated">
  5141. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  5142. <doc>
  5143. <![CDATA[Since this object is a registered updater, this method will be called
  5144. periodically, e.g. every 5 seconds.]]>
  5145. </doc>
  5146. </method>
  5147. <method name="resetAllMinMax"
  5148. abstract="false" native="false" synchronized="false"
  5149. static="false" final="false" visibility="public"
  5150. deprecated="not deprecated">
  5151. </method>
  5152. <field name="bytesWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5153. transient="false" volatile="false"
  5154. static="false" final="false" visibility="public"
  5155. deprecated="not deprecated">
  5156. </field>
  5157. <field name="bytesRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5158. transient="false" volatile="false"
  5159. static="false" final="false" visibility="public"
  5160. deprecated="not deprecated">
  5161. </field>
  5162. <field name="blocksWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5163. transient="false" volatile="false"
  5164. static="false" final="false" visibility="public"
  5165. deprecated="not deprecated">
  5166. </field>
  5167. <field name="blocksRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5168. transient="false" volatile="false"
  5169. static="false" final="false" visibility="public"
  5170. deprecated="not deprecated">
  5171. </field>
  5172. <field name="blocksReplicated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5173. transient="false" volatile="false"
  5174. static="false" final="false" visibility="public"
  5175. deprecated="not deprecated">
  5176. </field>
  5177. <field name="blocksRemoved" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5178. transient="false" volatile="false"
  5179. static="false" final="false" visibility="public"
  5180. deprecated="not deprecated">
  5181. </field>
  5182. <field name="blocksVerified" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5183. transient="false" volatile="false"
  5184. static="false" final="false" visibility="public"
  5185. deprecated="not deprecated">
  5186. </field>
  5187. <field name="blockVerificationFailures" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5188. transient="false" volatile="false"
  5189. static="false" final="false" visibility="public"
  5190. deprecated="not deprecated">
  5191. </field>
  5192. <field name="readsFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5193. transient="false" volatile="false"
  5194. static="false" final="false" visibility="public"
  5195. deprecated="not deprecated">
  5196. </field>
  5197. <field name="readsFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5198. transient="false" volatile="false"
  5199. static="false" final="false" visibility="public"
  5200. deprecated="not deprecated">
  5201. </field>
  5202. <field name="writesFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5203. transient="false" volatile="false"
  5204. static="false" final="false" visibility="public"
  5205. deprecated="not deprecated">
  5206. </field>
  5207. <field name="writesFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  5208. transient="false" volatile="false"
  5209. static="false" final="false" visibility="public"
  5210. deprecated="not deprecated">
  5211. </field>
  5212. <field name="readBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5213. transient="false" volatile="false"
  5214. static="false" final="false" visibility="public"
  5215. deprecated="not deprecated">
  5216. </field>
  5217. <field name="writeBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5218. transient="false" volatile="false"
  5219. static="false" final="false" visibility="public"
  5220. deprecated="not deprecated">
  5221. </field>
  5222. <field name="readMetadataOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5223. transient="false" volatile="false"
  5224. static="false" final="false" visibility="public"
  5225. deprecated="not deprecated">
  5226. </field>
  5227. <field name="copyBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5228. transient="false" volatile="false"
  5229. static="false" final="false" visibility="public"
  5230. deprecated="not deprecated">
  5231. </field>
  5232. <field name="replaceBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5233. transient="false" volatile="false"
  5234. static="false" final="false" visibility="public"
  5235. deprecated="not deprecated">
  5236. </field>
  5237. <field name="heartbeats" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5238. transient="false" volatile="false"
  5239. static="false" final="false" visibility="public"
  5240. deprecated="not deprecated">
  5241. </field>
  5242. <field name="blockReports" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  5243. transient="false" volatile="false"
  5244. static="false" final="false" visibility="public"
  5245. deprecated="not deprecated">
  5246. </field>
  5247. <doc>
  5248. <![CDATA[This class is for maintaining the various DataNode statistics
  5249. and publishing them through the metrics interfaces.
  5250. This also registers the JMX MBean for RPC.
  5251. <p>
  5252. This class has a number of metrics variables that are publicly accessible;
  5253. these variables (objects) have methods to update their values;
  5254. for example:
  5255. <p> {@link #blocksRead}.inc()]]>
  5256. </doc>
  5257. </class>
  5258. <!-- end class org.apache.hadoop.dfs.datanode.metrics.DataNodeMetrics -->
  5259. <!-- start class org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics -->
  5260. <class name="DataNodeStatistics" extends="java.lang.Object"
  5261. abstract="false"
  5262. static="false" final="false" visibility="public"
  5263. deprecated="not deprecated">
  5264. <implements name="org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean"/>
  5265. <method name="shutdown"
  5266. abstract="false" native="false" synchronized="false"
  5267. static="false" final="false" visibility="public"
  5268. deprecated="not deprecated">
  5269. <doc>
  5270. <![CDATA[Shuts down the statistics
  5271. - unregisters the mbean]]>
  5272. </doc>
  5273. </method>
  5274. <method name="resetAllMinMax"
  5275. abstract="false" native="false" synchronized="false"
  5276. static="false" final="false" visibility="public"
  5277. deprecated="not deprecated">
  5278. <doc>
  5279. <![CDATA[@inheritDoc]]>
  5280. </doc>
  5281. </method>
  5282. <method name="getBlocksRead" return="int"
  5283. abstract="false" native="false" synchronized="false"
  5284. static="false" final="false" visibility="public"
  5285. deprecated="not deprecated">
  5286. <doc>
  5287. <![CDATA[@inheritDoc]]>
  5288. </doc>
  5289. </method>
  5290. <method name="getBlocksRemoved" return="int"
  5291. abstract="false" native="false" synchronized="false"
  5292. static="false" final="false" visibility="public"
  5293. deprecated="not deprecated">
  5294. <doc>
  5295. <![CDATA[@inheritDoc]]>
  5296. </doc>
  5297. </method>
  5298. <method name="getBlocksReplicated" return="int"
  5299. abstract="false" native="false" synchronized="false"
  5300. static="false" final="false" visibility="public"
  5301. deprecated="not deprecated">
  5302. <doc>
  5303. <![CDATA[@inheritDoc]]>
  5304. </doc>
  5305. </method>
  5306. <method name="getBlocksWritten" return="int"
  5307. abstract="false" native="false" synchronized="false"
  5308. static="false" final="false" visibility="public"
  5309. deprecated="not deprecated">
  5310. <doc>
  5311. <![CDATA[@inheritDoc]]>
  5312. </doc>
  5313. </method>
  5314. <method name="getBytesRead" return="int"
  5315. abstract="false" native="false" synchronized="false"
  5316. static="false" final="false" visibility="public"
  5317. deprecated="not deprecated">
  5318. <doc>
  5319. <![CDATA[@inheritDoc]]>
  5320. </doc>
  5321. </method>
  5322. <method name="getBlockVerificationFailures" return="int"
  5323. abstract="false" native="false" synchronized="false"
  5324. static="false" final="false" visibility="public"
  5325. deprecated="not deprecated">
  5326. <doc>
  5327. <![CDATA[@inheritDoc]]>
  5328. </doc>
  5329. </method>
  5330. <method name="getBlocksVerified" return="int"
  5331. abstract="false" native="false" synchronized="false"
  5332. static="false" final="false" visibility="public"
  5333. deprecated="not deprecated">
  5334. <doc>
  5335. <![CDATA[@inheritDoc]]>
  5336. </doc>
  5337. </method>
  5338. <method name="getReadsFromLocalClient" return="int"
  5339. abstract="false" native="false" synchronized="false"
  5340. static="false" final="false" visibility="public"
  5341. deprecated="not deprecated">
  5342. <doc>
  5343. <![CDATA[@inheritDoc]]>
  5344. </doc>
  5345. </method>
  5346. <method name="getReadsFromRemoteClient" return="int"
  5347. abstract="false" native="false" synchronized="false"
  5348. static="false" final="false" visibility="public"
  5349. deprecated="not deprecated">
  5350. <doc>
  5351. <![CDATA[@inheritDoc]]>
  5352. </doc>
  5353. </method>
  5354. <method name="getWritesFromLocalClient" return="int"
  5355. abstract="false" native="false" synchronized="false"
  5356. static="false" final="false" visibility="public"
  5357. deprecated="not deprecated">
  5358. <doc>
  5359. <![CDATA[@inheritDoc]]>
  5360. </doc>
  5361. </method>
  5362. <method name="getWritesFromRemoteClient" return="int"
  5363. abstract="false" native="false" synchronized="false"
  5364. static="false" final="false" visibility="public"
  5365. deprecated="not deprecated">
  5366. <doc>
  5367. <![CDATA[@inheritDoc]]>
  5368. </doc>
  5369. </method>
  5370. <method name="getReadBlockOpAverageTime" return="long"
  5371. abstract="false" native="false" synchronized="false"
  5372. static="false" final="false" visibility="public"
  5373. deprecated="not deprecated">
  5374. <doc>
  5375. <![CDATA[@inheritDoc]]>
  5376. </doc>
  5377. </method>
  5378. <method name="getReadBlockOpMaxTime" return="long"
  5379. abstract="false" native="false" synchronized="false"
  5380. static="false" final="false" visibility="public"
  5381. deprecated="not deprecated">
  5382. <doc>
  5383. <![CDATA[@inheritDoc]]>
  5384. </doc>
  5385. </method>
  5386. <method name="getReadBlockOpMinTime" return="long"
  5387. abstract="false" native="false" synchronized="false"
  5388. static="false" final="false" visibility="public"
  5389. deprecated="not deprecated">
  5390. <doc>
  5391. <![CDATA[@inheritDoc]]>
  5392. </doc>
  5393. </method>
  5394. <method name="getReadBlockOpNum" return="int"
  5395. abstract="false" native="false" synchronized="false"
  5396. static="false" final="false" visibility="public"
  5397. deprecated="not deprecated">
  5398. <doc>
  5399. <![CDATA[@inheritDoc]]>
  5400. </doc>
  5401. </method>
  5402. <method name="getReadMetadataOpAverageTime" return="long"
  5403. abstract="false" native="false" synchronized="false"
  5404. static="false" final="false" visibility="public"
  5405. deprecated="not deprecated">
  5406. <doc>
  5407. <![CDATA[@inheritDoc]]>
  5408. </doc>
  5409. </method>
  5410. <method name="getReadMetadataOpMaxTime" return="long"
  5411. abstract="false" native="false" synchronized="false"
  5412. static="false" final="false" visibility="public"
  5413. deprecated="not deprecated">
  5414. <doc>
  5415. <![CDATA[@inheritDoc]]>
  5416. </doc>
  5417. </method>
  5418. <method name="getReadMetadataOpMinTime" return="long"
  5419. abstract="false" native="false" synchronized="false"
  5420. static="false" final="false" visibility="public"
  5421. deprecated="not deprecated">
  5422. <doc>
  5423. <![CDATA[@inheritDoc]]>
  5424. </doc>
  5425. </method>
  5426. <method name="getReadMetadataOpNum" return="int"
  5427. abstract="false" native="false" synchronized="false"
  5428. static="false" final="false" visibility="public"
  5429. deprecated="not deprecated">
  5430. <doc>
  5431. <![CDATA[@inheritDoc]]>
  5432. </doc>
  5433. </method>
  5434. <method name="getReplaceBlockOpAverageTime" return="long"
  5435. abstract="false" native="false" synchronized="false"
  5436. static="false" final="false" visibility="public"
  5437. deprecated="not deprecated">
  5438. <doc>
  5439. <![CDATA[@inheritDoc]]>
  5440. </doc>
  5441. </method>
  5442. <method name="getReplaceBlockOpMaxTime" return="long"
  5443. abstract="false" native="false" synchronized="false"
  5444. static="false" final="false" visibility="public"
  5445. deprecated="not deprecated">
  5446. <doc>
  5447. <![CDATA[@inheritDoc]]>
  5448. </doc>
  5449. </method>
  5450. <method name="getReplaceBlockOpMinTime" return="long"
  5451. abstract="false" native="false" synchronized="false"
  5452. static="false" final="false" visibility="public"
  5453. deprecated="not deprecated">
  5454. <doc>
  5455. <![CDATA[@inheritDoc]]>
  5456. </doc>
  5457. </method>
  5458. <method name="getReplaceBlockOpNum" return="int"
  5459. abstract="false" native="false" synchronized="false"
  5460. static="false" final="false" visibility="public"
  5461. deprecated="not deprecated">
  5462. <doc>
  5463. <![CDATA[@inheritDoc]]>
  5464. </doc>
  5465. </method>
  5466. <method name="getWriteBlockOpAverageTime" return="long"
  5467. abstract="false" native="false" synchronized="false"
  5468. static="false" final="false" visibility="public"
  5469. deprecated="not deprecated">
  5470. <doc>
  5471. <![CDATA[@inheritDoc]]>
  5472. </doc>
  5473. </method>
  5474. <method name="getWriteBlockOpMaxTime" return="long"
  5475. abstract="false" native="false" synchronized="false"
  5476. static="false" final="false" visibility="public"
  5477. deprecated="not deprecated">
  5478. <doc>
  5479. <![CDATA[@inheritDoc]]>
  5480. </doc>
  5481. </method>
  5482. <method name="getWriteBlockOpMinTime" return="long"
  5483. abstract="false" native="false" synchronized="false"
  5484. static="false" final="false" visibility="public"
  5485. deprecated="not deprecated">
  5486. <doc>
  5487. <![CDATA[@inheritDoc]]>
  5488. </doc>
  5489. </method>
  5490. <method name="getWriteBlockOpNum" return="int"
  5491. abstract="false" native="false" synchronized="false"
  5492. static="false" final="false" visibility="public"
  5493. deprecated="not deprecated">
  5494. <doc>
  5495. <![CDATA[@inheritDoc]]>
  5496. </doc>
  5497. </method>
  5498. <method name="getCopyBlockOpAverageTime" return="long"
  5499. abstract="false" native="false" synchronized="false"
  5500. static="false" final="false" visibility="public"
  5501. deprecated="not deprecated">
  5502. <doc>
  5503. <![CDATA[@inheritDoc]]>
  5504. </doc>
  5505. </method>
  5506. <method name="getCopyBlockOpMaxTime" return="long"
  5507. abstract="false" native="false" synchronized="false"
  5508. static="false" final="false" visibility="public"
  5509. deprecated="not deprecated">
  5510. <doc>
  5511. <![CDATA[@inheritDoc]]>
  5512. </doc>
  5513. </method>
  5514. <method name="getCopyBlockOpMinTime" return="long"
  5515. abstract="false" native="false" synchronized="false"
  5516. static="false" final="false" visibility="public"
  5517. deprecated="not deprecated">
  5518. <doc>
  5519. <![CDATA[@inheritDoc]]>
  5520. </doc>
  5521. </method>
  5522. <method name="getCopyBlockOpNum" return="int"
  5523. abstract="false" native="false" synchronized="false"
  5524. static="false" final="false" visibility="public"
  5525. deprecated="not deprecated">
  5526. <doc>
  5527. <![CDATA[@inheritDoc]]>
  5528. </doc>
  5529. </method>
  5530. <method name="getBlockReportsAverageTime" return="long"
  5531. abstract="false" native="false" synchronized="false"
  5532. static="false" final="false" visibility="public"
  5533. deprecated="not deprecated">
  5534. <doc>
  5535. <![CDATA[@inheritDoc]]>
  5536. </doc>
  5537. </method>
  5538. <method name="getBlockReportsMaxTime" return="long"
  5539. abstract="false" native="false" synchronized="false"
  5540. static="false" final="false" visibility="public"
  5541. deprecated="not deprecated">
  5542. <doc>
  5543. <![CDATA[@inheritDoc]]>
  5544. </doc>
  5545. </method>
  5546. <method name="getBlockReportsMinTime" return="long"
  5547. abstract="false" native="false" synchronized="false"
  5548. static="false" final="false" visibility="public"
  5549. deprecated="not deprecated">
  5550. <doc>
  5551. <![CDATA[@inheritDoc]]>
  5552. </doc>
  5553. </method>
  5554. <method name="getBlockReportsNum" return="int"
  5555. abstract="false" native="false" synchronized="false"
  5556. static="false" final="false" visibility="public"
  5557. deprecated="not deprecated">
  5558. <doc>
  5559. <![CDATA[@inheritDoc]]>
  5560. </doc>
  5561. </method>
  5562. <method name="getHeartbeatsAverageTime" return="long"
  5563. abstract="false" native="false" synchronized="false"
  5564. static="false" final="false" visibility="public"
  5565. deprecated="not deprecated">
  5566. <doc>
  5567. <![CDATA[@inheritDoc]]>
  5568. </doc>
  5569. </method>
  5570. <method name="getHeartbeatsMaxTime" return="long"
  5571. abstract="false" native="false" synchronized="false"
  5572. static="false" final="false" visibility="public"
  5573. deprecated="not deprecated">
  5574. <doc>
  5575. <![CDATA[@inheritDoc]]>
  5576. </doc>
  5577. </method>
  5578. <method name="getHeartbeatsMinTime" return="long"
  5579. abstract="false" native="false" synchronized="false"
  5580. static="false" final="false" visibility="public"
  5581. deprecated="not deprecated">
  5582. <doc>
  5583. <![CDATA[@inheritDoc]]>
  5584. </doc>
  5585. </method>
  5586. <method name="getHeartbeatsNum" return="int"
  5587. abstract="false" native="false" synchronized="false"
  5588. static="false" final="false" visibility="public"
  5589. deprecated="not deprecated">
  5590. <doc>
  5591. <![CDATA[@inheritDoc]]>
  5592. </doc>
  5593. </method>
  5594. </class>
  5595. <!-- end class org.apache.hadoop.dfs.datanode.metrics.DataNodeStatistics -->
  5596. <!-- start interface org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean -->
  5597. <interface name="DataNodeStatisticsMBean" abstract="true"
  5598. static="false" final="false" visibility="public"
  5599. deprecated="not deprecated">
  5600. <method name="getBytesRead" return="int"
  5601. abstract="false" native="false" synchronized="false"
  5602. static="false" final="false" visibility="public"
  5603. deprecated="not deprecated">
  5604. <doc>
  5605. <![CDATA[Number of bytes read in the last interval
  5606. @return number of bytes read]]>
  5607. </doc>
  5608. </method>
  5609. <method name="getBlocksWritten" return="int"
  5610. abstract="false" native="false" synchronized="false"
  5611. static="false" final="false" visibility="public"
  5612. deprecated="not deprecated">
  5613. <doc>
  5614. <![CDATA[Number of blocks written in the last interval
  5615. @return number of blocks written]]>
  5616. </doc>
  5617. </method>
  5618. <method name="getBlocksRead" return="int"
  5619. abstract="false" native="false" synchronized="false"
  5620. static="false" final="false" visibility="public"
  5621. deprecated="not deprecated">
  5622. <doc>
  5623. <![CDATA[Number of blocks read in the last interval
  5624. @return number of blocks read]]>
  5625. </doc>
  5626. </method>
  5627. <method name="getBlocksReplicated" return="int"
  5628. abstract="false" native="false" synchronized="false"
  5629. static="false" final="false" visibility="public"
  5630. deprecated="not deprecated">
  5631. <doc>
  5632. <![CDATA[Number of blocks replicated in the last interval
  5633. @return number of blocks replicated]]>
  5634. </doc>
  5635. </method>
  5636. <method name="getBlocksRemoved" return="int"
  5637. abstract="false" native="false" synchronized="false"
  5638. static="false" final="false" visibility="public"
  5639. deprecated="not deprecated">
  5640. <doc>
  5641. <![CDATA[Number of blocks removed in the last interval
  5642. @return number of blocks removed]]>
  5643. </doc>
  5644. </method>
  5645. <method name="getBlocksVerified" return="int"
  5646. abstract="false" native="false" synchronized="false"
  5647. static="false" final="false" visibility="public"
  5648. deprecated="not deprecated">
  5649. <doc>
  5650. <![CDATA[Number of blocks verified in the last interval
  5651. @return number of blocks verified]]>
  5652. </doc>
  5653. </method>
  5654. <method name="getBlockVerificationFailures" return="int"
  5655. abstract="false" native="false" synchronized="false"
  5656. static="false" final="false" visibility="public"
  5657. deprecated="not deprecated">
  5658. <doc>
  5659. <![CDATA[Number of block verification failures in the last interval
  5660. @return number of block verification failures]]>
  5661. </doc>
  5662. </method>
  5663. <method name="getReadsFromLocalClient" return="int"
  5664. abstract="false" native="false" synchronized="false"
  5665. static="false" final="false" visibility="public"
  5666. deprecated="not deprecated">
  5667. <doc>
  5668. <![CDATA[Number of reads from local clients in the last interval
  5669. @return number of reads from local clients]]>
  5670. </doc>
  5671. </method>
  5672. <method name="getReadsFromRemoteClient" return="int"
  5673. abstract="false" native="false" synchronized="false"
  5674. static="false" final="false" visibility="public"
  5675. deprecated="not deprecated">
  5676. <doc>
  5677. <![CDATA[Number of reads from remote clients in the last interval
  5678. @return number of reads from remote clients]]>
  5679. </doc>
  5680. </method>
  5681. <method name="getWritesFromLocalClient" return="int"
  5682. abstract="false" native="false" synchronized="false"
  5683. static="false" final="false" visibility="public"
  5684. deprecated="not deprecated">
  5685. <doc>
  5686. <![CDATA[Number of writes from local clients in the last interval
  5687. @return number of writes from local clients]]>
  5688. </doc>
  5689. </method>
  5690. <method name="getWritesFromRemoteClient" return="int"
  5691. abstract="false" native="false" synchronized="false"
  5692. static="false" final="false" visibility="public"
  5693. deprecated="not deprecated">
  5694. <doc>
  5695. <![CDATA[Number of writes from remote clients in the last interval
  5696. @return number of writes from remote clients]]>
  5697. </doc>
  5698. </method>
  5699. <method name="getReadBlockOpNum" return="int"
  5700. abstract="false" native="false" synchronized="false"
  5701. static="false" final="false" visibility="public"
  5702. deprecated="not deprecated">
  5703. <doc>
  5704. <![CDATA[Number of ReadBlock Operation in last interval
  5705. @return number of operations]]>
  5706. </doc>
  5707. </method>
  5708. <method name="getReadBlockOpAverageTime" return="long"
  5709. abstract="false" native="false" synchronized="false"
  5710. static="false" final="false" visibility="public"
  5711. deprecated="not deprecated">
  5712. <doc>
  5713. <![CDATA[Average time for ReadBlock Operation in last interval
  5714. @return time in msec]]>
  5715. </doc>
  5716. </method>
  5717. <method name="getReadBlockOpMinTime" return="long"
  5718. abstract="false" native="false" synchronized="false"
  5719. static="false" final="false" visibility="public"
  5720. deprecated="not deprecated">
  5721. <doc>
  5722. <![CDATA[The Minimum ReadBlock Operation Time since reset was called
  5723. @return time in msec]]>
  5724. </doc>
  5725. </method>
  5726. <method name="getReadBlockOpMaxTime" return="long"
  5727. abstract="false" native="false" synchronized="false"
  5728. static="false" final="false" visibility="public"
  5729. deprecated="not deprecated">
  5730. <doc>
  5731. <![CDATA[The Maximum ReadBlock Operation Time since reset was called
  5732. @return time in msec]]>
  5733. </doc>
  5734. </method>
  5735. <method name="getWriteBlockOpNum" return="int"
  5736. abstract="false" native="false" synchronized="false"
  5737. static="false" final="false" visibility="public"
  5738. deprecated="not deprecated">
  5739. <doc>
  5740. <![CDATA[Number of WriteBlock Operation in last interval
  5741. @return number of operations]]>
  5742. </doc>
  5743. </method>
  5744. <method name="getWriteBlockOpAverageTime" return="long"
  5745. abstract="false" native="false" synchronized="false"
  5746. static="false" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <doc>
  5749. <![CDATA[Average time for WriteBlock Operation in last interval
  5750. @return time in msec]]>
  5751. </doc>
  5752. </method>
  5753. <method name="getWriteBlockOpMinTime" return="long"
  5754. abstract="false" native="false" synchronized="false"
  5755. static="false" final="false" visibility="public"
  5756. deprecated="not deprecated">
  5757. <doc>
  5758. <![CDATA[The Minimum WriteBlock Operation Time since reset was called
  5759. @return time in msec]]>
  5760. </doc>
  5761. </method>
  5762. <method name="getWriteBlockOpMaxTime" return="long"
  5763. abstract="false" native="false" synchronized="false"
  5764. static="false" final="false" visibility="public"
  5765. deprecated="not deprecated">
  5766. <doc>
  5767. <![CDATA[The Maximum WriteBlock Operation Time since reset was called
  5768. @return time in msec]]>
  5769. </doc>
  5770. </method>
  5771. <method name="getReadMetadataOpNum" return="int"
  5772. abstract="false" native="false" synchronized="false"
  5773. static="false" final="false" visibility="public"
  5774. deprecated="not deprecated">
  5775. <doc>
  5776. <![CDATA[Number of ReadMetadata Operation in last interval
  5777. @return number of operations]]>
  5778. </doc>
  5779. </method>
  5780. <method name="getReadMetadataOpAverageTime" return="long"
  5781. abstract="false" native="false" synchronized="false"
  5782. static="false" final="false" visibility="public"
  5783. deprecated="not deprecated">
  5784. <doc>
  5785. <![CDATA[Average time for ReadMetadata Operation in last interval
  5786. @return time in msec]]>
  5787. </doc>
  5788. </method>
  5789. <method name="getReadMetadataOpMinTime" return="long"
  5790. abstract="false" native="false" synchronized="false"
  5791. static="false" final="false" visibility="public"
  5792. deprecated="not deprecated">
  5793. <doc>
  5794. <![CDATA[The Minimum ReadMetadata Operation Time since reset was called
  5795. @return time in msec]]>
  5796. </doc>
  5797. </method>
  5798. <method name="getReadMetadataOpMaxTime" return="long"
  5799. abstract="false" native="false" synchronized="false"
  5800. static="false" final="false" visibility="public"
  5801. deprecated="not deprecated">
  5802. <doc>
  5803. <![CDATA[The Maximum ReadMetadata Operation Time since reset was called
  5804. @return time in msec]]>
  5805. </doc>
  5806. </method>
  5807. <method name="getCopyBlockOpNum" return="int"
  5808. abstract="false" native="false" synchronized="false"
  5809. static="false" final="false" visibility="public"
  5810. deprecated="not deprecated">
  5811. <doc>
  5812. <![CDATA[Number of CopyBlock Operation in last interval
  5813. @return number of operations]]>
  5814. </doc>
  5815. </method>
  5816. <method name="getCopyBlockOpAverageTime" return="long"
  5817. abstract="false" native="false" synchronized="false"
  5818. static="false" final="false" visibility="public"
  5819. deprecated="not deprecated">
  5820. <doc>
  5821. <![CDATA[Average time for CopyBlock Operation in last interval
  5822. @return time in msec]]>
  5823. </doc>
  5824. </method>
  5825. <method name="getCopyBlockOpMinTime" return="long"
  5826. abstract="false" native="false" synchronized="false"
  5827. static="false" final="false" visibility="public"
  5828. deprecated="not deprecated">
  5829. <doc>
  5830. <![CDATA[The Minimum CopyBlock Operation Time since reset was called
  5831. @return time in msec]]>
  5832. </doc>
  5833. </method>
  5834. <method name="getCopyBlockOpMaxTime" return="long"
  5835. abstract="false" native="false" synchronized="false"
  5836. static="false" final="false" visibility="public"
  5837. deprecated="not deprecated">
  5838. <doc>
  5839. <![CDATA[The Maximum CopyBlock Operation Time since reset was called
  5840. @return time in msec]]>
  5841. </doc>
  5842. </method>
  5843. <method name="getReplaceBlockOpNum" return="int"
  5844. abstract="false" native="false" synchronized="false"
  5845. static="false" final="false" visibility="public"
  5846. deprecated="not deprecated">
  5847. <doc>
  5848. <![CDATA[Number of ReplaceBlock Operation in last interval
  5849. @return number of operations]]>
  5850. </doc>
  5851. </method>
  5852. <method name="getReplaceBlockOpAverageTime" return="long"
  5853. abstract="false" native="false" synchronized="false"
  5854. static="false" final="false" visibility="public"
  5855. deprecated="not deprecated">
  5856. <doc>
  5857. <![CDATA[Average time for ReplaceBlock Operation in last interval
  5858. @return time in msec]]>
  5859. </doc>
  5860. </method>
  5861. <method name="getReplaceBlockOpMinTime" return="long"
  5862. abstract="false" native="false" synchronized="false"
  5863. static="false" final="false" visibility="public"
  5864. deprecated="not deprecated">
  5865. <doc>
  5866. <![CDATA[The Minimum ReplaceBlock Operation Time since reset was called
  5867. @return time in msec]]>
  5868. </doc>
  5869. </method>
  5870. <method name="getReplaceBlockOpMaxTime" return="long"
  5871. abstract="false" native="false" synchronized="false"
  5872. static="false" final="false" visibility="public"
  5873. deprecated="not deprecated">
  5874. <doc>
  5875. <![CDATA[The Maximum ReplaceBlock Operation Time since reset was called
  5876. @return time in msec]]>
  5877. </doc>
  5878. </method>
  5879. <method name="getBlockReportsNum" return="int"
  5880. abstract="false" native="false" synchronized="false"
  5881. static="false" final="false" visibility="public"
  5882. deprecated="not deprecated">
  5883. <doc>
  5884. <![CDATA[Number of Block Reports sent in last interval
  5885. @return number of operations]]>
  5886. </doc>
  5887. </method>
  5888. <method name="getBlockReportsAverageTime" return="long"
  5889. abstract="false" native="false" synchronized="false"
  5890. static="false" final="false" visibility="public"
  5891. deprecated="not deprecated">
  5892. <doc>
  5893. <![CDATA[Average time for Block Reports Operation in last interval
  5894. @return time in msec]]>
  5895. </doc>
  5896. </method>
  5897. <method name="getBlockReportsMinTime" return="long"
  5898. abstract="false" native="false" synchronized="false"
  5899. static="false" final="false" visibility="public"
  5900. deprecated="not deprecated">
  5901. <doc>
  5902. <![CDATA[The Minimum Block Reports Operation Time since reset was called
  5903. @return time in msec]]>
  5904. </doc>
  5905. </method>
  5906. <method name="getBlockReportsMaxTime" return="long"
  5907. abstract="false" native="false" synchronized="false"
  5908. static="false" final="false" visibility="public"
  5909. deprecated="not deprecated">
  5910. <doc>
  5911. <![CDATA[The Maximum Block Reports Operation Time since reset was called
  5912. @return time in msec]]>
  5913. </doc>
  5914. </method>
  5915. <method name="getHeartbeatsNum" return="int"
  5916. abstract="false" native="false" synchronized="false"
  5917. static="false" final="false" visibility="public"
  5918. deprecated="not deprecated">
  5919. <doc>
  5920. <![CDATA[Number of Heartbeat Operation in last interval
  5921. @return number of operations]]>
  5922. </doc>
  5923. </method>
  5924. <method name="getHeartbeatsAverageTime" return="long"
  5925. abstract="false" native="false" synchronized="false"
  5926. static="false" final="false" visibility="public"
  5927. deprecated="not deprecated">
  5928. <doc>
  5929. <![CDATA[Average time for Heartbeat Operation in last interval
  5930. @return time in msec]]>
  5931. </doc>
  5932. </method>
  5933. <method name="getHeartbeatsMinTime" return="long"
  5934. abstract="false" native="false" synchronized="false"
  5935. static="false" final="false" visibility="public"
  5936. deprecated="not deprecated">
  5937. <doc>
  5938. <![CDATA[The Minimum Heartbeat Operation Time since reset was called
  5939. @return time in msec]]>
  5940. </doc>
  5941. </method>
  5942. <method name="getHeartbeatsMaxTime" return="long"
  5943. abstract="false" native="false" synchronized="false"
  5944. static="false" final="false" visibility="public"
  5945. deprecated="not deprecated">
  5946. <doc>
  5947. <![CDATA[The Maximum Heartbeat Operation Time since reset was called
  5948. @return time in msec]]>
  5949. </doc>
  5950. </method>
  5951. <method name="resetAllMinMax"
  5952. abstract="false" native="false" synchronized="false"
  5953. static="false" final="false" visibility="public"
  5954. deprecated="not deprecated">
  5955. <doc>
  5956. <![CDATA[Reset all min max times]]>
  5957. </doc>
  5958. </method>
  5959. <doc>
  5960. <![CDATA[This is the JMX interface for the runtime statistics for the data node.
  5961. Many of the statistics are sampled and averaged on an interval
  5962. which can be specified in the config file.
  5963. <p>
  5964. For the statistics that are sampled and averaged, one must specify
  5965. a metrics context that does periodic update calls. Most do.
  5966. The default Null metrics context however does NOT. So if you aren't
  5967. using any other metrics context then you can turn on the viewing and averaging
  5968. of sampled metrics by specifying the following two lines
  5969. in the hadoop-meterics.properties file:
  5970. <pre>
  5971. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  5972. dfs.period=10
  5973. </pre>
  5974. <p>
  5975. Note that the metrics are collected regardless of the context used.
  5976. The context with the update thread is used to average the data periodically.
  5977. <p>
  5978. Name Node Status info is reported in another MBean
  5979. @see org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean]]>
  5980. </doc>
  5981. </interface>
  5982. <!-- end interface org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean -->
  5983. <!-- start interface org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean -->
  5984. <interface name="FSDatasetMBean" abstract="true"
  5985. static="false" final="false" visibility="public"
  5986. deprecated="not deprecated">
  5987. <method name="getDfsUsed" return="long"
  5988. abstract="false" native="false" synchronized="false"
  5989. static="false" final="false" visibility="public"
  5990. deprecated="not deprecated">
  5991. <exception name="IOException" type="java.io.IOException"/>
  5992. <doc>
  5993. <![CDATA[Returns the total space (in bytes) used by dfs datanode
  5994. @return the total space used by dfs datanode
  5995. @throws IOException]]>
  5996. </doc>
  5997. </method>
  5998. <method name="getCapacity" return="long"
  5999. abstract="false" native="false" synchronized="false"
  6000. static="false" final="false" visibility="public"
  6001. deprecated="not deprecated">
  6002. <exception name="IOException" type="java.io.IOException"/>
  6003. <doc>
  6004. <![CDATA[Returns total capacity (in bytes) of storage (used and unused)
  6005. @return total capacity of storage (used and unused)
  6006. @throws IOException]]>
  6007. </doc>
  6008. </method>
  6009. <method name="getRemaining" return="long"
  6010. abstract="false" native="false" synchronized="false"
  6011. static="false" final="false" visibility="public"
  6012. deprecated="not deprecated">
  6013. <exception name="IOException" type="java.io.IOException"/>
  6014. <doc>
  6015. <![CDATA[Returns the amount of free storage space (in bytes)
  6016. @return The amount of free storage space
  6017. @throws IOException]]>
  6018. </doc>
  6019. </method>
  6020. <method name="getStorageInfo" return="java.lang.String"
  6021. abstract="false" native="false" synchronized="false"
  6022. static="false" final="false" visibility="public"
  6023. deprecated="not deprecated">
  6024. <doc>
  6025. <![CDATA[Returns the storage id of the underlying storage]]>
  6026. </doc>
  6027. </method>
  6028. <doc>
  6029. <![CDATA[This Interface defines the methods to get the status of a the FSDataset of
  6030. a data node.
  6031. It is also used for publishing via JMX (hence we follow the JMX naming
  6032. convention.)
  6033. <p>
  6034. Data Node runtime statistic info is report in another MBean
  6035. @see org.apache.hadoop.dfs.datanode.metrics.DataNodeStatisticsMBean]]>
  6036. </doc>
  6037. </interface>
  6038. <!-- end interface org.apache.hadoop.dfs.datanode.metrics.FSDatasetMBean -->
  6039. </package>
  6040. <package name="org.apache.hadoop.dfs.namenode.metrics">
  6041. <!-- start interface org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean -->
  6042. <interface name="FSNamesystemMBean" abstract="true"
  6043. static="false" final="false" visibility="public"
  6044. deprecated="not deprecated">
  6045. <method name="getFSState" return="java.lang.String"
  6046. abstract="false" native="false" synchronized="false"
  6047. static="false" final="false" visibility="public"
  6048. deprecated="not deprecated">
  6049. <doc>
  6050. <![CDATA[The state of the file system: Safemode or Operational
  6051. @return the state]]>
  6052. </doc>
  6053. </method>
  6054. <method name="getBlocksTotal" return="long"
  6055. abstract="false" native="false" synchronized="false"
  6056. static="false" final="false" visibility="public"
  6057. deprecated="not deprecated">
  6058. <doc>
  6059. <![CDATA[Number of allocated blocks in the system
  6060. @return - number of allocated blocks]]>
  6061. </doc>
  6062. </method>
  6063. <method name="getCapacityTotal" return="long"
  6064. abstract="false" native="false" synchronized="false"
  6065. static="false" final="false" visibility="public"
  6066. deprecated="not deprecated">
  6067. <doc>
  6068. <![CDATA[Total storage capacity
  6069. @return - total capacity in bytes]]>
  6070. </doc>
  6071. </method>
  6072. <method name="getCapacityRemaining" return="long"
  6073. abstract="false" native="false" synchronized="false"
  6074. static="false" final="false" visibility="public"
  6075. deprecated="not deprecated">
  6076. <doc>
  6077. <![CDATA[Free (unused) storage capacity
  6078. @return - free capacity in bytes]]>
  6079. </doc>
  6080. </method>
  6081. <method name="getCapacityUsed" return="long"
  6082. abstract="false" native="false" synchronized="false"
  6083. static="false" final="false" visibility="public"
  6084. deprecated="not deprecated">
  6085. <doc>
  6086. <![CDATA[Used storage capacity
  6087. @return - used capacity in bytes]]>
  6088. </doc>
  6089. </method>
  6090. <method name="getFilesTotal" return="long"
  6091. abstract="false" native="false" synchronized="false"
  6092. static="false" final="false" visibility="public"
  6093. deprecated="not deprecated">
  6094. <doc>
  6095. <![CDATA[Total number of files and directories
  6096. @return - num of files and directories]]>
  6097. </doc>
  6098. </method>
  6099. <method name="getPendingReplicationBlocks" return="long"
  6100. abstract="false" native="false" synchronized="false"
  6101. static="false" final="false" visibility="public"
  6102. deprecated="not deprecated">
  6103. <doc>
  6104. <![CDATA[Blocks pending to be replicated
  6105. @return - num of blocks to be replicated]]>
  6106. </doc>
  6107. </method>
  6108. <method name="getUnderReplicatedBlocks" return="long"
  6109. abstract="false" native="false" synchronized="false"
  6110. static="false" final="false" visibility="public"
  6111. deprecated="not deprecated">
  6112. <doc>
  6113. <![CDATA[Blocks under replicated
  6114. @return - num of blocks under replicated]]>
  6115. </doc>
  6116. </method>
  6117. <method name="getScheduledReplicationBlocks" return="long"
  6118. abstract="false" native="false" synchronized="false"
  6119. static="false" final="false" visibility="public"
  6120. deprecated="not deprecated">
  6121. <doc>
  6122. <![CDATA[Blocks scheduled for replication
  6123. @return - num of blocks scheduled for replication]]>
  6124. </doc>
  6125. </method>
  6126. <method name="getTotalLoad" return="int"
  6127. abstract="false" native="false" synchronized="false"
  6128. static="false" final="false" visibility="public"
  6129. deprecated="not deprecated">
  6130. <doc>
  6131. <![CDATA[Total Load on the FSNamesystem
  6132. @return - total load of FSNamesystem]]>
  6133. </doc>
  6134. </method>
  6135. <method name="numLiveDataNodes" return="int"
  6136. abstract="false" native="false" synchronized="false"
  6137. static="false" final="false" visibility="public"
  6138. deprecated="not deprecated">
  6139. <doc>
  6140. <![CDATA[Number of Live data nodes
  6141. @return number of live data nodes]]>
  6142. </doc>
  6143. </method>
  6144. <method name="numDeadDataNodes" return="int"
  6145. abstract="false" native="false" synchronized="false"
  6146. static="false" final="false" visibility="public"
  6147. deprecated="not deprecated">
  6148. <doc>
  6149. <![CDATA[Number of dead data nodes
  6150. @return number of dead data nodes]]>
  6151. </doc>
  6152. </method>
  6153. <doc>
  6154. <![CDATA[This Interface defines the methods to get the status of a the FSNamesystem of
  6155. a name node.
  6156. It is also used for publishing via JMX (hence we follow the JMX naming
  6157. convention.)
  6158. <p>
  6159. Name Node runtime statistic info is report in another MBean
  6160. @see org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean]]>
  6161. </doc>
  6162. </interface>
  6163. <!-- end interface org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean -->
  6164. <!-- start class org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics -->
  6165. <class name="NameNodeStatistics" extends="java.lang.Object"
  6166. abstract="false"
  6167. static="false" final="false" visibility="public"
  6168. deprecated="not deprecated">
  6169. <implements name="org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean"/>
  6170. <constructor name="NameNodeStatistics" type="org.apache.hadoop.dfs.NameNodeMetrics"
  6171. static="false" final="false" visibility="public"
  6172. deprecated="not deprecated">
  6173. <doc>
  6174. <![CDATA[This constructs and registers the NameNodeStatisticsMBean
  6175. @param nameNodeMetrics - the metrics from which the mbean gets its info]]>
  6176. </doc>
  6177. </constructor>
  6178. <method name="shutdown"
  6179. abstract="false" native="false" synchronized="false"
  6180. static="false" final="false" visibility="public"
  6181. deprecated="not deprecated">
  6182. <doc>
  6183. <![CDATA[Shuts down the statistics
  6184. - unregisters the mbean]]>
  6185. </doc>
  6186. </method>
  6187. <method name="getBlockReportAverageTime" return="long"
  6188. abstract="false" native="false" synchronized="false"
  6189. static="false" final="false" visibility="public"
  6190. deprecated="not deprecated">
  6191. <doc>
  6192. <![CDATA[@inheritDoc]]>
  6193. </doc>
  6194. </method>
  6195. <method name="getBlockReportMaxTime" return="long"
  6196. abstract="false" native="false" synchronized="false"
  6197. static="false" final="false" visibility="public"
  6198. deprecated="not deprecated">
  6199. <doc>
  6200. <![CDATA[@inheritDoc]]>
  6201. </doc>
  6202. </method>
  6203. <method name="getBlockReportMinTime" return="long"
  6204. abstract="false" native="false" synchronized="false"
  6205. static="false" final="false" visibility="public"
  6206. deprecated="not deprecated">
  6207. <doc>
  6208. <![CDATA[@inheritDoc]]>
  6209. </doc>
  6210. </method>
  6211. <method name="getBlockReportNum" return="int"
  6212. abstract="false" native="false" synchronized="false"
  6213. static="false" final="false" visibility="public"
  6214. deprecated="not deprecated">
  6215. <doc>
  6216. <![CDATA[@inheritDoc]]>
  6217. </doc>
  6218. </method>
  6219. <method name="getJournalTransactionAverageTime" return="long"
  6220. abstract="false" native="false" synchronized="false"
  6221. static="false" final="false" visibility="public"
  6222. deprecated="not deprecated">
  6223. <doc>
  6224. <![CDATA[@inheritDoc]]>
  6225. </doc>
  6226. </method>
  6227. <method name="getJournalTransactionNum" return="int"
  6228. abstract="false" native="false" synchronized="false"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <doc>
  6232. <![CDATA[@inheritDoc]]>
  6233. </doc>
  6234. </method>
  6235. <method name="getJournalTransactionMaxTime" return="long"
  6236. abstract="false" native="false" synchronized="false"
  6237. static="false" final="false" visibility="public"
  6238. deprecated="not deprecated">
  6239. <doc>
  6240. <![CDATA[@inheritDoc]]>
  6241. </doc>
  6242. </method>
  6243. <method name="getJournalTransactionMinTime" return="long"
  6244. abstract="false" native="false" synchronized="false"
  6245. static="false" final="false" visibility="public"
  6246. deprecated="not deprecated">
  6247. <doc>
  6248. <![CDATA[@inheritDoc]]>
  6249. </doc>
  6250. </method>
  6251. <method name="getJournalSyncAverageTime" return="long"
  6252. abstract="false" native="false" synchronized="false"
  6253. static="false" final="false" visibility="public"
  6254. deprecated="not deprecated">
  6255. <doc>
  6256. <![CDATA[@inheritDoc]]>
  6257. </doc>
  6258. </method>
  6259. <method name="getJournalSyncMaxTime" return="long"
  6260. abstract="false" native="false" synchronized="false"
  6261. static="false" final="false" visibility="public"
  6262. deprecated="not deprecated">
  6263. <doc>
  6264. <![CDATA[@inheritDoc]]>
  6265. </doc>
  6266. </method>
  6267. <method name="getJournalSyncMinTime" return="long"
  6268. abstract="false" native="false" synchronized="false"
  6269. static="false" final="false" visibility="public"
  6270. deprecated="not deprecated">
  6271. <doc>
  6272. <![CDATA[@inheritDoc]]>
  6273. </doc>
  6274. </method>
  6275. <method name="getJournalSyncNum" return="int"
  6276. abstract="false" native="false" synchronized="false"
  6277. static="false" final="false" visibility="public"
  6278. deprecated="not deprecated">
  6279. <doc>
  6280. <![CDATA[@inheritDoc]]>
  6281. </doc>
  6282. </method>
  6283. <method name="getSafemodeTime" return="int"
  6284. abstract="false" native="false" synchronized="false"
  6285. static="false" final="false" visibility="public"
  6286. deprecated="not deprecated">
  6287. <doc>
  6288. <![CDATA[@inheritDoc]]>
  6289. </doc>
  6290. </method>
  6291. <method name="getFSImageLoadTime" return="int"
  6292. abstract="false" native="false" synchronized="false"
  6293. static="false" final="false" visibility="public"
  6294. deprecated="not deprecated">
  6295. <doc>
  6296. <![CDATA[@inheritDoc]]>
  6297. </doc>
  6298. </method>
  6299. <method name="resetAllMinMax"
  6300. abstract="false" native="false" synchronized="false"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <doc>
  6304. <![CDATA[@inheritDoc]]>
  6305. </doc>
  6306. </method>
  6307. <method name="getNumFilesCreated" return="int"
  6308. abstract="false" native="false" synchronized="false"
  6309. static="false" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <doc>
  6312. <![CDATA[@inheritDoc]]>
  6313. </doc>
  6314. </method>
  6315. <method name="getNumFilesListed" return="int"
  6316. abstract="false" native="false" synchronized="false"
  6317. static="false" final="false" visibility="public"
  6318. deprecated="call getNumGetListingOps() instead">
  6319. <doc>
  6320. <![CDATA[@deprecated call getNumGetListingOps() instead]]>
  6321. </doc>
  6322. </method>
  6323. <method name="getNumGetListingOps" return="int"
  6324. abstract="false" native="false" synchronized="false"
  6325. static="false" final="false" visibility="public"
  6326. deprecated="not deprecated">
  6327. <doc>
  6328. <![CDATA[@inheritDoc]]>
  6329. </doc>
  6330. </method>
  6331. <method name="getNumCreateFileOps" return="int"
  6332. abstract="false" native="false" synchronized="false"
  6333. static="false" final="false" visibility="public"
  6334. deprecated="not deprecated">
  6335. <doc>
  6336. <![CDATA[@inheritDoc]]>
  6337. </doc>
  6338. </method>
  6339. <method name="getNumDeleteFileOps" return="int"
  6340. abstract="false" native="false" synchronized="false"
  6341. static="false" final="false" visibility="public"
  6342. deprecated="not deprecated">
  6343. <doc>
  6344. <![CDATA[@inheritDoc]]>
  6345. </doc>
  6346. </method>
  6347. <method name="getNumAddBlockOps" return="int"
  6348. abstract="false" native="false" synchronized="false"
  6349. static="false" final="false" visibility="public"
  6350. deprecated="not deprecated">
  6351. <doc>
  6352. <![CDATA[@inheritDoc]]>
  6353. </doc>
  6354. </method>
  6355. <method name="getNumGetBlockLocations" return="int"
  6356. abstract="false" native="false" synchronized="false"
  6357. static="false" final="false" visibility="public"
  6358. deprecated="not deprecated">
  6359. <doc>
  6360. <![CDATA[@inheritDoc]]>
  6361. </doc>
  6362. </method>
  6363. <method name="getNumFilesRenamed" return="int"
  6364. abstract="false" native="false" synchronized="false"
  6365. static="false" final="false" visibility="public"
  6366. deprecated="not deprecated">
  6367. <doc>
  6368. <![CDATA[@inheritDoc]]>
  6369. </doc>
  6370. </method>
  6371. <doc>
  6372. <![CDATA[This is the implementation of the Name Node JMX MBean]]>
  6373. </doc>
  6374. </class>
  6375. <!-- end class org.apache.hadoop.dfs.namenode.metrics.NameNodeStatistics -->
  6376. <!-- start interface org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean -->
  6377. <interface name="NameNodeStatisticsMBean" abstract="true"
  6378. static="false" final="false" visibility="public"
  6379. deprecated="not deprecated">
  6380. <method name="getSafemodeTime" return="int"
  6381. abstract="false" native="false" synchronized="false"
  6382. static="false" final="false" visibility="public"
  6383. deprecated="not deprecated">
  6384. <doc>
  6385. <![CDATA[The time spent in the Safemode at startup
  6386. @return time in msec]]>
  6387. </doc>
  6388. </method>
  6389. <method name="getFSImageLoadTime" return="int"
  6390. abstract="false" native="false" synchronized="false"
  6391. static="false" final="false" visibility="public"
  6392. deprecated="not deprecated">
  6393. <doc>
  6394. <![CDATA[Time spent loading the FS Image at startup
  6395. @return time in msec]]>
  6396. </doc>
  6397. </method>
  6398. <method name="getJournalTransactionNum" return="int"
  6399. abstract="false" native="false" synchronized="false"
  6400. static="false" final="false" visibility="public"
  6401. deprecated="not deprecated">
  6402. <doc>
  6403. <![CDATA[Number of Journal Transactions in the last interval
  6404. @return number of operations]]>
  6405. </doc>
  6406. </method>
  6407. <method name="getJournalTransactionAverageTime" return="long"
  6408. abstract="false" native="false" synchronized="false"
  6409. static="false" final="false" visibility="public"
  6410. deprecated="not deprecated">
  6411. <doc>
  6412. <![CDATA[Average time for Journal transactions in last interval
  6413. @return time in msec]]>
  6414. </doc>
  6415. </method>
  6416. <method name="getJournalTransactionMinTime" return="long"
  6417. abstract="false" native="false" synchronized="false"
  6418. static="false" final="false" visibility="public"
  6419. deprecated="not deprecated">
  6420. <doc>
  6421. <![CDATA[The Minimum Journal Transaction Time since reset was called
  6422. @return time in msec]]>
  6423. </doc>
  6424. </method>
  6425. <method name="getJournalTransactionMaxTime" return="long"
  6426. abstract="false" native="false" synchronized="false"
  6427. static="false" final="false" visibility="public"
  6428. deprecated="not deprecated">
  6429. <doc>
  6430. <![CDATA[The Maximum Journal Transaction Time since reset was called
  6431. @return time in msec]]>
  6432. </doc>
  6433. </method>
  6434. <method name="getBlockReportNum" return="int"
  6435. abstract="false" native="false" synchronized="false"
  6436. static="false" final="false" visibility="public"
  6437. deprecated="not deprecated">
  6438. <doc>
  6439. <![CDATA[Number of block Reports processed in the last interval
  6440. @return number of operations]]>
  6441. </doc>
  6442. </method>
  6443. <method name="getBlockReportAverageTime" return="long"
  6444. abstract="false" native="false" synchronized="false"
  6445. static="false" final="false" visibility="public"
  6446. deprecated="not deprecated">
  6447. <doc>
  6448. <![CDATA[Average time for Block Report Processing in last interval
  6449. @return time in msec]]>
  6450. </doc>
  6451. </method>
  6452. <method name="getBlockReportMinTime" return="long"
  6453. abstract="false" native="false" synchronized="false"
  6454. static="false" final="false" visibility="public"
  6455. deprecated="not deprecated">
  6456. <doc>
  6457. <![CDATA[The Minimum Block Report Processing Time since reset was called
  6458. @return time in msec]]>
  6459. </doc>
  6460. </method>
  6461. <method name="getBlockReportMaxTime" return="long"
  6462. abstract="false" native="false" synchronized="false"
  6463. static="false" final="false" visibility="public"
  6464. deprecated="not deprecated">
  6465. <doc>
  6466. <![CDATA[The Maximum Block Report Processing Time since reset was called
  6467. @return time in msec]]>
  6468. </doc>
  6469. </method>
  6470. <method name="getJournalSyncNum" return="int"
  6471. abstract="false" native="false" synchronized="false"
  6472. static="false" final="false" visibility="public"
  6473. deprecated="not deprecated">
  6474. <doc>
  6475. <![CDATA[Number of Journal Syncs in the last interval
  6476. @return number of operations]]>
  6477. </doc>
  6478. </method>
  6479. <method name="getJournalSyncAverageTime" return="long"
  6480. abstract="false" native="false" synchronized="false"
  6481. static="false" final="false" visibility="public"
  6482. deprecated="not deprecated">
  6483. <doc>
  6484. <![CDATA[Average time for Journal Sync in last interval
  6485. @return time in msec]]>
  6486. </doc>
  6487. </method>
  6488. <method name="getJournalSyncMinTime" return="long"
  6489. abstract="false" native="false" synchronized="false"
  6490. static="false" final="false" visibility="public"
  6491. deprecated="not deprecated">
  6492. <doc>
  6493. <![CDATA[The Minimum Journal Sync Time since reset was called
  6494. @return time in msec]]>
  6495. </doc>
  6496. </method>
  6497. <method name="getJournalSyncMaxTime" return="long"
  6498. abstract="false" native="false" synchronized="false"
  6499. static="false" final="false" visibility="public"
  6500. deprecated="not deprecated">
  6501. <doc>
  6502. <![CDATA[The Maximum Journal Sync Time since reset was called
  6503. @return time in msec]]>
  6504. </doc>
  6505. </method>
  6506. <method name="resetAllMinMax"
  6507. abstract="false" native="false" synchronized="false"
  6508. static="false" final="false" visibility="public"
  6509. deprecated="not deprecated">
  6510. <doc>
  6511. <![CDATA[Reset all min max times]]>
  6512. </doc>
  6513. </method>
  6514. <method name="getNumFilesCreated" return="int"
  6515. abstract="false" native="false" synchronized="false"
  6516. static="false" final="false" visibility="public"
  6517. deprecated="not deprecated">
  6518. <doc>
  6519. <![CDATA[Number of files created in the last interval
  6520. @return number of operations]]>
  6521. </doc>
  6522. </method>
  6523. <method name="getNumGetBlockLocations" return="int"
  6524. abstract="false" native="false" synchronized="false"
  6525. static="false" final="false" visibility="public"
  6526. deprecated="not deprecated">
  6527. <doc>
  6528. <![CDATA[Number of
  6529. {@link org.apache.hadoop.dfs.NameNode#getBlockLocations(String,long,long)}
  6530. @return number of operations]]>
  6531. </doc>
  6532. </method>
  6533. <method name="getNumFilesRenamed" return="int"
  6534. abstract="false" native="false" synchronized="false"
  6535. static="false" final="false" visibility="public"
  6536. deprecated="not deprecated">
  6537. <doc>
  6538. <![CDATA[Number of files renamed in the last interval
  6539. @return number of operations]]>
  6540. </doc>
  6541. </method>
  6542. <method name="getNumFilesListed" return="int"
  6543. abstract="false" native="false" synchronized="false"
  6544. static="false" final="false" visibility="public"
  6545. deprecated="Use getNumGetListingOps() instead">
  6546. <doc>
  6547. <![CDATA[Number of files listed in the last interval
  6548. @return number of operations
  6549. @deprecated Use getNumGetListingOps() instead]]>
  6550. </doc>
  6551. </method>
  6552. <method name="getNumGetListingOps" return="int"
  6553. abstract="false" native="false" synchronized="false"
  6554. static="false" final="false" visibility="public"
  6555. deprecated="not deprecated">
  6556. <doc>
  6557. <![CDATA[Number of files listed in the last interval
  6558. @return number of operations]]>
  6559. </doc>
  6560. </method>
  6561. <method name="getNumCreateFileOps" return="int"
  6562. abstract="false" native="false" synchronized="false"
  6563. static="false" final="false" visibility="public"
  6564. deprecated="not deprecated">
  6565. <doc>
  6566. <![CDATA[Number of file creation operations in the last interval
  6567. @return number of file creation operations]]>
  6568. </doc>
  6569. </method>
  6570. <method name="getNumDeleteFileOps" return="int"
  6571. abstract="false" native="false" synchronized="false"
  6572. static="false" final="false" visibility="public"
  6573. deprecated="not deprecated">
  6574. <doc>
  6575. <![CDATA[Number of file deletion operations in the last interval
  6576. @return number of file deletion operations]]>
  6577. </doc>
  6578. </method>
  6579. <method name="getNumAddBlockOps" return="int"
  6580. abstract="false" native="false" synchronized="false"
  6581. static="false" final="false" visibility="public"
  6582. deprecated="not deprecated">
  6583. <doc>
  6584. <![CDATA[Number of add block operations in the last interval
  6585. @return number of add block operations]]>
  6586. </doc>
  6587. </method>
  6588. <doc>
  6589. <![CDATA[This is the JMX management interface for getting runtime statistics of
  6590. the name node.
  6591. Many of the statistics are sampled and averaged on an interval
  6592. which can be specified in the config file.
  6593. <p>
  6594. For the statistics that are sampled and averaged, one must specify
  6595. a metrics context that does periodic update calls. Most do.
  6596. The default Null metrics context however does NOT. So if you aren't
  6597. using any other metrics context then you can turn on the viewing and averaging
  6598. of sampled metrics by specifying the following two lines
  6599. in the hadoop-meterics.properties file:
  6600. <pre>
  6601. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  6602. dfs.period=10
  6603. </pre>
  6604. <p>
  6605. Note that the metrics are collected regardless of the context used.
  6606. The context with the update thread is used to average the data periodically.
  6607. <p>
  6608. Name Node Status info is report in another MBean
  6609. @see org.apache.hadoop.dfs.namenode.metrics.FSNamesystemMBean]]>
  6610. </doc>
  6611. </interface>
  6612. <!-- end interface org.apache.hadoop.dfs.namenode.metrics.NameNodeStatisticsMBean -->
  6613. </package>
  6614. <package name="org.apache.hadoop.filecache">
  6615. <!-- start class org.apache.hadoop.filecache.DistributedCache -->
  6616. <class name="DistributedCache" extends="java.lang.Object"
  6617. abstract="false"
  6618. static="false" final="false" visibility="public"
  6619. deprecated="not deprecated">
  6620. <constructor name="DistributedCache"
  6621. static="false" final="false" visibility="public"
  6622. deprecated="not deprecated">
  6623. </constructor>
  6624. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  6625. abstract="false" native="false" synchronized="false"
  6626. static="true" final="false" visibility="public"
  6627. deprecated="not deprecated">
  6628. <param name="cache" type="java.net.URI"/>
  6629. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6630. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  6631. <param name="fileStatus" type="org.apache.hadoop.fs.FileStatus"/>
  6632. <param name="isArchive" type="boolean"/>
  6633. <param name="confFileStamp" type="long"/>
  6634. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  6635. <exception name="IOException" type="java.io.IOException"/>
  6636. <doc>
  6637. <![CDATA[Get the locally cached file or archive; it could either be
  6638. previously cached (and valid) or copy it from the {@link FileSystem} now.
  6639. @param cache the cache to be localized, this should be specified as
  6640. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  6641. or hostname:port is provided the file is assumed to be in the filesystem
  6642. being used in the Configuration
  6643. @param conf The Confguration file which contains the filesystem
  6644. @param baseDir The base cache Dir where you wnat to localize the files/archives
  6645. @param fileStatus The file status on the dfs.
  6646. @param isArchive if the cache is an archive or a file. In case it is an
  6647. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  6648. be unzipped/unjarred/untarred automatically
  6649. and the directory where the archive is unzipped/unjarred/untarred is
  6650. returned as the Path.
  6651. In case of a file, the path to the file is returned
  6652. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  6653. file to be cached hasn't changed since the job started
  6654. @param currentWorkDir this is the directory where you would want to create symlinks
  6655. for the locally cached files/archives
  6656. @return the path to directory where the archives are unjarred in case of archives,
  6657. the path to the file where the file is copied locally
  6658. @throws IOException]]>
  6659. </doc>
  6660. </method>
  6661. <method name="getLocalCache" return="org.apache.hadoop.fs.Path"
  6662. abstract="false" native="false" synchronized="false"
  6663. static="true" final="false" visibility="public"
  6664. deprecated="not deprecated">
  6665. <param name="cache" type="java.net.URI"/>
  6666. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6667. <param name="baseDir" type="org.apache.hadoop.fs.Path"/>
  6668. <param name="isArchive" type="boolean"/>
  6669. <param name="confFileStamp" type="long"/>
  6670. <param name="currentWorkDir" type="org.apache.hadoop.fs.Path"/>
  6671. <exception name="IOException" type="java.io.IOException"/>
  6672. <doc>
  6673. <![CDATA[Get the locally cached file or archive; it could either be
  6674. previously cached (and valid) or copy it from the {@link FileSystem} now.
  6675. @param cache the cache to be localized, this should be specified as
  6676. new URI(hdfs://hostname:port/absolute_path_to_file#LINKNAME). If no schema
  6677. or hostname:port is provided the file is assumed to be in the filesystem
  6678. being used in the Configuration
  6679. @param conf The Confguration file which contains the filesystem
  6680. @param baseDir The base cache Dir where you wnat to localize the files/archives
  6681. @param isArchive if the cache is an archive or a file. In case it is an
  6682. archive with a .zip or .jar or .tar or .tgz or .tar.gz extension it will
  6683. be unzipped/unjarred/untarred automatically
  6684. and the directory where the archive is unzipped/unjarred/untarred
  6685. is returned as the Path.
  6686. In case of a file, the path to the file is returned
  6687. @param confFileStamp this is the hdfs file modification timestamp to verify that the
  6688. file to be cached hasn't changed since the job started
  6689. @param currentWorkDir this is the directory where you would want to create symlinks
  6690. for the locally cached files/archives
  6691. @return the path to directory where the archives are unjarred in case of archives,
  6692. the path to the file where the file is copied locally
  6693. @throws IOException]]>
  6694. </doc>
  6695. </method>
  6696. <method name="releaseCache"
  6697. abstract="false" native="false" synchronized="false"
  6698. static="true" final="false" visibility="public"
  6699. deprecated="not deprecated">
  6700. <param name="cache" type="java.net.URI"/>
  6701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6702. <exception name="IOException" type="java.io.IOException"/>
  6703. <doc>
  6704. <![CDATA[This is the opposite of getlocalcache. When you are done with
  6705. using the cache, you need to release the cache
  6706. @param cache The cache URI to be released
  6707. @param conf configuration which contains the filesystem the cache
  6708. is contained in.
  6709. @throws IOException]]>
  6710. </doc>
  6711. </method>
  6712. <method name="makeRelative" return="java.lang.String"
  6713. abstract="false" native="false" synchronized="false"
  6714. static="true" final="false" visibility="public"
  6715. deprecated="not deprecated">
  6716. <param name="cache" type="java.net.URI"/>
  6717. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6718. <exception name="IOException" type="java.io.IOException"/>
  6719. </method>
  6720. <method name="getTimestamp" return="long"
  6721. abstract="false" native="false" synchronized="false"
  6722. static="true" final="false" visibility="public"
  6723. deprecated="not deprecated">
  6724. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6725. <param name="cache" type="java.net.URI"/>
  6726. <exception name="IOException" type="java.io.IOException"/>
  6727. <doc>
  6728. <![CDATA[Returns mtime of a given cache file on hdfs.
  6729. @param conf configuration
  6730. @param cache cache file
  6731. @return mtime of a given cache file on hdfs
  6732. @throws IOException]]>
  6733. </doc>
  6734. </method>
  6735. <method name="createAllSymlink"
  6736. abstract="false" native="false" synchronized="false"
  6737. static="true" final="false" visibility="public"
  6738. deprecated="not deprecated">
  6739. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6740. <param name="jobCacheDir" type="java.io.File"/>
  6741. <param name="workDir" type="java.io.File"/>
  6742. <exception name="IOException" type="java.io.IOException"/>
  6743. <doc>
  6744. <![CDATA[This method create symlinks for all files in a given dir in another directory
  6745. @param conf the configuration
  6746. @param jobCacheDir the target directory for creating symlinks
  6747. @param workDir the directory in which the symlinks are created
  6748. @throws IOException]]>
  6749. </doc>
  6750. </method>
  6751. <method name="setCacheArchives"
  6752. abstract="false" native="false" synchronized="false"
  6753. static="true" final="false" visibility="public"
  6754. deprecated="not deprecated">
  6755. <param name="archives" type="java.net.URI[]"/>
  6756. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6757. <doc>
  6758. <![CDATA[Set the configuration with the given set of archives
  6759. @param archives The list of archives that need to be localized
  6760. @param conf Configuration which will be changed]]>
  6761. </doc>
  6762. </method>
  6763. <method name="setCacheFiles"
  6764. abstract="false" native="false" synchronized="false"
  6765. static="true" final="false" visibility="public"
  6766. deprecated="not deprecated">
  6767. <param name="files" type="java.net.URI[]"/>
  6768. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6769. <doc>
  6770. <![CDATA[Set the configuration with the given set of files
  6771. @param files The list of files that need to be localized
  6772. @param conf Configuration which will be changed]]>
  6773. </doc>
  6774. </method>
  6775. <method name="getCacheArchives" return="java.net.URI[]"
  6776. abstract="false" native="false" synchronized="false"
  6777. static="true" final="false" visibility="public"
  6778. deprecated="not deprecated">
  6779. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6780. <exception name="IOException" type="java.io.IOException"/>
  6781. <doc>
  6782. <![CDATA[Get cache archives set in the Configuration
  6783. @param conf The configuration which contains the archives
  6784. @return A URI array of the caches set in the Configuration
  6785. @throws IOException]]>
  6786. </doc>
  6787. </method>
  6788. <method name="getCacheFiles" return="java.net.URI[]"
  6789. abstract="false" native="false" synchronized="false"
  6790. static="true" final="false" visibility="public"
  6791. deprecated="not deprecated">
  6792. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6793. <exception name="IOException" type="java.io.IOException"/>
  6794. <doc>
  6795. <![CDATA[Get cache files set in the Configuration
  6796. @param conf The configuration which contains the files
  6797. @return A URI array of the files set in the Configuration
  6798. @throws IOException]]>
  6799. </doc>
  6800. </method>
  6801. <method name="getLocalCacheArchives" return="org.apache.hadoop.fs.Path[]"
  6802. abstract="false" native="false" synchronized="false"
  6803. static="true" final="false" visibility="public"
  6804. deprecated="not deprecated">
  6805. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6806. <exception name="IOException" type="java.io.IOException"/>
  6807. <doc>
  6808. <![CDATA[Return the path array of the localized caches
  6809. @param conf Configuration that contains the localized archives
  6810. @return A path array of localized caches
  6811. @throws IOException]]>
  6812. </doc>
  6813. </method>
  6814. <method name="getLocalCacheFiles" return="org.apache.hadoop.fs.Path[]"
  6815. abstract="false" native="false" synchronized="false"
  6816. static="true" final="false" visibility="public"
  6817. deprecated="not deprecated">
  6818. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6819. <exception name="IOException" type="java.io.IOException"/>
  6820. <doc>
  6821. <![CDATA[Return the path array of the localized files
  6822. @param conf Configuration that contains the localized files
  6823. @return A path array of localized files
  6824. @throws IOException]]>
  6825. </doc>
  6826. </method>
  6827. <method name="getArchiveTimestamps" return="java.lang.String[]"
  6828. abstract="false" native="false" synchronized="false"
  6829. static="true" final="false" visibility="public"
  6830. deprecated="not deprecated">
  6831. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6832. <doc>
  6833. <![CDATA[Get the timestamps of the archives
  6834. @param conf The configuration which stored the timestamps
  6835. @return a string array of timestamps
  6836. @throws IOException]]>
  6837. </doc>
  6838. </method>
  6839. <method name="getFileTimestamps" return="java.lang.String[]"
  6840. abstract="false" native="false" synchronized="false"
  6841. static="true" final="false" visibility="public"
  6842. deprecated="not deprecated">
  6843. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6844. <doc>
  6845. <![CDATA[Get the timestamps of the files
  6846. @param conf The configuration which stored the timestamps
  6847. @return a string array of timestamps
  6848. @throws IOException]]>
  6849. </doc>
  6850. </method>
  6851. <method name="setArchiveTimestamps"
  6852. abstract="false" native="false" synchronized="false"
  6853. static="true" final="false" visibility="public"
  6854. deprecated="not deprecated">
  6855. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6856. <param name="timestamps" type="java.lang.String"/>
  6857. <doc>
  6858. <![CDATA[This is to check the timestamp of the archives to be localized
  6859. @param conf Configuration which stores the timestamp's
  6860. @param timestamps comma separated list of timestamps of archives.
  6861. The order should be the same as the order in which the archives are added.]]>
  6862. </doc>
  6863. </method>
  6864. <method name="setFileTimestamps"
  6865. abstract="false" native="false" synchronized="false"
  6866. static="true" final="false" visibility="public"
  6867. deprecated="not deprecated">
  6868. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6869. <param name="timestamps" type="java.lang.String"/>
  6870. <doc>
  6871. <![CDATA[This is to check the timestamp of the files to be localized
  6872. @param conf Configuration which stores the timestamp's
  6873. @param timestamps comma separated list of timestamps of files.
  6874. The order should be the same as the order in which the files are added.]]>
  6875. </doc>
  6876. </method>
  6877. <method name="setLocalArchives"
  6878. abstract="false" native="false" synchronized="false"
  6879. static="true" final="false" visibility="public"
  6880. deprecated="not deprecated">
  6881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6882. <param name="str" type="java.lang.String"/>
  6883. <doc>
  6884. <![CDATA[Set the conf to contain the location for localized archives
  6885. @param conf The conf to modify to contain the localized caches
  6886. @param str a comma separated list of local archives]]>
  6887. </doc>
  6888. </method>
  6889. <method name="setLocalFiles"
  6890. abstract="false" native="false" synchronized="false"
  6891. static="true" final="false" visibility="public"
  6892. deprecated="not deprecated">
  6893. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6894. <param name="str" type="java.lang.String"/>
  6895. <doc>
  6896. <![CDATA[Set the conf to contain the location for localized files
  6897. @param conf The conf to modify to contain the localized caches
  6898. @param str a comma separated list of local files]]>
  6899. </doc>
  6900. </method>
  6901. <method name="addCacheArchive"
  6902. abstract="false" native="false" synchronized="false"
  6903. static="true" final="false" visibility="public"
  6904. deprecated="not deprecated">
  6905. <param name="uri" type="java.net.URI"/>
  6906. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6907. <doc>
  6908. <![CDATA[Add a archives to be localized to the conf
  6909. @param uri The uri of the cache to be localized
  6910. @param conf Configuration to add the cache to]]>
  6911. </doc>
  6912. </method>
  6913. <method name="addCacheFile"
  6914. abstract="false" native="false" synchronized="false"
  6915. static="true" final="false" visibility="public"
  6916. deprecated="not deprecated">
  6917. <param name="uri" type="java.net.URI"/>
  6918. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6919. <doc>
  6920. <![CDATA[Add a file to be localized to the conf
  6921. @param uri The uri of the cache to be localized
  6922. @param conf Configuration to add the cache to]]>
  6923. </doc>
  6924. </method>
  6925. <method name="addFileToClassPath"
  6926. abstract="false" native="false" synchronized="false"
  6927. static="true" final="false" visibility="public"
  6928. deprecated="not deprecated">
  6929. <param name="file" type="org.apache.hadoop.fs.Path"/>
  6930. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6931. <exception name="IOException" type="java.io.IOException"/>
  6932. <doc>
  6933. <![CDATA[Add an file path to the current set of classpath entries It adds the file
  6934. to cache as well.
  6935. @param file Path of the file to be added
  6936. @param conf Configuration that contains the classpath setting]]>
  6937. </doc>
  6938. </method>
  6939. <method name="getFileClassPaths" return="org.apache.hadoop.fs.Path[]"
  6940. abstract="false" native="false" synchronized="false"
  6941. static="true" final="false" visibility="public"
  6942. deprecated="not deprecated">
  6943. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6944. <doc>
  6945. <![CDATA[Get the file entries in classpath as an array of Path
  6946. @param conf Configuration that contains the classpath setting]]>
  6947. </doc>
  6948. </method>
  6949. <method name="addArchiveToClassPath"
  6950. abstract="false" native="false" synchronized="false"
  6951. static="true" final="false" visibility="public"
  6952. deprecated="not deprecated">
  6953. <param name="archive" type="org.apache.hadoop.fs.Path"/>
  6954. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6955. <exception name="IOException" type="java.io.IOException"/>
  6956. <doc>
  6957. <![CDATA[Add an archive path to the current set of classpath entries. It adds the
  6958. archive to cache as well.
  6959. @param archive Path of the archive to be added
  6960. @param conf Configuration that contains the classpath setting]]>
  6961. </doc>
  6962. </method>
  6963. <method name="getArchiveClassPaths" return="org.apache.hadoop.fs.Path[]"
  6964. abstract="false" native="false" synchronized="false"
  6965. static="true" final="false" visibility="public"
  6966. deprecated="not deprecated">
  6967. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6968. <doc>
  6969. <![CDATA[Get the archive entries in classpath as an array of Path
  6970. @param conf Configuration that contains the classpath setting]]>
  6971. </doc>
  6972. </method>
  6973. <method name="createSymlink"
  6974. abstract="false" native="false" synchronized="false"
  6975. static="true" final="false" visibility="public"
  6976. deprecated="not deprecated">
  6977. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6978. <doc>
  6979. <![CDATA[This method allows you to create symlinks in the current working directory
  6980. of the task to all the cache files/archives
  6981. @param conf the jobconf]]>
  6982. </doc>
  6983. </method>
  6984. <method name="getSymlink" return="boolean"
  6985. abstract="false" native="false" synchronized="false"
  6986. static="true" final="false" visibility="public"
  6987. deprecated="not deprecated">
  6988. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6989. <doc>
  6990. <![CDATA[This method checks to see if symlinks are to be create for the
  6991. localized cache files in the current working directory
  6992. @param conf the jobconf
  6993. @return true if symlinks are to be created- else return false]]>
  6994. </doc>
  6995. </method>
  6996. <method name="checkURIs" return="boolean"
  6997. abstract="false" native="false" synchronized="false"
  6998. static="true" final="false" visibility="public"
  6999. deprecated="not deprecated">
  7000. <param name="uriFiles" type="java.net.URI[]"/>
  7001. <param name="uriArchives" type="java.net.URI[]"/>
  7002. <doc>
  7003. <![CDATA[This method checks if there is a conflict in the fragment names
  7004. of the uris. Also makes sure that each uri has a fragment. It
  7005. is only to be called if you want to create symlinks for
  7006. the various archives and files.
  7007. @param uriFiles The uri array of urifiles
  7008. @param uriArchives the uri array of uri archives]]>
  7009. </doc>
  7010. </method>
  7011. <method name="purgeCache"
  7012. abstract="false" native="false" synchronized="false"
  7013. static="true" final="false" visibility="public"
  7014. deprecated="not deprecated">
  7015. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7016. <exception name="IOException" type="java.io.IOException"/>
  7017. <doc>
  7018. <![CDATA[Clear the entire contents of the cache and delete the backing files. This
  7019. should only be used when the server is reinitializing, because the users
  7020. are going to lose their files.]]>
  7021. </doc>
  7022. </method>
  7023. <doc>
  7024. <![CDATA[Distribute application-specific large, read-only files efficiently.
  7025. <p><code>DistributedCache</code> is a facility provided by the Map-Reduce
  7026. framework to cache files (text, archives, jars etc.) needed by applications.
  7027. </p>
  7028. <p>Applications specify the files, via urls (hdfs:// or http://) to be cached
  7029. via the {@link JobConf}. The <code>DistributedCache</code> assumes that the
  7030. files specified via hdfs:// urls are already present on the
  7031. {@link FileSystem} at the path specified by the url.</p>
  7032. <p>The framework will copy the necessary files on to the slave node before
  7033. any tasks for the job are executed on that node. Its efficiency stems from
  7034. the fact that the files are only copied once per job and the ability to
  7035. cache archives which are un-archived on the slaves.</p>
  7036. <p><code>DistributedCache</code> can be used to distribute simple, read-only
  7037. data/text files and/or more complex types such as archives, jars etc.
  7038. Archives (zip, tar and tgz/tar.gz files) are un-archived at the slave nodes.
  7039. Jars may be optionally added to the classpath of the tasks, a rudimentary
  7040. software distribution mechanism. Files have execution permissions.
  7041. Optionally users can also direct it to symlink the distributed cache file(s)
  7042. into the working directory of the task.</p>
  7043. <p><code>DistributedCache</code> tracks modification timestamps of the cache
  7044. files. Clearly the cache files should not be modified by the application
  7045. or externally while the job is executing.</p>
  7046. <p>Here is an illustrative example on how to use the
  7047. <code>DistributedCache</code>:</p>
  7048. <p><blockquote><pre>
  7049. // Setting up the cache for the application
  7050. 1. Copy the requisite files to the <code>FileSystem</code>:
  7051. $ bin/hadoop fs -copyFromLocal lookup.dat /myapp/lookup.dat
  7052. $ bin/hadoop fs -copyFromLocal map.zip /myapp/map.zip
  7053. $ bin/hadoop fs -copyFromLocal mylib.jar /myapp/mylib.jar
  7054. $ bin/hadoop fs -copyFromLocal mytar.tar /myapp/mytar.tar
  7055. $ bin/hadoop fs -copyFromLocal mytgz.tgz /myapp/mytgz.tgz
  7056. $ bin/hadoop fs -copyFromLocal mytargz.tar.gz /myapp/mytargz.tar.gz
  7057. 2. Setup the application's <code>JobConf</code>:
  7058. JobConf job = new JobConf();
  7059. DistributedCache.addCacheFile(new URI("/myapp/lookup.dat#lookup.dat"),
  7060. job);
  7061. DistributedCache.addCacheArchive(new URI("/myapp/map.zip", job);
  7062. DistributedCache.addFileToClassPath(new Path("/myapp/mylib.jar"), job);
  7063. DistributedCache.addCacheArchive(new URI("/myapp/mytar.tar", job);
  7064. DistributedCache.addCacheArchive(new URI("/myapp/mytgz.tgz", job);
  7065. DistributedCache.addCacheArchive(new URI("/myapp/mytargz.tar.gz", job);
  7066. 3. Use the cached files in the {@link Mapper} or {@link Reducer}:
  7067. public static class MapClass extends MapReduceBase
  7068. implements Mapper&lt;K, V, K, V&gt; {
  7069. private Path[] localArchives;
  7070. private Path[] localFiles;
  7071. public void configure(JobConf job) {
  7072. // Get the cached archives/files
  7073. localArchives = DistributedCache.getLocalCacheArchives(job);
  7074. localFiles = DistributedCache.getLocalCacheFiles(job);
  7075. }
  7076. public void map(K key, V value,
  7077. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  7078. throws IOException {
  7079. // Use data from the cached archives/files here
  7080. // ...
  7081. // ...
  7082. output.collect(k, v);
  7083. }
  7084. }
  7085. </pre></blockquote></p>
  7086. @see JobConf
  7087. @see JobClient]]>
  7088. </doc>
  7089. </class>
  7090. <!-- end class org.apache.hadoop.filecache.DistributedCache -->
  7091. </package>
  7092. <package name="org.apache.hadoop.fs">
  7093. <!-- start class org.apache.hadoop.fs.BlockLocation -->
  7094. <class name="BlockLocation" extends="java.lang.Object"
  7095. abstract="false"
  7096. static="false" final="false" visibility="public"
  7097. deprecated="not deprecated">
  7098. <implements name="org.apache.hadoop.io.Writable"/>
  7099. <constructor name="BlockLocation"
  7100. static="false" final="false" visibility="public"
  7101. deprecated="not deprecated">
  7102. <doc>
  7103. <![CDATA[Default Constructor]]>
  7104. </doc>
  7105. </constructor>
  7106. <constructor name="BlockLocation" type="java.lang.String[], java.lang.String[], long, long"
  7107. static="false" final="false" visibility="public"
  7108. deprecated="not deprecated">
  7109. <doc>
  7110. <![CDATA[Constructor with host, name, offset and length]]>
  7111. </doc>
  7112. </constructor>
  7113. <method name="getHosts" return="java.lang.String[]"
  7114. abstract="false" native="false" synchronized="false"
  7115. static="false" final="false" visibility="public"
  7116. deprecated="not deprecated">
  7117. <exception name="IOException" type="java.io.IOException"/>
  7118. <doc>
  7119. <![CDATA[Get the list of hosts (hostname) hosting this block]]>
  7120. </doc>
  7121. </method>
  7122. <method name="getNames" return="java.lang.String[]"
  7123. abstract="false" native="false" synchronized="false"
  7124. static="false" final="false" visibility="public"
  7125. deprecated="not deprecated">
  7126. <exception name="IOException" type="java.io.IOException"/>
  7127. <doc>
  7128. <![CDATA[Get the list of names (hostname:port) hosting this block]]>
  7129. </doc>
  7130. </method>
  7131. <method name="getOffset" return="long"
  7132. abstract="false" native="false" synchronized="false"
  7133. static="false" final="false" visibility="public"
  7134. deprecated="not deprecated">
  7135. <doc>
  7136. <![CDATA[Get the start offset of file associated with this block]]>
  7137. </doc>
  7138. </method>
  7139. <method name="getLength" return="long"
  7140. abstract="false" native="false" synchronized="false"
  7141. static="false" final="false" visibility="public"
  7142. deprecated="not deprecated">
  7143. <doc>
  7144. <![CDATA[Get the length of the block]]>
  7145. </doc>
  7146. </method>
  7147. <method name="setOffset"
  7148. abstract="false" native="false" synchronized="false"
  7149. static="false" final="false" visibility="public"
  7150. deprecated="not deprecated">
  7151. <param name="offset" type="long"/>
  7152. <doc>
  7153. <![CDATA[Set the start offset of file associated with this block]]>
  7154. </doc>
  7155. </method>
  7156. <method name="setLength"
  7157. abstract="false" native="false" synchronized="false"
  7158. static="false" final="false" visibility="public"
  7159. deprecated="not deprecated">
  7160. <param name="length" type="long"/>
  7161. <doc>
  7162. <![CDATA[Set the length of block]]>
  7163. </doc>
  7164. </method>
  7165. <method name="setHosts"
  7166. abstract="false" native="false" synchronized="false"
  7167. static="false" final="false" visibility="public"
  7168. deprecated="not deprecated">
  7169. <param name="hosts" type="java.lang.String[]"/>
  7170. <exception name="IOException" type="java.io.IOException"/>
  7171. <doc>
  7172. <![CDATA[Set the hosts hosting this block]]>
  7173. </doc>
  7174. </method>
  7175. <method name="setNames"
  7176. abstract="false" native="false" synchronized="false"
  7177. static="false" final="false" visibility="public"
  7178. deprecated="not deprecated">
  7179. <param name="names" type="java.lang.String[]"/>
  7180. <exception name="IOException" type="java.io.IOException"/>
  7181. <doc>
  7182. <![CDATA[Set the names (host:port) hosting this block]]>
  7183. </doc>
  7184. </method>
  7185. <method name="write"
  7186. abstract="false" native="false" synchronized="false"
  7187. static="false" final="false" visibility="public"
  7188. deprecated="not deprecated">
  7189. <param name="out" type="java.io.DataOutput"/>
  7190. <exception name="IOException" type="java.io.IOException"/>
  7191. <doc>
  7192. <![CDATA[Implement write of Writable]]>
  7193. </doc>
  7194. </method>
  7195. <method name="readFields"
  7196. abstract="false" native="false" synchronized="false"
  7197. static="false" final="false" visibility="public"
  7198. deprecated="not deprecated">
  7199. <param name="in" type="java.io.DataInput"/>
  7200. <exception name="IOException" type="java.io.IOException"/>
  7201. <doc>
  7202. <![CDATA[Implement readFields of Writable]]>
  7203. </doc>
  7204. </method>
  7205. <method name="toString" return="java.lang.String"
  7206. abstract="false" native="false" synchronized="false"
  7207. static="false" final="false" visibility="public"
  7208. deprecated="not deprecated">
  7209. </method>
  7210. </class>
  7211. <!-- end class org.apache.hadoop.fs.BlockLocation -->
  7212. <!-- start class org.apache.hadoop.fs.BufferedFSInputStream -->
  7213. <class name="BufferedFSInputStream" extends="java.io.BufferedInputStream"
  7214. abstract="false"
  7215. static="false" final="false" visibility="public"
  7216. deprecated="not deprecated">
  7217. <implements name="org.apache.hadoop.fs.Seekable"/>
  7218. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  7219. <constructor name="BufferedFSInputStream" type="org.apache.hadoop.fs.FSInputStream, int"
  7220. static="false" final="false" visibility="public"
  7221. deprecated="not deprecated">
  7222. <doc>
  7223. <![CDATA[Creates a <code>BufferedFSInputStream</code>
  7224. with the specified buffer size,
  7225. and saves its argument, the input stream
  7226. <code>in</code>, for later use. An internal
  7227. buffer array of length <code>size</code>
  7228. is created and stored in <code>buf</code>.
  7229. @param in the underlying input stream.
  7230. @param size the buffer size.
  7231. @exception IllegalArgumentException if size <= 0.]]>
  7232. </doc>
  7233. </constructor>
  7234. <method name="getPos" return="long"
  7235. abstract="false" native="false" synchronized="false"
  7236. static="false" final="false" visibility="public"
  7237. deprecated="not deprecated">
  7238. <exception name="IOException" type="java.io.IOException"/>
  7239. </method>
  7240. <method name="skip" return="long"
  7241. abstract="false" native="false" synchronized="false"
  7242. static="false" final="false" visibility="public"
  7243. deprecated="not deprecated">
  7244. <param name="n" type="long"/>
  7245. <exception name="IOException" type="java.io.IOException"/>
  7246. </method>
  7247. <method name="seek"
  7248. abstract="false" native="false" synchronized="false"
  7249. static="false" final="false" visibility="public"
  7250. deprecated="not deprecated">
  7251. <param name="pos" type="long"/>
  7252. <exception name="IOException" type="java.io.IOException"/>
  7253. </method>
  7254. <method name="seekToNewSource" return="boolean"
  7255. abstract="false" native="false" synchronized="false"
  7256. static="false" final="false" visibility="public"
  7257. deprecated="not deprecated">
  7258. <param name="targetPos" type="long"/>
  7259. <exception name="IOException" type="java.io.IOException"/>
  7260. </method>
  7261. <method name="read" return="int"
  7262. abstract="false" native="false" synchronized="false"
  7263. static="false" final="false" visibility="public"
  7264. deprecated="not deprecated">
  7265. <param name="position" type="long"/>
  7266. <param name="buffer" type="byte[]"/>
  7267. <param name="offset" type="int"/>
  7268. <param name="length" type="int"/>
  7269. <exception name="IOException" type="java.io.IOException"/>
  7270. </method>
  7271. <method name="readFully"
  7272. abstract="false" native="false" synchronized="false"
  7273. static="false" final="false" visibility="public"
  7274. deprecated="not deprecated">
  7275. <param name="position" type="long"/>
  7276. <param name="buffer" type="byte[]"/>
  7277. <param name="offset" type="int"/>
  7278. <param name="length" type="int"/>
  7279. <exception name="IOException" type="java.io.IOException"/>
  7280. </method>
  7281. <method name="readFully"
  7282. abstract="false" native="false" synchronized="false"
  7283. static="false" final="false" visibility="public"
  7284. deprecated="not deprecated">
  7285. <param name="position" type="long"/>
  7286. <param name="buffer" type="byte[]"/>
  7287. <exception name="IOException" type="java.io.IOException"/>
  7288. </method>
  7289. <doc>
  7290. <![CDATA[A class optimizes reading from FSInputStream by bufferring]]>
  7291. </doc>
  7292. </class>
  7293. <!-- end class org.apache.hadoop.fs.BufferedFSInputStream -->
  7294. <!-- start class org.apache.hadoop.fs.ChecksumException -->
  7295. <class name="ChecksumException" extends="java.io.IOException"
  7296. abstract="false"
  7297. static="false" final="false" visibility="public"
  7298. deprecated="not deprecated">
  7299. <constructor name="ChecksumException" type="java.lang.String, long"
  7300. static="false" final="false" visibility="public"
  7301. deprecated="not deprecated">
  7302. </constructor>
  7303. <method name="getPos" return="long"
  7304. abstract="false" native="false" synchronized="false"
  7305. static="false" final="false" visibility="public"
  7306. deprecated="not deprecated">
  7307. </method>
  7308. <doc>
  7309. <![CDATA[Thrown for checksum errors.]]>
  7310. </doc>
  7311. </class>
  7312. <!-- end class org.apache.hadoop.fs.ChecksumException -->
  7313. <!-- start class org.apache.hadoop.fs.ChecksumFileSystem -->
  7314. <class name="ChecksumFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  7315. abstract="true"
  7316. static="false" final="false" visibility="public"
  7317. deprecated="not deprecated">
  7318. <constructor name="ChecksumFileSystem" type="org.apache.hadoop.fs.FileSystem"
  7319. static="false" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. </constructor>
  7322. <method name="getApproxChkSumLength" return="double"
  7323. abstract="false" native="false" synchronized="false"
  7324. static="true" final="false" visibility="public"
  7325. deprecated="not deprecated">
  7326. <param name="size" type="long"/>
  7327. </method>
  7328. <method name="setConf"
  7329. abstract="false" native="false" synchronized="false"
  7330. static="false" final="false" visibility="public"
  7331. deprecated="not deprecated">
  7332. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7333. </method>
  7334. <method name="getRawFileSystem" return="org.apache.hadoop.fs.FileSystem"
  7335. abstract="false" native="false" synchronized="false"
  7336. static="false" final="false" visibility="public"
  7337. deprecated="not deprecated">
  7338. <doc>
  7339. <![CDATA[get the raw file system]]>
  7340. </doc>
  7341. </method>
  7342. <method name="getChecksumFile" return="org.apache.hadoop.fs.Path"
  7343. abstract="false" native="false" synchronized="false"
  7344. static="false" final="false" visibility="public"
  7345. deprecated="not deprecated">
  7346. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7347. <doc>
  7348. <![CDATA[Return the name of the checksum file associated with a file.]]>
  7349. </doc>
  7350. </method>
  7351. <method name="isChecksumFile" return="boolean"
  7352. abstract="false" native="false" synchronized="false"
  7353. static="true" final="false" visibility="public"
  7354. deprecated="not deprecated">
  7355. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7356. <doc>
  7357. <![CDATA[Return true iff file is a checksum file name.]]>
  7358. </doc>
  7359. </method>
  7360. <method name="getChecksumFileLength" return="long"
  7361. abstract="false" native="false" synchronized="false"
  7362. static="false" final="false" visibility="public"
  7363. deprecated="not deprecated">
  7364. <param name="file" type="org.apache.hadoop.fs.Path"/>
  7365. <param name="fileSize" type="long"/>
  7366. <doc>
  7367. <![CDATA[Return the length of the checksum file given the size of the
  7368. actual file.]]>
  7369. </doc>
  7370. </method>
  7371. <method name="getBytesPerSum" return="int"
  7372. abstract="false" native="false" synchronized="false"
  7373. static="false" final="false" visibility="public"
  7374. deprecated="not deprecated">
  7375. <doc>
  7376. <![CDATA[Return the bytes Per Checksum]]>
  7377. </doc>
  7378. </method>
  7379. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  7380. abstract="false" native="false" synchronized="false"
  7381. static="false" final="false" visibility="public"
  7382. deprecated="not deprecated">
  7383. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7384. <param name="bufferSize" type="int"/>
  7385. <exception name="IOException" type="java.io.IOException"/>
  7386. <doc>
  7387. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  7388. @param f the file name to open
  7389. @param bufferSize the size of the buffer to be used.]]>
  7390. </doc>
  7391. </method>
  7392. <method name="getChecksumLength" return="long"
  7393. abstract="false" native="false" synchronized="false"
  7394. static="true" final="false" visibility="public"
  7395. deprecated="not deprecated">
  7396. <param name="size" type="long"/>
  7397. <param name="bytesPerSum" type="int"/>
  7398. <doc>
  7399. <![CDATA[Calculated the length of the checksum file in bytes.
  7400. @param size the length of the data file in bytes
  7401. @param bytesPerSum the number of bytes in a checksum block
  7402. @return the number of bytes in the checksum file]]>
  7403. </doc>
  7404. </method>
  7405. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  7406. abstract="false" native="false" synchronized="false"
  7407. static="false" final="false" visibility="public"
  7408. deprecated="not deprecated">
  7409. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7410. <param name="overwrite" type="boolean"/>
  7411. <param name="bufferSize" type="int"/>
  7412. <param name="replication" type="short"/>
  7413. <param name="blockSize" type="long"/>
  7414. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  7415. <exception name="IOException" type="java.io.IOException"/>
  7416. <doc>
  7417. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  7418. reporting.
  7419. @param f the file name to open
  7420. @param overwrite if a file with this name already exists, then if true,
  7421. the file will be overwritten, and if false an error will be thrown.
  7422. @param bufferSize the size of the buffer to be used.
  7423. @param replication required block replication for the file.]]>
  7424. </doc>
  7425. </method>
  7426. <method name="setReplication" return="boolean"
  7427. abstract="false" native="false" synchronized="false"
  7428. static="false" final="false" visibility="public"
  7429. deprecated="not deprecated">
  7430. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7431. <param name="replication" type="short"/>
  7432. <exception name="IOException" type="java.io.IOException"/>
  7433. <doc>
  7434. <![CDATA[Set replication for an existing file.
  7435. Implement the abstract <tt>setReplication</tt> of <tt>FileSystem</tt>
  7436. @param src file name
  7437. @param replication new replication
  7438. @throws IOException
  7439. @return true if successful;
  7440. false if file does not exist or is a directory]]>
  7441. </doc>
  7442. </method>
  7443. <method name="rename" return="boolean"
  7444. abstract="false" native="false" synchronized="false"
  7445. static="false" final="false" visibility="public"
  7446. deprecated="not deprecated">
  7447. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7448. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7449. <exception name="IOException" type="java.io.IOException"/>
  7450. <doc>
  7451. <![CDATA[Rename files/dirs]]>
  7452. </doc>
  7453. </method>
  7454. <method name="delete" return="boolean"
  7455. abstract="false" native="false" synchronized="false"
  7456. static="false" final="false" visibility="public"
  7457. deprecated="not deprecated">
  7458. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7459. <param name="recursive" type="boolean"/>
  7460. <exception name="IOException" type="java.io.IOException"/>
  7461. <doc>
  7462. <![CDATA[Implement the delete(Path, boolean) in checksum
  7463. file system.]]>
  7464. </doc>
  7465. </method>
  7466. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  7467. abstract="false" native="false" synchronized="false"
  7468. static="false" final="false" visibility="public"
  7469. deprecated="not deprecated">
  7470. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7471. <exception name="IOException" type="java.io.IOException"/>
  7472. <doc>
  7473. <![CDATA[List the statuses of the files/directories in the given path if the path is
  7474. a directory.
  7475. @param f
  7476. given path
  7477. @return the statuses of the files/directories in the given patch
  7478. @throws IOException]]>
  7479. </doc>
  7480. </method>
  7481. <method name="mkdirs" return="boolean"
  7482. abstract="false" native="false" synchronized="false"
  7483. static="false" final="false" visibility="public"
  7484. deprecated="not deprecated">
  7485. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7486. <exception name="IOException" type="java.io.IOException"/>
  7487. </method>
  7488. <method name="copyFromLocalFile"
  7489. abstract="false" native="false" synchronized="false"
  7490. static="false" final="false" visibility="public"
  7491. deprecated="not deprecated">
  7492. <param name="delSrc" type="boolean"/>
  7493. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7494. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7495. <exception name="IOException" type="java.io.IOException"/>
  7496. </method>
  7497. <method name="copyToLocalFile"
  7498. abstract="false" native="false" synchronized="false"
  7499. static="false" final="false" visibility="public"
  7500. deprecated="not deprecated">
  7501. <param name="delSrc" type="boolean"/>
  7502. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7503. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7504. <exception name="IOException" type="java.io.IOException"/>
  7505. <doc>
  7506. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7507. Copy it from FS control to the local dst name.]]>
  7508. </doc>
  7509. </method>
  7510. <method name="copyToLocalFile"
  7511. abstract="false" native="false" synchronized="false"
  7512. static="false" final="false" visibility="public"
  7513. deprecated="not deprecated">
  7514. <param name="src" type="org.apache.hadoop.fs.Path"/>
  7515. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  7516. <param name="copyCrc" type="boolean"/>
  7517. <exception name="IOException" type="java.io.IOException"/>
  7518. <doc>
  7519. <![CDATA[The src file is under FS, and the dst is on the local disk.
  7520. Copy it from FS control to the local dst name.
  7521. If src and dst are directories, the copyCrc parameter
  7522. determines whether to copy CRC files.]]>
  7523. </doc>
  7524. </method>
  7525. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  7526. abstract="false" native="false" synchronized="false"
  7527. static="false" final="false" visibility="public"
  7528. deprecated="not deprecated">
  7529. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7530. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7531. <exception name="IOException" type="java.io.IOException"/>
  7532. </method>
  7533. <method name="completeLocalOutput"
  7534. abstract="false" native="false" synchronized="false"
  7535. static="false" final="false" visibility="public"
  7536. deprecated="not deprecated">
  7537. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  7538. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  7539. <exception name="IOException" type="java.io.IOException"/>
  7540. </method>
  7541. <method name="reportChecksumFailure" return="boolean"
  7542. abstract="false" native="false" synchronized="false"
  7543. static="false" final="false" visibility="public"
  7544. deprecated="not deprecated">
  7545. <param name="f" type="org.apache.hadoop.fs.Path"/>
  7546. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7547. <param name="inPos" type="long"/>
  7548. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  7549. <param name="sumsPos" type="long"/>
  7550. <doc>
  7551. <![CDATA[Report a checksum error to the file system.
  7552. @param f the file name containing the error
  7553. @param in the stream open on the file
  7554. @param inPos the position of the beginning of the bad data in the file
  7555. @param sums the stream open on the checksum file
  7556. @param sumsPos the position of the beginning of the bad data in the checksum file
  7557. @return if retry is neccessary]]>
  7558. </doc>
  7559. </method>
  7560. <doc>
  7561. <![CDATA[Abstract Checksumed FileSystem.
  7562. It provide a basice implementation of a Checksumed FileSystem,
  7563. which creates a checksum file for each raw file.
  7564. It generates & verifies checksums at the client side.]]>
  7565. </doc>
  7566. </class>
  7567. <!-- end class org.apache.hadoop.fs.ChecksumFileSystem -->
  7568. <!-- start class org.apache.hadoop.fs.ContentSummary -->
  7569. <class name="ContentSummary" extends="java.lang.Object"
  7570. abstract="false"
  7571. static="false" final="false" visibility="public"
  7572. deprecated="not deprecated">
  7573. <implements name="org.apache.hadoop.io.Writable"/>
  7574. <constructor name="ContentSummary"
  7575. static="false" final="false" visibility="public"
  7576. deprecated="not deprecated">
  7577. <doc>
  7578. <![CDATA[Constructor]]>
  7579. </doc>
  7580. </constructor>
  7581. <constructor name="ContentSummary" type="long, long, long"
  7582. static="false" final="false" visibility="public"
  7583. deprecated="not deprecated">
  7584. <doc>
  7585. <![CDATA[Constructor]]>
  7586. </doc>
  7587. </constructor>
  7588. <constructor name="ContentSummary" type="long, long, long, long"
  7589. static="false" final="false" visibility="public"
  7590. deprecated="not deprecated">
  7591. <doc>
  7592. <![CDATA[Constructor]]>
  7593. </doc>
  7594. </constructor>
  7595. <method name="getLength" return="long"
  7596. abstract="false" native="false" synchronized="false"
  7597. static="false" final="false" visibility="public"
  7598. deprecated="not deprecated">
  7599. <doc>
  7600. <![CDATA[@return the length]]>
  7601. </doc>
  7602. </method>
  7603. <method name="getDirectoryCount" return="long"
  7604. abstract="false" native="false" synchronized="false"
  7605. static="false" final="false" visibility="public"
  7606. deprecated="not deprecated">
  7607. <doc>
  7608. <![CDATA[@return the directory count]]>
  7609. </doc>
  7610. </method>
  7611. <method name="getFileCount" return="long"
  7612. abstract="false" native="false" synchronized="false"
  7613. static="false" final="false" visibility="public"
  7614. deprecated="not deprecated">
  7615. <doc>
  7616. <![CDATA[@return the file count]]>
  7617. </doc>
  7618. </method>
  7619. <method name="getQuota" return="long"
  7620. abstract="false" native="false" synchronized="false"
  7621. static="false" final="false" visibility="public"
  7622. deprecated="not deprecated">
  7623. <doc>
  7624. <![CDATA[Return the directory quota]]>
  7625. </doc>
  7626. </method>
  7627. <method name="write"
  7628. abstract="false" native="false" synchronized="false"
  7629. static="false" final="false" visibility="public"
  7630. deprecated="not deprecated">
  7631. <param name="out" type="java.io.DataOutput"/>
  7632. <exception name="IOException" type="java.io.IOException"/>
  7633. <doc>
  7634. <![CDATA[{@inheritDoc}]]>
  7635. </doc>
  7636. </method>
  7637. <method name="readFields"
  7638. abstract="false" native="false" synchronized="false"
  7639. static="false" final="false" visibility="public"
  7640. deprecated="not deprecated">
  7641. <param name="in" type="java.io.DataInput"/>
  7642. <exception name="IOException" type="java.io.IOException"/>
  7643. <doc>
  7644. <![CDATA[{@inheritDoc}]]>
  7645. </doc>
  7646. </method>
  7647. <method name="getHeader" return="java.lang.String"
  7648. abstract="false" native="false" synchronized="false"
  7649. static="true" final="false" visibility="public"
  7650. deprecated="not deprecated">
  7651. <param name="qOption" type="boolean"/>
  7652. <doc>
  7653. <![CDATA[Return the header of the output.
  7654. if qOption is false, output directory count, file count, and content size;
  7655. if qOption is true, output quota and remaining quota as well.
  7656. @param qOption a flag indicating if quota needs to be printed or not
  7657. @return the header of the output]]>
  7658. </doc>
  7659. </method>
  7660. <method name="toString" return="java.lang.String"
  7661. abstract="false" native="false" synchronized="false"
  7662. static="false" final="false" visibility="public"
  7663. deprecated="not deprecated">
  7664. <doc>
  7665. <![CDATA[{@inheritDoc}]]>
  7666. </doc>
  7667. </method>
  7668. <method name="toString" return="java.lang.String"
  7669. abstract="false" native="false" synchronized="false"
  7670. static="false" final="false" visibility="public"
  7671. deprecated="not deprecated">
  7672. <param name="qOption" type="boolean"/>
  7673. <doc>
  7674. <![CDATA[Return the string representation of the object in the output format.
  7675. if qOption is false, output directory count, file count, and content size;
  7676. if qOption is true, output quota and remaining quota as well.
  7677. @param qOption a flag indicating if quota needs to be printed or not
  7678. @return the string representation of the object]]>
  7679. </doc>
  7680. </method>
  7681. <doc>
  7682. <![CDATA[Store the summary of a content (a directory or a file).]]>
  7683. </doc>
  7684. </class>
  7685. <!-- end class org.apache.hadoop.fs.ContentSummary -->
  7686. <!-- start class org.apache.hadoop.fs.DF -->
  7687. <class name="DF" extends="org.apache.hadoop.util.Shell"
  7688. abstract="false"
  7689. static="false" final="false" visibility="public"
  7690. deprecated="not deprecated">
  7691. <constructor name="DF" type="java.io.File, org.apache.hadoop.conf.Configuration"
  7692. static="false" final="false" visibility="public"
  7693. deprecated="not deprecated">
  7694. <exception name="IOException" type="java.io.IOException"/>
  7695. </constructor>
  7696. <constructor name="DF" type="java.io.File, long"
  7697. static="false" final="false" visibility="public"
  7698. deprecated="not deprecated">
  7699. <exception name="IOException" type="java.io.IOException"/>
  7700. </constructor>
  7701. <method name="getDirPath" return="java.lang.String"
  7702. abstract="false" native="false" synchronized="false"
  7703. static="false" final="false" visibility="public"
  7704. deprecated="not deprecated">
  7705. </method>
  7706. <method name="getFilesystem" return="java.lang.String"
  7707. abstract="false" native="false" synchronized="false"
  7708. static="false" final="false" visibility="public"
  7709. deprecated="not deprecated">
  7710. <exception name="IOException" type="java.io.IOException"/>
  7711. </method>
  7712. <method name="getCapacity" return="long"
  7713. abstract="false" native="false" synchronized="false"
  7714. static="false" final="false" visibility="public"
  7715. deprecated="not deprecated">
  7716. <exception name="IOException" type="java.io.IOException"/>
  7717. </method>
  7718. <method name="getUsed" return="long"
  7719. abstract="false" native="false" synchronized="false"
  7720. static="false" final="false" visibility="public"
  7721. deprecated="not deprecated">
  7722. <exception name="IOException" type="java.io.IOException"/>
  7723. </method>
  7724. <method name="getAvailable" return="long"
  7725. abstract="false" native="false" synchronized="false"
  7726. static="false" final="false" visibility="public"
  7727. deprecated="not deprecated">
  7728. <exception name="IOException" type="java.io.IOException"/>
  7729. </method>
  7730. <method name="getPercentUsed" return="int"
  7731. abstract="false" native="false" synchronized="false"
  7732. static="false" final="false" visibility="public"
  7733. deprecated="not deprecated">
  7734. <exception name="IOException" type="java.io.IOException"/>
  7735. </method>
  7736. <method name="getMount" return="java.lang.String"
  7737. abstract="false" native="false" synchronized="false"
  7738. static="false" final="false" visibility="public"
  7739. deprecated="not deprecated">
  7740. <exception name="IOException" type="java.io.IOException"/>
  7741. </method>
  7742. <method name="toString" return="java.lang.String"
  7743. abstract="false" native="false" synchronized="false"
  7744. static="false" final="false" visibility="public"
  7745. deprecated="not deprecated">
  7746. </method>
  7747. <method name="getExecString" return="java.lang.String[]"
  7748. abstract="false" native="false" synchronized="false"
  7749. static="false" final="false" visibility="protected"
  7750. deprecated="not deprecated">
  7751. </method>
  7752. <method name="parseExecResult"
  7753. abstract="false" native="false" synchronized="false"
  7754. static="false" final="false" visibility="protected"
  7755. deprecated="not deprecated">
  7756. <param name="lines" type="java.io.BufferedReader"/>
  7757. <exception name="IOException" type="java.io.IOException"/>
  7758. </method>
  7759. <method name="main"
  7760. abstract="false" native="false" synchronized="false"
  7761. static="true" final="false" visibility="public"
  7762. deprecated="not deprecated">
  7763. <param name="args" type="java.lang.String[]"/>
  7764. <exception name="Exception" type="java.lang.Exception"/>
  7765. </method>
  7766. <field name="DF_INTERVAL_DEFAULT" type="long"
  7767. transient="false" volatile="false"
  7768. static="true" final="true" visibility="public"
  7769. deprecated="not deprecated">
  7770. </field>
  7771. <doc>
  7772. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'df' program.
  7773. Tested on Linux, FreeBSD, Cygwin.]]>
  7774. </doc>
  7775. </class>
  7776. <!-- end class org.apache.hadoop.fs.DF -->
  7777. <!-- start class org.apache.hadoop.fs.DU -->
  7778. <class name="DU" extends="org.apache.hadoop.util.Shell"
  7779. abstract="false"
  7780. static="false" final="false" visibility="public"
  7781. deprecated="not deprecated">
  7782. <constructor name="DU" type="java.io.File, long"
  7783. static="false" final="false" visibility="public"
  7784. deprecated="not deprecated">
  7785. <exception name="IOException" type="java.io.IOException"/>
  7786. <doc>
  7787. <![CDATA[Keeps track of disk usage.
  7788. @param path the path to check disk usage in
  7789. @param interval refresh the disk usage at this interval
  7790. @throws IOException if we fail to refresh the disk usage]]>
  7791. </doc>
  7792. </constructor>
  7793. <constructor name="DU" type="java.io.File, org.apache.hadoop.conf.Configuration"
  7794. static="false" final="false" visibility="public"
  7795. deprecated="not deprecated">
  7796. <exception name="IOException" type="java.io.IOException"/>
  7797. <doc>
  7798. <![CDATA[Keeps track of disk usage.
  7799. @param path the path to check disk usage in
  7800. @param conf configuration object
  7801. @throws IOException if we fail to refresh the disk usage]]>
  7802. </doc>
  7803. </constructor>
  7804. <method name="decDfsUsed"
  7805. abstract="false" native="false" synchronized="false"
  7806. static="false" final="false" visibility="public"
  7807. deprecated="not deprecated">
  7808. <param name="value" type="long"/>
  7809. <doc>
  7810. <![CDATA[Decrease how much disk space we use.
  7811. @param value decrease by this value]]>
  7812. </doc>
  7813. </method>
  7814. <method name="incDfsUsed"
  7815. abstract="false" native="false" synchronized="false"
  7816. static="false" final="false" visibility="public"
  7817. deprecated="not deprecated">
  7818. <param name="value" type="long"/>
  7819. <doc>
  7820. <![CDATA[Increase how much disk space we use.
  7821. @param value increase by this value]]>
  7822. </doc>
  7823. </method>
  7824. <method name="getUsed" return="long"
  7825. abstract="false" native="false" synchronized="false"
  7826. static="false" final="false" visibility="public"
  7827. deprecated="not deprecated">
  7828. <exception name="IOException" type="java.io.IOException"/>
  7829. <doc>
  7830. <![CDATA[@return disk space used
  7831. @throws IOException if the shell command fails]]>
  7832. </doc>
  7833. </method>
  7834. <method name="getDirPath" return="java.lang.String"
  7835. abstract="false" native="false" synchronized="false"
  7836. static="false" final="false" visibility="public"
  7837. deprecated="not deprecated">
  7838. <doc>
  7839. <![CDATA[@return the path of which we're keeping track of disk usage]]>
  7840. </doc>
  7841. </method>
  7842. <method name="start"
  7843. abstract="false" native="false" synchronized="false"
  7844. static="false" final="false" visibility="public"
  7845. deprecated="not deprecated">
  7846. <doc>
  7847. <![CDATA[Start the disk usage checking thread.]]>
  7848. </doc>
  7849. </method>
  7850. <method name="shutdown"
  7851. abstract="false" native="false" synchronized="false"
  7852. static="false" final="false" visibility="public"
  7853. deprecated="not deprecated">
  7854. <doc>
  7855. <![CDATA[Shut down the refreshing thread.]]>
  7856. </doc>
  7857. </method>
  7858. <method name="toString" return="java.lang.String"
  7859. abstract="false" native="false" synchronized="false"
  7860. static="false" final="false" visibility="public"
  7861. deprecated="not deprecated">
  7862. </method>
  7863. <method name="getExecString" return="java.lang.String[]"
  7864. abstract="false" native="false" synchronized="false"
  7865. static="false" final="false" visibility="protected"
  7866. deprecated="not deprecated">
  7867. </method>
  7868. <method name="parseExecResult"
  7869. abstract="false" native="false" synchronized="false"
  7870. static="false" final="false" visibility="protected"
  7871. deprecated="not deprecated">
  7872. <param name="lines" type="java.io.BufferedReader"/>
  7873. <exception name="IOException" type="java.io.IOException"/>
  7874. </method>
  7875. <method name="main"
  7876. abstract="false" native="false" synchronized="false"
  7877. static="true" final="false" visibility="public"
  7878. deprecated="not deprecated">
  7879. <param name="args" type="java.lang.String[]"/>
  7880. <exception name="Exception" type="java.lang.Exception"/>
  7881. </method>
  7882. <doc>
  7883. <![CDATA[Filesystem disk space usage statistics. Uses the unix 'du' program]]>
  7884. </doc>
  7885. </class>
  7886. <!-- end class org.apache.hadoop.fs.DU -->
  7887. <!-- start class org.apache.hadoop.fs.FileStatus -->
  7888. <class name="FileStatus" extends="java.lang.Object"
  7889. abstract="false"
  7890. static="false" final="false" visibility="public"
  7891. deprecated="not deprecated">
  7892. <implements name="org.apache.hadoop.io.Writable"/>
  7893. <implements name="java.lang.Comparable"/>
  7894. <constructor name="FileStatus"
  7895. static="false" final="false" visibility="public"
  7896. deprecated="not deprecated">
  7897. </constructor>
  7898. <constructor name="FileStatus" type="long, boolean, int, long, long, org.apache.hadoop.fs.Path"
  7899. static="false" final="false" visibility="public"
  7900. deprecated="not deprecated">
  7901. </constructor>
  7902. <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"
  7903. static="false" final="false" visibility="public"
  7904. deprecated="not deprecated">
  7905. </constructor>
  7906. <method name="getLen" return="long"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. </method>
  7911. <method name="isDir" return="boolean"
  7912. abstract="false" native="false" synchronized="false"
  7913. static="false" final="false" visibility="public"
  7914. deprecated="not deprecated">
  7915. <doc>
  7916. <![CDATA[Is this a directory?
  7917. @return true if this is a directory]]>
  7918. </doc>
  7919. </method>
  7920. <method name="getBlockSize" return="long"
  7921. abstract="false" native="false" synchronized="false"
  7922. static="false" final="false" visibility="public"
  7923. deprecated="not deprecated">
  7924. <doc>
  7925. <![CDATA[Get the block size of the file.
  7926. @return the number of bytes]]>
  7927. </doc>
  7928. </method>
  7929. <method name="getReplication" return="short"
  7930. abstract="false" native="false" synchronized="false"
  7931. static="false" final="false" visibility="public"
  7932. deprecated="not deprecated">
  7933. <doc>
  7934. <![CDATA[Get the replication factor of a file.
  7935. @return the replication factor of a file.]]>
  7936. </doc>
  7937. </method>
  7938. <method name="getModificationTime" return="long"
  7939. abstract="false" native="false" synchronized="false"
  7940. static="false" final="false" visibility="public"
  7941. deprecated="not deprecated">
  7942. <doc>
  7943. <![CDATA[Get the modification time of the file.
  7944. @return the modification time of file in milliseconds since January 1, 1970 UTC.]]>
  7945. </doc>
  7946. </method>
  7947. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  7948. abstract="false" native="false" synchronized="false"
  7949. static="false" final="false" visibility="public"
  7950. deprecated="not deprecated">
  7951. <doc>
  7952. <![CDATA[Get FsPermission associated with the file.
  7953. @return permssion. If a filesystem does not have a notion of permissions
  7954. or if permissions could not be determined, then default
  7955. permissions equivalent of "rwxrwxrwx" is returned.]]>
  7956. </doc>
  7957. </method>
  7958. <method name="getOwner" return="java.lang.String"
  7959. abstract="false" native="false" synchronized="false"
  7960. static="false" final="false" visibility="public"
  7961. deprecated="not deprecated">
  7962. <doc>
  7963. <![CDATA[Get the owner of the file.
  7964. @return owner of the file. The string could be empty if there is no
  7965. notion of owner of a file in a filesystem or if it could not
  7966. be determined (rare).]]>
  7967. </doc>
  7968. </method>
  7969. <method name="getGroup" return="java.lang.String"
  7970. abstract="false" native="false" synchronized="false"
  7971. static="false" final="false" visibility="public"
  7972. deprecated="not deprecated">
  7973. <doc>
  7974. <![CDATA[Get the group associated with the file.
  7975. @return group for the file. The string could be empty if there is no
  7976. notion of group of a file in a filesystem or if it could not
  7977. be determined (rare).]]>
  7978. </doc>
  7979. </method>
  7980. <method name="getPath" return="org.apache.hadoop.fs.Path"
  7981. abstract="false" native="false" synchronized="false"
  7982. static="false" final="false" visibility="public"
  7983. deprecated="not deprecated">
  7984. </method>
  7985. <method name="setPermission"
  7986. abstract="false" native="false" synchronized="false"
  7987. static="false" final="false" visibility="protected"
  7988. deprecated="not deprecated">
  7989. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7990. <doc>
  7991. <![CDATA[Sets permission.
  7992. @param permission if permission is null, default value is set]]>
  7993. </doc>
  7994. </method>
  7995. <method name="setOwner"
  7996. abstract="false" native="false" synchronized="false"
  7997. static="false" final="false" visibility="protected"
  7998. deprecated="not deprecated">
  7999. <param name="owner" type="java.lang.String"/>
  8000. <doc>
  8001. <![CDATA[Sets owner.
  8002. @param owner if it is null, default value is set]]>
  8003. </doc>
  8004. </method>
  8005. <method name="setGroup"
  8006. abstract="false" native="false" synchronized="false"
  8007. static="false" final="false" visibility="protected"
  8008. deprecated="not deprecated">
  8009. <param name="group" type="java.lang.String"/>
  8010. <doc>
  8011. <![CDATA[Sets group.
  8012. @param group if it is null, default value is set]]>
  8013. </doc>
  8014. </method>
  8015. <method name="write"
  8016. abstract="false" native="false" synchronized="false"
  8017. static="false" final="false" visibility="public"
  8018. deprecated="not deprecated">
  8019. <param name="out" type="java.io.DataOutput"/>
  8020. <exception name="IOException" type="java.io.IOException"/>
  8021. </method>
  8022. <method name="readFields"
  8023. abstract="false" native="false" synchronized="false"
  8024. static="false" final="false" visibility="public"
  8025. deprecated="not deprecated">
  8026. <param name="in" type="java.io.DataInput"/>
  8027. <exception name="IOException" type="java.io.IOException"/>
  8028. </method>
  8029. <method name="compareTo" return="int"
  8030. abstract="false" native="false" synchronized="false"
  8031. static="false" final="false" visibility="public"
  8032. deprecated="not deprecated">
  8033. <param name="o" type="java.lang.Object"/>
  8034. <doc>
  8035. <![CDATA[Compare this object to another object
  8036. @param o the object to be compared.
  8037. @return a negative integer, zero, or a positive integer as this object
  8038. is less than, equal to, or greater than the specified object.
  8039. @throws ClassCastException if the specified object's is not of
  8040. type FileStatus]]>
  8041. </doc>
  8042. </method>
  8043. <method name="equals" return="boolean"
  8044. abstract="false" native="false" synchronized="false"
  8045. static="false" final="false" visibility="public"
  8046. deprecated="not deprecated">
  8047. <param name="o" type="java.lang.Object"/>
  8048. <doc>
  8049. <![CDATA[Compare if this object is equal to another object
  8050. @param o the object to be compared.
  8051. @return true if two file status has the same path name; false if not.]]>
  8052. </doc>
  8053. </method>
  8054. <method name="hashCode" return="int"
  8055. abstract="false" native="false" synchronized="false"
  8056. static="false" final="false" visibility="public"
  8057. deprecated="not deprecated">
  8058. <doc>
  8059. <![CDATA[Returns a hash code value for the object, which is defined as
  8060. the hash code of the path name.
  8061. @return a hash code value for the path name.]]>
  8062. </doc>
  8063. </method>
  8064. <doc>
  8065. <![CDATA[Interface that represents the client side information for a file.]]>
  8066. </doc>
  8067. </class>
  8068. <!-- end class org.apache.hadoop.fs.FileStatus -->
  8069. <!-- start class org.apache.hadoop.fs.FileSystem -->
  8070. <class name="FileSystem" extends="org.apache.hadoop.conf.Configured"
  8071. abstract="true"
  8072. static="false" final="false" visibility="public"
  8073. deprecated="not deprecated">
  8074. <implements name="java.io.Closeable"/>
  8075. <constructor name="FileSystem"
  8076. static="false" final="false" visibility="protected"
  8077. deprecated="not deprecated">
  8078. </constructor>
  8079. <method name="parseArgs" return="org.apache.hadoop.fs.FileSystem"
  8080. abstract="false" native="false" synchronized="false"
  8081. static="true" final="false" visibility="public"
  8082. deprecated="not deprecated">
  8083. <param name="argv" type="java.lang.String[]"/>
  8084. <param name="i" type="int"/>
  8085. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8086. <exception name="IOException" type="java.io.IOException"/>
  8087. <doc>
  8088. <![CDATA[Parse the cmd-line args, starting at i. Remove consumed args
  8089. from array. We expect param in the form:
  8090. '-local | -dfs <namenode:port>']]>
  8091. </doc>
  8092. </method>
  8093. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8094. abstract="false" native="false" synchronized="false"
  8095. static="true" final="false" visibility="public"
  8096. deprecated="not deprecated">
  8097. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8098. <exception name="IOException" type="java.io.IOException"/>
  8099. <doc>
  8100. <![CDATA[Returns the configured filesystem implementation.]]>
  8101. </doc>
  8102. </method>
  8103. <method name="getDefaultUri" return="java.net.URI"
  8104. abstract="false" native="false" synchronized="false"
  8105. static="true" final="false" visibility="public"
  8106. deprecated="not deprecated">
  8107. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8108. <doc>
  8109. <![CDATA[Get the default filesystem URI from a configuration.
  8110. @param conf the configuration to access
  8111. @return the uri of the default filesystem]]>
  8112. </doc>
  8113. </method>
  8114. <method name="setDefaultUri"
  8115. abstract="false" native="false" synchronized="false"
  8116. static="true" final="false" visibility="public"
  8117. deprecated="not deprecated">
  8118. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8119. <param name="uri" type="java.net.URI"/>
  8120. <doc>
  8121. <![CDATA[Set the default filesystem URI in a configuration.
  8122. @param conf the configuration to alter
  8123. @param uri the new default filesystem uri]]>
  8124. </doc>
  8125. </method>
  8126. <method name="setDefaultUri"
  8127. abstract="false" native="false" synchronized="false"
  8128. static="true" final="false" visibility="public"
  8129. deprecated="not deprecated">
  8130. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8131. <param name="uri" type="java.lang.String"/>
  8132. <doc>
  8133. <![CDATA[Set the default filesystem URI in a configuration.
  8134. @param conf the configuration to alter
  8135. @param uri the new default filesystem uri]]>
  8136. </doc>
  8137. </method>
  8138. <method name="initialize"
  8139. abstract="true" native="false" synchronized="false"
  8140. static="false" final="false" visibility="public"
  8141. deprecated="not deprecated">
  8142. <param name="name" type="java.net.URI"/>
  8143. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8144. <exception name="IOException" type="java.io.IOException"/>
  8145. <doc>
  8146. <![CDATA[Called after a new FileSystem instance is constructed.
  8147. @param name a uri whose authority section names the host, port, etc.
  8148. for this FileSystem
  8149. @param conf the configuration]]>
  8150. </doc>
  8151. </method>
  8152. <method name="getUri" return="java.net.URI"
  8153. abstract="true" native="false" synchronized="false"
  8154. static="false" final="false" visibility="public"
  8155. deprecated="not deprecated">
  8156. <doc>
  8157. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  8158. </doc>
  8159. </method>
  8160. <method name="getName" return="java.lang.String"
  8161. abstract="false" native="false" synchronized="false"
  8162. static="false" final="false" visibility="public"
  8163. deprecated="call #getUri() instead.">
  8164. <doc>
  8165. <![CDATA[@deprecated call #getUri() instead.]]>
  8166. </doc>
  8167. </method>
  8168. <method name="getNamed" return="org.apache.hadoop.fs.FileSystem"
  8169. abstract="false" native="false" synchronized="false"
  8170. static="true" final="false" visibility="public"
  8171. deprecated="call #get(URI,Configuration) instead.">
  8172. <param name="name" type="java.lang.String"/>
  8173. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8174. <exception name="IOException" type="java.io.IOException"/>
  8175. <doc>
  8176. <![CDATA[@deprecated call #get(URI,Configuration) instead.]]>
  8177. </doc>
  8178. </method>
  8179. <method name="getLocal" return="org.apache.hadoop.fs.LocalFileSystem"
  8180. abstract="false" native="false" synchronized="false"
  8181. static="true" final="false" visibility="public"
  8182. deprecated="not deprecated">
  8183. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8184. <exception name="IOException" type="java.io.IOException"/>
  8185. <doc>
  8186. <![CDATA[Get the local file syste
  8187. @param conf the configuration to configure the file system with
  8188. @return a LocalFileSystem]]>
  8189. </doc>
  8190. </method>
  8191. <method name="get" return="org.apache.hadoop.fs.FileSystem"
  8192. abstract="false" native="false" synchronized="false"
  8193. static="true" final="false" visibility="public"
  8194. deprecated="not deprecated">
  8195. <param name="uri" type="java.net.URI"/>
  8196. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8197. <exception name="IOException" type="java.io.IOException"/>
  8198. <doc>
  8199. <![CDATA[Returns the FileSystem for this URI's scheme and authority. The scheme
  8200. of the URI determines a configuration property name,
  8201. <tt>fs.<i>scheme</i>.class</tt> whose value names the FileSystem class.
  8202. The entire URI is passed to the FileSystem instance's initialize method.]]>
  8203. </doc>
  8204. </method>
  8205. <method name="closeAll"
  8206. abstract="false" native="false" synchronized="false"
  8207. static="true" final="false" visibility="public"
  8208. deprecated="not deprecated">
  8209. <exception name="IOException" type="java.io.IOException"/>
  8210. <doc>
  8211. <![CDATA[Close all cached filesystems. Be sure those filesystems are not
  8212. used anymore.
  8213. @throws IOException]]>
  8214. </doc>
  8215. </method>
  8216. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  8217. abstract="false" native="false" synchronized="false"
  8218. static="false" final="false" visibility="public"
  8219. deprecated="not deprecated">
  8220. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8221. <doc>
  8222. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  8223. </doc>
  8224. </method>
  8225. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8226. abstract="false" native="false" synchronized="false"
  8227. static="true" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8230. <param name="file" type="org.apache.hadoop.fs.Path"/>
  8231. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8232. <exception name="IOException" type="java.io.IOException"/>
  8233. <doc>
  8234. <![CDATA[create a file with the provided permission
  8235. The permission of the file is set to be the provided permission as in
  8236. setPermission, not permission&~umask
  8237. It is implemented using two RPCs. It is understood that it is inefficient,
  8238. but the implementation is thread-safe. The other option is to change the
  8239. value of umask in configuration to be 0, but it is not thread-safe.
  8240. @param fs file system handle
  8241. @param file the name of the file to be created
  8242. @param permission the permission of the file
  8243. @return an output stream
  8244. @throws IOException]]>
  8245. </doc>
  8246. </method>
  8247. <method name="mkdirs" return="boolean"
  8248. abstract="false" native="false" synchronized="false"
  8249. static="true" final="false" visibility="public"
  8250. deprecated="not deprecated">
  8251. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  8252. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  8253. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8254. <exception name="IOException" type="java.io.IOException"/>
  8255. <doc>
  8256. <![CDATA[create a directory with the provided permission
  8257. The permission of the directory is set to be the provided permission as in
  8258. setPermission, not permission&~umask
  8259. @see #create(FileSystem, Path, FsPermission)
  8260. @param fs file system handle
  8261. @param dir the name of the directory to be created
  8262. @param permission the permission of the directory
  8263. @return true if the directory creation succeeds; false otherwise
  8264. @throws IOException]]>
  8265. </doc>
  8266. </method>
  8267. <method name="checkPath"
  8268. abstract="false" native="false" synchronized="false"
  8269. static="false" final="false" visibility="protected"
  8270. deprecated="not deprecated">
  8271. <param name="path" type="org.apache.hadoop.fs.Path"/>
  8272. <doc>
  8273. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  8274. </doc>
  8275. </method>
  8276. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8277. abstract="false" native="false" synchronized="false"
  8278. static="false" final="false" visibility="public"
  8279. deprecated="use {@link #getFileBlockLocations(FileStatus, long, long)}">
  8280. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8281. <param name="start" type="long"/>
  8282. <param name="len" type="long"/>
  8283. <exception name="IOException" type="java.io.IOException"/>
  8284. <doc>
  8285. <![CDATA[Return an array containing hostnames, offset and size of
  8286. portions of the given file. For a nonexistent
  8287. file or regions, null will be returned.
  8288. This call is most helpful with DFS, where it returns
  8289. hostnames of machines that contain the given file.
  8290. The FileSystem will simply return an elt containing 'localhost'.
  8291. @deprecated use {@link #getFileBlockLocations(FileStatus, long, long)}]]>
  8292. </doc>
  8293. </method>
  8294. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  8295. abstract="false" native="false" synchronized="false"
  8296. static="false" final="false" visibility="public"
  8297. deprecated="not deprecated">
  8298. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  8299. <param name="start" type="long"/>
  8300. <param name="len" type="long"/>
  8301. <exception name="IOException" type="java.io.IOException"/>
  8302. <doc>
  8303. <![CDATA[Return an array containing hostnames, offset and size of
  8304. portions of the given file. For a nonexistent
  8305. file or regions, null will be returned.
  8306. This call is most helpful with DFS, where it returns
  8307. hostnames of machines that contain the given file.
  8308. The FileSystem will simply return an elt containing 'localhost'.]]>
  8309. </doc>
  8310. </method>
  8311. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8312. abstract="true" native="false" synchronized="false"
  8313. static="false" final="false" visibility="public"
  8314. deprecated="not deprecated">
  8315. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8316. <param name="bufferSize" type="int"/>
  8317. <exception name="IOException" type="java.io.IOException"/>
  8318. <doc>
  8319. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8320. @param f the file name to open
  8321. @param bufferSize the size of the buffer to be used.]]>
  8322. </doc>
  8323. </method>
  8324. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  8325. abstract="false" native="false" synchronized="false"
  8326. static="false" final="false" visibility="public"
  8327. deprecated="not deprecated">
  8328. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8329. <exception name="IOException" type="java.io.IOException"/>
  8330. <doc>
  8331. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  8332. @param f the file to open]]>
  8333. </doc>
  8334. </method>
  8335. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8336. abstract="false" native="false" synchronized="false"
  8337. static="false" final="false" visibility="public"
  8338. deprecated="not deprecated">
  8339. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8340. <exception name="IOException" type="java.io.IOException"/>
  8341. <doc>
  8342. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  8343. Files are overwritten by default.]]>
  8344. </doc>
  8345. </method>
  8346. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8347. abstract="false" native="false" synchronized="false"
  8348. static="false" final="false" visibility="public"
  8349. deprecated="not deprecated">
  8350. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8351. <param name="overwrite" type="boolean"/>
  8352. <exception name="IOException" type="java.io.IOException"/>
  8353. <doc>
  8354. <![CDATA[Opens an FSDataOutputStream at the indicated Path.]]>
  8355. </doc>
  8356. </method>
  8357. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8358. abstract="false" native="false" synchronized="false"
  8359. static="false" final="false" visibility="public"
  8360. deprecated="not deprecated">
  8361. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8362. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8363. <exception name="IOException" type="java.io.IOException"/>
  8364. <doc>
  8365. <![CDATA[Create an FSDataOutputStream at the indicated Path with write-progress
  8366. reporting.
  8367. Files are overwritten by default.]]>
  8368. </doc>
  8369. </method>
  8370. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8371. abstract="false" native="false" synchronized="false"
  8372. static="false" final="false" visibility="public"
  8373. deprecated="not deprecated">
  8374. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8375. <param name="replication" type="short"/>
  8376. <exception name="IOException" type="java.io.IOException"/>
  8377. <doc>
  8378. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  8379. Files are overwritten by default.]]>
  8380. </doc>
  8381. </method>
  8382. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8383. abstract="false" native="false" synchronized="false"
  8384. static="false" final="false" visibility="public"
  8385. deprecated="not deprecated">
  8386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8387. <param name="replication" type="short"/>
  8388. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8389. <exception name="IOException" type="java.io.IOException"/>
  8390. <doc>
  8391. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8392. reporting.
  8393. Files are overwritten by default.]]>
  8394. </doc>
  8395. </method>
  8396. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8397. abstract="false" native="false" synchronized="false"
  8398. static="false" final="false" visibility="public"
  8399. deprecated="not deprecated">
  8400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8401. <param name="overwrite" type="boolean"/>
  8402. <param name="bufferSize" type="int"/>
  8403. <exception name="IOException" type="java.io.IOException"/>
  8404. <doc>
  8405. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  8406. @param f the file name to open
  8407. @param overwrite if a file with this name already exists, then if true,
  8408. the file will be overwritten, and if false an error will be thrown.
  8409. @param bufferSize the size of the buffer to be used.]]>
  8410. </doc>
  8411. </method>
  8412. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8413. abstract="false" native="false" synchronized="false"
  8414. static="false" final="false" visibility="public"
  8415. deprecated="not deprecated">
  8416. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8417. <param name="overwrite" type="boolean"/>
  8418. <param name="bufferSize" type="int"/>
  8419. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8420. <exception name="IOException" type="java.io.IOException"/>
  8421. <doc>
  8422. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8423. reporting.
  8424. @param f the file name to open
  8425. @param overwrite if a file with this name already exists, then if true,
  8426. the file will be overwritten, and if false an error will be thrown.
  8427. @param bufferSize the size of the buffer to be used.]]>
  8428. </doc>
  8429. </method>
  8430. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8431. abstract="false" native="false" synchronized="false"
  8432. static="false" final="false" visibility="public"
  8433. deprecated="not deprecated">
  8434. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8435. <param name="overwrite" type="boolean"/>
  8436. <param name="bufferSize" type="int"/>
  8437. <param name="replication" type="short"/>
  8438. <param name="blockSize" type="long"/>
  8439. <exception name="IOException" type="java.io.IOException"/>
  8440. <doc>
  8441. <![CDATA[Opens an FSDataOutputStream at the indicated Path.
  8442. @param f the file name to open
  8443. @param overwrite if a file with this name already exists, then if true,
  8444. the file will be overwritten, and if false an error will be thrown.
  8445. @param bufferSize the size of the buffer to be used.
  8446. @param replication required block replication for the file.]]>
  8447. </doc>
  8448. </method>
  8449. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8450. abstract="false" native="false" synchronized="false"
  8451. static="false" final="false" visibility="public"
  8452. deprecated="not deprecated">
  8453. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8454. <param name="overwrite" type="boolean"/>
  8455. <param name="bufferSize" type="int"/>
  8456. <param name="replication" type="short"/>
  8457. <param name="blockSize" type="long"/>
  8458. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8459. <exception name="IOException" type="java.io.IOException"/>
  8460. <doc>
  8461. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8462. reporting.
  8463. @param f the file name to open
  8464. @param overwrite if a file with this name already exists, then if true,
  8465. the file will be overwritten, and if false an error will be thrown.
  8466. @param bufferSize the size of the buffer to be used.
  8467. @param replication required block replication for the file.]]>
  8468. </doc>
  8469. </method>
  8470. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  8471. abstract="true" native="false" synchronized="false"
  8472. static="false" final="false" visibility="public"
  8473. deprecated="not deprecated">
  8474. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8475. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8476. <param name="overwrite" type="boolean"/>
  8477. <param name="bufferSize" type="int"/>
  8478. <param name="replication" type="short"/>
  8479. <param name="blockSize" type="long"/>
  8480. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8481. <exception name="IOException" type="java.io.IOException"/>
  8482. <doc>
  8483. <![CDATA[Opens an FSDataOutputStream at the indicated Path with write-progress
  8484. reporting.
  8485. @param f the file name to open
  8486. @param permission
  8487. @param overwrite if a file with this name already exists, then if true,
  8488. the file will be overwritten, and if false an error will be thrown.
  8489. @param bufferSize the size of the buffer to be used.
  8490. @param replication required block replication for the file.
  8491. @param blockSize
  8492. @param progress
  8493. @throws IOException
  8494. @see #setPermission(Path, FsPermission)]]>
  8495. </doc>
  8496. </method>
  8497. <method name="createNewFile" return="boolean"
  8498. abstract="false" native="false" synchronized="false"
  8499. static="false" final="false" visibility="public"
  8500. deprecated="not deprecated">
  8501. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8502. <exception name="IOException" type="java.io.IOException"/>
  8503. <doc>
  8504. <![CDATA[Creates the given Path as a brand-new zero-length file. If
  8505. create fails, or if it already existed, return false.]]>
  8506. </doc>
  8507. </method>
  8508. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8509. abstract="false" native="false" synchronized="false"
  8510. static="false" final="false" visibility="public"
  8511. deprecated="not deprecated">
  8512. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8513. <exception name="IOException" type="java.io.IOException"/>
  8514. <doc>
  8515. <![CDATA[Append to an existing file (optional operation).
  8516. Same as append(f, getConf().getInt("io.file.buffer.size", 4096), null)
  8517. @param f the existing file to be appended.
  8518. @throws IOException]]>
  8519. </doc>
  8520. </method>
  8521. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8522. abstract="false" native="false" synchronized="false"
  8523. static="false" final="false" visibility="public"
  8524. deprecated="not deprecated">
  8525. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8526. <param name="bufferSize" type="int"/>
  8527. <exception name="IOException" type="java.io.IOException"/>
  8528. <doc>
  8529. <![CDATA[Append to an existing file (optional operation).
  8530. Same as append(f, bufferSize, null).
  8531. @param f the existing file to be appended.
  8532. @param bufferSize the size of the buffer to be used.
  8533. @throws IOException]]>
  8534. </doc>
  8535. </method>
  8536. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  8537. abstract="true" native="false" synchronized="false"
  8538. static="false" final="false" visibility="public"
  8539. deprecated="not deprecated">
  8540. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8541. <param name="bufferSize" type="int"/>
  8542. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  8543. <exception name="IOException" type="java.io.IOException"/>
  8544. <doc>
  8545. <![CDATA[Append to an existing file (optional operation).
  8546. @param f the existing file to be appended.
  8547. @param bufferSize the size of the buffer to be used.
  8548. @param progress for reporting progress if it is not null.
  8549. @throws IOException]]>
  8550. </doc>
  8551. </method>
  8552. <method name="getReplication" return="short"
  8553. abstract="false" native="false" synchronized="false"
  8554. static="false" final="false" visibility="public"
  8555. deprecated="Use getFileStatus() instead">
  8556. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8557. <exception name="IOException" type="java.io.IOException"/>
  8558. <doc>
  8559. <![CDATA[Get replication.
  8560. @deprecated Use getFileStatus() instead
  8561. @param src file name
  8562. @return file replication
  8563. @throws IOException]]>
  8564. </doc>
  8565. </method>
  8566. <method name="setReplication" return="boolean"
  8567. abstract="false" native="false" synchronized="false"
  8568. static="false" final="false" visibility="public"
  8569. deprecated="not deprecated">
  8570. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8571. <param name="replication" type="short"/>
  8572. <exception name="IOException" type="java.io.IOException"/>
  8573. <doc>
  8574. <![CDATA[Set replication for an existing file.
  8575. @param src file name
  8576. @param replication new replication
  8577. @throws IOException
  8578. @return true if successful;
  8579. false if file does not exist or is a directory]]>
  8580. </doc>
  8581. </method>
  8582. <method name="rename" return="boolean"
  8583. abstract="true" native="false" synchronized="false"
  8584. static="false" final="false" visibility="public"
  8585. deprecated="not deprecated">
  8586. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8587. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8588. <exception name="IOException" type="java.io.IOException"/>
  8589. <doc>
  8590. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  8591. or remote DFS.]]>
  8592. </doc>
  8593. </method>
  8594. <method name="delete" return="boolean"
  8595. abstract="true" native="false" synchronized="false"
  8596. static="false" final="false" visibility="public"
  8597. deprecated="Use delete(Path, boolean) instead">
  8598. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8599. <exception name="IOException" type="java.io.IOException"/>
  8600. <doc>
  8601. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  8602. </doc>
  8603. </method>
  8604. <method name="delete" return="boolean"
  8605. abstract="true" native="false" synchronized="false"
  8606. static="false" final="false" visibility="public"
  8607. deprecated="not deprecated">
  8608. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8609. <param name="recursive" type="boolean"/>
  8610. <exception name="IOException" type="java.io.IOException"/>
  8611. <doc>
  8612. <![CDATA[Delete a file.
  8613. @param f the path to delete.
  8614. @param recursive if path is a directory and set to
  8615. true, the directory is deleted else throws an exception. In
  8616. case of a file the recursive can be set to either true or false.
  8617. @return true if delete is successful else false.
  8618. @throws IOException]]>
  8619. </doc>
  8620. </method>
  8621. <method name="deleteOnExit" return="boolean"
  8622. abstract="false" native="false" synchronized="false"
  8623. static="false" final="false" visibility="public"
  8624. deprecated="not deprecated">
  8625. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8626. <exception name="IOException" type="java.io.IOException"/>
  8627. <doc>
  8628. <![CDATA[Mark a path to be deleted when FileSystem is closed.
  8629. When the JVM shuts down,
  8630. all FileSystem objects will be closed automatically.
  8631. Then,
  8632. the marked path will be deleted as a result of closing the FileSystem.
  8633. The path has to exist in the file system.
  8634. @param f the path to delete.
  8635. @return true if deleteOnExit is successful, otherwise false.
  8636. @throws IOException]]>
  8637. </doc>
  8638. </method>
  8639. <method name="processDeleteOnExit"
  8640. abstract="false" native="false" synchronized="false"
  8641. static="false" final="false" visibility="protected"
  8642. deprecated="not deprecated">
  8643. <doc>
  8644. <![CDATA[Delete all files that were marked as delete-on-exit. This recursively
  8645. deletes all files in the specified paths.]]>
  8646. </doc>
  8647. </method>
  8648. <method name="exists" return="boolean"
  8649. abstract="false" native="false" synchronized="false"
  8650. static="false" final="false" visibility="public"
  8651. deprecated="not deprecated">
  8652. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8653. <exception name="IOException" type="java.io.IOException"/>
  8654. <doc>
  8655. <![CDATA[Check if exists.
  8656. @param f source file]]>
  8657. </doc>
  8658. </method>
  8659. <method name="isDirectory" return="boolean"
  8660. abstract="false" native="false" synchronized="false"
  8661. static="false" final="false" visibility="public"
  8662. deprecated="Use getFileStatus() instead">
  8663. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8664. <exception name="IOException" type="java.io.IOException"/>
  8665. <doc>
  8666. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8667. </doc>
  8668. </method>
  8669. <method name="isFile" return="boolean"
  8670. abstract="false" native="false" synchronized="false"
  8671. static="false" final="false" visibility="public"
  8672. deprecated="not deprecated">
  8673. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8674. <exception name="IOException" type="java.io.IOException"/>
  8675. <doc>
  8676. <![CDATA[True iff the named path is a regular file.]]>
  8677. </doc>
  8678. </method>
  8679. <method name="getLength" return="long"
  8680. abstract="false" native="false" synchronized="false"
  8681. static="false" final="false" visibility="public"
  8682. deprecated="Use getFileStatus() instead">
  8683. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8684. <exception name="IOException" type="java.io.IOException"/>
  8685. <doc>
  8686. <![CDATA[@deprecated Use getFileStatus() instead]]>
  8687. </doc>
  8688. </method>
  8689. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  8690. abstract="false" native="false" synchronized="false"
  8691. static="false" final="false" visibility="public"
  8692. deprecated="not deprecated">
  8693. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8694. <exception name="IOException" type="java.io.IOException"/>
  8695. <doc>
  8696. <![CDATA[Return the {@link ContentSummary} of a given {@link Path}.]]>
  8697. </doc>
  8698. </method>
  8699. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8700. abstract="true" native="false" synchronized="false"
  8701. static="false" final="false" visibility="public"
  8702. deprecated="not deprecated">
  8703. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8704. <exception name="IOException" type="java.io.IOException"/>
  8705. <doc>
  8706. <![CDATA[List the statuses of the files/directories in the given path if the path is
  8707. a directory.
  8708. @param f
  8709. given path
  8710. @return the statuses of the files/directories in the given patch
  8711. @throws IOException]]>
  8712. </doc>
  8713. </method>
  8714. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8715. abstract="false" native="false" synchronized="false"
  8716. static="false" final="false" visibility="public"
  8717. deprecated="not deprecated">
  8718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8719. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8720. <exception name="IOException" type="java.io.IOException"/>
  8721. <doc>
  8722. <![CDATA[Filter files/directories in the given path using the user-supplied path
  8723. filter.
  8724. @param f
  8725. a path name
  8726. @param filter
  8727. the user-supplied path filter
  8728. @return an array of FileStatus objects for the files under the given path
  8729. after applying the filter
  8730. @throws IOException
  8731. if encounter any problem while fetching the status]]>
  8732. </doc>
  8733. </method>
  8734. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8735. abstract="false" native="false" synchronized="false"
  8736. static="false" final="false" visibility="public"
  8737. deprecated="not deprecated">
  8738. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8739. <exception name="IOException" type="java.io.IOException"/>
  8740. <doc>
  8741. <![CDATA[Filter files/directories in the given list of paths using default
  8742. path filter.
  8743. @param files
  8744. a list of paths
  8745. @return a list of statuses for the files under the given paths after
  8746. applying the filter default Path filter
  8747. @exception IOException]]>
  8748. </doc>
  8749. </method>
  8750. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8751. abstract="false" native="false" synchronized="false"
  8752. static="false" final="false" visibility="public"
  8753. deprecated="not deprecated">
  8754. <param name="files" type="org.apache.hadoop.fs.Path[]"/>
  8755. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8756. <exception name="IOException" type="java.io.IOException"/>
  8757. <doc>
  8758. <![CDATA[Filter files/directories in the given list of paths using user-supplied
  8759. path filter.
  8760. @param files
  8761. a list of paths
  8762. @param filter
  8763. the user-supplied path filter
  8764. @return a list of statuses for the files under the given paths after
  8765. applying the filter
  8766. @exception IOException]]>
  8767. </doc>
  8768. </method>
  8769. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8770. abstract="false" native="false" synchronized="false"
  8771. static="false" final="false" visibility="public"
  8772. deprecated="not deprecated">
  8773. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8774. <exception name="IOException" type="java.io.IOException"/>
  8775. <doc>
  8776. <![CDATA[<p>Return all the files that match filePattern and are not checksum
  8777. files. Results are sorted by their names.
  8778. <p>
  8779. A filename pattern is composed of <i>regular</i> characters and
  8780. <i>special pattern matching</i> characters, which are:
  8781. <dl>
  8782. <dd>
  8783. <dl>
  8784. <p>
  8785. <dt> <tt> ? </tt>
  8786. <dd> Matches any single character.
  8787. <p>
  8788. <dt> <tt> * </tt>
  8789. <dd> Matches zero or more characters.
  8790. <p>
  8791. <dt> <tt> [<i>abc</i>] </tt>
  8792. <dd> Matches a single character from character set
  8793. <tt>{<i>a,b,c</i>}</tt>.
  8794. <p>
  8795. <dt> <tt> [<i>a</i>-<i>b</i>] </tt>
  8796. <dd> Matches a single character from the character range
  8797. <tt>{<i>a...b</i>}</tt>. Note that character <tt><i>a</i></tt> must be
  8798. lexicographically less than or equal to character <tt><i>b</i></tt>.
  8799. <p>
  8800. <dt> <tt> [^<i>a</i>] </tt>
  8801. <dd> Matches a single character that is not from character set or range
  8802. <tt>{<i>a</i>}</tt>. Note that the <tt>^</tt> character must occur
  8803. immediately to the right of the opening bracket.
  8804. <p>
  8805. <dt> <tt> \<i>c</i> </tt>
  8806. <dd> Removes (escapes) any special meaning of character <i>c</i>.
  8807. <p>
  8808. <dt> <tt> {ab,cd} </tt>
  8809. <dd> Matches a string from the string set <tt>{<i>ab, cd</i>} </tt>
  8810. <p>
  8811. <dt> <tt> {ab,c{de,fh}} </tt>
  8812. <dd> Matches a string from the string set <tt>{<i>ab, cde, cfh</i>}</tt>
  8813. </dl>
  8814. </dd>
  8815. </dl>
  8816. @param pathPattern a regular expression specifying a pth pattern
  8817. @return an array of paths that match the path pattern
  8818. @throws IOException]]>
  8819. </doc>
  8820. </method>
  8821. <method name="globStatus" return="org.apache.hadoop.fs.FileStatus[]"
  8822. abstract="false" native="false" synchronized="false"
  8823. static="false" final="false" visibility="public"
  8824. deprecated="not deprecated">
  8825. <param name="pathPattern" type="org.apache.hadoop.fs.Path"/>
  8826. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  8827. <exception name="IOException" type="java.io.IOException"/>
  8828. <doc>
  8829. <![CDATA[Return an array of FileStatus objects whose path names match pathPattern
  8830. and is accepted by the user-supplied path filter. Results are sorted by
  8831. their path names.
  8832. Return null if pathPattern has no glob and the path does not exist.
  8833. Return an empty array if pathPattern has a glob and no path matches it.
  8834. @param pathPattern
  8835. a regular expression specifying the path pattern
  8836. @param filter
  8837. a user-supplied path filter
  8838. @return an array of FileStatus objects
  8839. @throws IOException if any I/O error occurs when fetching file status]]>
  8840. </doc>
  8841. </method>
  8842. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  8843. abstract="false" native="false" synchronized="false"
  8844. static="false" final="false" visibility="public"
  8845. deprecated="not deprecated">
  8846. <doc>
  8847. <![CDATA[Return the current user's home directory in this filesystem.
  8848. The default implementation returns "/user/$USER/".]]>
  8849. </doc>
  8850. </method>
  8851. <method name="setWorkingDirectory"
  8852. abstract="true" native="false" synchronized="false"
  8853. static="false" final="false" visibility="public"
  8854. deprecated="not deprecated">
  8855. <param name="new_dir" type="org.apache.hadoop.fs.Path"/>
  8856. <doc>
  8857. <![CDATA[Set the current working directory for the given file system. All relative
  8858. paths will be resolved relative to it.
  8859. @param new_dir]]>
  8860. </doc>
  8861. </method>
  8862. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  8863. abstract="true" native="false" synchronized="false"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <doc>
  8867. <![CDATA[Get the current working directory for the given file system
  8868. @return the directory pathname]]>
  8869. </doc>
  8870. </method>
  8871. <method name="mkdirs" return="boolean"
  8872. abstract="false" native="false" synchronized="false"
  8873. static="false" final="false" visibility="public"
  8874. deprecated="not deprecated">
  8875. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8876. <exception name="IOException" type="java.io.IOException"/>
  8877. <doc>
  8878. <![CDATA[Call {@link #mkdirs(Path, FsPermission)} with default permission.]]>
  8879. </doc>
  8880. </method>
  8881. <method name="mkdirs" return="boolean"
  8882. abstract="true" native="false" synchronized="false"
  8883. static="false" final="false" visibility="public"
  8884. deprecated="not deprecated">
  8885. <param name="f" type="org.apache.hadoop.fs.Path"/>
  8886. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  8887. <exception name="IOException" type="java.io.IOException"/>
  8888. <doc>
  8889. <![CDATA[Make the given file and all non-existent parents into
  8890. directories. Has the semantics of Unix 'mkdir -p'.
  8891. Existence of the directory hierarchy is not an error.]]>
  8892. </doc>
  8893. </method>
  8894. <method name="copyFromLocalFile"
  8895. abstract="false" native="false" synchronized="false"
  8896. static="false" final="false" visibility="public"
  8897. deprecated="not deprecated">
  8898. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8899. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8900. <exception name="IOException" type="java.io.IOException"/>
  8901. <doc>
  8902. <![CDATA[The src file is on the local disk. Add it to FS at
  8903. the given dst name and the source is kept intact afterwards]]>
  8904. </doc>
  8905. </method>
  8906. <method name="moveFromLocalFile"
  8907. abstract="false" native="false" synchronized="false"
  8908. static="false" final="false" visibility="public"
  8909. deprecated="not deprecated">
  8910. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8911. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8912. <exception name="IOException" type="java.io.IOException"/>
  8913. <doc>
  8914. <![CDATA[The src files is on the local disk. Add it to FS at
  8915. the given dst name, removing the source afterwards.]]>
  8916. </doc>
  8917. </method>
  8918. <method name="moveFromLocalFile"
  8919. abstract="false" native="false" synchronized="false"
  8920. static="false" final="false" visibility="public"
  8921. deprecated="not deprecated">
  8922. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8923. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8924. <exception name="IOException" type="java.io.IOException"/>
  8925. <doc>
  8926. <![CDATA[The src file is on the local disk. Add it to FS at
  8927. the given dst name, removing the source afterwards.]]>
  8928. </doc>
  8929. </method>
  8930. <method name="copyFromLocalFile"
  8931. abstract="false" native="false" synchronized="false"
  8932. static="false" final="false" visibility="public"
  8933. deprecated="not deprecated">
  8934. <param name="delSrc" type="boolean"/>
  8935. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8936. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8937. <exception name="IOException" type="java.io.IOException"/>
  8938. <doc>
  8939. <![CDATA[The src file is on the local disk. Add it to FS at
  8940. the given dst name.
  8941. delSrc indicates if the source should be removed]]>
  8942. </doc>
  8943. </method>
  8944. <method name="copyFromLocalFile"
  8945. abstract="false" native="false" synchronized="false"
  8946. static="false" final="false" visibility="public"
  8947. deprecated="not deprecated">
  8948. <param name="delSrc" type="boolean"/>
  8949. <param name="overwrite" type="boolean"/>
  8950. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  8951. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8952. <exception name="IOException" type="java.io.IOException"/>
  8953. <doc>
  8954. <![CDATA[The src files are on the local disk. Add it to FS at
  8955. the given dst name.
  8956. delSrc indicates if the source should be removed]]>
  8957. </doc>
  8958. </method>
  8959. <method name="copyFromLocalFile"
  8960. abstract="false" native="false" synchronized="false"
  8961. static="false" final="false" visibility="public"
  8962. deprecated="not deprecated">
  8963. <param name="delSrc" type="boolean"/>
  8964. <param name="overwrite" type="boolean"/>
  8965. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8966. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8967. <exception name="IOException" type="java.io.IOException"/>
  8968. <doc>
  8969. <![CDATA[The src file is on the local disk. Add it to FS at
  8970. the given dst name.
  8971. delSrc indicates if the source should be removed]]>
  8972. </doc>
  8973. </method>
  8974. <method name="copyToLocalFile"
  8975. abstract="false" native="false" synchronized="false"
  8976. static="false" final="false" visibility="public"
  8977. deprecated="not deprecated">
  8978. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8979. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8980. <exception name="IOException" type="java.io.IOException"/>
  8981. <doc>
  8982. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8983. Copy it from FS control to the local dst name.]]>
  8984. </doc>
  8985. </method>
  8986. <method name="moveToLocalFile"
  8987. abstract="false" native="false" synchronized="false"
  8988. static="false" final="false" visibility="public"
  8989. deprecated="not deprecated">
  8990. <param name="src" type="org.apache.hadoop.fs.Path"/>
  8991. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  8992. <exception name="IOException" type="java.io.IOException"/>
  8993. <doc>
  8994. <![CDATA[The src file is under FS, and the dst is on the local disk.
  8995. Copy it from FS control to the local dst name.
  8996. Remove the source afterwards]]>
  8997. </doc>
  8998. </method>
  8999. <method name="copyToLocalFile"
  9000. abstract="false" native="false" synchronized="false"
  9001. static="false" final="false" visibility="public"
  9002. deprecated="not deprecated">
  9003. <param name="delSrc" type="boolean"/>
  9004. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9005. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9006. <exception name="IOException" type="java.io.IOException"/>
  9007. <doc>
  9008. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9009. Copy it from FS control to the local dst name.
  9010. delSrc indicates if the src will be removed or not.]]>
  9011. </doc>
  9012. </method>
  9013. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9014. abstract="false" native="false" synchronized="false"
  9015. static="false" final="false" visibility="public"
  9016. deprecated="not deprecated">
  9017. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9018. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9019. <exception name="IOException" type="java.io.IOException"/>
  9020. <doc>
  9021. <![CDATA[Returns a local File that the user can write output to. The caller
  9022. provides both the eventual FS target name and the local working
  9023. file. If the FS is local, we write directly into the target. If
  9024. the FS is remote, we write into the tmp local area.]]>
  9025. </doc>
  9026. </method>
  9027. <method name="completeLocalOutput"
  9028. abstract="false" native="false" synchronized="false"
  9029. static="false" final="false" visibility="public"
  9030. deprecated="not deprecated">
  9031. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9032. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9033. <exception name="IOException" type="java.io.IOException"/>
  9034. <doc>
  9035. <![CDATA[Called when we're all done writing to the target. A local FS will
  9036. do nothing, because we've written to exactly the right place. A remote
  9037. FS will copy the contents of tmpLocalFile to the correct target at
  9038. fsOutputFile.]]>
  9039. </doc>
  9040. </method>
  9041. <method name="close"
  9042. abstract="false" native="false" synchronized="false"
  9043. static="false" final="false" visibility="public"
  9044. deprecated="not deprecated">
  9045. <exception name="IOException" type="java.io.IOException"/>
  9046. <doc>
  9047. <![CDATA[No more filesystem operations are needed. Will
  9048. release any held locks.]]>
  9049. </doc>
  9050. </method>
  9051. <method name="getUsed" return="long"
  9052. abstract="false" native="false" synchronized="false"
  9053. static="false" final="false" visibility="public"
  9054. deprecated="not deprecated">
  9055. <exception name="IOException" type="java.io.IOException"/>
  9056. <doc>
  9057. <![CDATA[Return the total size of all files in the filesystem.]]>
  9058. </doc>
  9059. </method>
  9060. <method name="getBlockSize" return="long"
  9061. abstract="false" native="false" synchronized="false"
  9062. static="false" final="false" visibility="public"
  9063. deprecated="Use getFileStatus() instead">
  9064. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9065. <exception name="IOException" type="java.io.IOException"/>
  9066. <doc>
  9067. <![CDATA[@deprecated Use getFileStatus() instead]]>
  9068. </doc>
  9069. </method>
  9070. <method name="getDefaultBlockSize" return="long"
  9071. abstract="false" native="false" synchronized="false"
  9072. static="false" final="false" visibility="public"
  9073. deprecated="not deprecated">
  9074. <doc>
  9075. <![CDATA[Return the number of bytes that large input files should be optimally
  9076. be split into to minimize i/o time.]]>
  9077. </doc>
  9078. </method>
  9079. <method name="getDefaultReplication" return="short"
  9080. abstract="false" native="false" synchronized="false"
  9081. static="false" final="false" visibility="public"
  9082. deprecated="not deprecated">
  9083. <doc>
  9084. <![CDATA[Get the default replication.]]>
  9085. </doc>
  9086. </method>
  9087. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9088. abstract="true" native="false" synchronized="false"
  9089. static="false" final="false" visibility="public"
  9090. deprecated="not deprecated">
  9091. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9092. <exception name="IOException" type="java.io.IOException"/>
  9093. <doc>
  9094. <![CDATA[Return a file status object that represents the path.
  9095. @param f The path we want information from
  9096. @return a FileStatus object
  9097. @throws FileNotFoundException when the path does not exist;
  9098. IOException see specific implementation]]>
  9099. </doc>
  9100. </method>
  9101. <method name="setPermission"
  9102. abstract="false" native="false" synchronized="false"
  9103. static="false" final="false" visibility="public"
  9104. deprecated="not deprecated">
  9105. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9106. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9107. <exception name="IOException" type="java.io.IOException"/>
  9108. <doc>
  9109. <![CDATA[Set permission of a path.
  9110. @param p
  9111. @param permission]]>
  9112. </doc>
  9113. </method>
  9114. <method name="setOwner"
  9115. abstract="false" native="false" synchronized="false"
  9116. static="false" final="false" visibility="public"
  9117. deprecated="not deprecated">
  9118. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9119. <param name="username" type="java.lang.String"/>
  9120. <param name="groupname" type="java.lang.String"/>
  9121. <exception name="IOException" type="java.io.IOException"/>
  9122. <doc>
  9123. <![CDATA[Set owner of a path (i.e. a file or a directory).
  9124. The parameters username and groupname cannot both be null.
  9125. @param p The path
  9126. @param username If it is null, the original username remains unchanged.
  9127. @param groupname If it is null, the original groupname remains unchanged.]]>
  9128. </doc>
  9129. </method>
  9130. <method name="getStatistics" return="org.apache.hadoop.fs.FileSystem.Statistics"
  9131. abstract="false" native="false" synchronized="true"
  9132. static="true" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. <param name="cls" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.FileSystem&gt;"/>
  9135. <doc>
  9136. <![CDATA[Get the statistics for a particular file system
  9137. @param cls the class to lookup
  9138. @return a statistics object]]>
  9139. </doc>
  9140. </method>
  9141. <method name="printStatistics"
  9142. abstract="false" native="false" synchronized="true"
  9143. static="true" final="false" visibility="public"
  9144. deprecated="not deprecated">
  9145. <exception name="IOException" type="java.io.IOException"/>
  9146. </method>
  9147. <field name="LOG" type="org.apache.commons.logging.Log"
  9148. transient="false" volatile="false"
  9149. static="true" final="true" visibility="public"
  9150. deprecated="not deprecated">
  9151. </field>
  9152. <field name="statistics" type="org.apache.hadoop.fs.FileSystem.Statistics"
  9153. transient="false" volatile="false"
  9154. static="false" final="true" visibility="protected"
  9155. deprecated="not deprecated">
  9156. <doc>
  9157. <![CDATA[The statistics for this file system.]]>
  9158. </doc>
  9159. </field>
  9160. <doc>
  9161. <![CDATA[An abstract base class for a fairly generic filesystem. It
  9162. may be implemented as a distributed filesystem, or as a "local"
  9163. one that reflects the locally-connected disk. The local version
  9164. exists for small Hadoop instances and for testing.
  9165. <p>
  9166. All user code that may potentially use the Hadoop Distributed
  9167. File System should be written to use a FileSystem object. The
  9168. Hadoop DFS is a multi-machine system that appears as a single
  9169. disk. It's useful because of its fault tolerance and potentially
  9170. very large capacity.
  9171. <p>
  9172. The local implementation is {@link LocalFileSystem} and distributed
  9173. implementation is {@link DistributedFileSystem}.]]>
  9174. </doc>
  9175. </class>
  9176. <!-- end class org.apache.hadoop.fs.FileSystem -->
  9177. <!-- start class org.apache.hadoop.fs.FileSystem.Statistics -->
  9178. <class name="FileSystem.Statistics" extends="java.lang.Object"
  9179. abstract="false"
  9180. static="true" final="true" visibility="public"
  9181. deprecated="not deprecated">
  9182. <constructor name="FileSystem.Statistics"
  9183. static="false" final="false" visibility="public"
  9184. deprecated="not deprecated">
  9185. </constructor>
  9186. <method name="incrementBytesRead"
  9187. abstract="false" native="false" synchronized="false"
  9188. static="false" final="false" visibility="public"
  9189. deprecated="not deprecated">
  9190. <param name="newBytes" type="long"/>
  9191. <doc>
  9192. <![CDATA[Increment the bytes read in the statistics
  9193. @param newBytes the additional bytes read]]>
  9194. </doc>
  9195. </method>
  9196. <method name="incrementBytesWritten"
  9197. abstract="false" native="false" synchronized="false"
  9198. static="false" final="false" visibility="public"
  9199. deprecated="not deprecated">
  9200. <param name="newBytes" type="long"/>
  9201. <doc>
  9202. <![CDATA[Increment the bytes written in the statistics
  9203. @param newBytes the additional bytes written]]>
  9204. </doc>
  9205. </method>
  9206. <method name="getBytesRead" return="long"
  9207. abstract="false" native="false" synchronized="false"
  9208. static="false" final="false" visibility="public"
  9209. deprecated="not deprecated">
  9210. <doc>
  9211. <![CDATA[Get the total number of bytes read
  9212. @return the number of bytes]]>
  9213. </doc>
  9214. </method>
  9215. <method name="getBytesWritten" return="long"
  9216. abstract="false" native="false" synchronized="false"
  9217. static="false" final="false" visibility="public"
  9218. deprecated="not deprecated">
  9219. <doc>
  9220. <![CDATA[Get the total number of bytes written
  9221. @return the number of bytes]]>
  9222. </doc>
  9223. </method>
  9224. <method name="toString" return="java.lang.String"
  9225. abstract="false" native="false" synchronized="false"
  9226. static="false" final="false" visibility="public"
  9227. deprecated="not deprecated">
  9228. </method>
  9229. </class>
  9230. <!-- end class org.apache.hadoop.fs.FileSystem.Statistics -->
  9231. <!-- start class org.apache.hadoop.fs.FileUtil -->
  9232. <class name="FileUtil" extends="java.lang.Object"
  9233. abstract="false"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <constructor name="FileUtil"
  9237. static="false" final="false" visibility="public"
  9238. deprecated="not deprecated">
  9239. </constructor>
  9240. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9241. abstract="false" native="false" synchronized="false"
  9242. static="true" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9245. <doc>
  9246. <![CDATA[convert an array of FileStatus to an array of Path
  9247. @param stats
  9248. an array of FileStatus objects
  9249. @return an array of paths corresponding to the input]]>
  9250. </doc>
  9251. </method>
  9252. <method name="stat2Paths" return="org.apache.hadoop.fs.Path[]"
  9253. abstract="false" native="false" synchronized="false"
  9254. static="true" final="false" visibility="public"
  9255. deprecated="not deprecated">
  9256. <param name="stats" type="org.apache.hadoop.fs.FileStatus[]"/>
  9257. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9258. <doc>
  9259. <![CDATA[convert an array of FileStatus to an array of Path.
  9260. If stats if null, return path
  9261. @param stats
  9262. an array of FileStatus objects
  9263. @param path
  9264. default path to return in stats is null
  9265. @return an array of paths corresponding to the input]]>
  9266. </doc>
  9267. </method>
  9268. <method name="fullyDelete" return="boolean"
  9269. abstract="false" native="false" synchronized="false"
  9270. static="true" final="false" visibility="public"
  9271. deprecated="not deprecated">
  9272. <param name="dir" type="java.io.File"/>
  9273. <exception name="IOException" type="java.io.IOException"/>
  9274. <doc>
  9275. <![CDATA[Delete a directory and all its contents. If
  9276. we return false, the directory may be partially-deleted.]]>
  9277. </doc>
  9278. </method>
  9279. <method name="fullyDelete"
  9280. abstract="false" native="false" synchronized="false"
  9281. static="true" final="false" visibility="public"
  9282. deprecated="not deprecated">
  9283. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  9284. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  9285. <exception name="IOException" type="java.io.IOException"/>
  9286. <doc>
  9287. <![CDATA[Recursively delete a directory.
  9288. @param fs {@link FileSystem} on which the path is present
  9289. @param dir directory to recursively delete
  9290. @throws IOException]]>
  9291. </doc>
  9292. </method>
  9293. <method name="copy" return="boolean"
  9294. abstract="false" native="false" synchronized="false"
  9295. static="true" final="false" visibility="public"
  9296. deprecated="not deprecated">
  9297. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9298. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9299. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9300. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9301. <param name="deleteSource" type="boolean"/>
  9302. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9303. <exception name="IOException" type="java.io.IOException"/>
  9304. <doc>
  9305. <![CDATA[Copy files between FileSystems.]]>
  9306. </doc>
  9307. </method>
  9308. <method name="copy" return="boolean"
  9309. abstract="false" native="false" synchronized="false"
  9310. static="true" final="false" visibility="public"
  9311. deprecated="not deprecated">
  9312. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9313. <param name="srcs" type="org.apache.hadoop.fs.Path[]"/>
  9314. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9315. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9316. <param name="deleteSource" type="boolean"/>
  9317. <param name="overwrite" type="boolean"/>
  9318. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9319. <exception name="IOException" type="java.io.IOException"/>
  9320. </method>
  9321. <method name="copy" return="boolean"
  9322. abstract="false" native="false" synchronized="false"
  9323. static="true" final="false" visibility="public"
  9324. deprecated="not deprecated">
  9325. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9326. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9327. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9328. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9329. <param name="deleteSource" type="boolean"/>
  9330. <param name="overwrite" type="boolean"/>
  9331. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9332. <exception name="IOException" type="java.io.IOException"/>
  9333. <doc>
  9334. <![CDATA[Copy files between FileSystems.]]>
  9335. </doc>
  9336. </method>
  9337. <method name="copyMerge" return="boolean"
  9338. abstract="false" native="false" synchronized="false"
  9339. static="true" final="false" visibility="public"
  9340. deprecated="not deprecated">
  9341. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9342. <param name="srcDir" type="org.apache.hadoop.fs.Path"/>
  9343. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9344. <param name="dstFile" type="org.apache.hadoop.fs.Path"/>
  9345. <param name="deleteSource" type="boolean"/>
  9346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9347. <param name="addString" type="java.lang.String"/>
  9348. <exception name="IOException" type="java.io.IOException"/>
  9349. <doc>
  9350. <![CDATA[Copy all files in a directory to one output file (merge).]]>
  9351. </doc>
  9352. </method>
  9353. <method name="copy" return="boolean"
  9354. abstract="false" native="false" synchronized="false"
  9355. static="true" final="false" visibility="public"
  9356. deprecated="not deprecated">
  9357. <param name="src" type="java.io.File"/>
  9358. <param name="dstFS" type="org.apache.hadoop.fs.FileSystem"/>
  9359. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9360. <param name="deleteSource" type="boolean"/>
  9361. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9362. <exception name="IOException" type="java.io.IOException"/>
  9363. <doc>
  9364. <![CDATA[Copy local files to a FileSystem.]]>
  9365. </doc>
  9366. </method>
  9367. <method name="copy" return="boolean"
  9368. abstract="false" native="false" synchronized="false"
  9369. static="true" final="false" visibility="public"
  9370. deprecated="not deprecated">
  9371. <param name="srcFS" type="org.apache.hadoop.fs.FileSystem"/>
  9372. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9373. <param name="dst" type="java.io.File"/>
  9374. <param name="deleteSource" type="boolean"/>
  9375. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9376. <exception name="IOException" type="java.io.IOException"/>
  9377. <doc>
  9378. <![CDATA[Copy FileSystem files to local files.]]>
  9379. </doc>
  9380. </method>
  9381. <method name="makeShellPath" return="java.lang.String"
  9382. abstract="false" native="false" synchronized="false"
  9383. static="true" final="false" visibility="public"
  9384. deprecated="not deprecated">
  9385. <param name="filename" type="java.lang.String"/>
  9386. <exception name="IOException" type="java.io.IOException"/>
  9387. <doc>
  9388. <![CDATA[Convert a os-native filename to a path that works for the shell.
  9389. @param filename The filename to convert
  9390. @return The unix pathname
  9391. @throws IOException on windows, there can be problems with the subprocess]]>
  9392. </doc>
  9393. </method>
  9394. <method name="makeShellPath" return="java.lang.String"
  9395. abstract="false" native="false" synchronized="false"
  9396. static="true" final="false" visibility="public"
  9397. deprecated="not deprecated">
  9398. <param name="file" type="java.io.File"/>
  9399. <exception name="IOException" type="java.io.IOException"/>
  9400. <doc>
  9401. <![CDATA[Convert a os-native filename to a path that works for the shell.
  9402. @param file The filename to convert
  9403. @return The unix pathname
  9404. @throws IOException on windows, there can be problems with the subprocess]]>
  9405. </doc>
  9406. </method>
  9407. <method name="getDU" return="long"
  9408. abstract="false" native="false" synchronized="false"
  9409. static="true" final="false" visibility="public"
  9410. deprecated="not deprecated">
  9411. <param name="dir" type="java.io.File"/>
  9412. <doc>
  9413. <![CDATA[Takes an input dir and returns the du on that local directory. Very basic
  9414. implementation.
  9415. @param dir
  9416. The input dir to get the disk space of this local dir
  9417. @return The total disk space of the input local directory]]>
  9418. </doc>
  9419. </method>
  9420. <method name="unZip"
  9421. abstract="false" native="false" synchronized="false"
  9422. static="true" final="false" visibility="public"
  9423. deprecated="not deprecated">
  9424. <param name="inFile" type="java.io.File"/>
  9425. <param name="unzipDir" type="java.io.File"/>
  9426. <exception name="IOException" type="java.io.IOException"/>
  9427. <doc>
  9428. <![CDATA[Given a File input it will unzip the file in a the unzip directory
  9429. passed as the second parameter
  9430. @param inFile The zip file as input
  9431. @param unzipDir The unzip directory where to unzip the zip file.
  9432. @throws IOException]]>
  9433. </doc>
  9434. </method>
  9435. <method name="unTar"
  9436. abstract="false" native="false" synchronized="false"
  9437. static="true" final="false" visibility="public"
  9438. deprecated="not deprecated">
  9439. <param name="inFile" type="java.io.File"/>
  9440. <param name="untarDir" type="java.io.File"/>
  9441. <exception name="IOException" type="java.io.IOException"/>
  9442. <doc>
  9443. <![CDATA[Given a Tar File as input it will untar the file in a the untar directory
  9444. passed as the second parameter
  9445. This utility will untar ".tar" files and ".tar.gz","tgz" files.
  9446. @param inFile The tar file as input.
  9447. @param untarDir The untar directory where to untar the tar file.
  9448. @throws IOException]]>
  9449. </doc>
  9450. </method>
  9451. <method name="symLink" return="int"
  9452. abstract="false" native="false" synchronized="false"
  9453. static="true" final="false" visibility="public"
  9454. deprecated="not deprecated">
  9455. <param name="target" type="java.lang.String"/>
  9456. <param name="linkname" type="java.lang.String"/>
  9457. <exception name="IOException" type="java.io.IOException"/>
  9458. <doc>
  9459. <![CDATA[Create a soft link between a src and destination
  9460. only on a local disk. HDFS does not support this
  9461. @param target the target for symlink
  9462. @param linkname the symlink
  9463. @return value returned by the command]]>
  9464. </doc>
  9465. </method>
  9466. <method name="chmod" return="int"
  9467. abstract="false" native="false" synchronized="false"
  9468. static="true" final="false" visibility="public"
  9469. deprecated="not deprecated">
  9470. <param name="filename" type="java.lang.String"/>
  9471. <param name="perm" type="java.lang.String"/>
  9472. <exception name="IOException" type="java.io.IOException"/>
  9473. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  9474. <doc>
  9475. <![CDATA[Change the permissions on a filename.
  9476. @param filename the name of the file to change
  9477. @param perm the permission string
  9478. @return the exit code from the command
  9479. @throws IOException
  9480. @throws InterruptedException]]>
  9481. </doc>
  9482. </method>
  9483. <method name="createLocalTempFile" return="java.io.File"
  9484. abstract="false" native="false" synchronized="false"
  9485. static="true" final="true" visibility="public"
  9486. deprecated="not deprecated">
  9487. <param name="basefile" type="java.io.File"/>
  9488. <param name="prefix" type="java.lang.String"/>
  9489. <param name="isDeleteOnExit" type="boolean"/>
  9490. <exception name="IOException" type="java.io.IOException"/>
  9491. <doc>
  9492. <![CDATA[Create a tmp file for a base file.
  9493. @param basefile the base file of the tmp
  9494. @param prefix file name prefix of tmp
  9495. @param isDeleteOnExit if true, the tmp will be deleted when the VM exits
  9496. @return a newly created tmp file
  9497. @exception IOException If a tmp file cannot created
  9498. @see java.io.File#createTempFile(String, String, File)
  9499. @see java.io.File#deleteOnExit()]]>
  9500. </doc>
  9501. </method>
  9502. <method name="replaceFile"
  9503. abstract="false" native="false" synchronized="false"
  9504. static="true" final="false" visibility="public"
  9505. deprecated="not deprecated">
  9506. <param name="src" type="java.io.File"/>
  9507. <param name="target" type="java.io.File"/>
  9508. <exception name="IOException" type="java.io.IOException"/>
  9509. <doc>
  9510. <![CDATA[Move the src file to the name specified by target.
  9511. @param src the source file
  9512. @param target the target file
  9513. @exception IOException If this operation fails]]>
  9514. </doc>
  9515. </method>
  9516. <doc>
  9517. <![CDATA[A collection of file-processing util methods]]>
  9518. </doc>
  9519. </class>
  9520. <!-- end class org.apache.hadoop.fs.FileUtil -->
  9521. <!-- start class org.apache.hadoop.fs.FileUtil.HardLink -->
  9522. <class name="FileUtil.HardLink" extends="java.lang.Object"
  9523. abstract="false"
  9524. static="true" final="false" visibility="public"
  9525. deprecated="not deprecated">
  9526. <constructor name="FileUtil.HardLink"
  9527. static="false" final="false" visibility="public"
  9528. deprecated="not deprecated">
  9529. </constructor>
  9530. <method name="createHardLink"
  9531. abstract="false" native="false" synchronized="false"
  9532. static="true" final="false" visibility="public"
  9533. deprecated="not deprecated">
  9534. <param name="target" type="java.io.File"/>
  9535. <param name="linkName" type="java.io.File"/>
  9536. <exception name="IOException" type="java.io.IOException"/>
  9537. <doc>
  9538. <![CDATA[Creates a hardlink]]>
  9539. </doc>
  9540. </method>
  9541. <method name="getLinkCount" return="int"
  9542. abstract="false" native="false" synchronized="false"
  9543. static="true" final="false" visibility="public"
  9544. deprecated="not deprecated">
  9545. <param name="fileName" type="java.io.File"/>
  9546. <exception name="IOException" type="java.io.IOException"/>
  9547. <doc>
  9548. <![CDATA[Retrieves the number of links to the specified file.]]>
  9549. </doc>
  9550. </method>
  9551. <doc>
  9552. <![CDATA[Class for creating hardlinks.
  9553. Supports Unix, Cygwin, WindXP.]]>
  9554. </doc>
  9555. </class>
  9556. <!-- end class org.apache.hadoop.fs.FileUtil.HardLink -->
  9557. <!-- start class org.apache.hadoop.fs.FilterFileSystem -->
  9558. <class name="FilterFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  9559. abstract="false"
  9560. static="false" final="false" visibility="public"
  9561. deprecated="not deprecated">
  9562. <constructor name="FilterFileSystem"
  9563. static="false" final="false" visibility="public"
  9564. deprecated="not deprecated">
  9565. </constructor>
  9566. <constructor name="FilterFileSystem" type="org.apache.hadoop.fs.FileSystem"
  9567. static="false" final="false" visibility="public"
  9568. deprecated="not deprecated">
  9569. </constructor>
  9570. <method name="initialize"
  9571. abstract="false" native="false" synchronized="false"
  9572. static="false" final="false" visibility="public"
  9573. deprecated="not deprecated">
  9574. <param name="name" type="java.net.URI"/>
  9575. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  9576. <exception name="IOException" type="java.io.IOException"/>
  9577. <doc>
  9578. <![CDATA[Called after a new FileSystem instance is constructed.
  9579. @param name a uri whose authority section names the host, port, etc.
  9580. for this FileSystem
  9581. @param conf the configuration]]>
  9582. </doc>
  9583. </method>
  9584. <method name="getUri" return="java.net.URI"
  9585. abstract="false" native="false" synchronized="false"
  9586. static="false" final="false" visibility="public"
  9587. deprecated="not deprecated">
  9588. <doc>
  9589. <![CDATA[Returns a URI whose scheme and authority identify this FileSystem.]]>
  9590. </doc>
  9591. </method>
  9592. <method name="getName" return="java.lang.String"
  9593. abstract="false" native="false" synchronized="false"
  9594. static="false" final="false" visibility="public"
  9595. deprecated="call #getUri() instead.">
  9596. <doc>
  9597. <![CDATA[@deprecated call #getUri() instead.]]>
  9598. </doc>
  9599. </method>
  9600. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  9601. abstract="false" native="false" synchronized="false"
  9602. static="false" final="false" visibility="public"
  9603. deprecated="not deprecated">
  9604. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9605. <doc>
  9606. <![CDATA[Make sure that a path specifies a FileSystem.]]>
  9607. </doc>
  9608. </method>
  9609. <method name="checkPath"
  9610. abstract="false" native="false" synchronized="false"
  9611. static="false" final="false" visibility="protected"
  9612. deprecated="not deprecated">
  9613. <param name="path" type="org.apache.hadoop.fs.Path"/>
  9614. <doc>
  9615. <![CDATA[Check that a Path belongs to this FileSystem.]]>
  9616. </doc>
  9617. </method>
  9618. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9619. abstract="false" native="false" synchronized="false"
  9620. static="false" final="false" visibility="public"
  9621. deprecated="not deprecated">
  9622. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9623. <param name="start" type="long"/>
  9624. <param name="len" type="long"/>
  9625. <exception name="IOException" type="java.io.IOException"/>
  9626. <doc>
  9627. <![CDATA[Return an array containing hostnames, offset and size of
  9628. portions of the given file. For a nonexistent
  9629. file or regions, null will be returned.
  9630. This call is most helpful with DFS, where it returns
  9631. hostnames of machines that contain the given file.
  9632. The FileSystem will simply return an elt containing 'localhost'.]]>
  9633. </doc>
  9634. </method>
  9635. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  9636. abstract="false" native="false" synchronized="false"
  9637. static="false" final="false" visibility="public"
  9638. deprecated="not deprecated">
  9639. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  9640. <param name="start" type="long"/>
  9641. <param name="len" type="long"/>
  9642. <exception name="IOException" type="java.io.IOException"/>
  9643. </method>
  9644. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  9645. abstract="false" native="false" synchronized="false"
  9646. static="false" final="false" visibility="public"
  9647. deprecated="not deprecated">
  9648. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9649. <param name="bufferSize" type="int"/>
  9650. <exception name="IOException" type="java.io.IOException"/>
  9651. <doc>
  9652. <![CDATA[Opens an FSDataInputStream at the indicated Path.
  9653. @param f the file name to open
  9654. @param bufferSize the size of the buffer to be used.]]>
  9655. </doc>
  9656. </method>
  9657. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  9658. abstract="false" native="false" synchronized="false"
  9659. static="false" final="false" visibility="public"
  9660. deprecated="not deprecated">
  9661. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9662. <param name="bufferSize" type="int"/>
  9663. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9664. <exception name="IOException" type="java.io.IOException"/>
  9665. <doc>
  9666. <![CDATA[{@inheritDoc}]]>
  9667. </doc>
  9668. </method>
  9669. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  9670. abstract="false" native="false" synchronized="false"
  9671. static="false" final="false" visibility="public"
  9672. deprecated="not deprecated">
  9673. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9674. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9675. <param name="overwrite" type="boolean"/>
  9676. <param name="bufferSize" type="int"/>
  9677. <param name="replication" type="short"/>
  9678. <param name="blockSize" type="long"/>
  9679. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  9680. <exception name="IOException" type="java.io.IOException"/>
  9681. <doc>
  9682. <![CDATA[{@inheritDoc}]]>
  9683. </doc>
  9684. </method>
  9685. <method name="setReplication" return="boolean"
  9686. abstract="false" native="false" synchronized="false"
  9687. static="false" final="false" visibility="public"
  9688. deprecated="not deprecated">
  9689. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9690. <param name="replication" type="short"/>
  9691. <exception name="IOException" type="java.io.IOException"/>
  9692. <doc>
  9693. <![CDATA[Set replication for an existing file.
  9694. @param src file name
  9695. @param replication new replication
  9696. @throws IOException
  9697. @return true if successful;
  9698. false if file does not exist or is a directory]]>
  9699. </doc>
  9700. </method>
  9701. <method name="rename" return="boolean"
  9702. abstract="false" native="false" synchronized="false"
  9703. static="false" final="false" visibility="public"
  9704. deprecated="not deprecated">
  9705. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9706. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9707. <exception name="IOException" type="java.io.IOException"/>
  9708. <doc>
  9709. <![CDATA[Renames Path src to Path dst. Can take place on local fs
  9710. or remote DFS.]]>
  9711. </doc>
  9712. </method>
  9713. <method name="delete" return="boolean"
  9714. abstract="false" native="false" synchronized="false"
  9715. static="false" final="false" visibility="public"
  9716. deprecated="not deprecated">
  9717. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9718. <exception name="IOException" type="java.io.IOException"/>
  9719. <doc>
  9720. <![CDATA[Delete a file]]>
  9721. </doc>
  9722. </method>
  9723. <method name="delete" return="boolean"
  9724. abstract="false" native="false" synchronized="false"
  9725. static="false" final="false" visibility="public"
  9726. deprecated="not deprecated">
  9727. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9728. <param name="recursive" type="boolean"/>
  9729. <exception name="IOException" type="java.io.IOException"/>
  9730. <doc>
  9731. <![CDATA[Delete a file]]>
  9732. </doc>
  9733. </method>
  9734. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  9735. abstract="false" native="false" synchronized="false"
  9736. static="false" final="false" visibility="public"
  9737. deprecated="not deprecated">
  9738. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9739. <exception name="IOException" type="java.io.IOException"/>
  9740. <doc>
  9741. <![CDATA[List files in a directory.]]>
  9742. </doc>
  9743. </method>
  9744. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  9745. abstract="false" native="false" synchronized="false"
  9746. static="false" final="false" visibility="public"
  9747. deprecated="not deprecated">
  9748. </method>
  9749. <method name="setWorkingDirectory"
  9750. abstract="false" native="false" synchronized="false"
  9751. static="false" final="false" visibility="public"
  9752. deprecated="not deprecated">
  9753. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  9754. <doc>
  9755. <![CDATA[Set the current working directory for the given file system. All relative
  9756. paths will be resolved relative to it.
  9757. @param newDir]]>
  9758. </doc>
  9759. </method>
  9760. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  9761. abstract="false" native="false" synchronized="false"
  9762. static="false" final="false" visibility="public"
  9763. deprecated="not deprecated">
  9764. <doc>
  9765. <![CDATA[Get the current working directory for the given file system
  9766. @return the directory pathname]]>
  9767. </doc>
  9768. </method>
  9769. <method name="mkdirs" return="boolean"
  9770. abstract="false" native="false" synchronized="false"
  9771. static="false" final="false" visibility="public"
  9772. deprecated="not deprecated">
  9773. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9774. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9775. <exception name="IOException" type="java.io.IOException"/>
  9776. <doc>
  9777. <![CDATA[{@inheritDoc}]]>
  9778. </doc>
  9779. </method>
  9780. <method name="copyFromLocalFile"
  9781. abstract="false" native="false" synchronized="false"
  9782. static="false" final="false" visibility="public"
  9783. deprecated="not deprecated">
  9784. <param name="delSrc" type="boolean"/>
  9785. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9786. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9787. <exception name="IOException" type="java.io.IOException"/>
  9788. <doc>
  9789. <![CDATA[The src file is on the local disk. Add it to FS at
  9790. the given dst name.
  9791. delSrc indicates if the source should be removed]]>
  9792. </doc>
  9793. </method>
  9794. <method name="copyToLocalFile"
  9795. abstract="false" native="false" synchronized="false"
  9796. static="false" final="false" visibility="public"
  9797. deprecated="not deprecated">
  9798. <param name="delSrc" type="boolean"/>
  9799. <param name="src" type="org.apache.hadoop.fs.Path"/>
  9800. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  9801. <exception name="IOException" type="java.io.IOException"/>
  9802. <doc>
  9803. <![CDATA[The src file is under FS, and the dst is on the local disk.
  9804. Copy it from FS control to the local dst name.
  9805. delSrc indicates if the src will be removed or not.]]>
  9806. </doc>
  9807. </method>
  9808. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  9809. abstract="false" native="false" synchronized="false"
  9810. static="false" final="false" visibility="public"
  9811. deprecated="not deprecated">
  9812. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9813. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9814. <exception name="IOException" type="java.io.IOException"/>
  9815. <doc>
  9816. <![CDATA[Returns a local File that the user can write output to. The caller
  9817. provides both the eventual FS target name and the local working
  9818. file. If the FS is local, we write directly into the target. If
  9819. the FS is remote, we write into the tmp local area.]]>
  9820. </doc>
  9821. </method>
  9822. <method name="completeLocalOutput"
  9823. abstract="false" native="false" synchronized="false"
  9824. static="false" final="false" visibility="public"
  9825. deprecated="not deprecated">
  9826. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  9827. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  9828. <exception name="IOException" type="java.io.IOException"/>
  9829. <doc>
  9830. <![CDATA[Called when we're all done writing to the target. A local FS will
  9831. do nothing, because we've written to exactly the right place. A remote
  9832. FS will copy the contents of tmpLocalFile to the correct target at
  9833. fsOutputFile.]]>
  9834. </doc>
  9835. </method>
  9836. <method name="getDefaultBlockSize" return="long"
  9837. abstract="false" native="false" synchronized="false"
  9838. static="false" final="false" visibility="public"
  9839. deprecated="not deprecated">
  9840. <doc>
  9841. <![CDATA[Return the number of bytes that large input files should be optimally
  9842. be split into to minimize i/o time.]]>
  9843. </doc>
  9844. </method>
  9845. <method name="getDefaultReplication" return="short"
  9846. abstract="false" native="false" synchronized="false"
  9847. static="false" final="false" visibility="public"
  9848. deprecated="not deprecated">
  9849. <doc>
  9850. <![CDATA[Get the default replication.]]>
  9851. </doc>
  9852. </method>
  9853. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  9854. abstract="false" native="false" synchronized="false"
  9855. static="false" final="false" visibility="public"
  9856. deprecated="not deprecated">
  9857. <param name="f" type="org.apache.hadoop.fs.Path"/>
  9858. <exception name="IOException" type="java.io.IOException"/>
  9859. <doc>
  9860. <![CDATA[Get file status.]]>
  9861. </doc>
  9862. </method>
  9863. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  9864. abstract="false" native="false" synchronized="false"
  9865. static="false" final="false" visibility="public"
  9866. deprecated="not deprecated">
  9867. </method>
  9868. <method name="close"
  9869. abstract="false" native="false" synchronized="false"
  9870. static="false" final="false" visibility="public"
  9871. deprecated="not deprecated">
  9872. <exception name="IOException" type="java.io.IOException"/>
  9873. </method>
  9874. <method name="setOwner"
  9875. abstract="false" native="false" synchronized="false"
  9876. static="false" final="false" visibility="public"
  9877. deprecated="not deprecated">
  9878. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9879. <param name="username" type="java.lang.String"/>
  9880. <param name="groupname" type="java.lang.String"/>
  9881. <exception name="IOException" type="java.io.IOException"/>
  9882. <doc>
  9883. <![CDATA[{@inheritDoc}]]>
  9884. </doc>
  9885. </method>
  9886. <method name="setPermission"
  9887. abstract="false" native="false" synchronized="false"
  9888. static="false" final="false" visibility="public"
  9889. deprecated="not deprecated">
  9890. <param name="p" type="org.apache.hadoop.fs.Path"/>
  9891. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  9892. <exception name="IOException" type="java.io.IOException"/>
  9893. <doc>
  9894. <![CDATA[{@inheritDoc}]]>
  9895. </doc>
  9896. </method>
  9897. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  9898. transient="false" volatile="false"
  9899. static="false" final="false" visibility="protected"
  9900. deprecated="not deprecated">
  9901. </field>
  9902. <doc>
  9903. <![CDATA[A <code>FilterFileSystem</code> contains
  9904. some other file system, which it uses as
  9905. its basic file system, possibly transforming
  9906. the data along the way or providing additional
  9907. functionality. The class <code>FilterFileSystem</code>
  9908. itself simply overrides all methods of
  9909. <code>FileSystem</code> with versions that
  9910. pass all requests to the contained file
  9911. system. Subclasses of <code>FilterFileSystem</code>
  9912. may further override some of these methods
  9913. and may also provide additional methods
  9914. and fields.]]>
  9915. </doc>
  9916. </class>
  9917. <!-- end class org.apache.hadoop.fs.FilterFileSystem -->
  9918. <!-- start class org.apache.hadoop.fs.FSDataInputStream -->
  9919. <class name="FSDataInputStream" extends="java.io.DataInputStream"
  9920. abstract="false"
  9921. static="false" final="false" visibility="public"
  9922. deprecated="not deprecated">
  9923. <implements name="org.apache.hadoop.fs.Seekable"/>
  9924. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  9925. <constructor name="FSDataInputStream" type="java.io.InputStream"
  9926. static="false" final="false" visibility="public"
  9927. deprecated="not deprecated">
  9928. <exception name="IOException" type="java.io.IOException"/>
  9929. </constructor>
  9930. <method name="seek"
  9931. abstract="false" native="false" synchronized="true"
  9932. static="false" final="false" visibility="public"
  9933. deprecated="not deprecated">
  9934. <param name="desired" type="long"/>
  9935. <exception name="IOException" type="java.io.IOException"/>
  9936. </method>
  9937. <method name="getPos" return="long"
  9938. abstract="false" native="false" synchronized="false"
  9939. static="false" final="false" visibility="public"
  9940. deprecated="not deprecated">
  9941. <exception name="IOException" type="java.io.IOException"/>
  9942. </method>
  9943. <method name="read" return="int"
  9944. abstract="false" native="false" synchronized="false"
  9945. static="false" final="false" visibility="public"
  9946. deprecated="not deprecated">
  9947. <param name="position" type="long"/>
  9948. <param name="buffer" type="byte[]"/>
  9949. <param name="offset" type="int"/>
  9950. <param name="length" type="int"/>
  9951. <exception name="IOException" type="java.io.IOException"/>
  9952. </method>
  9953. <method name="readFully"
  9954. abstract="false" native="false" synchronized="false"
  9955. static="false" final="false" visibility="public"
  9956. deprecated="not deprecated">
  9957. <param name="position" type="long"/>
  9958. <param name="buffer" type="byte[]"/>
  9959. <param name="offset" type="int"/>
  9960. <param name="length" type="int"/>
  9961. <exception name="IOException" type="java.io.IOException"/>
  9962. </method>
  9963. <method name="readFully"
  9964. abstract="false" native="false" synchronized="false"
  9965. static="false" final="false" visibility="public"
  9966. deprecated="not deprecated">
  9967. <param name="position" type="long"/>
  9968. <param name="buffer" type="byte[]"/>
  9969. <exception name="IOException" type="java.io.IOException"/>
  9970. </method>
  9971. <method name="seekToNewSource" return="boolean"
  9972. abstract="false" native="false" synchronized="false"
  9973. static="false" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. <param name="targetPos" type="long"/>
  9976. <exception name="IOException" type="java.io.IOException"/>
  9977. </method>
  9978. <doc>
  9979. <![CDATA[Utility that wraps a {@link FSInputStream} in a {@link DataInputStream}
  9980. and buffers input through a {@link BufferedInputStream}.]]>
  9981. </doc>
  9982. </class>
  9983. <!-- end class org.apache.hadoop.fs.FSDataInputStream -->
  9984. <!-- start class org.apache.hadoop.fs.FSDataOutputStream -->
  9985. <class name="FSDataOutputStream" extends="java.io.DataOutputStream"
  9986. abstract="false"
  9987. static="false" final="false" visibility="public"
  9988. deprecated="not deprecated">
  9989. <implements name="org.apache.hadoop.fs.Syncable"/>
  9990. <constructor name="FSDataOutputStream" type="java.io.OutputStream"
  9991. static="false" final="false" visibility="public"
  9992. deprecated="not deprecated">
  9993. <exception name="IOException" type="java.io.IOException"/>
  9994. </constructor>
  9995. <constructor name="FSDataOutputStream" type="java.io.OutputStream, org.apache.hadoop.fs.FileSystem.Statistics"
  9996. static="false" final="false" visibility="public"
  9997. deprecated="not deprecated">
  9998. <exception name="IOException" type="java.io.IOException"/>
  9999. </constructor>
  10000. <method name="getPos" return="long"
  10001. abstract="false" native="false" synchronized="false"
  10002. static="false" final="false" visibility="public"
  10003. deprecated="not deprecated">
  10004. <exception name="IOException" type="java.io.IOException"/>
  10005. </method>
  10006. <method name="close"
  10007. abstract="false" native="false" synchronized="false"
  10008. static="false" final="false" visibility="public"
  10009. deprecated="not deprecated">
  10010. <exception name="IOException" type="java.io.IOException"/>
  10011. </method>
  10012. <method name="getWrappedStream" return="java.io.OutputStream"
  10013. abstract="false" native="false" synchronized="false"
  10014. static="false" final="false" visibility="public"
  10015. deprecated="not deprecated">
  10016. </method>
  10017. <method name="sync"
  10018. abstract="false" native="false" synchronized="false"
  10019. static="false" final="false" visibility="public"
  10020. deprecated="not deprecated">
  10021. <exception name="IOException" type="java.io.IOException"/>
  10022. <doc>
  10023. <![CDATA[{@inheritDoc}]]>
  10024. </doc>
  10025. </method>
  10026. <doc>
  10027. <![CDATA[Utility that wraps a {@link OutputStream} in a {@link DataOutputStream},
  10028. buffers output through a {@link BufferedOutputStream} and creates a checksum
  10029. file.]]>
  10030. </doc>
  10031. </class>
  10032. <!-- end class org.apache.hadoop.fs.FSDataOutputStream -->
  10033. <!-- start class org.apache.hadoop.fs.FSError -->
  10034. <class name="FSError" extends="java.lang.Error"
  10035. abstract="false"
  10036. static="false" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <doc>
  10039. <![CDATA[Thrown for unexpected filesystem errors, presumed to reflect disk errors
  10040. in the native filesystem.]]>
  10041. </doc>
  10042. </class>
  10043. <!-- end class org.apache.hadoop.fs.FSError -->
  10044. <!-- start class org.apache.hadoop.fs.FSInputChecker -->
  10045. <class name="FSInputChecker" extends="org.apache.hadoop.fs.FSInputStream"
  10046. abstract="true"
  10047. static="false" final="false" visibility="public"
  10048. deprecated="not deprecated">
  10049. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int"
  10050. static="false" final="false" visibility="protected"
  10051. deprecated="not deprecated">
  10052. <doc>
  10053. <![CDATA[Constructor
  10054. @param file The name of the file to be read
  10055. @param numOfRetries Number of read retries when ChecksumError occurs]]>
  10056. </doc>
  10057. </constructor>
  10058. <constructor name="FSInputChecker" type="org.apache.hadoop.fs.Path, int, boolean, java.util.zip.Checksum, int, int"
  10059. static="false" final="false" visibility="protected"
  10060. deprecated="not deprecated">
  10061. <doc>
  10062. <![CDATA[Constructor
  10063. @param file The name of the file to be read
  10064. @param numOfRetries Number of read retries when ChecksumError occurs
  10065. @param sum the type of Checksum engine
  10066. @param chunkSize maximun chunk size
  10067. @param checksumSize the number byte of each checksum]]>
  10068. </doc>
  10069. </constructor>
  10070. <method name="readChunk" return="int"
  10071. abstract="true" native="false" synchronized="false"
  10072. static="false" final="false" visibility="protected"
  10073. deprecated="not deprecated">
  10074. <param name="pos" type="long"/>
  10075. <param name="buf" type="byte[]"/>
  10076. <param name="offset" type="int"/>
  10077. <param name="len" type="int"/>
  10078. <param name="checksum" type="byte[]"/>
  10079. <exception name="IOException" type="java.io.IOException"/>
  10080. <doc>
  10081. <![CDATA[Reads in next checksum chunk data into <code>buf</code> at <code>offset</code>
  10082. and checksum into <code>checksum</code>.
  10083. The method is used for implementing read, therefore, it should be optimized
  10084. for sequential reading
  10085. @param pos chunkPos
  10086. @param buf desitination buffer
  10087. @param offset offset in buf at which to store data
  10088. @param len maximun number of bytes to read
  10089. @return number of bytes read]]>
  10090. </doc>
  10091. </method>
  10092. <method name="getChunkPosition" return="long"
  10093. abstract="true" native="false" synchronized="false"
  10094. static="false" final="false" visibility="protected"
  10095. deprecated="not deprecated">
  10096. <param name="pos" type="long"/>
  10097. <doc>
  10098. <![CDATA[Return position of beginning of chunk containing pos.
  10099. @param pos a postion in the file
  10100. @return the starting position of the chunk which contains the byte]]>
  10101. </doc>
  10102. </method>
  10103. <method name="needChecksum" return="boolean"
  10104. abstract="false" native="false" synchronized="true"
  10105. static="false" final="false" visibility="protected"
  10106. deprecated="not deprecated">
  10107. <doc>
  10108. <![CDATA[Return true if there is a need for checksum verification]]>
  10109. </doc>
  10110. </method>
  10111. <method name="read" return="int"
  10112. abstract="false" native="false" synchronized="true"
  10113. static="false" final="false" visibility="public"
  10114. deprecated="not deprecated">
  10115. <exception name="IOException" type="java.io.IOException"/>
  10116. <doc>
  10117. <![CDATA[Read one checksum-verified byte
  10118. @return the next byte of data, or <code>-1</code> if the end of the
  10119. stream is reached.
  10120. @exception IOException if an I/O error occurs.]]>
  10121. </doc>
  10122. </method>
  10123. <method name="read" return="int"
  10124. abstract="false" native="false" synchronized="true"
  10125. static="false" final="false" visibility="public"
  10126. deprecated="not deprecated">
  10127. <param name="b" type="byte[]"/>
  10128. <param name="off" type="int"/>
  10129. <param name="len" type="int"/>
  10130. <exception name="IOException" type="java.io.IOException"/>
  10131. <doc>
  10132. <![CDATA[Read checksum verified bytes from this byte-input stream into
  10133. the specified byte array, starting at the given offset.
  10134. <p> This method implements the general contract of the corresponding
  10135. <code>{@link InputStream#read(byte[], int, int) read}</code> method of
  10136. the <code>{@link InputStream}</code> class. As an additional
  10137. convenience, it attempts to read as many bytes as possible by repeatedly
  10138. invoking the <code>read</code> method of the underlying stream. This
  10139. iterated <code>read</code> continues until one of the following
  10140. conditions becomes true: <ul>
  10141. <li> The specified number of bytes have been read,
  10142. <li> The <code>read</code> method of the underlying stream returns
  10143. <code>-1</code>, indicating end-of-file.
  10144. </ul> If the first <code>read</code> on the underlying stream returns
  10145. <code>-1</code> to indicate end-of-file then this method returns
  10146. <code>-1</code>. Otherwise this method returns the number of bytes
  10147. actually read.
  10148. @param b destination buffer.
  10149. @param off offset at which to start storing bytes.
  10150. @param len maximum number of bytes to read.
  10151. @return the number of bytes read, or <code>-1</code> if the end of
  10152. the stream has been reached.
  10153. @exception IOException if an I/O error occurs.
  10154. ChecksumException if any checksum error occurs]]>
  10155. </doc>
  10156. </method>
  10157. <method name="getPos" return="long"
  10158. abstract="false" native="false" synchronized="true"
  10159. static="false" final="false" visibility="public"
  10160. deprecated="not deprecated">
  10161. <exception name="IOException" type="java.io.IOException"/>
  10162. </method>
  10163. <method name="available" return="int"
  10164. abstract="false" native="false" synchronized="true"
  10165. static="false" final="false" visibility="public"
  10166. deprecated="not deprecated">
  10167. <exception name="IOException" type="java.io.IOException"/>
  10168. </method>
  10169. <method name="skip" return="long"
  10170. abstract="false" native="false" synchronized="true"
  10171. static="false" final="false" visibility="public"
  10172. deprecated="not deprecated">
  10173. <param name="n" type="long"/>
  10174. <exception name="IOException" type="java.io.IOException"/>
  10175. <doc>
  10176. <![CDATA[Skips over and discards <code>n</code> bytes of data from the
  10177. input stream.
  10178. <p>This method may skip more bytes than are remaining in the backing
  10179. file. This produces no exception and the number of bytes skipped
  10180. may include some number of bytes that were beyond the EOF of the
  10181. backing file. Attempting to read from the stream after skipping past
  10182. the end will result in -1 indicating the end of the file.
  10183. <p>If <code>n</code> is negative, no bytes are skipped.
  10184. @param n the number of bytes to be skipped.
  10185. @return the actual number of bytes skipped.
  10186. @exception IOException if an I/O error occurs.
  10187. ChecksumException if the chunk to skip to is corrupted]]>
  10188. </doc>
  10189. </method>
  10190. <method name="seek"
  10191. abstract="false" native="false" synchronized="true"
  10192. static="false" final="false" visibility="public"
  10193. deprecated="not deprecated">
  10194. <param name="pos" type="long"/>
  10195. <exception name="IOException" type="java.io.IOException"/>
  10196. <doc>
  10197. <![CDATA[Seek to the given position in the stream.
  10198. The next read() will be from that position.
  10199. <p>This method may seek past the end of the file.
  10200. This produces no exception and an attempt to read from
  10201. the stream will result in -1 indicating the end of the file.
  10202. @param pos the postion to seek to.
  10203. @exception IOException if an I/O error occurs.
  10204. ChecksumException if the chunk to seek to is corrupted]]>
  10205. </doc>
  10206. </method>
  10207. <method name="readFully" return="int"
  10208. abstract="false" native="false" synchronized="false"
  10209. static="true" final="false" visibility="protected"
  10210. deprecated="not deprecated">
  10211. <param name="stm" type="java.io.InputStream"/>
  10212. <param name="buf" type="byte[]"/>
  10213. <param name="offset" type="int"/>
  10214. <param name="len" type="int"/>
  10215. <exception name="IOException" type="java.io.IOException"/>
  10216. <doc>
  10217. <![CDATA[A utility function that tries to read up to <code>len</code> bytes from
  10218. <code>stm</code>
  10219. @param stm an input stream
  10220. @param buf destiniation buffer
  10221. @param offset offset at which to store data
  10222. @param len number of bytes to read
  10223. @return actual number of bytes read
  10224. @throws IOException if there is any IO error]]>
  10225. </doc>
  10226. </method>
  10227. <method name="set"
  10228. abstract="false" native="false" synchronized="true"
  10229. static="false" final="true" visibility="protected"
  10230. deprecated="not deprecated">
  10231. <param name="sum" type="java.util.zip.Checksum"/>
  10232. <param name="maxChunkSize" type="int"/>
  10233. <param name="checksumSize" type="int"/>
  10234. <doc>
  10235. <![CDATA[Set the checksum related parameters
  10236. @param sum which type of checksum to use
  10237. @param maxChunkSize maximun chunk size
  10238. @param checksumSize checksum size]]>
  10239. </doc>
  10240. </method>
  10241. <method name="markSupported" return="boolean"
  10242. abstract="false" native="false" synchronized="false"
  10243. static="false" final="true" visibility="public"
  10244. deprecated="not deprecated">
  10245. </method>
  10246. <method name="mark"
  10247. abstract="false" native="false" synchronized="false"
  10248. static="false" final="true" visibility="public"
  10249. deprecated="not deprecated">
  10250. <param name="readlimit" type="int"/>
  10251. </method>
  10252. <method name="reset"
  10253. abstract="false" native="false" synchronized="false"
  10254. static="false" final="true" visibility="public"
  10255. deprecated="not deprecated">
  10256. <exception name="IOException" type="java.io.IOException"/>
  10257. </method>
  10258. <field name="LOG" type="org.apache.commons.logging.Log"
  10259. transient="false" volatile="false"
  10260. static="true" final="true" visibility="public"
  10261. deprecated="not deprecated">
  10262. </field>
  10263. <field name="file" type="org.apache.hadoop.fs.Path"
  10264. transient="false" volatile="false"
  10265. static="false" final="false" visibility="protected"
  10266. deprecated="not deprecated">
  10267. <doc>
  10268. <![CDATA[The file name from which data is read from]]>
  10269. </doc>
  10270. </field>
  10271. <doc>
  10272. <![CDATA[This is a generic input stream for verifying checksums for
  10273. data before it is read by a user.]]>
  10274. </doc>
  10275. </class>
  10276. <!-- end class org.apache.hadoop.fs.FSInputChecker -->
  10277. <!-- start class org.apache.hadoop.fs.FSInputStream -->
  10278. <class name="FSInputStream" extends="java.io.InputStream"
  10279. abstract="true"
  10280. static="false" final="false" visibility="public"
  10281. deprecated="not deprecated">
  10282. <implements name="org.apache.hadoop.fs.Seekable"/>
  10283. <implements name="org.apache.hadoop.fs.PositionedReadable"/>
  10284. <constructor name="FSInputStream"
  10285. static="false" final="false" visibility="public"
  10286. deprecated="not deprecated">
  10287. </constructor>
  10288. <method name="seek"
  10289. abstract="true" native="false" synchronized="false"
  10290. static="false" final="false" visibility="public"
  10291. deprecated="not deprecated">
  10292. <param name="pos" type="long"/>
  10293. <exception name="IOException" type="java.io.IOException"/>
  10294. <doc>
  10295. <![CDATA[Seek to the given offset from the start of the file.
  10296. The next read() will be from that location. Can't
  10297. seek past the end of the file.]]>
  10298. </doc>
  10299. </method>
  10300. <method name="getPos" return="long"
  10301. abstract="true" native="false" synchronized="false"
  10302. static="false" final="false" visibility="public"
  10303. deprecated="not deprecated">
  10304. <exception name="IOException" type="java.io.IOException"/>
  10305. <doc>
  10306. <![CDATA[Return the current offset from the start of the file]]>
  10307. </doc>
  10308. </method>
  10309. <method name="seekToNewSource" return="boolean"
  10310. abstract="true" native="false" synchronized="false"
  10311. static="false" final="false" visibility="public"
  10312. deprecated="not deprecated">
  10313. <param name="targetPos" type="long"/>
  10314. <exception name="IOException" type="java.io.IOException"/>
  10315. <doc>
  10316. <![CDATA[Seeks a different copy of the data. Returns true if
  10317. found a new source, false otherwise.]]>
  10318. </doc>
  10319. </method>
  10320. <method name="read" return="int"
  10321. abstract="false" native="false" synchronized="false"
  10322. static="false" final="false" visibility="public"
  10323. deprecated="not deprecated">
  10324. <param name="position" type="long"/>
  10325. <param name="buffer" type="byte[]"/>
  10326. <param name="offset" type="int"/>
  10327. <param name="length" type="int"/>
  10328. <exception name="IOException" type="java.io.IOException"/>
  10329. </method>
  10330. <method name="readFully"
  10331. abstract="false" native="false" synchronized="false"
  10332. static="false" final="false" visibility="public"
  10333. deprecated="not deprecated">
  10334. <param name="position" type="long"/>
  10335. <param name="buffer" type="byte[]"/>
  10336. <param name="offset" type="int"/>
  10337. <param name="length" type="int"/>
  10338. <exception name="IOException" type="java.io.IOException"/>
  10339. </method>
  10340. <method name="readFully"
  10341. abstract="false" native="false" synchronized="false"
  10342. static="false" final="false" visibility="public"
  10343. deprecated="not deprecated">
  10344. <param name="position" type="long"/>
  10345. <param name="buffer" type="byte[]"/>
  10346. <exception name="IOException" type="java.io.IOException"/>
  10347. </method>
  10348. <doc>
  10349. <![CDATA[FSInputStream is a generic old InputStream with a little bit
  10350. of RAF-style seek ability.]]>
  10351. </doc>
  10352. </class>
  10353. <!-- end class org.apache.hadoop.fs.FSInputStream -->
  10354. <!-- start class org.apache.hadoop.fs.FSOutputSummer -->
  10355. <class name="FSOutputSummer" extends="java.io.OutputStream"
  10356. abstract="true"
  10357. static="false" final="false" visibility="public"
  10358. deprecated="not deprecated">
  10359. <constructor name="FSOutputSummer" type="java.util.zip.Checksum, int, int"
  10360. static="false" final="false" visibility="protected"
  10361. deprecated="not deprecated">
  10362. </constructor>
  10363. <method name="writeChunk"
  10364. abstract="true" native="false" synchronized="false"
  10365. static="false" final="false" visibility="protected"
  10366. deprecated="not deprecated">
  10367. <param name="b" type="byte[]"/>
  10368. <param name="offset" type="int"/>
  10369. <param name="len" type="int"/>
  10370. <param name="checksum" type="byte[]"/>
  10371. <exception name="IOException" type="java.io.IOException"/>
  10372. </method>
  10373. <method name="write"
  10374. abstract="false" native="false" synchronized="true"
  10375. static="false" final="false" visibility="public"
  10376. deprecated="not deprecated">
  10377. <param name="b" type="int"/>
  10378. <exception name="IOException" type="java.io.IOException"/>
  10379. <doc>
  10380. <![CDATA[Write one byte]]>
  10381. </doc>
  10382. </method>
  10383. <method name="write"
  10384. abstract="false" native="false" synchronized="true"
  10385. static="false" final="false" visibility="public"
  10386. deprecated="not deprecated">
  10387. <param name="b" type="byte[]"/>
  10388. <param name="off" type="int"/>
  10389. <param name="len" type="int"/>
  10390. <exception name="IOException" type="java.io.IOException"/>
  10391. <doc>
  10392. <![CDATA[Writes <code>len</code> bytes from the specified byte array
  10393. starting at offset <code>off</code> and generate a checksum for
  10394. each data chunk.
  10395. <p> This method stores bytes from the given array into this
  10396. stream's buffer before it gets checksumed. The buffer gets checksumed
  10397. and flushed to the underlying output stream when all data
  10398. in a checksum chunk are in the buffer. If the buffer is empty and
  10399. requested length is at least as large as the size of next checksum chunk
  10400. size, this method will checksum and write the chunk directly
  10401. to the underlying output stream. Thus it avoids uneccessary data copy.
  10402. @param b the data.
  10403. @param off the start offset in the data.
  10404. @param len the number of bytes to write.
  10405. @exception IOException if an I/O error occurs.]]>
  10406. </doc>
  10407. </method>
  10408. <method name="flushBuffer"
  10409. abstract="false" native="false" synchronized="true"
  10410. static="false" final="false" visibility="protected"
  10411. deprecated="not deprecated">
  10412. <exception name="IOException" type="java.io.IOException"/>
  10413. </method>
  10414. <method name="flushBuffer"
  10415. abstract="false" native="false" synchronized="true"
  10416. static="false" final="false" visibility="protected"
  10417. deprecated="not deprecated">
  10418. <param name="keep" type="boolean"/>
  10419. <exception name="IOException" type="java.io.IOException"/>
  10420. </method>
  10421. <doc>
  10422. <![CDATA[This is a generic output stream for generating checksums for
  10423. data before it is written to the underlying stream]]>
  10424. </doc>
  10425. </class>
  10426. <!-- end class org.apache.hadoop.fs.FSOutputSummer -->
  10427. <!-- start class org.apache.hadoop.fs.FsShell -->
  10428. <class name="FsShell" extends="org.apache.hadoop.conf.Configured"
  10429. abstract="false"
  10430. static="false" final="false" visibility="public"
  10431. deprecated="not deprecated">
  10432. <implements name="org.apache.hadoop.util.Tool"/>
  10433. <constructor name="FsShell"
  10434. static="false" final="false" visibility="public"
  10435. deprecated="not deprecated">
  10436. </constructor>
  10437. <constructor name="FsShell" type="org.apache.hadoop.conf.Configuration"
  10438. static="false" final="false" visibility="public"
  10439. deprecated="not deprecated">
  10440. </constructor>
  10441. <method name="init"
  10442. abstract="false" native="false" synchronized="false"
  10443. static="false" final="false" visibility="protected"
  10444. deprecated="not deprecated">
  10445. <exception name="IOException" type="java.io.IOException"/>
  10446. </method>
  10447. <method name="getCurrentTrashDir" return="org.apache.hadoop.fs.Path"
  10448. abstract="false" native="false" synchronized="false"
  10449. static="false" final="false" visibility="public"
  10450. deprecated="not deprecated">
  10451. <doc>
  10452. <![CDATA[Returns the Trash object associated with this shell.]]>
  10453. </doc>
  10454. </method>
  10455. <method name="byteDesc" return="java.lang.String"
  10456. abstract="false" native="false" synchronized="false"
  10457. static="true" final="false" visibility="public"
  10458. deprecated="not deprecated">
  10459. <param name="len" type="long"/>
  10460. <doc>
  10461. <![CDATA[Return an abbreviated English-language desc of the byte length]]>
  10462. </doc>
  10463. </method>
  10464. <method name="limitDecimalTo2" return="java.lang.String"
  10465. abstract="false" native="false" synchronized="true"
  10466. static="true" final="false" visibility="public"
  10467. deprecated="not deprecated">
  10468. <param name="d" type="double"/>
  10469. </method>
  10470. <method name="run" return="int"
  10471. abstract="false" native="false" synchronized="false"
  10472. static="false" final="false" visibility="public"
  10473. deprecated="not deprecated">
  10474. <param name="argv" type="java.lang.String[]"/>
  10475. <exception name="Exception" type="java.lang.Exception"/>
  10476. <doc>
  10477. <![CDATA[run]]>
  10478. </doc>
  10479. </method>
  10480. <method name="close"
  10481. abstract="false" native="false" synchronized="false"
  10482. static="false" final="false" visibility="public"
  10483. deprecated="not deprecated">
  10484. <exception name="IOException" type="java.io.IOException"/>
  10485. </method>
  10486. <method name="main"
  10487. abstract="false" native="false" synchronized="false"
  10488. static="true" final="false" visibility="public"
  10489. deprecated="not deprecated">
  10490. <param name="argv" type="java.lang.String[]"/>
  10491. <exception name="Exception" type="java.lang.Exception"/>
  10492. <doc>
  10493. <![CDATA[main() has some simple utility methods]]>
  10494. </doc>
  10495. </method>
  10496. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  10497. transient="false" volatile="false"
  10498. static="false" final="false" visibility="protected"
  10499. deprecated="not deprecated">
  10500. </field>
  10501. <field name="dateForm" type="java.text.SimpleDateFormat"
  10502. transient="false" volatile="false"
  10503. static="true" final="true" visibility="public"
  10504. deprecated="not deprecated">
  10505. </field>
  10506. <field name="modifFmt" type="java.text.SimpleDateFormat"
  10507. transient="false" volatile="false"
  10508. static="true" final="true" visibility="protected"
  10509. deprecated="not deprecated">
  10510. </field>
  10511. <doc>
  10512. <![CDATA[Provide command line access to a FileSystem.]]>
  10513. </doc>
  10514. </class>
  10515. <!-- end class org.apache.hadoop.fs.FsShell -->
  10516. <!-- start class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  10517. <class name="FsUrlStreamHandlerFactory" extends="java.lang.Object"
  10518. abstract="false"
  10519. static="false" final="false" visibility="public"
  10520. deprecated="not deprecated">
  10521. <implements name="java.net.URLStreamHandlerFactory"/>
  10522. <constructor name="FsUrlStreamHandlerFactory"
  10523. static="false" final="false" visibility="public"
  10524. deprecated="not deprecated">
  10525. </constructor>
  10526. <constructor name="FsUrlStreamHandlerFactory" type="org.apache.hadoop.conf.Configuration"
  10527. static="false" final="false" visibility="public"
  10528. deprecated="not deprecated">
  10529. </constructor>
  10530. <method name="createURLStreamHandler" return="java.net.URLStreamHandler"
  10531. abstract="false" native="false" synchronized="false"
  10532. static="false" final="false" visibility="public"
  10533. deprecated="not deprecated">
  10534. <param name="protocol" type="java.lang.String"/>
  10535. </method>
  10536. <doc>
  10537. <![CDATA[Factory for URL stream handlers.
  10538. There is only one handler whose job is to create UrlConnections. A
  10539. FsUrlConnection relies on FileSystem to choose the appropriate FS
  10540. implementation.
  10541. Before returning our handler, we make sure that FileSystem knows an
  10542. implementation for the requested scheme/protocol.]]>
  10543. </doc>
  10544. </class>
  10545. <!-- end class org.apache.hadoop.fs.FsUrlStreamHandlerFactory -->
  10546. <!-- start class org.apache.hadoop.fs.HarFileSystem -->
  10547. <class name="HarFileSystem" extends="org.apache.hadoop.fs.FilterFileSystem"
  10548. abstract="false"
  10549. static="false" final="false" visibility="public"
  10550. deprecated="not deprecated">
  10551. <constructor name="HarFileSystem"
  10552. static="false" final="false" visibility="public"
  10553. deprecated="not deprecated">
  10554. <doc>
  10555. <![CDATA[public construction of harfilesystem]]>
  10556. </doc>
  10557. </constructor>
  10558. <constructor name="HarFileSystem" type="org.apache.hadoop.fs.FileSystem"
  10559. static="false" final="false" visibility="public"
  10560. deprecated="not deprecated">
  10561. <doc>
  10562. <![CDATA[Constructor to create a HarFileSystem with an
  10563. underlying filesystem.
  10564. @param fs]]>
  10565. </doc>
  10566. </constructor>
  10567. <method name="initialize"
  10568. abstract="false" native="false" synchronized="false"
  10569. static="false" final="false" visibility="public"
  10570. deprecated="not deprecated">
  10571. <param name="name" type="java.net.URI"/>
  10572. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10573. <exception name="IOException" type="java.io.IOException"/>
  10574. <doc>
  10575. <![CDATA[Initialize a Har filesystem per har archive. The
  10576. archive home directory is the top level directory
  10577. in the filesystem that contains the HAR archive.
  10578. Be careful with this method, you do not want to go
  10579. on creating new Filesystem instances per call to
  10580. path.getFileSystem().
  10581. the uri of Har is
  10582. har://underlyingfsscheme-host:port/archivepath.
  10583. or
  10584. har:///archivepath. This assumes the underlying filesystem
  10585. to be used in case not specified.]]>
  10586. </doc>
  10587. </method>
  10588. <method name="getHarVersion" return="int"
  10589. abstract="false" native="false" synchronized="false"
  10590. static="false" final="false" visibility="public"
  10591. deprecated="not deprecated">
  10592. <exception name="IOException" type="java.io.IOException"/>
  10593. </method>
  10594. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  10595. abstract="false" native="false" synchronized="false"
  10596. static="false" final="false" visibility="public"
  10597. deprecated="not deprecated">
  10598. <doc>
  10599. <![CDATA[return the top level archive.]]>
  10600. </doc>
  10601. </method>
  10602. <method name="getUri" return="java.net.URI"
  10603. abstract="false" native="false" synchronized="false"
  10604. static="false" final="false" visibility="public"
  10605. deprecated="not deprecated">
  10606. <doc>
  10607. <![CDATA[Returns the uri of this filesystem.
  10608. The uri is of the form
  10609. har://underlyingfsschema-host:port/pathintheunderlyingfs]]>
  10610. </doc>
  10611. </method>
  10612. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  10613. abstract="false" native="false" synchronized="false"
  10614. static="false" final="false" visibility="public"
  10615. deprecated="not deprecated">
  10616. <param name="path" type="org.apache.hadoop.fs.Path"/>
  10617. </method>
  10618. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  10619. abstract="false" native="false" synchronized="false"
  10620. static="false" final="false" visibility="public"
  10621. deprecated="not deprecated">
  10622. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  10623. <param name="start" type="long"/>
  10624. <param name="len" type="long"/>
  10625. <exception name="IOException" type="java.io.IOException"/>
  10626. <doc>
  10627. <![CDATA[get block locations from the underlying fs
  10628. @param file the input filestatus to get block locations
  10629. @param start the start in the file
  10630. @param len the length in the file
  10631. @return block locations for this segment of file
  10632. @throws IOException]]>
  10633. </doc>
  10634. </method>
  10635. <method name="getHarHash" return="int"
  10636. abstract="false" native="false" synchronized="false"
  10637. static="true" final="false" visibility="public"
  10638. deprecated="not deprecated">
  10639. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10640. <doc>
  10641. <![CDATA[the hash of the path p inside iniside
  10642. the filesystem
  10643. @param p the path in the harfilesystem
  10644. @return the hash code of the path.]]>
  10645. </doc>
  10646. </method>
  10647. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  10648. abstract="false" native="false" synchronized="false"
  10649. static="false" final="false" visibility="public"
  10650. deprecated="not deprecated">
  10651. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10652. <exception name="IOException" type="java.io.IOException"/>
  10653. <doc>
  10654. <![CDATA[return the filestatus of files in har archive.
  10655. The permission returned are that of the archive
  10656. index files. The permissions are not persisted
  10657. while creating a hadoop archive.
  10658. @param f the path in har filesystem
  10659. @return filestatus.
  10660. @throws IOException]]>
  10661. </doc>
  10662. </method>
  10663. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  10664. abstract="false" native="false" synchronized="false"
  10665. static="false" final="false" visibility="public"
  10666. deprecated="not deprecated">
  10667. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10668. <param name="bufferSize" type="int"/>
  10669. <exception name="IOException" type="java.io.IOException"/>
  10670. <doc>
  10671. <![CDATA[Returns a har input stream which fakes end of
  10672. file. It reads the index files to get the part
  10673. file name and the size and start of the file.]]>
  10674. </doc>
  10675. </method>
  10676. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10677. abstract="false" native="false" synchronized="false"
  10678. static="false" final="false" visibility="public"
  10679. deprecated="not deprecated">
  10680. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10681. <param name="bufferSize" type="int"/>
  10682. <exception name="IOException" type="java.io.IOException"/>
  10683. </method>
  10684. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  10685. abstract="false" native="false" synchronized="false"
  10686. static="false" final="false" visibility="public"
  10687. deprecated="not deprecated">
  10688. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10689. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10690. <param name="overwrite" type="boolean"/>
  10691. <param name="bufferSize" type="int"/>
  10692. <param name="replication" type="short"/>
  10693. <param name="blockSize" type="long"/>
  10694. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  10695. <exception name="IOException" type="java.io.IOException"/>
  10696. </method>
  10697. <method name="close"
  10698. abstract="false" native="false" synchronized="false"
  10699. static="false" final="false" visibility="public"
  10700. deprecated="not deprecated">
  10701. <exception name="IOException" type="java.io.IOException"/>
  10702. </method>
  10703. <method name="setReplication" return="boolean"
  10704. abstract="false" native="false" synchronized="false"
  10705. static="false" final="false" visibility="public"
  10706. deprecated="not deprecated">
  10707. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10708. <param name="replication" type="short"/>
  10709. <exception name="IOException" type="java.io.IOException"/>
  10710. <doc>
  10711. <![CDATA[Not implemented.]]>
  10712. </doc>
  10713. </method>
  10714. <method name="delete" return="boolean"
  10715. abstract="false" native="false" synchronized="false"
  10716. static="false" final="false" visibility="public"
  10717. deprecated="not deprecated">
  10718. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10719. <param name="recursive" type="boolean"/>
  10720. <exception name="IOException" type="java.io.IOException"/>
  10721. <doc>
  10722. <![CDATA[Not implemented.]]>
  10723. </doc>
  10724. </method>
  10725. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  10726. abstract="false" native="false" synchronized="false"
  10727. static="false" final="false" visibility="public"
  10728. deprecated="not deprecated">
  10729. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10730. <exception name="IOException" type="java.io.IOException"/>
  10731. <doc>
  10732. <![CDATA[liststatus returns the children of a directory
  10733. after looking up the index files.]]>
  10734. </doc>
  10735. </method>
  10736. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  10737. abstract="false" native="false" synchronized="false"
  10738. static="false" final="false" visibility="public"
  10739. deprecated="not deprecated">
  10740. <doc>
  10741. <![CDATA[return the top level archive path.]]>
  10742. </doc>
  10743. </method>
  10744. <method name="setWorkingDirectory"
  10745. abstract="false" native="false" synchronized="false"
  10746. static="false" final="false" visibility="public"
  10747. deprecated="not deprecated">
  10748. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  10749. </method>
  10750. <method name="mkdirs" return="boolean"
  10751. abstract="false" native="false" synchronized="false"
  10752. static="false" final="false" visibility="public"
  10753. deprecated="not deprecated">
  10754. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10755. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10756. <exception name="IOException" type="java.io.IOException"/>
  10757. <doc>
  10758. <![CDATA[not implemented.]]>
  10759. </doc>
  10760. </method>
  10761. <method name="copyFromLocalFile"
  10762. abstract="false" native="false" synchronized="false"
  10763. static="false" final="false" visibility="public"
  10764. deprecated="not deprecated">
  10765. <param name="delSrc" type="boolean"/>
  10766. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10767. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10768. <exception name="IOException" type="java.io.IOException"/>
  10769. <doc>
  10770. <![CDATA[not implemented.]]>
  10771. </doc>
  10772. </method>
  10773. <method name="copyToLocalFile"
  10774. abstract="false" native="false" synchronized="false"
  10775. static="false" final="false" visibility="public"
  10776. deprecated="not deprecated">
  10777. <param name="delSrc" type="boolean"/>
  10778. <param name="src" type="org.apache.hadoop.fs.Path"/>
  10779. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  10780. <exception name="IOException" type="java.io.IOException"/>
  10781. <doc>
  10782. <![CDATA[copies the file in the har filesystem to a local file.]]>
  10783. </doc>
  10784. </method>
  10785. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  10786. abstract="false" native="false" synchronized="false"
  10787. static="false" final="false" visibility="public"
  10788. deprecated="not deprecated">
  10789. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10790. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10791. <exception name="IOException" type="java.io.IOException"/>
  10792. <doc>
  10793. <![CDATA[not implemented.]]>
  10794. </doc>
  10795. </method>
  10796. <method name="completeLocalOutput"
  10797. abstract="false" native="false" synchronized="false"
  10798. static="false" final="false" visibility="public"
  10799. deprecated="not deprecated">
  10800. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  10801. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  10802. <exception name="IOException" type="java.io.IOException"/>
  10803. <doc>
  10804. <![CDATA[not implemented.]]>
  10805. </doc>
  10806. </method>
  10807. <method name="setOwner"
  10808. abstract="false" native="false" synchronized="false"
  10809. static="false" final="false" visibility="public"
  10810. deprecated="not deprecated">
  10811. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10812. <param name="username" type="java.lang.String"/>
  10813. <param name="groupname" type="java.lang.String"/>
  10814. <exception name="IOException" type="java.io.IOException"/>
  10815. <doc>
  10816. <![CDATA[not implemented.]]>
  10817. </doc>
  10818. </method>
  10819. <method name="setPermission"
  10820. abstract="false" native="false" synchronized="false"
  10821. static="false" final="false" visibility="public"
  10822. deprecated="not deprecated">
  10823. <param name="p" type="org.apache.hadoop.fs.Path"/>
  10824. <param name="permisssion" type="org.apache.hadoop.fs.permission.FsPermission"/>
  10825. <exception name="IOException" type="java.io.IOException"/>
  10826. <doc>
  10827. <![CDATA[Not implemented.]]>
  10828. </doc>
  10829. </method>
  10830. <field name="VERSION" type="int"
  10831. transient="false" volatile="false"
  10832. static="true" final="true" visibility="public"
  10833. deprecated="not deprecated">
  10834. </field>
  10835. <doc>
  10836. <![CDATA[This is an implementation of the Hadoop Archive
  10837. Filesystem. This archive Filesystem has index files
  10838. of the form _index* and has contents of the form
  10839. part-*. The index files store the indexes of the
  10840. real files. The index files are of the form _masterindex
  10841. and _index. The master index is a level of indirection
  10842. in to the index file to make the look ups faster. the index
  10843. file is sorted with hash code of the paths that it contains
  10844. and the master index contains pointers to the positions in
  10845. index for ranges of hashcodes.]]>
  10846. </doc>
  10847. </class>
  10848. <!-- end class org.apache.hadoop.fs.HarFileSystem -->
  10849. <!-- start class org.apache.hadoop.fs.InMemoryFileSystem -->
  10850. <class name="InMemoryFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  10851. abstract="false"
  10852. static="false" final="false" visibility="public"
  10853. deprecated="not deprecated">
  10854. <constructor name="InMemoryFileSystem"
  10855. static="false" final="false" visibility="public"
  10856. deprecated="not deprecated">
  10857. </constructor>
  10858. <constructor name="InMemoryFileSystem" type="java.net.URI, org.apache.hadoop.conf.Configuration"
  10859. static="false" final="false" visibility="public"
  10860. deprecated="not deprecated">
  10861. </constructor>
  10862. <method name="reserveSpaceWithCheckSum" return="boolean"
  10863. abstract="false" native="false" synchronized="false"
  10864. static="false" final="false" visibility="public"
  10865. deprecated="not deprecated">
  10866. <param name="f" type="org.apache.hadoop.fs.Path"/>
  10867. <param name="size" type="long"/>
  10868. <doc>
  10869. <![CDATA[Register a file with its size. This will also register a checksum for the
  10870. file that the user is trying to create. This is required since none of
  10871. the FileSystem APIs accept the size of the file as argument. But since it
  10872. is required for us to apriori know the size of the file we are going to
  10873. create, the user must call this method for each file he wants to create
  10874. and reserve memory for that file. We either succeed in reserving memory
  10875. for both the main file and the checksum file and return true, or return
  10876. false.]]>
  10877. </doc>
  10878. </method>
  10879. <method name="getFiles" return="org.apache.hadoop.fs.Path[]"
  10880. abstract="false" native="false" synchronized="false"
  10881. static="false" final="false" visibility="public"
  10882. deprecated="not deprecated">
  10883. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10884. </method>
  10885. <method name="getNumFiles" return="int"
  10886. abstract="false" native="false" synchronized="false"
  10887. static="false" final="false" visibility="public"
  10888. deprecated="not deprecated">
  10889. <param name="filter" type="org.apache.hadoop.fs.PathFilter"/>
  10890. </method>
  10891. <method name="getFSSize" return="long"
  10892. abstract="false" native="false" synchronized="false"
  10893. static="false" final="false" visibility="public"
  10894. deprecated="not deprecated">
  10895. </method>
  10896. <method name="getPercentUsed" return="float"
  10897. abstract="false" native="false" synchronized="false"
  10898. static="false" final="false" visibility="public"
  10899. deprecated="not deprecated">
  10900. </method>
  10901. <doc>
  10902. <![CDATA[An implementation of the in-memory filesystem. This implementation assumes
  10903. that the file lengths are known ahead of time and the total lengths of all
  10904. the files is below a certain number (like 100 MB, configurable). Use the API
  10905. reserveSpaceWithCheckSum(Path f, int size) (see below for a description of
  10906. the API for reserving space in the FS. The uri of this filesystem starts with
  10907. ramfs:// .]]>
  10908. </doc>
  10909. </class>
  10910. <!-- end class org.apache.hadoop.fs.InMemoryFileSystem -->
  10911. <!-- start class org.apache.hadoop.fs.LocalDirAllocator -->
  10912. <class name="LocalDirAllocator" extends="java.lang.Object"
  10913. abstract="false"
  10914. static="false" final="false" visibility="public"
  10915. deprecated="not deprecated">
  10916. <constructor name="LocalDirAllocator" type="java.lang.String"
  10917. static="false" final="false" visibility="public"
  10918. deprecated="not deprecated">
  10919. <doc>
  10920. <![CDATA[Create an allocator object
  10921. @param contextCfgItemName]]>
  10922. </doc>
  10923. </constructor>
  10924. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  10925. abstract="false" native="false" synchronized="false"
  10926. static="false" final="false" visibility="public"
  10927. deprecated="not deprecated">
  10928. <param name="pathStr" type="java.lang.String"/>
  10929. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10930. <exception name="IOException" type="java.io.IOException"/>
  10931. <doc>
  10932. <![CDATA[Get a path from the local FS. This method should be used if the size of
  10933. the file is not known apriori. We go round-robin over the set of disks
  10934. (via the configured dirs) and return the first complete path where
  10935. we could create the parent directory of the passed path.
  10936. @param pathStr the requested path (this will be created on the first
  10937. available disk)
  10938. @param conf the Configuration object
  10939. @return the complete path to the file on a local disk
  10940. @throws IOException]]>
  10941. </doc>
  10942. </method>
  10943. <method name="getLocalPathForWrite" return="org.apache.hadoop.fs.Path"
  10944. abstract="false" native="false" synchronized="false"
  10945. static="false" final="false" visibility="public"
  10946. deprecated="not deprecated">
  10947. <param name="pathStr" type="java.lang.String"/>
  10948. <param name="size" type="long"/>
  10949. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10950. <exception name="IOException" type="java.io.IOException"/>
  10951. <doc>
  10952. <![CDATA[Get a path from the local FS. Pass size as -1 if not known apriori. We
  10953. round-robin over the set of disks (via the configured dirs) and return
  10954. the first complete path which has enough space
  10955. @param pathStr the requested path (this will be created on the first
  10956. available disk)
  10957. @param size the size of the file that is going to be written
  10958. @param conf the Configuration object
  10959. @return the complete path to the file on a local disk
  10960. @throws IOException]]>
  10961. </doc>
  10962. </method>
  10963. <method name="getLocalPathToRead" return="org.apache.hadoop.fs.Path"
  10964. abstract="false" native="false" synchronized="false"
  10965. static="false" final="false" visibility="public"
  10966. deprecated="not deprecated">
  10967. <param name="pathStr" type="java.lang.String"/>
  10968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10969. <exception name="IOException" type="java.io.IOException"/>
  10970. <doc>
  10971. <![CDATA[Get a path from the local FS for reading. We search through all the
  10972. configured dirs for the file's existence and return the complete
  10973. path to the file when we find one
  10974. @param pathStr the requested file (this will be searched)
  10975. @param conf the Configuration object
  10976. @return the complete path to the file on a local disk
  10977. @throws IOException]]>
  10978. </doc>
  10979. </method>
  10980. <method name="createTmpFileForWrite" return="java.io.File"
  10981. abstract="false" native="false" synchronized="false"
  10982. static="false" final="false" visibility="public"
  10983. deprecated="not deprecated">
  10984. <param name="pathStr" type="java.lang.String"/>
  10985. <param name="size" type="long"/>
  10986. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  10987. <exception name="IOException" type="java.io.IOException"/>
  10988. <doc>
  10989. <![CDATA[Creates a temporary file in the local FS. Pass size as -1 if not known
  10990. apriori. We round-robin over the set of disks (via the configured dirs)
  10991. and select the first complete path which has enough space. A file is
  10992. created on this directory. The file is guaranteed to go away when the
  10993. JVM exits.
  10994. @param pathStr prefix for the temporary file
  10995. @param size the size of the file that is going to be written
  10996. @param conf the Configuration object
  10997. @return a unique temporary file
  10998. @throws IOException]]>
  10999. </doc>
  11000. </method>
  11001. <method name="isContextValid" return="boolean"
  11002. abstract="false" native="false" synchronized="false"
  11003. static="true" final="false" visibility="public"
  11004. deprecated="not deprecated">
  11005. <param name="contextCfgItemName" type="java.lang.String"/>
  11006. <doc>
  11007. <![CDATA[Method to check whether a context is valid
  11008. @param contextCfgItemName
  11009. @return true/false]]>
  11010. </doc>
  11011. </method>
  11012. <method name="ifExists" return="boolean"
  11013. abstract="false" native="false" synchronized="false"
  11014. static="false" final="false" visibility="public"
  11015. deprecated="not deprecated">
  11016. <param name="pathStr" type="java.lang.String"/>
  11017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11018. <doc>
  11019. <![CDATA[We search through all the configured dirs for the file's existence
  11020. and return true when we find
  11021. @param pathStr the requested file (this will be searched)
  11022. @param conf the Configuration object
  11023. @return true if files exist. false otherwise
  11024. @throws IOException]]>
  11025. </doc>
  11026. </method>
  11027. <doc>
  11028. <![CDATA[An implementation of a round-robin scheme for disk allocation for creating
  11029. files. The way it works is that it is kept track what disk was last
  11030. allocated for a file write. For the current request, the next disk from
  11031. the set of disks would be allocated if the free space on the disk is
  11032. sufficient enough to accomodate the file that is being considered for
  11033. creation. If the space requirements cannot be met, the next disk in order
  11034. would be tried and so on till a disk is found with sufficient capacity.
  11035. Once a disk with sufficient space is identified, a check is done to make
  11036. sure that the disk is writable. Also, there is an API provided that doesn't
  11037. take the space requirements into consideration but just checks whether the
  11038. disk under consideration is writable (this should be used for cases where
  11039. the file size is not known apriori). An API is provided to read a path that
  11040. was created earlier. That API works by doing a scan of all the disks for the
  11041. input pathname.
  11042. This implementation also provides the functionality of having multiple
  11043. allocators per JVM (one for each unique functionality or context, like
  11044. mapred, dfs-client, etc.). It ensures that there is only one instance of
  11045. an allocator per context per JVM.
  11046. Note:
  11047. 1. The contexts referred above are actually the configuration items defined
  11048. in the Configuration class like "mapred.local.dir" (for which we want to
  11049. control the dir allocations). The context-strings are exactly those
  11050. configuration items.
  11051. 2. This implementation does not take into consideration cases where
  11052. a disk becomes read-only or goes out of space while a file is being written
  11053. to (disks are shared between multiple processes, and so the latter situation
  11054. is probable).
  11055. 3. In the class implementation, "Disk" is referred to as "Dir", which
  11056. actually points to the configured directory on the Disk which will be the
  11057. parent for all file write/read allocations.]]>
  11058. </doc>
  11059. </class>
  11060. <!-- end class org.apache.hadoop.fs.LocalDirAllocator -->
  11061. <!-- start class org.apache.hadoop.fs.LocalFileSystem -->
  11062. <class name="LocalFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  11063. abstract="false"
  11064. static="false" final="false" visibility="public"
  11065. deprecated="not deprecated">
  11066. <constructor name="LocalFileSystem"
  11067. static="false" final="false" visibility="public"
  11068. deprecated="not deprecated">
  11069. </constructor>
  11070. <constructor name="LocalFileSystem" type="org.apache.hadoop.fs.FileSystem"
  11071. static="false" final="false" visibility="public"
  11072. deprecated="not deprecated">
  11073. </constructor>
  11074. <method name="pathToFile" return="java.io.File"
  11075. abstract="false" native="false" synchronized="false"
  11076. static="false" final="false" visibility="public"
  11077. deprecated="not deprecated">
  11078. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11079. <doc>
  11080. <![CDATA[Convert a path to a File.]]>
  11081. </doc>
  11082. </method>
  11083. <method name="copyFromLocalFile"
  11084. abstract="false" native="false" synchronized="false"
  11085. static="false" final="false" visibility="public"
  11086. deprecated="not deprecated">
  11087. <param name="delSrc" type="boolean"/>
  11088. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11089. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11090. <exception name="IOException" type="java.io.IOException"/>
  11091. </method>
  11092. <method name="copyToLocalFile"
  11093. abstract="false" native="false" synchronized="false"
  11094. static="false" final="false" visibility="public"
  11095. deprecated="not deprecated">
  11096. <param name="delSrc" type="boolean"/>
  11097. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11098. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11099. <exception name="IOException" type="java.io.IOException"/>
  11100. </method>
  11101. <method name="reportChecksumFailure" return="boolean"
  11102. abstract="false" native="false" synchronized="false"
  11103. static="false" final="false" visibility="public"
  11104. deprecated="not deprecated">
  11105. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11106. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11107. <param name="inPos" type="long"/>
  11108. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  11109. <param name="sumsPos" type="long"/>
  11110. <doc>
  11111. <![CDATA[Moves files to a bad file directory on the same device, so that their
  11112. storage will not be reused.]]>
  11113. </doc>
  11114. </method>
  11115. <doc>
  11116. <![CDATA[Implement the FileSystem API for the checksumed local filesystem.]]>
  11117. </doc>
  11118. </class>
  11119. <!-- end class org.apache.hadoop.fs.LocalFileSystem -->
  11120. <!-- start class org.apache.hadoop.fs.Path -->
  11121. <class name="Path" extends="java.lang.Object"
  11122. abstract="false"
  11123. static="false" final="false" visibility="public"
  11124. deprecated="not deprecated">
  11125. <implements name="java.lang.Comparable"/>
  11126. <constructor name="Path" type="java.lang.String, java.lang.String"
  11127. static="false" final="false" visibility="public"
  11128. deprecated="not deprecated">
  11129. <doc>
  11130. <![CDATA[Resolve a child path against a parent path.]]>
  11131. </doc>
  11132. </constructor>
  11133. <constructor name="Path" type="org.apache.hadoop.fs.Path, java.lang.String"
  11134. static="false" final="false" visibility="public"
  11135. deprecated="not deprecated">
  11136. <doc>
  11137. <![CDATA[Resolve a child path against a parent path.]]>
  11138. </doc>
  11139. </constructor>
  11140. <constructor name="Path" type="java.lang.String, org.apache.hadoop.fs.Path"
  11141. static="false" final="false" visibility="public"
  11142. deprecated="not deprecated">
  11143. <doc>
  11144. <![CDATA[Resolve a child path against a parent path.]]>
  11145. </doc>
  11146. </constructor>
  11147. <constructor name="Path" type="org.apache.hadoop.fs.Path, org.apache.hadoop.fs.Path"
  11148. static="false" final="false" visibility="public"
  11149. deprecated="not deprecated">
  11150. <doc>
  11151. <![CDATA[Resolve a child path against a parent path.]]>
  11152. </doc>
  11153. </constructor>
  11154. <constructor name="Path" type="java.lang.String"
  11155. static="false" final="false" visibility="public"
  11156. deprecated="not deprecated">
  11157. <doc>
  11158. <![CDATA[Construct a path from a String. Path strings are URIs, but with
  11159. unescaped elements and some additional normalization.]]>
  11160. </doc>
  11161. </constructor>
  11162. <constructor name="Path" type="java.lang.String, java.lang.String, java.lang.String"
  11163. static="false" final="false" visibility="public"
  11164. deprecated="not deprecated">
  11165. <doc>
  11166. <![CDATA[Construct a Path from components.]]>
  11167. </doc>
  11168. </constructor>
  11169. <method name="toUri" return="java.net.URI"
  11170. abstract="false" native="false" synchronized="false"
  11171. static="false" final="false" visibility="public"
  11172. deprecated="not deprecated">
  11173. <doc>
  11174. <![CDATA[Convert this to a URI.]]>
  11175. </doc>
  11176. </method>
  11177. <method name="getFileSystem" return="org.apache.hadoop.fs.FileSystem"
  11178. abstract="false" native="false" synchronized="false"
  11179. static="false" final="false" visibility="public"
  11180. deprecated="not deprecated">
  11181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11182. <exception name="IOException" type="java.io.IOException"/>
  11183. <doc>
  11184. <![CDATA[Return the FileSystem that owns this Path.]]>
  11185. </doc>
  11186. </method>
  11187. <method name="isAbsolute" return="boolean"
  11188. abstract="false" native="false" synchronized="false"
  11189. static="false" final="false" visibility="public"
  11190. deprecated="not deprecated">
  11191. <doc>
  11192. <![CDATA[True if the directory of this path is absolute.]]>
  11193. </doc>
  11194. </method>
  11195. <method name="getName" return="java.lang.String"
  11196. abstract="false" native="false" synchronized="false"
  11197. static="false" final="false" visibility="public"
  11198. deprecated="not deprecated">
  11199. <doc>
  11200. <![CDATA[Returns the final component of this path.]]>
  11201. </doc>
  11202. </method>
  11203. <method name="getParent" return="org.apache.hadoop.fs.Path"
  11204. abstract="false" native="false" synchronized="false"
  11205. static="false" final="false" visibility="public"
  11206. deprecated="not deprecated">
  11207. <doc>
  11208. <![CDATA[Returns the parent of a path or null if at root.]]>
  11209. </doc>
  11210. </method>
  11211. <method name="suffix" return="org.apache.hadoop.fs.Path"
  11212. abstract="false" native="false" synchronized="false"
  11213. static="false" final="false" visibility="public"
  11214. deprecated="not deprecated">
  11215. <param name="suffix" type="java.lang.String"/>
  11216. <doc>
  11217. <![CDATA[Adds a suffix to the final name in the path.]]>
  11218. </doc>
  11219. </method>
  11220. <method name="toString" return="java.lang.String"
  11221. abstract="false" native="false" synchronized="false"
  11222. static="false" final="false" visibility="public"
  11223. deprecated="not deprecated">
  11224. </method>
  11225. <method name="equals" return="boolean"
  11226. abstract="false" native="false" synchronized="false"
  11227. static="false" final="false" visibility="public"
  11228. deprecated="not deprecated">
  11229. <param name="o" type="java.lang.Object"/>
  11230. </method>
  11231. <method name="hashCode" return="int"
  11232. abstract="false" native="false" synchronized="false"
  11233. static="false" final="false" visibility="public"
  11234. deprecated="not deprecated">
  11235. </method>
  11236. <method name="compareTo" return="int"
  11237. abstract="false" native="false" synchronized="false"
  11238. static="false" final="false" visibility="public"
  11239. deprecated="not deprecated">
  11240. <param name="o" type="java.lang.Object"/>
  11241. </method>
  11242. <method name="depth" return="int"
  11243. abstract="false" native="false" synchronized="false"
  11244. static="false" final="false" visibility="public"
  11245. deprecated="not deprecated">
  11246. <doc>
  11247. <![CDATA[Return the number of elements in this path.]]>
  11248. </doc>
  11249. </method>
  11250. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  11251. abstract="false" native="false" synchronized="false"
  11252. static="false" final="false" visibility="public"
  11253. deprecated="not deprecated">
  11254. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  11255. <doc>
  11256. <![CDATA[Returns a qualified path object.]]>
  11257. </doc>
  11258. </method>
  11259. <field name="SEPARATOR" type="java.lang.String"
  11260. transient="false" volatile="false"
  11261. static="true" final="true" visibility="public"
  11262. deprecated="not deprecated">
  11263. <doc>
  11264. <![CDATA[The directory separator, a slash.]]>
  11265. </doc>
  11266. </field>
  11267. <field name="SEPARATOR_CHAR" type="char"
  11268. transient="false" volatile="false"
  11269. static="true" final="true" visibility="public"
  11270. deprecated="not deprecated">
  11271. </field>
  11272. <field name="CUR_DIR" type="java.lang.String"
  11273. transient="false" volatile="false"
  11274. static="true" final="true" visibility="public"
  11275. deprecated="not deprecated">
  11276. </field>
  11277. <doc>
  11278. <![CDATA[Names a file or directory in a {@link FileSystem}.
  11279. Path strings use slash as the directory separator. A path string is
  11280. absolute if it begins with a slash.]]>
  11281. </doc>
  11282. </class>
  11283. <!-- end class org.apache.hadoop.fs.Path -->
  11284. <!-- start interface org.apache.hadoop.fs.PathFilter -->
  11285. <interface name="PathFilter" abstract="true"
  11286. static="false" final="false" visibility="public"
  11287. deprecated="not deprecated">
  11288. <method name="accept" return="boolean"
  11289. abstract="false" native="false" synchronized="false"
  11290. static="false" final="false" visibility="public"
  11291. deprecated="not deprecated">
  11292. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11293. <doc>
  11294. <![CDATA[Tests whether or not the specified abstract pathname should be
  11295. included in a pathname list.
  11296. @param path The abstract pathname to be tested
  11297. @return <code>true</code> if and only if <code>pathname</code>
  11298. should be included]]>
  11299. </doc>
  11300. </method>
  11301. </interface>
  11302. <!-- end interface org.apache.hadoop.fs.PathFilter -->
  11303. <!-- start interface org.apache.hadoop.fs.PositionedReadable -->
  11304. <interface name="PositionedReadable" abstract="true"
  11305. static="false" final="false" visibility="public"
  11306. deprecated="not deprecated">
  11307. <method name="read" return="int"
  11308. abstract="false" native="false" synchronized="false"
  11309. static="false" final="false" visibility="public"
  11310. deprecated="not deprecated">
  11311. <param name="position" type="long"/>
  11312. <param name="buffer" type="byte[]"/>
  11313. <param name="offset" type="int"/>
  11314. <param name="length" type="int"/>
  11315. <exception name="IOException" type="java.io.IOException"/>
  11316. <doc>
  11317. <![CDATA[Read upto the specified number of bytes, from a given
  11318. position within a file, and return the number of bytes read. This does not
  11319. change the current offset of a file, and is thread-safe.]]>
  11320. </doc>
  11321. </method>
  11322. <method name="readFully"
  11323. abstract="false" native="false" synchronized="false"
  11324. static="false" final="false" visibility="public"
  11325. deprecated="not deprecated">
  11326. <param name="position" type="long"/>
  11327. <param name="buffer" type="byte[]"/>
  11328. <param name="offset" type="int"/>
  11329. <param name="length" type="int"/>
  11330. <exception name="IOException" type="java.io.IOException"/>
  11331. <doc>
  11332. <![CDATA[Read the specified number of bytes, from a given
  11333. position within a file. This does not
  11334. change the current offset of a file, and is thread-safe.]]>
  11335. </doc>
  11336. </method>
  11337. <method name="readFully"
  11338. abstract="false" native="false" synchronized="false"
  11339. static="false" final="false" visibility="public"
  11340. deprecated="not deprecated">
  11341. <param name="position" type="long"/>
  11342. <param name="buffer" type="byte[]"/>
  11343. <exception name="IOException" type="java.io.IOException"/>
  11344. <doc>
  11345. <![CDATA[Read number of bytes equalt to the length of the buffer, from a given
  11346. position within a file. This does not
  11347. change the current offset of a file, and is thread-safe.]]>
  11348. </doc>
  11349. </method>
  11350. <doc>
  11351. <![CDATA[Stream that permits positional reading.]]>
  11352. </doc>
  11353. </interface>
  11354. <!-- end interface org.apache.hadoop.fs.PositionedReadable -->
  11355. <!-- start class org.apache.hadoop.fs.RawLocalFileSystem -->
  11356. <class name="RawLocalFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11357. abstract="false"
  11358. static="false" final="false" visibility="public"
  11359. deprecated="not deprecated">
  11360. <constructor name="RawLocalFileSystem"
  11361. static="false" final="false" visibility="public"
  11362. deprecated="not deprecated">
  11363. </constructor>
  11364. <method name="pathToFile" return="java.io.File"
  11365. abstract="false" native="false" synchronized="false"
  11366. static="false" final="false" visibility="public"
  11367. deprecated="not deprecated">
  11368. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11369. <doc>
  11370. <![CDATA[Convert a path to a File.]]>
  11371. </doc>
  11372. </method>
  11373. <method name="getName" return="java.lang.String"
  11374. abstract="false" native="false" synchronized="false"
  11375. static="false" final="false" visibility="public"
  11376. deprecated="deprecated, no comment">
  11377. <doc>
  11378. <![CDATA[@deprecated]]>
  11379. </doc>
  11380. </method>
  11381. <method name="getUri" return="java.net.URI"
  11382. abstract="false" native="false" synchronized="false"
  11383. static="false" final="false" visibility="public"
  11384. deprecated="not deprecated">
  11385. </method>
  11386. <method name="initialize"
  11387. abstract="false" native="false" synchronized="false"
  11388. static="false" final="false" visibility="public"
  11389. deprecated="not deprecated">
  11390. <param name="uri" type="java.net.URI"/>
  11391. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11392. </method>
  11393. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11394. abstract="false" native="false" synchronized="false"
  11395. static="false" final="false" visibility="public"
  11396. deprecated="not deprecated">
  11397. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11398. <param name="bufferSize" type="int"/>
  11399. <exception name="IOException" type="java.io.IOException"/>
  11400. </method>
  11401. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11402. abstract="false" native="false" synchronized="false"
  11403. static="false" final="false" visibility="public"
  11404. deprecated="not deprecated">
  11405. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11406. <param name="bufferSize" type="int"/>
  11407. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11408. <exception name="IOException" type="java.io.IOException"/>
  11409. <doc>
  11410. <![CDATA[{@inheritDoc}]]>
  11411. </doc>
  11412. </method>
  11413. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11414. abstract="false" native="false" synchronized="false"
  11415. static="false" final="false" visibility="public"
  11416. deprecated="not deprecated">
  11417. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11418. <param name="overwrite" type="boolean"/>
  11419. <param name="bufferSize" type="int"/>
  11420. <param name="replication" type="short"/>
  11421. <param name="blockSize" type="long"/>
  11422. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11423. <exception name="IOException" type="java.io.IOException"/>
  11424. <doc>
  11425. <![CDATA[{@inheritDoc}]]>
  11426. </doc>
  11427. </method>
  11428. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11429. abstract="false" native="false" synchronized="false"
  11430. static="false" final="false" visibility="public"
  11431. deprecated="not deprecated">
  11432. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11433. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11434. <param name="overwrite" type="boolean"/>
  11435. <param name="bufferSize" type="int"/>
  11436. <param name="replication" type="short"/>
  11437. <param name="blockSize" type="long"/>
  11438. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11439. <exception name="IOException" type="java.io.IOException"/>
  11440. <doc>
  11441. <![CDATA[{@inheritDoc}]]>
  11442. </doc>
  11443. </method>
  11444. <method name="rename" return="boolean"
  11445. abstract="false" native="false" synchronized="false"
  11446. static="false" final="false" visibility="public"
  11447. deprecated="not deprecated">
  11448. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11449. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11450. <exception name="IOException" type="java.io.IOException"/>
  11451. </method>
  11452. <method name="delete" return="boolean"
  11453. abstract="false" native="false" synchronized="false"
  11454. static="false" final="false" visibility="public"
  11455. deprecated="not deprecated">
  11456. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11457. <exception name="IOException" type="java.io.IOException"/>
  11458. </method>
  11459. <method name="delete" return="boolean"
  11460. abstract="false" native="false" synchronized="false"
  11461. static="false" final="false" visibility="public"
  11462. deprecated="not deprecated">
  11463. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11464. <param name="recursive" type="boolean"/>
  11465. <exception name="IOException" type="java.io.IOException"/>
  11466. </method>
  11467. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11468. abstract="false" native="false" synchronized="false"
  11469. static="false" final="false" visibility="public"
  11470. deprecated="not deprecated">
  11471. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11472. <exception name="IOException" type="java.io.IOException"/>
  11473. </method>
  11474. <method name="mkdirs" return="boolean"
  11475. abstract="false" native="false" synchronized="false"
  11476. static="false" final="false" visibility="public"
  11477. deprecated="not deprecated">
  11478. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11479. <exception name="IOException" type="java.io.IOException"/>
  11480. <doc>
  11481. <![CDATA[Creates the specified directory hierarchy. Does not
  11482. treat existence as an error.]]>
  11483. </doc>
  11484. </method>
  11485. <method name="mkdirs" return="boolean"
  11486. abstract="false" native="false" synchronized="false"
  11487. static="false" final="false" visibility="public"
  11488. deprecated="not deprecated">
  11489. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11490. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11491. <exception name="IOException" type="java.io.IOException"/>
  11492. <doc>
  11493. <![CDATA[{@inheritDoc}]]>
  11494. </doc>
  11495. </method>
  11496. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11497. abstract="false" native="false" synchronized="false"
  11498. static="false" final="false" visibility="public"
  11499. deprecated="not deprecated">
  11500. </method>
  11501. <method name="setWorkingDirectory"
  11502. abstract="false" native="false" synchronized="false"
  11503. static="false" final="false" visibility="public"
  11504. deprecated="not deprecated">
  11505. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11506. <doc>
  11507. <![CDATA[Set the working directory to the given directory.]]>
  11508. </doc>
  11509. </method>
  11510. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11511. abstract="false" native="false" synchronized="false"
  11512. static="false" final="false" visibility="public"
  11513. deprecated="not deprecated">
  11514. </method>
  11515. <method name="lock"
  11516. abstract="false" native="false" synchronized="false"
  11517. static="false" final="false" visibility="public"
  11518. deprecated="deprecated, no comment">
  11519. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11520. <param name="shared" type="boolean"/>
  11521. <exception name="IOException" type="java.io.IOException"/>
  11522. <doc>
  11523. <![CDATA[@deprecated]]>
  11524. </doc>
  11525. </method>
  11526. <method name="release"
  11527. abstract="false" native="false" synchronized="false"
  11528. static="false" final="false" visibility="public"
  11529. deprecated="deprecated, no comment">
  11530. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11531. <exception name="IOException" type="java.io.IOException"/>
  11532. <doc>
  11533. <![CDATA[@deprecated]]>
  11534. </doc>
  11535. </method>
  11536. <method name="moveFromLocalFile"
  11537. abstract="false" native="false" synchronized="false"
  11538. static="false" final="false" visibility="public"
  11539. deprecated="not deprecated">
  11540. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11541. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11542. <exception name="IOException" type="java.io.IOException"/>
  11543. </method>
  11544. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  11545. abstract="false" native="false" synchronized="false"
  11546. static="false" final="false" visibility="public"
  11547. deprecated="not deprecated">
  11548. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  11549. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11550. <exception name="IOException" type="java.io.IOException"/>
  11551. </method>
  11552. <method name="completeLocalOutput"
  11553. abstract="false" native="false" synchronized="false"
  11554. static="false" final="false" visibility="public"
  11555. deprecated="not deprecated">
  11556. <param name="fsWorkingFile" type="org.apache.hadoop.fs.Path"/>
  11557. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  11558. <exception name="IOException" type="java.io.IOException"/>
  11559. </method>
  11560. <method name="close"
  11561. abstract="false" native="false" synchronized="false"
  11562. static="false" final="false" visibility="public"
  11563. deprecated="not deprecated">
  11564. <exception name="IOException" type="java.io.IOException"/>
  11565. </method>
  11566. <method name="toString" return="java.lang.String"
  11567. abstract="false" native="false" synchronized="false"
  11568. static="false" final="false" visibility="public"
  11569. deprecated="not deprecated">
  11570. </method>
  11571. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11572. abstract="false" native="false" synchronized="false"
  11573. static="false" final="false" visibility="public"
  11574. deprecated="not deprecated">
  11575. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11576. <exception name="IOException" type="java.io.IOException"/>
  11577. </method>
  11578. <method name="setOwner"
  11579. abstract="false" native="false" synchronized="false"
  11580. static="false" final="false" visibility="public"
  11581. deprecated="not deprecated">
  11582. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11583. <param name="username" type="java.lang.String"/>
  11584. <param name="groupname" type="java.lang.String"/>
  11585. <exception name="IOException" type="java.io.IOException"/>
  11586. <doc>
  11587. <![CDATA[Use the command chown to set owner.]]>
  11588. </doc>
  11589. </method>
  11590. <method name="setPermission"
  11591. abstract="false" native="false" synchronized="false"
  11592. static="false" final="false" visibility="public"
  11593. deprecated="not deprecated">
  11594. <param name="p" type="org.apache.hadoop.fs.Path"/>
  11595. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11596. <exception name="IOException" type="java.io.IOException"/>
  11597. <doc>
  11598. <![CDATA[Use the command chmod to set permission.]]>
  11599. </doc>
  11600. </method>
  11601. <doc>
  11602. <![CDATA[Implement the FileSystem API for the raw local filesystem.]]>
  11603. </doc>
  11604. </class>
  11605. <!-- end class org.apache.hadoop.fs.RawLocalFileSystem -->
  11606. <!-- start interface org.apache.hadoop.fs.Seekable -->
  11607. <interface name="Seekable" abstract="true"
  11608. static="false" final="false" visibility="public"
  11609. deprecated="not deprecated">
  11610. <method name="seek"
  11611. abstract="false" native="false" synchronized="false"
  11612. static="false" final="false" visibility="public"
  11613. deprecated="not deprecated">
  11614. <param name="pos" type="long"/>
  11615. <exception name="IOException" type="java.io.IOException"/>
  11616. <doc>
  11617. <![CDATA[Seek to the given offset from the start of the file.
  11618. The next read() will be from that location. Can't
  11619. seek past the end of the file.]]>
  11620. </doc>
  11621. </method>
  11622. <method name="getPos" return="long"
  11623. abstract="false" native="false" synchronized="false"
  11624. static="false" final="false" visibility="public"
  11625. deprecated="not deprecated">
  11626. <exception name="IOException" type="java.io.IOException"/>
  11627. <doc>
  11628. <![CDATA[Return the current offset from the start of the file]]>
  11629. </doc>
  11630. </method>
  11631. <method name="seekToNewSource" return="boolean"
  11632. abstract="false" native="false" synchronized="false"
  11633. static="false" final="false" visibility="public"
  11634. deprecated="not deprecated">
  11635. <param name="targetPos" type="long"/>
  11636. <exception name="IOException" type="java.io.IOException"/>
  11637. <doc>
  11638. <![CDATA[Seeks a different copy of the data. Returns true if
  11639. found a new source, false otherwise.]]>
  11640. </doc>
  11641. </method>
  11642. <doc>
  11643. <![CDATA[Stream that permits seeking.]]>
  11644. </doc>
  11645. </interface>
  11646. <!-- end interface org.apache.hadoop.fs.Seekable -->
  11647. <!-- start class org.apache.hadoop.fs.ShellCommand -->
  11648. <class name="ShellCommand" extends="org.apache.hadoop.util.Shell"
  11649. abstract="true"
  11650. static="false" final="false" visibility="public"
  11651. deprecated="Use {@link Shell} instead.">
  11652. <constructor name="ShellCommand"
  11653. static="false" final="false" visibility="public"
  11654. deprecated="not deprecated">
  11655. </constructor>
  11656. <doc>
  11657. <![CDATA[A base class for running a unix command like du or df.
  11658. @deprecated Use {@link Shell} instead.]]>
  11659. </doc>
  11660. </class>
  11661. <!-- end class org.apache.hadoop.fs.ShellCommand -->
  11662. <!-- start interface org.apache.hadoop.fs.Syncable -->
  11663. <interface name="Syncable" abstract="true"
  11664. static="false" final="false" visibility="public"
  11665. deprecated="not deprecated">
  11666. <method name="sync"
  11667. abstract="false" native="false" synchronized="false"
  11668. static="false" final="false" visibility="public"
  11669. deprecated="not deprecated">
  11670. <exception name="IOException" type="java.io.IOException"/>
  11671. <doc>
  11672. <![CDATA[Synchronize all buffer with the underlying devices.
  11673. @throws IOException]]>
  11674. </doc>
  11675. </method>
  11676. <doc>
  11677. <![CDATA[This interface declare the sync() operation.]]>
  11678. </doc>
  11679. </interface>
  11680. <!-- end interface org.apache.hadoop.fs.Syncable -->
  11681. <!-- start class org.apache.hadoop.fs.Trash -->
  11682. <class name="Trash" extends="org.apache.hadoop.conf.Configured"
  11683. abstract="false"
  11684. static="false" final="false" visibility="public"
  11685. deprecated="not deprecated">
  11686. <constructor name="Trash" type="org.apache.hadoop.conf.Configuration"
  11687. static="false" final="false" visibility="public"
  11688. deprecated="not deprecated">
  11689. <exception name="IOException" type="java.io.IOException"/>
  11690. <doc>
  11691. <![CDATA[Construct a trash can accessor.
  11692. @param conf a Configuration]]>
  11693. </doc>
  11694. </constructor>
  11695. <method name="moveToTrash" return="boolean"
  11696. abstract="false" native="false" synchronized="false"
  11697. static="false" final="false" visibility="public"
  11698. deprecated="not deprecated">
  11699. <param name="path" type="org.apache.hadoop.fs.Path"/>
  11700. <exception name="IOException" type="java.io.IOException"/>
  11701. <doc>
  11702. <![CDATA[Move a file or directory to the current trash directory.
  11703. @return false if the item is already in the trash or trash is disabled]]>
  11704. </doc>
  11705. </method>
  11706. <method name="checkpoint"
  11707. abstract="false" native="false" synchronized="false"
  11708. static="false" final="false" visibility="public"
  11709. deprecated="not deprecated">
  11710. <exception name="IOException" type="java.io.IOException"/>
  11711. <doc>
  11712. <![CDATA[Create a trash checkpoint.]]>
  11713. </doc>
  11714. </method>
  11715. <method name="expunge"
  11716. abstract="false" native="false" synchronized="false"
  11717. static="false" final="false" visibility="public"
  11718. deprecated="not deprecated">
  11719. <exception name="IOException" type="java.io.IOException"/>
  11720. <doc>
  11721. <![CDATA[Delete old checkpoints.]]>
  11722. </doc>
  11723. </method>
  11724. <method name="getEmptier" return="java.lang.Runnable"
  11725. abstract="false" native="false" synchronized="false"
  11726. static="false" final="false" visibility="public"
  11727. deprecated="not deprecated">
  11728. <exception name="IOException" type="java.io.IOException"/>
  11729. <doc>
  11730. <![CDATA[Return a {@link Runnable} that periodically empties the trash of all
  11731. users, intended to be run by the superuser. Only one checkpoint is kept
  11732. at a time.]]>
  11733. </doc>
  11734. </method>
  11735. <method name="main"
  11736. abstract="false" native="false" synchronized="false"
  11737. static="true" final="false" visibility="public"
  11738. deprecated="not deprecated">
  11739. <param name="args" type="java.lang.String[]"/>
  11740. <exception name="Exception" type="java.lang.Exception"/>
  11741. <doc>
  11742. <![CDATA[Run an emptier.]]>
  11743. </doc>
  11744. </method>
  11745. <doc>
  11746. <![CDATA[Provides a <i>trash</i> feature. Files are moved to a user's trash
  11747. directory, a subdirectory of their home directory named ".Trash". Files are
  11748. initially moved to a <i>current</i> sub-directory of the trash directory.
  11749. Within that sub-directory their original path is preserved. Periodically
  11750. one may checkpoint the current trash and remove older checkpoints. (This
  11751. design permits trash management without enumeration of the full trash
  11752. content, without date support in the filesystem, and without clock
  11753. synchronization.)]]>
  11754. </doc>
  11755. </class>
  11756. <!-- end class org.apache.hadoop.fs.Trash -->
  11757. </package>
  11758. <package name="org.apache.hadoop.fs.ftp">
  11759. <!-- start class org.apache.hadoop.fs.ftp.FTPException -->
  11760. <class name="FTPException" extends="java.lang.RuntimeException"
  11761. abstract="false"
  11762. static="false" final="false" visibility="public"
  11763. deprecated="not deprecated">
  11764. <constructor name="FTPException" type="java.lang.String"
  11765. static="false" final="false" visibility="public"
  11766. deprecated="not deprecated">
  11767. </constructor>
  11768. <constructor name="FTPException" type="java.lang.Throwable"
  11769. static="false" final="false" visibility="public"
  11770. deprecated="not deprecated">
  11771. </constructor>
  11772. <constructor name="FTPException" type="java.lang.String, java.lang.Throwable"
  11773. static="false" final="false" visibility="public"
  11774. deprecated="not deprecated">
  11775. </constructor>
  11776. <doc>
  11777. <![CDATA[A class to wrap a {@link Throwable} into a Runtime Exception.]]>
  11778. </doc>
  11779. </class>
  11780. <!-- end class org.apache.hadoop.fs.ftp.FTPException -->
  11781. <!-- start class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  11782. <class name="FTPFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  11783. abstract="false"
  11784. static="false" final="false" visibility="public"
  11785. deprecated="not deprecated">
  11786. <constructor name="FTPFileSystem"
  11787. static="false" final="false" visibility="public"
  11788. deprecated="not deprecated">
  11789. </constructor>
  11790. <method name="initialize"
  11791. abstract="false" native="false" synchronized="false"
  11792. static="false" final="false" visibility="public"
  11793. deprecated="not deprecated">
  11794. <param name="uri" type="java.net.URI"/>
  11795. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  11796. <exception name="IOException" type="java.io.IOException"/>
  11797. </method>
  11798. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  11799. abstract="false" native="false" synchronized="false"
  11800. static="false" final="false" visibility="public"
  11801. deprecated="not deprecated">
  11802. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11803. <param name="bufferSize" type="int"/>
  11804. <exception name="IOException" type="java.io.IOException"/>
  11805. </method>
  11806. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  11807. abstract="false" native="false" synchronized="false"
  11808. static="false" final="false" visibility="public"
  11809. deprecated="not deprecated">
  11810. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11811. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11812. <param name="overwrite" type="boolean"/>
  11813. <param name="bufferSize" type="int"/>
  11814. <param name="replication" type="short"/>
  11815. <param name="blockSize" type="long"/>
  11816. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11817. <exception name="IOException" type="java.io.IOException"/>
  11818. <doc>
  11819. <![CDATA[A stream obtained via this call must be closed before using other APIs of
  11820. this class or else the invocation will block.]]>
  11821. </doc>
  11822. </method>
  11823. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  11824. abstract="false" native="false" synchronized="false"
  11825. static="false" final="false" visibility="public"
  11826. deprecated="not deprecated">
  11827. <param name="f" type="org.apache.hadoop.fs.Path"/>
  11828. <param name="bufferSize" type="int"/>
  11829. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  11830. <exception name="IOException" type="java.io.IOException"/>
  11831. <doc>
  11832. <![CDATA[This optional operation is not yet supported.]]>
  11833. </doc>
  11834. </method>
  11835. <method name="delete" return="boolean"
  11836. abstract="false" native="false" synchronized="false"
  11837. static="false" final="false" visibility="public"
  11838. deprecated="Use delete(Path, boolean) instead">
  11839. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11840. <exception name="IOException" type="java.io.IOException"/>
  11841. <doc>
  11842. <![CDATA[@deprecated Use delete(Path, boolean) instead]]>
  11843. </doc>
  11844. </method>
  11845. <method name="delete" return="boolean"
  11846. abstract="false" native="false" synchronized="false"
  11847. static="false" final="false" visibility="public"
  11848. deprecated="not deprecated">
  11849. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11850. <param name="recursive" type="boolean"/>
  11851. <exception name="IOException" type="java.io.IOException"/>
  11852. </method>
  11853. <method name="getUri" return="java.net.URI"
  11854. abstract="false" native="false" synchronized="false"
  11855. static="false" final="false" visibility="public"
  11856. deprecated="not deprecated">
  11857. </method>
  11858. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  11859. abstract="false" native="false" synchronized="false"
  11860. static="false" final="false" visibility="public"
  11861. deprecated="not deprecated">
  11862. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11863. <exception name="IOException" type="java.io.IOException"/>
  11864. </method>
  11865. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  11866. abstract="false" native="false" synchronized="false"
  11867. static="false" final="false" visibility="public"
  11868. deprecated="not deprecated">
  11869. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11870. <exception name="IOException" type="java.io.IOException"/>
  11871. </method>
  11872. <method name="mkdirs" return="boolean"
  11873. abstract="false" native="false" synchronized="false"
  11874. static="false" final="false" visibility="public"
  11875. deprecated="not deprecated">
  11876. <param name="file" type="org.apache.hadoop.fs.Path"/>
  11877. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  11878. <exception name="IOException" type="java.io.IOException"/>
  11879. </method>
  11880. <method name="rename" return="boolean"
  11881. abstract="false" native="false" synchronized="false"
  11882. static="false" final="false" visibility="public"
  11883. deprecated="not deprecated">
  11884. <param name="src" type="org.apache.hadoop.fs.Path"/>
  11885. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  11886. <exception name="IOException" type="java.io.IOException"/>
  11887. </method>
  11888. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  11889. abstract="false" native="false" synchronized="false"
  11890. static="false" final="false" visibility="public"
  11891. deprecated="not deprecated">
  11892. </method>
  11893. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  11894. abstract="false" native="false" synchronized="false"
  11895. static="false" final="false" visibility="public"
  11896. deprecated="not deprecated">
  11897. </method>
  11898. <method name="setWorkingDirectory"
  11899. abstract="false" native="false" synchronized="false"
  11900. static="false" final="false" visibility="public"
  11901. deprecated="not deprecated">
  11902. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  11903. </method>
  11904. <field name="LOG" type="org.apache.commons.logging.Log"
  11905. transient="false" volatile="false"
  11906. static="true" final="true" visibility="public"
  11907. deprecated="not deprecated">
  11908. </field>
  11909. <field name="DEFAULT_BUFFER_SIZE" type="int"
  11910. transient="false" volatile="false"
  11911. static="true" final="true" visibility="public"
  11912. deprecated="not deprecated">
  11913. </field>
  11914. <field name="DEFAULT_BLOCK_SIZE" type="int"
  11915. transient="false" volatile="false"
  11916. static="true" final="true" visibility="public"
  11917. deprecated="not deprecated">
  11918. </field>
  11919. <doc>
  11920. <![CDATA[<p>
  11921. A {@link FileSystem} backed by an FTP client provided by <a
  11922. href="http://commons.apache.org/net/">Apache Commons Net</a>.
  11923. </p>]]>
  11924. </doc>
  11925. </class>
  11926. <!-- end class org.apache.hadoop.fs.ftp.FTPFileSystem -->
  11927. <!-- start class org.apache.hadoop.fs.ftp.FTPInputStream -->
  11928. <class name="FTPInputStream" extends="org.apache.hadoop.fs.FSInputStream"
  11929. abstract="false"
  11930. static="false" final="false" visibility="public"
  11931. deprecated="not deprecated">
  11932. <constructor name="FTPInputStream" type="java.io.InputStream, org.apache.commons.net.ftp.FTPClient, org.apache.hadoop.fs.FileSystem.Statistics"
  11933. static="false" final="false" visibility="public"
  11934. deprecated="not deprecated">
  11935. </constructor>
  11936. <method name="getPos" return="long"
  11937. abstract="false" native="false" synchronized="false"
  11938. static="false" final="false" visibility="public"
  11939. deprecated="not deprecated">
  11940. <exception name="IOException" type="java.io.IOException"/>
  11941. </method>
  11942. <method name="seek"
  11943. abstract="false" native="false" synchronized="false"
  11944. static="false" final="false" visibility="public"
  11945. deprecated="not deprecated">
  11946. <param name="pos" type="long"/>
  11947. <exception name="IOException" type="java.io.IOException"/>
  11948. </method>
  11949. <method name="seekToNewSource" return="boolean"
  11950. abstract="false" native="false" synchronized="false"
  11951. static="false" final="false" visibility="public"
  11952. deprecated="not deprecated">
  11953. <param name="targetPos" type="long"/>
  11954. <exception name="IOException" type="java.io.IOException"/>
  11955. </method>
  11956. <method name="read" return="int"
  11957. abstract="false" native="false" synchronized="true"
  11958. static="false" final="false" visibility="public"
  11959. deprecated="not deprecated">
  11960. <exception name="IOException" type="java.io.IOException"/>
  11961. </method>
  11962. <method name="read" return="int"
  11963. abstract="false" native="false" synchronized="true"
  11964. static="false" final="false" visibility="public"
  11965. deprecated="not deprecated">
  11966. <param name="buf" type="byte[]"/>
  11967. <param name="off" type="int"/>
  11968. <param name="len" type="int"/>
  11969. <exception name="IOException" type="java.io.IOException"/>
  11970. </method>
  11971. <method name="close"
  11972. abstract="false" native="false" synchronized="true"
  11973. static="false" final="false" visibility="public"
  11974. deprecated="not deprecated">
  11975. <exception name="IOException" type="java.io.IOException"/>
  11976. </method>
  11977. <method name="markSupported" return="boolean"
  11978. abstract="false" native="false" synchronized="false"
  11979. static="false" final="false" visibility="public"
  11980. deprecated="not deprecated">
  11981. </method>
  11982. <method name="mark"
  11983. abstract="false" native="false" synchronized="false"
  11984. static="false" final="false" visibility="public"
  11985. deprecated="not deprecated">
  11986. <param name="readLimit" type="int"/>
  11987. </method>
  11988. <method name="reset"
  11989. abstract="false" native="false" synchronized="false"
  11990. static="false" final="false" visibility="public"
  11991. deprecated="not deprecated">
  11992. <exception name="IOException" type="java.io.IOException"/>
  11993. </method>
  11994. </class>
  11995. <!-- end class org.apache.hadoop.fs.ftp.FTPInputStream -->
  11996. </package>
  11997. <package name="org.apache.hadoop.fs.kfs">
  11998. <!-- start class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  11999. <class name="KosmosFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12000. abstract="false"
  12001. static="false" final="false" visibility="public"
  12002. deprecated="not deprecated">
  12003. <constructor name="KosmosFileSystem"
  12004. static="false" final="false" visibility="public"
  12005. deprecated="not deprecated">
  12006. </constructor>
  12007. <method name="getUri" return="java.net.URI"
  12008. abstract="false" native="false" synchronized="false"
  12009. static="false" final="false" visibility="public"
  12010. deprecated="not deprecated">
  12011. </method>
  12012. <method name="initialize"
  12013. abstract="false" native="false" synchronized="false"
  12014. static="false" final="false" visibility="public"
  12015. deprecated="not deprecated">
  12016. <param name="uri" type="java.net.URI"/>
  12017. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12018. <exception name="IOException" type="java.io.IOException"/>
  12019. </method>
  12020. <method name="getName" return="java.lang.String"
  12021. abstract="false" native="false" synchronized="false"
  12022. static="false" final="false" visibility="public"
  12023. deprecated="not deprecated">
  12024. </method>
  12025. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12026. abstract="false" native="false" synchronized="false"
  12027. static="false" final="false" visibility="public"
  12028. deprecated="not deprecated">
  12029. </method>
  12030. <method name="setWorkingDirectory"
  12031. abstract="false" native="false" synchronized="false"
  12032. static="false" final="false" visibility="public"
  12033. deprecated="not deprecated">
  12034. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12035. </method>
  12036. <method name="mkdirs" return="boolean"
  12037. abstract="false" native="false" synchronized="false"
  12038. static="false" final="false" visibility="public"
  12039. deprecated="not deprecated">
  12040. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12041. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12042. <exception name="IOException" type="java.io.IOException"/>
  12043. </method>
  12044. <method name="isDirectory" return="boolean"
  12045. abstract="false" native="false" synchronized="false"
  12046. static="false" final="false" visibility="public"
  12047. deprecated="not deprecated">
  12048. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12049. <exception name="IOException" type="java.io.IOException"/>
  12050. </method>
  12051. <method name="isFile" return="boolean"
  12052. abstract="false" native="false" synchronized="false"
  12053. static="false" final="false" visibility="public"
  12054. deprecated="not deprecated">
  12055. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12056. <exception name="IOException" type="java.io.IOException"/>
  12057. </method>
  12058. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  12059. abstract="false" native="false" synchronized="false"
  12060. static="false" final="false" visibility="public"
  12061. deprecated="not deprecated">
  12062. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12063. <exception name="IOException" type="java.io.IOException"/>
  12064. </method>
  12065. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  12066. abstract="false" native="false" synchronized="false"
  12067. static="false" final="false" visibility="public"
  12068. deprecated="not deprecated">
  12069. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12070. <exception name="IOException" type="java.io.IOException"/>
  12071. </method>
  12072. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  12073. abstract="false" native="false" synchronized="false"
  12074. static="false" final="false" visibility="public"
  12075. deprecated="not deprecated">
  12076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  12077. <param name="bufferSize" type="int"/>
  12078. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12079. <exception name="IOException" type="java.io.IOException"/>
  12080. <doc>
  12081. <![CDATA[This optional operation is not yet supported.]]>
  12082. </doc>
  12083. </method>
  12084. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  12085. abstract="false" native="false" synchronized="false"
  12086. static="false" final="false" visibility="public"
  12087. deprecated="not deprecated">
  12088. <param name="file" type="org.apache.hadoop.fs.Path"/>
  12089. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12090. <param name="overwrite" type="boolean"/>
  12091. <param name="bufferSize" type="int"/>
  12092. <param name="replication" type="short"/>
  12093. <param name="blockSize" type="long"/>
  12094. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  12095. <exception name="IOException" type="java.io.IOException"/>
  12096. </method>
  12097. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  12098. abstract="false" native="false" synchronized="false"
  12099. static="false" final="false" visibility="public"
  12100. deprecated="not deprecated">
  12101. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12102. <param name="bufferSize" type="int"/>
  12103. <exception name="IOException" type="java.io.IOException"/>
  12104. </method>
  12105. <method name="rename" return="boolean"
  12106. abstract="false" native="false" synchronized="false"
  12107. static="false" final="false" visibility="public"
  12108. deprecated="not deprecated">
  12109. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12110. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12111. <exception name="IOException" type="java.io.IOException"/>
  12112. </method>
  12113. <method name="delete" return="boolean"
  12114. abstract="false" native="false" synchronized="false"
  12115. static="false" final="false" visibility="public"
  12116. deprecated="not deprecated">
  12117. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12118. <param name="recursive" type="boolean"/>
  12119. <exception name="IOException" type="java.io.IOException"/>
  12120. </method>
  12121. <method name="delete" return="boolean"
  12122. abstract="false" native="false" synchronized="false"
  12123. static="false" final="false" visibility="public"
  12124. deprecated="not deprecated">
  12125. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12126. <exception name="IOException" type="java.io.IOException"/>
  12127. </method>
  12128. <method name="getLength" return="long"
  12129. abstract="false" native="false" synchronized="false"
  12130. static="false" final="false" visibility="public"
  12131. deprecated="not deprecated">
  12132. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12133. <exception name="IOException" type="java.io.IOException"/>
  12134. </method>
  12135. <method name="getReplication" return="short"
  12136. abstract="false" native="false" synchronized="false"
  12137. static="false" final="false" visibility="public"
  12138. deprecated="not deprecated">
  12139. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12140. <exception name="IOException" type="java.io.IOException"/>
  12141. </method>
  12142. <method name="getDefaultReplication" return="short"
  12143. abstract="false" native="false" synchronized="false"
  12144. static="false" final="false" visibility="public"
  12145. deprecated="not deprecated">
  12146. </method>
  12147. <method name="setReplication" return="boolean"
  12148. abstract="false" native="false" synchronized="false"
  12149. static="false" final="false" visibility="public"
  12150. deprecated="not deprecated">
  12151. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12152. <param name="replication" type="short"/>
  12153. <exception name="IOException" type="java.io.IOException"/>
  12154. </method>
  12155. <method name="getDefaultBlockSize" return="long"
  12156. abstract="false" native="false" synchronized="false"
  12157. static="false" final="false" visibility="public"
  12158. deprecated="not deprecated">
  12159. </method>
  12160. <method name="lock"
  12161. abstract="false" native="false" synchronized="false"
  12162. static="false" final="false" visibility="public"
  12163. deprecated="not deprecated">
  12164. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12165. <param name="shared" type="boolean"/>
  12166. <exception name="IOException" type="java.io.IOException"/>
  12167. </method>
  12168. <method name="release"
  12169. abstract="false" native="false" synchronized="false"
  12170. static="false" final="false" visibility="public"
  12171. deprecated="not deprecated">
  12172. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12173. <exception name="IOException" type="java.io.IOException"/>
  12174. </method>
  12175. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  12176. abstract="false" native="false" synchronized="false"
  12177. static="false" final="false" visibility="public"
  12178. deprecated="not deprecated">
  12179. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  12180. <param name="start" type="long"/>
  12181. <param name="len" type="long"/>
  12182. <exception name="IOException" type="java.io.IOException"/>
  12183. <doc>
  12184. <![CDATA[Return null if the file doesn't exist; otherwise, get the
  12185. locations of the various chunks of the file file from KFS.]]>
  12186. </doc>
  12187. </method>
  12188. <method name="copyFromLocalFile"
  12189. abstract="false" native="false" synchronized="false"
  12190. static="false" final="false" visibility="public"
  12191. deprecated="not deprecated">
  12192. <param name="delSrc" type="boolean"/>
  12193. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12194. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12195. <exception name="IOException" type="java.io.IOException"/>
  12196. </method>
  12197. <method name="copyToLocalFile"
  12198. abstract="false" native="false" synchronized="false"
  12199. static="false" final="false" visibility="public"
  12200. deprecated="not deprecated">
  12201. <param name="delSrc" type="boolean"/>
  12202. <param name="src" type="org.apache.hadoop.fs.Path"/>
  12203. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  12204. <exception name="IOException" type="java.io.IOException"/>
  12205. </method>
  12206. <method name="startLocalOutput" return="org.apache.hadoop.fs.Path"
  12207. abstract="false" native="false" synchronized="false"
  12208. static="false" final="false" visibility="public"
  12209. deprecated="not deprecated">
  12210. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12211. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12212. <exception name="IOException" type="java.io.IOException"/>
  12213. </method>
  12214. <method name="completeLocalOutput"
  12215. abstract="false" native="false" synchronized="false"
  12216. static="false" final="false" visibility="public"
  12217. deprecated="not deprecated">
  12218. <param name="fsOutputFile" type="org.apache.hadoop.fs.Path"/>
  12219. <param name="tmpLocalFile" type="org.apache.hadoop.fs.Path"/>
  12220. <exception name="IOException" type="java.io.IOException"/>
  12221. </method>
  12222. <doc>
  12223. <![CDATA[A FileSystem backed by KFS.]]>
  12224. </doc>
  12225. </class>
  12226. <!-- end class org.apache.hadoop.fs.kfs.KosmosFileSystem -->
  12227. </package>
  12228. <package name="org.apache.hadoop.fs.permission">
  12229. <!-- start class org.apache.hadoop.fs.permission.AccessControlException -->
  12230. <class name="AccessControlException" extends="java.io.IOException"
  12231. abstract="false"
  12232. static="false" final="false" visibility="public"
  12233. deprecated="not deprecated">
  12234. <constructor name="AccessControlException"
  12235. static="false" final="false" visibility="public"
  12236. deprecated="not deprecated">
  12237. <doc>
  12238. <![CDATA[Default constructor is needed for unwrapping from
  12239. {@link org.apache.hadoop.ipc.RemoteException}.]]>
  12240. </doc>
  12241. </constructor>
  12242. <constructor name="AccessControlException" type="java.lang.String"
  12243. static="false" final="false" visibility="public"
  12244. deprecated="not deprecated">
  12245. <doc>
  12246. <![CDATA[Constructs an {@link AccessControlException}
  12247. with the specified detail message.
  12248. @param s the detail message.]]>
  12249. </doc>
  12250. </constructor>
  12251. <doc>
  12252. <![CDATA[An exception class for access control related issues.]]>
  12253. </doc>
  12254. </class>
  12255. <!-- end class org.apache.hadoop.fs.permission.AccessControlException -->
  12256. <!-- start class org.apache.hadoop.fs.permission.FsAction -->
  12257. <class name="FsAction" extends="java.lang.Enum&lt;org.apache.hadoop.fs.permission.FsAction&gt;"
  12258. abstract="false"
  12259. static="false" final="true" visibility="public"
  12260. deprecated="not deprecated">
  12261. <method name="values" return="org.apache.hadoop.fs.permission.FsAction[]"
  12262. abstract="false" native="false" synchronized="false"
  12263. static="true" final="false" visibility="public"
  12264. deprecated="not deprecated">
  12265. </method>
  12266. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsAction"
  12267. abstract="false" native="false" synchronized="false"
  12268. static="true" final="false" visibility="public"
  12269. deprecated="not deprecated">
  12270. <param name="name" type="java.lang.String"/>
  12271. </method>
  12272. <method name="implies" return="boolean"
  12273. abstract="false" native="false" synchronized="false"
  12274. static="false" final="false" visibility="public"
  12275. deprecated="not deprecated">
  12276. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12277. <doc>
  12278. <![CDATA[Return true if this action implies that action.
  12279. @param that]]>
  12280. </doc>
  12281. </method>
  12282. <method name="and" return="org.apache.hadoop.fs.permission.FsAction"
  12283. abstract="false" native="false" synchronized="false"
  12284. static="false" final="false" visibility="public"
  12285. deprecated="not deprecated">
  12286. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12287. <doc>
  12288. <![CDATA[AND operation.]]>
  12289. </doc>
  12290. </method>
  12291. <method name="or" return="org.apache.hadoop.fs.permission.FsAction"
  12292. abstract="false" native="false" synchronized="false"
  12293. static="false" final="false" visibility="public"
  12294. deprecated="not deprecated">
  12295. <param name="that" type="org.apache.hadoop.fs.permission.FsAction"/>
  12296. <doc>
  12297. <![CDATA[OR operation.]]>
  12298. </doc>
  12299. </method>
  12300. <method name="not" return="org.apache.hadoop.fs.permission.FsAction"
  12301. abstract="false" native="false" synchronized="false"
  12302. static="false" final="false" visibility="public"
  12303. deprecated="not deprecated">
  12304. <doc>
  12305. <![CDATA[NOT operation.]]>
  12306. </doc>
  12307. </method>
  12308. <field name="INDEX" type="int"
  12309. transient="false" volatile="false"
  12310. static="false" final="true" visibility="public"
  12311. deprecated="not deprecated">
  12312. <doc>
  12313. <![CDATA[Octal representation]]>
  12314. </doc>
  12315. </field>
  12316. <field name="SYMBOL" type="java.lang.String"
  12317. transient="false" volatile="false"
  12318. static="false" final="true" visibility="public"
  12319. deprecated="not deprecated">
  12320. <doc>
  12321. <![CDATA[Symbolic representation]]>
  12322. </doc>
  12323. </field>
  12324. <doc>
  12325. <![CDATA[File system actions, e.g. read, write, etc.]]>
  12326. </doc>
  12327. </class>
  12328. <!-- end class org.apache.hadoop.fs.permission.FsAction -->
  12329. <!-- start class org.apache.hadoop.fs.permission.FsPermission -->
  12330. <class name="FsPermission" extends="java.lang.Object"
  12331. abstract="false"
  12332. static="false" final="false" visibility="public"
  12333. deprecated="not deprecated">
  12334. <implements name="org.apache.hadoop.io.Writable"/>
  12335. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction, org.apache.hadoop.fs.permission.FsAction"
  12336. static="false" final="false" visibility="public"
  12337. deprecated="not deprecated">
  12338. <doc>
  12339. <![CDATA[Construct by the given {@link FsAction}.
  12340. @param u user action
  12341. @param g group action
  12342. @param o other action]]>
  12343. </doc>
  12344. </constructor>
  12345. <constructor name="FsPermission" type="short"
  12346. static="false" final="false" visibility="public"
  12347. deprecated="not deprecated">
  12348. <doc>
  12349. <![CDATA[Construct by the given mode.
  12350. @param mode
  12351. @see #toShort()]]>
  12352. </doc>
  12353. </constructor>
  12354. <constructor name="FsPermission" type="org.apache.hadoop.fs.permission.FsPermission"
  12355. static="false" final="false" visibility="public"
  12356. deprecated="not deprecated">
  12357. <doc>
  12358. <![CDATA[Copy constructor
  12359. @param other other permission]]>
  12360. </doc>
  12361. </constructor>
  12362. <method name="createImmutable" return="org.apache.hadoop.fs.permission.FsPermission"
  12363. abstract="false" native="false" synchronized="false"
  12364. static="true" final="false" visibility="public"
  12365. deprecated="not deprecated">
  12366. <param name="permission" type="short"/>
  12367. <doc>
  12368. <![CDATA[Create an immutable {@link FsPermission} object.]]>
  12369. </doc>
  12370. </method>
  12371. <method name="getUserAction" return="org.apache.hadoop.fs.permission.FsAction"
  12372. abstract="false" native="false" synchronized="false"
  12373. static="false" final="false" visibility="public"
  12374. deprecated="not deprecated">
  12375. <doc>
  12376. <![CDATA[Return user {@link FsAction}.]]>
  12377. </doc>
  12378. </method>
  12379. <method name="getGroupAction" return="org.apache.hadoop.fs.permission.FsAction"
  12380. abstract="false" native="false" synchronized="false"
  12381. static="false" final="false" visibility="public"
  12382. deprecated="not deprecated">
  12383. <doc>
  12384. <![CDATA[Return group {@link FsAction}.]]>
  12385. </doc>
  12386. </method>
  12387. <method name="getOtherAction" return="org.apache.hadoop.fs.permission.FsAction"
  12388. abstract="false" native="false" synchronized="false"
  12389. static="false" final="false" visibility="public"
  12390. deprecated="not deprecated">
  12391. <doc>
  12392. <![CDATA[Return other {@link FsAction}.]]>
  12393. </doc>
  12394. </method>
  12395. <method name="fromShort"
  12396. abstract="false" native="false" synchronized="false"
  12397. static="false" final="false" visibility="public"
  12398. deprecated="not deprecated">
  12399. <param name="n" type="short"/>
  12400. </method>
  12401. <method name="write"
  12402. abstract="false" native="false" synchronized="false"
  12403. static="false" final="false" visibility="public"
  12404. deprecated="not deprecated">
  12405. <param name="out" type="java.io.DataOutput"/>
  12406. <exception name="IOException" type="java.io.IOException"/>
  12407. <doc>
  12408. <![CDATA[{@inheritDoc}]]>
  12409. </doc>
  12410. </method>
  12411. <method name="readFields"
  12412. abstract="false" native="false" synchronized="false"
  12413. static="false" final="false" visibility="public"
  12414. deprecated="not deprecated">
  12415. <param name="in" type="java.io.DataInput"/>
  12416. <exception name="IOException" type="java.io.IOException"/>
  12417. <doc>
  12418. <![CDATA[{@inheritDoc}]]>
  12419. </doc>
  12420. </method>
  12421. <method name="read" return="org.apache.hadoop.fs.permission.FsPermission"
  12422. abstract="false" native="false" synchronized="false"
  12423. static="true" final="false" visibility="public"
  12424. deprecated="not deprecated">
  12425. <param name="in" type="java.io.DataInput"/>
  12426. <exception name="IOException" type="java.io.IOException"/>
  12427. <doc>
  12428. <![CDATA[Create and initialize a {@link FsPermission} from {@link DataInput}.]]>
  12429. </doc>
  12430. </method>
  12431. <method name="toShort" return="short"
  12432. abstract="false" native="false" synchronized="false"
  12433. static="false" final="false" visibility="public"
  12434. deprecated="not deprecated">
  12435. <doc>
  12436. <![CDATA[Encode the object to a short.]]>
  12437. </doc>
  12438. </method>
  12439. <method name="equals" return="boolean"
  12440. abstract="false" native="false" synchronized="false"
  12441. static="false" final="false" visibility="public"
  12442. deprecated="not deprecated">
  12443. <param name="obj" type="java.lang.Object"/>
  12444. <doc>
  12445. <![CDATA[{@inheritDoc}]]>
  12446. </doc>
  12447. </method>
  12448. <method name="hashCode" return="int"
  12449. abstract="false" native="false" synchronized="false"
  12450. static="false" final="false" visibility="public"
  12451. deprecated="not deprecated">
  12452. <doc>
  12453. <![CDATA[{@inheritDoc}]]>
  12454. </doc>
  12455. </method>
  12456. <method name="toString" return="java.lang.String"
  12457. abstract="false" native="false" synchronized="false"
  12458. static="false" final="false" visibility="public"
  12459. deprecated="not deprecated">
  12460. <doc>
  12461. <![CDATA[{@inheritDoc}]]>
  12462. </doc>
  12463. </method>
  12464. <method name="applyUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  12465. abstract="false" native="false" synchronized="false"
  12466. static="false" final="false" visibility="public"
  12467. deprecated="not deprecated">
  12468. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12469. <doc>
  12470. <![CDATA[Apply a umask to this permission and return a new one]]>
  12471. </doc>
  12472. </method>
  12473. <method name="getUMask" return="org.apache.hadoop.fs.permission.FsPermission"
  12474. abstract="false" native="false" synchronized="false"
  12475. static="true" final="false" visibility="public"
  12476. deprecated="not deprecated">
  12477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12478. <doc>
  12479. <![CDATA[Get the user file creation mask (umask)]]>
  12480. </doc>
  12481. </method>
  12482. <method name="setUMask"
  12483. abstract="false" native="false" synchronized="false"
  12484. static="true" final="false" visibility="public"
  12485. deprecated="not deprecated">
  12486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12487. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12488. <doc>
  12489. <![CDATA[Set the user file creation mask (umask)]]>
  12490. </doc>
  12491. </method>
  12492. <method name="getDefault" return="org.apache.hadoop.fs.permission.FsPermission"
  12493. abstract="false" native="false" synchronized="false"
  12494. static="true" final="false" visibility="public"
  12495. deprecated="not deprecated">
  12496. <doc>
  12497. <![CDATA[Get the default permission.]]>
  12498. </doc>
  12499. </method>
  12500. <method name="valueOf" return="org.apache.hadoop.fs.permission.FsPermission"
  12501. abstract="false" native="false" synchronized="false"
  12502. static="true" final="false" visibility="public"
  12503. deprecated="not deprecated">
  12504. <param name="unixSymbolicPermission" type="java.lang.String"/>
  12505. <doc>
  12506. <![CDATA[Create a FsPermission from a Unix symbolic permission string
  12507. @param unixSymbolicPermission e.g. "-rw-rw-rw-"]]>
  12508. </doc>
  12509. </method>
  12510. <field name="UMASK_LABEL" type="java.lang.String"
  12511. transient="false" volatile="false"
  12512. static="true" final="true" visibility="public"
  12513. deprecated="not deprecated">
  12514. <doc>
  12515. <![CDATA[umask property label]]>
  12516. </doc>
  12517. </field>
  12518. <field name="DEFAULT_UMASK" type="int"
  12519. transient="false" volatile="false"
  12520. static="true" final="true" visibility="public"
  12521. deprecated="not deprecated">
  12522. </field>
  12523. <doc>
  12524. <![CDATA[A class for file/directory permissions.]]>
  12525. </doc>
  12526. </class>
  12527. <!-- end class org.apache.hadoop.fs.permission.FsPermission -->
  12528. <!-- start class org.apache.hadoop.fs.permission.PermissionStatus -->
  12529. <class name="PermissionStatus" extends="java.lang.Object"
  12530. abstract="false"
  12531. static="false" final="false" visibility="public"
  12532. deprecated="not deprecated">
  12533. <implements name="org.apache.hadoop.io.Writable"/>
  12534. <constructor name="PermissionStatus" type="java.lang.String, java.lang.String, org.apache.hadoop.fs.permission.FsPermission"
  12535. static="false" final="false" visibility="public"
  12536. deprecated="not deprecated">
  12537. <doc>
  12538. <![CDATA[Constructor]]>
  12539. </doc>
  12540. </constructor>
  12541. <method name="createImmutable" return="org.apache.hadoop.fs.permission.PermissionStatus"
  12542. abstract="false" native="false" synchronized="false"
  12543. static="true" final="false" visibility="public"
  12544. deprecated="not deprecated">
  12545. <param name="user" type="java.lang.String"/>
  12546. <param name="group" type="java.lang.String"/>
  12547. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12548. <doc>
  12549. <![CDATA[Create an immutable {@link PermissionStatus} object.]]>
  12550. </doc>
  12551. </method>
  12552. <method name="getUserName" return="java.lang.String"
  12553. abstract="false" native="false" synchronized="false"
  12554. static="false" final="false" visibility="public"
  12555. deprecated="not deprecated">
  12556. <doc>
  12557. <![CDATA[Return user name]]>
  12558. </doc>
  12559. </method>
  12560. <method name="getGroupName" return="java.lang.String"
  12561. abstract="false" native="false" synchronized="false"
  12562. static="false" final="false" visibility="public"
  12563. deprecated="not deprecated">
  12564. <doc>
  12565. <![CDATA[Return group name]]>
  12566. </doc>
  12567. </method>
  12568. <method name="getPermission" return="org.apache.hadoop.fs.permission.FsPermission"
  12569. abstract="false" native="false" synchronized="false"
  12570. static="false" final="false" visibility="public"
  12571. deprecated="not deprecated">
  12572. <doc>
  12573. <![CDATA[Return permission]]>
  12574. </doc>
  12575. </method>
  12576. <method name="applyUMask" return="org.apache.hadoop.fs.permission.PermissionStatus"
  12577. abstract="false" native="false" synchronized="false"
  12578. static="false" final="false" visibility="public"
  12579. deprecated="not deprecated">
  12580. <param name="umask" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12581. <doc>
  12582. <![CDATA[Apply umask.
  12583. @see FsPermission#applyUMask(FsPermission)]]>
  12584. </doc>
  12585. </method>
  12586. <method name="readFields"
  12587. abstract="false" native="false" synchronized="false"
  12588. static="false" final="false" visibility="public"
  12589. deprecated="not deprecated">
  12590. <param name="in" type="java.io.DataInput"/>
  12591. <exception name="IOException" type="java.io.IOException"/>
  12592. <doc>
  12593. <![CDATA[{@inheritDoc}]]>
  12594. </doc>
  12595. </method>
  12596. <method name="write"
  12597. abstract="false" native="false" synchronized="false"
  12598. static="false" final="false" visibility="public"
  12599. deprecated="not deprecated">
  12600. <param name="out" type="java.io.DataOutput"/>
  12601. <exception name="IOException" type="java.io.IOException"/>
  12602. <doc>
  12603. <![CDATA[{@inheritDoc}]]>
  12604. </doc>
  12605. </method>
  12606. <method name="read" return="org.apache.hadoop.fs.permission.PermissionStatus"
  12607. abstract="false" native="false" synchronized="false"
  12608. static="true" final="false" visibility="public"
  12609. deprecated="not deprecated">
  12610. <param name="in" type="java.io.DataInput"/>
  12611. <exception name="IOException" type="java.io.IOException"/>
  12612. <doc>
  12613. <![CDATA[Create and initialize a {@link PermissionStatus} from {@link DataInput}.]]>
  12614. </doc>
  12615. </method>
  12616. <method name="write"
  12617. abstract="false" native="false" synchronized="false"
  12618. static="true" final="false" visibility="public"
  12619. deprecated="not deprecated">
  12620. <param name="out" type="java.io.DataOutput"/>
  12621. <param name="username" type="java.lang.String"/>
  12622. <param name="groupname" type="java.lang.String"/>
  12623. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12624. <exception name="IOException" type="java.io.IOException"/>
  12625. <doc>
  12626. <![CDATA[Serialize a {@link PermissionStatus} from its base components.]]>
  12627. </doc>
  12628. </method>
  12629. <method name="toString" return="java.lang.String"
  12630. abstract="false" native="false" synchronized="false"
  12631. static="false" final="false" visibility="public"
  12632. deprecated="not deprecated">
  12633. <doc>
  12634. <![CDATA[{@inheritDoc}]]>
  12635. </doc>
  12636. </method>
  12637. <doc>
  12638. <![CDATA[Store permission related information.]]>
  12639. </doc>
  12640. </class>
  12641. <!-- end class org.apache.hadoop.fs.permission.PermissionStatus -->
  12642. </package>
  12643. <package name="org.apache.hadoop.fs.s3">
  12644. <!-- start class org.apache.hadoop.fs.s3.Block -->
  12645. <class name="Block" extends="java.lang.Object"
  12646. abstract="false"
  12647. static="false" final="false" visibility="public"
  12648. deprecated="not deprecated">
  12649. <constructor name="Block" type="long, long"
  12650. static="false" final="false" visibility="public"
  12651. deprecated="not deprecated">
  12652. </constructor>
  12653. <method name="getId" return="long"
  12654. abstract="false" native="false" synchronized="false"
  12655. static="false" final="false" visibility="public"
  12656. deprecated="not deprecated">
  12657. </method>
  12658. <method name="getLength" return="long"
  12659. abstract="false" native="false" synchronized="false"
  12660. static="false" final="false" visibility="public"
  12661. deprecated="not deprecated">
  12662. </method>
  12663. <method name="toString" return="java.lang.String"
  12664. abstract="false" native="false" synchronized="false"
  12665. static="false" final="false" visibility="public"
  12666. deprecated="not deprecated">
  12667. </method>
  12668. <doc>
  12669. <![CDATA[Holds metadata about a block of data being stored in a {@link FileSystemStore}.]]>
  12670. </doc>
  12671. </class>
  12672. <!-- end class org.apache.hadoop.fs.s3.Block -->
  12673. <!-- start interface org.apache.hadoop.fs.s3.FileSystemStore -->
  12674. <interface name="FileSystemStore" abstract="true"
  12675. static="false" final="false" visibility="public"
  12676. deprecated="not deprecated">
  12677. <method name="initialize"
  12678. abstract="false" native="false" synchronized="false"
  12679. static="false" final="false" visibility="public"
  12680. deprecated="not deprecated">
  12681. <param name="uri" type="java.net.URI"/>
  12682. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12683. <exception name="IOException" type="java.io.IOException"/>
  12684. </method>
  12685. <method name="getVersion" return="java.lang.String"
  12686. abstract="false" native="false" synchronized="false"
  12687. static="false" final="false" visibility="public"
  12688. deprecated="not deprecated">
  12689. <exception name="IOException" type="java.io.IOException"/>
  12690. </method>
  12691. <method name="storeINode"
  12692. abstract="false" native="false" synchronized="false"
  12693. static="false" final="false" visibility="public"
  12694. deprecated="not deprecated">
  12695. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12696. <param name="inode" type="org.apache.hadoop.fs.s3.INode"/>
  12697. <exception name="IOException" type="java.io.IOException"/>
  12698. </method>
  12699. <method name="storeBlock"
  12700. abstract="false" native="false" synchronized="false"
  12701. static="false" final="false" visibility="public"
  12702. deprecated="not deprecated">
  12703. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  12704. <param name="file" type="java.io.File"/>
  12705. <exception name="IOException" type="java.io.IOException"/>
  12706. </method>
  12707. <method name="inodeExists" return="boolean"
  12708. abstract="false" native="false" synchronized="false"
  12709. static="false" final="false" visibility="public"
  12710. deprecated="not deprecated">
  12711. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12712. <exception name="IOException" type="java.io.IOException"/>
  12713. </method>
  12714. <method name="blockExists" return="boolean"
  12715. abstract="false" native="false" synchronized="false"
  12716. static="false" final="false" visibility="public"
  12717. deprecated="not deprecated">
  12718. <param name="blockId" type="long"/>
  12719. <exception name="IOException" type="java.io.IOException"/>
  12720. </method>
  12721. <method name="retrieveINode" return="org.apache.hadoop.fs.s3.INode"
  12722. abstract="false" native="false" synchronized="false"
  12723. static="false" final="false" visibility="public"
  12724. deprecated="not deprecated">
  12725. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12726. <exception name="IOException" type="java.io.IOException"/>
  12727. </method>
  12728. <method name="retrieveBlock" return="java.io.File"
  12729. abstract="false" native="false" synchronized="false"
  12730. static="false" final="false" visibility="public"
  12731. deprecated="not deprecated">
  12732. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  12733. <param name="byteRangeStart" type="long"/>
  12734. <exception name="IOException" type="java.io.IOException"/>
  12735. </method>
  12736. <method name="deleteINode"
  12737. abstract="false" native="false" synchronized="false"
  12738. static="false" final="false" visibility="public"
  12739. deprecated="not deprecated">
  12740. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12741. <exception name="IOException" type="java.io.IOException"/>
  12742. </method>
  12743. <method name="deleteBlock"
  12744. abstract="false" native="false" synchronized="false"
  12745. static="false" final="false" visibility="public"
  12746. deprecated="not deprecated">
  12747. <param name="block" type="org.apache.hadoop.fs.s3.Block"/>
  12748. <exception name="IOException" type="java.io.IOException"/>
  12749. </method>
  12750. <method name="listSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  12751. abstract="false" native="false" synchronized="false"
  12752. static="false" final="false" visibility="public"
  12753. deprecated="not deprecated">
  12754. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12755. <exception name="IOException" type="java.io.IOException"/>
  12756. </method>
  12757. <method name="listDeepSubPaths" return="java.util.Set&lt;org.apache.hadoop.fs.Path&gt;"
  12758. abstract="false" native="false" synchronized="false"
  12759. static="false" final="false" visibility="public"
  12760. deprecated="not deprecated">
  12761. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12762. <exception name="IOException" type="java.io.IOException"/>
  12763. </method>
  12764. <method name="purge"
  12765. abstract="false" native="false" synchronized="false"
  12766. static="false" final="false" visibility="public"
  12767. deprecated="not deprecated">
  12768. <exception name="IOException" type="java.io.IOException"/>
  12769. <doc>
  12770. <![CDATA[Delete everything. Used for testing.
  12771. @throws IOException]]>
  12772. </doc>
  12773. </method>
  12774. <method name="dump"
  12775. abstract="false" native="false" synchronized="false"
  12776. static="false" final="false" visibility="public"
  12777. deprecated="not deprecated">
  12778. <exception name="IOException" type="java.io.IOException"/>
  12779. <doc>
  12780. <![CDATA[Diagnostic method to dump all INodes to the console.
  12781. @throws IOException]]>
  12782. </doc>
  12783. </method>
  12784. <doc>
  12785. <![CDATA[A facility for storing and retrieving {@link INode}s and {@link Block}s.]]>
  12786. </doc>
  12787. </interface>
  12788. <!-- end interface org.apache.hadoop.fs.s3.FileSystemStore -->
  12789. <!-- start class org.apache.hadoop.fs.s3.INode -->
  12790. <class name="INode" extends="java.lang.Object"
  12791. abstract="false"
  12792. static="false" final="false" visibility="public"
  12793. deprecated="not deprecated">
  12794. <constructor name="INode" type="org.apache.hadoop.fs.s3.INode.FileType, org.apache.hadoop.fs.s3.Block[]"
  12795. static="false" final="false" visibility="public"
  12796. deprecated="not deprecated">
  12797. </constructor>
  12798. <method name="getBlocks" return="org.apache.hadoop.fs.s3.Block[]"
  12799. abstract="false" native="false" synchronized="false"
  12800. static="false" final="false" visibility="public"
  12801. deprecated="not deprecated">
  12802. </method>
  12803. <method name="getFileType" return="org.apache.hadoop.fs.s3.INode.FileType"
  12804. abstract="false" native="false" synchronized="false"
  12805. static="false" final="false" visibility="public"
  12806. deprecated="not deprecated">
  12807. </method>
  12808. <method name="isDirectory" return="boolean"
  12809. abstract="false" native="false" synchronized="false"
  12810. static="false" final="false" visibility="public"
  12811. deprecated="not deprecated">
  12812. </method>
  12813. <method name="isFile" return="boolean"
  12814. abstract="false" native="false" synchronized="false"
  12815. static="false" final="false" visibility="public"
  12816. deprecated="not deprecated">
  12817. </method>
  12818. <method name="getSerializedLength" return="long"
  12819. abstract="false" native="false" synchronized="false"
  12820. static="false" final="false" visibility="public"
  12821. deprecated="not deprecated">
  12822. </method>
  12823. <method name="serialize" return="java.io.InputStream"
  12824. abstract="false" native="false" synchronized="false"
  12825. static="false" final="false" visibility="public"
  12826. deprecated="not deprecated">
  12827. <exception name="IOException" type="java.io.IOException"/>
  12828. </method>
  12829. <method name="deserialize" return="org.apache.hadoop.fs.s3.INode"
  12830. abstract="false" native="false" synchronized="false"
  12831. static="true" final="false" visibility="public"
  12832. deprecated="not deprecated">
  12833. <param name="in" type="java.io.InputStream"/>
  12834. <exception name="IOException" type="java.io.IOException"/>
  12835. </method>
  12836. <field name="FILE_TYPES" type="org.apache.hadoop.fs.s3.INode.FileType[]"
  12837. transient="false" volatile="false"
  12838. static="true" final="true" visibility="public"
  12839. deprecated="not deprecated">
  12840. </field>
  12841. <field name="DIRECTORY_INODE" type="org.apache.hadoop.fs.s3.INode"
  12842. transient="false" volatile="false"
  12843. static="true" final="true" visibility="public"
  12844. deprecated="not deprecated">
  12845. </field>
  12846. <doc>
  12847. <![CDATA[Holds file metadata including type (regular file, or directory),
  12848. and the list of blocks that are pointers to the data.]]>
  12849. </doc>
  12850. </class>
  12851. <!-- end class org.apache.hadoop.fs.s3.INode -->
  12852. <!-- start class org.apache.hadoop.fs.s3.MigrationTool -->
  12853. <class name="MigrationTool" extends="org.apache.hadoop.conf.Configured"
  12854. abstract="false"
  12855. static="false" final="false" visibility="public"
  12856. deprecated="not deprecated">
  12857. <implements name="org.apache.hadoop.util.Tool"/>
  12858. <constructor name="MigrationTool"
  12859. static="false" final="false" visibility="public"
  12860. deprecated="not deprecated">
  12861. </constructor>
  12862. <method name="main"
  12863. abstract="false" native="false" synchronized="false"
  12864. static="true" final="false" visibility="public"
  12865. deprecated="not deprecated">
  12866. <param name="args" type="java.lang.String[]"/>
  12867. <exception name="Exception" type="java.lang.Exception"/>
  12868. </method>
  12869. <method name="run" return="int"
  12870. abstract="false" native="false" synchronized="false"
  12871. static="false" final="false" visibility="public"
  12872. deprecated="not deprecated">
  12873. <param name="args" type="java.lang.String[]"/>
  12874. <exception name="Exception" type="java.lang.Exception"/>
  12875. </method>
  12876. <method name="initialize"
  12877. abstract="false" native="false" synchronized="false"
  12878. static="false" final="false" visibility="public"
  12879. deprecated="not deprecated">
  12880. <param name="uri" type="java.net.URI"/>
  12881. <exception name="IOException" type="java.io.IOException"/>
  12882. </method>
  12883. <doc>
  12884. <![CDATA[<p>
  12885. This class is a tool for migrating data from an older to a newer version
  12886. of an S3 filesystem.
  12887. </p>
  12888. <p>
  12889. All files in the filesystem are migrated by re-writing the block metadata
  12890. - no datafiles are touched.
  12891. </p>]]>
  12892. </doc>
  12893. </class>
  12894. <!-- end class org.apache.hadoop.fs.s3.MigrationTool -->
  12895. <!-- start class org.apache.hadoop.fs.s3.S3Credentials -->
  12896. <class name="S3Credentials" extends="java.lang.Object"
  12897. abstract="false"
  12898. static="false" final="false" visibility="public"
  12899. deprecated="not deprecated">
  12900. <constructor name="S3Credentials"
  12901. static="false" final="false" visibility="public"
  12902. deprecated="not deprecated">
  12903. </constructor>
  12904. <method name="initialize"
  12905. abstract="false" native="false" synchronized="false"
  12906. static="false" final="false" visibility="public"
  12907. deprecated="not deprecated">
  12908. <param name="uri" type="java.net.URI"/>
  12909. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12910. <doc>
  12911. <![CDATA[@throws IllegalArgumentException if credentials for S3 cannot be
  12912. determined.]]>
  12913. </doc>
  12914. </method>
  12915. <method name="getAccessKey" return="java.lang.String"
  12916. abstract="false" native="false" synchronized="false"
  12917. static="false" final="false" visibility="public"
  12918. deprecated="not deprecated">
  12919. </method>
  12920. <method name="getSecretAccessKey" return="java.lang.String"
  12921. abstract="false" native="false" synchronized="false"
  12922. static="false" final="false" visibility="public"
  12923. deprecated="not deprecated">
  12924. </method>
  12925. <doc>
  12926. <![CDATA[<p>
  12927. Extracts AWS credentials from the filesystem URI or configuration.
  12928. </p>]]>
  12929. </doc>
  12930. </class>
  12931. <!-- end class org.apache.hadoop.fs.s3.S3Credentials -->
  12932. <!-- start class org.apache.hadoop.fs.s3.S3Exception -->
  12933. <class name="S3Exception" extends="java.lang.RuntimeException"
  12934. abstract="false"
  12935. static="false" final="false" visibility="public"
  12936. deprecated="not deprecated">
  12937. <constructor name="S3Exception" type="java.lang.Throwable"
  12938. static="false" final="false" visibility="public"
  12939. deprecated="not deprecated">
  12940. </constructor>
  12941. <doc>
  12942. <![CDATA[Thrown if there is a problem communicating with Amazon S3.]]>
  12943. </doc>
  12944. </class>
  12945. <!-- end class org.apache.hadoop.fs.s3.S3Exception -->
  12946. <!-- start class org.apache.hadoop.fs.s3.S3FileSystem -->
  12947. <class name="S3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  12948. abstract="false"
  12949. static="false" final="false" visibility="public"
  12950. deprecated="not deprecated">
  12951. <constructor name="S3FileSystem"
  12952. static="false" final="false" visibility="public"
  12953. deprecated="not deprecated">
  12954. </constructor>
  12955. <constructor name="S3FileSystem" type="org.apache.hadoop.fs.s3.FileSystemStore"
  12956. static="false" final="false" visibility="public"
  12957. deprecated="not deprecated">
  12958. </constructor>
  12959. <method name="getUri" return="java.net.URI"
  12960. abstract="false" native="false" synchronized="false"
  12961. static="false" final="false" visibility="public"
  12962. deprecated="not deprecated">
  12963. </method>
  12964. <method name="initialize"
  12965. abstract="false" native="false" synchronized="false"
  12966. static="false" final="false" visibility="public"
  12967. deprecated="not deprecated">
  12968. <param name="uri" type="java.net.URI"/>
  12969. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  12970. <exception name="IOException" type="java.io.IOException"/>
  12971. </method>
  12972. <method name="getName" return="java.lang.String"
  12973. abstract="false" native="false" synchronized="false"
  12974. static="false" final="false" visibility="public"
  12975. deprecated="not deprecated">
  12976. </method>
  12977. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  12978. abstract="false" native="false" synchronized="false"
  12979. static="false" final="false" visibility="public"
  12980. deprecated="not deprecated">
  12981. </method>
  12982. <method name="setWorkingDirectory"
  12983. abstract="false" native="false" synchronized="false"
  12984. static="false" final="false" visibility="public"
  12985. deprecated="not deprecated">
  12986. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  12987. </method>
  12988. <method name="mkdirs" return="boolean"
  12989. abstract="false" native="false" synchronized="false"
  12990. static="false" final="false" visibility="public"
  12991. deprecated="not deprecated">
  12992. <param name="path" type="org.apache.hadoop.fs.Path"/>
  12993. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  12994. <exception name="IOException" type="java.io.IOException"/>
  12995. <doc>
  12996. <![CDATA[@param permission Currently ignored.]]>
  12997. </doc>
  12998. </method>
  12999. <method name="isFile" return="boolean"
  13000. abstract="false" native="false" synchronized="false"
  13001. static="false" final="false" visibility="public"
  13002. deprecated="not deprecated">
  13003. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13004. <exception name="IOException" type="java.io.IOException"/>
  13005. </method>
  13006. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13007. abstract="false" native="false" synchronized="false"
  13008. static="false" final="false" visibility="public"
  13009. deprecated="not deprecated">
  13010. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13011. <exception name="IOException" type="java.io.IOException"/>
  13012. </method>
  13013. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13014. abstract="false" native="false" synchronized="false"
  13015. static="false" final="false" visibility="public"
  13016. deprecated="not deprecated">
  13017. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13018. <param name="bufferSize" type="int"/>
  13019. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13020. <exception name="IOException" type="java.io.IOException"/>
  13021. <doc>
  13022. <![CDATA[This optional operation is not yet supported.]]>
  13023. </doc>
  13024. </method>
  13025. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13026. abstract="false" native="false" synchronized="false"
  13027. static="false" final="false" visibility="public"
  13028. deprecated="not deprecated">
  13029. <param name="file" type="org.apache.hadoop.fs.Path"/>
  13030. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13031. <param name="overwrite" type="boolean"/>
  13032. <param name="bufferSize" type="int"/>
  13033. <param name="replication" type="short"/>
  13034. <param name="blockSize" type="long"/>
  13035. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13036. <exception name="IOException" type="java.io.IOException"/>
  13037. <doc>
  13038. <![CDATA[@param permission Currently ignored.]]>
  13039. </doc>
  13040. </method>
  13041. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13042. abstract="false" native="false" synchronized="false"
  13043. static="false" final="false" visibility="public"
  13044. deprecated="not deprecated">
  13045. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13046. <param name="bufferSize" type="int"/>
  13047. <exception name="IOException" type="java.io.IOException"/>
  13048. </method>
  13049. <method name="rename" return="boolean"
  13050. abstract="false" native="false" synchronized="false"
  13051. static="false" final="false" visibility="public"
  13052. deprecated="not deprecated">
  13053. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13054. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13055. <exception name="IOException" type="java.io.IOException"/>
  13056. </method>
  13057. <method name="delete" return="boolean"
  13058. abstract="false" native="false" synchronized="false"
  13059. static="false" final="false" visibility="public"
  13060. deprecated="not deprecated">
  13061. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13062. <param name="recursive" type="boolean"/>
  13063. <exception name="IOException" type="java.io.IOException"/>
  13064. </method>
  13065. <method name="delete" return="boolean"
  13066. abstract="false" native="false" synchronized="false"
  13067. static="false" final="false" visibility="public"
  13068. deprecated="not deprecated">
  13069. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13070. <exception name="IOException" type="java.io.IOException"/>
  13071. </method>
  13072. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13073. abstract="false" native="false" synchronized="false"
  13074. static="false" final="false" visibility="public"
  13075. deprecated="not deprecated">
  13076. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13077. <exception name="IOException" type="java.io.IOException"/>
  13078. <doc>
  13079. <![CDATA[FileStatus for S3 file systems.]]>
  13080. </doc>
  13081. </method>
  13082. <doc>
  13083. <![CDATA[<p>
  13084. A block-based {@link FileSystem} backed by
  13085. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  13086. </p>
  13087. @see NativeS3FileSystem]]>
  13088. </doc>
  13089. </class>
  13090. <!-- end class org.apache.hadoop.fs.s3.S3FileSystem -->
  13091. <!-- start class org.apache.hadoop.fs.s3.S3FileSystemException -->
  13092. <class name="S3FileSystemException" extends="java.io.IOException"
  13093. abstract="false"
  13094. static="false" final="false" visibility="public"
  13095. deprecated="not deprecated">
  13096. <constructor name="S3FileSystemException" type="java.lang.String"
  13097. static="false" final="false" visibility="public"
  13098. deprecated="not deprecated">
  13099. </constructor>
  13100. <doc>
  13101. <![CDATA[Thrown when there is a fatal exception while using {@link S3FileSystem}.]]>
  13102. </doc>
  13103. </class>
  13104. <!-- end class org.apache.hadoop.fs.s3.S3FileSystemException -->
  13105. <!-- start class org.apache.hadoop.fs.s3.VersionMismatchException -->
  13106. <class name="VersionMismatchException" extends="org.apache.hadoop.fs.s3.S3FileSystemException"
  13107. abstract="false"
  13108. static="false" final="false" visibility="public"
  13109. deprecated="not deprecated">
  13110. <constructor name="VersionMismatchException" type="java.lang.String, java.lang.String"
  13111. static="false" final="false" visibility="public"
  13112. deprecated="not deprecated">
  13113. </constructor>
  13114. <doc>
  13115. <![CDATA[Thrown when Hadoop cannot read the version of the data stored
  13116. in {@link S3FileSystem}.]]>
  13117. </doc>
  13118. </class>
  13119. <!-- end class org.apache.hadoop.fs.s3.VersionMismatchException -->
  13120. </package>
  13121. <package name="org.apache.hadoop.fs.s3native">
  13122. <!-- start class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  13123. <class name="NativeS3FileSystem" extends="org.apache.hadoop.fs.FileSystem"
  13124. abstract="false"
  13125. static="false" final="false" visibility="public"
  13126. deprecated="not deprecated">
  13127. <constructor name="NativeS3FileSystem"
  13128. static="false" final="false" visibility="public"
  13129. deprecated="not deprecated">
  13130. </constructor>
  13131. <constructor name="NativeS3FileSystem" type="org.apache.hadoop.fs.s3native.NativeFileSystemStore"
  13132. static="false" final="false" visibility="public"
  13133. deprecated="not deprecated">
  13134. </constructor>
  13135. <method name="initialize"
  13136. abstract="false" native="false" synchronized="false"
  13137. static="false" final="false" visibility="public"
  13138. deprecated="not deprecated">
  13139. <param name="uri" type="java.net.URI"/>
  13140. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13141. <exception name="IOException" type="java.io.IOException"/>
  13142. </method>
  13143. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  13144. abstract="false" native="false" synchronized="false"
  13145. static="false" final="false" visibility="public"
  13146. deprecated="not deprecated">
  13147. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13148. <param name="bufferSize" type="int"/>
  13149. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13150. <exception name="IOException" type="java.io.IOException"/>
  13151. <doc>
  13152. <![CDATA[This optional operation is not yet supported.]]>
  13153. </doc>
  13154. </method>
  13155. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  13156. abstract="false" native="false" synchronized="false"
  13157. static="false" final="false" visibility="public"
  13158. deprecated="not deprecated">
  13159. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13160. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13161. <param name="overwrite" type="boolean"/>
  13162. <param name="bufferSize" type="int"/>
  13163. <param name="replication" type="short"/>
  13164. <param name="blockSize" type="long"/>
  13165. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  13166. <exception name="IOException" type="java.io.IOException"/>
  13167. </method>
  13168. <method name="delete" return="boolean"
  13169. abstract="false" native="false" synchronized="false"
  13170. static="false" final="false" visibility="public"
  13171. deprecated="not deprecated">
  13172. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13173. <exception name="IOException" type="java.io.IOException"/>
  13174. </method>
  13175. <method name="delete" return="boolean"
  13176. abstract="false" native="false" synchronized="false"
  13177. static="false" final="false" visibility="public"
  13178. deprecated="not deprecated">
  13179. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13180. <param name="recursive" type="boolean"/>
  13181. <exception name="IOException" type="java.io.IOException"/>
  13182. </method>
  13183. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  13184. abstract="false" native="false" synchronized="false"
  13185. static="false" final="false" visibility="public"
  13186. deprecated="not deprecated">
  13187. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13188. <exception name="IOException" type="java.io.IOException"/>
  13189. </method>
  13190. <method name="getUri" return="java.net.URI"
  13191. abstract="false" native="false" synchronized="false"
  13192. static="false" final="false" visibility="public"
  13193. deprecated="not deprecated">
  13194. </method>
  13195. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  13196. abstract="false" native="false" synchronized="false"
  13197. static="false" final="false" visibility="public"
  13198. deprecated="not deprecated">
  13199. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13200. <exception name="IOException" type="java.io.IOException"/>
  13201. <doc>
  13202. <![CDATA[<p>
  13203. If <code>f</code> is a file, this method will make a single call to S3.
  13204. If <code>f</code> is a directory, this method will make a maximum of
  13205. (<i>n</i> / 1000) + 2 calls to S3, where <i>n</i> is the total number of
  13206. files and directories contained directly in <code>f</code>.
  13207. </p>]]>
  13208. </doc>
  13209. </method>
  13210. <method name="mkdirs" return="boolean"
  13211. abstract="false" native="false" synchronized="false"
  13212. static="false" final="false" visibility="public"
  13213. deprecated="not deprecated">
  13214. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13215. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  13216. <exception name="IOException" type="java.io.IOException"/>
  13217. </method>
  13218. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  13219. abstract="false" native="false" synchronized="false"
  13220. static="false" final="false" visibility="public"
  13221. deprecated="not deprecated">
  13222. <param name="f" type="org.apache.hadoop.fs.Path"/>
  13223. <param name="bufferSize" type="int"/>
  13224. <exception name="IOException" type="java.io.IOException"/>
  13225. </method>
  13226. <method name="rename" return="boolean"
  13227. abstract="false" native="false" synchronized="false"
  13228. static="false" final="false" visibility="public"
  13229. deprecated="not deprecated">
  13230. <param name="src" type="org.apache.hadoop.fs.Path"/>
  13231. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  13232. <exception name="IOException" type="java.io.IOException"/>
  13233. </method>
  13234. <method name="setWorkingDirectory"
  13235. abstract="false" native="false" synchronized="false"
  13236. static="false" final="false" visibility="public"
  13237. deprecated="not deprecated">
  13238. <param name="newDir" type="org.apache.hadoop.fs.Path"/>
  13239. <doc>
  13240. <![CDATA[Set the working directory to the given directory.]]>
  13241. </doc>
  13242. </method>
  13243. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  13244. abstract="false" native="false" synchronized="false"
  13245. static="false" final="false" visibility="public"
  13246. deprecated="not deprecated">
  13247. </method>
  13248. <field name="LOG" type="org.apache.commons.logging.Log"
  13249. transient="false" volatile="false"
  13250. static="true" final="true" visibility="public"
  13251. deprecated="not deprecated">
  13252. </field>
  13253. <doc>
  13254. <![CDATA[<p>
  13255. A {@link FileSystem} for reading and writing files stored on
  13256. <a href="http://aws.amazon.com/s3">Amazon S3</a>.
  13257. Unlike {@link org.apache.hadoop.fs.s3.S3FileSystem} this implementation
  13258. stores files on S3 in their
  13259. native form so they can be read by other S3 tools.
  13260. </p>
  13261. @see org.apache.hadoop.fs.s3.S3FileSystem]]>
  13262. </doc>
  13263. </class>
  13264. <!-- end class org.apache.hadoop.fs.s3native.NativeS3FileSystem -->
  13265. </package>
  13266. <package name="org.apache.hadoop.fs.shell">
  13267. <!-- start class org.apache.hadoop.fs.shell.Command -->
  13268. <class name="Command" extends="java.lang.Object"
  13269. abstract="true"
  13270. static="false" final="false" visibility="public"
  13271. deprecated="not deprecated">
  13272. <constructor name="Command" type="org.apache.hadoop.fs.FileSystem"
  13273. static="false" final="false" visibility="protected"
  13274. deprecated="not deprecated">
  13275. <doc>
  13276. <![CDATA[Constructor]]>
  13277. </doc>
  13278. </constructor>
  13279. <method name="getCommandName" return="java.lang.String"
  13280. abstract="true" native="false" synchronized="false"
  13281. static="false" final="false" visibility="public"
  13282. deprecated="not deprecated">
  13283. <doc>
  13284. <![CDATA[Return the command's name excluding the leading character -]]>
  13285. </doc>
  13286. </method>
  13287. <method name="run"
  13288. abstract="true" native="false" synchronized="false"
  13289. static="false" final="false" visibility="protected"
  13290. deprecated="not deprecated">
  13291. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13292. <exception name="IOException" type="java.io.IOException"/>
  13293. <doc>
  13294. <![CDATA[Execute the command on the input path
  13295. @param path the input path
  13296. @throws IOException if any error occurs]]>
  13297. </doc>
  13298. </method>
  13299. <method name="runAll" return="int"
  13300. abstract="false" native="false" synchronized="false"
  13301. static="false" final="false" visibility="public"
  13302. deprecated="not deprecated">
  13303. <doc>
  13304. <![CDATA[For each source path, execute the command
  13305. @return 0 if it runs successfully; -1 if it fails]]>
  13306. </doc>
  13307. </method>
  13308. <field name="fs" type="org.apache.hadoop.fs.FileSystem"
  13309. transient="false" volatile="false"
  13310. static="false" final="true" visibility="protected"
  13311. deprecated="not deprecated">
  13312. </field>
  13313. <field name="args" type="java.lang.String[]"
  13314. transient="false" volatile="false"
  13315. static="false" final="false" visibility="protected"
  13316. deprecated="not deprecated">
  13317. </field>
  13318. <doc>
  13319. <![CDATA[An abstract class for the execution of a file system command]]>
  13320. </doc>
  13321. </class>
  13322. <!-- end class org.apache.hadoop.fs.shell.Command -->
  13323. <!-- start class org.apache.hadoop.fs.shell.CommandFormat -->
  13324. <class name="CommandFormat" extends="java.lang.Object"
  13325. abstract="false"
  13326. static="false" final="false" visibility="public"
  13327. deprecated="not deprecated">
  13328. <constructor name="CommandFormat" type="java.lang.String, int, int, java.lang.String[]"
  13329. static="false" final="false" visibility="public"
  13330. deprecated="not deprecated">
  13331. <doc>
  13332. <![CDATA[constructor]]>
  13333. </doc>
  13334. </constructor>
  13335. <method name="parse" return="java.util.List&lt;java.lang.String&gt;"
  13336. abstract="false" native="false" synchronized="false"
  13337. static="false" final="false" visibility="public"
  13338. deprecated="not deprecated">
  13339. <param name="args" type="java.lang.String[]"/>
  13340. <param name="pos" type="int"/>
  13341. <doc>
  13342. <![CDATA[Parse parameters starting from the given position
  13343. @param args an array of input arguments
  13344. @param pos the position at which starts to parse
  13345. @return a list of parameters]]>
  13346. </doc>
  13347. </method>
  13348. <method name="getOpt" return="boolean"
  13349. abstract="false" native="false" synchronized="false"
  13350. static="false" final="false" visibility="public"
  13351. deprecated="not deprecated">
  13352. <param name="option" type="java.lang.String"/>
  13353. <doc>
  13354. <![CDATA[Return if the option is set or not
  13355. @param option String representation of an option
  13356. @return true is the option is set; false otherwise]]>
  13357. </doc>
  13358. </method>
  13359. <doc>
  13360. <![CDATA[Parse the args of a command and check the format of args.]]>
  13361. </doc>
  13362. </class>
  13363. <!-- end class org.apache.hadoop.fs.shell.CommandFormat -->
  13364. <!-- start class org.apache.hadoop.fs.shell.Count -->
  13365. <class name="Count" extends="org.apache.hadoop.fs.shell.Command"
  13366. abstract="false"
  13367. static="false" final="false" visibility="public"
  13368. deprecated="not deprecated">
  13369. <constructor name="Count" type="java.lang.String[], int, org.apache.hadoop.fs.FileSystem"
  13370. static="false" final="false" visibility="public"
  13371. deprecated="not deprecated">
  13372. <doc>
  13373. <![CDATA[Constructor
  13374. @param cmd the count command
  13375. @param pos the starting index of the arguments
  13376. @param fs the file system handler]]>
  13377. </doc>
  13378. </constructor>
  13379. <method name="matches" return="boolean"
  13380. abstract="false" native="false" synchronized="false"
  13381. static="true" final="false" visibility="public"
  13382. deprecated="not deprecated">
  13383. <param name="cmd" type="java.lang.String"/>
  13384. <doc>
  13385. <![CDATA[Check if a command is the count command
  13386. @param cmd A string representation of a command starting with "-"
  13387. @return true if this is a count command; false otherwise]]>
  13388. </doc>
  13389. </method>
  13390. <method name="getCommandName" return="java.lang.String"
  13391. abstract="false" native="false" synchronized="false"
  13392. static="false" final="false" visibility="public"
  13393. deprecated="not deprecated">
  13394. </method>
  13395. <method name="run"
  13396. abstract="false" native="false" synchronized="false"
  13397. static="false" final="false" visibility="protected"
  13398. deprecated="not deprecated">
  13399. <param name="path" type="org.apache.hadoop.fs.Path"/>
  13400. <exception name="IOException" type="java.io.IOException"/>
  13401. </method>
  13402. <field name="NAME" type="java.lang.String"
  13403. transient="false" volatile="false"
  13404. static="true" final="true" visibility="public"
  13405. deprecated="not deprecated">
  13406. </field>
  13407. <field name="USAGE" type="java.lang.String"
  13408. transient="false" volatile="false"
  13409. static="true" final="true" visibility="public"
  13410. deprecated="not deprecated">
  13411. </field>
  13412. <field name="DESCRIPTION" type="java.lang.String"
  13413. transient="false" volatile="false"
  13414. static="true" final="true" visibility="public"
  13415. deprecated="not deprecated">
  13416. </field>
  13417. <doc>
  13418. <![CDATA[Count the number of directories, files, bytes, quota, and remaining quota.]]>
  13419. </doc>
  13420. </class>
  13421. <!-- end class org.apache.hadoop.fs.shell.Count -->
  13422. </package>
  13423. <package name="org.apache.hadoop.io">
  13424. <!-- start class org.apache.hadoop.io.AbstractMapWritable -->
  13425. <class name="AbstractMapWritable" extends="java.lang.Object"
  13426. abstract="true"
  13427. static="false" final="false" visibility="public"
  13428. deprecated="not deprecated">
  13429. <implements name="org.apache.hadoop.io.Writable"/>
  13430. <implements name="org.apache.hadoop.conf.Configurable"/>
  13431. <constructor name="AbstractMapWritable"
  13432. static="false" final="false" visibility="protected"
  13433. deprecated="not deprecated">
  13434. <doc>
  13435. <![CDATA[constructor.]]>
  13436. </doc>
  13437. </constructor>
  13438. <method name="addToMap"
  13439. abstract="false" native="false" synchronized="true"
  13440. static="false" final="false" visibility="protected"
  13441. deprecated="not deprecated">
  13442. <param name="clazz" type="java.lang.Class"/>
  13443. <doc>
  13444. <![CDATA[Add a Class to the maps if it is not already present.]]>
  13445. </doc>
  13446. </method>
  13447. <method name="getClass" return="java.lang.Class"
  13448. abstract="false" native="false" synchronized="false"
  13449. static="false" final="false" visibility="protected"
  13450. deprecated="not deprecated">
  13451. <param name="id" type="byte"/>
  13452. <doc>
  13453. <![CDATA[@return the Class class for the specified id]]>
  13454. </doc>
  13455. </method>
  13456. <method name="getId" return="byte"
  13457. abstract="false" native="false" synchronized="false"
  13458. static="false" final="false" visibility="protected"
  13459. deprecated="not deprecated">
  13460. <param name="clazz" type="java.lang.Class"/>
  13461. <doc>
  13462. <![CDATA[@return the id for the specified Class]]>
  13463. </doc>
  13464. </method>
  13465. <method name="copy"
  13466. abstract="false" native="false" synchronized="true"
  13467. static="false" final="false" visibility="protected"
  13468. deprecated="not deprecated">
  13469. <param name="other" type="org.apache.hadoop.io.Writable"/>
  13470. <doc>
  13471. <![CDATA[Used by child copy constructors.]]>
  13472. </doc>
  13473. </method>
  13474. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  13475. abstract="false" native="false" synchronized="false"
  13476. static="false" final="false" visibility="public"
  13477. deprecated="not deprecated">
  13478. <doc>
  13479. <![CDATA[@return the conf]]>
  13480. </doc>
  13481. </method>
  13482. <method name="setConf"
  13483. abstract="false" native="false" synchronized="false"
  13484. static="false" final="false" visibility="public"
  13485. deprecated="not deprecated">
  13486. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  13487. <doc>
  13488. <![CDATA[@param conf the conf to set]]>
  13489. </doc>
  13490. </method>
  13491. <method name="write"
  13492. abstract="false" native="false" synchronized="false"
  13493. static="false" final="false" visibility="public"
  13494. deprecated="not deprecated">
  13495. <param name="out" type="java.io.DataOutput"/>
  13496. <exception name="IOException" type="java.io.IOException"/>
  13497. <doc>
  13498. <![CDATA[{@inheritDoc}]]>
  13499. </doc>
  13500. </method>
  13501. <method name="readFields"
  13502. abstract="false" native="false" synchronized="false"
  13503. static="false" final="false" visibility="public"
  13504. deprecated="not deprecated">
  13505. <param name="in" type="java.io.DataInput"/>
  13506. <exception name="IOException" type="java.io.IOException"/>
  13507. <doc>
  13508. <![CDATA[{@inheritDoc}]]>
  13509. </doc>
  13510. </method>
  13511. <doc>
  13512. <![CDATA[Abstract base class for MapWritable and SortedMapWritable
  13513. Unlike org.apache.nutch.crawl.MapWritable, this class allows creation of
  13514. MapWritable&lt;Writable, MapWritable&gt; so the CLASS_TO_ID and ID_TO_CLASS
  13515. maps travel with the class instead of being static.
  13516. Class ids range from 1 to 127 so there can be at most 127 distinct classes
  13517. in any specific map instance.]]>
  13518. </doc>
  13519. </class>
  13520. <!-- end class org.apache.hadoop.io.AbstractMapWritable -->
  13521. <!-- start class org.apache.hadoop.io.ArrayFile -->
  13522. <class name="ArrayFile" extends="org.apache.hadoop.io.MapFile"
  13523. abstract="false"
  13524. static="false" final="false" visibility="public"
  13525. deprecated="not deprecated">
  13526. <constructor name="ArrayFile"
  13527. static="false" final="false" visibility="protected"
  13528. deprecated="not deprecated">
  13529. </constructor>
  13530. <doc>
  13531. <![CDATA[A dense file-based mapping from integers to values.]]>
  13532. </doc>
  13533. </class>
  13534. <!-- end class org.apache.hadoop.io.ArrayFile -->
  13535. <!-- start class org.apache.hadoop.io.ArrayFile.Reader -->
  13536. <class name="ArrayFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  13537. abstract="false"
  13538. static="true" final="false" visibility="public"
  13539. deprecated="not deprecated">
  13540. <constructor name="ArrayFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  13541. static="false" final="false" visibility="public"
  13542. deprecated="not deprecated">
  13543. <exception name="IOException" type="java.io.IOException"/>
  13544. <doc>
  13545. <![CDATA[Construct an array reader for the named file.]]>
  13546. </doc>
  13547. </constructor>
  13548. <method name="seek"
  13549. abstract="false" native="false" synchronized="true"
  13550. static="false" final="false" visibility="public"
  13551. deprecated="not deprecated">
  13552. <param name="n" type="long"/>
  13553. <exception name="IOException" type="java.io.IOException"/>
  13554. <doc>
  13555. <![CDATA[Positions the reader before its <code>n</code>th value.]]>
  13556. </doc>
  13557. </method>
  13558. <method name="next" return="org.apache.hadoop.io.Writable"
  13559. abstract="false" native="false" synchronized="true"
  13560. static="false" final="false" visibility="public"
  13561. deprecated="not deprecated">
  13562. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13563. <exception name="IOException" type="java.io.IOException"/>
  13564. <doc>
  13565. <![CDATA[Read and return the next value in the file.]]>
  13566. </doc>
  13567. </method>
  13568. <method name="key" return="long"
  13569. abstract="false" native="false" synchronized="true"
  13570. static="false" final="false" visibility="public"
  13571. deprecated="not deprecated">
  13572. <exception name="IOException" type="java.io.IOException"/>
  13573. <doc>
  13574. <![CDATA[Returns the key associated with the most recent call to {@link
  13575. #seek(long)}, {@link #next(Writable)}, or {@link
  13576. #get(long,Writable)}.]]>
  13577. </doc>
  13578. </method>
  13579. <method name="get" return="org.apache.hadoop.io.Writable"
  13580. abstract="false" native="false" synchronized="true"
  13581. static="false" final="false" visibility="public"
  13582. deprecated="not deprecated">
  13583. <param name="n" type="long"/>
  13584. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13585. <exception name="IOException" type="java.io.IOException"/>
  13586. <doc>
  13587. <![CDATA[Return the <code>n</code>th value in the file.]]>
  13588. </doc>
  13589. </method>
  13590. <doc>
  13591. <![CDATA[Provide access to an existing array file.]]>
  13592. </doc>
  13593. </class>
  13594. <!-- end class org.apache.hadoop.io.ArrayFile.Reader -->
  13595. <!-- start class org.apache.hadoop.io.ArrayFile.Writer -->
  13596. <class name="ArrayFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  13597. abstract="false"
  13598. static="true" final="false" visibility="public"
  13599. deprecated="not deprecated">
  13600. <constructor name="ArrayFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  13601. static="false" final="false" visibility="public"
  13602. deprecated="not deprecated">
  13603. <exception name="IOException" type="java.io.IOException"/>
  13604. <doc>
  13605. <![CDATA[Create the named file for values of the named class.]]>
  13606. </doc>
  13607. </constructor>
  13608. <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"
  13609. static="false" final="false" visibility="public"
  13610. deprecated="not deprecated">
  13611. <exception name="IOException" type="java.io.IOException"/>
  13612. <doc>
  13613. <![CDATA[Create the named file for values of the named class.]]>
  13614. </doc>
  13615. </constructor>
  13616. <method name="append"
  13617. abstract="false" native="false" synchronized="true"
  13618. static="false" final="false" visibility="public"
  13619. deprecated="not deprecated">
  13620. <param name="value" type="org.apache.hadoop.io.Writable"/>
  13621. <exception name="IOException" type="java.io.IOException"/>
  13622. <doc>
  13623. <![CDATA[Append a value to the file.]]>
  13624. </doc>
  13625. </method>
  13626. <doc>
  13627. <![CDATA[Write a new array file.]]>
  13628. </doc>
  13629. </class>
  13630. <!-- end class org.apache.hadoop.io.ArrayFile.Writer -->
  13631. <!-- start class org.apache.hadoop.io.ArrayWritable -->
  13632. <class name="ArrayWritable" extends="java.lang.Object"
  13633. abstract="false"
  13634. static="false" final="false" visibility="public"
  13635. deprecated="not deprecated">
  13636. <implements name="org.apache.hadoop.io.Writable"/>
  13637. <constructor name="ArrayWritable" type="java.lang.Class"
  13638. static="false" final="false" visibility="public"
  13639. deprecated="not deprecated">
  13640. </constructor>
  13641. <constructor name="ArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[]"
  13642. static="false" final="false" visibility="public"
  13643. deprecated="not deprecated">
  13644. </constructor>
  13645. <constructor name="ArrayWritable" type="java.lang.String[]"
  13646. static="false" final="false" visibility="public"
  13647. deprecated="not deprecated">
  13648. </constructor>
  13649. <method name="getValueClass" return="java.lang.Class"
  13650. abstract="false" native="false" synchronized="false"
  13651. static="false" final="false" visibility="public"
  13652. deprecated="not deprecated">
  13653. </method>
  13654. <method name="toStrings" return="java.lang.String[]"
  13655. abstract="false" native="false" synchronized="false"
  13656. static="false" final="false" visibility="public"
  13657. deprecated="not deprecated">
  13658. </method>
  13659. <method name="toArray" return="java.lang.Object"
  13660. abstract="false" native="false" synchronized="false"
  13661. static="false" final="false" visibility="public"
  13662. deprecated="not deprecated">
  13663. </method>
  13664. <method name="set"
  13665. abstract="false" native="false" synchronized="false"
  13666. static="false" final="false" visibility="public"
  13667. deprecated="not deprecated">
  13668. <param name="values" type="org.apache.hadoop.io.Writable[]"/>
  13669. </method>
  13670. <method name="get" return="org.apache.hadoop.io.Writable[]"
  13671. abstract="false" native="false" synchronized="false"
  13672. static="false" final="false" visibility="public"
  13673. deprecated="not deprecated">
  13674. </method>
  13675. <method name="readFields"
  13676. abstract="false" native="false" synchronized="false"
  13677. static="false" final="false" visibility="public"
  13678. deprecated="not deprecated">
  13679. <param name="in" type="java.io.DataInput"/>
  13680. <exception name="IOException" type="java.io.IOException"/>
  13681. </method>
  13682. <method name="write"
  13683. abstract="false" native="false" synchronized="false"
  13684. static="false" final="false" visibility="public"
  13685. deprecated="not deprecated">
  13686. <param name="out" type="java.io.DataOutput"/>
  13687. <exception name="IOException" type="java.io.IOException"/>
  13688. </method>
  13689. <doc>
  13690. <![CDATA[A Writable for arrays containing instances of a class. The elements of this
  13691. writable must all be instances of the same class. If this writable will be
  13692. the input for a Reducer, you will need to create a subclass that sets the
  13693. value to be of the proper type.
  13694. For example:
  13695. <code>
  13696. public class IntArrayWritable extends ArrayWritable {
  13697. public IntArrayWritable() {
  13698. super(IntWritable.class);
  13699. }
  13700. }
  13701. </code>]]>
  13702. </doc>
  13703. </class>
  13704. <!-- end class org.apache.hadoop.io.ArrayWritable -->
  13705. <!-- start class org.apache.hadoop.io.BooleanWritable -->
  13706. <class name="BooleanWritable" extends="java.lang.Object"
  13707. abstract="false"
  13708. static="false" final="false" visibility="public"
  13709. deprecated="not deprecated">
  13710. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13711. <constructor name="BooleanWritable"
  13712. static="false" final="false" visibility="public"
  13713. deprecated="not deprecated">
  13714. </constructor>
  13715. <constructor name="BooleanWritable" type="boolean"
  13716. static="false" final="false" visibility="public"
  13717. deprecated="not deprecated">
  13718. </constructor>
  13719. <method name="set"
  13720. abstract="false" native="false" synchronized="false"
  13721. static="false" final="false" visibility="public"
  13722. deprecated="not deprecated">
  13723. <param name="value" type="boolean"/>
  13724. <doc>
  13725. <![CDATA[Set the value of the BooleanWritable]]>
  13726. </doc>
  13727. </method>
  13728. <method name="get" return="boolean"
  13729. abstract="false" native="false" synchronized="false"
  13730. static="false" final="false" visibility="public"
  13731. deprecated="not deprecated">
  13732. <doc>
  13733. <![CDATA[Returns the value of the BooleanWritable]]>
  13734. </doc>
  13735. </method>
  13736. <method name="readFields"
  13737. abstract="false" native="false" synchronized="false"
  13738. static="false" final="false" visibility="public"
  13739. deprecated="not deprecated">
  13740. <param name="in" type="java.io.DataInput"/>
  13741. <exception name="IOException" type="java.io.IOException"/>
  13742. </method>
  13743. <method name="write"
  13744. abstract="false" native="false" synchronized="false"
  13745. static="false" final="false" visibility="public"
  13746. deprecated="not deprecated">
  13747. <param name="out" type="java.io.DataOutput"/>
  13748. <exception name="IOException" type="java.io.IOException"/>
  13749. </method>
  13750. <method name="equals" return="boolean"
  13751. abstract="false" native="false" synchronized="false"
  13752. static="false" final="false" visibility="public"
  13753. deprecated="not deprecated">
  13754. <param name="o" type="java.lang.Object"/>
  13755. </method>
  13756. <method name="hashCode" return="int"
  13757. abstract="false" native="false" synchronized="false"
  13758. static="false" final="false" visibility="public"
  13759. deprecated="not deprecated">
  13760. </method>
  13761. <method name="compareTo" return="int"
  13762. abstract="false" native="false" synchronized="false"
  13763. static="false" final="false" visibility="public"
  13764. deprecated="not deprecated">
  13765. <param name="o" type="java.lang.Object"/>
  13766. </method>
  13767. <method name="toString" return="java.lang.String"
  13768. abstract="false" native="false" synchronized="false"
  13769. static="false" final="false" visibility="public"
  13770. deprecated="not deprecated">
  13771. </method>
  13772. <doc>
  13773. <![CDATA[A WritableComparable for booleans.]]>
  13774. </doc>
  13775. </class>
  13776. <!-- end class org.apache.hadoop.io.BooleanWritable -->
  13777. <!-- start class org.apache.hadoop.io.BooleanWritable.Comparator -->
  13778. <class name="BooleanWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13779. abstract="false"
  13780. static="true" final="false" visibility="public"
  13781. deprecated="not deprecated">
  13782. <constructor name="BooleanWritable.Comparator"
  13783. static="false" final="false" visibility="public"
  13784. deprecated="not deprecated">
  13785. </constructor>
  13786. <method name="compare" return="int"
  13787. abstract="false" native="false" synchronized="false"
  13788. static="false" final="false" visibility="public"
  13789. deprecated="not deprecated">
  13790. <param name="b1" type="byte[]"/>
  13791. <param name="s1" type="int"/>
  13792. <param name="l1" type="int"/>
  13793. <param name="b2" type="byte[]"/>
  13794. <param name="s2" type="int"/>
  13795. <param name="l2" type="int"/>
  13796. </method>
  13797. <doc>
  13798. <![CDATA[A Comparator optimized for BooleanWritable.]]>
  13799. </doc>
  13800. </class>
  13801. <!-- end class org.apache.hadoop.io.BooleanWritable.Comparator -->
  13802. <!-- start class org.apache.hadoop.io.BytesWritable -->
  13803. <class name="BytesWritable" extends="java.lang.Object"
  13804. abstract="false"
  13805. static="false" final="false" visibility="public"
  13806. deprecated="not deprecated">
  13807. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13808. <constructor name="BytesWritable"
  13809. static="false" final="false" visibility="public"
  13810. deprecated="not deprecated">
  13811. <doc>
  13812. <![CDATA[Create a zero-size sequence.]]>
  13813. </doc>
  13814. </constructor>
  13815. <constructor name="BytesWritable" type="byte[]"
  13816. static="false" final="false" visibility="public"
  13817. deprecated="not deprecated">
  13818. <doc>
  13819. <![CDATA[Create a BytesWritable using the byte array as the initial value.
  13820. @param bytes This array becomes the backing storage for the object.]]>
  13821. </doc>
  13822. </constructor>
  13823. <method name="get" return="byte[]"
  13824. abstract="false" native="false" synchronized="false"
  13825. static="false" final="false" visibility="public"
  13826. deprecated="not deprecated">
  13827. <doc>
  13828. <![CDATA[Get the data from the BytesWritable.
  13829. @return The data is only valid between 0 and getSize() - 1.]]>
  13830. </doc>
  13831. </method>
  13832. <method name="getSize" return="int"
  13833. abstract="false" native="false" synchronized="false"
  13834. static="false" final="false" visibility="public"
  13835. deprecated="not deprecated">
  13836. <doc>
  13837. <![CDATA[Get the current size of the buffer.]]>
  13838. </doc>
  13839. </method>
  13840. <method name="setSize"
  13841. abstract="false" native="false" synchronized="false"
  13842. static="false" final="false" visibility="public"
  13843. deprecated="not deprecated">
  13844. <param name="size" type="int"/>
  13845. <doc>
  13846. <![CDATA[Change the size of the buffer. The values in the old range are preserved
  13847. and any new values are undefined. The capacity is changed if it is
  13848. necessary.
  13849. @param size The new number of bytes]]>
  13850. </doc>
  13851. </method>
  13852. <method name="getCapacity" return="int"
  13853. abstract="false" native="false" synchronized="false"
  13854. static="false" final="false" visibility="public"
  13855. deprecated="not deprecated">
  13856. <doc>
  13857. <![CDATA[Get the capacity, which is the maximum size that could handled without
  13858. resizing the backing storage.
  13859. @return The number of bytes]]>
  13860. </doc>
  13861. </method>
  13862. <method name="setCapacity"
  13863. abstract="false" native="false" synchronized="false"
  13864. static="false" final="false" visibility="public"
  13865. deprecated="not deprecated">
  13866. <param name="new_cap" type="int"/>
  13867. <doc>
  13868. <![CDATA[Change the capacity of the backing storage.
  13869. The data is preserved.
  13870. @param new_cap The new capacity in bytes.]]>
  13871. </doc>
  13872. </method>
  13873. <method name="set"
  13874. abstract="false" native="false" synchronized="false"
  13875. static="false" final="false" visibility="public"
  13876. deprecated="not deprecated">
  13877. <param name="newData" type="org.apache.hadoop.io.BytesWritable"/>
  13878. <doc>
  13879. <![CDATA[Set the BytesWritable to the contents of the given newData.
  13880. @param newData the value to set this BytesWritable to.]]>
  13881. </doc>
  13882. </method>
  13883. <method name="set"
  13884. abstract="false" native="false" synchronized="false"
  13885. static="false" final="false" visibility="public"
  13886. deprecated="not deprecated">
  13887. <param name="newData" type="byte[]"/>
  13888. <param name="offset" type="int"/>
  13889. <param name="length" type="int"/>
  13890. <doc>
  13891. <![CDATA[Set the value to a copy of the given byte range
  13892. @param newData the new values to copy in
  13893. @param offset the offset in newData to start at
  13894. @param length the number of bytes to copy]]>
  13895. </doc>
  13896. </method>
  13897. <method name="readFields"
  13898. abstract="false" native="false" synchronized="false"
  13899. static="false" final="false" visibility="public"
  13900. deprecated="not deprecated">
  13901. <param name="in" type="java.io.DataInput"/>
  13902. <exception name="IOException" type="java.io.IOException"/>
  13903. </method>
  13904. <method name="write"
  13905. abstract="false" native="false" synchronized="false"
  13906. static="false" final="false" visibility="public"
  13907. deprecated="not deprecated">
  13908. <param name="out" type="java.io.DataOutput"/>
  13909. <exception name="IOException" type="java.io.IOException"/>
  13910. </method>
  13911. <method name="hashCode" return="int"
  13912. abstract="false" native="false" synchronized="false"
  13913. static="false" final="false" visibility="public"
  13914. deprecated="not deprecated">
  13915. </method>
  13916. <method name="compareTo" return="int"
  13917. abstract="false" native="false" synchronized="false"
  13918. static="false" final="false" visibility="public"
  13919. deprecated="not deprecated">
  13920. <param name="right_obj" type="java.lang.Object"/>
  13921. <doc>
  13922. <![CDATA[Define the sort order of the BytesWritable.
  13923. @param right_obj The other bytes writable
  13924. @return Positive if left is bigger than right, 0 if they are equal, and
  13925. negative if left is smaller than right.]]>
  13926. </doc>
  13927. </method>
  13928. <method name="equals" return="boolean"
  13929. abstract="false" native="false" synchronized="false"
  13930. static="false" final="false" visibility="public"
  13931. deprecated="not deprecated">
  13932. <param name="right_obj" type="java.lang.Object"/>
  13933. <doc>
  13934. <![CDATA[Are the two byte sequences equal?]]>
  13935. </doc>
  13936. </method>
  13937. <method name="toString" return="java.lang.String"
  13938. abstract="false" native="false" synchronized="false"
  13939. static="false" final="false" visibility="public"
  13940. deprecated="not deprecated">
  13941. <doc>
  13942. <![CDATA[Generate the stream of bytes as hex pairs separated by ' '.]]>
  13943. </doc>
  13944. </method>
  13945. <doc>
  13946. <![CDATA[A byte sequence that is usable as a key or value.
  13947. It is resizable and distinguishes between the size of the seqeunce and
  13948. the current capacity. The hash function is the front of the md5 of the
  13949. buffer. The sort order is the same as memcmp.]]>
  13950. </doc>
  13951. </class>
  13952. <!-- end class org.apache.hadoop.io.BytesWritable -->
  13953. <!-- start class org.apache.hadoop.io.BytesWritable.Comparator -->
  13954. <class name="BytesWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  13955. abstract="false"
  13956. static="true" final="false" visibility="public"
  13957. deprecated="not deprecated">
  13958. <constructor name="BytesWritable.Comparator"
  13959. static="false" final="false" visibility="public"
  13960. deprecated="not deprecated">
  13961. </constructor>
  13962. <method name="compare" return="int"
  13963. abstract="false" native="false" synchronized="false"
  13964. static="false" final="false" visibility="public"
  13965. deprecated="not deprecated">
  13966. <param name="b1" type="byte[]"/>
  13967. <param name="s1" type="int"/>
  13968. <param name="l1" type="int"/>
  13969. <param name="b2" type="byte[]"/>
  13970. <param name="s2" type="int"/>
  13971. <param name="l2" type="int"/>
  13972. <doc>
  13973. <![CDATA[Compare the buffers in serialized form.]]>
  13974. </doc>
  13975. </method>
  13976. <doc>
  13977. <![CDATA[A Comparator optimized for BytesWritable.]]>
  13978. </doc>
  13979. </class>
  13980. <!-- end class org.apache.hadoop.io.BytesWritable.Comparator -->
  13981. <!-- start class org.apache.hadoop.io.ByteWritable -->
  13982. <class name="ByteWritable" extends="java.lang.Object"
  13983. abstract="false"
  13984. static="false" final="false" visibility="public"
  13985. deprecated="not deprecated">
  13986. <implements name="org.apache.hadoop.io.WritableComparable"/>
  13987. <constructor name="ByteWritable"
  13988. static="false" final="false" visibility="public"
  13989. deprecated="not deprecated">
  13990. </constructor>
  13991. <constructor name="ByteWritable" type="byte"
  13992. static="false" final="false" visibility="public"
  13993. deprecated="not deprecated">
  13994. </constructor>
  13995. <method name="set"
  13996. abstract="false" native="false" synchronized="false"
  13997. static="false" final="false" visibility="public"
  13998. deprecated="not deprecated">
  13999. <param name="value" type="byte"/>
  14000. <doc>
  14001. <![CDATA[Set the value of this ByteWritable.]]>
  14002. </doc>
  14003. </method>
  14004. <method name="get" return="byte"
  14005. abstract="false" native="false" synchronized="false"
  14006. static="false" final="false" visibility="public"
  14007. deprecated="not deprecated">
  14008. <doc>
  14009. <![CDATA[Return the value of this ByteWritable.]]>
  14010. </doc>
  14011. </method>
  14012. <method name="readFields"
  14013. abstract="false" native="false" synchronized="false"
  14014. static="false" final="false" visibility="public"
  14015. deprecated="not deprecated">
  14016. <param name="in" type="java.io.DataInput"/>
  14017. <exception name="IOException" type="java.io.IOException"/>
  14018. </method>
  14019. <method name="write"
  14020. abstract="false" native="false" synchronized="false"
  14021. static="false" final="false" visibility="public"
  14022. deprecated="not deprecated">
  14023. <param name="out" type="java.io.DataOutput"/>
  14024. <exception name="IOException" type="java.io.IOException"/>
  14025. </method>
  14026. <method name="equals" return="boolean"
  14027. abstract="false" native="false" synchronized="false"
  14028. static="false" final="false" visibility="public"
  14029. deprecated="not deprecated">
  14030. <param name="o" type="java.lang.Object"/>
  14031. <doc>
  14032. <![CDATA[Returns true iff <code>o</code> is a ByteWritable with the same value.]]>
  14033. </doc>
  14034. </method>
  14035. <method name="hashCode" return="int"
  14036. abstract="false" native="false" synchronized="false"
  14037. static="false" final="false" visibility="public"
  14038. deprecated="not deprecated">
  14039. </method>
  14040. <method name="compareTo" return="int"
  14041. abstract="false" native="false" synchronized="false"
  14042. static="false" final="false" visibility="public"
  14043. deprecated="not deprecated">
  14044. <param name="o" type="java.lang.Object"/>
  14045. <doc>
  14046. <![CDATA[Compares two ByteWritables.]]>
  14047. </doc>
  14048. </method>
  14049. <method name="toString" return="java.lang.String"
  14050. abstract="false" native="false" synchronized="false"
  14051. static="false" final="false" visibility="public"
  14052. deprecated="not deprecated">
  14053. </method>
  14054. <doc>
  14055. <![CDATA[A WritableComparable for a single byte.]]>
  14056. </doc>
  14057. </class>
  14058. <!-- end class org.apache.hadoop.io.ByteWritable -->
  14059. <!-- start class org.apache.hadoop.io.ByteWritable.Comparator -->
  14060. <class name="ByteWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14061. abstract="false"
  14062. static="true" final="false" visibility="public"
  14063. deprecated="not deprecated">
  14064. <constructor name="ByteWritable.Comparator"
  14065. static="false" final="false" visibility="public"
  14066. deprecated="not deprecated">
  14067. </constructor>
  14068. <method name="compare" return="int"
  14069. abstract="false" native="false" synchronized="false"
  14070. static="false" final="false" visibility="public"
  14071. deprecated="not deprecated">
  14072. <param name="b1" type="byte[]"/>
  14073. <param name="s1" type="int"/>
  14074. <param name="l1" type="int"/>
  14075. <param name="b2" type="byte[]"/>
  14076. <param name="s2" type="int"/>
  14077. <param name="l2" type="int"/>
  14078. </method>
  14079. <doc>
  14080. <![CDATA[A Comparator optimized for ByteWritable.]]>
  14081. </doc>
  14082. </class>
  14083. <!-- end class org.apache.hadoop.io.ByteWritable.Comparator -->
  14084. <!-- start interface org.apache.hadoop.io.Closeable -->
  14085. <interface name="Closeable" abstract="true"
  14086. static="false" final="false" visibility="public"
  14087. deprecated="use java.io.Closeable">
  14088. <implements name="java.io.Closeable"/>
  14089. <doc>
  14090. <![CDATA[@deprecated use java.io.Closeable]]>
  14091. </doc>
  14092. </interface>
  14093. <!-- end interface org.apache.hadoop.io.Closeable -->
  14094. <!-- start class org.apache.hadoop.io.CompressedWritable -->
  14095. <class name="CompressedWritable" extends="java.lang.Object"
  14096. abstract="true"
  14097. static="false" final="false" visibility="public"
  14098. deprecated="not deprecated">
  14099. <implements name="org.apache.hadoop.io.Writable"/>
  14100. <constructor name="CompressedWritable"
  14101. static="false" final="false" visibility="public"
  14102. deprecated="not deprecated">
  14103. </constructor>
  14104. <method name="readFields"
  14105. abstract="false" native="false" synchronized="false"
  14106. static="false" final="true" visibility="public"
  14107. deprecated="not deprecated">
  14108. <param name="in" type="java.io.DataInput"/>
  14109. <exception name="IOException" type="java.io.IOException"/>
  14110. </method>
  14111. <method name="ensureInflated"
  14112. abstract="false" native="false" synchronized="false"
  14113. static="false" final="false" visibility="protected"
  14114. deprecated="not deprecated">
  14115. <doc>
  14116. <![CDATA[Must be called by all methods which access fields to ensure that the data
  14117. has been uncompressed.]]>
  14118. </doc>
  14119. </method>
  14120. <method name="readFieldsCompressed"
  14121. abstract="true" native="false" synchronized="false"
  14122. static="false" final="false" visibility="protected"
  14123. deprecated="not deprecated">
  14124. <param name="in" type="java.io.DataInput"/>
  14125. <exception name="IOException" type="java.io.IOException"/>
  14126. <doc>
  14127. <![CDATA[Subclasses implement this instead of {@link #readFields(DataInput)}.]]>
  14128. </doc>
  14129. </method>
  14130. <method name="write"
  14131. abstract="false" native="false" synchronized="false"
  14132. static="false" final="true" visibility="public"
  14133. deprecated="not deprecated">
  14134. <param name="out" type="java.io.DataOutput"/>
  14135. <exception name="IOException" type="java.io.IOException"/>
  14136. </method>
  14137. <method name="writeCompressed"
  14138. abstract="true" native="false" synchronized="false"
  14139. static="false" final="false" visibility="protected"
  14140. deprecated="not deprecated">
  14141. <param name="out" type="java.io.DataOutput"/>
  14142. <exception name="IOException" type="java.io.IOException"/>
  14143. <doc>
  14144. <![CDATA[Subclasses implement this instead of {@link #write(DataOutput)}.]]>
  14145. </doc>
  14146. </method>
  14147. <doc>
  14148. <![CDATA[A base-class for Writables which store themselves compressed and lazily
  14149. inflate on field access. This is useful for large objects whose fields are
  14150. not be altered during a map or reduce operation: leaving the field data
  14151. compressed makes copying the instance from one file to another much
  14152. faster.]]>
  14153. </doc>
  14154. </class>
  14155. <!-- end class org.apache.hadoop.io.CompressedWritable -->
  14156. <!-- start class org.apache.hadoop.io.DataInputBuffer -->
  14157. <class name="DataInputBuffer" extends="java.io.DataInputStream"
  14158. abstract="false"
  14159. static="false" final="false" visibility="public"
  14160. deprecated="not deprecated">
  14161. <constructor name="DataInputBuffer"
  14162. static="false" final="false" visibility="public"
  14163. deprecated="not deprecated">
  14164. <doc>
  14165. <![CDATA[Constructs a new empty buffer.]]>
  14166. </doc>
  14167. </constructor>
  14168. <method name="reset"
  14169. abstract="false" native="false" synchronized="false"
  14170. static="false" final="false" visibility="public"
  14171. deprecated="not deprecated">
  14172. <param name="input" type="byte[]"/>
  14173. <param name="length" type="int"/>
  14174. <doc>
  14175. <![CDATA[Resets the data that the buffer reads.]]>
  14176. </doc>
  14177. </method>
  14178. <method name="reset"
  14179. abstract="false" native="false" synchronized="false"
  14180. static="false" final="false" visibility="public"
  14181. deprecated="not deprecated">
  14182. <param name="input" type="byte[]"/>
  14183. <param name="start" type="int"/>
  14184. <param name="length" type="int"/>
  14185. <doc>
  14186. <![CDATA[Resets the data that the buffer reads.]]>
  14187. </doc>
  14188. </method>
  14189. <method name="getData" return="byte[]"
  14190. abstract="false" native="false" synchronized="false"
  14191. static="false" final="false" visibility="public"
  14192. deprecated="not deprecated">
  14193. </method>
  14194. <method name="getPosition" return="int"
  14195. abstract="false" native="false" synchronized="false"
  14196. static="false" final="false" visibility="public"
  14197. deprecated="not deprecated">
  14198. <doc>
  14199. <![CDATA[Returns the current position in the input.]]>
  14200. </doc>
  14201. </method>
  14202. <method name="getLength" return="int"
  14203. abstract="false" native="false" synchronized="false"
  14204. static="false" final="false" visibility="public"
  14205. deprecated="not deprecated">
  14206. <doc>
  14207. <![CDATA[Returns the length of the input.]]>
  14208. </doc>
  14209. </method>
  14210. <doc>
  14211. <![CDATA[A reusable {@link DataInput} implementation that reads from an in-memory
  14212. buffer.
  14213. <p>This saves memory over creating a new DataInputStream and
  14214. ByteArrayInputStream each time data is read.
  14215. <p>Typical usage is something like the following:<pre>
  14216. DataInputBuffer buffer = new DataInputBuffer();
  14217. while (... loop condition ...) {
  14218. byte[] data = ... get data ...;
  14219. int dataLength = ... get data length ...;
  14220. buffer.reset(data, dataLength);
  14221. ... read buffer using DataInput methods ...
  14222. }
  14223. </pre>]]>
  14224. </doc>
  14225. </class>
  14226. <!-- end class org.apache.hadoop.io.DataInputBuffer -->
  14227. <!-- start class org.apache.hadoop.io.DataOutputBuffer -->
  14228. <class name="DataOutputBuffer" extends="java.io.DataOutputStream"
  14229. abstract="false"
  14230. static="false" final="false" visibility="public"
  14231. deprecated="not deprecated">
  14232. <constructor name="DataOutputBuffer"
  14233. static="false" final="false" visibility="public"
  14234. deprecated="not deprecated">
  14235. <doc>
  14236. <![CDATA[Constructs a new empty buffer.]]>
  14237. </doc>
  14238. </constructor>
  14239. <constructor name="DataOutputBuffer" type="int"
  14240. static="false" final="false" visibility="public"
  14241. deprecated="not deprecated">
  14242. </constructor>
  14243. <method name="getData" return="byte[]"
  14244. abstract="false" native="false" synchronized="false"
  14245. static="false" final="false" visibility="public"
  14246. deprecated="not deprecated">
  14247. <doc>
  14248. <![CDATA[Returns the current contents of the buffer.
  14249. Data is only valid to {@link #getLength()}.]]>
  14250. </doc>
  14251. </method>
  14252. <method name="getLength" return="int"
  14253. abstract="false" native="false" synchronized="false"
  14254. static="false" final="false" visibility="public"
  14255. deprecated="not deprecated">
  14256. <doc>
  14257. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  14258. </doc>
  14259. </method>
  14260. <method name="reset" return="org.apache.hadoop.io.DataOutputBuffer"
  14261. abstract="false" native="false" synchronized="false"
  14262. static="false" final="false" visibility="public"
  14263. deprecated="not deprecated">
  14264. <doc>
  14265. <![CDATA[Resets the buffer to empty.]]>
  14266. </doc>
  14267. </method>
  14268. <method name="write"
  14269. abstract="false" native="false" synchronized="false"
  14270. static="false" final="false" visibility="public"
  14271. deprecated="not deprecated">
  14272. <param name="in" type="java.io.DataInput"/>
  14273. <param name="length" type="int"/>
  14274. <exception name="IOException" type="java.io.IOException"/>
  14275. <doc>
  14276. <![CDATA[Writes bytes from a DataInput directly into the buffer.]]>
  14277. </doc>
  14278. </method>
  14279. <doc>
  14280. <![CDATA[A reusable {@link DataOutput} implementation that writes to an in-memory
  14281. buffer.
  14282. <p>This saves memory over creating a new DataOutputStream and
  14283. ByteArrayOutputStream each time data is written.
  14284. <p>Typical usage is something like the following:<pre>
  14285. DataOutputBuffer buffer = new DataOutputBuffer();
  14286. while (... loop condition ...) {
  14287. buffer.reset();
  14288. ... write buffer using DataOutput methods ...
  14289. byte[] data = buffer.getData();
  14290. int dataLength = buffer.getLength();
  14291. ... write data to its ultimate destination ...
  14292. }
  14293. </pre>]]>
  14294. </doc>
  14295. </class>
  14296. <!-- end class org.apache.hadoop.io.DataOutputBuffer -->
  14297. <!-- start class org.apache.hadoop.io.DefaultStringifier -->
  14298. <class name="DefaultStringifier" extends="java.lang.Object"
  14299. abstract="false"
  14300. static="false" final="false" visibility="public"
  14301. deprecated="not deprecated">
  14302. <implements name="org.apache.hadoop.io.Stringifier&lt;T&gt;"/>
  14303. <constructor name="DefaultStringifier" type="org.apache.hadoop.conf.Configuration, java.lang.Class&lt;T&gt;"
  14304. static="false" final="false" visibility="public"
  14305. deprecated="not deprecated">
  14306. </constructor>
  14307. <method name="fromString" return="T"
  14308. abstract="false" native="false" synchronized="false"
  14309. static="false" final="false" visibility="public"
  14310. deprecated="not deprecated">
  14311. <param name="str" type="java.lang.String"/>
  14312. <exception name="IOException" type="java.io.IOException"/>
  14313. </method>
  14314. <method name="toString" return="java.lang.String"
  14315. abstract="false" native="false" synchronized="false"
  14316. static="false" final="false" visibility="public"
  14317. deprecated="not deprecated">
  14318. <param name="obj" type="T"/>
  14319. <exception name="IOException" type="java.io.IOException"/>
  14320. </method>
  14321. <method name="close"
  14322. abstract="false" native="false" synchronized="false"
  14323. static="false" final="false" visibility="public"
  14324. deprecated="not deprecated">
  14325. <exception name="IOException" type="java.io.IOException"/>
  14326. </method>
  14327. <method name="store"
  14328. abstract="false" native="false" synchronized="false"
  14329. static="true" final="false" visibility="public"
  14330. deprecated="not deprecated">
  14331. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14332. <param name="item" type="K"/>
  14333. <param name="keyName" type="java.lang.String"/>
  14334. <exception name="IOException" type="java.io.IOException"/>
  14335. <doc>
  14336. <![CDATA[Stores the item in the configuration with the given keyName.
  14337. @param <K> the class of the item
  14338. @param conf the configuration to store
  14339. @param item the object to be stored
  14340. @param keyName the name of the key to use
  14341. @throws IOException : forwards Exceptions from the underlying
  14342. {@link Serialization} classes.]]>
  14343. </doc>
  14344. </method>
  14345. <method name="load" return="K"
  14346. abstract="false" native="false" synchronized="false"
  14347. static="true" final="false" visibility="public"
  14348. deprecated="not deprecated">
  14349. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14350. <param name="keyName" type="java.lang.String"/>
  14351. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  14352. <exception name="IOException" type="java.io.IOException"/>
  14353. <doc>
  14354. <![CDATA[Restores the object from the configuration.
  14355. @param <K> the class of the item
  14356. @param conf the configuration to use
  14357. @param keyName the name of the key to use
  14358. @param itemClass the class of the item
  14359. @return restored object
  14360. @throws IOException : forwards Exceptions from the underlying
  14361. {@link Serialization} classes.]]>
  14362. </doc>
  14363. </method>
  14364. <method name="storeArray"
  14365. abstract="false" native="false" synchronized="false"
  14366. static="true" final="false" visibility="public"
  14367. deprecated="not deprecated">
  14368. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14369. <param name="items" type="K[]"/>
  14370. <param name="keyName" type="java.lang.String"/>
  14371. <exception name="IOException" type="java.io.IOException"/>
  14372. <doc>
  14373. <![CDATA[Stores the array of items in the configuration with the given keyName.
  14374. @param <K> the class of the item
  14375. @param conf the configuration to use
  14376. @param items the objects to be stored
  14377. @param keyName the name of the key to use
  14378. @throws IndexOutOfBoundsException if the items array is empty
  14379. @throws IOException : forwards Exceptions from the underlying
  14380. {@link Serialization} classes.]]>
  14381. </doc>
  14382. </method>
  14383. <method name="loadArray" return="K[]"
  14384. abstract="false" native="false" synchronized="false"
  14385. static="true" final="false" visibility="public"
  14386. deprecated="not deprecated">
  14387. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14388. <param name="keyName" type="java.lang.String"/>
  14389. <param name="itemClass" type="java.lang.Class&lt;K&gt;"/>
  14390. <exception name="IOException" type="java.io.IOException"/>
  14391. <doc>
  14392. <![CDATA[Restores the array of objects from the configuration.
  14393. @param <K> the class of the item
  14394. @param conf the configuration to use
  14395. @param keyName the name of the key to use
  14396. @param itemClass the class of the item
  14397. @return restored object
  14398. @throws IOException : forwards Exceptions from the underlying
  14399. {@link Serialization} classes.]]>
  14400. </doc>
  14401. </method>
  14402. <doc>
  14403. <![CDATA[DefaultStringifier is the default implementation of the {@link Stringifier}
  14404. interface which stringifies the objects using base64 encoding of the
  14405. serialized version of the objects. The {@link Serializer} and
  14406. {@link Deserializer} are obtained from the {@link SerializationFactory}.
  14407. <br>
  14408. DefaultStringifier offers convenience methods to store/load objects to/from
  14409. the configuration.
  14410. @param <T> the class of the objects to stringify]]>
  14411. </doc>
  14412. </class>
  14413. <!-- end class org.apache.hadoop.io.DefaultStringifier -->
  14414. <!-- start class org.apache.hadoop.io.DoubleWritable -->
  14415. <class name="DoubleWritable" extends="java.lang.Object"
  14416. abstract="false"
  14417. static="false" final="false" visibility="public"
  14418. deprecated="not deprecated">
  14419. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14420. <constructor name="DoubleWritable"
  14421. static="false" final="false" visibility="public"
  14422. deprecated="not deprecated">
  14423. </constructor>
  14424. <constructor name="DoubleWritable" type="double"
  14425. static="false" final="false" visibility="public"
  14426. deprecated="not deprecated">
  14427. </constructor>
  14428. <method name="readFields"
  14429. abstract="false" native="false" synchronized="false"
  14430. static="false" final="false" visibility="public"
  14431. deprecated="not deprecated">
  14432. <param name="in" type="java.io.DataInput"/>
  14433. <exception name="IOException" type="java.io.IOException"/>
  14434. </method>
  14435. <method name="write"
  14436. abstract="false" native="false" synchronized="false"
  14437. static="false" final="false" visibility="public"
  14438. deprecated="not deprecated">
  14439. <param name="out" type="java.io.DataOutput"/>
  14440. <exception name="IOException" type="java.io.IOException"/>
  14441. </method>
  14442. <method name="set"
  14443. abstract="false" native="false" synchronized="false"
  14444. static="false" final="false" visibility="public"
  14445. deprecated="not deprecated">
  14446. <param name="value" type="double"/>
  14447. </method>
  14448. <method name="get" return="double"
  14449. abstract="false" native="false" synchronized="false"
  14450. static="false" final="false" visibility="public"
  14451. deprecated="not deprecated">
  14452. </method>
  14453. <method name="equals" return="boolean"
  14454. abstract="false" native="false" synchronized="false"
  14455. static="false" final="false" visibility="public"
  14456. deprecated="not deprecated">
  14457. <param name="o" type="java.lang.Object"/>
  14458. <doc>
  14459. <![CDATA[Returns true iff <code>o</code> is a DoubleWritable with the same value.]]>
  14460. </doc>
  14461. </method>
  14462. <method name="hashCode" return="int"
  14463. abstract="false" native="false" synchronized="false"
  14464. static="false" final="false" visibility="public"
  14465. deprecated="not deprecated">
  14466. </method>
  14467. <method name="compareTo" return="int"
  14468. abstract="false" native="false" synchronized="false"
  14469. static="false" final="false" visibility="public"
  14470. deprecated="not deprecated">
  14471. <param name="o" type="java.lang.Object"/>
  14472. </method>
  14473. <method name="toString" return="java.lang.String"
  14474. abstract="false" native="false" synchronized="false"
  14475. static="false" final="false" visibility="public"
  14476. deprecated="not deprecated">
  14477. </method>
  14478. <doc>
  14479. <![CDATA[Writable for Double values.]]>
  14480. </doc>
  14481. </class>
  14482. <!-- end class org.apache.hadoop.io.DoubleWritable -->
  14483. <!-- start class org.apache.hadoop.io.DoubleWritable.Comparator -->
  14484. <class name="DoubleWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14485. abstract="false"
  14486. static="true" final="false" visibility="public"
  14487. deprecated="not deprecated">
  14488. <constructor name="DoubleWritable.Comparator"
  14489. static="false" final="false" visibility="public"
  14490. deprecated="not deprecated">
  14491. </constructor>
  14492. <method name="compare" return="int"
  14493. abstract="false" native="false" synchronized="false"
  14494. static="false" final="false" visibility="public"
  14495. deprecated="not deprecated">
  14496. <param name="b1" type="byte[]"/>
  14497. <param name="s1" type="int"/>
  14498. <param name="l1" type="int"/>
  14499. <param name="b2" type="byte[]"/>
  14500. <param name="s2" type="int"/>
  14501. <param name="l2" type="int"/>
  14502. </method>
  14503. <doc>
  14504. <![CDATA[A Comparator optimized for DoubleWritable.]]>
  14505. </doc>
  14506. </class>
  14507. <!-- end class org.apache.hadoop.io.DoubleWritable.Comparator -->
  14508. <!-- start class org.apache.hadoop.io.FloatWritable -->
  14509. <class name="FloatWritable" extends="java.lang.Object"
  14510. abstract="false"
  14511. static="false" final="false" visibility="public"
  14512. deprecated="not deprecated">
  14513. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14514. <constructor name="FloatWritable"
  14515. static="false" final="false" visibility="public"
  14516. deprecated="not deprecated">
  14517. </constructor>
  14518. <constructor name="FloatWritable" type="float"
  14519. static="false" final="false" visibility="public"
  14520. deprecated="not deprecated">
  14521. </constructor>
  14522. <method name="set"
  14523. abstract="false" native="false" synchronized="false"
  14524. static="false" final="false" visibility="public"
  14525. deprecated="not deprecated">
  14526. <param name="value" type="float"/>
  14527. <doc>
  14528. <![CDATA[Set the value of this FloatWritable.]]>
  14529. </doc>
  14530. </method>
  14531. <method name="get" return="float"
  14532. abstract="false" native="false" synchronized="false"
  14533. static="false" final="false" visibility="public"
  14534. deprecated="not deprecated">
  14535. <doc>
  14536. <![CDATA[Return the value of this FloatWritable.]]>
  14537. </doc>
  14538. </method>
  14539. <method name="readFields"
  14540. abstract="false" native="false" synchronized="false"
  14541. static="false" final="false" visibility="public"
  14542. deprecated="not deprecated">
  14543. <param name="in" type="java.io.DataInput"/>
  14544. <exception name="IOException" type="java.io.IOException"/>
  14545. </method>
  14546. <method name="write"
  14547. abstract="false" native="false" synchronized="false"
  14548. static="false" final="false" visibility="public"
  14549. deprecated="not deprecated">
  14550. <param name="out" type="java.io.DataOutput"/>
  14551. <exception name="IOException" type="java.io.IOException"/>
  14552. </method>
  14553. <method name="equals" return="boolean"
  14554. abstract="false" native="false" synchronized="false"
  14555. static="false" final="false" visibility="public"
  14556. deprecated="not deprecated">
  14557. <param name="o" type="java.lang.Object"/>
  14558. <doc>
  14559. <![CDATA[Returns true iff <code>o</code> is a FloatWritable with the same value.]]>
  14560. </doc>
  14561. </method>
  14562. <method name="hashCode" return="int"
  14563. abstract="false" native="false" synchronized="false"
  14564. static="false" final="false" visibility="public"
  14565. deprecated="not deprecated">
  14566. </method>
  14567. <method name="compareTo" return="int"
  14568. abstract="false" native="false" synchronized="false"
  14569. static="false" final="false" visibility="public"
  14570. deprecated="not deprecated">
  14571. <param name="o" type="java.lang.Object"/>
  14572. <doc>
  14573. <![CDATA[Compares two FloatWritables.]]>
  14574. </doc>
  14575. </method>
  14576. <method name="toString" return="java.lang.String"
  14577. abstract="false" native="false" synchronized="false"
  14578. static="false" final="false" visibility="public"
  14579. deprecated="not deprecated">
  14580. </method>
  14581. <doc>
  14582. <![CDATA[A WritableComparable for floats.]]>
  14583. </doc>
  14584. </class>
  14585. <!-- end class org.apache.hadoop.io.FloatWritable -->
  14586. <!-- start class org.apache.hadoop.io.FloatWritable.Comparator -->
  14587. <class name="FloatWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14588. abstract="false"
  14589. static="true" final="false" visibility="public"
  14590. deprecated="not deprecated">
  14591. <constructor name="FloatWritable.Comparator"
  14592. static="false" final="false" visibility="public"
  14593. deprecated="not deprecated">
  14594. </constructor>
  14595. <method name="compare" return="int"
  14596. abstract="false" native="false" synchronized="false"
  14597. static="false" final="false" visibility="public"
  14598. deprecated="not deprecated">
  14599. <param name="b1" type="byte[]"/>
  14600. <param name="s1" type="int"/>
  14601. <param name="l1" type="int"/>
  14602. <param name="b2" type="byte[]"/>
  14603. <param name="s2" type="int"/>
  14604. <param name="l2" type="int"/>
  14605. </method>
  14606. <doc>
  14607. <![CDATA[A Comparator optimized for FloatWritable.]]>
  14608. </doc>
  14609. </class>
  14610. <!-- end class org.apache.hadoop.io.FloatWritable.Comparator -->
  14611. <!-- start class org.apache.hadoop.io.GenericWritable -->
  14612. <class name="GenericWritable" extends="java.lang.Object"
  14613. abstract="true"
  14614. static="false" final="false" visibility="public"
  14615. deprecated="not deprecated">
  14616. <implements name="org.apache.hadoop.io.Writable"/>
  14617. <implements name="org.apache.hadoop.conf.Configurable"/>
  14618. <constructor name="GenericWritable"
  14619. static="false" final="false" visibility="public"
  14620. deprecated="not deprecated">
  14621. </constructor>
  14622. <method name="set"
  14623. abstract="false" native="false" synchronized="false"
  14624. static="false" final="false" visibility="public"
  14625. deprecated="not deprecated">
  14626. <param name="obj" type="org.apache.hadoop.io.Writable"/>
  14627. <doc>
  14628. <![CDATA[Set the instance that is wrapped.
  14629. @param obj]]>
  14630. </doc>
  14631. </method>
  14632. <method name="get" return="org.apache.hadoop.io.Writable"
  14633. abstract="false" native="false" synchronized="false"
  14634. static="false" final="false" visibility="public"
  14635. deprecated="not deprecated">
  14636. <doc>
  14637. <![CDATA[Return the wrapped instance.]]>
  14638. </doc>
  14639. </method>
  14640. <method name="toString" return="java.lang.String"
  14641. abstract="false" native="false" synchronized="false"
  14642. static="false" final="false" visibility="public"
  14643. deprecated="not deprecated">
  14644. </method>
  14645. <method name="readFields"
  14646. abstract="false" native="false" synchronized="false"
  14647. static="false" final="false" visibility="public"
  14648. deprecated="not deprecated">
  14649. <param name="in" type="java.io.DataInput"/>
  14650. <exception name="IOException" type="java.io.IOException"/>
  14651. </method>
  14652. <method name="write"
  14653. abstract="false" native="false" synchronized="false"
  14654. static="false" final="false" visibility="public"
  14655. deprecated="not deprecated">
  14656. <param name="out" type="java.io.DataOutput"/>
  14657. <exception name="IOException" type="java.io.IOException"/>
  14658. </method>
  14659. <method name="getTypes" return="java.lang.Class[]"
  14660. abstract="true" native="false" synchronized="false"
  14661. static="false" final="false" visibility="protected"
  14662. deprecated="not deprecated">
  14663. <doc>
  14664. <![CDATA[Return all classes that may be wrapped. Subclasses should implement this
  14665. to return a constant array of classes.]]>
  14666. </doc>
  14667. </method>
  14668. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  14669. abstract="false" native="false" synchronized="false"
  14670. static="false" final="false" visibility="public"
  14671. deprecated="not deprecated">
  14672. </method>
  14673. <method name="setConf"
  14674. abstract="false" native="false" synchronized="false"
  14675. static="false" final="false" visibility="public"
  14676. deprecated="not deprecated">
  14677. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14678. </method>
  14679. <doc>
  14680. <![CDATA[A wrapper for Writable instances.
  14681. <p>
  14682. When two sequence files, which have same Key type but different Value
  14683. types, are mapped out to reduce, multiple Value types is not allowed.
  14684. In this case, this class can help you wrap instances with different types.
  14685. </p>
  14686. <p>
  14687. Compared with <code>ObjectWritable</code>, this class is much more effective,
  14688. because <code>ObjectWritable</code> will append the class declaration as a String
  14689. into the output file in every Key-Value pair.
  14690. </p>
  14691. <p>
  14692. Generic Writable implements {@link Configurable} interface, so that it will be
  14693. configured by the framework. The configuration is passed to the wrapped objects
  14694. implementing {@link Configurable} interface <i>before deserialization</i>.
  14695. </p>
  14696. how to use it: <br>
  14697. 1. Write your own class, such as GenericObject, which extends GenericWritable.<br>
  14698. 2. Implements the abstract method <code>getTypes()</code>, defines
  14699. the classes which will be wrapped in GenericObject in application.
  14700. Attention: this classes defined in <code>getTypes()</code> method, must
  14701. implement <code>Writable</code> interface.
  14702. <br><br>
  14703. The code looks like this:
  14704. <blockquote><pre>
  14705. public class GenericObject extends GenericWritable {
  14706. private static Class[] CLASSES = {
  14707. ClassType1.class,
  14708. ClassType2.class,
  14709. ClassType3.class,
  14710. };
  14711. protected Class[] getTypes() {
  14712. return CLASSES;
  14713. }
  14714. }
  14715. </pre></blockquote>
  14716. @since Nov 8, 2006]]>
  14717. </doc>
  14718. </class>
  14719. <!-- end class org.apache.hadoop.io.GenericWritable -->
  14720. <!-- start class org.apache.hadoop.io.InputBuffer -->
  14721. <class name="InputBuffer" extends="java.io.FilterInputStream"
  14722. abstract="false"
  14723. static="false" final="false" visibility="public"
  14724. deprecated="not deprecated">
  14725. <constructor name="InputBuffer"
  14726. static="false" final="false" visibility="public"
  14727. deprecated="not deprecated">
  14728. <doc>
  14729. <![CDATA[Constructs a new empty buffer.]]>
  14730. </doc>
  14731. </constructor>
  14732. <method name="reset"
  14733. abstract="false" native="false" synchronized="false"
  14734. static="false" final="false" visibility="public"
  14735. deprecated="not deprecated">
  14736. <param name="input" type="byte[]"/>
  14737. <param name="length" type="int"/>
  14738. <doc>
  14739. <![CDATA[Resets the data that the buffer reads.]]>
  14740. </doc>
  14741. </method>
  14742. <method name="reset"
  14743. abstract="false" native="false" synchronized="false"
  14744. static="false" final="false" visibility="public"
  14745. deprecated="not deprecated">
  14746. <param name="input" type="byte[]"/>
  14747. <param name="start" type="int"/>
  14748. <param name="length" type="int"/>
  14749. <doc>
  14750. <![CDATA[Resets the data that the buffer reads.]]>
  14751. </doc>
  14752. </method>
  14753. <method name="getPosition" return="int"
  14754. abstract="false" native="false" synchronized="false"
  14755. static="false" final="false" visibility="public"
  14756. deprecated="not deprecated">
  14757. <doc>
  14758. <![CDATA[Returns the current position in the input.]]>
  14759. </doc>
  14760. </method>
  14761. <method name="getLength" return="int"
  14762. abstract="false" native="false" synchronized="false"
  14763. static="false" final="false" visibility="public"
  14764. deprecated="not deprecated">
  14765. <doc>
  14766. <![CDATA[Returns the length of the input.]]>
  14767. </doc>
  14768. </method>
  14769. <doc>
  14770. <![CDATA[A reusable {@link InputStream} implementation that reads from an in-memory
  14771. buffer.
  14772. <p>This saves memory over creating a new InputStream and
  14773. ByteArrayInputStream each time data is read.
  14774. <p>Typical usage is something like the following:<pre>
  14775. InputBuffer buffer = new InputBuffer();
  14776. while (... loop condition ...) {
  14777. byte[] data = ... get data ...;
  14778. int dataLength = ... get data length ...;
  14779. buffer.reset(data, dataLength);
  14780. ... read buffer using InputStream methods ...
  14781. }
  14782. </pre>
  14783. @see DataInputBuffer
  14784. @see DataOutput]]>
  14785. </doc>
  14786. </class>
  14787. <!-- end class org.apache.hadoop.io.InputBuffer -->
  14788. <!-- start class org.apache.hadoop.io.IntWritable -->
  14789. <class name="IntWritable" extends="java.lang.Object"
  14790. abstract="false"
  14791. static="false" final="false" visibility="public"
  14792. deprecated="not deprecated">
  14793. <implements name="org.apache.hadoop.io.WritableComparable"/>
  14794. <constructor name="IntWritable"
  14795. static="false" final="false" visibility="public"
  14796. deprecated="not deprecated">
  14797. </constructor>
  14798. <constructor name="IntWritable" type="int"
  14799. static="false" final="false" visibility="public"
  14800. deprecated="not deprecated">
  14801. </constructor>
  14802. <method name="set"
  14803. abstract="false" native="false" synchronized="false"
  14804. static="false" final="false" visibility="public"
  14805. deprecated="not deprecated">
  14806. <param name="value" type="int"/>
  14807. <doc>
  14808. <![CDATA[Set the value of this IntWritable.]]>
  14809. </doc>
  14810. </method>
  14811. <method name="get" return="int"
  14812. abstract="false" native="false" synchronized="false"
  14813. static="false" final="false" visibility="public"
  14814. deprecated="not deprecated">
  14815. <doc>
  14816. <![CDATA[Return the value of this IntWritable.]]>
  14817. </doc>
  14818. </method>
  14819. <method name="readFields"
  14820. abstract="false" native="false" synchronized="false"
  14821. static="false" final="false" visibility="public"
  14822. deprecated="not deprecated">
  14823. <param name="in" type="java.io.DataInput"/>
  14824. <exception name="IOException" type="java.io.IOException"/>
  14825. </method>
  14826. <method name="write"
  14827. abstract="false" native="false" synchronized="false"
  14828. static="false" final="false" visibility="public"
  14829. deprecated="not deprecated">
  14830. <param name="out" type="java.io.DataOutput"/>
  14831. <exception name="IOException" type="java.io.IOException"/>
  14832. </method>
  14833. <method name="equals" return="boolean"
  14834. abstract="false" native="false" synchronized="false"
  14835. static="false" final="false" visibility="public"
  14836. deprecated="not deprecated">
  14837. <param name="o" type="java.lang.Object"/>
  14838. <doc>
  14839. <![CDATA[Returns true iff <code>o</code> is a IntWritable with the same value.]]>
  14840. </doc>
  14841. </method>
  14842. <method name="hashCode" return="int"
  14843. abstract="false" native="false" synchronized="false"
  14844. static="false" final="false" visibility="public"
  14845. deprecated="not deprecated">
  14846. </method>
  14847. <method name="compareTo" return="int"
  14848. abstract="false" native="false" synchronized="false"
  14849. static="false" final="false" visibility="public"
  14850. deprecated="not deprecated">
  14851. <param name="o" type="java.lang.Object"/>
  14852. <doc>
  14853. <![CDATA[Compares two IntWritables.]]>
  14854. </doc>
  14855. </method>
  14856. <method name="toString" return="java.lang.String"
  14857. abstract="false" native="false" synchronized="false"
  14858. static="false" final="false" visibility="public"
  14859. deprecated="not deprecated">
  14860. </method>
  14861. <doc>
  14862. <![CDATA[A WritableComparable for ints.]]>
  14863. </doc>
  14864. </class>
  14865. <!-- end class org.apache.hadoop.io.IntWritable -->
  14866. <!-- start class org.apache.hadoop.io.IntWritable.Comparator -->
  14867. <class name="IntWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  14868. abstract="false"
  14869. static="true" final="false" visibility="public"
  14870. deprecated="not deprecated">
  14871. <constructor name="IntWritable.Comparator"
  14872. static="false" final="false" visibility="public"
  14873. deprecated="not deprecated">
  14874. </constructor>
  14875. <method name="compare" return="int"
  14876. abstract="false" native="false" synchronized="false"
  14877. static="false" final="false" visibility="public"
  14878. deprecated="not deprecated">
  14879. <param name="b1" type="byte[]"/>
  14880. <param name="s1" type="int"/>
  14881. <param name="l1" type="int"/>
  14882. <param name="b2" type="byte[]"/>
  14883. <param name="s2" type="int"/>
  14884. <param name="l2" type="int"/>
  14885. </method>
  14886. <doc>
  14887. <![CDATA[A Comparator optimized for IntWritable.]]>
  14888. </doc>
  14889. </class>
  14890. <!-- end class org.apache.hadoop.io.IntWritable.Comparator -->
  14891. <!-- start class org.apache.hadoop.io.IOUtils -->
  14892. <class name="IOUtils" extends="java.lang.Object"
  14893. abstract="false"
  14894. static="false" final="false" visibility="public"
  14895. deprecated="not deprecated">
  14896. <constructor name="IOUtils"
  14897. static="false" final="false" visibility="public"
  14898. deprecated="not deprecated">
  14899. </constructor>
  14900. <method name="copyBytes"
  14901. abstract="false" native="false" synchronized="false"
  14902. static="true" final="false" visibility="public"
  14903. deprecated="not deprecated">
  14904. <param name="in" type="java.io.InputStream"/>
  14905. <param name="out" type="java.io.OutputStream"/>
  14906. <param name="buffSize" type="int"/>
  14907. <param name="close" type="boolean"/>
  14908. <exception name="IOException" type="java.io.IOException"/>
  14909. <doc>
  14910. <![CDATA[Copies from one stream to another.
  14911. @param in InputStrem to read from
  14912. @param out OutputStream to write to
  14913. @param buffSize the size of the buffer
  14914. @param close whether or not close the InputStream and
  14915. OutputStream at the end. The streams are closed in the finally clause.]]>
  14916. </doc>
  14917. </method>
  14918. <method name="copyBytes"
  14919. abstract="false" native="false" synchronized="false"
  14920. static="true" final="false" visibility="public"
  14921. deprecated="not deprecated">
  14922. <param name="in" type="java.io.InputStream"/>
  14923. <param name="out" type="java.io.OutputStream"/>
  14924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14925. <exception name="IOException" type="java.io.IOException"/>
  14926. <doc>
  14927. <![CDATA[Copies from one stream to another. <strong>closes the input and output streams
  14928. at the end</strong>.
  14929. @param in InputStrem to read from
  14930. @param out OutputStream to write to
  14931. @param conf the Configuration object]]>
  14932. </doc>
  14933. </method>
  14934. <method name="copyBytes"
  14935. abstract="false" native="false" synchronized="false"
  14936. static="true" final="false" visibility="public"
  14937. deprecated="not deprecated">
  14938. <param name="in" type="java.io.InputStream"/>
  14939. <param name="out" type="java.io.OutputStream"/>
  14940. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  14941. <param name="close" type="boolean"/>
  14942. <exception name="IOException" type="java.io.IOException"/>
  14943. <doc>
  14944. <![CDATA[Copies from one stream to another.
  14945. @param in InputStrem to read from
  14946. @param out OutputStream to write to
  14947. @param conf the Configuration object
  14948. @param close whether or not close the InputStream and
  14949. OutputStream at the end. The streams are closed in the finally clause.]]>
  14950. </doc>
  14951. </method>
  14952. <method name="readFully"
  14953. abstract="false" native="false" synchronized="false"
  14954. static="true" final="false" visibility="public"
  14955. deprecated="not deprecated">
  14956. <param name="in" type="java.io.InputStream"/>
  14957. <param name="buf" type="byte[]"/>
  14958. <param name="off" type="int"/>
  14959. <param name="len" type="int"/>
  14960. <exception name="IOException" type="java.io.IOException"/>
  14961. <doc>
  14962. <![CDATA[Reads len bytes in a loop.
  14963. @param in The InputStream to read from
  14964. @param buf The buffer to fill
  14965. @param off offset from the buffer
  14966. @param len the length of bytes to read
  14967. @throws IOException if it could not read requested number of bytes
  14968. for any reason (including EOF)]]>
  14969. </doc>
  14970. </method>
  14971. <method name="skipFully"
  14972. abstract="false" native="false" synchronized="false"
  14973. static="true" final="false" visibility="public"
  14974. deprecated="not deprecated">
  14975. <param name="in" type="java.io.InputStream"/>
  14976. <param name="len" type="long"/>
  14977. <exception name="IOException" type="java.io.IOException"/>
  14978. <doc>
  14979. <![CDATA[Similar to readFully(). Skips bytes in a loop.
  14980. @param in The InputStream to skip bytes from
  14981. @param len number of bytes to skip.
  14982. @throws IOException if it could not skip requested number of bytes
  14983. for any reason (including EOF)]]>
  14984. </doc>
  14985. </method>
  14986. <method name="cleanup"
  14987. abstract="false" native="false" synchronized="false"
  14988. static="true" final="false" visibility="public"
  14989. deprecated="not deprecated">
  14990. <param name="log" type="org.apache.commons.logging.Log"/>
  14991. <param name="closeables" type="java.io.Closeable[]"/>
  14992. <doc>
  14993. <![CDATA[Close the Closeable objects and <b>ignore</b> any {@link IOException} or
  14994. null pointers. Must only be used for cleanup in exception handlers.
  14995. @param log the log to record problems to at debug level. Can be null.
  14996. @param closeables the objects to close]]>
  14997. </doc>
  14998. </method>
  14999. <method name="closeStream"
  15000. abstract="false" native="false" synchronized="false"
  15001. static="true" final="false" visibility="public"
  15002. deprecated="not deprecated">
  15003. <param name="stream" type="java.io.Closeable"/>
  15004. <doc>
  15005. <![CDATA[Closes the stream ignoring {@link IOException}.
  15006. Must only be called in cleaning up from exception handlers.
  15007. @param stream the Stream to close]]>
  15008. </doc>
  15009. </method>
  15010. <method name="closeSocket"
  15011. abstract="false" native="false" synchronized="false"
  15012. static="true" final="false" visibility="public"
  15013. deprecated="not deprecated">
  15014. <param name="sock" type="java.net.Socket"/>
  15015. <doc>
  15016. <![CDATA[Closes the socket ignoring {@link IOException}
  15017. @param sock the Socket to close]]>
  15018. </doc>
  15019. </method>
  15020. <doc>
  15021. <![CDATA[An utility class for I/O related functionality.]]>
  15022. </doc>
  15023. </class>
  15024. <!-- end class org.apache.hadoop.io.IOUtils -->
  15025. <!-- start class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  15026. <class name="IOUtils.NullOutputStream" extends="java.io.OutputStream"
  15027. abstract="false"
  15028. static="true" final="false" visibility="public"
  15029. deprecated="not deprecated">
  15030. <constructor name="IOUtils.NullOutputStream"
  15031. static="false" final="false" visibility="public"
  15032. deprecated="not deprecated">
  15033. </constructor>
  15034. <method name="write"
  15035. abstract="false" native="false" synchronized="false"
  15036. static="false" final="false" visibility="public"
  15037. deprecated="not deprecated">
  15038. <param name="b" type="byte[]"/>
  15039. <param name="off" type="int"/>
  15040. <param name="len" type="int"/>
  15041. <exception name="IOException" type="java.io.IOException"/>
  15042. </method>
  15043. <method name="write"
  15044. abstract="false" native="false" synchronized="false"
  15045. static="false" final="false" visibility="public"
  15046. deprecated="not deprecated">
  15047. <param name="b" type="int"/>
  15048. <exception name="IOException" type="java.io.IOException"/>
  15049. </method>
  15050. <doc>
  15051. <![CDATA[/dev/null of OutputStreams.]]>
  15052. </doc>
  15053. </class>
  15054. <!-- end class org.apache.hadoop.io.IOUtils.NullOutputStream -->
  15055. <!-- start class org.apache.hadoop.io.LongWritable -->
  15056. <class name="LongWritable" extends="java.lang.Object"
  15057. abstract="false"
  15058. static="false" final="false" visibility="public"
  15059. deprecated="not deprecated">
  15060. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15061. <constructor name="LongWritable"
  15062. static="false" final="false" visibility="public"
  15063. deprecated="not deprecated">
  15064. </constructor>
  15065. <constructor name="LongWritable" type="long"
  15066. static="false" final="false" visibility="public"
  15067. deprecated="not deprecated">
  15068. </constructor>
  15069. <method name="set"
  15070. abstract="false" native="false" synchronized="false"
  15071. static="false" final="false" visibility="public"
  15072. deprecated="not deprecated">
  15073. <param name="value" type="long"/>
  15074. <doc>
  15075. <![CDATA[Set the value of this LongWritable.]]>
  15076. </doc>
  15077. </method>
  15078. <method name="get" return="long"
  15079. abstract="false" native="false" synchronized="false"
  15080. static="false" final="false" visibility="public"
  15081. deprecated="not deprecated">
  15082. <doc>
  15083. <![CDATA[Return the value of this LongWritable.]]>
  15084. </doc>
  15085. </method>
  15086. <method name="readFields"
  15087. abstract="false" native="false" synchronized="false"
  15088. static="false" final="false" visibility="public"
  15089. deprecated="not deprecated">
  15090. <param name="in" type="java.io.DataInput"/>
  15091. <exception name="IOException" type="java.io.IOException"/>
  15092. </method>
  15093. <method name="write"
  15094. abstract="false" native="false" synchronized="false"
  15095. static="false" final="false" visibility="public"
  15096. deprecated="not deprecated">
  15097. <param name="out" type="java.io.DataOutput"/>
  15098. <exception name="IOException" type="java.io.IOException"/>
  15099. </method>
  15100. <method name="equals" return="boolean"
  15101. abstract="false" native="false" synchronized="false"
  15102. static="false" final="false" visibility="public"
  15103. deprecated="not deprecated">
  15104. <param name="o" type="java.lang.Object"/>
  15105. <doc>
  15106. <![CDATA[Returns true iff <code>o</code> is a LongWritable with the same value.]]>
  15107. </doc>
  15108. </method>
  15109. <method name="hashCode" return="int"
  15110. abstract="false" native="false" synchronized="false"
  15111. static="false" final="false" visibility="public"
  15112. deprecated="not deprecated">
  15113. </method>
  15114. <method name="compareTo" return="int"
  15115. abstract="false" native="false" synchronized="false"
  15116. static="false" final="false" visibility="public"
  15117. deprecated="not deprecated">
  15118. <param name="o" type="java.lang.Object"/>
  15119. <doc>
  15120. <![CDATA[Compares two LongWritables.]]>
  15121. </doc>
  15122. </method>
  15123. <method name="toString" return="java.lang.String"
  15124. abstract="false" native="false" synchronized="false"
  15125. static="false" final="false" visibility="public"
  15126. deprecated="not deprecated">
  15127. </method>
  15128. <doc>
  15129. <![CDATA[A WritableComparable for longs.]]>
  15130. </doc>
  15131. </class>
  15132. <!-- end class org.apache.hadoop.io.LongWritable -->
  15133. <!-- start class org.apache.hadoop.io.LongWritable.Comparator -->
  15134. <class name="LongWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15135. abstract="false"
  15136. static="true" final="false" visibility="public"
  15137. deprecated="not deprecated">
  15138. <constructor name="LongWritable.Comparator"
  15139. static="false" final="false" visibility="public"
  15140. deprecated="not deprecated">
  15141. </constructor>
  15142. <method name="compare" return="int"
  15143. abstract="false" native="false" synchronized="false"
  15144. static="false" final="false" visibility="public"
  15145. deprecated="not deprecated">
  15146. <param name="b1" type="byte[]"/>
  15147. <param name="s1" type="int"/>
  15148. <param name="l1" type="int"/>
  15149. <param name="b2" type="byte[]"/>
  15150. <param name="s2" type="int"/>
  15151. <param name="l2" type="int"/>
  15152. </method>
  15153. <doc>
  15154. <![CDATA[A Comparator optimized for LongWritable.]]>
  15155. </doc>
  15156. </class>
  15157. <!-- end class org.apache.hadoop.io.LongWritable.Comparator -->
  15158. <!-- start class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  15159. <class name="LongWritable.DecreasingComparator" extends="org.apache.hadoop.io.LongWritable.Comparator"
  15160. abstract="false"
  15161. static="true" final="false" visibility="public"
  15162. deprecated="not deprecated">
  15163. <constructor name="LongWritable.DecreasingComparator"
  15164. static="false" final="false" visibility="public"
  15165. deprecated="not deprecated">
  15166. </constructor>
  15167. <method name="compare" return="int"
  15168. abstract="false" native="false" synchronized="false"
  15169. static="false" final="false" visibility="public"
  15170. deprecated="not deprecated">
  15171. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  15172. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  15173. </method>
  15174. <method name="compare" return="int"
  15175. abstract="false" native="false" synchronized="false"
  15176. static="false" final="false" visibility="public"
  15177. deprecated="not deprecated">
  15178. <param name="b1" type="byte[]"/>
  15179. <param name="s1" type="int"/>
  15180. <param name="l1" type="int"/>
  15181. <param name="b2" type="byte[]"/>
  15182. <param name="s2" type="int"/>
  15183. <param name="l2" type="int"/>
  15184. </method>
  15185. <doc>
  15186. <![CDATA[A decreasing Comparator optimized for LongWritable.]]>
  15187. </doc>
  15188. </class>
  15189. <!-- end class org.apache.hadoop.io.LongWritable.DecreasingComparator -->
  15190. <!-- start class org.apache.hadoop.io.MapFile -->
  15191. <class name="MapFile" extends="java.lang.Object"
  15192. abstract="false"
  15193. static="false" final="false" visibility="public"
  15194. deprecated="not deprecated">
  15195. <constructor name="MapFile"
  15196. static="false" final="false" visibility="protected"
  15197. deprecated="not deprecated">
  15198. </constructor>
  15199. <method name="rename"
  15200. abstract="false" native="false" synchronized="false"
  15201. static="true" final="false" visibility="public"
  15202. deprecated="not deprecated">
  15203. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15204. <param name="oldName" type="java.lang.String"/>
  15205. <param name="newName" type="java.lang.String"/>
  15206. <exception name="IOException" type="java.io.IOException"/>
  15207. <doc>
  15208. <![CDATA[Renames an existing map directory.]]>
  15209. </doc>
  15210. </method>
  15211. <method name="delete"
  15212. abstract="false" native="false" synchronized="false"
  15213. static="true" final="false" visibility="public"
  15214. deprecated="not deprecated">
  15215. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15216. <param name="name" type="java.lang.String"/>
  15217. <exception name="IOException" type="java.io.IOException"/>
  15218. <doc>
  15219. <![CDATA[Deletes the named map file.]]>
  15220. </doc>
  15221. </method>
  15222. <method name="fix" return="long"
  15223. abstract="false" native="false" synchronized="false"
  15224. static="true" final="false" visibility="public"
  15225. deprecated="not deprecated">
  15226. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15227. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  15228. <param name="keyClass" type="java.lang.Class"/>
  15229. <param name="valueClass" type="java.lang.Class"/>
  15230. <param name="dryrun" type="boolean"/>
  15231. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15232. <exception name="Exception" type="java.lang.Exception"/>
  15233. <doc>
  15234. <![CDATA[This method attempts to fix a corrupt MapFile by re-creating its index.
  15235. @param fs filesystem
  15236. @param dir directory containing the MapFile data and index
  15237. @param keyClass key class (has to be a subclass of Writable)
  15238. @param valueClass value class (has to be a subclass of Writable)
  15239. @param dryrun do not perform any changes, just report what needs to be done
  15240. @return number of valid entries in this MapFile, or -1 if no fixing was needed
  15241. @throws Exception]]>
  15242. </doc>
  15243. </method>
  15244. <method name="main"
  15245. abstract="false" native="false" synchronized="false"
  15246. static="true" final="false" visibility="public"
  15247. deprecated="not deprecated">
  15248. <param name="args" type="java.lang.String[]"/>
  15249. <exception name="Exception" type="java.lang.Exception"/>
  15250. </method>
  15251. <field name="INDEX_FILE_NAME" type="java.lang.String"
  15252. transient="false" volatile="false"
  15253. static="true" final="true" visibility="public"
  15254. deprecated="not deprecated">
  15255. <doc>
  15256. <![CDATA[The name of the index file.]]>
  15257. </doc>
  15258. </field>
  15259. <field name="DATA_FILE_NAME" type="java.lang.String"
  15260. transient="false" volatile="false"
  15261. static="true" final="true" visibility="public"
  15262. deprecated="not deprecated">
  15263. <doc>
  15264. <![CDATA[The name of the data file.]]>
  15265. </doc>
  15266. </field>
  15267. <doc>
  15268. <![CDATA[A file-based map from keys to values.
  15269. <p>A map is a directory containing two files, the <code>data</code> file,
  15270. containing all keys and values in the map, and a smaller <code>index</code>
  15271. file, containing a fraction of the keys. The fraction is determined by
  15272. {@link Writer#getIndexInterval()}.
  15273. <p>The index file is read entirely into memory. Thus key implementations
  15274. should try to keep themselves small.
  15275. <p>Map files are created by adding entries in-order. To maintain a large
  15276. database, perform updates by copying the previous version of a database and
  15277. merging in a sorted change list, to create a new version of the database in
  15278. a new file. Sorting large change lists can be done with {@link
  15279. SequenceFile.Sorter}.]]>
  15280. </doc>
  15281. </class>
  15282. <!-- end class org.apache.hadoop.io.MapFile -->
  15283. <!-- start class org.apache.hadoop.io.MapFile.Reader -->
  15284. <class name="MapFile.Reader" extends="java.lang.Object"
  15285. abstract="false"
  15286. static="true" final="false" visibility="public"
  15287. deprecated="not deprecated">
  15288. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  15289. static="false" final="false" visibility="public"
  15290. deprecated="not deprecated">
  15291. <exception name="IOException" type="java.io.IOException"/>
  15292. <doc>
  15293. <![CDATA[Construct a map reader for the named map.]]>
  15294. </doc>
  15295. </constructor>
  15296. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  15297. static="false" final="false" visibility="public"
  15298. deprecated="not deprecated">
  15299. <exception name="IOException" type="java.io.IOException"/>
  15300. <doc>
  15301. <![CDATA[Construct a map reader for the named map using the named comparator.]]>
  15302. </doc>
  15303. </constructor>
  15304. <constructor name="MapFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration, boolean"
  15305. static="false" final="false" visibility="protected"
  15306. deprecated="not deprecated">
  15307. <exception name="IOException" type="java.io.IOException"/>
  15308. <doc>
  15309. <![CDATA[Hook to allow subclasses to defer opening streams until further
  15310. initialization is complete.
  15311. @see #createDataFileReader(FileSystem, Path, Configuration)]]>
  15312. </doc>
  15313. </constructor>
  15314. <method name="getKeyClass" return="java.lang.Class"
  15315. abstract="false" native="false" synchronized="false"
  15316. static="false" final="false" visibility="public"
  15317. deprecated="not deprecated">
  15318. <doc>
  15319. <![CDATA[Returns the class of keys in this file.]]>
  15320. </doc>
  15321. </method>
  15322. <method name="getValueClass" return="java.lang.Class"
  15323. abstract="false" native="false" synchronized="false"
  15324. static="false" final="false" visibility="public"
  15325. deprecated="not deprecated">
  15326. <doc>
  15327. <![CDATA[Returns the class of values in this file.]]>
  15328. </doc>
  15329. </method>
  15330. <method name="open"
  15331. abstract="false" native="false" synchronized="true"
  15332. static="false" final="false" visibility="protected"
  15333. deprecated="not deprecated">
  15334. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15335. <param name="dirName" type="java.lang.String"/>
  15336. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  15337. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15338. <exception name="IOException" type="java.io.IOException"/>
  15339. </method>
  15340. <method name="createDataFileReader" return="org.apache.hadoop.io.SequenceFile.Reader"
  15341. abstract="false" native="false" synchronized="false"
  15342. static="false" final="false" visibility="protected"
  15343. deprecated="not deprecated">
  15344. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  15345. <param name="dataFile" type="org.apache.hadoop.fs.Path"/>
  15346. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15347. <exception name="IOException" type="java.io.IOException"/>
  15348. <doc>
  15349. <![CDATA[Override this method to specialize the type of
  15350. {@link SequenceFile.Reader} returned.]]>
  15351. </doc>
  15352. </method>
  15353. <method name="reset"
  15354. abstract="false" native="false" synchronized="true"
  15355. static="false" final="false" visibility="public"
  15356. deprecated="not deprecated">
  15357. <exception name="IOException" type="java.io.IOException"/>
  15358. <doc>
  15359. <![CDATA[Re-positions the reader before its first key.]]>
  15360. </doc>
  15361. </method>
  15362. <method name="midKey" return="org.apache.hadoop.io.WritableComparable"
  15363. abstract="false" native="false" synchronized="true"
  15364. static="false" final="false" visibility="public"
  15365. deprecated="not deprecated">
  15366. <exception name="IOException" type="java.io.IOException"/>
  15367. <doc>
  15368. <![CDATA[Get the key at approximately the middle of the file.
  15369. @throws IOException]]>
  15370. </doc>
  15371. </method>
  15372. <method name="finalKey"
  15373. abstract="false" native="false" synchronized="true"
  15374. static="false" final="false" visibility="public"
  15375. deprecated="not deprecated">
  15376. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15377. <exception name="IOException" type="java.io.IOException"/>
  15378. <doc>
  15379. <![CDATA[Reads the final key from the file.
  15380. @param key key to read into]]>
  15381. </doc>
  15382. </method>
  15383. <method name="seek" return="boolean"
  15384. abstract="false" native="false" synchronized="true"
  15385. static="false" final="false" visibility="public"
  15386. deprecated="not deprecated">
  15387. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15388. <exception name="IOException" type="java.io.IOException"/>
  15389. <doc>
  15390. <![CDATA[Positions the reader at the named key, or if none such exists, at the
  15391. first entry after the named key. Returns true iff the named key exists
  15392. in this map.]]>
  15393. </doc>
  15394. </method>
  15395. <method name="next" return="boolean"
  15396. abstract="false" native="false" synchronized="true"
  15397. static="false" final="false" visibility="public"
  15398. deprecated="not deprecated">
  15399. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15400. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15401. <exception name="IOException" type="java.io.IOException"/>
  15402. <doc>
  15403. <![CDATA[Read the next key/value pair in the map into <code>key</code> and
  15404. <code>val</code>. Returns true if such a pair exists and false when at
  15405. the end of the map]]>
  15406. </doc>
  15407. </method>
  15408. <method name="get" return="org.apache.hadoop.io.Writable"
  15409. abstract="false" native="false" synchronized="true"
  15410. static="false" final="false" visibility="public"
  15411. deprecated="not deprecated">
  15412. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15413. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15414. <exception name="IOException" type="java.io.IOException"/>
  15415. <doc>
  15416. <![CDATA[Return the value for the named key, or null if none exists.]]>
  15417. </doc>
  15418. </method>
  15419. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  15420. abstract="false" native="false" synchronized="true"
  15421. static="false" final="false" visibility="public"
  15422. deprecated="not deprecated">
  15423. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15424. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15425. <exception name="IOException" type="java.io.IOException"/>
  15426. <doc>
  15427. <![CDATA[Finds the record that is the closest match to the specified key.
  15428. Returns <code>key</code> or if it does not exist, at the first entry
  15429. after the named key.
  15430. - * @param key - key that we're trying to find
  15431. - * @param val - data value if key is found
  15432. - * @return - the key that was the closest match or null if eof.]]>
  15433. </doc>
  15434. </method>
  15435. <method name="getClosest" return="org.apache.hadoop.io.WritableComparable"
  15436. abstract="false" native="false" synchronized="true"
  15437. static="false" final="false" visibility="public"
  15438. deprecated="not deprecated">
  15439. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15440. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15441. <param name="before" type="boolean"/>
  15442. <exception name="IOException" type="java.io.IOException"/>
  15443. <doc>
  15444. <![CDATA[Finds the record that is the closest match to the specified key.
  15445. @param key - key that we're trying to find
  15446. @param val - data value if key is found
  15447. @param before - IF true, and <code>key</code> does not exist, return
  15448. the first entry that falls just before the <code>key</code>. Otherwise,
  15449. return the record that sorts just after.
  15450. @return - the key that was the closest match or null if eof.]]>
  15451. </doc>
  15452. </method>
  15453. <method name="close"
  15454. abstract="false" native="false" synchronized="true"
  15455. static="false" final="false" visibility="public"
  15456. deprecated="not deprecated">
  15457. <exception name="IOException" type="java.io.IOException"/>
  15458. <doc>
  15459. <![CDATA[Close the map.]]>
  15460. </doc>
  15461. </method>
  15462. <doc>
  15463. <![CDATA[Provide access to an existing map.]]>
  15464. </doc>
  15465. </class>
  15466. <!-- end class org.apache.hadoop.io.MapFile.Reader -->
  15467. <!-- start class org.apache.hadoop.io.MapFile.Writer -->
  15468. <class name="MapFile.Writer" extends="java.lang.Object"
  15469. abstract="false"
  15470. static="true" final="false" visibility="public"
  15471. deprecated="not deprecated">
  15472. <constructor name="MapFile.Writer" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class, java.lang.Class"
  15473. static="false" final="false" visibility="public"
  15474. deprecated="not deprecated">
  15475. <exception name="IOException" type="java.io.IOException"/>
  15476. <doc>
  15477. <![CDATA[Create the named map for keys of the named class.]]>
  15478. </doc>
  15479. </constructor>
  15480. <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"
  15481. static="false" final="false" visibility="public"
  15482. deprecated="not deprecated">
  15483. <exception name="IOException" type="java.io.IOException"/>
  15484. <doc>
  15485. <![CDATA[Create the named map for keys of the named class.]]>
  15486. </doc>
  15487. </constructor>
  15488. <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"
  15489. static="false" final="false" visibility="public"
  15490. deprecated="not deprecated">
  15491. <exception name="IOException" type="java.io.IOException"/>
  15492. <doc>
  15493. <![CDATA[Create the named map for keys of the named class.]]>
  15494. </doc>
  15495. </constructor>
  15496. <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"
  15497. static="false" final="false" visibility="public"
  15498. deprecated="not deprecated">
  15499. <exception name="IOException" type="java.io.IOException"/>
  15500. <doc>
  15501. <![CDATA[Create the named map for keys of the named class.]]>
  15502. </doc>
  15503. </constructor>
  15504. <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"
  15505. static="false" final="false" visibility="public"
  15506. deprecated="not deprecated">
  15507. <exception name="IOException" type="java.io.IOException"/>
  15508. <doc>
  15509. <![CDATA[Create the named map using the named key comparator.]]>
  15510. </doc>
  15511. </constructor>
  15512. <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"
  15513. static="false" final="false" visibility="public"
  15514. deprecated="not deprecated">
  15515. <exception name="IOException" type="java.io.IOException"/>
  15516. <doc>
  15517. <![CDATA[Create the named map using the named key comparator.]]>
  15518. </doc>
  15519. </constructor>
  15520. <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"
  15521. static="false" final="false" visibility="public"
  15522. deprecated="not deprecated">
  15523. <exception name="IOException" type="java.io.IOException"/>
  15524. <doc>
  15525. <![CDATA[Create the named map using the named key comparator.]]>
  15526. </doc>
  15527. </constructor>
  15528. <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"
  15529. static="false" final="false" visibility="public"
  15530. deprecated="not deprecated">
  15531. <exception name="IOException" type="java.io.IOException"/>
  15532. <doc>
  15533. <![CDATA[Create the named map using the named key comparator.]]>
  15534. </doc>
  15535. </constructor>
  15536. <method name="getIndexInterval" return="int"
  15537. abstract="false" native="false" synchronized="false"
  15538. static="false" final="false" visibility="public"
  15539. deprecated="not deprecated">
  15540. <doc>
  15541. <![CDATA[The number of entries that are added before an index entry is added.]]>
  15542. </doc>
  15543. </method>
  15544. <method name="setIndexInterval"
  15545. abstract="false" native="false" synchronized="false"
  15546. static="false" final="false" visibility="public"
  15547. deprecated="not deprecated">
  15548. <param name="interval" type="int"/>
  15549. <doc>
  15550. <![CDATA[Sets the index interval.
  15551. @see #getIndexInterval()]]>
  15552. </doc>
  15553. </method>
  15554. <method name="setIndexInterval"
  15555. abstract="false" native="false" synchronized="false"
  15556. static="true" final="false" visibility="public"
  15557. deprecated="not deprecated">
  15558. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  15559. <param name="interval" type="int"/>
  15560. <doc>
  15561. <![CDATA[Sets the index interval and stores it in conf
  15562. @see #getIndexInterval()]]>
  15563. </doc>
  15564. </method>
  15565. <method name="close"
  15566. abstract="false" native="false" synchronized="true"
  15567. static="false" final="false" visibility="public"
  15568. deprecated="not deprecated">
  15569. <exception name="IOException" type="java.io.IOException"/>
  15570. <doc>
  15571. <![CDATA[Close the map.]]>
  15572. </doc>
  15573. </method>
  15574. <method name="append"
  15575. abstract="false" native="false" synchronized="true"
  15576. static="false" final="false" visibility="public"
  15577. deprecated="not deprecated">
  15578. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  15579. <param name="val" type="org.apache.hadoop.io.Writable"/>
  15580. <exception name="IOException" type="java.io.IOException"/>
  15581. <doc>
  15582. <![CDATA[Append a key/value pair to the map. The key must be greater or equal
  15583. to the previous key added to the map.]]>
  15584. </doc>
  15585. </method>
  15586. <doc>
  15587. <![CDATA[Writes a new map.]]>
  15588. </doc>
  15589. </class>
  15590. <!-- end class org.apache.hadoop.io.MapFile.Writer -->
  15591. <!-- start class org.apache.hadoop.io.MapWritable -->
  15592. <class name="MapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  15593. abstract="false"
  15594. static="false" final="false" visibility="public"
  15595. deprecated="not deprecated">
  15596. <implements name="java.util.Map&lt;org.apache.hadoop.io.Writable, org.apache.hadoop.io.Writable&gt;"/>
  15597. <constructor name="MapWritable"
  15598. static="false" final="false" visibility="public"
  15599. deprecated="not deprecated">
  15600. <doc>
  15601. <![CDATA[Default constructor.]]>
  15602. </doc>
  15603. </constructor>
  15604. <constructor name="MapWritable" type="org.apache.hadoop.io.MapWritable"
  15605. static="false" final="false" visibility="public"
  15606. deprecated="not deprecated">
  15607. <doc>
  15608. <![CDATA[Copy constructor.
  15609. @param other the map to copy from]]>
  15610. </doc>
  15611. </constructor>
  15612. <method name="clear"
  15613. abstract="false" native="false" synchronized="false"
  15614. static="false" final="false" visibility="public"
  15615. deprecated="not deprecated">
  15616. <doc>
  15617. <![CDATA[{@inheritDoc}]]>
  15618. </doc>
  15619. </method>
  15620. <method name="containsKey" return="boolean"
  15621. abstract="false" native="false" synchronized="false"
  15622. static="false" final="false" visibility="public"
  15623. deprecated="not deprecated">
  15624. <param name="key" type="java.lang.Object"/>
  15625. <doc>
  15626. <![CDATA[{@inheritDoc}]]>
  15627. </doc>
  15628. </method>
  15629. <method name="containsValue" return="boolean"
  15630. abstract="false" native="false" synchronized="false"
  15631. static="false" final="false" visibility="public"
  15632. deprecated="not deprecated">
  15633. <param name="value" type="java.lang.Object"/>
  15634. <doc>
  15635. <![CDATA[{@inheritDoc}]]>
  15636. </doc>
  15637. </method>
  15638. <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;"
  15639. abstract="false" native="false" synchronized="false"
  15640. static="false" final="false" visibility="public"
  15641. deprecated="not deprecated">
  15642. <doc>
  15643. <![CDATA[{@inheritDoc}]]>
  15644. </doc>
  15645. </method>
  15646. <method name="get" return="org.apache.hadoop.io.Writable"
  15647. abstract="false" native="false" synchronized="false"
  15648. static="false" final="false" visibility="public"
  15649. deprecated="not deprecated">
  15650. <param name="key" type="java.lang.Object"/>
  15651. <doc>
  15652. <![CDATA[{@inheritDoc}]]>
  15653. </doc>
  15654. </method>
  15655. <method name="isEmpty" return="boolean"
  15656. abstract="false" native="false" synchronized="false"
  15657. static="false" final="false" visibility="public"
  15658. deprecated="not deprecated">
  15659. <doc>
  15660. <![CDATA[{@inheritDoc}]]>
  15661. </doc>
  15662. </method>
  15663. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.Writable&gt;"
  15664. abstract="false" native="false" synchronized="false"
  15665. static="false" final="false" visibility="public"
  15666. deprecated="not deprecated">
  15667. <doc>
  15668. <![CDATA[{@inheritDoc}]]>
  15669. </doc>
  15670. </method>
  15671. <method name="put" return="org.apache.hadoop.io.Writable"
  15672. abstract="false" native="false" synchronized="false"
  15673. static="false" final="false" visibility="public"
  15674. deprecated="not deprecated">
  15675. <param name="key" type="org.apache.hadoop.io.Writable"/>
  15676. <param name="value" type="org.apache.hadoop.io.Writable"/>
  15677. <doc>
  15678. <![CDATA[{@inheritDoc}]]>
  15679. </doc>
  15680. </method>
  15681. <method name="putAll"
  15682. abstract="false" native="false" synchronized="false"
  15683. static="false" final="false" visibility="public"
  15684. deprecated="not deprecated">
  15685. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.Writable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  15686. <doc>
  15687. <![CDATA[{@inheritDoc}]]>
  15688. </doc>
  15689. </method>
  15690. <method name="remove" return="org.apache.hadoop.io.Writable"
  15691. abstract="false" native="false" synchronized="false"
  15692. static="false" final="false" visibility="public"
  15693. deprecated="not deprecated">
  15694. <param name="key" type="java.lang.Object"/>
  15695. <doc>
  15696. <![CDATA[{@inheritDoc}]]>
  15697. </doc>
  15698. </method>
  15699. <method name="size" return="int"
  15700. abstract="false" native="false" synchronized="false"
  15701. static="false" final="false" visibility="public"
  15702. deprecated="not deprecated">
  15703. <doc>
  15704. <![CDATA[{@inheritDoc}]]>
  15705. </doc>
  15706. </method>
  15707. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  15708. abstract="false" native="false" synchronized="false"
  15709. static="false" final="false" visibility="public"
  15710. deprecated="not deprecated">
  15711. <doc>
  15712. <![CDATA[{@inheritDoc}]]>
  15713. </doc>
  15714. </method>
  15715. <method name="write"
  15716. abstract="false" native="false" synchronized="false"
  15717. static="false" final="false" visibility="public"
  15718. deprecated="not deprecated">
  15719. <param name="out" type="java.io.DataOutput"/>
  15720. <exception name="IOException" type="java.io.IOException"/>
  15721. <doc>
  15722. <![CDATA[{@inheritDoc}]]>
  15723. </doc>
  15724. </method>
  15725. <method name="readFields"
  15726. abstract="false" native="false" synchronized="false"
  15727. static="false" final="false" visibility="public"
  15728. deprecated="not deprecated">
  15729. <param name="in" type="java.io.DataInput"/>
  15730. <exception name="IOException" type="java.io.IOException"/>
  15731. <doc>
  15732. <![CDATA[{@inheritDoc}]]>
  15733. </doc>
  15734. </method>
  15735. <doc>
  15736. <![CDATA[A Writable Map.]]>
  15737. </doc>
  15738. </class>
  15739. <!-- end class org.apache.hadoop.io.MapWritable -->
  15740. <!-- start class org.apache.hadoop.io.MD5Hash -->
  15741. <class name="MD5Hash" extends="java.lang.Object"
  15742. abstract="false"
  15743. static="false" final="false" visibility="public"
  15744. deprecated="not deprecated">
  15745. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15746. <constructor name="MD5Hash"
  15747. static="false" final="false" visibility="public"
  15748. deprecated="not deprecated">
  15749. <doc>
  15750. <![CDATA[Constructs an MD5Hash.]]>
  15751. </doc>
  15752. </constructor>
  15753. <constructor name="MD5Hash" type="java.lang.String"
  15754. static="false" final="false" visibility="public"
  15755. deprecated="not deprecated">
  15756. <doc>
  15757. <![CDATA[Constructs an MD5Hash from a hex string.]]>
  15758. </doc>
  15759. </constructor>
  15760. <constructor name="MD5Hash" type="byte[]"
  15761. static="false" final="false" visibility="public"
  15762. deprecated="not deprecated">
  15763. <doc>
  15764. <![CDATA[Constructs an MD5Hash with a specified value.]]>
  15765. </doc>
  15766. </constructor>
  15767. <method name="readFields"
  15768. abstract="false" native="false" synchronized="false"
  15769. static="false" final="false" visibility="public"
  15770. deprecated="not deprecated">
  15771. <param name="in" type="java.io.DataInput"/>
  15772. <exception name="IOException" type="java.io.IOException"/>
  15773. </method>
  15774. <method name="read" return="org.apache.hadoop.io.MD5Hash"
  15775. abstract="false" native="false" synchronized="false"
  15776. static="true" final="false" visibility="public"
  15777. deprecated="not deprecated">
  15778. <param name="in" type="java.io.DataInput"/>
  15779. <exception name="IOException" type="java.io.IOException"/>
  15780. <doc>
  15781. <![CDATA[Constructs, reads and returns an instance.]]>
  15782. </doc>
  15783. </method>
  15784. <method name="write"
  15785. abstract="false" native="false" synchronized="false"
  15786. static="false" final="false" visibility="public"
  15787. deprecated="not deprecated">
  15788. <param name="out" type="java.io.DataOutput"/>
  15789. <exception name="IOException" type="java.io.IOException"/>
  15790. </method>
  15791. <method name="set"
  15792. abstract="false" native="false" synchronized="false"
  15793. static="false" final="false" visibility="public"
  15794. deprecated="not deprecated">
  15795. <param name="that" type="org.apache.hadoop.io.MD5Hash"/>
  15796. <doc>
  15797. <![CDATA[Copy the contents of another instance into this instance.]]>
  15798. </doc>
  15799. </method>
  15800. <method name="getDigest" return="byte[]"
  15801. abstract="false" native="false" synchronized="false"
  15802. static="false" final="false" visibility="public"
  15803. deprecated="not deprecated">
  15804. <doc>
  15805. <![CDATA[Returns the digest bytes.]]>
  15806. </doc>
  15807. </method>
  15808. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  15809. abstract="false" native="false" synchronized="false"
  15810. static="true" final="false" visibility="public"
  15811. deprecated="not deprecated">
  15812. <param name="data" type="byte[]"/>
  15813. <doc>
  15814. <![CDATA[Construct a hash value for a byte array.]]>
  15815. </doc>
  15816. </method>
  15817. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  15818. abstract="false" native="false" synchronized="false"
  15819. static="true" final="false" visibility="public"
  15820. deprecated="not deprecated">
  15821. <param name="data" type="byte[]"/>
  15822. <param name="start" type="int"/>
  15823. <param name="len" type="int"/>
  15824. <doc>
  15825. <![CDATA[Construct a hash value for a byte array.]]>
  15826. </doc>
  15827. </method>
  15828. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  15829. abstract="false" native="false" synchronized="false"
  15830. static="true" final="false" visibility="public"
  15831. deprecated="not deprecated">
  15832. <param name="string" type="java.lang.String"/>
  15833. <doc>
  15834. <![CDATA[Construct a hash value for a String.]]>
  15835. </doc>
  15836. </method>
  15837. <method name="digest" return="org.apache.hadoop.io.MD5Hash"
  15838. abstract="false" native="false" synchronized="false"
  15839. static="true" final="false" visibility="public"
  15840. deprecated="not deprecated">
  15841. <param name="utf8" type="org.apache.hadoop.io.UTF8"/>
  15842. <doc>
  15843. <![CDATA[Construct a hash value for a String.]]>
  15844. </doc>
  15845. </method>
  15846. <method name="halfDigest" return="long"
  15847. abstract="false" native="false" synchronized="false"
  15848. static="false" final="false" visibility="public"
  15849. deprecated="not deprecated">
  15850. <doc>
  15851. <![CDATA[Construct a half-sized version of this MD5. Fits in a long]]>
  15852. </doc>
  15853. </method>
  15854. <method name="quarterDigest" return="int"
  15855. abstract="false" native="false" synchronized="false"
  15856. static="false" final="false" visibility="public"
  15857. deprecated="not deprecated">
  15858. <doc>
  15859. <![CDATA[Return a 32-bit digest of the MD5.
  15860. @return the first 4 bytes of the md5]]>
  15861. </doc>
  15862. </method>
  15863. <method name="equals" return="boolean"
  15864. abstract="false" native="false" synchronized="false"
  15865. static="false" final="false" visibility="public"
  15866. deprecated="not deprecated">
  15867. <param name="o" type="java.lang.Object"/>
  15868. <doc>
  15869. <![CDATA[Returns true iff <code>o</code> is an MD5Hash whose digest contains the
  15870. same values.]]>
  15871. </doc>
  15872. </method>
  15873. <method name="hashCode" return="int"
  15874. abstract="false" native="false" synchronized="false"
  15875. static="false" final="false" visibility="public"
  15876. deprecated="not deprecated">
  15877. <doc>
  15878. <![CDATA[Returns a hash code value for this object.
  15879. Only uses the first 4 bytes, since md5s are evenly distributed.]]>
  15880. </doc>
  15881. </method>
  15882. <method name="compareTo" return="int"
  15883. abstract="false" native="false" synchronized="false"
  15884. static="false" final="false" visibility="public"
  15885. deprecated="not deprecated">
  15886. <param name="o" type="java.lang.Object"/>
  15887. <doc>
  15888. <![CDATA[Compares this object with the specified object for order.]]>
  15889. </doc>
  15890. </method>
  15891. <method name="toString" return="java.lang.String"
  15892. abstract="false" native="false" synchronized="false"
  15893. static="false" final="false" visibility="public"
  15894. deprecated="not deprecated">
  15895. <doc>
  15896. <![CDATA[Returns a string representation of this object.]]>
  15897. </doc>
  15898. </method>
  15899. <method name="setDigest"
  15900. abstract="false" native="false" synchronized="false"
  15901. static="false" final="false" visibility="public"
  15902. deprecated="not deprecated">
  15903. <param name="hex" type="java.lang.String"/>
  15904. <doc>
  15905. <![CDATA[Sets the digest value from a hex string.]]>
  15906. </doc>
  15907. </method>
  15908. <field name="MD5_LEN" type="int"
  15909. transient="false" volatile="false"
  15910. static="true" final="true" visibility="public"
  15911. deprecated="not deprecated">
  15912. </field>
  15913. <doc>
  15914. <![CDATA[A Writable for MD5 hash values.]]>
  15915. </doc>
  15916. </class>
  15917. <!-- end class org.apache.hadoop.io.MD5Hash -->
  15918. <!-- start class org.apache.hadoop.io.MD5Hash.Comparator -->
  15919. <class name="MD5Hash.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  15920. abstract="false"
  15921. static="true" final="false" visibility="public"
  15922. deprecated="not deprecated">
  15923. <constructor name="MD5Hash.Comparator"
  15924. static="false" final="false" visibility="public"
  15925. deprecated="not deprecated">
  15926. </constructor>
  15927. <method name="compare" return="int"
  15928. abstract="false" native="false" synchronized="false"
  15929. static="false" final="false" visibility="public"
  15930. deprecated="not deprecated">
  15931. <param name="b1" type="byte[]"/>
  15932. <param name="s1" type="int"/>
  15933. <param name="l1" type="int"/>
  15934. <param name="b2" type="byte[]"/>
  15935. <param name="s2" type="int"/>
  15936. <param name="l2" type="int"/>
  15937. </method>
  15938. <doc>
  15939. <![CDATA[A WritableComparator optimized for MD5Hash keys.]]>
  15940. </doc>
  15941. </class>
  15942. <!-- end class org.apache.hadoop.io.MD5Hash.Comparator -->
  15943. <!-- start class org.apache.hadoop.io.MultipleIOException -->
  15944. <class name="MultipleIOException" extends="java.io.IOException"
  15945. abstract="false"
  15946. static="false" final="false" visibility="public"
  15947. deprecated="not deprecated">
  15948. <method name="getExceptions" return="java.util.List&lt;java.io.IOException&gt;"
  15949. abstract="false" native="false" synchronized="false"
  15950. static="false" final="false" visibility="public"
  15951. deprecated="not deprecated">
  15952. <doc>
  15953. <![CDATA[@return the underlying exceptions]]>
  15954. </doc>
  15955. </method>
  15956. <method name="createIOException" return="java.io.IOException"
  15957. abstract="false" native="false" synchronized="false"
  15958. static="true" final="false" visibility="public"
  15959. deprecated="not deprecated">
  15960. <param name="exceptions" type="java.util.List&lt;java.io.IOException&gt;"/>
  15961. <doc>
  15962. <![CDATA[A convenient method to create an {@link IOException}.]]>
  15963. </doc>
  15964. </method>
  15965. <doc>
  15966. <![CDATA[Encapsulate a list of {@link IOException} into an {@link IOException}]]>
  15967. </doc>
  15968. </class>
  15969. <!-- end class org.apache.hadoop.io.MultipleIOException -->
  15970. <!-- start class org.apache.hadoop.io.NullWritable -->
  15971. <class name="NullWritable" extends="java.lang.Object"
  15972. abstract="false"
  15973. static="false" final="false" visibility="public"
  15974. deprecated="not deprecated">
  15975. <implements name="org.apache.hadoop.io.WritableComparable"/>
  15976. <method name="get" return="org.apache.hadoop.io.NullWritable"
  15977. abstract="false" native="false" synchronized="false"
  15978. static="true" final="false" visibility="public"
  15979. deprecated="not deprecated">
  15980. <doc>
  15981. <![CDATA[Returns the single instance of this class.]]>
  15982. </doc>
  15983. </method>
  15984. <method name="toString" return="java.lang.String"
  15985. abstract="false" native="false" synchronized="false"
  15986. static="false" final="false" visibility="public"
  15987. deprecated="not deprecated">
  15988. </method>
  15989. <method name="hashCode" return="int"
  15990. abstract="false" native="false" synchronized="false"
  15991. static="false" final="false" visibility="public"
  15992. deprecated="not deprecated">
  15993. </method>
  15994. <method name="compareTo" return="int"
  15995. abstract="false" native="false" synchronized="false"
  15996. static="false" final="false" visibility="public"
  15997. deprecated="not deprecated">
  15998. <param name="other" type="java.lang.Object"/>
  15999. </method>
  16000. <method name="equals" return="boolean"
  16001. abstract="false" native="false" synchronized="false"
  16002. static="false" final="false" visibility="public"
  16003. deprecated="not deprecated">
  16004. <param name="other" type="java.lang.Object"/>
  16005. </method>
  16006. <method name="readFields"
  16007. abstract="false" native="false" synchronized="false"
  16008. static="false" final="false" visibility="public"
  16009. deprecated="not deprecated">
  16010. <param name="in" type="java.io.DataInput"/>
  16011. <exception name="IOException" type="java.io.IOException"/>
  16012. </method>
  16013. <method name="write"
  16014. abstract="false" native="false" synchronized="false"
  16015. static="false" final="false" visibility="public"
  16016. deprecated="not deprecated">
  16017. <param name="out" type="java.io.DataOutput"/>
  16018. <exception name="IOException" type="java.io.IOException"/>
  16019. </method>
  16020. <doc>
  16021. <![CDATA[Singleton Writable with no data.]]>
  16022. </doc>
  16023. </class>
  16024. <!-- end class org.apache.hadoop.io.NullWritable -->
  16025. <!-- start class org.apache.hadoop.io.NullWritable.Comparator -->
  16026. <class name="NullWritable.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  16027. abstract="false"
  16028. static="true" final="false" visibility="public"
  16029. deprecated="not deprecated">
  16030. <constructor name="NullWritable.Comparator"
  16031. static="false" final="false" visibility="public"
  16032. deprecated="not deprecated">
  16033. </constructor>
  16034. <method name="compare" return="int"
  16035. abstract="false" native="false" synchronized="false"
  16036. static="false" final="false" visibility="public"
  16037. deprecated="not deprecated">
  16038. <param name="b1" type="byte[]"/>
  16039. <param name="s1" type="int"/>
  16040. <param name="l1" type="int"/>
  16041. <param name="b2" type="byte[]"/>
  16042. <param name="s2" type="int"/>
  16043. <param name="l2" type="int"/>
  16044. <doc>
  16045. <![CDATA[Compare the buffers in serialized form.]]>
  16046. </doc>
  16047. </method>
  16048. <doc>
  16049. <![CDATA[A Comparator &quot;optimized&quot; for NullWritable.]]>
  16050. </doc>
  16051. </class>
  16052. <!-- end class org.apache.hadoop.io.NullWritable.Comparator -->
  16053. <!-- start class org.apache.hadoop.io.ObjectWritable -->
  16054. <class name="ObjectWritable" extends="java.lang.Object"
  16055. abstract="false"
  16056. static="false" final="false" visibility="public"
  16057. deprecated="not deprecated">
  16058. <implements name="org.apache.hadoop.io.Writable"/>
  16059. <implements name="org.apache.hadoop.conf.Configurable"/>
  16060. <constructor name="ObjectWritable"
  16061. static="false" final="false" visibility="public"
  16062. deprecated="not deprecated">
  16063. </constructor>
  16064. <constructor name="ObjectWritable" type="java.lang.Object"
  16065. static="false" final="false" visibility="public"
  16066. deprecated="not deprecated">
  16067. </constructor>
  16068. <constructor name="ObjectWritable" type="java.lang.Class, java.lang.Object"
  16069. static="false" final="false" visibility="public"
  16070. deprecated="not deprecated">
  16071. </constructor>
  16072. <method name="get" return="java.lang.Object"
  16073. abstract="false" native="false" synchronized="false"
  16074. static="false" final="false" visibility="public"
  16075. deprecated="not deprecated">
  16076. <doc>
  16077. <![CDATA[Return the instance, or null if none.]]>
  16078. </doc>
  16079. </method>
  16080. <method name="getDeclaredClass" return="java.lang.Class"
  16081. abstract="false" native="false" synchronized="false"
  16082. static="false" final="false" visibility="public"
  16083. deprecated="not deprecated">
  16084. <doc>
  16085. <![CDATA[Return the class this is meant to be.]]>
  16086. </doc>
  16087. </method>
  16088. <method name="set"
  16089. abstract="false" native="false" synchronized="false"
  16090. static="false" final="false" visibility="public"
  16091. deprecated="not deprecated">
  16092. <param name="instance" type="java.lang.Object"/>
  16093. <doc>
  16094. <![CDATA[Reset the instance.]]>
  16095. </doc>
  16096. </method>
  16097. <method name="toString" return="java.lang.String"
  16098. abstract="false" native="false" synchronized="false"
  16099. static="false" final="false" visibility="public"
  16100. deprecated="not deprecated">
  16101. </method>
  16102. <method name="readFields"
  16103. abstract="false" native="false" synchronized="false"
  16104. static="false" final="false" visibility="public"
  16105. deprecated="not deprecated">
  16106. <param name="in" type="java.io.DataInput"/>
  16107. <exception name="IOException" type="java.io.IOException"/>
  16108. </method>
  16109. <method name="write"
  16110. abstract="false" native="false" synchronized="false"
  16111. static="false" final="false" visibility="public"
  16112. deprecated="not deprecated">
  16113. <param name="out" type="java.io.DataOutput"/>
  16114. <exception name="IOException" type="java.io.IOException"/>
  16115. </method>
  16116. <method name="writeObject"
  16117. abstract="false" native="false" synchronized="false"
  16118. static="true" final="false" visibility="public"
  16119. deprecated="not deprecated">
  16120. <param name="out" type="java.io.DataOutput"/>
  16121. <param name="instance" type="java.lang.Object"/>
  16122. <param name="declaredClass" type="java.lang.Class"/>
  16123. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16124. <exception name="IOException" type="java.io.IOException"/>
  16125. <doc>
  16126. <![CDATA[Write a {@link Writable}, {@link String}, primitive type, or an array of
  16127. the preceding.]]>
  16128. </doc>
  16129. </method>
  16130. <method name="readObject" return="java.lang.Object"
  16131. abstract="false" native="false" synchronized="false"
  16132. static="true" final="false" visibility="public"
  16133. deprecated="not deprecated">
  16134. <param name="in" type="java.io.DataInput"/>
  16135. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16136. <exception name="IOException" type="java.io.IOException"/>
  16137. <doc>
  16138. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  16139. the preceding.]]>
  16140. </doc>
  16141. </method>
  16142. <method name="readObject" return="java.lang.Object"
  16143. abstract="false" native="false" synchronized="false"
  16144. static="true" final="false" visibility="public"
  16145. deprecated="not deprecated">
  16146. <param name="in" type="java.io.DataInput"/>
  16147. <param name="objectWritable" type="org.apache.hadoop.io.ObjectWritable"/>
  16148. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16149. <exception name="IOException" type="java.io.IOException"/>
  16150. <doc>
  16151. <![CDATA[Read a {@link Writable}, {@link String}, primitive type, or an array of
  16152. the preceding.]]>
  16153. </doc>
  16154. </method>
  16155. <method name="setConf"
  16156. abstract="false" native="false" synchronized="false"
  16157. static="false" final="false" visibility="public"
  16158. deprecated="not deprecated">
  16159. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16160. </method>
  16161. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  16162. abstract="false" native="false" synchronized="false"
  16163. static="false" final="false" visibility="public"
  16164. deprecated="not deprecated">
  16165. </method>
  16166. <doc>
  16167. <![CDATA[A polymorphic Writable that writes an instance with it's class name.
  16168. Handles arrays, strings and primitive types without a Writable wrapper.]]>
  16169. </doc>
  16170. </class>
  16171. <!-- end class org.apache.hadoop.io.ObjectWritable -->
  16172. <!-- start class org.apache.hadoop.io.OutputBuffer -->
  16173. <class name="OutputBuffer" extends="java.io.FilterOutputStream"
  16174. abstract="false"
  16175. static="false" final="false" visibility="public"
  16176. deprecated="not deprecated">
  16177. <constructor name="OutputBuffer"
  16178. static="false" final="false" visibility="public"
  16179. deprecated="not deprecated">
  16180. <doc>
  16181. <![CDATA[Constructs a new empty buffer.]]>
  16182. </doc>
  16183. </constructor>
  16184. <method name="getData" return="byte[]"
  16185. abstract="false" native="false" synchronized="false"
  16186. static="false" final="false" visibility="public"
  16187. deprecated="not deprecated">
  16188. <doc>
  16189. <![CDATA[Returns the current contents of the buffer.
  16190. Data is only valid to {@link #getLength()}.]]>
  16191. </doc>
  16192. </method>
  16193. <method name="getLength" return="int"
  16194. abstract="false" native="false" synchronized="false"
  16195. static="false" final="false" visibility="public"
  16196. deprecated="not deprecated">
  16197. <doc>
  16198. <![CDATA[Returns the length of the valid data currently in the buffer.]]>
  16199. </doc>
  16200. </method>
  16201. <method name="reset" return="org.apache.hadoop.io.OutputBuffer"
  16202. abstract="false" native="false" synchronized="false"
  16203. static="false" final="false" visibility="public"
  16204. deprecated="not deprecated">
  16205. <doc>
  16206. <![CDATA[Resets the buffer to empty.]]>
  16207. </doc>
  16208. </method>
  16209. <method name="write"
  16210. abstract="false" native="false" synchronized="false"
  16211. static="false" final="false" visibility="public"
  16212. deprecated="not deprecated">
  16213. <param name="in" type="java.io.InputStream"/>
  16214. <param name="length" type="int"/>
  16215. <exception name="IOException" type="java.io.IOException"/>
  16216. <doc>
  16217. <![CDATA[Writes bytes from a InputStream directly into the buffer.]]>
  16218. </doc>
  16219. </method>
  16220. <doc>
  16221. <![CDATA[A reusable {@link OutputStream} implementation that writes to an in-memory
  16222. buffer.
  16223. <p>This saves memory over creating a new OutputStream and
  16224. ByteArrayOutputStream each time data is written.
  16225. <p>Typical usage is something like the following:<pre>
  16226. OutputBuffer buffer = new OutputBuffer();
  16227. while (... loop condition ...) {
  16228. buffer.reset();
  16229. ... write buffer using OutputStream methods ...
  16230. byte[] data = buffer.getData();
  16231. int dataLength = buffer.getLength();
  16232. ... write data to its ultimate destination ...
  16233. }
  16234. </pre>
  16235. @see DataOutputBuffer
  16236. @see InputBuffer]]>
  16237. </doc>
  16238. </class>
  16239. <!-- end class org.apache.hadoop.io.OutputBuffer -->
  16240. <!-- start interface org.apache.hadoop.io.RawComparator -->
  16241. <interface name="RawComparator" abstract="true"
  16242. static="false" final="false" visibility="public"
  16243. deprecated="not deprecated">
  16244. <implements name="java.util.Comparator&lt;T&gt;"/>
  16245. <method name="compare" return="int"
  16246. abstract="false" native="false" synchronized="false"
  16247. static="false" final="false" visibility="public"
  16248. deprecated="not deprecated">
  16249. <param name="b1" type="byte[]"/>
  16250. <param name="s1" type="int"/>
  16251. <param name="l1" type="int"/>
  16252. <param name="b2" type="byte[]"/>
  16253. <param name="s2" type="int"/>
  16254. <param name="l2" type="int"/>
  16255. </method>
  16256. <doc>
  16257. <![CDATA[<p>
  16258. A {@link Comparator} that operates directly on byte representations of
  16259. objects.
  16260. </p>
  16261. @param <T>
  16262. @see DeserializerComparator]]>
  16263. </doc>
  16264. </interface>
  16265. <!-- end interface org.apache.hadoop.io.RawComparator -->
  16266. <!-- start class org.apache.hadoop.io.SequenceFile -->
  16267. <class name="SequenceFile" extends="java.lang.Object"
  16268. abstract="false"
  16269. static="false" final="false" visibility="public"
  16270. deprecated="not deprecated">
  16271. <method name="getCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  16272. abstract="false" native="false" synchronized="false"
  16273. static="true" final="false" visibility="public"
  16274. deprecated="Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  16275. to get {@link CompressionType} for intermediate map-outputs or
  16276. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  16277. to get {@link CompressionType} for job-outputs.">
  16278. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  16279. <doc>
  16280. <![CDATA[Get the compression type for the reduce outputs
  16281. @param job the job config to look in
  16282. @return the kind of compression to use
  16283. @deprecated Use {@link org.apache.hadoop.mapred.JobConf#getMapOutputCompressionType()}
  16284. to get {@link CompressionType} for intermediate map-outputs or
  16285. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#getOutputCompressionType(org.apache.hadoop.mapred.JobConf)}
  16286. to get {@link CompressionType} for job-outputs.]]>
  16287. </doc>
  16288. </method>
  16289. <method name="setCompressionType"
  16290. abstract="false" native="false" synchronized="false"
  16291. static="true" final="false" visibility="public"
  16292. deprecated="Use the one of the many SequenceFile.createWriter methods to specify
  16293. the {@link CompressionType} while creating the {@link SequenceFile} or
  16294. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  16295. to specify the {@link CompressionType} for intermediate map-outputs or
  16296. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  16297. to specify the {@link CompressionType} for job-outputs.
  16298. or">
  16299. <param name="job" type="org.apache.hadoop.conf.Configuration"/>
  16300. <param name="val" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16301. <doc>
  16302. <![CDATA[Set the compression type for sequence files.
  16303. @param job the configuration to modify
  16304. @param val the new compression type (none, block, record)
  16305. @deprecated Use the one of the many SequenceFile.createWriter methods to specify
  16306. the {@link CompressionType} while creating the {@link SequenceFile} or
  16307. {@link org.apache.hadoop.mapred.JobConf#setMapOutputCompressionType(org.apache.hadoop.io.SequenceFile.CompressionType)}
  16308. to specify the {@link CompressionType} for intermediate map-outputs or
  16309. {@link org.apache.hadoop.mapred.SequenceFileOutputFormat#setOutputCompressionType(org.apache.hadoop.mapred.JobConf, org.apache.hadoop.io.SequenceFile.CompressionType)}
  16310. to specify the {@link CompressionType} for job-outputs.
  16311. or]]>
  16312. </doc>
  16313. </method>
  16314. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16315. abstract="false" native="false" synchronized="false"
  16316. static="true" final="false" visibility="public"
  16317. deprecated="not deprecated">
  16318. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16319. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16320. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16321. <param name="keyClass" type="java.lang.Class"/>
  16322. <param name="valClass" type="java.lang.Class"/>
  16323. <exception name="IOException" type="java.io.IOException"/>
  16324. <doc>
  16325. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16326. @param fs The configured filesystem.
  16327. @param conf The configuration.
  16328. @param name The name of the file.
  16329. @param keyClass The 'key' type.
  16330. @param valClass The 'value' type.
  16331. @return Returns the handle to the constructed SequenceFile Writer.
  16332. @throws IOException]]>
  16333. </doc>
  16334. </method>
  16335. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16336. abstract="false" native="false" synchronized="false"
  16337. static="true" final="false" visibility="public"
  16338. deprecated="not deprecated">
  16339. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16340. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16341. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16342. <param name="keyClass" type="java.lang.Class"/>
  16343. <param name="valClass" type="java.lang.Class"/>
  16344. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16345. <exception name="IOException" type="java.io.IOException"/>
  16346. <doc>
  16347. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16348. @param fs The configured filesystem.
  16349. @param conf The configuration.
  16350. @param name The name of the file.
  16351. @param keyClass The 'key' type.
  16352. @param valClass The 'value' type.
  16353. @param compressionType The compression type.
  16354. @return Returns the handle to the constructed SequenceFile Writer.
  16355. @throws IOException]]>
  16356. </doc>
  16357. </method>
  16358. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16359. abstract="false" native="false" synchronized="false"
  16360. static="true" final="false" visibility="public"
  16361. deprecated="not deprecated">
  16362. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16363. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16364. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16365. <param name="keyClass" type="java.lang.Class"/>
  16366. <param name="valClass" type="java.lang.Class"/>
  16367. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16368. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16369. <exception name="IOException" type="java.io.IOException"/>
  16370. <doc>
  16371. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16372. @param fs The configured filesystem.
  16373. @param conf The configuration.
  16374. @param name The name of the file.
  16375. @param keyClass The 'key' type.
  16376. @param valClass The 'value' type.
  16377. @param compressionType The compression type.
  16378. @param progress The Progressable object to track progress.
  16379. @return Returns the handle to the constructed SequenceFile Writer.
  16380. @throws IOException]]>
  16381. </doc>
  16382. </method>
  16383. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16384. abstract="false" native="false" synchronized="false"
  16385. static="true" final="false" visibility="public"
  16386. deprecated="not deprecated">
  16387. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16388. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16389. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16390. <param name="keyClass" type="java.lang.Class"/>
  16391. <param name="valClass" type="java.lang.Class"/>
  16392. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16393. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16394. <exception name="IOException" type="java.io.IOException"/>
  16395. <doc>
  16396. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16397. @param fs The configured filesystem.
  16398. @param conf The configuration.
  16399. @param name The name of the file.
  16400. @param keyClass The 'key' type.
  16401. @param valClass The 'value' type.
  16402. @param compressionType The compression type.
  16403. @param codec The compression codec.
  16404. @return Returns the handle to the constructed SequenceFile Writer.
  16405. @throws IOException]]>
  16406. </doc>
  16407. </method>
  16408. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16409. abstract="false" native="false" synchronized="false"
  16410. static="true" final="false" visibility="public"
  16411. deprecated="not deprecated">
  16412. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16413. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16414. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16415. <param name="keyClass" type="java.lang.Class"/>
  16416. <param name="valClass" type="java.lang.Class"/>
  16417. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16418. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16419. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16420. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16421. <exception name="IOException" type="java.io.IOException"/>
  16422. <doc>
  16423. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16424. @param fs The configured filesystem.
  16425. @param conf The configuration.
  16426. @param name The name of the file.
  16427. @param keyClass The 'key' type.
  16428. @param valClass The 'value' type.
  16429. @param compressionType The compression type.
  16430. @param codec The compression codec.
  16431. @param progress The Progressable object to track progress.
  16432. @param metadata The metadata of the file.
  16433. @return Returns the handle to the constructed SequenceFile Writer.
  16434. @throws IOException]]>
  16435. </doc>
  16436. </method>
  16437. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16438. abstract="false" native="false" synchronized="false"
  16439. static="true" final="false" visibility="public"
  16440. deprecated="not deprecated">
  16441. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16442. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16443. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16444. <param name="keyClass" type="java.lang.Class"/>
  16445. <param name="valClass" type="java.lang.Class"/>
  16446. <param name="bufferSize" type="int"/>
  16447. <param name="replication" type="short"/>
  16448. <param name="blockSize" type="long"/>
  16449. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16450. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16451. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16452. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16453. <exception name="IOException" type="java.io.IOException"/>
  16454. <doc>
  16455. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16456. @param fs The configured filesystem.
  16457. @param conf The configuration.
  16458. @param name The name of the file.
  16459. @param keyClass The 'key' type.
  16460. @param valClass The 'value' type.
  16461. @param bufferSize buffer size for the underlaying outputstream.
  16462. @param replication replication factor for the file.
  16463. @param blockSize block size for the file.
  16464. @param compressionType The compression type.
  16465. @param codec The compression codec.
  16466. @param progress The Progressable object to track progress.
  16467. @param metadata The metadata of the file.
  16468. @return Returns the handle to the constructed SequenceFile Writer.
  16469. @throws IOException]]>
  16470. </doc>
  16471. </method>
  16472. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16473. abstract="false" native="false" synchronized="false"
  16474. static="true" final="false" visibility="public"
  16475. deprecated="not deprecated">
  16476. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16477. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16478. <param name="name" type="org.apache.hadoop.fs.Path"/>
  16479. <param name="keyClass" type="java.lang.Class"/>
  16480. <param name="valClass" type="java.lang.Class"/>
  16481. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16482. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16483. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  16484. <exception name="IOException" type="java.io.IOException"/>
  16485. <doc>
  16486. <![CDATA[Construct the preferred type of SequenceFile Writer.
  16487. @param fs The configured filesystem.
  16488. @param conf The configuration.
  16489. @param name The name of the file.
  16490. @param keyClass The 'key' type.
  16491. @param valClass The 'value' type.
  16492. @param compressionType The compression type.
  16493. @param codec The compression codec.
  16494. @param progress The Progressable object to track progress.
  16495. @return Returns the handle to the constructed SequenceFile Writer.
  16496. @throws IOException]]>
  16497. </doc>
  16498. </method>
  16499. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16500. abstract="false" native="false" synchronized="false"
  16501. static="true" final="false" visibility="public"
  16502. deprecated="not deprecated">
  16503. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16504. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  16505. <param name="keyClass" type="java.lang.Class"/>
  16506. <param name="valClass" type="java.lang.Class"/>
  16507. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16508. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16509. <param name="metadata" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16510. <exception name="IOException" type="java.io.IOException"/>
  16511. <doc>
  16512. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  16513. @param conf The configuration.
  16514. @param out The stream on top which the writer is to be constructed.
  16515. @param keyClass The 'key' type.
  16516. @param valClass The 'value' type.
  16517. @param compressionType The compression type.
  16518. @param codec The compression codec.
  16519. @param metadata The metadata of the file.
  16520. @return Returns the handle to the constructed SequenceFile Writer.
  16521. @throws IOException]]>
  16522. </doc>
  16523. </method>
  16524. <method name="createWriter" return="org.apache.hadoop.io.SequenceFile.Writer"
  16525. abstract="false" native="false" synchronized="false"
  16526. static="true" final="false" visibility="public"
  16527. deprecated="not deprecated">
  16528. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  16529. <param name="out" type="org.apache.hadoop.fs.FSDataOutputStream"/>
  16530. <param name="keyClass" type="java.lang.Class"/>
  16531. <param name="valClass" type="java.lang.Class"/>
  16532. <param name="compressionType" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  16533. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  16534. <exception name="IOException" type="java.io.IOException"/>
  16535. <doc>
  16536. <![CDATA[Construct the preferred type of 'raw' SequenceFile Writer.
  16537. @param conf The configuration.
  16538. @param out The stream on top which the writer is to be constructed.
  16539. @param keyClass The 'key' type.
  16540. @param valClass The 'value' type.
  16541. @param compressionType The compression type.
  16542. @param codec The compression codec.
  16543. @return Returns the handle to the constructed SequenceFile Writer.
  16544. @throws IOException]]>
  16545. </doc>
  16546. </method>
  16547. <field name="SYNC_INTERVAL" type="int"
  16548. transient="false" volatile="false"
  16549. static="true" final="true" visibility="public"
  16550. deprecated="not deprecated">
  16551. <doc>
  16552. <![CDATA[The number of bytes between sync points.]]>
  16553. </doc>
  16554. </field>
  16555. <doc>
  16556. <![CDATA[<code>SequenceFile</code>s are flat files consisting of binary key/value
  16557. pairs.
  16558. <p><code>SequenceFile</code> provides {@link Writer}, {@link Reader} and
  16559. {@link Sorter} classes for writing, reading and sorting respectively.</p>
  16560. There are three <code>SequenceFile</code> <code>Writer</code>s based on the
  16561. {@link CompressionType} used to compress key/value pairs:
  16562. <ol>
  16563. <li>
  16564. <code>Writer</code> : Uncompressed records.
  16565. </li>
  16566. <li>
  16567. <code>RecordCompressWriter</code> : Record-compressed files, only compress
  16568. values.
  16569. </li>
  16570. <li>
  16571. <code>BlockCompressWriter</code> : Block-compressed files, both keys &
  16572. values are collected in 'blocks'
  16573. separately and compressed. The size of
  16574. the 'block' is configurable.
  16575. </ol>
  16576. <p>The actual compression algorithm used to compress key and/or values can be
  16577. specified by using the appropriate {@link CompressionCodec}.</p>
  16578. <p>The recommended way is to use the static <tt>createWriter</tt> methods
  16579. provided by the <code>SequenceFile</code> to chose the preferred format.</p>
  16580. <p>The {@link Reader} acts as the bridge and can read any of the above
  16581. <code>SequenceFile</code> formats.</p>
  16582. <h4 id="Formats">SequenceFile Formats</h4>
  16583. <p>Essentially there are 3 different formats for <code>SequenceFile</code>s
  16584. depending on the <code>CompressionType</code> specified. All of them share a
  16585. <a href="#Header">common header</a> described below.
  16586. <h5 id="Header">SequenceFile Header</h5>
  16587. <ul>
  16588. <li>
  16589. version - 3 bytes of magic header <b>SEQ</b>, followed by 1 byte of actual
  16590. version number (e.g. SEQ4 or SEQ6)
  16591. </li>
  16592. <li>
  16593. keyClassName -key class
  16594. </li>
  16595. <li>
  16596. valueClassName - value class
  16597. </li>
  16598. <li>
  16599. compression - A boolean which specifies if compression is turned on for
  16600. keys/values in this file.
  16601. </li>
  16602. <li>
  16603. blockCompression - A boolean which specifies if block-compression is
  16604. turned on for keys/values in this file.
  16605. </li>
  16606. <li>
  16607. compression codec - <code>CompressionCodec</code> class which is used for
  16608. compression of keys and/or values (if compression is
  16609. enabled).
  16610. </li>
  16611. <li>
  16612. metadata - {@link Metadata} for this file.
  16613. </li>
  16614. <li>
  16615. sync - A sync marker to denote end of the header.
  16616. </li>
  16617. </ul>
  16618. <h5 id="#UncompressedFormat">Uncompressed SequenceFile Format</h5>
  16619. <ul>
  16620. <li>
  16621. <a href="#Header">Header</a>
  16622. </li>
  16623. <li>
  16624. Record
  16625. <ul>
  16626. <li>Record length</li>
  16627. <li>Key length</li>
  16628. <li>Key</li>
  16629. <li>Value</li>
  16630. </ul>
  16631. </li>
  16632. <li>
  16633. A sync-marker every few <code>100</code> bytes or so.
  16634. </li>
  16635. </ul>
  16636. <h5 id="#RecordCompressedFormat">Record-Compressed SequenceFile Format</h5>
  16637. <ul>
  16638. <li>
  16639. <a href="#Header">Header</a>
  16640. </li>
  16641. <li>
  16642. Record
  16643. <ul>
  16644. <li>Record length</li>
  16645. <li>Key length</li>
  16646. <li>Key</li>
  16647. <li><i>Compressed</i> Value</li>
  16648. </ul>
  16649. </li>
  16650. <li>
  16651. A sync-marker every few <code>100</code> bytes or so.
  16652. </li>
  16653. </ul>
  16654. <h5 id="#BlockCompressedFormat">Block-Compressed SequenceFile Format</h5>
  16655. <ul>
  16656. <li>
  16657. <a href="#Header">Header</a>
  16658. </li>
  16659. <li>
  16660. Record <i>Block</i>
  16661. <ul>
  16662. <li>Compressed key-lengths block-size</li>
  16663. <li>Compressed key-lengths block</li>
  16664. <li>Compressed keys block-size</li>
  16665. <li>Compressed keys block</li>
  16666. <li>Compressed value-lengths block-size</li>
  16667. <li>Compressed value-lengths block</li>
  16668. <li>Compressed values block-size</li>
  16669. <li>Compressed values block</li>
  16670. </ul>
  16671. </li>
  16672. <li>
  16673. A sync-marker every few <code>100</code> bytes or so.
  16674. </li>
  16675. </ul>
  16676. <p>The compressed blocks of key lengths and value lengths consist of the
  16677. actual lengths of individual keys/values encoded in ZeroCompressedInteger
  16678. format.</p>
  16679. @see CompressionCodec]]>
  16680. </doc>
  16681. </class>
  16682. <!-- end class org.apache.hadoop.io.SequenceFile -->
  16683. <!-- start class org.apache.hadoop.io.SequenceFile.CompressionType -->
  16684. <class name="SequenceFile.CompressionType" extends="java.lang.Enum&lt;org.apache.hadoop.io.SequenceFile.CompressionType&gt;"
  16685. abstract="false"
  16686. static="true" final="true" visibility="public"
  16687. deprecated="not deprecated">
  16688. <method name="values" return="org.apache.hadoop.io.SequenceFile.CompressionType[]"
  16689. abstract="false" native="false" synchronized="false"
  16690. static="true" final="false" visibility="public"
  16691. deprecated="not deprecated">
  16692. </method>
  16693. <method name="valueOf" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  16694. abstract="false" native="false" synchronized="false"
  16695. static="true" final="false" visibility="public"
  16696. deprecated="not deprecated">
  16697. <param name="name" type="java.lang.String"/>
  16698. </method>
  16699. <doc>
  16700. <![CDATA[The compression type used to compress key/value pairs in the
  16701. {@link SequenceFile}.
  16702. @see SequenceFile.Writer]]>
  16703. </doc>
  16704. </class>
  16705. <!-- end class org.apache.hadoop.io.SequenceFile.CompressionType -->
  16706. <!-- start class org.apache.hadoop.io.SequenceFile.Metadata -->
  16707. <class name="SequenceFile.Metadata" extends="java.lang.Object"
  16708. abstract="false"
  16709. static="true" final="false" visibility="public"
  16710. deprecated="not deprecated">
  16711. <implements name="org.apache.hadoop.io.Writable"/>
  16712. <constructor name="SequenceFile.Metadata"
  16713. static="false" final="false" visibility="public"
  16714. deprecated="not deprecated">
  16715. </constructor>
  16716. <constructor name="SequenceFile.Metadata" type="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  16717. static="false" final="false" visibility="public"
  16718. deprecated="not deprecated">
  16719. </constructor>
  16720. <method name="get" return="org.apache.hadoop.io.Text"
  16721. abstract="false" native="false" synchronized="false"
  16722. static="false" final="false" visibility="public"
  16723. deprecated="not deprecated">
  16724. <param name="name" type="org.apache.hadoop.io.Text"/>
  16725. </method>
  16726. <method name="set"
  16727. abstract="false" native="false" synchronized="false"
  16728. static="false" final="false" visibility="public"
  16729. deprecated="not deprecated">
  16730. <param name="name" type="org.apache.hadoop.io.Text"/>
  16731. <param name="value" type="org.apache.hadoop.io.Text"/>
  16732. </method>
  16733. <method name="getMetadata" return="java.util.TreeMap&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  16734. abstract="false" native="false" synchronized="false"
  16735. static="false" final="false" visibility="public"
  16736. deprecated="not deprecated">
  16737. </method>
  16738. <method name="write"
  16739. abstract="false" native="false" synchronized="false"
  16740. static="false" final="false" visibility="public"
  16741. deprecated="not deprecated">
  16742. <param name="out" type="java.io.DataOutput"/>
  16743. <exception name="IOException" type="java.io.IOException"/>
  16744. </method>
  16745. <method name="readFields"
  16746. abstract="false" native="false" synchronized="false"
  16747. static="false" final="false" visibility="public"
  16748. deprecated="not deprecated">
  16749. <param name="in" type="java.io.DataInput"/>
  16750. <exception name="IOException" type="java.io.IOException"/>
  16751. </method>
  16752. <method name="equals" return="boolean"
  16753. abstract="false" native="false" synchronized="false"
  16754. static="false" final="false" visibility="public"
  16755. deprecated="not deprecated">
  16756. <param name="other" type="org.apache.hadoop.io.SequenceFile.Metadata"/>
  16757. </method>
  16758. <method name="hashCode" return="int"
  16759. abstract="false" native="false" synchronized="false"
  16760. static="false" final="false" visibility="public"
  16761. deprecated="not deprecated">
  16762. </method>
  16763. <method name="toString" return="java.lang.String"
  16764. abstract="false" native="false" synchronized="false"
  16765. static="false" final="false" visibility="public"
  16766. deprecated="not deprecated">
  16767. </method>
  16768. <doc>
  16769. <![CDATA[The class encapsulating with the metadata of a file.
  16770. The metadata of a file is a list of attribute name/value
  16771. pairs of Text type.]]>
  16772. </doc>
  16773. </class>
  16774. <!-- end class org.apache.hadoop.io.SequenceFile.Metadata -->
  16775. <!-- start class org.apache.hadoop.io.SequenceFile.Reader -->
  16776. <class name="SequenceFile.Reader" extends="java.lang.Object"
  16777. abstract="false"
  16778. static="true" final="false" visibility="public"
  16779. deprecated="not deprecated">
  16780. <implements name="java.io.Closeable"/>
  16781. <constructor name="SequenceFile.Reader" type="org.apache.hadoop.fs.FileSystem, org.apache.hadoop.fs.Path, org.apache.hadoop.conf.Configuration"
  16782. static="false" final="false" visibility="public"
  16783. deprecated="not deprecated">
  16784. <exception name="IOException" type="java.io.IOException"/>
  16785. <doc>
  16786. <![CDATA[Open the named file.]]>
  16787. </doc>
  16788. </constructor>
  16789. <method name="openFile" return="org.apache.hadoop.fs.FSDataInputStream"
  16790. abstract="false" native="false" synchronized="false"
  16791. static="false" final="false" visibility="protected"
  16792. deprecated="not deprecated">
  16793. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  16794. <param name="file" type="org.apache.hadoop.fs.Path"/>
  16795. <param name="bufferSize" type="int"/>
  16796. <param name="length" type="long"/>
  16797. <exception name="IOException" type="java.io.IOException"/>
  16798. <doc>
  16799. <![CDATA[Override this method to specialize the type of
  16800. {@link FSDataInputStream} returned.]]>
  16801. </doc>
  16802. </method>
  16803. <method name="close"
  16804. abstract="false" native="false" synchronized="true"
  16805. static="false" final="false" visibility="public"
  16806. deprecated="not deprecated">
  16807. <exception name="IOException" type="java.io.IOException"/>
  16808. <doc>
  16809. <![CDATA[Close the file.]]>
  16810. </doc>
  16811. </method>
  16812. <method name="getKeyClassName" return="java.lang.String"
  16813. abstract="false" native="false" synchronized="false"
  16814. static="false" final="false" visibility="public"
  16815. deprecated="not deprecated">
  16816. <doc>
  16817. <![CDATA[Returns the name of the key class.]]>
  16818. </doc>
  16819. </method>
  16820. <method name="getKeyClass" return="java.lang.Class"
  16821. abstract="false" native="false" synchronized="true"
  16822. static="false" final="false" visibility="public"
  16823. deprecated="not deprecated">
  16824. <doc>
  16825. <![CDATA[Returns the class of keys in this file.]]>
  16826. </doc>
  16827. </method>
  16828. <method name="getValueClassName" return="java.lang.String"
  16829. abstract="false" native="false" synchronized="false"
  16830. static="false" final="false" visibility="public"
  16831. deprecated="not deprecated">
  16832. <doc>
  16833. <![CDATA[Returns the name of the value class.]]>
  16834. </doc>
  16835. </method>
  16836. <method name="getValueClass" return="java.lang.Class"
  16837. abstract="false" native="false" synchronized="true"
  16838. static="false" final="false" visibility="public"
  16839. deprecated="not deprecated">
  16840. <doc>
  16841. <![CDATA[Returns the class of values in this file.]]>
  16842. </doc>
  16843. </method>
  16844. <method name="isCompressed" return="boolean"
  16845. abstract="false" native="false" synchronized="false"
  16846. static="false" final="false" visibility="public"
  16847. deprecated="not deprecated">
  16848. <doc>
  16849. <![CDATA[Returns true if values are compressed.]]>
  16850. </doc>
  16851. </method>
  16852. <method name="isBlockCompressed" return="boolean"
  16853. abstract="false" native="false" synchronized="false"
  16854. static="false" final="false" visibility="public"
  16855. deprecated="not deprecated">
  16856. <doc>
  16857. <![CDATA[Returns true if records are block-compressed.]]>
  16858. </doc>
  16859. </method>
  16860. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  16861. abstract="false" native="false" synchronized="false"
  16862. static="false" final="false" visibility="public"
  16863. deprecated="not deprecated">
  16864. <doc>
  16865. <![CDATA[Returns the compression codec of data in this file.]]>
  16866. </doc>
  16867. </method>
  16868. <method name="getMetadata" return="org.apache.hadoop.io.SequenceFile.Metadata"
  16869. abstract="false" native="false" synchronized="false"
  16870. static="false" final="false" visibility="public"
  16871. deprecated="not deprecated">
  16872. <doc>
  16873. <![CDATA[Returns the metadata object of the file]]>
  16874. </doc>
  16875. </method>
  16876. <method name="getCurrentValue"
  16877. abstract="false" native="false" synchronized="true"
  16878. static="false" final="false" visibility="public"
  16879. deprecated="not deprecated">
  16880. <param name="val" type="org.apache.hadoop.io.Writable"/>
  16881. <exception name="IOException" type="java.io.IOException"/>
  16882. <doc>
  16883. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  16884. @param val : The 'value' to be read.
  16885. @throws IOException]]>
  16886. </doc>
  16887. </method>
  16888. <method name="getCurrentValue" return="java.lang.Object"
  16889. abstract="false" native="false" synchronized="true"
  16890. static="false" final="false" visibility="public"
  16891. deprecated="not deprecated">
  16892. <param name="val" type="java.lang.Object"/>
  16893. <exception name="IOException" type="java.io.IOException"/>
  16894. <doc>
  16895. <![CDATA[Get the 'value' corresponding to the last read 'key'.
  16896. @param val : The 'value' to be read.
  16897. @throws IOException]]>
  16898. </doc>
  16899. </method>
  16900. <method name="next" return="boolean"
  16901. abstract="false" native="false" synchronized="true"
  16902. static="false" final="false" visibility="public"
  16903. deprecated="not deprecated">
  16904. <param name="key" type="org.apache.hadoop.io.Writable"/>
  16905. <exception name="IOException" type="java.io.IOException"/>
  16906. <doc>
  16907. <![CDATA[Read the next key in the file into <code>key</code>, skipping its
  16908. value. True if another entry exists, and false at end of file.]]>
  16909. </doc>
  16910. </method>
  16911. <method name="next" return="boolean"
  16912. abstract="false" native="false" synchronized="true"
  16913. static="false" final="false" visibility="public"
  16914. deprecated="not deprecated">
  16915. <param name="key" type="org.apache.hadoop.io.Writable"/>
  16916. <param name="val" type="org.apache.hadoop.io.Writable"/>
  16917. <exception name="IOException" type="java.io.IOException"/>
  16918. <doc>
  16919. <![CDATA[Read the next key/value pair in the file into <code>key</code> and
  16920. <code>val</code>. Returns true if such a pair exists and false when at
  16921. end of file]]>
  16922. </doc>
  16923. </method>
  16924. <method name="next" return="int"
  16925. abstract="false" native="false" synchronized="true"
  16926. static="false" final="false" visibility="public"
  16927. deprecated="Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.">
  16928. <param name="buffer" type="org.apache.hadoop.io.DataOutputBuffer"/>
  16929. <exception name="IOException" type="java.io.IOException"/>
  16930. <doc>
  16931. <![CDATA[@deprecated Call {@link #nextRaw(DataOutputBuffer,SequenceFile.ValueBytes)}.]]>
  16932. </doc>
  16933. </method>
  16934. <method name="createValueBytes" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  16935. abstract="false" native="false" synchronized="false"
  16936. static="false" final="false" visibility="public"
  16937. deprecated="not deprecated">
  16938. </method>
  16939. <method name="nextRaw" return="int"
  16940. abstract="false" native="false" synchronized="true"
  16941. static="false" final="false" visibility="public"
  16942. deprecated="not deprecated">
  16943. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  16944. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  16945. <exception name="IOException" type="java.io.IOException"/>
  16946. <doc>
  16947. <![CDATA[Read 'raw' records.
  16948. @param key - The buffer into which the key is read
  16949. @param val - The 'raw' value
  16950. @return Returns the total record length or -1 for end of file
  16951. @throws IOException]]>
  16952. </doc>
  16953. </method>
  16954. <method name="nextRawKey" return="int"
  16955. abstract="false" native="false" synchronized="false"
  16956. static="false" final="false" visibility="public"
  16957. deprecated="not deprecated">
  16958. <param name="key" type="org.apache.hadoop.io.DataOutputBuffer"/>
  16959. <exception name="IOException" type="java.io.IOException"/>
  16960. <doc>
  16961. <![CDATA[Read 'raw' keys.
  16962. @param key - The buffer into which the key is read
  16963. @return Returns the key length or -1 for end of file
  16964. @throws IOException]]>
  16965. </doc>
  16966. </method>
  16967. <method name="next" return="java.lang.Object"
  16968. abstract="false" native="false" synchronized="true"
  16969. static="false" final="false" visibility="public"
  16970. deprecated="not deprecated">
  16971. <param name="key" type="java.lang.Object"/>
  16972. <exception name="IOException" type="java.io.IOException"/>
  16973. <doc>
  16974. <![CDATA[Read the next key in the file, skipping its
  16975. value. Return null at end of file.]]>
  16976. </doc>
  16977. </method>
  16978. <method name="nextRawValue" return="int"
  16979. abstract="false" native="false" synchronized="true"
  16980. static="false" final="false" visibility="public"
  16981. deprecated="not deprecated">
  16982. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  16983. <exception name="IOException" type="java.io.IOException"/>
  16984. <doc>
  16985. <![CDATA[Read 'raw' values.
  16986. @param val - The 'raw' value
  16987. @return Returns the value length
  16988. @throws IOException]]>
  16989. </doc>
  16990. </method>
  16991. <method name="seek"
  16992. abstract="false" native="false" synchronized="true"
  16993. static="false" final="false" visibility="public"
  16994. deprecated="not deprecated">
  16995. <param name="position" type="long"/>
  16996. <exception name="IOException" type="java.io.IOException"/>
  16997. <doc>
  16998. <![CDATA[Set the current byte position in the input file.
  16999. <p>The position passed must be a position returned by {@link
  17000. SequenceFile.Writer#getLength()} when writing this file. To seek to an arbitrary
  17001. position, use {@link SequenceFile.Reader#sync(long)}.]]>
  17002. </doc>
  17003. </method>
  17004. <method name="sync"
  17005. abstract="false" native="false" synchronized="true"
  17006. static="false" final="false" visibility="public"
  17007. deprecated="not deprecated">
  17008. <param name="position" type="long"/>
  17009. <exception name="IOException" type="java.io.IOException"/>
  17010. <doc>
  17011. <![CDATA[Seek to the next sync mark past a given position.]]>
  17012. </doc>
  17013. </method>
  17014. <method name="syncSeen" return="boolean"
  17015. abstract="false" native="false" synchronized="false"
  17016. static="false" final="false" visibility="public"
  17017. deprecated="not deprecated">
  17018. <doc>
  17019. <![CDATA[Returns true iff the previous call to next passed a sync mark.]]>
  17020. </doc>
  17021. </method>
  17022. <method name="getPosition" return="long"
  17023. abstract="false" native="false" synchronized="true"
  17024. static="false" final="false" visibility="public"
  17025. deprecated="not deprecated">
  17026. <exception name="IOException" type="java.io.IOException"/>
  17027. <doc>
  17028. <![CDATA[Return the current byte position in the input file.]]>
  17029. </doc>
  17030. </method>
  17031. <method name="toString" return="java.lang.String"
  17032. abstract="false" native="false" synchronized="false"
  17033. static="false" final="false" visibility="public"
  17034. deprecated="not deprecated">
  17035. <doc>
  17036. <![CDATA[Returns the name of the file.]]>
  17037. </doc>
  17038. </method>
  17039. <doc>
  17040. <![CDATA[Reads key/value pairs from a sequence-format file.]]>
  17041. </doc>
  17042. </class>
  17043. <!-- end class org.apache.hadoop.io.SequenceFile.Reader -->
  17044. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter -->
  17045. <class name="SequenceFile.Sorter" extends="java.lang.Object"
  17046. abstract="false"
  17047. static="true" final="false" visibility="public"
  17048. deprecated="not deprecated">
  17049. <constructor name="SequenceFile.Sorter" type="org.apache.hadoop.fs.FileSystem, java.lang.Class, java.lang.Class, org.apache.hadoop.conf.Configuration"
  17050. static="false" final="false" visibility="public"
  17051. deprecated="not deprecated">
  17052. <doc>
  17053. <![CDATA[Sort and merge files containing the named classes.]]>
  17054. </doc>
  17055. </constructor>
  17056. <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"
  17057. static="false" final="false" visibility="public"
  17058. deprecated="not deprecated">
  17059. <doc>
  17060. <![CDATA[Sort and merge using an arbitrary {@link RawComparator}.]]>
  17061. </doc>
  17062. </constructor>
  17063. <method name="setFactor"
  17064. abstract="false" native="false" synchronized="false"
  17065. static="false" final="false" visibility="public"
  17066. deprecated="not deprecated">
  17067. <param name="factor" type="int"/>
  17068. <doc>
  17069. <![CDATA[Set the number of streams to merge at once.]]>
  17070. </doc>
  17071. </method>
  17072. <method name="getFactor" return="int"
  17073. abstract="false" native="false" synchronized="false"
  17074. static="false" final="false" visibility="public"
  17075. deprecated="not deprecated">
  17076. <doc>
  17077. <![CDATA[Get the number of streams to merge at once.]]>
  17078. </doc>
  17079. </method>
  17080. <method name="setMemory"
  17081. abstract="false" native="false" synchronized="false"
  17082. static="false" final="false" visibility="public"
  17083. deprecated="not deprecated">
  17084. <param name="memory" type="int"/>
  17085. <doc>
  17086. <![CDATA[Set the total amount of buffer memory, in bytes.]]>
  17087. </doc>
  17088. </method>
  17089. <method name="getMemory" return="int"
  17090. abstract="false" native="false" synchronized="false"
  17091. static="false" final="false" visibility="public"
  17092. deprecated="not deprecated">
  17093. <doc>
  17094. <![CDATA[Get the total amount of buffer memory, in bytes.]]>
  17095. </doc>
  17096. </method>
  17097. <method name="setProgressable"
  17098. abstract="false" native="false" synchronized="false"
  17099. static="false" final="false" visibility="public"
  17100. deprecated="not deprecated">
  17101. <param name="progressable" type="org.apache.hadoop.util.Progressable"/>
  17102. <doc>
  17103. <![CDATA[Set the progressable object in order to report progress.]]>
  17104. </doc>
  17105. </method>
  17106. <method name="sort"
  17107. abstract="false" native="false" synchronized="false"
  17108. static="false" final="false" visibility="public"
  17109. deprecated="not deprecated">
  17110. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  17111. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  17112. <param name="deleteInput" type="boolean"/>
  17113. <exception name="IOException" type="java.io.IOException"/>
  17114. <doc>
  17115. <![CDATA[Perform a file sort from a set of input files into an output file.
  17116. @param inFiles the files to be sorted
  17117. @param outFile the sorted output file
  17118. @param deleteInput should the input files be deleted as they are read?]]>
  17119. </doc>
  17120. </method>
  17121. <method name="sortAndIterate" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  17122. abstract="false" native="false" synchronized="false"
  17123. static="false" final="false" visibility="public"
  17124. deprecated="not deprecated">
  17125. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  17126. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  17127. <param name="deleteInput" type="boolean"/>
  17128. <exception name="IOException" type="java.io.IOException"/>
  17129. <doc>
  17130. <![CDATA[Perform a file sort from a set of input files and return an iterator.
  17131. @param inFiles the files to be sorted
  17132. @param tempDir the directory where temp files are created during sort
  17133. @param deleteInput should the input files be deleted as they are read?
  17134. @return iterator the RawKeyValueIterator]]>
  17135. </doc>
  17136. </method>
  17137. <method name="sort"
  17138. abstract="false" native="false" synchronized="false"
  17139. static="false" final="false" visibility="public"
  17140. deprecated="not deprecated">
  17141. <param name="inFile" type="org.apache.hadoop.fs.Path"/>
  17142. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  17143. <exception name="IOException" type="java.io.IOException"/>
  17144. <doc>
  17145. <![CDATA[The backwards compatible interface to sort.
  17146. @param inFile the input file to sort
  17147. @param outFile the sorted output file]]>
  17148. </doc>
  17149. </method>
  17150. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  17151. abstract="false" native="false" synchronized="false"
  17152. static="false" final="false" visibility="public"
  17153. deprecated="not deprecated">
  17154. <param name="segments" type="java.util.List&lt;org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor&gt;"/>
  17155. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  17156. <exception name="IOException" type="java.io.IOException"/>
  17157. <doc>
  17158. <![CDATA[Merges the list of segments of type <code>SegmentDescriptor</code>
  17159. @param segments the list of SegmentDescriptors
  17160. @param tmpDir the directory to write temporary files into
  17161. @return RawKeyValueIterator
  17162. @throws IOException]]>
  17163. </doc>
  17164. </method>
  17165. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  17166. abstract="false" native="false" synchronized="false"
  17167. static="false" final="false" visibility="public"
  17168. deprecated="not deprecated">
  17169. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  17170. <param name="deleteInputs" type="boolean"/>
  17171. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  17172. <exception name="IOException" type="java.io.IOException"/>
  17173. <doc>
  17174. <![CDATA[Merges the contents of files passed in Path[] using a max factor value
  17175. that is already set
  17176. @param inNames the array of path names
  17177. @param deleteInputs true if the input files should be deleted when
  17178. unnecessary
  17179. @param tmpDir the directory to write temporary files into
  17180. @return RawKeyValueIteratorMergeQueue
  17181. @throws IOException]]>
  17182. </doc>
  17183. </method>
  17184. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  17185. abstract="false" native="false" synchronized="false"
  17186. static="false" final="false" visibility="public"
  17187. deprecated="not deprecated">
  17188. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  17189. <param name="deleteInputs" type="boolean"/>
  17190. <param name="factor" type="int"/>
  17191. <param name="tmpDir" type="org.apache.hadoop.fs.Path"/>
  17192. <exception name="IOException" type="java.io.IOException"/>
  17193. <doc>
  17194. <![CDATA[Merges the contents of files passed in Path[]
  17195. @param inNames the array of path names
  17196. @param deleteInputs true if the input files should be deleted when
  17197. unnecessary
  17198. @param factor the factor that will be used as the maximum merge fan-in
  17199. @param tmpDir the directory to write temporary files into
  17200. @return RawKeyValueIteratorMergeQueue
  17201. @throws IOException]]>
  17202. </doc>
  17203. </method>
  17204. <method name="merge" return="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"
  17205. abstract="false" native="false" synchronized="false"
  17206. static="false" final="false" visibility="public"
  17207. deprecated="not deprecated">
  17208. <param name="inNames" type="org.apache.hadoop.fs.Path[]"/>
  17209. <param name="tempDir" type="org.apache.hadoop.fs.Path"/>
  17210. <param name="deleteInputs" type="boolean"/>
  17211. <exception name="IOException" type="java.io.IOException"/>
  17212. <doc>
  17213. <![CDATA[Merges the contents of files passed in Path[]
  17214. @param inNames the array of path names
  17215. @param tempDir the directory for creating temp files during merge
  17216. @param deleteInputs true if the input files should be deleted when
  17217. unnecessary
  17218. @return RawKeyValueIteratorMergeQueue
  17219. @throws IOException]]>
  17220. </doc>
  17221. </method>
  17222. <method name="cloneFileAttributes" return="org.apache.hadoop.io.SequenceFile.Writer"
  17223. abstract="false" native="false" synchronized="false"
  17224. static="false" final="false" visibility="public"
  17225. deprecated="not deprecated">
  17226. <param name="inputFile" type="org.apache.hadoop.fs.Path"/>
  17227. <param name="outputFile" type="org.apache.hadoop.fs.Path"/>
  17228. <param name="prog" type="org.apache.hadoop.util.Progressable"/>
  17229. <exception name="IOException" type="java.io.IOException"/>
  17230. <doc>
  17231. <![CDATA[Clones the attributes (like compression of the input file and creates a
  17232. corresponding Writer
  17233. @param inputFile the path of the input file whose attributes should be
  17234. cloned
  17235. @param outputFile the path of the output file
  17236. @param prog the Progressable to report status during the file write
  17237. @return Writer
  17238. @throws IOException]]>
  17239. </doc>
  17240. </method>
  17241. <method name="writeFile"
  17242. abstract="false" native="false" synchronized="false"
  17243. static="false" final="false" visibility="public"
  17244. deprecated="not deprecated">
  17245. <param name="records" type="org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator"/>
  17246. <param name="writer" type="org.apache.hadoop.io.SequenceFile.Writer"/>
  17247. <exception name="IOException" type="java.io.IOException"/>
  17248. <doc>
  17249. <![CDATA[Writes records from RawKeyValueIterator into a file represented by the
  17250. passed writer
  17251. @param records the RawKeyValueIterator
  17252. @param writer the Writer created earlier
  17253. @throws IOException]]>
  17254. </doc>
  17255. </method>
  17256. <method name="merge"
  17257. abstract="false" native="false" synchronized="false"
  17258. static="false" final="false" visibility="public"
  17259. deprecated="not deprecated">
  17260. <param name="inFiles" type="org.apache.hadoop.fs.Path[]"/>
  17261. <param name="outFile" type="org.apache.hadoop.fs.Path"/>
  17262. <exception name="IOException" type="java.io.IOException"/>
  17263. <doc>
  17264. <![CDATA[Merge the provided files.
  17265. @param inFiles the array of input path names
  17266. @param outFile the final output file
  17267. @throws IOException]]>
  17268. </doc>
  17269. </method>
  17270. <doc>
  17271. <![CDATA[Sorts key/value pairs in a sequence-format file.
  17272. <p>For best performance, applications should make sure that the {@link
  17273. Writable#readFields(DataInput)} implementation of their keys is
  17274. very efficient. In particular, it should avoid allocating memory.]]>
  17275. </doc>
  17276. </class>
  17277. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter -->
  17278. <!-- start interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  17279. <interface name="SequenceFile.Sorter.RawKeyValueIterator" abstract="true"
  17280. static="true" final="false" visibility="public"
  17281. deprecated="not deprecated">
  17282. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  17283. abstract="false" native="false" synchronized="false"
  17284. static="false" final="false" visibility="public"
  17285. deprecated="not deprecated">
  17286. <exception name="IOException" type="java.io.IOException"/>
  17287. <doc>
  17288. <![CDATA[Gets the current raw key
  17289. @return DataOutputBuffer
  17290. @throws IOException]]>
  17291. </doc>
  17292. </method>
  17293. <method name="getValue" return="org.apache.hadoop.io.SequenceFile.ValueBytes"
  17294. abstract="false" native="false" synchronized="false"
  17295. static="false" final="false" visibility="public"
  17296. deprecated="not deprecated">
  17297. <exception name="IOException" type="java.io.IOException"/>
  17298. <doc>
  17299. <![CDATA[Gets the current raw value
  17300. @return ValueBytes
  17301. @throws IOException]]>
  17302. </doc>
  17303. </method>
  17304. <method name="next" return="boolean"
  17305. abstract="false" native="false" synchronized="false"
  17306. static="false" final="false" visibility="public"
  17307. deprecated="not deprecated">
  17308. <exception name="IOException" type="java.io.IOException"/>
  17309. <doc>
  17310. <![CDATA[Sets up the current key and value (for getKey and getValue)
  17311. @return true if there exists a key/value, false otherwise
  17312. @throws IOException]]>
  17313. </doc>
  17314. </method>
  17315. <method name="close"
  17316. abstract="false" native="false" synchronized="false"
  17317. static="false" final="false" visibility="public"
  17318. deprecated="not deprecated">
  17319. <exception name="IOException" type="java.io.IOException"/>
  17320. <doc>
  17321. <![CDATA[closes the iterator so that the underlying streams can be closed
  17322. @throws IOException]]>
  17323. </doc>
  17324. </method>
  17325. <method name="getProgress" return="org.apache.hadoop.util.Progress"
  17326. abstract="false" native="false" synchronized="false"
  17327. static="false" final="false" visibility="public"
  17328. deprecated="not deprecated">
  17329. <doc>
  17330. <![CDATA[Gets the Progress object; this has a float (0.0 - 1.0)
  17331. indicating the bytes processed by the iterator so far]]>
  17332. </doc>
  17333. </method>
  17334. <doc>
  17335. <![CDATA[The interface to iterate over raw keys/values of SequenceFiles.]]>
  17336. </doc>
  17337. </interface>
  17338. <!-- end interface org.apache.hadoop.io.SequenceFile.Sorter.RawKeyValueIterator -->
  17339. <!-- start class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  17340. <class name="SequenceFile.Sorter.SegmentDescriptor" extends="java.lang.Object"
  17341. abstract="false"
  17342. static="false" final="false" visibility="public"
  17343. deprecated="not deprecated">
  17344. <implements name="java.lang.Comparable"/>
  17345. <constructor name="SequenceFile.Sorter.SegmentDescriptor" type="long, long, org.apache.hadoop.fs.Path"
  17346. static="false" final="false" visibility="public"
  17347. deprecated="not deprecated">
  17348. <doc>
  17349. <![CDATA[Constructs a segment
  17350. @param segmentOffset the offset of the segment in the file
  17351. @param segmentLength the length of the segment
  17352. @param segmentPathName the path name of the file containing the segment]]>
  17353. </doc>
  17354. </constructor>
  17355. <method name="doSync"
  17356. abstract="false" native="false" synchronized="false"
  17357. static="false" final="false" visibility="public"
  17358. deprecated="not deprecated">
  17359. <doc>
  17360. <![CDATA[Do the sync checks]]>
  17361. </doc>
  17362. </method>
  17363. <method name="preserveInput"
  17364. abstract="false" native="false" synchronized="false"
  17365. static="false" final="false" visibility="public"
  17366. deprecated="not deprecated">
  17367. <param name="preserve" type="boolean"/>
  17368. <doc>
  17369. <![CDATA[Whether to delete the files when no longer needed]]>
  17370. </doc>
  17371. </method>
  17372. <method name="shouldPreserveInput" return="boolean"
  17373. abstract="false" native="false" synchronized="false"
  17374. static="false" final="false" visibility="public"
  17375. deprecated="not deprecated">
  17376. </method>
  17377. <method name="compareTo" return="int"
  17378. abstract="false" native="false" synchronized="false"
  17379. static="false" final="false" visibility="public"
  17380. deprecated="not deprecated">
  17381. <param name="o" type="java.lang.Object"/>
  17382. </method>
  17383. <method name="equals" return="boolean"
  17384. abstract="false" native="false" synchronized="false"
  17385. static="false" final="false" visibility="public"
  17386. deprecated="not deprecated">
  17387. <param name="o" type="java.lang.Object"/>
  17388. </method>
  17389. <method name="hashCode" return="int"
  17390. abstract="false" native="false" synchronized="false"
  17391. static="false" final="false" visibility="public"
  17392. deprecated="not deprecated">
  17393. </method>
  17394. <method name="nextRawKey" return="boolean"
  17395. abstract="false" native="false" synchronized="false"
  17396. static="false" final="false" visibility="public"
  17397. deprecated="not deprecated">
  17398. <exception name="IOException" type="java.io.IOException"/>
  17399. <doc>
  17400. <![CDATA[Fills up the rawKey object with the key returned by the Reader
  17401. @return true if there is a key returned; false, otherwise
  17402. @throws IOException]]>
  17403. </doc>
  17404. </method>
  17405. <method name="nextRawValue" return="int"
  17406. abstract="false" native="false" synchronized="false"
  17407. static="false" final="false" visibility="public"
  17408. deprecated="not deprecated">
  17409. <param name="rawValue" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  17410. <exception name="IOException" type="java.io.IOException"/>
  17411. <doc>
  17412. <![CDATA[Fills up the passed rawValue with the value corresponding to the key
  17413. read earlier
  17414. @param rawValue
  17415. @return the length of the value
  17416. @throws IOException]]>
  17417. </doc>
  17418. </method>
  17419. <method name="getKey" return="org.apache.hadoop.io.DataOutputBuffer"
  17420. abstract="false" native="false" synchronized="false"
  17421. static="false" final="false" visibility="public"
  17422. deprecated="not deprecated">
  17423. <doc>
  17424. <![CDATA[Returns the stored rawKey]]>
  17425. </doc>
  17426. </method>
  17427. <method name="cleanup"
  17428. abstract="false" native="false" synchronized="false"
  17429. static="false" final="false" visibility="public"
  17430. deprecated="not deprecated">
  17431. <exception name="IOException" type="java.io.IOException"/>
  17432. <doc>
  17433. <![CDATA[The default cleanup. Subclasses can override this with a custom
  17434. cleanup]]>
  17435. </doc>
  17436. </method>
  17437. <doc>
  17438. <![CDATA[This class defines a merge segment. This class can be subclassed to
  17439. provide a customized cleanup method implementation. In this
  17440. implementation, cleanup closes the file handle and deletes the file]]>
  17441. </doc>
  17442. </class>
  17443. <!-- end class org.apache.hadoop.io.SequenceFile.Sorter.SegmentDescriptor -->
  17444. <!-- start interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  17445. <interface name="SequenceFile.ValueBytes" abstract="true"
  17446. static="true" final="false" visibility="public"
  17447. deprecated="not deprecated">
  17448. <method name="writeUncompressedBytes"
  17449. abstract="false" native="false" synchronized="false"
  17450. static="false" final="false" visibility="public"
  17451. deprecated="not deprecated">
  17452. <param name="outStream" type="java.io.DataOutputStream"/>
  17453. <exception name="IOException" type="java.io.IOException"/>
  17454. <doc>
  17455. <![CDATA[Writes the uncompressed bytes to the outStream.
  17456. @param outStream : Stream to write uncompressed bytes into.
  17457. @throws IOException]]>
  17458. </doc>
  17459. </method>
  17460. <method name="writeCompressedBytes"
  17461. abstract="false" native="false" synchronized="false"
  17462. static="false" final="false" visibility="public"
  17463. deprecated="not deprecated">
  17464. <param name="outStream" type="java.io.DataOutputStream"/>
  17465. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  17466. <exception name="IOException" type="java.io.IOException"/>
  17467. <doc>
  17468. <![CDATA[Write compressed bytes to outStream.
  17469. Note: that it will NOT compress the bytes if they are not compressed.
  17470. @param outStream : Stream to write compressed bytes into.]]>
  17471. </doc>
  17472. </method>
  17473. <method name="getSize" return="int"
  17474. abstract="false" native="false" synchronized="false"
  17475. static="false" final="false" visibility="public"
  17476. deprecated="not deprecated">
  17477. <doc>
  17478. <![CDATA[Size of stored data.]]>
  17479. </doc>
  17480. </method>
  17481. <doc>
  17482. <![CDATA[The interface to 'raw' values of SequenceFiles.]]>
  17483. </doc>
  17484. </interface>
  17485. <!-- end interface org.apache.hadoop.io.SequenceFile.ValueBytes -->
  17486. <!-- start class org.apache.hadoop.io.SequenceFile.Writer -->
  17487. <class name="SequenceFile.Writer" extends="java.lang.Object"
  17488. abstract="false"
  17489. static="true" final="false" visibility="public"
  17490. deprecated="not deprecated">
  17491. <implements name="java.io.Closeable"/>
  17492. <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"
  17493. static="false" final="false" visibility="public"
  17494. deprecated="not deprecated">
  17495. <exception name="IOException" type="java.io.IOException"/>
  17496. <doc>
  17497. <![CDATA[Create the named file.]]>
  17498. </doc>
  17499. </constructor>
  17500. <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"
  17501. static="false" final="false" visibility="public"
  17502. deprecated="not deprecated">
  17503. <exception name="IOException" type="java.io.IOException"/>
  17504. <doc>
  17505. <![CDATA[Create the named file with write-progress reporter.]]>
  17506. </doc>
  17507. </constructor>
  17508. <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"
  17509. static="false" final="false" visibility="public"
  17510. deprecated="not deprecated">
  17511. <exception name="IOException" type="java.io.IOException"/>
  17512. <doc>
  17513. <![CDATA[Create the named file with write-progress reporter.]]>
  17514. </doc>
  17515. </constructor>
  17516. <method name="getKeyClass" return="java.lang.Class"
  17517. abstract="false" native="false" synchronized="false"
  17518. static="false" final="false" visibility="public"
  17519. deprecated="not deprecated">
  17520. <doc>
  17521. <![CDATA[Returns the class of keys in this file.]]>
  17522. </doc>
  17523. </method>
  17524. <method name="getValueClass" return="java.lang.Class"
  17525. abstract="false" native="false" synchronized="false"
  17526. static="false" final="false" visibility="public"
  17527. deprecated="not deprecated">
  17528. <doc>
  17529. <![CDATA[Returns the class of values in this file.]]>
  17530. </doc>
  17531. </method>
  17532. <method name="getCompressionCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  17533. abstract="false" native="false" synchronized="false"
  17534. static="false" final="false" visibility="public"
  17535. deprecated="not deprecated">
  17536. <doc>
  17537. <![CDATA[Returns the compression codec of data in this file.]]>
  17538. </doc>
  17539. </method>
  17540. <method name="sync"
  17541. abstract="false" native="false" synchronized="false"
  17542. static="false" final="false" visibility="public"
  17543. deprecated="not deprecated">
  17544. <exception name="IOException" type="java.io.IOException"/>
  17545. <doc>
  17546. <![CDATA[create a sync point]]>
  17547. </doc>
  17548. </method>
  17549. <method name="close"
  17550. abstract="false" native="false" synchronized="true"
  17551. static="false" final="false" visibility="public"
  17552. deprecated="not deprecated">
  17553. <exception name="IOException" type="java.io.IOException"/>
  17554. <doc>
  17555. <![CDATA[Close the file.]]>
  17556. </doc>
  17557. </method>
  17558. <method name="append"
  17559. abstract="false" native="false" synchronized="true"
  17560. static="false" final="false" visibility="public"
  17561. deprecated="not deprecated">
  17562. <param name="key" type="org.apache.hadoop.io.Writable"/>
  17563. <param name="val" type="org.apache.hadoop.io.Writable"/>
  17564. <exception name="IOException" type="java.io.IOException"/>
  17565. <doc>
  17566. <![CDATA[Append a key/value pair.]]>
  17567. </doc>
  17568. </method>
  17569. <method name="append"
  17570. abstract="false" native="false" synchronized="true"
  17571. static="false" final="false" visibility="public"
  17572. deprecated="not deprecated">
  17573. <param name="key" type="java.lang.Object"/>
  17574. <param name="val" type="java.lang.Object"/>
  17575. <exception name="IOException" type="java.io.IOException"/>
  17576. <doc>
  17577. <![CDATA[Append a key/value pair.]]>
  17578. </doc>
  17579. </method>
  17580. <method name="appendRaw"
  17581. abstract="false" native="false" synchronized="true"
  17582. static="false" final="false" visibility="public"
  17583. deprecated="not deprecated">
  17584. <param name="keyData" type="byte[]"/>
  17585. <param name="keyOffset" type="int"/>
  17586. <param name="keyLength" type="int"/>
  17587. <param name="val" type="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  17588. <exception name="IOException" type="java.io.IOException"/>
  17589. </method>
  17590. <method name="getLength" return="long"
  17591. abstract="false" native="false" synchronized="true"
  17592. static="false" final="false" visibility="public"
  17593. deprecated="not deprecated">
  17594. <exception name="IOException" type="java.io.IOException"/>
  17595. <doc>
  17596. <![CDATA[Returns the current length of the output file.
  17597. <p>This always returns a synchronized position. In other words,
  17598. immediately after calling {@link SequenceFile.Reader#seek(long)} with a position
  17599. returned by this method, {@link SequenceFile.Reader#next(Writable)} may be called. However
  17600. the key may be earlier in the file than key last written when this
  17601. method was called (e.g., with block-compression, it may be the first key
  17602. in the block that was being written when this method was called).]]>
  17603. </doc>
  17604. </method>
  17605. <field name="keySerializer" type="org.apache.hadoop.io.serializer.Serializer"
  17606. transient="false" volatile="false"
  17607. static="false" final="false" visibility="protected"
  17608. deprecated="not deprecated">
  17609. </field>
  17610. <field name="uncompressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  17611. transient="false" volatile="false"
  17612. static="false" final="false" visibility="protected"
  17613. deprecated="not deprecated">
  17614. </field>
  17615. <field name="compressedValSerializer" type="org.apache.hadoop.io.serializer.Serializer"
  17616. transient="false" volatile="false"
  17617. static="false" final="false" visibility="protected"
  17618. deprecated="not deprecated">
  17619. </field>
  17620. <doc>
  17621. <![CDATA[Write key/value pairs to a sequence-format file.]]>
  17622. </doc>
  17623. </class>
  17624. <!-- end class org.apache.hadoop.io.SequenceFile.Writer -->
  17625. <!-- start class org.apache.hadoop.io.SetFile -->
  17626. <class name="SetFile" extends="org.apache.hadoop.io.MapFile"
  17627. abstract="false"
  17628. static="false" final="false" visibility="public"
  17629. deprecated="not deprecated">
  17630. <constructor name="SetFile"
  17631. static="false" final="false" visibility="protected"
  17632. deprecated="not deprecated">
  17633. </constructor>
  17634. <doc>
  17635. <![CDATA[A file-based set of keys.]]>
  17636. </doc>
  17637. </class>
  17638. <!-- end class org.apache.hadoop.io.SetFile -->
  17639. <!-- start class org.apache.hadoop.io.SetFile.Reader -->
  17640. <class name="SetFile.Reader" extends="org.apache.hadoop.io.MapFile.Reader"
  17641. abstract="false"
  17642. static="true" final="false" visibility="public"
  17643. deprecated="not deprecated">
  17644. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.conf.Configuration"
  17645. static="false" final="false" visibility="public"
  17646. deprecated="not deprecated">
  17647. <exception name="IOException" type="java.io.IOException"/>
  17648. <doc>
  17649. <![CDATA[Construct a set reader for the named set.]]>
  17650. </doc>
  17651. </constructor>
  17652. <constructor name="SetFile.Reader" type="org.apache.hadoop.fs.FileSystem, java.lang.String, org.apache.hadoop.io.WritableComparator, org.apache.hadoop.conf.Configuration"
  17653. static="false" final="false" visibility="public"
  17654. deprecated="not deprecated">
  17655. <exception name="IOException" type="java.io.IOException"/>
  17656. <doc>
  17657. <![CDATA[Construct a set reader for the named set using the named comparator.]]>
  17658. </doc>
  17659. </constructor>
  17660. <method name="seek" return="boolean"
  17661. abstract="false" native="false" synchronized="false"
  17662. static="false" final="false" visibility="public"
  17663. deprecated="not deprecated">
  17664. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17665. <exception name="IOException" type="java.io.IOException"/>
  17666. </method>
  17667. <method name="next" return="boolean"
  17668. abstract="false" native="false" synchronized="false"
  17669. static="false" final="false" visibility="public"
  17670. deprecated="not deprecated">
  17671. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17672. <exception name="IOException" type="java.io.IOException"/>
  17673. <doc>
  17674. <![CDATA[Read the next key in a set into <code>key</code>. Returns
  17675. true if such a key exists and false when at the end of the set.]]>
  17676. </doc>
  17677. </method>
  17678. <method name="get" return="org.apache.hadoop.io.WritableComparable"
  17679. abstract="false" native="false" synchronized="false"
  17680. static="false" final="false" visibility="public"
  17681. deprecated="not deprecated">
  17682. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17683. <exception name="IOException" type="java.io.IOException"/>
  17684. <doc>
  17685. <![CDATA[Read the matching key from a set into <code>key</code>.
  17686. Returns <code>key</code>, or null if no match exists.]]>
  17687. </doc>
  17688. </method>
  17689. <doc>
  17690. <![CDATA[Provide access to an existing set file.]]>
  17691. </doc>
  17692. </class>
  17693. <!-- end class org.apache.hadoop.io.SetFile.Reader -->
  17694. <!-- start class org.apache.hadoop.io.SetFile.Writer -->
  17695. <class name="SetFile.Writer" extends="org.apache.hadoop.io.MapFile.Writer"
  17696. abstract="false"
  17697. static="true" final="false" visibility="public"
  17698. deprecated="not deprecated">
  17699. <constructor name="SetFile.Writer" type="org.apache.hadoop.fs.FileSystem, java.lang.String, java.lang.Class"
  17700. static="false" final="false" visibility="public"
  17701. deprecated="pass a Configuration too">
  17702. <exception name="IOException" type="java.io.IOException"/>
  17703. <doc>
  17704. <![CDATA[Create the named set for keys of the named class.
  17705. @deprecated pass a Configuration too]]>
  17706. </doc>
  17707. </constructor>
  17708. <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"
  17709. static="false" final="false" visibility="public"
  17710. deprecated="not deprecated">
  17711. <exception name="IOException" type="java.io.IOException"/>
  17712. <doc>
  17713. <![CDATA[Create a set naming the element class and compression type.]]>
  17714. </doc>
  17715. </constructor>
  17716. <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"
  17717. static="false" final="false" visibility="public"
  17718. deprecated="not deprecated">
  17719. <exception name="IOException" type="java.io.IOException"/>
  17720. <doc>
  17721. <![CDATA[Create a set naming the element comparator and compression type.]]>
  17722. </doc>
  17723. </constructor>
  17724. <method name="append"
  17725. abstract="false" native="false" synchronized="false"
  17726. static="false" final="false" visibility="public"
  17727. deprecated="not deprecated">
  17728. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17729. <exception name="IOException" type="java.io.IOException"/>
  17730. <doc>
  17731. <![CDATA[Append a key to a set. The key must be strictly greater than the
  17732. previous key added to the set.]]>
  17733. </doc>
  17734. </method>
  17735. <doc>
  17736. <![CDATA[Write a new set file.]]>
  17737. </doc>
  17738. </class>
  17739. <!-- end class org.apache.hadoop.io.SetFile.Writer -->
  17740. <!-- start class org.apache.hadoop.io.SortedMapWritable -->
  17741. <class name="SortedMapWritable" extends="org.apache.hadoop.io.AbstractMapWritable"
  17742. abstract="false"
  17743. static="false" final="false" visibility="public"
  17744. deprecated="not deprecated">
  17745. <implements name="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"/>
  17746. <constructor name="SortedMapWritable"
  17747. static="false" final="false" visibility="public"
  17748. deprecated="not deprecated">
  17749. <doc>
  17750. <![CDATA[default constructor.]]>
  17751. </doc>
  17752. </constructor>
  17753. <constructor name="SortedMapWritable" type="org.apache.hadoop.io.SortedMapWritable"
  17754. static="false" final="false" visibility="public"
  17755. deprecated="not deprecated">
  17756. <doc>
  17757. <![CDATA[Copy constructor.
  17758. @param other the map to copy from]]>
  17759. </doc>
  17760. </constructor>
  17761. <method name="comparator" return="java.util.Comparator&lt;? super org.apache.hadoop.io.WritableComparable&gt;"
  17762. abstract="false" native="false" synchronized="false"
  17763. static="false" final="false" visibility="public"
  17764. deprecated="not deprecated">
  17765. <doc>
  17766. <![CDATA[{@inheritDoc}]]>
  17767. </doc>
  17768. </method>
  17769. <method name="firstKey" return="org.apache.hadoop.io.WritableComparable"
  17770. abstract="false" native="false" synchronized="false"
  17771. static="false" final="false" visibility="public"
  17772. deprecated="not deprecated">
  17773. <doc>
  17774. <![CDATA[{@inheritDoc}]]>
  17775. </doc>
  17776. </method>
  17777. <method name="headMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  17778. abstract="false" native="false" synchronized="false"
  17779. static="false" final="false" visibility="public"
  17780. deprecated="not deprecated">
  17781. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  17782. <doc>
  17783. <![CDATA[{@inheritDoc}]]>
  17784. </doc>
  17785. </method>
  17786. <method name="lastKey" return="org.apache.hadoop.io.WritableComparable"
  17787. abstract="false" native="false" synchronized="false"
  17788. static="false" final="false" visibility="public"
  17789. deprecated="not deprecated">
  17790. <doc>
  17791. <![CDATA[{@inheritDoc}]]>
  17792. </doc>
  17793. </method>
  17794. <method name="subMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  17795. abstract="false" native="false" synchronized="false"
  17796. static="false" final="false" visibility="public"
  17797. deprecated="not deprecated">
  17798. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  17799. <param name="toKey" type="org.apache.hadoop.io.WritableComparable"/>
  17800. <doc>
  17801. <![CDATA[{@inheritDoc}]]>
  17802. </doc>
  17803. </method>
  17804. <method name="tailMap" return="java.util.SortedMap&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  17805. abstract="false" native="false" synchronized="false"
  17806. static="false" final="false" visibility="public"
  17807. deprecated="not deprecated">
  17808. <param name="fromKey" type="org.apache.hadoop.io.WritableComparable"/>
  17809. <doc>
  17810. <![CDATA[{@inheritDoc}]]>
  17811. </doc>
  17812. </method>
  17813. <method name="clear"
  17814. abstract="false" native="false" synchronized="false"
  17815. static="false" final="false" visibility="public"
  17816. deprecated="not deprecated">
  17817. <doc>
  17818. <![CDATA[{@inheritDoc}]]>
  17819. </doc>
  17820. </method>
  17821. <method name="containsKey" return="boolean"
  17822. abstract="false" native="false" synchronized="false"
  17823. static="false" final="false" visibility="public"
  17824. deprecated="not deprecated">
  17825. <param name="key" type="java.lang.Object"/>
  17826. <doc>
  17827. <![CDATA[{@inheritDoc}]]>
  17828. </doc>
  17829. </method>
  17830. <method name="containsValue" return="boolean"
  17831. abstract="false" native="false" synchronized="false"
  17832. static="false" final="false" visibility="public"
  17833. deprecated="not deprecated">
  17834. <param name="value" type="java.lang.Object"/>
  17835. <doc>
  17836. <![CDATA[{@inheritDoc}]]>
  17837. </doc>
  17838. </method>
  17839. <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;"
  17840. abstract="false" native="false" synchronized="false"
  17841. static="false" final="false" visibility="public"
  17842. deprecated="not deprecated">
  17843. <doc>
  17844. <![CDATA[{@inheritDoc}]]>
  17845. </doc>
  17846. </method>
  17847. <method name="get" return="org.apache.hadoop.io.Writable"
  17848. abstract="false" native="false" synchronized="false"
  17849. static="false" final="false" visibility="public"
  17850. deprecated="not deprecated">
  17851. <param name="key" type="java.lang.Object"/>
  17852. <doc>
  17853. <![CDATA[{@inheritDoc}]]>
  17854. </doc>
  17855. </method>
  17856. <method name="isEmpty" return="boolean"
  17857. abstract="false" native="false" synchronized="false"
  17858. static="false" final="false" visibility="public"
  17859. deprecated="not deprecated">
  17860. <doc>
  17861. <![CDATA[{@inheritDoc}]]>
  17862. </doc>
  17863. </method>
  17864. <method name="keySet" return="java.util.Set&lt;org.apache.hadoop.io.WritableComparable&gt;"
  17865. abstract="false" native="false" synchronized="false"
  17866. static="false" final="false" visibility="public"
  17867. deprecated="not deprecated">
  17868. <doc>
  17869. <![CDATA[{@inheritDoc}]]>
  17870. </doc>
  17871. </method>
  17872. <method name="put" return="org.apache.hadoop.io.Writable"
  17873. abstract="false" native="false" synchronized="false"
  17874. static="false" final="false" visibility="public"
  17875. deprecated="not deprecated">
  17876. <param name="key" type="org.apache.hadoop.io.WritableComparable"/>
  17877. <param name="value" type="org.apache.hadoop.io.Writable"/>
  17878. <doc>
  17879. <![CDATA[{@inheritDoc}]]>
  17880. </doc>
  17881. </method>
  17882. <method name="putAll"
  17883. abstract="false" native="false" synchronized="false"
  17884. static="false" final="false" visibility="public"
  17885. deprecated="not deprecated">
  17886. <param name="t" type="java.util.Map&lt;? extends org.apache.hadoop.io.WritableComparable, ? extends org.apache.hadoop.io.Writable&gt;"/>
  17887. <doc>
  17888. <![CDATA[{@inheritDoc}]]>
  17889. </doc>
  17890. </method>
  17891. <method name="remove" return="org.apache.hadoop.io.Writable"
  17892. abstract="false" native="false" synchronized="false"
  17893. static="false" final="false" visibility="public"
  17894. deprecated="not deprecated">
  17895. <param name="key" type="java.lang.Object"/>
  17896. <doc>
  17897. <![CDATA[{@inheritDoc}]]>
  17898. </doc>
  17899. </method>
  17900. <method name="size" return="int"
  17901. abstract="false" native="false" synchronized="false"
  17902. static="false" final="false" visibility="public"
  17903. deprecated="not deprecated">
  17904. <doc>
  17905. <![CDATA[{@inheritDoc}]]>
  17906. </doc>
  17907. </method>
  17908. <method name="values" return="java.util.Collection&lt;org.apache.hadoop.io.Writable&gt;"
  17909. abstract="false" native="false" synchronized="false"
  17910. static="false" final="false" visibility="public"
  17911. deprecated="not deprecated">
  17912. <doc>
  17913. <![CDATA[{@inheritDoc}]]>
  17914. </doc>
  17915. </method>
  17916. <method name="readFields"
  17917. abstract="false" native="false" synchronized="false"
  17918. static="false" final="false" visibility="public"
  17919. deprecated="not deprecated">
  17920. <param name="in" type="java.io.DataInput"/>
  17921. <exception name="IOException" type="java.io.IOException"/>
  17922. <doc>
  17923. <![CDATA[{@inheritDoc}]]>
  17924. </doc>
  17925. </method>
  17926. <method name="write"
  17927. abstract="false" native="false" synchronized="false"
  17928. static="false" final="false" visibility="public"
  17929. deprecated="not deprecated">
  17930. <param name="out" type="java.io.DataOutput"/>
  17931. <exception name="IOException" type="java.io.IOException"/>
  17932. <doc>
  17933. <![CDATA[{@inheritDoc}]]>
  17934. </doc>
  17935. </method>
  17936. <doc>
  17937. <![CDATA[A Writable SortedMap.]]>
  17938. </doc>
  17939. </class>
  17940. <!-- end class org.apache.hadoop.io.SortedMapWritable -->
  17941. <!-- start interface org.apache.hadoop.io.Stringifier -->
  17942. <interface name="Stringifier" abstract="true"
  17943. static="false" final="false" visibility="public"
  17944. deprecated="not deprecated">
  17945. <implements name="java.io.Closeable"/>
  17946. <method name="toString" return="java.lang.String"
  17947. abstract="false" native="false" synchronized="false"
  17948. static="false" final="false" visibility="public"
  17949. deprecated="not deprecated">
  17950. <param name="obj" type="T"/>
  17951. <exception name="IOException" type="java.io.IOException"/>
  17952. <doc>
  17953. <![CDATA[Converts the object to a string representation
  17954. @param obj the object to convert
  17955. @return the string representation of the object
  17956. @throws IOException if the object cannot be converted]]>
  17957. </doc>
  17958. </method>
  17959. <method name="fromString" return="T"
  17960. abstract="false" native="false" synchronized="false"
  17961. static="false" final="false" visibility="public"
  17962. deprecated="not deprecated">
  17963. <param name="str" type="java.lang.String"/>
  17964. <exception name="IOException" type="java.io.IOException"/>
  17965. <doc>
  17966. <![CDATA[Restores the object from its string representation.
  17967. @param str the string representation of the object
  17968. @return restored object
  17969. @throws IOException if the object cannot be restored]]>
  17970. </doc>
  17971. </method>
  17972. <method name="close"
  17973. abstract="false" native="false" synchronized="false"
  17974. static="false" final="false" visibility="public"
  17975. deprecated="not deprecated">
  17976. <exception name="IOException" type="java.io.IOException"/>
  17977. <doc>
  17978. <![CDATA[Closes this object.
  17979. @throws IOException if an I/O error occurs]]>
  17980. </doc>
  17981. </method>
  17982. <doc>
  17983. <![CDATA[Stringifier interface offers two methods to convert an object
  17984. to a string representation and restore the object given its
  17985. string representation.
  17986. @param <T> the class of the objects to stringify]]>
  17987. </doc>
  17988. </interface>
  17989. <!-- end interface org.apache.hadoop.io.Stringifier -->
  17990. <!-- start class org.apache.hadoop.io.Text -->
  17991. <class name="Text" extends="java.lang.Object"
  17992. abstract="false"
  17993. static="false" final="false" visibility="public"
  17994. deprecated="not deprecated">
  17995. <implements name="org.apache.hadoop.io.WritableComparable"/>
  17996. <constructor name="Text"
  17997. static="false" final="false" visibility="public"
  17998. deprecated="not deprecated">
  17999. </constructor>
  18000. <constructor name="Text" type="java.lang.String"
  18001. static="false" final="false" visibility="public"
  18002. deprecated="not deprecated">
  18003. <doc>
  18004. <![CDATA[Construct from a string.]]>
  18005. </doc>
  18006. </constructor>
  18007. <constructor name="Text" type="org.apache.hadoop.io.Text"
  18008. static="false" final="false" visibility="public"
  18009. deprecated="not deprecated">
  18010. <doc>
  18011. <![CDATA[Construct from another text.]]>
  18012. </doc>
  18013. </constructor>
  18014. <constructor name="Text" type="byte[]"
  18015. static="false" final="false" visibility="public"
  18016. deprecated="not deprecated">
  18017. <doc>
  18018. <![CDATA[Construct from a byte array.]]>
  18019. </doc>
  18020. </constructor>
  18021. <method name="getBytes" return="byte[]"
  18022. abstract="false" native="false" synchronized="false"
  18023. static="false" final="false" visibility="public"
  18024. deprecated="not deprecated">
  18025. <doc>
  18026. <![CDATA[Returns the raw bytes; however, only data up to {@link #getLength()} is
  18027. valid.]]>
  18028. </doc>
  18029. </method>
  18030. <method name="getLength" return="int"
  18031. abstract="false" native="false" synchronized="false"
  18032. static="false" final="false" visibility="public"
  18033. deprecated="not deprecated">
  18034. <doc>
  18035. <![CDATA[Returns the number of bytes in the byte array]]>
  18036. </doc>
  18037. </method>
  18038. <method name="charAt" return="int"
  18039. abstract="false" native="false" synchronized="false"
  18040. static="false" final="false" visibility="public"
  18041. deprecated="not deprecated">
  18042. <param name="position" type="int"/>
  18043. <doc>
  18044. <![CDATA[Returns the Unicode Scalar Value (32-bit integer value)
  18045. for the character at <code>position</code>. Note that this
  18046. method avoids using the converter or doing String instatiation
  18047. @return the Unicode scalar value at position or -1
  18048. if the position is invalid or points to a
  18049. trailing byte]]>
  18050. </doc>
  18051. </method>
  18052. <method name="find" return="int"
  18053. abstract="false" native="false" synchronized="false"
  18054. static="false" final="false" visibility="public"
  18055. deprecated="not deprecated">
  18056. <param name="what" type="java.lang.String"/>
  18057. </method>
  18058. <method name="find" return="int"
  18059. abstract="false" native="false" synchronized="false"
  18060. static="false" final="false" visibility="public"
  18061. deprecated="not deprecated">
  18062. <param name="what" type="java.lang.String"/>
  18063. <param name="start" type="int"/>
  18064. <doc>
  18065. <![CDATA[Finds any occurence of <code>what</code> in the backing
  18066. buffer, starting as position <code>start</code>. The starting
  18067. position is measured in bytes and the return value is in
  18068. terms of byte position in the buffer. The backing buffer is
  18069. not converted to a string for this operation.
  18070. @return byte position of the first occurence of the search
  18071. string in the UTF-8 buffer or -1 if not found]]>
  18072. </doc>
  18073. </method>
  18074. <method name="set"
  18075. abstract="false" native="false" synchronized="false"
  18076. static="false" final="false" visibility="public"
  18077. deprecated="not deprecated">
  18078. <param name="string" type="java.lang.String"/>
  18079. <doc>
  18080. <![CDATA[Set to contain the contents of a string.]]>
  18081. </doc>
  18082. </method>
  18083. <method name="set"
  18084. abstract="false" native="false" synchronized="false"
  18085. static="false" final="false" visibility="public"
  18086. deprecated="not deprecated">
  18087. <param name="utf8" type="byte[]"/>
  18088. <doc>
  18089. <![CDATA[Set to a utf8 byte array]]>
  18090. </doc>
  18091. </method>
  18092. <method name="set"
  18093. abstract="false" native="false" synchronized="false"
  18094. static="false" final="false" visibility="public"
  18095. deprecated="not deprecated">
  18096. <param name="other" type="org.apache.hadoop.io.Text"/>
  18097. <doc>
  18098. <![CDATA[copy a text.]]>
  18099. </doc>
  18100. </method>
  18101. <method name="set"
  18102. abstract="false" native="false" synchronized="false"
  18103. static="false" final="false" visibility="public"
  18104. deprecated="not deprecated">
  18105. <param name="utf8" type="byte[]"/>
  18106. <param name="start" type="int"/>
  18107. <param name="len" type="int"/>
  18108. <doc>
  18109. <![CDATA[Set the Text to range of bytes
  18110. @param utf8 the data to copy from
  18111. @param start the first position of the new string
  18112. @param len the number of bytes of the new string]]>
  18113. </doc>
  18114. </method>
  18115. <method name="append"
  18116. abstract="false" native="false" synchronized="false"
  18117. static="false" final="false" visibility="public"
  18118. deprecated="not deprecated">
  18119. <param name="utf8" type="byte[]"/>
  18120. <param name="start" type="int"/>
  18121. <param name="len" type="int"/>
  18122. <doc>
  18123. <![CDATA[Append a range of bytes to the end of the given text
  18124. @param utf8 the data to copy from
  18125. @param start the first position to append from utf8
  18126. @param len the number of bytes to append]]>
  18127. </doc>
  18128. </method>
  18129. <method name="clear"
  18130. abstract="false" native="false" synchronized="false"
  18131. static="false" final="false" visibility="public"
  18132. deprecated="not deprecated">
  18133. <doc>
  18134. <![CDATA[Clear the string to empty.]]>
  18135. </doc>
  18136. </method>
  18137. <method name="toString" return="java.lang.String"
  18138. abstract="false" native="false" synchronized="false"
  18139. static="false" final="false" visibility="public"
  18140. deprecated="not deprecated">
  18141. <doc>
  18142. <![CDATA[Convert text back to string
  18143. @see java.lang.Object#toString()]]>
  18144. </doc>
  18145. </method>
  18146. <method name="readFields"
  18147. abstract="false" native="false" synchronized="false"
  18148. static="false" final="false" visibility="public"
  18149. deprecated="not deprecated">
  18150. <param name="in" type="java.io.DataInput"/>
  18151. <exception name="IOException" type="java.io.IOException"/>
  18152. <doc>
  18153. <![CDATA[deserialize]]>
  18154. </doc>
  18155. </method>
  18156. <method name="skip"
  18157. abstract="false" native="false" synchronized="false"
  18158. static="true" final="false" visibility="public"
  18159. deprecated="not deprecated">
  18160. <param name="in" type="java.io.DataInput"/>
  18161. <exception name="IOException" type="java.io.IOException"/>
  18162. <doc>
  18163. <![CDATA[Skips over one Text in the input.]]>
  18164. </doc>
  18165. </method>
  18166. <method name="write"
  18167. abstract="false" native="false" synchronized="false"
  18168. static="false" final="false" visibility="public"
  18169. deprecated="not deprecated">
  18170. <param name="out" type="java.io.DataOutput"/>
  18171. <exception name="IOException" type="java.io.IOException"/>
  18172. <doc>
  18173. <![CDATA[serialize
  18174. write this object to out
  18175. length uses zero-compressed encoding
  18176. @see Writable#write(DataOutput)]]>
  18177. </doc>
  18178. </method>
  18179. <method name="compareTo" return="int"
  18180. abstract="false" native="false" synchronized="false"
  18181. static="false" final="false" visibility="public"
  18182. deprecated="not deprecated">
  18183. <param name="o" type="java.lang.Object"/>
  18184. <doc>
  18185. <![CDATA[Compare two Texts bytewise using standard UTF8 ordering.]]>
  18186. </doc>
  18187. </method>
  18188. <method name="equals" return="boolean"
  18189. abstract="false" native="false" synchronized="false"
  18190. static="false" final="false" visibility="public"
  18191. deprecated="not deprecated">
  18192. <param name="o" type="java.lang.Object"/>
  18193. <doc>
  18194. <![CDATA[Returns true iff <code>o</code> is a Text with the same contents.]]>
  18195. </doc>
  18196. </method>
  18197. <method name="hashCode" return="int"
  18198. abstract="false" native="false" synchronized="false"
  18199. static="false" final="false" visibility="public"
  18200. deprecated="not deprecated">
  18201. <doc>
  18202. <![CDATA[hash function]]>
  18203. </doc>
  18204. </method>
  18205. <method name="decode" return="java.lang.String"
  18206. abstract="false" native="false" synchronized="false"
  18207. static="true" final="false" visibility="public"
  18208. deprecated="not deprecated">
  18209. <param name="utf8" type="byte[]"/>
  18210. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  18211. <doc>
  18212. <![CDATA[Converts the provided byte array to a String using the
  18213. UTF-8 encoding. If the input is malformed,
  18214. replace by a default value.]]>
  18215. </doc>
  18216. </method>
  18217. <method name="decode" return="java.lang.String"
  18218. abstract="false" native="false" synchronized="false"
  18219. static="true" final="false" visibility="public"
  18220. deprecated="not deprecated">
  18221. <param name="utf8" type="byte[]"/>
  18222. <param name="start" type="int"/>
  18223. <param name="length" type="int"/>
  18224. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  18225. </method>
  18226. <method name="decode" return="java.lang.String"
  18227. abstract="false" native="false" synchronized="false"
  18228. static="true" final="false" visibility="public"
  18229. deprecated="not deprecated">
  18230. <param name="utf8" type="byte[]"/>
  18231. <param name="start" type="int"/>
  18232. <param name="length" type="int"/>
  18233. <param name="replace" type="boolean"/>
  18234. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  18235. <doc>
  18236. <![CDATA[Converts the provided byte array to a String using the
  18237. UTF-8 encoding. If <code>replace</code> is true, then
  18238. malformed input is replaced with the
  18239. substitution character, which is U+FFFD. Otherwise the
  18240. method throws a MalformedInputException.]]>
  18241. </doc>
  18242. </method>
  18243. <method name="encode" return="java.nio.ByteBuffer"
  18244. abstract="false" native="false" synchronized="false"
  18245. static="true" final="false" visibility="public"
  18246. deprecated="not deprecated">
  18247. <param name="string" type="java.lang.String"/>
  18248. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  18249. <doc>
  18250. <![CDATA[Converts the provided String to bytes using the
  18251. UTF-8 encoding. If the input is malformed,
  18252. invalid chars are replaced by a default value.
  18253. @return ByteBuffer: bytes stores at ByteBuffer.array()
  18254. and length is ByteBuffer.limit()]]>
  18255. </doc>
  18256. </method>
  18257. <method name="encode" return="java.nio.ByteBuffer"
  18258. abstract="false" native="false" synchronized="false"
  18259. static="true" final="false" visibility="public"
  18260. deprecated="not deprecated">
  18261. <param name="string" type="java.lang.String"/>
  18262. <param name="replace" type="boolean"/>
  18263. <exception name="CharacterCodingException" type="java.nio.charset.CharacterCodingException"/>
  18264. <doc>
  18265. <![CDATA[Converts the provided String to bytes using the
  18266. UTF-8 encoding. If <code>replace</code> is true, then
  18267. malformed input is replaced with the
  18268. substitution character, which is U+FFFD. Otherwise the
  18269. method throws a MalformedInputException.
  18270. @return ByteBuffer: bytes stores at ByteBuffer.array()
  18271. and length is ByteBuffer.limit()]]>
  18272. </doc>
  18273. </method>
  18274. <method name="readString" return="java.lang.String"
  18275. abstract="false" native="false" synchronized="false"
  18276. static="true" final="false" visibility="public"
  18277. deprecated="not deprecated">
  18278. <param name="in" type="java.io.DataInput"/>
  18279. <exception name="IOException" type="java.io.IOException"/>
  18280. <doc>
  18281. <![CDATA[Read a UTF8 encoded string from in]]>
  18282. </doc>
  18283. </method>
  18284. <method name="writeString" return="int"
  18285. abstract="false" native="false" synchronized="false"
  18286. static="true" final="false" visibility="public"
  18287. deprecated="not deprecated">
  18288. <param name="out" type="java.io.DataOutput"/>
  18289. <param name="s" type="java.lang.String"/>
  18290. <exception name="IOException" type="java.io.IOException"/>
  18291. <doc>
  18292. <![CDATA[Write a UTF8 encoded string to out]]>
  18293. </doc>
  18294. </method>
  18295. <method name="validateUTF8"
  18296. abstract="false" native="false" synchronized="false"
  18297. static="true" final="false" visibility="public"
  18298. deprecated="not deprecated">
  18299. <param name="utf8" type="byte[]"/>
  18300. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  18301. <doc>
  18302. <![CDATA[Check if a byte array contains valid utf-8
  18303. @param utf8 byte array
  18304. @throws MalformedInputException if the byte array contains invalid utf-8]]>
  18305. </doc>
  18306. </method>
  18307. <method name="validateUTF8"
  18308. abstract="false" native="false" synchronized="false"
  18309. static="true" final="false" visibility="public"
  18310. deprecated="not deprecated">
  18311. <param name="utf8" type="byte[]"/>
  18312. <param name="start" type="int"/>
  18313. <param name="len" type="int"/>
  18314. <exception name="MalformedInputException" type="java.nio.charset.MalformedInputException"/>
  18315. <doc>
  18316. <![CDATA[Check to see if a byte array is valid utf-8
  18317. @param utf8 the array of bytes
  18318. @param start the offset of the first byte in the array
  18319. @param len the length of the byte sequence
  18320. @throws MalformedInputException if the byte array contains invalid bytes]]>
  18321. </doc>
  18322. </method>
  18323. <method name="bytesToCodePoint" return="int"
  18324. abstract="false" native="false" synchronized="false"
  18325. static="true" final="false" visibility="public"
  18326. deprecated="not deprecated">
  18327. <param name="bytes" type="java.nio.ByteBuffer"/>
  18328. <doc>
  18329. <![CDATA[Returns the next code point at the current position in
  18330. the buffer. The buffer's position will be incremented.
  18331. Any mark set on this buffer will be changed by this method!]]>
  18332. </doc>
  18333. </method>
  18334. <method name="utf8Length" return="int"
  18335. abstract="false" native="false" synchronized="false"
  18336. static="true" final="false" visibility="public"
  18337. deprecated="not deprecated">
  18338. <param name="string" type="java.lang.String"/>
  18339. <doc>
  18340. <![CDATA[For the given string, returns the number of UTF-8 bytes
  18341. required to encode the string.
  18342. @param string text to encode
  18343. @return number of UTF-8 bytes required to encode]]>
  18344. </doc>
  18345. </method>
  18346. <doc>
  18347. <![CDATA[This class stores text using standard UTF8 encoding. It provides methods
  18348. to serialize, deserialize, and compare texts at byte level. The type of
  18349. length is integer and is serialized using zero-compressed format. <p>In
  18350. addition, it provides methods for string traversal without converting the
  18351. byte array to a string. <p>Also includes utilities for
  18352. serializing/deserialing a string, coding/decoding a string, checking if a
  18353. byte array contains valid UTF8 code, calculating the length of an encoded
  18354. string.]]>
  18355. </doc>
  18356. </class>
  18357. <!-- end class org.apache.hadoop.io.Text -->
  18358. <!-- start class org.apache.hadoop.io.Text.Comparator -->
  18359. <class name="Text.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  18360. abstract="false"
  18361. static="true" final="false" visibility="public"
  18362. deprecated="not deprecated">
  18363. <constructor name="Text.Comparator"
  18364. static="false" final="false" visibility="public"
  18365. deprecated="not deprecated">
  18366. </constructor>
  18367. <method name="compare" return="int"
  18368. abstract="false" native="false" synchronized="false"
  18369. static="false" final="false" visibility="public"
  18370. deprecated="not deprecated">
  18371. <param name="b1" type="byte[]"/>
  18372. <param name="s1" type="int"/>
  18373. <param name="l1" type="int"/>
  18374. <param name="b2" type="byte[]"/>
  18375. <param name="s2" type="int"/>
  18376. <param name="l2" type="int"/>
  18377. </method>
  18378. <doc>
  18379. <![CDATA[A WritableComparator optimized for Text keys.]]>
  18380. </doc>
  18381. </class>
  18382. <!-- end class org.apache.hadoop.io.Text.Comparator -->
  18383. <!-- start class org.apache.hadoop.io.TwoDArrayWritable -->
  18384. <class name="TwoDArrayWritable" extends="java.lang.Object"
  18385. abstract="false"
  18386. static="false" final="false" visibility="public"
  18387. deprecated="not deprecated">
  18388. <implements name="org.apache.hadoop.io.Writable"/>
  18389. <constructor name="TwoDArrayWritable" type="java.lang.Class"
  18390. static="false" final="false" visibility="public"
  18391. deprecated="not deprecated">
  18392. </constructor>
  18393. <constructor name="TwoDArrayWritable" type="java.lang.Class, org.apache.hadoop.io.Writable[][]"
  18394. static="false" final="false" visibility="public"
  18395. deprecated="not deprecated">
  18396. </constructor>
  18397. <method name="toArray" return="java.lang.Object"
  18398. abstract="false" native="false" synchronized="false"
  18399. static="false" final="false" visibility="public"
  18400. deprecated="not deprecated">
  18401. </method>
  18402. <method name="set"
  18403. abstract="false" native="false" synchronized="false"
  18404. static="false" final="false" visibility="public"
  18405. deprecated="not deprecated">
  18406. <param name="values" type="org.apache.hadoop.io.Writable[][]"/>
  18407. </method>
  18408. <method name="get" return="org.apache.hadoop.io.Writable[][]"
  18409. abstract="false" native="false" synchronized="false"
  18410. static="false" final="false" visibility="public"
  18411. deprecated="not deprecated">
  18412. </method>
  18413. <method name="readFields"
  18414. abstract="false" native="false" synchronized="false"
  18415. static="false" final="false" visibility="public"
  18416. deprecated="not deprecated">
  18417. <param name="in" type="java.io.DataInput"/>
  18418. <exception name="IOException" type="java.io.IOException"/>
  18419. </method>
  18420. <method name="write"
  18421. abstract="false" native="false" synchronized="false"
  18422. static="false" final="false" visibility="public"
  18423. deprecated="not deprecated">
  18424. <param name="out" type="java.io.DataOutput"/>
  18425. <exception name="IOException" type="java.io.IOException"/>
  18426. </method>
  18427. <doc>
  18428. <![CDATA[A Writable for 2D arrays containing a matrix of instances of a class.]]>
  18429. </doc>
  18430. </class>
  18431. <!-- end class org.apache.hadoop.io.TwoDArrayWritable -->
  18432. <!-- start class org.apache.hadoop.io.UTF8 -->
  18433. <class name="UTF8" extends="java.lang.Object"
  18434. abstract="false"
  18435. static="false" final="false" visibility="public"
  18436. deprecated="replaced by Text">
  18437. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18438. <constructor name="UTF8"
  18439. static="false" final="false" visibility="public"
  18440. deprecated="not deprecated">
  18441. </constructor>
  18442. <constructor name="UTF8" type="java.lang.String"
  18443. static="false" final="false" visibility="public"
  18444. deprecated="not deprecated">
  18445. <doc>
  18446. <![CDATA[Construct from a given string.]]>
  18447. </doc>
  18448. </constructor>
  18449. <constructor name="UTF8" type="org.apache.hadoop.io.UTF8"
  18450. static="false" final="false" visibility="public"
  18451. deprecated="not deprecated">
  18452. <doc>
  18453. <![CDATA[Construct from a given string.]]>
  18454. </doc>
  18455. </constructor>
  18456. <method name="getBytes" return="byte[]"
  18457. abstract="false" native="false" synchronized="false"
  18458. static="false" final="false" visibility="public"
  18459. deprecated="not deprecated">
  18460. <doc>
  18461. <![CDATA[The raw bytes.]]>
  18462. </doc>
  18463. </method>
  18464. <method name="getLength" return="int"
  18465. abstract="false" native="false" synchronized="false"
  18466. static="false" final="false" visibility="public"
  18467. deprecated="not deprecated">
  18468. <doc>
  18469. <![CDATA[The number of bytes in the encoded string.]]>
  18470. </doc>
  18471. </method>
  18472. <method name="set"
  18473. abstract="false" native="false" synchronized="false"
  18474. static="false" final="false" visibility="public"
  18475. deprecated="not deprecated">
  18476. <param name="string" type="java.lang.String"/>
  18477. <doc>
  18478. <![CDATA[Set to contain the contents of a string.]]>
  18479. </doc>
  18480. </method>
  18481. <method name="set"
  18482. abstract="false" native="false" synchronized="false"
  18483. static="false" final="false" visibility="public"
  18484. deprecated="not deprecated">
  18485. <param name="other" type="org.apache.hadoop.io.UTF8"/>
  18486. <doc>
  18487. <![CDATA[Set to contain the contents of a string.]]>
  18488. </doc>
  18489. </method>
  18490. <method name="readFields"
  18491. abstract="false" native="false" synchronized="false"
  18492. static="false" final="false" visibility="public"
  18493. deprecated="not deprecated">
  18494. <param name="in" type="java.io.DataInput"/>
  18495. <exception name="IOException" type="java.io.IOException"/>
  18496. </method>
  18497. <method name="skip"
  18498. abstract="false" native="false" synchronized="false"
  18499. static="true" final="false" visibility="public"
  18500. deprecated="not deprecated">
  18501. <param name="in" type="java.io.DataInput"/>
  18502. <exception name="IOException" type="java.io.IOException"/>
  18503. <doc>
  18504. <![CDATA[Skips over one UTF8 in the input.]]>
  18505. </doc>
  18506. </method>
  18507. <method name="write"
  18508. abstract="false" native="false" synchronized="false"
  18509. static="false" final="false" visibility="public"
  18510. deprecated="not deprecated">
  18511. <param name="out" type="java.io.DataOutput"/>
  18512. <exception name="IOException" type="java.io.IOException"/>
  18513. </method>
  18514. <method name="compareTo" return="int"
  18515. abstract="false" native="false" synchronized="false"
  18516. static="false" final="false" visibility="public"
  18517. deprecated="not deprecated">
  18518. <param name="o" type="java.lang.Object"/>
  18519. <doc>
  18520. <![CDATA[Compare two UTF8s.]]>
  18521. </doc>
  18522. </method>
  18523. <method name="toString" return="java.lang.String"
  18524. abstract="false" native="false" synchronized="false"
  18525. static="false" final="false" visibility="public"
  18526. deprecated="not deprecated">
  18527. <doc>
  18528. <![CDATA[Convert to a String.]]>
  18529. </doc>
  18530. </method>
  18531. <method name="equals" return="boolean"
  18532. abstract="false" native="false" synchronized="false"
  18533. static="false" final="false" visibility="public"
  18534. deprecated="not deprecated">
  18535. <param name="o" type="java.lang.Object"/>
  18536. <doc>
  18537. <![CDATA[Returns true iff <code>o</code> is a UTF8 with the same contents.]]>
  18538. </doc>
  18539. </method>
  18540. <method name="hashCode" return="int"
  18541. abstract="false" native="false" synchronized="false"
  18542. static="false" final="false" visibility="public"
  18543. deprecated="not deprecated">
  18544. </method>
  18545. <method name="getBytes" return="byte[]"
  18546. abstract="false" native="false" synchronized="false"
  18547. static="true" final="false" visibility="public"
  18548. deprecated="not deprecated">
  18549. <param name="string" type="java.lang.String"/>
  18550. <doc>
  18551. <![CDATA[Convert a string to a UTF-8 encoded byte array.
  18552. @see String#getBytes(String)]]>
  18553. </doc>
  18554. </method>
  18555. <method name="readString" return="java.lang.String"
  18556. abstract="false" native="false" synchronized="false"
  18557. static="true" final="false" visibility="public"
  18558. deprecated="not deprecated">
  18559. <param name="in" type="java.io.DataInput"/>
  18560. <exception name="IOException" type="java.io.IOException"/>
  18561. <doc>
  18562. <![CDATA[Read a UTF-8 encoded string.
  18563. @see DataInput#readUTF()]]>
  18564. </doc>
  18565. </method>
  18566. <method name="writeString" return="int"
  18567. abstract="false" native="false" synchronized="false"
  18568. static="true" final="false" visibility="public"
  18569. deprecated="not deprecated">
  18570. <param name="out" type="java.io.DataOutput"/>
  18571. <param name="s" type="java.lang.String"/>
  18572. <exception name="IOException" type="java.io.IOException"/>
  18573. <doc>
  18574. <![CDATA[Write a UTF-8 encoded string.
  18575. @see DataOutput#writeUTF(String)]]>
  18576. </doc>
  18577. </method>
  18578. <doc>
  18579. <![CDATA[A WritableComparable for strings that uses the UTF8 encoding.
  18580. <p>Also includes utilities for efficiently reading and writing UTF-8.
  18581. @deprecated replaced by Text]]>
  18582. </doc>
  18583. </class>
  18584. <!-- end class org.apache.hadoop.io.UTF8 -->
  18585. <!-- start class org.apache.hadoop.io.UTF8.Comparator -->
  18586. <class name="UTF8.Comparator" extends="org.apache.hadoop.io.WritableComparator"
  18587. abstract="false"
  18588. static="true" final="false" visibility="public"
  18589. deprecated="not deprecated">
  18590. <constructor name="UTF8.Comparator"
  18591. static="false" final="false" visibility="public"
  18592. deprecated="not deprecated">
  18593. </constructor>
  18594. <method name="compare" return="int"
  18595. abstract="false" native="false" synchronized="false"
  18596. static="false" final="false" visibility="public"
  18597. deprecated="not deprecated">
  18598. <param name="b1" type="byte[]"/>
  18599. <param name="s1" type="int"/>
  18600. <param name="l1" type="int"/>
  18601. <param name="b2" type="byte[]"/>
  18602. <param name="s2" type="int"/>
  18603. <param name="l2" type="int"/>
  18604. </method>
  18605. <doc>
  18606. <![CDATA[A WritableComparator optimized for UTF8 keys.]]>
  18607. </doc>
  18608. </class>
  18609. <!-- end class org.apache.hadoop.io.UTF8.Comparator -->
  18610. <!-- start class org.apache.hadoop.io.VersionedWritable -->
  18611. <class name="VersionedWritable" extends="java.lang.Object"
  18612. abstract="true"
  18613. static="false" final="false" visibility="public"
  18614. deprecated="not deprecated">
  18615. <implements name="org.apache.hadoop.io.Writable"/>
  18616. <constructor name="VersionedWritable"
  18617. static="false" final="false" visibility="public"
  18618. deprecated="not deprecated">
  18619. </constructor>
  18620. <method name="getVersion" return="byte"
  18621. abstract="true" native="false" synchronized="false"
  18622. static="false" final="false" visibility="public"
  18623. deprecated="not deprecated">
  18624. <doc>
  18625. <![CDATA[Return the version number of the current implementation.]]>
  18626. </doc>
  18627. </method>
  18628. <method name="write"
  18629. abstract="false" native="false" synchronized="false"
  18630. static="false" final="false" visibility="public"
  18631. deprecated="not deprecated">
  18632. <param name="out" type="java.io.DataOutput"/>
  18633. <exception name="IOException" type="java.io.IOException"/>
  18634. </method>
  18635. <method name="readFields"
  18636. abstract="false" native="false" synchronized="false"
  18637. static="false" final="false" visibility="public"
  18638. deprecated="not deprecated">
  18639. <param name="in" type="java.io.DataInput"/>
  18640. <exception name="IOException" type="java.io.IOException"/>
  18641. </method>
  18642. <doc>
  18643. <![CDATA[A base class for Writables that provides version checking.
  18644. <p>This is useful when a class may evolve, so that instances written by the
  18645. old version of the class may still be processed by the new version. To
  18646. handle this situation, {@link #readFields(DataInput)}
  18647. implementations should catch {@link VersionMismatchException}.]]>
  18648. </doc>
  18649. </class>
  18650. <!-- end class org.apache.hadoop.io.VersionedWritable -->
  18651. <!-- start class org.apache.hadoop.io.VersionMismatchException -->
  18652. <class name="VersionMismatchException" extends="java.io.IOException"
  18653. abstract="false"
  18654. static="false" final="false" visibility="public"
  18655. deprecated="not deprecated">
  18656. <constructor name="VersionMismatchException" type="byte, byte"
  18657. static="false" final="false" visibility="public"
  18658. deprecated="not deprecated">
  18659. </constructor>
  18660. <method name="toString" return="java.lang.String"
  18661. abstract="false" native="false" synchronized="false"
  18662. static="false" final="false" visibility="public"
  18663. deprecated="not deprecated">
  18664. <doc>
  18665. <![CDATA[Returns a string representation of this object.]]>
  18666. </doc>
  18667. </method>
  18668. <doc>
  18669. <![CDATA[Thrown by {@link VersionedWritable#readFields(DataInput)} when the
  18670. version of an object being read does not match the current implementation
  18671. version as returned by {@link VersionedWritable#getVersion()}.]]>
  18672. </doc>
  18673. </class>
  18674. <!-- end class org.apache.hadoop.io.VersionMismatchException -->
  18675. <!-- start class org.apache.hadoop.io.VIntWritable -->
  18676. <class name="VIntWritable" extends="java.lang.Object"
  18677. abstract="false"
  18678. static="false" final="false" visibility="public"
  18679. deprecated="not deprecated">
  18680. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18681. <constructor name="VIntWritable"
  18682. static="false" final="false" visibility="public"
  18683. deprecated="not deprecated">
  18684. </constructor>
  18685. <constructor name="VIntWritable" type="int"
  18686. static="false" final="false" visibility="public"
  18687. deprecated="not deprecated">
  18688. </constructor>
  18689. <method name="set"
  18690. abstract="false" native="false" synchronized="false"
  18691. static="false" final="false" visibility="public"
  18692. deprecated="not deprecated">
  18693. <param name="value" type="int"/>
  18694. <doc>
  18695. <![CDATA[Set the value of this VIntWritable.]]>
  18696. </doc>
  18697. </method>
  18698. <method name="get" return="int"
  18699. abstract="false" native="false" synchronized="false"
  18700. static="false" final="false" visibility="public"
  18701. deprecated="not deprecated">
  18702. <doc>
  18703. <![CDATA[Return the value of this VIntWritable.]]>
  18704. </doc>
  18705. </method>
  18706. <method name="readFields"
  18707. abstract="false" native="false" synchronized="false"
  18708. static="false" final="false" visibility="public"
  18709. deprecated="not deprecated">
  18710. <param name="in" type="java.io.DataInput"/>
  18711. <exception name="IOException" type="java.io.IOException"/>
  18712. </method>
  18713. <method name="write"
  18714. abstract="false" native="false" synchronized="false"
  18715. static="false" final="false" visibility="public"
  18716. deprecated="not deprecated">
  18717. <param name="out" type="java.io.DataOutput"/>
  18718. <exception name="IOException" type="java.io.IOException"/>
  18719. </method>
  18720. <method name="equals" return="boolean"
  18721. abstract="false" native="false" synchronized="false"
  18722. static="false" final="false" visibility="public"
  18723. deprecated="not deprecated">
  18724. <param name="o" type="java.lang.Object"/>
  18725. <doc>
  18726. <![CDATA[Returns true iff <code>o</code> is a VIntWritable with the same value.]]>
  18727. </doc>
  18728. </method>
  18729. <method name="hashCode" return="int"
  18730. abstract="false" native="false" synchronized="false"
  18731. static="false" final="false" visibility="public"
  18732. deprecated="not deprecated">
  18733. </method>
  18734. <method name="compareTo" return="int"
  18735. abstract="false" native="false" synchronized="false"
  18736. static="false" final="false" visibility="public"
  18737. deprecated="not deprecated">
  18738. <param name="o" type="java.lang.Object"/>
  18739. <doc>
  18740. <![CDATA[Compares two VIntWritables.]]>
  18741. </doc>
  18742. </method>
  18743. <method name="toString" return="java.lang.String"
  18744. abstract="false" native="false" synchronized="false"
  18745. static="false" final="false" visibility="public"
  18746. deprecated="not deprecated">
  18747. </method>
  18748. <doc>
  18749. <![CDATA[A WritableComparable for integer values stored in variable-length format.
  18750. Such values take between one and five bytes. Smaller values take fewer bytes.
  18751. @see org.apache.hadoop.io.WritableUtils#readVInt(DataInput)]]>
  18752. </doc>
  18753. </class>
  18754. <!-- end class org.apache.hadoop.io.VIntWritable -->
  18755. <!-- start class org.apache.hadoop.io.VLongWritable -->
  18756. <class name="VLongWritable" extends="java.lang.Object"
  18757. abstract="false"
  18758. static="false" final="false" visibility="public"
  18759. deprecated="not deprecated">
  18760. <implements name="org.apache.hadoop.io.WritableComparable"/>
  18761. <constructor name="VLongWritable"
  18762. static="false" final="false" visibility="public"
  18763. deprecated="not deprecated">
  18764. </constructor>
  18765. <constructor name="VLongWritable" type="long"
  18766. static="false" final="false" visibility="public"
  18767. deprecated="not deprecated">
  18768. </constructor>
  18769. <method name="set"
  18770. abstract="false" native="false" synchronized="false"
  18771. static="false" final="false" visibility="public"
  18772. deprecated="not deprecated">
  18773. <param name="value" type="long"/>
  18774. <doc>
  18775. <![CDATA[Set the value of this LongWritable.]]>
  18776. </doc>
  18777. </method>
  18778. <method name="get" return="long"
  18779. abstract="false" native="false" synchronized="false"
  18780. static="false" final="false" visibility="public"
  18781. deprecated="not deprecated">
  18782. <doc>
  18783. <![CDATA[Return the value of this LongWritable.]]>
  18784. </doc>
  18785. </method>
  18786. <method name="readFields"
  18787. abstract="false" native="false" synchronized="false"
  18788. static="false" final="false" visibility="public"
  18789. deprecated="not deprecated">
  18790. <param name="in" type="java.io.DataInput"/>
  18791. <exception name="IOException" type="java.io.IOException"/>
  18792. </method>
  18793. <method name="write"
  18794. abstract="false" native="false" synchronized="false"
  18795. static="false" final="false" visibility="public"
  18796. deprecated="not deprecated">
  18797. <param name="out" type="java.io.DataOutput"/>
  18798. <exception name="IOException" type="java.io.IOException"/>
  18799. </method>
  18800. <method name="equals" return="boolean"
  18801. abstract="false" native="false" synchronized="false"
  18802. static="false" final="false" visibility="public"
  18803. deprecated="not deprecated">
  18804. <param name="o" type="java.lang.Object"/>
  18805. <doc>
  18806. <![CDATA[Returns true iff <code>o</code> is a VLongWritable with the same value.]]>
  18807. </doc>
  18808. </method>
  18809. <method name="hashCode" return="int"
  18810. abstract="false" native="false" synchronized="false"
  18811. static="false" final="false" visibility="public"
  18812. deprecated="not deprecated">
  18813. </method>
  18814. <method name="compareTo" return="int"
  18815. abstract="false" native="false" synchronized="false"
  18816. static="false" final="false" visibility="public"
  18817. deprecated="not deprecated">
  18818. <param name="o" type="java.lang.Object"/>
  18819. <doc>
  18820. <![CDATA[Compares two VLongWritables.]]>
  18821. </doc>
  18822. </method>
  18823. <method name="toString" return="java.lang.String"
  18824. abstract="false" native="false" synchronized="false"
  18825. static="false" final="false" visibility="public"
  18826. deprecated="not deprecated">
  18827. </method>
  18828. <doc>
  18829. <![CDATA[A WritableComparable for longs in a variable-length format. Such values take
  18830. between one and five bytes. Smaller values take fewer bytes.
  18831. @see org.apache.hadoop.io.WritableUtils#readVLong(DataInput)]]>
  18832. </doc>
  18833. </class>
  18834. <!-- end class org.apache.hadoop.io.VLongWritable -->
  18835. <!-- start interface org.apache.hadoop.io.Writable -->
  18836. <interface name="Writable" abstract="true"
  18837. static="false" final="false" visibility="public"
  18838. deprecated="not deprecated">
  18839. <method name="write"
  18840. abstract="false" native="false" synchronized="false"
  18841. static="false" final="false" visibility="public"
  18842. deprecated="not deprecated">
  18843. <param name="out" type="java.io.DataOutput"/>
  18844. <exception name="IOException" type="java.io.IOException"/>
  18845. <doc>
  18846. <![CDATA[Serialize the fields of this object to <code>out</code>.
  18847. @param out <code>DataOuput</code> to serialize this object into.
  18848. @throws IOException]]>
  18849. </doc>
  18850. </method>
  18851. <method name="readFields"
  18852. abstract="false" native="false" synchronized="false"
  18853. static="false" final="false" visibility="public"
  18854. deprecated="not deprecated">
  18855. <param name="in" type="java.io.DataInput"/>
  18856. <exception name="IOException" type="java.io.IOException"/>
  18857. <doc>
  18858. <![CDATA[Deserialize the fields of this object from <code>in</code>.
  18859. <p>For efficiency, implementations should attempt to re-use storage in the
  18860. existing object where possible.</p>
  18861. @param in <code>DataInput</code> to deseriablize this object from.
  18862. @throws IOException]]>
  18863. </doc>
  18864. </method>
  18865. <doc>
  18866. <![CDATA[A serializable object which implements a simple, efficient, serialization
  18867. protocol, based on {@link DataInput} and {@link DataOutput}.
  18868. <p>Any <code>key</code> or <code>value</code> type in the Hadoop Map-Reduce
  18869. framework implements this interface.</p>
  18870. <p>Implementations typically implement a static <code>read(DataInput)</code>
  18871. method which constructs a new instance, calls {@link #readFields(DataInput)}
  18872. and returns the instance.</p>
  18873. <p>Example:</p>
  18874. <p><blockquote><pre>
  18875. public class MyWritable implements Writable {
  18876. // Some data
  18877. private int counter;
  18878. private long timestamp;
  18879. public void write(DataOutput out) throws IOException {
  18880. out.writeInt(counter);
  18881. out.writeLong(timestamp);
  18882. }
  18883. public void readFields(DataInput in) throws IOException {
  18884. counter = in.readInt();
  18885. timestamp = in.readLong();
  18886. }
  18887. public static MyWritable read(DataInput in) throws IOException {
  18888. MyWritable w = new MyWritable();
  18889. w.readFields(in);
  18890. return w;
  18891. }
  18892. }
  18893. </pre></blockquote></p>]]>
  18894. </doc>
  18895. </interface>
  18896. <!-- end interface org.apache.hadoop.io.Writable -->
  18897. <!-- start interface org.apache.hadoop.io.WritableComparable -->
  18898. <interface name="WritableComparable" abstract="true"
  18899. static="false" final="false" visibility="public"
  18900. deprecated="not deprecated">
  18901. <implements name="org.apache.hadoop.io.Writable"/>
  18902. <implements name="java.lang.Comparable&lt;T&gt;"/>
  18903. <doc>
  18904. <![CDATA[A {@link Writable} which is also {@link Comparable}.
  18905. <p><code>WritableComparable</code>s can be compared to each other, typically
  18906. via <code>Comparator</code>s. Any type which is to be used as a
  18907. <code>key</code> in the Hadoop Map-Reduce framework should implement this
  18908. interface.</p>
  18909. <p>Example:</p>
  18910. <p><blockquote><pre>
  18911. public class MyWritableComparable implements WritableComparable {
  18912. // Some data
  18913. private int counter;
  18914. private long timestamp;
  18915. public void write(DataOutput out) throws IOException {
  18916. out.writeInt(counter);
  18917. out.writeLong(timestamp);
  18918. }
  18919. public void readFields(DataInput in) throws IOException {
  18920. counter = in.readInt();
  18921. timestamp = in.readLong();
  18922. }
  18923. public int compareTo(MyWritableComparable w) {
  18924. int thisValue = this.value;
  18925. int thatValue = ((IntWritable)o).value;
  18926. return (thisValue &lt; thatValue ? -1 : (thisValue==thatValue ? 0 : 1));
  18927. }
  18928. }
  18929. </pre></blockquote></p>]]>
  18930. </doc>
  18931. </interface>
  18932. <!-- end interface org.apache.hadoop.io.WritableComparable -->
  18933. <!-- start class org.apache.hadoop.io.WritableComparator -->
  18934. <class name="WritableComparator" extends="java.lang.Object"
  18935. abstract="false"
  18936. static="false" final="false" visibility="public"
  18937. deprecated="not deprecated">
  18938. <implements name="org.apache.hadoop.io.RawComparator"/>
  18939. <constructor name="WritableComparator" type="java.lang.Class"
  18940. static="false" final="false" visibility="protected"
  18941. deprecated="not deprecated">
  18942. <doc>
  18943. <![CDATA[Construct for a {@link WritableComparable} implementation.]]>
  18944. </doc>
  18945. </constructor>
  18946. <constructor name="WritableComparator" type="java.lang.Class, boolean"
  18947. static="false" final="false" visibility="protected"
  18948. deprecated="not deprecated">
  18949. </constructor>
  18950. <method name="get" return="org.apache.hadoop.io.WritableComparator"
  18951. abstract="false" native="false" synchronized="true"
  18952. static="true" final="false" visibility="public"
  18953. deprecated="not deprecated">
  18954. <param name="c" type="java.lang.Class"/>
  18955. <doc>
  18956. <![CDATA[Get a comparator for a {@link WritableComparable} implementation.]]>
  18957. </doc>
  18958. </method>
  18959. <method name="define"
  18960. abstract="false" native="false" synchronized="true"
  18961. static="true" final="false" visibility="public"
  18962. deprecated="not deprecated">
  18963. <param name="c" type="java.lang.Class"/>
  18964. <param name="comparator" type="org.apache.hadoop.io.WritableComparator"/>
  18965. <doc>
  18966. <![CDATA[Register an optimized comparator for a {@link WritableComparable}
  18967. implementation.]]>
  18968. </doc>
  18969. </method>
  18970. <method name="getKeyClass" return="java.lang.Class"
  18971. abstract="false" native="false" synchronized="false"
  18972. static="false" final="false" visibility="public"
  18973. deprecated="not deprecated">
  18974. <doc>
  18975. <![CDATA[Returns the WritableComparable implementation class.]]>
  18976. </doc>
  18977. </method>
  18978. <method name="newKey" return="org.apache.hadoop.io.WritableComparable"
  18979. abstract="false" native="false" synchronized="false"
  18980. static="false" final="false" visibility="public"
  18981. deprecated="not deprecated">
  18982. <doc>
  18983. <![CDATA[Construct a new {@link WritableComparable} instance.]]>
  18984. </doc>
  18985. </method>
  18986. <method name="compare" return="int"
  18987. abstract="false" native="false" synchronized="false"
  18988. static="false" final="false" visibility="public"
  18989. deprecated="not deprecated">
  18990. <param name="b1" type="byte[]"/>
  18991. <param name="s1" type="int"/>
  18992. <param name="l1" type="int"/>
  18993. <param name="b2" type="byte[]"/>
  18994. <param name="s2" type="int"/>
  18995. <param name="l2" type="int"/>
  18996. <doc>
  18997. <![CDATA[Optimization hook. Override this to make SequenceFile.Sorter's scream.
  18998. <p>The default implementation reads the data into two {@link
  18999. WritableComparable}s (using {@link
  19000. Writable#readFields(DataInput)}, then calls {@link
  19001. #compare(WritableComparable,WritableComparable)}.]]>
  19002. </doc>
  19003. </method>
  19004. <method name="compare" return="int"
  19005. abstract="false" native="false" synchronized="false"
  19006. static="false" final="false" visibility="public"
  19007. deprecated="not deprecated">
  19008. <param name="a" type="org.apache.hadoop.io.WritableComparable"/>
  19009. <param name="b" type="org.apache.hadoop.io.WritableComparable"/>
  19010. <doc>
  19011. <![CDATA[Compare two WritableComparables.
  19012. <p> The default implementation uses the natural ordering, calling {@link
  19013. Comparable#compareTo(Object)}.]]>
  19014. </doc>
  19015. </method>
  19016. <method name="compare" return="int"
  19017. abstract="false" native="false" synchronized="false"
  19018. static="false" final="false" visibility="public"
  19019. deprecated="not deprecated">
  19020. <param name="a" type="java.lang.Object"/>
  19021. <param name="b" type="java.lang.Object"/>
  19022. </method>
  19023. <method name="compareBytes" return="int"
  19024. abstract="false" native="false" synchronized="false"
  19025. static="true" final="false" visibility="public"
  19026. deprecated="not deprecated">
  19027. <param name="b1" type="byte[]"/>
  19028. <param name="s1" type="int"/>
  19029. <param name="l1" type="int"/>
  19030. <param name="b2" type="byte[]"/>
  19031. <param name="s2" type="int"/>
  19032. <param name="l2" type="int"/>
  19033. <doc>
  19034. <![CDATA[Lexicographic order of binary data.]]>
  19035. </doc>
  19036. </method>
  19037. <method name="hashBytes" return="int"
  19038. abstract="false" native="false" synchronized="false"
  19039. static="true" final="false" visibility="public"
  19040. deprecated="not deprecated">
  19041. <param name="bytes" type="byte[]"/>
  19042. <param name="length" type="int"/>
  19043. <doc>
  19044. <![CDATA[Compute hash for binary data.]]>
  19045. </doc>
  19046. </method>
  19047. <method name="readUnsignedShort" return="int"
  19048. abstract="false" native="false" synchronized="false"
  19049. static="true" final="false" visibility="public"
  19050. deprecated="not deprecated">
  19051. <param name="bytes" type="byte[]"/>
  19052. <param name="start" type="int"/>
  19053. <doc>
  19054. <![CDATA[Parse an unsigned short from a byte array.]]>
  19055. </doc>
  19056. </method>
  19057. <method name="readInt" return="int"
  19058. abstract="false" native="false" synchronized="false"
  19059. static="true" final="false" visibility="public"
  19060. deprecated="not deprecated">
  19061. <param name="bytes" type="byte[]"/>
  19062. <param name="start" type="int"/>
  19063. <doc>
  19064. <![CDATA[Parse an integer from a byte array.]]>
  19065. </doc>
  19066. </method>
  19067. <method name="readFloat" return="float"
  19068. abstract="false" native="false" synchronized="false"
  19069. static="true" final="false" visibility="public"
  19070. deprecated="not deprecated">
  19071. <param name="bytes" type="byte[]"/>
  19072. <param name="start" type="int"/>
  19073. <doc>
  19074. <![CDATA[Parse a float from a byte array.]]>
  19075. </doc>
  19076. </method>
  19077. <method name="readLong" return="long"
  19078. abstract="false" native="false" synchronized="false"
  19079. static="true" final="false" visibility="public"
  19080. deprecated="not deprecated">
  19081. <param name="bytes" type="byte[]"/>
  19082. <param name="start" type="int"/>
  19083. <doc>
  19084. <![CDATA[Parse a long from a byte array.]]>
  19085. </doc>
  19086. </method>
  19087. <method name="readDouble" return="double"
  19088. abstract="false" native="false" synchronized="false"
  19089. static="true" final="false" visibility="public"
  19090. deprecated="not deprecated">
  19091. <param name="bytes" type="byte[]"/>
  19092. <param name="start" type="int"/>
  19093. <doc>
  19094. <![CDATA[Parse a double from a byte array.]]>
  19095. </doc>
  19096. </method>
  19097. <method name="readVLong" return="long"
  19098. abstract="false" native="false" synchronized="false"
  19099. static="true" final="false" visibility="public"
  19100. deprecated="not deprecated">
  19101. <param name="bytes" type="byte[]"/>
  19102. <param name="start" type="int"/>
  19103. <exception name="IOException" type="java.io.IOException"/>
  19104. <doc>
  19105. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  19106. @param bytes byte array with decode long
  19107. @param start starting index
  19108. @throws java.io.IOException
  19109. @return deserialized long]]>
  19110. </doc>
  19111. </method>
  19112. <method name="readVInt" return="int"
  19113. abstract="false" native="false" synchronized="false"
  19114. static="true" final="false" visibility="public"
  19115. deprecated="not deprecated">
  19116. <param name="bytes" type="byte[]"/>
  19117. <param name="start" type="int"/>
  19118. <exception name="IOException" type="java.io.IOException"/>
  19119. <doc>
  19120. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  19121. @param bytes byte array with the encoded integer
  19122. @param start start index
  19123. @throws java.io.IOException
  19124. @return deserialized integer]]>
  19125. </doc>
  19126. </method>
  19127. <doc>
  19128. <![CDATA[A Comparator for {@link WritableComparable}s.
  19129. <p>This base implemenation uses the natural ordering. To define alternate
  19130. orderings, override {@link #compare(WritableComparable,WritableComparable)}.
  19131. <p>One may optimize compare-intensive operations by overriding
  19132. {@link #compare(byte[],int,int,byte[],int,int)}. Static utility methods are
  19133. provided to assist in optimized implementations of this method.]]>
  19134. </doc>
  19135. </class>
  19136. <!-- end class org.apache.hadoop.io.WritableComparator -->
  19137. <!-- start class org.apache.hadoop.io.WritableFactories -->
  19138. <class name="WritableFactories" extends="java.lang.Object"
  19139. abstract="false"
  19140. static="false" final="false" visibility="public"
  19141. deprecated="not deprecated">
  19142. <method name="setFactory"
  19143. abstract="false" native="false" synchronized="true"
  19144. static="true" final="false" visibility="public"
  19145. deprecated="not deprecated">
  19146. <param name="c" type="java.lang.Class"/>
  19147. <param name="factory" type="org.apache.hadoop.io.WritableFactory"/>
  19148. <doc>
  19149. <![CDATA[Define a factory for a class.]]>
  19150. </doc>
  19151. </method>
  19152. <method name="getFactory" return="org.apache.hadoop.io.WritableFactory"
  19153. abstract="false" native="false" synchronized="true"
  19154. static="true" final="false" visibility="public"
  19155. deprecated="not deprecated">
  19156. <param name="c" type="java.lang.Class"/>
  19157. <doc>
  19158. <![CDATA[Define a factory for a class.]]>
  19159. </doc>
  19160. </method>
  19161. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  19162. abstract="false" native="false" synchronized="false"
  19163. static="true" final="false" visibility="public"
  19164. deprecated="not deprecated">
  19165. <param name="c" type="java.lang.Class"/>
  19166. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19167. <doc>
  19168. <![CDATA[Create a new instance of a class with a defined factory.]]>
  19169. </doc>
  19170. </method>
  19171. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  19172. abstract="false" native="false" synchronized="false"
  19173. static="true" final="false" visibility="public"
  19174. deprecated="not deprecated">
  19175. <param name="c" type="java.lang.Class"/>
  19176. <doc>
  19177. <![CDATA[Create a new instance of a class with a defined factory.]]>
  19178. </doc>
  19179. </method>
  19180. <doc>
  19181. <![CDATA[Factories for non-public writables. Defining a factory permits {@link
  19182. ObjectWritable} to be able to construct instances of non-public classes.]]>
  19183. </doc>
  19184. </class>
  19185. <!-- end class org.apache.hadoop.io.WritableFactories -->
  19186. <!-- start interface org.apache.hadoop.io.WritableFactory -->
  19187. <interface name="WritableFactory" abstract="true"
  19188. static="false" final="false" visibility="public"
  19189. deprecated="not deprecated">
  19190. <method name="newInstance" return="org.apache.hadoop.io.Writable"
  19191. abstract="false" native="false" synchronized="false"
  19192. static="false" final="false" visibility="public"
  19193. deprecated="not deprecated">
  19194. <doc>
  19195. <![CDATA[Return a new instance.]]>
  19196. </doc>
  19197. </method>
  19198. <doc>
  19199. <![CDATA[A factory for a class of Writable.
  19200. @see WritableFactories]]>
  19201. </doc>
  19202. </interface>
  19203. <!-- end interface org.apache.hadoop.io.WritableFactory -->
  19204. <!-- start class org.apache.hadoop.io.WritableName -->
  19205. <class name="WritableName" extends="java.lang.Object"
  19206. abstract="false"
  19207. static="false" final="false" visibility="public"
  19208. deprecated="not deprecated">
  19209. <method name="setName"
  19210. abstract="false" native="false" synchronized="true"
  19211. static="true" final="false" visibility="public"
  19212. deprecated="not deprecated">
  19213. <param name="writableClass" type="java.lang.Class"/>
  19214. <param name="name" type="java.lang.String"/>
  19215. <doc>
  19216. <![CDATA[Set the name that a class should be known as to something other than the
  19217. class name.]]>
  19218. </doc>
  19219. </method>
  19220. <method name="addName"
  19221. abstract="false" native="false" synchronized="true"
  19222. static="true" final="false" visibility="public"
  19223. deprecated="not deprecated">
  19224. <param name="writableClass" type="java.lang.Class"/>
  19225. <param name="name" type="java.lang.String"/>
  19226. <doc>
  19227. <![CDATA[Add an alternate name for a class.]]>
  19228. </doc>
  19229. </method>
  19230. <method name="getName" return="java.lang.String"
  19231. abstract="false" native="false" synchronized="true"
  19232. static="true" final="false" visibility="public"
  19233. deprecated="not deprecated">
  19234. <param name="writableClass" type="java.lang.Class"/>
  19235. <doc>
  19236. <![CDATA[Return the name for a class. Default is {@link Class#getName()}.]]>
  19237. </doc>
  19238. </method>
  19239. <method name="getClass" return="java.lang.Class"
  19240. abstract="false" native="false" synchronized="true"
  19241. static="true" final="false" visibility="public"
  19242. deprecated="not deprecated">
  19243. <param name="name" type="java.lang.String"/>
  19244. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19245. <exception name="IOException" type="java.io.IOException"/>
  19246. <doc>
  19247. <![CDATA[Return the class for a name. Default is {@link Class#forName(String)}.]]>
  19248. </doc>
  19249. </method>
  19250. <doc>
  19251. <![CDATA[Utility to permit renaming of Writable implementation classes without
  19252. invalidiating files that contain their class name.]]>
  19253. </doc>
  19254. </class>
  19255. <!-- end class org.apache.hadoop.io.WritableName -->
  19256. <!-- start class org.apache.hadoop.io.WritableUtils -->
  19257. <class name="WritableUtils" extends="java.lang.Object"
  19258. abstract="false"
  19259. static="false" final="true" visibility="public"
  19260. deprecated="not deprecated">
  19261. <constructor name="WritableUtils"
  19262. static="false" final="false" visibility="public"
  19263. deprecated="not deprecated">
  19264. </constructor>
  19265. <method name="readCompressedByteArray" return="byte[]"
  19266. abstract="false" native="false" synchronized="false"
  19267. static="true" final="false" visibility="public"
  19268. deprecated="not deprecated">
  19269. <param name="in" type="java.io.DataInput"/>
  19270. <exception name="IOException" type="java.io.IOException"/>
  19271. </method>
  19272. <method name="skipCompressedByteArray"
  19273. abstract="false" native="false" synchronized="false"
  19274. static="true" final="false" visibility="public"
  19275. deprecated="not deprecated">
  19276. <param name="in" type="java.io.DataInput"/>
  19277. <exception name="IOException" type="java.io.IOException"/>
  19278. </method>
  19279. <method name="writeCompressedByteArray" return="int"
  19280. abstract="false" native="false" synchronized="false"
  19281. static="true" final="false" visibility="public"
  19282. deprecated="not deprecated">
  19283. <param name="out" type="java.io.DataOutput"/>
  19284. <param name="bytes" type="byte[]"/>
  19285. <exception name="IOException" type="java.io.IOException"/>
  19286. </method>
  19287. <method name="readCompressedString" return="java.lang.String"
  19288. abstract="false" native="false" synchronized="false"
  19289. static="true" final="false" visibility="public"
  19290. deprecated="not deprecated">
  19291. <param name="in" type="java.io.DataInput"/>
  19292. <exception name="IOException" type="java.io.IOException"/>
  19293. </method>
  19294. <method name="writeCompressedString" return="int"
  19295. abstract="false" native="false" synchronized="false"
  19296. static="true" final="false" visibility="public"
  19297. deprecated="not deprecated">
  19298. <param name="out" type="java.io.DataOutput"/>
  19299. <param name="s" type="java.lang.String"/>
  19300. <exception name="IOException" type="java.io.IOException"/>
  19301. </method>
  19302. <method name="writeString"
  19303. abstract="false" native="false" synchronized="false"
  19304. static="true" final="false" visibility="public"
  19305. deprecated="not deprecated">
  19306. <param name="out" type="java.io.DataOutput"/>
  19307. <param name="s" type="java.lang.String"/>
  19308. <exception name="IOException" type="java.io.IOException"/>
  19309. </method>
  19310. <method name="readString" return="java.lang.String"
  19311. abstract="false" native="false" synchronized="false"
  19312. static="true" final="false" visibility="public"
  19313. deprecated="not deprecated">
  19314. <param name="in" type="java.io.DataInput"/>
  19315. <exception name="IOException" type="java.io.IOException"/>
  19316. </method>
  19317. <method name="writeStringArray"
  19318. abstract="false" native="false" synchronized="false"
  19319. static="true" final="false" visibility="public"
  19320. deprecated="not deprecated">
  19321. <param name="out" type="java.io.DataOutput"/>
  19322. <param name="s" type="java.lang.String[]"/>
  19323. <exception name="IOException" type="java.io.IOException"/>
  19324. </method>
  19325. <method name="writeCompressedStringArray"
  19326. abstract="false" native="false" synchronized="false"
  19327. static="true" final="false" visibility="public"
  19328. deprecated="not deprecated">
  19329. <param name="out" type="java.io.DataOutput"/>
  19330. <param name="s" type="java.lang.String[]"/>
  19331. <exception name="IOException" type="java.io.IOException"/>
  19332. </method>
  19333. <method name="readStringArray" return="java.lang.String[]"
  19334. abstract="false" native="false" synchronized="false"
  19335. static="true" final="false" visibility="public"
  19336. deprecated="not deprecated">
  19337. <param name="in" type="java.io.DataInput"/>
  19338. <exception name="IOException" type="java.io.IOException"/>
  19339. </method>
  19340. <method name="readCompressedStringArray" return="java.lang.String[]"
  19341. abstract="false" native="false" synchronized="false"
  19342. static="true" final="false" visibility="public"
  19343. deprecated="not deprecated">
  19344. <param name="in" type="java.io.DataInput"/>
  19345. <exception name="IOException" type="java.io.IOException"/>
  19346. </method>
  19347. <method name="displayByteArray"
  19348. abstract="false" native="false" synchronized="false"
  19349. static="true" final="false" visibility="public"
  19350. deprecated="not deprecated">
  19351. <param name="record" type="byte[]"/>
  19352. </method>
  19353. <method name="clone" return="org.apache.hadoop.io.Writable"
  19354. abstract="false" native="false" synchronized="false"
  19355. static="true" final="false" visibility="public"
  19356. deprecated="not deprecated">
  19357. <param name="orig" type="org.apache.hadoop.io.Writable"/>
  19358. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19359. <doc>
  19360. <![CDATA[Make a copy of a writable object using serialization to a buffer.
  19361. @param orig The object to copy
  19362. @return The copied object]]>
  19363. </doc>
  19364. </method>
  19365. <method name="cloneInto"
  19366. abstract="false" native="false" synchronized="false"
  19367. static="true" final="false" visibility="public"
  19368. deprecated="not deprecated">
  19369. <param name="dst" type="org.apache.hadoop.io.Writable"/>
  19370. <param name="src" type="org.apache.hadoop.io.Writable"/>
  19371. <exception name="IOException" type="java.io.IOException"/>
  19372. <doc>
  19373. <![CDATA[Make a copy of the writable object using serialiation to a buffer
  19374. @param dst the object to copy from
  19375. @param src the object to copy into, which is destroyed
  19376. @throws IOException]]>
  19377. </doc>
  19378. </method>
  19379. <method name="writeVInt"
  19380. abstract="false" native="false" synchronized="false"
  19381. static="true" final="false" visibility="public"
  19382. deprecated="not deprecated">
  19383. <param name="stream" type="java.io.DataOutput"/>
  19384. <param name="i" type="int"/>
  19385. <exception name="IOException" type="java.io.IOException"/>
  19386. <doc>
  19387. <![CDATA[Serializes an integer to a binary stream with zero-compressed encoding.
  19388. For -120 <= i <= 127, only one byte is used with the actual value.
  19389. For other values of i, the first byte value indicates whether the
  19390. integer is positive or negative, and the number of bytes that follow.
  19391. If the first byte value v is between -121 and -124, the following integer
  19392. is positive, with number of bytes that follow are -(v+120).
  19393. If the first byte value v is between -125 and -128, the following integer
  19394. is negative, with number of bytes that follow are -(v+124). Bytes are
  19395. stored in the high-non-zero-byte-first order.
  19396. @param stream Binary output stream
  19397. @param i Integer to be serialized
  19398. @throws java.io.IOException]]>
  19399. </doc>
  19400. </method>
  19401. <method name="writeVLong"
  19402. abstract="false" native="false" synchronized="false"
  19403. static="true" final="false" visibility="public"
  19404. deprecated="not deprecated">
  19405. <param name="stream" type="java.io.DataOutput"/>
  19406. <param name="i" type="long"/>
  19407. <exception name="IOException" type="java.io.IOException"/>
  19408. <doc>
  19409. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  19410. For -112 <= i <= 127, only one byte is used with the actual value.
  19411. For other values of i, the first byte value indicates whether the
  19412. long is positive or negative, and the number of bytes that follow.
  19413. If the first byte value v is between -113 and -120, the following long
  19414. is positive, with number of bytes that follow are -(v+112).
  19415. If the first byte value v is between -121 and -128, the following long
  19416. is negative, with number of bytes that follow are -(v+120). Bytes are
  19417. stored in the high-non-zero-byte-first order.
  19418. @param stream Binary output stream
  19419. @param i Long to be serialized
  19420. @throws java.io.IOException]]>
  19421. </doc>
  19422. </method>
  19423. <method name="readVLong" return="long"
  19424. abstract="false" native="false" synchronized="false"
  19425. static="true" final="false" visibility="public"
  19426. deprecated="not deprecated">
  19427. <param name="stream" type="java.io.DataInput"/>
  19428. <exception name="IOException" type="java.io.IOException"/>
  19429. <doc>
  19430. <![CDATA[Reads a zero-compressed encoded long from input stream and returns it.
  19431. @param stream Binary input stream
  19432. @throws java.io.IOException
  19433. @return deserialized long from stream.]]>
  19434. </doc>
  19435. </method>
  19436. <method name="readVInt" return="int"
  19437. abstract="false" native="false" synchronized="false"
  19438. static="true" final="false" visibility="public"
  19439. deprecated="not deprecated">
  19440. <param name="stream" type="java.io.DataInput"/>
  19441. <exception name="IOException" type="java.io.IOException"/>
  19442. <doc>
  19443. <![CDATA[Reads a zero-compressed encoded integer from input stream and returns it.
  19444. @param stream Binary input stream
  19445. @throws java.io.IOException
  19446. @return deserialized integer from stream.]]>
  19447. </doc>
  19448. </method>
  19449. <method name="isNegativeVInt" return="boolean"
  19450. abstract="false" native="false" synchronized="false"
  19451. static="true" final="false" visibility="public"
  19452. deprecated="not deprecated">
  19453. <param name="value" type="byte"/>
  19454. <doc>
  19455. <![CDATA[Given the first byte of a vint/vlong, determine the sign
  19456. @param value the first byte
  19457. @return is the value negative]]>
  19458. </doc>
  19459. </method>
  19460. <method name="decodeVIntSize" return="int"
  19461. abstract="false" native="false" synchronized="false"
  19462. static="true" final="false" visibility="public"
  19463. deprecated="not deprecated">
  19464. <param name="value" type="byte"/>
  19465. <doc>
  19466. <![CDATA[Parse the first byte of a vint/vlong to determine the number of bytes
  19467. @param value the first byte of the vint/vlong
  19468. @return the total number of bytes (1 to 9)]]>
  19469. </doc>
  19470. </method>
  19471. <method name="getVIntSize" return="int"
  19472. abstract="false" native="false" synchronized="false"
  19473. static="true" final="false" visibility="public"
  19474. deprecated="not deprecated">
  19475. <param name="i" type="long"/>
  19476. <doc>
  19477. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  19478. @return the encoded length]]>
  19479. </doc>
  19480. </method>
  19481. <method name="readEnum" return="T extends java.lang.Enum&lt;T&gt;"
  19482. abstract="false" native="false" synchronized="false"
  19483. static="true" final="false" visibility="public"
  19484. deprecated="not deprecated">
  19485. <param name="in" type="java.io.DataInput"/>
  19486. <param name="enumType" type="java.lang.Class&lt;T&gt;"/>
  19487. <exception name="IOException" type="java.io.IOException"/>
  19488. <doc>
  19489. <![CDATA[Read an Enum value from DataInput, Enums are read and written
  19490. using String values.
  19491. @param <T> Enum type
  19492. @param in DataInput to read from
  19493. @param enumType Class type of Enum
  19494. @return Enum represented by String read from DataInput
  19495. @throws IOException]]>
  19496. </doc>
  19497. </method>
  19498. <method name="writeEnum"
  19499. abstract="false" native="false" synchronized="false"
  19500. static="true" final="false" visibility="public"
  19501. deprecated="not deprecated">
  19502. <param name="out" type="java.io.DataOutput"/>
  19503. <param name="enumVal" type="java.lang.Enum"/>
  19504. <exception name="IOException" type="java.io.IOException"/>
  19505. <doc>
  19506. <![CDATA[writes String value of enum to DataOutput.
  19507. @param out Dataoutput stream
  19508. @param enumVal enum value
  19509. @throws IOException]]>
  19510. </doc>
  19511. </method>
  19512. <method name="skipFully"
  19513. abstract="false" native="false" synchronized="false"
  19514. static="true" final="false" visibility="public"
  19515. deprecated="not deprecated">
  19516. <param name="in" type="java.io.DataInput"/>
  19517. <param name="len" type="int"/>
  19518. <exception name="IOException" type="java.io.IOException"/>
  19519. <doc>
  19520. <![CDATA[Skip <i>len</i> number of bytes in input stream<i>in</i>
  19521. @param in input stream
  19522. @param len number of bytes to skip
  19523. @throws IOException when skipped less number of bytes]]>
  19524. </doc>
  19525. </method>
  19526. </class>
  19527. <!-- end class org.apache.hadoop.io.WritableUtils -->
  19528. </package>
  19529. <package name="org.apache.hadoop.io.compress">
  19530. <!-- start class org.apache.hadoop.io.compress.CodecPool -->
  19531. <class name="CodecPool" extends="java.lang.Object"
  19532. abstract="false"
  19533. static="false" final="false" visibility="public"
  19534. deprecated="not deprecated">
  19535. <constructor name="CodecPool"
  19536. static="false" final="false" visibility="public"
  19537. deprecated="not deprecated">
  19538. </constructor>
  19539. <method name="getCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19540. abstract="false" native="false" synchronized="false"
  19541. static="true" final="false" visibility="public"
  19542. deprecated="not deprecated">
  19543. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19544. <doc>
  19545. <![CDATA[Get a {@link Compressor} for the given {@link CompressionCodec} from the
  19546. pool or a new one.
  19547. @param codec the <code>CompressionCodec</code> for which to get the
  19548. <code>Compressor</code>
  19549. @return <code>Compressor</code> for the given
  19550. <code>CompressionCodec</code> from the pool or a new one]]>
  19551. </doc>
  19552. </method>
  19553. <method name="getDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19554. abstract="false" native="false" synchronized="false"
  19555. static="true" final="false" visibility="public"
  19556. deprecated="not deprecated">
  19557. <param name="codec" type="org.apache.hadoop.io.compress.CompressionCodec"/>
  19558. <doc>
  19559. <![CDATA[Get a {@link Decompressor} for the given {@link CompressionCodec} from the
  19560. pool or a new one.
  19561. @param codec the <code>CompressionCodec</code> for which to get the
  19562. <code>Decompressor</code>
  19563. @return <code>Decompressor</code> for the given
  19564. <code>CompressionCodec</code> the pool or a new one]]>
  19565. </doc>
  19566. </method>
  19567. <method name="returnCompressor"
  19568. abstract="false" native="false" synchronized="false"
  19569. static="true" final="false" visibility="public"
  19570. deprecated="not deprecated">
  19571. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  19572. <doc>
  19573. <![CDATA[Return the {@link Compressor} to the pool.
  19574. @param compressor the <code>Compressor</code> to be returned to the pool]]>
  19575. </doc>
  19576. </method>
  19577. <method name="returnDecompressor"
  19578. abstract="false" native="false" synchronized="false"
  19579. static="true" final="false" visibility="public"
  19580. deprecated="not deprecated">
  19581. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19582. <doc>
  19583. <![CDATA[Return the {@link Decompressor} to the pool.
  19584. @param decompressor the <code>Decompressor</code> to be returned to the
  19585. pool]]>
  19586. </doc>
  19587. </method>
  19588. <doc>
  19589. <![CDATA[A global compressor/decompressor pool used to save and reuse
  19590. (possibly native) compression/decompression codecs.]]>
  19591. </doc>
  19592. </class>
  19593. <!-- end class org.apache.hadoop.io.compress.CodecPool -->
  19594. <!-- start interface org.apache.hadoop.io.compress.CompressionCodec -->
  19595. <interface name="CompressionCodec" abstract="true"
  19596. static="false" final="false" visibility="public"
  19597. deprecated="not deprecated">
  19598. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  19599. abstract="false" native="false" synchronized="false"
  19600. static="false" final="false" visibility="public"
  19601. deprecated="not deprecated">
  19602. <param name="out" type="java.io.OutputStream"/>
  19603. <exception name="IOException" type="java.io.IOException"/>
  19604. <doc>
  19605. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  19606. {@link OutputStream}.
  19607. @param out the location for the final output stream
  19608. @return a stream the user can write uncompressed data to have it compressed
  19609. @throws IOException]]>
  19610. </doc>
  19611. </method>
  19612. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  19613. abstract="false" native="false" synchronized="false"
  19614. static="false" final="false" visibility="public"
  19615. deprecated="not deprecated">
  19616. <param name="out" type="java.io.OutputStream"/>
  19617. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  19618. <exception name="IOException" type="java.io.IOException"/>
  19619. <doc>
  19620. <![CDATA[Create a {@link CompressionOutputStream} that will write to the given
  19621. {@link OutputStream} with the given {@link Compressor}.
  19622. @param out the location for the final output stream
  19623. @param compressor compressor to use
  19624. @return a stream the user can write uncompressed data to have it compressed
  19625. @throws IOException]]>
  19626. </doc>
  19627. </method>
  19628. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  19629. abstract="false" native="false" synchronized="false"
  19630. static="false" final="false" visibility="public"
  19631. deprecated="not deprecated">
  19632. <doc>
  19633. <![CDATA[Get the type of {@link Compressor} needed by this {@link CompressionCodec}.
  19634. @return the type of compressor needed by this codec.]]>
  19635. </doc>
  19636. </method>
  19637. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  19638. abstract="false" native="false" synchronized="false"
  19639. static="false" final="false" visibility="public"
  19640. deprecated="not deprecated">
  19641. <doc>
  19642. <![CDATA[Create a new {@link Compressor} for use by this {@link CompressionCodec}.
  19643. @return a new compressor for use by this codec]]>
  19644. </doc>
  19645. </method>
  19646. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19647. abstract="false" native="false" synchronized="false"
  19648. static="false" final="false" visibility="public"
  19649. deprecated="not deprecated">
  19650. <param name="in" type="java.io.InputStream"/>
  19651. <exception name="IOException" type="java.io.IOException"/>
  19652. <doc>
  19653. <![CDATA[Create a stream decompressor that will read from the given input stream.
  19654. @param in the stream to read compressed bytes from
  19655. @return a stream to read uncompressed bytes from
  19656. @throws IOException]]>
  19657. </doc>
  19658. </method>
  19659. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  19660. abstract="false" native="false" synchronized="false"
  19661. static="false" final="false" visibility="public"
  19662. deprecated="not deprecated">
  19663. <param name="in" type="java.io.InputStream"/>
  19664. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  19665. <exception name="IOException" type="java.io.IOException"/>
  19666. <doc>
  19667. <![CDATA[Create a {@link CompressionInputStream} that will read from the given
  19668. {@link InputStream} with the given {@link Decompressor}.
  19669. @param in the stream to read compressed bytes from
  19670. @param decompressor decompressor to use
  19671. @return a stream to read uncompressed bytes from
  19672. @throws IOException]]>
  19673. </doc>
  19674. </method>
  19675. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  19676. abstract="false" native="false" synchronized="false"
  19677. static="false" final="false" visibility="public"
  19678. deprecated="not deprecated">
  19679. <doc>
  19680. <![CDATA[Get the type of {@link Decompressor} needed by this {@link CompressionCodec}.
  19681. @return the type of decompressor needed by this codec.]]>
  19682. </doc>
  19683. </method>
  19684. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  19685. abstract="false" native="false" synchronized="false"
  19686. static="false" final="false" visibility="public"
  19687. deprecated="not deprecated">
  19688. <doc>
  19689. <![CDATA[Create a new {@link Decompressor} for use by this {@link CompressionCodec}.
  19690. @return a new decompressor for use by this codec]]>
  19691. </doc>
  19692. </method>
  19693. <method name="getDefaultExtension" return="java.lang.String"
  19694. abstract="false" native="false" synchronized="false"
  19695. static="false" final="false" visibility="public"
  19696. deprecated="not deprecated">
  19697. <doc>
  19698. <![CDATA[Get the default filename extension for this kind of compression.
  19699. @return the extension including the '.']]>
  19700. </doc>
  19701. </method>
  19702. <doc>
  19703. <![CDATA[This class encapsulates a streaming compression/decompression pair.]]>
  19704. </doc>
  19705. </interface>
  19706. <!-- end interface org.apache.hadoop.io.compress.CompressionCodec -->
  19707. <!-- start class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  19708. <class name="CompressionCodecFactory" extends="java.lang.Object"
  19709. abstract="false"
  19710. static="false" final="false" visibility="public"
  19711. deprecated="not deprecated">
  19712. <constructor name="CompressionCodecFactory" type="org.apache.hadoop.conf.Configuration"
  19713. static="false" final="false" visibility="public"
  19714. deprecated="not deprecated">
  19715. <doc>
  19716. <![CDATA[Find the codecs specified in the config value io.compression.codecs
  19717. and register them. Defaults to gzip and zip.]]>
  19718. </doc>
  19719. </constructor>
  19720. <method name="toString" return="java.lang.String"
  19721. abstract="false" native="false" synchronized="false"
  19722. static="false" final="false" visibility="public"
  19723. deprecated="not deprecated">
  19724. <doc>
  19725. <![CDATA[Print the extension map out as a string.]]>
  19726. </doc>
  19727. </method>
  19728. <method name="getCodecClasses" return="java.util.List&lt;java.lang.Class&gt;"
  19729. abstract="false" native="false" synchronized="false"
  19730. static="true" final="false" visibility="public"
  19731. deprecated="not deprecated">
  19732. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19733. <doc>
  19734. <![CDATA[Get the list of codecs listed in the configuration
  19735. @param conf the configuration to look in
  19736. @return a list of the Configuration classes or null if the attribute
  19737. was not set]]>
  19738. </doc>
  19739. </method>
  19740. <method name="setCodecClasses"
  19741. abstract="false" native="false" synchronized="false"
  19742. static="true" final="false" visibility="public"
  19743. deprecated="not deprecated">
  19744. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  19745. <param name="classes" type="java.util.List&lt;java.lang.Class&gt;"/>
  19746. <doc>
  19747. <![CDATA[Sets a list of codec classes in the configuration.
  19748. @param conf the configuration to modify
  19749. @param classes the list of classes to set]]>
  19750. </doc>
  19751. </method>
  19752. <method name="getCodec" return="org.apache.hadoop.io.compress.CompressionCodec"
  19753. abstract="false" native="false" synchronized="false"
  19754. static="false" final="false" visibility="public"
  19755. deprecated="not deprecated">
  19756. <param name="file" type="org.apache.hadoop.fs.Path"/>
  19757. <doc>
  19758. <![CDATA[Find the relevant compression codec for the given file based on its
  19759. filename suffix.
  19760. @param file the filename to check
  19761. @return the codec object]]>
  19762. </doc>
  19763. </method>
  19764. <method name="removeSuffix" return="java.lang.String"
  19765. abstract="false" native="false" synchronized="false"
  19766. static="true" final="false" visibility="public"
  19767. deprecated="not deprecated">
  19768. <param name="filename" type="java.lang.String"/>
  19769. <param name="suffix" type="java.lang.String"/>
  19770. <doc>
  19771. <![CDATA[Removes a suffix from a filename, if it has it.
  19772. @param filename the filename to strip
  19773. @param suffix the suffix to remove
  19774. @return the shortened filename]]>
  19775. </doc>
  19776. </method>
  19777. <method name="main"
  19778. abstract="false" native="false" synchronized="false"
  19779. static="true" final="false" visibility="public"
  19780. deprecated="not deprecated">
  19781. <param name="args" type="java.lang.String[]"/>
  19782. <exception name="Exception" type="java.lang.Exception"/>
  19783. <doc>
  19784. <![CDATA[A little test program.
  19785. @param args]]>
  19786. </doc>
  19787. </method>
  19788. <field name="LOG" type="org.apache.commons.logging.Log"
  19789. transient="false" volatile="false"
  19790. static="true" final="true" visibility="public"
  19791. deprecated="not deprecated">
  19792. </field>
  19793. <doc>
  19794. <![CDATA[A factory that will find the correct codec for a given filename.]]>
  19795. </doc>
  19796. </class>
  19797. <!-- end class org.apache.hadoop.io.compress.CompressionCodecFactory -->
  19798. <!-- start class org.apache.hadoop.io.compress.CompressionInputStream -->
  19799. <class name="CompressionInputStream" extends="java.io.InputStream"
  19800. abstract="true"
  19801. static="false" final="false" visibility="public"
  19802. deprecated="not deprecated">
  19803. <constructor name="CompressionInputStream" type="java.io.InputStream"
  19804. static="false" final="false" visibility="protected"
  19805. deprecated="not deprecated">
  19806. <doc>
  19807. <![CDATA[Create a compression input stream that reads
  19808. the decompressed bytes from the given stream.
  19809. @param in The input stream to be compressed.]]>
  19810. </doc>
  19811. </constructor>
  19812. <method name="close"
  19813. abstract="false" native="false" synchronized="false"
  19814. static="false" final="false" visibility="public"
  19815. deprecated="not deprecated">
  19816. <exception name="IOException" type="java.io.IOException"/>
  19817. </method>
  19818. <method name="read" return="int"
  19819. abstract="true" native="false" synchronized="false"
  19820. static="false" final="false" visibility="public"
  19821. deprecated="not deprecated">
  19822. <param name="b" type="byte[]"/>
  19823. <param name="off" type="int"/>
  19824. <param name="len" type="int"/>
  19825. <exception name="IOException" type="java.io.IOException"/>
  19826. <doc>
  19827. <![CDATA[Read bytes from the stream.
  19828. Made abstract to prevent leakage to underlying stream.]]>
  19829. </doc>
  19830. </method>
  19831. <method name="resetState"
  19832. abstract="true" native="false" synchronized="false"
  19833. static="false" final="false" visibility="public"
  19834. deprecated="not deprecated">
  19835. <exception name="IOException" type="java.io.IOException"/>
  19836. <doc>
  19837. <![CDATA[Reset the decompressor to its initial state and discard any buffered data,
  19838. as the underlying stream may have been repositioned.]]>
  19839. </doc>
  19840. </method>
  19841. <field name="in" type="java.io.InputStream"
  19842. transient="false" volatile="false"
  19843. static="false" final="true" visibility="protected"
  19844. deprecated="not deprecated">
  19845. <doc>
  19846. <![CDATA[The input stream to be compressed.]]>
  19847. </doc>
  19848. </field>
  19849. <doc>
  19850. <![CDATA[A compression input stream.
  19851. <p>Implementations are assumed to be buffered. This permits clients to
  19852. reposition the underlying input stream then call {@link #resetState()},
  19853. without having to also synchronize client buffers.]]>
  19854. </doc>
  19855. </class>
  19856. <!-- end class org.apache.hadoop.io.compress.CompressionInputStream -->
  19857. <!-- start class org.apache.hadoop.io.compress.CompressionOutputStream -->
  19858. <class name="CompressionOutputStream" extends="java.io.OutputStream"
  19859. abstract="true"
  19860. static="false" final="false" visibility="public"
  19861. deprecated="not deprecated">
  19862. <constructor name="CompressionOutputStream" type="java.io.OutputStream"
  19863. static="false" final="false" visibility="protected"
  19864. deprecated="not deprecated">
  19865. <doc>
  19866. <![CDATA[Create a compression output stream that writes
  19867. the compressed bytes to the given stream.
  19868. @param out]]>
  19869. </doc>
  19870. </constructor>
  19871. <method name="close"
  19872. abstract="false" native="false" synchronized="false"
  19873. static="false" final="false" visibility="public"
  19874. deprecated="not deprecated">
  19875. <exception name="IOException" type="java.io.IOException"/>
  19876. </method>
  19877. <method name="flush"
  19878. abstract="false" native="false" synchronized="false"
  19879. static="false" final="false" visibility="public"
  19880. deprecated="not deprecated">
  19881. <exception name="IOException" type="java.io.IOException"/>
  19882. </method>
  19883. <method name="write"
  19884. abstract="true" native="false" synchronized="false"
  19885. static="false" final="false" visibility="public"
  19886. deprecated="not deprecated">
  19887. <param name="b" type="byte[]"/>
  19888. <param name="off" type="int"/>
  19889. <param name="len" type="int"/>
  19890. <exception name="IOException" type="java.io.IOException"/>
  19891. <doc>
  19892. <![CDATA[Write compressed bytes to the stream.
  19893. Made abstract to prevent leakage to underlying stream.]]>
  19894. </doc>
  19895. </method>
  19896. <method name="finish"
  19897. abstract="true" native="false" synchronized="false"
  19898. static="false" final="false" visibility="public"
  19899. deprecated="not deprecated">
  19900. <exception name="IOException" type="java.io.IOException"/>
  19901. <doc>
  19902. <![CDATA[Finishes writing compressed data to the output stream
  19903. without closing the underlying stream.]]>
  19904. </doc>
  19905. </method>
  19906. <method name="resetState"
  19907. abstract="true" native="false" synchronized="false"
  19908. static="false" final="false" visibility="public"
  19909. deprecated="not deprecated">
  19910. <exception name="IOException" type="java.io.IOException"/>
  19911. <doc>
  19912. <![CDATA[Reset the compression to the initial state.
  19913. Does not reset the underlying stream.]]>
  19914. </doc>
  19915. </method>
  19916. <field name="out" type="java.io.OutputStream"
  19917. transient="false" volatile="false"
  19918. static="false" final="true" visibility="protected"
  19919. deprecated="not deprecated">
  19920. <doc>
  19921. <![CDATA[The output stream to be compressed.]]>
  19922. </doc>
  19923. </field>
  19924. <doc>
  19925. <![CDATA[A compression output stream.]]>
  19926. </doc>
  19927. </class>
  19928. <!-- end class org.apache.hadoop.io.compress.CompressionOutputStream -->
  19929. <!-- start interface org.apache.hadoop.io.compress.Compressor -->
  19930. <interface name="Compressor" abstract="true"
  19931. static="false" final="false" visibility="public"
  19932. deprecated="not deprecated">
  19933. <method name="setInput"
  19934. abstract="false" native="false" synchronized="false"
  19935. static="false" final="false" visibility="public"
  19936. deprecated="not deprecated">
  19937. <param name="b" type="byte[]"/>
  19938. <param name="off" type="int"/>
  19939. <param name="len" type="int"/>
  19940. <doc>
  19941. <![CDATA[Sets input data for compression.
  19942. This should be called whenever #needsInput() returns
  19943. <code>true</code> indicating that more input data is required.
  19944. @param b Input data
  19945. @param off Start offset
  19946. @param len Length]]>
  19947. </doc>
  19948. </method>
  19949. <method name="needsInput" return="boolean"
  19950. abstract="false" native="false" synchronized="false"
  19951. static="false" final="false" visibility="public"
  19952. deprecated="not deprecated">
  19953. <doc>
  19954. <![CDATA[Returns true if the input data buffer is empty and
  19955. #setInput() should be called to provide more input.
  19956. @return <code>true</code> if the input data buffer is empty and
  19957. #setInput() should be called in order to provide more input.]]>
  19958. </doc>
  19959. </method>
  19960. <method name="setDictionary"
  19961. abstract="false" native="false" synchronized="false"
  19962. static="false" final="false" visibility="public"
  19963. deprecated="not deprecated">
  19964. <param name="b" type="byte[]"/>
  19965. <param name="off" type="int"/>
  19966. <param name="len" type="int"/>
  19967. <doc>
  19968. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  19969. is used when the history buffer can be predetermined.
  19970. @param b Dictionary data bytes
  19971. @param off Start offset
  19972. @param len Length]]>
  19973. </doc>
  19974. </method>
  19975. <method name="getBytesRead" return="long"
  19976. abstract="false" native="false" synchronized="false"
  19977. static="false" final="false" visibility="public"
  19978. deprecated="not deprecated">
  19979. <doc>
  19980. <![CDATA[Return number of uncompressed bytes input so far.]]>
  19981. </doc>
  19982. </method>
  19983. <method name="getBytesWritten" return="long"
  19984. abstract="false" native="false" synchronized="false"
  19985. static="false" final="false" visibility="public"
  19986. deprecated="not deprecated">
  19987. <doc>
  19988. <![CDATA[Return number of compressed bytes output so far.]]>
  19989. </doc>
  19990. </method>
  19991. <method name="finish"
  19992. abstract="false" native="false" synchronized="false"
  19993. static="false" final="false" visibility="public"
  19994. deprecated="not deprecated">
  19995. <doc>
  19996. <![CDATA[When called, indicates that compression should end
  19997. with the current contents of the input buffer.]]>
  19998. </doc>
  19999. </method>
  20000. <method name="finished" return="boolean"
  20001. abstract="false" native="false" synchronized="false"
  20002. static="false" final="false" visibility="public"
  20003. deprecated="not deprecated">
  20004. <doc>
  20005. <![CDATA[Returns true if the end of the compressed
  20006. data output stream has been reached.
  20007. @return <code>true</code> if the end of the compressed
  20008. data output stream has been reached.]]>
  20009. </doc>
  20010. </method>
  20011. <method name="compress" return="int"
  20012. abstract="false" native="false" synchronized="false"
  20013. static="false" final="false" visibility="public"
  20014. deprecated="not deprecated">
  20015. <param name="b" type="byte[]"/>
  20016. <param name="off" type="int"/>
  20017. <param name="len" type="int"/>
  20018. <exception name="IOException" type="java.io.IOException"/>
  20019. <doc>
  20020. <![CDATA[Fills specified buffer with compressed data. Returns actual number
  20021. of bytes of compressed data. A return value of 0 indicates that
  20022. needsInput() should be called in order to determine if more input
  20023. data is required.
  20024. @param b Buffer for the compressed data
  20025. @param off Start offset of the data
  20026. @param len Size of the buffer
  20027. @return The actual number of bytes of compressed data.]]>
  20028. </doc>
  20029. </method>
  20030. <method name="reset"
  20031. abstract="false" native="false" synchronized="false"
  20032. static="false" final="false" visibility="public"
  20033. deprecated="not deprecated">
  20034. <doc>
  20035. <![CDATA[Resets compressor so that a new set of input data can be processed.]]>
  20036. </doc>
  20037. </method>
  20038. <method name="end"
  20039. abstract="false" native="false" synchronized="false"
  20040. static="false" final="false" visibility="public"
  20041. deprecated="not deprecated">
  20042. <doc>
  20043. <![CDATA[Closes the compressor and discards any unprocessed input.]]>
  20044. </doc>
  20045. </method>
  20046. <doc>
  20047. <![CDATA[Specification of a stream-based 'compressor' which can be
  20048. plugged into a {@link CompressionOutputStream} to compress data.
  20049. This is modelled after {@link java.util.zip.Deflater}]]>
  20050. </doc>
  20051. </interface>
  20052. <!-- end interface org.apache.hadoop.io.compress.Compressor -->
  20053. <!-- start interface org.apache.hadoop.io.compress.Decompressor -->
  20054. <interface name="Decompressor" abstract="true"
  20055. static="false" final="false" visibility="public"
  20056. deprecated="not deprecated">
  20057. <method name="setInput"
  20058. abstract="false" native="false" synchronized="false"
  20059. static="false" final="false" visibility="public"
  20060. deprecated="not deprecated">
  20061. <param name="b" type="byte[]"/>
  20062. <param name="off" type="int"/>
  20063. <param name="len" type="int"/>
  20064. <doc>
  20065. <![CDATA[Sets input data for decompression.
  20066. This should be called whenever #needsInput() returns
  20067. <code>true</code> indicating that more input data is required.
  20068. @param b Input data
  20069. @param off Start offset
  20070. @param len Length]]>
  20071. </doc>
  20072. </method>
  20073. <method name="needsInput" return="boolean"
  20074. abstract="false" native="false" synchronized="false"
  20075. static="false" final="false" visibility="public"
  20076. deprecated="not deprecated">
  20077. <doc>
  20078. <![CDATA[Returns true if the input data buffer is empty and
  20079. #setInput() should be called to provide more input.
  20080. @return <code>true</code> if the input data buffer is empty and
  20081. #setInput() should be called in order to provide more input.]]>
  20082. </doc>
  20083. </method>
  20084. <method name="setDictionary"
  20085. abstract="false" native="false" synchronized="false"
  20086. static="false" final="false" visibility="public"
  20087. deprecated="not deprecated">
  20088. <param name="b" type="byte[]"/>
  20089. <param name="off" type="int"/>
  20090. <param name="len" type="int"/>
  20091. <doc>
  20092. <![CDATA[Sets preset dictionary for compression. A preset dictionary
  20093. is used when the history buffer can be predetermined.
  20094. @param b Dictionary data bytes
  20095. @param off Start offset
  20096. @param len Length]]>
  20097. </doc>
  20098. </method>
  20099. <method name="needsDictionary" return="boolean"
  20100. abstract="false" native="false" synchronized="false"
  20101. static="false" final="false" visibility="public"
  20102. deprecated="not deprecated">
  20103. <doc>
  20104. <![CDATA[Returns <code>true</code> if a preset dictionary is needed for decompression.
  20105. @return <code>true</code> if a preset dictionary is needed for decompression]]>
  20106. </doc>
  20107. </method>
  20108. <method name="finished" return="boolean"
  20109. abstract="false" native="false" synchronized="false"
  20110. static="false" final="false" visibility="public"
  20111. deprecated="not deprecated">
  20112. <doc>
  20113. <![CDATA[Returns true if the end of the compressed
  20114. data output stream has been reached.
  20115. @return <code>true</code> if the end of the compressed
  20116. data output stream has been reached.]]>
  20117. </doc>
  20118. </method>
  20119. <method name="decompress" return="int"
  20120. abstract="false" native="false" synchronized="false"
  20121. static="false" final="false" visibility="public"
  20122. deprecated="not deprecated">
  20123. <param name="b" type="byte[]"/>
  20124. <param name="off" type="int"/>
  20125. <param name="len" type="int"/>
  20126. <exception name="IOException" type="java.io.IOException"/>
  20127. <doc>
  20128. <![CDATA[Fills specified buffer with uncompressed data. Returns actual number
  20129. of bytes of uncompressed data. A return value of 0 indicates that
  20130. #needsInput() should be called in order to determine if more input
  20131. data is required.
  20132. @param b Buffer for the compressed data
  20133. @param off Start offset of the data
  20134. @param len Size of the buffer
  20135. @return The actual number of bytes of compressed data.
  20136. @throws IOException]]>
  20137. </doc>
  20138. </method>
  20139. <method name="reset"
  20140. abstract="false" native="false" synchronized="false"
  20141. static="false" final="false" visibility="public"
  20142. deprecated="not deprecated">
  20143. <doc>
  20144. <![CDATA[Resets decompressor so that a new set of input data can be processed.]]>
  20145. </doc>
  20146. </method>
  20147. <method name="end"
  20148. abstract="false" native="false" synchronized="false"
  20149. static="false" final="false" visibility="public"
  20150. deprecated="not deprecated">
  20151. <doc>
  20152. <![CDATA[Closes the decompressor and discards any unprocessed input.]]>
  20153. </doc>
  20154. </method>
  20155. <doc>
  20156. <![CDATA[Specification of a stream-based 'de-compressor' which can be
  20157. plugged into a {@link CompressionInputStream} to compress data.
  20158. This is modelled after {@link java.util.zip.Inflater}]]>
  20159. </doc>
  20160. </interface>
  20161. <!-- end interface org.apache.hadoop.io.compress.Decompressor -->
  20162. <!-- start class org.apache.hadoop.io.compress.DefaultCodec -->
  20163. <class name="DefaultCodec" extends="java.lang.Object"
  20164. abstract="false"
  20165. static="false" final="false" visibility="public"
  20166. deprecated="not deprecated">
  20167. <implements name="org.apache.hadoop.conf.Configurable"/>
  20168. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  20169. <constructor name="DefaultCodec"
  20170. static="false" final="false" visibility="public"
  20171. deprecated="not deprecated">
  20172. </constructor>
  20173. <method name="setConf"
  20174. abstract="false" native="false" synchronized="false"
  20175. static="false" final="false" visibility="public"
  20176. deprecated="not deprecated">
  20177. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20178. </method>
  20179. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20180. abstract="false" native="false" synchronized="false"
  20181. static="false" final="false" visibility="public"
  20182. deprecated="not deprecated">
  20183. </method>
  20184. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20185. abstract="false" native="false" synchronized="false"
  20186. static="false" final="false" visibility="public"
  20187. deprecated="not deprecated">
  20188. <param name="out" type="java.io.OutputStream"/>
  20189. <exception name="IOException" type="java.io.IOException"/>
  20190. </method>
  20191. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20192. abstract="false" native="false" synchronized="false"
  20193. static="false" final="false" visibility="public"
  20194. deprecated="not deprecated">
  20195. <param name="out" type="java.io.OutputStream"/>
  20196. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20197. <exception name="IOException" type="java.io.IOException"/>
  20198. </method>
  20199. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  20200. abstract="false" native="false" synchronized="false"
  20201. static="false" final="false" visibility="public"
  20202. deprecated="not deprecated">
  20203. </method>
  20204. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20205. abstract="false" native="false" synchronized="false"
  20206. static="false" final="false" visibility="public"
  20207. deprecated="not deprecated">
  20208. </method>
  20209. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20210. abstract="false" native="false" synchronized="false"
  20211. static="false" final="false" visibility="public"
  20212. deprecated="not deprecated">
  20213. <param name="in" type="java.io.InputStream"/>
  20214. <exception name="IOException" type="java.io.IOException"/>
  20215. </method>
  20216. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20217. abstract="false" native="false" synchronized="false"
  20218. static="false" final="false" visibility="public"
  20219. deprecated="not deprecated">
  20220. <param name="in" type="java.io.InputStream"/>
  20221. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20222. <exception name="IOException" type="java.io.IOException"/>
  20223. </method>
  20224. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  20225. abstract="false" native="false" synchronized="false"
  20226. static="false" final="false" visibility="public"
  20227. deprecated="not deprecated">
  20228. </method>
  20229. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20230. abstract="false" native="false" synchronized="false"
  20231. static="false" final="false" visibility="public"
  20232. deprecated="not deprecated">
  20233. </method>
  20234. <method name="getDefaultExtension" return="java.lang.String"
  20235. abstract="false" native="false" synchronized="false"
  20236. static="false" final="false" visibility="public"
  20237. deprecated="not deprecated">
  20238. </method>
  20239. </class>
  20240. <!-- end class org.apache.hadoop.io.compress.DefaultCodec -->
  20241. <!-- start class org.apache.hadoop.io.compress.GzipCodec -->
  20242. <class name="GzipCodec" extends="org.apache.hadoop.io.compress.DefaultCodec"
  20243. abstract="false"
  20244. static="false" final="false" visibility="public"
  20245. deprecated="not deprecated">
  20246. <constructor name="GzipCodec"
  20247. static="false" final="false" visibility="public"
  20248. deprecated="not deprecated">
  20249. </constructor>
  20250. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20251. abstract="false" native="false" synchronized="false"
  20252. static="false" final="false" visibility="public"
  20253. deprecated="not deprecated">
  20254. <param name="out" type="java.io.OutputStream"/>
  20255. <exception name="IOException" type="java.io.IOException"/>
  20256. </method>
  20257. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20258. abstract="false" native="false" synchronized="false"
  20259. static="false" final="false" visibility="public"
  20260. deprecated="not deprecated">
  20261. <param name="out" type="java.io.OutputStream"/>
  20262. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20263. <exception name="IOException" type="java.io.IOException"/>
  20264. </method>
  20265. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20266. abstract="false" native="false" synchronized="false"
  20267. static="false" final="false" visibility="public"
  20268. deprecated="not deprecated">
  20269. </method>
  20270. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  20271. abstract="false" native="false" synchronized="false"
  20272. static="false" final="false" visibility="public"
  20273. deprecated="not deprecated">
  20274. </method>
  20275. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20276. abstract="false" native="false" synchronized="false"
  20277. static="false" final="false" visibility="public"
  20278. deprecated="not deprecated">
  20279. <param name="in" type="java.io.InputStream"/>
  20280. <exception name="IOException" type="java.io.IOException"/>
  20281. </method>
  20282. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20283. abstract="false" native="false" synchronized="false"
  20284. static="false" final="false" visibility="public"
  20285. deprecated="not deprecated">
  20286. <param name="in" type="java.io.InputStream"/>
  20287. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20288. <exception name="IOException" type="java.io.IOException"/>
  20289. </method>
  20290. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20291. abstract="false" native="false" synchronized="false"
  20292. static="false" final="false" visibility="public"
  20293. deprecated="not deprecated">
  20294. </method>
  20295. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  20296. abstract="false" native="false" synchronized="false"
  20297. static="false" final="false" visibility="public"
  20298. deprecated="not deprecated">
  20299. </method>
  20300. <method name="getDefaultExtension" return="java.lang.String"
  20301. abstract="false" native="false" synchronized="false"
  20302. static="false" final="false" visibility="public"
  20303. deprecated="not deprecated">
  20304. </method>
  20305. <doc>
  20306. <![CDATA[This class creates gzip compressors/decompressors.]]>
  20307. </doc>
  20308. </class>
  20309. <!-- end class org.apache.hadoop.io.compress.GzipCodec -->
  20310. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  20311. <class name="GzipCodec.GzipInputStream" extends="org.apache.hadoop.io.compress.DecompressorStream"
  20312. abstract="false"
  20313. static="true" final="false" visibility="protected"
  20314. deprecated="not deprecated">
  20315. <constructor name="GzipCodec.GzipInputStream" type="java.io.InputStream"
  20316. static="false" final="false" visibility="public"
  20317. deprecated="not deprecated">
  20318. <exception name="IOException" type="java.io.IOException"/>
  20319. </constructor>
  20320. <constructor name="GzipCodec.GzipInputStream" type="org.apache.hadoop.io.compress.DecompressorStream"
  20321. static="false" final="false" visibility="protected"
  20322. deprecated="not deprecated">
  20323. <doc>
  20324. <![CDATA[Allow subclasses to directly set the inflater stream.]]>
  20325. </doc>
  20326. </constructor>
  20327. <method name="available" return="int"
  20328. abstract="false" native="false" synchronized="false"
  20329. static="false" final="false" visibility="public"
  20330. deprecated="not deprecated">
  20331. <exception name="IOException" type="java.io.IOException"/>
  20332. </method>
  20333. <method name="close"
  20334. abstract="false" native="false" synchronized="false"
  20335. static="false" final="false" visibility="public"
  20336. deprecated="not deprecated">
  20337. <exception name="IOException" type="java.io.IOException"/>
  20338. </method>
  20339. <method name="read" return="int"
  20340. abstract="false" native="false" synchronized="false"
  20341. static="false" final="false" visibility="public"
  20342. deprecated="not deprecated">
  20343. <exception name="IOException" type="java.io.IOException"/>
  20344. </method>
  20345. <method name="read" return="int"
  20346. abstract="false" native="false" synchronized="false"
  20347. static="false" final="false" visibility="public"
  20348. deprecated="not deprecated">
  20349. <param name="data" type="byte[]"/>
  20350. <param name="offset" type="int"/>
  20351. <param name="len" type="int"/>
  20352. <exception name="IOException" type="java.io.IOException"/>
  20353. </method>
  20354. <method name="skip" return="long"
  20355. abstract="false" native="false" synchronized="false"
  20356. static="false" final="false" visibility="public"
  20357. deprecated="not deprecated">
  20358. <param name="offset" type="long"/>
  20359. <exception name="IOException" type="java.io.IOException"/>
  20360. </method>
  20361. <method name="resetState"
  20362. abstract="false" native="false" synchronized="false"
  20363. static="false" final="false" visibility="public"
  20364. deprecated="not deprecated">
  20365. <exception name="IOException" type="java.io.IOException"/>
  20366. </method>
  20367. </class>
  20368. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipInputStream -->
  20369. <!-- start class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  20370. <class name="GzipCodec.GzipOutputStream" extends="org.apache.hadoop.io.compress.CompressorStream"
  20371. abstract="false"
  20372. static="true" final="false" visibility="protected"
  20373. deprecated="not deprecated">
  20374. <constructor name="GzipCodec.GzipOutputStream" type="java.io.OutputStream"
  20375. static="false" final="false" visibility="public"
  20376. deprecated="not deprecated">
  20377. <exception name="IOException" type="java.io.IOException"/>
  20378. </constructor>
  20379. <constructor name="GzipCodec.GzipOutputStream" type="org.apache.hadoop.io.compress.CompressorStream"
  20380. static="false" final="false" visibility="protected"
  20381. deprecated="not deprecated">
  20382. <doc>
  20383. <![CDATA[Allow children types to put a different type in here.
  20384. @param out the Deflater stream to use]]>
  20385. </doc>
  20386. </constructor>
  20387. <method name="close"
  20388. abstract="false" native="false" synchronized="false"
  20389. static="false" final="false" visibility="public"
  20390. deprecated="not deprecated">
  20391. <exception name="IOException" type="java.io.IOException"/>
  20392. </method>
  20393. <method name="flush"
  20394. abstract="false" native="false" synchronized="false"
  20395. static="false" final="false" visibility="public"
  20396. deprecated="not deprecated">
  20397. <exception name="IOException" type="java.io.IOException"/>
  20398. </method>
  20399. <method name="write"
  20400. abstract="false" native="false" synchronized="false"
  20401. static="false" final="false" visibility="public"
  20402. deprecated="not deprecated">
  20403. <param name="b" type="int"/>
  20404. <exception name="IOException" type="java.io.IOException"/>
  20405. </method>
  20406. <method name="write"
  20407. abstract="false" native="false" synchronized="false"
  20408. static="false" final="false" visibility="public"
  20409. deprecated="not deprecated">
  20410. <param name="data" type="byte[]"/>
  20411. <param name="offset" type="int"/>
  20412. <param name="length" type="int"/>
  20413. <exception name="IOException" type="java.io.IOException"/>
  20414. </method>
  20415. <method name="finish"
  20416. abstract="false" native="false" synchronized="false"
  20417. static="false" final="false" visibility="public"
  20418. deprecated="not deprecated">
  20419. <exception name="IOException" type="java.io.IOException"/>
  20420. </method>
  20421. <method name="resetState"
  20422. abstract="false" native="false" synchronized="false"
  20423. static="false" final="false" visibility="public"
  20424. deprecated="not deprecated">
  20425. <exception name="IOException" type="java.io.IOException"/>
  20426. </method>
  20427. <doc>
  20428. <![CDATA[A bridge that wraps around a DeflaterOutputStream to make it
  20429. a CompressionOutputStream.]]>
  20430. </doc>
  20431. </class>
  20432. <!-- end class org.apache.hadoop.io.compress.GzipCodec.GzipOutputStream -->
  20433. <!-- start class org.apache.hadoop.io.compress.LzoCodec -->
  20434. <class name="LzoCodec" extends="java.lang.Object"
  20435. abstract="false"
  20436. static="false" final="false" visibility="public"
  20437. deprecated="not deprecated">
  20438. <implements name="org.apache.hadoop.conf.Configurable"/>
  20439. <implements name="org.apache.hadoop.io.compress.CompressionCodec"/>
  20440. <constructor name="LzoCodec"
  20441. static="false" final="false" visibility="public"
  20442. deprecated="not deprecated">
  20443. </constructor>
  20444. <method name="setConf"
  20445. abstract="false" native="false" synchronized="false"
  20446. static="false" final="false" visibility="public"
  20447. deprecated="not deprecated">
  20448. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20449. </method>
  20450. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  20451. abstract="false" native="false" synchronized="false"
  20452. static="false" final="false" visibility="public"
  20453. deprecated="not deprecated">
  20454. </method>
  20455. <method name="isNativeLzoLoaded" return="boolean"
  20456. abstract="false" native="false" synchronized="false"
  20457. static="true" final="false" visibility="public"
  20458. deprecated="not deprecated">
  20459. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  20460. <doc>
  20461. <![CDATA[Check if native-lzo library is loaded & initialized.
  20462. @param conf configuration
  20463. @return <code>true</code> if native-lzo library is loaded & initialized;
  20464. else <code>false</code>]]>
  20465. </doc>
  20466. </method>
  20467. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20468. abstract="false" native="false" synchronized="false"
  20469. static="false" final="false" visibility="public"
  20470. deprecated="not deprecated">
  20471. <param name="out" type="java.io.OutputStream"/>
  20472. <exception name="IOException" type="java.io.IOException"/>
  20473. </method>
  20474. <method name="createOutputStream" return="org.apache.hadoop.io.compress.CompressionOutputStream"
  20475. abstract="false" native="false" synchronized="false"
  20476. static="false" final="false" visibility="public"
  20477. deprecated="not deprecated">
  20478. <param name="out" type="java.io.OutputStream"/>
  20479. <param name="compressor" type="org.apache.hadoop.io.compress.Compressor"/>
  20480. <exception name="IOException" type="java.io.IOException"/>
  20481. </method>
  20482. <method name="getCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  20483. abstract="false" native="false" synchronized="false"
  20484. static="false" final="false" visibility="public"
  20485. deprecated="not deprecated">
  20486. </method>
  20487. <method name="createCompressor" return="org.apache.hadoop.io.compress.Compressor"
  20488. abstract="false" native="false" synchronized="false"
  20489. static="false" final="false" visibility="public"
  20490. deprecated="not deprecated">
  20491. </method>
  20492. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20493. abstract="false" native="false" synchronized="false"
  20494. static="false" final="false" visibility="public"
  20495. deprecated="not deprecated">
  20496. <param name="in" type="java.io.InputStream"/>
  20497. <exception name="IOException" type="java.io.IOException"/>
  20498. </method>
  20499. <method name="createInputStream" return="org.apache.hadoop.io.compress.CompressionInputStream"
  20500. abstract="false" native="false" synchronized="false"
  20501. static="false" final="false" visibility="public"
  20502. deprecated="not deprecated">
  20503. <param name="in" type="java.io.InputStream"/>
  20504. <param name="decompressor" type="org.apache.hadoop.io.compress.Decompressor"/>
  20505. <exception name="IOException" type="java.io.IOException"/>
  20506. </method>
  20507. <method name="getDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  20508. abstract="false" native="false" synchronized="false"
  20509. static="false" final="false" visibility="public"
  20510. deprecated="not deprecated">
  20511. </method>
  20512. <method name="createDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  20513. abstract="false" native="false" synchronized="false"
  20514. static="false" final="false" visibility="public"
  20515. deprecated="not deprecated">
  20516. </method>
  20517. <method name="getDefaultExtension" return="java.lang.String"
  20518. abstract="false" native="false" synchronized="false"
  20519. static="false" final="false" visibility="public"
  20520. deprecated="not deprecated">
  20521. <doc>
  20522. <![CDATA[Get the default filename extension for this kind of compression.
  20523. @return the extension including the '.']]>
  20524. </doc>
  20525. </method>
  20526. <doc>
  20527. <![CDATA[A {@link org.apache.hadoop.io.compress.CompressionCodec} for a streaming
  20528. <b>lzo</b> compression/decompression pair.
  20529. http://www.oberhumer.com/opensource/lzo/]]>
  20530. </doc>
  20531. </class>
  20532. <!-- end class org.apache.hadoop.io.compress.LzoCodec -->
  20533. </package>
  20534. <package name="org.apache.hadoop.io.compress.lzo">
  20535. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  20536. <class name="LzoCompressor" extends="java.lang.Object"
  20537. abstract="false"
  20538. static="false" final="false" visibility="public"
  20539. deprecated="not deprecated">
  20540. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  20541. <constructor name="LzoCompressor" type="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy, int"
  20542. static="false" final="false" visibility="public"
  20543. deprecated="not deprecated">
  20544. <doc>
  20545. <![CDATA[Creates a new compressor using the specified {@link CompressionStrategy}.
  20546. @param strategy lzo compression algorithm to use
  20547. @param directBufferSize size of the direct buffer to be used.]]>
  20548. </doc>
  20549. </constructor>
  20550. <constructor name="LzoCompressor"
  20551. static="false" final="false" visibility="public"
  20552. deprecated="not deprecated">
  20553. <doc>
  20554. <![CDATA[Creates a new compressor with the default lzo1x_1 compression.]]>
  20555. </doc>
  20556. </constructor>
  20557. <method name="isNativeLzoLoaded" return="boolean"
  20558. abstract="false" native="false" synchronized="false"
  20559. static="true" final="false" visibility="public"
  20560. deprecated="not deprecated">
  20561. <doc>
  20562. <![CDATA[Check if lzo compressors are loaded and initialized.
  20563. @return <code>true</code> if lzo compressors are loaded & initialized,
  20564. else <code>false</code>]]>
  20565. </doc>
  20566. </method>
  20567. <method name="setInput"
  20568. abstract="false" native="false" synchronized="true"
  20569. static="false" final="false" visibility="public"
  20570. deprecated="not deprecated">
  20571. <param name="b" type="byte[]"/>
  20572. <param name="off" type="int"/>
  20573. <param name="len" type="int"/>
  20574. </method>
  20575. <method name="setDictionary"
  20576. abstract="false" native="false" synchronized="true"
  20577. static="false" final="false" visibility="public"
  20578. deprecated="not deprecated">
  20579. <param name="b" type="byte[]"/>
  20580. <param name="off" type="int"/>
  20581. <param name="len" type="int"/>
  20582. </method>
  20583. <method name="needsInput" return="boolean"
  20584. abstract="false" native="false" synchronized="false"
  20585. static="false" final="false" visibility="public"
  20586. deprecated="not deprecated">
  20587. <doc>
  20588. <![CDATA[{@inheritDoc}]]>
  20589. </doc>
  20590. </method>
  20591. <method name="finish"
  20592. abstract="false" native="false" synchronized="true"
  20593. static="false" final="false" visibility="public"
  20594. deprecated="not deprecated">
  20595. </method>
  20596. <method name="finished" return="boolean"
  20597. abstract="false" native="false" synchronized="true"
  20598. static="false" final="false" visibility="public"
  20599. deprecated="not deprecated">
  20600. </method>
  20601. <method name="compress" return="int"
  20602. abstract="false" native="false" synchronized="true"
  20603. static="false" final="false" visibility="public"
  20604. deprecated="not deprecated">
  20605. <param name="b" type="byte[]"/>
  20606. <param name="off" type="int"/>
  20607. <param name="len" type="int"/>
  20608. <exception name="IOException" type="java.io.IOException"/>
  20609. </method>
  20610. <method name="reset"
  20611. abstract="false" native="false" synchronized="true"
  20612. static="false" final="false" visibility="public"
  20613. deprecated="not deprecated">
  20614. </method>
  20615. <method name="getBytesRead" return="long"
  20616. abstract="false" native="false" synchronized="true"
  20617. static="false" final="false" visibility="public"
  20618. deprecated="not deprecated">
  20619. <doc>
  20620. <![CDATA[Return number of bytes given to this compressor since last reset.]]>
  20621. </doc>
  20622. </method>
  20623. <method name="getBytesWritten" return="long"
  20624. abstract="false" native="false" synchronized="true"
  20625. static="false" final="false" visibility="public"
  20626. deprecated="not deprecated">
  20627. <doc>
  20628. <![CDATA[Return number of bytes consumed by callers of compress since last reset.]]>
  20629. </doc>
  20630. </method>
  20631. <method name="end"
  20632. abstract="false" native="false" synchronized="true"
  20633. static="false" final="false" visibility="public"
  20634. deprecated="not deprecated">
  20635. <doc>
  20636. <![CDATA[Noop.]]>
  20637. </doc>
  20638. </method>
  20639. <doc>
  20640. <![CDATA[A {@link Compressor} based on the lzo algorithm.
  20641. http://www.oberhumer.com/opensource/lzo/]]>
  20642. </doc>
  20643. </class>
  20644. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor -->
  20645. <!-- start class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  20646. <class name="LzoCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy&gt;"
  20647. abstract="false"
  20648. static="true" final="true" visibility="public"
  20649. deprecated="not deprecated">
  20650. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy[]"
  20651. abstract="false" native="false" synchronized="false"
  20652. static="true" final="false" visibility="public"
  20653. deprecated="not deprecated">
  20654. </method>
  20655. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy"
  20656. abstract="false" native="false" synchronized="false"
  20657. static="true" final="false" visibility="public"
  20658. deprecated="not deprecated">
  20659. <param name="name" type="java.lang.String"/>
  20660. </method>
  20661. <doc>
  20662. <![CDATA[The compression algorithm for lzo library.]]>
  20663. </doc>
  20664. </class>
  20665. <!-- end class org.apache.hadoop.io.compress.lzo.LzoCompressor.CompressionStrategy -->
  20666. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  20667. <class name="LzoDecompressor" extends="java.lang.Object"
  20668. abstract="false"
  20669. static="false" final="false" visibility="public"
  20670. deprecated="not deprecated">
  20671. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  20672. <constructor name="LzoDecompressor" type="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy, int"
  20673. static="false" final="false" visibility="public"
  20674. deprecated="not deprecated">
  20675. <doc>
  20676. <![CDATA[Creates a new lzo decompressor.
  20677. @param strategy lzo decompression algorithm
  20678. @param directBufferSize size of the direct-buffer]]>
  20679. </doc>
  20680. </constructor>
  20681. <constructor name="LzoDecompressor"
  20682. static="false" final="false" visibility="public"
  20683. deprecated="not deprecated">
  20684. <doc>
  20685. <![CDATA[Creates a new lzo decompressor.]]>
  20686. </doc>
  20687. </constructor>
  20688. <method name="isNativeLzoLoaded" return="boolean"
  20689. abstract="false" native="false" synchronized="false"
  20690. static="true" final="false" visibility="public"
  20691. deprecated="not deprecated">
  20692. <doc>
  20693. <![CDATA[Check if lzo decompressors are loaded and initialized.
  20694. @return <code>true</code> if lzo decompressors are loaded & initialized,
  20695. else <code>false</code>]]>
  20696. </doc>
  20697. </method>
  20698. <method name="setInput"
  20699. abstract="false" native="false" synchronized="true"
  20700. static="false" final="false" visibility="public"
  20701. deprecated="not deprecated">
  20702. <param name="b" type="byte[]"/>
  20703. <param name="off" type="int"/>
  20704. <param name="len" type="int"/>
  20705. </method>
  20706. <method name="setDictionary"
  20707. abstract="false" native="false" synchronized="true"
  20708. static="false" final="false" visibility="public"
  20709. deprecated="not deprecated">
  20710. <param name="b" type="byte[]"/>
  20711. <param name="off" type="int"/>
  20712. <param name="len" type="int"/>
  20713. </method>
  20714. <method name="needsInput" return="boolean"
  20715. abstract="false" native="false" synchronized="true"
  20716. static="false" final="false" visibility="public"
  20717. deprecated="not deprecated">
  20718. </method>
  20719. <method name="needsDictionary" return="boolean"
  20720. abstract="false" native="false" synchronized="true"
  20721. static="false" final="false" visibility="public"
  20722. deprecated="not deprecated">
  20723. </method>
  20724. <method name="finished" return="boolean"
  20725. abstract="false" native="false" synchronized="true"
  20726. static="false" final="false" visibility="public"
  20727. deprecated="not deprecated">
  20728. </method>
  20729. <method name="decompress" return="int"
  20730. abstract="false" native="false" synchronized="true"
  20731. static="false" final="false" visibility="public"
  20732. deprecated="not deprecated">
  20733. <param name="b" type="byte[]"/>
  20734. <param name="off" type="int"/>
  20735. <param name="len" type="int"/>
  20736. <exception name="IOException" type="java.io.IOException"/>
  20737. </method>
  20738. <method name="reset"
  20739. abstract="false" native="false" synchronized="true"
  20740. static="false" final="false" visibility="public"
  20741. deprecated="not deprecated">
  20742. </method>
  20743. <method name="end"
  20744. abstract="false" native="false" synchronized="true"
  20745. static="false" final="false" visibility="public"
  20746. deprecated="not deprecated">
  20747. </method>
  20748. <method name="finalize"
  20749. abstract="false" native="false" synchronized="false"
  20750. static="false" final="false" visibility="protected"
  20751. deprecated="not deprecated">
  20752. </method>
  20753. <doc>
  20754. <![CDATA[A {@link Decompressor} based on the lzo algorithm.
  20755. http://www.oberhumer.com/opensource/lzo/]]>
  20756. </doc>
  20757. </class>
  20758. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor -->
  20759. <!-- start class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  20760. <class name="LzoDecompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy&gt;"
  20761. abstract="false"
  20762. static="true" final="true" visibility="public"
  20763. deprecated="not deprecated">
  20764. <method name="values" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy[]"
  20765. abstract="false" native="false" synchronized="false"
  20766. static="true" final="false" visibility="public"
  20767. deprecated="not deprecated">
  20768. </method>
  20769. <method name="valueOf" return="org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy"
  20770. abstract="false" native="false" synchronized="false"
  20771. static="true" final="false" visibility="public"
  20772. deprecated="not deprecated">
  20773. <param name="name" type="java.lang.String"/>
  20774. </method>
  20775. </class>
  20776. <!-- end class org.apache.hadoop.io.compress.lzo.LzoDecompressor.CompressionStrategy -->
  20777. </package>
  20778. <package name="org.apache.hadoop.io.compress.zlib">
  20779. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  20780. <class name="BuiltInZlibDeflater" extends="java.util.zip.Deflater"
  20781. abstract="false"
  20782. static="false" final="false" visibility="public"
  20783. deprecated="not deprecated">
  20784. <implements name="org.apache.hadoop.io.compress.Compressor"/>
  20785. <constructor name="BuiltInZlibDeflater" type="int, boolean"
  20786. static="false" final="false" visibility="public"
  20787. deprecated="not deprecated">
  20788. </constructor>
  20789. <constructor name="BuiltInZlibDeflater" type="int"
  20790. static="false" final="false" visibility="public"
  20791. deprecated="not deprecated">
  20792. </constructor>
  20793. <constructor name="BuiltInZlibDeflater"
  20794. static="false" final="false" visibility="public"
  20795. deprecated="not deprecated">
  20796. </constructor>
  20797. <method name="compress" return="int"
  20798. abstract="false" native="false" synchronized="true"
  20799. static="false" final="false" visibility="public"
  20800. deprecated="not deprecated">
  20801. <param name="b" type="byte[]"/>
  20802. <param name="off" type="int"/>
  20803. <param name="len" type="int"/>
  20804. <exception name="IOException" type="java.io.IOException"/>
  20805. </method>
  20806. <doc>
  20807. <![CDATA[A wrapper around java.util.zip.Deflater to make it conform
  20808. to org.apache.hadoop.io.compress.Compressor interface.]]>
  20809. </doc>
  20810. </class>
  20811. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibDeflater -->
  20812. <!-- start class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  20813. <class name="BuiltInZlibInflater" extends="java.util.zip.Inflater"
  20814. abstract="false"
  20815. static="false" final="false" visibility="public"
  20816. deprecated="not deprecated">
  20817. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  20818. <constructor name="BuiltInZlibInflater" type="boolean"
  20819. static="false" final="false" visibility="public"
  20820. deprecated="not deprecated">
  20821. </constructor>
  20822. <constructor name="BuiltInZlibInflater"
  20823. static="false" final="false" visibility="public"
  20824. deprecated="not deprecated">
  20825. </constructor>
  20826. <method name="decompress" return="int"
  20827. abstract="false" native="false" synchronized="true"
  20828. static="false" final="false" visibility="public"
  20829. deprecated="not deprecated">
  20830. <param name="b" type="byte[]"/>
  20831. <param name="off" type="int"/>
  20832. <param name="len" type="int"/>
  20833. <exception name="IOException" type="java.io.IOException"/>
  20834. </method>
  20835. <doc>
  20836. <![CDATA[A wrapper around java.util.zip.Inflater to make it conform
  20837. to org.apache.hadoop.io.compress.Decompressor interface.]]>
  20838. </doc>
  20839. </class>
  20840. <!-- end class org.apache.hadoop.io.compress.zlib.BuiltInZlibInflater -->
  20841. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  20842. <class name="ZlibCompressor" 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.compress.Compressor"/>
  20847. <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"
  20848. static="false" final="false" visibility="public"
  20849. deprecated="not deprecated">
  20850. <doc>
  20851. <![CDATA[Creates a new compressor using the specified compression level.
  20852. Compressed data will be generated in ZLIB format.
  20853. @param level Compression level #CompressionLevel
  20854. @param strategy Compression strategy #CompressionStrategy
  20855. @param header Compression header #CompressionHeader
  20856. @param directBufferSize Size of the direct buffer to be used.]]>
  20857. </doc>
  20858. </constructor>
  20859. <constructor name="ZlibCompressor"
  20860. static="false" final="false" visibility="public"
  20861. deprecated="not deprecated">
  20862. <doc>
  20863. <![CDATA[Creates a new compressor with the default compression level.
  20864. Compressed data will be generated in ZLIB format.]]>
  20865. </doc>
  20866. </constructor>
  20867. <method name="setInput"
  20868. abstract="false" native="false" synchronized="true"
  20869. static="false" final="false" visibility="public"
  20870. deprecated="not deprecated">
  20871. <param name="b" type="byte[]"/>
  20872. <param name="off" type="int"/>
  20873. <param name="len" type="int"/>
  20874. </method>
  20875. <method name="setDictionary"
  20876. abstract="false" native="false" synchronized="true"
  20877. static="false" final="false" visibility="public"
  20878. deprecated="not deprecated">
  20879. <param name="b" type="byte[]"/>
  20880. <param name="off" type="int"/>
  20881. <param name="len" type="int"/>
  20882. </method>
  20883. <method name="needsInput" return="boolean"
  20884. abstract="false" native="false" synchronized="false"
  20885. static="false" final="false" visibility="public"
  20886. deprecated="not deprecated">
  20887. </method>
  20888. <method name="finish"
  20889. abstract="false" native="false" synchronized="true"
  20890. static="false" final="false" visibility="public"
  20891. deprecated="not deprecated">
  20892. </method>
  20893. <method name="finished" return="boolean"
  20894. abstract="false" native="false" synchronized="true"
  20895. static="false" final="false" visibility="public"
  20896. deprecated="not deprecated">
  20897. </method>
  20898. <method name="compress" return="int"
  20899. abstract="false" native="false" synchronized="true"
  20900. static="false" final="false" visibility="public"
  20901. deprecated="not deprecated">
  20902. <param name="b" type="byte[]"/>
  20903. <param name="off" type="int"/>
  20904. <param name="len" type="int"/>
  20905. <exception name="IOException" type="java.io.IOException"/>
  20906. </method>
  20907. <method name="getBytesWritten" return="long"
  20908. abstract="false" native="false" synchronized="true"
  20909. static="false" final="false" visibility="public"
  20910. deprecated="not deprecated">
  20911. <doc>
  20912. <![CDATA[Returns the total number of compressed bytes output so far.
  20913. @return the total (non-negative) number of compressed bytes output so far]]>
  20914. </doc>
  20915. </method>
  20916. <method name="getBytesRead" return="long"
  20917. abstract="false" native="false" synchronized="true"
  20918. static="false" final="false" visibility="public"
  20919. deprecated="not deprecated">
  20920. <doc>
  20921. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  20922. @return the total (non-negative) number of uncompressed bytes input so far]]>
  20923. </doc>
  20924. </method>
  20925. <method name="reset"
  20926. abstract="false" native="false" synchronized="true"
  20927. static="false" final="false" visibility="public"
  20928. deprecated="not deprecated">
  20929. </method>
  20930. <method name="end"
  20931. abstract="false" native="false" synchronized="true"
  20932. static="false" final="false" visibility="public"
  20933. deprecated="not deprecated">
  20934. </method>
  20935. <doc>
  20936. <![CDATA[A {@link Compressor} based on the popular
  20937. zlib compression algorithm.
  20938. http://www.zlib.net/]]>
  20939. </doc>
  20940. </class>
  20941. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor -->
  20942. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  20943. <class name="ZlibCompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader&gt;"
  20944. abstract="false"
  20945. static="true" final="true" visibility="public"
  20946. deprecated="not deprecated">
  20947. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader[]"
  20948. abstract="false" native="false" synchronized="false"
  20949. static="true" final="false" visibility="public"
  20950. deprecated="not deprecated">
  20951. </method>
  20952. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader"
  20953. abstract="false" native="false" synchronized="false"
  20954. static="true" final="false" visibility="public"
  20955. deprecated="not deprecated">
  20956. <param name="name" type="java.lang.String"/>
  20957. </method>
  20958. <method name="windowBits" return="int"
  20959. abstract="false" native="false" synchronized="false"
  20960. static="false" final="false" visibility="public"
  20961. deprecated="not deprecated">
  20962. </method>
  20963. <doc>
  20964. <![CDATA[The type of header for compressed data.]]>
  20965. </doc>
  20966. </class>
  20967. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionHeader -->
  20968. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  20969. <class name="ZlibCompressor.CompressionLevel" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel&gt;"
  20970. abstract="false"
  20971. static="true" final="true" visibility="public"
  20972. deprecated="not deprecated">
  20973. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel[]"
  20974. abstract="false" native="false" synchronized="false"
  20975. static="true" final="false" visibility="public"
  20976. deprecated="not deprecated">
  20977. </method>
  20978. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel"
  20979. abstract="false" native="false" synchronized="false"
  20980. static="true" final="false" visibility="public"
  20981. deprecated="not deprecated">
  20982. <param name="name" type="java.lang.String"/>
  20983. </method>
  20984. <doc>
  20985. <![CDATA[The compression level for zlib library.]]>
  20986. </doc>
  20987. </class>
  20988. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionLevel -->
  20989. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  20990. <class name="ZlibCompressor.CompressionStrategy" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy&gt;"
  20991. abstract="false"
  20992. static="true" final="true" visibility="public"
  20993. deprecated="not deprecated">
  20994. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy[]"
  20995. abstract="false" native="false" synchronized="false"
  20996. static="true" final="false" visibility="public"
  20997. deprecated="not deprecated">
  20998. </method>
  20999. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy"
  21000. abstract="false" native="false" synchronized="false"
  21001. static="true" final="false" visibility="public"
  21002. deprecated="not deprecated">
  21003. <param name="name" type="java.lang.String"/>
  21004. </method>
  21005. <doc>
  21006. <![CDATA[The compression level for zlib library.]]>
  21007. </doc>
  21008. </class>
  21009. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibCompressor.CompressionStrategy -->
  21010. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  21011. <class name="ZlibDecompressor" extends="java.lang.Object"
  21012. abstract="false"
  21013. static="false" final="false" visibility="public"
  21014. deprecated="not deprecated">
  21015. <implements name="org.apache.hadoop.io.compress.Decompressor"/>
  21016. <constructor name="ZlibDecompressor" type="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader, int"
  21017. static="false" final="false" visibility="public"
  21018. deprecated="not deprecated">
  21019. <doc>
  21020. <![CDATA[Creates a new decompressor.]]>
  21021. </doc>
  21022. </constructor>
  21023. <constructor name="ZlibDecompressor"
  21024. static="false" final="false" visibility="public"
  21025. deprecated="not deprecated">
  21026. </constructor>
  21027. <method name="setInput"
  21028. abstract="false" native="false" synchronized="true"
  21029. static="false" final="false" visibility="public"
  21030. deprecated="not deprecated">
  21031. <param name="b" type="byte[]"/>
  21032. <param name="off" type="int"/>
  21033. <param name="len" type="int"/>
  21034. </method>
  21035. <method name="setDictionary"
  21036. abstract="false" native="false" synchronized="true"
  21037. static="false" final="false" visibility="public"
  21038. deprecated="not deprecated">
  21039. <param name="b" type="byte[]"/>
  21040. <param name="off" type="int"/>
  21041. <param name="len" type="int"/>
  21042. </method>
  21043. <method name="needsInput" return="boolean"
  21044. abstract="false" native="false" synchronized="true"
  21045. static="false" final="false" visibility="public"
  21046. deprecated="not deprecated">
  21047. </method>
  21048. <method name="needsDictionary" return="boolean"
  21049. abstract="false" native="false" synchronized="true"
  21050. static="false" final="false" visibility="public"
  21051. deprecated="not deprecated">
  21052. </method>
  21053. <method name="finished" return="boolean"
  21054. abstract="false" native="false" synchronized="true"
  21055. static="false" final="false" visibility="public"
  21056. deprecated="not deprecated">
  21057. </method>
  21058. <method name="decompress" return="int"
  21059. abstract="false" native="false" synchronized="true"
  21060. static="false" final="false" visibility="public"
  21061. deprecated="not deprecated">
  21062. <param name="b" type="byte[]"/>
  21063. <param name="off" type="int"/>
  21064. <param name="len" type="int"/>
  21065. <exception name="IOException" type="java.io.IOException"/>
  21066. </method>
  21067. <method name="getBytesWritten" return="long"
  21068. abstract="false" native="false" synchronized="true"
  21069. static="false" final="false" visibility="public"
  21070. deprecated="not deprecated">
  21071. <doc>
  21072. <![CDATA[Returns the total number of compressed bytes output so far.
  21073. @return the total (non-negative) number of compressed bytes output so far]]>
  21074. </doc>
  21075. </method>
  21076. <method name="getBytesRead" return="long"
  21077. abstract="false" native="false" synchronized="true"
  21078. static="false" final="false" visibility="public"
  21079. deprecated="not deprecated">
  21080. <doc>
  21081. <![CDATA[Returns the total number of uncompressed bytes input so far.</p>
  21082. @return the total (non-negative) number of uncompressed bytes input so far]]>
  21083. </doc>
  21084. </method>
  21085. <method name="reset"
  21086. abstract="false" native="false" synchronized="true"
  21087. static="false" final="false" visibility="public"
  21088. deprecated="not deprecated">
  21089. </method>
  21090. <method name="end"
  21091. abstract="false" native="false" synchronized="true"
  21092. static="false" final="false" visibility="public"
  21093. deprecated="not deprecated">
  21094. </method>
  21095. <method name="finalize"
  21096. abstract="false" native="false" synchronized="false"
  21097. static="false" final="false" visibility="protected"
  21098. deprecated="not deprecated">
  21099. </method>
  21100. <doc>
  21101. <![CDATA[A {@link Decompressor} based on the popular
  21102. zlib compression algorithm.
  21103. http://www.zlib.net/]]>
  21104. </doc>
  21105. </class>
  21106. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor -->
  21107. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  21108. <class name="ZlibDecompressor.CompressionHeader" extends="java.lang.Enum&lt;org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader&gt;"
  21109. abstract="false"
  21110. static="true" final="true" visibility="public"
  21111. deprecated="not deprecated">
  21112. <method name="values" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader[]"
  21113. abstract="false" native="false" synchronized="false"
  21114. static="true" final="false" visibility="public"
  21115. deprecated="not deprecated">
  21116. </method>
  21117. <method name="valueOf" return="org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader"
  21118. abstract="false" native="false" synchronized="false"
  21119. static="true" final="false" visibility="public"
  21120. deprecated="not deprecated">
  21121. <param name="name" type="java.lang.String"/>
  21122. </method>
  21123. <method name="windowBits" return="int"
  21124. abstract="false" native="false" synchronized="false"
  21125. static="false" final="false" visibility="public"
  21126. deprecated="not deprecated">
  21127. </method>
  21128. <doc>
  21129. <![CDATA[The headers to detect from compressed data.]]>
  21130. </doc>
  21131. </class>
  21132. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibDecompressor.CompressionHeader -->
  21133. <!-- start class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  21134. <class name="ZlibFactory" extends="java.lang.Object"
  21135. abstract="false"
  21136. static="false" final="false" visibility="public"
  21137. deprecated="not deprecated">
  21138. <constructor name="ZlibFactory"
  21139. static="false" final="false" visibility="public"
  21140. deprecated="not deprecated">
  21141. </constructor>
  21142. <method name="isNativeZlibLoaded" return="boolean"
  21143. abstract="false" native="false" synchronized="false"
  21144. static="true" final="false" visibility="public"
  21145. deprecated="not deprecated">
  21146. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21147. <doc>
  21148. <![CDATA[Check if native-zlib code is loaded & initialized correctly and
  21149. can be loaded for this job.
  21150. @param conf configuration
  21151. @return <code>true</code> if native-zlib is loaded & initialized
  21152. and can be loaded for this job, else <code>false</code>]]>
  21153. </doc>
  21154. </method>
  21155. <method name="getZlibCompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Compressor&gt;"
  21156. abstract="false" native="false" synchronized="false"
  21157. static="true" final="false" visibility="public"
  21158. deprecated="not deprecated">
  21159. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21160. <doc>
  21161. <![CDATA[Return the appropriate type of the zlib compressor.
  21162. @param conf configuration
  21163. @return the appropriate type of the zlib compressor.]]>
  21164. </doc>
  21165. </method>
  21166. <method name="getZlibCompressor" return="org.apache.hadoop.io.compress.Compressor"
  21167. abstract="false" native="false" synchronized="false"
  21168. static="true" final="false" visibility="public"
  21169. deprecated="not deprecated">
  21170. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21171. <doc>
  21172. <![CDATA[Return the appropriate implementation of the zlib compressor.
  21173. @param conf configuration
  21174. @return the appropriate implementation of the zlib compressor.]]>
  21175. </doc>
  21176. </method>
  21177. <method name="getZlibDecompressorType" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.Decompressor&gt;"
  21178. abstract="false" native="false" synchronized="false"
  21179. static="true" final="false" visibility="public"
  21180. deprecated="not deprecated">
  21181. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21182. <doc>
  21183. <![CDATA[Return the appropriate type of the zlib decompressor.
  21184. @param conf configuration
  21185. @return the appropriate type of the zlib decompressor.]]>
  21186. </doc>
  21187. </method>
  21188. <method name="getZlibDecompressor" return="org.apache.hadoop.io.compress.Decompressor"
  21189. abstract="false" native="false" synchronized="false"
  21190. static="true" final="false" visibility="public"
  21191. deprecated="not deprecated">
  21192. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21193. <doc>
  21194. <![CDATA[Return the appropriate implementation of the zlib decompressor.
  21195. @param conf configuration
  21196. @return the appropriate implementation of the zlib decompressor.]]>
  21197. </doc>
  21198. </method>
  21199. <doc>
  21200. <![CDATA[A collection of factories to create the right
  21201. zlib/gzip compressor/decompressor instances.]]>
  21202. </doc>
  21203. </class>
  21204. <!-- end class org.apache.hadoop.io.compress.zlib.ZlibFactory -->
  21205. </package>
  21206. <package name="org.apache.hadoop.io.retry">
  21207. <!-- start class org.apache.hadoop.io.retry.RetryPolicies -->
  21208. <class name="RetryPolicies" extends="java.lang.Object"
  21209. abstract="false"
  21210. static="false" final="false" visibility="public"
  21211. deprecated="not deprecated">
  21212. <constructor name="RetryPolicies"
  21213. static="false" final="false" visibility="public"
  21214. deprecated="not deprecated">
  21215. </constructor>
  21216. <method name="retryUpToMaximumCountWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21217. abstract="false" native="false" synchronized="false"
  21218. static="true" final="true" visibility="public"
  21219. deprecated="not deprecated">
  21220. <param name="maxRetries" type="int"/>
  21221. <param name="sleepTime" type="long"/>
  21222. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21223. <doc>
  21224. <![CDATA[<p>
  21225. Keep trying a limited number of times, waiting a fixed time between attempts,
  21226. and then fail by re-throwing the exception.
  21227. </p>]]>
  21228. </doc>
  21229. </method>
  21230. <method name="retryUpToMaximumTimeWithFixedSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21231. abstract="false" native="false" synchronized="false"
  21232. static="true" final="true" visibility="public"
  21233. deprecated="not deprecated">
  21234. <param name="maxTime" type="long"/>
  21235. <param name="sleepTime" type="long"/>
  21236. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21237. <doc>
  21238. <![CDATA[<p>
  21239. Keep trying for a maximum time, waiting a fixed time between attempts,
  21240. and then fail by re-throwing the exception.
  21241. </p>]]>
  21242. </doc>
  21243. </method>
  21244. <method name="retryUpToMaximumCountWithProportionalSleep" return="org.apache.hadoop.io.retry.RetryPolicy"
  21245. abstract="false" native="false" synchronized="false"
  21246. static="true" final="true" visibility="public"
  21247. deprecated="not deprecated">
  21248. <param name="maxRetries" type="int"/>
  21249. <param name="sleepTime" type="long"/>
  21250. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21251. <doc>
  21252. <![CDATA[<p>
  21253. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21254. and then fail by re-throwing the exception.
  21255. The time between attempts is <code>sleepTime</code> mutliplied by the number of tries so far.
  21256. </p>]]>
  21257. </doc>
  21258. </method>
  21259. <method name="exponentialBackoffRetry" return="org.apache.hadoop.io.retry.RetryPolicy"
  21260. abstract="false" native="false" synchronized="false"
  21261. static="true" final="true" visibility="public"
  21262. deprecated="not deprecated">
  21263. <param name="maxRetries" type="int"/>
  21264. <param name="sleepTime" type="long"/>
  21265. <param name="timeUnit" type="java.util.concurrent.TimeUnit"/>
  21266. <doc>
  21267. <![CDATA[<p>
  21268. Keep trying a limited number of times, waiting a growing amount of time between attempts,
  21269. and then fail by re-throwing the exception.
  21270. The time between attempts is <code>sleepTime</code> mutliplied by a random
  21271. number in the range of [0, 2 to the number of retries)
  21272. </p>]]>
  21273. </doc>
  21274. </method>
  21275. <method name="retryByException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21276. abstract="false" native="false" synchronized="false"
  21277. static="true" final="true" visibility="public"
  21278. deprecated="not deprecated">
  21279. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21280. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  21281. <doc>
  21282. <![CDATA[<p>
  21283. Set a default policy with some explicit handlers for specific exceptions.
  21284. </p>]]>
  21285. </doc>
  21286. </method>
  21287. <method name="retryByRemoteException" return="org.apache.hadoop.io.retry.RetryPolicy"
  21288. abstract="false" native="false" synchronized="false"
  21289. static="true" final="true" visibility="public"
  21290. deprecated="not deprecated">
  21291. <param name="defaultPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21292. <param name="exceptionToPolicyMap" type="java.util.Map&lt;java.lang.Class&lt;? extends java.lang.Exception&gt;, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  21293. <doc>
  21294. <![CDATA[<p>
  21295. A retry policy for RemoteException
  21296. Set a default policy with some explicit handlers for specific exceptions.
  21297. </p>]]>
  21298. </doc>
  21299. </method>
  21300. <field name="TRY_ONCE_THEN_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21301. transient="false" volatile="false"
  21302. static="true" final="true" visibility="public"
  21303. deprecated="not deprecated">
  21304. <doc>
  21305. <![CDATA[<p>
  21306. Try once, and fail by re-throwing the exception.
  21307. This corresponds to having no retry mechanism in place.
  21308. </p>]]>
  21309. </doc>
  21310. </field>
  21311. <field name="TRY_ONCE_DONT_FAIL" type="org.apache.hadoop.io.retry.RetryPolicy"
  21312. transient="false" volatile="false"
  21313. static="true" final="true" visibility="public"
  21314. deprecated="not deprecated">
  21315. <doc>
  21316. <![CDATA[<p>
  21317. Try once, and fail silently for <code>void</code> methods, or by
  21318. re-throwing the exception for non-<code>void</code> methods.
  21319. </p>]]>
  21320. </doc>
  21321. </field>
  21322. <field name="RETRY_FOREVER" type="org.apache.hadoop.io.retry.RetryPolicy"
  21323. transient="false" volatile="false"
  21324. static="true" final="true" visibility="public"
  21325. deprecated="not deprecated">
  21326. <doc>
  21327. <![CDATA[<p>
  21328. Keep trying forever.
  21329. </p>]]>
  21330. </doc>
  21331. </field>
  21332. <doc>
  21333. <![CDATA[<p>
  21334. A collection of useful implementations of {@link RetryPolicy}.
  21335. </p>]]>
  21336. </doc>
  21337. </class>
  21338. <!-- end class org.apache.hadoop.io.retry.RetryPolicies -->
  21339. <!-- start interface org.apache.hadoop.io.retry.RetryPolicy -->
  21340. <interface name="RetryPolicy" abstract="true"
  21341. static="false" final="false" visibility="public"
  21342. deprecated="not deprecated">
  21343. <method name="shouldRetry" return="boolean"
  21344. abstract="false" native="false" synchronized="false"
  21345. static="false" final="false" visibility="public"
  21346. deprecated="not deprecated">
  21347. <param name="e" type="java.lang.Exception"/>
  21348. <param name="retries" type="int"/>
  21349. <exception name="Exception" type="java.lang.Exception"/>
  21350. <doc>
  21351. <![CDATA[<p>
  21352. Determines whether the framework should retry a
  21353. method for the given exception, and the number
  21354. of retries that have been made for that operation
  21355. so far.
  21356. </p>
  21357. @param e The exception that caused the method to fail.
  21358. @param retries The number of times the method has been retried.
  21359. @return <code>true</code> if the method should be retried,
  21360. <code>false</code> if the method should not be retried
  21361. but shouldn't fail with an exception (only for void methods).
  21362. @throws Exception The re-thrown exception <code>e</code> indicating
  21363. that the method failed and should not be retried further.]]>
  21364. </doc>
  21365. </method>
  21366. <doc>
  21367. <![CDATA[<p>
  21368. Specifies a policy for retrying method failures.
  21369. Implementations of this interface should be immutable.
  21370. </p>]]>
  21371. </doc>
  21372. </interface>
  21373. <!-- end interface org.apache.hadoop.io.retry.RetryPolicy -->
  21374. <!-- start class org.apache.hadoop.io.retry.RetryProxy -->
  21375. <class name="RetryProxy" extends="java.lang.Object"
  21376. abstract="false"
  21377. static="false" final="false" visibility="public"
  21378. deprecated="not deprecated">
  21379. <constructor name="RetryProxy"
  21380. static="false" final="false" visibility="public"
  21381. deprecated="not deprecated">
  21382. </constructor>
  21383. <method name="create" return="java.lang.Object"
  21384. abstract="false" native="false" synchronized="false"
  21385. static="true" final="false" visibility="public"
  21386. deprecated="not deprecated">
  21387. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  21388. <param name="implementation" type="java.lang.Object"/>
  21389. <param name="retryPolicy" type="org.apache.hadoop.io.retry.RetryPolicy"/>
  21390. <doc>
  21391. <![CDATA[<p>
  21392. Create a proxy for an interface of an implementation class
  21393. using the same retry policy for each method in the interface.
  21394. </p>
  21395. @param iface the interface that the retry will implement
  21396. @param implementation the instance whose methods should be retried
  21397. @param retryPolicy the policy for retirying method call failures
  21398. @return the retry proxy]]>
  21399. </doc>
  21400. </method>
  21401. <method name="create" return="java.lang.Object"
  21402. abstract="false" native="false" synchronized="false"
  21403. static="true" final="false" visibility="public"
  21404. deprecated="not deprecated">
  21405. <param name="iface" type="java.lang.Class&lt;?&gt;"/>
  21406. <param name="implementation" type="java.lang.Object"/>
  21407. <param name="methodNameToPolicyMap" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.io.retry.RetryPolicy&gt;"/>
  21408. <doc>
  21409. <![CDATA[<p>
  21410. Create a proxy for an interface of an implementation class
  21411. using the a set of retry policies specified by method name.
  21412. If no retry policy is defined for a method then a default of
  21413. {@link RetryPolicies#TRY_ONCE_THEN_FAIL} is used.
  21414. </p>
  21415. @param iface the interface that the retry will implement
  21416. @param implementation the instance whose methods should be retried
  21417. @param methodNameToPolicyMap a map of method names to retry policies
  21418. @return the retry proxy]]>
  21419. </doc>
  21420. </method>
  21421. <doc>
  21422. <![CDATA[<p>
  21423. A factory for creating retry proxies.
  21424. </p>]]>
  21425. </doc>
  21426. </class>
  21427. <!-- end class org.apache.hadoop.io.retry.RetryProxy -->
  21428. </package>
  21429. <package name="org.apache.hadoop.io.serializer">
  21430. <!-- start interface org.apache.hadoop.io.serializer.Deserializer -->
  21431. <interface name="Deserializer" abstract="true"
  21432. static="false" final="false" visibility="public"
  21433. deprecated="not deprecated">
  21434. <method name="open"
  21435. abstract="false" native="false" synchronized="false"
  21436. static="false" final="false" visibility="public"
  21437. deprecated="not deprecated">
  21438. <param name="in" type="java.io.InputStream"/>
  21439. <exception name="IOException" type="java.io.IOException"/>
  21440. <doc>
  21441. <![CDATA[<p>Prepare the deserializer for reading.</p>]]>
  21442. </doc>
  21443. </method>
  21444. <method name="deserialize" return="T"
  21445. abstract="false" native="false" synchronized="false"
  21446. static="false" final="false" visibility="public"
  21447. deprecated="not deprecated">
  21448. <param name="t" type="T"/>
  21449. <exception name="IOException" type="java.io.IOException"/>
  21450. <doc>
  21451. <![CDATA[<p>
  21452. Deserialize the next object from the underlying input stream.
  21453. If the object <code>t</code> is non-null then this deserializer
  21454. <i>may</i> set its internal state to the next object read from the input
  21455. stream. Otherwise, if the object <code>t</code> is null a new
  21456. deserialized object will be created.
  21457. </p>
  21458. @return the deserialized object]]>
  21459. </doc>
  21460. </method>
  21461. <method name="close"
  21462. abstract="false" native="false" synchronized="false"
  21463. static="false" final="false" visibility="public"
  21464. deprecated="not deprecated">
  21465. <exception name="IOException" type="java.io.IOException"/>
  21466. <doc>
  21467. <![CDATA[<p>Close the underlying input stream and clear up any resources.</p>]]>
  21468. </doc>
  21469. </method>
  21470. <doc>
  21471. <![CDATA[<p>
  21472. Provides a facility for deserializing objects of type <T> from an
  21473. {@link InputStream}.
  21474. </p>
  21475. <p>
  21476. Deserializers are stateful, but must not buffer the input since
  21477. other producers may read from the input between calls to
  21478. {@link #deserialize(Object)}.
  21479. </p>
  21480. @param <T>]]>
  21481. </doc>
  21482. </interface>
  21483. <!-- end interface org.apache.hadoop.io.serializer.Deserializer -->
  21484. <!-- start class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21485. <class name="DeserializerComparator" extends="java.lang.Object"
  21486. abstract="true"
  21487. static="false" final="false" visibility="public"
  21488. deprecated="not deprecated">
  21489. <implements name="org.apache.hadoop.io.RawComparator&lt;T&gt;"/>
  21490. <constructor name="DeserializerComparator" type="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  21491. static="false" final="false" visibility="protected"
  21492. deprecated="not deprecated">
  21493. <exception name="IOException" type="java.io.IOException"/>
  21494. </constructor>
  21495. <method name="compare" return="int"
  21496. abstract="false" native="false" synchronized="false"
  21497. static="false" final="false" visibility="public"
  21498. deprecated="not deprecated">
  21499. <param name="b1" type="byte[]"/>
  21500. <param name="s1" type="int"/>
  21501. <param name="l1" type="int"/>
  21502. <param name="b2" type="byte[]"/>
  21503. <param name="s2" type="int"/>
  21504. <param name="l2" type="int"/>
  21505. </method>
  21506. <doc>
  21507. <![CDATA[<p>
  21508. A {@link RawComparator} that uses a {@link Deserializer} to deserialize
  21509. the objects to be compared so that the standard {@link Comparator} can
  21510. be used to compare them.
  21511. </p>
  21512. <p>
  21513. One may optimize compare-intensive operations by using a custom
  21514. implementation of {@link RawComparator} that operates directly
  21515. on byte representations.
  21516. </p>
  21517. @param <T>]]>
  21518. </doc>
  21519. </class>
  21520. <!-- end class org.apache.hadoop.io.serializer.DeserializerComparator -->
  21521. <!-- start class org.apache.hadoop.io.serializer.JavaSerialization -->
  21522. <class name="JavaSerialization" extends="java.lang.Object"
  21523. abstract="false"
  21524. static="false" final="false" visibility="public"
  21525. deprecated="not deprecated">
  21526. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;java.io.Serializable&gt;"/>
  21527. <constructor name="JavaSerialization"
  21528. static="false" final="false" visibility="public"
  21529. deprecated="not deprecated">
  21530. </constructor>
  21531. <method name="accept" return="boolean"
  21532. abstract="false" native="false" synchronized="false"
  21533. static="false" final="false" visibility="public"
  21534. deprecated="not deprecated">
  21535. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  21536. </method>
  21537. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;java.io.Serializable&gt;"
  21538. abstract="false" native="false" synchronized="false"
  21539. static="false" final="false" visibility="public"
  21540. deprecated="not deprecated">
  21541. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  21542. </method>
  21543. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;java.io.Serializable&gt;"
  21544. abstract="false" native="false" synchronized="false"
  21545. static="false" final="false" visibility="public"
  21546. deprecated="not deprecated">
  21547. <param name="c" type="java.lang.Class&lt;java.io.Serializable&gt;"/>
  21548. </method>
  21549. <doc>
  21550. <![CDATA[<p>
  21551. An experimental {@link Serialization} for Java {@link Serializable} classes.
  21552. </p>
  21553. @see JavaSerializationComparator]]>
  21554. </doc>
  21555. </class>
  21556. <!-- end class org.apache.hadoop.io.serializer.JavaSerialization -->
  21557. <!-- start class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21558. <class name="JavaSerializationComparator" extends="org.apache.hadoop.io.serializer.DeserializerComparator&lt;T&gt;"
  21559. abstract="false"
  21560. static="false" final="false" visibility="public"
  21561. deprecated="not deprecated">
  21562. <constructor name="JavaSerializationComparator"
  21563. static="false" final="false" visibility="public"
  21564. deprecated="not deprecated">
  21565. <exception name="IOException" type="java.io.IOException"/>
  21566. </constructor>
  21567. <method name="compare" return="int"
  21568. abstract="false" native="false" synchronized="false"
  21569. static="false" final="false" visibility="public"
  21570. deprecated="not deprecated">
  21571. <param name="o1" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  21572. <param name="o2" type="T extends java.io.Serializable &amp; java.lang.Comparable&lt;T&gt;"/>
  21573. </method>
  21574. <doc>
  21575. <![CDATA[<p>
  21576. A {@link RawComparator} that uses a {@link JavaSerialization}
  21577. {@link Deserializer} to deserialize objects that are then compared via
  21578. their {@link Comparable} interfaces.
  21579. </p>
  21580. @param <T>
  21581. @see JavaSerialization]]>
  21582. </doc>
  21583. </class>
  21584. <!-- end class org.apache.hadoop.io.serializer.JavaSerializationComparator -->
  21585. <!-- start interface org.apache.hadoop.io.serializer.Serialization -->
  21586. <interface name="Serialization" abstract="true"
  21587. static="false" final="false" visibility="public"
  21588. deprecated="not deprecated">
  21589. <method name="accept" return="boolean"
  21590. abstract="false" native="false" synchronized="false"
  21591. static="false" final="false" visibility="public"
  21592. deprecated="not deprecated">
  21593. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  21594. <doc>
  21595. <![CDATA[Allows clients to test whether this {@link Serialization}
  21596. supports the given class.]]>
  21597. </doc>
  21598. </method>
  21599. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  21600. abstract="false" native="false" synchronized="false"
  21601. static="false" final="false" visibility="public"
  21602. deprecated="not deprecated">
  21603. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  21604. <doc>
  21605. <![CDATA[@return a {@link Serializer} for the given class.]]>
  21606. </doc>
  21607. </method>
  21608. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  21609. abstract="false" native="false" synchronized="false"
  21610. static="false" final="false" visibility="public"
  21611. deprecated="not deprecated">
  21612. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  21613. <doc>
  21614. <![CDATA[@return a {@link Deserializer} for the given class.]]>
  21615. </doc>
  21616. </method>
  21617. <doc>
  21618. <![CDATA[<p>
  21619. Encapsulates a {@link Serializer}/{@link Deserializer} pair.
  21620. </p>
  21621. @param <T>]]>
  21622. </doc>
  21623. </interface>
  21624. <!-- end interface org.apache.hadoop.io.serializer.Serialization -->
  21625. <!-- start class org.apache.hadoop.io.serializer.SerializationFactory -->
  21626. <class name="SerializationFactory" extends="org.apache.hadoop.conf.Configured"
  21627. abstract="false"
  21628. static="false" final="false" visibility="public"
  21629. deprecated="not deprecated">
  21630. <constructor name="SerializationFactory" type="org.apache.hadoop.conf.Configuration"
  21631. static="false" final="false" visibility="public"
  21632. deprecated="not deprecated">
  21633. <doc>
  21634. <![CDATA[<p>
  21635. Serializations are found by reading the <code>io.serializations</code>
  21636. property from <code>conf</code>, which is a comma-delimited list of
  21637. classnames.
  21638. </p>]]>
  21639. </doc>
  21640. </constructor>
  21641. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;T&gt;"
  21642. abstract="false" native="false" synchronized="false"
  21643. static="false" final="false" visibility="public"
  21644. deprecated="not deprecated">
  21645. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  21646. </method>
  21647. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;T&gt;"
  21648. abstract="false" native="false" synchronized="false"
  21649. static="false" final="false" visibility="public"
  21650. deprecated="not deprecated">
  21651. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  21652. </method>
  21653. <method name="getSerialization" return="org.apache.hadoop.io.serializer.Serialization&lt;T&gt;"
  21654. abstract="false" native="false" synchronized="false"
  21655. static="false" final="false" visibility="public"
  21656. deprecated="not deprecated">
  21657. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  21658. </method>
  21659. <doc>
  21660. <![CDATA[<p>
  21661. A factory for {@link Serialization}s.
  21662. </p>]]>
  21663. </doc>
  21664. </class>
  21665. <!-- end class org.apache.hadoop.io.serializer.SerializationFactory -->
  21666. <!-- start interface org.apache.hadoop.io.serializer.Serializer -->
  21667. <interface name="Serializer" abstract="true"
  21668. static="false" final="false" visibility="public"
  21669. deprecated="not deprecated">
  21670. <method name="open"
  21671. abstract="false" native="false" synchronized="false"
  21672. static="false" final="false" visibility="public"
  21673. deprecated="not deprecated">
  21674. <param name="out" type="java.io.OutputStream"/>
  21675. <exception name="IOException" type="java.io.IOException"/>
  21676. <doc>
  21677. <![CDATA[<p>Prepare the serializer for writing.</p>]]>
  21678. </doc>
  21679. </method>
  21680. <method name="serialize"
  21681. abstract="false" native="false" synchronized="false"
  21682. static="false" final="false" visibility="public"
  21683. deprecated="not deprecated">
  21684. <param name="t" type="T"/>
  21685. <exception name="IOException" type="java.io.IOException"/>
  21686. <doc>
  21687. <![CDATA[<p>Serialize <code>t</code> to the underlying output stream.</p>]]>
  21688. </doc>
  21689. </method>
  21690. <method name="close"
  21691. abstract="false" native="false" synchronized="false"
  21692. static="false" final="false" visibility="public"
  21693. deprecated="not deprecated">
  21694. <exception name="IOException" type="java.io.IOException"/>
  21695. <doc>
  21696. <![CDATA[<p>Close the underlying output stream and clear up any resources.</p>]]>
  21697. </doc>
  21698. </method>
  21699. <doc>
  21700. <![CDATA[<p>
  21701. Provides a facility for serializing objects of type <T> to an
  21702. {@link OutputStream}.
  21703. </p>
  21704. <p>
  21705. Serializers are stateful, but must not buffer the output since
  21706. other producers may write to the output between calls to
  21707. {@link #serialize(Object)}.
  21708. </p>
  21709. @param <T>]]>
  21710. </doc>
  21711. </interface>
  21712. <!-- end interface org.apache.hadoop.io.serializer.Serializer -->
  21713. <!-- start class org.apache.hadoop.io.serializer.WritableSerialization -->
  21714. <class name="WritableSerialization" extends="org.apache.hadoop.conf.Configured"
  21715. abstract="false"
  21716. static="false" final="false" visibility="public"
  21717. deprecated="not deprecated">
  21718. <implements name="org.apache.hadoop.io.serializer.Serialization&lt;org.apache.hadoop.io.Writable&gt;"/>
  21719. <constructor name="WritableSerialization"
  21720. static="false" final="false" visibility="public"
  21721. deprecated="not deprecated">
  21722. </constructor>
  21723. <method name="accept" return="boolean"
  21724. abstract="false" native="false" synchronized="false"
  21725. static="false" final="false" visibility="public"
  21726. deprecated="not deprecated">
  21727. <param name="c" type="java.lang.Class&lt;?&gt;"/>
  21728. </method>
  21729. <method name="getDeserializer" return="org.apache.hadoop.io.serializer.Deserializer&lt;org.apache.hadoop.io.Writable&gt;"
  21730. abstract="false" native="false" synchronized="false"
  21731. static="false" final="false" visibility="public"
  21732. deprecated="not deprecated">
  21733. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  21734. </method>
  21735. <method name="getSerializer" return="org.apache.hadoop.io.serializer.Serializer&lt;org.apache.hadoop.io.Writable&gt;"
  21736. abstract="false" native="false" synchronized="false"
  21737. static="false" final="false" visibility="public"
  21738. deprecated="not deprecated">
  21739. <param name="c" type="java.lang.Class&lt;org.apache.hadoop.io.Writable&gt;"/>
  21740. </method>
  21741. <doc>
  21742. <![CDATA[A {@link Serialization} for {@link Writable}s that delegates to
  21743. {@link Writable#write(java.io.DataOutput)} and
  21744. {@link Writable#readFields(java.io.DataInput)}.]]>
  21745. </doc>
  21746. </class>
  21747. <!-- end class org.apache.hadoop.io.serializer.WritableSerialization -->
  21748. </package>
  21749. <package name="org.apache.hadoop.ipc">
  21750. <!-- start class org.apache.hadoop.ipc.Client -->
  21751. <class name="Client" extends="java.lang.Object"
  21752. abstract="false"
  21753. static="false" final="false" visibility="public"
  21754. deprecated="not deprecated">
  21755. <constructor name="Client" type="java.lang.Class, org.apache.hadoop.conf.Configuration, javax.net.SocketFactory"
  21756. static="false" final="false" visibility="public"
  21757. deprecated="not deprecated">
  21758. <doc>
  21759. <![CDATA[Construct an IPC client whose values are of the given {@link Writable}
  21760. class.]]>
  21761. </doc>
  21762. </constructor>
  21763. <constructor name="Client" type="java.lang.Class&lt;?&gt;, org.apache.hadoop.conf.Configuration"
  21764. static="false" final="false" visibility="public"
  21765. deprecated="not deprecated">
  21766. <doc>
  21767. <![CDATA[Construct an IPC client with the default SocketFactory
  21768. @param valueClass
  21769. @param conf]]>
  21770. </doc>
  21771. </constructor>
  21772. <method name="setPingInterval"
  21773. abstract="false" native="false" synchronized="false"
  21774. static="true" final="true" visibility="public"
  21775. deprecated="not deprecated">
  21776. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21777. <param name="pingInterval" type="int"/>
  21778. <doc>
  21779. <![CDATA[set the ping interval value in configuration
  21780. @param conf Configuration
  21781. @param pingInterval the ping interval]]>
  21782. </doc>
  21783. </method>
  21784. <method name="stop"
  21785. abstract="false" native="false" synchronized="false"
  21786. static="false" final="false" visibility="public"
  21787. deprecated="not deprecated">
  21788. <doc>
  21789. <![CDATA[Stop all threads related to this client. No further calls may be made
  21790. using this client.]]>
  21791. </doc>
  21792. </method>
  21793. <method name="call" return="org.apache.hadoop.io.Writable"
  21794. abstract="false" native="false" synchronized="false"
  21795. static="false" final="false" visibility="public"
  21796. deprecated="not deprecated">
  21797. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21798. <param name="address" type="java.net.InetSocketAddress"/>
  21799. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21800. <exception name="IOException" type="java.io.IOException"/>
  21801. <doc>
  21802. <![CDATA[Make a call, passing <code>param</code>, to the IPC server running at
  21803. <code>address</code>, returning the value. Throws exceptions if there are
  21804. network problems or if the remote code threw an exception.]]>
  21805. </doc>
  21806. </method>
  21807. <method name="call" return="org.apache.hadoop.io.Writable"
  21808. abstract="false" native="false" synchronized="false"
  21809. static="false" final="false" visibility="public"
  21810. deprecated="not deprecated">
  21811. <param name="param" type="org.apache.hadoop.io.Writable"/>
  21812. <param name="addr" type="java.net.InetSocketAddress"/>
  21813. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21814. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  21815. <exception name="IOException" type="java.io.IOException"/>
  21816. </method>
  21817. <method name="call" return="org.apache.hadoop.io.Writable[]"
  21818. abstract="false" native="false" synchronized="false"
  21819. static="false" final="false" visibility="public"
  21820. deprecated="not deprecated">
  21821. <param name="params" type="org.apache.hadoop.io.Writable[]"/>
  21822. <param name="addresses" type="java.net.InetSocketAddress[]"/>
  21823. <exception name="IOException" type="java.io.IOException"/>
  21824. <doc>
  21825. <![CDATA[Makes a set of calls in parallel. Each parameter is sent to the
  21826. corresponding address. When all values are available, or have timed out
  21827. or errored, the collected results are returned in an array. The array
  21828. contains nulls for calls that timed out or errored.]]>
  21829. </doc>
  21830. </method>
  21831. <field name="LOG" type="org.apache.commons.logging.Log"
  21832. transient="false" volatile="false"
  21833. static="true" final="true" visibility="public"
  21834. deprecated="not deprecated">
  21835. </field>
  21836. <doc>
  21837. <![CDATA[A client for an IPC service. IPC calls take a single {@link Writable} as a
  21838. parameter, and return a {@link Writable} as their value. A service runs on
  21839. a port and is defined by a parameter class and a value class.
  21840. @see Server]]>
  21841. </doc>
  21842. </class>
  21843. <!-- end class org.apache.hadoop.ipc.Client -->
  21844. <!-- start class org.apache.hadoop.ipc.RemoteException -->
  21845. <class name="RemoteException" extends="java.io.IOException"
  21846. abstract="false"
  21847. static="false" final="false" visibility="public"
  21848. deprecated="not deprecated">
  21849. <constructor name="RemoteException" type="java.lang.String, java.lang.String"
  21850. static="false" final="false" visibility="public"
  21851. deprecated="not deprecated">
  21852. </constructor>
  21853. <method name="getClassName" return="java.lang.String"
  21854. abstract="false" native="false" synchronized="false"
  21855. static="false" final="false" visibility="public"
  21856. deprecated="not deprecated">
  21857. </method>
  21858. <method name="unwrapRemoteException" return="java.io.IOException"
  21859. abstract="false" native="false" synchronized="false"
  21860. static="false" final="false" visibility="public"
  21861. deprecated="not deprecated">
  21862. <param name="lookupTypes" type="java.lang.Class[]"/>
  21863. <doc>
  21864. <![CDATA[If this remote exception wraps up one of the lookupTypes
  21865. then return this exception.
  21866. <p>
  21867. Unwraps any IOException.
  21868. @param lookupTypes the desired exception class.
  21869. @return IOException, which is either the lookupClass exception or this.]]>
  21870. </doc>
  21871. </method>
  21872. <method name="unwrapRemoteException" return="java.io.IOException"
  21873. abstract="false" native="false" synchronized="false"
  21874. static="false" final="false" visibility="public"
  21875. deprecated="not deprecated">
  21876. <doc>
  21877. <![CDATA[Instantiate and return the exception wrapped up by this remote exception.
  21878. <p> This unwraps any <code>Throwable</code> that has a constructor taking
  21879. a <code>String</code> as a parameter.
  21880. Otherwise it returns this.
  21881. @return <code>Throwable]]>
  21882. </doc>
  21883. </method>
  21884. </class>
  21885. <!-- end class org.apache.hadoop.ipc.RemoteException -->
  21886. <!-- start class org.apache.hadoop.ipc.RPC -->
  21887. <class name="RPC" extends="java.lang.Object"
  21888. abstract="false"
  21889. static="false" final="false" visibility="public"
  21890. deprecated="not deprecated">
  21891. <method name="waitForProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21892. abstract="false" native="false" synchronized="false"
  21893. static="true" final="false" visibility="public"
  21894. deprecated="not deprecated">
  21895. <param name="protocol" type="java.lang.Class"/>
  21896. <param name="clientVersion" type="long"/>
  21897. <param name="addr" type="java.net.InetSocketAddress"/>
  21898. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21899. <exception name="IOException" type="java.io.IOException"/>
  21900. </method>
  21901. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21902. abstract="false" native="false" synchronized="false"
  21903. static="true" final="false" visibility="public"
  21904. deprecated="not deprecated">
  21905. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  21906. <param name="clientVersion" type="long"/>
  21907. <param name="addr" type="java.net.InetSocketAddress"/>
  21908. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21909. <param name="factory" type="javax.net.SocketFactory"/>
  21910. <exception name="IOException" type="java.io.IOException"/>
  21911. <doc>
  21912. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21913. talking to a server at the named address.]]>
  21914. </doc>
  21915. </method>
  21916. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21917. abstract="false" native="false" synchronized="false"
  21918. static="true" final="false" visibility="public"
  21919. deprecated="not deprecated">
  21920. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  21921. <param name="clientVersion" type="long"/>
  21922. <param name="addr" type="java.net.InetSocketAddress"/>
  21923. <param name="ticket" type="org.apache.hadoop.security.UserGroupInformation"/>
  21924. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21925. <param name="factory" type="javax.net.SocketFactory"/>
  21926. <exception name="IOException" type="java.io.IOException"/>
  21927. <doc>
  21928. <![CDATA[Construct a client-side proxy object that implements the named protocol,
  21929. talking to a server at the named address.]]>
  21930. </doc>
  21931. </method>
  21932. <method name="getProxy" return="org.apache.hadoop.ipc.VersionedProtocol"
  21933. abstract="false" native="false" synchronized="false"
  21934. static="true" final="false" visibility="public"
  21935. deprecated="not deprecated">
  21936. <param name="protocol" type="java.lang.Class&lt;?&gt;"/>
  21937. <param name="clientVersion" type="long"/>
  21938. <param name="addr" type="java.net.InetSocketAddress"/>
  21939. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21940. <exception name="IOException" type="java.io.IOException"/>
  21941. <doc>
  21942. <![CDATA[Construct a client-side proxy object with the default SocketFactory
  21943. @param protocol
  21944. @param clientVersion
  21945. @param addr
  21946. @param conf
  21947. @return a proxy instance
  21948. @throws IOException]]>
  21949. </doc>
  21950. </method>
  21951. <method name="stopProxy"
  21952. abstract="false" native="false" synchronized="false"
  21953. static="true" final="false" visibility="public"
  21954. deprecated="not deprecated">
  21955. <param name="proxy" type="org.apache.hadoop.ipc.VersionedProtocol"/>
  21956. <doc>
  21957. <![CDATA[Stop this proxy and release its invoker's resource
  21958. @param proxy the proxy to be stopped]]>
  21959. </doc>
  21960. </method>
  21961. <method name="call" return="java.lang.Object[]"
  21962. abstract="false" native="false" synchronized="false"
  21963. static="true" final="false" visibility="public"
  21964. deprecated="not deprecated">
  21965. <param name="method" type="java.lang.reflect.Method"/>
  21966. <param name="params" type="java.lang.Object[][]"/>
  21967. <param name="addrs" type="java.net.InetSocketAddress[]"/>
  21968. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21969. <exception name="IOException" type="java.io.IOException"/>
  21970. <doc>
  21971. <![CDATA[Expert: Make multiple, parallel calls to a set of servers.]]>
  21972. </doc>
  21973. </method>
  21974. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21975. abstract="false" native="false" synchronized="false"
  21976. static="true" final="false" visibility="public"
  21977. deprecated="not deprecated">
  21978. <param name="instance" type="java.lang.Object"/>
  21979. <param name="bindAddress" type="java.lang.String"/>
  21980. <param name="port" type="int"/>
  21981. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21982. <exception name="IOException" type="java.io.IOException"/>
  21983. <doc>
  21984. <![CDATA[Construct a server for a protocol implementation instance listening on a
  21985. port and address.]]>
  21986. </doc>
  21987. </method>
  21988. <method name="getServer" return="org.apache.hadoop.ipc.RPC.Server"
  21989. abstract="false" native="false" synchronized="false"
  21990. static="true" final="false" visibility="public"
  21991. deprecated="not deprecated">
  21992. <param name="instance" type="java.lang.Object"/>
  21993. <param name="bindAddress" type="java.lang.String"/>
  21994. <param name="port" type="int"/>
  21995. <param name="numHandlers" type="int"/>
  21996. <param name="verbose" type="boolean"/>
  21997. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  21998. <exception name="IOException" type="java.io.IOException"/>
  21999. <doc>
  22000. <![CDATA[Construct a server for a protocol implementation instance listening on a
  22001. port and address.]]>
  22002. </doc>
  22003. </method>
  22004. <doc>
  22005. <![CDATA[A simple RPC mechanism.
  22006. A <i>protocol</i> is a Java interface. All parameters and return types must
  22007. be one of:
  22008. <ul> <li>a primitive type, <code>boolean</code>, <code>byte</code>,
  22009. <code>char</code>, <code>short</code>, <code>int</code>, <code>long</code>,
  22010. <code>float</code>, <code>double</code>, or <code>void</code>; or</li>
  22011. <li>a {@link String}; or</li>
  22012. <li>a {@link Writable}; or</li>
  22013. <li>an array of the above types</li> </ul>
  22014. All methods in the protocol should throw only IOException. No field data of
  22015. the protocol instance is transmitted.]]>
  22016. </doc>
  22017. </class>
  22018. <!-- end class org.apache.hadoop.ipc.RPC -->
  22019. <!-- start class org.apache.hadoop.ipc.RPC.Server -->
  22020. <class name="RPC.Server" extends="org.apache.hadoop.ipc.Server"
  22021. abstract="false"
  22022. static="true" final="false" visibility="public"
  22023. deprecated="not deprecated">
  22024. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int"
  22025. static="false" final="false" visibility="public"
  22026. deprecated="not deprecated">
  22027. <exception name="IOException" type="java.io.IOException"/>
  22028. <doc>
  22029. <![CDATA[Construct an RPC server.
  22030. @param instance the instance whose methods will be called
  22031. @param conf the configuration to use
  22032. @param bindAddress the address to bind on to listen for connection
  22033. @param port the port to listen for connections on]]>
  22034. </doc>
  22035. </constructor>
  22036. <constructor name="RPC.Server" type="java.lang.Object, org.apache.hadoop.conf.Configuration, java.lang.String, int, int, boolean"
  22037. static="false" final="false" visibility="public"
  22038. deprecated="not deprecated">
  22039. <exception name="IOException" type="java.io.IOException"/>
  22040. <doc>
  22041. <![CDATA[Construct an RPC server.
  22042. @param instance the instance whose methods will be called
  22043. @param conf the configuration to use
  22044. @param bindAddress the address to bind on to listen for connection
  22045. @param port the port to listen for connections on
  22046. @param numHandlers the number of method handler threads to run
  22047. @param verbose whether each call should be logged]]>
  22048. </doc>
  22049. </constructor>
  22050. <method name="call" return="org.apache.hadoop.io.Writable"
  22051. abstract="false" native="false" synchronized="false"
  22052. static="false" final="false" visibility="public"
  22053. deprecated="not deprecated">
  22054. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22055. <param name="receivedTime" type="long"/>
  22056. <exception name="IOException" type="java.io.IOException"/>
  22057. </method>
  22058. <doc>
  22059. <![CDATA[An RPC Server.]]>
  22060. </doc>
  22061. </class>
  22062. <!-- end class org.apache.hadoop.ipc.RPC.Server -->
  22063. <!-- start class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  22064. <class name="RPC.VersionMismatch" extends="java.io.IOException"
  22065. abstract="false"
  22066. static="true" final="false" visibility="public"
  22067. deprecated="not deprecated">
  22068. <constructor name="RPC.VersionMismatch" type="java.lang.String, long, long"
  22069. static="false" final="false" visibility="public"
  22070. deprecated="not deprecated">
  22071. <doc>
  22072. <![CDATA[Create a version mismatch exception
  22073. @param interfaceName the name of the protocol mismatch
  22074. @param clientVersion the client's version of the protocol
  22075. @param serverVersion the server's version of the protocol]]>
  22076. </doc>
  22077. </constructor>
  22078. <method name="getInterfaceName" return="java.lang.String"
  22079. abstract="false" native="false" synchronized="false"
  22080. static="false" final="false" visibility="public"
  22081. deprecated="not deprecated">
  22082. <doc>
  22083. <![CDATA[Get the interface name
  22084. @return the java class name
  22085. (eg. org.apache.hadoop.mapred.InterTrackerProtocol)]]>
  22086. </doc>
  22087. </method>
  22088. <method name="getClientVersion" return="long"
  22089. abstract="false" native="false" synchronized="false"
  22090. static="false" final="false" visibility="public"
  22091. deprecated="not deprecated">
  22092. <doc>
  22093. <![CDATA[Get the client's preferred version]]>
  22094. </doc>
  22095. </method>
  22096. <method name="getServerVersion" return="long"
  22097. abstract="false" native="false" synchronized="false"
  22098. static="false" final="false" visibility="public"
  22099. deprecated="not deprecated">
  22100. <doc>
  22101. <![CDATA[Get the server's agreed to version.]]>
  22102. </doc>
  22103. </method>
  22104. <doc>
  22105. <![CDATA[A version mismatch for the RPC protocol.]]>
  22106. </doc>
  22107. </class>
  22108. <!-- end class org.apache.hadoop.ipc.RPC.VersionMismatch -->
  22109. <!-- start class org.apache.hadoop.ipc.Server -->
  22110. <class name="Server" extends="java.lang.Object"
  22111. abstract="true"
  22112. static="false" final="false" visibility="public"
  22113. deprecated="not deprecated">
  22114. <constructor name="Server" type="java.lang.String, int, java.lang.Class, int, org.apache.hadoop.conf.Configuration"
  22115. static="false" final="false" visibility="protected"
  22116. deprecated="not deprecated">
  22117. <exception name="IOException" type="java.io.IOException"/>
  22118. </constructor>
  22119. <constructor name="Server" type="java.lang.String, int, java.lang.Class&lt;?&gt;, int, org.apache.hadoop.conf.Configuration, java.lang.String"
  22120. static="false" final="false" visibility="protected"
  22121. deprecated="not deprecated">
  22122. <exception name="IOException" type="java.io.IOException"/>
  22123. <doc>
  22124. <![CDATA[Constructs a server listening on the named port and address. Parameters passed must
  22125. be of the named class. The <code>handlerCount</handlerCount> determines
  22126. the number of handler threads that will be used to process calls.]]>
  22127. </doc>
  22128. </constructor>
  22129. <method name="get" return="org.apache.hadoop.ipc.Server"
  22130. abstract="false" native="false" synchronized="false"
  22131. static="true" final="false" visibility="public"
  22132. deprecated="not deprecated">
  22133. <doc>
  22134. <![CDATA[Returns the server instance called under or null. May be called under
  22135. {@link #call(Writable, long)} implementations, and under {@link Writable}
  22136. methods of paramters and return values. Permits applications to access
  22137. the server context.]]>
  22138. </doc>
  22139. </method>
  22140. <method name="getRemoteIp" return="java.net.InetAddress"
  22141. abstract="false" native="false" synchronized="false"
  22142. static="true" final="false" visibility="public"
  22143. deprecated="not deprecated">
  22144. <doc>
  22145. <![CDATA[Returns the remote side ip address when invoked inside an RPC
  22146. Returns null incase of an error.]]>
  22147. </doc>
  22148. </method>
  22149. <method name="getRemoteAddress" return="java.lang.String"
  22150. abstract="false" native="false" synchronized="false"
  22151. static="true" final="false" visibility="public"
  22152. deprecated="not deprecated">
  22153. <doc>
  22154. <![CDATA[Returns remote address as a string when invoked inside an RPC.
  22155. Returns null in case of an error.]]>
  22156. </doc>
  22157. </method>
  22158. <method name="bind"
  22159. abstract="false" native="false" synchronized="false"
  22160. static="true" final="false" visibility="public"
  22161. deprecated="not deprecated">
  22162. <param name="socket" type="java.net.ServerSocket"/>
  22163. <param name="address" type="java.net.InetSocketAddress"/>
  22164. <param name="backlog" type="int"/>
  22165. <exception name="IOException" type="java.io.IOException"/>
  22166. <doc>
  22167. <![CDATA[A convenience method to bind to a given address and report
  22168. better exceptions if the address is not a valid host.
  22169. @param socket the socket to bind
  22170. @param address the address to bind to
  22171. @param backlog the number of connections allowed in the queue
  22172. @throws BindException if the address can't be bound
  22173. @throws UnknownHostException if the address isn't a valid host name
  22174. @throws IOException other random errors from bind]]>
  22175. </doc>
  22176. </method>
  22177. <method name="setTimeout"
  22178. abstract="false" native="false" synchronized="false"
  22179. static="false" final="false" visibility="public"
  22180. deprecated="not deprecated">
  22181. <param name="len" type="int"/>
  22182. <doc>
  22183. <![CDATA[No longer used.]]>
  22184. </doc>
  22185. </method>
  22186. <method name="setSocketSendBufSize"
  22187. abstract="false" native="false" synchronized="false"
  22188. static="false" final="false" visibility="public"
  22189. deprecated="not deprecated">
  22190. <param name="size" type="int"/>
  22191. <doc>
  22192. <![CDATA[Sets the socket buffer size used for responding to RPCs]]>
  22193. </doc>
  22194. </method>
  22195. <method name="start"
  22196. abstract="false" native="false" synchronized="true"
  22197. static="false" final="false" visibility="public"
  22198. deprecated="not deprecated">
  22199. <exception name="IOException" type="java.io.IOException"/>
  22200. <doc>
  22201. <![CDATA[Starts the service. Must be called before any calls will be handled.]]>
  22202. </doc>
  22203. </method>
  22204. <method name="stop"
  22205. abstract="false" native="false" synchronized="true"
  22206. static="false" final="false" visibility="public"
  22207. deprecated="not deprecated">
  22208. <doc>
  22209. <![CDATA[Stops the service. No new calls will be handled after this is called.]]>
  22210. </doc>
  22211. </method>
  22212. <method name="join"
  22213. abstract="false" native="false" synchronized="true"
  22214. static="false" final="false" visibility="public"
  22215. deprecated="not deprecated">
  22216. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  22217. <doc>
  22218. <![CDATA[Wait for the server to be stopped.
  22219. Does not wait for all subthreads to finish.
  22220. See {@link #stop()}.]]>
  22221. </doc>
  22222. </method>
  22223. <method name="getListenerAddress" return="java.net.InetSocketAddress"
  22224. abstract="false" native="false" synchronized="true"
  22225. static="false" final="false" visibility="public"
  22226. deprecated="not deprecated">
  22227. <doc>
  22228. <![CDATA[Return the socket (ip+port) on which the RPC server is listening to.
  22229. @return the socket (ip+port) on which the RPC server is listening to.]]>
  22230. </doc>
  22231. </method>
  22232. <method name="call" return="org.apache.hadoop.io.Writable"
  22233. abstract="true" native="false" synchronized="false"
  22234. static="false" final="false" visibility="public"
  22235. deprecated="not deprecated">
  22236. <param name="param" type="org.apache.hadoop.io.Writable"/>
  22237. <param name="receiveTime" type="long"/>
  22238. <exception name="IOException" type="java.io.IOException"/>
  22239. <doc>
  22240. <![CDATA[Called for each call.]]>
  22241. </doc>
  22242. </method>
  22243. <method name="getNumOpenConnections" return="int"
  22244. abstract="false" native="false" synchronized="false"
  22245. static="false" final="false" visibility="public"
  22246. deprecated="not deprecated">
  22247. <doc>
  22248. <![CDATA[The number of open RPC conections
  22249. @return the number of open rpc connections]]>
  22250. </doc>
  22251. </method>
  22252. <method name="getCallQueueLen" return="int"
  22253. abstract="false" native="false" synchronized="false"
  22254. static="false" final="false" visibility="public"
  22255. deprecated="not deprecated">
  22256. <doc>
  22257. <![CDATA[The number of rpc calls in the queue.
  22258. @return The number of rpc calls in the queue.]]>
  22259. </doc>
  22260. </method>
  22261. <field name="HEADER" type="java.nio.ByteBuffer"
  22262. transient="false" volatile="false"
  22263. static="true" final="true" visibility="public"
  22264. deprecated="not deprecated">
  22265. <doc>
  22266. <![CDATA[The first four bytes of Hadoop RPC connections]]>
  22267. </doc>
  22268. </field>
  22269. <field name="CURRENT_VERSION" type="byte"
  22270. transient="false" volatile="false"
  22271. static="true" final="true" visibility="public"
  22272. deprecated="not deprecated">
  22273. </field>
  22274. <field name="LOG" type="org.apache.commons.logging.Log"
  22275. transient="false" volatile="false"
  22276. static="true" final="true" visibility="public"
  22277. deprecated="not deprecated">
  22278. </field>
  22279. <field name="rpcMetrics" type="org.apache.hadoop.ipc.metrics.RpcMetrics"
  22280. transient="false" volatile="false"
  22281. static="false" final="false" visibility="protected"
  22282. deprecated="not deprecated">
  22283. </field>
  22284. <doc>
  22285. <![CDATA[An abstract IPC service. IPC calls take a single {@link Writable} as a
  22286. parameter, and return a {@link Writable} as their value. A service runs on
  22287. a port and is defined by a parameter class and a value class.
  22288. @see Client]]>
  22289. </doc>
  22290. </class>
  22291. <!-- end class org.apache.hadoop.ipc.Server -->
  22292. <!-- start interface org.apache.hadoop.ipc.VersionedProtocol -->
  22293. <interface name="VersionedProtocol" abstract="true"
  22294. static="false" final="false" visibility="public"
  22295. deprecated="not deprecated">
  22296. <method name="getProtocolVersion" return="long"
  22297. abstract="false" native="false" synchronized="false"
  22298. static="false" final="false" visibility="public"
  22299. deprecated="not deprecated">
  22300. <param name="protocol" type="java.lang.String"/>
  22301. <param name="clientVersion" type="long"/>
  22302. <exception name="IOException" type="java.io.IOException"/>
  22303. <doc>
  22304. <![CDATA[Return protocol version corresponding to protocol interface.
  22305. @param protocol The classname of the protocol interface
  22306. @param clientVersion The version of the protocol that the client speaks
  22307. @return the version that the server will speak]]>
  22308. </doc>
  22309. </method>
  22310. <doc>
  22311. <![CDATA[Superclass of all protocols that use Hadoop RPC.
  22312. Subclasses of this interface are also supposed to have
  22313. a static final long versionID field.]]>
  22314. </doc>
  22315. </interface>
  22316. <!-- end interface org.apache.hadoop.ipc.VersionedProtocol -->
  22317. </package>
  22318. <package name="org.apache.hadoop.ipc.metrics">
  22319. <!-- start class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  22320. <class name="RpcMetrics" extends="java.lang.Object"
  22321. abstract="false"
  22322. static="false" final="false" visibility="public"
  22323. deprecated="not deprecated">
  22324. <implements name="org.apache.hadoop.metrics.Updater"/>
  22325. <constructor name="RpcMetrics" type="java.lang.String, java.lang.String, org.apache.hadoop.ipc.Server"
  22326. static="false" final="false" visibility="public"
  22327. deprecated="not deprecated">
  22328. </constructor>
  22329. <method name="doUpdates"
  22330. abstract="false" native="false" synchronized="false"
  22331. static="false" final="false" visibility="public"
  22332. deprecated="not deprecated">
  22333. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  22334. <doc>
  22335. <![CDATA[Push the metrics to the monitoring subsystem on doUpdate() call.]]>
  22336. </doc>
  22337. </method>
  22338. <method name="shutdown"
  22339. abstract="false" native="false" synchronized="false"
  22340. static="false" final="false" visibility="public"
  22341. deprecated="not deprecated">
  22342. </method>
  22343. <field name="rpcQueueTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  22344. transient="false" volatile="false"
  22345. static="false" final="false" visibility="public"
  22346. deprecated="not deprecated">
  22347. <doc>
  22348. <![CDATA[The metrics variables are public:
  22349. - they can be set directly by calling their set/inc methods
  22350. -they can also be read directly - e.g. JMX does this.]]>
  22351. </doc>
  22352. </field>
  22353. <field name="rpcProcessingTime" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  22354. transient="false" volatile="false"
  22355. static="false" final="false" visibility="public"
  22356. deprecated="not deprecated">
  22357. </field>
  22358. <field name="metricsList" type="java.util.Map&lt;java.lang.String, org.apache.hadoop.metrics.util.MetricsTimeVaryingRate&gt;"
  22359. transient="false" volatile="false"
  22360. static="false" final="false" visibility="public"
  22361. deprecated="not deprecated">
  22362. </field>
  22363. <doc>
  22364. <![CDATA[This class is for maintaining the various RPC statistics
  22365. and publishing them through the metrics interfaces.
  22366. This also registers the JMX MBean for RPC.
  22367. <p>
  22368. This class has a number of metrics variables that are publicly accessible;
  22369. these variables (objects) have methods to update their values;
  22370. for example:
  22371. <p> {@link #rpcQueueTime}.inc(time)]]>
  22372. </doc>
  22373. </class>
  22374. <!-- end class org.apache.hadoop.ipc.metrics.RpcMetrics -->
  22375. <!-- start interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  22376. <interface name="RpcMgtMBean" abstract="true"
  22377. static="false" final="false" visibility="public"
  22378. deprecated="not deprecated">
  22379. <method name="getRpcOpsNumber" return="int"
  22380. abstract="false" native="false" synchronized="false"
  22381. static="false" final="false" visibility="public"
  22382. deprecated="not deprecated">
  22383. <doc>
  22384. <![CDATA[Number of RPC Operations in the last interval
  22385. @return number of operations]]>
  22386. </doc>
  22387. </method>
  22388. <method name="getRpcOpsAvgProcessingTime" return="long"
  22389. abstract="false" native="false" synchronized="false"
  22390. static="false" final="false" visibility="public"
  22391. deprecated="not deprecated">
  22392. <doc>
  22393. <![CDATA[Average time for RPC Operations in last interval
  22394. @return time in msec]]>
  22395. </doc>
  22396. </method>
  22397. <method name="getRpcOpsAvgProcessingTimeMin" return="long"
  22398. abstract="false" native="false" synchronized="false"
  22399. static="false" final="false" visibility="public"
  22400. deprecated="not deprecated">
  22401. <doc>
  22402. <![CDATA[The Minimum RPC Operation Processing Time since reset was called
  22403. @return time in msec]]>
  22404. </doc>
  22405. </method>
  22406. <method name="getRpcOpsAvgProcessingTimeMax" return="long"
  22407. abstract="false" native="false" synchronized="false"
  22408. static="false" final="false" visibility="public"
  22409. deprecated="not deprecated">
  22410. <doc>
  22411. <![CDATA[The Maximum RPC Operation Processing Time since reset was called
  22412. @return time in msec]]>
  22413. </doc>
  22414. </method>
  22415. <method name="getRpcOpsAvgQueueTime" return="long"
  22416. abstract="false" native="false" synchronized="false"
  22417. static="false" final="false" visibility="public"
  22418. deprecated="not deprecated">
  22419. <doc>
  22420. <![CDATA[The Average RPC Operation Queued Time in the last interval
  22421. @return time in msec]]>
  22422. </doc>
  22423. </method>
  22424. <method name="getRpcOpsAvgQueueTimeMin" return="long"
  22425. abstract="false" native="false" synchronized="false"
  22426. static="false" final="false" visibility="public"
  22427. deprecated="not deprecated">
  22428. <doc>
  22429. <![CDATA[The Minimum RPC Operation Queued Time since reset was called
  22430. @return time in msec]]>
  22431. </doc>
  22432. </method>
  22433. <method name="getRpcOpsAvgQueueTimeMax" return="long"
  22434. abstract="false" native="false" synchronized="false"
  22435. static="false" final="false" visibility="public"
  22436. deprecated="not deprecated">
  22437. <doc>
  22438. <![CDATA[The Maximum RPC Operation Queued Time since reset was called
  22439. @return time in msec]]>
  22440. </doc>
  22441. </method>
  22442. <method name="resetAllMinMax"
  22443. abstract="false" native="false" synchronized="false"
  22444. static="false" final="false" visibility="public"
  22445. deprecated="not deprecated">
  22446. <doc>
  22447. <![CDATA[Reset all min max times]]>
  22448. </doc>
  22449. </method>
  22450. <method name="getNumOpenConnections" return="int"
  22451. abstract="false" native="false" synchronized="false"
  22452. static="false" final="false" visibility="public"
  22453. deprecated="not deprecated">
  22454. <doc>
  22455. <![CDATA[The number of open RPC conections
  22456. @return the number of open rpc connections]]>
  22457. </doc>
  22458. </method>
  22459. <method name="getCallQueueLen" return="int"
  22460. abstract="false" native="false" synchronized="false"
  22461. static="false" final="false" visibility="public"
  22462. deprecated="not deprecated">
  22463. <doc>
  22464. <![CDATA[The number of rpc calls in the queue.
  22465. @return The number of rpc calls in the queue.]]>
  22466. </doc>
  22467. </method>
  22468. <doc>
  22469. <![CDATA[This is the JMX management interface for the RPC layer.
  22470. Many of the statistics are sampled and averaged on an interval
  22471. which can be specified in the metrics config file.
  22472. <p>
  22473. For the statistics that are sampled and averaged, one must specify
  22474. a metrics context that does periodic update calls. Most do.
  22475. The default Null metrics context however does NOT. So if you aren't
  22476. using any other metrics context then you can turn on the viewing and averaging
  22477. of sampled metrics by specifying the following two lines
  22478. in the hadoop-meterics.properties file:
  22479. <pre>
  22480. rpc.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  22481. rpc.period=10
  22482. </pre>
  22483. <p>
  22484. Note that the metrics are collected regardless of the context used.
  22485. The context with the update thread is used to average the data periodically]]>
  22486. </doc>
  22487. </interface>
  22488. <!-- end interface org.apache.hadoop.ipc.metrics.RpcMgtMBean -->
  22489. </package>
  22490. <package name="org.apache.hadoop.log">
  22491. <!-- start class org.apache.hadoop.log.LogLevel -->
  22492. <class name="LogLevel" extends="java.lang.Object"
  22493. abstract="false"
  22494. static="false" final="false" visibility="public"
  22495. deprecated="not deprecated">
  22496. <constructor name="LogLevel"
  22497. static="false" final="false" visibility="public"
  22498. deprecated="not deprecated">
  22499. </constructor>
  22500. <method name="main"
  22501. abstract="false" native="false" synchronized="false"
  22502. static="true" final="false" visibility="public"
  22503. deprecated="not deprecated">
  22504. <param name="args" type="java.lang.String[]"/>
  22505. <doc>
  22506. <![CDATA[A command line implementation]]>
  22507. </doc>
  22508. </method>
  22509. <field name="USAGES" type="java.lang.String"
  22510. transient="false" volatile="false"
  22511. static="true" final="true" visibility="public"
  22512. deprecated="not deprecated">
  22513. </field>
  22514. <doc>
  22515. <![CDATA[Change log level in runtime.]]>
  22516. </doc>
  22517. </class>
  22518. <!-- end class org.apache.hadoop.log.LogLevel -->
  22519. <!-- start class org.apache.hadoop.log.LogLevel.Servlet -->
  22520. <class name="LogLevel.Servlet" extends="javax.servlet.http.HttpServlet"
  22521. abstract="false"
  22522. static="true" final="false" visibility="public"
  22523. deprecated="not deprecated">
  22524. <constructor name="LogLevel.Servlet"
  22525. static="false" final="false" visibility="public"
  22526. deprecated="not deprecated">
  22527. </constructor>
  22528. <method name="doGet"
  22529. abstract="false" native="false" synchronized="false"
  22530. static="false" final="false" visibility="public"
  22531. deprecated="not deprecated">
  22532. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  22533. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  22534. <exception name="ServletException" type="javax.servlet.ServletException"/>
  22535. <exception name="IOException" type="java.io.IOException"/>
  22536. </method>
  22537. <doc>
  22538. <![CDATA[A servlet implementation]]>
  22539. </doc>
  22540. </class>
  22541. <!-- end class org.apache.hadoop.log.LogLevel.Servlet -->
  22542. </package>
  22543. <package name="org.apache.hadoop.mapred">
  22544. <!-- start class org.apache.hadoop.mapred.ClusterStatus -->
  22545. <class name="ClusterStatus" extends="java.lang.Object"
  22546. abstract="false"
  22547. static="false" final="false" visibility="public"
  22548. deprecated="not deprecated">
  22549. <implements name="org.apache.hadoop.io.Writable"/>
  22550. <method name="getTaskTrackers" return="int"
  22551. abstract="false" native="false" synchronized="false"
  22552. static="false" final="false" visibility="public"
  22553. deprecated="not deprecated">
  22554. <doc>
  22555. <![CDATA[Get the number of task trackers in the cluster.
  22556. @return the number of task trackers in the cluster.]]>
  22557. </doc>
  22558. </method>
  22559. <method name="getMapTasks" return="int"
  22560. abstract="false" native="false" synchronized="false"
  22561. static="false" final="false" visibility="public"
  22562. deprecated="not deprecated">
  22563. <doc>
  22564. <![CDATA[Get the number of currently running map tasks in the cluster.
  22565. @return the number of currently running map tasks in the cluster.]]>
  22566. </doc>
  22567. </method>
  22568. <method name="getReduceTasks" return="int"
  22569. abstract="false" native="false" synchronized="false"
  22570. static="false" final="false" visibility="public"
  22571. deprecated="not deprecated">
  22572. <doc>
  22573. <![CDATA[Get the number of currently running reduce tasks in the cluster.
  22574. @return the number of currently running reduce tasks in the cluster.]]>
  22575. </doc>
  22576. </method>
  22577. <method name="getMaxMapTasks" return="int"
  22578. abstract="false" native="false" synchronized="false"
  22579. static="false" final="false" visibility="public"
  22580. deprecated="not deprecated">
  22581. <doc>
  22582. <![CDATA[Get the maximum capacity for running map tasks in the cluster.
  22583. @return the maximum capacity for running map tasks in the cluster.]]>
  22584. </doc>
  22585. </method>
  22586. <method name="getMaxReduceTasks" return="int"
  22587. abstract="false" native="false" synchronized="false"
  22588. static="false" final="false" visibility="public"
  22589. deprecated="not deprecated">
  22590. <doc>
  22591. <![CDATA[Get the maximum capacity for running reduce tasks in the cluster.
  22592. @return the maximum capacity for running reduce tasks in the cluster.]]>
  22593. </doc>
  22594. </method>
  22595. <method name="getJobTrackerState" return="org.apache.hadoop.mapred.JobTracker.State"
  22596. abstract="false" native="false" synchronized="false"
  22597. static="false" final="false" visibility="public"
  22598. deprecated="not deprecated">
  22599. <doc>
  22600. <![CDATA[Get the current state of the <code>JobTracker</code>,
  22601. as {@link JobTracker.State}
  22602. @return the current state of the <code>JobTracker</code>.]]>
  22603. </doc>
  22604. </method>
  22605. <method name="write"
  22606. abstract="false" native="false" synchronized="false"
  22607. static="false" final="false" visibility="public"
  22608. deprecated="not deprecated">
  22609. <param name="out" type="java.io.DataOutput"/>
  22610. <exception name="IOException" type="java.io.IOException"/>
  22611. </method>
  22612. <method name="readFields"
  22613. abstract="false" native="false" synchronized="false"
  22614. static="false" final="false" visibility="public"
  22615. deprecated="not deprecated">
  22616. <param name="in" type="java.io.DataInput"/>
  22617. <exception name="IOException" type="java.io.IOException"/>
  22618. </method>
  22619. <doc>
  22620. <![CDATA[Status information on the current state of the Map-Reduce cluster.
  22621. <p><code>ClusterStatus</code> provides clients with information such as:
  22622. <ol>
  22623. <li>
  22624. Size of the cluster.
  22625. </li>
  22626. <li>
  22627. Task capacity of the cluster.
  22628. </li>
  22629. <li>
  22630. The number of currently running map & reduce tasks.
  22631. </li>
  22632. <li>
  22633. State of the <code>JobTracker</code>.
  22634. </li>
  22635. </ol></p>
  22636. <p>Clients can query for the latest <code>ClusterStatus</code>, via
  22637. {@link JobClient#getClusterStatus()}.</p>
  22638. @see JobClient]]>
  22639. </doc>
  22640. </class>
  22641. <!-- end class org.apache.hadoop.mapred.ClusterStatus -->
  22642. <!-- start class org.apache.hadoop.mapred.Counters -->
  22643. <class name="Counters" extends="java.lang.Object"
  22644. abstract="false"
  22645. static="false" final="false" visibility="public"
  22646. deprecated="not deprecated">
  22647. <implements name="org.apache.hadoop.io.Writable"/>
  22648. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Group&gt;"/>
  22649. <constructor name="Counters"
  22650. static="false" final="false" visibility="public"
  22651. deprecated="not deprecated">
  22652. </constructor>
  22653. <method name="getGroupNames" return="java.util.Collection&lt;java.lang.String&gt;"
  22654. abstract="false" native="false" synchronized="true"
  22655. static="false" final="false" visibility="public"
  22656. deprecated="not deprecated">
  22657. <doc>
  22658. <![CDATA[Returns the names of all counter classes.
  22659. @return Set of counter names.]]>
  22660. </doc>
  22661. </method>
  22662. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Group&gt;"
  22663. abstract="false" native="false" synchronized="true"
  22664. static="false" final="false" visibility="public"
  22665. deprecated="not deprecated">
  22666. </method>
  22667. <method name="getGroup" return="org.apache.hadoop.mapred.Counters.Group"
  22668. abstract="false" native="false" synchronized="true"
  22669. static="false" final="false" visibility="public"
  22670. deprecated="not deprecated">
  22671. <param name="groupName" type="java.lang.String"/>
  22672. <doc>
  22673. <![CDATA[Returns the named counter group, or an empty group if there is none
  22674. with the specified name.]]>
  22675. </doc>
  22676. </method>
  22677. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  22678. abstract="false" native="false" synchronized="true"
  22679. static="false" final="false" visibility="public"
  22680. deprecated="not deprecated">
  22681. <param name="key" type="java.lang.Enum"/>
  22682. <doc>
  22683. <![CDATA[Find the counter for the given enum. The same enum will always return the
  22684. same counter.
  22685. @param key the counter key
  22686. @return the matching counter object]]>
  22687. </doc>
  22688. </method>
  22689. <method name="findCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  22690. abstract="false" native="false" synchronized="true"
  22691. static="false" final="false" visibility="public"
  22692. deprecated="deprecated, no comment">
  22693. <param name="group" type="java.lang.String"/>
  22694. <param name="id" type="int"/>
  22695. <param name="name" type="java.lang.String"/>
  22696. <doc>
  22697. <![CDATA[Find a counter by using strings
  22698. @param group the name of the group
  22699. @param id the id of the counter within the group (0 to N-1)
  22700. @param name the internal name of the counter
  22701. @return the counter for that name
  22702. @deprecated]]>
  22703. </doc>
  22704. </method>
  22705. <method name="incrCounter"
  22706. abstract="false" native="false" synchronized="true"
  22707. static="false" final="false" visibility="public"
  22708. deprecated="not deprecated">
  22709. <param name="key" type="java.lang.Enum"/>
  22710. <param name="amount" type="long"/>
  22711. <doc>
  22712. <![CDATA[Increments the specified counter by the specified amount, creating it if
  22713. it didn't already exist.
  22714. @param key identifies a counter
  22715. @param amount amount by which counter is to be incremented]]>
  22716. </doc>
  22717. </method>
  22718. <method name="incrCounter"
  22719. abstract="false" native="false" synchronized="true"
  22720. static="false" final="false" visibility="public"
  22721. deprecated="not deprecated">
  22722. <param name="group" type="java.lang.String"/>
  22723. <param name="counter" type="java.lang.String"/>
  22724. <param name="amount" type="long"/>
  22725. <doc>
  22726. <![CDATA[Increments the specified counter by the specified amount, creating it if
  22727. it didn't already exist.
  22728. @param group the name of the group
  22729. @param counter the internal name of the counter
  22730. @param amount amount by which counter is to be incremented]]>
  22731. </doc>
  22732. </method>
  22733. <method name="getCounter" return="long"
  22734. abstract="false" native="false" synchronized="true"
  22735. static="false" final="false" visibility="public"
  22736. deprecated="not deprecated">
  22737. <param name="key" type="java.lang.Enum"/>
  22738. <doc>
  22739. <![CDATA[Returns current value of the specified counter, or 0 if the counter
  22740. does not exist.]]>
  22741. </doc>
  22742. </method>
  22743. <method name="incrAllCounters"
  22744. abstract="false" native="false" synchronized="true"
  22745. static="false" final="false" visibility="public"
  22746. deprecated="not deprecated">
  22747. <param name="other" type="org.apache.hadoop.mapred.Counters"/>
  22748. <doc>
  22749. <![CDATA[Increments multiple counters by their amounts in another Counters
  22750. instance.
  22751. @param other the other Counters instance]]>
  22752. </doc>
  22753. </method>
  22754. <method name="sum" return="org.apache.hadoop.mapred.Counters"
  22755. abstract="false" native="false" synchronized="false"
  22756. static="true" final="false" visibility="public"
  22757. deprecated="not deprecated">
  22758. <param name="a" type="org.apache.hadoop.mapred.Counters"/>
  22759. <param name="b" type="org.apache.hadoop.mapred.Counters"/>
  22760. <doc>
  22761. <![CDATA[Convenience method for computing the sum of two sets of counters.]]>
  22762. </doc>
  22763. </method>
  22764. <method name="size" return="int"
  22765. abstract="false" native="false" synchronized="true"
  22766. static="false" final="false" visibility="public"
  22767. deprecated="not deprecated">
  22768. <doc>
  22769. <![CDATA[Returns the total number of counters, by summing the number of counters
  22770. in each group.]]>
  22771. </doc>
  22772. </method>
  22773. <method name="write"
  22774. abstract="false" native="false" synchronized="true"
  22775. static="false" final="false" visibility="public"
  22776. deprecated="not deprecated">
  22777. <param name="out" type="java.io.DataOutput"/>
  22778. <exception name="IOException" type="java.io.IOException"/>
  22779. <doc>
  22780. <![CDATA[Write the set of groups.
  22781. The external format is:
  22782. #groups (groupName group)*
  22783. i.e. the number of groups followed by 0 or more groups, where each
  22784. group is of the form:
  22785. groupDisplayName #counters (false | true counter)*
  22786. where each counter is of the form:
  22787. name (false | true displayName) value]]>
  22788. </doc>
  22789. </method>
  22790. <method name="readFields"
  22791. abstract="false" native="false" synchronized="true"
  22792. static="false" final="false" visibility="public"
  22793. deprecated="not deprecated">
  22794. <param name="in" type="java.io.DataInput"/>
  22795. <exception name="IOException" type="java.io.IOException"/>
  22796. <doc>
  22797. <![CDATA[Read a set of groups.]]>
  22798. </doc>
  22799. </method>
  22800. <method name="log"
  22801. abstract="false" native="false" synchronized="false"
  22802. static="false" final="false" visibility="public"
  22803. deprecated="not deprecated">
  22804. <param name="log" type="org.apache.commons.logging.Log"/>
  22805. <doc>
  22806. <![CDATA[Logs the current counter values.
  22807. @param log The log to use.]]>
  22808. </doc>
  22809. </method>
  22810. <method name="toString" return="java.lang.String"
  22811. abstract="false" native="false" synchronized="true"
  22812. static="false" final="false" visibility="public"
  22813. deprecated="not deprecated">
  22814. <doc>
  22815. <![CDATA[Return textual representation of the counter values.]]>
  22816. </doc>
  22817. </method>
  22818. <method name="makeCompactString" return="java.lang.String"
  22819. abstract="false" native="false" synchronized="true"
  22820. static="false" final="false" visibility="public"
  22821. deprecated="not deprecated">
  22822. <doc>
  22823. <![CDATA[Convert a counters object into a single line that is easy to parse.
  22824. @return the string with "name=value" for each counter and separated by ","]]>
  22825. </doc>
  22826. </method>
  22827. <doc>
  22828. <![CDATA[A set of named counters.
  22829. <p><code>Counters</code> represent global counters, defined either by the
  22830. Map-Reduce framework or applications. Each <code>Counter</code> can be of
  22831. any {@link Enum} type.</p>
  22832. <p><code>Counters</code> are bunched into {@link Group}s, each comprising of
  22833. counters from a particular <code>Enum</code> class.]]>
  22834. </doc>
  22835. </class>
  22836. <!-- end class org.apache.hadoop.mapred.Counters -->
  22837. <!-- start class org.apache.hadoop.mapred.Counters.Counter -->
  22838. <class name="Counters.Counter" extends="java.lang.Object"
  22839. abstract="false"
  22840. static="true" final="false" visibility="public"
  22841. deprecated="not deprecated">
  22842. <implements name="org.apache.hadoop.io.Writable"/>
  22843. <method name="readFields"
  22844. abstract="false" native="false" synchronized="true"
  22845. static="false" final="false" visibility="public"
  22846. deprecated="not deprecated">
  22847. <param name="in" type="java.io.DataInput"/>
  22848. <exception name="IOException" type="java.io.IOException"/>
  22849. <doc>
  22850. <![CDATA[Read the binary representation of the counter]]>
  22851. </doc>
  22852. </method>
  22853. <method name="write"
  22854. abstract="false" native="false" synchronized="true"
  22855. static="false" final="false" visibility="public"
  22856. deprecated="not deprecated">
  22857. <param name="out" type="java.io.DataOutput"/>
  22858. <exception name="IOException" type="java.io.IOException"/>
  22859. <doc>
  22860. <![CDATA[Write the binary representation of the counter]]>
  22861. </doc>
  22862. </method>
  22863. <method name="getName" return="java.lang.String"
  22864. abstract="false" native="false" synchronized="true"
  22865. static="false" final="false" visibility="public"
  22866. deprecated="not deprecated">
  22867. <doc>
  22868. <![CDATA[Get the internal name of the counter.
  22869. @return the internal name of the counter]]>
  22870. </doc>
  22871. </method>
  22872. <method name="getDisplayName" return="java.lang.String"
  22873. abstract="false" native="false" synchronized="true"
  22874. static="false" final="false" visibility="public"
  22875. deprecated="not deprecated">
  22876. <doc>
  22877. <![CDATA[Get the name of the counter.
  22878. @return the user facing name of the counter]]>
  22879. </doc>
  22880. </method>
  22881. <method name="getCounter" return="long"
  22882. abstract="false" native="false" synchronized="true"
  22883. static="false" final="false" visibility="public"
  22884. deprecated="not deprecated">
  22885. <doc>
  22886. <![CDATA[What is the current value of this counter?
  22887. @return the current value]]>
  22888. </doc>
  22889. </method>
  22890. <method name="increment"
  22891. abstract="false" native="false" synchronized="true"
  22892. static="false" final="false" visibility="public"
  22893. deprecated="not deprecated">
  22894. <param name="incr" type="long"/>
  22895. <doc>
  22896. <![CDATA[Increment this counter by the given value
  22897. @param incr the value to increase this counter by]]>
  22898. </doc>
  22899. </method>
  22900. <doc>
  22901. <![CDATA[A counter record, comprising its name and value.]]>
  22902. </doc>
  22903. </class>
  22904. <!-- end class org.apache.hadoop.mapred.Counters.Counter -->
  22905. <!-- start class org.apache.hadoop.mapred.Counters.Group -->
  22906. <class name="Counters.Group" extends="java.lang.Object"
  22907. abstract="false"
  22908. static="true" final="false" visibility="public"
  22909. deprecated="not deprecated">
  22910. <implements name="org.apache.hadoop.io.Writable"/>
  22911. <implements name="java.lang.Iterable&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"/>
  22912. <method name="getName" return="java.lang.String"
  22913. abstract="false" native="false" synchronized="false"
  22914. static="false" final="false" visibility="public"
  22915. deprecated="not deprecated">
  22916. <doc>
  22917. <![CDATA[Returns raw name of the group. This is the name of the enum class
  22918. for this group of counters.]]>
  22919. </doc>
  22920. </method>
  22921. <method name="getDisplayName" return="java.lang.String"
  22922. abstract="false" native="false" synchronized="false"
  22923. static="false" final="false" visibility="public"
  22924. deprecated="not deprecated">
  22925. <doc>
  22926. <![CDATA[Returns localized name of the group. This is the same as getName() by
  22927. default, but different if an appropriate ResourceBundle is found.]]>
  22928. </doc>
  22929. </method>
  22930. <method name="getCounter" return="long"
  22931. abstract="false" native="false" synchronized="true"
  22932. static="false" final="false" visibility="public"
  22933. deprecated="not deprecated">
  22934. <param name="counterName" type="java.lang.String"/>
  22935. <doc>
  22936. <![CDATA[Returns the value of the specified counter, or 0 if the counter does
  22937. not exist.]]>
  22938. </doc>
  22939. </method>
  22940. <method name="getCounter" return="org.apache.hadoop.mapred.Counters.Counter"
  22941. abstract="false" native="false" synchronized="true"
  22942. static="false" final="false" visibility="public"
  22943. deprecated="use {@link #getCounter(String)} instead">
  22944. <param name="id" type="int"/>
  22945. <param name="name" type="java.lang.String"/>
  22946. <doc>
  22947. <![CDATA[Get the counter for the given id and create it if it doesn't exist.
  22948. @param id the numeric id of the counter within the group
  22949. @param name the internal counter name
  22950. @return the counter
  22951. @deprecated use {@link #getCounter(String)} instead]]>
  22952. </doc>
  22953. </method>
  22954. <method name="getCounterForName" return="org.apache.hadoop.mapred.Counters.Counter"
  22955. abstract="false" native="false" synchronized="true"
  22956. static="false" final="false" visibility="public"
  22957. deprecated="not deprecated">
  22958. <param name="name" type="java.lang.String"/>
  22959. <doc>
  22960. <![CDATA[Get the counter for the given name and create it if it doesn't exist.
  22961. @param name the internal counter name
  22962. @return the counter]]>
  22963. </doc>
  22964. </method>
  22965. <method name="size" return="int"
  22966. abstract="false" native="false" synchronized="true"
  22967. static="false" final="false" visibility="public"
  22968. deprecated="not deprecated">
  22969. <doc>
  22970. <![CDATA[Returns the number of counters in this group.]]>
  22971. </doc>
  22972. </method>
  22973. <method name="write"
  22974. abstract="false" native="false" synchronized="true"
  22975. static="false" final="false" visibility="public"
  22976. deprecated="not deprecated">
  22977. <param name="out" type="java.io.DataOutput"/>
  22978. <exception name="IOException" type="java.io.IOException"/>
  22979. </method>
  22980. <method name="readFields"
  22981. abstract="false" native="false" synchronized="true"
  22982. static="false" final="false" visibility="public"
  22983. deprecated="not deprecated">
  22984. <param name="in" type="java.io.DataInput"/>
  22985. <exception name="IOException" type="java.io.IOException"/>
  22986. </method>
  22987. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.mapred.Counters.Counter&gt;"
  22988. abstract="false" native="false" synchronized="true"
  22989. static="false" final="false" visibility="public"
  22990. deprecated="not deprecated">
  22991. </method>
  22992. <doc>
  22993. <![CDATA[<code>Group</code> of counters, comprising of counters from a particular
  22994. counter {@link Enum} class.
  22995. <p><code>Group</code>handles localization of the class name and the
  22996. counter names.</p>]]>
  22997. </doc>
  22998. </class>
  22999. <!-- end class org.apache.hadoop.mapred.Counters.Group -->
  23000. <!-- start class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  23001. <class name="DefaultJobHistoryParser" extends="java.lang.Object"
  23002. abstract="false"
  23003. static="false" final="false" visibility="public"
  23004. deprecated="not deprecated">
  23005. <constructor name="DefaultJobHistoryParser"
  23006. static="false" final="false" visibility="public"
  23007. deprecated="not deprecated">
  23008. </constructor>
  23009. <method name="parseJobTasks"
  23010. abstract="false" native="false" synchronized="false"
  23011. static="true" final="false" visibility="public"
  23012. deprecated="not deprecated">
  23013. <param name="jobHistoryFile" type="java.lang.String"/>
  23014. <param name="job" type="org.apache.hadoop.mapred.JobHistory.JobInfo"/>
  23015. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23016. <exception name="IOException" type="java.io.IOException"/>
  23017. <doc>
  23018. <![CDATA[Populates a JobInfo object from the job's history log file.
  23019. @param jobHistoryFile history file for this job.
  23020. @param job a precreated JobInfo object, should be non-null.
  23021. @param fs FileSystem where historyFile is present.
  23022. @throws IOException]]>
  23023. </doc>
  23024. </method>
  23025. <doc>
  23026. <![CDATA[Default parser for job history files. It creates object model from
  23027. job history file.]]>
  23028. </doc>
  23029. </class>
  23030. <!-- end class org.apache.hadoop.mapred.DefaultJobHistoryParser -->
  23031. <!-- start class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  23032. <class name="FileAlreadyExistsException" extends="java.io.IOException"
  23033. abstract="false"
  23034. static="false" final="false" visibility="public"
  23035. deprecated="not deprecated">
  23036. <constructor name="FileAlreadyExistsException"
  23037. static="false" final="false" visibility="public"
  23038. deprecated="not deprecated">
  23039. </constructor>
  23040. <constructor name="FileAlreadyExistsException" type="java.lang.String"
  23041. static="false" final="false" visibility="public"
  23042. deprecated="not deprecated">
  23043. </constructor>
  23044. <doc>
  23045. <![CDATA[Used when target file already exists for any operation and
  23046. is not configured to be overwritten.]]>
  23047. </doc>
  23048. </class>
  23049. <!-- end class org.apache.hadoop.mapred.FileAlreadyExistsException -->
  23050. <!-- start class org.apache.hadoop.mapred.FileInputFormat -->
  23051. <class name="FileInputFormat" extends="java.lang.Object"
  23052. abstract="true"
  23053. static="false" final="false" visibility="public"
  23054. deprecated="not deprecated">
  23055. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  23056. <constructor name="FileInputFormat"
  23057. static="false" final="false" visibility="public"
  23058. deprecated="not deprecated">
  23059. </constructor>
  23060. <method name="setMinSplitSize"
  23061. abstract="false" native="false" synchronized="false"
  23062. static="false" final="false" visibility="protected"
  23063. deprecated="not deprecated">
  23064. <param name="minSplitSize" type="long"/>
  23065. </method>
  23066. <method name="isSplitable" return="boolean"
  23067. abstract="false" native="false" synchronized="false"
  23068. static="false" final="false" visibility="protected"
  23069. deprecated="not deprecated">
  23070. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  23071. <param name="filename" type="org.apache.hadoop.fs.Path"/>
  23072. <doc>
  23073. <![CDATA[Is the given filename splitable? Usually, true, but if the file is
  23074. stream compressed, it will not be.
  23075. <code>FileInputFormat</code> implementations can override this and return
  23076. <code>false</code> to ensure that individual input files are never split-up
  23077. so that {@link Mapper}s process entire files.
  23078. @param fs the file system that the file is on
  23079. @param filename the file name to check
  23080. @return is this file splitable?]]>
  23081. </doc>
  23082. </method>
  23083. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  23084. abstract="true" native="false" synchronized="false"
  23085. static="false" final="false" visibility="public"
  23086. deprecated="not deprecated">
  23087. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  23088. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23089. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23090. <exception name="IOException" type="java.io.IOException"/>
  23091. </method>
  23092. <method name="setInputPathFilter"
  23093. abstract="false" native="false" synchronized="false"
  23094. static="true" final="false" visibility="public"
  23095. deprecated="not deprecated">
  23096. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23097. <param name="filter" type="java.lang.Class&lt;? extends org.apache.hadoop.fs.PathFilter&gt;"/>
  23098. <doc>
  23099. <![CDATA[Set a PathFilter to be applied to the input paths for the map-reduce job.
  23100. @param filter the PathFilter class use for filtering the input paths.]]>
  23101. </doc>
  23102. </method>
  23103. <method name="getInputPathFilter" return="org.apache.hadoop.fs.PathFilter"
  23104. abstract="false" native="false" synchronized="false"
  23105. static="true" final="false" visibility="public"
  23106. deprecated="not deprecated">
  23107. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23108. <doc>
  23109. <![CDATA[Get a PathFilter instance of the filter set for the input paths.
  23110. @return the PathFilter instance set for the job, NULL if none has been set.]]>
  23111. </doc>
  23112. </method>
  23113. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  23114. abstract="false" native="false" synchronized="false"
  23115. static="false" final="false" visibility="protected"
  23116. deprecated="not deprecated">
  23117. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23118. <exception name="IOException" type="java.io.IOException"/>
  23119. <doc>
  23120. <![CDATA[List input directories.
  23121. Subclasses may override to, e.g., select only files matching a regular
  23122. expression.
  23123. @param job the job to list input paths for
  23124. @return array of FileStatus objects
  23125. @throws IOException if zero items.]]>
  23126. </doc>
  23127. </method>
  23128. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  23129. abstract="false" native="false" synchronized="false"
  23130. static="false" final="false" visibility="protected"
  23131. deprecated="Use {@link #listStatus(JobConf)} instead.">
  23132. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23133. <exception name="IOException" type="java.io.IOException"/>
  23134. <doc>
  23135. <![CDATA[List input directories.
  23136. Subclasses may override to, e.g., select only files matching a regular
  23137. expression.
  23138. @param job the job to list input paths for
  23139. @return array of Path objects
  23140. @throws IOException if zero items.
  23141. @deprecated Use {@link #listStatus(JobConf)} instead.]]>
  23142. </doc>
  23143. </method>
  23144. <method name="validateInput"
  23145. abstract="false" native="false" synchronized="false"
  23146. static="false" final="false" visibility="public"
  23147. deprecated="not deprecated">
  23148. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23149. <exception name="IOException" type="java.io.IOException"/>
  23150. </method>
  23151. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  23152. abstract="false" native="false" synchronized="false"
  23153. static="false" final="false" visibility="public"
  23154. deprecated="not deprecated">
  23155. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23156. <param name="numSplits" type="int"/>
  23157. <exception name="IOException" type="java.io.IOException"/>
  23158. <doc>
  23159. <![CDATA[Splits files returned by {@link #listStatus(JobConf)} when
  23160. they're too big.]]>
  23161. </doc>
  23162. </method>
  23163. <method name="computeSplitSize" return="long"
  23164. abstract="false" native="false" synchronized="false"
  23165. static="false" final="false" visibility="protected"
  23166. deprecated="not deprecated">
  23167. <param name="goalSize" type="long"/>
  23168. <param name="minSize" type="long"/>
  23169. <param name="blockSize" type="long"/>
  23170. </method>
  23171. <method name="getBlockIndex" return="int"
  23172. abstract="false" native="false" synchronized="false"
  23173. static="false" final="false" visibility="protected"
  23174. deprecated="not deprecated">
  23175. <param name="blkLocations" type="org.apache.hadoop.fs.BlockLocation[]"/>
  23176. <param name="offset" type="long"/>
  23177. </method>
  23178. <method name="setInputPaths"
  23179. abstract="false" native="false" synchronized="false"
  23180. static="true" final="false" visibility="public"
  23181. deprecated="not deprecated">
  23182. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23183. <param name="commaSeparatedPaths" type="java.lang.String"/>
  23184. <doc>
  23185. <![CDATA[Sets the given comma separated paths as the list of inputs
  23186. for the map-reduce job.
  23187. @param conf Configuration of the job
  23188. @param commaSeparatedPaths Comma separated paths to be set as
  23189. the list of inputs for the map-reduce job.]]>
  23190. </doc>
  23191. </method>
  23192. <method name="addInputPaths"
  23193. abstract="false" native="false" synchronized="false"
  23194. static="true" final="false" visibility="public"
  23195. deprecated="not deprecated">
  23196. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23197. <param name="commaSeparatedPaths" type="java.lang.String"/>
  23198. <doc>
  23199. <![CDATA[Add the given comma separated paths to the list of inputs for
  23200. the map-reduce job.
  23201. @param conf The configuration of the job
  23202. @param commaSeparatedPaths Comma separated paths to be added to
  23203. the list of inputs for the map-reduce job.]]>
  23204. </doc>
  23205. </method>
  23206. <method name="setInputPaths"
  23207. abstract="false" native="false" synchronized="false"
  23208. static="true" final="false" visibility="public"
  23209. deprecated="not deprecated">
  23210. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23211. <param name="inputPaths" type="org.apache.hadoop.fs.Path[]"/>
  23212. <doc>
  23213. <![CDATA[Set the array of {@link Path}s as the list of inputs
  23214. for the map-reduce job.
  23215. @param conf Configuration of the job.
  23216. @param inputPaths the {@link Path}s of the input directories/files
  23217. for the map-reduce job.]]>
  23218. </doc>
  23219. </method>
  23220. <method name="addInputPath"
  23221. abstract="false" native="false" synchronized="false"
  23222. static="true" final="false" visibility="public"
  23223. deprecated="not deprecated">
  23224. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23225. <param name="path" type="org.apache.hadoop.fs.Path"/>
  23226. <doc>
  23227. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  23228. @param conf The configuration of the job
  23229. @param path {@link Path} to be added to the list of inputs for
  23230. the map-reduce job.]]>
  23231. </doc>
  23232. </method>
  23233. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  23234. abstract="false" native="false" synchronized="false"
  23235. static="true" final="false" visibility="public"
  23236. deprecated="not deprecated">
  23237. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23238. <doc>
  23239. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  23240. @param conf The configuration of the job
  23241. @return the list of input {@link Path}s for the map-reduce job.]]>
  23242. </doc>
  23243. </method>
  23244. <field name="LOG" type="org.apache.commons.logging.Log"
  23245. transient="false" volatile="false"
  23246. static="true" final="true" visibility="public"
  23247. deprecated="not deprecated">
  23248. </field>
  23249. <doc>
  23250. <![CDATA[A base class for file-based {@link InputFormat}.
  23251. <p><code>FileInputFormat</code> is the base class for all file-based
  23252. <code>InputFormat</code>s. This provides a generic implementation of
  23253. {@link #getSplits(JobConf, int)}.
  23254. Subclasses of <code>FileInputFormat</code> can also override the
  23255. {@link #isSplitable(FileSystem, Path)} method to ensure input-files are
  23256. not split-up and are processed as a whole by {@link Mapper}s.]]>
  23257. </doc>
  23258. </class>
  23259. <!-- end class org.apache.hadoop.mapred.FileInputFormat -->
  23260. <!-- start class org.apache.hadoop.mapred.FileOutputFormat -->
  23261. <class name="FileOutputFormat" extends="java.lang.Object"
  23262. abstract="true"
  23263. static="false" final="false" visibility="public"
  23264. deprecated="not deprecated">
  23265. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  23266. <constructor name="FileOutputFormat"
  23267. static="false" final="false" visibility="public"
  23268. deprecated="not deprecated">
  23269. </constructor>
  23270. <method name="setCompressOutput"
  23271. abstract="false" native="false" synchronized="false"
  23272. static="true" final="false" visibility="public"
  23273. deprecated="not deprecated">
  23274. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23275. <param name="compress" type="boolean"/>
  23276. <doc>
  23277. <![CDATA[Set whether the output of the job is compressed.
  23278. @param conf the {@link JobConf} to modify
  23279. @param compress should the output of the job be compressed?]]>
  23280. </doc>
  23281. </method>
  23282. <method name="getCompressOutput" return="boolean"
  23283. abstract="false" native="false" synchronized="false"
  23284. static="true" final="false" visibility="public"
  23285. deprecated="not deprecated">
  23286. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23287. <doc>
  23288. <![CDATA[Is the job output compressed?
  23289. @param conf the {@link JobConf} to look in
  23290. @return <code>true</code> if the job output should be compressed,
  23291. <code>false</code> otherwise]]>
  23292. </doc>
  23293. </method>
  23294. <method name="setOutputCompressorClass"
  23295. abstract="false" native="false" synchronized="false"
  23296. static="true" final="false" visibility="public"
  23297. deprecated="not deprecated">
  23298. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23299. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  23300. <doc>
  23301. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  23302. @param conf the {@link JobConf} to modify
  23303. @param codecClass the {@link CompressionCodec} to be used to
  23304. compress the job outputs]]>
  23305. </doc>
  23306. </method>
  23307. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  23308. abstract="false" native="false" synchronized="false"
  23309. static="true" final="false" visibility="public"
  23310. deprecated="not deprecated">
  23311. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23312. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  23313. <doc>
  23314. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  23315. @param conf the {@link JobConf} to look in
  23316. @param defaultValue the {@link CompressionCodec} to return if not set
  23317. @return the {@link CompressionCodec} to be used to compress the
  23318. job outputs
  23319. @throws IllegalArgumentException if the class was specified, but not found]]>
  23320. </doc>
  23321. </method>
  23322. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  23323. abstract="true" native="false" synchronized="false"
  23324. static="false" final="false" visibility="public"
  23325. deprecated="not deprecated">
  23326. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  23327. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23328. <param name="name" type="java.lang.String"/>
  23329. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  23330. <exception name="IOException" type="java.io.IOException"/>
  23331. </method>
  23332. <method name="checkOutputSpecs"
  23333. abstract="false" native="false" synchronized="false"
  23334. static="false" final="false" visibility="public"
  23335. deprecated="not deprecated">
  23336. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  23337. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23338. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  23339. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  23340. <exception name="IOException" type="java.io.IOException"/>
  23341. </method>
  23342. <method name="setOutputPath"
  23343. abstract="false" native="false" synchronized="false"
  23344. static="true" final="false" visibility="public"
  23345. deprecated="not deprecated">
  23346. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23347. <param name="outputDir" type="org.apache.hadoop.fs.Path"/>
  23348. <doc>
  23349. <![CDATA[Set the {@link Path} of the output directory for the map-reduce job.
  23350. @param conf The configuration of the job.
  23351. @param outputDir the {@link Path} of the output directory for
  23352. the map-reduce job.]]>
  23353. </doc>
  23354. </method>
  23355. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  23356. abstract="false" native="false" synchronized="false"
  23357. static="true" final="false" visibility="public"
  23358. deprecated="not deprecated">
  23359. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23360. <doc>
  23361. <![CDATA[Get the {@link Path} to the output directory for the map-reduce job.
  23362. @return the {@link Path} to the output directory for the map-reduce job.
  23363. @see FileOutputFormat#getWorkOutputPath(JobConf)]]>
  23364. </doc>
  23365. </method>
  23366. <method name="getWorkOutputPath" return="org.apache.hadoop.fs.Path"
  23367. abstract="false" native="false" synchronized="false"
  23368. static="true" final="false" visibility="public"
  23369. deprecated="not deprecated">
  23370. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23371. <doc>
  23372. <![CDATA[Get the {@link Path} to the task's temporary output directory
  23373. for the map-reduce job
  23374. <h4 id="SideEffectFiles">Tasks' Side-Effect Files</h4>
  23375. <p>Some applications need to create/write-to side-files, which differ from
  23376. the actual job-outputs.
  23377. <p>In such cases there could be issues with 2 instances of the same TIP
  23378. (running simultaneously e.g. speculative tasks) trying to open/write-to the
  23379. same file (path) on HDFS. Hence the application-writer will have to pick
  23380. unique names per task-attempt (e.g. using the attemptid, say
  23381. <tt>attempt_200709221812_0001_m_000000_0</tt>), not just per TIP.</p>
  23382. <p>To get around this the Map-Reduce framework helps the application-writer
  23383. out by maintaining a special
  23384. <tt>${mapred.output.dir}/_temporary/_${taskid}</tt>
  23385. sub-directory for each task-attempt on HDFS where the output of the
  23386. task-attempt goes. On successful completion of the task-attempt the files
  23387. in the <tt>${mapred.output.dir}/_temporary/_${taskid}</tt> (only)
  23388. are <i>promoted</i> to <tt>${mapred.output.dir}</tt>. Of course, the
  23389. framework discards the sub-directory of unsuccessful task-attempts. This
  23390. is completely transparent to the application.</p>
  23391. <p>The application-writer can take advantage of this by creating any
  23392. side-files required in <tt>${mapred.work.output.dir}</tt> during execution
  23393. of his reduce-task i.e. via {@link #getWorkOutputPath(JobConf)}, and the
  23394. framework will move them out similarly - thus she doesn't have to pick
  23395. unique paths per task-attempt.</p>
  23396. <p><i>Note</i>: the value of <tt>${mapred.work.output.dir}</tt> during
  23397. execution of a particular task-attempt is actually
  23398. <tt>${mapred.output.dir}/_temporary/_{$taskid}</tt>, and this value is
  23399. set by the map-reduce framework. So, just create any side-files in the
  23400. path returned by {@link #getWorkOutputPath(JobConf)} from map/reduce
  23401. task to take advantage of this feature.</p>
  23402. <p>The entire discussion holds true for maps of jobs with
  23403. reducer=NONE (i.e. 0 reduces) since output of the map, in that case,
  23404. goes directly to HDFS.</p>
  23405. @return the {@link Path} to the task's temporary output directory
  23406. for the map-reduce job.]]>
  23407. </doc>
  23408. </method>
  23409. <method name="getTaskOutputPath" return="org.apache.hadoop.fs.Path"
  23410. abstract="false" native="false" synchronized="false"
  23411. static="true" final="false" visibility="protected"
  23412. deprecated="not deprecated">
  23413. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23414. <param name="name" type="java.lang.String"/>
  23415. <exception name="IOException" type="java.io.IOException"/>
  23416. <doc>
  23417. <![CDATA[Helper function to create the task's temporary output directory and
  23418. return the path to the task's output file.
  23419. @param conf job-configuration
  23420. @param name temporary task-output filename
  23421. @return path to the task's temporary output file
  23422. @throws IOException]]>
  23423. </doc>
  23424. </method>
  23425. <doc>
  23426. <![CDATA[A base class for {@link OutputFormat}.]]>
  23427. </doc>
  23428. </class>
  23429. <!-- end class org.apache.hadoop.mapred.FileOutputFormat -->
  23430. <!-- start class org.apache.hadoop.mapred.FileSplit -->
  23431. <class name="FileSplit" extends="java.lang.Object"
  23432. abstract="false"
  23433. static="false" final="false" visibility="public"
  23434. deprecated="not deprecated">
  23435. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  23436. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, org.apache.hadoop.mapred.JobConf"
  23437. static="false" final="false" visibility="public"
  23438. deprecated="deprecated, no comment">
  23439. <doc>
  23440. <![CDATA[Constructs a split.
  23441. @deprecated
  23442. @param file the file name
  23443. @param start the position of the first byte in the file to process
  23444. @param length the number of bytes in the file to process]]>
  23445. </doc>
  23446. </constructor>
  23447. <constructor name="FileSplit" type="org.apache.hadoop.fs.Path, long, long, java.lang.String[]"
  23448. static="false" final="false" visibility="public"
  23449. deprecated="not deprecated">
  23450. <doc>
  23451. <![CDATA[Constructs a split with host information
  23452. @param file the file name
  23453. @param start the position of the first byte in the file to process
  23454. @param length the number of bytes in the file to process
  23455. @param hosts the list of hosts containing the block, possibly null]]>
  23456. </doc>
  23457. </constructor>
  23458. <method name="getPath" return="org.apache.hadoop.fs.Path"
  23459. abstract="false" native="false" synchronized="false"
  23460. static="false" final="false" visibility="public"
  23461. deprecated="not deprecated">
  23462. <doc>
  23463. <![CDATA[The file containing this split's data.]]>
  23464. </doc>
  23465. </method>
  23466. <method name="getStart" return="long"
  23467. abstract="false" native="false" synchronized="false"
  23468. static="false" final="false" visibility="public"
  23469. deprecated="not deprecated">
  23470. <doc>
  23471. <![CDATA[The position of the first byte in the file to process.]]>
  23472. </doc>
  23473. </method>
  23474. <method name="getLength" return="long"
  23475. abstract="false" native="false" synchronized="false"
  23476. static="false" final="false" visibility="public"
  23477. deprecated="not deprecated">
  23478. <doc>
  23479. <![CDATA[The number of bytes in the file to process.]]>
  23480. </doc>
  23481. </method>
  23482. <method name="toString" return="java.lang.String"
  23483. abstract="false" native="false" synchronized="false"
  23484. static="false" final="false" visibility="public"
  23485. deprecated="not deprecated">
  23486. </method>
  23487. <method name="write"
  23488. abstract="false" native="false" synchronized="false"
  23489. static="false" final="false" visibility="public"
  23490. deprecated="not deprecated">
  23491. <param name="out" type="java.io.DataOutput"/>
  23492. <exception name="IOException" type="java.io.IOException"/>
  23493. </method>
  23494. <method name="readFields"
  23495. abstract="false" native="false" synchronized="false"
  23496. static="false" final="false" visibility="public"
  23497. deprecated="not deprecated">
  23498. <param name="in" type="java.io.DataInput"/>
  23499. <exception name="IOException" type="java.io.IOException"/>
  23500. </method>
  23501. <method name="getLocations" return="java.lang.String[]"
  23502. abstract="false" native="false" synchronized="false"
  23503. static="false" final="false" visibility="public"
  23504. deprecated="not deprecated">
  23505. <exception name="IOException" type="java.io.IOException"/>
  23506. </method>
  23507. <doc>
  23508. <![CDATA[A section of an input file. Returned by {@link
  23509. InputFormat#getSplits(JobConf, int)} and passed to
  23510. {@link InputFormat#getRecordReader(InputSplit,JobConf,Reporter)}.]]>
  23511. </doc>
  23512. </class>
  23513. <!-- end class org.apache.hadoop.mapred.FileSplit -->
  23514. <!-- start class org.apache.hadoop.mapred.ID -->
  23515. <class name="ID" extends="java.lang.Object"
  23516. abstract="false"
  23517. static="false" final="false" visibility="public"
  23518. deprecated="not deprecated">
  23519. <implements name="org.apache.hadoop.io.WritableComparable&lt;org.apache.hadoop.mapred.ID&gt;"/>
  23520. <constructor name="ID" type="int"
  23521. static="false" final="false" visibility="public"
  23522. deprecated="not deprecated">
  23523. <doc>
  23524. <![CDATA[constructs an ID object from the given int]]>
  23525. </doc>
  23526. </constructor>
  23527. <constructor name="ID"
  23528. static="false" final="false" visibility="protected"
  23529. deprecated="not deprecated">
  23530. </constructor>
  23531. <method name="getId" return="int"
  23532. abstract="false" native="false" synchronized="false"
  23533. static="false" final="false" visibility="public"
  23534. deprecated="not deprecated">
  23535. <doc>
  23536. <![CDATA[returns the int which represents the identifier]]>
  23537. </doc>
  23538. </method>
  23539. <method name="toString" return="java.lang.String"
  23540. abstract="false" native="false" synchronized="false"
  23541. static="false" final="false" visibility="public"
  23542. deprecated="not deprecated">
  23543. </method>
  23544. <method name="hashCode" return="int"
  23545. abstract="false" native="false" synchronized="false"
  23546. static="false" final="false" visibility="public"
  23547. deprecated="not deprecated">
  23548. </method>
  23549. <method name="equals" return="boolean"
  23550. abstract="false" native="false" synchronized="false"
  23551. static="false" final="false" visibility="public"
  23552. deprecated="not deprecated">
  23553. <param name="o" type="java.lang.Object"/>
  23554. </method>
  23555. <method name="compareTo" return="int"
  23556. abstract="false" native="false" synchronized="false"
  23557. static="false" final="false" visibility="public"
  23558. deprecated="not deprecated">
  23559. <param name="that" type="org.apache.hadoop.mapred.ID"/>
  23560. <doc>
  23561. <![CDATA[Compare IDs by associated numbers]]>
  23562. </doc>
  23563. </method>
  23564. <method name="readFields"
  23565. abstract="false" native="false" synchronized="false"
  23566. static="false" final="false" visibility="public"
  23567. deprecated="not deprecated">
  23568. <param name="in" type="java.io.DataInput"/>
  23569. <exception name="IOException" type="java.io.IOException"/>
  23570. </method>
  23571. <method name="write"
  23572. abstract="false" native="false" synchronized="false"
  23573. static="false" final="false" visibility="public"
  23574. deprecated="not deprecated">
  23575. <param name="out" type="java.io.DataOutput"/>
  23576. <exception name="IOException" type="java.io.IOException"/>
  23577. </method>
  23578. <method name="read" return="org.apache.hadoop.mapred.ID"
  23579. abstract="false" native="false" synchronized="false"
  23580. static="true" final="false" visibility="public"
  23581. deprecated="not deprecated">
  23582. <param name="in" type="java.io.DataInput"/>
  23583. <exception name="IOException" type="java.io.IOException"/>
  23584. </method>
  23585. <method name="forName" return="org.apache.hadoop.mapred.ID"
  23586. abstract="false" native="false" synchronized="false"
  23587. static="true" final="false" visibility="public"
  23588. deprecated="not deprecated">
  23589. <param name="str" type="java.lang.String"/>
  23590. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  23591. <doc>
  23592. <![CDATA[Construct an ID object from given string
  23593. @return constructed Id object or null if the given String is null
  23594. @throws IllegalArgumentException if the given string is malformed]]>
  23595. </doc>
  23596. </method>
  23597. <field name="id" type="int"
  23598. transient="false" volatile="false"
  23599. static="false" final="false" visibility="protected"
  23600. deprecated="not deprecated">
  23601. </field>
  23602. <doc>
  23603. <![CDATA[A general identifier, which internally stores the id
  23604. as an integer. This is the super class of {@link JobID},
  23605. {@link TaskID} and {@link TaskAttemptID}.
  23606. @see JobID
  23607. @see TaskID
  23608. @see TaskAttemptID]]>
  23609. </doc>
  23610. </class>
  23611. <!-- end class org.apache.hadoop.mapred.ID -->
  23612. <!-- start interface org.apache.hadoop.mapred.InputFormat -->
  23613. <interface name="InputFormat" abstract="true"
  23614. static="false" final="false" visibility="public"
  23615. deprecated="not deprecated">
  23616. <method name="validateInput"
  23617. abstract="false" native="false" synchronized="false"
  23618. static="false" final="false" visibility="public"
  23619. deprecated="getSplits is called in the client and can perform any
  23620. necessary validation of the input">
  23621. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23622. <exception name="IOException" type="java.io.IOException"/>
  23623. <doc>
  23624. <![CDATA[Check for validity of the input-specification for the job.
  23625. <p>This method is used to validate the input directories when a job is
  23626. submitted so that the {@link JobClient} can fail early, with an useful
  23627. error message, in case of errors. For e.g. input directory does not exist.
  23628. </p>
  23629. @param job job configuration.
  23630. @throws InvalidInputException if the job does not have valid input
  23631. @deprecated getSplits is called in the client and can perform any
  23632. necessary validation of the input]]>
  23633. </doc>
  23634. </method>
  23635. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  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. <param name="numSplits" type="int"/>
  23641. <exception name="IOException" type="java.io.IOException"/>
  23642. <doc>
  23643. <![CDATA[Logically split the set of input files for the job.
  23644. <p>Each {@link InputSplit} is then assigned to an individual {@link Mapper}
  23645. for processing.</p>
  23646. <p><i>Note</i>: The split is a <i>logical</i> split of the inputs and the
  23647. input files are not physically split into chunks. For e.g. a split could
  23648. be <i>&lt;input-file-path, start, offset&gt;</i> tuple.
  23649. @param job job configuration.
  23650. @param numSplits the desired number of splits, a hint.
  23651. @return an array of {@link InputSplit}s for the job.]]>
  23652. </doc>
  23653. </method>
  23654. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  23655. abstract="false" native="false" synchronized="false"
  23656. static="false" final="false" visibility="public"
  23657. deprecated="not deprecated">
  23658. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  23659. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23660. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  23661. <exception name="IOException" type="java.io.IOException"/>
  23662. <doc>
  23663. <![CDATA[Get the {@link RecordReader} for the given {@link InputSplit}.
  23664. <p>It is the responsibility of the <code>RecordReader</code> to respect
  23665. record boundaries while processing the logical split to present a
  23666. record-oriented view to the individual task.</p>
  23667. @param split the {@link InputSplit}
  23668. @param job the job that this split belongs to
  23669. @return a {@link RecordReader}]]>
  23670. </doc>
  23671. </method>
  23672. <doc>
  23673. <![CDATA[<code>InputFormat</code> describes the input-specification for a
  23674. Map-Reduce job.
  23675. <p>The Map-Reduce framework relies on the <code>InputFormat</code> of the
  23676. job to:<p>
  23677. <ol>
  23678. <li>
  23679. Validate the input-specification of the job.
  23680. <li>
  23681. Split-up the input file(s) into logical {@link InputSplit}s, each of
  23682. which is then assigned to an individual {@link Mapper}.
  23683. </li>
  23684. <li>
  23685. Provide the {@link RecordReader} implementation to be used to glean
  23686. input records from the logical <code>InputSplit</code> for processing by
  23687. the {@link Mapper}.
  23688. </li>
  23689. </ol>
  23690. <p>The default behavior of file-based {@link InputFormat}s, typically
  23691. sub-classes of {@link FileInputFormat}, is to split the
  23692. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  23693. bytes, of the input files. However, the {@link FileSystem} blocksize of
  23694. the input files is treated as an upper bound for input splits. A lower bound
  23695. on the split size can be set via
  23696. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  23697. mapred.min.split.size</a>.</p>
  23698. <p>Clearly, logical splits based on input-size is insufficient for many
  23699. applications since record boundaries are to respected. In such cases, the
  23700. application has to also implement a {@link RecordReader} on whom lies the
  23701. responsibilty to respect record-boundaries and present a record-oriented
  23702. view of the logical <code>InputSplit</code> to the individual task.
  23703. @see InputSplit
  23704. @see RecordReader
  23705. @see JobClient
  23706. @see FileInputFormat]]>
  23707. </doc>
  23708. </interface>
  23709. <!-- end interface org.apache.hadoop.mapred.InputFormat -->
  23710. <!-- start interface org.apache.hadoop.mapred.InputSplit -->
  23711. <interface name="InputSplit" abstract="true"
  23712. static="false" final="false" visibility="public"
  23713. deprecated="not deprecated">
  23714. <implements name="org.apache.hadoop.io.Writable"/>
  23715. <method name="getLength" return="long"
  23716. abstract="false" native="false" synchronized="false"
  23717. static="false" final="false" visibility="public"
  23718. deprecated="not deprecated">
  23719. <exception name="IOException" type="java.io.IOException"/>
  23720. <doc>
  23721. <![CDATA[Get the total number of bytes in the data of the <code>InputSplit</code>.
  23722. @return the number of bytes in the input split.
  23723. @throws IOException]]>
  23724. </doc>
  23725. </method>
  23726. <method name="getLocations" return="java.lang.String[]"
  23727. abstract="false" native="false" synchronized="false"
  23728. static="false" final="false" visibility="public"
  23729. deprecated="not deprecated">
  23730. <exception name="IOException" type="java.io.IOException"/>
  23731. <doc>
  23732. <![CDATA[Get the list of hostnames where the input split is located.
  23733. @return list of hostnames where data of the <code>InputSplit</code> is
  23734. located as an array of <code>String</code>s.
  23735. @throws IOException]]>
  23736. </doc>
  23737. </method>
  23738. <doc>
  23739. <![CDATA[<code>InputSplit</code> represents the data to be processed by an
  23740. individual {@link Mapper}.
  23741. <p>Typically, it presents a byte-oriented view on the input and is the
  23742. responsibility of {@link RecordReader} of the job to process this and present
  23743. a record-oriented view.
  23744. @see InputFormat
  23745. @see RecordReader]]>
  23746. </doc>
  23747. </interface>
  23748. <!-- end interface org.apache.hadoop.mapred.InputSplit -->
  23749. <!-- start class org.apache.hadoop.mapred.InvalidFileTypeException -->
  23750. <class name="InvalidFileTypeException" extends="java.io.IOException"
  23751. abstract="false"
  23752. static="false" final="false" visibility="public"
  23753. deprecated="not deprecated">
  23754. <constructor name="InvalidFileTypeException"
  23755. static="false" final="false" visibility="public"
  23756. deprecated="not deprecated">
  23757. </constructor>
  23758. <constructor name="InvalidFileTypeException" type="java.lang.String"
  23759. static="false" final="false" visibility="public"
  23760. deprecated="not deprecated">
  23761. </constructor>
  23762. <doc>
  23763. <![CDATA[Used when file type differs from the desired file type. like
  23764. getting a file when a directory is expected. Or a wrong file type.]]>
  23765. </doc>
  23766. </class>
  23767. <!-- end class org.apache.hadoop.mapred.InvalidFileTypeException -->
  23768. <!-- start class org.apache.hadoop.mapred.InvalidInputException -->
  23769. <class name="InvalidInputException" extends="java.io.IOException"
  23770. abstract="false"
  23771. static="false" final="false" visibility="public"
  23772. deprecated="not deprecated">
  23773. <constructor name="InvalidInputException" type="java.util.List&lt;java.io.IOException&gt;"
  23774. static="false" final="false" visibility="public"
  23775. deprecated="not deprecated">
  23776. <doc>
  23777. <![CDATA[Create the exception with the given list.
  23778. @param probs the list of problems to report. this list is not copied.]]>
  23779. </doc>
  23780. </constructor>
  23781. <method name="getProblems" return="java.util.List&lt;java.io.IOException&gt;"
  23782. abstract="false" native="false" synchronized="false"
  23783. static="false" final="false" visibility="public"
  23784. deprecated="not deprecated">
  23785. <doc>
  23786. <![CDATA[Get the complete list of the problems reported.
  23787. @return the list of problems, which must not be modified]]>
  23788. </doc>
  23789. </method>
  23790. <method name="getMessage" return="java.lang.String"
  23791. abstract="false" native="false" synchronized="false"
  23792. static="false" final="false" visibility="public"
  23793. deprecated="not deprecated">
  23794. <doc>
  23795. <![CDATA[Get a summary message of the problems found.
  23796. @return the concatenated messages from all of the problems.]]>
  23797. </doc>
  23798. </method>
  23799. <doc>
  23800. <![CDATA[This class wraps a list of problems with the input, so that the user
  23801. can get a list of problems together instead of finding and fixing them one
  23802. by one.]]>
  23803. </doc>
  23804. </class>
  23805. <!-- end class org.apache.hadoop.mapred.InvalidInputException -->
  23806. <!-- start class org.apache.hadoop.mapred.InvalidJobConfException -->
  23807. <class name="InvalidJobConfException" extends="java.io.IOException"
  23808. abstract="false"
  23809. static="false" final="false" visibility="public"
  23810. deprecated="not deprecated">
  23811. <constructor name="InvalidJobConfException"
  23812. static="false" final="false" visibility="public"
  23813. deprecated="not deprecated">
  23814. </constructor>
  23815. <constructor name="InvalidJobConfException" type="java.lang.String"
  23816. static="false" final="false" visibility="public"
  23817. deprecated="not deprecated">
  23818. </constructor>
  23819. <doc>
  23820. <![CDATA[This exception is thrown when jobconf misses some mendatory attributes
  23821. or value of some attributes is invalid.]]>
  23822. </doc>
  23823. </class>
  23824. <!-- end class org.apache.hadoop.mapred.InvalidJobConfException -->
  23825. <!-- start class org.apache.hadoop.mapred.IsolationRunner -->
  23826. <class name="IsolationRunner" extends="java.lang.Object"
  23827. abstract="false"
  23828. static="false" final="false" visibility="public"
  23829. deprecated="not deprecated">
  23830. <constructor name="IsolationRunner"
  23831. static="false" final="false" visibility="public"
  23832. deprecated="not deprecated">
  23833. </constructor>
  23834. <method name="main"
  23835. abstract="false" native="false" synchronized="false"
  23836. static="true" final="false" visibility="public"
  23837. deprecated="not deprecated">
  23838. <param name="args" type="java.lang.String[]"/>
  23839. <exception name="IOException" type="java.io.IOException"/>
  23840. <doc>
  23841. <![CDATA[Run a single task
  23842. @param args the first argument is the task directory]]>
  23843. </doc>
  23844. </method>
  23845. </class>
  23846. <!-- end class org.apache.hadoop.mapred.IsolationRunner -->
  23847. <!-- start class org.apache.hadoop.mapred.JobClient -->
  23848. <class name="JobClient" extends="org.apache.hadoop.conf.Configured"
  23849. abstract="false"
  23850. static="false" final="false" visibility="public"
  23851. deprecated="not deprecated">
  23852. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  23853. <implements name="org.apache.hadoop.util.Tool"/>
  23854. <constructor name="JobClient"
  23855. static="false" final="false" visibility="public"
  23856. deprecated="not deprecated">
  23857. <doc>
  23858. <![CDATA[Create a job client.]]>
  23859. </doc>
  23860. </constructor>
  23861. <constructor name="JobClient" type="org.apache.hadoop.mapred.JobConf"
  23862. static="false" final="false" visibility="public"
  23863. deprecated="not deprecated">
  23864. <exception name="IOException" type="java.io.IOException"/>
  23865. <doc>
  23866. <![CDATA[Build a job client with the given {@link JobConf}, and connect to the
  23867. default {@link JobTracker}.
  23868. @param conf the job configuration.
  23869. @throws IOException]]>
  23870. </doc>
  23871. </constructor>
  23872. <constructor name="JobClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  23873. static="false" final="false" visibility="public"
  23874. deprecated="not deprecated">
  23875. <exception name="IOException" type="java.io.IOException"/>
  23876. <doc>
  23877. <![CDATA[Build a job client, connect to the indicated job tracker.
  23878. @param jobTrackAddr the job tracker to connect to.
  23879. @param conf configuration.]]>
  23880. </doc>
  23881. </constructor>
  23882. <method name="getCommandLineConfig" return="org.apache.hadoop.conf.Configuration"
  23883. abstract="false" native="false" synchronized="true"
  23884. static="true" final="false" visibility="public"
  23885. deprecated="not deprecated">
  23886. <doc>
  23887. <![CDATA[return the command line configuration]]>
  23888. </doc>
  23889. </method>
  23890. <method name="init"
  23891. abstract="false" native="false" synchronized="false"
  23892. static="false" final="false" visibility="public"
  23893. deprecated="not deprecated">
  23894. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  23895. <exception name="IOException" type="java.io.IOException"/>
  23896. <doc>
  23897. <![CDATA[Connect to the default {@link JobTracker}.
  23898. @param conf the job configuration.
  23899. @throws IOException]]>
  23900. </doc>
  23901. </method>
  23902. <method name="close"
  23903. abstract="false" native="false" synchronized="true"
  23904. static="false" final="false" visibility="public"
  23905. deprecated="not deprecated">
  23906. <exception name="IOException" type="java.io.IOException"/>
  23907. <doc>
  23908. <![CDATA[Close the <code>JobClient</code>.]]>
  23909. </doc>
  23910. </method>
  23911. <method name="getFs" return="org.apache.hadoop.fs.FileSystem"
  23912. abstract="false" native="false" synchronized="true"
  23913. static="false" final="false" visibility="public"
  23914. deprecated="not deprecated">
  23915. <exception name="IOException" type="java.io.IOException"/>
  23916. <doc>
  23917. <![CDATA[Get a filesystem handle. We need this to prepare jobs
  23918. for submission to the MapReduce system.
  23919. @return the filesystem handle.]]>
  23920. </doc>
  23921. </method>
  23922. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  23923. abstract="false" native="false" synchronized="false"
  23924. static="false" final="false" visibility="public"
  23925. deprecated="not deprecated">
  23926. <param name="jobFile" type="java.lang.String"/>
  23927. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  23928. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  23929. <exception name="IOException" type="java.io.IOException"/>
  23930. <doc>
  23931. <![CDATA[Submit a job to the MR system.
  23932. This returns a handle to the {@link RunningJob} which can be used to track
  23933. the running-job.
  23934. @param jobFile the job configuration.
  23935. @return a handle to the {@link RunningJob} which can be used to track the
  23936. running-job.
  23937. @throws FileNotFoundException
  23938. @throws InvalidJobConfException
  23939. @throws IOException]]>
  23940. </doc>
  23941. </method>
  23942. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  23943. abstract="false" native="false" synchronized="false"
  23944. static="false" final="false" visibility="public"
  23945. deprecated="not deprecated">
  23946. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  23947. <exception name="FileNotFoundException" type="java.io.FileNotFoundException"/>
  23948. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  23949. <exception name="IOException" type="java.io.IOException"/>
  23950. <doc>
  23951. <![CDATA[Submit a job to the MR system.
  23952. This returns a handle to the {@link RunningJob} which can be used to track
  23953. the running-job.
  23954. @param job the job configuration.
  23955. @return a handle to the {@link RunningJob} which can be used to track the
  23956. running-job.
  23957. @throws FileNotFoundException
  23958. @throws InvalidJobConfException
  23959. @throws IOException]]>
  23960. </doc>
  23961. </method>
  23962. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  23963. abstract="false" native="false" synchronized="false"
  23964. static="false" final="false" visibility="public"
  23965. deprecated="not deprecated">
  23966. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  23967. <exception name="IOException" type="java.io.IOException"/>
  23968. <doc>
  23969. <![CDATA[Get an {@link RunningJob} object to track an ongoing job. Returns
  23970. null if the id does not correspond to any known job.
  23971. @param jobid the jobid of the job.
  23972. @return the {@link RunningJob} handle to track the job, null if the
  23973. <code>jobid</code> doesn't correspond to any known job.
  23974. @throws IOException]]>
  23975. </doc>
  23976. </method>
  23977. <method name="getJob" return="org.apache.hadoop.mapred.RunningJob"
  23978. abstract="false" native="false" synchronized="false"
  23979. static="false" final="false" visibility="public"
  23980. deprecated="Applications should rather use {@link #getJob(JobID)}.">
  23981. <param name="jobid" type="java.lang.String"/>
  23982. <exception name="IOException" type="java.io.IOException"/>
  23983. <doc>
  23984. <![CDATA[@deprecated Applications should rather use {@link #getJob(JobID)}.]]>
  23985. </doc>
  23986. </method>
  23987. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  23988. abstract="false" native="false" synchronized="false"
  23989. static="false" final="false" visibility="public"
  23990. deprecated="not deprecated">
  23991. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  23992. <exception name="IOException" type="java.io.IOException"/>
  23993. <doc>
  23994. <![CDATA[Get the information of the current state of the map tasks of a job.
  23995. @param jobId the job to query.
  23996. @return the list of all of the map tips.
  23997. @throws IOException]]>
  23998. </doc>
  23999. </method>
  24000. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  24001. abstract="false" native="false" synchronized="false"
  24002. static="false" final="false" visibility="public"
  24003. deprecated="Applications should rather use {@link #getMapTaskReports(JobID)}">
  24004. <param name="jobId" type="java.lang.String"/>
  24005. <exception name="IOException" type="java.io.IOException"/>
  24006. <doc>
  24007. <![CDATA[@deprecated Applications should rather use {@link #getMapTaskReports(JobID)}]]>
  24008. </doc>
  24009. </method>
  24010. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  24011. abstract="false" native="false" synchronized="false"
  24012. static="false" final="false" visibility="public"
  24013. deprecated="not deprecated">
  24014. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  24015. <exception name="IOException" type="java.io.IOException"/>
  24016. <doc>
  24017. <![CDATA[Get the information of the current state of the reduce tasks of a job.
  24018. @param jobId the job to query.
  24019. @return the list of all of the reduce tips.
  24020. @throws IOException]]>
  24021. </doc>
  24022. </method>
  24023. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  24024. abstract="false" native="false" synchronized="false"
  24025. static="false" final="false" visibility="public"
  24026. deprecated="Applications should rather use {@link #getReduceTaskReports(JobID)}">
  24027. <param name="jobId" type="java.lang.String"/>
  24028. <exception name="IOException" type="java.io.IOException"/>
  24029. <doc>
  24030. <![CDATA[@deprecated Applications should rather use {@link #getReduceTaskReports(JobID)}]]>
  24031. </doc>
  24032. </method>
  24033. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  24034. abstract="false" native="false" synchronized="false"
  24035. static="false" final="false" visibility="public"
  24036. deprecated="not deprecated">
  24037. <exception name="IOException" type="java.io.IOException"/>
  24038. <doc>
  24039. <![CDATA[Get status information about the Map-Reduce cluster.
  24040. @return the status information about the Map-Reduce cluster as an object
  24041. of {@link ClusterStatus}.
  24042. @throws IOException]]>
  24043. </doc>
  24044. </method>
  24045. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  24046. abstract="false" native="false" synchronized="false"
  24047. static="false" final="false" visibility="public"
  24048. deprecated="not deprecated">
  24049. <exception name="IOException" type="java.io.IOException"/>
  24050. <doc>
  24051. <![CDATA[Get the jobs that are not completed and not failed.
  24052. @return array of {@link JobStatus} for the running/to-be-run jobs.
  24053. @throws IOException]]>
  24054. </doc>
  24055. </method>
  24056. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  24057. abstract="false" native="false" synchronized="false"
  24058. static="false" final="false" visibility="public"
  24059. deprecated="not deprecated">
  24060. <exception name="IOException" type="java.io.IOException"/>
  24061. <doc>
  24062. <![CDATA[Get the jobs that are submitted.
  24063. @return array of {@link JobStatus} for the submitted jobs.
  24064. @throws IOException]]>
  24065. </doc>
  24066. </method>
  24067. <method name="runJob" return="org.apache.hadoop.mapred.RunningJob"
  24068. abstract="false" native="false" synchronized="false"
  24069. static="true" final="false" visibility="public"
  24070. deprecated="not deprecated">
  24071. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24072. <exception name="IOException" type="java.io.IOException"/>
  24073. <doc>
  24074. <![CDATA[Utility that submits a job, then polls for progress until the job is
  24075. complete.
  24076. @param job the job configuration.
  24077. @throws IOException]]>
  24078. </doc>
  24079. </method>
  24080. <method name="setTaskOutputFilter"
  24081. abstract="false" native="false" synchronized="false"
  24082. static="false" final="false" visibility="public"
  24083. deprecated="not deprecated">
  24084. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  24085. <doc>
  24086. <![CDATA[Sets the output filter for tasks. only those tasks are printed whose
  24087. output matches the filter.
  24088. @param newValue task filter.]]>
  24089. </doc>
  24090. </method>
  24091. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  24092. abstract="false" native="false" synchronized="false"
  24093. static="true" final="false" visibility="public"
  24094. deprecated="not deprecated">
  24095. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24096. <doc>
  24097. <![CDATA[Get the task output filter out of the JobConf.
  24098. @param job the JobConf to examine.
  24099. @return the filter level.]]>
  24100. </doc>
  24101. </method>
  24102. <method name="setTaskOutputFilter"
  24103. abstract="false" native="false" synchronized="false"
  24104. static="true" final="false" visibility="public"
  24105. deprecated="not deprecated">
  24106. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  24107. <param name="newValue" type="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"/>
  24108. <doc>
  24109. <![CDATA[Modify the JobConf to set the task output filter.
  24110. @param job the JobConf to modify.
  24111. @param newValue the value to set.]]>
  24112. </doc>
  24113. </method>
  24114. <method name="getTaskOutputFilter" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  24115. abstract="false" native="false" synchronized="false"
  24116. static="false" final="false" visibility="public"
  24117. deprecated="not deprecated">
  24118. <doc>
  24119. <![CDATA[Returns task output filter.
  24120. @return task filter.]]>
  24121. </doc>
  24122. </method>
  24123. <method name="run" return="int"
  24124. abstract="false" native="false" synchronized="false"
  24125. static="false" final="false" visibility="public"
  24126. deprecated="not deprecated">
  24127. <param name="argv" type="java.lang.String[]"/>
  24128. <exception name="Exception" type="java.lang.Exception"/>
  24129. </method>
  24130. <method name="getDefaultMaps" return="int"
  24131. abstract="false" native="false" synchronized="false"
  24132. static="false" final="false" visibility="public"
  24133. deprecated="not deprecated">
  24134. <exception name="IOException" type="java.io.IOException"/>
  24135. <doc>
  24136. <![CDATA[Get status information about the max available Maps in the cluster.
  24137. @return the max available Maps in the cluster
  24138. @throws IOException]]>
  24139. </doc>
  24140. </method>
  24141. <method name="getDefaultReduces" return="int"
  24142. abstract="false" native="false" synchronized="false"
  24143. static="false" final="false" visibility="public"
  24144. deprecated="not deprecated">
  24145. <exception name="IOException" type="java.io.IOException"/>
  24146. <doc>
  24147. <![CDATA[Get status information about the max available Reduces in the cluster.
  24148. @return the max available Reduces in the cluster
  24149. @throws IOException]]>
  24150. </doc>
  24151. </method>
  24152. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  24153. abstract="false" native="false" synchronized="false"
  24154. static="false" final="false" visibility="public"
  24155. deprecated="not deprecated">
  24156. <doc>
  24157. <![CDATA[Grab the jobtracker system directory path where job-specific files are to be placed.
  24158. @return the system directory where job-specific files are to be placed.]]>
  24159. </doc>
  24160. </method>
  24161. <method name="main"
  24162. abstract="false" native="false" synchronized="false"
  24163. static="true" final="false" visibility="public"
  24164. deprecated="not deprecated">
  24165. <param name="argv" type="java.lang.String[]"/>
  24166. <exception name="Exception" type="java.lang.Exception"/>
  24167. </method>
  24168. <doc>
  24169. <![CDATA[<code>JobClient</code> is the primary interface for the user-job to interact
  24170. with the {@link JobTracker}.
  24171. <code>JobClient</code> provides facilities to submit jobs, track their
  24172. progress, access component-tasks' reports/logs, get the Map-Reduce cluster
  24173. status information etc.
  24174. <p>The job submission process involves:
  24175. <ol>
  24176. <li>
  24177. Checking the input and output specifications of the job.
  24178. </li>
  24179. <li>
  24180. Computing the {@link InputSplit}s for the job.
  24181. </li>
  24182. <li>
  24183. Setup the requisite accounting information for the {@link DistributedCache}
  24184. of the job, if necessary.
  24185. </li>
  24186. <li>
  24187. Copying the job's jar and configuration to the map-reduce system directory
  24188. on the distributed file-system.
  24189. </li>
  24190. <li>
  24191. Submitting the job to the <code>JobTracker</code> and optionally monitoring
  24192. it's status.
  24193. </li>
  24194. </ol></p>
  24195. Normally the user creates the application, describes various facets of the
  24196. job via {@link JobConf} and then uses the <code>JobClient</code> to submit
  24197. the job and monitor its progress.
  24198. <p>Here is an example on how to use <code>JobClient</code>:</p>
  24199. <p><blockquote><pre>
  24200. // Create a new JobConf
  24201. JobConf job = new JobConf(new Configuration(), MyJob.class);
  24202. // Specify various job-specific parameters
  24203. job.setJobName("myjob");
  24204. job.setInputPath(new Path("in"));
  24205. job.setOutputPath(new Path("out"));
  24206. job.setMapperClass(MyJob.MyMapper.class);
  24207. job.setReducerClass(MyJob.MyReducer.class);
  24208. // Submit the job, then poll for progress until the job is complete
  24209. JobClient.runJob(job);
  24210. </pre></blockquote></p>
  24211. <h4 id="JobControl">Job Control</h4>
  24212. <p>At times clients would chain map-reduce jobs to accomplish complex tasks
  24213. which cannot be done via a single map-reduce job. This is fairly easy since
  24214. the output of the job, typically, goes to distributed file-system and that
  24215. can be used as the input for the next job.</p>
  24216. <p>However, this also means that the onus on ensuring jobs are complete
  24217. (success/failure) lies squarely on the clients. In such situations the
  24218. various job-control options are:
  24219. <ol>
  24220. <li>
  24221. {@link #runJob(JobConf)} : submits the job and returns only after
  24222. the job has completed.
  24223. </li>
  24224. <li>
  24225. {@link #submitJob(JobConf)} : only submits the job, then poll the
  24226. returned handle to the {@link RunningJob} to query status and make
  24227. scheduling decisions.
  24228. </li>
  24229. <li>
  24230. {@link JobConf#setJobEndNotificationURI(String)} : setup a notification
  24231. on job-completion, thus avoiding polling.
  24232. </li>
  24233. </ol></p>
  24234. @see JobConf
  24235. @see ClusterStatus
  24236. @see Tool
  24237. @see DistributedCache]]>
  24238. </doc>
  24239. </class>
  24240. <!-- end class org.apache.hadoop.mapred.JobClient -->
  24241. <!-- start class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  24242. <class name="JobClient.TaskStatusFilter" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobClient.TaskStatusFilter&gt;"
  24243. abstract="false"
  24244. static="true" final="true" visibility="public"
  24245. deprecated="not deprecated">
  24246. <method name="values" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter[]"
  24247. abstract="false" native="false" synchronized="false"
  24248. static="true" final="false" visibility="public"
  24249. deprecated="not deprecated">
  24250. </method>
  24251. <method name="valueOf" return="org.apache.hadoop.mapred.JobClient.TaskStatusFilter"
  24252. abstract="false" native="false" synchronized="false"
  24253. static="true" final="false" visibility="public"
  24254. deprecated="not deprecated">
  24255. <param name="name" type="java.lang.String"/>
  24256. </method>
  24257. </class>
  24258. <!-- end class org.apache.hadoop.mapred.JobClient.TaskStatusFilter -->
  24259. <!-- start class org.apache.hadoop.mapred.JobConf -->
  24260. <class name="JobConf" extends="org.apache.hadoop.conf.Configuration"
  24261. abstract="false"
  24262. static="false" final="false" visibility="public"
  24263. deprecated="not deprecated">
  24264. <constructor name="JobConf"
  24265. static="false" final="false" visibility="public"
  24266. deprecated="not deprecated">
  24267. <doc>
  24268. <![CDATA[Construct a map/reduce job configuration.]]>
  24269. </doc>
  24270. </constructor>
  24271. <constructor name="JobConf" type="java.lang.Class"
  24272. static="false" final="false" visibility="public"
  24273. deprecated="not deprecated">
  24274. <doc>
  24275. <![CDATA[Construct a map/reduce job configuration.
  24276. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  24277. </doc>
  24278. </constructor>
  24279. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration"
  24280. static="false" final="false" visibility="public"
  24281. deprecated="not deprecated">
  24282. <doc>
  24283. <![CDATA[Construct a map/reduce job configuration.
  24284. @param conf a Configuration whose settings will be inherited.]]>
  24285. </doc>
  24286. </constructor>
  24287. <constructor name="JobConf" type="org.apache.hadoop.conf.Configuration, java.lang.Class"
  24288. static="false" final="false" visibility="public"
  24289. deprecated="not deprecated">
  24290. <doc>
  24291. <![CDATA[Construct a map/reduce job configuration.
  24292. @param conf a Configuration whose settings will be inherited.
  24293. @param exampleClass a class whose containing jar is used as the job's jar.]]>
  24294. </doc>
  24295. </constructor>
  24296. <constructor name="JobConf" type="java.lang.String"
  24297. static="false" final="false" visibility="public"
  24298. deprecated="not deprecated">
  24299. <doc>
  24300. <![CDATA[Construct a map/reduce configuration.
  24301. @param config a Configuration-format XML job description file.]]>
  24302. </doc>
  24303. </constructor>
  24304. <constructor name="JobConf" type="org.apache.hadoop.fs.Path"
  24305. static="false" final="false" visibility="public"
  24306. deprecated="not deprecated">
  24307. <doc>
  24308. <![CDATA[Construct a map/reduce configuration.
  24309. @param config a Configuration-format XML job description file.]]>
  24310. </doc>
  24311. </constructor>
  24312. <method name="getJar" return="java.lang.String"
  24313. abstract="false" native="false" synchronized="false"
  24314. static="false" final="false" visibility="public"
  24315. deprecated="not deprecated">
  24316. <doc>
  24317. <![CDATA[Get the user jar for the map-reduce job.
  24318. @return the user jar for the map-reduce job.]]>
  24319. </doc>
  24320. </method>
  24321. <method name="setJar"
  24322. abstract="false" native="false" synchronized="false"
  24323. static="false" final="false" visibility="public"
  24324. deprecated="not deprecated">
  24325. <param name="jar" type="java.lang.String"/>
  24326. <doc>
  24327. <![CDATA[Set the user jar for the map-reduce job.
  24328. @param jar the user jar for the map-reduce job.]]>
  24329. </doc>
  24330. </method>
  24331. <method name="setJarByClass"
  24332. abstract="false" native="false" synchronized="false"
  24333. static="false" final="false" visibility="public"
  24334. deprecated="not deprecated">
  24335. <param name="cls" type="java.lang.Class"/>
  24336. <doc>
  24337. <![CDATA[Set the job's jar file by finding an example class location.
  24338. @param cls the example class.]]>
  24339. </doc>
  24340. </method>
  24341. <method name="getSystemDir" return="org.apache.hadoop.fs.Path"
  24342. abstract="false" native="false" synchronized="false"
  24343. static="false" final="false" visibility="public"
  24344. deprecated="Use {@link JobClient#getSystemDir()} instead.
  24345. Get the system directory where job-specific files are to be placed.">
  24346. <doc>
  24347. <![CDATA[@deprecated Use {@link JobClient#getSystemDir()} instead.
  24348. Get the system directory where job-specific files are to be placed.
  24349. @return the system directory where job-specific files are to be placed.]]>
  24350. </doc>
  24351. </method>
  24352. <method name="getLocalDirs" return="java.lang.String[]"
  24353. abstract="false" native="false" synchronized="false"
  24354. static="false" final="false" visibility="public"
  24355. deprecated="not deprecated">
  24356. <exception name="IOException" type="java.io.IOException"/>
  24357. </method>
  24358. <method name="deleteLocalFiles"
  24359. abstract="false" native="false" synchronized="false"
  24360. static="false" final="false" visibility="public"
  24361. deprecated="not deprecated">
  24362. <exception name="IOException" type="java.io.IOException"/>
  24363. </method>
  24364. <method name="deleteLocalFiles"
  24365. abstract="false" native="false" synchronized="false"
  24366. static="false" final="false" visibility="public"
  24367. deprecated="not deprecated">
  24368. <param name="subdir" type="java.lang.String"/>
  24369. <exception name="IOException" type="java.io.IOException"/>
  24370. </method>
  24371. <method name="getLocalPath" return="org.apache.hadoop.fs.Path"
  24372. abstract="false" native="false" synchronized="false"
  24373. static="false" final="false" visibility="public"
  24374. deprecated="not deprecated">
  24375. <param name="pathString" type="java.lang.String"/>
  24376. <exception name="IOException" type="java.io.IOException"/>
  24377. <doc>
  24378. <![CDATA[Constructs a local file name. Files are distributed among configured
  24379. local directories.]]>
  24380. </doc>
  24381. </method>
  24382. <method name="setInputPath"
  24383. abstract="false" native="false" synchronized="false"
  24384. static="false" final="false" visibility="public"
  24385. deprecated="Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  24386. {@link FileInputFormat#setInputPaths(JobConf, String)}">
  24387. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  24388. <doc>
  24389. <![CDATA[Set the {@link Path} of the input directory for the map-reduce job.
  24390. @param dir the {@link Path} of the input directory for the map-reduce job.
  24391. @deprecated Use {@link FileInputFormat#setInputPaths(JobConf, Path...)} or
  24392. {@link FileInputFormat#setInputPaths(JobConf, String)}]]>
  24393. </doc>
  24394. </method>
  24395. <method name="addInputPath"
  24396. abstract="false" native="false" synchronized="false"
  24397. static="false" final="false" visibility="public"
  24398. deprecated="Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  24399. {@link FileInputFormat#addInputPaths(JobConf, String)}">
  24400. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  24401. <doc>
  24402. <![CDATA[Add a {@link Path} to the list of inputs for the map-reduce job.
  24403. @param dir {@link Path} to be added to the list of inputs for
  24404. the map-reduce job.
  24405. @deprecated Use {@link FileInputFormat#addInputPath(JobConf, Path)} or
  24406. {@link FileInputFormat#addInputPaths(JobConf, String)}]]>
  24407. </doc>
  24408. </method>
  24409. <method name="getInputPaths" return="org.apache.hadoop.fs.Path[]"
  24410. abstract="false" native="false" synchronized="false"
  24411. static="false" final="false" visibility="public"
  24412. deprecated="Use {@link FileInputFormat#getInputPaths(JobConf)}">
  24413. <doc>
  24414. <![CDATA[Get the list of input {@link Path}s for the map-reduce job.
  24415. @return the list of input {@link Path}s for the map-reduce job.
  24416. @deprecated Use {@link FileInputFormat#getInputPaths(JobConf)}]]>
  24417. </doc>
  24418. </method>
  24419. <method name="getUser" return="java.lang.String"
  24420. abstract="false" native="false" synchronized="false"
  24421. static="false" final="false" visibility="public"
  24422. deprecated="not deprecated">
  24423. <doc>
  24424. <![CDATA[Get the reported username for this job.
  24425. @return the username]]>
  24426. </doc>
  24427. </method>
  24428. <method name="setUser"
  24429. abstract="false" native="false" synchronized="false"
  24430. static="false" final="false" visibility="public"
  24431. deprecated="not deprecated">
  24432. <param name="user" type="java.lang.String"/>
  24433. <doc>
  24434. <![CDATA[Set the reported username for this job.
  24435. @param user the username for this job.]]>
  24436. </doc>
  24437. </method>
  24438. <method name="setKeepFailedTaskFiles"
  24439. abstract="false" native="false" synchronized="false"
  24440. static="false" final="false" visibility="public"
  24441. deprecated="not deprecated">
  24442. <param name="keep" type="boolean"/>
  24443. <doc>
  24444. <![CDATA[Set whether the framework should keep the intermediate files for
  24445. failed tasks.
  24446. @param keep <code>true</code> if framework should keep the intermediate files
  24447. for failed tasks, <code>false</code> otherwise.]]>
  24448. </doc>
  24449. </method>
  24450. <method name="getKeepFailedTaskFiles" return="boolean"
  24451. abstract="false" native="false" synchronized="false"
  24452. static="false" final="false" visibility="public"
  24453. deprecated="not deprecated">
  24454. <doc>
  24455. <![CDATA[Should the temporary files for failed tasks be kept?
  24456. @return should the files be kept?]]>
  24457. </doc>
  24458. </method>
  24459. <method name="setKeepTaskFilesPattern"
  24460. abstract="false" native="false" synchronized="false"
  24461. static="false" final="false" visibility="public"
  24462. deprecated="not deprecated">
  24463. <param name="pattern" type="java.lang.String"/>
  24464. <doc>
  24465. <![CDATA[Set a regular expression for task names that should be kept.
  24466. The regular expression ".*_m_000123_0" would keep the files
  24467. for the first instance of map 123 that ran.
  24468. @param pattern the java.util.regex.Pattern to match against the
  24469. task names.]]>
  24470. </doc>
  24471. </method>
  24472. <method name="getKeepTaskFilesPattern" return="java.lang.String"
  24473. abstract="false" native="false" synchronized="false"
  24474. static="false" final="false" visibility="public"
  24475. deprecated="not deprecated">
  24476. <doc>
  24477. <![CDATA[Get the regular expression that is matched against the task names
  24478. to see if we need to keep the files.
  24479. @return the pattern as a string, if it was set, othewise null.]]>
  24480. </doc>
  24481. </method>
  24482. <method name="setWorkingDirectory"
  24483. abstract="false" native="false" synchronized="false"
  24484. static="false" final="false" visibility="public"
  24485. deprecated="not deprecated">
  24486. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  24487. <doc>
  24488. <![CDATA[Set the current working directory for the default file system.
  24489. @param dir the new current working directory.]]>
  24490. </doc>
  24491. </method>
  24492. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  24493. abstract="false" native="false" synchronized="false"
  24494. static="false" final="false" visibility="public"
  24495. deprecated="not deprecated">
  24496. <doc>
  24497. <![CDATA[Get the current working directory for the default file system.
  24498. @return the directory name.]]>
  24499. </doc>
  24500. </method>
  24501. <method name="getOutputPath" return="org.apache.hadoop.fs.Path"
  24502. abstract="false" native="false" synchronized="false"
  24503. static="false" final="false" visibility="public"
  24504. deprecated="Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  24505. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  24506. Get the {@link Path} to the output directory for the map-reduce job.">
  24507. <doc>
  24508. <![CDATA[@deprecated Use {@link FileOutputFormat#getOutputPath(JobConf)} or
  24509. {@link FileOutputFormat#getWorkOutputPath(JobConf)}
  24510. Get the {@link Path} to the output directory for the map-reduce job.
  24511. @return the {@link Path} to the output directory for the map-reduce job.]]>
  24512. </doc>
  24513. </method>
  24514. <method name="setOutputPath"
  24515. abstract="false" native="false" synchronized="false"
  24516. static="false" final="false" visibility="public"
  24517. deprecated="Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  24518. Set the {@link Path} of the output directory for the map-reduce job.
  24519. lEsS_tHaNp>lEsS_tHaNi>NotelEsS_tHaN/i>:
  24520. lEsS_tHaN/p>">
  24521. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  24522. <doc>
  24523. <![CDATA[@deprecated Use {@link FileOutputFormat#setOutputPath(JobConf, Path)}
  24524. Set the {@link Path} of the output directory for the map-reduce job.
  24525. <p><i>Note</i>:
  24526. </p>
  24527. @param dir the {@link Path} of the output directory for the map-reduce job.]]>
  24528. </doc>
  24529. </method>
  24530. <method name="getInputFormat" return="org.apache.hadoop.mapred.InputFormat"
  24531. abstract="false" native="false" synchronized="false"
  24532. static="false" final="false" visibility="public"
  24533. deprecated="not deprecated">
  24534. <doc>
  24535. <![CDATA[Get the {@link InputFormat} implementation for the map-reduce job,
  24536. defaults to {@link TextInputFormat} if not specified explicity.
  24537. @return the {@link InputFormat} implementation for the map-reduce job.]]>
  24538. </doc>
  24539. </method>
  24540. <method name="setInputFormat"
  24541. abstract="false" native="false" synchronized="false"
  24542. static="false" final="false" visibility="public"
  24543. deprecated="not deprecated">
  24544. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  24545. <doc>
  24546. <![CDATA[Set the {@link InputFormat} implementation for the map-reduce job.
  24547. @param theClass the {@link InputFormat} implementation for the map-reduce
  24548. job.]]>
  24549. </doc>
  24550. </method>
  24551. <method name="getOutputFormat" return="org.apache.hadoop.mapred.OutputFormat"
  24552. abstract="false" native="false" synchronized="false"
  24553. static="false" final="false" visibility="public"
  24554. deprecated="not deprecated">
  24555. <doc>
  24556. <![CDATA[Get the {@link OutputFormat} implementation for the map-reduce job,
  24557. defaults to {@link TextOutputFormat} if not specified explicity.
  24558. @return the {@link OutputFormat} implementation for the map-reduce job.]]>
  24559. </doc>
  24560. </method>
  24561. <method name="setOutputFormat"
  24562. abstract="false" native="false" synchronized="false"
  24563. static="false" final="false" visibility="public"
  24564. deprecated="not deprecated">
  24565. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.OutputFormat&gt;"/>
  24566. <doc>
  24567. <![CDATA[Set the {@link OutputFormat} implementation for the map-reduce job.
  24568. @param theClass the {@link OutputFormat} implementation for the map-reduce
  24569. job.]]>
  24570. </doc>
  24571. </method>
  24572. <method name="setCompressMapOutput"
  24573. abstract="false" native="false" synchronized="false"
  24574. static="false" final="false" visibility="public"
  24575. deprecated="not deprecated">
  24576. <param name="compress" type="boolean"/>
  24577. <doc>
  24578. <![CDATA[Should the map outputs be compressed before transfer?
  24579. Uses the SequenceFile compression.
  24580. @param compress should the map outputs be compressed?]]>
  24581. </doc>
  24582. </method>
  24583. <method name="getCompressMapOutput" return="boolean"
  24584. abstract="false" native="false" synchronized="false"
  24585. static="false" final="false" visibility="public"
  24586. deprecated="not deprecated">
  24587. <doc>
  24588. <![CDATA[Are the outputs of the maps be compressed?
  24589. @return <code>true</code> if the outputs of the maps are to be compressed,
  24590. <code>false</code> otherwise.]]>
  24591. </doc>
  24592. </method>
  24593. <method name="setMapOutputCompressionType"
  24594. abstract="false" native="false" synchronized="false"
  24595. static="false" final="false" visibility="public"
  24596. deprecated="{@link CompressionType} is no longer valid for intermediate
  24597. map-outputs.">
  24598. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  24599. <doc>
  24600. <![CDATA[Set the {@link CompressionType} for the map outputs.
  24601. @param style the {@link CompressionType} to control how the map outputs
  24602. are compressed.
  24603. @deprecated {@link CompressionType} is no longer valid for intermediate
  24604. map-outputs.]]>
  24605. </doc>
  24606. </method>
  24607. <method name="getMapOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  24608. abstract="false" native="false" synchronized="false"
  24609. static="false" final="false" visibility="public"
  24610. deprecated="{@link CompressionType} is no longer valid for intermediate
  24611. map-outputs.">
  24612. <doc>
  24613. <![CDATA[Get the {@link CompressionType} for the map outputs.
  24614. @return the {@link CompressionType} for map outputs, defaulting to
  24615. {@link CompressionType#RECORD}.
  24616. @deprecated {@link CompressionType} is no longer valid for intermediate
  24617. map-outputs.]]>
  24618. </doc>
  24619. </method>
  24620. <method name="setMapOutputCompressorClass"
  24621. abstract="false" native="false" synchronized="false"
  24622. static="false" final="false" visibility="public"
  24623. deprecated="not deprecated">
  24624. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  24625. <doc>
  24626. <![CDATA[Set the given class as the {@link CompressionCodec} for the map outputs.
  24627. @param codecClass the {@link CompressionCodec} class that will compress
  24628. the map outputs.]]>
  24629. </doc>
  24630. </method>
  24631. <method name="getMapOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  24632. abstract="false" native="false" synchronized="false"
  24633. static="false" final="false" visibility="public"
  24634. deprecated="not deprecated">
  24635. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  24636. <doc>
  24637. <![CDATA[Get the {@link CompressionCodec} for compressing the map outputs.
  24638. @param defaultValue the {@link CompressionCodec} to return if not set
  24639. @return the {@link CompressionCodec} class that should be used to compress the
  24640. map outputs.
  24641. @throws IllegalArgumentException if the class was specified, but not found]]>
  24642. </doc>
  24643. </method>
  24644. <method name="getMapOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  24645. abstract="false" native="false" synchronized="false"
  24646. static="false" final="false" visibility="public"
  24647. deprecated="not deprecated">
  24648. <doc>
  24649. <![CDATA[Get the key class for the map output data. If it is not set, use the
  24650. (final) output key class. This allows the map output key class to be
  24651. different than the final output key class.
  24652. @return the map output key class.]]>
  24653. </doc>
  24654. </method>
  24655. <method name="setMapOutputKeyClass"
  24656. abstract="false" native="false" synchronized="false"
  24657. static="false" final="false" visibility="public"
  24658. deprecated="not deprecated">
  24659. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  24660. <doc>
  24661. <![CDATA[Set the key class for the map output data. This allows the user to
  24662. specify the map output key class to be different than the final output
  24663. value class.
  24664. @param theClass the map output key class.]]>
  24665. </doc>
  24666. </method>
  24667. <method name="getMapOutputValueClass" return="java.lang.Class&lt;?&gt;"
  24668. abstract="false" native="false" synchronized="false"
  24669. static="false" final="false" visibility="public"
  24670. deprecated="not deprecated">
  24671. <doc>
  24672. <![CDATA[Get the value class for the map output data. If it is not set, use the
  24673. (final) output value class This allows the map output value class to be
  24674. different than the final output value class.
  24675. @return the map output value class.]]>
  24676. </doc>
  24677. </method>
  24678. <method name="setMapOutputValueClass"
  24679. abstract="false" native="false" synchronized="false"
  24680. static="false" final="false" visibility="public"
  24681. deprecated="not deprecated">
  24682. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  24683. <doc>
  24684. <![CDATA[Set the value class for the map output data. This allows the user to
  24685. specify the map output value class to be different than the final output
  24686. value class.
  24687. @param theClass the map output value class.]]>
  24688. </doc>
  24689. </method>
  24690. <method name="getOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  24691. abstract="false" native="false" synchronized="false"
  24692. static="false" final="false" visibility="public"
  24693. deprecated="not deprecated">
  24694. <doc>
  24695. <![CDATA[Get the key class for the job output data.
  24696. @return the key class for the job output data.]]>
  24697. </doc>
  24698. </method>
  24699. <method name="setOutputKeyClass"
  24700. abstract="false" native="false" synchronized="false"
  24701. static="false" final="false" visibility="public"
  24702. deprecated="not deprecated">
  24703. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  24704. <doc>
  24705. <![CDATA[Set the key class for the job output data.
  24706. @param theClass the key class for the job output data.]]>
  24707. </doc>
  24708. </method>
  24709. <method name="getOutputKeyComparator" return="org.apache.hadoop.io.RawComparator"
  24710. abstract="false" native="false" synchronized="false"
  24711. static="false" final="false" visibility="public"
  24712. deprecated="not deprecated">
  24713. <doc>
  24714. <![CDATA[Get the {@link RawComparator} comparator used to compare keys.
  24715. @return the {@link RawComparator} comparator used to compare keys.]]>
  24716. </doc>
  24717. </method>
  24718. <method name="setOutputKeyComparatorClass"
  24719. abstract="false" native="false" synchronized="false"
  24720. static="false" final="false" visibility="public"
  24721. deprecated="not deprecated">
  24722. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  24723. <doc>
  24724. <![CDATA[Set the {@link RawComparator} comparator used to compare keys.
  24725. @param theClass the {@link RawComparator} comparator used to
  24726. compare keys.
  24727. @see #setOutputValueGroupingComparator(Class)]]>
  24728. </doc>
  24729. </method>
  24730. <method name="getOutputValueGroupingComparator" return="org.apache.hadoop.io.RawComparator"
  24731. abstract="false" native="false" synchronized="false"
  24732. static="false" final="false" visibility="public"
  24733. deprecated="not deprecated">
  24734. <doc>
  24735. <![CDATA[Get the user defined {@link WritableComparable} comparator for
  24736. grouping keys of inputs to the reduce.
  24737. @return comparator set by the user for grouping values.
  24738. @see #setOutputValueGroupingComparator(Class) for details.]]>
  24739. </doc>
  24740. </method>
  24741. <method name="setOutputValueGroupingComparator"
  24742. abstract="false" native="false" synchronized="false"
  24743. static="false" final="false" visibility="public"
  24744. deprecated="not deprecated">
  24745. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.RawComparator&gt;"/>
  24746. <doc>
  24747. <![CDATA[Set the user defined {@link RawComparator} comparator for
  24748. grouping keys in the input to the reduce.
  24749. <p>This comparator should be provided if the equivalence rules for keys
  24750. for sorting the intermediates are different from those for grouping keys
  24751. before each call to
  24752. {@link Reducer#reduce(Object, java.util.Iterator, OutputCollector, Reporter)}.</p>
  24753. <p>For key-value pairs (K1,V1) and (K2,V2), the values (V1, V2) are passed
  24754. in a single call to the reduce function if K1 and K2 compare as equal.</p>
  24755. <p>Since {@link #setOutputKeyComparatorClass(Class)} can be used to control
  24756. how keys are sorted, this can be used in conjunction to simulate
  24757. <i>secondary sort on values</i>.</p>
  24758. <p><i>Note</i>: This is not a guarantee of the reduce sort being
  24759. <i>stable</i> in any sense. (In any case, with the order of available
  24760. map-outputs to the reduce being non-deterministic, it wouldn't make
  24761. that much sense.)</p>
  24762. @param theClass the comparator class to be used for grouping keys.
  24763. It should implement <code>RawComparator</code>.
  24764. @see #setOutputKeyComparatorClass(Class)]]>
  24765. </doc>
  24766. </method>
  24767. <method name="getOutputValueClass" return="java.lang.Class&lt;?&gt;"
  24768. abstract="false" native="false" synchronized="false"
  24769. static="false" final="false" visibility="public"
  24770. deprecated="not deprecated">
  24771. <doc>
  24772. <![CDATA[Get the value class for job outputs.
  24773. @return the value class for job outputs.]]>
  24774. </doc>
  24775. </method>
  24776. <method name="setOutputValueClass"
  24777. abstract="false" native="false" synchronized="false"
  24778. static="false" final="false" visibility="public"
  24779. deprecated="not deprecated">
  24780. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  24781. <doc>
  24782. <![CDATA[Set the value class for job outputs.
  24783. @param theClass the value class for job outputs.]]>
  24784. </doc>
  24785. </method>
  24786. <method name="getMapperClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"
  24787. abstract="false" native="false" synchronized="false"
  24788. static="false" final="false" visibility="public"
  24789. deprecated="not deprecated">
  24790. <doc>
  24791. <![CDATA[Get the {@link Mapper} class for the job.
  24792. @return the {@link Mapper} class for the job.]]>
  24793. </doc>
  24794. </method>
  24795. <method name="setMapperClass"
  24796. abstract="false" native="false" synchronized="false"
  24797. static="false" final="false" visibility="public"
  24798. deprecated="not deprecated">
  24799. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Mapper&gt;"/>
  24800. <doc>
  24801. <![CDATA[Set the {@link Mapper} class for the job.
  24802. @param theClass the {@link Mapper} class for the job.]]>
  24803. </doc>
  24804. </method>
  24805. <method name="getMapRunnerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"
  24806. abstract="false" native="false" synchronized="false"
  24807. static="false" final="false" visibility="public"
  24808. deprecated="not deprecated">
  24809. <doc>
  24810. <![CDATA[Get the {@link MapRunnable} class for the job.
  24811. @return the {@link MapRunnable} class for the job.]]>
  24812. </doc>
  24813. </method>
  24814. <method name="setMapRunnerClass"
  24815. abstract="false" native="false" synchronized="false"
  24816. static="false" final="false" visibility="public"
  24817. deprecated="not deprecated">
  24818. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.MapRunnable&gt;"/>
  24819. <doc>
  24820. <![CDATA[Expert: Set the {@link MapRunnable} class for the job.
  24821. Typically used to exert greater control on {@link Mapper}s.
  24822. @param theClass the {@link MapRunnable} class for the job.]]>
  24823. </doc>
  24824. </method>
  24825. <method name="getPartitionerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"
  24826. abstract="false" native="false" synchronized="false"
  24827. static="false" final="false" visibility="public"
  24828. deprecated="not deprecated">
  24829. <doc>
  24830. <![CDATA[Get the {@link Partitioner} used to partition {@link Mapper}-outputs
  24831. to be sent to the {@link Reducer}s.
  24832. @return the {@link Partitioner} used to partition map-outputs.]]>
  24833. </doc>
  24834. </method>
  24835. <method name="setPartitionerClass"
  24836. abstract="false" native="false" synchronized="false"
  24837. static="false" final="false" visibility="public"
  24838. deprecated="not deprecated">
  24839. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Partitioner&gt;"/>
  24840. <doc>
  24841. <![CDATA[Set the {@link Partitioner} class used to partition
  24842. {@link Mapper}-outputs to be sent to the {@link Reducer}s.
  24843. @param theClass the {@link Partitioner} used to partition map-outputs.]]>
  24844. </doc>
  24845. </method>
  24846. <method name="getReducerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  24847. abstract="false" native="false" synchronized="false"
  24848. static="false" final="false" visibility="public"
  24849. deprecated="not deprecated">
  24850. <doc>
  24851. <![CDATA[Get the {@link Reducer} class for the job.
  24852. @return the {@link Reducer} class for the job.]]>
  24853. </doc>
  24854. </method>
  24855. <method name="setReducerClass"
  24856. abstract="false" native="false" synchronized="false"
  24857. static="false" final="false" visibility="public"
  24858. deprecated="not deprecated">
  24859. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  24860. <doc>
  24861. <![CDATA[Set the {@link Reducer} class for the job.
  24862. @param theClass the {@link Reducer} class for the job.]]>
  24863. </doc>
  24864. </method>
  24865. <method name="getCombinerClass" return="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"
  24866. abstract="false" native="false" synchronized="false"
  24867. static="false" final="false" visibility="public"
  24868. deprecated="not deprecated">
  24869. <doc>
  24870. <![CDATA[Get the user-defined <i>combiner</i> class used to combine map-outputs
  24871. before being sent to the reducers. Typically the combiner is same as the
  24872. the {@link Reducer} for the job i.e. {@link #getReducerClass()}.
  24873. @return the user-defined combiner class used to combine map-outputs.]]>
  24874. </doc>
  24875. </method>
  24876. <method name="setCombinerClass"
  24877. abstract="false" native="false" synchronized="false"
  24878. static="false" final="false" visibility="public"
  24879. deprecated="not deprecated">
  24880. <param name="theClass" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.Reducer&gt;"/>
  24881. <doc>
  24882. <![CDATA[Set the user-defined <i>combiner</i> class used to combine map-outputs
  24883. before being sent to the reducers.
  24884. <p>The combiner is a task-level aggregation operation which, in some cases,
  24885. helps to cut down the amount of data transferred from the {@link Mapper} to
  24886. the {@link Reducer}, leading to better performance.</p>
  24887. <p>Typically the combiner is same as the <code>Reducer</code> for the
  24888. job i.e. {@link #setReducerClass(Class)}.</p>
  24889. @param theClass the user-defined combiner class used to combine
  24890. map-outputs.]]>
  24891. </doc>
  24892. </method>
  24893. <method name="setCombineOnceOnly"
  24894. abstract="false" native="false" synchronized="false"
  24895. static="false" final="false" visibility="public"
  24896. deprecated="not deprecated">
  24897. <param name="value" type="boolean"/>
  24898. <doc>
  24899. <![CDATA[If true, ensures the combiner is run once and only once on output from
  24900. the map. Otherwise, combiner may be run zero or more times.]]>
  24901. </doc>
  24902. </method>
  24903. <method name="getCombineOnceOnly" return="boolean"
  24904. abstract="false" native="false" synchronized="false"
  24905. static="false" final="false" visibility="public"
  24906. deprecated="not deprecated">
  24907. </method>
  24908. <method name="getSpeculativeExecution" return="boolean"
  24909. abstract="false" native="false" synchronized="false"
  24910. static="false" final="false" visibility="public"
  24911. deprecated="not deprecated">
  24912. <doc>
  24913. <![CDATA[Should speculative execution be used for this job?
  24914. Defaults to <code>true</code>.
  24915. @return <code>true</code> if speculative execution be used for this job,
  24916. <code>false</code> otherwise.]]>
  24917. </doc>
  24918. </method>
  24919. <method name="setSpeculativeExecution"
  24920. abstract="false" native="false" synchronized="false"
  24921. static="false" final="false" visibility="public"
  24922. deprecated="not deprecated">
  24923. <param name="speculativeExecution" type="boolean"/>
  24924. <doc>
  24925. <![CDATA[Turn speculative execution on or off for this job.
  24926. @param speculativeExecution <code>true</code> if speculative execution
  24927. should be turned on, else <code>false</code>.]]>
  24928. </doc>
  24929. </method>
  24930. <method name="getMapSpeculativeExecution" return="boolean"
  24931. abstract="false" native="false" synchronized="false"
  24932. static="false" final="false" visibility="public"
  24933. deprecated="not deprecated">
  24934. <doc>
  24935. <![CDATA[Should speculative execution be used for this job for map tasks?
  24936. Defaults to <code>true</code>.
  24937. @return <code>true</code> if speculative execution be
  24938. used for this job for map tasks,
  24939. <code>false</code> otherwise.]]>
  24940. </doc>
  24941. </method>
  24942. <method name="setMapSpeculativeExecution"
  24943. abstract="false" native="false" synchronized="false"
  24944. static="false" final="false" visibility="public"
  24945. deprecated="not deprecated">
  24946. <param name="speculativeExecution" type="boolean"/>
  24947. <doc>
  24948. <![CDATA[Turn speculative execution on or off for this job for map tasks.
  24949. @param speculativeExecution <code>true</code> if speculative execution
  24950. should be turned on for map tasks,
  24951. else <code>false</code>.]]>
  24952. </doc>
  24953. </method>
  24954. <method name="getReduceSpeculativeExecution" return="boolean"
  24955. abstract="false" native="false" synchronized="false"
  24956. static="false" final="false" visibility="public"
  24957. deprecated="not deprecated">
  24958. <doc>
  24959. <![CDATA[Should speculative execution be used for this job for reduce tasks?
  24960. Defaults to <code>true</code>.
  24961. @return <code>true</code> if speculative execution be used
  24962. for reduce tasks for this job,
  24963. <code>false</code> otherwise.]]>
  24964. </doc>
  24965. </method>
  24966. <method name="setReduceSpeculativeExecution"
  24967. abstract="false" native="false" synchronized="false"
  24968. static="false" final="false" visibility="public"
  24969. deprecated="not deprecated">
  24970. <param name="speculativeExecution" type="boolean"/>
  24971. <doc>
  24972. <![CDATA[Turn speculative execution on or off for this job for reduce tasks.
  24973. @param speculativeExecution <code>true</code> if speculative execution
  24974. should be turned on for reduce tasks,
  24975. else <code>false</code>.]]>
  24976. </doc>
  24977. </method>
  24978. <method name="getNumMapTasks" return="int"
  24979. abstract="false" native="false" synchronized="false"
  24980. static="false" final="false" visibility="public"
  24981. deprecated="not deprecated">
  24982. <doc>
  24983. <![CDATA[Get configured the number of reduce tasks for this job.
  24984. Defaults to <code>1</code>.
  24985. @return the number of reduce tasks for this job.]]>
  24986. </doc>
  24987. </method>
  24988. <method name="setNumMapTasks"
  24989. abstract="false" native="false" synchronized="false"
  24990. static="false" final="false" visibility="public"
  24991. deprecated="not deprecated">
  24992. <param name="n" type="int"/>
  24993. <doc>
  24994. <![CDATA[Set the number of map tasks for this job.
  24995. <p><i>Note</i>: This is only a <i>hint</i> to the framework. The actual
  24996. number of spawned map tasks depends on the number of {@link InputSplit}s
  24997. generated by the job's {@link InputFormat#getSplits(JobConf, int)}.
  24998. A custom {@link InputFormat} is typically used to accurately control
  24999. the number of map tasks for the job.</p>
  25000. <h4 id="NoOfMaps">How many maps?</h4>
  25001. <p>The number of maps is usually driven by the total size of the inputs
  25002. i.e. total number of blocks of the input files.</p>
  25003. <p>The right level of parallelism for maps seems to be around 10-100 maps
  25004. per-node, although it has been set up to 300 or so for very cpu-light map
  25005. tasks. Task setup takes awhile, so it is best if the maps take at least a
  25006. minute to execute.</p>
  25007. <p>The default behavior of file-based {@link InputFormat}s is to split the
  25008. input into <i>logical</i> {@link InputSplit}s based on the total size, in
  25009. bytes, of input files. However, the {@link FileSystem} blocksize of the
  25010. input files is treated as an upper bound for input splits. A lower bound
  25011. on the split size can be set via
  25012. <a href="{@docRoot}/../hadoop-default.html#mapred.min.split.size">
  25013. mapred.min.split.size</a>.</p>
  25014. <p>Thus, if you expect 10TB of input data and have a blocksize of 128MB,
  25015. you'll end up with 82,000 maps, unless {@link #setNumMapTasks(int)} is
  25016. used to set it even higher.</p>
  25017. @param n the number of map tasks for this job.
  25018. @see InputFormat#getSplits(JobConf, int)
  25019. @see FileInputFormat
  25020. @see FileSystem#getDefaultBlockSize()
  25021. @see FileStatus#getBlockSize()]]>
  25022. </doc>
  25023. </method>
  25024. <method name="getNumReduceTasks" return="int"
  25025. abstract="false" native="false" synchronized="false"
  25026. static="false" final="false" visibility="public"
  25027. deprecated="not deprecated">
  25028. <doc>
  25029. <![CDATA[Get configured the number of reduce tasks for this job. Defaults to
  25030. <code>1</code>.
  25031. @return the number of reduce tasks for this job.]]>
  25032. </doc>
  25033. </method>
  25034. <method name="setNumReduceTasks"
  25035. abstract="false" native="false" synchronized="false"
  25036. static="false" final="false" visibility="public"
  25037. deprecated="not deprecated">
  25038. <param name="n" type="int"/>
  25039. <doc>
  25040. <![CDATA[Set the requisite number of reduce tasks for this job.
  25041. <h4 id="NoOfReduces">How many reduces?</h4>
  25042. <p>The right number of reduces seems to be <code>0.95</code> or
  25043. <code>1.75</code> multiplied by (&lt;<i>no. of nodes</i>&gt; *
  25044. <a href="{@docRoot}/../hadoop-default.html#mapred.tasktracker.reduce.tasks.maximum">
  25045. mapred.tasktracker.reduce.tasks.maximum</a>).
  25046. </p>
  25047. <p>With <code>0.95</code> all of the reduces can launch immediately and
  25048. start transfering map outputs as the maps finish. With <code>1.75</code>
  25049. the faster nodes will finish their first round of reduces and launch a
  25050. second wave of reduces doing a much better job of load balancing.</p>
  25051. <p>Increasing the number of reduces increases the framework overhead, but
  25052. increases load balancing and lowers the cost of failures.</p>
  25053. <p>The scaling factors above are slightly less than whole numbers to
  25054. reserve a few reduce slots in the framework for speculative-tasks, failures
  25055. etc.</p>
  25056. <h4 id="ReducerNone">Reducer NONE</h4>
  25057. <p>It is legal to set the number of reduce-tasks to <code>zero</code>.</p>
  25058. <p>In this case the output of the map-tasks directly go to distributed
  25059. file-system, to the path set by
  25060. {@link FileOutputFormat#setOutputPath(JobConf, Path)}. Also, the
  25061. framework doesn't sort the map-outputs before writing it out to HDFS.</p>
  25062. @param n the number of reduce tasks for this job.]]>
  25063. </doc>
  25064. </method>
  25065. <method name="getMaxMapAttempts" return="int"
  25066. abstract="false" native="false" synchronized="false"
  25067. static="false" final="false" visibility="public"
  25068. deprecated="not deprecated">
  25069. <doc>
  25070. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  25071. map task, as specified by the <code>mapred.map.max.attempts</code>
  25072. property. If this property is not already set, the default is 4 attempts.
  25073. @return the max number of attempts per map task.]]>
  25074. </doc>
  25075. </method>
  25076. <method name="setMaxMapAttempts"
  25077. abstract="false" native="false" synchronized="false"
  25078. static="false" final="false" visibility="public"
  25079. deprecated="not deprecated">
  25080. <param name="n" type="int"/>
  25081. <doc>
  25082. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  25083. map task.
  25084. @param n the number of attempts per map task.]]>
  25085. </doc>
  25086. </method>
  25087. <method name="getMaxReduceAttempts" return="int"
  25088. abstract="false" native="false" synchronized="false"
  25089. static="false" final="false" visibility="public"
  25090. deprecated="not deprecated">
  25091. <doc>
  25092. <![CDATA[Get the configured number of maximum attempts that will be made to run a
  25093. reduce task, as specified by the <code>mapred.reduce.max.attempts</code>
  25094. property. If this property is not already set, the default is 4 attempts.
  25095. @return the max number of attempts per reduce task.]]>
  25096. </doc>
  25097. </method>
  25098. <method name="setMaxReduceAttempts"
  25099. abstract="false" native="false" synchronized="false"
  25100. static="false" final="false" visibility="public"
  25101. deprecated="not deprecated">
  25102. <param name="n" type="int"/>
  25103. <doc>
  25104. <![CDATA[Expert: Set the number of maximum attempts that will be made to run a
  25105. reduce task.
  25106. @param n the number of attempts per reduce task.]]>
  25107. </doc>
  25108. </method>
  25109. <method name="getJobName" return="java.lang.String"
  25110. abstract="false" native="false" synchronized="false"
  25111. static="false" final="false" visibility="public"
  25112. deprecated="not deprecated">
  25113. <doc>
  25114. <![CDATA[Get the user-specified job name. This is only used to identify the
  25115. job to the user.
  25116. @return the job's name, defaulting to "".]]>
  25117. </doc>
  25118. </method>
  25119. <method name="setJobName"
  25120. abstract="false" native="false" synchronized="false"
  25121. static="false" final="false" visibility="public"
  25122. deprecated="not deprecated">
  25123. <param name="name" type="java.lang.String"/>
  25124. <doc>
  25125. <![CDATA[Set the user-specified job name.
  25126. @param name the job's new name.]]>
  25127. </doc>
  25128. </method>
  25129. <method name="getSessionId" return="java.lang.String"
  25130. abstract="false" native="false" synchronized="false"
  25131. static="false" final="false" visibility="public"
  25132. deprecated="not deprecated">
  25133. <doc>
  25134. <![CDATA[Get the user-specified session identifier. The default is the empty string.
  25135. The session identifier is used to tag metric data that is reported to some
  25136. performance metrics system via the org.apache.hadoop.metrics API. The
  25137. session identifier is intended, in particular, for use by Hadoop-On-Demand
  25138. (HOD) which allocates a virtual Hadoop cluster dynamically and transiently.
  25139. HOD will set the session identifier by modifying the hadoop-site.xml file
  25140. before starting the cluster.
  25141. When not running under HOD, this identifer is expected to remain set to
  25142. the empty string.
  25143. @return the session identifier, defaulting to "".]]>
  25144. </doc>
  25145. </method>
  25146. <method name="setSessionId"
  25147. abstract="false" native="false" synchronized="false"
  25148. static="false" final="false" visibility="public"
  25149. deprecated="not deprecated">
  25150. <param name="sessionId" type="java.lang.String"/>
  25151. <doc>
  25152. <![CDATA[Set the user-specified session identifier.
  25153. @param sessionId the new session id.]]>
  25154. </doc>
  25155. </method>
  25156. <method name="setMaxTaskFailuresPerTracker"
  25157. abstract="false" native="false" synchronized="false"
  25158. static="false" final="false" visibility="public"
  25159. deprecated="not deprecated">
  25160. <param name="noFailures" type="int"/>
  25161. <doc>
  25162. <![CDATA[Set the maximum no. of failures of a given job per tasktracker.
  25163. If the no. of task failures exceeds <code>noFailures</code>, the
  25164. tasktracker is <i>blacklisted</i> for this job.
  25165. @param noFailures maximum no. of failures of a given job per tasktracker.]]>
  25166. </doc>
  25167. </method>
  25168. <method name="getMaxTaskFailuresPerTracker" return="int"
  25169. abstract="false" native="false" synchronized="false"
  25170. static="false" final="false" visibility="public"
  25171. deprecated="not deprecated">
  25172. <doc>
  25173. <![CDATA[Expert: Get the maximum no. of failures of a given job per tasktracker.
  25174. If the no. of task failures exceeds this, the tasktracker is
  25175. <i>blacklisted</i> for this job.
  25176. @return the maximum no. of failures of a given job per tasktracker.]]>
  25177. </doc>
  25178. </method>
  25179. <method name="getMaxMapTaskFailuresPercent" return="int"
  25180. abstract="false" native="false" synchronized="false"
  25181. static="false" final="false" visibility="public"
  25182. deprecated="not deprecated">
  25183. <doc>
  25184. <![CDATA[Get the maximum percentage of map tasks that can fail without
  25185. the job being aborted.
  25186. Each map task is executed a minimum of {@link #getMaxMapAttempts()}
  25187. attempts before being declared as <i>failed</i>.
  25188. Defaults to <code>zero</code>, i.e. <i>any</i> failed map-task results in
  25189. the job being declared as {@link JobStatus#FAILED}.
  25190. @return the maximum percentage of map tasks that can fail without
  25191. the job being aborted.]]>
  25192. </doc>
  25193. </method>
  25194. <method name="setMaxMapTaskFailuresPercent"
  25195. abstract="false" native="false" synchronized="false"
  25196. static="false" final="false" visibility="public"
  25197. deprecated="not deprecated">
  25198. <param name="percent" type="int"/>
  25199. <doc>
  25200. <![CDATA[Expert: Set the maximum percentage of map tasks that can fail without the
  25201. job being aborted.
  25202. Each map task is executed a minimum of {@link #getMaxMapAttempts} attempts
  25203. before being declared as <i>failed</i>.
  25204. @param percent the maximum percentage of map tasks that can fail without
  25205. the job being aborted.]]>
  25206. </doc>
  25207. </method>
  25208. <method name="getMaxReduceTaskFailuresPercent" return="int"
  25209. abstract="false" native="false" synchronized="false"
  25210. static="false" final="false" visibility="public"
  25211. deprecated="not deprecated">
  25212. <doc>
  25213. <![CDATA[Get the maximum percentage of reduce tasks that can fail without
  25214. the job being aborted.
  25215. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  25216. attempts before being declared as <i>failed</i>.
  25217. Defaults to <code>zero</code>, i.e. <i>any</i> failed reduce-task results
  25218. in the job being declared as {@link JobStatus#FAILED}.
  25219. @return the maximum percentage of reduce tasks that can fail without
  25220. the job being aborted.]]>
  25221. </doc>
  25222. </method>
  25223. <method name="setMaxReduceTaskFailuresPercent"
  25224. abstract="false" native="false" synchronized="false"
  25225. static="false" final="false" visibility="public"
  25226. deprecated="not deprecated">
  25227. <param name="percent" type="int"/>
  25228. <doc>
  25229. <![CDATA[Set the maximum percentage of reduce tasks that can fail without the job
  25230. being aborted.
  25231. Each reduce task is executed a minimum of {@link #getMaxReduceAttempts()}
  25232. attempts before being declared as <i>failed</i>.
  25233. @param percent the maximum percentage of reduce tasks that can fail without
  25234. the job being aborted.]]>
  25235. </doc>
  25236. </method>
  25237. <method name="setJobPriority"
  25238. abstract="false" native="false" synchronized="false"
  25239. static="false" final="false" visibility="public"
  25240. deprecated="not deprecated">
  25241. <param name="prio" type="org.apache.hadoop.mapred.JobPriority"/>
  25242. <doc>
  25243. <![CDATA[Set {@link JobPriority} for this job.
  25244. @param prio the {@link JobPriority} for this job.]]>
  25245. </doc>
  25246. </method>
  25247. <method name="getJobPriority" return="org.apache.hadoop.mapred.JobPriority"
  25248. abstract="false" native="false" synchronized="false"
  25249. static="false" final="false" visibility="public"
  25250. deprecated="not deprecated">
  25251. <doc>
  25252. <![CDATA[Get the {@link JobPriority} for this job.
  25253. @return the {@link JobPriority} for this job.]]>
  25254. </doc>
  25255. </method>
  25256. <method name="getProfileEnabled" return="boolean"
  25257. abstract="false" native="false" synchronized="false"
  25258. static="false" final="false" visibility="public"
  25259. deprecated="not deprecated">
  25260. <doc>
  25261. <![CDATA[Get whether the task profiling is enabled.
  25262. @return true if some tasks will be profiled]]>
  25263. </doc>
  25264. </method>
  25265. <method name="setProfileEnabled"
  25266. abstract="false" native="false" synchronized="false"
  25267. static="false" final="false" visibility="public"
  25268. deprecated="not deprecated">
  25269. <param name="newValue" type="boolean"/>
  25270. <doc>
  25271. <![CDATA[Set whether the system should collect profiler information for some of
  25272. the tasks in this job? The information is stored in the user log
  25273. directory.
  25274. @param newValue true means it should be gathered]]>
  25275. </doc>
  25276. </method>
  25277. <method name="getProfileParams" return="java.lang.String"
  25278. abstract="false" native="false" synchronized="false"
  25279. static="false" final="false" visibility="public"
  25280. deprecated="not deprecated">
  25281. <doc>
  25282. <![CDATA[Get the profiler configuration arguments.
  25283. The default value for this property is
  25284. "-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s"
  25285. @return the parameters to pass to the task child to configure profiling]]>
  25286. </doc>
  25287. </method>
  25288. <method name="setProfileParams"
  25289. abstract="false" native="false" synchronized="false"
  25290. static="false" final="false" visibility="public"
  25291. deprecated="not deprecated">
  25292. <param name="value" type="java.lang.String"/>
  25293. <doc>
  25294. <![CDATA[Set the profiler configuration arguments. If the string contains a '%s' it
  25295. will be replaced with the name of the profiling output file when the task
  25296. runs.
  25297. This value is passed to the task child JVM on the command line.
  25298. @param value the configuration string]]>
  25299. </doc>
  25300. </method>
  25301. <method name="getProfileTaskRange" return="org.apache.hadoop.conf.Configuration.IntegerRanges"
  25302. abstract="false" native="false" synchronized="false"
  25303. static="false" final="false" visibility="public"
  25304. deprecated="not deprecated">
  25305. <param name="isMap" type="boolean"/>
  25306. <doc>
  25307. <![CDATA[Get the range of maps or reduces to profile.
  25308. @param isMap is the task a map?
  25309. @return the task ranges]]>
  25310. </doc>
  25311. </method>
  25312. <method name="setProfileTaskRange"
  25313. abstract="false" native="false" synchronized="false"
  25314. static="false" final="false" visibility="public"
  25315. deprecated="not deprecated">
  25316. <param name="isMap" type="boolean"/>
  25317. <param name="newValue" type="java.lang.String"/>
  25318. <doc>
  25319. <![CDATA[Set the ranges of maps or reduces to profile. setProfileEnabled(true)
  25320. must also be called.
  25321. @param newValue a set of integer ranges of the map ids]]>
  25322. </doc>
  25323. </method>
  25324. <method name="setMapDebugScript"
  25325. abstract="false" native="false" synchronized="false"
  25326. static="false" final="false" visibility="public"
  25327. deprecated="not deprecated">
  25328. <param name="mDbgScript" type="java.lang.String"/>
  25329. <doc>
  25330. <![CDATA[Set the debug script to run when the map tasks fail.
  25331. <p>The debug script can aid debugging of failed map tasks. The script is
  25332. given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  25333. <p>The debug command, run on the node where the map failed, is:</p>
  25334. <p><pre><blockquote>
  25335. $script $stdout $stderr $syslog $jobconf.
  25336. </blockquote></pre></p>
  25337. <p> The script file is distributed through {@link DistributedCache}
  25338. APIs. The script needs to be symlinked. </p>
  25339. <p>Here is an example on how to submit a script
  25340. <p><blockquote><pre>
  25341. job.setMapDebugScript("./myscript");
  25342. DistributedCache.createSymlink(job);
  25343. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  25344. </pre></blockquote></p>
  25345. @param mDbgScript the script name]]>
  25346. </doc>
  25347. </method>
  25348. <method name="getMapDebugScript" return="java.lang.String"
  25349. abstract="false" native="false" synchronized="false"
  25350. static="false" final="false" visibility="public"
  25351. deprecated="not deprecated">
  25352. <doc>
  25353. <![CDATA[Get the map task's debug script.
  25354. @return the debug Script for the mapred job for failed map tasks.
  25355. @see #setMapDebugScript(String)]]>
  25356. </doc>
  25357. </method>
  25358. <method name="setReduceDebugScript"
  25359. abstract="false" native="false" synchronized="false"
  25360. static="false" final="false" visibility="public"
  25361. deprecated="not deprecated">
  25362. <param name="rDbgScript" type="java.lang.String"/>
  25363. <doc>
  25364. <![CDATA[Set the debug script to run when the reduce tasks fail.
  25365. <p>The debug script can aid debugging of failed reduce tasks. The script
  25366. is given task's stdout, stderr, syslog, jobconf files as arguments.</p>
  25367. <p>The debug command, run on the node where the map failed, is:</p>
  25368. <p><pre><blockquote>
  25369. $script $stdout $stderr $syslog $jobconf.
  25370. </blockquote></pre></p>
  25371. <p> The script file is distributed through {@link DistributedCache}
  25372. APIs. The script file needs to be symlinked </p>
  25373. <p>Here is an example on how to submit a script
  25374. <p><blockquote><pre>
  25375. job.setReduceDebugScript("./myscript");
  25376. DistributedCache.createSymlink(job);
  25377. DistributedCache.addCacheFile("/debug/scripts/myscript#myscript");
  25378. </pre></blockquote></p>
  25379. @param rDbgScript the script name]]>
  25380. </doc>
  25381. </method>
  25382. <method name="getReduceDebugScript" return="java.lang.String"
  25383. abstract="false" native="false" synchronized="false"
  25384. static="false" final="false" visibility="public"
  25385. deprecated="not deprecated">
  25386. <doc>
  25387. <![CDATA[Get the reduce task's debug Script
  25388. @return the debug script for the mapred job for failed reduce tasks.
  25389. @see #setReduceDebugScript(String)]]>
  25390. </doc>
  25391. </method>
  25392. <method name="getJobEndNotificationURI" return="java.lang.String"
  25393. abstract="false" native="false" synchronized="false"
  25394. static="false" final="false" visibility="public"
  25395. deprecated="not deprecated">
  25396. <doc>
  25397. <![CDATA[Get the uri to be invoked in-order to send a notification after the job
  25398. has completed (success/failure).
  25399. @return the job end notification uri, <code>null</code> if it hasn't
  25400. been set.
  25401. @see #setJobEndNotificationURI(String)]]>
  25402. </doc>
  25403. </method>
  25404. <method name="setJobEndNotificationURI"
  25405. abstract="false" native="false" synchronized="false"
  25406. static="false" final="false" visibility="public"
  25407. deprecated="not deprecated">
  25408. <param name="uri" type="java.lang.String"/>
  25409. <doc>
  25410. <![CDATA[Set the uri to be invoked in-order to send a notification after the job
  25411. has completed (success/failure).
  25412. <p>The uri can contain 2 special parameters: <tt>$jobId</tt> and
  25413. <tt>$jobStatus</tt>. Those, if present, are replaced by the job's
  25414. identifier and completion-status respectively.</p>
  25415. <p>This is typically used by application-writers to implement chaining of
  25416. Map-Reduce jobs in an <i>asynchronous manner</i>.</p>
  25417. @param uri the job end notification uri
  25418. @see JobStatus
  25419. @see <a href="{@docRoot}/org/apache/hadoop/mapred/JobClient.html#JobCompletionAndChaining">Job Completion and Chaining</a>]]>
  25420. </doc>
  25421. </method>
  25422. <method name="getJobLocalDir" return="java.lang.String"
  25423. abstract="false" native="false" synchronized="false"
  25424. static="false" final="false" visibility="public"
  25425. deprecated="not deprecated">
  25426. <doc>
  25427. <![CDATA[Get job-specific shared directory for use as scratch space
  25428. <p>
  25429. When a job starts, a shared directory is created at location
  25430. <code>
  25431. ${mapred.local.dir}/taskTracker/jobcache/$jobid/work/ </code>.
  25432. This directory is exposed to the users through
  25433. <code>job.local.dir </code>.
  25434. So, the tasks can use this space
  25435. as scratch space and share files among them. </p>
  25436. This value is available as System property also.
  25437. @return The localized job specific shared directory]]>
  25438. </doc>
  25439. </method>
  25440. <doc>
  25441. <![CDATA[A map/reduce job configuration.
  25442. <p><code>JobConf</code> is the primary interface for a user to describe a
  25443. map-reduce job to the Hadoop framework for execution. The framework tries to
  25444. faithfully execute the job as-is described by <code>JobConf</code>, however:
  25445. <ol>
  25446. <li>
  25447. Some configuration parameters might have been marked as
  25448. <a href="{@docRoot}/org/apache/hadoop/conf/Configuration.html#FinalParams">
  25449. final</a> by administrators and hence cannot be altered.
  25450. </li>
  25451. <li>
  25452. While some job parameters are straight-forward to set
  25453. (e.g. {@link #setNumReduceTasks(int)}), some parameters interact subtly
  25454. rest of the framework and/or job-configuration and is relatively more
  25455. complex for the user to control finely (e.g. {@link #setNumMapTasks(int)}).
  25456. </li>
  25457. </ol></p>
  25458. <p><code>JobConf</code> typically specifies the {@link Mapper}, combiner
  25459. (if any), {@link Partitioner}, {@link Reducer}, {@link InputFormat} and
  25460. {@link OutputFormat} implementations to be used etc.
  25461. <p>Optionally <code>JobConf</code> is used to specify other advanced facets
  25462. of the job such as <code>Comparator</code>s to be used, files to be put in
  25463. the {@link DistributedCache}, whether or not intermediate and/or job outputs
  25464. are to be compressed (and how), debugability via user-provided scripts
  25465. ( {@link #setMapDebugScript(String)}/{@link #setReduceDebugScript(String)}),
  25466. for doing post-processing on task logs, task's stdout, stderr, syslog.
  25467. and etc.</p>
  25468. <p>Here is an example on how to configure a job via <code>JobConf</code>:</p>
  25469. <p><blockquote><pre>
  25470. // Create a new JobConf
  25471. JobConf job = new JobConf(new Configuration(), MyJob.class);
  25472. // Specify various job-specific parameters
  25473. job.setJobName("myjob");
  25474. FileInputFormat.setInputPaths(job, new Path("in"));
  25475. FileOutputFormat.setOutputPath(job, new Path("out"));
  25476. job.setMapperClass(MyJob.MyMapper.class);
  25477. job.setCombinerClass(MyJob.MyReducer.class);
  25478. job.setReducerClass(MyJob.MyReducer.class);
  25479. job.setInputFormat(SequenceFileInputFormat.class);
  25480. job.setOutputFormat(SequenceFileOutputFormat.class);
  25481. </pre></blockquote></p>
  25482. @see JobClient
  25483. @see ClusterStatus
  25484. @see Tool
  25485. @see DistributedCache]]>
  25486. </doc>
  25487. </class>
  25488. <!-- end class org.apache.hadoop.mapred.JobConf -->
  25489. <!-- start interface org.apache.hadoop.mapred.JobConfigurable -->
  25490. <interface name="JobConfigurable" abstract="true"
  25491. static="false" final="false" visibility="public"
  25492. deprecated="not deprecated">
  25493. <method name="configure"
  25494. abstract="false" native="false" synchronized="false"
  25495. static="false" final="false" visibility="public"
  25496. deprecated="not deprecated">
  25497. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  25498. <doc>
  25499. <![CDATA[Initializes a new instance from a {@link JobConf}.
  25500. @param job the configuration]]>
  25501. </doc>
  25502. </method>
  25503. <doc>
  25504. <![CDATA[That what may be configured.]]>
  25505. </doc>
  25506. </interface>
  25507. <!-- end interface org.apache.hadoop.mapred.JobConfigurable -->
  25508. <!-- start class org.apache.hadoop.mapred.JobEndNotifier -->
  25509. <class name="JobEndNotifier" extends="java.lang.Object"
  25510. abstract="false"
  25511. static="false" final="false" visibility="public"
  25512. deprecated="not deprecated">
  25513. <constructor name="JobEndNotifier"
  25514. static="false" final="false" visibility="public"
  25515. deprecated="not deprecated">
  25516. </constructor>
  25517. <method name="startNotifier"
  25518. abstract="false" native="false" synchronized="false"
  25519. static="true" final="false" visibility="public"
  25520. deprecated="not deprecated">
  25521. </method>
  25522. <method name="stopNotifier"
  25523. abstract="false" native="false" synchronized="false"
  25524. static="true" final="false" visibility="public"
  25525. deprecated="not deprecated">
  25526. </method>
  25527. <method name="registerNotification"
  25528. abstract="false" native="false" synchronized="false"
  25529. static="true" final="false" visibility="public"
  25530. deprecated="not deprecated">
  25531. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  25532. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  25533. </method>
  25534. <method name="localRunnerNotification"
  25535. abstract="false" native="false" synchronized="false"
  25536. static="true" final="false" visibility="public"
  25537. deprecated="not deprecated">
  25538. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25539. <param name="status" type="org.apache.hadoop.mapred.JobStatus"/>
  25540. </method>
  25541. </class>
  25542. <!-- end class org.apache.hadoop.mapred.JobEndNotifier -->
  25543. <!-- start class org.apache.hadoop.mapred.JobHistory -->
  25544. <class name="JobHistory" extends="java.lang.Object"
  25545. abstract="false"
  25546. static="false" final="false" visibility="public"
  25547. deprecated="not deprecated">
  25548. <constructor name="JobHistory"
  25549. static="false" final="false" visibility="public"
  25550. deprecated="not deprecated">
  25551. </constructor>
  25552. <method name="init" return="boolean"
  25553. abstract="false" native="false" synchronized="false"
  25554. static="true" final="false" visibility="public"
  25555. deprecated="not deprecated">
  25556. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  25557. <param name="hostname" type="java.lang.String"/>
  25558. <doc>
  25559. <![CDATA[Initialize JobHistory files.
  25560. @param conf Jobconf of the job tracker.
  25561. @param hostname jobtracker's hostname
  25562. @return true if intialized properly
  25563. false otherwise]]>
  25564. </doc>
  25565. </method>
  25566. <method name="parseHistoryFromFS"
  25567. abstract="false" native="false" synchronized="false"
  25568. static="true" final="false" visibility="public"
  25569. deprecated="not deprecated">
  25570. <param name="path" type="java.lang.String"/>
  25571. <param name="l" type="org.apache.hadoop.mapred.JobHistory.Listener"/>
  25572. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  25573. <exception name="IOException" type="java.io.IOException"/>
  25574. <doc>
  25575. <![CDATA[Parses history file and invokes Listener.handle() for
  25576. each line of history. It can be used for looking through history
  25577. files for specific items without having to keep whole history in memory.
  25578. @param path path to history file
  25579. @param l Listener for history events
  25580. @param fs FileSystem where history file is present
  25581. @throws IOException]]>
  25582. </doc>
  25583. </method>
  25584. <method name="isDisableHistory" return="boolean"
  25585. abstract="false" native="false" synchronized="false"
  25586. static="true" final="false" visibility="public"
  25587. deprecated="not deprecated">
  25588. <doc>
  25589. <![CDATA[Returns history disable status. by default history is enabled so this
  25590. method returns false.
  25591. @return true if history logging is disabled, false otherwise.]]>
  25592. </doc>
  25593. </method>
  25594. <method name="setDisableHistory"
  25595. abstract="false" native="false" synchronized="false"
  25596. static="true" final="false" visibility="public"
  25597. deprecated="not deprecated">
  25598. <param name="disableHistory" type="boolean"/>
  25599. <doc>
  25600. <![CDATA[Enable/disable history logging. Default value is false, so history
  25601. is enabled by default.
  25602. @param disableHistory true if history should be disabled, false otherwise.]]>
  25603. </doc>
  25604. </method>
  25605. <field name="JOBTRACKER_START_TIME" type="java.lang.String"
  25606. transient="false" volatile="false"
  25607. static="true" final="true" visibility="public"
  25608. deprecated="not deprecated">
  25609. </field>
  25610. <doc>
  25611. <![CDATA[Provides methods for writing to and reading from job history.
  25612. Job History works in an append mode, JobHistory and its inner classes provide methods
  25613. to log job events.
  25614. JobHistory is split into multiple files, format of each file is plain text where each line
  25615. is of the format [type (key=value)*], where type identifies the type of the record.
  25616. Type maps to UID of one of the inner classes of this class.
  25617. Job history is maintained in a master index which contains star/stop times of all jobs with
  25618. a few other job level properties. Apart from this each job's history is maintained in a seperate history
  25619. file. name of job history files follows the format jobtrackerId_jobid
  25620. For parsing the job history it supports a listener based interface where each line is parsed
  25621. and passed to listener. The listener can create an object model of history or look for specific
  25622. events and discard rest of the history.]]>
  25623. </doc>
  25624. </class>
  25625. <!-- end class org.apache.hadoop.mapred.JobHistory -->
  25626. <!-- start class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  25627. <class name="JobHistory.HistoryCleaner" extends="java.lang.Object"
  25628. abstract="false"
  25629. static="true" final="false" visibility="public"
  25630. deprecated="not deprecated">
  25631. <implements name="java.lang.Runnable"/>
  25632. <constructor name="JobHistory.HistoryCleaner"
  25633. static="false" final="false" visibility="public"
  25634. deprecated="not deprecated">
  25635. </constructor>
  25636. <method name="run"
  25637. abstract="false" native="false" synchronized="false"
  25638. static="false" final="false" visibility="public"
  25639. deprecated="not deprecated">
  25640. <doc>
  25641. <![CDATA[Cleans up history data.]]>
  25642. </doc>
  25643. </method>
  25644. <doc>
  25645. <![CDATA[Delete history files older than one month. Update master index and remove all
  25646. jobs older than one month. Also if a job tracker has no jobs in last one month
  25647. remove reference to the job tracker.]]>
  25648. </doc>
  25649. </class>
  25650. <!-- end class org.apache.hadoop.mapred.JobHistory.HistoryCleaner -->
  25651. <!-- start class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  25652. <class name="JobHistory.JobInfo" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  25653. abstract="false"
  25654. static="true" final="false" visibility="public"
  25655. deprecated="not deprecated">
  25656. <constructor name="JobHistory.JobInfo" type="java.lang.String"
  25657. static="false" final="false" visibility="public"
  25658. deprecated="not deprecated">
  25659. <doc>
  25660. <![CDATA[Create new JobInfo]]>
  25661. </doc>
  25662. </constructor>
  25663. <method name="getAllTasks" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.Task&gt;"
  25664. abstract="false" native="false" synchronized="false"
  25665. static="false" final="false" visibility="public"
  25666. deprecated="not deprecated">
  25667. <doc>
  25668. <![CDATA[Returns all map and reduce tasks <taskid-Task>.]]>
  25669. </doc>
  25670. </method>
  25671. <method name="getLocalJobFilePath" return="java.lang.String"
  25672. abstract="false" native="false" synchronized="false"
  25673. static="true" final="false" visibility="public"
  25674. deprecated="not deprecated">
  25675. <param name="jobid" type="java.lang.String"/>
  25676. </method>
  25677. <method name="getLocalJobFilePath" return="java.lang.String"
  25678. abstract="false" native="false" synchronized="false"
  25679. static="true" final="false" visibility="public"
  25680. deprecated="not deprecated">
  25681. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  25682. <doc>
  25683. <![CDATA[Get the path of the locally stored job file
  25684. @param jobId id of the job
  25685. @return the path of the job file on the local file system]]>
  25686. </doc>
  25687. </method>
  25688. <method name="encodeJobHistoryFilePath" return="java.lang.String"
  25689. abstract="false" native="false" synchronized="false"
  25690. static="true" final="false" visibility="public"
  25691. deprecated="not deprecated">
  25692. <param name="logFile" type="java.lang.String"/>
  25693. <exception name="IOException" type="java.io.IOException"/>
  25694. <doc>
  25695. <![CDATA[Helper function to encode the URL of the path of the job-history
  25696. log file.
  25697. @param logFile path of the job-history file
  25698. @return URL encoded path
  25699. @throws IOException]]>
  25700. </doc>
  25701. </method>
  25702. <method name="encodeJobHistoryFileName" return="java.lang.String"
  25703. abstract="false" native="false" synchronized="false"
  25704. static="true" final="false" visibility="public"
  25705. deprecated="not deprecated">
  25706. <param name="logFileName" type="java.lang.String"/>
  25707. <exception name="IOException" type="java.io.IOException"/>
  25708. <doc>
  25709. <![CDATA[Helper function to encode the URL of the filename of the job-history
  25710. log file.
  25711. @param logFileName file name of the job-history file
  25712. @return URL encoded filename
  25713. @throws IOException]]>
  25714. </doc>
  25715. </method>
  25716. <method name="decodeJobHistoryFileName" return="java.lang.String"
  25717. abstract="false" native="false" synchronized="false"
  25718. static="true" final="false" visibility="public"
  25719. deprecated="not deprecated">
  25720. <param name="logFileName" type="java.lang.String"/>
  25721. <exception name="IOException" type="java.io.IOException"/>
  25722. <doc>
  25723. <![CDATA[Helper function to decode the URL of the filename of the job-history
  25724. log file.
  25725. @param logFileName file name of the job-history file
  25726. @return URL decoded filename
  25727. @throws IOException]]>
  25728. </doc>
  25729. </method>
  25730. <method name="logSubmitted"
  25731. abstract="false" native="false" synchronized="false"
  25732. static="true" final="false" visibility="public"
  25733. deprecated="not deprecated">
  25734. <param name="jobid" type="java.lang.String"/>
  25735. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  25736. <param name="jobConfPath" type="java.lang.String"/>
  25737. <param name="submitTime" type="long"/>
  25738. <exception name="IOException" type="java.io.IOException"/>
  25739. </method>
  25740. <method name="logSubmitted"
  25741. abstract="false" native="false" synchronized="false"
  25742. static="true" final="false" visibility="public"
  25743. deprecated="not deprecated">
  25744. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  25745. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  25746. <param name="jobConfPath" type="java.lang.String"/>
  25747. <param name="submitTime" type="long"/>
  25748. <exception name="IOException" type="java.io.IOException"/>
  25749. <doc>
  25750. <![CDATA[Log job submitted event to history. Creates a new file in history
  25751. for the job. if history file creation fails, it disables history
  25752. for all other events.
  25753. @param jobId job id assigned by job tracker.
  25754. @param jobConf job conf of the job
  25755. @param jobConfPath path to job conf xml file in HDFS.
  25756. @param submitTime time when job tracker received the job
  25757. @throws IOException]]>
  25758. </doc>
  25759. </method>
  25760. <method name="logStarted"
  25761. abstract="false" native="false" synchronized="false"
  25762. static="true" final="false" visibility="public"
  25763. deprecated="not deprecated">
  25764. <param name="jobid" type="java.lang.String"/>
  25765. <param name="startTime" type="long"/>
  25766. <param name="totalMaps" type="int"/>
  25767. <param name="totalReduces" type="int"/>
  25768. </method>
  25769. <method name="logStarted"
  25770. abstract="false" native="false" synchronized="false"
  25771. static="true" final="false" visibility="public"
  25772. deprecated="not deprecated">
  25773. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  25774. <param name="startTime" type="long"/>
  25775. <param name="totalMaps" type="int"/>
  25776. <param name="totalReduces" type="int"/>
  25777. <doc>
  25778. <![CDATA[Logs launch time of job.
  25779. @param jobId job id, assigned by jobtracker.
  25780. @param startTime start time of job.
  25781. @param totalMaps total maps assigned by jobtracker.
  25782. @param totalReduces total reduces.]]>
  25783. </doc>
  25784. </method>
  25785. <method name="logFinished"
  25786. abstract="false" native="false" synchronized="false"
  25787. static="true" final="false" visibility="public"
  25788. deprecated="not deprecated">
  25789. <param name="jobId" type="java.lang.String"/>
  25790. <param name="finishTime" type="long"/>
  25791. <param name="finishedMaps" type="int"/>
  25792. <param name="finishedReduces" type="int"/>
  25793. <param name="failedMaps" type="int"/>
  25794. <param name="failedReduces" type="int"/>
  25795. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  25796. </method>
  25797. <method name="logFinished"
  25798. abstract="false" native="false" synchronized="false"
  25799. static="true" final="false" visibility="public"
  25800. deprecated="not deprecated">
  25801. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  25802. <param name="finishTime" type="long"/>
  25803. <param name="finishedMaps" type="int"/>
  25804. <param name="finishedReduces" type="int"/>
  25805. <param name="failedMaps" type="int"/>
  25806. <param name="failedReduces" type="int"/>
  25807. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  25808. <doc>
  25809. <![CDATA[Log job finished. closes the job file in history.
  25810. @param jobId job id, assigned by jobtracker.
  25811. @param finishTime finish time of job in ms.
  25812. @param finishedMaps no of maps successfully finished.
  25813. @param finishedReduces no of reduces finished sucessfully.
  25814. @param failedMaps no of failed map tasks.
  25815. @param failedReduces no of failed reduce tasks.
  25816. @param counters the counters from the job]]>
  25817. </doc>
  25818. </method>
  25819. <method name="logFailed"
  25820. abstract="false" native="false" synchronized="false"
  25821. static="true" final="false" visibility="public"
  25822. deprecated="not deprecated">
  25823. <param name="jobid" type="java.lang.String"/>
  25824. <param name="timestamp" type="long"/>
  25825. <param name="finishedMaps" type="int"/>
  25826. <param name="finishedReduces" type="int"/>
  25827. </method>
  25828. <method name="logFailed"
  25829. abstract="false" native="false" synchronized="false"
  25830. static="true" final="false" visibility="public"
  25831. deprecated="not deprecated">
  25832. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  25833. <param name="timestamp" type="long"/>
  25834. <param name="finishedMaps" type="int"/>
  25835. <param name="finishedReduces" type="int"/>
  25836. <doc>
  25837. <![CDATA[Logs job failed event. Closes the job history log file.
  25838. @param jobid job id
  25839. @param timestamp time when job failure was detected in ms.
  25840. @param finishedMaps no finished map tasks.
  25841. @param finishedReduces no of finished reduce tasks.]]>
  25842. </doc>
  25843. </method>
  25844. <doc>
  25845. <![CDATA[Helper class for logging or reading back events related to job start, finish or failure.]]>
  25846. </doc>
  25847. </class>
  25848. <!-- end class org.apache.hadoop.mapred.JobHistory.JobInfo -->
  25849. <!-- start class org.apache.hadoop.mapred.JobHistory.Keys -->
  25850. <class name="JobHistory.Keys" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Keys&gt;"
  25851. abstract="false"
  25852. static="true" final="true" visibility="public"
  25853. deprecated="not deprecated">
  25854. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Keys[]"
  25855. abstract="false" native="false" synchronized="false"
  25856. static="true" final="false" visibility="public"
  25857. deprecated="not deprecated">
  25858. </method>
  25859. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Keys"
  25860. abstract="false" native="false" synchronized="false"
  25861. static="true" final="false" visibility="public"
  25862. deprecated="not deprecated">
  25863. <param name="name" type="java.lang.String"/>
  25864. </method>
  25865. <doc>
  25866. <![CDATA[Job history files contain key="value" pairs, where keys belong to this enum.
  25867. It acts as a global namespace for all keys.]]>
  25868. </doc>
  25869. </class>
  25870. <!-- end class org.apache.hadoop.mapred.JobHistory.Keys -->
  25871. <!-- start interface org.apache.hadoop.mapred.JobHistory.Listener -->
  25872. <interface name="JobHistory.Listener" abstract="true"
  25873. static="true" final="false" visibility="public"
  25874. deprecated="not deprecated">
  25875. <method name="handle"
  25876. abstract="false" native="false" synchronized="false"
  25877. static="false" final="false" visibility="public"
  25878. deprecated="not deprecated">
  25879. <param name="recType" type="org.apache.hadoop.mapred.JobHistory.RecordTypes"/>
  25880. <param name="values" type="java.util.Map&lt;org.apache.hadoop.mapred.JobHistory.Keys, java.lang.String&gt;"/>
  25881. <exception name="IOException" type="java.io.IOException"/>
  25882. <doc>
  25883. <![CDATA[Callback method for history parser.
  25884. @param recType type of record, which is the first entry in the line.
  25885. @param values a map of key-value pairs as thry appear in history.
  25886. @throws IOException]]>
  25887. </doc>
  25888. </method>
  25889. <doc>
  25890. <![CDATA[Callback interface for reading back log events from JobHistory. This interface
  25891. should be implemented and passed to JobHistory.parseHistory()]]>
  25892. </doc>
  25893. </interface>
  25894. <!-- end interface org.apache.hadoop.mapred.JobHistory.Listener -->
  25895. <!-- start class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  25896. <class name="JobHistory.MapAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  25897. abstract="false"
  25898. static="true" final="false" visibility="public"
  25899. deprecated="not deprecated">
  25900. <constructor name="JobHistory.MapAttempt"
  25901. static="false" final="false" visibility="public"
  25902. deprecated="not deprecated">
  25903. </constructor>
  25904. <method name="logStarted"
  25905. abstract="false" native="false" synchronized="false"
  25906. static="true" final="false" visibility="public"
  25907. deprecated="not deprecated">
  25908. <param name="jobid" type="java.lang.String"/>
  25909. <param name="taskid" type="java.lang.String"/>
  25910. <param name="attemptid" type="java.lang.String"/>
  25911. <param name="startTime" type="long"/>
  25912. <param name="hostName" type="java.lang.String"/>
  25913. </method>
  25914. <method name="logStarted"
  25915. abstract="false" native="false" synchronized="false"
  25916. static="true" final="false" visibility="public"
  25917. deprecated="not deprecated">
  25918. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  25919. <param name="startTime" type="long"/>
  25920. <param name="hostName" type="java.lang.String"/>
  25921. <doc>
  25922. <![CDATA[Log start time of this map task attempt.
  25923. @param taskAttemptId task attempt id
  25924. @param startTime start time of task attempt as reported by task tracker.
  25925. @param hostName host name of the task attempt.]]>
  25926. </doc>
  25927. </method>
  25928. <method name="logFinished"
  25929. abstract="false" native="false" synchronized="false"
  25930. static="true" final="false" visibility="public"
  25931. deprecated="not deprecated">
  25932. <param name="jobid" type="java.lang.String"/>
  25933. <param name="taskid" type="java.lang.String"/>
  25934. <param name="attemptid" type="java.lang.String"/>
  25935. <param name="time" type="long"/>
  25936. <param name="host" type="java.lang.String"/>
  25937. </method>
  25938. <method name="logFinished"
  25939. abstract="false" native="false" synchronized="false"
  25940. static="true" final="false" visibility="public"
  25941. deprecated="not deprecated">
  25942. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  25943. <param name="finishTime" type="long"/>
  25944. <param name="hostName" type="java.lang.String"/>
  25945. <doc>
  25946. <![CDATA[Log finish time of map task attempt.
  25947. @param taskAttemptId task attempt id
  25948. @param finishTime finish time
  25949. @param hostName host name]]>
  25950. </doc>
  25951. </method>
  25952. <method name="logFailed"
  25953. abstract="false" native="false" synchronized="false"
  25954. static="true" final="false" visibility="public"
  25955. deprecated="not deprecated">
  25956. <param name="jobid" type="java.lang.String"/>
  25957. <param name="taskid" type="java.lang.String"/>
  25958. <param name="attemptid" type="java.lang.String"/>
  25959. <param name="timestamp" type="long"/>
  25960. <param name="host" type="java.lang.String"/>
  25961. <param name="err" type="java.lang.String"/>
  25962. </method>
  25963. <method name="logFailed"
  25964. abstract="false" native="false" synchronized="false"
  25965. static="true" final="false" visibility="public"
  25966. deprecated="not deprecated">
  25967. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  25968. <param name="timestamp" type="long"/>
  25969. <param name="hostName" type="java.lang.String"/>
  25970. <param name="error" type="java.lang.String"/>
  25971. <doc>
  25972. <![CDATA[Log task attempt failed event.
  25973. @param taskAttemptId task attempt id
  25974. @param timestamp timestamp
  25975. @param hostName hostname of this task attempt.
  25976. @param error error message if any for this task attempt.]]>
  25977. </doc>
  25978. </method>
  25979. <method name="logKilled"
  25980. abstract="false" native="false" synchronized="false"
  25981. static="true" final="false" visibility="public"
  25982. deprecated="not deprecated">
  25983. <param name="jobid" type="java.lang.String"/>
  25984. <param name="taskid" type="java.lang.String"/>
  25985. <param name="attemptid" type="java.lang.String"/>
  25986. <param name="timestamp" type="long"/>
  25987. <param name="hostname" type="java.lang.String"/>
  25988. <param name="error" type="java.lang.String"/>
  25989. </method>
  25990. <method name="logKilled"
  25991. abstract="false" native="false" synchronized="false"
  25992. static="true" final="false" visibility="public"
  25993. deprecated="not deprecated">
  25994. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  25995. <param name="timestamp" type="long"/>
  25996. <param name="hostName" type="java.lang.String"/>
  25997. <param name="error" type="java.lang.String"/>
  25998. <doc>
  25999. <![CDATA[Log task attempt killed event.
  26000. @param taskAttemptId task attempt id
  26001. @param timestamp timestamp
  26002. @param hostName hostname of this task attempt.
  26003. @param error error message if any for this task attempt.]]>
  26004. </doc>
  26005. </method>
  26006. <doc>
  26007. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  26008. a Map Attempt on a node.]]>
  26009. </doc>
  26010. </class>
  26011. <!-- end class org.apache.hadoop.mapred.JobHistory.MapAttempt -->
  26012. <!-- start class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  26013. <class name="JobHistory.RecordTypes" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.RecordTypes&gt;"
  26014. abstract="false"
  26015. static="true" final="true" visibility="public"
  26016. deprecated="not deprecated">
  26017. <method name="values" return="org.apache.hadoop.mapred.JobHistory.RecordTypes[]"
  26018. abstract="false" native="false" synchronized="false"
  26019. static="true" final="false" visibility="public"
  26020. deprecated="not deprecated">
  26021. </method>
  26022. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.RecordTypes"
  26023. abstract="false" native="false" synchronized="false"
  26024. static="true" final="false" visibility="public"
  26025. deprecated="not deprecated">
  26026. <param name="name" type="java.lang.String"/>
  26027. </method>
  26028. <doc>
  26029. <![CDATA[Record types are identifiers for each line of log in history files.
  26030. A record type appears as the first token in a single line of log.]]>
  26031. </doc>
  26032. </class>
  26033. <!-- end class org.apache.hadoop.mapred.JobHistory.RecordTypes -->
  26034. <!-- start class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  26035. <class name="JobHistory.ReduceAttempt" extends="org.apache.hadoop.mapred.JobHistory.TaskAttempt"
  26036. abstract="false"
  26037. static="true" final="false" visibility="public"
  26038. deprecated="not deprecated">
  26039. <constructor name="JobHistory.ReduceAttempt"
  26040. static="false" final="false" visibility="public"
  26041. deprecated="not deprecated">
  26042. </constructor>
  26043. <method name="logStarted"
  26044. abstract="false" native="false" synchronized="false"
  26045. static="true" final="false" visibility="public"
  26046. deprecated="not deprecated">
  26047. <param name="jobid" type="java.lang.String"/>
  26048. <param name="taskid" type="java.lang.String"/>
  26049. <param name="attemptid" type="java.lang.String"/>
  26050. <param name="startTime" type="long"/>
  26051. <param name="hostName" type="java.lang.String"/>
  26052. </method>
  26053. <method name="logStarted"
  26054. abstract="false" native="false" synchronized="false"
  26055. static="true" final="false" visibility="public"
  26056. deprecated="not deprecated">
  26057. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26058. <param name="startTime" type="long"/>
  26059. <param name="hostName" type="java.lang.String"/>
  26060. <doc>
  26061. <![CDATA[Log start time of Reduce task attempt.
  26062. @param taskAttemptId task attempt id
  26063. @param startTime start time
  26064. @param hostName host name]]>
  26065. </doc>
  26066. </method>
  26067. <method name="logFinished"
  26068. abstract="false" native="false" synchronized="false"
  26069. static="true" final="false" visibility="public"
  26070. deprecated="not deprecated">
  26071. <param name="jobid" type="java.lang.String"/>
  26072. <param name="taskid" type="java.lang.String"/>
  26073. <param name="attemptid" type="java.lang.String"/>
  26074. <param name="shuffleFinished" type="long"/>
  26075. <param name="sortFinished" type="long"/>
  26076. <param name="finishTime" type="long"/>
  26077. <param name="hostname" type="java.lang.String"/>
  26078. </method>
  26079. <method name="logFinished"
  26080. abstract="false" native="false" synchronized="false"
  26081. static="true" final="false" visibility="public"
  26082. deprecated="not deprecated">
  26083. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26084. <param name="shuffleFinished" type="long"/>
  26085. <param name="sortFinished" type="long"/>
  26086. <param name="finishTime" type="long"/>
  26087. <param name="hostName" type="java.lang.String"/>
  26088. <doc>
  26089. <![CDATA[Log finished event of this task.
  26090. @param taskAttemptId task attempt id
  26091. @param shuffleFinished shuffle finish time
  26092. @param sortFinished sort finish time
  26093. @param finishTime finish time of task
  26094. @param hostName host name where task attempt executed]]>
  26095. </doc>
  26096. </method>
  26097. <method name="logFailed"
  26098. abstract="false" native="false" synchronized="false"
  26099. static="true" final="false" visibility="public"
  26100. deprecated="not deprecated">
  26101. <param name="jobid" type="java.lang.String"/>
  26102. <param name="taskid" type="java.lang.String"/>
  26103. <param name="attemptid" type="java.lang.String"/>
  26104. <param name="timestamp" type="long"/>
  26105. <param name="hostname" type="java.lang.String"/>
  26106. <param name="error" type="java.lang.String"/>
  26107. </method>
  26108. <method name="logFailed"
  26109. abstract="false" native="false" synchronized="false"
  26110. static="true" final="false" visibility="public"
  26111. deprecated="not deprecated">
  26112. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26113. <param name="timestamp" type="long"/>
  26114. <param name="hostName" type="java.lang.String"/>
  26115. <param name="error" type="java.lang.String"/>
  26116. <doc>
  26117. <![CDATA[Log failed reduce task attempt.
  26118. @param taskAttemptId task attempt id
  26119. @param timestamp time stamp when task failed
  26120. @param hostName host name of the task attempt.
  26121. @param error error message of the task.]]>
  26122. </doc>
  26123. </method>
  26124. <method name="logKilled"
  26125. abstract="false" native="false" synchronized="false"
  26126. static="true" final="false" visibility="public"
  26127. deprecated="not deprecated">
  26128. <param name="jobid" type="java.lang.String"/>
  26129. <param name="taskid" type="java.lang.String"/>
  26130. <param name="attemptid" type="java.lang.String"/>
  26131. <param name="timestamp" type="long"/>
  26132. <param name="hostname" type="java.lang.String"/>
  26133. <param name="error" type="java.lang.String"/>
  26134. </method>
  26135. <method name="logKilled"
  26136. abstract="false" native="false" synchronized="false"
  26137. static="true" final="false" visibility="public"
  26138. deprecated="not deprecated">
  26139. <param name="taskAttemptId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  26140. <param name="timestamp" type="long"/>
  26141. <param name="hostName" type="java.lang.String"/>
  26142. <param name="error" type="java.lang.String"/>
  26143. <doc>
  26144. <![CDATA[Log killed reduce task attempt.
  26145. @param taskAttemptId task attempt id
  26146. @param timestamp time stamp when task failed
  26147. @param hostName host name of the task attempt.
  26148. @param error error message of the task.]]>
  26149. </doc>
  26150. </method>
  26151. <doc>
  26152. <![CDATA[Helper class for logging or reading back events related to start, finish or failure of
  26153. a Map Attempt on a node.]]>
  26154. </doc>
  26155. </class>
  26156. <!-- end class org.apache.hadoop.mapred.JobHistory.ReduceAttempt -->
  26157. <!-- start class org.apache.hadoop.mapred.JobHistory.Task -->
  26158. <class name="JobHistory.Task" extends="org.apache.hadoop.mapred.JobHistory.KeyValuePair"
  26159. abstract="false"
  26160. static="true" final="false" visibility="public"
  26161. deprecated="not deprecated">
  26162. <constructor name="JobHistory.Task"
  26163. static="false" final="false" visibility="public"
  26164. deprecated="not deprecated">
  26165. </constructor>
  26166. <method name="logStarted"
  26167. abstract="false" native="false" synchronized="false"
  26168. static="true" final="false" visibility="public"
  26169. deprecated="not deprecated">
  26170. <param name="jobId" type="java.lang.String"/>
  26171. <param name="taskId" type="java.lang.String"/>
  26172. <param name="taskType" type="java.lang.String"/>
  26173. <param name="startTime" type="long"/>
  26174. </method>
  26175. <method name="logStarted"
  26176. abstract="false" native="false" synchronized="false"
  26177. static="true" final="false" visibility="public"
  26178. deprecated="not deprecated">
  26179. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  26180. <param name="taskType" type="java.lang.String"/>
  26181. <param name="startTime" type="long"/>
  26182. <param name="splitLocations" type="java.lang.String"/>
  26183. <doc>
  26184. <![CDATA[Log start time of task (TIP).
  26185. @param taskId task id
  26186. @param taskType MAP or REDUCE
  26187. @param startTime startTime of tip.]]>
  26188. </doc>
  26189. </method>
  26190. <method name="logFinished"
  26191. abstract="false" native="false" synchronized="false"
  26192. static="true" final="false" visibility="public"
  26193. deprecated="not deprecated">
  26194. <param name="jobid" type="java.lang.String"/>
  26195. <param name="taskid" type="java.lang.String"/>
  26196. <param name="taskType" type="java.lang.String"/>
  26197. <param name="finishTime" type="long"/>
  26198. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  26199. </method>
  26200. <method name="logFinished"
  26201. abstract="false" native="false" synchronized="false"
  26202. static="true" final="false" visibility="public"
  26203. deprecated="not deprecated">
  26204. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  26205. <param name="taskType" type="java.lang.String"/>
  26206. <param name="finishTime" type="long"/>
  26207. <param name="counters" type="org.apache.hadoop.mapred.Counters"/>
  26208. <doc>
  26209. <![CDATA[Log finish time of task.
  26210. @param taskId task id
  26211. @param taskType MAP or REDUCE
  26212. @param finishTime finish timeof task in ms]]>
  26213. </doc>
  26214. </method>
  26215. <method name="logFailed"
  26216. abstract="false" native="false" synchronized="false"
  26217. static="true" final="false" visibility="public"
  26218. deprecated="not deprecated">
  26219. <param name="jobid" type="java.lang.String"/>
  26220. <param name="taskid" type="java.lang.String"/>
  26221. <param name="taskType" type="java.lang.String"/>
  26222. <param name="time" type="long"/>
  26223. <param name="error" type="java.lang.String"/>
  26224. </method>
  26225. <method name="logFailed"
  26226. abstract="false" native="false" synchronized="false"
  26227. static="true" final="false" visibility="public"
  26228. deprecated="not deprecated">
  26229. <param name="taskId" type="org.apache.hadoop.mapred.TaskID"/>
  26230. <param name="taskType" type="java.lang.String"/>
  26231. <param name="time" type="long"/>
  26232. <param name="error" type="java.lang.String"/>
  26233. <doc>
  26234. <![CDATA[Log job failed event.
  26235. @param taskId task id
  26236. @param taskType MAP or REDUCE.
  26237. @param time timestamp when job failed detected.
  26238. @param error error message for failure.]]>
  26239. </doc>
  26240. </method>
  26241. <method name="getTaskAttempts" return="java.util.Map&lt;java.lang.String, org.apache.hadoop.mapred.JobHistory.TaskAttempt&gt;"
  26242. abstract="false" native="false" synchronized="false"
  26243. static="false" final="false" visibility="public"
  26244. deprecated="not deprecated">
  26245. <doc>
  26246. <![CDATA[Returns all task attempts for this task. <task attempt id - TaskAttempt>]]>
  26247. </doc>
  26248. </method>
  26249. <doc>
  26250. <![CDATA[Helper class for logging or reading back events related to Task's start, finish or failure.
  26251. All events logged by this class are logged in a separate file per job in
  26252. job tracker history. These events map to TIPs in jobtracker.]]>
  26253. </doc>
  26254. </class>
  26255. <!-- end class org.apache.hadoop.mapred.JobHistory.Task -->
  26256. <!-- start class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  26257. <class name="JobHistory.TaskAttempt" extends="org.apache.hadoop.mapred.JobHistory.Task"
  26258. abstract="false"
  26259. static="true" final="false" visibility="public"
  26260. deprecated="not deprecated">
  26261. <constructor name="JobHistory.TaskAttempt"
  26262. static="false" final="false" visibility="public"
  26263. deprecated="not deprecated">
  26264. </constructor>
  26265. <doc>
  26266. <![CDATA[Base class for Map and Reduce TaskAttempts.]]>
  26267. </doc>
  26268. </class>
  26269. <!-- end class org.apache.hadoop.mapred.JobHistory.TaskAttempt -->
  26270. <!-- start class org.apache.hadoop.mapred.JobHistory.Values -->
  26271. <class name="JobHistory.Values" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobHistory.Values&gt;"
  26272. abstract="false"
  26273. static="true" final="true" visibility="public"
  26274. deprecated="not deprecated">
  26275. <method name="values" return="org.apache.hadoop.mapred.JobHistory.Values[]"
  26276. abstract="false" native="false" synchronized="false"
  26277. static="true" final="false" visibility="public"
  26278. deprecated="not deprecated">
  26279. </method>
  26280. <method name="valueOf" return="org.apache.hadoop.mapred.JobHistory.Values"
  26281. abstract="false" native="false" synchronized="false"
  26282. static="true" final="false" visibility="public"
  26283. deprecated="not deprecated">
  26284. <param name="name" type="java.lang.String"/>
  26285. </method>
  26286. <doc>
  26287. <![CDATA[This enum contains some of the values commonly used by history log events.
  26288. since values in history can only be strings - Values.name() is used in
  26289. most places in history file.]]>
  26290. </doc>
  26291. </class>
  26292. <!-- end class org.apache.hadoop.mapred.JobHistory.Values -->
  26293. <!-- start class org.apache.hadoop.mapred.JobID -->
  26294. <class name="JobID" extends="org.apache.hadoop.mapred.ID"
  26295. abstract="false"
  26296. static="false" final="false" visibility="public"
  26297. deprecated="not deprecated">
  26298. <constructor name="JobID" type="java.lang.String, int"
  26299. static="false" final="false" visibility="public"
  26300. deprecated="not deprecated">
  26301. <doc>
  26302. <![CDATA[Constructs a JobID object
  26303. @param jtIdentifier jobTracker identifier
  26304. @param id job number]]>
  26305. </doc>
  26306. </constructor>
  26307. <method name="getJtIdentifier" return="java.lang.String"
  26308. abstract="false" native="false" synchronized="false"
  26309. static="false" final="false" visibility="public"
  26310. deprecated="not deprecated">
  26311. </method>
  26312. <method name="equals" return="boolean"
  26313. abstract="false" native="false" synchronized="false"
  26314. static="false" final="false" visibility="public"
  26315. deprecated="not deprecated">
  26316. <param name="o" type="java.lang.Object"/>
  26317. </method>
  26318. <method name="compareTo" return="int"
  26319. abstract="false" native="false" synchronized="false"
  26320. static="false" final="false" visibility="public"
  26321. deprecated="not deprecated">
  26322. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  26323. <doc>
  26324. <![CDATA[Compare JobIds by first jtIdentifiers, then by job numbers]]>
  26325. </doc>
  26326. </method>
  26327. <method name="toString" return="java.lang.String"
  26328. abstract="false" native="false" synchronized="false"
  26329. static="false" final="false" visibility="public"
  26330. deprecated="not deprecated">
  26331. </method>
  26332. <method name="hashCode" return="int"
  26333. abstract="false" native="false" synchronized="false"
  26334. static="false" final="false" visibility="public"
  26335. deprecated="not deprecated">
  26336. </method>
  26337. <method name="readFields"
  26338. abstract="false" native="false" synchronized="false"
  26339. static="false" final="false" visibility="public"
  26340. deprecated="not deprecated">
  26341. <param name="in" type="java.io.DataInput"/>
  26342. <exception name="IOException" type="java.io.IOException"/>
  26343. </method>
  26344. <method name="write"
  26345. abstract="false" native="false" synchronized="false"
  26346. static="false" final="false" visibility="public"
  26347. deprecated="not deprecated">
  26348. <param name="out" type="java.io.DataOutput"/>
  26349. <exception name="IOException" type="java.io.IOException"/>
  26350. </method>
  26351. <method name="read" return="org.apache.hadoop.mapred.JobID"
  26352. abstract="false" native="false" synchronized="false"
  26353. static="true" final="false" visibility="public"
  26354. deprecated="not deprecated">
  26355. <param name="in" type="java.io.DataInput"/>
  26356. <exception name="IOException" type="java.io.IOException"/>
  26357. </method>
  26358. <method name="forName" return="org.apache.hadoop.mapred.JobID"
  26359. abstract="false" native="false" synchronized="false"
  26360. static="true" final="false" visibility="public"
  26361. deprecated="not deprecated">
  26362. <param name="str" type="java.lang.String"/>
  26363. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  26364. <doc>
  26365. <![CDATA[Construct a JobId object from given string
  26366. @return constructed JobId object or null if the given String is null
  26367. @throws IllegalArgumentException if the given string is malformed]]>
  26368. </doc>
  26369. </method>
  26370. <method name="getJobIDsPattern" return="java.lang.String"
  26371. abstract="false" native="false" synchronized="false"
  26372. static="true" final="false" visibility="public"
  26373. deprecated="not deprecated">
  26374. <param name="jtIdentifier" type="java.lang.String"/>
  26375. <param name="jobId" type="java.lang.Integer"/>
  26376. <doc>
  26377. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  26378. be given null, in which case that part of the regex will be generic.
  26379. For example to obtain a regex matching <i>any job</i>
  26380. run on the jobtracker started at <i>200707121733</i>, we would use :
  26381. <pre>
  26382. JobID.getTaskIDsPattern("200707121733", null);
  26383. </pre>
  26384. which will return :
  26385. <pre> "job_200707121733_[0-9]*" </pre>
  26386. @param jtIdentifier jobTracker identifier, or null
  26387. @param jobId job number, or null
  26388. @return a regex pattern matching JobIDs]]>
  26389. </doc>
  26390. </method>
  26391. <doc>
  26392. <![CDATA[JobID represents the immutable and unique identifier for
  26393. the job. JobID consists of two parts. First part
  26394. represents the jobtracker identifier, so that jobID to jobtracker map
  26395. is defined. For cluster setup this string is the jobtracker
  26396. start time, for local setting, it is "local".
  26397. Second part of the JobID is the job number. <br>
  26398. An example JobID is :
  26399. <code>job_200707121733_0003</code> , which represents the third job
  26400. running at the jobtracker started at <code>200707121733</code>.
  26401. <p>
  26402. Applications should never construct or parse JobID strings, but rather
  26403. use appropriate constructors or {@link #forName(String)} method.
  26404. @see TaskID
  26405. @see TaskAttemptID
  26406. @see JobTracker#getNewJobId()
  26407. @see JobTracker#getStartTime()]]>
  26408. </doc>
  26409. </class>
  26410. <!-- end class org.apache.hadoop.mapred.JobID -->
  26411. <!-- start class org.apache.hadoop.mapred.JobPriority -->
  26412. <class name="JobPriority" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobPriority&gt;"
  26413. abstract="false"
  26414. static="false" final="true" visibility="public"
  26415. deprecated="not deprecated">
  26416. <method name="values" return="org.apache.hadoop.mapred.JobPriority[]"
  26417. abstract="false" native="false" synchronized="false"
  26418. static="true" final="false" visibility="public"
  26419. deprecated="not deprecated">
  26420. </method>
  26421. <method name="valueOf" return="org.apache.hadoop.mapred.JobPriority"
  26422. abstract="false" native="false" synchronized="false"
  26423. static="true" final="false" visibility="public"
  26424. deprecated="not deprecated">
  26425. <param name="name" type="java.lang.String"/>
  26426. </method>
  26427. <doc>
  26428. <![CDATA[Used to describe the priority of the running job.]]>
  26429. </doc>
  26430. </class>
  26431. <!-- end class org.apache.hadoop.mapred.JobPriority -->
  26432. <!-- start class org.apache.hadoop.mapred.JobProfile -->
  26433. <class name="JobProfile" extends="java.lang.Object"
  26434. abstract="false"
  26435. static="false" final="false" visibility="public"
  26436. deprecated="not deprecated">
  26437. <implements name="org.apache.hadoop.io.Writable"/>
  26438. <constructor name="JobProfile"
  26439. static="false" final="false" visibility="public"
  26440. deprecated="not deprecated">
  26441. <doc>
  26442. <![CDATA[Construct an empty {@link JobProfile}.]]>
  26443. </doc>
  26444. </constructor>
  26445. <constructor name="JobProfile" type="java.lang.String, org.apache.hadoop.mapred.JobID, java.lang.String, java.lang.String, java.lang.String"
  26446. static="false" final="false" visibility="public"
  26447. deprecated="not deprecated">
  26448. <doc>
  26449. <![CDATA[Construct a {@link JobProfile} the userid, jobid,
  26450. job config-file, job-details url and job name.
  26451. @param user userid of the person who submitted the job.
  26452. @param jobid id of the job.
  26453. @param jobFile job configuration file.
  26454. @param url link to the web-ui for details of the job.
  26455. @param name user-specified job name.]]>
  26456. </doc>
  26457. </constructor>
  26458. <constructor name="JobProfile" type="java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String"
  26459. static="false" final="false" visibility="public"
  26460. deprecated="use JobProfile(String, JobID, String, String, String) instead">
  26461. <doc>
  26462. <![CDATA[@deprecated use JobProfile(String, JobID, String, String, String) instead]]>
  26463. </doc>
  26464. </constructor>
  26465. <method name="getUser" return="java.lang.String"
  26466. abstract="false" native="false" synchronized="false"
  26467. static="false" final="false" visibility="public"
  26468. deprecated="not deprecated">
  26469. <doc>
  26470. <![CDATA[Get the user id.]]>
  26471. </doc>
  26472. </method>
  26473. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  26474. abstract="false" native="false" synchronized="false"
  26475. static="false" final="false" visibility="public"
  26476. deprecated="not deprecated">
  26477. <doc>
  26478. <![CDATA[Get the job id.]]>
  26479. </doc>
  26480. </method>
  26481. <method name="getJobId" return="java.lang.String"
  26482. abstract="false" native="false" synchronized="false"
  26483. static="false" final="false" visibility="public"
  26484. deprecated="use getJobID() instead">
  26485. <doc>
  26486. <![CDATA[@deprecated use getJobID() instead]]>
  26487. </doc>
  26488. </method>
  26489. <method name="getJobFile" return="java.lang.String"
  26490. abstract="false" native="false" synchronized="false"
  26491. static="false" final="false" visibility="public"
  26492. deprecated="not deprecated">
  26493. <doc>
  26494. <![CDATA[Get the configuration file for the job.]]>
  26495. </doc>
  26496. </method>
  26497. <method name="getURL" return="java.net.URL"
  26498. abstract="false" native="false" synchronized="false"
  26499. static="false" final="false" visibility="public"
  26500. deprecated="not deprecated">
  26501. <doc>
  26502. <![CDATA[Get the link to the web-ui for details of the job.]]>
  26503. </doc>
  26504. </method>
  26505. <method name="getJobName" return="java.lang.String"
  26506. abstract="false" native="false" synchronized="false"
  26507. static="false" final="false" visibility="public"
  26508. deprecated="not deprecated">
  26509. <doc>
  26510. <![CDATA[Get the user-specified job name.]]>
  26511. </doc>
  26512. </method>
  26513. <method name="write"
  26514. abstract="false" native="false" synchronized="false"
  26515. static="false" final="false" visibility="public"
  26516. deprecated="not deprecated">
  26517. <param name="out" type="java.io.DataOutput"/>
  26518. <exception name="IOException" type="java.io.IOException"/>
  26519. </method>
  26520. <method name="readFields"
  26521. abstract="false" native="false" synchronized="false"
  26522. static="false" final="false" visibility="public"
  26523. deprecated="not deprecated">
  26524. <param name="in" type="java.io.DataInput"/>
  26525. <exception name="IOException" type="java.io.IOException"/>
  26526. </method>
  26527. <doc>
  26528. <![CDATA[A JobProfile is a MapReduce primitive. Tracks a job,
  26529. whether living or dead.]]>
  26530. </doc>
  26531. </class>
  26532. <!-- end class org.apache.hadoop.mapred.JobProfile -->
  26533. <!-- start class org.apache.hadoop.mapred.JobShell -->
  26534. <class name="JobShell" extends="org.apache.hadoop.conf.Configured"
  26535. abstract="false"
  26536. static="false" final="false" visibility="public"
  26537. deprecated="not deprecated">
  26538. <implements name="org.apache.hadoop.util.Tool"/>
  26539. <constructor name="JobShell"
  26540. static="false" final="false" visibility="public"
  26541. deprecated="not deprecated">
  26542. </constructor>
  26543. <constructor name="JobShell" type="org.apache.hadoop.conf.Configuration"
  26544. static="false" final="false" visibility="public"
  26545. deprecated="not deprecated">
  26546. </constructor>
  26547. <method name="init"
  26548. abstract="false" native="false" synchronized="false"
  26549. static="false" final="false" visibility="protected"
  26550. deprecated="not deprecated">
  26551. <exception name="IOException" type="java.io.IOException"/>
  26552. </method>
  26553. <method name="run" return="int"
  26554. abstract="false" native="false" synchronized="false"
  26555. static="false" final="false" visibility="public"
  26556. deprecated="not deprecated">
  26557. <param name="argv" type="java.lang.String[]"/>
  26558. <exception name="Exception" type="java.lang.Exception"/>
  26559. <doc>
  26560. <![CDATA[run method from Tool]]>
  26561. </doc>
  26562. </method>
  26563. <method name="main"
  26564. abstract="false" native="false" synchronized="false"
  26565. static="true" final="false" visibility="public"
  26566. deprecated="not deprecated">
  26567. <param name="argv" type="java.lang.String[]"/>
  26568. <exception name="Exception" type="java.lang.Exception"/>
  26569. </method>
  26570. <doc>
  26571. <![CDATA[Provide command line parsing for JobSubmission
  26572. job submission looks like
  26573. hadoop jar -libjars <comma seperated jars> -archives <comma seperated archives>
  26574. -files <comma seperated files> inputjar args]]>
  26575. </doc>
  26576. </class>
  26577. <!-- end class org.apache.hadoop.mapred.JobShell -->
  26578. <!-- start class org.apache.hadoop.mapred.JobStatus -->
  26579. <class name="JobStatus" extends="java.lang.Object"
  26580. abstract="false"
  26581. static="false" final="false" visibility="public"
  26582. deprecated="not deprecated">
  26583. <implements name="org.apache.hadoop.io.Writable"/>
  26584. <constructor name="JobStatus"
  26585. static="false" final="false" visibility="public"
  26586. deprecated="not deprecated">
  26587. </constructor>
  26588. <constructor name="JobStatus" type="java.lang.String, float, float, int"
  26589. static="false" final="false" visibility="public"
  26590. deprecated="not deprecated">
  26591. </constructor>
  26592. <constructor name="JobStatus" type="org.apache.hadoop.mapred.JobID, float, float, int"
  26593. static="false" final="false" visibility="public"
  26594. deprecated="not deprecated">
  26595. <doc>
  26596. <![CDATA[Create a job status object for a given jobid.
  26597. @param jobid The jobid of the job
  26598. @param mapProgress The progress made on the maps
  26599. @param reduceProgress The progress made on the reduces
  26600. @param runState The current state of the job]]>
  26601. </doc>
  26602. </constructor>
  26603. <method name="getJobId" return="java.lang.String"
  26604. abstract="false" native="false" synchronized="false"
  26605. static="false" final="false" visibility="public"
  26606. deprecated="use getJobID instead">
  26607. <doc>
  26608. <![CDATA[@deprecated use getJobID instead]]>
  26609. </doc>
  26610. </method>
  26611. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  26612. abstract="false" native="false" synchronized="false"
  26613. static="false" final="false" visibility="public"
  26614. deprecated="not deprecated">
  26615. <doc>
  26616. <![CDATA[@return The jobid of the Job]]>
  26617. </doc>
  26618. </method>
  26619. <method name="mapProgress" return="float"
  26620. abstract="false" native="false" synchronized="true"
  26621. static="false" final="false" visibility="public"
  26622. deprecated="not deprecated">
  26623. <doc>
  26624. <![CDATA[@return Percentage of progress in maps]]>
  26625. </doc>
  26626. </method>
  26627. <method name="reduceProgress" return="float"
  26628. abstract="false" native="false" synchronized="true"
  26629. static="false" final="false" visibility="public"
  26630. deprecated="not deprecated">
  26631. <doc>
  26632. <![CDATA[@return Percentage of progress in reduce]]>
  26633. </doc>
  26634. </method>
  26635. <method name="getRunState" return="int"
  26636. abstract="false" native="false" synchronized="true"
  26637. static="false" final="false" visibility="public"
  26638. deprecated="not deprecated">
  26639. <doc>
  26640. <![CDATA[@return running state of the job]]>
  26641. </doc>
  26642. </method>
  26643. <method name="setRunState"
  26644. abstract="false" native="false" synchronized="true"
  26645. static="false" final="false" visibility="public"
  26646. deprecated="not deprecated">
  26647. <param name="state" type="int"/>
  26648. <doc>
  26649. <![CDATA[Change the current run state of the job.]]>
  26650. </doc>
  26651. </method>
  26652. <method name="getStartTime" return="long"
  26653. abstract="false" native="false" synchronized="true"
  26654. static="false" final="false" visibility="public"
  26655. deprecated="not deprecated">
  26656. <doc>
  26657. <![CDATA[@return start time of the job]]>
  26658. </doc>
  26659. </method>
  26660. <method name="getUsername" return="java.lang.String"
  26661. abstract="false" native="false" synchronized="true"
  26662. static="false" final="false" visibility="public"
  26663. deprecated="not deprecated">
  26664. <doc>
  26665. <![CDATA[@return the username of the job]]>
  26666. </doc>
  26667. </method>
  26668. <method name="write"
  26669. abstract="false" native="false" synchronized="false"
  26670. static="false" final="false" visibility="public"
  26671. deprecated="not deprecated">
  26672. <param name="out" type="java.io.DataOutput"/>
  26673. <exception name="IOException" type="java.io.IOException"/>
  26674. </method>
  26675. <method name="readFields"
  26676. abstract="false" native="false" synchronized="false"
  26677. static="false" final="false" visibility="public"
  26678. deprecated="not deprecated">
  26679. <param name="in" type="java.io.DataInput"/>
  26680. <exception name="IOException" type="java.io.IOException"/>
  26681. </method>
  26682. <field name="RUNNING" type="int"
  26683. transient="false" volatile="false"
  26684. static="true" final="true" visibility="public"
  26685. deprecated="not deprecated">
  26686. </field>
  26687. <field name="SUCCEEDED" type="int"
  26688. transient="false" volatile="false"
  26689. static="true" final="true" visibility="public"
  26690. deprecated="not deprecated">
  26691. </field>
  26692. <field name="FAILED" type="int"
  26693. transient="false" volatile="false"
  26694. static="true" final="true" visibility="public"
  26695. deprecated="not deprecated">
  26696. </field>
  26697. <field name="PREP" type="int"
  26698. transient="false" volatile="false"
  26699. static="true" final="true" visibility="public"
  26700. deprecated="not deprecated">
  26701. </field>
  26702. <doc>
  26703. <![CDATA[Describes the current status of a job. This is
  26704. not intended to be a comprehensive piece of data.
  26705. For that, look at JobProfile.]]>
  26706. </doc>
  26707. </class>
  26708. <!-- end class org.apache.hadoop.mapred.JobStatus -->
  26709. <!-- start class org.apache.hadoop.mapred.JobTracker -->
  26710. <class name="JobTracker" extends="java.lang.Object"
  26711. abstract="false"
  26712. static="false" final="false" visibility="public"
  26713. deprecated="not deprecated">
  26714. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  26715. <implements name="org.apache.hadoop.mapred.InterTrackerProtocol"/>
  26716. <implements name="org.apache.hadoop.mapred.JobSubmissionProtocol"/>
  26717. <method name="startTracker" return="org.apache.hadoop.mapred.JobTracker"
  26718. abstract="false" native="false" synchronized="false"
  26719. static="true" final="false" visibility="public"
  26720. deprecated="not deprecated">
  26721. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  26722. <exception name="IOException" type="java.io.IOException"/>
  26723. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  26724. <doc>
  26725. <![CDATA[Start the JobTracker with given configuration.
  26726. The conf will be modified to reflect the actual ports on which
  26727. the JobTracker is up and running if the user passes the port as
  26728. <code>zero</code>.
  26729. @param conf configuration for the JobTracker.
  26730. @throws IOException]]>
  26731. </doc>
  26732. </method>
  26733. <method name="stopTracker"
  26734. abstract="false" native="false" synchronized="false"
  26735. static="false" final="false" visibility="public"
  26736. deprecated="not deprecated">
  26737. <exception name="IOException" type="java.io.IOException"/>
  26738. </method>
  26739. <method name="getProtocolVersion" return="long"
  26740. abstract="false" native="false" synchronized="false"
  26741. static="false" final="false" visibility="public"
  26742. deprecated="not deprecated">
  26743. <param name="protocol" type="java.lang.String"/>
  26744. <param name="clientVersion" type="long"/>
  26745. <exception name="IOException" type="java.io.IOException"/>
  26746. </method>
  26747. <method name="getAddress" return="java.net.InetSocketAddress"
  26748. abstract="false" native="false" synchronized="false"
  26749. static="true" final="false" visibility="public"
  26750. deprecated="not deprecated">
  26751. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  26752. </method>
  26753. <method name="offerService"
  26754. abstract="false" native="false" synchronized="false"
  26755. static="false" final="false" visibility="public"
  26756. deprecated="not deprecated">
  26757. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  26758. <doc>
  26759. <![CDATA[Run forever]]>
  26760. </doc>
  26761. </method>
  26762. <method name="getTotalSubmissions" return="int"
  26763. abstract="false" native="false" synchronized="false"
  26764. static="false" final="false" visibility="public"
  26765. deprecated="not deprecated">
  26766. </method>
  26767. <method name="getJobTrackerMachine" return="java.lang.String"
  26768. abstract="false" native="false" synchronized="false"
  26769. static="false" final="false" visibility="public"
  26770. deprecated="not deprecated">
  26771. </method>
  26772. <method name="getTrackerIdentifier" return="java.lang.String"
  26773. abstract="false" native="false" synchronized="false"
  26774. static="false" final="false" visibility="public"
  26775. deprecated="not deprecated">
  26776. <doc>
  26777. <![CDATA[Get the unique identifier (ie. timestamp) of this job tracker start.
  26778. @return a string with a unique identifier]]>
  26779. </doc>
  26780. </method>
  26781. <method name="getTrackerPort" return="int"
  26782. abstract="false" native="false" synchronized="false"
  26783. static="false" final="false" visibility="public"
  26784. deprecated="not deprecated">
  26785. </method>
  26786. <method name="getInfoPort" return="int"
  26787. abstract="false" native="false" synchronized="false"
  26788. static="false" final="false" visibility="public"
  26789. deprecated="not deprecated">
  26790. </method>
  26791. <method name="getStartTime" return="long"
  26792. abstract="false" native="false" synchronized="false"
  26793. static="false" final="false" visibility="public"
  26794. deprecated="not deprecated">
  26795. </method>
  26796. <method name="runningJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  26797. abstract="false" native="false" synchronized="false"
  26798. static="false" final="false" visibility="public"
  26799. deprecated="not deprecated">
  26800. </method>
  26801. <method name="getRunningJobs" return="java.util.List&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  26802. abstract="false" native="false" synchronized="true"
  26803. static="false" final="false" visibility="public"
  26804. deprecated="not deprecated">
  26805. <doc>
  26806. <![CDATA[Version that is called from a timer thread, and therefore needs to be
  26807. careful to synchronize.]]>
  26808. </doc>
  26809. </method>
  26810. <method name="failedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  26811. abstract="false" native="false" synchronized="false"
  26812. static="false" final="false" visibility="public"
  26813. deprecated="not deprecated">
  26814. </method>
  26815. <method name="completedJobs" return="java.util.Vector&lt;org.apache.hadoop.mapred.JobInProgress&gt;"
  26816. abstract="false" native="false" synchronized="false"
  26817. static="false" final="false" visibility="public"
  26818. deprecated="not deprecated">
  26819. </method>
  26820. <method name="taskTrackers" return="java.util.Collection"
  26821. abstract="false" native="false" synchronized="false"
  26822. static="false" final="false" visibility="public"
  26823. deprecated="not deprecated">
  26824. </method>
  26825. <method name="getTaskTracker" return="org.apache.hadoop.mapred.TaskTrackerStatus"
  26826. abstract="false" native="false" synchronized="false"
  26827. static="false" final="false" visibility="public"
  26828. deprecated="not deprecated">
  26829. <param name="trackerID" type="java.lang.String"/>
  26830. </method>
  26831. <method name="resolveAndAddToTopology" return="org.apache.hadoop.net.Node"
  26832. abstract="false" native="false" synchronized="false"
  26833. static="false" final="false" visibility="public"
  26834. deprecated="not deprecated">
  26835. <param name="name" type="java.lang.String"/>
  26836. </method>
  26837. <method name="getNodesAtMaxLevel" return="java.util.Collection&lt;org.apache.hadoop.net.Node&gt;"
  26838. abstract="false" native="false" synchronized="false"
  26839. static="false" final="false" visibility="public"
  26840. deprecated="not deprecated">
  26841. <doc>
  26842. <![CDATA[Returns a collection of nodes at the max level]]>
  26843. </doc>
  26844. </method>
  26845. <method name="getParentNode" return="org.apache.hadoop.net.Node"
  26846. abstract="false" native="false" synchronized="false"
  26847. static="true" final="false" visibility="public"
  26848. deprecated="not deprecated">
  26849. <param name="node" type="org.apache.hadoop.net.Node"/>
  26850. <param name="level" type="int"/>
  26851. </method>
  26852. <method name="getNode" return="org.apache.hadoop.net.Node"
  26853. abstract="false" native="false" synchronized="false"
  26854. static="false" final="false" visibility="public"
  26855. deprecated="not deprecated">
  26856. <param name="name" type="java.lang.String"/>
  26857. <doc>
  26858. <![CDATA[Return the Node in the network topology that corresponds to the hostname]]>
  26859. </doc>
  26860. </method>
  26861. <method name="getNumTaskCacheLevels" return="int"
  26862. abstract="false" native="false" synchronized="false"
  26863. static="false" final="false" visibility="public"
  26864. deprecated="not deprecated">
  26865. </method>
  26866. <method name="getNumResolvedTaskTrackers" return="int"
  26867. abstract="false" native="false" synchronized="false"
  26868. static="false" final="false" visibility="public"
  26869. deprecated="not deprecated">
  26870. </method>
  26871. <method name="getBuildVersion" return="java.lang.String"
  26872. abstract="false" native="false" synchronized="false"
  26873. static="false" final="false" visibility="public"
  26874. deprecated="not deprecated">
  26875. <exception name="IOException" type="java.io.IOException"/>
  26876. </method>
  26877. <method name="heartbeat" return="org.apache.hadoop.mapred.HeartbeatResponse"
  26878. abstract="false" native="false" synchronized="true"
  26879. static="false" final="false" visibility="public"
  26880. deprecated="not deprecated">
  26881. <param name="status" type="org.apache.hadoop.mapred.TaskTrackerStatus"/>
  26882. <param name="initialContact" type="boolean"/>
  26883. <param name="acceptNewTasks" type="boolean"/>
  26884. <param name="responseId" type="short"/>
  26885. <exception name="IOException" type="java.io.IOException"/>
  26886. <doc>
  26887. <![CDATA[The periodic heartbeat mechanism between the {@link TaskTracker} and
  26888. the {@link JobTracker}.
  26889. The {@link JobTracker} processes the status information sent by the
  26890. {@link TaskTracker} and responds with instructions to start/stop
  26891. tasks or jobs, and also 'reset' instructions during contingencies.]]>
  26892. </doc>
  26893. </method>
  26894. <method name="getFilesystemName" return="java.lang.String"
  26895. abstract="false" native="false" synchronized="true"
  26896. static="false" final="false" visibility="public"
  26897. deprecated="not deprecated">
  26898. <exception name="IOException" type="java.io.IOException"/>
  26899. <doc>
  26900. <![CDATA[Grab the local fs name]]>
  26901. </doc>
  26902. </method>
  26903. <method name="reportTaskTrackerError"
  26904. abstract="false" native="false" synchronized="false"
  26905. static="false" final="false" visibility="public"
  26906. deprecated="not deprecated">
  26907. <param name="taskTracker" type="java.lang.String"/>
  26908. <param name="errorClass" type="java.lang.String"/>
  26909. <param name="errorMessage" type="java.lang.String"/>
  26910. <exception name="IOException" type="java.io.IOException"/>
  26911. </method>
  26912. <method name="getNewJobId" return="org.apache.hadoop.mapred.JobID"
  26913. abstract="false" native="false" synchronized="true"
  26914. static="false" final="false" visibility="public"
  26915. deprecated="not deprecated">
  26916. <exception name="IOException" type="java.io.IOException"/>
  26917. <doc>
  26918. <![CDATA[Allocates a new JobId string.]]>
  26919. </doc>
  26920. </method>
  26921. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  26922. abstract="false" native="false" synchronized="false"
  26923. static="false" final="false" visibility="public"
  26924. deprecated="not deprecated">
  26925. <param name="jobid" type="java.lang.String"/>
  26926. <exception name="IOException" type="java.io.IOException"/>
  26927. </method>
  26928. <method name="submitJob" return="org.apache.hadoop.mapred.JobStatus"
  26929. abstract="false" native="false" synchronized="true"
  26930. static="false" final="false" visibility="public"
  26931. deprecated="not deprecated">
  26932. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  26933. <exception name="IOException" type="java.io.IOException"/>
  26934. <doc>
  26935. <![CDATA[JobTracker.submitJob() kicks off a new job.
  26936. Create a 'JobInProgress' object, which contains both JobProfile
  26937. and JobStatus. Those two sub-objects are sometimes shipped outside
  26938. of the JobTracker. But JobInProgress adds info that's useful for
  26939. the JobTracker alone.
  26940. We add the JIP to the jobInitQueue, which is processed
  26941. asynchronously to handle split-computation and build up
  26942. the right TaskTracker/Block mapping.]]>
  26943. </doc>
  26944. </method>
  26945. <method name="getClusterStatus" return="org.apache.hadoop.mapred.ClusterStatus"
  26946. abstract="false" native="false" synchronized="true"
  26947. static="false" final="false" visibility="public"
  26948. deprecated="not deprecated">
  26949. </method>
  26950. <method name="killJob"
  26951. abstract="false" native="false" synchronized="false"
  26952. static="false" final="false" visibility="public"
  26953. deprecated="not deprecated">
  26954. <param name="id" type="java.lang.String"/>
  26955. </method>
  26956. <method name="killJob"
  26957. abstract="false" native="false" synchronized="true"
  26958. static="false" final="false" visibility="public"
  26959. deprecated="not deprecated">
  26960. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  26961. </method>
  26962. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  26963. abstract="false" native="false" synchronized="false"
  26964. static="false" final="false" visibility="public"
  26965. deprecated="not deprecated">
  26966. <param name="id" type="java.lang.String"/>
  26967. </method>
  26968. <method name="getJobProfile" return="org.apache.hadoop.mapred.JobProfile"
  26969. abstract="false" native="false" synchronized="true"
  26970. static="false" final="false" visibility="public"
  26971. deprecated="not deprecated">
  26972. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  26973. </method>
  26974. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  26975. abstract="false" native="false" synchronized="false"
  26976. static="false" final="false" visibility="public"
  26977. deprecated="not deprecated">
  26978. <param name="id" type="java.lang.String"/>
  26979. </method>
  26980. <method name="getJobStatus" return="org.apache.hadoop.mapred.JobStatus"
  26981. abstract="false" native="false" synchronized="true"
  26982. static="false" final="false" visibility="public"
  26983. deprecated="not deprecated">
  26984. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  26985. </method>
  26986. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  26987. abstract="false" native="false" synchronized="false"
  26988. static="false" final="false" visibility="public"
  26989. deprecated="not deprecated">
  26990. <param name="id" type="java.lang.String"/>
  26991. </method>
  26992. <method name="getJobCounters" return="org.apache.hadoop.mapred.Counters"
  26993. abstract="false" native="false" synchronized="true"
  26994. static="false" final="false" visibility="public"
  26995. deprecated="not deprecated">
  26996. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  26997. </method>
  26998. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  26999. abstract="false" native="false" synchronized="false"
  27000. static="false" final="false" visibility="public"
  27001. deprecated="not deprecated">
  27002. <param name="jobid" type="java.lang.String"/>
  27003. </method>
  27004. <method name="getMapTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  27005. abstract="false" native="false" synchronized="true"
  27006. static="false" final="false" visibility="public"
  27007. deprecated="not deprecated">
  27008. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  27009. </method>
  27010. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  27011. abstract="false" native="false" synchronized="false"
  27012. static="false" final="false" visibility="public"
  27013. deprecated="not deprecated">
  27014. <param name="jobid" type="java.lang.String"/>
  27015. </method>
  27016. <method name="getReduceTaskReports" return="org.apache.hadoop.mapred.TaskReport[]"
  27017. abstract="false" native="false" synchronized="true"
  27018. static="false" final="false" visibility="public"
  27019. deprecated="not deprecated">
  27020. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  27021. </method>
  27022. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  27023. abstract="false" native="false" synchronized="false"
  27024. static="false" final="false" visibility="public"
  27025. deprecated="not deprecated">
  27026. <param name="jobid" type="java.lang.String"/>
  27027. <param name="fromid" type="int"/>
  27028. <param name="maxevents" type="int"/>
  27029. <exception name="IOException" type="java.io.IOException"/>
  27030. </method>
  27031. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  27032. abstract="false" native="false" synchronized="true"
  27033. static="false" final="false" visibility="public"
  27034. deprecated="not deprecated">
  27035. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  27036. <param name="fromEventId" type="int"/>
  27037. <param name="maxEvents" type="int"/>
  27038. <exception name="IOException" type="java.io.IOException"/>
  27039. </method>
  27040. <method name="getTaskDiagnostics" return="java.lang.String[]"
  27041. abstract="false" native="false" synchronized="false"
  27042. static="false" final="false" visibility="public"
  27043. deprecated="not deprecated">
  27044. <param name="jobid" type="java.lang.String"/>
  27045. <param name="tipid" type="java.lang.String"/>
  27046. <param name="taskid" type="java.lang.String"/>
  27047. <exception name="IOException" type="java.io.IOException"/>
  27048. </method>
  27049. <method name="getTaskDiagnostics" return="java.lang.String[]"
  27050. abstract="false" native="false" synchronized="true"
  27051. static="false" final="false" visibility="public"
  27052. deprecated="not deprecated">
  27053. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27054. <exception name="IOException" type="java.io.IOException"/>
  27055. <doc>
  27056. <![CDATA[Get the diagnostics for a given task
  27057. @param taskId the id of the task
  27058. @return an array of the diagnostic messages]]>
  27059. </doc>
  27060. </method>
  27061. <method name="getTip" return="org.apache.hadoop.mapred.TaskInProgress"
  27062. abstract="false" native="false" synchronized="false"
  27063. static="false" final="false" visibility="public"
  27064. deprecated="not deprecated">
  27065. <param name="tipid" type="org.apache.hadoop.mapred.TaskID"/>
  27066. <doc>
  27067. <![CDATA[Returns specified TaskInProgress, or null.]]>
  27068. </doc>
  27069. </method>
  27070. <method name="killTask" return="boolean"
  27071. abstract="false" native="false" synchronized="false"
  27072. static="false" final="false" visibility="public"
  27073. deprecated="not deprecated">
  27074. <param name="taskId" type="java.lang.String"/>
  27075. <param name="shouldFail" type="boolean"/>
  27076. <exception name="IOException" type="java.io.IOException"/>
  27077. </method>
  27078. <method name="killTask" return="boolean"
  27079. abstract="false" native="false" synchronized="true"
  27080. static="false" final="false" visibility="public"
  27081. deprecated="not deprecated">
  27082. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27083. <param name="shouldFail" type="boolean"/>
  27084. <exception name="IOException" type="java.io.IOException"/>
  27085. <doc>
  27086. <![CDATA[Mark a Task to be killed]]>
  27087. </doc>
  27088. </method>
  27089. <method name="getAssignedTracker" return="java.lang.String"
  27090. abstract="false" native="false" synchronized="false"
  27091. static="false" final="false" visibility="public"
  27092. deprecated="not deprecated">
  27093. <param name="taskid" type="java.lang.String"/>
  27094. </method>
  27095. <method name="getAssignedTracker" return="java.lang.String"
  27096. abstract="false" native="false" synchronized="true"
  27097. static="false" final="false" visibility="public"
  27098. deprecated="not deprecated">
  27099. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  27100. <doc>
  27101. <![CDATA[Get tracker name for a given task id.
  27102. @param taskId the name of the task
  27103. @return The name of the task tracker]]>
  27104. </doc>
  27105. </method>
  27106. <method name="jobsToComplete" return="org.apache.hadoop.mapred.JobStatus[]"
  27107. abstract="false" native="false" synchronized="false"
  27108. static="false" final="false" visibility="public"
  27109. deprecated="not deprecated">
  27110. </method>
  27111. <method name="getAllJobs" return="org.apache.hadoop.mapred.JobStatus[]"
  27112. abstract="false" native="false" synchronized="false"
  27113. static="false" final="false" visibility="public"
  27114. deprecated="not deprecated">
  27115. </method>
  27116. <method name="getSystemDir" return="java.lang.String"
  27117. abstract="false" native="false" synchronized="false"
  27118. static="false" final="false" visibility="public"
  27119. deprecated="not deprecated">
  27120. <doc>
  27121. <![CDATA[@see org.apache.hadoop.mapred.JobSubmissionProtocol#getSystemDir()]]>
  27122. </doc>
  27123. </method>
  27124. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  27125. abstract="false" native="false" synchronized="false"
  27126. static="false" final="false" visibility="public"
  27127. deprecated="not deprecated">
  27128. <param name="jobid" type="java.lang.String"/>
  27129. </method>
  27130. <method name="getJob" return="org.apache.hadoop.mapred.JobInProgress"
  27131. abstract="false" native="false" synchronized="false"
  27132. static="false" final="false" visibility="public"
  27133. deprecated="not deprecated">
  27134. <param name="jobid" type="org.apache.hadoop.mapred.JobID"/>
  27135. </method>
  27136. <method name="getLocalJobFilePath" return="java.lang.String"
  27137. abstract="false" native="false" synchronized="false"
  27138. static="false" final="false" visibility="public"
  27139. deprecated="not deprecated">
  27140. <param name="jobid" type="java.lang.String"/>
  27141. </method>
  27142. <method name="getLocalJobFilePath" return="java.lang.String"
  27143. abstract="false" native="false" synchronized="false"
  27144. static="true" final="false" visibility="public"
  27145. deprecated="not deprecated">
  27146. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  27147. <doc>
  27148. <![CDATA[Get the localized job file path on the job trackers local file system
  27149. @param jobId id of the job
  27150. @return the path of the job conf file on the local file system]]>
  27151. </doc>
  27152. </method>
  27153. <method name="main"
  27154. abstract="false" native="false" synchronized="false"
  27155. static="true" final="false" visibility="public"
  27156. deprecated="not deprecated">
  27157. <param name="argv" type="java.lang.String[]"/>
  27158. <exception name="IOException" type="java.io.IOException"/>
  27159. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  27160. <doc>
  27161. <![CDATA[Start the JobTracker process. This is used only for debugging. As a rule,
  27162. JobTracker should be run as part of the DFS Namenode process.]]>
  27163. </doc>
  27164. </method>
  27165. <field name="LOG" type="org.apache.commons.logging.Log"
  27166. transient="false" volatile="false"
  27167. static="true" final="true" visibility="public"
  27168. deprecated="not deprecated">
  27169. </field>
  27170. <doc>
  27171. <![CDATA[JobTracker is the central location for submitting and
  27172. tracking MR jobs in a network environment.]]>
  27173. </doc>
  27174. </class>
  27175. <!-- end class org.apache.hadoop.mapred.JobTracker -->
  27176. <!-- start class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  27177. <class name="JobTracker.IllegalStateException" extends="java.io.IOException"
  27178. abstract="false"
  27179. static="true" final="false" visibility="public"
  27180. deprecated="not deprecated">
  27181. <constructor name="JobTracker.IllegalStateException" type="java.lang.String"
  27182. static="false" final="false" visibility="public"
  27183. deprecated="not deprecated">
  27184. </constructor>
  27185. <doc>
  27186. <![CDATA[A client tried to submit a job before the Job Tracker was ready.]]>
  27187. </doc>
  27188. </class>
  27189. <!-- end class org.apache.hadoop.mapred.JobTracker.IllegalStateException -->
  27190. <!-- start class org.apache.hadoop.mapred.JobTracker.State -->
  27191. <class name="JobTracker.State" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.JobTracker.State&gt;"
  27192. abstract="false"
  27193. static="true" final="true" visibility="public"
  27194. deprecated="not deprecated">
  27195. <method name="values" return="org.apache.hadoop.mapred.JobTracker.State[]"
  27196. abstract="false" native="false" synchronized="false"
  27197. static="true" final="false" visibility="public"
  27198. deprecated="not deprecated">
  27199. </method>
  27200. <method name="valueOf" return="org.apache.hadoop.mapred.JobTracker.State"
  27201. abstract="false" native="false" synchronized="false"
  27202. static="true" final="false" visibility="public"
  27203. deprecated="not deprecated">
  27204. <param name="name" type="java.lang.String"/>
  27205. </method>
  27206. </class>
  27207. <!-- end class org.apache.hadoop.mapred.JobTracker.State -->
  27208. <!-- start class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  27209. <class name="KeyValueLineRecordReader" extends="java.lang.Object"
  27210. abstract="false"
  27211. static="false" final="false" visibility="public"
  27212. deprecated="not deprecated">
  27213. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  27214. <constructor name="KeyValueLineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  27215. static="false" final="false" visibility="public"
  27216. deprecated="not deprecated">
  27217. <exception name="IOException" type="java.io.IOException"/>
  27218. </constructor>
  27219. <method name="getKeyClass" return="java.lang.Class"
  27220. abstract="false" native="false" synchronized="false"
  27221. static="false" final="false" visibility="public"
  27222. deprecated="not deprecated">
  27223. </method>
  27224. <method name="createKey" return="org.apache.hadoop.io.Text"
  27225. abstract="false" native="false" synchronized="false"
  27226. static="false" final="false" visibility="public"
  27227. deprecated="not deprecated">
  27228. </method>
  27229. <method name="createValue" return="org.apache.hadoop.io.Text"
  27230. abstract="false" native="false" synchronized="false"
  27231. static="false" final="false" visibility="public"
  27232. deprecated="not deprecated">
  27233. </method>
  27234. <method name="findSeparator" return="int"
  27235. abstract="false" native="false" synchronized="false"
  27236. static="true" final="false" visibility="public"
  27237. deprecated="not deprecated">
  27238. <param name="utf" type="byte[]"/>
  27239. <param name="start" type="int"/>
  27240. <param name="length" type="int"/>
  27241. <param name="sep" type="byte"/>
  27242. </method>
  27243. <method name="next" return="boolean"
  27244. abstract="false" native="false" synchronized="true"
  27245. static="false" final="false" visibility="public"
  27246. deprecated="not deprecated">
  27247. <param name="key" type="org.apache.hadoop.io.Text"/>
  27248. <param name="value" type="org.apache.hadoop.io.Text"/>
  27249. <exception name="IOException" type="java.io.IOException"/>
  27250. <doc>
  27251. <![CDATA[Read key/value pair in a line.]]>
  27252. </doc>
  27253. </method>
  27254. <method name="getProgress" return="float"
  27255. abstract="false" native="false" synchronized="false"
  27256. static="false" final="false" visibility="public"
  27257. deprecated="not deprecated">
  27258. </method>
  27259. <method name="getPos" return="long"
  27260. abstract="false" native="false" synchronized="true"
  27261. static="false" final="false" visibility="public"
  27262. deprecated="not deprecated">
  27263. <exception name="IOException" type="java.io.IOException"/>
  27264. </method>
  27265. <method name="close"
  27266. abstract="false" native="false" synchronized="true"
  27267. static="false" final="false" visibility="public"
  27268. deprecated="not deprecated">
  27269. <exception name="IOException" type="java.io.IOException"/>
  27270. </method>
  27271. <doc>
  27272. <![CDATA[This class treats a line in the input as a key/value pair separated by a
  27273. separator character. The separator can be specified in config file
  27274. under the attribute name key.value.separator.in.input.line. The default
  27275. separator is the tab character ('\t').]]>
  27276. </doc>
  27277. </class>
  27278. <!-- end class org.apache.hadoop.mapred.KeyValueLineRecordReader -->
  27279. <!-- start class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  27280. <class name="KeyValueTextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  27281. abstract="false"
  27282. static="false" final="false" visibility="public"
  27283. deprecated="not deprecated">
  27284. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27285. <constructor name="KeyValueTextInputFormat"
  27286. static="false" final="false" visibility="public"
  27287. deprecated="not deprecated">
  27288. </constructor>
  27289. <method name="configure"
  27290. abstract="false" native="false" synchronized="false"
  27291. static="false" final="false" visibility="public"
  27292. deprecated="not deprecated">
  27293. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27294. </method>
  27295. <method name="isSplitable" return="boolean"
  27296. abstract="false" native="false" synchronized="false"
  27297. static="false" final="false" visibility="protected"
  27298. deprecated="not deprecated">
  27299. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  27300. <param name="file" type="org.apache.hadoop.fs.Path"/>
  27301. </method>
  27302. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  27303. abstract="false" native="false" synchronized="false"
  27304. static="false" final="false" visibility="public"
  27305. deprecated="not deprecated">
  27306. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  27307. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27308. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27309. <exception name="IOException" type="java.io.IOException"/>
  27310. </method>
  27311. <doc>
  27312. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  27313. Either linefeed or carriage-return are used to signal end of line. Each line
  27314. is divided into key and value parts by a separator byte. If no such a byte
  27315. exists, the key will be the entire line and value will be empty.]]>
  27316. </doc>
  27317. </class>
  27318. <!-- end class org.apache.hadoop.mapred.KeyValueTextInputFormat -->
  27319. <!-- start class org.apache.hadoop.mapred.LineRecordReader -->
  27320. <class name="LineRecordReader" extends="java.lang.Object"
  27321. abstract="false"
  27322. static="false" final="false" visibility="public"
  27323. deprecated="not deprecated">
  27324. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"/>
  27325. <constructor name="LineRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  27326. static="false" final="false" visibility="public"
  27327. deprecated="not deprecated">
  27328. <exception name="IOException" type="java.io.IOException"/>
  27329. </constructor>
  27330. <constructor name="LineRecordReader" type="java.io.InputStream, long, long"
  27331. static="false" final="false" visibility="public"
  27332. deprecated="not deprecated">
  27333. </constructor>
  27334. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, int"
  27335. static="false" final="false" visibility="public"
  27336. deprecated="not deprecated">
  27337. </constructor>
  27338. <constructor name="LineRecordReader" type="java.io.InputStream, long, long, org.apache.hadoop.conf.Configuration"
  27339. static="false" final="false" visibility="public"
  27340. deprecated="not deprecated">
  27341. <exception name="IOException" type="java.io.IOException"/>
  27342. </constructor>
  27343. <method name="createKey" return="org.apache.hadoop.io.LongWritable"
  27344. abstract="false" native="false" synchronized="false"
  27345. static="false" final="false" visibility="public"
  27346. deprecated="not deprecated">
  27347. </method>
  27348. <method name="createValue" return="org.apache.hadoop.io.Text"
  27349. abstract="false" native="false" synchronized="false"
  27350. static="false" final="false" visibility="public"
  27351. deprecated="not deprecated">
  27352. </method>
  27353. <method name="next" return="boolean"
  27354. abstract="false" native="false" synchronized="true"
  27355. static="false" final="false" visibility="public"
  27356. deprecated="not deprecated">
  27357. <param name="key" type="org.apache.hadoop.io.LongWritable"/>
  27358. <param name="value" type="org.apache.hadoop.io.Text"/>
  27359. <exception name="IOException" type="java.io.IOException"/>
  27360. <doc>
  27361. <![CDATA[Read a line.]]>
  27362. </doc>
  27363. </method>
  27364. <method name="getProgress" return="float"
  27365. abstract="false" native="false" synchronized="false"
  27366. static="false" final="false" visibility="public"
  27367. deprecated="not deprecated">
  27368. <doc>
  27369. <![CDATA[Get the progress within the split]]>
  27370. </doc>
  27371. </method>
  27372. <method name="getPos" return="long"
  27373. abstract="false" native="false" synchronized="true"
  27374. static="false" final="false" visibility="public"
  27375. deprecated="not deprecated">
  27376. <exception name="IOException" type="java.io.IOException"/>
  27377. </method>
  27378. <method name="close"
  27379. abstract="false" native="false" synchronized="true"
  27380. static="false" final="false" visibility="public"
  27381. deprecated="not deprecated">
  27382. <exception name="IOException" type="java.io.IOException"/>
  27383. </method>
  27384. <doc>
  27385. <![CDATA[Treats keys as offset in file and value as line.]]>
  27386. </doc>
  27387. </class>
  27388. <!-- end class org.apache.hadoop.mapred.LineRecordReader -->
  27389. <!-- start class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  27390. <class name="LineRecordReader.LineReader" extends="java.lang.Object"
  27391. abstract="false"
  27392. static="true" final="false" visibility="public"
  27393. deprecated="not deprecated">
  27394. <constructor name="LineRecordReader.LineReader" type="java.io.InputStream, org.apache.hadoop.conf.Configuration"
  27395. static="false" final="false" visibility="public"
  27396. deprecated="not deprecated">
  27397. <exception name="IOException" type="java.io.IOException"/>
  27398. <doc>
  27399. <![CDATA[Create a line reader that reads from the given stream using the
  27400. <code>io.file.buffer.size</code> specified in the given
  27401. <code>Configuration</code>.
  27402. @param in input stream
  27403. @param conf configuration
  27404. @throws IOException]]>
  27405. </doc>
  27406. </constructor>
  27407. <method name="close"
  27408. abstract="false" native="false" synchronized="false"
  27409. static="false" final="false" visibility="public"
  27410. deprecated="not deprecated">
  27411. <exception name="IOException" type="java.io.IOException"/>
  27412. <doc>
  27413. <![CDATA[Close the underlying stream.
  27414. @throws IOException]]>
  27415. </doc>
  27416. </method>
  27417. <method name="readLine" return="int"
  27418. abstract="false" native="false" synchronized="false"
  27419. static="false" final="false" visibility="public"
  27420. deprecated="not deprecated">
  27421. <param name="str" type="org.apache.hadoop.io.Text"/>
  27422. <param name="maxLineLength" type="int"/>
  27423. <param name="maxBytesToConsume" type="int"/>
  27424. <exception name="IOException" type="java.io.IOException"/>
  27425. <doc>
  27426. <![CDATA[Read from the InputStream into the given Text.
  27427. @param str the object to store the given line
  27428. @param maxLineLength the maximum number of bytes to store into str.
  27429. @param maxBytesToConsume the maximum number of bytes to consume in this call.
  27430. @return the number of bytes read including the newline
  27431. @throws IOException if the underlying stream throws]]>
  27432. </doc>
  27433. </method>
  27434. <method name="readLine" return="int"
  27435. abstract="false" native="false" synchronized="false"
  27436. static="false" final="false" visibility="public"
  27437. deprecated="not deprecated">
  27438. <param name="str" type="org.apache.hadoop.io.Text"/>
  27439. <param name="maxLineLength" type="int"/>
  27440. <exception name="IOException" type="java.io.IOException"/>
  27441. <doc>
  27442. <![CDATA[Read from the InputStream into the given Text.
  27443. @param str the object to store the given line
  27444. @param maxLineLength the maximum number of bytes to store into str.
  27445. @return the number of bytes read including the newline
  27446. @throws IOException if the underlying stream throws]]>
  27447. </doc>
  27448. </method>
  27449. <method name="readLine" return="int"
  27450. abstract="false" native="false" synchronized="false"
  27451. static="false" final="false" visibility="public"
  27452. deprecated="not deprecated">
  27453. <param name="str" type="org.apache.hadoop.io.Text"/>
  27454. <exception name="IOException" type="java.io.IOException"/>
  27455. <doc>
  27456. <![CDATA[Read from the InputStream into the given Text.
  27457. @param str the object to store the given line
  27458. @return the number of bytes read including the newline
  27459. @throws IOException if the underlying stream throws]]>
  27460. </doc>
  27461. </method>
  27462. <doc>
  27463. <![CDATA[A class that provides a line reader from an input stream.]]>
  27464. </doc>
  27465. </class>
  27466. <!-- end class org.apache.hadoop.mapred.LineRecordReader.LineReader -->
  27467. <!-- start class org.apache.hadoop.mapred.MapFileOutputFormat -->
  27468. <class name="MapFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  27469. abstract="false"
  27470. static="false" final="false" visibility="public"
  27471. deprecated="not deprecated">
  27472. <constructor name="MapFileOutputFormat"
  27473. static="false" final="false" visibility="public"
  27474. deprecated="not deprecated">
  27475. </constructor>
  27476. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.WritableComparable, org.apache.hadoop.io.Writable&gt;"
  27477. abstract="false" native="false" synchronized="false"
  27478. static="false" final="false" visibility="public"
  27479. deprecated="not deprecated">
  27480. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27481. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27482. <param name="name" type="java.lang.String"/>
  27483. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  27484. <exception name="IOException" type="java.io.IOException"/>
  27485. </method>
  27486. <method name="getReaders" return="org.apache.hadoop.io.MapFile.Reader[]"
  27487. abstract="false" native="false" synchronized="false"
  27488. static="true" final="false" visibility="public"
  27489. deprecated="not deprecated">
  27490. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27491. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  27492. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  27493. <exception name="IOException" type="java.io.IOException"/>
  27494. <doc>
  27495. <![CDATA[Open the output generated by this format.]]>
  27496. </doc>
  27497. </method>
  27498. <method name="getEntry" return="org.apache.hadoop.io.Writable"
  27499. abstract="false" native="false" synchronized="false"
  27500. static="true" final="false" visibility="public"
  27501. deprecated="not deprecated">
  27502. <param name="readers" type="org.apache.hadoop.io.MapFile.Reader[]"/>
  27503. <param name="partitioner" type="org.apache.hadoop.mapred.Partitioner&lt;K, V&gt;"/>
  27504. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  27505. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  27506. <exception name="IOException" type="java.io.IOException"/>
  27507. <doc>
  27508. <![CDATA[Get an entry from output generated by this class.]]>
  27509. </doc>
  27510. </method>
  27511. <doc>
  27512. <![CDATA[An {@link OutputFormat} that writes {@link MapFile}s.]]>
  27513. </doc>
  27514. </class>
  27515. <!-- end class org.apache.hadoop.mapred.MapFileOutputFormat -->
  27516. <!-- start interface org.apache.hadoop.mapred.Mapper -->
  27517. <interface name="Mapper" abstract="true"
  27518. static="false" final="false" visibility="public"
  27519. deprecated="not deprecated">
  27520. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27521. <implements name="org.apache.hadoop.io.Closeable"/>
  27522. <method name="map"
  27523. abstract="false" native="false" synchronized="false"
  27524. static="false" final="false" visibility="public"
  27525. deprecated="not deprecated">
  27526. <param name="key" type="K1"/>
  27527. <param name="value" type="V1"/>
  27528. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  27529. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27530. <exception name="IOException" type="java.io.IOException"/>
  27531. <doc>
  27532. <![CDATA[Maps a single input key/value pair into an intermediate key/value pair.
  27533. <p>Output pairs need not be of the same types as input pairs. A given
  27534. input pair may map to zero or many output pairs. Output pairs are
  27535. collected with calls to
  27536. {@link OutputCollector#collect(Object,Object)}.</p>
  27537. <p>Applications can use the {@link Reporter} provided to report progress
  27538. or just indicate that they are alive. In scenarios where the application
  27539. takes an insignificant amount of time to process individual key/value
  27540. pairs, this is crucial since the framework might assume that the task has
  27541. timed-out and kill that task. The other way of avoiding this is to set
  27542. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  27543. mapred.task.timeout</a> to a high-enough value (or even zero for no
  27544. time-outs).</p>
  27545. @param key the input key.
  27546. @param value the input value.
  27547. @param output collects mapped keys and values.
  27548. @param reporter facility to report progress.]]>
  27549. </doc>
  27550. </method>
  27551. <doc>
  27552. <![CDATA[Maps input key/value pairs to a set of intermediate key/value pairs.
  27553. <p>Maps are the individual tasks which transform input records into a
  27554. intermediate records. The transformed intermediate records need not be of
  27555. the same type as the input records. A given input pair may map to zero or
  27556. many output pairs.</p>
  27557. <p>The Hadoop Map-Reduce framework spawns one map task for each
  27558. {@link InputSplit} generated by the {@link InputFormat} for the job.
  27559. <code>Mapper</code> implementations can access the {@link JobConf} for the
  27560. job via the {@link JobConfigurable#configure(JobConf)} and initialize
  27561. themselves. Similarly they can use the {@link Closeable#close()} method for
  27562. de-initialization.</p>
  27563. <p>The framework then calls
  27564. {@link #map(Object, Object, OutputCollector, Reporter)}
  27565. for each key/value pair in the <code>InputSplit</code> for that task.</p>
  27566. <p>All intermediate values associated with a given output key are
  27567. subsequently grouped by the framework, and passed to a {@link Reducer} to
  27568. determine the final output. Users can control the grouping by specifying
  27569. a <code>Comparator</code> via
  27570. {@link JobConf#setOutputKeyComparatorClass(Class)}.</p>
  27571. <p>The grouped <code>Mapper</code> outputs are partitioned per
  27572. <code>Reducer</code>. Users can control which keys (and hence records) go to
  27573. which <code>Reducer</code> by implementing a custom {@link Partitioner}.
  27574. <p>Users can optionally specify a <code>combiner</code>, via
  27575. {@link JobConf#setCombinerClass(Class)}, to perform local aggregation of the
  27576. intermediate outputs, which helps to cut down the amount of data transferred
  27577. from the <code>Mapper</code> to the <code>Reducer</code>.
  27578. <p>The intermediate, grouped outputs are always stored in
  27579. {@link SequenceFile}s. Applications can specify if and how the intermediate
  27580. outputs are to be compressed and which {@link CompressionCodec}s are to be
  27581. used via the <code>JobConf</code>.</p>
  27582. <p>If the job has
  27583. <a href="{@docRoot}/org/apache/hadoop/mapred/JobConf.html#ReducerNone">zero
  27584. reduces</a> then the output of the <code>Mapper</code> is directly written
  27585. to the {@link FileSystem} without grouping by keys.</p>
  27586. <p>Example:</p>
  27587. <p><blockquote><pre>
  27588. public class MyMapper&lt;K extends WritableComparable, V extends Writable&gt;
  27589. extends MapReduceBase implements Mapper&lt;K, V, K, V&gt; {
  27590. static enum MyCounters { NUM_RECORDS }
  27591. private String mapTaskId;
  27592. private String inputFile;
  27593. private int noRecords = 0;
  27594. public void configure(JobConf job) {
  27595. mapTaskId = job.get("mapred.task.id");
  27596. inputFile = job.get("mapred.input.file");
  27597. }
  27598. public void map(K key, V val,
  27599. OutputCollector&lt;K, V&gt; output, Reporter reporter)
  27600. throws IOException {
  27601. // Process the &lt;key, value&gt; pair (assume this takes a while)
  27602. // ...
  27603. // ...
  27604. // Let the framework know that we are alive, and kicking!
  27605. // reporter.progress();
  27606. // Process some more
  27607. // ...
  27608. // ...
  27609. // Increment the no. of &lt;key, value&gt; pairs processed
  27610. ++noRecords;
  27611. // Increment counters
  27612. reporter.incrCounter(NUM_RECORDS, 1);
  27613. // Every 100 records update application-level status
  27614. if ((noRecords%100) == 0) {
  27615. reporter.setStatus(mapTaskId + " processed " + noRecords +
  27616. " from input-file: " + inputFile);
  27617. }
  27618. // Output the result
  27619. output.collect(key, val);
  27620. }
  27621. }
  27622. </pre></blockquote></p>
  27623. <p>Applications may write a custom {@link MapRunnable} to exert greater
  27624. control on map processing e.g. multi-threaded <code>Mapper</code>s etc.</p>
  27625. @see JobConf
  27626. @see InputFormat
  27627. @see Partitioner
  27628. @see Reducer
  27629. @see MapReduceBase
  27630. @see MapRunnable
  27631. @see SequenceFile]]>
  27632. </doc>
  27633. </interface>
  27634. <!-- end interface org.apache.hadoop.mapred.Mapper -->
  27635. <!-- start class org.apache.hadoop.mapred.MapReduceBase -->
  27636. <class name="MapReduceBase" extends="java.lang.Object"
  27637. abstract="false"
  27638. static="false" final="false" visibility="public"
  27639. deprecated="not deprecated">
  27640. <implements name="org.apache.hadoop.io.Closeable"/>
  27641. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27642. <constructor name="MapReduceBase"
  27643. static="false" final="false" visibility="public"
  27644. deprecated="not deprecated">
  27645. </constructor>
  27646. <method name="close"
  27647. abstract="false" native="false" synchronized="false"
  27648. static="false" final="false" visibility="public"
  27649. deprecated="not deprecated">
  27650. <exception name="IOException" type="java.io.IOException"/>
  27651. <doc>
  27652. <![CDATA[Default implementation that does nothing.]]>
  27653. </doc>
  27654. </method>
  27655. <method name="configure"
  27656. abstract="false" native="false" synchronized="false"
  27657. static="false" final="false" visibility="public"
  27658. deprecated="not deprecated">
  27659. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27660. <doc>
  27661. <![CDATA[Default implementation that does nothing.]]>
  27662. </doc>
  27663. </method>
  27664. <doc>
  27665. <![CDATA[Base class for {@link Mapper} and {@link Reducer} implementations.
  27666. <p>Provides default no-op implementations for a few methods, most non-trivial
  27667. applications need to override some of them.</p>]]>
  27668. </doc>
  27669. </class>
  27670. <!-- end class org.apache.hadoop.mapred.MapReduceBase -->
  27671. <!-- start interface org.apache.hadoop.mapred.MapRunnable -->
  27672. <interface name="MapRunnable" abstract="true"
  27673. static="false" final="false" visibility="public"
  27674. deprecated="not deprecated">
  27675. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  27676. <method name="run"
  27677. abstract="false" native="false" synchronized="false"
  27678. static="false" final="false" visibility="public"
  27679. deprecated="not deprecated">
  27680. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  27681. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  27682. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27683. <exception name="IOException" type="java.io.IOException"/>
  27684. <doc>
  27685. <![CDATA[Start mapping input <tt>&lt;key, value&gt;</tt> pairs.
  27686. <p>Mapping of input records to output records is complete when this method
  27687. returns.</p>
  27688. @param input the {@link RecordReader} to read the input records.
  27689. @param output the {@link OutputCollector} to collect the outputrecords.
  27690. @param reporter {@link Reporter} to report progress, status-updates etc.
  27691. @throws IOException]]>
  27692. </doc>
  27693. </method>
  27694. <doc>
  27695. <![CDATA[Expert: Generic interface for {@link Mapper}s.
  27696. <p>Custom implementations of <code>MapRunnable</code> can exert greater
  27697. control on map processing e.g. multi-threaded, asynchronous mappers etc.</p>
  27698. @see Mapper]]>
  27699. </doc>
  27700. </interface>
  27701. <!-- end interface org.apache.hadoop.mapred.MapRunnable -->
  27702. <!-- start class org.apache.hadoop.mapred.MapRunner -->
  27703. <class name="MapRunner" extends="java.lang.Object"
  27704. abstract="false"
  27705. static="false" final="false" visibility="public"
  27706. deprecated="not deprecated">
  27707. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  27708. <constructor name="MapRunner"
  27709. static="false" final="false" visibility="public"
  27710. deprecated="not deprecated">
  27711. </constructor>
  27712. <method name="configure"
  27713. abstract="false" native="false" synchronized="false"
  27714. static="false" final="false" visibility="public"
  27715. deprecated="not deprecated">
  27716. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27717. </method>
  27718. <method name="run"
  27719. abstract="false" native="false" synchronized="false"
  27720. static="false" final="false" visibility="public"
  27721. deprecated="not deprecated">
  27722. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  27723. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  27724. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27725. <exception name="IOException" type="java.io.IOException"/>
  27726. </method>
  27727. <doc>
  27728. <![CDATA[Default {@link MapRunnable} implementation.]]>
  27729. </doc>
  27730. </class>
  27731. <!-- end class org.apache.hadoop.mapred.MapRunner -->
  27732. <!-- start class org.apache.hadoop.mapred.MultiFileInputFormat -->
  27733. <class name="MultiFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  27734. abstract="true"
  27735. static="false" final="false" visibility="public"
  27736. deprecated="not deprecated">
  27737. <constructor name="MultiFileInputFormat"
  27738. static="false" final="false" visibility="public"
  27739. deprecated="not deprecated">
  27740. </constructor>
  27741. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  27742. abstract="false" native="false" synchronized="false"
  27743. static="false" final="false" visibility="public"
  27744. deprecated="not deprecated">
  27745. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27746. <param name="numSplits" type="int"/>
  27747. <exception name="IOException" type="java.io.IOException"/>
  27748. </method>
  27749. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  27750. abstract="true" native="false" synchronized="false"
  27751. static="false" final="false" visibility="public"
  27752. deprecated="not deprecated">
  27753. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  27754. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27755. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  27756. <exception name="IOException" type="java.io.IOException"/>
  27757. </method>
  27758. <doc>
  27759. <![CDATA[An abstract {@link InputFormat} that returns {@link MultiFileSplit}'s
  27760. in {@link #getSplits(JobConf, int)} method. Splits are constructed from
  27761. the files under the input paths. Each split returned contains <i>nearly</i>
  27762. equal content length. <br>
  27763. Subclasses implement {@link #getRecordReader(InputSplit, JobConf, Reporter)}
  27764. to construct <code>RecordReader</code>'s for <code>MultiFileSplit</code>'s.
  27765. @see MultiFileSplit]]>
  27766. </doc>
  27767. </class>
  27768. <!-- end class org.apache.hadoop.mapred.MultiFileInputFormat -->
  27769. <!-- start class org.apache.hadoop.mapred.MultiFileSplit -->
  27770. <class name="MultiFileSplit" extends="java.lang.Object"
  27771. abstract="false"
  27772. static="false" final="false" visibility="public"
  27773. deprecated="not deprecated">
  27774. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  27775. <constructor name="MultiFileSplit" type="org.apache.hadoop.mapred.JobConf, org.apache.hadoop.fs.Path[], long[]"
  27776. static="false" final="false" visibility="public"
  27777. deprecated="not deprecated">
  27778. </constructor>
  27779. <method name="getLength" return="long"
  27780. abstract="false" native="false" synchronized="false"
  27781. static="false" final="false" visibility="public"
  27782. deprecated="not deprecated">
  27783. </method>
  27784. <method name="getLengths" return="long[]"
  27785. abstract="false" native="false" synchronized="false"
  27786. static="false" final="false" visibility="public"
  27787. deprecated="not deprecated">
  27788. <doc>
  27789. <![CDATA[Returns an array containing the lengths of the files in
  27790. the split]]>
  27791. </doc>
  27792. </method>
  27793. <method name="getLength" return="long"
  27794. abstract="false" native="false" synchronized="false"
  27795. static="false" final="false" visibility="public"
  27796. deprecated="not deprecated">
  27797. <param name="i" type="int"/>
  27798. <doc>
  27799. <![CDATA[Returns the length of the i<sup>th</sup> Path]]>
  27800. </doc>
  27801. </method>
  27802. <method name="getNumPaths" return="int"
  27803. abstract="false" native="false" synchronized="false"
  27804. static="false" final="false" visibility="public"
  27805. deprecated="not deprecated">
  27806. <doc>
  27807. <![CDATA[Returns the number of Paths in the split]]>
  27808. </doc>
  27809. </method>
  27810. <method name="getPath" return="org.apache.hadoop.fs.Path"
  27811. abstract="false" native="false" synchronized="false"
  27812. static="false" final="false" visibility="public"
  27813. deprecated="not deprecated">
  27814. <param name="i" type="int"/>
  27815. <doc>
  27816. <![CDATA[Returns the i<sup>th</sup> Path]]>
  27817. </doc>
  27818. </method>
  27819. <method name="getPaths" return="org.apache.hadoop.fs.Path[]"
  27820. abstract="false" native="false" synchronized="false"
  27821. static="false" final="false" visibility="public"
  27822. deprecated="not deprecated">
  27823. <doc>
  27824. <![CDATA[Returns all the Paths in the split]]>
  27825. </doc>
  27826. </method>
  27827. <method name="getLocations" return="java.lang.String[]"
  27828. abstract="false" native="false" synchronized="false"
  27829. static="false" final="false" visibility="public"
  27830. deprecated="not deprecated">
  27831. <exception name="IOException" type="java.io.IOException"/>
  27832. </method>
  27833. <method name="readFields"
  27834. abstract="false" native="false" synchronized="false"
  27835. static="false" final="false" visibility="public"
  27836. deprecated="not deprecated">
  27837. <param name="in" type="java.io.DataInput"/>
  27838. <exception name="IOException" type="java.io.IOException"/>
  27839. </method>
  27840. <method name="write"
  27841. abstract="false" native="false" synchronized="false"
  27842. static="false" final="false" visibility="public"
  27843. deprecated="not deprecated">
  27844. <param name="out" type="java.io.DataOutput"/>
  27845. <exception name="IOException" type="java.io.IOException"/>
  27846. </method>
  27847. <method name="toString" return="java.lang.String"
  27848. abstract="false" native="false" synchronized="false"
  27849. static="false" final="false" visibility="public"
  27850. deprecated="not deprecated">
  27851. </method>
  27852. <doc>
  27853. <![CDATA[A sub-collection of input files. Unlike {@link FileSplit}, MultiFileSplit
  27854. class does not represent a split of a file, but a split of input files
  27855. into smaller sets. The atomic unit of split is a file. <br>
  27856. MultiFileSplit can be used to implement {@link RecordReader}'s, with
  27857. reading one record per file.
  27858. @see FileSplit
  27859. @see MultiFileInputFormat]]>
  27860. </doc>
  27861. </class>
  27862. <!-- end class org.apache.hadoop.mapred.MultiFileSplit -->
  27863. <!-- start interface org.apache.hadoop.mapred.OutputCollector -->
  27864. <interface name="OutputCollector" abstract="true"
  27865. static="false" final="false" visibility="public"
  27866. deprecated="not deprecated">
  27867. <method name="collect"
  27868. abstract="false" native="false" synchronized="false"
  27869. static="false" final="false" visibility="public"
  27870. deprecated="not deprecated">
  27871. <param name="key" type="K"/>
  27872. <param name="value" type="V"/>
  27873. <exception name="IOException" type="java.io.IOException"/>
  27874. <doc>
  27875. <![CDATA[Adds a key/value pair to the output.
  27876. @param key the key to collect.
  27877. @param value to value to collect.
  27878. @throws IOException]]>
  27879. </doc>
  27880. </method>
  27881. <doc>
  27882. <![CDATA[Collects the <code>&lt;key, value&gt;</code> pairs output by {@link Mapper}s
  27883. and {@link Reducer}s.
  27884. <p><code>OutputCollector</code> is the generalization of the facility
  27885. provided by the Map-Reduce framework to collect data output by either the
  27886. <code>Mapper</code> or the <code>Reducer</code> i.e. intermediate outputs
  27887. or the output of the job.</p>]]>
  27888. </doc>
  27889. </interface>
  27890. <!-- end interface org.apache.hadoop.mapred.OutputCollector -->
  27891. <!-- start interface org.apache.hadoop.mapred.OutputFormat -->
  27892. <interface name="OutputFormat" abstract="true"
  27893. static="false" final="false" visibility="public"
  27894. deprecated="not deprecated">
  27895. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  27896. abstract="false" native="false" synchronized="false"
  27897. static="false" final="false" visibility="public"
  27898. deprecated="not deprecated">
  27899. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27900. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27901. <param name="name" type="java.lang.String"/>
  27902. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  27903. <exception name="IOException" type="java.io.IOException"/>
  27904. <doc>
  27905. <![CDATA[Get the {@link RecordWriter} for the given job.
  27906. @param ignored
  27907. @param job configuration for the job whose output is being written.
  27908. @param name the unique name for this part of the output.
  27909. @param progress mechanism for reporting progress while writing to file.
  27910. @return a {@link RecordWriter} to write the output for the job.
  27911. @throws IOException]]>
  27912. </doc>
  27913. </method>
  27914. <method name="checkOutputSpecs"
  27915. abstract="false" native="false" synchronized="false"
  27916. static="false" final="false" visibility="public"
  27917. deprecated="not deprecated">
  27918. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  27919. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  27920. <exception name="IOException" type="java.io.IOException"/>
  27921. <doc>
  27922. <![CDATA[Check for validity of the output-specification for the job.
  27923. <p>This is to validate the output specification for the job when it is
  27924. a job is submitted. Typically checks that it does not already exist,
  27925. throwing an exception when it already exists, so that output is not
  27926. overwritten.</p>
  27927. @param ignored
  27928. @param job job configuration.
  27929. @throws IOException when output should not be attempted]]>
  27930. </doc>
  27931. </method>
  27932. <doc>
  27933. <![CDATA[<code>OutputFormat</code> describes the output-specification for a
  27934. Map-Reduce job.
  27935. <p>The Map-Reduce framework relies on the <code>OutputFormat</code> of the
  27936. job to:<p>
  27937. <ol>
  27938. <li>
  27939. Validate the output-specification of the job. For e.g. check that the
  27940. output directory doesn't already exist.
  27941. <li>
  27942. Provide the {@link RecordWriter} implementation to be used to write out
  27943. the output files of the job. Output files are stored in a
  27944. {@link FileSystem}.
  27945. </li>
  27946. </ol>
  27947. @see RecordWriter
  27948. @see JobConf]]>
  27949. </doc>
  27950. </interface>
  27951. <!-- end interface org.apache.hadoop.mapred.OutputFormat -->
  27952. <!-- start class org.apache.hadoop.mapred.OutputFormatBase -->
  27953. <class name="OutputFormatBase" extends="java.lang.Object"
  27954. abstract="true"
  27955. static="false" final="false" visibility="public"
  27956. deprecated="Use {@link FileOutputFormat}">
  27957. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  27958. <constructor name="OutputFormatBase"
  27959. static="false" final="false" visibility="public"
  27960. deprecated="not deprecated">
  27961. </constructor>
  27962. <method name="setCompressOutput"
  27963. abstract="false" native="false" synchronized="false"
  27964. static="true" final="false" visibility="public"
  27965. deprecated="not deprecated">
  27966. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27967. <param name="compress" type="boolean"/>
  27968. <doc>
  27969. <![CDATA[Set whether the output of the job is compressed.
  27970. @param conf the {@link JobConf} to modify
  27971. @param compress should the output of the job be compressed?]]>
  27972. </doc>
  27973. </method>
  27974. <method name="getCompressOutput" return="boolean"
  27975. abstract="false" native="false" synchronized="false"
  27976. static="true" final="false" visibility="public"
  27977. deprecated="not deprecated">
  27978. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27979. <doc>
  27980. <![CDATA[Is the job output compressed?
  27981. @param conf the {@link JobConf} to look in
  27982. @return <code>true</code> if the job output should be compressed,
  27983. <code>false</code> otherwise]]>
  27984. </doc>
  27985. </method>
  27986. <method name="setOutputCompressorClass"
  27987. abstract="false" native="false" synchronized="false"
  27988. static="true" final="false" visibility="public"
  27989. deprecated="not deprecated">
  27990. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  27991. <param name="codecClass" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  27992. <doc>
  27993. <![CDATA[Set the {@link CompressionCodec} to be used to compress job outputs.
  27994. @param conf the {@link JobConf} to modify
  27995. @param codecClass the {@link CompressionCodec} to be used to
  27996. compress the job outputs]]>
  27997. </doc>
  27998. </method>
  27999. <method name="getOutputCompressorClass" return="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"
  28000. abstract="false" native="false" synchronized="false"
  28001. static="true" final="false" visibility="public"
  28002. deprecated="not deprecated">
  28003. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28004. <param name="defaultValue" type="java.lang.Class&lt;? extends org.apache.hadoop.io.compress.CompressionCodec&gt;"/>
  28005. <doc>
  28006. <![CDATA[Get the {@link CompressionCodec} for compressing the job outputs.
  28007. @param conf the {@link JobConf} to look in
  28008. @param defaultValue the {@link CompressionCodec} to return if not set
  28009. @return the {@link CompressionCodec} to be used to compress the
  28010. job outputs
  28011. @throws IllegalArgumentException if the class was specified, but not found]]>
  28012. </doc>
  28013. </method>
  28014. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  28015. abstract="true" native="false" synchronized="false"
  28016. static="false" final="false" visibility="public"
  28017. deprecated="not deprecated">
  28018. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  28019. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28020. <param name="name" type="java.lang.String"/>
  28021. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  28022. <exception name="IOException" type="java.io.IOException"/>
  28023. </method>
  28024. <method name="checkOutputSpecs"
  28025. abstract="false" native="false" synchronized="false"
  28026. static="false" final="false" visibility="public"
  28027. deprecated="not deprecated">
  28028. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  28029. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28030. <exception name="FileAlreadyExistsException" type="org.apache.hadoop.mapred.FileAlreadyExistsException"/>
  28031. <exception name="InvalidJobConfException" type="org.apache.hadoop.mapred.InvalidJobConfException"/>
  28032. <exception name="IOException" type="java.io.IOException"/>
  28033. </method>
  28034. <doc>
  28035. <![CDATA[A base class for {@link OutputFormat}.
  28036. @deprecated Use {@link FileOutputFormat}]]>
  28037. </doc>
  28038. </class>
  28039. <!-- end class org.apache.hadoop.mapred.OutputFormatBase -->
  28040. <!-- start class org.apache.hadoop.mapred.OutputLogFilter -->
  28041. <class name="OutputLogFilter" extends="java.lang.Object"
  28042. abstract="false"
  28043. static="false" final="false" visibility="public"
  28044. deprecated="not deprecated">
  28045. <implements name="org.apache.hadoop.fs.PathFilter"/>
  28046. <constructor name="OutputLogFilter"
  28047. static="false" final="false" visibility="public"
  28048. deprecated="not deprecated">
  28049. </constructor>
  28050. <method name="accept" return="boolean"
  28051. abstract="false" native="false" synchronized="false"
  28052. static="false" final="false" visibility="public"
  28053. deprecated="not deprecated">
  28054. <param name="path" type="org.apache.hadoop.fs.Path"/>
  28055. </method>
  28056. <doc>
  28057. <![CDATA[This class filters log files from directory given
  28058. It doesnt accept paths having _logs.
  28059. This can be used to list paths of output directory as follows:
  28060. Path[] fileList = FileUtil.stat2Paths(fs.listStatus(outDir,
  28061. new OutputLogFilter()));]]>
  28062. </doc>
  28063. </class>
  28064. <!-- end class org.apache.hadoop.mapred.OutputLogFilter -->
  28065. <!-- start interface org.apache.hadoop.mapred.Partitioner -->
  28066. <interface name="Partitioner" abstract="true"
  28067. static="false" final="false" visibility="public"
  28068. deprecated="not deprecated">
  28069. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  28070. <method name="getPartition" return="int"
  28071. abstract="false" native="false" synchronized="false"
  28072. static="false" final="false" visibility="public"
  28073. deprecated="not deprecated">
  28074. <param name="key" type="K2"/>
  28075. <param name="value" type="V2"/>
  28076. <param name="numPartitions" type="int"/>
  28077. <doc>
  28078. <![CDATA[Get the paritition number for a given key (hence record) given the total
  28079. number of partitions i.e. number of reduce-tasks for the job.
  28080. <p>Typically a hash function on a all or a subset of the key.</p>
  28081. @param key the key to be paritioned.
  28082. @param value the entry value.
  28083. @param numPartitions the total number of partitions.
  28084. @return the partition number for the <code>key</code>.]]>
  28085. </doc>
  28086. </method>
  28087. <doc>
  28088. <![CDATA[Partitions the key space.
  28089. <p><code>Partitioner</code> controls the partitioning of the keys of the
  28090. intermediate map-outputs. The key (or a subset of the key) is used to derive
  28091. the partition, typically by a hash function. The total number of partitions
  28092. is the same as the number of reduce tasks for the job. Hence this controls
  28093. which of the <code>m</code> reduce tasks the intermediate key (and hence the
  28094. record) is sent for reduction.</p>
  28095. @see Reducer]]>
  28096. </doc>
  28097. </interface>
  28098. <!-- end interface org.apache.hadoop.mapred.Partitioner -->
  28099. <!-- start interface org.apache.hadoop.mapred.RecordReader -->
  28100. <interface name="RecordReader" abstract="true"
  28101. static="false" final="false" visibility="public"
  28102. deprecated="not deprecated">
  28103. <method name="next" return="boolean"
  28104. abstract="false" native="false" synchronized="false"
  28105. static="false" final="false" visibility="public"
  28106. deprecated="not deprecated">
  28107. <param name="key" type="K"/>
  28108. <param name="value" type="V"/>
  28109. <exception name="IOException" type="java.io.IOException"/>
  28110. <doc>
  28111. <![CDATA[Reads the next key/value pair from the input for processing.
  28112. @param key the key to read data into
  28113. @param value the value to read data into
  28114. @return true iff a key/value was read, false if at EOF]]>
  28115. </doc>
  28116. </method>
  28117. <method name="createKey" return="K"
  28118. abstract="false" native="false" synchronized="false"
  28119. static="false" final="false" visibility="public"
  28120. deprecated="not deprecated">
  28121. <doc>
  28122. <![CDATA[Create an object of the appropriate type to be used as a key.
  28123. @return a new key object.]]>
  28124. </doc>
  28125. </method>
  28126. <method name="createValue" return="V"
  28127. abstract="false" native="false" synchronized="false"
  28128. static="false" final="false" visibility="public"
  28129. deprecated="not deprecated">
  28130. <doc>
  28131. <![CDATA[Create an object of the appropriate type to be used as a value.
  28132. @return a new value object.]]>
  28133. </doc>
  28134. </method>
  28135. <method name="getPos" return="long"
  28136. abstract="false" native="false" synchronized="false"
  28137. static="false" final="false" visibility="public"
  28138. deprecated="not deprecated">
  28139. <exception name="IOException" type="java.io.IOException"/>
  28140. <doc>
  28141. <![CDATA[Returns the current position in the input.
  28142. @return the current position in the input.
  28143. @throws IOException]]>
  28144. </doc>
  28145. </method>
  28146. <method name="close"
  28147. abstract="false" native="false" synchronized="false"
  28148. static="false" final="false" visibility="public"
  28149. deprecated="not deprecated">
  28150. <exception name="IOException" type="java.io.IOException"/>
  28151. <doc>
  28152. <![CDATA[Close this {@link InputSplit} to future operations.
  28153. @throws IOException]]>
  28154. </doc>
  28155. </method>
  28156. <method name="getProgress" return="float"
  28157. abstract="false" native="false" synchronized="false"
  28158. static="false" final="false" visibility="public"
  28159. deprecated="not deprecated">
  28160. <exception name="IOException" type="java.io.IOException"/>
  28161. <doc>
  28162. <![CDATA[How much of the input has the {@link RecordReader} consumed i.e.
  28163. has been processed by?
  28164. @return progress from <code>0.0</code> to <code>1.0</code>.
  28165. @throws IOException]]>
  28166. </doc>
  28167. </method>
  28168. <doc>
  28169. <![CDATA[<code>RecordReader</code> reads &lt;key, value&gt; pairs from an
  28170. {@link InputSplit}.
  28171. <p><code>RecordReader</code>, typically, converts the byte-oriented view of
  28172. the input, provided by the <code>InputSplit</code>, and presents a
  28173. record-oriented view for the {@link Mapper} & {@link Reducer} tasks for
  28174. processing. It thus assumes the responsibility of processing record
  28175. boundaries and presenting the tasks with keys and values.</p>
  28176. @see InputSplit
  28177. @see InputFormat]]>
  28178. </doc>
  28179. </interface>
  28180. <!-- end interface org.apache.hadoop.mapred.RecordReader -->
  28181. <!-- start interface org.apache.hadoop.mapred.RecordWriter -->
  28182. <interface name="RecordWriter" abstract="true"
  28183. static="false" final="false" visibility="public"
  28184. deprecated="not deprecated">
  28185. <method name="write"
  28186. abstract="false" native="false" synchronized="false"
  28187. static="false" final="false" visibility="public"
  28188. deprecated="not deprecated">
  28189. <param name="key" type="K"/>
  28190. <param name="value" type="V"/>
  28191. <exception name="IOException" type="java.io.IOException"/>
  28192. <doc>
  28193. <![CDATA[Writes a key/value pair.
  28194. @param key the key to write.
  28195. @param value the value to write.
  28196. @throws IOException]]>
  28197. </doc>
  28198. </method>
  28199. <method name="close"
  28200. abstract="false" native="false" synchronized="false"
  28201. static="false" final="false" visibility="public"
  28202. deprecated="not deprecated">
  28203. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28204. <exception name="IOException" type="java.io.IOException"/>
  28205. <doc>
  28206. <![CDATA[Close this <code>RecordWriter</code> to future operations.
  28207. @param reporter facility to report progress.
  28208. @throws IOException]]>
  28209. </doc>
  28210. </method>
  28211. <doc>
  28212. <![CDATA[<code>RecordWriter</code> writes the output &lt;key, value&gt; pairs
  28213. to an output file.
  28214. <p><code>RecordWriter</code> implementations write the job outputs to the
  28215. {@link FileSystem}.
  28216. @see OutputFormat]]>
  28217. </doc>
  28218. </interface>
  28219. <!-- end interface org.apache.hadoop.mapred.RecordWriter -->
  28220. <!-- start interface org.apache.hadoop.mapred.Reducer -->
  28221. <interface name="Reducer" abstract="true"
  28222. static="false" final="false" visibility="public"
  28223. deprecated="not deprecated">
  28224. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  28225. <implements name="org.apache.hadoop.io.Closeable"/>
  28226. <method name="reduce"
  28227. abstract="false" native="false" synchronized="false"
  28228. static="false" final="false" visibility="public"
  28229. deprecated="not deprecated">
  28230. <param name="key" type="K2"/>
  28231. <param name="values" type="java.util.Iterator&lt;V2&gt;"/>
  28232. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K3, V3&gt;"/>
  28233. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28234. <exception name="IOException" type="java.io.IOException"/>
  28235. <doc>
  28236. <![CDATA[<i>Reduces</i> values for a given key.
  28237. <p>The framework calls this method for each
  28238. <code>&lt;key, (list of values)></code> pair in the grouped inputs.
  28239. Output values must be of the same type as input values. Input keys must
  28240. not be altered. The framework will <b>reuse</b> the key and value objects
  28241. that are passed into the reduce, therefore the application should clone
  28242. the objects they want to keep a copy of. In many cases, all values are
  28243. combined into zero or one value.
  28244. </p>
  28245. <p>Output pairs are collected with calls to
  28246. {@link OutputCollector#collect(Object,Object)}.</p>
  28247. <p>Applications can use the {@link Reporter} provided to report progress
  28248. or just indicate that they are alive. In scenarios where the application
  28249. takes an insignificant amount of time to process individual key/value
  28250. pairs, this is crucial since the framework might assume that the task has
  28251. timed-out and kill that task. The other way of avoiding this is to set
  28252. <a href="{@docRoot}/../hadoop-default.html#mapred.task.timeout">
  28253. mapred.task.timeout</a> to a high-enough value (or even zero for no
  28254. time-outs).</p>
  28255. @param key the key.
  28256. @param values the list of values to reduce.
  28257. @param output to collect keys and combined values.
  28258. @param reporter facility to report progress.]]>
  28259. </doc>
  28260. </method>
  28261. <doc>
  28262. <![CDATA[Reduces a set of intermediate values which share a key to a smaller set of
  28263. values.
  28264. <p>The number of <code>Reducer</code>s for the job is set by the user via
  28265. {@link JobConf#setNumReduceTasks(int)}. <code>Reducer</code> implementations
  28266. can access the {@link JobConf} for the job via the
  28267. {@link JobConfigurable#configure(JobConf)} method and initialize themselves.
  28268. Similarly they can use the {@link Closeable#close()} method for
  28269. de-initialization.</p>
  28270. <p><code>Reducer</code> has 3 primary phases:</p>
  28271. <ol>
  28272. <li>
  28273. <h4 id="Shuffle">Shuffle</h4>
  28274. <p><code>Reducer</code> is input the grouped output of a {@link Mapper}.
  28275. In the phase the framework, for each <code>Reducer</code>, fetches the
  28276. relevant partition of the output of all the <code>Mapper</code>s, via HTTP.
  28277. </p>
  28278. </li>
  28279. <li>
  28280. <h4 id="Sort">Sort</h4>
  28281. <p>The framework groups <code>Reducer</code> inputs by <code>key</code>s
  28282. (since different <code>Mapper</code>s may have output the same key) in this
  28283. stage.</p>
  28284. <p>The shuffle and sort phases occur simultaneously i.e. while outputs are
  28285. being fetched they are merged.</p>
  28286. <h5 id="SecondarySort">SecondarySort</h5>
  28287. <p>If equivalence rules for keys while grouping the intermediates are
  28288. different from those for grouping keys before reduction, then one may
  28289. specify a <code>Comparator</code> via
  28290. {@link JobConf#setOutputValueGroupingComparator(Class)}.Since
  28291. {@link JobConf#setOutputKeyComparatorClass(Class)} can be used to
  28292. control how intermediate keys are grouped, these can be used in conjunction
  28293. to simulate <i>secondary sort on values</i>.</p>
  28294. For example, say that you want to find duplicate web pages and tag them
  28295. all with the url of the "best" known example. You would set up the job
  28296. like:
  28297. <ul>
  28298. <li>Map Input Key: url</li>
  28299. <li>Map Input Value: document</li>
  28300. <li>Map Output Key: document checksum, url pagerank</li>
  28301. <li>Map Output Value: url</li>
  28302. <li>Partitioner: by checksum</li>
  28303. <li>OutputKeyComparator: by checksum and then decreasing pagerank</li>
  28304. <li>OutputValueGroupingComparator: by checksum</li>
  28305. </ul>
  28306. </li>
  28307. <li>
  28308. <h4 id="Reduce">Reduce</h4>
  28309. <p>In this phase the
  28310. {@link #reduce(Object, Iterator, OutputCollector, Reporter)}
  28311. method is called for each <code>&lt;key, (list of values)></code> pair in
  28312. the grouped inputs.</p>
  28313. <p>The output of the reduce task is typically written to the
  28314. {@link FileSystem} via
  28315. {@link OutputCollector#collect(Object, Object)}.</p>
  28316. </li>
  28317. </ol>
  28318. <p>The output of the <code>Reducer</code> is <b>not re-sorted</b>.</p>
  28319. <p>Example:</p>
  28320. <p><blockquote><pre>
  28321. public class MyReducer&lt;K extends WritableComparable, V extends Writable&gt;
  28322. extends MapReduceBase implements Reducer&lt;K, V, K, V&gt; {
  28323. static enum MyCounters { NUM_RECORDS }
  28324. private String reduceTaskId;
  28325. private int noKeys = 0;
  28326. public void configure(JobConf job) {
  28327. reduceTaskId = job.get("mapred.task.id");
  28328. }
  28329. public void reduce(K key, Iterator&lt;V&gt; values,
  28330. OutputCollector&lt;K, V&gt; output,
  28331. Reporter reporter)
  28332. throws IOException {
  28333. // Process
  28334. int noValues = 0;
  28335. while (values.hasNext()) {
  28336. V value = values.next();
  28337. // Increment the no. of values for this key
  28338. ++noValues;
  28339. // Process the &lt;key, value&gt; pair (assume this takes a while)
  28340. // ...
  28341. // ...
  28342. // Let the framework know that we are alive, and kicking!
  28343. if ((noValues%10) == 0) {
  28344. reporter.progress();
  28345. }
  28346. // Process some more
  28347. // ...
  28348. // ...
  28349. // Output the &lt;key, value&gt;
  28350. output.collect(key, value);
  28351. }
  28352. // Increment the no. of &lt;key, list of values&gt; pairs processed
  28353. ++noKeys;
  28354. // Increment counters
  28355. reporter.incrCounter(NUM_RECORDS, 1);
  28356. // Every 100 keys update application-level status
  28357. if ((noKeys%100) == 0) {
  28358. reporter.setStatus(reduceTaskId + " processed " + noKeys);
  28359. }
  28360. }
  28361. }
  28362. </pre></blockquote></p>
  28363. @see Mapper
  28364. @see Partitioner
  28365. @see Reporter
  28366. @see MapReduceBase]]>
  28367. </doc>
  28368. </interface>
  28369. <!-- end interface org.apache.hadoop.mapred.Reducer -->
  28370. <!-- start interface org.apache.hadoop.mapred.Reporter -->
  28371. <interface name="Reporter" abstract="true"
  28372. static="false" final="false" visibility="public"
  28373. deprecated="not deprecated">
  28374. <implements name="org.apache.hadoop.util.Progressable"/>
  28375. <method name="setStatus"
  28376. abstract="false" native="false" synchronized="false"
  28377. static="false" final="false" visibility="public"
  28378. deprecated="not deprecated">
  28379. <param name="status" type="java.lang.String"/>
  28380. <doc>
  28381. <![CDATA[Set the status description for the task.
  28382. @param status brief description of the current status.]]>
  28383. </doc>
  28384. </method>
  28385. <method name="incrCounter"
  28386. abstract="false" native="false" synchronized="false"
  28387. static="false" final="false" visibility="public"
  28388. deprecated="not deprecated">
  28389. <param name="key" type="java.lang.Enum"/>
  28390. <param name="amount" type="long"/>
  28391. <doc>
  28392. <![CDATA[Increments the counter identified by the key, which can be of
  28393. any {@link Enum} type, by the specified amount.
  28394. @param key key to identify the counter to be incremented. The key can be
  28395. be any <code>Enum</code>.
  28396. @param amount A non-negative amount by which the counter is to
  28397. be incremented.]]>
  28398. </doc>
  28399. </method>
  28400. <method name="incrCounter"
  28401. abstract="false" native="false" synchronized="false"
  28402. static="false" final="false" visibility="public"
  28403. deprecated="not deprecated">
  28404. <param name="group" type="java.lang.String"/>
  28405. <param name="counter" type="java.lang.String"/>
  28406. <param name="amount" type="long"/>
  28407. <doc>
  28408. <![CDATA[Increments the counter identified by the group and counter name
  28409. by the specified amount.
  28410. @param group name to identify the group of the counter to be incremented.
  28411. @param counter name to identify the counter within the group.
  28412. @param amount A non-negative amount by which the counter is to
  28413. be incremented.]]>
  28414. </doc>
  28415. </method>
  28416. <method name="getInputSplit" return="org.apache.hadoop.mapred.InputSplit"
  28417. abstract="false" native="false" synchronized="false"
  28418. static="false" final="false" visibility="public"
  28419. deprecated="not deprecated">
  28420. <exception name="UnsupportedOperationException" type="java.lang.UnsupportedOperationException"/>
  28421. <doc>
  28422. <![CDATA[Get the {@link InputSplit} object for a map.
  28423. @return the <code>InputSplit</code> that the map is reading from.
  28424. @throws UnsupportedOperationException if called outside a mapper]]>
  28425. </doc>
  28426. </method>
  28427. <field name="NULL" type="org.apache.hadoop.mapred.Reporter"
  28428. transient="false" volatile="false"
  28429. static="true" final="true" visibility="public"
  28430. deprecated="not deprecated">
  28431. <doc>
  28432. <![CDATA[A constant of Reporter type that does nothing.]]>
  28433. </doc>
  28434. </field>
  28435. <doc>
  28436. <![CDATA[A facility for Map-Reduce applications to report progress and update
  28437. counters, status information etc.
  28438. <p>{@link Mapper} and {@link Reducer} can use the <code>Reporter</code>
  28439. provided to report progress or just indicate that they are alive. In
  28440. scenarios where the application takes an insignificant amount of time to
  28441. process individual key/value pairs, this is crucial since the framework
  28442. might assume that the task has timed-out and kill that task.
  28443. <p>Applications can also update {@link Counters} via the provided
  28444. <code>Reporter</code> .</p>
  28445. @see Progressable
  28446. @see Counters]]>
  28447. </doc>
  28448. </interface>
  28449. <!-- end interface org.apache.hadoop.mapred.Reporter -->
  28450. <!-- start interface org.apache.hadoop.mapred.RunningJob -->
  28451. <interface name="RunningJob" abstract="true"
  28452. static="false" final="false" visibility="public"
  28453. deprecated="not deprecated">
  28454. <method name="getID" return="org.apache.hadoop.mapred.JobID"
  28455. abstract="false" native="false" synchronized="false"
  28456. static="false" final="false" visibility="public"
  28457. deprecated="not deprecated">
  28458. <doc>
  28459. <![CDATA[Get the job identifier.
  28460. @return the job identifier.]]>
  28461. </doc>
  28462. </method>
  28463. <method name="getJobID" return="java.lang.String"
  28464. abstract="false" native="false" synchronized="false"
  28465. static="false" final="false" visibility="public"
  28466. deprecated="This method is deprecated and will be removed. Applications should
  28467. rather use {@link #getID()}.">
  28468. <doc>
  28469. <![CDATA[@deprecated This method is deprecated and will be removed. Applications should
  28470. rather use {@link #getID()}.]]>
  28471. </doc>
  28472. </method>
  28473. <method name="getJobName" return="java.lang.String"
  28474. abstract="false" native="false" synchronized="false"
  28475. static="false" final="false" visibility="public"
  28476. deprecated="not deprecated">
  28477. <doc>
  28478. <![CDATA[Get the name of the job.
  28479. @return the name of the job.]]>
  28480. </doc>
  28481. </method>
  28482. <method name="getJobFile" return="java.lang.String"
  28483. abstract="false" native="false" synchronized="false"
  28484. static="false" final="false" visibility="public"
  28485. deprecated="not deprecated">
  28486. <doc>
  28487. <![CDATA[Get the path of the submitted job configuration.
  28488. @return the path of the submitted job configuration.]]>
  28489. </doc>
  28490. </method>
  28491. <method name="getTrackingURL" return="java.lang.String"
  28492. abstract="false" native="false" synchronized="false"
  28493. static="false" final="false" visibility="public"
  28494. deprecated="not deprecated">
  28495. <doc>
  28496. <![CDATA[Get the URL where some job progress information will be displayed.
  28497. @return the URL where some job progress information will be displayed.]]>
  28498. </doc>
  28499. </method>
  28500. <method name="mapProgress" return="float"
  28501. abstract="false" native="false" synchronized="false"
  28502. static="false" final="false" visibility="public"
  28503. deprecated="not deprecated">
  28504. <exception name="IOException" type="java.io.IOException"/>
  28505. <doc>
  28506. <![CDATA[Get the <i>progress</i> of the job's map-tasks, as a float between 0.0
  28507. and 1.0. When all map tasks have completed, the function returns 1.0.
  28508. @return the progress of the job's map-tasks.
  28509. @throws IOException]]>
  28510. </doc>
  28511. </method>
  28512. <method name="reduceProgress" return="float"
  28513. abstract="false" native="false" synchronized="false"
  28514. static="false" final="false" visibility="public"
  28515. deprecated="not deprecated">
  28516. <exception name="IOException" type="java.io.IOException"/>
  28517. <doc>
  28518. <![CDATA[Get the <i>progress</i> of the job's reduce-tasks, as a float between 0.0
  28519. and 1.0. When all reduce tasks have completed, the function returns 1.0.
  28520. @return the progress of the job's reduce-tasks.
  28521. @throws IOException]]>
  28522. </doc>
  28523. </method>
  28524. <method name="isComplete" return="boolean"
  28525. abstract="false" native="false" synchronized="false"
  28526. static="false" final="false" visibility="public"
  28527. deprecated="not deprecated">
  28528. <exception name="IOException" type="java.io.IOException"/>
  28529. <doc>
  28530. <![CDATA[Check if the job is finished or not.
  28531. This is a non-blocking call.
  28532. @return <code>true</code> if the job is complete, else <code>false</code>.
  28533. @throws IOException]]>
  28534. </doc>
  28535. </method>
  28536. <method name="isSuccessful" return="boolean"
  28537. abstract="false" native="false" synchronized="false"
  28538. static="false" final="false" visibility="public"
  28539. deprecated="not deprecated">
  28540. <exception name="IOException" type="java.io.IOException"/>
  28541. <doc>
  28542. <![CDATA[Check if the job completed successfully.
  28543. @return <code>true</code> if the job succeeded, else <code>false</code>.
  28544. @throws IOException]]>
  28545. </doc>
  28546. </method>
  28547. <method name="waitForCompletion"
  28548. abstract="false" native="false" synchronized="false"
  28549. static="false" final="false" visibility="public"
  28550. deprecated="not deprecated">
  28551. <exception name="IOException" type="java.io.IOException"/>
  28552. <doc>
  28553. <![CDATA[Blocks until the job is complete.
  28554. @throws IOException]]>
  28555. </doc>
  28556. </method>
  28557. <method name="killJob"
  28558. abstract="false" native="false" synchronized="false"
  28559. static="false" final="false" visibility="public"
  28560. deprecated="not deprecated">
  28561. <exception name="IOException" type="java.io.IOException"/>
  28562. <doc>
  28563. <![CDATA[Kill the running job. Blocks until all job tasks have been
  28564. killed as well. If the job is no longer running, it simply returns.
  28565. @throws IOException]]>
  28566. </doc>
  28567. </method>
  28568. <method name="getTaskCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  28569. abstract="false" native="false" synchronized="false"
  28570. static="false" final="false" visibility="public"
  28571. deprecated="not deprecated">
  28572. <param name="startFrom" type="int"/>
  28573. <exception name="IOException" type="java.io.IOException"/>
  28574. <doc>
  28575. <![CDATA[Get events indicating completion (success/failure) of component tasks.
  28576. @param startFrom index to start fetching events from
  28577. @return an array of {@link TaskCompletionEvent}s
  28578. @throws IOException]]>
  28579. </doc>
  28580. </method>
  28581. <method name="killTask"
  28582. abstract="false" native="false" synchronized="false"
  28583. static="false" final="false" visibility="public"
  28584. deprecated="not deprecated">
  28585. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  28586. <param name="shouldFail" type="boolean"/>
  28587. <exception name="IOException" type="java.io.IOException"/>
  28588. <doc>
  28589. <![CDATA[Kill indicated task attempt.
  28590. @param taskId the id of the task to be terminated.
  28591. @param shouldFail if true the task is failed and added to failed tasks
  28592. list, otherwise it is just killed, w/o affecting
  28593. job failure status.
  28594. @throws IOException]]>
  28595. </doc>
  28596. </method>
  28597. <method name="killTask"
  28598. abstract="false" native="false" synchronized="false"
  28599. static="false" final="false" visibility="public"
  28600. deprecated="Applications should rather use {@link #killTask(TaskAttemptID, boolean)}">
  28601. <param name="taskId" type="java.lang.String"/>
  28602. <param name="shouldFail" type="boolean"/>
  28603. <exception name="IOException" type="java.io.IOException"/>
  28604. <doc>
  28605. <![CDATA[@deprecated Applications should rather use {@link #killTask(TaskAttemptID, boolean)}]]>
  28606. </doc>
  28607. </method>
  28608. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  28609. abstract="false" native="false" synchronized="false"
  28610. static="false" final="false" visibility="public"
  28611. deprecated="not deprecated">
  28612. <exception name="IOException" type="java.io.IOException"/>
  28613. <doc>
  28614. <![CDATA[Gets the counters for this job.
  28615. @return the counters for this job.
  28616. @throws IOException]]>
  28617. </doc>
  28618. </method>
  28619. <doc>
  28620. <![CDATA[<code>RunningJob</code> is the user-interface to query for details on a
  28621. running Map-Reduce job.
  28622. <p>Clients can get hold of <code>RunningJob</code> via the {@link JobClient}
  28623. and then query the running-job for details such as name, configuration,
  28624. progress etc.</p>
  28625. @see JobClient]]>
  28626. </doc>
  28627. </interface>
  28628. <!-- end interface org.apache.hadoop.mapred.RunningJob -->
  28629. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  28630. <class name="SequenceFileAsBinaryInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  28631. abstract="false"
  28632. static="false" final="false" visibility="public"
  28633. deprecated="not deprecated">
  28634. <constructor name="SequenceFileAsBinaryInputFormat"
  28635. static="false" final="false" visibility="public"
  28636. deprecated="not deprecated">
  28637. </constructor>
  28638. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  28639. abstract="false" native="false" synchronized="false"
  28640. static="false" final="false" visibility="public"
  28641. deprecated="not deprecated">
  28642. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28643. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28644. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28645. <exception name="IOException" type="java.io.IOException"/>
  28646. </method>
  28647. <doc>
  28648. <![CDATA[InputFormat reading keys, values from SequenceFiles in binary (raw)
  28649. format.]]>
  28650. </doc>
  28651. </class>
  28652. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat -->
  28653. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  28654. <class name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" extends="java.lang.Object"
  28655. abstract="false"
  28656. static="true" final="false" visibility="public"
  28657. deprecated="not deprecated">
  28658. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"/>
  28659. <constructor name="SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  28660. static="false" final="false" visibility="public"
  28661. deprecated="not deprecated">
  28662. <exception name="IOException" type="java.io.IOException"/>
  28663. </constructor>
  28664. <method name="createKey" return="org.apache.hadoop.io.BytesWritable"
  28665. abstract="false" native="false" synchronized="false"
  28666. static="false" final="false" visibility="public"
  28667. deprecated="not deprecated">
  28668. </method>
  28669. <method name="createValue" return="org.apache.hadoop.io.BytesWritable"
  28670. abstract="false" native="false" synchronized="false"
  28671. static="false" final="false" visibility="public"
  28672. deprecated="not deprecated">
  28673. </method>
  28674. <method name="getKeyClassName" return="java.lang.String"
  28675. abstract="false" native="false" synchronized="false"
  28676. static="false" final="false" visibility="public"
  28677. deprecated="not deprecated">
  28678. <doc>
  28679. <![CDATA[Retrieve the name of the key class for this SequenceFile.
  28680. @see org.apache.hadoop.io.SequenceFile.Reader#getKeyClassName]]>
  28681. </doc>
  28682. </method>
  28683. <method name="getValueClassName" return="java.lang.String"
  28684. abstract="false" native="false" synchronized="false"
  28685. static="false" final="false" visibility="public"
  28686. deprecated="not deprecated">
  28687. <doc>
  28688. <![CDATA[Retrieve the name of the value class for this SequenceFile.
  28689. @see org.apache.hadoop.io.SequenceFile.Reader#getValueClassName]]>
  28690. </doc>
  28691. </method>
  28692. <method name="next" return="boolean"
  28693. abstract="false" native="false" synchronized="true"
  28694. static="false" final="false" visibility="public"
  28695. deprecated="not deprecated">
  28696. <param name="key" type="org.apache.hadoop.io.BytesWritable"/>
  28697. <param name="val" type="org.apache.hadoop.io.BytesWritable"/>
  28698. <exception name="IOException" type="java.io.IOException"/>
  28699. <doc>
  28700. <![CDATA[Read raw bytes from a SequenceFile.]]>
  28701. </doc>
  28702. </method>
  28703. <method name="getPos" return="long"
  28704. abstract="false" native="false" synchronized="false"
  28705. static="false" final="false" visibility="public"
  28706. deprecated="not deprecated">
  28707. <exception name="IOException" type="java.io.IOException"/>
  28708. </method>
  28709. <method name="close"
  28710. abstract="false" native="false" synchronized="false"
  28711. static="false" final="false" visibility="public"
  28712. deprecated="not deprecated">
  28713. <exception name="IOException" type="java.io.IOException"/>
  28714. </method>
  28715. <method name="getProgress" return="float"
  28716. abstract="false" native="false" synchronized="false"
  28717. static="false" final="false" visibility="public"
  28718. deprecated="not deprecated">
  28719. <exception name="IOException" type="java.io.IOException"/>
  28720. <doc>
  28721. <![CDATA[Return the progress within the input split
  28722. @return 0.0 to 1.0 of the input byte range]]>
  28723. </doc>
  28724. </method>
  28725. <doc>
  28726. <![CDATA[Read records from a SequenceFile as binary (raw) bytes.]]>
  28727. </doc>
  28728. </class>
  28729. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryInputFormat.SequenceFileAsBinaryRecordReader -->
  28730. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  28731. <class name="SequenceFileAsBinaryOutputFormat" extends="org.apache.hadoop.mapred.SequenceFileOutputFormat&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  28732. abstract="false"
  28733. static="false" final="false" visibility="public"
  28734. deprecated="not deprecated">
  28735. <constructor name="SequenceFileAsBinaryOutputFormat"
  28736. static="false" final="false" visibility="public"
  28737. deprecated="not deprecated">
  28738. </constructor>
  28739. <method name="setSequenceFileOutputKeyClass"
  28740. abstract="false" native="false" synchronized="false"
  28741. static="true" final="false" visibility="public"
  28742. deprecated="not deprecated">
  28743. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28744. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  28745. <doc>
  28746. <![CDATA[Set the key class for the {@link SequenceFile}
  28747. <p>This allows the user to specify the key class to be different
  28748. from the actual class ({@link BytesWritable}) used for writing </p>
  28749. @param conf the {@link JobConf} to modify
  28750. @param theClass the SequenceFile output key class.]]>
  28751. </doc>
  28752. </method>
  28753. <method name="setSequenceFileOutputValueClass"
  28754. abstract="false" native="false" synchronized="false"
  28755. static="true" final="false" visibility="public"
  28756. deprecated="not deprecated">
  28757. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28758. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  28759. <doc>
  28760. <![CDATA[Set the value class for the {@link SequenceFile}
  28761. <p>This allows the user to specify the value class to be different
  28762. from the actual class ({@link BytesWritable}) used for writing </p>
  28763. @param conf the {@link JobConf} to modify
  28764. @param theClass the SequenceFile output key class.]]>
  28765. </doc>
  28766. </method>
  28767. <method name="getSequenceFileOutputKeyClass" return="java.lang.Class&lt;?&gt;"
  28768. abstract="false" native="false" synchronized="false"
  28769. static="true" final="false" visibility="public"
  28770. deprecated="not deprecated">
  28771. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28772. <doc>
  28773. <![CDATA[Get the key class for the {@link SequenceFile}
  28774. @return the key class of the {@link SequenceFile}]]>
  28775. </doc>
  28776. </method>
  28777. <method name="getSequenceFileOutputValueClass" return="java.lang.Class&lt;?&gt;"
  28778. abstract="false" native="false" synchronized="false"
  28779. static="true" final="false" visibility="public"
  28780. deprecated="not deprecated">
  28781. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  28782. <doc>
  28783. <![CDATA[Get the value class for the {@link SequenceFile}
  28784. @return the value class of the {@link SequenceFile}]]>
  28785. </doc>
  28786. </method>
  28787. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;org.apache.hadoop.io.BytesWritable, org.apache.hadoop.io.BytesWritable&gt;"
  28788. abstract="false" native="false" synchronized="false"
  28789. static="false" final="false" visibility="public"
  28790. deprecated="not deprecated">
  28791. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  28792. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28793. <param name="name" type="java.lang.String"/>
  28794. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  28795. <exception name="IOException" type="java.io.IOException"/>
  28796. </method>
  28797. <method name="checkOutputSpecs"
  28798. abstract="false" native="false" synchronized="false"
  28799. static="false" final="false" visibility="public"
  28800. deprecated="not deprecated">
  28801. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  28802. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28803. <exception name="IOException" type="java.io.IOException"/>
  28804. </method>
  28805. <doc>
  28806. <![CDATA[An {@link OutputFormat} that writes keys, values to
  28807. {@link SequenceFile}s in binary(raw) format]]>
  28808. </doc>
  28809. </class>
  28810. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat -->
  28811. <!-- start class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  28812. <class name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" extends="java.lang.Object"
  28813. abstract="false"
  28814. static="true" final="false" visibility="protected"
  28815. deprecated="not deprecated">
  28816. <implements name="org.apache.hadoop.io.SequenceFile.ValueBytes"/>
  28817. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes"
  28818. static="false" final="false" visibility="public"
  28819. deprecated="not deprecated">
  28820. </constructor>
  28821. <constructor name="SequenceFileAsBinaryOutputFormat.WritableValueBytes" type="org.apache.hadoop.io.BytesWritable"
  28822. static="false" final="false" visibility="public"
  28823. deprecated="not deprecated">
  28824. </constructor>
  28825. <method name="reset"
  28826. abstract="false" native="false" synchronized="false"
  28827. static="false" final="false" visibility="public"
  28828. deprecated="not deprecated">
  28829. <param name="value" type="org.apache.hadoop.io.BytesWritable"/>
  28830. </method>
  28831. <method name="writeUncompressedBytes"
  28832. abstract="false" native="false" synchronized="false"
  28833. static="false" final="false" visibility="public"
  28834. deprecated="not deprecated">
  28835. <param name="outStream" type="java.io.DataOutputStream"/>
  28836. <exception name="IOException" type="java.io.IOException"/>
  28837. </method>
  28838. <method name="writeCompressedBytes"
  28839. abstract="false" native="false" synchronized="false"
  28840. static="false" final="false" visibility="public"
  28841. deprecated="not deprecated">
  28842. <param name="outStream" type="java.io.DataOutputStream"/>
  28843. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  28844. <exception name="IOException" type="java.io.IOException"/>
  28845. </method>
  28846. <method name="getSize" return="int"
  28847. abstract="false" native="false" synchronized="false"
  28848. static="false" final="false" visibility="public"
  28849. deprecated="not deprecated">
  28850. </method>
  28851. <doc>
  28852. <![CDATA[Inner class used for appendRaw]]>
  28853. </doc>
  28854. </class>
  28855. <!-- end class org.apache.hadoop.mapred.SequenceFileAsBinaryOutputFormat.WritableValueBytes -->
  28856. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  28857. <class name="SequenceFileAsTextInputFormat" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  28858. abstract="false"
  28859. static="false" final="false" visibility="public"
  28860. deprecated="not deprecated">
  28861. <constructor name="SequenceFileAsTextInputFormat"
  28862. static="false" final="false" visibility="public"
  28863. deprecated="not deprecated">
  28864. </constructor>
  28865. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  28866. abstract="false" native="false" synchronized="false"
  28867. static="false" final="false" visibility="public"
  28868. deprecated="not deprecated">
  28869. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28870. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28871. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28872. <exception name="IOException" type="java.io.IOException"/>
  28873. </method>
  28874. <doc>
  28875. <![CDATA[This class is similar to SequenceFileInputFormat, except it generates SequenceFileAsTextRecordReader
  28876. which converts the input keys and values to their String forms by calling toString() method.]]>
  28877. </doc>
  28878. </class>
  28879. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextInputFormat -->
  28880. <!-- start class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  28881. <class name="SequenceFileAsTextRecordReader" extends="java.lang.Object"
  28882. abstract="false"
  28883. static="false" final="false" visibility="public"
  28884. deprecated="not deprecated">
  28885. <implements name="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  28886. <constructor name="SequenceFileAsTextRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  28887. static="false" final="false" visibility="public"
  28888. deprecated="not deprecated">
  28889. <exception name="IOException" type="java.io.IOException"/>
  28890. </constructor>
  28891. <method name="createKey" return="org.apache.hadoop.io.Text"
  28892. abstract="false" native="false" synchronized="false"
  28893. static="false" final="false" visibility="public"
  28894. deprecated="not deprecated">
  28895. </method>
  28896. <method name="createValue" return="org.apache.hadoop.io.Text"
  28897. abstract="false" native="false" synchronized="false"
  28898. static="false" final="false" visibility="public"
  28899. deprecated="not deprecated">
  28900. </method>
  28901. <method name="next" return="boolean"
  28902. abstract="false" native="false" synchronized="true"
  28903. static="false" final="false" visibility="public"
  28904. deprecated="not deprecated">
  28905. <param name="key" type="org.apache.hadoop.io.Text"/>
  28906. <param name="value" type="org.apache.hadoop.io.Text"/>
  28907. <exception name="IOException" type="java.io.IOException"/>
  28908. <doc>
  28909. <![CDATA[Read key/value pair in a line.]]>
  28910. </doc>
  28911. </method>
  28912. <method name="getProgress" return="float"
  28913. abstract="false" native="false" synchronized="false"
  28914. static="false" final="false" visibility="public"
  28915. deprecated="not deprecated">
  28916. <exception name="IOException" type="java.io.IOException"/>
  28917. </method>
  28918. <method name="getPos" return="long"
  28919. abstract="false" native="false" synchronized="true"
  28920. static="false" final="false" visibility="public"
  28921. deprecated="not deprecated">
  28922. <exception name="IOException" type="java.io.IOException"/>
  28923. </method>
  28924. <method name="close"
  28925. abstract="false" native="false" synchronized="true"
  28926. static="false" final="false" visibility="public"
  28927. deprecated="not deprecated">
  28928. <exception name="IOException" type="java.io.IOException"/>
  28929. </method>
  28930. <doc>
  28931. <![CDATA[This class converts the input keys and values to their String forms by calling toString()
  28932. method. This class to SequenceFileAsTextInputFormat class is as LineRecordReader
  28933. class to TextInputFormat class.]]>
  28934. </doc>
  28935. </class>
  28936. <!-- end class org.apache.hadoop.mapred.SequenceFileAsTextRecordReader -->
  28937. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  28938. <class name="SequenceFileInputFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFormat&lt;K, V&gt;"
  28939. abstract="false"
  28940. static="false" final="false" visibility="public"
  28941. deprecated="not deprecated">
  28942. <constructor name="SequenceFileInputFilter"
  28943. static="false" final="false" visibility="public"
  28944. deprecated="not deprecated">
  28945. </constructor>
  28946. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  28947. abstract="false" native="false" synchronized="false"
  28948. static="false" final="false" visibility="public"
  28949. deprecated="not deprecated">
  28950. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  28951. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  28952. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  28953. <exception name="IOException" type="java.io.IOException"/>
  28954. <doc>
  28955. <![CDATA[Create a record reader for the given split
  28956. @param split file split
  28957. @param job job configuration
  28958. @param reporter reporter who sends report to task tracker
  28959. @return RecordReader]]>
  28960. </doc>
  28961. </method>
  28962. <method name="setFilterClass"
  28963. abstract="false" native="false" synchronized="false"
  28964. static="true" final="false" visibility="public"
  28965. deprecated="not deprecated">
  28966. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  28967. <param name="filterClass" type="java.lang.Class"/>
  28968. <doc>
  28969. <![CDATA[set the filter class
  28970. @param conf application configuration
  28971. @param filterClass filter class]]>
  28972. </doc>
  28973. </method>
  28974. <doc>
  28975. <![CDATA[A class that allows a map/red job to work on a sample of sequence files.
  28976. The sample is decided by the filter class set by the job.]]>
  28977. </doc>
  28978. </class>
  28979. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter -->
  28980. <!-- start interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  28981. <interface name="SequenceFileInputFilter.Filter" abstract="true"
  28982. static="true" final="false" visibility="public"
  28983. deprecated="not deprecated">
  28984. <implements name="org.apache.hadoop.conf.Configurable"/>
  28985. <method name="accept" return="boolean"
  28986. abstract="false" native="false" synchronized="false"
  28987. static="false" final="false" visibility="public"
  28988. deprecated="not deprecated">
  28989. <param name="key" type="java.lang.Object"/>
  28990. <doc>
  28991. <![CDATA[filter function
  28992. Decide if a record should be filtered or not
  28993. @param key record key
  28994. @return true if a record is accepted; return false otherwise]]>
  28995. </doc>
  28996. </method>
  28997. <doc>
  28998. <![CDATA[filter interface]]>
  28999. </doc>
  29000. </interface>
  29001. <!-- end interface org.apache.hadoop.mapred.SequenceFileInputFilter.Filter -->
  29002. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  29003. <class name="SequenceFileInputFilter.FilterBase" extends="java.lang.Object"
  29004. abstract="true"
  29005. static="true" final="false" visibility="public"
  29006. deprecated="not deprecated">
  29007. <implements name="org.apache.hadoop.mapred.SequenceFileInputFilter.Filter"/>
  29008. <constructor name="SequenceFileInputFilter.FilterBase"
  29009. static="false" final="false" visibility="public"
  29010. deprecated="not deprecated">
  29011. </constructor>
  29012. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  29013. abstract="false" native="false" synchronized="false"
  29014. static="false" final="false" visibility="public"
  29015. deprecated="not deprecated">
  29016. </method>
  29017. <doc>
  29018. <![CDATA[base class for Filters]]>
  29019. </doc>
  29020. </class>
  29021. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase -->
  29022. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  29023. <class name="SequenceFileInputFilter.MD5Filter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  29024. abstract="false"
  29025. static="true" final="false" visibility="public"
  29026. deprecated="not deprecated">
  29027. <constructor name="SequenceFileInputFilter.MD5Filter"
  29028. static="false" final="false" visibility="public"
  29029. deprecated="not deprecated">
  29030. </constructor>
  29031. <method name="setFrequency"
  29032. abstract="false" native="false" synchronized="false"
  29033. static="true" final="false" visibility="public"
  29034. deprecated="not deprecated">
  29035. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29036. <param name="frequency" type="int"/>
  29037. <doc>
  29038. <![CDATA[set the filtering frequency in configuration
  29039. @param conf configuration
  29040. @param frequency filtering frequency]]>
  29041. </doc>
  29042. </method>
  29043. <method name="setConf"
  29044. abstract="false" native="false" synchronized="false"
  29045. static="false" final="false" visibility="public"
  29046. deprecated="not deprecated">
  29047. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29048. <doc>
  29049. <![CDATA[configure the filter according to configuration
  29050. @param conf configuration]]>
  29051. </doc>
  29052. </method>
  29053. <method name="accept" return="boolean"
  29054. abstract="false" native="false" synchronized="false"
  29055. static="false" final="false" visibility="public"
  29056. deprecated="not deprecated">
  29057. <param name="key" type="java.lang.Object"/>
  29058. <doc>
  29059. <![CDATA[Filtering method
  29060. If MD5(key) % frequency==0, return true; otherwise return false
  29061. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  29062. </doc>
  29063. </method>
  29064. <field name="MD5_LEN" type="int"
  29065. transient="false" volatile="false"
  29066. static="true" final="true" visibility="public"
  29067. deprecated="not deprecated">
  29068. </field>
  29069. <doc>
  29070. <![CDATA[This class returns a set of records by examing the MD5 digest of its
  29071. key against a filtering frequency <i>f</i>. The filtering criteria is
  29072. MD5(key) % f == 0.]]>
  29073. </doc>
  29074. </class>
  29075. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.MD5Filter -->
  29076. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  29077. <class name="SequenceFileInputFilter.PercentFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  29078. abstract="false"
  29079. static="true" final="false" visibility="public"
  29080. deprecated="not deprecated">
  29081. <constructor name="SequenceFileInputFilter.PercentFilter"
  29082. static="false" final="false" visibility="public"
  29083. deprecated="not deprecated">
  29084. </constructor>
  29085. <method name="setFrequency"
  29086. abstract="false" native="false" synchronized="false"
  29087. static="true" final="false" visibility="public"
  29088. deprecated="not deprecated">
  29089. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29090. <param name="frequency" type="int"/>
  29091. <doc>
  29092. <![CDATA[set the frequency and stores it in conf
  29093. @param conf configuration
  29094. @param frequency filtering frequencey]]>
  29095. </doc>
  29096. </method>
  29097. <method name="setConf"
  29098. abstract="false" native="false" synchronized="false"
  29099. static="false" final="false" visibility="public"
  29100. deprecated="not deprecated">
  29101. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29102. <doc>
  29103. <![CDATA[configure the filter by checking the configuration
  29104. @param conf configuration]]>
  29105. </doc>
  29106. </method>
  29107. <method name="accept" return="boolean"
  29108. abstract="false" native="false" synchronized="false"
  29109. static="false" final="false" visibility="public"
  29110. deprecated="not deprecated">
  29111. <param name="key" type="java.lang.Object"/>
  29112. <doc>
  29113. <![CDATA[Filtering method
  29114. If record# % frequency==0, return true; otherwise return false
  29115. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  29116. </doc>
  29117. </method>
  29118. <doc>
  29119. <![CDATA[This class returns a percentage of records
  29120. The percentage is determined by a filtering frequency <i>f</i> using
  29121. the criteria record# % f == 0.
  29122. For example, if the frequency is 10, one out of 10 records is returned.]]>
  29123. </doc>
  29124. </class>
  29125. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.PercentFilter -->
  29126. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  29127. <class name="SequenceFileInputFilter.RegexFilter" extends="org.apache.hadoop.mapred.SequenceFileInputFilter.FilterBase"
  29128. abstract="false"
  29129. static="true" final="false" visibility="public"
  29130. deprecated="not deprecated">
  29131. <constructor name="SequenceFileInputFilter.RegexFilter"
  29132. static="false" final="false" visibility="public"
  29133. deprecated="not deprecated">
  29134. </constructor>
  29135. <method name="setPattern"
  29136. abstract="false" native="false" synchronized="false"
  29137. static="true" final="false" visibility="public"
  29138. deprecated="not deprecated">
  29139. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29140. <param name="regex" type="java.lang.String"/>
  29141. <exception name="PatternSyntaxException" type="java.util.regex.PatternSyntaxException"/>
  29142. <doc>
  29143. <![CDATA[Define the filtering regex and stores it in conf
  29144. @param conf where the regex is set
  29145. @param regex regex used as a filter]]>
  29146. </doc>
  29147. </method>
  29148. <method name="setConf"
  29149. abstract="false" native="false" synchronized="false"
  29150. static="false" final="false" visibility="public"
  29151. deprecated="not deprecated">
  29152. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29153. <doc>
  29154. <![CDATA[configure the Filter by checking the configuration]]>
  29155. </doc>
  29156. </method>
  29157. <method name="accept" return="boolean"
  29158. abstract="false" native="false" synchronized="false"
  29159. static="false" final="false" visibility="public"
  29160. deprecated="not deprecated">
  29161. <param name="key" type="java.lang.Object"/>
  29162. <doc>
  29163. <![CDATA[Filtering method
  29164. If key matches the regex, return true; otherwise return false
  29165. @see org.apache.hadoop.mapred.SequenceFileInputFilter.Filter#accept(Object)]]>
  29166. </doc>
  29167. </method>
  29168. <doc>
  29169. <![CDATA[Records filter by matching key to regex]]>
  29170. </doc>
  29171. </class>
  29172. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFilter.RegexFilter -->
  29173. <!-- start class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  29174. <class name="SequenceFileInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;K, V&gt;"
  29175. abstract="false"
  29176. static="false" final="false" visibility="public"
  29177. deprecated="not deprecated">
  29178. <constructor name="SequenceFileInputFormat"
  29179. static="false" final="false" visibility="public"
  29180. deprecated="not deprecated">
  29181. </constructor>
  29182. <method name="listPaths" return="org.apache.hadoop.fs.Path[]"
  29183. abstract="false" native="false" synchronized="false"
  29184. static="false" final="false" visibility="protected"
  29185. deprecated="not deprecated">
  29186. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29187. <exception name="IOException" type="java.io.IOException"/>
  29188. </method>
  29189. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"
  29190. abstract="false" native="false" synchronized="false"
  29191. static="false" final="false" visibility="public"
  29192. deprecated="not deprecated">
  29193. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  29194. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29195. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  29196. <exception name="IOException" type="java.io.IOException"/>
  29197. </method>
  29198. <doc>
  29199. <![CDATA[An {@link InputFormat} for {@link SequenceFile}s.]]>
  29200. </doc>
  29201. </class>
  29202. <!-- end class org.apache.hadoop.mapred.SequenceFileInputFormat -->
  29203. <!-- start class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  29204. <class name="SequenceFileOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  29205. abstract="false"
  29206. static="false" final="false" visibility="public"
  29207. deprecated="not deprecated">
  29208. <constructor name="SequenceFileOutputFormat"
  29209. static="false" final="false" visibility="public"
  29210. deprecated="not deprecated">
  29211. </constructor>
  29212. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  29213. abstract="false" native="false" synchronized="false"
  29214. static="false" final="false" visibility="public"
  29215. deprecated="not deprecated">
  29216. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  29217. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  29218. <param name="name" type="java.lang.String"/>
  29219. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  29220. <exception name="IOException" type="java.io.IOException"/>
  29221. </method>
  29222. <method name="getReaders" return="org.apache.hadoop.io.SequenceFile.Reader[]"
  29223. abstract="false" native="false" synchronized="false"
  29224. static="true" final="false" visibility="public"
  29225. deprecated="not deprecated">
  29226. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  29227. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  29228. <exception name="IOException" type="java.io.IOException"/>
  29229. <doc>
  29230. <![CDATA[Open the output generated by this format.]]>
  29231. </doc>
  29232. </method>
  29233. <method name="getOutputCompressionType" return="org.apache.hadoop.io.SequenceFile.CompressionType"
  29234. abstract="false" native="false" synchronized="false"
  29235. static="true" final="false" visibility="public"
  29236. deprecated="not deprecated">
  29237. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  29238. <doc>
  29239. <![CDATA[Get the {@link CompressionType} for the output {@link SequenceFile}.
  29240. @param conf the {@link JobConf}
  29241. @return the {@link CompressionType} for the output {@link SequenceFile},
  29242. defaulting to {@link CompressionType#RECORD}]]>
  29243. </doc>
  29244. </method>
  29245. <method name="setOutputCompressionType"
  29246. abstract="false" native="false" synchronized="false"
  29247. static="true" final="false" visibility="public"
  29248. deprecated="not deprecated">
  29249. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  29250. <param name="style" type="org.apache.hadoop.io.SequenceFile.CompressionType"/>
  29251. <doc>
  29252. <![CDATA[Set the {@link CompressionType} for the output {@link SequenceFile}.
  29253. @param conf the {@link JobConf} to modify
  29254. @param style the {@link CompressionType} for the output
  29255. {@link SequenceFile}]]>
  29256. </doc>
  29257. </method>
  29258. <doc>
  29259. <![CDATA[An {@link OutputFormat} that writes {@link SequenceFile}s.]]>
  29260. </doc>
  29261. </class>
  29262. <!-- end class org.apache.hadoop.mapred.SequenceFileOutputFormat -->
  29263. <!-- start class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  29264. <class name="SequenceFileRecordReader" extends="java.lang.Object"
  29265. abstract="false"
  29266. static="false" final="false" visibility="public"
  29267. deprecated="not deprecated">
  29268. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  29269. <constructor name="SequenceFileRecordReader" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.mapred.FileSplit"
  29270. static="false" final="false" visibility="public"
  29271. deprecated="not deprecated">
  29272. <exception name="IOException" type="java.io.IOException"/>
  29273. </constructor>
  29274. <method name="getKeyClass" return="java.lang.Class"
  29275. abstract="false" native="false" synchronized="false"
  29276. static="false" final="false" visibility="public"
  29277. deprecated="not deprecated">
  29278. <doc>
  29279. <![CDATA[The class of key that must be passed to {@link
  29280. #next(Object, Object)}..]]>
  29281. </doc>
  29282. </method>
  29283. <method name="getValueClass" return="java.lang.Class"
  29284. abstract="false" native="false" synchronized="false"
  29285. static="false" final="false" visibility="public"
  29286. deprecated="not deprecated">
  29287. <doc>
  29288. <![CDATA[The class of value that must be passed to {@link
  29289. #next(Object, Object)}..]]>
  29290. </doc>
  29291. </method>
  29292. <method name="createKey" return="K"
  29293. abstract="false" native="false" synchronized="false"
  29294. static="false" final="false" visibility="public"
  29295. deprecated="not deprecated">
  29296. </method>
  29297. <method name="createValue" return="V"
  29298. abstract="false" native="false" synchronized="false"
  29299. static="false" final="false" visibility="public"
  29300. deprecated="not deprecated">
  29301. </method>
  29302. <method name="next" return="boolean"
  29303. abstract="false" native="false" synchronized="true"
  29304. static="false" final="false" visibility="public"
  29305. deprecated="not deprecated">
  29306. <param name="key" type="K"/>
  29307. <param name="value" type="V"/>
  29308. <exception name="IOException" type="java.io.IOException"/>
  29309. </method>
  29310. <method name="next" return="boolean"
  29311. abstract="false" native="false" synchronized="true"
  29312. static="false" final="false" visibility="protected"
  29313. deprecated="not deprecated">
  29314. <param name="key" type="K"/>
  29315. <exception name="IOException" type="java.io.IOException"/>
  29316. </method>
  29317. <method name="getCurrentValue"
  29318. abstract="false" native="false" synchronized="true"
  29319. static="false" final="false" visibility="protected"
  29320. deprecated="not deprecated">
  29321. <param name="value" type="V"/>
  29322. <exception name="IOException" type="java.io.IOException"/>
  29323. </method>
  29324. <method name="getProgress" return="float"
  29325. abstract="false" native="false" synchronized="false"
  29326. static="false" final="false" visibility="public"
  29327. deprecated="not deprecated">
  29328. <exception name="IOException" type="java.io.IOException"/>
  29329. <doc>
  29330. <![CDATA[Return the progress within the input split
  29331. @return 0.0 to 1.0 of the input byte range]]>
  29332. </doc>
  29333. </method>
  29334. <method name="getPos" return="long"
  29335. abstract="false" native="false" synchronized="true"
  29336. static="false" final="false" visibility="public"
  29337. deprecated="not deprecated">
  29338. <exception name="IOException" type="java.io.IOException"/>
  29339. </method>
  29340. <method name="seek"
  29341. abstract="false" native="false" synchronized="true"
  29342. static="false" final="false" visibility="protected"
  29343. deprecated="not deprecated">
  29344. <param name="pos" type="long"/>
  29345. <exception name="IOException" type="java.io.IOException"/>
  29346. </method>
  29347. <method name="close"
  29348. abstract="false" native="false" synchronized="true"
  29349. static="false" final="false" visibility="public"
  29350. deprecated="not deprecated">
  29351. <exception name="IOException" type="java.io.IOException"/>
  29352. </method>
  29353. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  29354. transient="false" volatile="false"
  29355. static="false" final="false" visibility="protected"
  29356. deprecated="not deprecated">
  29357. </field>
  29358. <doc>
  29359. <![CDATA[An {@link RecordReader} for {@link SequenceFile}s.]]>
  29360. </doc>
  29361. </class>
  29362. <!-- end class org.apache.hadoop.mapred.SequenceFileRecordReader -->
  29363. <!-- start class org.apache.hadoop.mapred.StatusHttpServer -->
  29364. <class name="StatusHttpServer" extends="java.lang.Object"
  29365. abstract="false"
  29366. static="false" final="false" visibility="public"
  29367. deprecated="not deprecated">
  29368. <constructor name="StatusHttpServer" type="java.lang.String, java.lang.String, int, boolean"
  29369. static="false" final="false" visibility="public"
  29370. deprecated="not deprecated">
  29371. <exception name="IOException" type="java.io.IOException"/>
  29372. <doc>
  29373. <![CDATA[Create a status server on the given port.
  29374. The jsp scripts are taken from src/webapps/<name>.
  29375. @param name The name of the server
  29376. @param port The port to use on the server
  29377. @param findPort whether the server should start at the given port and
  29378. increment by 1 until it finds a free port.]]>
  29379. </doc>
  29380. </constructor>
  29381. <method name="setAttribute"
  29382. abstract="false" native="false" synchronized="false"
  29383. static="false" final="false" visibility="public"
  29384. deprecated="not deprecated">
  29385. <param name="name" type="java.lang.String"/>
  29386. <param name="value" type="java.lang.Object"/>
  29387. <doc>
  29388. <![CDATA[Set a value in the webapp context. These values are available to the jsp
  29389. pages as "application.getAttribute(name)".
  29390. @param name The name of the attribute
  29391. @param value The value of the attribute]]>
  29392. </doc>
  29393. </method>
  29394. <method name="addServlet"
  29395. abstract="false" native="false" synchronized="false"
  29396. static="false" final="false" visibility="public"
  29397. deprecated="not deprecated">
  29398. <param name="name" type="java.lang.String"/>
  29399. <param name="pathSpec" type="java.lang.String"/>
  29400. <param name="servletClass" type="java.lang.Class&lt;T&gt;"/>
  29401. <doc>
  29402. <![CDATA[Add a servlet in the server.
  29403. @param name The name of the servlet (can be passed as null)
  29404. @param pathSpec The path spec for the servlet
  29405. @param servletClass The servlet class]]>
  29406. </doc>
  29407. </method>
  29408. <method name="getAttribute" return="java.lang.Object"
  29409. abstract="false" native="false" synchronized="false"
  29410. static="false" final="false" visibility="public"
  29411. deprecated="not deprecated">
  29412. <param name="name" type="java.lang.String"/>
  29413. <doc>
  29414. <![CDATA[Get the value in the webapp context.
  29415. @param name The name of the attribute
  29416. @return The value of the attribute]]>
  29417. </doc>
  29418. </method>
  29419. <method name="getPort" return="int"
  29420. abstract="false" native="false" synchronized="false"
  29421. static="false" final="false" visibility="public"
  29422. deprecated="not deprecated">
  29423. <doc>
  29424. <![CDATA[Get the port that the server is on
  29425. @return the port]]>
  29426. </doc>
  29427. </method>
  29428. <method name="setThreads"
  29429. abstract="false" native="false" synchronized="false"
  29430. static="false" final="false" visibility="public"
  29431. deprecated="not deprecated">
  29432. <param name="min" type="int"/>
  29433. <param name="max" type="int"/>
  29434. </method>
  29435. <method name="addSslListener"
  29436. abstract="false" native="false" synchronized="false"
  29437. static="false" final="false" visibility="public"
  29438. deprecated="not deprecated">
  29439. <param name="addr" type="java.net.InetSocketAddress"/>
  29440. <param name="keystore" type="java.lang.String"/>
  29441. <param name="storPass" type="java.lang.String"/>
  29442. <param name="keyPass" type="java.lang.String"/>
  29443. <exception name="IOException" type="java.io.IOException"/>
  29444. <doc>
  29445. <![CDATA[Configure an ssl listener on the server.
  29446. @param addr address to listen on
  29447. @param keystore location of the keystore
  29448. @param storPass password for the keystore
  29449. @param keyPass password for the key]]>
  29450. </doc>
  29451. </method>
  29452. <method name="start"
  29453. abstract="false" native="false" synchronized="false"
  29454. static="false" final="false" visibility="public"
  29455. deprecated="not deprecated">
  29456. <exception name="IOException" type="java.io.IOException"/>
  29457. <doc>
  29458. <![CDATA[Start the server. Does not wait for the server to start.]]>
  29459. </doc>
  29460. </method>
  29461. <method name="stop"
  29462. abstract="false" native="false" synchronized="false"
  29463. static="false" final="false" visibility="public"
  29464. deprecated="not deprecated">
  29465. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  29466. <doc>
  29467. <![CDATA[stop the server]]>
  29468. </doc>
  29469. </method>
  29470. <doc>
  29471. <![CDATA[Create a Jetty embedded server to answer http requests. The primary goal
  29472. is to serve up status information for the server.
  29473. There are three contexts:
  29474. "/logs/" -> points to the log directory
  29475. "/static/" -> points to common static files (src/webapps/static)
  29476. "/" -> the jsp server code from (src/webapps/<name>)]]>
  29477. </doc>
  29478. </class>
  29479. <!-- end class org.apache.hadoop.mapred.StatusHttpServer -->
  29480. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  29481. <class name="StatusHttpServer.StackServlet" extends="javax.servlet.http.HttpServlet"
  29482. abstract="false"
  29483. static="true" final="false" visibility="public"
  29484. deprecated="not deprecated">
  29485. <constructor name="StatusHttpServer.StackServlet"
  29486. static="false" final="false" visibility="public"
  29487. deprecated="not deprecated">
  29488. </constructor>
  29489. <method name="doGet"
  29490. abstract="false" native="false" synchronized="false"
  29491. static="false" final="false" visibility="public"
  29492. deprecated="not deprecated">
  29493. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  29494. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  29495. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29496. <exception name="IOException" type="java.io.IOException"/>
  29497. </method>
  29498. <doc>
  29499. <![CDATA[A very simple servlet to serve up a text representation of the current
  29500. stack traces. It both returns the stacks to the caller and logs them.
  29501. Currently the stack traces are done sequentially rather than exactly the
  29502. same data.]]>
  29503. </doc>
  29504. </class>
  29505. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.StackServlet -->
  29506. <!-- start class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  29507. <class name="StatusHttpServer.TaskGraphServlet" extends="javax.servlet.http.HttpServlet"
  29508. abstract="false"
  29509. static="true" final="false" visibility="public"
  29510. deprecated="not deprecated">
  29511. <constructor name="StatusHttpServer.TaskGraphServlet"
  29512. static="false" final="false" visibility="public"
  29513. deprecated="not deprecated">
  29514. </constructor>
  29515. <method name="doGet"
  29516. abstract="false" native="false" synchronized="false"
  29517. static="false" final="false" visibility="public"
  29518. deprecated="not deprecated">
  29519. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  29520. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  29521. <exception name="ServletException" type="javax.servlet.ServletException"/>
  29522. <exception name="IOException" type="java.io.IOException"/>
  29523. </method>
  29524. <field name="width" type="int"
  29525. transient="false" volatile="false"
  29526. static="true" final="true" visibility="public"
  29527. deprecated="not deprecated">
  29528. <doc>
  29529. <![CDATA[height of the graph w/o margins]]>
  29530. </doc>
  29531. </field>
  29532. <field name="height" type="int"
  29533. transient="false" volatile="false"
  29534. static="true" final="true" visibility="public"
  29535. deprecated="not deprecated">
  29536. <doc>
  29537. <![CDATA[height of the graph w/o margins]]>
  29538. </doc>
  29539. </field>
  29540. <field name="ymargin" type="int"
  29541. transient="false" volatile="false"
  29542. static="true" final="true" visibility="public"
  29543. deprecated="not deprecated">
  29544. <doc>
  29545. <![CDATA[margin space on y axis]]>
  29546. </doc>
  29547. </field>
  29548. <field name="xmargin" type="int"
  29549. transient="false" volatile="false"
  29550. static="true" final="true" visibility="public"
  29551. deprecated="not deprecated">
  29552. <doc>
  29553. <![CDATA[margin space on x axis]]>
  29554. </doc>
  29555. </field>
  29556. <doc>
  29557. <![CDATA[The servlet that outputs svg graphics for map / reduce task
  29558. statuses]]>
  29559. </doc>
  29560. </class>
  29561. <!-- end class org.apache.hadoop.mapred.StatusHttpServer.TaskGraphServlet -->
  29562. <!-- start class org.apache.hadoop.mapred.TaskAttemptID -->
  29563. <class name="TaskAttemptID" extends="org.apache.hadoop.mapred.ID"
  29564. abstract="false"
  29565. static="false" final="false" visibility="public"
  29566. deprecated="not deprecated">
  29567. <constructor name="TaskAttemptID" type="org.apache.hadoop.mapred.TaskID, int"
  29568. static="false" final="false" visibility="public"
  29569. deprecated="not deprecated">
  29570. <doc>
  29571. <![CDATA[Constructs a TaskAttemptID object from given {@link TaskID}.
  29572. @param taskId TaskID that this task belongs to
  29573. @param id the task attempt number]]>
  29574. </doc>
  29575. </constructor>
  29576. <constructor name="TaskAttemptID" type="java.lang.String, int, boolean, int, int"
  29577. static="false" final="false" visibility="public"
  29578. deprecated="not deprecated">
  29579. <doc>
  29580. <![CDATA[Constructs a TaskId object from given parts.
  29581. @param jtIdentifier jobTracker identifier
  29582. @param jobId job number
  29583. @param isMap whether the tip is a map
  29584. @param taskId taskId number
  29585. @param id the task attempt number]]>
  29586. </doc>
  29587. </constructor>
  29588. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  29589. abstract="false" native="false" synchronized="false"
  29590. static="false" final="false" visibility="public"
  29591. deprecated="not deprecated">
  29592. <doc>
  29593. <![CDATA[Returns the {@link JobID} object that this task attempt belongs to]]>
  29594. </doc>
  29595. </method>
  29596. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  29597. abstract="false" native="false" synchronized="false"
  29598. static="false" final="false" visibility="public"
  29599. deprecated="not deprecated">
  29600. <doc>
  29601. <![CDATA[Returns the {@link TaskID} object that this task attempt belongs to]]>
  29602. </doc>
  29603. </method>
  29604. <method name="isMap" return="boolean"
  29605. abstract="false" native="false" synchronized="false"
  29606. static="false" final="false" visibility="public"
  29607. deprecated="not deprecated">
  29608. <doc>
  29609. <![CDATA[Returns whether this TaskAttemptID is a map ID]]>
  29610. </doc>
  29611. </method>
  29612. <method name="equals" return="boolean"
  29613. abstract="false" native="false" synchronized="false"
  29614. static="false" final="false" visibility="public"
  29615. deprecated="not deprecated">
  29616. <param name="o" type="java.lang.Object"/>
  29617. </method>
  29618. <method name="compareTo" return="int"
  29619. abstract="false" native="false" synchronized="false"
  29620. static="false" final="false" visibility="public"
  29621. deprecated="not deprecated">
  29622. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  29623. <doc>
  29624. <![CDATA[Compare TaskIds by first tipIds, then by task numbers.]]>
  29625. </doc>
  29626. </method>
  29627. <method name="toString" return="java.lang.String"
  29628. abstract="false" native="false" synchronized="false"
  29629. static="false" final="false" visibility="public"
  29630. deprecated="not deprecated">
  29631. </method>
  29632. <method name="hashCode" return="int"
  29633. abstract="false" native="false" synchronized="false"
  29634. static="false" final="false" visibility="public"
  29635. deprecated="not deprecated">
  29636. </method>
  29637. <method name="readFields"
  29638. abstract="false" native="false" synchronized="false"
  29639. static="false" final="false" visibility="public"
  29640. deprecated="not deprecated">
  29641. <param name="in" type="java.io.DataInput"/>
  29642. <exception name="IOException" type="java.io.IOException"/>
  29643. </method>
  29644. <method name="write"
  29645. abstract="false" native="false" synchronized="false"
  29646. static="false" final="false" visibility="public"
  29647. deprecated="not deprecated">
  29648. <param name="out" type="java.io.DataOutput"/>
  29649. <exception name="IOException" type="java.io.IOException"/>
  29650. </method>
  29651. <method name="read" return="org.apache.hadoop.mapred.TaskAttemptID"
  29652. abstract="false" native="false" synchronized="false"
  29653. static="true" final="false" visibility="public"
  29654. deprecated="not deprecated">
  29655. <param name="in" type="java.io.DataInput"/>
  29656. <exception name="IOException" type="java.io.IOException"/>
  29657. </method>
  29658. <method name="forName" return="org.apache.hadoop.mapred.TaskAttemptID"
  29659. abstract="false" native="false" synchronized="false"
  29660. static="true" final="false" visibility="public"
  29661. deprecated="not deprecated">
  29662. <param name="str" type="java.lang.String"/>
  29663. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  29664. <doc>
  29665. <![CDATA[Construct a TaskAttemptID object from given string
  29666. @return constructed TaskAttemptID object or null if the given String is null
  29667. @throws IllegalArgumentException if the given string is malformed]]>
  29668. </doc>
  29669. </method>
  29670. <method name="getTaskAttemptIDsPattern" return="java.lang.String"
  29671. abstract="false" native="false" synchronized="false"
  29672. static="true" final="false" visibility="public"
  29673. deprecated="not deprecated">
  29674. <param name="jtIdentifier" type="java.lang.String"/>
  29675. <param name="jobId" type="java.lang.Integer"/>
  29676. <param name="isMap" type="java.lang.Boolean"/>
  29677. <param name="taskId" type="java.lang.Integer"/>
  29678. <param name="attemptId" type="java.lang.Integer"/>
  29679. <doc>
  29680. <![CDATA[Returns a regex pattern which matches task attempt IDs. Arguments can
  29681. be given null, in which case that part of the regex will be generic.
  29682. For example to obtain a regex matching <i>all task attempt IDs</i>
  29683. of <i>any jobtracker</i>, in <i>any job</i>, of the <i>first
  29684. map task</i>, we would use :
  29685. <pre>
  29686. TaskAttemptID.getTaskAttemptIDsPattern(null, null, true, 1, null);
  29687. </pre>
  29688. which will return :
  29689. <pre> "attempt_[^_]*_[0-9]*_m_000001_[0-9]*" </pre>
  29690. @param jtIdentifier jobTracker identifier, or null
  29691. @param jobId job number, or null
  29692. @param isMap whether the tip is a map, or null
  29693. @param taskId taskId number, or null
  29694. @param attemptId the task attempt number, or null
  29695. @return a regex pattern matching TaskAttemptIDs]]>
  29696. </doc>
  29697. </method>
  29698. <doc>
  29699. <![CDATA[TaskAttemptID represents the immutable and unique identifier for
  29700. a task attempt. Each task attempt is one particular instance of a Map or
  29701. Reduce Task identified by its TaskID.
  29702. TaskAttemptID consists of 2 parts. First part is the
  29703. {@link TaskID}, that this TaskAttemptID belongs to.
  29704. Second part is the task attempt number. <br>
  29705. An example TaskAttemptID is :
  29706. <code>attempt_200707121733_0003_m_000005_0</code> , which represents the
  29707. zeroth task attempt for the fifth map task in the third job
  29708. running at the jobtracker started at <code>200707121733</code>.
  29709. <p>
  29710. Applications should never construct or parse TaskAttemptID strings
  29711. , but rather use appropriate constructors or {@link #forName(String)}
  29712. method.
  29713. @see JobID
  29714. @see TaskID]]>
  29715. </doc>
  29716. </class>
  29717. <!-- end class org.apache.hadoop.mapred.TaskAttemptID -->
  29718. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent -->
  29719. <class name="TaskCompletionEvent" extends="java.lang.Object"
  29720. abstract="false"
  29721. static="false" final="false" visibility="public"
  29722. deprecated="not deprecated">
  29723. <implements name="org.apache.hadoop.io.Writable"/>
  29724. <constructor name="TaskCompletionEvent"
  29725. static="false" final="false" visibility="public"
  29726. deprecated="not deprecated">
  29727. <doc>
  29728. <![CDATA[Default constructor for Writable.]]>
  29729. </doc>
  29730. </constructor>
  29731. <constructor name="TaskCompletionEvent" type="int, java.lang.String, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  29732. static="false" final="false" visibility="public"
  29733. deprecated="not deprecated">
  29734. </constructor>
  29735. <constructor name="TaskCompletionEvent" type="int, org.apache.hadoop.mapred.TaskAttemptID, int, boolean, org.apache.hadoop.mapred.TaskCompletionEvent.Status, java.lang.String"
  29736. static="false" final="false" visibility="public"
  29737. deprecated="not deprecated">
  29738. <doc>
  29739. <![CDATA[Constructor. eventId should be created externally and incremented
  29740. per event for each job.
  29741. @param eventId event id, event id should be unique and assigned in
  29742. incrementally, starting from 0.
  29743. @param taskId task id
  29744. @param status task's status
  29745. @param taskTrackerHttp task tracker's host:port for http.]]>
  29746. </doc>
  29747. </constructor>
  29748. <method name="getEventId" return="int"
  29749. abstract="false" native="false" synchronized="false"
  29750. static="false" final="false" visibility="public"
  29751. deprecated="not deprecated">
  29752. <doc>
  29753. <![CDATA[Returns event Id.
  29754. @return event id]]>
  29755. </doc>
  29756. </method>
  29757. <method name="getTaskId" return="java.lang.String"
  29758. abstract="false" native="false" synchronized="false"
  29759. static="false" final="false" visibility="public"
  29760. deprecated="use {@link #getTaskAttemptId()} instead.">
  29761. <doc>
  29762. <![CDATA[Returns task id.
  29763. @return task id
  29764. @deprecated use {@link #getTaskAttemptId()} instead.]]>
  29765. </doc>
  29766. </method>
  29767. <method name="getTaskAttemptId" return="org.apache.hadoop.mapred.TaskAttemptID"
  29768. abstract="false" native="false" synchronized="false"
  29769. static="false" final="false" visibility="public"
  29770. deprecated="not deprecated">
  29771. <doc>
  29772. <![CDATA[Returns task id.
  29773. @return task id]]>
  29774. </doc>
  29775. </method>
  29776. <method name="getTaskStatus" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  29777. abstract="false" native="false" synchronized="false"
  29778. static="false" final="false" visibility="public"
  29779. deprecated="not deprecated">
  29780. <doc>
  29781. <![CDATA[Returns enum Status.SUCESS or Status.FAILURE.
  29782. @return task tracker status]]>
  29783. </doc>
  29784. </method>
  29785. <method name="getTaskTrackerHttp" return="java.lang.String"
  29786. abstract="false" native="false" synchronized="false"
  29787. static="false" final="false" visibility="public"
  29788. deprecated="not deprecated">
  29789. <doc>
  29790. <![CDATA[http location of the tasktracker where this task ran.
  29791. @return http location of tasktracker user logs]]>
  29792. </doc>
  29793. </method>
  29794. <method name="getTaskRunTime" return="int"
  29795. abstract="false" native="false" synchronized="false"
  29796. static="false" final="false" visibility="public"
  29797. deprecated="not deprecated">
  29798. <doc>
  29799. <![CDATA[Returns time (in millisec) the task took to complete.]]>
  29800. </doc>
  29801. </method>
  29802. <method name="setTaskRunTime"
  29803. abstract="false" native="false" synchronized="false"
  29804. static="false" final="false" visibility="public"
  29805. deprecated="not deprecated">
  29806. <param name="taskCompletionTime" type="int"/>
  29807. <doc>
  29808. <![CDATA[Set the task completion time
  29809. @param taskCompletionTime time (in millisec) the task took to complete]]>
  29810. </doc>
  29811. </method>
  29812. <method name="setEventId"
  29813. abstract="false" native="false" synchronized="false"
  29814. static="false" final="false" visibility="public"
  29815. deprecated="not deprecated">
  29816. <param name="eventId" type="int"/>
  29817. <doc>
  29818. <![CDATA[set event Id. should be assigned incrementally starting from 0.
  29819. @param eventId]]>
  29820. </doc>
  29821. </method>
  29822. <method name="setTaskId"
  29823. abstract="false" native="false" synchronized="false"
  29824. static="false" final="false" visibility="public"
  29825. deprecated="use {@link #setTaskID(TaskAttemptID)} instead.">
  29826. <param name="taskId" type="java.lang.String"/>
  29827. <doc>
  29828. <![CDATA[Sets task id.
  29829. @param taskId
  29830. @deprecated use {@link #setTaskID(TaskAttemptID)} instead.]]>
  29831. </doc>
  29832. </method>
  29833. <method name="setTaskID"
  29834. abstract="false" native="false" synchronized="false"
  29835. static="false" final="false" visibility="public"
  29836. deprecated="not deprecated">
  29837. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  29838. <doc>
  29839. <![CDATA[Sets task id.
  29840. @param taskId]]>
  29841. </doc>
  29842. </method>
  29843. <method name="setTaskStatus"
  29844. abstract="false" native="false" synchronized="false"
  29845. static="false" final="false" visibility="public"
  29846. deprecated="not deprecated">
  29847. <param name="status" type="org.apache.hadoop.mapred.TaskCompletionEvent.Status"/>
  29848. <doc>
  29849. <![CDATA[Set task status.
  29850. @param status]]>
  29851. </doc>
  29852. </method>
  29853. <method name="setTaskTrackerHttp"
  29854. abstract="false" native="false" synchronized="false"
  29855. static="false" final="false" visibility="public"
  29856. deprecated="not deprecated">
  29857. <param name="taskTrackerHttp" type="java.lang.String"/>
  29858. <doc>
  29859. <![CDATA[Set task tracker http location.
  29860. @param taskTrackerHttp]]>
  29861. </doc>
  29862. </method>
  29863. <method name="toString" return="java.lang.String"
  29864. abstract="false" native="false" synchronized="false"
  29865. static="false" final="false" visibility="public"
  29866. deprecated="not deprecated">
  29867. </method>
  29868. <method name="isMapTask" return="boolean"
  29869. abstract="false" native="false" synchronized="false"
  29870. static="false" final="false" visibility="public"
  29871. deprecated="not deprecated">
  29872. </method>
  29873. <method name="idWithinJob" return="int"
  29874. abstract="false" native="false" synchronized="false"
  29875. static="false" final="false" visibility="public"
  29876. deprecated="not deprecated">
  29877. </method>
  29878. <method name="write"
  29879. abstract="false" native="false" synchronized="false"
  29880. static="false" final="false" visibility="public"
  29881. deprecated="not deprecated">
  29882. <param name="out" type="java.io.DataOutput"/>
  29883. <exception name="IOException" type="java.io.IOException"/>
  29884. </method>
  29885. <method name="readFields"
  29886. abstract="false" native="false" synchronized="false"
  29887. static="false" final="false" visibility="public"
  29888. deprecated="not deprecated">
  29889. <param name="in" type="java.io.DataInput"/>
  29890. <exception name="IOException" type="java.io.IOException"/>
  29891. </method>
  29892. <field name="EMPTY_ARRAY" type="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  29893. transient="false" volatile="false"
  29894. static="true" final="true" visibility="public"
  29895. deprecated="not deprecated">
  29896. </field>
  29897. <doc>
  29898. <![CDATA[This is used to track task completion events on
  29899. job tracker.]]>
  29900. </doc>
  29901. </class>
  29902. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent -->
  29903. <!-- start class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  29904. <class name="TaskCompletionEvent.Status" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskCompletionEvent.Status&gt;"
  29905. abstract="false"
  29906. static="true" final="true" visibility="public"
  29907. deprecated="not deprecated">
  29908. <method name="values" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status[]"
  29909. abstract="false" native="false" synchronized="false"
  29910. static="true" final="false" visibility="public"
  29911. deprecated="not deprecated">
  29912. </method>
  29913. <method name="valueOf" return="org.apache.hadoop.mapred.TaskCompletionEvent.Status"
  29914. abstract="false" native="false" synchronized="false"
  29915. static="true" final="false" visibility="public"
  29916. deprecated="not deprecated">
  29917. <param name="name" type="java.lang.String"/>
  29918. </method>
  29919. </class>
  29920. <!-- end class org.apache.hadoop.mapred.TaskCompletionEvent.Status -->
  29921. <!-- start class org.apache.hadoop.mapred.TaskID -->
  29922. <class name="TaskID" extends="org.apache.hadoop.mapred.ID"
  29923. abstract="false"
  29924. static="false" final="false" visibility="public"
  29925. deprecated="not deprecated">
  29926. <constructor name="TaskID" type="org.apache.hadoop.mapred.JobID, boolean, int"
  29927. static="false" final="false" visibility="public"
  29928. deprecated="not deprecated">
  29929. <doc>
  29930. <![CDATA[Constructs a TaskID object from given {@link JobID}.
  29931. @param jobId JobID that this tip belongs to
  29932. @param isMap whether the tip is a map
  29933. @param id the tip number]]>
  29934. </doc>
  29935. </constructor>
  29936. <constructor name="TaskID" type="java.lang.String, int, boolean, int"
  29937. static="false" final="false" visibility="public"
  29938. deprecated="not deprecated">
  29939. <doc>
  29940. <![CDATA[Constructs a TaskInProgressId object from given parts.
  29941. @param jtIdentifier jobTracker identifier
  29942. @param jobId job number
  29943. @param isMap whether the tip is a map
  29944. @param id the tip number]]>
  29945. </doc>
  29946. </constructor>
  29947. <method name="getJobID" return="org.apache.hadoop.mapred.JobID"
  29948. abstract="false" native="false" synchronized="false"
  29949. static="false" final="false" visibility="public"
  29950. deprecated="not deprecated">
  29951. <doc>
  29952. <![CDATA[Returns the {@link JobID} object that this tip belongs to]]>
  29953. </doc>
  29954. </method>
  29955. <method name="isMap" return="boolean"
  29956. abstract="false" native="false" synchronized="false"
  29957. static="false" final="false" visibility="public"
  29958. deprecated="not deprecated">
  29959. <doc>
  29960. <![CDATA[Returns whether this TaskID is a map ID]]>
  29961. </doc>
  29962. </method>
  29963. <method name="equals" return="boolean"
  29964. abstract="false" native="false" synchronized="false"
  29965. static="false" final="false" visibility="public"
  29966. deprecated="not deprecated">
  29967. <param name="o" type="java.lang.Object"/>
  29968. </method>
  29969. <method name="compareTo" return="int"
  29970. abstract="false" native="false" synchronized="false"
  29971. static="false" final="false" visibility="public"
  29972. deprecated="not deprecated">
  29973. <param name="o" type="org.apache.hadoop.mapred.ID"/>
  29974. <doc>
  29975. <![CDATA[Compare TaskInProgressIds by first jobIds, then by tip numbers. Reduces are
  29976. defined as greater then maps.]]>
  29977. </doc>
  29978. </method>
  29979. <method name="toString" return="java.lang.String"
  29980. abstract="false" native="false" synchronized="false"
  29981. static="false" final="false" visibility="public"
  29982. deprecated="not deprecated">
  29983. </method>
  29984. <method name="hashCode" return="int"
  29985. abstract="false" native="false" synchronized="false"
  29986. static="false" final="false" visibility="public"
  29987. deprecated="not deprecated">
  29988. </method>
  29989. <method name="readFields"
  29990. abstract="false" native="false" synchronized="false"
  29991. static="false" final="false" visibility="public"
  29992. deprecated="not deprecated">
  29993. <param name="in" type="java.io.DataInput"/>
  29994. <exception name="IOException" type="java.io.IOException"/>
  29995. </method>
  29996. <method name="write"
  29997. abstract="false" native="false" synchronized="false"
  29998. static="false" final="false" visibility="public"
  29999. deprecated="not deprecated">
  30000. <param name="out" type="java.io.DataOutput"/>
  30001. <exception name="IOException" type="java.io.IOException"/>
  30002. </method>
  30003. <method name="read" return="org.apache.hadoop.mapred.TaskID"
  30004. abstract="false" native="false" synchronized="false"
  30005. static="true" final="false" visibility="public"
  30006. deprecated="not deprecated">
  30007. <param name="in" type="java.io.DataInput"/>
  30008. <exception name="IOException" type="java.io.IOException"/>
  30009. </method>
  30010. <method name="forName" return="org.apache.hadoop.mapred.TaskID"
  30011. abstract="false" native="false" synchronized="false"
  30012. static="true" final="false" visibility="public"
  30013. deprecated="not deprecated">
  30014. <param name="str" type="java.lang.String"/>
  30015. <exception name="IllegalArgumentException" type="java.lang.IllegalArgumentException"/>
  30016. <doc>
  30017. <![CDATA[Construct a TaskID object from given string
  30018. @return constructed TaskID object or null if the given String is null
  30019. @throws IllegalArgumentException if the given string is malformed]]>
  30020. </doc>
  30021. </method>
  30022. <method name="getTaskIDsPattern" return="java.lang.String"
  30023. abstract="false" native="false" synchronized="false"
  30024. static="true" final="false" visibility="public"
  30025. deprecated="not deprecated">
  30026. <param name="jtIdentifier" type="java.lang.String"/>
  30027. <param name="jobId" type="java.lang.Integer"/>
  30028. <param name="isMap" type="java.lang.Boolean"/>
  30029. <param name="taskId" type="java.lang.Integer"/>
  30030. <doc>
  30031. <![CDATA[Returns a regex pattern which matches task IDs. Arguments can
  30032. be given null, in which case that part of the regex will be generic.
  30033. For example to obtain a regex matching <i>the first map task</i>
  30034. of <i>any jobtracker</i>, of <i>any job</i>, we would use :
  30035. <pre>
  30036. TaskID.getTaskIDsPattern(null, null, true, 1);
  30037. </pre>
  30038. which will return :
  30039. <pre> "task_[^_]*_[0-9]*_m_000001*" </pre>
  30040. @param jtIdentifier jobTracker identifier, or null
  30041. @param jobId job number, or null
  30042. @param isMap whether the tip is a map, or null
  30043. @param taskId taskId number, or null
  30044. @return a regex pattern matching TaskIDs]]>
  30045. </doc>
  30046. </method>
  30047. <doc>
  30048. <![CDATA[TaskID represents the immutable and unique identifier for
  30049. a Map or Reduce Task. Each TaskID encompasses multiple attempts made to
  30050. execute the Map or Reduce Task, each of which are uniquely indentified by
  30051. their TaskAttemptID.
  30052. TaskID consists of 3 parts. First part is the {@link JobID}, that this
  30053. TaskInProgress belongs to. Second part of the TaskID is either 'm' or 'r'
  30054. representing whether the task is a map task or a reduce task.
  30055. And the third part is the task number. <br>
  30056. An example TaskID is :
  30057. <code>task_200707121733_0003_m_000005</code> , which represents the
  30058. fifth map task in the third job running at the jobtracker
  30059. started at <code>200707121733</code>.
  30060. <p>
  30061. Applications should never construct or parse TaskID strings
  30062. , but rather use appropriate constructors or {@link #forName(String)}
  30063. method.
  30064. @see JobID
  30065. @see TaskAttemptID]]>
  30066. </doc>
  30067. </class>
  30068. <!-- end class org.apache.hadoop.mapred.TaskID -->
  30069. <!-- start class org.apache.hadoop.mapred.TaskLog -->
  30070. <class name="TaskLog" extends="java.lang.Object"
  30071. abstract="false"
  30072. static="false" final="false" visibility="public"
  30073. deprecated="not deprecated">
  30074. <constructor name="TaskLog"
  30075. static="false" final="false" visibility="public"
  30076. deprecated="not deprecated">
  30077. </constructor>
  30078. <method name="getTaskLogFile" return="java.io.File"
  30079. abstract="false" native="false" synchronized="false"
  30080. static="true" final="false" visibility="public"
  30081. deprecated="not deprecated">
  30082. <param name="taskid" type="java.lang.String"/>
  30083. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  30084. </method>
  30085. <method name="getTaskLogFile" return="java.io.File"
  30086. abstract="false" native="false" synchronized="false"
  30087. static="true" final="false" visibility="public"
  30088. deprecated="not deprecated">
  30089. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30090. <param name="filter" type="org.apache.hadoop.mapred.TaskLog.LogName"/>
  30091. </method>
  30092. <method name="cleanup"
  30093. abstract="false" native="false" synchronized="true"
  30094. static="true" final="false" visibility="public"
  30095. deprecated="not deprecated">
  30096. <param name="logsRetainHours" type="int"/>
  30097. <exception name="IOException" type="java.io.IOException"/>
  30098. <doc>
  30099. <![CDATA[Purge old user logs.
  30100. @throws IOException]]>
  30101. </doc>
  30102. </method>
  30103. <method name="getTaskLogLength" return="long"
  30104. abstract="false" native="false" synchronized="false"
  30105. static="true" final="false" visibility="public"
  30106. deprecated="not deprecated">
  30107. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30108. <doc>
  30109. <![CDATA[Get the desired maximum length of task's logs.
  30110. @param conf the job to look in
  30111. @return the number of bytes to cap the log files at]]>
  30112. </doc>
  30113. </method>
  30114. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  30115. abstract="false" native="false" synchronized="false"
  30116. static="true" final="false" visibility="public"
  30117. deprecated="not deprecated">
  30118. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  30119. <param name="stdoutFilename" type="java.io.File"/>
  30120. <param name="stderrFilename" type="java.io.File"/>
  30121. <param name="tailLength" type="long"/>
  30122. <exception name="IOException" type="java.io.IOException"/>
  30123. <doc>
  30124. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  30125. If the tailLength is 0, the entire output will be saved.
  30126. @param cmd The command and the arguments that should be run
  30127. @param stdoutFilename The filename that stdout should be saved to
  30128. @param stderrFilename The filename that stderr should be saved to
  30129. @param tailLength The length of the tail to be saved.
  30130. @return the modified command that should be run]]>
  30131. </doc>
  30132. </method>
  30133. <method name="captureOutAndError" return="java.util.List&lt;java.lang.String&gt;"
  30134. abstract="false" native="false" synchronized="false"
  30135. static="true" final="false" visibility="public"
  30136. deprecated="not deprecated">
  30137. <param name="setup" type="java.util.List&lt;java.lang.String&gt;"/>
  30138. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  30139. <param name="stdoutFilename" type="java.io.File"/>
  30140. <param name="stderrFilename" type="java.io.File"/>
  30141. <param name="tailLength" type="long"/>
  30142. <exception name="IOException" type="java.io.IOException"/>
  30143. <doc>
  30144. <![CDATA[Wrap a command in a shell to capture stdout and stderr to files.
  30145. Setup commands such as setting memory limit can be passed which
  30146. will be executed before exec.
  30147. If the tailLength is 0, the entire output will be saved.
  30148. @param setup The setup commands for the execed process.
  30149. @param cmd The command and the arguments that should be run
  30150. @param stdoutFilename The filename that stdout should be saved to
  30151. @param stderrFilename The filename that stderr should be saved to
  30152. @param tailLength The length of the tail to be saved.
  30153. @return the modified command that should be run]]>
  30154. </doc>
  30155. </method>
  30156. <method name="addCommand" return="java.lang.String"
  30157. abstract="false" native="false" synchronized="false"
  30158. static="true" final="false" visibility="public"
  30159. deprecated="not deprecated">
  30160. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  30161. <param name="isExecutable" type="boolean"/>
  30162. <exception name="IOException" type="java.io.IOException"/>
  30163. <doc>
  30164. <![CDATA[Add quotes to each of the command strings and
  30165. return as a single string
  30166. @param cmd The command to be quoted
  30167. @param isExecutable makes shell path if the first
  30168. argument is executable
  30169. @return returns The quoted string.
  30170. @throws IOException]]>
  30171. </doc>
  30172. </method>
  30173. <method name="captureDebugOut" return="java.util.List&lt;java.lang.String&gt;"
  30174. abstract="false" native="false" synchronized="false"
  30175. static="true" final="false" visibility="public"
  30176. deprecated="not deprecated">
  30177. <param name="cmd" type="java.util.List&lt;java.lang.String&gt;"/>
  30178. <param name="debugoutFilename" type="java.io.File"/>
  30179. <exception name="IOException" type="java.io.IOException"/>
  30180. <doc>
  30181. <![CDATA[Wrap a command in a shell to capture debug script's
  30182. stdout and stderr to debugout.
  30183. @param cmd The command and the arguments that should be run
  30184. @param debugoutFilename The filename that stdout and stderr
  30185. should be saved to.
  30186. @return the modified command that should be run
  30187. @throws IOException]]>
  30188. </doc>
  30189. </method>
  30190. <doc>
  30191. <![CDATA[A simple logger to handle the task-specific user logs.
  30192. This class uses the system property <code>hadoop.log.dir</code>.]]>
  30193. </doc>
  30194. </class>
  30195. <!-- end class org.apache.hadoop.mapred.TaskLog -->
  30196. <!-- start class org.apache.hadoop.mapred.TaskLog.LogName -->
  30197. <class name="TaskLog.LogName" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.TaskLog.LogName&gt;"
  30198. abstract="false"
  30199. static="true" final="true" visibility="public"
  30200. deprecated="not deprecated">
  30201. <method name="values" return="org.apache.hadoop.mapred.TaskLog.LogName[]"
  30202. abstract="false" native="false" synchronized="false"
  30203. static="true" final="false" visibility="public"
  30204. deprecated="not deprecated">
  30205. </method>
  30206. <method name="valueOf" return="org.apache.hadoop.mapred.TaskLog.LogName"
  30207. abstract="false" native="false" synchronized="false"
  30208. static="true" final="false" visibility="public"
  30209. deprecated="not deprecated">
  30210. <param name="name" type="java.lang.String"/>
  30211. </method>
  30212. <method name="toString" return="java.lang.String"
  30213. abstract="false" native="false" synchronized="false"
  30214. static="false" final="false" visibility="public"
  30215. deprecated="not deprecated">
  30216. </method>
  30217. <doc>
  30218. <![CDATA[The filter for userlogs.]]>
  30219. </doc>
  30220. </class>
  30221. <!-- end class org.apache.hadoop.mapred.TaskLog.LogName -->
  30222. <!-- start class org.apache.hadoop.mapred.TaskLogAppender -->
  30223. <class name="TaskLogAppender" extends="org.apache.log4j.FileAppender"
  30224. abstract="false"
  30225. static="false" final="false" visibility="public"
  30226. deprecated="not deprecated">
  30227. <constructor name="TaskLogAppender"
  30228. static="false" final="false" visibility="public"
  30229. deprecated="not deprecated">
  30230. </constructor>
  30231. <method name="activateOptions"
  30232. abstract="false" native="false" synchronized="false"
  30233. static="false" final="false" visibility="public"
  30234. deprecated="not deprecated">
  30235. </method>
  30236. <method name="append"
  30237. abstract="false" native="false" synchronized="false"
  30238. static="false" final="false" visibility="public"
  30239. deprecated="not deprecated">
  30240. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  30241. </method>
  30242. <method name="close"
  30243. abstract="false" native="false" synchronized="true"
  30244. static="false" final="false" visibility="public"
  30245. deprecated="not deprecated">
  30246. </method>
  30247. <method name="getTaskId" return="java.lang.String"
  30248. abstract="false" native="false" synchronized="false"
  30249. static="false" final="false" visibility="public"
  30250. deprecated="not deprecated">
  30251. <doc>
  30252. <![CDATA[Getter/Setter methods for log4j.]]>
  30253. </doc>
  30254. </method>
  30255. <method name="setTaskId"
  30256. abstract="false" native="false" synchronized="false"
  30257. static="false" final="false" visibility="public"
  30258. deprecated="not deprecated">
  30259. <param name="taskId" type="java.lang.String"/>
  30260. </method>
  30261. <method name="getTotalLogFileSize" return="long"
  30262. abstract="false" native="false" synchronized="false"
  30263. static="false" final="false" visibility="public"
  30264. deprecated="not deprecated">
  30265. </method>
  30266. <method name="setTotalLogFileSize"
  30267. abstract="false" native="false" synchronized="false"
  30268. static="false" final="false" visibility="public"
  30269. deprecated="not deprecated">
  30270. <param name="logSize" type="long"/>
  30271. </method>
  30272. <doc>
  30273. <![CDATA[A simple log4j-appender for the task child's
  30274. map-reduce system logs.]]>
  30275. </doc>
  30276. </class>
  30277. <!-- end class org.apache.hadoop.mapred.TaskLogAppender -->
  30278. <!-- start class org.apache.hadoop.mapred.TaskLogServlet -->
  30279. <class name="TaskLogServlet" extends="javax.servlet.http.HttpServlet"
  30280. abstract="false"
  30281. static="false" final="false" visibility="public"
  30282. deprecated="not deprecated">
  30283. <constructor name="TaskLogServlet"
  30284. static="false" final="false" visibility="public"
  30285. deprecated="not deprecated">
  30286. </constructor>
  30287. <method name="doGet"
  30288. abstract="false" native="false" synchronized="false"
  30289. static="false" final="false" visibility="public"
  30290. deprecated="not deprecated">
  30291. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  30292. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  30293. <exception name="ServletException" type="javax.servlet.ServletException"/>
  30294. <exception name="IOException" type="java.io.IOException"/>
  30295. <doc>
  30296. <![CDATA[Get the logs via http.]]>
  30297. </doc>
  30298. </method>
  30299. <doc>
  30300. <![CDATA[A servlet that is run by the TaskTrackers to provide the task logs via http.]]>
  30301. </doc>
  30302. </class>
  30303. <!-- end class org.apache.hadoop.mapred.TaskLogServlet -->
  30304. <!-- start class org.apache.hadoop.mapred.TaskReport -->
  30305. <class name="TaskReport" extends="java.lang.Object"
  30306. abstract="false"
  30307. static="false" final="false" visibility="public"
  30308. deprecated="not deprecated">
  30309. <implements name="org.apache.hadoop.io.Writable"/>
  30310. <constructor name="TaskReport"
  30311. static="false" final="false" visibility="public"
  30312. deprecated="not deprecated">
  30313. </constructor>
  30314. <method name="getTaskId" return="java.lang.String"
  30315. abstract="false" native="false" synchronized="false"
  30316. static="false" final="false" visibility="public"
  30317. deprecated="use {@link #getTaskID()} instead">
  30318. <doc>
  30319. <![CDATA[@deprecated use {@link #getTaskID()} instead]]>
  30320. </doc>
  30321. </method>
  30322. <method name="getTaskID" return="org.apache.hadoop.mapred.TaskID"
  30323. abstract="false" native="false" synchronized="false"
  30324. static="false" final="false" visibility="public"
  30325. deprecated="not deprecated">
  30326. <doc>
  30327. <![CDATA[The id of the task.]]>
  30328. </doc>
  30329. </method>
  30330. <method name="getProgress" return="float"
  30331. abstract="false" native="false" synchronized="false"
  30332. static="false" final="false" visibility="public"
  30333. deprecated="not deprecated">
  30334. <doc>
  30335. <![CDATA[The amount completed, between zero and one.]]>
  30336. </doc>
  30337. </method>
  30338. <method name="getState" return="java.lang.String"
  30339. abstract="false" native="false" synchronized="false"
  30340. static="false" final="false" visibility="public"
  30341. deprecated="not deprecated">
  30342. <doc>
  30343. <![CDATA[The most recent state, reported by a {@link Reporter}.]]>
  30344. </doc>
  30345. </method>
  30346. <method name="getDiagnostics" return="java.lang.String[]"
  30347. abstract="false" native="false" synchronized="false"
  30348. static="false" final="false" visibility="public"
  30349. deprecated="not deprecated">
  30350. <doc>
  30351. <![CDATA[A list of error messages.]]>
  30352. </doc>
  30353. </method>
  30354. <method name="getCounters" return="org.apache.hadoop.mapred.Counters"
  30355. abstract="false" native="false" synchronized="false"
  30356. static="false" final="false" visibility="public"
  30357. deprecated="not deprecated">
  30358. <doc>
  30359. <![CDATA[A table of counters.]]>
  30360. </doc>
  30361. </method>
  30362. <method name="getFinishTime" return="long"
  30363. abstract="false" native="false" synchronized="false"
  30364. static="false" final="false" visibility="public"
  30365. deprecated="not deprecated">
  30366. <doc>
  30367. <![CDATA[Get finish time of task.
  30368. @return 0, if finish time was not set else returns finish time.]]>
  30369. </doc>
  30370. </method>
  30371. <method name="getStartTime" return="long"
  30372. abstract="false" native="false" synchronized="false"
  30373. static="false" final="false" visibility="public"
  30374. deprecated="not deprecated">
  30375. <doc>
  30376. <![CDATA[Get start time of task.
  30377. @return 0 if start time was not set, else start time.]]>
  30378. </doc>
  30379. </method>
  30380. <method name="write"
  30381. abstract="false" native="false" synchronized="false"
  30382. static="false" final="false" visibility="public"
  30383. deprecated="not deprecated">
  30384. <param name="out" type="java.io.DataOutput"/>
  30385. <exception name="IOException" type="java.io.IOException"/>
  30386. </method>
  30387. <method name="readFields"
  30388. abstract="false" native="false" synchronized="false"
  30389. static="false" final="false" visibility="public"
  30390. deprecated="not deprecated">
  30391. <param name="in" type="java.io.DataInput"/>
  30392. <exception name="IOException" type="java.io.IOException"/>
  30393. </method>
  30394. <doc>
  30395. <![CDATA[A report on the state of a task.]]>
  30396. </doc>
  30397. </class>
  30398. <!-- end class org.apache.hadoop.mapred.TaskReport -->
  30399. <!-- start class org.apache.hadoop.mapred.TaskTracker -->
  30400. <class name="TaskTracker" extends="java.lang.Object"
  30401. abstract="false"
  30402. static="false" final="false" visibility="public"
  30403. deprecated="not deprecated">
  30404. <implements name="org.apache.hadoop.mapred.MRConstants"/>
  30405. <implements name="org.apache.hadoop.mapred.TaskUmbilicalProtocol"/>
  30406. <implements name="java.lang.Runnable"/>
  30407. <constructor name="TaskTracker" type="org.apache.hadoop.mapred.JobConf"
  30408. static="false" final="false" visibility="public"
  30409. deprecated="not deprecated">
  30410. <exception name="IOException" type="java.io.IOException"/>
  30411. <doc>
  30412. <![CDATA[Start with the local machine name, and the default JobTracker]]>
  30413. </doc>
  30414. </constructor>
  30415. <method name="getTaskTrackerMetrics" return="org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics"
  30416. abstract="false" native="false" synchronized="false"
  30417. static="false" final="false" visibility="public"
  30418. deprecated="not deprecated">
  30419. </method>
  30420. <method name="getProtocolVersion" return="long"
  30421. abstract="false" native="false" synchronized="false"
  30422. static="false" final="false" visibility="public"
  30423. deprecated="not deprecated">
  30424. <param name="protocol" type="java.lang.String"/>
  30425. <param name="clientVersion" type="long"/>
  30426. <exception name="IOException" type="java.io.IOException"/>
  30427. </method>
  30428. <method name="cleanupStorage"
  30429. abstract="false" native="false" synchronized="false"
  30430. static="false" final="false" visibility="public"
  30431. deprecated="not deprecated">
  30432. <exception name="IOException" type="java.io.IOException"/>
  30433. <doc>
  30434. <![CDATA[Removes all contents of temporary storage. Called upon
  30435. startup, to remove any leftovers from previous run.]]>
  30436. </doc>
  30437. </method>
  30438. <method name="shutdown"
  30439. abstract="false" native="false" synchronized="true"
  30440. static="false" final="false" visibility="public"
  30441. deprecated="not deprecated">
  30442. <exception name="IOException" type="java.io.IOException"/>
  30443. </method>
  30444. <method name="close"
  30445. abstract="false" native="false" synchronized="true"
  30446. static="false" final="false" visibility="public"
  30447. deprecated="not deprecated">
  30448. <exception name="IOException" type="java.io.IOException"/>
  30449. <doc>
  30450. <![CDATA[Close down the TaskTracker and all its components. We must also shutdown
  30451. any running tasks or threads, and cleanup disk space. A new TaskTracker
  30452. within the same process space might be restarted, so everything must be
  30453. clean.]]>
  30454. </doc>
  30455. </method>
  30456. <method name="getJobClient" return="org.apache.hadoop.mapred.InterTrackerProtocol"
  30457. abstract="false" native="false" synchronized="false"
  30458. static="false" final="false" visibility="public"
  30459. deprecated="not deprecated">
  30460. <doc>
  30461. <![CDATA[The connection to the JobTracker, used by the TaskRunner
  30462. for locating remote files.]]>
  30463. </doc>
  30464. </method>
  30465. <method name="getTaskTrackerReportAddress" return="java.net.InetSocketAddress"
  30466. abstract="false" native="false" synchronized="true"
  30467. static="false" final="false" visibility="public"
  30468. deprecated="not deprecated">
  30469. <doc>
  30470. <![CDATA[Return the port at which the tasktracker bound to]]>
  30471. </doc>
  30472. </method>
  30473. <method name="run"
  30474. abstract="false" native="false" synchronized="false"
  30475. static="false" final="false" visibility="public"
  30476. deprecated="not deprecated">
  30477. <doc>
  30478. <![CDATA[The server retry loop.
  30479. This while-loop attempts to connect to the JobTracker. It only
  30480. loops when the old TaskTracker has gone bad (its state is
  30481. stale somehow) and we need to reinitialize everything.]]>
  30482. </doc>
  30483. </method>
  30484. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  30485. abstract="false" native="false" synchronized="false"
  30486. static="false" final="false" visibility="public"
  30487. deprecated="not deprecated">
  30488. <param name="id" type="java.lang.String"/>
  30489. <exception name="IOException" type="java.io.IOException"/>
  30490. </method>
  30491. <method name="getTask" return="org.apache.hadoop.mapred.Task"
  30492. abstract="false" native="false" synchronized="true"
  30493. static="false" final="false" visibility="public"
  30494. deprecated="not deprecated">
  30495. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30496. <exception name="IOException" type="java.io.IOException"/>
  30497. <doc>
  30498. <![CDATA[Called upon startup by the child process, to fetch Task data.]]>
  30499. </doc>
  30500. </method>
  30501. <method name="statusUpdate" return="boolean"
  30502. abstract="false" native="false" synchronized="false"
  30503. static="false" final="false" visibility="public"
  30504. deprecated="not deprecated">
  30505. <param name="taskid" type="java.lang.String"/>
  30506. <param name="status" type="org.apache.hadoop.mapred.TaskStatus"/>
  30507. <exception name="IOException" type="java.io.IOException"/>
  30508. </method>
  30509. <method name="statusUpdate" return="boolean"
  30510. abstract="false" native="false" synchronized="true"
  30511. static="false" final="false" visibility="public"
  30512. deprecated="not deprecated">
  30513. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30514. <param name="taskStatus" type="org.apache.hadoop.mapred.TaskStatus"/>
  30515. <exception name="IOException" type="java.io.IOException"/>
  30516. <doc>
  30517. <![CDATA[Called periodically to report Task progress, from 0.0 to 1.0.]]>
  30518. </doc>
  30519. </method>
  30520. <method name="reportDiagnosticInfo"
  30521. abstract="false" native="false" synchronized="false"
  30522. static="false" final="false" visibility="public"
  30523. deprecated="not deprecated">
  30524. <param name="taskid" type="java.lang.String"/>
  30525. <param name="info" type="java.lang.String"/>
  30526. <exception name="IOException" type="java.io.IOException"/>
  30527. </method>
  30528. <method name="reportDiagnosticInfo"
  30529. abstract="false" native="false" synchronized="true"
  30530. static="false" final="false" visibility="public"
  30531. deprecated="not deprecated">
  30532. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30533. <param name="info" type="java.lang.String"/>
  30534. <exception name="IOException" type="java.io.IOException"/>
  30535. <doc>
  30536. <![CDATA[Called when the task dies before completion, and we want to report back
  30537. diagnostic info]]>
  30538. </doc>
  30539. </method>
  30540. <method name="ping" return="boolean"
  30541. abstract="false" native="false" synchronized="false"
  30542. static="false" final="false" visibility="public"
  30543. deprecated="not deprecated">
  30544. <param name="taskid" type="java.lang.String"/>
  30545. <exception name="IOException" type="java.io.IOException"/>
  30546. </method>
  30547. <method name="ping" return="boolean"
  30548. abstract="false" native="false" synchronized="true"
  30549. static="false" final="false" visibility="public"
  30550. deprecated="not deprecated">
  30551. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30552. <exception name="IOException" type="java.io.IOException"/>
  30553. <doc>
  30554. <![CDATA[Child checking to see if we're alive. Normally does nothing.]]>
  30555. </doc>
  30556. </method>
  30557. <method name="done"
  30558. abstract="false" native="false" synchronized="false"
  30559. static="false" final="false" visibility="public"
  30560. deprecated="not deprecated">
  30561. <param name="taskid" type="java.lang.String"/>
  30562. <param name="shouldPromote" type="boolean"/>
  30563. <exception name="IOException" type="java.io.IOException"/>
  30564. </method>
  30565. <method name="done"
  30566. abstract="false" native="false" synchronized="true"
  30567. static="false" final="false" visibility="public"
  30568. deprecated="not deprecated">
  30569. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30570. <param name="shouldPromote" type="boolean"/>
  30571. <exception name="IOException" type="java.io.IOException"/>
  30572. <doc>
  30573. <![CDATA[The task is done.]]>
  30574. </doc>
  30575. </method>
  30576. <method name="shuffleError"
  30577. abstract="false" native="false" synchronized="false"
  30578. static="false" final="false" visibility="public"
  30579. deprecated="not deprecated">
  30580. <param name="taskid" type="java.lang.String"/>
  30581. <param name="msg" type="java.lang.String"/>
  30582. <exception name="IOException" type="java.io.IOException"/>
  30583. </method>
  30584. <method name="shuffleError"
  30585. abstract="false" native="false" synchronized="true"
  30586. static="false" final="false" visibility="public"
  30587. deprecated="not deprecated">
  30588. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30589. <param name="message" type="java.lang.String"/>
  30590. <exception name="IOException" type="java.io.IOException"/>
  30591. <doc>
  30592. <![CDATA[A reduce-task failed to shuffle the map-outputs. Kill the task.]]>
  30593. </doc>
  30594. </method>
  30595. <method name="fsError"
  30596. abstract="false" native="false" synchronized="false"
  30597. static="false" final="false" visibility="public"
  30598. deprecated="not deprecated">
  30599. <param name="taskid" type="java.lang.String"/>
  30600. <param name="msg" type="java.lang.String"/>
  30601. <exception name="IOException" type="java.io.IOException"/>
  30602. </method>
  30603. <method name="fsError"
  30604. abstract="false" native="false" synchronized="true"
  30605. static="false" final="false" visibility="public"
  30606. deprecated="not deprecated">
  30607. <param name="taskId" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30608. <param name="message" type="java.lang.String"/>
  30609. <exception name="IOException" type="java.io.IOException"/>
  30610. <doc>
  30611. <![CDATA[A child task had a local filesystem error. Kill the task.]]>
  30612. </doc>
  30613. </method>
  30614. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  30615. abstract="false" native="false" synchronized="false"
  30616. static="false" final="false" visibility="public"
  30617. deprecated="not deprecated">
  30618. <param name="jobid" type="java.lang.String"/>
  30619. <param name="fromid" type="int"/>
  30620. <param name="maxlocs" type="int"/>
  30621. <exception name="IOException" type="java.io.IOException"/>
  30622. </method>
  30623. <method name="getMapCompletionEvents" return="org.apache.hadoop.mapred.TaskCompletionEvent[]"
  30624. abstract="false" native="false" synchronized="false"
  30625. static="false" final="false" visibility="public"
  30626. deprecated="not deprecated">
  30627. <param name="jobId" type="org.apache.hadoop.mapred.JobID"/>
  30628. <param name="fromEventId" type="int"/>
  30629. <param name="maxLocs" type="int"/>
  30630. <exception name="IOException" type="java.io.IOException"/>
  30631. </method>
  30632. <method name="mapOutputLost"
  30633. abstract="false" native="false" synchronized="false"
  30634. static="false" final="false" visibility="public"
  30635. deprecated="not deprecated">
  30636. <param name="taskid" type="java.lang.String"/>
  30637. <param name="msg" type="java.lang.String"/>
  30638. <exception name="IOException" type="java.io.IOException"/>
  30639. </method>
  30640. <method name="mapOutputLost"
  30641. abstract="false" native="false" synchronized="true"
  30642. static="false" final="false" visibility="public"
  30643. deprecated="not deprecated">
  30644. <param name="taskid" type="org.apache.hadoop.mapred.TaskAttemptID"/>
  30645. <param name="errorMsg" type="java.lang.String"/>
  30646. <exception name="IOException" type="java.io.IOException"/>
  30647. <doc>
  30648. <![CDATA[A completed map task's output has been lost.]]>
  30649. </doc>
  30650. </method>
  30651. <method name="isIdle" return="boolean"
  30652. abstract="false" native="false" synchronized="true"
  30653. static="false" final="false" visibility="public"
  30654. deprecated="not deprecated">
  30655. <doc>
  30656. <![CDATA[Is this task tracker idle?
  30657. @return has this task tracker finished and cleaned up all of its tasks?]]>
  30658. </doc>
  30659. </method>
  30660. <method name="main"
  30661. abstract="false" native="false" synchronized="false"
  30662. static="true" final="false" visibility="public"
  30663. deprecated="not deprecated">
  30664. <param name="argv" type="java.lang.String[]"/>
  30665. <exception name="Exception" type="java.lang.Exception"/>
  30666. <doc>
  30667. <![CDATA[Start the TaskTracker, point toward the indicated JobTracker]]>
  30668. </doc>
  30669. </method>
  30670. <field name="LOG" type="org.apache.commons.logging.Log"
  30671. transient="false" volatile="false"
  30672. static="true" final="true" visibility="public"
  30673. deprecated="not deprecated">
  30674. </field>
  30675. <doc>
  30676. <![CDATA[TaskTracker is a process that starts and tracks MR Tasks
  30677. in a networked environment. It contacts the JobTracker
  30678. for Task assignments and reporting results.]]>
  30679. </doc>
  30680. </class>
  30681. <!-- end class org.apache.hadoop.mapred.TaskTracker -->
  30682. <!-- start class org.apache.hadoop.mapred.TaskTracker.Child -->
  30683. <class name="TaskTracker.Child" extends="java.lang.Object"
  30684. abstract="false"
  30685. static="true" final="false" visibility="public"
  30686. deprecated="not deprecated">
  30687. <constructor name="TaskTracker.Child"
  30688. static="false" final="false" visibility="public"
  30689. deprecated="not deprecated">
  30690. </constructor>
  30691. <method name="main"
  30692. abstract="false" native="false" synchronized="false"
  30693. static="true" final="false" visibility="public"
  30694. deprecated="not deprecated">
  30695. <param name="args" type="java.lang.String[]"/>
  30696. <exception name="Throwable" type="java.lang.Throwable"/>
  30697. </method>
  30698. <doc>
  30699. <![CDATA[The main() for child processes.]]>
  30700. </doc>
  30701. </class>
  30702. <!-- end class org.apache.hadoop.mapred.TaskTracker.Child -->
  30703. <!-- start class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  30704. <class name="TaskTracker.MapOutputServlet" extends="javax.servlet.http.HttpServlet"
  30705. abstract="false"
  30706. static="true" final="false" visibility="public"
  30707. deprecated="not deprecated">
  30708. <constructor name="TaskTracker.MapOutputServlet"
  30709. static="false" final="false" visibility="public"
  30710. deprecated="not deprecated">
  30711. </constructor>
  30712. <method name="doGet"
  30713. abstract="false" native="false" synchronized="false"
  30714. static="false" final="false" visibility="public"
  30715. deprecated="not deprecated">
  30716. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  30717. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  30718. <exception name="ServletException" type="javax.servlet.ServletException"/>
  30719. <exception name="IOException" type="java.io.IOException"/>
  30720. </method>
  30721. <doc>
  30722. <![CDATA[This class is used in TaskTracker's Jetty to serve the map outputs
  30723. to other nodes.]]>
  30724. </doc>
  30725. </class>
  30726. <!-- end class org.apache.hadoop.mapred.TaskTracker.MapOutputServlet -->
  30727. <!-- start class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  30728. <class name="TaskTracker.TaskTrackerMetrics" extends="java.lang.Object"
  30729. abstract="false"
  30730. static="false" final="false" visibility="public"
  30731. deprecated="not deprecated">
  30732. <implements name="org.apache.hadoop.metrics.Updater"/>
  30733. <method name="doUpdates"
  30734. abstract="false" native="false" synchronized="false"
  30735. static="false" final="false" visibility="public"
  30736. deprecated="not deprecated">
  30737. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  30738. <doc>
  30739. <![CDATA[Since this object is a registered updater, this method will be called
  30740. periodically, e.g. every 5 seconds.]]>
  30741. </doc>
  30742. </method>
  30743. </class>
  30744. <!-- end class org.apache.hadoop.mapred.TaskTracker.TaskTrackerMetrics -->
  30745. <!-- start class org.apache.hadoop.mapred.TextInputFormat -->
  30746. <class name="TextInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  30747. abstract="false"
  30748. static="false" final="false" visibility="public"
  30749. deprecated="not deprecated">
  30750. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  30751. <constructor name="TextInputFormat"
  30752. static="false" final="false" visibility="public"
  30753. deprecated="not deprecated">
  30754. </constructor>
  30755. <method name="configure"
  30756. abstract="false" native="false" synchronized="false"
  30757. static="false" final="false" visibility="public"
  30758. deprecated="not deprecated">
  30759. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  30760. </method>
  30761. <method name="isSplitable" return="boolean"
  30762. abstract="false" native="false" synchronized="false"
  30763. static="false" final="false" visibility="protected"
  30764. deprecated="not deprecated">
  30765. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  30766. <param name="file" type="org.apache.hadoop.fs.Path"/>
  30767. </method>
  30768. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  30769. abstract="false" native="false" synchronized="false"
  30770. static="false" final="false" visibility="public"
  30771. deprecated="not deprecated">
  30772. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  30773. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30774. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30775. <exception name="IOException" type="java.io.IOException"/>
  30776. </method>
  30777. <doc>
  30778. <![CDATA[An {@link InputFormat} for plain text files. Files are broken into lines.
  30779. Either linefeed or carriage-return are used to signal end of line. Keys are
  30780. the position in the file, and values are the line of text..]]>
  30781. </doc>
  30782. </class>
  30783. <!-- end class org.apache.hadoop.mapred.TextInputFormat -->
  30784. <!-- start class org.apache.hadoop.mapred.TextOutputFormat -->
  30785. <class name="TextOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  30786. abstract="false"
  30787. static="false" final="false" visibility="public"
  30788. deprecated="not deprecated">
  30789. <constructor name="TextOutputFormat"
  30790. static="false" final="false" visibility="public"
  30791. deprecated="not deprecated">
  30792. </constructor>
  30793. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  30794. abstract="false" native="false" synchronized="false"
  30795. static="false" final="false" visibility="public"
  30796. deprecated="not deprecated">
  30797. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  30798. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  30799. <param name="name" type="java.lang.String"/>
  30800. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  30801. <exception name="IOException" type="java.io.IOException"/>
  30802. </method>
  30803. <doc>
  30804. <![CDATA[An {@link OutputFormat} that writes plain text files.]]>
  30805. </doc>
  30806. </class>
  30807. <!-- end class org.apache.hadoop.mapred.TextOutputFormat -->
  30808. <!-- start class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  30809. <class name="TextOutputFormat.LineRecordWriter" extends="java.lang.Object"
  30810. abstract="false"
  30811. static="true" final="false" visibility="protected"
  30812. deprecated="not deprecated">
  30813. <implements name="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"/>
  30814. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream, java.lang.String"
  30815. static="false" final="false" visibility="public"
  30816. deprecated="not deprecated">
  30817. </constructor>
  30818. <constructor name="TextOutputFormat.LineRecordWriter" type="java.io.DataOutputStream"
  30819. static="false" final="false" visibility="public"
  30820. deprecated="not deprecated">
  30821. </constructor>
  30822. <method name="write"
  30823. abstract="false" native="false" synchronized="true"
  30824. static="false" final="false" visibility="public"
  30825. deprecated="not deprecated">
  30826. <param name="key" type="K"/>
  30827. <param name="value" type="V"/>
  30828. <exception name="IOException" type="java.io.IOException"/>
  30829. </method>
  30830. <method name="close"
  30831. abstract="false" native="false" synchronized="true"
  30832. static="false" final="false" visibility="public"
  30833. deprecated="not deprecated">
  30834. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  30835. <exception name="IOException" type="java.io.IOException"/>
  30836. </method>
  30837. </class>
  30838. <!-- end class org.apache.hadoop.mapred.TextOutputFormat.LineRecordWriter -->
  30839. </package>
  30840. <package name="org.apache.hadoop.mapred.jobcontrol">
  30841. <!-- start class org.apache.hadoop.mapred.jobcontrol.Job -->
  30842. <class name="Job" extends="java.lang.Object"
  30843. abstract="false"
  30844. static="false" final="false" visibility="public"
  30845. deprecated="not deprecated">
  30846. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf, java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  30847. static="false" final="false" visibility="public"
  30848. deprecated="not deprecated">
  30849. <exception name="IOException" type="java.io.IOException"/>
  30850. <doc>
  30851. <![CDATA[Construct a job.
  30852. @param jobConf a mapred job configuration representing a job to be executed.
  30853. @param dependingJobs an array of jobs the current job depends on]]>
  30854. </doc>
  30855. </constructor>
  30856. <constructor name="Job" type="org.apache.hadoop.mapred.JobConf"
  30857. static="false" final="false" visibility="public"
  30858. deprecated="not deprecated">
  30859. <exception name="IOException" type="java.io.IOException"/>
  30860. <doc>
  30861. <![CDATA[Construct a job.
  30862. @param jobConf mapred job configuration representing a job to be executed.
  30863. @throws IOException]]>
  30864. </doc>
  30865. </constructor>
  30866. <method name="toString" return="java.lang.String"
  30867. abstract="false" native="false" synchronized="false"
  30868. static="false" final="false" visibility="public"
  30869. deprecated="not deprecated">
  30870. </method>
  30871. <method name="getJobName" return="java.lang.String"
  30872. abstract="false" native="false" synchronized="false"
  30873. static="false" final="false" visibility="public"
  30874. deprecated="not deprecated">
  30875. <doc>
  30876. <![CDATA[@return the job name of this job]]>
  30877. </doc>
  30878. </method>
  30879. <method name="setJobName"
  30880. abstract="false" native="false" synchronized="false"
  30881. static="false" final="false" visibility="public"
  30882. deprecated="not deprecated">
  30883. <param name="jobName" type="java.lang.String"/>
  30884. <doc>
  30885. <![CDATA[Set the job name for this job.
  30886. @param jobName the job name]]>
  30887. </doc>
  30888. </method>
  30889. <method name="getJobID" return="java.lang.String"
  30890. abstract="false" native="false" synchronized="false"
  30891. static="false" final="false" visibility="public"
  30892. deprecated="not deprecated">
  30893. <doc>
  30894. <![CDATA[@return the job ID of this job assigned by JobControl]]>
  30895. </doc>
  30896. </method>
  30897. <method name="setJobID"
  30898. abstract="false" native="false" synchronized="false"
  30899. static="false" final="false" visibility="public"
  30900. deprecated="not deprecated">
  30901. <param name="id" type="java.lang.String"/>
  30902. <doc>
  30903. <![CDATA[Set the job ID for this job.
  30904. @param id the job ID]]>
  30905. </doc>
  30906. </method>
  30907. <method name="getMapredJobID" return="java.lang.String"
  30908. abstract="false" native="false" synchronized="false"
  30909. static="false" final="false" visibility="public"
  30910. deprecated="use {@link #getAssignedJobID()} instead">
  30911. <doc>
  30912. <![CDATA[@return the mapred ID of this job
  30913. @deprecated use {@link #getAssignedJobID()} instead]]>
  30914. </doc>
  30915. </method>
  30916. <method name="setMapredJobID"
  30917. abstract="false" native="false" synchronized="false"
  30918. static="false" final="false" visibility="public"
  30919. deprecated="use {@link #setAssignedJobID(JobID)} instead">
  30920. <param name="mapredJobID" type="java.lang.String"/>
  30921. <doc>
  30922. <![CDATA[Set the mapred ID for this job.
  30923. @param mapredJobID the mapred job ID for this job.
  30924. @deprecated use {@link #setAssignedJobID(JobID)} instead]]>
  30925. </doc>
  30926. </method>
  30927. <method name="getAssignedJobID" return="org.apache.hadoop.mapred.JobID"
  30928. abstract="false" native="false" synchronized="false"
  30929. static="false" final="false" visibility="public"
  30930. deprecated="not deprecated">
  30931. <doc>
  30932. <![CDATA[@return the mapred ID of this job as assigned by the
  30933. mapred framework.]]>
  30934. </doc>
  30935. </method>
  30936. <method name="setAssignedJobID"
  30937. abstract="false" native="false" synchronized="false"
  30938. static="false" final="false" visibility="public"
  30939. deprecated="not deprecated">
  30940. <param name="mapredJobID" type="org.apache.hadoop.mapred.JobID"/>
  30941. <doc>
  30942. <![CDATA[Set the mapred ID for this job as assigned by the
  30943. mapred framework.
  30944. @param mapredJobID the mapred job ID for this job.]]>
  30945. </doc>
  30946. </method>
  30947. <method name="getJobConf" return="org.apache.hadoop.mapred.JobConf"
  30948. abstract="false" native="false" synchronized="false"
  30949. static="false" final="false" visibility="public"
  30950. deprecated="not deprecated">
  30951. <doc>
  30952. <![CDATA[@return the mapred job conf of this job]]>
  30953. </doc>
  30954. </method>
  30955. <method name="setJobConf"
  30956. abstract="false" native="false" synchronized="false"
  30957. static="false" final="false" visibility="public"
  30958. deprecated="not deprecated">
  30959. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  30960. <doc>
  30961. <![CDATA[Set the mapred job conf for this job.
  30962. @param jobConf the mapred job conf for this job.]]>
  30963. </doc>
  30964. </method>
  30965. <method name="getState" return="int"
  30966. abstract="false" native="false" synchronized="true"
  30967. static="false" final="false" visibility="public"
  30968. deprecated="not deprecated">
  30969. <doc>
  30970. <![CDATA[@return the state of this job]]>
  30971. </doc>
  30972. </method>
  30973. <method name="setState"
  30974. abstract="false" native="false" synchronized="true"
  30975. static="false" final="false" visibility="protected"
  30976. deprecated="not deprecated">
  30977. <param name="state" type="int"/>
  30978. <doc>
  30979. <![CDATA[Set the state for this job.
  30980. @param state the new state for this job.]]>
  30981. </doc>
  30982. </method>
  30983. <method name="getMessage" return="java.lang.String"
  30984. abstract="false" native="false" synchronized="false"
  30985. static="false" final="false" visibility="public"
  30986. deprecated="not deprecated">
  30987. <doc>
  30988. <![CDATA[@return the message of this job]]>
  30989. </doc>
  30990. </method>
  30991. <method name="setMessage"
  30992. abstract="false" native="false" synchronized="false"
  30993. static="false" final="false" visibility="public"
  30994. deprecated="not deprecated">
  30995. <param name="message" type="java.lang.String"/>
  30996. <doc>
  30997. <![CDATA[Set the message for this job.
  30998. @param message the message for this job.]]>
  30999. </doc>
  31000. </method>
  31001. <method name="getDependingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31002. abstract="false" native="false" synchronized="false"
  31003. static="false" final="false" visibility="public"
  31004. deprecated="not deprecated">
  31005. <doc>
  31006. <![CDATA[@return the depending jobs of this job]]>
  31007. </doc>
  31008. </method>
  31009. <method name="addDependingJob" return="boolean"
  31010. abstract="false" native="false" synchronized="true"
  31011. static="false" final="false" visibility="public"
  31012. deprecated="not deprecated">
  31013. <param name="dependingJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  31014. <doc>
  31015. <![CDATA[Add a job to this jobs' dependency list. Dependent jobs can only be added while a Job
  31016. is waiting to run, not during or afterwards.
  31017. @param dependingJob Job that this Job depends on.
  31018. @return <tt>true</tt> if the Job was added.]]>
  31019. </doc>
  31020. </method>
  31021. <method name="isCompleted" return="boolean"
  31022. abstract="false" native="false" synchronized="false"
  31023. static="false" final="false" visibility="public"
  31024. deprecated="not deprecated">
  31025. <doc>
  31026. <![CDATA[@return true if this job is in a complete state]]>
  31027. </doc>
  31028. </method>
  31029. <method name="isReady" return="boolean"
  31030. abstract="false" native="false" synchronized="false"
  31031. static="false" final="false" visibility="public"
  31032. deprecated="not deprecated">
  31033. <doc>
  31034. <![CDATA[@return true if this job is in READY state]]>
  31035. </doc>
  31036. </method>
  31037. <method name="submit"
  31038. abstract="false" native="false" synchronized="true"
  31039. static="false" final="false" visibility="protected"
  31040. deprecated="not deprecated">
  31041. <doc>
  31042. <![CDATA[Submit this job to mapred. The state becomes RUNNING if submission
  31043. is successful, FAILED otherwise.]]>
  31044. </doc>
  31045. </method>
  31046. <field name="SUCCESS" type="int"
  31047. transient="false" volatile="false"
  31048. static="true" final="true" visibility="public"
  31049. deprecated="not deprecated">
  31050. </field>
  31051. <field name="WAITING" type="int"
  31052. transient="false" volatile="false"
  31053. static="true" final="true" visibility="public"
  31054. deprecated="not deprecated">
  31055. </field>
  31056. <field name="RUNNING" type="int"
  31057. transient="false" volatile="false"
  31058. static="true" final="true" visibility="public"
  31059. deprecated="not deprecated">
  31060. </field>
  31061. <field name="READY" type="int"
  31062. transient="false" volatile="false"
  31063. static="true" final="true" visibility="public"
  31064. deprecated="not deprecated">
  31065. </field>
  31066. <field name="FAILED" type="int"
  31067. transient="false" volatile="false"
  31068. static="true" final="true" visibility="public"
  31069. deprecated="not deprecated">
  31070. </field>
  31071. <field name="DEPENDENT_FAILED" type="int"
  31072. transient="false" volatile="false"
  31073. static="true" final="true" visibility="public"
  31074. deprecated="not deprecated">
  31075. </field>
  31076. <doc>
  31077. <![CDATA[This class encapsulates a MapReduce job and its dependency. It monitors
  31078. the states of the depending jobs and updates the state of this job.
  31079. A job stats in the WAITING state. If it does not have any deoending jobs, or
  31080. all of the depending jobs are in SUCCESS state, then the job state will become
  31081. READY. If any depending jobs fail, the job will fail too.
  31082. When in READY state, the job can be submitted to Hadoop for execution, with
  31083. the state changing into RUNNING state. From RUNNING state, the job can get into
  31084. SUCCESS or FAILED state, depending the status of the jon execution.]]>
  31085. </doc>
  31086. </class>
  31087. <!-- end class org.apache.hadoop.mapred.jobcontrol.Job -->
  31088. <!-- start class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  31089. <class name="JobControl" extends="java.lang.Object"
  31090. abstract="false"
  31091. static="false" final="false" visibility="public"
  31092. deprecated="not deprecated">
  31093. <implements name="java.lang.Runnable"/>
  31094. <constructor name="JobControl" type="java.lang.String"
  31095. static="false" final="false" visibility="public"
  31096. deprecated="not deprecated">
  31097. <doc>
  31098. <![CDATA[Construct a job control for a group of jobs.
  31099. @param groupName a name identifying this group]]>
  31100. </doc>
  31101. </constructor>
  31102. <method name="getWaitingJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31103. abstract="false" native="false" synchronized="false"
  31104. static="false" final="false" visibility="public"
  31105. deprecated="not deprecated">
  31106. <doc>
  31107. <![CDATA[@return the jobs in the waiting state]]>
  31108. </doc>
  31109. </method>
  31110. <method name="getRunningJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31111. abstract="false" native="false" synchronized="false"
  31112. static="false" final="false" visibility="public"
  31113. deprecated="not deprecated">
  31114. <doc>
  31115. <![CDATA[@return the jobs in the running state]]>
  31116. </doc>
  31117. </method>
  31118. <method name="getReadyJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31119. abstract="false" native="false" synchronized="false"
  31120. static="false" final="false" visibility="public"
  31121. deprecated="not deprecated">
  31122. <doc>
  31123. <![CDATA[@return the jobs in the ready state]]>
  31124. </doc>
  31125. </method>
  31126. <method name="getSuccessfulJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31127. abstract="false" native="false" synchronized="false"
  31128. static="false" final="false" visibility="public"
  31129. deprecated="not deprecated">
  31130. <doc>
  31131. <![CDATA[@return the jobs in the success state]]>
  31132. </doc>
  31133. </method>
  31134. <method name="getFailedJobs" return="java.util.ArrayList&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"
  31135. abstract="false" native="false" synchronized="false"
  31136. static="false" final="false" visibility="public"
  31137. deprecated="not deprecated">
  31138. </method>
  31139. <method name="addJob" return="java.lang.String"
  31140. abstract="false" native="false" synchronized="true"
  31141. static="false" final="false" visibility="public"
  31142. deprecated="not deprecated">
  31143. <param name="aJob" type="org.apache.hadoop.mapred.jobcontrol.Job"/>
  31144. <doc>
  31145. <![CDATA[Add a new job.
  31146. @param aJob the new job]]>
  31147. </doc>
  31148. </method>
  31149. <method name="addJobs"
  31150. abstract="false" native="false" synchronized="false"
  31151. static="false" final="false" visibility="public"
  31152. deprecated="not deprecated">
  31153. <param name="jobs" type="java.util.Collection&lt;org.apache.hadoop.mapred.jobcontrol.Job&gt;"/>
  31154. <doc>
  31155. <![CDATA[Add a collection of jobs
  31156. @param jobs]]>
  31157. </doc>
  31158. </method>
  31159. <method name="getState" return="int"
  31160. abstract="false" native="false" synchronized="false"
  31161. static="false" final="false" visibility="public"
  31162. deprecated="not deprecated">
  31163. <doc>
  31164. <![CDATA[@return the thread state]]>
  31165. </doc>
  31166. </method>
  31167. <method name="stop"
  31168. abstract="false" native="false" synchronized="false"
  31169. static="false" final="false" visibility="public"
  31170. deprecated="not deprecated">
  31171. <doc>
  31172. <![CDATA[set the thread state to STOPPING so that the
  31173. thread will stop when it wakes up.]]>
  31174. </doc>
  31175. </method>
  31176. <method name="suspend"
  31177. abstract="false" native="false" synchronized="false"
  31178. static="false" final="false" visibility="public"
  31179. deprecated="not deprecated">
  31180. <doc>
  31181. <![CDATA[suspend the running thread]]>
  31182. </doc>
  31183. </method>
  31184. <method name="resume"
  31185. abstract="false" native="false" synchronized="false"
  31186. static="false" final="false" visibility="public"
  31187. deprecated="not deprecated">
  31188. <doc>
  31189. <![CDATA[resume the suspended thread]]>
  31190. </doc>
  31191. </method>
  31192. <method name="allFinished" return="boolean"
  31193. abstract="false" native="false" synchronized="true"
  31194. static="false" final="false" visibility="public"
  31195. deprecated="not deprecated">
  31196. </method>
  31197. <method name="run"
  31198. abstract="false" native="false" synchronized="false"
  31199. static="false" final="false" visibility="public"
  31200. deprecated="not deprecated">
  31201. <doc>
  31202. <![CDATA[The main loop for the thread.
  31203. The loop does the following:
  31204. Check the states of the running jobs
  31205. Update the states of waiting jobs
  31206. Submit the jobs in ready state]]>
  31207. </doc>
  31208. </method>
  31209. <doc>
  31210. <![CDATA[This class encapsulates a set of MapReduce jobs and its dependency. It tracks
  31211. the states of the jobs by placing them into different tables according to their
  31212. states.
  31213. This class provides APIs for the client app to add a job to the group and to get
  31214. the jobs in the group in different states. When a
  31215. job is added, an ID unique to the group is assigned to the job.
  31216. This class has a thread that submits jobs when they become ready, monitors the
  31217. states of the running jobs, and updates the states of jobs based on the state changes
  31218. of their depending jobs states. The class provides APIs for suspending/resuming
  31219. the thread,and for stopping the thread.]]>
  31220. </doc>
  31221. </class>
  31222. <!-- end class org.apache.hadoop.mapred.jobcontrol.JobControl -->
  31223. </package>
  31224. <package name="org.apache.hadoop.mapred.join">
  31225. <!-- start class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  31226. <class name="ArrayListBackedIterator" extends="java.lang.Object"
  31227. abstract="false"
  31228. static="false" final="false" visibility="public"
  31229. deprecated="not deprecated">
  31230. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  31231. <constructor name="ArrayListBackedIterator"
  31232. static="false" final="false" visibility="public"
  31233. deprecated="not deprecated">
  31234. </constructor>
  31235. <constructor name="ArrayListBackedIterator" type="java.util.ArrayList&lt;X&gt;"
  31236. static="false" final="false" visibility="public"
  31237. deprecated="not deprecated">
  31238. </constructor>
  31239. <method name="hasNext" return="boolean"
  31240. abstract="false" native="false" synchronized="false"
  31241. static="false" final="false" visibility="public"
  31242. deprecated="not deprecated">
  31243. </method>
  31244. <method name="next" return="boolean"
  31245. abstract="false" native="false" synchronized="false"
  31246. static="false" final="false" visibility="public"
  31247. deprecated="not deprecated">
  31248. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  31249. <exception name="IOException" type="java.io.IOException"/>
  31250. </method>
  31251. <method name="replay"
  31252. abstract="false" native="false" synchronized="false"
  31253. static="false" final="false" visibility="public"
  31254. deprecated="not deprecated">
  31255. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  31256. <exception name="IOException" type="java.io.IOException"/>
  31257. </method>
  31258. <method name="reset"
  31259. abstract="false" native="false" synchronized="false"
  31260. static="false" final="false" visibility="public"
  31261. deprecated="not deprecated">
  31262. </method>
  31263. <method name="add"
  31264. abstract="false" native="false" synchronized="false"
  31265. static="false" final="false" visibility="public"
  31266. deprecated="not deprecated">
  31267. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  31268. <exception name="IOException" type="java.io.IOException"/>
  31269. </method>
  31270. <method name="close"
  31271. abstract="false" native="false" synchronized="false"
  31272. static="false" final="false" visibility="public"
  31273. deprecated="not deprecated">
  31274. <exception name="IOException" type="java.io.IOException"/>
  31275. </method>
  31276. <method name="clear"
  31277. abstract="false" native="false" synchronized="false"
  31278. static="false" final="false" visibility="public"
  31279. deprecated="not deprecated">
  31280. </method>
  31281. <doc>
  31282. <![CDATA[This class provides an implementation of ResetableIterator. The
  31283. implementation uses an {@link java.util.ArrayList} to store elements
  31284. added to it, replaying them as requested.
  31285. Prefer {@link StreamBackedIterator}.]]>
  31286. </doc>
  31287. </class>
  31288. <!-- end class org.apache.hadoop.mapred.join.ArrayListBackedIterator -->
  31289. <!-- start interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  31290. <interface name="ComposableInputFormat" abstract="true"
  31291. static="false" final="false" visibility="public"
  31292. deprecated="not deprecated">
  31293. <implements name="org.apache.hadoop.mapred.InputFormat&lt;K, V&gt;"/>
  31294. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"
  31295. abstract="false" native="false" synchronized="false"
  31296. static="false" final="false" visibility="public"
  31297. deprecated="not deprecated">
  31298. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  31299. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31300. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31301. <exception name="IOException" type="java.io.IOException"/>
  31302. </method>
  31303. <doc>
  31304. <![CDATA[Refinement of InputFormat requiring implementors to provide
  31305. ComposableRecordReader instead of RecordReader.]]>
  31306. </doc>
  31307. </interface>
  31308. <!-- end interface org.apache.hadoop.mapred.join.ComposableInputFormat -->
  31309. <!-- start interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  31310. <interface name="ComposableRecordReader" abstract="true"
  31311. static="false" final="false" visibility="public"
  31312. deprecated="not deprecated">
  31313. <implements name="org.apache.hadoop.mapred.RecordReader&lt;K, V&gt;"/>
  31314. <implements name="java.lang.Comparable&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"/>
  31315. <method name="id" return="int"
  31316. abstract="false" native="false" synchronized="false"
  31317. static="false" final="false" visibility="public"
  31318. deprecated="not deprecated">
  31319. <doc>
  31320. <![CDATA[Return the position in the collector this class occupies.]]>
  31321. </doc>
  31322. </method>
  31323. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  31324. abstract="false" native="false" synchronized="false"
  31325. static="false" final="false" visibility="public"
  31326. deprecated="not deprecated">
  31327. <doc>
  31328. <![CDATA[Return the key this RecordReader would supply on a call to next(K,V)]]>
  31329. </doc>
  31330. </method>
  31331. <method name="key"
  31332. abstract="false" native="false" synchronized="false"
  31333. static="false" final="false" visibility="public"
  31334. deprecated="not deprecated">
  31335. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31336. <exception name="IOException" type="java.io.IOException"/>
  31337. <doc>
  31338. <![CDATA[Clone the key at the head of this RecordReader into the object provided.]]>
  31339. </doc>
  31340. </method>
  31341. <method name="hasNext" return="boolean"
  31342. abstract="false" native="false" synchronized="false"
  31343. static="false" final="false" visibility="public"
  31344. deprecated="not deprecated">
  31345. <doc>
  31346. <![CDATA[Returns true if the stream is not empty, but provides no guarantee that
  31347. a call to next(K,V) will succeed.]]>
  31348. </doc>
  31349. </method>
  31350. <method name="skip"
  31351. abstract="false" native="false" synchronized="false"
  31352. static="false" final="false" visibility="public"
  31353. deprecated="not deprecated">
  31354. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31355. <exception name="IOException" type="java.io.IOException"/>
  31356. <doc>
  31357. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  31358. </doc>
  31359. </method>
  31360. <method name="accept"
  31361. abstract="false" native="false" synchronized="false"
  31362. static="false" final="false" visibility="public"
  31363. deprecated="not deprecated">
  31364. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  31365. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31366. <exception name="IOException" type="java.io.IOException"/>
  31367. <doc>
  31368. <![CDATA[While key-value pairs from this RecordReader match the given key, register
  31369. them with the JoinCollector provided.]]>
  31370. </doc>
  31371. </method>
  31372. <doc>
  31373. <![CDATA[Additional operations required of a RecordReader to participate in a join.]]>
  31374. </doc>
  31375. </interface>
  31376. <!-- end interface org.apache.hadoop.mapred.join.ComposableRecordReader -->
  31377. <!-- start class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  31378. <class name="CompositeInputFormat" extends="java.lang.Object"
  31379. abstract="false"
  31380. static="false" final="false" visibility="public"
  31381. deprecated="not deprecated">
  31382. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  31383. <constructor name="CompositeInputFormat"
  31384. static="false" final="false" visibility="public"
  31385. deprecated="not deprecated">
  31386. </constructor>
  31387. <method name="setFormat"
  31388. abstract="false" native="false" synchronized="false"
  31389. static="false" final="false" visibility="public"
  31390. deprecated="not deprecated">
  31391. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31392. <exception name="IOException" type="java.io.IOException"/>
  31393. <doc>
  31394. <![CDATA[Interpret a given string as a composite expression.
  31395. {@code
  31396. func ::= <ident>([<func>,]*<func>)
  31397. func ::= tbl(<class>,"<path>")
  31398. class ::= @see java.lang.Class#forName(java.lang.String)
  31399. path ::= @see org.apache.hadoop.fs.Path#Path(java.lang.String)
  31400. }
  31401. Reads expression from the <tt>mapred.join.expr</tt> property and
  31402. user-supplied join types from <tt>mapred.join.define.&lt;ident&gt;</tt>
  31403. types. Paths supplied to <tt>tbl</tt> are given as input paths to the
  31404. InputFormat class listed.
  31405. @see #compose(java.lang.String, java.lang.Class, java.lang.String...)]]>
  31406. </doc>
  31407. </method>
  31408. <method name="addDefaults"
  31409. abstract="false" native="false" synchronized="false"
  31410. static="false" final="false" visibility="protected"
  31411. deprecated="not deprecated">
  31412. <doc>
  31413. <![CDATA[Adds the default set of identifiers to the parser.]]>
  31414. </doc>
  31415. </method>
  31416. <method name="validateInput"
  31417. abstract="false" native="false" synchronized="false"
  31418. static="false" final="false" visibility="public"
  31419. deprecated="not deprecated">
  31420. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31421. <exception name="IOException" type="java.io.IOException"/>
  31422. <doc>
  31423. <![CDATA[Verify that this composite has children and that all its children
  31424. can validate their input.]]>
  31425. </doc>
  31426. </method>
  31427. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  31428. abstract="false" native="false" synchronized="false"
  31429. static="false" final="false" visibility="public"
  31430. deprecated="not deprecated">
  31431. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31432. <param name="numSplits" type="int"/>
  31433. <exception name="IOException" type="java.io.IOException"/>
  31434. <doc>
  31435. <![CDATA[Build a CompositeInputSplit from the child InputFormats by assigning the
  31436. ith split from each child to the ith composite split.]]>
  31437. </doc>
  31438. </method>
  31439. <method name="getRecordReader" return="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  31440. abstract="false" native="false" synchronized="false"
  31441. static="false" final="false" visibility="public"
  31442. deprecated="not deprecated">
  31443. <param name="split" type="org.apache.hadoop.mapred.InputSplit"/>
  31444. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  31445. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  31446. <exception name="IOException" type="java.io.IOException"/>
  31447. <doc>
  31448. <![CDATA[Construct a CompositeRecordReader for the children of this InputFormat
  31449. as defined in the init expression.
  31450. The outermost join need only be composable, not necessarily a composite.
  31451. Mandating TupleWritable isn't strictly correct.]]>
  31452. </doc>
  31453. </method>
  31454. <method name="compose" return="java.lang.String"
  31455. abstract="false" native="false" synchronized="false"
  31456. static="true" final="false" visibility="public"
  31457. deprecated="not deprecated">
  31458. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  31459. <param name="path" type="java.lang.String"/>
  31460. <doc>
  31461. <![CDATA[Convenience method for constructing composite formats.
  31462. Given InputFormat class (inf), path (p) return:
  31463. {@code tbl(<inf>, <p>) }]]>
  31464. </doc>
  31465. </method>
  31466. <method name="compose" return="java.lang.String"
  31467. abstract="false" native="false" synchronized="false"
  31468. static="true" final="false" visibility="public"
  31469. deprecated="not deprecated">
  31470. <param name="op" type="java.lang.String"/>
  31471. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  31472. <param name="path" type="java.lang.String[]"/>
  31473. <doc>
  31474. <![CDATA[Convenience method for constructing composite formats.
  31475. Given operation (op), Object class (inf), set of paths (p) return:
  31476. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  31477. </doc>
  31478. </method>
  31479. <method name="compose" return="java.lang.String"
  31480. abstract="false" native="false" synchronized="false"
  31481. static="true" final="false" visibility="public"
  31482. deprecated="not deprecated">
  31483. <param name="op" type="java.lang.String"/>
  31484. <param name="inf" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.InputFormat&gt;"/>
  31485. <param name="path" type="org.apache.hadoop.fs.Path[]"/>
  31486. <doc>
  31487. <![CDATA[Convenience method for constructing composite formats.
  31488. Given operation (op), Object class (inf), set of paths (p) return:
  31489. {@code <op>(tbl(<inf>,<p1>),tbl(<inf>,<p2>),...,tbl(<inf>,<pn>)) }]]>
  31490. </doc>
  31491. </method>
  31492. <doc>
  31493. <![CDATA[An InputFormat capable of performing joins over a set of data sources sorted
  31494. and partitioned the same way.
  31495. @see #setFormat
  31496. A user may define new join types by setting the property
  31497. <tt>mapred.join.define.&lt;ident&gt;</tt> to a classname. In the expression
  31498. <tt>mapred.join.expr</tt>, the identifier will be assumed to be a
  31499. ComposableRecordReader.
  31500. <tt>mapred.join.keycomparator</tt> can be a classname used to compare keys
  31501. in the join.
  31502. @see JoinRecordReader
  31503. @see MultiFilterRecordReader]]>
  31504. </doc>
  31505. </class>
  31506. <!-- end class org.apache.hadoop.mapred.join.CompositeInputFormat -->
  31507. <!-- start class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  31508. <class name="CompositeInputSplit" extends="java.lang.Object"
  31509. abstract="false"
  31510. static="false" final="false" visibility="public"
  31511. deprecated="not deprecated">
  31512. <implements name="org.apache.hadoop.mapred.InputSplit"/>
  31513. <constructor name="CompositeInputSplit"
  31514. static="false" final="false" visibility="public"
  31515. deprecated="not deprecated">
  31516. </constructor>
  31517. <constructor name="CompositeInputSplit" type="int"
  31518. static="false" final="false" visibility="public"
  31519. deprecated="not deprecated">
  31520. </constructor>
  31521. <method name="add"
  31522. abstract="false" native="false" synchronized="false"
  31523. static="false" final="false" visibility="public"
  31524. deprecated="not deprecated">
  31525. <param name="s" type="org.apache.hadoop.mapred.InputSplit"/>
  31526. <exception name="IOException" type="java.io.IOException"/>
  31527. <doc>
  31528. <![CDATA[Add an InputSplit to this collection.
  31529. @throws IOException If capacity was not specified during construction
  31530. or if capacity has been reached.]]>
  31531. </doc>
  31532. </method>
  31533. <method name="get" return="org.apache.hadoop.mapred.InputSplit"
  31534. abstract="false" native="false" synchronized="false"
  31535. static="false" final="false" visibility="public"
  31536. deprecated="not deprecated">
  31537. <param name="i" type="int"/>
  31538. <doc>
  31539. <![CDATA[Get ith child InputSplit.]]>
  31540. </doc>
  31541. </method>
  31542. <method name="getLength" return="long"
  31543. abstract="false" native="false" synchronized="false"
  31544. static="false" final="false" visibility="public"
  31545. deprecated="not deprecated">
  31546. <exception name="IOException" type="java.io.IOException"/>
  31547. <doc>
  31548. <![CDATA[Return the aggregate length of all child InputSplits currently added.]]>
  31549. </doc>
  31550. </method>
  31551. <method name="getLength" return="long"
  31552. abstract="false" native="false" synchronized="false"
  31553. static="false" final="false" visibility="public"
  31554. deprecated="not deprecated">
  31555. <param name="i" type="int"/>
  31556. <exception name="IOException" type="java.io.IOException"/>
  31557. <doc>
  31558. <![CDATA[Get the length of ith child InputSplit.]]>
  31559. </doc>
  31560. </method>
  31561. <method name="getLocations" return="java.lang.String[]"
  31562. abstract="false" native="false" synchronized="false"
  31563. static="false" final="false" visibility="public"
  31564. deprecated="not deprecated">
  31565. <exception name="IOException" type="java.io.IOException"/>
  31566. <doc>
  31567. <![CDATA[Collect a set of hosts from all child InputSplits.]]>
  31568. </doc>
  31569. </method>
  31570. <method name="getLocation" return="java.lang.String[]"
  31571. abstract="false" native="false" synchronized="false"
  31572. static="false" final="false" visibility="public"
  31573. deprecated="not deprecated">
  31574. <param name="i" type="int"/>
  31575. <exception name="IOException" type="java.io.IOException"/>
  31576. <doc>
  31577. <![CDATA[getLocations from ith InputSplit.]]>
  31578. </doc>
  31579. </method>
  31580. <method name="write"
  31581. abstract="false" native="false" synchronized="false"
  31582. static="false" final="false" visibility="public"
  31583. deprecated="not deprecated">
  31584. <param name="out" type="java.io.DataOutput"/>
  31585. <exception name="IOException" type="java.io.IOException"/>
  31586. <doc>
  31587. <![CDATA[Write splits in the following format.
  31588. {@code
  31589. <count><class1><class2>...<classn><split1><split2>...<splitn>
  31590. }]]>
  31591. </doc>
  31592. </method>
  31593. <method name="readFields"
  31594. abstract="false" native="false" synchronized="false"
  31595. static="false" final="false" visibility="public"
  31596. deprecated="not deprecated">
  31597. <param name="in" type="java.io.DataInput"/>
  31598. <exception name="IOException" type="java.io.IOException"/>
  31599. <doc>
  31600. <![CDATA[{@inheritDoc}
  31601. @throws IOException If the child InputSplit cannot be read, typically
  31602. for faliing access checks.]]>
  31603. </doc>
  31604. </method>
  31605. <doc>
  31606. <![CDATA[This InputSplit contains a set of child InputSplits. Any InputSplit inserted
  31607. into this collection must have a public default constructor.]]>
  31608. </doc>
  31609. </class>
  31610. <!-- end class org.apache.hadoop.mapred.join.CompositeInputSplit -->
  31611. <!-- start class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  31612. <class name="CompositeRecordReader" extends="java.lang.Object"
  31613. abstract="true"
  31614. static="false" final="false" visibility="public"
  31615. deprecated="not deprecated">
  31616. <implements name="org.apache.hadoop.conf.Configurable"/>
  31617. <constructor name="CompositeRecordReader" type="int, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  31618. static="false" final="false" visibility="public"
  31619. deprecated="not deprecated">
  31620. <exception name="IOException" type="java.io.IOException"/>
  31621. <doc>
  31622. <![CDATA[Create a RecordReader with <tt>capacity</tt> children to position
  31623. <tt>id</tt> in the parent reader.
  31624. The id of a root CompositeRecordReader is -1 by convention, but relying
  31625. on this is not recommended.]]>
  31626. </doc>
  31627. </constructor>
  31628. <method name="combine" return="boolean"
  31629. abstract="true" native="false" synchronized="false"
  31630. static="false" final="false" visibility="protected"
  31631. deprecated="not deprecated">
  31632. <param name="srcs" type="java.lang.Object[]"/>
  31633. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31634. </method>
  31635. <method name="id" return="int"
  31636. abstract="false" native="false" synchronized="false"
  31637. static="false" final="false" visibility="public"
  31638. deprecated="not deprecated">
  31639. <doc>
  31640. <![CDATA[Return the position in the collector this class occupies.]]>
  31641. </doc>
  31642. </method>
  31643. <method name="setConf"
  31644. abstract="false" native="false" synchronized="false"
  31645. static="false" final="false" visibility="public"
  31646. deprecated="not deprecated">
  31647. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  31648. <doc>
  31649. <![CDATA[{@inheritDoc}]]>
  31650. </doc>
  31651. </method>
  31652. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  31653. abstract="false" native="false" synchronized="false"
  31654. static="false" final="false" visibility="public"
  31655. deprecated="not deprecated">
  31656. <doc>
  31657. <![CDATA[{@inheritDoc}]]>
  31658. </doc>
  31659. </method>
  31660. <method name="getRecordReaderQueue" return="java.util.PriorityQueue&lt;org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;&gt;"
  31661. abstract="false" native="false" synchronized="false"
  31662. static="false" final="false" visibility="protected"
  31663. deprecated="not deprecated">
  31664. <doc>
  31665. <![CDATA[Return sorted list of RecordReaders for this composite.]]>
  31666. </doc>
  31667. </method>
  31668. <method name="getComparator" return="org.apache.hadoop.io.WritableComparator"
  31669. abstract="false" native="false" synchronized="false"
  31670. static="false" final="false" visibility="protected"
  31671. deprecated="not deprecated">
  31672. <doc>
  31673. <![CDATA[Return comparator defining the ordering for RecordReaders in this
  31674. composite.]]>
  31675. </doc>
  31676. </method>
  31677. <method name="add"
  31678. abstract="false" native="false" synchronized="false"
  31679. static="false" final="false" visibility="public"
  31680. deprecated="not deprecated">
  31681. <param name="rr" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ? extends V&gt;"/>
  31682. <exception name="IOException" type="java.io.IOException"/>
  31683. <doc>
  31684. <![CDATA[Add a RecordReader to this collection.
  31685. The id() of a RecordReader determines where in the Tuple its
  31686. entry will appear. Adding RecordReaders with the same id has
  31687. undefined behavior.]]>
  31688. </doc>
  31689. </method>
  31690. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  31691. abstract="false" native="false" synchronized="false"
  31692. static="false" final="false" visibility="public"
  31693. deprecated="not deprecated">
  31694. <doc>
  31695. <![CDATA[Return the key for the current join or the value at the top of the
  31696. RecordReader heap.]]>
  31697. </doc>
  31698. </method>
  31699. <method name="key"
  31700. abstract="false" native="false" synchronized="false"
  31701. static="false" final="false" visibility="public"
  31702. deprecated="not deprecated">
  31703. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31704. <exception name="IOException" type="java.io.IOException"/>
  31705. <doc>
  31706. <![CDATA[Clone the key at the top of this RR into the given object.]]>
  31707. </doc>
  31708. </method>
  31709. <method name="hasNext" return="boolean"
  31710. abstract="false" native="false" synchronized="false"
  31711. static="false" final="false" visibility="public"
  31712. deprecated="not deprecated">
  31713. <doc>
  31714. <![CDATA[Return true if it is possible that this could emit more values.]]>
  31715. </doc>
  31716. </method>
  31717. <method name="skip"
  31718. abstract="false" native="false" synchronized="false"
  31719. static="false" final="false" visibility="public"
  31720. deprecated="not deprecated">
  31721. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31722. <exception name="IOException" type="java.io.IOException"/>
  31723. <doc>
  31724. <![CDATA[Pass skip key to child RRs.]]>
  31725. </doc>
  31726. </method>
  31727. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"
  31728. abstract="true" native="false" synchronized="false"
  31729. static="false" final="false" visibility="protected"
  31730. deprecated="not deprecated">
  31731. <doc>
  31732. <![CDATA[Obtain an iterator over the child RRs apropos of the value type
  31733. ultimately emitted from this join.]]>
  31734. </doc>
  31735. </method>
  31736. <method name="accept"
  31737. abstract="false" native="false" synchronized="false"
  31738. static="false" final="false" visibility="public"
  31739. deprecated="not deprecated">
  31740. <param name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  31741. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31742. <exception name="IOException" type="java.io.IOException"/>
  31743. <doc>
  31744. <![CDATA[If key provided matches that of this Composite, give JoinCollector
  31745. iterator over values it may emit.]]>
  31746. </doc>
  31747. </method>
  31748. <method name="fillJoinCollector"
  31749. abstract="false" native="false" synchronized="false"
  31750. static="false" final="false" visibility="protected"
  31751. deprecated="not deprecated">
  31752. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31753. <exception name="IOException" type="java.io.IOException"/>
  31754. <doc>
  31755. <![CDATA[For all child RRs offering the key provided, obtain an iterator
  31756. at that position in the JoinCollector.]]>
  31757. </doc>
  31758. </method>
  31759. <method name="compareTo" return="int"
  31760. abstract="false" native="false" synchronized="false"
  31761. static="false" final="false" visibility="public"
  31762. deprecated="not deprecated">
  31763. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  31764. <doc>
  31765. <![CDATA[Implement Comparable contract (compare key of join or head of heap
  31766. with that of another).]]>
  31767. </doc>
  31768. </method>
  31769. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  31770. abstract="false" native="false" synchronized="false"
  31771. static="false" final="false" visibility="public"
  31772. deprecated="not deprecated">
  31773. <doc>
  31774. <![CDATA[Create a new key value common to all child RRs.
  31775. @throws ClassCastException if key classes differ.]]>
  31776. </doc>
  31777. </method>
  31778. <method name="createInternalValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  31779. abstract="false" native="false" synchronized="false"
  31780. static="false" final="false" visibility="protected"
  31781. deprecated="not deprecated">
  31782. <doc>
  31783. <![CDATA[Create a value to be used internally for joins.]]>
  31784. </doc>
  31785. </method>
  31786. <method name="getPos" return="long"
  31787. abstract="false" native="false" synchronized="false"
  31788. static="false" final="false" visibility="public"
  31789. deprecated="not deprecated">
  31790. <exception name="IOException" type="java.io.IOException"/>
  31791. <doc>
  31792. <![CDATA[Unsupported (returns zero in all cases).]]>
  31793. </doc>
  31794. </method>
  31795. <method name="close"
  31796. abstract="false" native="false" synchronized="false"
  31797. static="false" final="false" visibility="public"
  31798. deprecated="not deprecated">
  31799. <exception name="IOException" type="java.io.IOException"/>
  31800. <doc>
  31801. <![CDATA[Close all child RRs.]]>
  31802. </doc>
  31803. </method>
  31804. <method name="getProgress" return="float"
  31805. abstract="false" native="false" synchronized="false"
  31806. static="false" final="false" visibility="public"
  31807. deprecated="not deprecated">
  31808. <exception name="IOException" type="java.io.IOException"/>
  31809. <doc>
  31810. <![CDATA[Report progress as the minimum of all child RR progress.]]>
  31811. </doc>
  31812. </method>
  31813. <field name="jc" type="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, X&gt;.JoinCollector"
  31814. transient="false" volatile="false"
  31815. static="false" final="true" visibility="protected"
  31816. deprecated="not deprecated">
  31817. </field>
  31818. <field name="kids" type="org.apache.hadoop.mapred.join.ComposableRecordReader[]"
  31819. transient="false" volatile="false"
  31820. static="false" final="true" visibility="protected"
  31821. deprecated="not deprecated">
  31822. </field>
  31823. <doc>
  31824. <![CDATA[A RecordReader that can effect joins of RecordReaders sharing a common key
  31825. type and partitioning.]]>
  31826. </doc>
  31827. </class>
  31828. <!-- end class org.apache.hadoop.mapred.join.CompositeRecordReader -->
  31829. <!-- start class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  31830. <class name="InnerJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  31831. abstract="false"
  31832. static="false" final="false" visibility="public"
  31833. deprecated="not deprecated">
  31834. <method name="combine" return="boolean"
  31835. abstract="false" native="false" synchronized="false"
  31836. static="false" final="false" visibility="protected"
  31837. deprecated="not deprecated">
  31838. <param name="srcs" type="java.lang.Object[]"/>
  31839. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31840. <doc>
  31841. <![CDATA[Return true iff the tuple is full (all data sources contain this key).]]>
  31842. </doc>
  31843. </method>
  31844. <doc>
  31845. <![CDATA[Full inner join.]]>
  31846. </doc>
  31847. </class>
  31848. <!-- end class org.apache.hadoop.mapred.join.InnerJoinRecordReader -->
  31849. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader -->
  31850. <class name="JoinRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, org.apache.hadoop.io.Writable, org.apache.hadoop.mapred.join.TupleWritable&gt;"
  31851. abstract="true"
  31852. static="false" final="false" visibility="public"
  31853. deprecated="not deprecated">
  31854. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  31855. <constructor name="JoinRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  31856. static="false" final="false" visibility="public"
  31857. deprecated="not deprecated">
  31858. <exception name="IOException" type="java.io.IOException"/>
  31859. </constructor>
  31860. <method name="next" return="boolean"
  31861. abstract="false" native="false" synchronized="false"
  31862. static="false" final="false" visibility="public"
  31863. deprecated="not deprecated">
  31864. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31865. <param name="value" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31866. <exception name="IOException" type="java.io.IOException"/>
  31867. <doc>
  31868. <![CDATA[Emit the next set of key, value pairs as defined by the child
  31869. RecordReaders and operation associated with this composite RR.]]>
  31870. </doc>
  31871. </method>
  31872. <method name="createValue" return="org.apache.hadoop.mapred.join.TupleWritable"
  31873. abstract="false" native="false" synchronized="false"
  31874. static="false" final="false" visibility="public"
  31875. deprecated="not deprecated">
  31876. <doc>
  31877. <![CDATA[{@inheritDoc}]]>
  31878. </doc>
  31879. </method>
  31880. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"
  31881. abstract="false" native="false" synchronized="false"
  31882. static="false" final="false" visibility="protected"
  31883. deprecated="not deprecated">
  31884. <doc>
  31885. <![CDATA[Return an iterator wrapping the JoinCollector.]]>
  31886. </doc>
  31887. </method>
  31888. <doc>
  31889. <![CDATA[Base class for Composite joins returning Tuples of arbitrary Writables.]]>
  31890. </doc>
  31891. </class>
  31892. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader -->
  31893. <!-- start class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  31894. <class name="JoinRecordReader.JoinDelegationIterator" extends="java.lang.Object"
  31895. abstract="false"
  31896. static="false" final="false" visibility="protected"
  31897. deprecated="not deprecated">
  31898. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;org.apache.hadoop.mapred.join.TupleWritable&gt;"/>
  31899. <constructor name="JoinRecordReader.JoinDelegationIterator"
  31900. static="false" final="false" visibility="protected"
  31901. deprecated="not deprecated">
  31902. </constructor>
  31903. <method name="hasNext" return="boolean"
  31904. abstract="false" native="false" synchronized="false"
  31905. static="false" final="false" visibility="public"
  31906. deprecated="not deprecated">
  31907. </method>
  31908. <method name="next" return="boolean"
  31909. abstract="false" native="false" synchronized="false"
  31910. static="false" final="false" visibility="public"
  31911. deprecated="not deprecated">
  31912. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31913. <exception name="IOException" type="java.io.IOException"/>
  31914. </method>
  31915. <method name="replay"
  31916. abstract="false" native="false" synchronized="false"
  31917. static="false" final="false" visibility="public"
  31918. deprecated="not deprecated">
  31919. <param name="val" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31920. <exception name="IOException" type="java.io.IOException"/>
  31921. </method>
  31922. <method name="reset"
  31923. abstract="false" native="false" synchronized="false"
  31924. static="false" final="false" visibility="public"
  31925. deprecated="not deprecated">
  31926. </method>
  31927. <method name="add"
  31928. abstract="false" native="false" synchronized="false"
  31929. static="false" final="false" visibility="public"
  31930. deprecated="not deprecated">
  31931. <param name="item" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31932. <exception name="IOException" type="java.io.IOException"/>
  31933. </method>
  31934. <method name="close"
  31935. abstract="false" native="false" synchronized="false"
  31936. static="false" final="false" visibility="public"
  31937. deprecated="not deprecated">
  31938. <exception name="IOException" type="java.io.IOException"/>
  31939. </method>
  31940. <method name="clear"
  31941. abstract="false" native="false" synchronized="false"
  31942. static="false" final="false" visibility="public"
  31943. deprecated="not deprecated">
  31944. </method>
  31945. <doc>
  31946. <![CDATA[Since the JoinCollector is effecting our operation, we need only
  31947. provide an iterator proxy wrapping its operation.]]>
  31948. </doc>
  31949. </class>
  31950. <!-- end class org.apache.hadoop.mapred.join.JoinRecordReader.JoinDelegationIterator -->
  31951. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  31952. <class name="MultiFilterRecordReader" extends="org.apache.hadoop.mapred.join.CompositeRecordReader&lt;K, V, V&gt;"
  31953. abstract="true"
  31954. static="false" final="false" visibility="public"
  31955. deprecated="not deprecated">
  31956. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, V&gt;"/>
  31957. <constructor name="MultiFilterRecordReader" type="int, org.apache.hadoop.mapred.JobConf, int, java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  31958. static="false" final="false" visibility="public"
  31959. deprecated="not deprecated">
  31960. <exception name="IOException" type="java.io.IOException"/>
  31961. </constructor>
  31962. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  31963. abstract="true" native="false" synchronized="false"
  31964. static="false" final="false" visibility="protected"
  31965. deprecated="not deprecated">
  31966. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31967. <exception name="IOException" type="java.io.IOException"/>
  31968. <doc>
  31969. <![CDATA[For each tuple emitted, return a value (typically one of the values
  31970. in the tuple).
  31971. Modifying the Writables in the tuple is permitted and unlikely to affect
  31972. join behavior in most cases, but it is not recommended. It's safer to
  31973. clone first.]]>
  31974. </doc>
  31975. </method>
  31976. <method name="combine" return="boolean"
  31977. abstract="false" native="false" synchronized="false"
  31978. static="false" final="false" visibility="protected"
  31979. deprecated="not deprecated">
  31980. <param name="srcs" type="java.lang.Object[]"/>
  31981. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  31982. <doc>
  31983. <![CDATA[Default implementation offers {@link #emit} every Tuple from the
  31984. collector (the outer join of child RRs).]]>
  31985. </doc>
  31986. </method>
  31987. <method name="next" return="boolean"
  31988. abstract="false" native="false" synchronized="false"
  31989. static="false" final="false" visibility="public"
  31990. deprecated="not deprecated">
  31991. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  31992. <param name="value" type="V extends org.apache.hadoop.io.Writable"/>
  31993. <exception name="IOException" type="java.io.IOException"/>
  31994. <doc>
  31995. <![CDATA[{@inheritDoc}]]>
  31996. </doc>
  31997. </method>
  31998. <method name="createValue" return="V extends org.apache.hadoop.io.Writable"
  31999. abstract="false" native="false" synchronized="false"
  32000. static="false" final="false" visibility="public"
  32001. deprecated="not deprecated">
  32002. <doc>
  32003. <![CDATA[{@inheritDoc}]]>
  32004. </doc>
  32005. </method>
  32006. <method name="getDelegate" return="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"
  32007. abstract="false" native="false" synchronized="false"
  32008. static="false" final="false" visibility="protected"
  32009. deprecated="not deprecated">
  32010. <doc>
  32011. <![CDATA[Return an iterator returning a single value from the tuple.
  32012. @see MultiFilterDelegationIterator]]>
  32013. </doc>
  32014. </method>
  32015. <doc>
  32016. <![CDATA[Base class for Composite join returning values derived from multiple
  32017. sources, but generally not tuples.]]>
  32018. </doc>
  32019. </class>
  32020. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader -->
  32021. <!-- start class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  32022. <class name="MultiFilterRecordReader.MultiFilterDelegationIterator" extends="java.lang.Object"
  32023. abstract="false"
  32024. static="false" final="false" visibility="protected"
  32025. deprecated="not deprecated">
  32026. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;V&gt;"/>
  32027. <constructor name="MultiFilterRecordReader.MultiFilterDelegationIterator"
  32028. static="false" final="false" visibility="protected"
  32029. deprecated="not deprecated">
  32030. </constructor>
  32031. <method name="hasNext" return="boolean"
  32032. abstract="false" native="false" synchronized="false"
  32033. static="false" final="false" visibility="public"
  32034. deprecated="not deprecated">
  32035. </method>
  32036. <method name="next" return="boolean"
  32037. abstract="false" native="false" synchronized="false"
  32038. static="false" final="false" visibility="public"
  32039. deprecated="not deprecated">
  32040. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  32041. <exception name="IOException" type="java.io.IOException"/>
  32042. </method>
  32043. <method name="replay"
  32044. abstract="false" native="false" synchronized="false"
  32045. static="false" final="false" visibility="public"
  32046. deprecated="not deprecated">
  32047. <param name="val" type="V extends org.apache.hadoop.io.Writable"/>
  32048. <exception name="IOException" type="java.io.IOException"/>
  32049. </method>
  32050. <method name="reset"
  32051. abstract="false" native="false" synchronized="false"
  32052. static="false" final="false" visibility="public"
  32053. deprecated="not deprecated">
  32054. </method>
  32055. <method name="add"
  32056. abstract="false" native="false" synchronized="false"
  32057. static="false" final="false" visibility="public"
  32058. deprecated="not deprecated">
  32059. <param name="item" type="V extends org.apache.hadoop.io.Writable"/>
  32060. <exception name="IOException" type="java.io.IOException"/>
  32061. </method>
  32062. <method name="close"
  32063. abstract="false" native="false" synchronized="false"
  32064. static="false" final="false" visibility="public"
  32065. deprecated="not deprecated">
  32066. <exception name="IOException" type="java.io.IOException"/>
  32067. </method>
  32068. <method name="clear"
  32069. abstract="false" native="false" synchronized="false"
  32070. static="false" final="false" visibility="public"
  32071. deprecated="not deprecated">
  32072. </method>
  32073. <doc>
  32074. <![CDATA[Proxy the JoinCollector, but include callback to emit.]]>
  32075. </doc>
  32076. </class>
  32077. <!-- end class org.apache.hadoop.mapred.join.MultiFilterRecordReader.MultiFilterDelegationIterator -->
  32078. <!-- start class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  32079. <class name="OuterJoinRecordReader" extends="org.apache.hadoop.mapred.join.JoinRecordReader&lt;K&gt;"
  32080. abstract="false"
  32081. static="false" final="false" visibility="public"
  32082. deprecated="not deprecated">
  32083. <method name="combine" return="boolean"
  32084. abstract="false" native="false" synchronized="false"
  32085. static="false" final="false" visibility="protected"
  32086. deprecated="not deprecated">
  32087. <param name="srcs" type="java.lang.Object[]"/>
  32088. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  32089. <doc>
  32090. <![CDATA[Emit everything from the collector.]]>
  32091. </doc>
  32092. </method>
  32093. <doc>
  32094. <![CDATA[Full outer join.]]>
  32095. </doc>
  32096. </class>
  32097. <!-- end class org.apache.hadoop.mapred.join.OuterJoinRecordReader -->
  32098. <!-- start class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  32099. <class name="OverrideRecordReader" extends="org.apache.hadoop.mapred.join.MultiFilterRecordReader&lt;K, V&gt;"
  32100. abstract="false"
  32101. static="false" final="false" visibility="public"
  32102. deprecated="not deprecated">
  32103. <method name="emit" return="V extends org.apache.hadoop.io.Writable"
  32104. abstract="false" native="false" synchronized="false"
  32105. static="false" final="false" visibility="protected"
  32106. deprecated="not deprecated">
  32107. <param name="dst" type="org.apache.hadoop.mapred.join.TupleWritable"/>
  32108. <doc>
  32109. <![CDATA[Emit the value with the highest position in the tuple.]]>
  32110. </doc>
  32111. </method>
  32112. <method name="fillJoinCollector"
  32113. abstract="false" native="false" synchronized="false"
  32114. static="false" final="false" visibility="protected"
  32115. deprecated="not deprecated">
  32116. <param name="iterkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  32117. <exception name="IOException" type="java.io.IOException"/>
  32118. <doc>
  32119. <![CDATA[Instead of filling the JoinCollector with iterators from all
  32120. data sources, fill only the rightmost for this key.
  32121. This not only saves space by discarding the other sources, but
  32122. it also emits the number of key-value pairs in the preferred
  32123. RecordReader instead of repeating that stream n times, where
  32124. n is the cardinality of the cross product of the discarded
  32125. streams for the given key.]]>
  32126. </doc>
  32127. </method>
  32128. <doc>
  32129. <![CDATA[Prefer the &quot;rightmost&quot; data source for this key.
  32130. For example, <tt>override(S1,S2,S3)</tt> will prefer values
  32131. from S3 over S2, and values from S2 over S1 for all keys
  32132. emitted from all sources.]]>
  32133. </doc>
  32134. </class>
  32135. <!-- end class org.apache.hadoop.mapred.join.OverrideRecordReader -->
  32136. <!-- start class org.apache.hadoop.mapred.join.Parser -->
  32137. <class name="Parser" extends="java.lang.Object"
  32138. abstract="false"
  32139. static="false" final="false" visibility="public"
  32140. deprecated="not deprecated">
  32141. <constructor name="Parser"
  32142. static="false" final="false" visibility="public"
  32143. deprecated="not deprecated">
  32144. </constructor>
  32145. <doc>
  32146. <![CDATA[Very simple shift-reduce parser for join expressions.
  32147. This should be sufficient for the user extension permitted now, but ought to
  32148. be replaced with a parser generator if more complex grammars are supported.
  32149. In particular, this &quot;shift-reduce&quot; parser has no states. Each set
  32150. of formals requires a different internal node type, which is responsible for
  32151. interpreting the list of tokens it receives. This is sufficient for the
  32152. current grammar, but it has several annoying properties that might inhibit
  32153. extension. In particular, parenthesis are always function calls; an
  32154. algebraic or filter grammar would not only require a node type, but must
  32155. also work around the internals of this parser.
  32156. For most other cases, adding classes to the hierarchy- particularly by
  32157. extending JoinRecordReader and MultiFilterRecordReader- is fairly
  32158. straightforward. One need only override the relevant method(s) (usually only
  32159. {@link CompositeRecordReader#combine}) and include a property to map its
  32160. value to an identifier in the parser.]]>
  32161. </doc>
  32162. </class>
  32163. <!-- end class org.apache.hadoop.mapred.join.Parser -->
  32164. <!-- start class org.apache.hadoop.mapred.join.Parser.Node -->
  32165. <class name="Parser.Node" extends="java.lang.Object"
  32166. abstract="true"
  32167. static="true" final="false" visibility="public"
  32168. deprecated="not deprecated">
  32169. <implements name="org.apache.hadoop.mapred.join.ComposableInputFormat"/>
  32170. <constructor name="Parser.Node" type="java.lang.String"
  32171. static="false" final="false" visibility="protected"
  32172. deprecated="not deprecated">
  32173. </constructor>
  32174. <method name="addIdentifier"
  32175. abstract="false" native="false" synchronized="false"
  32176. static="true" final="false" visibility="protected"
  32177. deprecated="not deprecated">
  32178. <param name="ident" type="java.lang.String"/>
  32179. <param name="mcstrSig" type="java.lang.Class[]"/>
  32180. <param name="nodetype" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.Parser.Node&gt;"/>
  32181. <param name="cl" type="java.lang.Class&lt;? extends org.apache.hadoop.mapred.join.ComposableRecordReader&gt;"/>
  32182. <exception name="NoSuchMethodException" type="java.lang.NoSuchMethodException"/>
  32183. <doc>
  32184. <![CDATA[For a given identifier, add a mapping to the nodetype for the parse
  32185. tree and to the ComposableRecordReader to be created, including the
  32186. formals required to invoke the constructor.
  32187. The nodetype and constructor signature should be filled in from the
  32188. child node.]]>
  32189. </doc>
  32190. </method>
  32191. <method name="setID"
  32192. abstract="false" native="false" synchronized="false"
  32193. static="false" final="false" visibility="protected"
  32194. deprecated="not deprecated">
  32195. <param name="id" type="int"/>
  32196. </method>
  32197. <method name="setKeyComparator"
  32198. abstract="false" native="false" synchronized="false"
  32199. static="false" final="false" visibility="protected"
  32200. deprecated="not deprecated">
  32201. <param name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"/>
  32202. </method>
  32203. <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;"
  32204. transient="false" volatile="false"
  32205. static="true" final="true" visibility="protected"
  32206. deprecated="not deprecated">
  32207. </field>
  32208. <field name="id" type="int"
  32209. transient="false" volatile="false"
  32210. static="false" final="false" visibility="protected"
  32211. deprecated="not deprecated">
  32212. </field>
  32213. <field name="ident" type="java.lang.String"
  32214. transient="false" volatile="false"
  32215. static="false" final="false" visibility="protected"
  32216. deprecated="not deprecated">
  32217. </field>
  32218. <field name="cmpcl" type="java.lang.Class&lt;? extends org.apache.hadoop.io.WritableComparator&gt;"
  32219. transient="false" volatile="false"
  32220. static="false" final="false" visibility="protected"
  32221. deprecated="not deprecated">
  32222. </field>
  32223. </class>
  32224. <!-- end class org.apache.hadoop.mapred.join.Parser.Node -->
  32225. <!-- start class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  32226. <class name="Parser.NodeToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  32227. abstract="false"
  32228. static="true" final="false" visibility="public"
  32229. deprecated="not deprecated">
  32230. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  32231. abstract="false" native="false" synchronized="false"
  32232. static="false" final="false" visibility="public"
  32233. deprecated="not deprecated">
  32234. </method>
  32235. </class>
  32236. <!-- end class org.apache.hadoop.mapred.join.Parser.NodeToken -->
  32237. <!-- start class org.apache.hadoop.mapred.join.Parser.NumToken -->
  32238. <class name="Parser.NumToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  32239. abstract="false"
  32240. static="true" final="false" visibility="public"
  32241. deprecated="not deprecated">
  32242. <constructor name="Parser.NumToken" type="double"
  32243. static="false" final="false" visibility="public"
  32244. deprecated="not deprecated">
  32245. </constructor>
  32246. <method name="getNum" return="double"
  32247. abstract="false" native="false" synchronized="false"
  32248. static="false" final="false" visibility="public"
  32249. deprecated="not deprecated">
  32250. </method>
  32251. </class>
  32252. <!-- end class org.apache.hadoop.mapred.join.Parser.NumToken -->
  32253. <!-- start class org.apache.hadoop.mapred.join.Parser.StrToken -->
  32254. <class name="Parser.StrToken" extends="org.apache.hadoop.mapred.join.Parser.Token"
  32255. abstract="false"
  32256. static="true" final="false" visibility="public"
  32257. deprecated="not deprecated">
  32258. <constructor name="Parser.StrToken" type="org.apache.hadoop.mapred.join.Parser.TType, java.lang.String"
  32259. static="false" final="false" visibility="public"
  32260. deprecated="not deprecated">
  32261. </constructor>
  32262. <method name="getStr" return="java.lang.String"
  32263. abstract="false" native="false" synchronized="false"
  32264. static="false" final="false" visibility="public"
  32265. deprecated="not deprecated">
  32266. </method>
  32267. </class>
  32268. <!-- end class org.apache.hadoop.mapred.join.Parser.StrToken -->
  32269. <!-- start class org.apache.hadoop.mapred.join.Parser.Token -->
  32270. <class name="Parser.Token" extends="java.lang.Object"
  32271. abstract="false"
  32272. static="true" final="false" visibility="public"
  32273. deprecated="not deprecated">
  32274. <method name="getType" return="org.apache.hadoop.mapred.join.Parser.TType"
  32275. abstract="false" native="false" synchronized="false"
  32276. static="false" final="false" visibility="public"
  32277. deprecated="not deprecated">
  32278. </method>
  32279. <method name="getNode" return="org.apache.hadoop.mapred.join.Parser.Node"
  32280. abstract="false" native="false" synchronized="false"
  32281. static="false" final="false" visibility="public"
  32282. deprecated="not deprecated">
  32283. <exception name="IOException" type="java.io.IOException"/>
  32284. </method>
  32285. <method name="getNum" return="double"
  32286. abstract="false" native="false" synchronized="false"
  32287. static="false" final="false" visibility="public"
  32288. deprecated="not deprecated">
  32289. <exception name="IOException" type="java.io.IOException"/>
  32290. </method>
  32291. <method name="getStr" return="java.lang.String"
  32292. abstract="false" native="false" synchronized="false"
  32293. static="false" final="false" visibility="public"
  32294. deprecated="not deprecated">
  32295. <exception name="IOException" type="java.io.IOException"/>
  32296. </method>
  32297. <doc>
  32298. <![CDATA[Tagged-union type for tokens from the join expression.
  32299. @see Parser.TType]]>
  32300. </doc>
  32301. </class>
  32302. <!-- end class org.apache.hadoop.mapred.join.Parser.Token -->
  32303. <!-- start class org.apache.hadoop.mapred.join.Parser.TType -->
  32304. <class name="Parser.TType" extends="java.lang.Enum&lt;org.apache.hadoop.mapred.join.Parser.TType&gt;"
  32305. abstract="false"
  32306. static="true" final="true" visibility="public"
  32307. deprecated="not deprecated">
  32308. <method name="values" return="org.apache.hadoop.mapred.join.Parser.TType[]"
  32309. abstract="false" native="false" synchronized="false"
  32310. static="true" final="false" visibility="public"
  32311. deprecated="not deprecated">
  32312. </method>
  32313. <method name="valueOf" return="org.apache.hadoop.mapred.join.Parser.TType"
  32314. abstract="false" native="false" synchronized="false"
  32315. static="true" final="false" visibility="public"
  32316. deprecated="not deprecated">
  32317. <param name="name" type="java.lang.String"/>
  32318. </method>
  32319. </class>
  32320. <!-- end class org.apache.hadoop.mapred.join.Parser.TType -->
  32321. <!-- start interface org.apache.hadoop.mapred.join.ResetableIterator -->
  32322. <interface name="ResetableIterator" abstract="true"
  32323. static="false" final="false" visibility="public"
  32324. deprecated="not deprecated">
  32325. <method name="hasNext" return="boolean"
  32326. abstract="false" native="false" synchronized="false"
  32327. static="false" final="false" visibility="public"
  32328. deprecated="not deprecated">
  32329. <doc>
  32330. <![CDATA[True iff a call to next will succeed.]]>
  32331. </doc>
  32332. </method>
  32333. <method name="next" return="boolean"
  32334. abstract="false" native="false" synchronized="false"
  32335. static="false" final="false" visibility="public"
  32336. deprecated="not deprecated">
  32337. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  32338. <exception name="IOException" type="java.io.IOException"/>
  32339. <doc>
  32340. <![CDATA[Assign next value to actual.
  32341. It is required that elements added to a ResetableIterator be returned in
  32342. the same order after a call to {@link #reset} (FIFO).
  32343. Note that a call to this may fail for nested joins (i.e. more elements
  32344. available, but none satisfying the constraints of the join)]]>
  32345. </doc>
  32346. </method>
  32347. <method name="replay"
  32348. abstract="false" native="false" synchronized="false"
  32349. static="false" final="false" visibility="public"
  32350. deprecated="not deprecated">
  32351. <param name="val" type="T extends org.apache.hadoop.io.Writable"/>
  32352. <exception name="IOException" type="java.io.IOException"/>
  32353. <doc>
  32354. <![CDATA[Assign last value returned to actual.]]>
  32355. </doc>
  32356. </method>
  32357. <method name="reset"
  32358. abstract="false" native="false" synchronized="false"
  32359. static="false" final="false" visibility="public"
  32360. deprecated="not deprecated">
  32361. <doc>
  32362. <![CDATA[Set iterator to return to the start of its range. Must be called after
  32363. calling {@link #add} to avoid a ConcurrentModificationException.]]>
  32364. </doc>
  32365. </method>
  32366. <method name="add"
  32367. abstract="false" native="false" synchronized="false"
  32368. static="false" final="false" visibility="public"
  32369. deprecated="not deprecated">
  32370. <param name="item" type="T extends org.apache.hadoop.io.Writable"/>
  32371. <exception name="IOException" type="java.io.IOException"/>
  32372. <doc>
  32373. <![CDATA[Add an element to the collection of elements to iterate over.]]>
  32374. </doc>
  32375. </method>
  32376. <method name="close"
  32377. abstract="false" native="false" synchronized="false"
  32378. static="false" final="false" visibility="public"
  32379. deprecated="not deprecated">
  32380. <exception name="IOException" type="java.io.IOException"/>
  32381. <doc>
  32382. <![CDATA[Close datasources and release resources. Calling methods on the iterator
  32383. after calling close has undefined behavior.]]>
  32384. </doc>
  32385. </method>
  32386. <method name="clear"
  32387. abstract="false" native="false" synchronized="false"
  32388. static="false" final="false" visibility="public"
  32389. deprecated="not deprecated">
  32390. <doc>
  32391. <![CDATA[Close datasources, but do not release internal resources. Calling this
  32392. method should permit the object to be reused with a different datasource.]]>
  32393. </doc>
  32394. </method>
  32395. <doc>
  32396. <![CDATA[This defines an interface to a stateful Iterator that can replay elements
  32397. added to it directly.
  32398. Note that this does not extend {@link java.util.Iterator}.]]>
  32399. </doc>
  32400. </interface>
  32401. <!-- end interface org.apache.hadoop.mapred.join.ResetableIterator -->
  32402. <!-- start class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  32403. <class name="ResetableIterator.EMPTY" extends="java.lang.Object"
  32404. abstract="false"
  32405. static="true" final="false" visibility="public"
  32406. deprecated="not deprecated">
  32407. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;U&gt;"/>
  32408. <constructor name="ResetableIterator.EMPTY"
  32409. static="false" final="false" visibility="public"
  32410. deprecated="not deprecated">
  32411. </constructor>
  32412. <method name="hasNext" return="boolean"
  32413. abstract="false" native="false" synchronized="false"
  32414. static="false" final="false" visibility="public"
  32415. deprecated="not deprecated">
  32416. </method>
  32417. <method name="reset"
  32418. abstract="false" native="false" synchronized="false"
  32419. static="false" final="false" visibility="public"
  32420. deprecated="not deprecated">
  32421. </method>
  32422. <method name="close"
  32423. abstract="false" native="false" synchronized="false"
  32424. static="false" final="false" visibility="public"
  32425. deprecated="not deprecated">
  32426. <exception name="IOException" type="java.io.IOException"/>
  32427. </method>
  32428. <method name="clear"
  32429. abstract="false" native="false" synchronized="false"
  32430. static="false" final="false" visibility="public"
  32431. deprecated="not deprecated">
  32432. </method>
  32433. <method name="next" return="boolean"
  32434. abstract="false" native="false" synchronized="false"
  32435. static="false" final="false" visibility="public"
  32436. deprecated="not deprecated">
  32437. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  32438. <exception name="IOException" type="java.io.IOException"/>
  32439. </method>
  32440. <method name="replay"
  32441. abstract="false" native="false" synchronized="false"
  32442. static="false" final="false" visibility="public"
  32443. deprecated="not deprecated">
  32444. <param name="val" type="U extends org.apache.hadoop.io.Writable"/>
  32445. <exception name="IOException" type="java.io.IOException"/>
  32446. </method>
  32447. <method name="add"
  32448. abstract="false" native="false" synchronized="false"
  32449. static="false" final="false" visibility="public"
  32450. deprecated="not deprecated">
  32451. <param name="item" type="U extends org.apache.hadoop.io.Writable"/>
  32452. <exception name="IOException" type="java.io.IOException"/>
  32453. </method>
  32454. </class>
  32455. <!-- end class org.apache.hadoop.mapred.join.ResetableIterator.EMPTY -->
  32456. <!-- start class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  32457. <class name="StreamBackedIterator" extends="java.lang.Object"
  32458. abstract="false"
  32459. static="false" final="false" visibility="public"
  32460. deprecated="not deprecated">
  32461. <implements name="org.apache.hadoop.mapred.join.ResetableIterator&lt;X&gt;"/>
  32462. <constructor name="StreamBackedIterator"
  32463. static="false" final="false" visibility="public"
  32464. deprecated="not deprecated">
  32465. </constructor>
  32466. <method name="hasNext" return="boolean"
  32467. abstract="false" native="false" synchronized="false"
  32468. static="false" final="false" visibility="public"
  32469. deprecated="not deprecated">
  32470. </method>
  32471. <method name="next" return="boolean"
  32472. abstract="false" native="false" synchronized="false"
  32473. static="false" final="false" visibility="public"
  32474. deprecated="not deprecated">
  32475. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  32476. <exception name="IOException" type="java.io.IOException"/>
  32477. </method>
  32478. <method name="replay"
  32479. abstract="false" native="false" synchronized="false"
  32480. static="false" final="false" visibility="public"
  32481. deprecated="not deprecated">
  32482. <param name="val" type="X extends org.apache.hadoop.io.Writable"/>
  32483. <exception name="IOException" type="java.io.IOException"/>
  32484. </method>
  32485. <method name="reset"
  32486. abstract="false" native="false" synchronized="false"
  32487. static="false" final="false" visibility="public"
  32488. deprecated="not deprecated">
  32489. </method>
  32490. <method name="add"
  32491. abstract="false" native="false" synchronized="false"
  32492. static="false" final="false" visibility="public"
  32493. deprecated="not deprecated">
  32494. <param name="item" type="X extends org.apache.hadoop.io.Writable"/>
  32495. <exception name="IOException" type="java.io.IOException"/>
  32496. </method>
  32497. <method name="close"
  32498. abstract="false" native="false" synchronized="false"
  32499. static="false" final="false" visibility="public"
  32500. deprecated="not deprecated">
  32501. <exception name="IOException" type="java.io.IOException"/>
  32502. </method>
  32503. <method name="clear"
  32504. abstract="false" native="false" synchronized="false"
  32505. static="false" final="false" visibility="public"
  32506. deprecated="not deprecated">
  32507. </method>
  32508. <doc>
  32509. <![CDATA[This class provides an implementation of ResetableIterator. This
  32510. implementation uses a byte array to store elements added to it.]]>
  32511. </doc>
  32512. </class>
  32513. <!-- end class org.apache.hadoop.mapred.join.StreamBackedIterator -->
  32514. <!-- start class org.apache.hadoop.mapred.join.TupleWritable -->
  32515. <class name="TupleWritable" extends="java.lang.Object"
  32516. abstract="false"
  32517. static="false" final="false" visibility="public"
  32518. deprecated="not deprecated">
  32519. <implements name="org.apache.hadoop.io.Writable"/>
  32520. <implements name="java.lang.Iterable&lt;org.apache.hadoop.io.Writable&gt;"/>
  32521. <constructor name="TupleWritable"
  32522. static="false" final="false" visibility="public"
  32523. deprecated="not deprecated">
  32524. <doc>
  32525. <![CDATA[Create an empty tuple with no allocated storage for writables.]]>
  32526. </doc>
  32527. </constructor>
  32528. <constructor name="TupleWritable" type="org.apache.hadoop.io.Writable[]"
  32529. static="false" final="false" visibility="public"
  32530. deprecated="not deprecated">
  32531. <doc>
  32532. <![CDATA[Initialize tuple with storage; unknown whether any of them contain
  32533. &quot;written&quot; values.]]>
  32534. </doc>
  32535. </constructor>
  32536. <method name="has" return="boolean"
  32537. abstract="false" native="false" synchronized="false"
  32538. static="false" final="false" visibility="public"
  32539. deprecated="not deprecated">
  32540. <param name="i" type="int"/>
  32541. <doc>
  32542. <![CDATA[Return true if tuple has an element at the position provided.]]>
  32543. </doc>
  32544. </method>
  32545. <method name="get" return="org.apache.hadoop.io.Writable"
  32546. abstract="false" native="false" synchronized="false"
  32547. static="false" final="false" visibility="public"
  32548. deprecated="not deprecated">
  32549. <param name="i" type="int"/>
  32550. <doc>
  32551. <![CDATA[Get ith Writable from Tuple.]]>
  32552. </doc>
  32553. </method>
  32554. <method name="size" return="int"
  32555. abstract="false" native="false" synchronized="false"
  32556. static="false" final="false" visibility="public"
  32557. deprecated="not deprecated">
  32558. <doc>
  32559. <![CDATA[The number of children in this Tuple.]]>
  32560. </doc>
  32561. </method>
  32562. <method name="equals" return="boolean"
  32563. abstract="false" native="false" synchronized="false"
  32564. static="false" final="false" visibility="public"
  32565. deprecated="not deprecated">
  32566. <param name="other" type="java.lang.Object"/>
  32567. <doc>
  32568. <![CDATA[{@inheritDoc}]]>
  32569. </doc>
  32570. </method>
  32571. <method name="hashCode" return="int"
  32572. abstract="false" native="false" synchronized="false"
  32573. static="false" final="false" visibility="public"
  32574. deprecated="not deprecated">
  32575. </method>
  32576. <method name="iterator" return="java.util.Iterator&lt;org.apache.hadoop.io.Writable&gt;"
  32577. abstract="false" native="false" synchronized="false"
  32578. static="false" final="false" visibility="public"
  32579. deprecated="not deprecated">
  32580. <doc>
  32581. <![CDATA[Return an iterator over the elements in this tuple.
  32582. Note that this doesn't flatten the tuple; one may receive tuples
  32583. from this iterator.]]>
  32584. </doc>
  32585. </method>
  32586. <method name="toString" return="java.lang.String"
  32587. abstract="false" native="false" synchronized="false"
  32588. static="false" final="false" visibility="public"
  32589. deprecated="not deprecated">
  32590. <doc>
  32591. <![CDATA[Convert Tuple to String as in the following.
  32592. <tt>[<child1>,<child2>,...,<childn>]</tt>]]>
  32593. </doc>
  32594. </method>
  32595. <method name="write"
  32596. abstract="false" native="false" synchronized="false"
  32597. static="false" final="false" visibility="public"
  32598. deprecated="not deprecated">
  32599. <param name="out" type="java.io.DataOutput"/>
  32600. <exception name="IOException" type="java.io.IOException"/>
  32601. <doc>
  32602. <![CDATA[Writes each Writable to <code>out</code>.
  32603. TupleWritable format:
  32604. {@code
  32605. <count><type1><type2>...<typen><obj1><obj2>...<objn>
  32606. }]]>
  32607. </doc>
  32608. </method>
  32609. <method name="readFields"
  32610. abstract="false" native="false" synchronized="false"
  32611. static="false" final="false" visibility="public"
  32612. deprecated="not deprecated">
  32613. <param name="in" type="java.io.DataInput"/>
  32614. <exception name="IOException" type="java.io.IOException"/>
  32615. <doc>
  32616. <![CDATA[{@inheritDoc}]]>
  32617. </doc>
  32618. </method>
  32619. <doc>
  32620. <![CDATA[Writable type storing multiple {@link org.apache.hadoop.io.Writable}s.]]>
  32621. </doc>
  32622. </class>
  32623. <!-- end class org.apache.hadoop.mapred.join.TupleWritable -->
  32624. <!-- start class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  32625. <class name="WrappedRecordReader" extends="java.lang.Object"
  32626. abstract="false"
  32627. static="false" final="false" visibility="public"
  32628. deprecated="not deprecated">
  32629. <implements name="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, U&gt;"/>
  32630. <method name="id" return="int"
  32631. abstract="false" native="false" synchronized="false"
  32632. static="false" final="false" visibility="public"
  32633. deprecated="not deprecated">
  32634. <doc>
  32635. <![CDATA[{@inheritDoc}]]>
  32636. </doc>
  32637. </method>
  32638. <method name="key" return="K extends org.apache.hadoop.io.WritableComparable"
  32639. abstract="false" native="false" synchronized="false"
  32640. static="false" final="false" visibility="public"
  32641. deprecated="not deprecated">
  32642. <doc>
  32643. <![CDATA[Return the key at the head of this RR.]]>
  32644. </doc>
  32645. </method>
  32646. <method name="key"
  32647. abstract="false" native="false" synchronized="false"
  32648. static="false" final="false" visibility="public"
  32649. deprecated="not deprecated">
  32650. <param name="qkey" type="K extends org.apache.hadoop.io.WritableComparable"/>
  32651. <exception name="IOException" type="java.io.IOException"/>
  32652. <doc>
  32653. <![CDATA[Clone the key at the head of this RR into the object supplied.]]>
  32654. </doc>
  32655. </method>
  32656. <method name="hasNext" return="boolean"
  32657. abstract="false" native="false" synchronized="false"
  32658. static="false" final="false" visibility="public"
  32659. deprecated="not deprecated">
  32660. <doc>
  32661. <![CDATA[Return true if the RR- including the k,v pair stored in this object-
  32662. is exhausted.]]>
  32663. </doc>
  32664. </method>
  32665. <method name="skip"
  32666. abstract="false" native="false" synchronized="false"
  32667. static="false" final="false" visibility="public"
  32668. deprecated="not deprecated">
  32669. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  32670. <exception name="IOException" type="java.io.IOException"/>
  32671. <doc>
  32672. <![CDATA[Skip key-value pairs with keys less than or equal to the key provided.]]>
  32673. </doc>
  32674. </method>
  32675. <method name="next" return="boolean"
  32676. abstract="false" native="false" synchronized="false"
  32677. static="false" final="false" visibility="protected"
  32678. deprecated="not deprecated">
  32679. <exception name="IOException" type="java.io.IOException"/>
  32680. <doc>
  32681. <![CDATA[Read the next k,v pair into the head of this object; return true iff
  32682. the RR and this are exhausted.]]>
  32683. </doc>
  32684. </method>
  32685. <method name="accept"
  32686. abstract="false" native="false" synchronized="false"
  32687. static="false" final="false" visibility="public"
  32688. deprecated="not deprecated">
  32689. <param name="i" type="org.apache.hadoop.mapred.join.CompositeRecordReader.JoinCollector"/>
  32690. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  32691. <exception name="IOException" type="java.io.IOException"/>
  32692. <doc>
  32693. <![CDATA[Add an iterator to the collector at the position occupied by this
  32694. RecordReader over the values in this stream paired with the key
  32695. provided (ie register a stream of values from this source matching K
  32696. with a collector).]]>
  32697. </doc>
  32698. </method>
  32699. <method name="next" return="boolean"
  32700. abstract="false" native="false" synchronized="false"
  32701. static="false" final="false" visibility="public"
  32702. deprecated="not deprecated">
  32703. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  32704. <param name="value" type="U extends org.apache.hadoop.io.Writable"/>
  32705. <exception name="IOException" type="java.io.IOException"/>
  32706. <doc>
  32707. <![CDATA[Write key-value pair at the head of this stream to the objects provided;
  32708. get next key-value pair from proxied RR.]]>
  32709. </doc>
  32710. </method>
  32711. <method name="createKey" return="K extends org.apache.hadoop.io.WritableComparable"
  32712. abstract="false" native="false" synchronized="false"
  32713. static="false" final="false" visibility="public"
  32714. deprecated="not deprecated">
  32715. <doc>
  32716. <![CDATA[Request new key from proxied RR.]]>
  32717. </doc>
  32718. </method>
  32719. <method name="createValue" return="U extends org.apache.hadoop.io.Writable"
  32720. abstract="false" native="false" synchronized="false"
  32721. static="false" final="false" visibility="public"
  32722. deprecated="not deprecated">
  32723. <doc>
  32724. <![CDATA[Request new value from proxied RR.]]>
  32725. </doc>
  32726. </method>
  32727. <method name="getProgress" return="float"
  32728. abstract="false" native="false" synchronized="false"
  32729. static="false" final="false" visibility="public"
  32730. deprecated="not deprecated">
  32731. <exception name="IOException" type="java.io.IOException"/>
  32732. <doc>
  32733. <![CDATA[Request progress from proxied RR.]]>
  32734. </doc>
  32735. </method>
  32736. <method name="getPos" return="long"
  32737. abstract="false" native="false" synchronized="false"
  32738. static="false" final="false" visibility="public"
  32739. deprecated="not deprecated">
  32740. <exception name="IOException" type="java.io.IOException"/>
  32741. <doc>
  32742. <![CDATA[Request position from proxied RR.]]>
  32743. </doc>
  32744. </method>
  32745. <method name="close"
  32746. abstract="false" native="false" synchronized="false"
  32747. static="false" final="false" visibility="public"
  32748. deprecated="not deprecated">
  32749. <exception name="IOException" type="java.io.IOException"/>
  32750. <doc>
  32751. <![CDATA[Forward close request to proxied RR.]]>
  32752. </doc>
  32753. </method>
  32754. <method name="compareTo" return="int"
  32755. abstract="false" native="false" synchronized="false"
  32756. static="false" final="false" visibility="public"
  32757. deprecated="not deprecated">
  32758. <param name="other" type="org.apache.hadoop.mapred.join.ComposableRecordReader&lt;K, ?&gt;"/>
  32759. <doc>
  32760. <![CDATA[Implement Comparable contract (compare key at head of proxied RR
  32761. with that of another).]]>
  32762. </doc>
  32763. </method>
  32764. <method name="equals" return="boolean"
  32765. abstract="false" native="false" synchronized="false"
  32766. static="false" final="false" visibility="public"
  32767. deprecated="not deprecated">
  32768. <param name="other" type="java.lang.Object"/>
  32769. <doc>
  32770. <![CDATA[Return true iff compareTo(other) retn true.]]>
  32771. </doc>
  32772. </method>
  32773. <method name="hashCode" return="int"
  32774. abstract="false" native="false" synchronized="false"
  32775. static="false" final="false" visibility="public"
  32776. deprecated="not deprecated">
  32777. </method>
  32778. <doc>
  32779. <![CDATA[Proxy class for a RecordReader participating in the join framework.
  32780. This class keeps track of the &quot;head&quot; key-value pair for the
  32781. provided RecordReader and keeps a store of values matching a key when
  32782. this source is participating in a join.]]>
  32783. </doc>
  32784. </class>
  32785. <!-- end class org.apache.hadoop.mapred.join.WrappedRecordReader -->
  32786. </package>
  32787. <package name="org.apache.hadoop.mapred.lib">
  32788. <!-- start class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  32789. <class name="FieldSelectionMapReduce" extends="java.lang.Object"
  32790. abstract="false"
  32791. static="false" final="false" visibility="public"
  32792. deprecated="not deprecated">
  32793. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32794. <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;"/>
  32795. <constructor name="FieldSelectionMapReduce"
  32796. static="false" final="false" visibility="public"
  32797. deprecated="not deprecated">
  32798. </constructor>
  32799. <method name="map"
  32800. abstract="false" native="false" synchronized="false"
  32801. static="false" final="false" visibility="public"
  32802. deprecated="not deprecated">
  32803. <param name="key" type="K"/>
  32804. <param name="val" type="V"/>
  32805. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32806. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32807. <exception name="IOException" type="java.io.IOException"/>
  32808. <doc>
  32809. <![CDATA[The identify function. Input key/value pair is written directly to output.]]>
  32810. </doc>
  32811. </method>
  32812. <method name="configure"
  32813. abstract="false" native="false" synchronized="false"
  32814. static="false" final="false" visibility="public"
  32815. deprecated="not deprecated">
  32816. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32817. </method>
  32818. <method name="close"
  32819. abstract="false" native="false" synchronized="false"
  32820. static="false" final="false" visibility="public"
  32821. deprecated="not deprecated">
  32822. <exception name="IOException" type="java.io.IOException"/>
  32823. </method>
  32824. <method name="reduce"
  32825. abstract="false" native="false" synchronized="false"
  32826. static="false" final="false" visibility="public"
  32827. deprecated="not deprecated">
  32828. <param name="key" type="org.apache.hadoop.io.Text"/>
  32829. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  32830. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  32831. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32832. <exception name="IOException" type="java.io.IOException"/>
  32833. </method>
  32834. <field name="LOG" type="org.apache.commons.logging.Log"
  32835. transient="false" volatile="false"
  32836. static="true" final="true" visibility="public"
  32837. deprecated="not deprecated">
  32838. </field>
  32839. <doc>
  32840. <![CDATA[This class implements a mapper/reducer class that can be used to perform
  32841. field selections in a manner similar to unix cut. The input data is treated
  32842. as fields separated by a user specified separator (the default value is
  32843. "\t"). The user can specify a list of fields that form the map output keys,
  32844. and a list of fields that form the map output values. If the inputformat is
  32845. TextInputFormat, the mapper will ignore the key to the map function. and the
  32846. fields are from the value only. Otherwise, the fields are the union of those
  32847. from the key and those from the value.
  32848. The field separator is under attribute "mapred.data.field.separator"
  32849. The map output field list spec is under attribute "map.output.key.value.fields.spec".
  32850. The value is expected to be like "keyFieldsSpec:valueFieldsSpec"
  32851. key/valueFieldsSpec are comma (,) separated field spec: fieldSpec,fieldSpec,fieldSpec ...
  32852. Each field spec can be a simple number (e.g. 5) specifying a specific field, or a range
  32853. (like 2-5) to specify a range of fields, or an open range (like 3-) specifying all
  32854. the fields starting from field 3. The open range field spec applies value fields only.
  32855. They have no effect on the key fields.
  32856. 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,
  32857. and use fields 6,5,1,2,3,7 and above for values.
  32858. The reduce output field list spec is under attribute "reduce.output.key.value.fields.spec".
  32859. The reducer extracts output key/value pairs in a similar manner, except that
  32860. the key is never ignored.]]>
  32861. </doc>
  32862. </class>
  32863. <!-- end class org.apache.hadoop.mapred.lib.FieldSelectionMapReduce -->
  32864. <!-- start class org.apache.hadoop.mapred.lib.HashPartitioner -->
  32865. <class name="HashPartitioner" extends="java.lang.Object"
  32866. abstract="false"
  32867. static="false" final="false" visibility="public"
  32868. deprecated="not deprecated">
  32869. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  32870. <constructor name="HashPartitioner"
  32871. static="false" final="false" visibility="public"
  32872. deprecated="not deprecated">
  32873. </constructor>
  32874. <method name="configure"
  32875. abstract="false" native="false" synchronized="false"
  32876. static="false" final="false" visibility="public"
  32877. deprecated="not deprecated">
  32878. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32879. </method>
  32880. <method name="getPartition" return="int"
  32881. abstract="false" native="false" synchronized="false"
  32882. static="false" final="false" visibility="public"
  32883. deprecated="not deprecated">
  32884. <param name="key" type="K2"/>
  32885. <param name="value" type="V2"/>
  32886. <param name="numReduceTasks" type="int"/>
  32887. <doc>
  32888. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  32889. </doc>
  32890. </method>
  32891. <doc>
  32892. <![CDATA[Partition keys by their {@link Object#hashCode()}.]]>
  32893. </doc>
  32894. </class>
  32895. <!-- end class org.apache.hadoop.mapred.lib.HashPartitioner -->
  32896. <!-- start class org.apache.hadoop.mapred.lib.IdentityMapper -->
  32897. <class name="IdentityMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  32898. abstract="false"
  32899. static="false" final="false" visibility="public"
  32900. deprecated="not deprecated">
  32901. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, K, V&gt;"/>
  32902. <constructor name="IdentityMapper"
  32903. static="false" final="false" visibility="public"
  32904. deprecated="not deprecated">
  32905. </constructor>
  32906. <method name="map"
  32907. abstract="false" native="false" synchronized="false"
  32908. static="false" final="false" visibility="public"
  32909. deprecated="not deprecated">
  32910. <param name="key" type="K"/>
  32911. <param name="val" type="V"/>
  32912. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  32913. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32914. <exception name="IOException" type="java.io.IOException"/>
  32915. <doc>
  32916. <![CDATA[The identify function. Input key/value pair is written directly to
  32917. output.]]>
  32918. </doc>
  32919. </method>
  32920. <doc>
  32921. <![CDATA[Implements the identity function, mapping inputs directly to outputs.]]>
  32922. </doc>
  32923. </class>
  32924. <!-- end class org.apache.hadoop.mapred.lib.IdentityMapper -->
  32925. <!-- start class org.apache.hadoop.mapred.lib.IdentityReducer -->
  32926. <class name="IdentityReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  32927. abstract="false"
  32928. static="false" final="false" visibility="public"
  32929. deprecated="not deprecated">
  32930. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, V, K, V&gt;"/>
  32931. <constructor name="IdentityReducer"
  32932. static="false" final="false" visibility="public"
  32933. deprecated="not deprecated">
  32934. </constructor>
  32935. <method name="reduce"
  32936. abstract="false" native="false" synchronized="false"
  32937. static="false" final="false" visibility="public"
  32938. deprecated="not deprecated">
  32939. <param name="key" type="K"/>
  32940. <param name="values" type="java.util.Iterator&lt;V&gt;"/>
  32941. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, V&gt;"/>
  32942. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32943. <exception name="IOException" type="java.io.IOException"/>
  32944. <doc>
  32945. <![CDATA[Writes all keys and values directly to output.]]>
  32946. </doc>
  32947. </method>
  32948. <doc>
  32949. <![CDATA[Performs no reduction, writing all input values directly to the output.]]>
  32950. </doc>
  32951. </class>
  32952. <!-- end class org.apache.hadoop.mapred.lib.IdentityReducer -->
  32953. <!-- start class org.apache.hadoop.mapred.lib.InverseMapper -->
  32954. <class name="InverseMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  32955. abstract="false"
  32956. static="false" final="false" visibility="public"
  32957. deprecated="not deprecated">
  32958. <implements name="org.apache.hadoop.mapred.Mapper&lt;K, V, V, K&gt;"/>
  32959. <constructor name="InverseMapper"
  32960. static="false" final="false" visibility="public"
  32961. deprecated="not deprecated">
  32962. </constructor>
  32963. <method name="map"
  32964. abstract="false" native="false" synchronized="false"
  32965. static="false" final="false" visibility="public"
  32966. deprecated="not deprecated">
  32967. <param name="key" type="K"/>
  32968. <param name="value" type="V"/>
  32969. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;V, K&gt;"/>
  32970. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  32971. <exception name="IOException" type="java.io.IOException"/>
  32972. <doc>
  32973. <![CDATA[The inverse function. Input keys and values are swapped.]]>
  32974. </doc>
  32975. </method>
  32976. <doc>
  32977. <![CDATA[A {@link Mapper} that swaps keys and values.]]>
  32978. </doc>
  32979. </class>
  32980. <!-- end class org.apache.hadoop.mapred.lib.InverseMapper -->
  32981. <!-- start class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  32982. <class name="KeyFieldBasedPartitioner" extends="java.lang.Object"
  32983. abstract="false"
  32984. static="false" final="false" visibility="public"
  32985. deprecated="not deprecated">
  32986. <implements name="org.apache.hadoop.mapred.Partitioner&lt;K2, V2&gt;"/>
  32987. <constructor name="KeyFieldBasedPartitioner"
  32988. static="false" final="false" visibility="public"
  32989. deprecated="not deprecated">
  32990. </constructor>
  32991. <method name="configure"
  32992. abstract="false" native="false" synchronized="false"
  32993. static="false" final="false" visibility="public"
  32994. deprecated="not deprecated">
  32995. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  32996. </method>
  32997. <method name="getPartition" return="int"
  32998. abstract="false" native="false" synchronized="false"
  32999. static="false" final="false" visibility="public"
  33000. deprecated="not deprecated">
  33001. <param name="key" type="K2"/>
  33002. <param name="value" type="V2"/>
  33003. <param name="numReduceTasks" type="int"/>
  33004. <doc>
  33005. <![CDATA[Use {@link Object#hashCode()} to partition.]]>
  33006. </doc>
  33007. </method>
  33008. </class>
  33009. <!-- end class org.apache.hadoop.mapred.lib.KeyFieldBasedPartitioner -->
  33010. <!-- start class org.apache.hadoop.mapred.lib.LongSumReducer -->
  33011. <class name="LongSumReducer" extends="org.apache.hadoop.mapred.MapReduceBase"
  33012. abstract="false"
  33013. static="false" final="false" visibility="public"
  33014. deprecated="not deprecated">
  33015. <implements name="org.apache.hadoop.mapred.Reducer&lt;K, org.apache.hadoop.io.LongWritable, K, org.apache.hadoop.io.LongWritable&gt;"/>
  33016. <constructor name="LongSumReducer"
  33017. static="false" final="false" visibility="public"
  33018. deprecated="not deprecated">
  33019. </constructor>
  33020. <method name="reduce"
  33021. abstract="false" native="false" synchronized="false"
  33022. static="false" final="false" visibility="public"
  33023. deprecated="not deprecated">
  33024. <param name="key" type="K"/>
  33025. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.LongWritable&gt;"/>
  33026. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K, org.apache.hadoop.io.LongWritable&gt;"/>
  33027. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33028. <exception name="IOException" type="java.io.IOException"/>
  33029. </method>
  33030. <doc>
  33031. <![CDATA[A {@link Reducer} that sums long values.]]>
  33032. </doc>
  33033. </class>
  33034. <!-- end class org.apache.hadoop.mapred.lib.LongSumReducer -->
  33035. <!-- start class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  33036. <class name="MultipleOutputFormat" extends="org.apache.hadoop.mapred.FileOutputFormat&lt;K, V&gt;"
  33037. abstract="true"
  33038. static="false" final="false" visibility="public"
  33039. deprecated="not deprecated">
  33040. <constructor name="MultipleOutputFormat"
  33041. static="false" final="false" visibility="public"
  33042. deprecated="not deprecated">
  33043. </constructor>
  33044. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  33045. abstract="false" native="false" synchronized="false"
  33046. static="false" final="false" visibility="public"
  33047. deprecated="not deprecated">
  33048. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  33049. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33050. <param name="name" type="java.lang.String"/>
  33051. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  33052. <exception name="IOException" type="java.io.IOException"/>
  33053. <doc>
  33054. <![CDATA[Create a composite record writer that can write key/value data to different
  33055. output files
  33056. @param fs
  33057. the file system to use
  33058. @param job
  33059. the job conf for the job
  33060. @param name
  33061. the leaf file name for the output file (such as part-00000")
  33062. @param arg3
  33063. a progressable for reporting progress.
  33064. @return a composite record writer
  33065. @throws IOException]]>
  33066. </doc>
  33067. </method>
  33068. <method name="generateLeafFileName" return="java.lang.String"
  33069. abstract="false" native="false" synchronized="false"
  33070. static="false" final="false" visibility="protected"
  33071. deprecated="not deprecated">
  33072. <param name="name" type="java.lang.String"/>
  33073. <doc>
  33074. <![CDATA[Generate the leaf name for the output file name. The default behavior does
  33075. not change the leaf file name (such as part-00000)
  33076. @param name
  33077. the leaf file name for the output file
  33078. @return the given leaf file name]]>
  33079. </doc>
  33080. </method>
  33081. <method name="generateFileNameForKeyValue" return="java.lang.String"
  33082. abstract="false" native="false" synchronized="false"
  33083. static="false" final="false" visibility="protected"
  33084. deprecated="not deprecated">
  33085. <param name="key" type="K"/>
  33086. <param name="value" type="V"/>
  33087. <param name="name" type="java.lang.String"/>
  33088. <doc>
  33089. <![CDATA[Generate the file output file name based on the given key and the leaf file
  33090. name. The default behavior is that the file name does not depend on the
  33091. key.
  33092. @param key
  33093. the key of the output data
  33094. @param name
  33095. the leaf file name
  33096. @return generated file name]]>
  33097. </doc>
  33098. </method>
  33099. <method name="generateActualKey" return="K"
  33100. abstract="false" native="false" synchronized="false"
  33101. static="false" final="false" visibility="protected"
  33102. deprecated="not deprecated">
  33103. <param name="key" type="K"/>
  33104. <param name="value" type="V"/>
  33105. <doc>
  33106. <![CDATA[Generate the actual key from the given key/value. The default behavior is that
  33107. the actual key is equal to the given key
  33108. @param key
  33109. the key of the output data
  33110. @param value
  33111. the value of the output data
  33112. @return the actual key derived from the given key/value]]>
  33113. </doc>
  33114. </method>
  33115. <method name="generateActualValue" return="V"
  33116. abstract="false" native="false" synchronized="false"
  33117. static="false" final="false" visibility="protected"
  33118. deprecated="not deprecated">
  33119. <param name="key" type="K"/>
  33120. <param name="value" type="V"/>
  33121. <doc>
  33122. <![CDATA[Generate the actual value from the given key and value. The default behavior is that
  33123. the actual value is equal to the given value
  33124. @param key
  33125. the key of the output data
  33126. @param value
  33127. the value of the output data
  33128. @return the actual value derived from the given key/value]]>
  33129. </doc>
  33130. </method>
  33131. <method name="getInputFileBasedOutputFileName" return="java.lang.String"
  33132. abstract="false" native="false" synchronized="false"
  33133. static="false" final="false" visibility="protected"
  33134. deprecated="not deprecated">
  33135. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33136. <param name="name" type="java.lang.String"/>
  33137. <doc>
  33138. <![CDATA[Generate the outfile name based on a given anme and the input file name. If
  33139. the map input file does not exists (i.e. this is not for a map only job),
  33140. the given name is returned unchanged. If the config value for
  33141. "num.of.trailing.legs.to.use" is not set, or set 0 or negative, the given
  33142. name is returned unchanged. Otherwise, return a file name consisting of the
  33143. N trailing legs of the input file name where N is the config value for
  33144. "num.of.trailing.legs.to.use".
  33145. @param job
  33146. the job config
  33147. @param name
  33148. the output file name
  33149. @return the outfile name based on a given anme and the input file name.]]>
  33150. </doc>
  33151. </method>
  33152. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  33153. abstract="true" native="false" synchronized="false"
  33154. static="false" final="false" visibility="protected"
  33155. deprecated="not deprecated">
  33156. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  33157. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33158. <param name="name" type="java.lang.String"/>
  33159. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  33160. <exception name="IOException" type="java.io.IOException"/>
  33161. <doc>
  33162. <![CDATA[@param fs
  33163. the file system to use
  33164. @param job
  33165. a job conf object
  33166. @param name
  33167. the name of the file over which a record writer object will be
  33168. constructed
  33169. @param arg3
  33170. a progressable object
  33171. @return A RecordWriter object over the given file
  33172. @throws IOException]]>
  33173. </doc>
  33174. </method>
  33175. <doc>
  33176. <![CDATA[This abstract class extends the OutputFormatBase, allowing to write the
  33177. output data to different output files. There are three basic use cases for
  33178. this class.
  33179. Case one: This class is used for a map reduce job with at least one reducer.
  33180. The reducer wants to write data to different files depending on the actual
  33181. keys. It is assumed that a key (or value) encodes the actual key (value)
  33182. and the desired location for the actual key (value).
  33183. Case two: This class is used for a map only job. The job wants to use an
  33184. output file name that is either a part of the input file name of the input
  33185. data, or some derivation of it.
  33186. Case three: This class is used for a map only job. The job wants to use an
  33187. output file name that depends on both the keys and the input file name,]]>
  33188. </doc>
  33189. </class>
  33190. <!-- end class org.apache.hadoop.mapred.lib.MultipleOutputFormat -->
  33191. <!-- start class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  33192. <class name="MultipleSequenceFileOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  33193. abstract="false"
  33194. static="false" final="false" visibility="public"
  33195. deprecated="not deprecated">
  33196. <constructor name="MultipleSequenceFileOutputFormat"
  33197. static="false" final="false" visibility="public"
  33198. deprecated="not deprecated">
  33199. </constructor>
  33200. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  33201. abstract="false" native="false" synchronized="false"
  33202. static="false" final="false" visibility="protected"
  33203. deprecated="not deprecated">
  33204. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  33205. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33206. <param name="name" type="java.lang.String"/>
  33207. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  33208. <exception name="IOException" type="java.io.IOException"/>
  33209. </method>
  33210. <doc>
  33211. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output data
  33212. to different output files in sequence file output format.]]>
  33213. </doc>
  33214. </class>
  33215. <!-- end class org.apache.hadoop.mapred.lib.MultipleSequenceFileOutputFormat -->
  33216. <!-- start class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  33217. <class name="MultipleTextOutputFormat" extends="org.apache.hadoop.mapred.lib.MultipleOutputFormat&lt;K, V&gt;"
  33218. abstract="false"
  33219. static="false" final="false" visibility="public"
  33220. deprecated="not deprecated">
  33221. <constructor name="MultipleTextOutputFormat"
  33222. static="false" final="false" visibility="public"
  33223. deprecated="not deprecated">
  33224. </constructor>
  33225. <method name="getBaseRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  33226. abstract="false" native="false" synchronized="false"
  33227. static="false" final="false" visibility="protected"
  33228. deprecated="not deprecated">
  33229. <param name="fs" type="org.apache.hadoop.fs.FileSystem"/>
  33230. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33231. <param name="name" type="java.lang.String"/>
  33232. <param name="arg3" type="org.apache.hadoop.util.Progressable"/>
  33233. <exception name="IOException" type="java.io.IOException"/>
  33234. </method>
  33235. <doc>
  33236. <![CDATA[This class extends the MultipleOutputFormat, allowing to write the output
  33237. data to different output files in Text output format.]]>
  33238. </doc>
  33239. </class>
  33240. <!-- end class org.apache.hadoop.mapred.lib.MultipleTextOutputFormat -->
  33241. <!-- start class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  33242. <class name="MultithreadedMapRunner" extends="java.lang.Object"
  33243. abstract="false"
  33244. static="false" final="false" visibility="public"
  33245. deprecated="not deprecated">
  33246. <implements name="org.apache.hadoop.mapred.MapRunnable&lt;K1, V1, K2, V2&gt;"/>
  33247. <constructor name="MultithreadedMapRunner"
  33248. static="false" final="false" visibility="public"
  33249. deprecated="not deprecated">
  33250. </constructor>
  33251. <method name="configure"
  33252. abstract="false" native="false" synchronized="false"
  33253. static="false" final="false" visibility="public"
  33254. deprecated="not deprecated">
  33255. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  33256. </method>
  33257. <method name="run"
  33258. abstract="false" native="false" synchronized="false"
  33259. static="false" final="false" visibility="public"
  33260. deprecated="not deprecated">
  33261. <param name="input" type="org.apache.hadoop.mapred.RecordReader&lt;K1, V1&gt;"/>
  33262. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;K2, V2&gt;"/>
  33263. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33264. <exception name="IOException" type="java.io.IOException"/>
  33265. </method>
  33266. <doc>
  33267. <![CDATA[Multithreaded implementation for @link org.apache.hadoop.mapred.MapRunnable.
  33268. <p>
  33269. It can be used instead of the default implementation,
  33270. @link org.apache.hadoop.mapred.MapRunner, when the Map operation is not CPU
  33271. bound in order to improve throughput.
  33272. <p>
  33273. Map implementations using this MapRunnable must be thread-safe.
  33274. <p>
  33275. The Map-Reduce job has to be configured to use this MapRunnable class (using
  33276. the JobConf.setMapRunnerClass method) and
  33277. the number of thread the thread-pool can use with the
  33278. <code>mapred.map.multithreadedrunner.threads</code> property, its default
  33279. value is 10 threads.
  33280. <p>]]>
  33281. </doc>
  33282. </class>
  33283. <!-- end class org.apache.hadoop.mapred.lib.MultithreadedMapRunner -->
  33284. <!-- start class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  33285. <class name="NLineInputFormat" extends="org.apache.hadoop.mapred.FileInputFormat&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  33286. abstract="false"
  33287. static="false" final="false" visibility="public"
  33288. deprecated="not deprecated">
  33289. <implements name="org.apache.hadoop.mapred.JobConfigurable"/>
  33290. <constructor name="NLineInputFormat"
  33291. static="false" final="false" visibility="public"
  33292. deprecated="not deprecated">
  33293. </constructor>
  33294. <method name="getRecordReader" return="org.apache.hadoop.mapred.RecordReader&lt;org.apache.hadoop.io.LongWritable, org.apache.hadoop.io.Text&gt;"
  33295. abstract="false" native="false" synchronized="false"
  33296. static="false" final="false" visibility="public"
  33297. deprecated="not deprecated">
  33298. <param name="genericSplit" type="org.apache.hadoop.mapred.InputSplit"/>
  33299. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33300. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33301. <exception name="IOException" type="java.io.IOException"/>
  33302. </method>
  33303. <method name="getSplits" return="org.apache.hadoop.mapred.InputSplit[]"
  33304. abstract="false" native="false" synchronized="false"
  33305. static="false" final="false" visibility="public"
  33306. deprecated="not deprecated">
  33307. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33308. <param name="numSplits" type="int"/>
  33309. <exception name="IOException" type="java.io.IOException"/>
  33310. <doc>
  33311. <![CDATA[Logically splits the set of input files for the job, splits N lines
  33312. of the input as one split.
  33313. @see org.apache.hadoop.mapred.FileInputFormat#getSplits(JobConf, int)]]>
  33314. </doc>
  33315. </method>
  33316. <method name="configure"
  33317. abstract="false" native="false" synchronized="false"
  33318. static="false" final="false" visibility="public"
  33319. deprecated="not deprecated">
  33320. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  33321. </method>
  33322. <doc>
  33323. <![CDATA[NLineInputFormat which splits N lines of input as one split.
  33324. In many "pleasantly" parallel applications, each process/mapper
  33325. processes the same input file (s), but with computations are
  33326. controlled by different parameters.(Referred to as "parameter sweeps").
  33327. One way to achieve this, is to specify a set of parameters
  33328. (one set per line) as input in a control file
  33329. (which is the input path to the map-reduce application,
  33330. where as the input dataset is specified
  33331. via a config variable in JobConf.).
  33332. The NLineInputFormat can be used in such applications, that splits
  33333. the input file such that by default, one line is fed as
  33334. a value to one map task, and key is the offset.
  33335. i.e. (k,v) is (LongWritable, Text).
  33336. The location hints will span the whole mapred cluster.]]>
  33337. </doc>
  33338. </class>
  33339. <!-- end class org.apache.hadoop.mapred.lib.NLineInputFormat -->
  33340. <!-- start class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  33341. <class name="NullOutputFormat" extends="java.lang.Object"
  33342. abstract="false"
  33343. static="false" final="false" visibility="public"
  33344. deprecated="not deprecated">
  33345. <implements name="org.apache.hadoop.mapred.OutputFormat&lt;K, V&gt;"/>
  33346. <constructor name="NullOutputFormat"
  33347. static="false" final="false" visibility="public"
  33348. deprecated="not deprecated">
  33349. </constructor>
  33350. <method name="getRecordWriter" return="org.apache.hadoop.mapred.RecordWriter&lt;K, V&gt;"
  33351. abstract="false" native="false" synchronized="false"
  33352. static="false" final="false" visibility="public"
  33353. deprecated="not deprecated">
  33354. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  33355. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33356. <param name="name" type="java.lang.String"/>
  33357. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  33358. </method>
  33359. <method name="checkOutputSpecs"
  33360. abstract="false" native="false" synchronized="false"
  33361. static="false" final="false" visibility="public"
  33362. deprecated="not deprecated">
  33363. <param name="ignored" type="org.apache.hadoop.fs.FileSystem"/>
  33364. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33365. </method>
  33366. <doc>
  33367. <![CDATA[Consume all outputs and put them in /dev/null.]]>
  33368. </doc>
  33369. </class>
  33370. <!-- end class org.apache.hadoop.mapred.lib.NullOutputFormat -->
  33371. <!-- start class org.apache.hadoop.mapred.lib.RegexMapper -->
  33372. <class name="RegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  33373. abstract="false"
  33374. static="false" final="false" visibility="public"
  33375. deprecated="not deprecated">
  33376. <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;"/>
  33377. <constructor name="RegexMapper"
  33378. static="false" final="false" visibility="public"
  33379. deprecated="not deprecated">
  33380. </constructor>
  33381. <method name="configure"
  33382. abstract="false" native="false" synchronized="false"
  33383. static="false" final="false" visibility="public"
  33384. deprecated="not deprecated">
  33385. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33386. </method>
  33387. <method name="map"
  33388. abstract="false" native="false" synchronized="false"
  33389. static="false" final="false" visibility="public"
  33390. deprecated="not deprecated">
  33391. <param name="key" type="K"/>
  33392. <param name="value" type="org.apache.hadoop.io.Text"/>
  33393. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  33394. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33395. <exception name="IOException" type="java.io.IOException"/>
  33396. </method>
  33397. <doc>
  33398. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  33399. </doc>
  33400. </class>
  33401. <!-- end class org.apache.hadoop.mapred.lib.RegexMapper -->
  33402. <!-- start class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  33403. <class name="TokenCountMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  33404. abstract="false"
  33405. static="false" final="false" visibility="public"
  33406. deprecated="not deprecated">
  33407. <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;"/>
  33408. <constructor name="TokenCountMapper"
  33409. static="false" final="false" visibility="public"
  33410. deprecated="not deprecated">
  33411. </constructor>
  33412. <method name="map"
  33413. abstract="false" native="false" synchronized="false"
  33414. static="false" final="false" visibility="public"
  33415. deprecated="not deprecated">
  33416. <param name="key" type="K"/>
  33417. <param name="value" type="org.apache.hadoop.io.Text"/>
  33418. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  33419. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  33420. <exception name="IOException" type="java.io.IOException"/>
  33421. </method>
  33422. <doc>
  33423. <![CDATA[A {@link Mapper} that maps text values into <token,freq> pairs. Uses
  33424. {@link StringTokenizer} to break text into tokens.]]>
  33425. </doc>
  33426. </class>
  33427. <!-- end class org.apache.hadoop.mapred.lib.TokenCountMapper -->
  33428. </package>
  33429. <package name="org.apache.hadoop.mapred.lib.aggregate">
  33430. <!-- start class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  33431. <class name="DoubleValueSum" extends="java.lang.Object"
  33432. abstract="false"
  33433. static="false" final="false" visibility="public"
  33434. deprecated="not deprecated">
  33435. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33436. <constructor name="DoubleValueSum"
  33437. static="false" final="false" visibility="public"
  33438. deprecated="not deprecated">
  33439. <doc>
  33440. <![CDATA[The default constructor]]>
  33441. </doc>
  33442. </constructor>
  33443. <method name="addNextValue"
  33444. abstract="false" native="false" synchronized="false"
  33445. static="false" final="false" visibility="public"
  33446. deprecated="not deprecated">
  33447. <param name="val" type="java.lang.Object"/>
  33448. <doc>
  33449. <![CDATA[add a value to the aggregator
  33450. @param val
  33451. an object whose string representation represents a double value.]]>
  33452. </doc>
  33453. </method>
  33454. <method name="addNextValue"
  33455. abstract="false" native="false" synchronized="false"
  33456. static="false" final="false" visibility="public"
  33457. deprecated="not deprecated">
  33458. <param name="val" type="double"/>
  33459. <doc>
  33460. <![CDATA[add a value to the aggregator
  33461. @param val
  33462. a double value.]]>
  33463. </doc>
  33464. </method>
  33465. <method name="getReport" return="java.lang.String"
  33466. abstract="false" native="false" synchronized="false"
  33467. static="false" final="false" visibility="public"
  33468. deprecated="not deprecated">
  33469. <doc>
  33470. <![CDATA[@return the string representation of the aggregated value]]>
  33471. </doc>
  33472. </method>
  33473. <method name="getSum" return="double"
  33474. abstract="false" native="false" synchronized="false"
  33475. static="false" final="false" visibility="public"
  33476. deprecated="not deprecated">
  33477. <doc>
  33478. <![CDATA[@return the aggregated value]]>
  33479. </doc>
  33480. </method>
  33481. <method name="reset"
  33482. abstract="false" native="false" synchronized="false"
  33483. static="false" final="false" visibility="public"
  33484. deprecated="not deprecated">
  33485. <doc>
  33486. <![CDATA[reset the aggregator]]>
  33487. </doc>
  33488. </method>
  33489. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33490. abstract="false" native="false" synchronized="false"
  33491. static="false" final="false" visibility="public"
  33492. deprecated="not deprecated">
  33493. <doc>
  33494. <![CDATA[@return return an array of one element. The element is a string
  33495. representation of the aggregated value. The return value is
  33496. expected to be used by the a combiner.]]>
  33497. </doc>
  33498. </method>
  33499. <doc>
  33500. <![CDATA[This class implements a value aggregator that sums up a sequence of double
  33501. values.]]>
  33502. </doc>
  33503. </class>
  33504. <!-- end class org.apache.hadoop.mapred.lib.aggregate.DoubleValueSum -->
  33505. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  33506. <class name="LongValueMax" extends="java.lang.Object"
  33507. abstract="false"
  33508. static="false" final="false" visibility="public"
  33509. deprecated="not deprecated">
  33510. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33511. <constructor name="LongValueMax"
  33512. static="false" final="false" visibility="public"
  33513. deprecated="not deprecated">
  33514. <doc>
  33515. <![CDATA[the default constructor]]>
  33516. </doc>
  33517. </constructor>
  33518. <method name="addNextValue"
  33519. abstract="false" native="false" synchronized="false"
  33520. static="false" final="false" visibility="public"
  33521. deprecated="not deprecated">
  33522. <param name="val" type="java.lang.Object"/>
  33523. <doc>
  33524. <![CDATA[add a value to the aggregator
  33525. @param val
  33526. an object whose string representation represents a long value.]]>
  33527. </doc>
  33528. </method>
  33529. <method name="addNextValue"
  33530. abstract="false" native="false" synchronized="false"
  33531. static="false" final="false" visibility="public"
  33532. deprecated="not deprecated">
  33533. <param name="newVal" type="long"/>
  33534. <doc>
  33535. <![CDATA[add a value to the aggregator
  33536. @param newVal
  33537. a long value.]]>
  33538. </doc>
  33539. </method>
  33540. <method name="getVal" return="long"
  33541. abstract="false" native="false" synchronized="false"
  33542. static="false" final="false" visibility="public"
  33543. deprecated="not deprecated">
  33544. <doc>
  33545. <![CDATA[@return the aggregated value]]>
  33546. </doc>
  33547. </method>
  33548. <method name="getReport" return="java.lang.String"
  33549. abstract="false" native="false" synchronized="false"
  33550. static="false" final="false" visibility="public"
  33551. deprecated="not deprecated">
  33552. <doc>
  33553. <![CDATA[@return the string representation of the aggregated value]]>
  33554. </doc>
  33555. </method>
  33556. <method name="reset"
  33557. abstract="false" native="false" synchronized="false"
  33558. static="false" final="false" visibility="public"
  33559. deprecated="not deprecated">
  33560. <doc>
  33561. <![CDATA[reset the aggregator]]>
  33562. </doc>
  33563. </method>
  33564. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33565. abstract="false" native="false" synchronized="false"
  33566. static="false" final="false" visibility="public"
  33567. deprecated="not deprecated">
  33568. <doc>
  33569. <![CDATA[@return return an array of one element. The element is a string
  33570. representation of the aggregated value. The return value is
  33571. expected to be used by the a combiner.]]>
  33572. </doc>
  33573. </method>
  33574. <doc>
  33575. <![CDATA[This class implements a value aggregator that maintain the maximum of
  33576. a sequence of long values.]]>
  33577. </doc>
  33578. </class>
  33579. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMax -->
  33580. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  33581. <class name="LongValueMin" extends="java.lang.Object"
  33582. abstract="false"
  33583. static="false" final="false" visibility="public"
  33584. deprecated="not deprecated">
  33585. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33586. <constructor name="LongValueMin"
  33587. static="false" final="false" visibility="public"
  33588. deprecated="not deprecated">
  33589. <doc>
  33590. <![CDATA[the default constructor]]>
  33591. </doc>
  33592. </constructor>
  33593. <method name="addNextValue"
  33594. abstract="false" native="false" synchronized="false"
  33595. static="false" final="false" visibility="public"
  33596. deprecated="not deprecated">
  33597. <param name="val" type="java.lang.Object"/>
  33598. <doc>
  33599. <![CDATA[add a value to the aggregator
  33600. @param val
  33601. an object whose string representation represents a long value.]]>
  33602. </doc>
  33603. </method>
  33604. <method name="addNextValue"
  33605. abstract="false" native="false" synchronized="false"
  33606. static="false" final="false" visibility="public"
  33607. deprecated="not deprecated">
  33608. <param name="newVal" type="long"/>
  33609. <doc>
  33610. <![CDATA[add a value to the aggregator
  33611. @param newVal
  33612. a long value.]]>
  33613. </doc>
  33614. </method>
  33615. <method name="getVal" return="long"
  33616. abstract="false" native="false" synchronized="false"
  33617. static="false" final="false" visibility="public"
  33618. deprecated="not deprecated">
  33619. <doc>
  33620. <![CDATA[@return the aggregated value]]>
  33621. </doc>
  33622. </method>
  33623. <method name="getReport" return="java.lang.String"
  33624. abstract="false" native="false" synchronized="false"
  33625. static="false" final="false" visibility="public"
  33626. deprecated="not deprecated">
  33627. <doc>
  33628. <![CDATA[@return the string representation of the aggregated value]]>
  33629. </doc>
  33630. </method>
  33631. <method name="reset"
  33632. abstract="false" native="false" synchronized="false"
  33633. static="false" final="false" visibility="public"
  33634. deprecated="not deprecated">
  33635. <doc>
  33636. <![CDATA[reset the aggregator]]>
  33637. </doc>
  33638. </method>
  33639. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33640. abstract="false" native="false" synchronized="false"
  33641. static="false" final="false" visibility="public"
  33642. deprecated="not deprecated">
  33643. <doc>
  33644. <![CDATA[@return return an array of one element. The element is a string
  33645. representation of the aggregated value. The return value is
  33646. expected to be used by the a combiner.]]>
  33647. </doc>
  33648. </method>
  33649. <doc>
  33650. <![CDATA[This class implements a value aggregator that maintain the minimum of
  33651. a sequence of long values.]]>
  33652. </doc>
  33653. </class>
  33654. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueMin -->
  33655. <!-- start class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  33656. <class name="LongValueSum" extends="java.lang.Object"
  33657. abstract="false"
  33658. static="false" final="false" visibility="public"
  33659. deprecated="not deprecated">
  33660. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33661. <constructor name="LongValueSum"
  33662. static="false" final="false" visibility="public"
  33663. deprecated="not deprecated">
  33664. <doc>
  33665. <![CDATA[the default constructor]]>
  33666. </doc>
  33667. </constructor>
  33668. <method name="addNextValue"
  33669. abstract="false" native="false" synchronized="false"
  33670. static="false" final="false" visibility="public"
  33671. deprecated="not deprecated">
  33672. <param name="val" type="java.lang.Object"/>
  33673. <doc>
  33674. <![CDATA[add a value to the aggregator
  33675. @param val
  33676. an object whose string representation represents a long value.]]>
  33677. </doc>
  33678. </method>
  33679. <method name="addNextValue"
  33680. abstract="false" native="false" synchronized="false"
  33681. static="false" final="false" visibility="public"
  33682. deprecated="not deprecated">
  33683. <param name="val" type="long"/>
  33684. <doc>
  33685. <![CDATA[add a value to the aggregator
  33686. @param val
  33687. a long value.]]>
  33688. </doc>
  33689. </method>
  33690. <method name="getSum" return="long"
  33691. abstract="false" native="false" synchronized="false"
  33692. static="false" final="false" visibility="public"
  33693. deprecated="not deprecated">
  33694. <doc>
  33695. <![CDATA[@return the aggregated value]]>
  33696. </doc>
  33697. </method>
  33698. <method name="getReport" return="java.lang.String"
  33699. abstract="false" native="false" synchronized="false"
  33700. static="false" final="false" visibility="public"
  33701. deprecated="not deprecated">
  33702. <doc>
  33703. <![CDATA[@return the string representation of the aggregated value]]>
  33704. </doc>
  33705. </method>
  33706. <method name="reset"
  33707. abstract="false" native="false" synchronized="false"
  33708. static="false" final="false" visibility="public"
  33709. deprecated="not deprecated">
  33710. <doc>
  33711. <![CDATA[reset the aggregator]]>
  33712. </doc>
  33713. </method>
  33714. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33715. abstract="false" native="false" synchronized="false"
  33716. static="false" final="false" visibility="public"
  33717. deprecated="not deprecated">
  33718. <doc>
  33719. <![CDATA[@return return an array of one element. The element is a string
  33720. representation of the aggregated value. The return value is
  33721. expected to be used by the a combiner.]]>
  33722. </doc>
  33723. </method>
  33724. <doc>
  33725. <![CDATA[This class implements a value aggregator that sums up
  33726. a sequence of long values.]]>
  33727. </doc>
  33728. </class>
  33729. <!-- end class org.apache.hadoop.mapred.lib.aggregate.LongValueSum -->
  33730. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  33731. <class name="StringValueMax" extends="java.lang.Object"
  33732. abstract="false"
  33733. static="false" final="false" visibility="public"
  33734. deprecated="not deprecated">
  33735. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33736. <constructor name="StringValueMax"
  33737. static="false" final="false" visibility="public"
  33738. deprecated="not deprecated">
  33739. <doc>
  33740. <![CDATA[the default constructor]]>
  33741. </doc>
  33742. </constructor>
  33743. <method name="addNextValue"
  33744. abstract="false" native="false" synchronized="false"
  33745. static="false" final="false" visibility="public"
  33746. deprecated="not deprecated">
  33747. <param name="val" type="java.lang.Object"/>
  33748. <doc>
  33749. <![CDATA[add a value to the aggregator
  33750. @param val
  33751. a string.]]>
  33752. </doc>
  33753. </method>
  33754. <method name="getVal" return="java.lang.String"
  33755. abstract="false" native="false" synchronized="false"
  33756. static="false" final="false" visibility="public"
  33757. deprecated="not deprecated">
  33758. <doc>
  33759. <![CDATA[@return the aggregated value]]>
  33760. </doc>
  33761. </method>
  33762. <method name="getReport" return="java.lang.String"
  33763. abstract="false" native="false" synchronized="false"
  33764. static="false" final="false" visibility="public"
  33765. deprecated="not deprecated">
  33766. <doc>
  33767. <![CDATA[@return the string representation of the aggregated value]]>
  33768. </doc>
  33769. </method>
  33770. <method name="reset"
  33771. abstract="false" native="false" synchronized="false"
  33772. static="false" final="false" visibility="public"
  33773. deprecated="not deprecated">
  33774. <doc>
  33775. <![CDATA[reset the aggregator]]>
  33776. </doc>
  33777. </method>
  33778. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33779. abstract="false" native="false" synchronized="false"
  33780. static="false" final="false" visibility="public"
  33781. deprecated="not deprecated">
  33782. <doc>
  33783. <![CDATA[@return return an array of one element. The element is a string
  33784. representation of the aggregated value. The return value is
  33785. expected to be used by the a combiner.]]>
  33786. </doc>
  33787. </method>
  33788. <doc>
  33789. <![CDATA[This class implements a value aggregator that maintain the biggest of
  33790. a sequence of strings.]]>
  33791. </doc>
  33792. </class>
  33793. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMax -->
  33794. <!-- start class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  33795. <class name="StringValueMin" extends="java.lang.Object"
  33796. abstract="false"
  33797. static="false" final="false" visibility="public"
  33798. deprecated="not deprecated">
  33799. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33800. <constructor name="StringValueMin"
  33801. static="false" final="false" visibility="public"
  33802. deprecated="not deprecated">
  33803. <doc>
  33804. <![CDATA[the default constructor]]>
  33805. </doc>
  33806. </constructor>
  33807. <method name="addNextValue"
  33808. abstract="false" native="false" synchronized="false"
  33809. static="false" final="false" visibility="public"
  33810. deprecated="not deprecated">
  33811. <param name="val" type="java.lang.Object"/>
  33812. <doc>
  33813. <![CDATA[add a value to the aggregator
  33814. @param val
  33815. a string.]]>
  33816. </doc>
  33817. </method>
  33818. <method name="getVal" return="java.lang.String"
  33819. abstract="false" native="false" synchronized="false"
  33820. static="false" final="false" visibility="public"
  33821. deprecated="not deprecated">
  33822. <doc>
  33823. <![CDATA[@return the aggregated value]]>
  33824. </doc>
  33825. </method>
  33826. <method name="getReport" return="java.lang.String"
  33827. abstract="false" native="false" synchronized="false"
  33828. static="false" final="false" visibility="public"
  33829. deprecated="not deprecated">
  33830. <doc>
  33831. <![CDATA[@return the string representation of the aggregated value]]>
  33832. </doc>
  33833. </method>
  33834. <method name="reset"
  33835. abstract="false" native="false" synchronized="false"
  33836. static="false" final="false" visibility="public"
  33837. deprecated="not deprecated">
  33838. <doc>
  33839. <![CDATA[reset the aggregator]]>
  33840. </doc>
  33841. </method>
  33842. <method name="getCombinerOutput" return="java.util.ArrayList&lt;java.lang.String&gt;"
  33843. abstract="false" native="false" synchronized="false"
  33844. static="false" final="false" visibility="public"
  33845. deprecated="not deprecated">
  33846. <doc>
  33847. <![CDATA[@return return an array of one element. The element is a string
  33848. representation of the aggregated value. The return value is
  33849. expected to be used by the a combiner.]]>
  33850. </doc>
  33851. </method>
  33852. <doc>
  33853. <![CDATA[This class implements a value aggregator that maintain the smallest of
  33854. a sequence of strings.]]>
  33855. </doc>
  33856. </class>
  33857. <!-- end class org.apache.hadoop.mapred.lib.aggregate.StringValueMin -->
  33858. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  33859. <class name="UniqValueCount" extends="java.lang.Object"
  33860. abstract="false"
  33861. static="false" final="false" visibility="public"
  33862. deprecated="not deprecated">
  33863. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  33864. <constructor name="UniqValueCount"
  33865. static="false" final="false" visibility="public"
  33866. deprecated="not deprecated">
  33867. <doc>
  33868. <![CDATA[the default constructor]]>
  33869. </doc>
  33870. </constructor>
  33871. <constructor name="UniqValueCount" type="long"
  33872. static="false" final="false" visibility="public"
  33873. deprecated="not deprecated">
  33874. <doc>
  33875. <![CDATA[constructor
  33876. @param maxNum the limit in the number of unique values to keep.]]>
  33877. </doc>
  33878. </constructor>
  33879. <method name="setMaxItems" return="long"
  33880. abstract="false" native="false" synchronized="false"
  33881. static="false" final="false" visibility="public"
  33882. deprecated="not deprecated">
  33883. <param name="n" type="long"/>
  33884. <doc>
  33885. <![CDATA[Set the limit on the number of unique values
  33886. @param n the desired limit on the number of unique values
  33887. @return the new limit on the number of unique values]]>
  33888. </doc>
  33889. </method>
  33890. <method name="addNextValue"
  33891. abstract="false" native="false" synchronized="false"
  33892. static="false" final="false" visibility="public"
  33893. deprecated="not deprecated">
  33894. <param name="val" type="java.lang.Object"/>
  33895. <doc>
  33896. <![CDATA[add a value to the aggregator
  33897. @param val
  33898. an object.]]>
  33899. </doc>
  33900. </method>
  33901. <method name="getReport" return="java.lang.String"
  33902. abstract="false" native="false" synchronized="false"
  33903. static="false" final="false" visibility="public"
  33904. deprecated="not deprecated">
  33905. <doc>
  33906. <![CDATA[@return return the number of unique objects aggregated]]>
  33907. </doc>
  33908. </method>
  33909. <method name="getUniqueItems" return="java.util.Set"
  33910. abstract="false" native="false" synchronized="false"
  33911. static="false" final="false" visibility="public"
  33912. deprecated="not deprecated">
  33913. <doc>
  33914. <![CDATA[@return the set of the unique objects]]>
  33915. </doc>
  33916. </method>
  33917. <method name="reset"
  33918. abstract="false" native="false" synchronized="false"
  33919. static="false" final="false" visibility="public"
  33920. deprecated="not deprecated">
  33921. <doc>
  33922. <![CDATA[reset the aggregator]]>
  33923. </doc>
  33924. </method>
  33925. <method name="getCombinerOutput" return="java.util.ArrayList"
  33926. abstract="false" native="false" synchronized="false"
  33927. static="false" final="false" visibility="public"
  33928. deprecated="not deprecated">
  33929. <doc>
  33930. <![CDATA[@return return an array of the unique objects. The return value is
  33931. expected to be used by the a combiner.]]>
  33932. </doc>
  33933. </method>
  33934. <doc>
  33935. <![CDATA[This class implements a value aggregator that dedupes a sequence of objects.]]>
  33936. </doc>
  33937. </class>
  33938. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UniqValueCount -->
  33939. <!-- start class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  33940. <class name="UserDefinedValueAggregatorDescriptor" extends="java.lang.Object"
  33941. abstract="false"
  33942. static="false" final="false" visibility="public"
  33943. deprecated="not deprecated">
  33944. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  33945. <constructor name="UserDefinedValueAggregatorDescriptor" type="java.lang.String, org.apache.hadoop.mapred.JobConf"
  33946. static="false" final="false" visibility="public"
  33947. deprecated="not deprecated">
  33948. <doc>
  33949. <![CDATA[@param className the class name of the user defined descriptor class
  33950. @param job a configure object used for decriptor configuration]]>
  33951. </doc>
  33952. </constructor>
  33953. <method name="createInstance" return="java.lang.Object"
  33954. abstract="false" native="false" synchronized="false"
  33955. static="true" final="false" visibility="public"
  33956. deprecated="not deprecated">
  33957. <param name="className" type="java.lang.String"/>
  33958. <doc>
  33959. <![CDATA[Create an instance of the given class
  33960. @param className the name of the class
  33961. @return a dynamically created instance of the given class]]>
  33962. </doc>
  33963. </method>
  33964. <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;"
  33965. abstract="false" native="false" synchronized="false"
  33966. static="false" final="false" visibility="public"
  33967. deprecated="not deprecated">
  33968. <param name="key" type="java.lang.Object"/>
  33969. <param name="val" type="java.lang.Object"/>
  33970. <doc>
  33971. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pairs
  33972. by delegating the invocation to the real object.
  33973. @param key
  33974. input key
  33975. @param val
  33976. input value
  33977. @return a list of aggregation id/value pairs. An aggregation id encodes an
  33978. aggregation type which is used to guide the way to aggregate the
  33979. value in the reduce/combiner phrase of an Aggregate based job.]]>
  33980. </doc>
  33981. </method>
  33982. <method name="toString" return="java.lang.String"
  33983. abstract="false" native="false" synchronized="false"
  33984. static="false" final="false" visibility="public"
  33985. deprecated="not deprecated">
  33986. <doc>
  33987. <![CDATA[@return the string representation of this object.]]>
  33988. </doc>
  33989. </method>
  33990. <method name="configure"
  33991. abstract="false" native="false" synchronized="false"
  33992. static="false" final="false" visibility="public"
  33993. deprecated="not deprecated">
  33994. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  33995. <doc>
  33996. <![CDATA[Do nothing.]]>
  33997. </doc>
  33998. </method>
  33999. <doc>
  34000. <![CDATA[This class implements a wrapper for a user defined value aggregator descriptor.
  34001. It servs two functions: One is to create an object of ValueAggregatorDescriptor from the
  34002. name of a user defined class that may be dynamically loaded. The other is to
  34003. deligate inviokations of generateKeyValPairs function to the created object.]]>
  34004. </doc>
  34005. </class>
  34006. <!-- end class org.apache.hadoop.mapred.lib.aggregate.UserDefinedValueAggregatorDescriptor -->
  34007. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  34008. <interface name="ValueAggregator" abstract="true"
  34009. static="false" final="false" visibility="public"
  34010. deprecated="not deprecated">
  34011. <method name="addNextValue"
  34012. abstract="false" native="false" synchronized="false"
  34013. static="false" final="false" visibility="public"
  34014. deprecated="not deprecated">
  34015. <param name="val" type="java.lang.Object"/>
  34016. <doc>
  34017. <![CDATA[add a value to the aggregator
  34018. @param val the value to be added]]>
  34019. </doc>
  34020. </method>
  34021. <method name="reset"
  34022. abstract="false" native="false" synchronized="false"
  34023. static="false" final="false" visibility="public"
  34024. deprecated="not deprecated">
  34025. <doc>
  34026. <![CDATA[reset the aggregator]]>
  34027. </doc>
  34028. </method>
  34029. <method name="getReport" return="java.lang.String"
  34030. abstract="false" native="false" synchronized="false"
  34031. static="false" final="false" visibility="public"
  34032. deprecated="not deprecated">
  34033. <doc>
  34034. <![CDATA[@return the string representation of the agregator]]>
  34035. </doc>
  34036. </method>
  34037. <method name="getCombinerOutput" return="java.util.ArrayList"
  34038. abstract="false" native="false" synchronized="false"
  34039. static="false" final="false" visibility="public"
  34040. deprecated="not deprecated">
  34041. <doc>
  34042. <![CDATA[@return an array of values as the outputs of the combiner.]]>
  34043. </doc>
  34044. </method>
  34045. <doc>
  34046. <![CDATA[This interface defines the minimal protocol for value aggregators.]]>
  34047. </doc>
  34048. </interface>
  34049. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregator -->
  34050. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  34051. <class name="ValueAggregatorBaseDescriptor" extends="java.lang.Object"
  34052. abstract="false"
  34053. static="false" final="false" visibility="public"
  34054. deprecated="not deprecated">
  34055. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor"/>
  34056. <constructor name="ValueAggregatorBaseDescriptor"
  34057. static="false" final="false" visibility="public"
  34058. deprecated="not deprecated">
  34059. </constructor>
  34060. <method name="generateEntry" return="java.util.Map.Entry&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"
  34061. abstract="false" native="false" synchronized="false"
  34062. static="true" final="false" visibility="public"
  34063. deprecated="not deprecated">
  34064. <param name="type" type="java.lang.String"/>
  34065. <param name="id" type="java.lang.String"/>
  34066. <param name="val" type="org.apache.hadoop.io.Text"/>
  34067. <doc>
  34068. <![CDATA[@param type the aggregation type
  34069. @param id the aggregation id
  34070. @param val the val associated with the id to be aggregated
  34071. @return an Entry whose key is the aggregation id prefixed with
  34072. the aggregation type.]]>
  34073. </doc>
  34074. </method>
  34075. <method name="generateValueAggregator" return="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"
  34076. abstract="false" native="false" synchronized="false"
  34077. static="true" final="false" visibility="public"
  34078. deprecated="not deprecated">
  34079. <param name="type" type="java.lang.String"/>
  34080. <doc>
  34081. <![CDATA[@param type the aggregation type
  34082. @return a value aggregator of the given type.]]>
  34083. </doc>
  34084. </method>
  34085. <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;"
  34086. abstract="false" native="false" synchronized="false"
  34087. static="false" final="false" visibility="public"
  34088. deprecated="not deprecated">
  34089. <param name="key" type="java.lang.Object"/>
  34090. <param name="val" type="java.lang.Object"/>
  34091. <doc>
  34092. <![CDATA[Generate 1 or 2 aggregation-id/value pairs for the given key/value pair.
  34093. The first id will be of type LONG_VALUE_SUM, with "record_count" as
  34094. its aggregation id. If the input is a file split,
  34095. the second id of the same type will be generated too, with the file name
  34096. as its aggregation id. This achieves the behavior of counting the total number
  34097. of records in the input data, and the number of records in each input file.
  34098. @param key
  34099. input key
  34100. @param val
  34101. input value
  34102. @return a list of aggregation id/value pairs. An aggregation id encodes an
  34103. aggregation type which is used to guide the way to aggregate the
  34104. value in the reduce/combiner phrase of an Aggregate based job.]]>
  34105. </doc>
  34106. </method>
  34107. <method name="configure"
  34108. abstract="false" native="false" synchronized="false"
  34109. static="false" final="false" visibility="public"
  34110. deprecated="not deprecated">
  34111. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  34112. <doc>
  34113. <![CDATA[get the input file name.
  34114. @param job a job configuration object]]>
  34115. </doc>
  34116. </method>
  34117. <field name="UNIQ_VALUE_COUNT" type="java.lang.String"
  34118. transient="false" volatile="false"
  34119. static="true" final="true" visibility="public"
  34120. deprecated="not deprecated">
  34121. </field>
  34122. <field name="LONG_VALUE_SUM" type="java.lang.String"
  34123. transient="false" volatile="false"
  34124. static="true" final="true" visibility="public"
  34125. deprecated="not deprecated">
  34126. </field>
  34127. <field name="DOUBLE_VALUE_SUM" type="java.lang.String"
  34128. transient="false" volatile="false"
  34129. static="true" final="true" visibility="public"
  34130. deprecated="not deprecated">
  34131. </field>
  34132. <field name="VALUE_HISTOGRAM" type="java.lang.String"
  34133. transient="false" volatile="false"
  34134. static="true" final="true" visibility="public"
  34135. deprecated="not deprecated">
  34136. </field>
  34137. <field name="LONG_VALUE_MAX" type="java.lang.String"
  34138. transient="false" volatile="false"
  34139. static="true" final="true" visibility="public"
  34140. deprecated="not deprecated">
  34141. </field>
  34142. <field name="LONG_VALUE_MIN" type="java.lang.String"
  34143. transient="false" volatile="false"
  34144. static="true" final="true" visibility="public"
  34145. deprecated="not deprecated">
  34146. </field>
  34147. <field name="STRING_VALUE_MAX" type="java.lang.String"
  34148. transient="false" volatile="false"
  34149. static="true" final="true" visibility="public"
  34150. deprecated="not deprecated">
  34151. </field>
  34152. <field name="STRING_VALUE_MIN" type="java.lang.String"
  34153. transient="false" volatile="false"
  34154. static="true" final="true" visibility="public"
  34155. deprecated="not deprecated">
  34156. </field>
  34157. <field name="inputFile" type="java.lang.String"
  34158. transient="false" volatile="false"
  34159. static="false" final="false" visibility="public"
  34160. deprecated="not deprecated">
  34161. </field>
  34162. <doc>
  34163. <![CDATA[This class implements the common functionalities of
  34164. the subclasses of ValueAggregatorDescriptor class.]]>
  34165. </doc>
  34166. </class>
  34167. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorBaseDescriptor -->
  34168. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  34169. <class name="ValueAggregatorCombiner" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  34170. abstract="false"
  34171. static="false" final="false" visibility="public"
  34172. deprecated="not deprecated">
  34173. <constructor name="ValueAggregatorCombiner"
  34174. static="false" final="false" visibility="public"
  34175. deprecated="not deprecated">
  34176. </constructor>
  34177. <method name="configure"
  34178. abstract="false" native="false" synchronized="false"
  34179. static="false" final="false" visibility="public"
  34180. deprecated="not deprecated">
  34181. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  34182. <doc>
  34183. <![CDATA[Combiner does not need to configure.]]>
  34184. </doc>
  34185. </method>
  34186. <method name="reduce"
  34187. abstract="false" native="false" synchronized="false"
  34188. static="false" final="false" visibility="public"
  34189. deprecated="not deprecated">
  34190. <param name="key" type="org.apache.hadoop.io.Text"/>
  34191. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  34192. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34193. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  34194. <exception name="IOException" type="java.io.IOException"/>
  34195. <doc>
  34196. <![CDATA[Combines values for a given key.
  34197. @param key the key is expected to be a Text object, whose prefix indicates
  34198. the type of aggregation to aggregate the values.
  34199. @param values the values to combine
  34200. @param output to collect combined values]]>
  34201. </doc>
  34202. </method>
  34203. <method name="close"
  34204. abstract="false" native="false" synchronized="false"
  34205. static="false" final="false" visibility="public"
  34206. deprecated="not deprecated">
  34207. <exception name="IOException" type="java.io.IOException"/>
  34208. <doc>
  34209. <![CDATA[Do nothing.]]>
  34210. </doc>
  34211. </method>
  34212. <method name="map"
  34213. abstract="false" native="false" synchronized="false"
  34214. static="false" final="false" visibility="public"
  34215. deprecated="not deprecated">
  34216. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  34217. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  34218. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34219. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  34220. <exception name="IOException" type="java.io.IOException"/>
  34221. <doc>
  34222. <![CDATA[Do nothing. Should not be called.]]>
  34223. </doc>
  34224. </method>
  34225. <doc>
  34226. <![CDATA[This class implements the generic combiner of Aggregate.]]>
  34227. </doc>
  34228. </class>
  34229. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorCombiner -->
  34230. <!-- start interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  34231. <interface name="ValueAggregatorDescriptor" abstract="true"
  34232. static="false" final="false" visibility="public"
  34233. deprecated="not deprecated">
  34234. <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;"
  34235. abstract="false" native="false" synchronized="false"
  34236. static="false" final="false" visibility="public"
  34237. deprecated="not deprecated">
  34238. <param name="key" type="java.lang.Object"/>
  34239. <param name="val" type="java.lang.Object"/>
  34240. <doc>
  34241. <![CDATA[Generate a list of aggregation-id/value pairs for the given key/value pair.
  34242. This function is usually called by the mapper of an Aggregate based job.
  34243. @param key
  34244. input key
  34245. @param val
  34246. input value
  34247. @return a list of aggregation id/value pairs. An aggregation id encodes an
  34248. aggregation type which is used to guide the way to aggregate the
  34249. value in the reduce/combiner phrase of an Aggregate based job.]]>
  34250. </doc>
  34251. </method>
  34252. <method name="configure"
  34253. abstract="false" native="false" synchronized="false"
  34254. static="false" final="false" visibility="public"
  34255. deprecated="not deprecated">
  34256. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  34257. <doc>
  34258. <![CDATA[Configure the object
  34259. @param job
  34260. a JobConf object that may contain the information that can be used
  34261. to configure the object.]]>
  34262. </doc>
  34263. </method>
  34264. <field name="TYPE_SEPARATOR" type="java.lang.String"
  34265. transient="false" volatile="false"
  34266. static="true" final="true" visibility="public"
  34267. deprecated="not deprecated">
  34268. </field>
  34269. <field name="ONE" type="org.apache.hadoop.io.Text"
  34270. transient="false" volatile="false"
  34271. static="true" final="true" visibility="public"
  34272. deprecated="not deprecated">
  34273. </field>
  34274. <doc>
  34275. <![CDATA[This interface defines the contract a value aggregator descriptor must
  34276. support. Such a descriptor can be configured with a JobConf object. Its main
  34277. function is to generate a list of aggregation-id/value pairs. An aggregation
  34278. id encodes an aggregation type which is used to guide the way to aggregate
  34279. the value in the reduce/combiner phrase of an Aggregate based job.The mapper in
  34280. an Aggregate based map/reduce job may create one or more of
  34281. ValueAggregatorDescriptor objects at configuration time. For each input
  34282. key/value pair, the mapper will use those objects to create aggregation
  34283. id/value pairs.]]>
  34284. </doc>
  34285. </interface>
  34286. <!-- end interface org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor -->
  34287. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  34288. <class name="ValueAggregatorJob" extends="java.lang.Object"
  34289. abstract="false"
  34290. static="false" final="false" visibility="public"
  34291. deprecated="not deprecated">
  34292. <constructor name="ValueAggregatorJob"
  34293. static="false" final="false" visibility="public"
  34294. deprecated="not deprecated">
  34295. </constructor>
  34296. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  34297. abstract="false" native="false" synchronized="false"
  34298. static="true" final="false" visibility="public"
  34299. deprecated="not deprecated">
  34300. <param name="args" type="java.lang.String[]"/>
  34301. <param name="descriptors" type="java.lang.Class[]"/>
  34302. <exception name="IOException" type="java.io.IOException"/>
  34303. </method>
  34304. <method name="createValueAggregatorJobs" return="org.apache.hadoop.mapred.jobcontrol.JobControl"
  34305. abstract="false" native="false" synchronized="false"
  34306. static="true" final="false" visibility="public"
  34307. deprecated="not deprecated">
  34308. <param name="args" type="java.lang.String[]"/>
  34309. <exception name="IOException" type="java.io.IOException"/>
  34310. </method>
  34311. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  34312. abstract="false" native="false" synchronized="false"
  34313. static="true" final="false" visibility="public"
  34314. deprecated="not deprecated">
  34315. <param name="args" type="java.lang.String[]"/>
  34316. <exception name="IOException" type="java.io.IOException"/>
  34317. <doc>
  34318. <![CDATA[Create an Aggregate based map/reduce job.
  34319. @param args the arguments used for job creation. Generic hadoop
  34320. arguments are accepted.
  34321. @return a JobConf object ready for submission.
  34322. @throws IOException
  34323. @see GenericOptionsParser]]>
  34324. </doc>
  34325. </method>
  34326. <method name="createValueAggregatorJob" return="org.apache.hadoop.mapred.JobConf"
  34327. abstract="false" native="false" synchronized="false"
  34328. static="true" final="false" visibility="public"
  34329. deprecated="not deprecated">
  34330. <param name="args" type="java.lang.String[]"/>
  34331. <param name="descriptors" type="java.lang.Class[]"/>
  34332. <exception name="IOException" type="java.io.IOException"/>
  34333. </method>
  34334. <method name="setAggregatorDescriptors"
  34335. abstract="false" native="false" synchronized="false"
  34336. static="true" final="false" visibility="public"
  34337. deprecated="not deprecated">
  34338. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  34339. <param name="descriptors" type="java.lang.Class[]"/>
  34340. </method>
  34341. <method name="main"
  34342. abstract="false" native="false" synchronized="false"
  34343. static="true" final="false" visibility="public"
  34344. deprecated="not deprecated">
  34345. <param name="args" type="java.lang.String[]"/>
  34346. <exception name="IOException" type="java.io.IOException"/>
  34347. <doc>
  34348. <![CDATA[create and run an Aggregate based map/reduce job.
  34349. @param args the arguments used for job creation
  34350. @throws IOException]]>
  34351. </doc>
  34352. </method>
  34353. <doc>
  34354. <![CDATA[This is the main class for creating a map/reduce job using Aggregate
  34355. framework. The Aggregate is a specialization of map/reduce framework,
  34356. specilizing for performing various simple aggregations.
  34357. Generally speaking, in order to implement an application using Map/Reduce
  34358. model, the developer is to implement Map and Reduce functions (and possibly
  34359. combine function). However, a lot of applications related to counting and
  34360. statistics computing have very similar characteristics. Aggregate abstracts
  34361. out the general patterns of these functions and implementing those patterns.
  34362. In particular, the package provides generic mapper/redducer/combiner classes,
  34363. and a set of built-in value aggregators, and a generic utility class that
  34364. helps user create map/reduce jobs using the generic class. The built-in
  34365. aggregators include:
  34366. sum over numeric values count the number of distinct values compute the
  34367. histogram of values compute the minimum, maximum, media,average, standard
  34368. deviation of numeric values
  34369. The developer using Aggregate will need only to provide a plugin class
  34370. conforming to the following interface:
  34371. public interface ValueAggregatorDescriptor { public ArrayList<Entry>
  34372. generateKeyValPairs(Object key, Object value); public void
  34373. configure(JobConfjob); }
  34374. The package also provides a base class, ValueAggregatorBaseDescriptor,
  34375. implementing the above interface. The user can extend the base class and
  34376. implement generateKeyValPairs accordingly.
  34377. The primary work of generateKeyValPairs is to emit one or more key/value
  34378. pairs based on the input key/value pair. The key in an output key/value pair
  34379. encode two pieces of information: aggregation type and aggregation id. The
  34380. value will be aggregated onto the aggregation id according the aggregation
  34381. type.
  34382. This class offers a function to generate a map/reduce job using Aggregate
  34383. framework. The function takes the following parameters: input directory spec
  34384. input format (text or sequence file) output directory a file specifying the
  34385. user plugin class]]>
  34386. </doc>
  34387. </class>
  34388. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJob -->
  34389. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  34390. <class name="ValueAggregatorJobBase" extends="java.lang.Object"
  34391. abstract="true"
  34392. static="false" final="false" visibility="public"
  34393. deprecated="not deprecated">
  34394. <implements name="org.apache.hadoop.mapred.Mapper&lt;K1, V1, org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34395. <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;"/>
  34396. <constructor name="ValueAggregatorJobBase"
  34397. static="false" final="false" visibility="public"
  34398. deprecated="not deprecated">
  34399. </constructor>
  34400. <method name="configure"
  34401. abstract="false" native="false" synchronized="false"
  34402. static="false" final="false" visibility="public"
  34403. deprecated="not deprecated">
  34404. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  34405. </method>
  34406. <method name="logSpec"
  34407. abstract="false" native="false" synchronized="false"
  34408. static="false" final="false" visibility="protected"
  34409. deprecated="not deprecated">
  34410. </method>
  34411. <method name="close"
  34412. abstract="false" native="false" synchronized="false"
  34413. static="false" final="false" visibility="public"
  34414. deprecated="not deprecated">
  34415. <exception name="IOException" type="java.io.IOException"/>
  34416. </method>
  34417. <field name="aggregatorDescriptorList" type="java.util.ArrayList&lt;org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorDescriptor&gt;"
  34418. transient="false" volatile="false"
  34419. static="false" final="false" visibility="protected"
  34420. deprecated="not deprecated">
  34421. </field>
  34422. <doc>
  34423. <![CDATA[This abstract class implements some common functionalities of the
  34424. the generic mapper, reducer and combiner classes of Aggregate.]]>
  34425. </doc>
  34426. </class>
  34427. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase -->
  34428. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  34429. <class name="ValueAggregatorMapper" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  34430. abstract="false"
  34431. static="false" final="false" visibility="public"
  34432. deprecated="not deprecated">
  34433. <constructor name="ValueAggregatorMapper"
  34434. static="false" final="false" visibility="public"
  34435. deprecated="not deprecated">
  34436. </constructor>
  34437. <method name="map"
  34438. abstract="false" native="false" synchronized="false"
  34439. static="false" final="false" visibility="public"
  34440. deprecated="not deprecated">
  34441. <param name="key" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  34442. <param name="value" type="V1 extends org.apache.hadoop.io.Writable"/>
  34443. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34444. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  34445. <exception name="IOException" type="java.io.IOException"/>
  34446. <doc>
  34447. <![CDATA[the map function. It iterates through the value aggregator descriptor
  34448. list to generate aggregation id/value pairs and emit them.]]>
  34449. </doc>
  34450. </method>
  34451. <method name="reduce"
  34452. abstract="false" native="false" synchronized="false"
  34453. static="false" final="false" visibility="public"
  34454. deprecated="not deprecated">
  34455. <param name="arg0" type="org.apache.hadoop.io.Text"/>
  34456. <param name="arg1" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  34457. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34458. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  34459. <exception name="IOException" type="java.io.IOException"/>
  34460. <doc>
  34461. <![CDATA[Do nothing. Should not be called.]]>
  34462. </doc>
  34463. </method>
  34464. <doc>
  34465. <![CDATA[This class implements the generic mapper of Aggregate.]]>
  34466. </doc>
  34467. </class>
  34468. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorMapper -->
  34469. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  34470. <class name="ValueAggregatorReducer" extends="org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorJobBase&lt;K1, V1&gt;"
  34471. abstract="false"
  34472. static="false" final="false" visibility="public"
  34473. deprecated="not deprecated">
  34474. <constructor name="ValueAggregatorReducer"
  34475. static="false" final="false" visibility="public"
  34476. deprecated="not deprecated">
  34477. </constructor>
  34478. <method name="reduce"
  34479. abstract="false" native="false" synchronized="false"
  34480. static="false" final="false" visibility="public"
  34481. deprecated="not deprecated">
  34482. <param name="key" type="org.apache.hadoop.io.Text"/>
  34483. <param name="values" type="java.util.Iterator&lt;org.apache.hadoop.io.Text&gt;"/>
  34484. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34485. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  34486. <exception name="IOException" type="java.io.IOException"/>
  34487. <doc>
  34488. <![CDATA[@param key
  34489. the key is expected to be a Text object, whose prefix indicates
  34490. the type of aggregation to aggregate the values. In effect, data
  34491. driven computing is achieved. It is assumed that each aggregator's
  34492. getReport method emits appropriate output for the aggregator. This
  34493. may be further customiized.
  34494. @value the values to be aggregated]]>
  34495. </doc>
  34496. </method>
  34497. <method name="map"
  34498. abstract="false" native="false" synchronized="false"
  34499. static="false" final="false" visibility="public"
  34500. deprecated="not deprecated">
  34501. <param name="arg0" type="K1 extends org.apache.hadoop.io.WritableComparable"/>
  34502. <param name="arg1" type="V1 extends org.apache.hadoop.io.Writable"/>
  34503. <param name="arg2" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.Text&gt;"/>
  34504. <param name="arg3" type="org.apache.hadoop.mapred.Reporter"/>
  34505. <exception name="IOException" type="java.io.IOException"/>
  34506. <doc>
  34507. <![CDATA[Do nothing. Should not be called]]>
  34508. </doc>
  34509. </method>
  34510. <doc>
  34511. <![CDATA[This class implements the generic reducer of Aggregate.]]>
  34512. </doc>
  34513. </class>
  34514. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueAggregatorReducer -->
  34515. <!-- start class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  34516. <class name="ValueHistogram" extends="java.lang.Object"
  34517. abstract="false"
  34518. static="false" final="false" visibility="public"
  34519. deprecated="not deprecated">
  34520. <implements name="org.apache.hadoop.mapred.lib.aggregate.ValueAggregator"/>
  34521. <constructor name="ValueHistogram"
  34522. static="false" final="false" visibility="public"
  34523. deprecated="not deprecated">
  34524. </constructor>
  34525. <method name="addNextValue"
  34526. abstract="false" native="false" synchronized="false"
  34527. static="false" final="false" visibility="public"
  34528. deprecated="not deprecated">
  34529. <param name="val" type="java.lang.Object"/>
  34530. <doc>
  34531. <![CDATA[add the given val to the aggregator.
  34532. @param val the value to be added. It is expected to be a string
  34533. in the form of xxxx\tnum, meaning xxxx has num occurrences.]]>
  34534. </doc>
  34535. </method>
  34536. <method name="getReport" return="java.lang.String"
  34537. abstract="false" native="false" synchronized="false"
  34538. static="false" final="false" visibility="public"
  34539. deprecated="not deprecated">
  34540. <doc>
  34541. <![CDATA[@return the string representation of this aggregator.
  34542. It includes the following basic statistics of the histogram:
  34543. the number of unique values
  34544. the minimum value
  34545. the media value
  34546. the maximum value
  34547. the average value
  34548. the standard deviation]]>
  34549. </doc>
  34550. </method>
  34551. <method name="getReportDetails" return="java.lang.String"
  34552. abstract="false" native="false" synchronized="false"
  34553. static="false" final="false" visibility="public"
  34554. deprecated="not deprecated">
  34555. <doc>
  34556. <![CDATA[@return a string representation of the list of value/frequence pairs of
  34557. the histogram]]>
  34558. </doc>
  34559. </method>
  34560. <method name="getCombinerOutput" return="java.util.ArrayList"
  34561. abstract="false" native="false" synchronized="false"
  34562. static="false" final="false" visibility="public"
  34563. deprecated="not deprecated">
  34564. <doc>
  34565. <![CDATA[@return a list value/frequence pairs.
  34566. The return value is expected to be used by the reducer.]]>
  34567. </doc>
  34568. </method>
  34569. <method name="getReportItems" return="java.util.TreeMap"
  34570. abstract="false" native="false" synchronized="false"
  34571. static="false" final="false" visibility="public"
  34572. deprecated="not deprecated">
  34573. <doc>
  34574. <![CDATA[@return a TreeMap representation of the histogram]]>
  34575. </doc>
  34576. </method>
  34577. <method name="reset"
  34578. abstract="false" native="false" synchronized="false"
  34579. static="false" final="false" visibility="public"
  34580. deprecated="not deprecated">
  34581. <doc>
  34582. <![CDATA[reset the aggregator]]>
  34583. </doc>
  34584. </method>
  34585. <doc>
  34586. <![CDATA[This class implements a value aggregator that computes the
  34587. histogram of a sequence of strings.]]>
  34588. </doc>
  34589. </class>
  34590. <!-- end class org.apache.hadoop.mapred.lib.aggregate.ValueHistogram -->
  34591. </package>
  34592. <package name="org.apache.hadoop.mapred.pipes">
  34593. <!-- start class org.apache.hadoop.mapred.pipes.Submitter -->
  34594. <class name="Submitter" extends="java.lang.Object"
  34595. abstract="false"
  34596. static="false" final="false" visibility="public"
  34597. deprecated="not deprecated">
  34598. <constructor name="Submitter"
  34599. static="false" final="false" visibility="public"
  34600. deprecated="not deprecated">
  34601. </constructor>
  34602. <method name="getExecutable" return="java.lang.String"
  34603. abstract="false" native="false" synchronized="false"
  34604. static="true" final="false" visibility="public"
  34605. deprecated="not deprecated">
  34606. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34607. <doc>
  34608. <![CDATA[Get the URI of the application's executable.
  34609. @param conf
  34610. @return the URI where the application's executable is located]]>
  34611. </doc>
  34612. </method>
  34613. <method name="setExecutable"
  34614. abstract="false" native="false" synchronized="false"
  34615. static="true" final="false" visibility="public"
  34616. deprecated="not deprecated">
  34617. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34618. <param name="executable" type="java.lang.String"/>
  34619. <doc>
  34620. <![CDATA[Set the URI for the application's executable. Normally this is a hdfs:
  34621. location.
  34622. @param conf
  34623. @param executable The URI of the application's executable.]]>
  34624. </doc>
  34625. </method>
  34626. <method name="setIsJavaRecordReader"
  34627. abstract="false" native="false" synchronized="false"
  34628. static="true" final="false" visibility="public"
  34629. deprecated="not deprecated">
  34630. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34631. <param name="value" type="boolean"/>
  34632. <doc>
  34633. <![CDATA[Set whether the job is using a Java RecordReader.
  34634. @param conf the configuration to modify
  34635. @param value the new value]]>
  34636. </doc>
  34637. </method>
  34638. <method name="getIsJavaRecordReader" return="boolean"
  34639. abstract="false" native="false" synchronized="false"
  34640. static="true" final="false" visibility="public"
  34641. deprecated="not deprecated">
  34642. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34643. <doc>
  34644. <![CDATA[Check whether the job is using a Java RecordReader
  34645. @param conf the configuration to check
  34646. @return is it a Java RecordReader?]]>
  34647. </doc>
  34648. </method>
  34649. <method name="setIsJavaMapper"
  34650. abstract="false" native="false" synchronized="false"
  34651. static="true" final="false" visibility="public"
  34652. deprecated="not deprecated">
  34653. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34654. <param name="value" type="boolean"/>
  34655. <doc>
  34656. <![CDATA[Set whether the Mapper is written in Java.
  34657. @param conf the configuration to modify
  34658. @param value the new value]]>
  34659. </doc>
  34660. </method>
  34661. <method name="getIsJavaMapper" return="boolean"
  34662. abstract="false" native="false" synchronized="false"
  34663. static="true" final="false" visibility="public"
  34664. deprecated="not deprecated">
  34665. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34666. <doc>
  34667. <![CDATA[Check whether the job is using a Java Mapper.
  34668. @param conf the configuration to check
  34669. @return is it a Java Mapper?]]>
  34670. </doc>
  34671. </method>
  34672. <method name="setIsJavaReducer"
  34673. abstract="false" native="false" synchronized="false"
  34674. static="true" final="false" visibility="public"
  34675. deprecated="not deprecated">
  34676. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34677. <param name="value" type="boolean"/>
  34678. <doc>
  34679. <![CDATA[Set whether the Reducer is written in Java.
  34680. @param conf the configuration to modify
  34681. @param value the new value]]>
  34682. </doc>
  34683. </method>
  34684. <method name="getIsJavaReducer" return="boolean"
  34685. abstract="false" native="false" synchronized="false"
  34686. static="true" final="false" visibility="public"
  34687. deprecated="not deprecated">
  34688. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34689. <doc>
  34690. <![CDATA[Check whether the job is using a Java Reducer.
  34691. @param conf the configuration to check
  34692. @return is it a Java Reducer?]]>
  34693. </doc>
  34694. </method>
  34695. <method name="setIsJavaRecordWriter"
  34696. abstract="false" native="false" synchronized="false"
  34697. static="true" final="false" visibility="public"
  34698. deprecated="not deprecated">
  34699. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34700. <param name="value" type="boolean"/>
  34701. <doc>
  34702. <![CDATA[Set whether the job will use a Java RecordWriter.
  34703. @param conf the configuration to modify
  34704. @param value the new value to set]]>
  34705. </doc>
  34706. </method>
  34707. <method name="getIsJavaRecordWriter" return="boolean"
  34708. abstract="false" native="false" synchronized="false"
  34709. static="true" final="false" visibility="public"
  34710. deprecated="not deprecated">
  34711. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34712. <doc>
  34713. <![CDATA[Will the reduce use a Java RecordWriter?
  34714. @param conf the configuration to check
  34715. @return true, if the output of the job will be written by Java]]>
  34716. </doc>
  34717. </method>
  34718. <method name="getKeepCommandFile" return="boolean"
  34719. abstract="false" native="false" synchronized="false"
  34720. static="true" final="false" visibility="public"
  34721. deprecated="not deprecated">
  34722. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34723. <doc>
  34724. <![CDATA[Does the user want to keep the command file for debugging? If this is
  34725. true, pipes will write a copy of the command data to a file in the
  34726. task directory named "downlink.data", which may be used to run the C++
  34727. program under the debugger. You probably also want to set
  34728. JobConf.setKeepFailedTaskFiles(true) to keep the entire directory from
  34729. being deleted.
  34730. To run using the data file, set the environment variable
  34731. "hadoop.pipes.command.file" to point to the file.
  34732. @param conf the configuration to check
  34733. @return will the framework save the command file?]]>
  34734. </doc>
  34735. </method>
  34736. <method name="setKeepCommandFile"
  34737. abstract="false" native="false" synchronized="false"
  34738. static="true" final="false" visibility="public"
  34739. deprecated="not deprecated">
  34740. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34741. <param name="keep" type="boolean"/>
  34742. <doc>
  34743. <![CDATA[Set whether to keep the command file for debugging
  34744. @param conf the configuration to modify
  34745. @param keep the new value]]>
  34746. </doc>
  34747. </method>
  34748. <method name="submitJob" return="org.apache.hadoop.mapred.RunningJob"
  34749. abstract="false" native="false" synchronized="false"
  34750. static="true" final="false" visibility="public"
  34751. deprecated="not deprecated">
  34752. <param name="conf" type="org.apache.hadoop.mapred.JobConf"/>
  34753. <exception name="IOException" type="java.io.IOException"/>
  34754. <doc>
  34755. <![CDATA[Submit a job to the map/reduce cluster. All of the necessary modifications
  34756. to the job to run under pipes are made to the configuration.
  34757. @param conf the job to submit to the cluster (MODIFIED)
  34758. @throws IOException]]>
  34759. </doc>
  34760. </method>
  34761. <method name="main"
  34762. abstract="false" native="false" synchronized="false"
  34763. static="true" final="false" visibility="public"
  34764. deprecated="not deprecated">
  34765. <param name="args" type="java.lang.String[]"/>
  34766. <exception name="Exception" type="java.lang.Exception"/>
  34767. <doc>
  34768. <![CDATA[Submit a pipes job based on the command line arguments.
  34769. @param args]]>
  34770. </doc>
  34771. </method>
  34772. <doc>
  34773. <![CDATA[The main entry point and job submitter. It may either be used as a command
  34774. line-based or API-based method to launch Pipes jobs.]]>
  34775. </doc>
  34776. </class>
  34777. <!-- end class org.apache.hadoop.mapred.pipes.Submitter -->
  34778. </package>
  34779. <package name="org.apache.hadoop.metrics">
  34780. <!-- start class org.apache.hadoop.metrics.ContextFactory -->
  34781. <class name="ContextFactory" extends="java.lang.Object"
  34782. abstract="false"
  34783. static="false" final="false" visibility="public"
  34784. deprecated="not deprecated">
  34785. <constructor name="ContextFactory"
  34786. static="false" final="false" visibility="protected"
  34787. deprecated="not deprecated">
  34788. <doc>
  34789. <![CDATA[Creates a new instance of ContextFactory]]>
  34790. </doc>
  34791. </constructor>
  34792. <method name="getAttribute" return="java.lang.Object"
  34793. abstract="false" native="false" synchronized="false"
  34794. static="false" final="false" visibility="public"
  34795. deprecated="not deprecated">
  34796. <param name="attributeName" type="java.lang.String"/>
  34797. <doc>
  34798. <![CDATA[Returns the value of the named attribute, or null if there is no
  34799. attribute of that name.
  34800. @param attributeName the attribute name
  34801. @return the attribute value]]>
  34802. </doc>
  34803. </method>
  34804. <method name="getAttributeNames" return="java.lang.String[]"
  34805. abstract="false" native="false" synchronized="false"
  34806. static="false" final="false" visibility="public"
  34807. deprecated="not deprecated">
  34808. <doc>
  34809. <![CDATA[Returns the names of all the factory's attributes.
  34810. @return the attribute names]]>
  34811. </doc>
  34812. </method>
  34813. <method name="setAttribute"
  34814. abstract="false" native="false" synchronized="false"
  34815. static="false" final="false" visibility="public"
  34816. deprecated="not deprecated">
  34817. <param name="attributeName" type="java.lang.String"/>
  34818. <param name="value" type="java.lang.Object"/>
  34819. <doc>
  34820. <![CDATA[Sets the named factory attribute to the specified value, creating it
  34821. if it did not already exist. If the value is null, this is the same as
  34822. calling removeAttribute.
  34823. @param attributeName the attribute name
  34824. @param value the new attribute value]]>
  34825. </doc>
  34826. </method>
  34827. <method name="removeAttribute"
  34828. abstract="false" native="false" synchronized="false"
  34829. static="false" final="false" visibility="public"
  34830. deprecated="not deprecated">
  34831. <param name="attributeName" type="java.lang.String"/>
  34832. <doc>
  34833. <![CDATA[Removes the named attribute if it exists.
  34834. @param attributeName the attribute name]]>
  34835. </doc>
  34836. </method>
  34837. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  34838. abstract="false" native="false" synchronized="true"
  34839. static="false" final="false" visibility="public"
  34840. deprecated="not deprecated">
  34841. <param name="contextName" type="java.lang.String"/>
  34842. <exception name="IOException" type="java.io.IOException"/>
  34843. <exception name="ClassNotFoundException" type="java.lang.ClassNotFoundException"/>
  34844. <exception name="InstantiationException" type="java.lang.InstantiationException"/>
  34845. <exception name="IllegalAccessException" type="java.lang.IllegalAccessException"/>
  34846. <doc>
  34847. <![CDATA[Returns the named MetricsContext instance, constructing it if necessary
  34848. using the factory's current configuration attributes. <p/>
  34849. When constructing the instance, if the factory property
  34850. <i>contextName</i>.class</code> exists,
  34851. its value is taken to be the name of the class to instantiate. Otherwise,
  34852. the default is to create an instance of
  34853. <code>org.apache.hadoop.metrics.spi.NullContext</code>, which is a
  34854. dummy "no-op" context which will cause all metric data to be discarded.
  34855. @param contextName the name of the context
  34856. @return the named MetricsContext]]>
  34857. </doc>
  34858. </method>
  34859. <method name="getNullContext" return="org.apache.hadoop.metrics.MetricsContext"
  34860. abstract="false" native="false" synchronized="true"
  34861. static="true" final="false" visibility="public"
  34862. deprecated="not deprecated">
  34863. <param name="contextName" type="java.lang.String"/>
  34864. <doc>
  34865. <![CDATA[Returns a "null" context - one which does nothing.]]>
  34866. </doc>
  34867. </method>
  34868. <method name="getFactory" return="org.apache.hadoop.metrics.ContextFactory"
  34869. abstract="false" native="false" synchronized="true"
  34870. static="true" final="false" visibility="public"
  34871. deprecated="not deprecated">
  34872. <exception name="IOException" type="java.io.IOException"/>
  34873. <doc>
  34874. <![CDATA[Returns the singleton ContextFactory instance, constructing it if
  34875. necessary. <p/>
  34876. When the instance is constructed, this method checks if the file
  34877. <code>hadoop-metrics.properties</code> exists on the class path. If it
  34878. exists, it must be in the format defined by java.util.Properties, and all
  34879. the properties in the file are set as attributes on the newly created
  34880. ContextFactory instance.
  34881. @return the singleton ContextFactory instance]]>
  34882. </doc>
  34883. </method>
  34884. <doc>
  34885. <![CDATA[Factory class for creating MetricsContext objects. To obtain an instance
  34886. of this class, use the static <code>getFactory()</code> method.]]>
  34887. </doc>
  34888. </class>
  34889. <!-- end class org.apache.hadoop.metrics.ContextFactory -->
  34890. <!-- start interface org.apache.hadoop.metrics.MetricsContext -->
  34891. <interface name="MetricsContext" abstract="true"
  34892. static="false" final="false" visibility="public"
  34893. deprecated="not deprecated">
  34894. <method name="getContextName" return="java.lang.String"
  34895. abstract="false" native="false" synchronized="false"
  34896. static="false" final="false" visibility="public"
  34897. deprecated="not deprecated">
  34898. <doc>
  34899. <![CDATA[Returns the context name.
  34900. @return the context name]]>
  34901. </doc>
  34902. </method>
  34903. <method name="startMonitoring"
  34904. abstract="false" native="false" synchronized="false"
  34905. static="false" final="false" visibility="public"
  34906. deprecated="not deprecated">
  34907. <exception name="IOException" type="java.io.IOException"/>
  34908. <doc>
  34909. <![CDATA[Starts or restarts monitoring, the emitting of metrics records as they are
  34910. updated.]]>
  34911. </doc>
  34912. </method>
  34913. <method name="stopMonitoring"
  34914. abstract="false" native="false" synchronized="false"
  34915. static="false" final="false" visibility="public"
  34916. deprecated="not deprecated">
  34917. <doc>
  34918. <![CDATA[Stops monitoring. This does not free any data that the implementation
  34919. may have buffered for sending at the next timer event. It
  34920. is OK to call <code>startMonitoring()</code> again after calling
  34921. this.
  34922. @see #close()]]>
  34923. </doc>
  34924. </method>
  34925. <method name="isMonitoring" return="boolean"
  34926. abstract="false" native="false" synchronized="false"
  34927. static="false" final="false" visibility="public"
  34928. deprecated="not deprecated">
  34929. <doc>
  34930. <![CDATA[Returns true if monitoring is currently in progress.]]>
  34931. </doc>
  34932. </method>
  34933. <method name="close"
  34934. abstract="false" native="false" synchronized="false"
  34935. static="false" final="false" visibility="public"
  34936. deprecated="not deprecated">
  34937. <doc>
  34938. <![CDATA[Stops monitoring and also frees any buffered data, returning this
  34939. object to its initial state.]]>
  34940. </doc>
  34941. </method>
  34942. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  34943. abstract="false" native="false" synchronized="false"
  34944. static="false" final="false" visibility="public"
  34945. deprecated="not deprecated">
  34946. <param name="recordName" type="java.lang.String"/>
  34947. <doc>
  34948. <![CDATA[Creates a new MetricsRecord instance with the given <code>recordName</code>.
  34949. Throws an exception if the metrics implementation is configured with a fixed
  34950. set of record names and <code>recordName</code> is not in that set.
  34951. @param recordName the name of the record
  34952. @throws MetricsException if recordName conflicts with configuration data]]>
  34953. </doc>
  34954. </method>
  34955. <method name="registerUpdater"
  34956. abstract="false" native="false" synchronized="false"
  34957. static="false" final="false" visibility="public"
  34958. deprecated="not deprecated">
  34959. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  34960. <doc>
  34961. <![CDATA[Registers a callback to be called at regular time intervals, as
  34962. determined by the implementation-class specific configuration.
  34963. @param updater object to be run periodically; it should updated
  34964. some metrics records and then return]]>
  34965. </doc>
  34966. </method>
  34967. <method name="unregisterUpdater"
  34968. abstract="false" native="false" synchronized="false"
  34969. static="false" final="false" visibility="public"
  34970. deprecated="not deprecated">
  34971. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  34972. <doc>
  34973. <![CDATA[Removes a callback, if it exists.
  34974. @param updater object to be removed from the callback list]]>
  34975. </doc>
  34976. </method>
  34977. <field name="DEFAULT_PERIOD" type="int"
  34978. transient="false" volatile="false"
  34979. static="true" final="true" visibility="public"
  34980. deprecated="not deprecated">
  34981. <doc>
  34982. <![CDATA[Default period in seconds at which data is sent to the metrics system.]]>
  34983. </doc>
  34984. </field>
  34985. <doc>
  34986. <![CDATA[The main interface to the metrics package.]]>
  34987. </doc>
  34988. </interface>
  34989. <!-- end interface org.apache.hadoop.metrics.MetricsContext -->
  34990. <!-- start class org.apache.hadoop.metrics.MetricsException -->
  34991. <class name="MetricsException" extends="java.lang.RuntimeException"
  34992. abstract="false"
  34993. static="false" final="false" visibility="public"
  34994. deprecated="not deprecated">
  34995. <constructor name="MetricsException"
  34996. static="false" final="false" visibility="public"
  34997. deprecated="not deprecated">
  34998. <doc>
  34999. <![CDATA[Creates a new instance of MetricsException]]>
  35000. </doc>
  35001. </constructor>
  35002. <constructor name="MetricsException" type="java.lang.String"
  35003. static="false" final="false" visibility="public"
  35004. deprecated="not deprecated">
  35005. <doc>
  35006. <![CDATA[Creates a new instance of MetricsException
  35007. @param message an error message]]>
  35008. </doc>
  35009. </constructor>
  35010. <doc>
  35011. <![CDATA[General-purpose, unchecked metrics exception.]]>
  35012. </doc>
  35013. </class>
  35014. <!-- end class org.apache.hadoop.metrics.MetricsException -->
  35015. <!-- start interface org.apache.hadoop.metrics.MetricsRecord -->
  35016. <interface name="MetricsRecord" abstract="true"
  35017. static="false" final="false" visibility="public"
  35018. deprecated="not deprecated">
  35019. <method name="getRecordName" return="java.lang.String"
  35020. abstract="false" native="false" synchronized="false"
  35021. static="false" final="false" visibility="public"
  35022. deprecated="not deprecated">
  35023. <doc>
  35024. <![CDATA[Returns the record name.
  35025. @return the record name]]>
  35026. </doc>
  35027. </method>
  35028. <method name="setTag"
  35029. abstract="false" native="false" synchronized="false"
  35030. static="false" final="false" visibility="public"
  35031. deprecated="not deprecated">
  35032. <param name="tagName" type="java.lang.String"/>
  35033. <param name="tagValue" type="java.lang.String"/>
  35034. <doc>
  35035. <![CDATA[Sets the named tag to the specified value. The tagValue may be null,
  35036. which is treated the same as an empty String.
  35037. @param tagName name of the tag
  35038. @param tagValue new value of the tag
  35039. @throws MetricsException if the tagName conflicts with the configuration]]>
  35040. </doc>
  35041. </method>
  35042. <method name="setTag"
  35043. abstract="false" native="false" synchronized="false"
  35044. static="false" final="false" visibility="public"
  35045. deprecated="not deprecated">
  35046. <param name="tagName" type="java.lang.String"/>
  35047. <param name="tagValue" type="int"/>
  35048. <doc>
  35049. <![CDATA[Sets the named tag to the specified value.
  35050. @param tagName name of the tag
  35051. @param tagValue new value of the tag
  35052. @throws MetricsException if the tagName conflicts with the configuration]]>
  35053. </doc>
  35054. </method>
  35055. <method name="setTag"
  35056. abstract="false" native="false" synchronized="false"
  35057. static="false" final="false" visibility="public"
  35058. deprecated="not deprecated">
  35059. <param name="tagName" type="java.lang.String"/>
  35060. <param name="tagValue" type="long"/>
  35061. <doc>
  35062. <![CDATA[Sets the named tag to the specified value.
  35063. @param tagName name of the tag
  35064. @param tagValue new value of the tag
  35065. @throws MetricsException if the tagName conflicts with the configuration]]>
  35066. </doc>
  35067. </method>
  35068. <method name="setTag"
  35069. abstract="false" native="false" synchronized="false"
  35070. static="false" final="false" visibility="public"
  35071. deprecated="not deprecated">
  35072. <param name="tagName" type="java.lang.String"/>
  35073. <param name="tagValue" type="short"/>
  35074. <doc>
  35075. <![CDATA[Sets the named tag to the specified value.
  35076. @param tagName name of the tag
  35077. @param tagValue new value of the tag
  35078. @throws MetricsException if the tagName conflicts with the configuration]]>
  35079. </doc>
  35080. </method>
  35081. <method name="setTag"
  35082. abstract="false" native="false" synchronized="false"
  35083. static="false" final="false" visibility="public"
  35084. deprecated="not deprecated">
  35085. <param name="tagName" type="java.lang.String"/>
  35086. <param name="tagValue" type="byte"/>
  35087. <doc>
  35088. <![CDATA[Sets the named tag to the specified value.
  35089. @param tagName name of the tag
  35090. @param tagValue new value of the tag
  35091. @throws MetricsException if the tagName conflicts with the configuration]]>
  35092. </doc>
  35093. </method>
  35094. <method name="removeTag"
  35095. abstract="false" native="false" synchronized="false"
  35096. static="false" final="false" visibility="public"
  35097. deprecated="not deprecated">
  35098. <param name="tagName" type="java.lang.String"/>
  35099. <doc>
  35100. <![CDATA[Removes any tag of the specified name.
  35101. @param tagName name of a tag]]>
  35102. </doc>
  35103. </method>
  35104. <method name="setMetric"
  35105. abstract="false" native="false" synchronized="false"
  35106. static="false" final="false" visibility="public"
  35107. deprecated="not deprecated">
  35108. <param name="metricName" type="java.lang.String"/>
  35109. <param name="metricValue" type="int"/>
  35110. <doc>
  35111. <![CDATA[Sets the named metric to the specified value.
  35112. @param metricName name of the metric
  35113. @param metricValue new value of the metric
  35114. @throws MetricsException if the metricName or the type of the metricValue
  35115. conflicts with the configuration]]>
  35116. </doc>
  35117. </method>
  35118. <method name="setMetric"
  35119. abstract="false" native="false" synchronized="false"
  35120. static="false" final="false" visibility="public"
  35121. deprecated="not deprecated">
  35122. <param name="metricName" type="java.lang.String"/>
  35123. <param name="metricValue" type="long"/>
  35124. <doc>
  35125. <![CDATA[Sets the named metric to the specified value.
  35126. @param metricName name of the metric
  35127. @param metricValue new value of the metric
  35128. @throws MetricsException if the metricName or the type of the metricValue
  35129. conflicts with the configuration]]>
  35130. </doc>
  35131. </method>
  35132. <method name="setMetric"
  35133. abstract="false" native="false" synchronized="false"
  35134. static="false" final="false" visibility="public"
  35135. deprecated="not deprecated">
  35136. <param name="metricName" type="java.lang.String"/>
  35137. <param name="metricValue" type="short"/>
  35138. <doc>
  35139. <![CDATA[Sets the named metric to the specified value.
  35140. @param metricName name of the metric
  35141. @param metricValue new value of the metric
  35142. @throws MetricsException if the metricName or the type of the metricValue
  35143. conflicts with the configuration]]>
  35144. </doc>
  35145. </method>
  35146. <method name="setMetric"
  35147. abstract="false" native="false" synchronized="false"
  35148. static="false" final="false" visibility="public"
  35149. deprecated="not deprecated">
  35150. <param name="metricName" type="java.lang.String"/>
  35151. <param name="metricValue" type="byte"/>
  35152. <doc>
  35153. <![CDATA[Sets the named metric to the specified value.
  35154. @param metricName name of the metric
  35155. @param metricValue new value of the metric
  35156. @throws MetricsException if the metricName or the type of the metricValue
  35157. conflicts with the configuration]]>
  35158. </doc>
  35159. </method>
  35160. <method name="setMetric"
  35161. abstract="false" native="false" synchronized="false"
  35162. static="false" final="false" visibility="public"
  35163. deprecated="not deprecated">
  35164. <param name="metricName" type="java.lang.String"/>
  35165. <param name="metricValue" type="float"/>
  35166. <doc>
  35167. <![CDATA[Sets the named metric to the specified value.
  35168. @param metricName name of the metric
  35169. @param metricValue new value of the metric
  35170. @throws MetricsException if the metricName or the type of the metricValue
  35171. conflicts with the configuration]]>
  35172. </doc>
  35173. </method>
  35174. <method name="incrMetric"
  35175. abstract="false" native="false" synchronized="false"
  35176. static="false" final="false" visibility="public"
  35177. deprecated="not deprecated">
  35178. <param name="metricName" type="java.lang.String"/>
  35179. <param name="metricValue" type="int"/>
  35180. <doc>
  35181. <![CDATA[Increments the named metric by the specified value.
  35182. @param metricName name of the metric
  35183. @param metricValue incremental value
  35184. @throws MetricsException if the metricName or the type of the metricValue
  35185. conflicts with the configuration]]>
  35186. </doc>
  35187. </method>
  35188. <method name="incrMetric"
  35189. abstract="false" native="false" synchronized="false"
  35190. static="false" final="false" visibility="public"
  35191. deprecated="not deprecated">
  35192. <param name="metricName" type="java.lang.String"/>
  35193. <param name="metricValue" type="long"/>
  35194. <doc>
  35195. <![CDATA[Increments the named metric by the specified value.
  35196. @param metricName name of the metric
  35197. @param metricValue incremental value
  35198. @throws MetricsException if the metricName or the type of the metricValue
  35199. conflicts with the configuration]]>
  35200. </doc>
  35201. </method>
  35202. <method name="incrMetric"
  35203. abstract="false" native="false" synchronized="false"
  35204. static="false" final="false" visibility="public"
  35205. deprecated="not deprecated">
  35206. <param name="metricName" type="java.lang.String"/>
  35207. <param name="metricValue" type="short"/>
  35208. <doc>
  35209. <![CDATA[Increments the named metric by the specified value.
  35210. @param metricName name of the metric
  35211. @param metricValue incremental value
  35212. @throws MetricsException if the metricName or the type of the metricValue
  35213. conflicts with the configuration]]>
  35214. </doc>
  35215. </method>
  35216. <method name="incrMetric"
  35217. abstract="false" native="false" synchronized="false"
  35218. static="false" final="false" visibility="public"
  35219. deprecated="not deprecated">
  35220. <param name="metricName" type="java.lang.String"/>
  35221. <param name="metricValue" type="byte"/>
  35222. <doc>
  35223. <![CDATA[Increments the named metric by the specified value.
  35224. @param metricName name of the metric
  35225. @param metricValue incremental value
  35226. @throws MetricsException if the metricName or the type of the metricValue
  35227. conflicts with the configuration]]>
  35228. </doc>
  35229. </method>
  35230. <method name="incrMetric"
  35231. abstract="false" native="false" synchronized="false"
  35232. static="false" final="false" visibility="public"
  35233. deprecated="not deprecated">
  35234. <param name="metricName" type="java.lang.String"/>
  35235. <param name="metricValue" type="float"/>
  35236. <doc>
  35237. <![CDATA[Increments the named metric by the specified value.
  35238. @param metricName name of the metric
  35239. @param metricValue incremental value
  35240. @throws MetricsException if the metricName or the type of the metricValue
  35241. conflicts with the configuration]]>
  35242. </doc>
  35243. </method>
  35244. <method name="update"
  35245. abstract="false" native="false" synchronized="false"
  35246. static="false" final="false" visibility="public"
  35247. deprecated="not deprecated">
  35248. <doc>
  35249. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  35250. If the tag values match an existing row, that row is updated;
  35251. otherwise, a new row is added.]]>
  35252. </doc>
  35253. </method>
  35254. <method name="remove"
  35255. abstract="false" native="false" synchronized="false"
  35256. static="false" final="false" visibility="public"
  35257. deprecated="not deprecated">
  35258. <doc>
  35259. <![CDATA[Removes, from the buffered data table, all rows having tags
  35260. that equal the tags that have been set on this record. For example,
  35261. if there are no tags on this record, all rows for this record name
  35262. would be removed. Or, if there is a single tag on this record, then
  35263. just rows containing a tag with the same name and value would be removed.]]>
  35264. </doc>
  35265. </method>
  35266. <doc>
  35267. <![CDATA[A named and optionally tagged set of records to be sent to the metrics
  35268. system. <p/>
  35269. A record name identifies the kind of data to be reported. For example, a
  35270. program reporting statistics relating to the disks on a computer might use
  35271. a record name "diskStats".<p/>
  35272. A record has zero or more <i>tags</i>. A tag has a name and a value. To
  35273. continue the example, the "diskStats" record might use a tag named
  35274. "diskName" to identify a particular disk. Sometimes it is useful to have
  35275. more than one tag, so there might also be a "diskType" with value "ide" or
  35276. "scsi" or whatever.<p/>
  35277. A record also has zero or more <i>metrics</i>. These are the named
  35278. values that are to be reported to the metrics system. In the "diskStats"
  35279. example, possible metric names would be "diskPercentFull", "diskPercentBusy",
  35280. "kbReadPerSecond", etc.<p/>
  35281. The general procedure for using a MetricsRecord is to fill in its tag and
  35282. metric values, and then call <code>update()</code> to pass the record to the
  35283. client library.
  35284. Metric data is not immediately sent to the metrics system
  35285. each time that <code>update()</code> is called.
  35286. An internal table is maintained, identified by the record name. This
  35287. table has columns
  35288. corresponding to the tag and the metric names, and rows
  35289. corresponding to each unique set of tag values. An update
  35290. either modifies an existing row in the table, or adds a new row with a set of
  35291. tag values that are different from all the other rows. Note that if there
  35292. are no tags, then there can be at most one row in the table. <p/>
  35293. Once a row is added to the table, its data will be sent to the metrics system
  35294. on every timer period, whether or not it has been updated since the previous
  35295. timer period. If this is inappropriate, for example if metrics were being
  35296. reported by some transient object in an application, the <code>remove()</code>
  35297. method can be used to remove the row and thus stop the data from being
  35298. sent.<p/>
  35299. Note that the <code>update()</code> method is atomic. This means that it is
  35300. safe for different threads to be updating the same metric. More precisely,
  35301. it is OK for different threads to call <code>update()</code> on MetricsRecord instances
  35302. with the same set of tag names and tag values. Different threads should
  35303. <b>not</b> use the same MetricsRecord instance at the same time.]]>
  35304. </doc>
  35305. </interface>
  35306. <!-- end interface org.apache.hadoop.metrics.MetricsRecord -->
  35307. <!-- start class org.apache.hadoop.metrics.MetricsUtil -->
  35308. <class name="MetricsUtil" extends="java.lang.Object"
  35309. abstract="false"
  35310. static="false" final="false" visibility="public"
  35311. deprecated="not deprecated">
  35312. <method name="getContext" return="org.apache.hadoop.metrics.MetricsContext"
  35313. abstract="false" native="false" synchronized="false"
  35314. static="true" final="false" visibility="public"
  35315. deprecated="not deprecated">
  35316. <param name="contextName" type="java.lang.String"/>
  35317. <doc>
  35318. <![CDATA[Utility method to return the named context.
  35319. If the desired context cannot be created for any reason, the exception
  35320. is logged, and a null context is returned.]]>
  35321. </doc>
  35322. </method>
  35323. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  35324. abstract="false" native="false" synchronized="false"
  35325. static="true" final="false" visibility="public"
  35326. deprecated="not deprecated">
  35327. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  35328. <param name="recordName" type="java.lang.String"/>
  35329. <doc>
  35330. <![CDATA[Utility method to create and return new metrics record instance within the
  35331. given context. This record is tagged with the host name.
  35332. @param context the context
  35333. @param recordName name of the record
  35334. @return newly created metrics record]]>
  35335. </doc>
  35336. </method>
  35337. <doc>
  35338. <![CDATA[Utility class to simplify creation and reporting of hadoop metrics.
  35339. For examples of usage, see {@link org.apache.hadoop.dfs.DataNode}.
  35340. @see org.apache.hadoop.metrics.MetricsRecord
  35341. @see org.apache.hadoop.metrics.MetricsContext
  35342. @see org.apache.hadoop.metrics.ContextFactory]]>
  35343. </doc>
  35344. </class>
  35345. <!-- end class org.apache.hadoop.metrics.MetricsUtil -->
  35346. <!-- start interface org.apache.hadoop.metrics.Updater -->
  35347. <interface name="Updater" abstract="true"
  35348. static="false" final="false" visibility="public"
  35349. deprecated="not deprecated">
  35350. <method name="doUpdates"
  35351. abstract="false" native="false" synchronized="false"
  35352. static="false" final="false" visibility="public"
  35353. deprecated="not deprecated">
  35354. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  35355. <doc>
  35356. <![CDATA[Timer-based call-back from the metric library.]]>
  35357. </doc>
  35358. </method>
  35359. <doc>
  35360. <![CDATA[Call-back interface. See <code>MetricsContext.registerUpdater()</code>.]]>
  35361. </doc>
  35362. </interface>
  35363. <!-- end interface org.apache.hadoop.metrics.Updater -->
  35364. </package>
  35365. <package name="org.apache.hadoop.metrics.file">
  35366. <!-- start class org.apache.hadoop.metrics.file.FileContext -->
  35367. <class name="FileContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  35368. abstract="false"
  35369. static="false" final="false" visibility="public"
  35370. deprecated="not deprecated">
  35371. <constructor name="FileContext"
  35372. static="false" final="false" visibility="public"
  35373. deprecated="not deprecated">
  35374. <doc>
  35375. <![CDATA[Creates a new instance of FileContext]]>
  35376. </doc>
  35377. </constructor>
  35378. <method name="init"
  35379. abstract="false" native="false" synchronized="false"
  35380. static="false" final="false" visibility="public"
  35381. deprecated="not deprecated">
  35382. <param name="contextName" type="java.lang.String"/>
  35383. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  35384. </method>
  35385. <method name="getFileName" return="java.lang.String"
  35386. abstract="false" native="false" synchronized="false"
  35387. static="false" final="false" visibility="public"
  35388. deprecated="not deprecated">
  35389. <doc>
  35390. <![CDATA[Returns the configured file name, or null.]]>
  35391. </doc>
  35392. </method>
  35393. <method name="startMonitoring"
  35394. abstract="false" native="false" synchronized="false"
  35395. static="false" final="false" visibility="public"
  35396. deprecated="not deprecated">
  35397. <exception name="IOException" type="java.io.IOException"/>
  35398. <doc>
  35399. <![CDATA[Starts or restarts monitoring, by opening in append-mode, the
  35400. file specified by the <code>fileName</code> attribute,
  35401. if specified. Otherwise the data will be written to standard
  35402. output.]]>
  35403. </doc>
  35404. </method>
  35405. <method name="stopMonitoring"
  35406. abstract="false" native="false" synchronized="false"
  35407. static="false" final="false" visibility="public"
  35408. deprecated="not deprecated">
  35409. <doc>
  35410. <![CDATA[Stops monitoring, closing the file.
  35411. @see #close()]]>
  35412. </doc>
  35413. </method>
  35414. <method name="emitRecord"
  35415. abstract="false" native="false" synchronized="false"
  35416. static="false" final="false" visibility="public"
  35417. deprecated="not deprecated">
  35418. <param name="contextName" type="java.lang.String"/>
  35419. <param name="recordName" type="java.lang.String"/>
  35420. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  35421. <doc>
  35422. <![CDATA[Emits a metrics record to a file.]]>
  35423. </doc>
  35424. </method>
  35425. <method name="flush"
  35426. abstract="false" native="false" synchronized="false"
  35427. static="false" final="false" visibility="public"
  35428. deprecated="not deprecated">
  35429. <doc>
  35430. <![CDATA[Flushes the output writer, forcing updates to disk.]]>
  35431. </doc>
  35432. </method>
  35433. <field name="FILE_NAME_PROPERTY" type="java.lang.String"
  35434. transient="false" volatile="false"
  35435. static="true" final="true" visibility="protected"
  35436. deprecated="not deprecated">
  35437. </field>
  35438. <field name="PERIOD_PROPERTY" type="java.lang.String"
  35439. transient="false" volatile="false"
  35440. static="true" final="true" visibility="protected"
  35441. deprecated="not deprecated">
  35442. </field>
  35443. <doc>
  35444. <![CDATA[Metrics context for writing metrics to a file.<p/>
  35445. This class is configured by setting ContextFactory attributes which in turn
  35446. are usually configured through a properties file. All the attributes are
  35447. prefixed by the contextName. For example, the properties file might contain:
  35448. <pre>
  35449. myContextName.fileName=/tmp/metrics.log
  35450. myContextName.period=5
  35451. </pre>]]>
  35452. </doc>
  35453. </class>
  35454. <!-- end class org.apache.hadoop.metrics.file.FileContext -->
  35455. </package>
  35456. <package name="org.apache.hadoop.metrics.ganglia">
  35457. <!-- start class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  35458. <class name="GangliaContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  35459. abstract="false"
  35460. static="false" final="false" visibility="public"
  35461. deprecated="not deprecated">
  35462. <constructor name="GangliaContext"
  35463. static="false" final="false" visibility="public"
  35464. deprecated="not deprecated">
  35465. <doc>
  35466. <![CDATA[Creates a new instance of GangliaContext]]>
  35467. </doc>
  35468. </constructor>
  35469. <method name="init"
  35470. abstract="false" native="false" synchronized="false"
  35471. static="false" final="false" visibility="public"
  35472. deprecated="not deprecated">
  35473. <param name="contextName" type="java.lang.String"/>
  35474. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  35475. </method>
  35476. <method name="emitRecord"
  35477. abstract="false" native="false" synchronized="false"
  35478. static="false" final="false" visibility="public"
  35479. deprecated="not deprecated">
  35480. <param name="contextName" type="java.lang.String"/>
  35481. <param name="recordName" type="java.lang.String"/>
  35482. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  35483. <exception name="IOException" type="java.io.IOException"/>
  35484. </method>
  35485. <doc>
  35486. <![CDATA[Context for sending metrics to Ganglia.]]>
  35487. </doc>
  35488. </class>
  35489. <!-- end class org.apache.hadoop.metrics.ganglia.GangliaContext -->
  35490. </package>
  35491. <package name="org.apache.hadoop.metrics.jvm">
  35492. <!-- start class org.apache.hadoop.metrics.jvm.EventCounter -->
  35493. <class name="EventCounter" extends="org.apache.log4j.AppenderSkeleton"
  35494. abstract="false"
  35495. static="false" final="false" visibility="public"
  35496. deprecated="not deprecated">
  35497. <constructor name="EventCounter"
  35498. static="false" final="false" visibility="public"
  35499. deprecated="not deprecated">
  35500. </constructor>
  35501. <method name="getFatal" return="long"
  35502. abstract="false" native="false" synchronized="false"
  35503. static="true" final="false" visibility="public"
  35504. deprecated="not deprecated">
  35505. </method>
  35506. <method name="getError" return="long"
  35507. abstract="false" native="false" synchronized="false"
  35508. static="true" final="false" visibility="public"
  35509. deprecated="not deprecated">
  35510. </method>
  35511. <method name="getWarn" return="long"
  35512. abstract="false" native="false" synchronized="false"
  35513. static="true" final="false" visibility="public"
  35514. deprecated="not deprecated">
  35515. </method>
  35516. <method name="getInfo" return="long"
  35517. abstract="false" native="false" synchronized="false"
  35518. static="true" final="false" visibility="public"
  35519. deprecated="not deprecated">
  35520. </method>
  35521. <method name="append"
  35522. abstract="false" native="false" synchronized="false"
  35523. static="false" final="false" visibility="public"
  35524. deprecated="not deprecated">
  35525. <param name="event" type="org.apache.log4j.spi.LoggingEvent"/>
  35526. </method>
  35527. <method name="close"
  35528. abstract="false" native="false" synchronized="false"
  35529. static="false" final="false" visibility="public"
  35530. deprecated="not deprecated">
  35531. </method>
  35532. <method name="requiresLayout" return="boolean"
  35533. abstract="false" native="false" synchronized="false"
  35534. static="false" final="false" visibility="public"
  35535. deprecated="not deprecated">
  35536. </method>
  35537. <doc>
  35538. <![CDATA[A log4J Appender that simply counts logging events in three levels:
  35539. fatal, error and warn.]]>
  35540. </doc>
  35541. </class>
  35542. <!-- end class org.apache.hadoop.metrics.jvm.EventCounter -->
  35543. <!-- start class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  35544. <class name="JvmMetrics" extends="java.lang.Object"
  35545. abstract="false"
  35546. static="false" final="false" visibility="public"
  35547. deprecated="not deprecated">
  35548. <implements name="org.apache.hadoop.metrics.Updater"/>
  35549. <method name="init" return="org.apache.hadoop.metrics.jvm.JvmMetrics"
  35550. abstract="false" native="false" synchronized="true"
  35551. static="true" final="false" visibility="public"
  35552. deprecated="not deprecated">
  35553. <param name="processName" type="java.lang.String"/>
  35554. <param name="sessionId" type="java.lang.String"/>
  35555. </method>
  35556. <method name="doUpdates"
  35557. abstract="false" native="false" synchronized="false"
  35558. static="false" final="false" visibility="public"
  35559. deprecated="not deprecated">
  35560. <param name="context" type="org.apache.hadoop.metrics.MetricsContext"/>
  35561. <doc>
  35562. <![CDATA[This will be called periodically (with the period being configuration
  35563. dependent).]]>
  35564. </doc>
  35565. </method>
  35566. <doc>
  35567. <![CDATA[Singleton class which eports Java Virtual Machine metrics to the metrics API.
  35568. Any application can create an instance of this class in order to emit
  35569. Java VM metrics.]]>
  35570. </doc>
  35571. </class>
  35572. <!-- end class org.apache.hadoop.metrics.jvm.JvmMetrics -->
  35573. </package>
  35574. <package name="org.apache.hadoop.metrics.spi">
  35575. <!-- start class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  35576. <class name="AbstractMetricsContext" extends="java.lang.Object"
  35577. abstract="true"
  35578. static="false" final="false" visibility="public"
  35579. deprecated="not deprecated">
  35580. <implements name="org.apache.hadoop.metrics.MetricsContext"/>
  35581. <constructor name="AbstractMetricsContext"
  35582. static="false" final="false" visibility="protected"
  35583. deprecated="not deprecated">
  35584. <doc>
  35585. <![CDATA[Creates a new instance of AbstractMetricsContext]]>
  35586. </doc>
  35587. </constructor>
  35588. <method name="init"
  35589. abstract="false" native="false" synchronized="false"
  35590. static="false" final="false" visibility="public"
  35591. deprecated="not deprecated">
  35592. <param name="contextName" type="java.lang.String"/>
  35593. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  35594. <doc>
  35595. <![CDATA[Initializes the context.]]>
  35596. </doc>
  35597. </method>
  35598. <method name="getAttribute" return="java.lang.String"
  35599. abstract="false" native="false" synchronized="false"
  35600. static="false" final="false" visibility="protected"
  35601. deprecated="not deprecated">
  35602. <param name="attributeName" type="java.lang.String"/>
  35603. <doc>
  35604. <![CDATA[Convenience method for subclasses to access factory attributes.]]>
  35605. </doc>
  35606. </method>
  35607. <method name="getAttributeTable" return="java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  35608. abstract="false" native="false" synchronized="false"
  35609. static="false" final="false" visibility="protected"
  35610. deprecated="not deprecated">
  35611. <param name="tableName" type="java.lang.String"/>
  35612. <doc>
  35613. <![CDATA[Returns an attribute-value map derived from the factory attributes
  35614. by finding all factory attributes that begin with
  35615. <i>contextName</i>.<i>tableName</i>. The returned map consists of
  35616. those attributes with the contextName and tableName stripped off.]]>
  35617. </doc>
  35618. </method>
  35619. <method name="getContextName" return="java.lang.String"
  35620. abstract="false" native="false" synchronized="false"
  35621. static="false" final="false" visibility="public"
  35622. deprecated="not deprecated">
  35623. <doc>
  35624. <![CDATA[Returns the context name.]]>
  35625. </doc>
  35626. </method>
  35627. <method name="getContextFactory" return="org.apache.hadoop.metrics.ContextFactory"
  35628. abstract="false" native="false" synchronized="false"
  35629. static="false" final="false" visibility="public"
  35630. deprecated="not deprecated">
  35631. <doc>
  35632. <![CDATA[Returns the factory by which this context was created.]]>
  35633. </doc>
  35634. </method>
  35635. <method name="startMonitoring"
  35636. abstract="false" native="false" synchronized="true"
  35637. static="false" final="false" visibility="public"
  35638. deprecated="not deprecated">
  35639. <exception name="IOException" type="java.io.IOException"/>
  35640. <doc>
  35641. <![CDATA[Starts or restarts monitoring, the emitting of metrics records.]]>
  35642. </doc>
  35643. </method>
  35644. <method name="stopMonitoring"
  35645. abstract="false" native="false" synchronized="true"
  35646. static="false" final="false" visibility="public"
  35647. deprecated="not deprecated">
  35648. <doc>
  35649. <![CDATA[Stops monitoring. This does not free buffered data.
  35650. @see #close()]]>
  35651. </doc>
  35652. </method>
  35653. <method name="isMonitoring" return="boolean"
  35654. abstract="false" native="false" synchronized="false"
  35655. static="false" final="false" visibility="public"
  35656. deprecated="not deprecated">
  35657. <doc>
  35658. <![CDATA[Returns true if monitoring is currently in progress.]]>
  35659. </doc>
  35660. </method>
  35661. <method name="close"
  35662. abstract="false" native="false" synchronized="true"
  35663. static="false" final="false" visibility="public"
  35664. deprecated="not deprecated">
  35665. <doc>
  35666. <![CDATA[Stops monitoring and frees buffered data, returning this
  35667. object to its initial state.]]>
  35668. </doc>
  35669. </method>
  35670. <method name="createRecord" return="org.apache.hadoop.metrics.MetricsRecord"
  35671. abstract="false" native="false" synchronized="true"
  35672. static="false" final="true" visibility="public"
  35673. deprecated="not deprecated">
  35674. <param name="recordName" type="java.lang.String"/>
  35675. <doc>
  35676. <![CDATA[Creates a new AbstractMetricsRecord instance with the given <code>recordName</code>.
  35677. Throws an exception if the metrics implementation is configured with a fixed
  35678. set of record names and <code>recordName</code> is not in that set.
  35679. @param recordName the name of the record
  35680. @throws MetricsException if recordName conflicts with configuration data]]>
  35681. </doc>
  35682. </method>
  35683. <method name="newRecord" return="org.apache.hadoop.metrics.spi.MetricsRecordImpl"
  35684. abstract="false" native="false" synchronized="false"
  35685. static="false" final="false" visibility="protected"
  35686. deprecated="not deprecated">
  35687. <param name="recordName" type="java.lang.String"/>
  35688. <doc>
  35689. <![CDATA[Subclasses should override this if they subclass MetricsRecordImpl.
  35690. @param recordName the name of the record
  35691. @return newly created instance of MetricsRecordImpl or subclass]]>
  35692. </doc>
  35693. </method>
  35694. <method name="registerUpdater"
  35695. abstract="false" native="false" synchronized="true"
  35696. static="false" final="false" visibility="public"
  35697. deprecated="not deprecated">
  35698. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  35699. <doc>
  35700. <![CDATA[Registers a callback to be called at time intervals determined by
  35701. the configuration.
  35702. @param updater object to be run periodically; it should update
  35703. some metrics records]]>
  35704. </doc>
  35705. </method>
  35706. <method name="unregisterUpdater"
  35707. abstract="false" native="false" synchronized="true"
  35708. static="false" final="false" visibility="public"
  35709. deprecated="not deprecated">
  35710. <param name="updater" type="org.apache.hadoop.metrics.Updater"/>
  35711. <doc>
  35712. <![CDATA[Removes a callback, if it exists.
  35713. @param updater object to be removed from the callback list]]>
  35714. </doc>
  35715. </method>
  35716. <method name="emitRecord"
  35717. abstract="true" native="false" synchronized="false"
  35718. static="false" final="false" visibility="protected"
  35719. deprecated="not deprecated">
  35720. <param name="contextName" type="java.lang.String"/>
  35721. <param name="recordName" type="java.lang.String"/>
  35722. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  35723. <exception name="IOException" type="java.io.IOException"/>
  35724. <doc>
  35725. <![CDATA[Sends a record to the metrics system.]]>
  35726. </doc>
  35727. </method>
  35728. <method name="flush"
  35729. abstract="false" native="false" synchronized="false"
  35730. static="false" final="false" visibility="protected"
  35731. deprecated="not deprecated">
  35732. <exception name="IOException" type="java.io.IOException"/>
  35733. <doc>
  35734. <![CDATA[Called each period after all records have been emitted, this method does nothing.
  35735. Subclasses may override it in order to perform some kind of flush.]]>
  35736. </doc>
  35737. </method>
  35738. <method name="update"
  35739. abstract="false" native="false" synchronized="false"
  35740. static="false" final="false" visibility="protected"
  35741. deprecated="not deprecated">
  35742. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  35743. <doc>
  35744. <![CDATA[Called by MetricsRecordImpl.update(). Creates or updates a row in
  35745. the internal table of metric data.]]>
  35746. </doc>
  35747. </method>
  35748. <method name="remove"
  35749. abstract="false" native="false" synchronized="false"
  35750. static="false" final="false" visibility="protected"
  35751. deprecated="not deprecated">
  35752. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  35753. <doc>
  35754. <![CDATA[Called by MetricsRecordImpl.remove(). Removes all matching rows in
  35755. the internal table of metric data. A row matches if it has the same
  35756. tag names and values as record, but it may also have additional
  35757. tags.]]>
  35758. </doc>
  35759. </method>
  35760. <method name="getPeriod" return="int"
  35761. abstract="false" native="false" synchronized="false"
  35762. static="false" final="false" visibility="public"
  35763. deprecated="not deprecated">
  35764. <doc>
  35765. <![CDATA[Returns the timer period.]]>
  35766. </doc>
  35767. </method>
  35768. <method name="setPeriod"
  35769. abstract="false" native="false" synchronized="false"
  35770. static="false" final="false" visibility="protected"
  35771. deprecated="not deprecated">
  35772. <param name="period" type="int"/>
  35773. <doc>
  35774. <![CDATA[Sets the timer period]]>
  35775. </doc>
  35776. </method>
  35777. <doc>
  35778. <![CDATA[The main class of the Service Provider Interface. This class should be
  35779. extended in order to integrate the Metrics API with a specific metrics
  35780. client library. <p/>
  35781. This class implements the internal table of metric data, and the timer
  35782. on which data is to be sent to the metrics system. Subclasses must
  35783. override the abstract <code>emitRecord</code> method in order to transmit
  35784. the data. <p/>]]>
  35785. </doc>
  35786. </class>
  35787. <!-- end class org.apache.hadoop.metrics.spi.AbstractMetricsContext -->
  35788. <!-- start class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  35789. <class name="MetricsRecordImpl" extends="java.lang.Object"
  35790. abstract="false"
  35791. static="false" final="false" visibility="public"
  35792. deprecated="not deprecated">
  35793. <implements name="org.apache.hadoop.metrics.MetricsRecord"/>
  35794. <constructor name="MetricsRecordImpl" type="java.lang.String, org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  35795. static="false" final="false" visibility="protected"
  35796. deprecated="not deprecated">
  35797. <doc>
  35798. <![CDATA[Creates a new instance of FileRecord]]>
  35799. </doc>
  35800. </constructor>
  35801. <method name="getRecordName" return="java.lang.String"
  35802. abstract="false" native="false" synchronized="false"
  35803. static="false" final="false" visibility="public"
  35804. deprecated="not deprecated">
  35805. <doc>
  35806. <![CDATA[Returns the record name.
  35807. @return the record name]]>
  35808. </doc>
  35809. </method>
  35810. <method name="setTag"
  35811. abstract="false" native="false" synchronized="false"
  35812. static="false" final="false" visibility="public"
  35813. deprecated="not deprecated">
  35814. <param name="tagName" type="java.lang.String"/>
  35815. <param name="tagValue" type="java.lang.String"/>
  35816. <doc>
  35817. <![CDATA[Sets the named tag to the specified value.
  35818. @param tagName name of the tag
  35819. @param tagValue new value of the tag
  35820. @throws MetricsException if the tagName conflicts with the configuration]]>
  35821. </doc>
  35822. </method>
  35823. <method name="setTag"
  35824. abstract="false" native="false" synchronized="false"
  35825. static="false" final="false" visibility="public"
  35826. deprecated="not deprecated">
  35827. <param name="tagName" type="java.lang.String"/>
  35828. <param name="tagValue" type="int"/>
  35829. <doc>
  35830. <![CDATA[Sets the named tag to the specified value.
  35831. @param tagName name of the tag
  35832. @param tagValue new value of the tag
  35833. @throws MetricsException if the tagName conflicts with the configuration]]>
  35834. </doc>
  35835. </method>
  35836. <method name="setTag"
  35837. abstract="false" native="false" synchronized="false"
  35838. static="false" final="false" visibility="public"
  35839. deprecated="not deprecated">
  35840. <param name="tagName" type="java.lang.String"/>
  35841. <param name="tagValue" type="long"/>
  35842. <doc>
  35843. <![CDATA[Sets the named tag to the specified value.
  35844. @param tagName name of the tag
  35845. @param tagValue new value of the tag
  35846. @throws MetricsException if the tagName conflicts with the configuration]]>
  35847. </doc>
  35848. </method>
  35849. <method name="setTag"
  35850. abstract="false" native="false" synchronized="false"
  35851. static="false" final="false" visibility="public"
  35852. deprecated="not deprecated">
  35853. <param name="tagName" type="java.lang.String"/>
  35854. <param name="tagValue" type="short"/>
  35855. <doc>
  35856. <![CDATA[Sets the named tag to the specified value.
  35857. @param tagName name of the tag
  35858. @param tagValue new value of the tag
  35859. @throws MetricsException if the tagName conflicts with the configuration]]>
  35860. </doc>
  35861. </method>
  35862. <method name="setTag"
  35863. abstract="false" native="false" synchronized="false"
  35864. static="false" final="false" visibility="public"
  35865. deprecated="not deprecated">
  35866. <param name="tagName" type="java.lang.String"/>
  35867. <param name="tagValue" type="byte"/>
  35868. <doc>
  35869. <![CDATA[Sets the named tag to the specified value.
  35870. @param tagName name of the tag
  35871. @param tagValue new value of the tag
  35872. @throws MetricsException if the tagName conflicts with the configuration]]>
  35873. </doc>
  35874. </method>
  35875. <method name="removeTag"
  35876. abstract="false" native="false" synchronized="false"
  35877. static="false" final="false" visibility="public"
  35878. deprecated="not deprecated">
  35879. <param name="tagName" type="java.lang.String"/>
  35880. <doc>
  35881. <![CDATA[Removes any tag of the specified name.]]>
  35882. </doc>
  35883. </method>
  35884. <method name="setMetric"
  35885. abstract="false" native="false" synchronized="false"
  35886. static="false" final="false" visibility="public"
  35887. deprecated="not deprecated">
  35888. <param name="metricName" type="java.lang.String"/>
  35889. <param name="metricValue" type="int"/>
  35890. <doc>
  35891. <![CDATA[Sets the named metric to the specified value.
  35892. @param metricName name of the metric
  35893. @param metricValue new value of the metric
  35894. @throws MetricsException if the metricName or the type of the metricValue
  35895. conflicts with the configuration]]>
  35896. </doc>
  35897. </method>
  35898. <method name="setMetric"
  35899. abstract="false" native="false" synchronized="false"
  35900. static="false" final="false" visibility="public"
  35901. deprecated="not deprecated">
  35902. <param name="metricName" type="java.lang.String"/>
  35903. <param name="metricValue" type="long"/>
  35904. <doc>
  35905. <![CDATA[Sets the named metric to the specified value.
  35906. @param metricName name of the metric
  35907. @param metricValue new value of the metric
  35908. @throws MetricsException if the metricName or the type of the metricValue
  35909. conflicts with the configuration]]>
  35910. </doc>
  35911. </method>
  35912. <method name="setMetric"
  35913. abstract="false" native="false" synchronized="false"
  35914. static="false" final="false" visibility="public"
  35915. deprecated="not deprecated">
  35916. <param name="metricName" type="java.lang.String"/>
  35917. <param name="metricValue" type="short"/>
  35918. <doc>
  35919. <![CDATA[Sets the named metric to the specified value.
  35920. @param metricName name of the metric
  35921. @param metricValue new value of the metric
  35922. @throws MetricsException if the metricName or the type of the metricValue
  35923. conflicts with the configuration]]>
  35924. </doc>
  35925. </method>
  35926. <method name="setMetric"
  35927. abstract="false" native="false" synchronized="false"
  35928. static="false" final="false" visibility="public"
  35929. deprecated="not deprecated">
  35930. <param name="metricName" type="java.lang.String"/>
  35931. <param name="metricValue" type="byte"/>
  35932. <doc>
  35933. <![CDATA[Sets the named metric to the specified value.
  35934. @param metricName name of the metric
  35935. @param metricValue new value of the metric
  35936. @throws MetricsException if the metricName or the type of the metricValue
  35937. conflicts with the configuration]]>
  35938. </doc>
  35939. </method>
  35940. <method name="setMetric"
  35941. abstract="false" native="false" synchronized="false"
  35942. static="false" final="false" visibility="public"
  35943. deprecated="not deprecated">
  35944. <param name="metricName" type="java.lang.String"/>
  35945. <param name="metricValue" type="float"/>
  35946. <doc>
  35947. <![CDATA[Sets the named metric to the specified value.
  35948. @param metricName name of the metric
  35949. @param metricValue new value of the metric
  35950. @throws MetricsException if the metricName or the type of the metricValue
  35951. conflicts with the configuration]]>
  35952. </doc>
  35953. </method>
  35954. <method name="incrMetric"
  35955. abstract="false" native="false" synchronized="false"
  35956. static="false" final="false" visibility="public"
  35957. deprecated="not deprecated">
  35958. <param name="metricName" type="java.lang.String"/>
  35959. <param name="metricValue" type="int"/>
  35960. <doc>
  35961. <![CDATA[Increments the named metric by the specified value.
  35962. @param metricName name of the metric
  35963. @param metricValue incremental value
  35964. @throws MetricsException if the metricName or the type of the metricValue
  35965. conflicts with the configuration]]>
  35966. </doc>
  35967. </method>
  35968. <method name="incrMetric"
  35969. abstract="false" native="false" synchronized="false"
  35970. static="false" final="false" visibility="public"
  35971. deprecated="not deprecated">
  35972. <param name="metricName" type="java.lang.String"/>
  35973. <param name="metricValue" type="long"/>
  35974. <doc>
  35975. <![CDATA[Increments the named metric by the specified value.
  35976. @param metricName name of the metric
  35977. @param metricValue incremental value
  35978. @throws MetricsException if the metricName or the type of the metricValue
  35979. conflicts with the configuration]]>
  35980. </doc>
  35981. </method>
  35982. <method name="incrMetric"
  35983. abstract="false" native="false" synchronized="false"
  35984. static="false" final="false" visibility="public"
  35985. deprecated="not deprecated">
  35986. <param name="metricName" type="java.lang.String"/>
  35987. <param name="metricValue" type="short"/>
  35988. <doc>
  35989. <![CDATA[Increments the named metric by the specified value.
  35990. @param metricName name of the metric
  35991. @param metricValue incremental value
  35992. @throws MetricsException if the metricName or the type of the metricValue
  35993. conflicts with the configuration]]>
  35994. </doc>
  35995. </method>
  35996. <method name="incrMetric"
  35997. abstract="false" native="false" synchronized="false"
  35998. static="false" final="false" visibility="public"
  35999. deprecated="not deprecated">
  36000. <param name="metricName" type="java.lang.String"/>
  36001. <param name="metricValue" type="byte"/>
  36002. <doc>
  36003. <![CDATA[Increments the named metric by the specified value.
  36004. @param metricName name of the metric
  36005. @param metricValue incremental value
  36006. @throws MetricsException if the metricName or the type of the metricValue
  36007. conflicts with the configuration]]>
  36008. </doc>
  36009. </method>
  36010. <method name="incrMetric"
  36011. abstract="false" native="false" synchronized="false"
  36012. static="false" final="false" visibility="public"
  36013. deprecated="not deprecated">
  36014. <param name="metricName" type="java.lang.String"/>
  36015. <param name="metricValue" type="float"/>
  36016. <doc>
  36017. <![CDATA[Increments the named metric by the specified value.
  36018. @param metricName name of the metric
  36019. @param metricValue incremental value
  36020. @throws MetricsException if the metricName or the type of the metricValue
  36021. conflicts with the configuration]]>
  36022. </doc>
  36023. </method>
  36024. <method name="update"
  36025. abstract="false" native="false" synchronized="false"
  36026. static="false" final="false" visibility="public"
  36027. deprecated="not deprecated">
  36028. <doc>
  36029. <![CDATA[Updates the table of buffered data which is to be sent periodically.
  36030. If the tag values match an existing row, that row is updated;
  36031. otherwise, a new row is added.]]>
  36032. </doc>
  36033. </method>
  36034. <method name="remove"
  36035. abstract="false" native="false" synchronized="false"
  36036. static="false" final="false" visibility="public"
  36037. deprecated="not deprecated">
  36038. <doc>
  36039. <![CDATA[Removes the row, if it exists, in the buffered data table having tags
  36040. that equal the tags that have been set on this record.]]>
  36041. </doc>
  36042. </method>
  36043. <doc>
  36044. <![CDATA[An implementation of MetricsRecord. Keeps a back-pointer to the context
  36045. from which it was created, and delegates back to it on <code>update</code>
  36046. and <code>remove()</code>.]]>
  36047. </doc>
  36048. </class>
  36049. <!-- end class org.apache.hadoop.metrics.spi.MetricsRecordImpl -->
  36050. <!-- start class org.apache.hadoop.metrics.spi.MetricValue -->
  36051. <class name="MetricValue" extends="java.lang.Object"
  36052. abstract="false"
  36053. static="false" final="false" visibility="public"
  36054. deprecated="not deprecated">
  36055. <constructor name="MetricValue" type="java.lang.Number, boolean"
  36056. static="false" final="false" visibility="public"
  36057. deprecated="not deprecated">
  36058. <doc>
  36059. <![CDATA[Creates a new instance of MetricValue]]>
  36060. </doc>
  36061. </constructor>
  36062. <method name="isIncrement" return="boolean"
  36063. abstract="false" native="false" synchronized="false"
  36064. static="false" final="false" visibility="public"
  36065. deprecated="not deprecated">
  36066. </method>
  36067. <method name="isAbsolute" return="boolean"
  36068. abstract="false" native="false" synchronized="false"
  36069. static="false" final="false" visibility="public"
  36070. deprecated="not deprecated">
  36071. </method>
  36072. <method name="getNumber" return="java.lang.Number"
  36073. abstract="false" native="false" synchronized="false"
  36074. static="false" final="false" visibility="public"
  36075. deprecated="not deprecated">
  36076. </method>
  36077. <field name="ABSOLUTE" type="boolean"
  36078. transient="false" volatile="false"
  36079. static="true" final="true" visibility="public"
  36080. deprecated="not deprecated">
  36081. </field>
  36082. <field name="INCREMENT" type="boolean"
  36083. transient="false" volatile="false"
  36084. static="true" final="true" visibility="public"
  36085. deprecated="not deprecated">
  36086. </field>
  36087. <doc>
  36088. <![CDATA[A Number that is either an absolute or an incremental amount.]]>
  36089. </doc>
  36090. </class>
  36091. <!-- end class org.apache.hadoop.metrics.spi.MetricValue -->
  36092. <!-- start class org.apache.hadoop.metrics.spi.NullContext -->
  36093. <class name="NullContext" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  36094. abstract="false"
  36095. static="false" final="false" visibility="public"
  36096. deprecated="not deprecated">
  36097. <constructor name="NullContext"
  36098. static="false" final="false" visibility="public"
  36099. deprecated="not deprecated">
  36100. <doc>
  36101. <![CDATA[Creates a new instance of NullContext]]>
  36102. </doc>
  36103. </constructor>
  36104. <method name="startMonitoring"
  36105. abstract="false" native="false" synchronized="false"
  36106. static="false" final="false" visibility="public"
  36107. deprecated="not deprecated">
  36108. <doc>
  36109. <![CDATA[Do-nothing version of startMonitoring]]>
  36110. </doc>
  36111. </method>
  36112. <method name="emitRecord"
  36113. abstract="false" native="false" synchronized="false"
  36114. static="false" final="false" visibility="protected"
  36115. deprecated="not deprecated">
  36116. <param name="contextName" type="java.lang.String"/>
  36117. <param name="recordName" type="java.lang.String"/>
  36118. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  36119. <doc>
  36120. <![CDATA[Do-nothing version of emitRecord]]>
  36121. </doc>
  36122. </method>
  36123. <method name="update"
  36124. abstract="false" native="false" synchronized="false"
  36125. static="false" final="false" visibility="protected"
  36126. deprecated="not deprecated">
  36127. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  36128. <doc>
  36129. <![CDATA[Do-nothing version of update]]>
  36130. </doc>
  36131. </method>
  36132. <method name="remove"
  36133. abstract="false" native="false" synchronized="false"
  36134. static="false" final="false" visibility="protected"
  36135. deprecated="not deprecated">
  36136. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  36137. <doc>
  36138. <![CDATA[Do-nothing version of remove]]>
  36139. </doc>
  36140. </method>
  36141. <doc>
  36142. <![CDATA[Null metrics context: a metrics context which does nothing. Used as the
  36143. default context, so that no performance data is emitted if no configuration
  36144. data is found.]]>
  36145. </doc>
  36146. </class>
  36147. <!-- end class org.apache.hadoop.metrics.spi.NullContext -->
  36148. <!-- start class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  36149. <class name="NullContextWithUpdateThread" extends="org.apache.hadoop.metrics.spi.AbstractMetricsContext"
  36150. abstract="false"
  36151. static="false" final="false" visibility="public"
  36152. deprecated="not deprecated">
  36153. <constructor name="NullContextWithUpdateThread"
  36154. static="false" final="false" visibility="public"
  36155. deprecated="not deprecated">
  36156. <doc>
  36157. <![CDATA[Creates a new instance of NullContextWithUpdateThread]]>
  36158. </doc>
  36159. </constructor>
  36160. <method name="init"
  36161. abstract="false" native="false" synchronized="false"
  36162. static="false" final="false" visibility="public"
  36163. deprecated="not deprecated">
  36164. <param name="contextName" type="java.lang.String"/>
  36165. <param name="factory" type="org.apache.hadoop.metrics.ContextFactory"/>
  36166. </method>
  36167. <method name="emitRecord"
  36168. abstract="false" native="false" synchronized="false"
  36169. static="false" final="false" visibility="protected"
  36170. deprecated="not deprecated">
  36171. <param name="contextName" type="java.lang.String"/>
  36172. <param name="recordName" type="java.lang.String"/>
  36173. <param name="outRec" type="org.apache.hadoop.metrics.spi.OutputRecord"/>
  36174. <doc>
  36175. <![CDATA[Do-nothing version of emitRecord]]>
  36176. </doc>
  36177. </method>
  36178. <method name="update"
  36179. abstract="false" native="false" synchronized="false"
  36180. static="false" final="false" visibility="protected"
  36181. deprecated="not deprecated">
  36182. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  36183. <doc>
  36184. <![CDATA[Do-nothing version of update]]>
  36185. </doc>
  36186. </method>
  36187. <method name="remove"
  36188. abstract="false" native="false" synchronized="false"
  36189. static="false" final="false" visibility="protected"
  36190. deprecated="not deprecated">
  36191. <param name="record" type="org.apache.hadoop.metrics.spi.MetricsRecordImpl"/>
  36192. <doc>
  36193. <![CDATA[Do-nothing version of remove]]>
  36194. </doc>
  36195. </method>
  36196. <doc>
  36197. <![CDATA[A null context which has a thread calling
  36198. periodically when monitoring is started. This keeps the data sampled
  36199. correctly.
  36200. In all other respects, this is like the NULL context: No data is emitted.
  36201. This is suitable for Monitoring systems like JMX which reads the metrics
  36202. when someone reads the data from JMX.
  36203. The default impl of start and stop monitoring:
  36204. is the AbstractMetricsContext is good enough.]]>
  36205. </doc>
  36206. </class>
  36207. <!-- end class org.apache.hadoop.metrics.spi.NullContextWithUpdateThread -->
  36208. <!-- start class org.apache.hadoop.metrics.spi.OutputRecord -->
  36209. <class name="OutputRecord" extends="java.lang.Object"
  36210. abstract="false"
  36211. static="false" final="false" visibility="public"
  36212. deprecated="not deprecated">
  36213. <method name="getTagNames" return="java.util.Set&lt;java.lang.String&gt;"
  36214. abstract="false" native="false" synchronized="false"
  36215. static="false" final="false" visibility="public"
  36216. deprecated="not deprecated">
  36217. <doc>
  36218. <![CDATA[Returns the set of tag names]]>
  36219. </doc>
  36220. </method>
  36221. <method name="getTag" return="java.lang.Object"
  36222. abstract="false" native="false" synchronized="false"
  36223. static="false" final="false" visibility="public"
  36224. deprecated="not deprecated">
  36225. <param name="name" type="java.lang.String"/>
  36226. <doc>
  36227. <![CDATA[Returns a tag object which is can be a String, Integer, Short or Byte.
  36228. @return the tag value, or null if there is no such tag]]>
  36229. </doc>
  36230. </method>
  36231. <method name="getMetricNames" return="java.util.Set&lt;java.lang.String&gt;"
  36232. abstract="false" native="false" synchronized="false"
  36233. static="false" final="false" visibility="public"
  36234. deprecated="not deprecated">
  36235. <doc>
  36236. <![CDATA[Returns the set of metric names.]]>
  36237. </doc>
  36238. </method>
  36239. <method name="getMetric" return="java.lang.Number"
  36240. abstract="false" native="false" synchronized="false"
  36241. static="false" final="false" visibility="public"
  36242. deprecated="not deprecated">
  36243. <param name="name" type="java.lang.String"/>
  36244. <doc>
  36245. <![CDATA[Returns the metric object which can be a Float, Integer, Short or Byte.]]>
  36246. </doc>
  36247. </method>
  36248. <doc>
  36249. <![CDATA[Represents a record of metric data to be sent to a metrics system.]]>
  36250. </doc>
  36251. </class>
  36252. <!-- end class org.apache.hadoop.metrics.spi.OutputRecord -->
  36253. <!-- start class org.apache.hadoop.metrics.spi.Util -->
  36254. <class name="Util" extends="java.lang.Object"
  36255. abstract="false"
  36256. static="false" final="false" visibility="public"
  36257. deprecated="not deprecated">
  36258. <method name="parse" return="java.util.List&lt;java.net.InetSocketAddress&gt;"
  36259. abstract="false" native="false" synchronized="false"
  36260. static="true" final="false" visibility="public"
  36261. deprecated="not deprecated">
  36262. <param name="specs" type="java.lang.String"/>
  36263. <param name="defaultPort" type="int"/>
  36264. <doc>
  36265. <![CDATA[Parses a space and/or comma separated sequence of server specifications
  36266. of the form <i>hostname</i> or <i>hostname:port</i>. If
  36267. the specs string is null, defaults to localhost:defaultPort.
  36268. @return a list of InetSocketAddress objects.]]>
  36269. </doc>
  36270. </method>
  36271. <doc>
  36272. <![CDATA[Static utility methods]]>
  36273. </doc>
  36274. </class>
  36275. <!-- end class org.apache.hadoop.metrics.spi.Util -->
  36276. </package>
  36277. <package name="org.apache.hadoop.metrics.util">
  36278. <!-- start class org.apache.hadoop.metrics.util.MBeanUtil -->
  36279. <class name="MBeanUtil" extends="java.lang.Object"
  36280. abstract="false"
  36281. static="false" final="false" visibility="public"
  36282. deprecated="not deprecated">
  36283. <constructor name="MBeanUtil"
  36284. static="false" final="false" visibility="public"
  36285. deprecated="not deprecated">
  36286. </constructor>
  36287. <method name="registerMBean" return="javax.management.ObjectName"
  36288. abstract="false" native="false" synchronized="false"
  36289. static="true" final="false" visibility="public"
  36290. deprecated="not deprecated">
  36291. <param name="serviceName" type="java.lang.String"/>
  36292. <param name="nameName" type="java.lang.String"/>
  36293. <param name="theMbean" type="java.lang.Object"/>
  36294. <doc>
  36295. <![CDATA[Register the mbean using out standard MBeanName format
  36296. "hadoop.dfs:service=<serviceName>,name=<nameName>"
  36297. Where the <serviceName> and <nameName> are the supplied parameters
  36298. @param serviceName
  36299. @param nameName
  36300. @param theMbean - the MBean to register
  36301. @return the named used to register the MBean]]>
  36302. </doc>
  36303. </method>
  36304. <method name="unregisterMBean"
  36305. abstract="false" native="false" synchronized="false"
  36306. static="true" final="false" visibility="public"
  36307. deprecated="not deprecated">
  36308. <param name="mbeanName" type="javax.management.ObjectName"/>
  36309. </method>
  36310. <doc>
  36311. <![CDATA[This util class provides a method to register an MBean using
  36312. our standard naming convention as described in the doc
  36313. for {link {@link #registerMBean(String, String, Object)}]]>
  36314. </doc>
  36315. </class>
  36316. <!-- end class org.apache.hadoop.metrics.util.MBeanUtil -->
  36317. <!-- start class org.apache.hadoop.metrics.util.MetricsIntValue -->
  36318. <class name="MetricsIntValue" extends="java.lang.Object"
  36319. abstract="false"
  36320. static="false" final="false" visibility="public"
  36321. deprecated="not deprecated">
  36322. <constructor name="MetricsIntValue" type="java.lang.String"
  36323. static="false" final="false" visibility="public"
  36324. deprecated="not deprecated">
  36325. <doc>
  36326. <![CDATA[Constructor - create a new metric
  36327. @param nam the name of the metrics to be used to publish the metric]]>
  36328. </doc>
  36329. </constructor>
  36330. <method name="set"
  36331. abstract="false" native="false" synchronized="true"
  36332. static="false" final="false" visibility="public"
  36333. deprecated="not deprecated">
  36334. <param name="newValue" type="int"/>
  36335. <doc>
  36336. <![CDATA[Set the value
  36337. @param newValue]]>
  36338. </doc>
  36339. </method>
  36340. <method name="get" return="int"
  36341. abstract="false" native="false" synchronized="true"
  36342. static="false" final="false" visibility="public"
  36343. deprecated="not deprecated">
  36344. <doc>
  36345. <![CDATA[Get value
  36346. @return the value last set]]>
  36347. </doc>
  36348. </method>
  36349. <method name="inc"
  36350. abstract="false" native="false" synchronized="true"
  36351. static="false" final="false" visibility="public"
  36352. deprecated="not deprecated">
  36353. <param name="incr" type="int"/>
  36354. <doc>
  36355. <![CDATA[Inc metrics for incr vlaue
  36356. @param incr - value to be added]]>
  36357. </doc>
  36358. </method>
  36359. <method name="inc"
  36360. abstract="false" native="false" synchronized="true"
  36361. static="false" final="false" visibility="public"
  36362. deprecated="not deprecated">
  36363. <doc>
  36364. <![CDATA[Inc metrics by one]]>
  36365. </doc>
  36366. </method>
  36367. <method name="dec"
  36368. abstract="false" native="false" synchronized="true"
  36369. static="false" final="false" visibility="public"
  36370. deprecated="not deprecated">
  36371. <param name="decr" type="int"/>
  36372. <doc>
  36373. <![CDATA[Inc metrics for incr vlaue
  36374. @param decr - value to subtract]]>
  36375. </doc>
  36376. </method>
  36377. <method name="dec"
  36378. abstract="false" native="false" synchronized="true"
  36379. static="false" final="false" visibility="public"
  36380. deprecated="not deprecated">
  36381. <doc>
  36382. <![CDATA[Dec metrics by one]]>
  36383. </doc>
  36384. </method>
  36385. <method name="pushMetric"
  36386. abstract="false" native="false" synchronized="true"
  36387. static="false" final="false" visibility="public"
  36388. deprecated="not deprecated">
  36389. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  36390. <doc>
  36391. <![CDATA[Push the metric to the mr.
  36392. The metric is pushed only if it was updated since last push
  36393. Note this does NOT push to JMX
  36394. (JMX gets the info via {@link #get()}
  36395. @param mr]]>
  36396. </doc>
  36397. </method>
  36398. <doc>
  36399. <![CDATA[The MetricsIntValue class is for a metric that is not time varied
  36400. but changes only when it is set.
  36401. Each time its value is set, it is published only *once* at the next update
  36402. call.]]>
  36403. </doc>
  36404. </class>
  36405. <!-- end class org.apache.hadoop.metrics.util.MetricsIntValue -->
  36406. <!-- start class org.apache.hadoop.metrics.util.MetricsLongValue -->
  36407. <class name="MetricsLongValue" extends="java.lang.Object"
  36408. abstract="false"
  36409. static="false" final="false" visibility="public"
  36410. deprecated="not deprecated">
  36411. <constructor name="MetricsLongValue" type="java.lang.String"
  36412. static="false" final="false" visibility="public"
  36413. deprecated="not deprecated">
  36414. <doc>
  36415. <![CDATA[Constructor - create a new metric
  36416. @param nam the name of the metrics to be used to publish the metric]]>
  36417. </doc>
  36418. </constructor>
  36419. <method name="set"
  36420. abstract="false" native="false" synchronized="true"
  36421. static="false" final="false" visibility="public"
  36422. deprecated="not deprecated">
  36423. <param name="newValue" type="long"/>
  36424. <doc>
  36425. <![CDATA[Set the value
  36426. @param newValue]]>
  36427. </doc>
  36428. </method>
  36429. <method name="get" return="long"
  36430. abstract="false" native="false" synchronized="true"
  36431. static="false" final="false" visibility="public"
  36432. deprecated="not deprecated">
  36433. <doc>
  36434. <![CDATA[Get value
  36435. @return the value last set]]>
  36436. </doc>
  36437. </method>
  36438. <method name="inc"
  36439. abstract="false" native="false" synchronized="true"
  36440. static="false" final="false" visibility="public"
  36441. deprecated="not deprecated">
  36442. <param name="incr" type="long"/>
  36443. <doc>
  36444. <![CDATA[Inc metrics for incr vlaue
  36445. @param incr - value to be added]]>
  36446. </doc>
  36447. </method>
  36448. <method name="inc"
  36449. abstract="false" native="false" synchronized="true"
  36450. static="false" final="false" visibility="public"
  36451. deprecated="not deprecated">
  36452. <doc>
  36453. <![CDATA[Inc metrics by one]]>
  36454. </doc>
  36455. </method>
  36456. <method name="dec"
  36457. abstract="false" native="false" synchronized="true"
  36458. static="false" final="false" visibility="public"
  36459. deprecated="not deprecated">
  36460. <param name="decr" type="long"/>
  36461. <doc>
  36462. <![CDATA[Inc metrics for incr vlaue
  36463. @param decr - value to subtract]]>
  36464. </doc>
  36465. </method>
  36466. <method name="dec"
  36467. abstract="false" native="false" synchronized="true"
  36468. static="false" final="false" visibility="public"
  36469. deprecated="not deprecated">
  36470. <doc>
  36471. <![CDATA[Dec metrics by one]]>
  36472. </doc>
  36473. </method>
  36474. <method name="pushMetric"
  36475. abstract="false" native="false" synchronized="true"
  36476. static="false" final="false" visibility="public"
  36477. deprecated="not deprecated">
  36478. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  36479. <doc>
  36480. <![CDATA[Push the metric to the mr.
  36481. The metric is pushed only if it was updated since last push
  36482. Note this does NOT push to JMX
  36483. (JMX gets the info via {@link #get()}
  36484. @param mr]]>
  36485. </doc>
  36486. </method>
  36487. <doc>
  36488. <![CDATA[The MetricsLongValue class is for a metric that is not time varied
  36489. but changes only when it is set.
  36490. Each time its value is set, it is published only *once* at the next update
  36491. call.]]>
  36492. </doc>
  36493. </class>
  36494. <!-- end class org.apache.hadoop.metrics.util.MetricsLongValue -->
  36495. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  36496. <class name="MetricsTimeVaryingInt" extends="java.lang.Object"
  36497. abstract="false"
  36498. static="false" final="false" visibility="public"
  36499. deprecated="not deprecated">
  36500. <constructor name="MetricsTimeVaryingInt" type="java.lang.String"
  36501. static="false" final="false" visibility="public"
  36502. deprecated="not deprecated">
  36503. <doc>
  36504. <![CDATA[Constructor - create a new metric
  36505. @param nam the name of the metrics to be used to publish the metric]]>
  36506. </doc>
  36507. </constructor>
  36508. <method name="inc"
  36509. abstract="false" native="false" synchronized="true"
  36510. static="false" final="false" visibility="public"
  36511. deprecated="not deprecated">
  36512. <param name="incr" type="int"/>
  36513. <doc>
  36514. <![CDATA[Inc metrics for incr vlaue
  36515. @param incr - number of operations]]>
  36516. </doc>
  36517. </method>
  36518. <method name="inc"
  36519. abstract="false" native="false" synchronized="true"
  36520. static="false" final="false" visibility="public"
  36521. deprecated="not deprecated">
  36522. <doc>
  36523. <![CDATA[Inc metrics by one]]>
  36524. </doc>
  36525. </method>
  36526. <method name="pushMetric"
  36527. abstract="false" native="false" synchronized="true"
  36528. static="false" final="false" visibility="public"
  36529. deprecated="not deprecated">
  36530. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  36531. <doc>
  36532. <![CDATA[Push the delta metrics to the mr.
  36533. The delta is since the last push/interval.
  36534. Note this does NOT push to JMX
  36535. (JMX gets the info via {@link #previousIntervalValue}
  36536. @param mr]]>
  36537. </doc>
  36538. </method>
  36539. <method name="getPreviousIntervalValue" return="int"
  36540. abstract="false" native="false" synchronized="true"
  36541. static="false" final="false" visibility="public"
  36542. deprecated="not deprecated">
  36543. <doc>
  36544. <![CDATA[The Value at the Previous interval
  36545. @return prev interval value]]>
  36546. </doc>
  36547. </method>
  36548. <doc>
  36549. <![CDATA[The MetricsTimeVaryingInt class is for a metric that naturally
  36550. varies over time (e.g. number of files created).
  36551. The metric is is published at interval heart beat (the interval
  36552. is set in the metrics config file).
  36553. Note if one wants a time associated with the metric then use
  36554. @see org.apache.hadoop.metrics.util.MetricsTimeVaryingRate]]>
  36555. </doc>
  36556. </class>
  36557. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingInt -->
  36558. <!-- start class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  36559. <class name="MetricsTimeVaryingRate" extends="java.lang.Object"
  36560. abstract="false"
  36561. static="false" final="false" visibility="public"
  36562. deprecated="not deprecated">
  36563. <constructor name="MetricsTimeVaryingRate" type="java.lang.String"
  36564. static="false" final="false" visibility="public"
  36565. deprecated="not deprecated">
  36566. <doc>
  36567. <![CDATA[Constructor - create a new metric
  36568. @param n the name of the metrics to be used to publish the metric]]>
  36569. </doc>
  36570. </constructor>
  36571. <method name="inc"
  36572. abstract="false" native="false" synchronized="true"
  36573. static="false" final="false" visibility="public"
  36574. deprecated="not deprecated">
  36575. <param name="numOps" type="int"/>
  36576. <param name="time" type="long"/>
  36577. <doc>
  36578. <![CDATA[Increment the metrics for numOps operations
  36579. @param numOps - number of operations
  36580. @param time - time for numOps operations]]>
  36581. </doc>
  36582. </method>
  36583. <method name="inc"
  36584. abstract="false" native="false" synchronized="true"
  36585. static="false" final="false" visibility="public"
  36586. deprecated="not deprecated">
  36587. <param name="time" type="long"/>
  36588. <doc>
  36589. <![CDATA[Increment the metrics for one operation
  36590. @param time for one operation]]>
  36591. </doc>
  36592. </method>
  36593. <method name="pushMetric"
  36594. abstract="false" native="false" synchronized="true"
  36595. static="false" final="false" visibility="public"
  36596. deprecated="not deprecated">
  36597. <param name="mr" type="org.apache.hadoop.metrics.MetricsRecord"/>
  36598. <doc>
  36599. <![CDATA[Push the delta metrics to the mr.
  36600. The delta is since the last push/interval.
  36601. Note this does NOT push to JMX
  36602. (JMX gets the info via {@link #getPreviousIntervalAverageTime()} and
  36603. {@link #getPreviousIntervalNumOps()}
  36604. @param mr]]>
  36605. </doc>
  36606. </method>
  36607. <method name="getPreviousIntervalNumOps" return="int"
  36608. abstract="false" native="false" synchronized="true"
  36609. static="false" final="false" visibility="public"
  36610. deprecated="not deprecated">
  36611. <doc>
  36612. <![CDATA[The number of operations in the previous interval
  36613. @return - ops in prev interval]]>
  36614. </doc>
  36615. </method>
  36616. <method name="getPreviousIntervalAverageTime" return="long"
  36617. abstract="false" native="false" synchronized="true"
  36618. static="false" final="false" visibility="public"
  36619. deprecated="not deprecated">
  36620. <doc>
  36621. <![CDATA[The average rate of an operation in the previous interval
  36622. @return - the average rate.]]>
  36623. </doc>
  36624. </method>
  36625. <method name="getMinTime" return="long"
  36626. abstract="false" native="false" synchronized="true"
  36627. static="false" final="false" visibility="public"
  36628. deprecated="not deprecated">
  36629. <doc>
  36630. <![CDATA[The min time for a single operation since the last reset
  36631. {@link #resetMinMax()}
  36632. @return min time for an operation]]>
  36633. </doc>
  36634. </method>
  36635. <method name="getMaxTime" return="long"
  36636. abstract="false" native="false" synchronized="true"
  36637. static="false" final="false" visibility="public"
  36638. deprecated="not deprecated">
  36639. <doc>
  36640. <![CDATA[The max time for a single operation since the last reset
  36641. {@link #resetMinMax()}
  36642. @return max time for an operation]]>
  36643. </doc>
  36644. </method>
  36645. <method name="resetMinMax"
  36646. abstract="false" native="false" synchronized="true"
  36647. static="false" final="false" visibility="public"
  36648. deprecated="not deprecated">
  36649. <doc>
  36650. <![CDATA[Reset the min max values]]>
  36651. </doc>
  36652. </method>
  36653. <doc>
  36654. <![CDATA[The MetricsTimeVaryingRate class is for a rate based metric that
  36655. naturally varies over time (e.g. time taken to create a file).
  36656. The rate is averaged at each interval heart beat (the interval
  36657. is set in the metrics config file).
  36658. This class also keeps track of the min and max rates along with
  36659. a method to reset the min-max.]]>
  36660. </doc>
  36661. </class>
  36662. <!-- end class org.apache.hadoop.metrics.util.MetricsTimeVaryingRate -->
  36663. </package>
  36664. <package name="org.apache.hadoop.net">
  36665. <!-- start class org.apache.hadoop.net.DNS -->
  36666. <class name="DNS" extends="java.lang.Object"
  36667. abstract="false"
  36668. static="false" final="false" visibility="public"
  36669. deprecated="not deprecated">
  36670. <constructor name="DNS"
  36671. static="false" final="false" visibility="public"
  36672. deprecated="not deprecated">
  36673. </constructor>
  36674. <method name="reverseDns" return="java.lang.String"
  36675. abstract="false" native="false" synchronized="false"
  36676. static="true" final="false" visibility="public"
  36677. deprecated="not deprecated">
  36678. <param name="hostIp" type="java.net.InetAddress"/>
  36679. <param name="ns" type="java.lang.String"/>
  36680. <exception name="NamingException" type="javax.naming.NamingException"/>
  36681. <doc>
  36682. <![CDATA[Returns the hostname associated with the specified IP address by the
  36683. provided nameserver.
  36684. @param hostIp
  36685. The address to reverse lookup
  36686. @param ns
  36687. The host name of a reachable DNS server
  36688. @return The host name associated with the provided IP
  36689. @throws NamingException
  36690. If a NamingException is encountered]]>
  36691. </doc>
  36692. </method>
  36693. <method name="getIPs" return="java.lang.String[]"
  36694. abstract="false" native="false" synchronized="false"
  36695. static="true" final="false" visibility="public"
  36696. deprecated="not deprecated">
  36697. <param name="strInterface" type="java.lang.String"/>
  36698. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36699. <doc>
  36700. <![CDATA[Returns all the IPs associated with the provided interface, if any, in
  36701. textual form.
  36702. @param strInterface
  36703. The name of the network interface to query (e.g. eth0)
  36704. @return A string vector of all the IPs associated with the provided
  36705. interface
  36706. @throws UnknownHostException
  36707. If an UnknownHostException is encountered in querying the
  36708. default interface]]>
  36709. </doc>
  36710. </method>
  36711. <method name="getDefaultIP" return="java.lang.String"
  36712. abstract="false" native="false" synchronized="false"
  36713. static="true" final="false" visibility="public"
  36714. deprecated="not deprecated">
  36715. <param name="strInterface" type="java.lang.String"/>
  36716. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36717. <doc>
  36718. <![CDATA[Returns the first available IP address associated with the provided
  36719. network interface
  36720. @param strInterface
  36721. The name of the network interface to query (e.g. eth0)
  36722. @return The IP address in text form
  36723. @throws UnknownHostException
  36724. If one is encountered in querying the default interface]]>
  36725. </doc>
  36726. </method>
  36727. <method name="getHosts" return="java.lang.String[]"
  36728. abstract="false" native="false" synchronized="false"
  36729. static="true" final="false" visibility="public"
  36730. deprecated="not deprecated">
  36731. <param name="strInterface" type="java.lang.String"/>
  36732. <param name="nameserver" type="java.lang.String"/>
  36733. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36734. <doc>
  36735. <![CDATA[Returns all the host names associated by the provided nameserver with the
  36736. address bound to the specified network interface
  36737. @param strInterface
  36738. The name of the network interface to query (e.g. eth0)
  36739. @param nameserver
  36740. The DNS host name
  36741. @return A string vector of all host names associated with the IPs tied to
  36742. the specified interface
  36743. @throws UnknownHostException]]>
  36744. </doc>
  36745. </method>
  36746. <method name="getHosts" return="java.lang.String[]"
  36747. abstract="false" native="false" synchronized="false"
  36748. static="true" final="false" visibility="public"
  36749. deprecated="not deprecated">
  36750. <param name="strInterface" type="java.lang.String"/>
  36751. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36752. <doc>
  36753. <![CDATA[Returns all the host names associated by the default nameserver with the
  36754. address bound to the specified network interface
  36755. @param strInterface
  36756. The name of the network interface to query (e.g. eth0)
  36757. @return The list of host names associated with IPs bound to the network
  36758. interface
  36759. @throws UnknownHostException
  36760. If one is encountered while querying the deault interface]]>
  36761. </doc>
  36762. </method>
  36763. <method name="getDefaultHost" return="java.lang.String"
  36764. abstract="false" native="false" synchronized="false"
  36765. static="true" final="false" visibility="public"
  36766. deprecated="not deprecated">
  36767. <param name="strInterface" type="java.lang.String"/>
  36768. <param name="nameserver" type="java.lang.String"/>
  36769. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36770. <doc>
  36771. <![CDATA[Returns the default (first) host name associated by the provided
  36772. nameserver with the address bound to the specified network interface
  36773. @param strInterface
  36774. The name of the network interface to query (e.g. eth0)
  36775. @param nameserver
  36776. The DNS host name
  36777. @return The default host names associated with IPs bound to the network
  36778. interface
  36779. @throws UnknownHostException
  36780. If one is encountered while querying the deault interface]]>
  36781. </doc>
  36782. </method>
  36783. <method name="getDefaultHost" return="java.lang.String"
  36784. abstract="false" native="false" synchronized="false"
  36785. static="true" final="false" visibility="public"
  36786. deprecated="not deprecated">
  36787. <param name="strInterface" type="java.lang.String"/>
  36788. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  36789. <doc>
  36790. <![CDATA[Returns the default (first) host name associated by the default
  36791. nameserver with the address bound to the specified network interface
  36792. @param strInterface
  36793. The name of the network interface to query (e.g. eth0)
  36794. @return The default host name associated with IPs bound to the network
  36795. interface
  36796. @throws UnknownHostException
  36797. If one is encountered while querying the deault interface]]>
  36798. </doc>
  36799. </method>
  36800. <doc>
  36801. <![CDATA[A class that provides direct and reverse lookup functionalities, allowing
  36802. the querying of specific network interfaces or nameservers.]]>
  36803. </doc>
  36804. </class>
  36805. <!-- end class org.apache.hadoop.net.DNS -->
  36806. <!-- start interface org.apache.hadoop.net.DNSToSwitchMapping -->
  36807. <interface name="DNSToSwitchMapping" abstract="true"
  36808. static="false" final="false" visibility="public"
  36809. deprecated="not deprecated">
  36810. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  36811. abstract="false" native="false" synchronized="false"
  36812. static="false" final="false" visibility="public"
  36813. deprecated="not deprecated">
  36814. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  36815. <doc>
  36816. <![CDATA[Resolves a list of DNS-names/IP-addresses and returns back a list of
  36817. switch information (network paths). One-to-one correspondence must be
  36818. maintained between the elements in the lists.
  36819. Consider an element in the argument list - x.y.com. The switch information
  36820. that is returned must be a network path of the form /foo/rack,
  36821. where / is the root, and 'foo' is the switch where 'rack' is connected.
  36822. Note the hostname/ip-address is not part of the returned path.
  36823. The network topology of the cluster would determine the number of
  36824. components in the network path.
  36825. @param names
  36826. @return list of resolved network paths]]>
  36827. </doc>
  36828. </method>
  36829. <doc>
  36830. <![CDATA[An interface that should be implemented to allow pluggable
  36831. DNS-name/IP-address to RackID resolvers.]]>
  36832. </doc>
  36833. </interface>
  36834. <!-- end interface org.apache.hadoop.net.DNSToSwitchMapping -->
  36835. <!-- start class org.apache.hadoop.net.NetUtils -->
  36836. <class name="NetUtils" extends="java.lang.Object"
  36837. abstract="false"
  36838. static="false" final="false" visibility="public"
  36839. deprecated="not deprecated">
  36840. <constructor name="NetUtils"
  36841. static="false" final="false" visibility="public"
  36842. deprecated="not deprecated">
  36843. </constructor>
  36844. <method name="getSocketFactory" return="javax.net.SocketFactory"
  36845. abstract="false" native="false" synchronized="false"
  36846. static="true" final="false" visibility="public"
  36847. deprecated="not deprecated">
  36848. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36849. <param name="clazz" type="java.lang.Class&lt;?&gt;"/>
  36850. <doc>
  36851. <![CDATA[Get the socket factory for the given class according to its
  36852. configuration parameter
  36853. <tt>hadoop.rpc.socket.factory.class.&lt;ClassName&gt;</tt>. When no
  36854. such parameter exists then fall back on the default socket factory as
  36855. configured by <tt>hadoop.rpc.socket.factory.class.default</tt>. If
  36856. this default socket factory is not configured, then fall back on the JVM
  36857. default socket factory.
  36858. @param conf the configuration
  36859. @param clazz the class (usually a {@link VersionedProtocol})
  36860. @return a socket factory]]>
  36861. </doc>
  36862. </method>
  36863. <method name="getDefaultSocketFactory" return="javax.net.SocketFactory"
  36864. abstract="false" native="false" synchronized="false"
  36865. static="true" final="false" visibility="public"
  36866. deprecated="not deprecated">
  36867. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36868. <doc>
  36869. <![CDATA[Get the default socket factory as specified by the configuration
  36870. parameter <tt>hadoop.rpc.socket.factory.default</tt>
  36871. @param conf the configuration
  36872. @return the default socket factory as specified in the configuration or
  36873. the JVM default socket factory if the configuration does not
  36874. contain a default socket factory property.]]>
  36875. </doc>
  36876. </method>
  36877. <method name="getSocketFactoryFromProperty" return="javax.net.SocketFactory"
  36878. abstract="false" native="false" synchronized="false"
  36879. static="true" final="false" visibility="public"
  36880. deprecated="not deprecated">
  36881. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36882. <param name="propValue" type="java.lang.String"/>
  36883. <doc>
  36884. <![CDATA[Get the socket factory corresponding to the given proxy URI. If the
  36885. given proxy URI corresponds to an absence of configuration parameter,
  36886. returns null. If the URI is malformed raises an exception.
  36887. @param propValue the property which is the class name of the
  36888. SocketFactory to instantiate; assumed non null and non empty.
  36889. @return a socket factory as defined in the property value.]]>
  36890. </doc>
  36891. </method>
  36892. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  36893. abstract="false" native="false" synchronized="false"
  36894. static="true" final="false" visibility="public"
  36895. deprecated="not deprecated">
  36896. <param name="target" type="java.lang.String"/>
  36897. <doc>
  36898. <![CDATA[Util method to build socket addr from either:
  36899. <host>:<post>
  36900. <fs>://<host>:<port>/<path>]]>
  36901. </doc>
  36902. </method>
  36903. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  36904. abstract="false" native="false" synchronized="false"
  36905. static="true" final="false" visibility="public"
  36906. deprecated="not deprecated">
  36907. <param name="target" type="java.lang.String"/>
  36908. <param name="defaultPort" type="int"/>
  36909. <doc>
  36910. <![CDATA[Util method to build socket addr from either:
  36911. <host>
  36912. <host>:<post>
  36913. <fs>://<host>:<port>/<path>]]>
  36914. </doc>
  36915. </method>
  36916. <method name="getServerAddress" return="java.lang.String"
  36917. abstract="false" native="false" synchronized="false"
  36918. static="true" final="false" visibility="public"
  36919. deprecated="not deprecated">
  36920. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  36921. <param name="oldBindAddressName" type="java.lang.String"/>
  36922. <param name="oldPortName" type="java.lang.String"/>
  36923. <param name="newBindAddressName" type="java.lang.String"/>
  36924. <doc>
  36925. <![CDATA[Handle the transition from pairs of attributes specifying a host and port
  36926. to a single colon separated one.
  36927. @param conf the configuration to check
  36928. @param oldBindAddressName the old address attribute name
  36929. @param oldPortName the old port attribute name
  36930. @param newBindAddressName the new combined name
  36931. @return the complete address from the configuration]]>
  36932. </doc>
  36933. </method>
  36934. <method name="addStaticResolution"
  36935. abstract="false" native="false" synchronized="false"
  36936. static="true" final="false" visibility="public"
  36937. deprecated="not deprecated">
  36938. <param name="host" type="java.lang.String"/>
  36939. <param name="resolvedName" type="java.lang.String"/>
  36940. <doc>
  36941. <![CDATA[Adds a static resolution for host. This can be used for setting up
  36942. hostnames with names that are fake to point to a well known host. For e.g.
  36943. in some testcases we require to have daemons with different hostnames
  36944. running on the same machine. In order to create connections to these
  36945. daemons, one can set up mappings from those hostnames to "localhost".
  36946. {@link NetUtils#getStaticResolution(String)} can be used to query for
  36947. the actual hostname.
  36948. @param host
  36949. @param resolvedName]]>
  36950. </doc>
  36951. </method>
  36952. <method name="getStaticResolution" return="java.lang.String"
  36953. abstract="false" native="false" synchronized="false"
  36954. static="true" final="false" visibility="public"
  36955. deprecated="not deprecated">
  36956. <param name="host" type="java.lang.String"/>
  36957. <doc>
  36958. <![CDATA[Retrieves the resolved name for the passed host. The resolved name must
  36959. have been set earlier using
  36960. {@link NetUtils#addStaticResolution(String, String)}
  36961. @param host
  36962. @return the resolution]]>
  36963. </doc>
  36964. </method>
  36965. <method name="getAllStaticResolutions" return="java.util.List&lt;java.lang.String[]&gt;"
  36966. abstract="false" native="false" synchronized="false"
  36967. static="true" final="false" visibility="public"
  36968. deprecated="not deprecated">
  36969. <doc>
  36970. <![CDATA[This is used to get all the resolutions that were added using
  36971. {@link NetUtils#addStaticResolution(String, String)}. The return
  36972. value is a List each element of which contains an array of String
  36973. of the form String[0]=hostname, String[1]=resolved-hostname
  36974. @return the list of resolutions]]>
  36975. </doc>
  36976. </method>
  36977. <method name="getConnectAddress" return="java.net.InetSocketAddress"
  36978. abstract="false" native="false" synchronized="false"
  36979. static="true" final="false" visibility="public"
  36980. deprecated="not deprecated">
  36981. <param name="server" type="org.apache.hadoop.ipc.Server"/>
  36982. <doc>
  36983. <![CDATA[Returns InetSocketAddress that a client can use to
  36984. connect to the server. Server.getListenerAddress() is not correct when
  36985. the server binds to "0.0.0.0". This returns "127.0.0.1:port" when
  36986. the getListenerAddress() returns "0.0.0.0:port".
  36987. @param server
  36988. @return socket address that a client can use to connect to the server.]]>
  36989. </doc>
  36990. </method>
  36991. <method name="getInputStream" return="java.io.InputStream"
  36992. abstract="false" native="false" synchronized="false"
  36993. static="true" final="false" visibility="public"
  36994. deprecated="not deprecated">
  36995. <param name="socket" type="java.net.Socket"/>
  36996. <exception name="IOException" type="java.io.IOException"/>
  36997. <doc>
  36998. <![CDATA[Same as getInputStream(socket, socket.getSoTimeout()).<br><br>
  36999. From documentation for {@link #getInputStream(Socket, long)}:<br>
  37000. Returns InputStream for the socket. If the socket has an associated
  37001. SocketChannel then it returns a
  37002. {@link SocketInputStream} with the given timeout. If the socket does not
  37003. have a channel, {@link Socket#getInputStream()} is returned. In the later
  37004. case, the timeout argument is ignored and the timeout set with
  37005. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  37006. Any socket created using socket factories returned by {@link #NetUtils},
  37007. must use this interface instead of {@link Socket#getInputStream()}.
  37008. @see #getInputStream(Socket, long)
  37009. @param socket
  37010. @return InputStream for reading from the socket.
  37011. @throws IOException]]>
  37012. </doc>
  37013. </method>
  37014. <method name="getInputStream" return="java.io.InputStream"
  37015. abstract="false" native="false" synchronized="false"
  37016. static="true" final="false" visibility="public"
  37017. deprecated="not deprecated">
  37018. <param name="socket" type="java.net.Socket"/>
  37019. <param name="timeout" type="long"/>
  37020. <exception name="IOException" type="java.io.IOException"/>
  37021. <doc>
  37022. <![CDATA[Returns InputStream for the socket. If the socket has an associated
  37023. SocketChannel then it returns a
  37024. {@link SocketInputStream} with the given timeout. If the socket does not
  37025. have a channel, {@link Socket#getInputStream()} is returned. In the later
  37026. case, the timeout argument is ignored and the timeout set with
  37027. {@link Socket#setSoTimeout(int)} applies for reads.<br><br>
  37028. Any socket created using socket factories returned by {@link #NetUtils},
  37029. must use this interface instead of {@link Socket#getInputStream()}.
  37030. @see Socket#getChannel()
  37031. @param socket
  37032. @param timeout timeout in milliseconds. This may not always apply. zero
  37033. for waiting as long as necessary.
  37034. @return InputStream for reading from the socket.
  37035. @throws IOException]]>
  37036. </doc>
  37037. </method>
  37038. <method name="getOutputStream" return="java.io.OutputStream"
  37039. abstract="false" native="false" synchronized="false"
  37040. static="true" final="false" visibility="public"
  37041. deprecated="not deprecated">
  37042. <param name="socket" type="java.net.Socket"/>
  37043. <exception name="IOException" type="java.io.IOException"/>
  37044. <doc>
  37045. <![CDATA[Same as getOutputStream(socket, 0). Timeout of zero implies write will
  37046. wait until data is available.<br><br>
  37047. From documentation for {@link #getOutputStream(Socket, long)} : <br>
  37048. Returns OutputStream for the socket. If the socket has an associated
  37049. SocketChannel then it returns a
  37050. {@link SocketOutputStream} with the given timeout. If the socket does not
  37051. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  37052. case, the timeout argument is ignored and the write will wait until
  37053. data is available.<br><br>
  37054. Any socket created using socket factories returned by {@link #NetUtils},
  37055. must use this interface instead of {@link Socket#getOutputStream()}.
  37056. @see #getOutputStream(Socket, long)
  37057. @param socket
  37058. @return OutputStream for writing to the socket.
  37059. @throws IOException]]>
  37060. </doc>
  37061. </method>
  37062. <method name="getOutputStream" return="java.io.OutputStream"
  37063. abstract="false" native="false" synchronized="false"
  37064. static="true" final="false" visibility="public"
  37065. deprecated="not deprecated">
  37066. <param name="socket" type="java.net.Socket"/>
  37067. <param name="timeout" type="long"/>
  37068. <exception name="IOException" type="java.io.IOException"/>
  37069. <doc>
  37070. <![CDATA[Returns OutputStream for the socket. If the socket has an associated
  37071. SocketChannel then it returns a
  37072. {@link SocketOutputStream} with the given timeout. If the socket does not
  37073. have a channel, {@link Socket#getOutputStream()} is returned. In the later
  37074. case, the timeout argument is ignored and the write will wait until
  37075. data is available.<br><br>
  37076. Any socket created using socket factories returned by {@link #NetUtils},
  37077. must use this interface instead of {@link Socket#getOutputStream()}.
  37078. @see Socket#getChannel()
  37079. @param socket
  37080. @param timeout timeout in milliseconds. This may not always apply. zero
  37081. for waiting as long as necessary.
  37082. @return OutputStream for writing to the socket.
  37083. @throws IOException]]>
  37084. </doc>
  37085. </method>
  37086. </class>
  37087. <!-- end class org.apache.hadoop.net.NetUtils -->
  37088. <!-- start class org.apache.hadoop.net.NetworkTopology -->
  37089. <class name="NetworkTopology" extends="java.lang.Object"
  37090. abstract="false"
  37091. static="false" final="false" visibility="public"
  37092. deprecated="not deprecated">
  37093. <constructor name="NetworkTopology"
  37094. static="false" final="false" visibility="public"
  37095. deprecated="not deprecated">
  37096. </constructor>
  37097. <method name="add"
  37098. abstract="false" native="false" synchronized="false"
  37099. static="false" final="false" visibility="public"
  37100. deprecated="not deprecated">
  37101. <param name="node" type="org.apache.hadoop.net.Node"/>
  37102. <doc>
  37103. <![CDATA[Add a leaf node
  37104. Update node counter & rack counter if neccessary
  37105. @param node
  37106. node to be added
  37107. @exception IllegalArgumentException if add a node to a leave
  37108. or node to be added is not a leaf]]>
  37109. </doc>
  37110. </method>
  37111. <method name="remove"
  37112. abstract="false" native="false" synchronized="false"
  37113. static="false" final="false" visibility="public"
  37114. deprecated="not deprecated">
  37115. <param name="node" type="org.apache.hadoop.net.Node"/>
  37116. <doc>
  37117. <![CDATA[Remove a node
  37118. Update node counter & rack counter if neccessary
  37119. @param node
  37120. node to be removed]]>
  37121. </doc>
  37122. </method>
  37123. <method name="contains" return="boolean"
  37124. abstract="false" native="false" synchronized="false"
  37125. static="false" final="false" visibility="public"
  37126. deprecated="not deprecated">
  37127. <param name="node" type="org.apache.hadoop.net.Node"/>
  37128. <doc>
  37129. <![CDATA[Check if the tree contains node <i>node</i>
  37130. @param node
  37131. a node
  37132. @return true if <i>node</i> is already in the tree; false otherwise]]>
  37133. </doc>
  37134. </method>
  37135. <method name="getNode" return="org.apache.hadoop.net.Node"
  37136. abstract="false" native="false" synchronized="false"
  37137. static="false" final="false" visibility="public"
  37138. deprecated="not deprecated">
  37139. <param name="loc" type="java.lang.String"/>
  37140. <doc>
  37141. <![CDATA[Given a string representation of a node, return its reference
  37142. @param loc
  37143. a path-like string representation of a node
  37144. @return a reference to the node; null if the node is not in the tree]]>
  37145. </doc>
  37146. </method>
  37147. <method name="getNumOfRacks" return="int"
  37148. abstract="false" native="false" synchronized="false"
  37149. static="false" final="false" visibility="public"
  37150. deprecated="not deprecated">
  37151. <doc>
  37152. <![CDATA[Return the total number of racks]]>
  37153. </doc>
  37154. </method>
  37155. <method name="getNumOfLeaves" return="int"
  37156. abstract="false" native="false" synchronized="false"
  37157. static="false" final="false" visibility="public"
  37158. deprecated="not deprecated">
  37159. <doc>
  37160. <![CDATA[Return the total number of nodes]]>
  37161. </doc>
  37162. </method>
  37163. <method name="getDistance" return="int"
  37164. abstract="false" native="false" synchronized="false"
  37165. static="false" final="false" visibility="public"
  37166. deprecated="not deprecated">
  37167. <param name="node1" type="org.apache.hadoop.net.Node"/>
  37168. <param name="node2" type="org.apache.hadoop.net.Node"/>
  37169. <doc>
  37170. <![CDATA[Return the distance between two nodes
  37171. It is assumed that the distance from one node to its parent is 1
  37172. The distance between two nodes is calculated by summing up their distances
  37173. to their closest common ancestor.
  37174. @param node1 one node
  37175. @param node2 another node
  37176. @return the distance between node1 and node2
  37177. node1 or node2 do not belong to the cluster]]>
  37178. </doc>
  37179. </method>
  37180. <method name="isOnSameRack" return="boolean"
  37181. abstract="false" native="false" synchronized="false"
  37182. static="false" final="false" visibility="public"
  37183. deprecated="not deprecated">
  37184. <param name="node1" type="org.apache.hadoop.net.Node"/>
  37185. <param name="node2" type="org.apache.hadoop.net.Node"/>
  37186. <doc>
  37187. <![CDATA[Check if two nodes are on the same rack
  37188. @param node1 one node
  37189. @param node2 another node
  37190. @return true if node1 and node2 are pm the same rack; false otherwise
  37191. @exception IllegalArgumentException when either node1 or node2 is null, or
  37192. node1 or node2 do not belong to the cluster]]>
  37193. </doc>
  37194. </method>
  37195. <method name="chooseRandom" return="org.apache.hadoop.net.Node"
  37196. abstract="false" native="false" synchronized="false"
  37197. static="false" final="false" visibility="public"
  37198. deprecated="not deprecated">
  37199. <param name="scope" type="java.lang.String"/>
  37200. <doc>
  37201. <![CDATA[randomly choose one node from <i>scope</i>
  37202. if scope starts with ~, choose one from the all nodes except for the
  37203. ones in <i>scope</i>; otherwise, choose one from <i>scope</i>
  37204. @param scope range of nodes from which a node will be choosen
  37205. @return the choosen node]]>
  37206. </doc>
  37207. </method>
  37208. <method name="countNumOfAvailableNodes" return="int"
  37209. abstract="false" native="false" synchronized="false"
  37210. static="false" final="false" visibility="public"
  37211. deprecated="not deprecated">
  37212. <param name="scope" type="java.lang.String"/>
  37213. <param name="excludedNodes" type="java.util.List&lt;org.apache.hadoop.net.Node&gt;"/>
  37214. <doc>
  37215. <![CDATA[return the number of leaves in <i>scope</i> but not in <i>excludedNodes</i>
  37216. if scope starts with ~, return the number of nodes that are not
  37217. in <i>scope</i> and <i>excludedNodes</i>;
  37218. @param scope a path string that may start with ~
  37219. @param excludedNodes a list of nodes
  37220. @return number of available nodes]]>
  37221. </doc>
  37222. </method>
  37223. <method name="toString" return="java.lang.String"
  37224. abstract="false" native="false" synchronized="false"
  37225. static="false" final="false" visibility="public"
  37226. deprecated="not deprecated">
  37227. <doc>
  37228. <![CDATA[convert a network tree to a string]]>
  37229. </doc>
  37230. </method>
  37231. <method name="pseudoSortByDistance"
  37232. abstract="false" native="false" synchronized="true"
  37233. static="false" final="false" visibility="public"
  37234. deprecated="not deprecated">
  37235. <param name="reader" type="org.apache.hadoop.net.Node"/>
  37236. <param name="nodes" type="org.apache.hadoop.net.Node[]"/>
  37237. <doc>
  37238. <![CDATA[Sort nodes array by their distances to <i>reader</i>
  37239. It linearly scans the array, if a local node is found, swap it with
  37240. the first element of the array.
  37241. If a local rack node is found, swap it with the first element following
  37242. the local node.
  37243. If neither local node or local rack node is found, put a random replica
  37244. location at postion 0.
  37245. It leaves the rest nodes untouched.]]>
  37246. </doc>
  37247. </method>
  37248. <field name="DEFAULT_RACK" type="java.lang.String"
  37249. transient="false" volatile="false"
  37250. static="true" final="true" visibility="public"
  37251. deprecated="not deprecated">
  37252. </field>
  37253. <field name="UNRESOLVED" type="java.lang.String"
  37254. transient="false" volatile="false"
  37255. static="true" final="true" visibility="public"
  37256. deprecated="not deprecated">
  37257. </field>
  37258. <field name="DEFAULT_HOST_LEVEL" type="int"
  37259. transient="false" volatile="false"
  37260. static="true" final="true" visibility="public"
  37261. deprecated="not deprecated">
  37262. </field>
  37263. <field name="LOG" type="org.apache.commons.logging.Log"
  37264. transient="false" volatile="false"
  37265. static="true" final="true" visibility="public"
  37266. deprecated="not deprecated">
  37267. </field>
  37268. <doc>
  37269. <![CDATA[The class represents a cluster of computer with a tree hierarchical
  37270. network topology.
  37271. For example, a cluster may be consists of many data centers filled
  37272. with racks of computers.
  37273. In a network topology, leaves represent data nodes (computers) and inner
  37274. nodes represent switches/routers that manage traffic in/out of data centers
  37275. or racks.]]>
  37276. </doc>
  37277. </class>
  37278. <!-- end class org.apache.hadoop.net.NetworkTopology -->
  37279. <!-- start interface org.apache.hadoop.net.Node -->
  37280. <interface name="Node" abstract="true"
  37281. static="false" final="false" visibility="public"
  37282. deprecated="not deprecated">
  37283. <method name="getNetworkLocation" return="java.lang.String"
  37284. abstract="false" native="false" synchronized="false"
  37285. static="false" final="false" visibility="public"
  37286. deprecated="not deprecated">
  37287. <doc>
  37288. <![CDATA[Return the string representation of this node's network location]]>
  37289. </doc>
  37290. </method>
  37291. <method name="setNetworkLocation"
  37292. abstract="false" native="false" synchronized="false"
  37293. static="false" final="false" visibility="public"
  37294. deprecated="not deprecated">
  37295. <param name="location" type="java.lang.String"/>
  37296. <doc>
  37297. <![CDATA[Set the node's network location]]>
  37298. </doc>
  37299. </method>
  37300. <method name="getName" return="java.lang.String"
  37301. abstract="false" native="false" synchronized="false"
  37302. static="false" final="false" visibility="public"
  37303. deprecated="not deprecated">
  37304. <doc>
  37305. <![CDATA[Return this node's name]]>
  37306. </doc>
  37307. </method>
  37308. <method name="getParent" return="org.apache.hadoop.net.Node"
  37309. abstract="false" native="false" synchronized="false"
  37310. static="false" final="false" visibility="public"
  37311. deprecated="not deprecated">
  37312. <doc>
  37313. <![CDATA[Return this node's parent]]>
  37314. </doc>
  37315. </method>
  37316. <method name="setParent"
  37317. abstract="false" native="false" synchronized="false"
  37318. static="false" final="false" visibility="public"
  37319. deprecated="not deprecated">
  37320. <param name="parent" type="org.apache.hadoop.net.Node"/>
  37321. <doc>
  37322. <![CDATA[Set this node's parent]]>
  37323. </doc>
  37324. </method>
  37325. <method name="getLevel" return="int"
  37326. abstract="false" native="false" synchronized="false"
  37327. static="false" final="false" visibility="public"
  37328. deprecated="not deprecated">
  37329. <doc>
  37330. <![CDATA[Return this node's level in the tree.
  37331. E.g. the root of a tree returns 0 and its children return 1]]>
  37332. </doc>
  37333. </method>
  37334. <method name="setLevel"
  37335. abstract="false" native="false" synchronized="false"
  37336. static="false" final="false" visibility="public"
  37337. deprecated="not deprecated">
  37338. <param name="i" type="int"/>
  37339. <doc>
  37340. <![CDATA[Set this node's level in the tree.]]>
  37341. </doc>
  37342. </method>
  37343. <doc>
  37344. <![CDATA[The interface defines a node in a network topology.
  37345. A node may be a leave representing a data node or an inner
  37346. node representing a datacenter or rack.
  37347. Each data has a name and its location in the network is
  37348. decided by a string with syntax similar to a file name.
  37349. For example, a data node's name is hostname:port# and if it's located at
  37350. rack "orange" in datacenter "dog", the string representation of its
  37351. network location is /dog/orange]]>
  37352. </doc>
  37353. </interface>
  37354. <!-- end interface org.apache.hadoop.net.Node -->
  37355. <!-- start class org.apache.hadoop.net.NodeBase -->
  37356. <class name="NodeBase" extends="java.lang.Object"
  37357. abstract="false"
  37358. static="false" final="false" visibility="public"
  37359. deprecated="not deprecated">
  37360. <implements name="org.apache.hadoop.net.Node"/>
  37361. <constructor name="NodeBase"
  37362. static="false" final="false" visibility="public"
  37363. deprecated="not deprecated">
  37364. <doc>
  37365. <![CDATA[Default constructor]]>
  37366. </doc>
  37367. </constructor>
  37368. <constructor name="NodeBase" type="java.lang.String"
  37369. static="false" final="false" visibility="public"
  37370. deprecated="not deprecated">
  37371. <doc>
  37372. <![CDATA[Construct a node from its path
  37373. @param path
  37374. a concatenation of this node's location, the path seperator, and its name]]>
  37375. </doc>
  37376. </constructor>
  37377. <constructor name="NodeBase" type="java.lang.String, java.lang.String"
  37378. static="false" final="false" visibility="public"
  37379. deprecated="not deprecated">
  37380. <doc>
  37381. <![CDATA[Construct a node from its name and its location
  37382. @param name this node's name
  37383. @param location this node's location]]>
  37384. </doc>
  37385. </constructor>
  37386. <constructor name="NodeBase" type="java.lang.String, java.lang.String, org.apache.hadoop.net.Node, int"
  37387. static="false" final="false" visibility="public"
  37388. deprecated="not deprecated">
  37389. <doc>
  37390. <![CDATA[Construct a node from its name and its location
  37391. @param name this node's name
  37392. @param location this node's location
  37393. @param parent this node's parent node
  37394. @param level this node's level in the tree]]>
  37395. </doc>
  37396. </constructor>
  37397. <method name="getName" return="java.lang.String"
  37398. abstract="false" native="false" synchronized="false"
  37399. static="false" final="false" visibility="public"
  37400. deprecated="not deprecated">
  37401. <doc>
  37402. <![CDATA[Return this node's name]]>
  37403. </doc>
  37404. </method>
  37405. <method name="getNetworkLocation" return="java.lang.String"
  37406. abstract="false" native="false" synchronized="false"
  37407. static="false" final="false" visibility="public"
  37408. deprecated="not deprecated">
  37409. <doc>
  37410. <![CDATA[Return this node's network location]]>
  37411. </doc>
  37412. </method>
  37413. <method name="setNetworkLocation"
  37414. abstract="false" native="false" synchronized="false"
  37415. static="false" final="false" visibility="public"
  37416. deprecated="not deprecated">
  37417. <param name="location" type="java.lang.String"/>
  37418. <doc>
  37419. <![CDATA[Set this node's network location]]>
  37420. </doc>
  37421. </method>
  37422. <method name="getPath" return="java.lang.String"
  37423. abstract="false" native="false" synchronized="false"
  37424. static="true" final="false" visibility="public"
  37425. deprecated="not deprecated">
  37426. <param name="node" type="org.apache.hadoop.net.Node"/>
  37427. <doc>
  37428. <![CDATA[Return this node's path]]>
  37429. </doc>
  37430. </method>
  37431. <method name="toString" return="java.lang.String"
  37432. abstract="false" native="false" synchronized="false"
  37433. static="false" final="false" visibility="public"
  37434. deprecated="not deprecated">
  37435. <doc>
  37436. <![CDATA[Return this node's string representation]]>
  37437. </doc>
  37438. </method>
  37439. <method name="normalize" return="java.lang.String"
  37440. abstract="false" native="false" synchronized="false"
  37441. static="true" final="false" visibility="public"
  37442. deprecated="not deprecated">
  37443. <param name="path" type="java.lang.String"/>
  37444. <doc>
  37445. <![CDATA[Normalize a path]]>
  37446. </doc>
  37447. </method>
  37448. <method name="getParent" return="org.apache.hadoop.net.Node"
  37449. abstract="false" native="false" synchronized="false"
  37450. static="false" final="false" visibility="public"
  37451. deprecated="not deprecated">
  37452. <doc>
  37453. <![CDATA[Return this node's parent]]>
  37454. </doc>
  37455. </method>
  37456. <method name="setParent"
  37457. abstract="false" native="false" synchronized="false"
  37458. static="false" final="false" visibility="public"
  37459. deprecated="not deprecated">
  37460. <param name="parent" type="org.apache.hadoop.net.Node"/>
  37461. <doc>
  37462. <![CDATA[Set this node's parent]]>
  37463. </doc>
  37464. </method>
  37465. <method name="getLevel" return="int"
  37466. abstract="false" native="false" synchronized="false"
  37467. static="false" final="false" visibility="public"
  37468. deprecated="not deprecated">
  37469. <doc>
  37470. <![CDATA[Return this node's level in the tree.
  37471. E.g. the root of a tree returns 0 and its children return 1]]>
  37472. </doc>
  37473. </method>
  37474. <method name="setLevel"
  37475. abstract="false" native="false" synchronized="false"
  37476. static="false" final="false" visibility="public"
  37477. deprecated="not deprecated">
  37478. <param name="level" type="int"/>
  37479. <doc>
  37480. <![CDATA[Set this node's level in the tree]]>
  37481. </doc>
  37482. </method>
  37483. <field name="PATH_SEPARATOR" type="char"
  37484. transient="false" volatile="false"
  37485. static="true" final="true" visibility="public"
  37486. deprecated="not deprecated">
  37487. </field>
  37488. <field name="PATH_SEPARATOR_STR" type="java.lang.String"
  37489. transient="false" volatile="false"
  37490. static="true" final="false" visibility="public"
  37491. deprecated="not deprecated">
  37492. </field>
  37493. <field name="ROOT" type="java.lang.String"
  37494. transient="false" volatile="false"
  37495. static="true" final="true" visibility="public"
  37496. deprecated="not deprecated">
  37497. </field>
  37498. <field name="name" type="java.lang.String"
  37499. transient="false" volatile="false"
  37500. static="false" final="false" visibility="protected"
  37501. deprecated="not deprecated">
  37502. </field>
  37503. <field name="location" type="java.lang.String"
  37504. transient="false" volatile="false"
  37505. static="false" final="false" visibility="protected"
  37506. deprecated="not deprecated">
  37507. </field>
  37508. <field name="level" type="int"
  37509. transient="false" volatile="false"
  37510. static="false" final="false" visibility="protected"
  37511. deprecated="not deprecated">
  37512. </field>
  37513. <field name="parent" type="org.apache.hadoop.net.Node"
  37514. transient="false" volatile="false"
  37515. static="false" final="false" visibility="protected"
  37516. deprecated="not deprecated">
  37517. </field>
  37518. <doc>
  37519. <![CDATA[A base class that implements interface Node]]>
  37520. </doc>
  37521. </class>
  37522. <!-- end class org.apache.hadoop.net.NodeBase -->
  37523. <!-- start class org.apache.hadoop.net.ScriptBasedMapping -->
  37524. <class name="ScriptBasedMapping" extends="java.lang.Object"
  37525. abstract="false"
  37526. static="false" final="true" visibility="public"
  37527. deprecated="not deprecated">
  37528. <implements name="org.apache.hadoop.conf.Configurable"/>
  37529. <implements name="org.apache.hadoop.net.DNSToSwitchMapping"/>
  37530. <constructor name="ScriptBasedMapping"
  37531. static="false" final="false" visibility="public"
  37532. deprecated="not deprecated">
  37533. </constructor>
  37534. <method name="setConf"
  37535. abstract="false" native="false" synchronized="false"
  37536. static="false" final="false" visibility="public"
  37537. deprecated="not deprecated">
  37538. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37539. </method>
  37540. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  37541. abstract="false" native="false" synchronized="false"
  37542. static="false" final="false" visibility="public"
  37543. deprecated="not deprecated">
  37544. </method>
  37545. <method name="resolve" return="java.util.List&lt;java.lang.String&gt;"
  37546. abstract="false" native="false" synchronized="false"
  37547. static="false" final="false" visibility="public"
  37548. deprecated="not deprecated">
  37549. <param name="names" type="java.util.List&lt;java.lang.String&gt;"/>
  37550. </method>
  37551. <doc>
  37552. <![CDATA[This class implements the {@link DNSToSwitchMapping} interface using a
  37553. script configured via topology.script.file.name .]]>
  37554. </doc>
  37555. </class>
  37556. <!-- end class org.apache.hadoop.net.ScriptBasedMapping -->
  37557. <!-- start class org.apache.hadoop.net.SocketInputStream -->
  37558. <class name="SocketInputStream" extends="java.io.InputStream"
  37559. abstract="false"
  37560. static="false" final="false" visibility="public"
  37561. deprecated="not deprecated">
  37562. <implements name="java.nio.channels.ReadableByteChannel"/>
  37563. <constructor name="SocketInputStream" type="java.nio.channels.ReadableByteChannel, long"
  37564. static="false" final="false" visibility="public"
  37565. deprecated="not deprecated">
  37566. <exception name="IOException" type="java.io.IOException"/>
  37567. <doc>
  37568. <![CDATA[Create a new input stream with the given timeout. If the timeout
  37569. is zero, it will be treated as infinite timeout. The socket's
  37570. channel will be configured to be non-blocking.
  37571. @param channel
  37572. Channel for reading, should also be a {@link SelectableChannel}.
  37573. The channel will be configured to be non-blocking.
  37574. @param timeout timeout in milliseconds. must not be negative.
  37575. @throws IOException]]>
  37576. </doc>
  37577. </constructor>
  37578. <constructor name="SocketInputStream" type="java.net.Socket, long"
  37579. static="false" final="false" visibility="public"
  37580. deprecated="not deprecated">
  37581. <exception name="IOException" type="java.io.IOException"/>
  37582. <doc>
  37583. <![CDATA[Same as SocketInputStream(socket.getChannel(), timeout): <br><br>
  37584. Create a new input stream with the given timeout. If the timeout
  37585. is zero, it will be treated as infinite timeout. The socket's
  37586. channel will be configured to be non-blocking.
  37587. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  37588. @param socket should have a channel associated with it.
  37589. @param timeout timeout timeout in milliseconds. must not be negative.
  37590. @throws IOException]]>
  37591. </doc>
  37592. </constructor>
  37593. <constructor name="SocketInputStream" type="java.net.Socket"
  37594. static="false" final="false" visibility="public"
  37595. deprecated="not deprecated">
  37596. <exception name="IOException" type="java.io.IOException"/>
  37597. <doc>
  37598. <![CDATA[Same as SocketInputStream(socket.getChannel(), socket.getSoTimeout())
  37599. :<br><br>
  37600. Create a new input stream with the given timeout. If the timeout
  37601. is zero, it will be treated as infinite timeout. The socket's
  37602. channel will be configured to be non-blocking.
  37603. @see SocketInputStream#SocketInputStream(ReadableByteChannel, long)
  37604. @param socket should have a channel associated with it.
  37605. @throws IOException]]>
  37606. </doc>
  37607. </constructor>
  37608. <method name="read" return="int"
  37609. abstract="false" native="false" synchronized="false"
  37610. static="false" final="false" visibility="public"
  37611. deprecated="not deprecated">
  37612. <exception name="IOException" type="java.io.IOException"/>
  37613. </method>
  37614. <method name="read" return="int"
  37615. abstract="false" native="false" synchronized="false"
  37616. static="false" final="false" visibility="public"
  37617. deprecated="not deprecated">
  37618. <param name="b" type="byte[]"/>
  37619. <param name="off" type="int"/>
  37620. <param name="len" type="int"/>
  37621. <exception name="IOException" type="java.io.IOException"/>
  37622. </method>
  37623. <method name="close"
  37624. abstract="false" native="false" synchronized="true"
  37625. static="false" final="false" visibility="public"
  37626. deprecated="not deprecated">
  37627. <exception name="IOException" type="java.io.IOException"/>
  37628. </method>
  37629. <method name="getChannel" return="java.nio.channels.ReadableByteChannel"
  37630. abstract="false" native="false" synchronized="false"
  37631. static="false" final="false" visibility="public"
  37632. deprecated="not deprecated">
  37633. <doc>
  37634. <![CDATA[Returns underlying channel used by inputstream.
  37635. This is useful in certain cases like channel for
  37636. {@link FileChannel#transferFrom(ReadableByteChannel, long, long)}.]]>
  37637. </doc>
  37638. </method>
  37639. <method name="isOpen" return="boolean"
  37640. abstract="false" native="false" synchronized="false"
  37641. static="false" final="false" visibility="public"
  37642. deprecated="not deprecated">
  37643. </method>
  37644. <method name="read" return="int"
  37645. abstract="false" native="false" synchronized="false"
  37646. static="false" final="false" visibility="public"
  37647. deprecated="not deprecated">
  37648. <param name="dst" type="java.nio.ByteBuffer"/>
  37649. <exception name="IOException" type="java.io.IOException"/>
  37650. </method>
  37651. <method name="waitForReadable"
  37652. abstract="false" native="false" synchronized="false"
  37653. static="false" final="false" visibility="public"
  37654. deprecated="not deprecated">
  37655. <exception name="IOException" type="java.io.IOException"/>
  37656. <doc>
  37657. <![CDATA[waits for the underlying channel to be ready for reading.
  37658. The timeout specified for this stream applies to this wait.
  37659. @throws SocketTimeoutException
  37660. if select on the channel times out.
  37661. @throws IOException
  37662. if any other I/O error occurs.]]>
  37663. </doc>
  37664. </method>
  37665. <doc>
  37666. <![CDATA[This implements an input stream that can have a timeout while reading.
  37667. This sets non-blocking flag on the socket channel.
  37668. So after create this object, read() on
  37669. {@link Socket#getInputStream()} and write() on
  37670. {@link Socket#getOutputStream()} for the associated socket will throw
  37671. IllegalBlockingModeException.
  37672. Please use {@link SocketOutputStream} for writing.]]>
  37673. </doc>
  37674. </class>
  37675. <!-- end class org.apache.hadoop.net.SocketInputStream -->
  37676. <!-- start class org.apache.hadoop.net.SocketOutputStream -->
  37677. <class name="SocketOutputStream" extends="java.io.OutputStream"
  37678. abstract="false"
  37679. static="false" final="false" visibility="public"
  37680. deprecated="not deprecated">
  37681. <implements name="java.nio.channels.WritableByteChannel"/>
  37682. <constructor name="SocketOutputStream" type="java.nio.channels.WritableByteChannel, long"
  37683. static="false" final="false" visibility="public"
  37684. deprecated="not deprecated">
  37685. <exception name="IOException" type="java.io.IOException"/>
  37686. <doc>
  37687. <![CDATA[Create a new ouput stream with the given timeout. If the timeout
  37688. is zero, it will be treated as infinite timeout. The socket's
  37689. channel will be configured to be non-blocking.
  37690. @param channel
  37691. Channel for writing, should also be a {@link SelectableChannel}.
  37692. The channel will be configured to be non-blocking.
  37693. @param timeout timeout in milliseconds. must not be negative.
  37694. @throws IOException]]>
  37695. </doc>
  37696. </constructor>
  37697. <constructor name="SocketOutputStream" type="java.net.Socket, long"
  37698. static="false" final="false" visibility="public"
  37699. deprecated="not deprecated">
  37700. <exception name="IOException" type="java.io.IOException"/>
  37701. <doc>
  37702. <![CDATA[Same as SocketOutputStream(socket.getChannel(), timeout):<br><br>
  37703. Create a new ouput stream with the given timeout. If the timeout
  37704. is zero, it will be treated as infinite timeout. The socket's
  37705. channel will be configured to be non-blocking.
  37706. @see SocketOutputStream#SocketOutputStream(WritableByteChannel, long)
  37707. @param socket should have a channel associated with it.
  37708. @param timeout timeout timeout in milliseconds. must not be negative.
  37709. @throws IOException]]>
  37710. </doc>
  37711. </constructor>
  37712. <method name="write"
  37713. abstract="false" native="false" synchronized="false"
  37714. static="false" final="false" visibility="public"
  37715. deprecated="not deprecated">
  37716. <param name="b" type="int"/>
  37717. <exception name="IOException" type="java.io.IOException"/>
  37718. </method>
  37719. <method name="write"
  37720. abstract="false" native="false" synchronized="false"
  37721. static="false" final="false" visibility="public"
  37722. deprecated="not deprecated">
  37723. <param name="b" type="byte[]"/>
  37724. <param name="off" type="int"/>
  37725. <param name="len" type="int"/>
  37726. <exception name="IOException" type="java.io.IOException"/>
  37727. </method>
  37728. <method name="close"
  37729. abstract="false" native="false" synchronized="true"
  37730. static="false" final="false" visibility="public"
  37731. deprecated="not deprecated">
  37732. <exception name="IOException" type="java.io.IOException"/>
  37733. </method>
  37734. <method name="getChannel" return="java.nio.channels.WritableByteChannel"
  37735. abstract="false" native="false" synchronized="false"
  37736. static="false" final="false" visibility="public"
  37737. deprecated="not deprecated">
  37738. <doc>
  37739. <![CDATA[Returns underlying channel used by this stream.
  37740. This is useful in certain cases like channel for
  37741. {@link FileChannel#transferTo(long, long, WritableByteChannel)}]]>
  37742. </doc>
  37743. </method>
  37744. <method name="isOpen" return="boolean"
  37745. abstract="false" native="false" synchronized="false"
  37746. static="false" final="false" visibility="public"
  37747. deprecated="not deprecated">
  37748. </method>
  37749. <method name="write" return="int"
  37750. abstract="false" native="false" synchronized="false"
  37751. static="false" final="false" visibility="public"
  37752. deprecated="not deprecated">
  37753. <param name="src" type="java.nio.ByteBuffer"/>
  37754. <exception name="IOException" type="java.io.IOException"/>
  37755. </method>
  37756. <method name="waitForWritable"
  37757. abstract="false" native="false" synchronized="false"
  37758. static="false" final="false" visibility="public"
  37759. deprecated="not deprecated">
  37760. <exception name="IOException" type="java.io.IOException"/>
  37761. <doc>
  37762. <![CDATA[waits for the underlying channel to be ready for writing.
  37763. The timeout specified for this stream applies to this wait.
  37764. @throws SocketTimeoutException
  37765. if select on the channel times out.
  37766. @throws IOException
  37767. if any other I/O error occurs.]]>
  37768. </doc>
  37769. </method>
  37770. <method name="transferToFully"
  37771. abstract="false" native="false" synchronized="false"
  37772. static="false" final="false" visibility="public"
  37773. deprecated="not deprecated">
  37774. <param name="fileCh" type="java.nio.channels.FileChannel"/>
  37775. <param name="position" type="long"/>
  37776. <param name="count" type="int"/>
  37777. <exception name="IOException" type="java.io.IOException"/>
  37778. <doc>
  37779. <![CDATA[Transfers data from FileChannel using
  37780. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.
  37781. Similar to readFully(), this waits till requested amount of
  37782. data is transfered.
  37783. @param fileCh FileChannel to transfer data from.
  37784. @param position position within the channel where the transfer begins
  37785. @param count number of bytes to transfer.
  37786. @throws EOFException
  37787. If end of input file is reached before requested number of
  37788. bytes are transfered.
  37789. @throws SocketTimeoutException
  37790. If this channel blocks transfer longer than timeout for
  37791. this stream.
  37792. @throws IOException Includes any exception thrown by
  37793. {@link FileChannel#transferTo(long, long, WritableByteChannel)}.]]>
  37794. </doc>
  37795. </method>
  37796. <doc>
  37797. <![CDATA[This implements an output stream that can have a timeout while writing.
  37798. This sets non-blocking flag on the socket channel.
  37799. So after creating this object , read() on
  37800. {@link Socket#getInputStream()} and write() on
  37801. {@link Socket#getOutputStream()} on the associated socket will throw
  37802. llegalBlockingModeException.
  37803. Please use {@link SocketInputStream} for reading.]]>
  37804. </doc>
  37805. </class>
  37806. <!-- end class org.apache.hadoop.net.SocketOutputStream -->
  37807. <!-- start class org.apache.hadoop.net.SocksSocketFactory -->
  37808. <class name="SocksSocketFactory" extends="javax.net.SocketFactory"
  37809. abstract="false"
  37810. static="false" final="false" visibility="public"
  37811. deprecated="not deprecated">
  37812. <implements name="org.apache.hadoop.conf.Configurable"/>
  37813. <constructor name="SocksSocketFactory"
  37814. static="false" final="false" visibility="public"
  37815. deprecated="not deprecated">
  37816. <doc>
  37817. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  37818. </doc>
  37819. </constructor>
  37820. <constructor name="SocksSocketFactory" type="java.net.Proxy"
  37821. static="false" final="false" visibility="public"
  37822. deprecated="not deprecated">
  37823. <doc>
  37824. <![CDATA[Constructor with a supplied Proxy
  37825. @param proxy the proxy to use to create sockets]]>
  37826. </doc>
  37827. </constructor>
  37828. <method name="createSocket" return="java.net.Socket"
  37829. abstract="false" native="false" synchronized="false"
  37830. static="false" final="false" visibility="public"
  37831. deprecated="not deprecated">
  37832. <exception name="IOException" type="java.io.IOException"/>
  37833. </method>
  37834. <method name="createSocket" return="java.net.Socket"
  37835. abstract="false" native="false" synchronized="false"
  37836. static="false" final="false" visibility="public"
  37837. deprecated="not deprecated">
  37838. <param name="addr" type="java.net.InetAddress"/>
  37839. <param name="port" type="int"/>
  37840. <exception name="IOException" type="java.io.IOException"/>
  37841. </method>
  37842. <method name="createSocket" return="java.net.Socket"
  37843. abstract="false" native="false" synchronized="false"
  37844. static="false" final="false" visibility="public"
  37845. deprecated="not deprecated">
  37846. <param name="addr" type="java.net.InetAddress"/>
  37847. <param name="port" type="int"/>
  37848. <param name="localHostAddr" type="java.net.InetAddress"/>
  37849. <param name="localPort" type="int"/>
  37850. <exception name="IOException" type="java.io.IOException"/>
  37851. </method>
  37852. <method name="createSocket" return="java.net.Socket"
  37853. abstract="false" native="false" synchronized="false"
  37854. static="false" final="false" visibility="public"
  37855. deprecated="not deprecated">
  37856. <param name="host" type="java.lang.String"/>
  37857. <param name="port" type="int"/>
  37858. <exception name="IOException" type="java.io.IOException"/>
  37859. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37860. </method>
  37861. <method name="createSocket" return="java.net.Socket"
  37862. abstract="false" native="false" synchronized="false"
  37863. static="false" final="false" visibility="public"
  37864. deprecated="not deprecated">
  37865. <param name="host" type="java.lang.String"/>
  37866. <param name="port" type="int"/>
  37867. <param name="localHostAddr" type="java.net.InetAddress"/>
  37868. <param name="localPort" type="int"/>
  37869. <exception name="IOException" type="java.io.IOException"/>
  37870. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37871. </method>
  37872. <method name="hashCode" return="int"
  37873. abstract="false" native="false" synchronized="false"
  37874. static="false" final="false" visibility="public"
  37875. deprecated="not deprecated">
  37876. </method>
  37877. <method name="equals" return="boolean"
  37878. abstract="false" native="false" synchronized="false"
  37879. static="false" final="false" visibility="public"
  37880. deprecated="not deprecated">
  37881. <param name="obj" type="java.lang.Object"/>
  37882. </method>
  37883. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  37884. abstract="false" native="false" synchronized="false"
  37885. static="false" final="false" visibility="public"
  37886. deprecated="not deprecated">
  37887. </method>
  37888. <method name="setConf"
  37889. abstract="false" native="false" synchronized="false"
  37890. static="false" final="false" visibility="public"
  37891. deprecated="not deprecated">
  37892. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  37893. </method>
  37894. <doc>
  37895. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  37896. </doc>
  37897. </class>
  37898. <!-- end class org.apache.hadoop.net.SocksSocketFactory -->
  37899. <!-- start class org.apache.hadoop.net.StandardSocketFactory -->
  37900. <class name="StandardSocketFactory" extends="javax.net.SocketFactory"
  37901. abstract="false"
  37902. static="false" final="false" visibility="public"
  37903. deprecated="not deprecated">
  37904. <constructor name="StandardSocketFactory"
  37905. static="false" final="false" visibility="public"
  37906. deprecated="not deprecated">
  37907. <doc>
  37908. <![CDATA[Default empty constructor (for use with the reflection API).]]>
  37909. </doc>
  37910. </constructor>
  37911. <method name="createSocket" return="java.net.Socket"
  37912. abstract="false" native="false" synchronized="false"
  37913. static="false" final="false" visibility="public"
  37914. deprecated="not deprecated">
  37915. <exception name="IOException" type="java.io.IOException"/>
  37916. </method>
  37917. <method name="createSocket" return="java.net.Socket"
  37918. abstract="false" native="false" synchronized="false"
  37919. static="false" final="false" visibility="public"
  37920. deprecated="not deprecated">
  37921. <param name="addr" type="java.net.InetAddress"/>
  37922. <param name="port" type="int"/>
  37923. <exception name="IOException" type="java.io.IOException"/>
  37924. </method>
  37925. <method name="createSocket" return="java.net.Socket"
  37926. abstract="false" native="false" synchronized="false"
  37927. static="false" final="false" visibility="public"
  37928. deprecated="not deprecated">
  37929. <param name="addr" type="java.net.InetAddress"/>
  37930. <param name="port" type="int"/>
  37931. <param name="localHostAddr" type="java.net.InetAddress"/>
  37932. <param name="localPort" type="int"/>
  37933. <exception name="IOException" type="java.io.IOException"/>
  37934. </method>
  37935. <method name="createSocket" return="java.net.Socket"
  37936. abstract="false" native="false" synchronized="false"
  37937. static="false" final="false" visibility="public"
  37938. deprecated="not deprecated">
  37939. <param name="host" type="java.lang.String"/>
  37940. <param name="port" type="int"/>
  37941. <exception name="IOException" type="java.io.IOException"/>
  37942. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37943. </method>
  37944. <method name="createSocket" return="java.net.Socket"
  37945. abstract="false" native="false" synchronized="false"
  37946. static="false" final="false" visibility="public"
  37947. deprecated="not deprecated">
  37948. <param name="host" type="java.lang.String"/>
  37949. <param name="port" type="int"/>
  37950. <param name="localHostAddr" type="java.net.InetAddress"/>
  37951. <param name="localPort" type="int"/>
  37952. <exception name="IOException" type="java.io.IOException"/>
  37953. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  37954. </method>
  37955. <method name="equals" return="boolean"
  37956. abstract="false" native="false" synchronized="false"
  37957. static="false" final="false" visibility="public"
  37958. deprecated="not deprecated">
  37959. <param name="obj" type="java.lang.Object"/>
  37960. </method>
  37961. <method name="hashCode" return="int"
  37962. abstract="false" native="false" synchronized="false"
  37963. static="false" final="false" visibility="public"
  37964. deprecated="not deprecated">
  37965. </method>
  37966. <doc>
  37967. <![CDATA[Specialized SocketFactory to create sockets with a SOCKS proxy]]>
  37968. </doc>
  37969. </class>
  37970. <!-- end class org.apache.hadoop.net.StandardSocketFactory -->
  37971. </package>
  37972. <package name="org.apache.hadoop.record">
  37973. <!-- start class org.apache.hadoop.record.BinaryRecordInput -->
  37974. <class name="BinaryRecordInput" extends="java.lang.Object"
  37975. abstract="false"
  37976. static="false" final="false" visibility="public"
  37977. deprecated="not deprecated">
  37978. <implements name="org.apache.hadoop.record.RecordInput"/>
  37979. <constructor name="BinaryRecordInput" type="java.io.InputStream"
  37980. static="false" final="false" visibility="public"
  37981. deprecated="not deprecated">
  37982. <doc>
  37983. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  37984. </doc>
  37985. </constructor>
  37986. <constructor name="BinaryRecordInput" type="java.io.DataInput"
  37987. static="false" final="false" visibility="public"
  37988. deprecated="not deprecated">
  37989. <doc>
  37990. <![CDATA[Creates a new instance of BinaryRecordInput]]>
  37991. </doc>
  37992. </constructor>
  37993. <method name="get" return="org.apache.hadoop.record.BinaryRecordInput"
  37994. abstract="false" native="false" synchronized="false"
  37995. static="true" final="false" visibility="public"
  37996. deprecated="not deprecated">
  37997. <param name="inp" type="java.io.DataInput"/>
  37998. <doc>
  37999. <![CDATA[Get a thread-local record input for the supplied DataInput.
  38000. @param inp data input stream
  38001. @return binary record input corresponding to the supplied DataInput.]]>
  38002. </doc>
  38003. </method>
  38004. <method name="readByte" return="byte"
  38005. abstract="false" native="false" synchronized="false"
  38006. static="false" final="false" visibility="public"
  38007. deprecated="not deprecated">
  38008. <param name="tag" type="java.lang.String"/>
  38009. <exception name="IOException" type="java.io.IOException"/>
  38010. </method>
  38011. <method name="readBool" return="boolean"
  38012. abstract="false" native="false" synchronized="false"
  38013. static="false" final="false" visibility="public"
  38014. deprecated="not deprecated">
  38015. <param name="tag" type="java.lang.String"/>
  38016. <exception name="IOException" type="java.io.IOException"/>
  38017. </method>
  38018. <method name="readInt" return="int"
  38019. abstract="false" native="false" synchronized="false"
  38020. static="false" final="false" visibility="public"
  38021. deprecated="not deprecated">
  38022. <param name="tag" type="java.lang.String"/>
  38023. <exception name="IOException" type="java.io.IOException"/>
  38024. </method>
  38025. <method name="readLong" return="long"
  38026. abstract="false" native="false" synchronized="false"
  38027. static="false" final="false" visibility="public"
  38028. deprecated="not deprecated">
  38029. <param name="tag" type="java.lang.String"/>
  38030. <exception name="IOException" type="java.io.IOException"/>
  38031. </method>
  38032. <method name="readFloat" return="float"
  38033. abstract="false" native="false" synchronized="false"
  38034. static="false" final="false" visibility="public"
  38035. deprecated="not deprecated">
  38036. <param name="tag" type="java.lang.String"/>
  38037. <exception name="IOException" type="java.io.IOException"/>
  38038. </method>
  38039. <method name="readDouble" return="double"
  38040. abstract="false" native="false" synchronized="false"
  38041. static="false" final="false" visibility="public"
  38042. deprecated="not deprecated">
  38043. <param name="tag" type="java.lang.String"/>
  38044. <exception name="IOException" type="java.io.IOException"/>
  38045. </method>
  38046. <method name="readString" return="java.lang.String"
  38047. abstract="false" native="false" synchronized="false"
  38048. static="false" final="false" visibility="public"
  38049. deprecated="not deprecated">
  38050. <param name="tag" type="java.lang.String"/>
  38051. <exception name="IOException" type="java.io.IOException"/>
  38052. </method>
  38053. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  38054. abstract="false" native="false" synchronized="false"
  38055. static="false" final="false" visibility="public"
  38056. deprecated="not deprecated">
  38057. <param name="tag" type="java.lang.String"/>
  38058. <exception name="IOException" type="java.io.IOException"/>
  38059. </method>
  38060. <method name="startRecord"
  38061. abstract="false" native="false" synchronized="false"
  38062. static="false" final="false" visibility="public"
  38063. deprecated="not deprecated">
  38064. <param name="tag" type="java.lang.String"/>
  38065. <exception name="IOException" type="java.io.IOException"/>
  38066. </method>
  38067. <method name="endRecord"
  38068. abstract="false" native="false" synchronized="false"
  38069. static="false" final="false" visibility="public"
  38070. deprecated="not deprecated">
  38071. <param name="tag" type="java.lang.String"/>
  38072. <exception name="IOException" type="java.io.IOException"/>
  38073. </method>
  38074. <method name="startVector" return="org.apache.hadoop.record.Index"
  38075. abstract="false" native="false" synchronized="false"
  38076. static="false" final="false" visibility="public"
  38077. deprecated="not deprecated">
  38078. <param name="tag" type="java.lang.String"/>
  38079. <exception name="IOException" type="java.io.IOException"/>
  38080. </method>
  38081. <method name="endVector"
  38082. abstract="false" native="false" synchronized="false"
  38083. static="false" final="false" visibility="public"
  38084. deprecated="not deprecated">
  38085. <param name="tag" type="java.lang.String"/>
  38086. <exception name="IOException" type="java.io.IOException"/>
  38087. </method>
  38088. <method name="startMap" return="org.apache.hadoop.record.Index"
  38089. abstract="false" native="false" synchronized="false"
  38090. static="false" final="false" visibility="public"
  38091. deprecated="not deprecated">
  38092. <param name="tag" type="java.lang.String"/>
  38093. <exception name="IOException" type="java.io.IOException"/>
  38094. </method>
  38095. <method name="endMap"
  38096. abstract="false" native="false" synchronized="false"
  38097. static="false" final="false" visibility="public"
  38098. deprecated="not deprecated">
  38099. <param name="tag" type="java.lang.String"/>
  38100. <exception name="IOException" type="java.io.IOException"/>
  38101. </method>
  38102. </class>
  38103. <!-- end class org.apache.hadoop.record.BinaryRecordInput -->
  38104. <!-- start class org.apache.hadoop.record.BinaryRecordOutput -->
  38105. <class name="BinaryRecordOutput" extends="java.lang.Object"
  38106. abstract="false"
  38107. static="false" final="false" visibility="public"
  38108. deprecated="not deprecated">
  38109. <implements name="org.apache.hadoop.record.RecordOutput"/>
  38110. <constructor name="BinaryRecordOutput" type="java.io.OutputStream"
  38111. static="false" final="false" visibility="public"
  38112. deprecated="not deprecated">
  38113. <doc>
  38114. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  38115. </doc>
  38116. </constructor>
  38117. <constructor name="BinaryRecordOutput" type="java.io.DataOutput"
  38118. static="false" final="false" visibility="public"
  38119. deprecated="not deprecated">
  38120. <doc>
  38121. <![CDATA[Creates a new instance of BinaryRecordOutput]]>
  38122. </doc>
  38123. </constructor>
  38124. <method name="get" return="org.apache.hadoop.record.BinaryRecordOutput"
  38125. abstract="false" native="false" synchronized="false"
  38126. static="true" final="false" visibility="public"
  38127. deprecated="not deprecated">
  38128. <param name="out" type="java.io.DataOutput"/>
  38129. <doc>
  38130. <![CDATA[Get a thread-local record output for the supplied DataOutput.
  38131. @param out data output stream
  38132. @return binary record output corresponding to the supplied DataOutput.]]>
  38133. </doc>
  38134. </method>
  38135. <method name="writeByte"
  38136. abstract="false" native="false" synchronized="false"
  38137. static="false" final="false" visibility="public"
  38138. deprecated="not deprecated">
  38139. <param name="b" type="byte"/>
  38140. <param name="tag" type="java.lang.String"/>
  38141. <exception name="IOException" type="java.io.IOException"/>
  38142. </method>
  38143. <method name="writeBool"
  38144. abstract="false" native="false" synchronized="false"
  38145. static="false" final="false" visibility="public"
  38146. deprecated="not deprecated">
  38147. <param name="b" type="boolean"/>
  38148. <param name="tag" type="java.lang.String"/>
  38149. <exception name="IOException" type="java.io.IOException"/>
  38150. </method>
  38151. <method name="writeInt"
  38152. abstract="false" native="false" synchronized="false"
  38153. static="false" final="false" visibility="public"
  38154. deprecated="not deprecated">
  38155. <param name="i" type="int"/>
  38156. <param name="tag" type="java.lang.String"/>
  38157. <exception name="IOException" type="java.io.IOException"/>
  38158. </method>
  38159. <method name="writeLong"
  38160. abstract="false" native="false" synchronized="false"
  38161. static="false" final="false" visibility="public"
  38162. deprecated="not deprecated">
  38163. <param name="l" type="long"/>
  38164. <param name="tag" type="java.lang.String"/>
  38165. <exception name="IOException" type="java.io.IOException"/>
  38166. </method>
  38167. <method name="writeFloat"
  38168. abstract="false" native="false" synchronized="false"
  38169. static="false" final="false" visibility="public"
  38170. deprecated="not deprecated">
  38171. <param name="f" type="float"/>
  38172. <param name="tag" type="java.lang.String"/>
  38173. <exception name="IOException" type="java.io.IOException"/>
  38174. </method>
  38175. <method name="writeDouble"
  38176. abstract="false" native="false" synchronized="false"
  38177. static="false" final="false" visibility="public"
  38178. deprecated="not deprecated">
  38179. <param name="d" type="double"/>
  38180. <param name="tag" type="java.lang.String"/>
  38181. <exception name="IOException" type="java.io.IOException"/>
  38182. </method>
  38183. <method name="writeString"
  38184. abstract="false" native="false" synchronized="false"
  38185. static="false" final="false" visibility="public"
  38186. deprecated="not deprecated">
  38187. <param name="s" type="java.lang.String"/>
  38188. <param name="tag" type="java.lang.String"/>
  38189. <exception name="IOException" type="java.io.IOException"/>
  38190. </method>
  38191. <method name="writeBuffer"
  38192. abstract="false" native="false" synchronized="false"
  38193. static="false" final="false" visibility="public"
  38194. deprecated="not deprecated">
  38195. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  38196. <param name="tag" type="java.lang.String"/>
  38197. <exception name="IOException" type="java.io.IOException"/>
  38198. </method>
  38199. <method name="startRecord"
  38200. abstract="false" native="false" synchronized="false"
  38201. static="false" final="false" visibility="public"
  38202. deprecated="not deprecated">
  38203. <param name="r" type="org.apache.hadoop.record.Record"/>
  38204. <param name="tag" type="java.lang.String"/>
  38205. <exception name="IOException" type="java.io.IOException"/>
  38206. </method>
  38207. <method name="endRecord"
  38208. abstract="false" native="false" synchronized="false"
  38209. static="false" final="false" visibility="public"
  38210. deprecated="not deprecated">
  38211. <param name="r" type="org.apache.hadoop.record.Record"/>
  38212. <param name="tag" type="java.lang.String"/>
  38213. <exception name="IOException" type="java.io.IOException"/>
  38214. </method>
  38215. <method name="startVector"
  38216. abstract="false" native="false" synchronized="false"
  38217. static="false" final="false" visibility="public"
  38218. deprecated="not deprecated">
  38219. <param name="v" type="java.util.ArrayList"/>
  38220. <param name="tag" type="java.lang.String"/>
  38221. <exception name="IOException" type="java.io.IOException"/>
  38222. </method>
  38223. <method name="endVector"
  38224. abstract="false" native="false" synchronized="false"
  38225. static="false" final="false" visibility="public"
  38226. deprecated="not deprecated">
  38227. <param name="v" type="java.util.ArrayList"/>
  38228. <param name="tag" type="java.lang.String"/>
  38229. <exception name="IOException" type="java.io.IOException"/>
  38230. </method>
  38231. <method name="startMap"
  38232. abstract="false" native="false" synchronized="false"
  38233. static="false" final="false" visibility="public"
  38234. deprecated="not deprecated">
  38235. <param name="v" type="java.util.TreeMap"/>
  38236. <param name="tag" type="java.lang.String"/>
  38237. <exception name="IOException" type="java.io.IOException"/>
  38238. </method>
  38239. <method name="endMap"
  38240. abstract="false" native="false" synchronized="false"
  38241. static="false" final="false" visibility="public"
  38242. deprecated="not deprecated">
  38243. <param name="v" type="java.util.TreeMap"/>
  38244. <param name="tag" type="java.lang.String"/>
  38245. <exception name="IOException" type="java.io.IOException"/>
  38246. </method>
  38247. </class>
  38248. <!-- end class org.apache.hadoop.record.BinaryRecordOutput -->
  38249. <!-- start class org.apache.hadoop.record.Buffer -->
  38250. <class name="Buffer" extends="java.lang.Object"
  38251. abstract="false"
  38252. static="false" final="false" visibility="public"
  38253. deprecated="not deprecated">
  38254. <implements name="java.lang.Comparable"/>
  38255. <implements name="java.lang.Cloneable"/>
  38256. <constructor name="Buffer"
  38257. static="false" final="false" visibility="public"
  38258. deprecated="not deprecated">
  38259. <doc>
  38260. <![CDATA[Create a zero-count sequence.]]>
  38261. </doc>
  38262. </constructor>
  38263. <constructor name="Buffer" type="byte[]"
  38264. static="false" final="false" visibility="public"
  38265. deprecated="not deprecated">
  38266. <doc>
  38267. <![CDATA[Create a Buffer using the byte array as the initial value.
  38268. @param bytes This array becomes the backing storage for the object.]]>
  38269. </doc>
  38270. </constructor>
  38271. <constructor name="Buffer" type="byte[], int, int"
  38272. static="false" final="false" visibility="public"
  38273. deprecated="not deprecated">
  38274. <doc>
  38275. <![CDATA[Create a Buffer using the byte range as the initial value.
  38276. @param bytes Copy of this array becomes the backing storage for the object.
  38277. @param offset offset into byte array
  38278. @param length length of data]]>
  38279. </doc>
  38280. </constructor>
  38281. <method name="set"
  38282. abstract="false" native="false" synchronized="false"
  38283. static="false" final="false" visibility="public"
  38284. deprecated="not deprecated">
  38285. <param name="bytes" type="byte[]"/>
  38286. <doc>
  38287. <![CDATA[Use the specified bytes array as underlying sequence.
  38288. @param bytes byte sequence]]>
  38289. </doc>
  38290. </method>
  38291. <method name="copy"
  38292. abstract="false" native="false" synchronized="false"
  38293. static="false" final="true" visibility="public"
  38294. deprecated="not deprecated">
  38295. <param name="bytes" type="byte[]"/>
  38296. <param name="offset" type="int"/>
  38297. <param name="length" type="int"/>
  38298. <doc>
  38299. <![CDATA[Copy the specified byte array to the Buffer. Replaces the current buffer.
  38300. @param bytes byte array to be assigned
  38301. @param offset offset into byte array
  38302. @param length length of data]]>
  38303. </doc>
  38304. </method>
  38305. <method name="get" return="byte[]"
  38306. abstract="false" native="false" synchronized="false"
  38307. static="false" final="false" visibility="public"
  38308. deprecated="not deprecated">
  38309. <doc>
  38310. <![CDATA[Get the data from the Buffer.
  38311. @return The data is only valid between 0 and getCount() - 1.]]>
  38312. </doc>
  38313. </method>
  38314. <method name="getCount" return="int"
  38315. abstract="false" native="false" synchronized="false"
  38316. static="false" final="false" visibility="public"
  38317. deprecated="not deprecated">
  38318. <doc>
  38319. <![CDATA[Get the current count of the buffer.]]>
  38320. </doc>
  38321. </method>
  38322. <method name="getCapacity" return="int"
  38323. abstract="false" native="false" synchronized="false"
  38324. static="false" final="false" visibility="public"
  38325. deprecated="not deprecated">
  38326. <doc>
  38327. <![CDATA[Get the capacity, which is the maximum count that could handled without
  38328. resizing the backing storage.
  38329. @return The number of bytes]]>
  38330. </doc>
  38331. </method>
  38332. <method name="setCapacity"
  38333. abstract="false" native="false" synchronized="false"
  38334. static="false" final="false" visibility="public"
  38335. deprecated="not deprecated">
  38336. <param name="newCapacity" type="int"/>
  38337. <doc>
  38338. <![CDATA[Change the capacity of the backing storage.
  38339. The data is preserved if newCapacity >= getCount().
  38340. @param newCapacity The new capacity in bytes.]]>
  38341. </doc>
  38342. </method>
  38343. <method name="reset"
  38344. abstract="false" native="false" synchronized="false"
  38345. static="false" final="false" visibility="public"
  38346. deprecated="not deprecated">
  38347. <doc>
  38348. <![CDATA[Reset the buffer to 0 size]]>
  38349. </doc>
  38350. </method>
  38351. <method name="truncate"
  38352. abstract="false" native="false" synchronized="false"
  38353. static="false" final="false" visibility="public"
  38354. deprecated="not deprecated">
  38355. <doc>
  38356. <![CDATA[Change the capacity of the backing store to be the same as the current
  38357. count of buffer.]]>
  38358. </doc>
  38359. </method>
  38360. <method name="append"
  38361. abstract="false" native="false" synchronized="false"
  38362. static="false" final="false" visibility="public"
  38363. deprecated="not deprecated">
  38364. <param name="bytes" type="byte[]"/>
  38365. <param name="offset" type="int"/>
  38366. <param name="length" type="int"/>
  38367. <doc>
  38368. <![CDATA[Append specified bytes to the buffer.
  38369. @param bytes byte array to be appended
  38370. @param offset offset into byte array
  38371. @param length length of data]]>
  38372. </doc>
  38373. </method>
  38374. <method name="append"
  38375. abstract="false" native="false" synchronized="false"
  38376. static="false" final="false" visibility="public"
  38377. deprecated="not deprecated">
  38378. <param name="bytes" type="byte[]"/>
  38379. <doc>
  38380. <![CDATA[Append specified bytes to the buffer
  38381. @param bytes byte array to be appended]]>
  38382. </doc>
  38383. </method>
  38384. <method name="hashCode" return="int"
  38385. abstract="false" native="false" synchronized="false"
  38386. static="false" final="false" visibility="public"
  38387. deprecated="not deprecated">
  38388. </method>
  38389. <method name="compareTo" return="int"
  38390. abstract="false" native="false" synchronized="false"
  38391. static="false" final="false" visibility="public"
  38392. deprecated="not deprecated">
  38393. <param name="other" type="java.lang.Object"/>
  38394. <doc>
  38395. <![CDATA[Define the sort order of the Buffer.
  38396. @param other The other buffer
  38397. @return Positive if this is bigger than other, 0 if they are equal, and
  38398. negative if this is smaller than other.]]>
  38399. </doc>
  38400. </method>
  38401. <method name="equals" return="boolean"
  38402. abstract="false" native="false" synchronized="false"
  38403. static="false" final="false" visibility="public"
  38404. deprecated="not deprecated">
  38405. <param name="other" type="java.lang.Object"/>
  38406. </method>
  38407. <method name="toString" return="java.lang.String"
  38408. abstract="false" native="false" synchronized="false"
  38409. static="false" final="false" visibility="public"
  38410. deprecated="not deprecated">
  38411. </method>
  38412. <method name="toString" return="java.lang.String"
  38413. abstract="false" native="false" synchronized="false"
  38414. static="false" final="false" visibility="public"
  38415. deprecated="not deprecated">
  38416. <param name="charsetName" type="java.lang.String"/>
  38417. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  38418. <doc>
  38419. <![CDATA[Convert the byte buffer to a string an specific character encoding
  38420. @param charsetName Valid Java Character Set Name]]>
  38421. </doc>
  38422. </method>
  38423. <method name="clone" return="java.lang.Object"
  38424. abstract="false" native="false" synchronized="false"
  38425. static="false" final="false" visibility="public"
  38426. deprecated="not deprecated">
  38427. <exception name="CloneNotSupportedException" type="java.lang.CloneNotSupportedException"/>
  38428. </method>
  38429. <doc>
  38430. <![CDATA[A byte sequence that is used as a Java native type for buffer.
  38431. It is resizable and distinguishes between the count of the seqeunce and
  38432. the current capacity.]]>
  38433. </doc>
  38434. </class>
  38435. <!-- end class org.apache.hadoop.record.Buffer -->
  38436. <!-- start class org.apache.hadoop.record.CsvRecordInput -->
  38437. <class name="CsvRecordInput" extends="java.lang.Object"
  38438. abstract="false"
  38439. static="false" final="false" visibility="public"
  38440. deprecated="not deprecated">
  38441. <implements name="org.apache.hadoop.record.RecordInput"/>
  38442. <constructor name="CsvRecordInput" type="java.io.InputStream"
  38443. static="false" final="false" visibility="public"
  38444. deprecated="not deprecated">
  38445. <doc>
  38446. <![CDATA[Creates a new instance of CsvRecordInput]]>
  38447. </doc>
  38448. </constructor>
  38449. <method name="readByte" return="byte"
  38450. abstract="false" native="false" synchronized="false"
  38451. static="false" final="false" visibility="public"
  38452. deprecated="not deprecated">
  38453. <param name="tag" type="java.lang.String"/>
  38454. <exception name="IOException" type="java.io.IOException"/>
  38455. </method>
  38456. <method name="readBool" return="boolean"
  38457. abstract="false" native="false" synchronized="false"
  38458. static="false" final="false" visibility="public"
  38459. deprecated="not deprecated">
  38460. <param name="tag" type="java.lang.String"/>
  38461. <exception name="IOException" type="java.io.IOException"/>
  38462. </method>
  38463. <method name="readInt" return="int"
  38464. abstract="false" native="false" synchronized="false"
  38465. static="false" final="false" visibility="public"
  38466. deprecated="not deprecated">
  38467. <param name="tag" type="java.lang.String"/>
  38468. <exception name="IOException" type="java.io.IOException"/>
  38469. </method>
  38470. <method name="readLong" return="long"
  38471. abstract="false" native="false" synchronized="false"
  38472. static="false" final="false" visibility="public"
  38473. deprecated="not deprecated">
  38474. <param name="tag" type="java.lang.String"/>
  38475. <exception name="IOException" type="java.io.IOException"/>
  38476. </method>
  38477. <method name="readFloat" return="float"
  38478. abstract="false" native="false" synchronized="false"
  38479. static="false" final="false" visibility="public"
  38480. deprecated="not deprecated">
  38481. <param name="tag" type="java.lang.String"/>
  38482. <exception name="IOException" type="java.io.IOException"/>
  38483. </method>
  38484. <method name="readDouble" return="double"
  38485. abstract="false" native="false" synchronized="false"
  38486. static="false" final="false" visibility="public"
  38487. deprecated="not deprecated">
  38488. <param name="tag" type="java.lang.String"/>
  38489. <exception name="IOException" type="java.io.IOException"/>
  38490. </method>
  38491. <method name="readString" return="java.lang.String"
  38492. abstract="false" native="false" synchronized="false"
  38493. static="false" final="false" visibility="public"
  38494. deprecated="not deprecated">
  38495. <param name="tag" type="java.lang.String"/>
  38496. <exception name="IOException" type="java.io.IOException"/>
  38497. </method>
  38498. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  38499. abstract="false" native="false" synchronized="false"
  38500. static="false" final="false" visibility="public"
  38501. deprecated="not deprecated">
  38502. <param name="tag" type="java.lang.String"/>
  38503. <exception name="IOException" type="java.io.IOException"/>
  38504. </method>
  38505. <method name="startRecord"
  38506. abstract="false" native="false" synchronized="false"
  38507. static="false" final="false" visibility="public"
  38508. deprecated="not deprecated">
  38509. <param name="tag" type="java.lang.String"/>
  38510. <exception name="IOException" type="java.io.IOException"/>
  38511. </method>
  38512. <method name="endRecord"
  38513. abstract="false" native="false" synchronized="false"
  38514. static="false" final="false" visibility="public"
  38515. deprecated="not deprecated">
  38516. <param name="tag" type="java.lang.String"/>
  38517. <exception name="IOException" type="java.io.IOException"/>
  38518. </method>
  38519. <method name="startVector" return="org.apache.hadoop.record.Index"
  38520. abstract="false" native="false" synchronized="false"
  38521. static="false" final="false" visibility="public"
  38522. deprecated="not deprecated">
  38523. <param name="tag" type="java.lang.String"/>
  38524. <exception name="IOException" type="java.io.IOException"/>
  38525. </method>
  38526. <method name="endVector"
  38527. abstract="false" native="false" synchronized="false"
  38528. static="false" final="false" visibility="public"
  38529. deprecated="not deprecated">
  38530. <param name="tag" type="java.lang.String"/>
  38531. <exception name="IOException" type="java.io.IOException"/>
  38532. </method>
  38533. <method name="startMap" return="org.apache.hadoop.record.Index"
  38534. abstract="false" native="false" synchronized="false"
  38535. static="false" final="false" visibility="public"
  38536. deprecated="not deprecated">
  38537. <param name="tag" type="java.lang.String"/>
  38538. <exception name="IOException" type="java.io.IOException"/>
  38539. </method>
  38540. <method name="endMap"
  38541. abstract="false" native="false" synchronized="false"
  38542. static="false" final="false" visibility="public"
  38543. deprecated="not deprecated">
  38544. <param name="tag" type="java.lang.String"/>
  38545. <exception name="IOException" type="java.io.IOException"/>
  38546. </method>
  38547. </class>
  38548. <!-- end class org.apache.hadoop.record.CsvRecordInput -->
  38549. <!-- start class org.apache.hadoop.record.CsvRecordOutput -->
  38550. <class name="CsvRecordOutput" extends="java.lang.Object"
  38551. abstract="false"
  38552. static="false" final="false" visibility="public"
  38553. deprecated="not deprecated">
  38554. <implements name="org.apache.hadoop.record.RecordOutput"/>
  38555. <constructor name="CsvRecordOutput" type="java.io.OutputStream"
  38556. static="false" final="false" visibility="public"
  38557. deprecated="not deprecated">
  38558. <doc>
  38559. <![CDATA[Creates a new instance of CsvRecordOutput]]>
  38560. </doc>
  38561. </constructor>
  38562. <method name="writeByte"
  38563. abstract="false" native="false" synchronized="false"
  38564. static="false" final="false" visibility="public"
  38565. deprecated="not deprecated">
  38566. <param name="b" type="byte"/>
  38567. <param name="tag" type="java.lang.String"/>
  38568. <exception name="IOException" type="java.io.IOException"/>
  38569. </method>
  38570. <method name="writeBool"
  38571. abstract="false" native="false" synchronized="false"
  38572. static="false" final="false" visibility="public"
  38573. deprecated="not deprecated">
  38574. <param name="b" type="boolean"/>
  38575. <param name="tag" type="java.lang.String"/>
  38576. <exception name="IOException" type="java.io.IOException"/>
  38577. </method>
  38578. <method name="writeInt"
  38579. abstract="false" native="false" synchronized="false"
  38580. static="false" final="false" visibility="public"
  38581. deprecated="not deprecated">
  38582. <param name="i" type="int"/>
  38583. <param name="tag" type="java.lang.String"/>
  38584. <exception name="IOException" type="java.io.IOException"/>
  38585. </method>
  38586. <method name="writeLong"
  38587. abstract="false" native="false" synchronized="false"
  38588. static="false" final="false" visibility="public"
  38589. deprecated="not deprecated">
  38590. <param name="l" type="long"/>
  38591. <param name="tag" type="java.lang.String"/>
  38592. <exception name="IOException" type="java.io.IOException"/>
  38593. </method>
  38594. <method name="writeFloat"
  38595. abstract="false" native="false" synchronized="false"
  38596. static="false" final="false" visibility="public"
  38597. deprecated="not deprecated">
  38598. <param name="f" type="float"/>
  38599. <param name="tag" type="java.lang.String"/>
  38600. <exception name="IOException" type="java.io.IOException"/>
  38601. </method>
  38602. <method name="writeDouble"
  38603. abstract="false" native="false" synchronized="false"
  38604. static="false" final="false" visibility="public"
  38605. deprecated="not deprecated">
  38606. <param name="d" type="double"/>
  38607. <param name="tag" type="java.lang.String"/>
  38608. <exception name="IOException" type="java.io.IOException"/>
  38609. </method>
  38610. <method name="writeString"
  38611. abstract="false" native="false" synchronized="false"
  38612. static="false" final="false" visibility="public"
  38613. deprecated="not deprecated">
  38614. <param name="s" type="java.lang.String"/>
  38615. <param name="tag" type="java.lang.String"/>
  38616. <exception name="IOException" type="java.io.IOException"/>
  38617. </method>
  38618. <method name="writeBuffer"
  38619. abstract="false" native="false" synchronized="false"
  38620. static="false" final="false" visibility="public"
  38621. deprecated="not deprecated">
  38622. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  38623. <param name="tag" type="java.lang.String"/>
  38624. <exception name="IOException" type="java.io.IOException"/>
  38625. </method>
  38626. <method name="startRecord"
  38627. abstract="false" native="false" synchronized="false"
  38628. static="false" final="false" visibility="public"
  38629. deprecated="not deprecated">
  38630. <param name="r" type="org.apache.hadoop.record.Record"/>
  38631. <param name="tag" type="java.lang.String"/>
  38632. <exception name="IOException" type="java.io.IOException"/>
  38633. </method>
  38634. <method name="endRecord"
  38635. abstract="false" native="false" synchronized="false"
  38636. static="false" final="false" visibility="public"
  38637. deprecated="not deprecated">
  38638. <param name="r" type="org.apache.hadoop.record.Record"/>
  38639. <param name="tag" type="java.lang.String"/>
  38640. <exception name="IOException" type="java.io.IOException"/>
  38641. </method>
  38642. <method name="startVector"
  38643. abstract="false" native="false" synchronized="false"
  38644. static="false" final="false" visibility="public"
  38645. deprecated="not deprecated">
  38646. <param name="v" type="java.util.ArrayList"/>
  38647. <param name="tag" type="java.lang.String"/>
  38648. <exception name="IOException" type="java.io.IOException"/>
  38649. </method>
  38650. <method name="endVector"
  38651. abstract="false" native="false" synchronized="false"
  38652. static="false" final="false" visibility="public"
  38653. deprecated="not deprecated">
  38654. <param name="v" type="java.util.ArrayList"/>
  38655. <param name="tag" type="java.lang.String"/>
  38656. <exception name="IOException" type="java.io.IOException"/>
  38657. </method>
  38658. <method name="startMap"
  38659. abstract="false" native="false" synchronized="false"
  38660. static="false" final="false" visibility="public"
  38661. deprecated="not deprecated">
  38662. <param name="v" type="java.util.TreeMap"/>
  38663. <param name="tag" type="java.lang.String"/>
  38664. <exception name="IOException" type="java.io.IOException"/>
  38665. </method>
  38666. <method name="endMap"
  38667. abstract="false" native="false" synchronized="false"
  38668. static="false" final="false" visibility="public"
  38669. deprecated="not deprecated">
  38670. <param name="v" type="java.util.TreeMap"/>
  38671. <param name="tag" type="java.lang.String"/>
  38672. <exception name="IOException" type="java.io.IOException"/>
  38673. </method>
  38674. </class>
  38675. <!-- end class org.apache.hadoop.record.CsvRecordOutput -->
  38676. <!-- start interface org.apache.hadoop.record.Index -->
  38677. <interface name="Index" abstract="true"
  38678. static="false" final="false" visibility="public"
  38679. deprecated="not deprecated">
  38680. <method name="done" return="boolean"
  38681. abstract="false" native="false" synchronized="false"
  38682. static="false" final="false" visibility="public"
  38683. deprecated="not deprecated">
  38684. </method>
  38685. <method name="incr"
  38686. abstract="false" native="false" synchronized="false"
  38687. static="false" final="false" visibility="public"
  38688. deprecated="not deprecated">
  38689. </method>
  38690. <doc>
  38691. <![CDATA[Interface that acts as an iterator for deserializing maps.
  38692. The deserializer returns an instance that the record uses to
  38693. read vectors and maps. An example of usage is as follows:
  38694. <code>
  38695. Index idx = startVector(...);
  38696. while (!idx.done()) {
  38697. .... // read element of a vector
  38698. idx.incr();
  38699. }
  38700. </code>]]>
  38701. </doc>
  38702. </interface>
  38703. <!-- end interface org.apache.hadoop.record.Index -->
  38704. <!-- start class org.apache.hadoop.record.Record -->
  38705. <class name="Record" extends="java.lang.Object"
  38706. abstract="true"
  38707. static="false" final="false" visibility="public"
  38708. deprecated="not deprecated">
  38709. <implements name="org.apache.hadoop.io.WritableComparable"/>
  38710. <implements name="java.lang.Cloneable"/>
  38711. <constructor name="Record"
  38712. static="false" final="false" visibility="public"
  38713. deprecated="not deprecated">
  38714. </constructor>
  38715. <method name="serialize"
  38716. abstract="true" native="false" synchronized="false"
  38717. static="false" final="false" visibility="public"
  38718. deprecated="not deprecated">
  38719. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  38720. <param name="tag" type="java.lang.String"/>
  38721. <exception name="IOException" type="java.io.IOException"/>
  38722. <doc>
  38723. <![CDATA[Serialize a record with tag (ususally field name)
  38724. @param rout Record output destination
  38725. @param tag record tag (Used only in tagged serialization e.g. XML)]]>
  38726. </doc>
  38727. </method>
  38728. <method name="deserialize"
  38729. abstract="true" native="false" synchronized="false"
  38730. static="false" final="false" visibility="public"
  38731. deprecated="not deprecated">
  38732. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  38733. <param name="tag" type="java.lang.String"/>
  38734. <exception name="IOException" type="java.io.IOException"/>
  38735. <doc>
  38736. <![CDATA[Deserialize a record with a tag (usually field name)
  38737. @param rin Record input source
  38738. @param tag Record tag (Used only in tagged serialization e.g. XML)]]>
  38739. </doc>
  38740. </method>
  38741. <method name="compareTo" return="int"
  38742. abstract="true" native="false" synchronized="false"
  38743. static="false" final="false" visibility="public"
  38744. deprecated="not deprecated">
  38745. <param name="peer" type="java.lang.Object"/>
  38746. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  38747. </method>
  38748. <method name="serialize"
  38749. abstract="false" native="false" synchronized="false"
  38750. static="false" final="false" visibility="public"
  38751. deprecated="not deprecated">
  38752. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  38753. <exception name="IOException" type="java.io.IOException"/>
  38754. <doc>
  38755. <![CDATA[Serialize a record without a tag
  38756. @param rout Record output destination]]>
  38757. </doc>
  38758. </method>
  38759. <method name="deserialize"
  38760. abstract="false" native="false" synchronized="false"
  38761. static="false" final="false" visibility="public"
  38762. deprecated="not deprecated">
  38763. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  38764. <exception name="IOException" type="java.io.IOException"/>
  38765. <doc>
  38766. <![CDATA[Deserialize a record without a tag
  38767. @param rin Record input source]]>
  38768. </doc>
  38769. </method>
  38770. <method name="write"
  38771. abstract="false" native="false" synchronized="false"
  38772. static="false" final="false" visibility="public"
  38773. deprecated="not deprecated">
  38774. <param name="out" type="java.io.DataOutput"/>
  38775. <exception name="IOException" type="java.io.IOException"/>
  38776. </method>
  38777. <method name="readFields"
  38778. abstract="false" native="false" synchronized="false"
  38779. static="false" final="false" visibility="public"
  38780. deprecated="not deprecated">
  38781. <param name="din" type="java.io.DataInput"/>
  38782. <exception name="IOException" type="java.io.IOException"/>
  38783. </method>
  38784. <method name="toString" return="java.lang.String"
  38785. abstract="false" native="false" synchronized="false"
  38786. static="false" final="false" visibility="public"
  38787. deprecated="not deprecated">
  38788. </method>
  38789. <doc>
  38790. <![CDATA[Abstract class that is extended by generated classes.]]>
  38791. </doc>
  38792. </class>
  38793. <!-- end class org.apache.hadoop.record.Record -->
  38794. <!-- start class org.apache.hadoop.record.RecordComparator -->
  38795. <class name="RecordComparator" extends="org.apache.hadoop.io.WritableComparator"
  38796. abstract="true"
  38797. static="false" final="false" visibility="public"
  38798. deprecated="not deprecated">
  38799. <constructor name="RecordComparator" type="java.lang.Class"
  38800. static="false" final="false" visibility="protected"
  38801. deprecated="not deprecated">
  38802. <doc>
  38803. <![CDATA[Construct a raw {@link Record} comparison implementation.]]>
  38804. </doc>
  38805. </constructor>
  38806. <method name="compare" return="int"
  38807. abstract="true" native="false" synchronized="false"
  38808. static="false" final="false" visibility="public"
  38809. deprecated="not deprecated">
  38810. <param name="b1" type="byte[]"/>
  38811. <param name="s1" type="int"/>
  38812. <param name="l1" type="int"/>
  38813. <param name="b2" type="byte[]"/>
  38814. <param name="s2" type="int"/>
  38815. <param name="l2" type="int"/>
  38816. </method>
  38817. <method name="define"
  38818. abstract="false" native="false" synchronized="true"
  38819. static="true" final="false" visibility="public"
  38820. deprecated="not deprecated">
  38821. <param name="c" type="java.lang.Class"/>
  38822. <param name="comparator" type="org.apache.hadoop.record.RecordComparator"/>
  38823. <doc>
  38824. <![CDATA[Register an optimized comparator for a {@link Record} implementation.
  38825. @param c record classs for which a raw comparator is provided
  38826. @param comparator Raw comparator instance for class c]]>
  38827. </doc>
  38828. </method>
  38829. <doc>
  38830. <![CDATA[A raw record comparator base class]]>
  38831. </doc>
  38832. </class>
  38833. <!-- end class org.apache.hadoop.record.RecordComparator -->
  38834. <!-- start interface org.apache.hadoop.record.RecordInput -->
  38835. <interface name="RecordInput" abstract="true"
  38836. static="false" final="false" visibility="public"
  38837. deprecated="not deprecated">
  38838. <method name="readByte" return="byte"
  38839. abstract="false" native="false" synchronized="false"
  38840. static="false" final="false" visibility="public"
  38841. deprecated="not deprecated">
  38842. <param name="tag" type="java.lang.String"/>
  38843. <exception name="IOException" type="java.io.IOException"/>
  38844. <doc>
  38845. <![CDATA[Read a byte from serialized record.
  38846. @param tag Used by tagged serialization formats (such as XML)
  38847. @return value read from serialized record.]]>
  38848. </doc>
  38849. </method>
  38850. <method name="readBool" return="boolean"
  38851. abstract="false" native="false" synchronized="false"
  38852. static="false" final="false" visibility="public"
  38853. deprecated="not deprecated">
  38854. <param name="tag" type="java.lang.String"/>
  38855. <exception name="IOException" type="java.io.IOException"/>
  38856. <doc>
  38857. <![CDATA[Read a boolean from serialized record.
  38858. @param tag Used by tagged serialization formats (such as XML)
  38859. @return value read from serialized record.]]>
  38860. </doc>
  38861. </method>
  38862. <method name="readInt" return="int"
  38863. abstract="false" native="false" synchronized="false"
  38864. static="false" final="false" visibility="public"
  38865. deprecated="not deprecated">
  38866. <param name="tag" type="java.lang.String"/>
  38867. <exception name="IOException" type="java.io.IOException"/>
  38868. <doc>
  38869. <![CDATA[Read an integer from serialized record.
  38870. @param tag Used by tagged serialization formats (such as XML)
  38871. @return value read from serialized record.]]>
  38872. </doc>
  38873. </method>
  38874. <method name="readLong" return="long"
  38875. abstract="false" native="false" synchronized="false"
  38876. static="false" final="false" visibility="public"
  38877. deprecated="not deprecated">
  38878. <param name="tag" type="java.lang.String"/>
  38879. <exception name="IOException" type="java.io.IOException"/>
  38880. <doc>
  38881. <![CDATA[Read a long integer from serialized record.
  38882. @param tag Used by tagged serialization formats (such as XML)
  38883. @return value read from serialized record.]]>
  38884. </doc>
  38885. </method>
  38886. <method name="readFloat" return="float"
  38887. abstract="false" native="false" synchronized="false"
  38888. static="false" final="false" visibility="public"
  38889. deprecated="not deprecated">
  38890. <param name="tag" type="java.lang.String"/>
  38891. <exception name="IOException" type="java.io.IOException"/>
  38892. <doc>
  38893. <![CDATA[Read a single-precision float from serialized record.
  38894. @param tag Used by tagged serialization formats (such as XML)
  38895. @return value read from serialized record.]]>
  38896. </doc>
  38897. </method>
  38898. <method name="readDouble" return="double"
  38899. abstract="false" native="false" synchronized="false"
  38900. static="false" final="false" visibility="public"
  38901. deprecated="not deprecated">
  38902. <param name="tag" type="java.lang.String"/>
  38903. <exception name="IOException" type="java.io.IOException"/>
  38904. <doc>
  38905. <![CDATA[Read a double-precision number from serialized record.
  38906. @param tag Used by tagged serialization formats (such as XML)
  38907. @return value read from serialized record.]]>
  38908. </doc>
  38909. </method>
  38910. <method name="readString" return="java.lang.String"
  38911. abstract="false" native="false" synchronized="false"
  38912. static="false" final="false" visibility="public"
  38913. deprecated="not deprecated">
  38914. <param name="tag" type="java.lang.String"/>
  38915. <exception name="IOException" type="java.io.IOException"/>
  38916. <doc>
  38917. <![CDATA[Read a UTF-8 encoded string from serialized record.
  38918. @param tag Used by tagged serialization formats (such as XML)
  38919. @return value read from serialized record.]]>
  38920. </doc>
  38921. </method>
  38922. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  38923. abstract="false" native="false" synchronized="false"
  38924. static="false" final="false" visibility="public"
  38925. deprecated="not deprecated">
  38926. <param name="tag" type="java.lang.String"/>
  38927. <exception name="IOException" type="java.io.IOException"/>
  38928. <doc>
  38929. <![CDATA[Read byte array from serialized record.
  38930. @param tag Used by tagged serialization formats (such as XML)
  38931. @return value read from serialized record.]]>
  38932. </doc>
  38933. </method>
  38934. <method name="startRecord"
  38935. abstract="false" native="false" synchronized="false"
  38936. static="false" final="false" visibility="public"
  38937. deprecated="not deprecated">
  38938. <param name="tag" type="java.lang.String"/>
  38939. <exception name="IOException" type="java.io.IOException"/>
  38940. <doc>
  38941. <![CDATA[Check the mark for start of the serialized record.
  38942. @param tag Used by tagged serialization formats (such as XML)]]>
  38943. </doc>
  38944. </method>
  38945. <method name="endRecord"
  38946. abstract="false" native="false" synchronized="false"
  38947. static="false" final="false" visibility="public"
  38948. deprecated="not deprecated">
  38949. <param name="tag" type="java.lang.String"/>
  38950. <exception name="IOException" type="java.io.IOException"/>
  38951. <doc>
  38952. <![CDATA[Check the mark for end of the serialized record.
  38953. @param tag Used by tagged serialization formats (such as XML)]]>
  38954. </doc>
  38955. </method>
  38956. <method name="startVector" return="org.apache.hadoop.record.Index"
  38957. abstract="false" native="false" synchronized="false"
  38958. static="false" final="false" visibility="public"
  38959. deprecated="not deprecated">
  38960. <param name="tag" type="java.lang.String"/>
  38961. <exception name="IOException" type="java.io.IOException"/>
  38962. <doc>
  38963. <![CDATA[Check the mark for start of the serialized vector.
  38964. @param tag Used by tagged serialization formats (such as XML)
  38965. @return Index that is used to count the number of elements.]]>
  38966. </doc>
  38967. </method>
  38968. <method name="endVector"
  38969. abstract="false" native="false" synchronized="false"
  38970. static="false" final="false" visibility="public"
  38971. deprecated="not deprecated">
  38972. <param name="tag" type="java.lang.String"/>
  38973. <exception name="IOException" type="java.io.IOException"/>
  38974. <doc>
  38975. <![CDATA[Check the mark for end of the serialized vector.
  38976. @param tag Used by tagged serialization formats (such as XML)]]>
  38977. </doc>
  38978. </method>
  38979. <method name="startMap" return="org.apache.hadoop.record.Index"
  38980. abstract="false" native="false" synchronized="false"
  38981. static="false" final="false" visibility="public"
  38982. deprecated="not deprecated">
  38983. <param name="tag" type="java.lang.String"/>
  38984. <exception name="IOException" type="java.io.IOException"/>
  38985. <doc>
  38986. <![CDATA[Check the mark for start of the serialized map.
  38987. @param tag Used by tagged serialization formats (such as XML)
  38988. @return Index that is used to count the number of map entries.]]>
  38989. </doc>
  38990. </method>
  38991. <method name="endMap"
  38992. abstract="false" native="false" synchronized="false"
  38993. static="false" final="false" visibility="public"
  38994. deprecated="not deprecated">
  38995. <param name="tag" type="java.lang.String"/>
  38996. <exception name="IOException" type="java.io.IOException"/>
  38997. <doc>
  38998. <![CDATA[Check the mark for end of the serialized map.
  38999. @param tag Used by tagged serialization formats (such as XML)]]>
  39000. </doc>
  39001. </method>
  39002. <doc>
  39003. <![CDATA[Interface that all the Deserializers have to implement.]]>
  39004. </doc>
  39005. </interface>
  39006. <!-- end interface org.apache.hadoop.record.RecordInput -->
  39007. <!-- start interface org.apache.hadoop.record.RecordOutput -->
  39008. <interface name="RecordOutput" abstract="true"
  39009. static="false" final="false" visibility="public"
  39010. deprecated="not deprecated">
  39011. <method name="writeByte"
  39012. abstract="false" native="false" synchronized="false"
  39013. static="false" final="false" visibility="public"
  39014. deprecated="not deprecated">
  39015. <param name="b" type="byte"/>
  39016. <param name="tag" type="java.lang.String"/>
  39017. <exception name="IOException" type="java.io.IOException"/>
  39018. <doc>
  39019. <![CDATA[Write a byte to serialized record.
  39020. @param b Byte to be serialized
  39021. @param tag Used by tagged serialization formats (such as XML)
  39022. @throws IOException Indicates error in serialization]]>
  39023. </doc>
  39024. </method>
  39025. <method name="writeBool"
  39026. abstract="false" native="false" synchronized="false"
  39027. static="false" final="false" visibility="public"
  39028. deprecated="not deprecated">
  39029. <param name="b" type="boolean"/>
  39030. <param name="tag" type="java.lang.String"/>
  39031. <exception name="IOException" type="java.io.IOException"/>
  39032. <doc>
  39033. <![CDATA[Write a boolean to serialized record.
  39034. @param b Boolean to be serialized
  39035. @param tag Used by tagged serialization formats (such as XML)
  39036. @throws IOException Indicates error in serialization]]>
  39037. </doc>
  39038. </method>
  39039. <method name="writeInt"
  39040. abstract="false" native="false" synchronized="false"
  39041. static="false" final="false" visibility="public"
  39042. deprecated="not deprecated">
  39043. <param name="i" type="int"/>
  39044. <param name="tag" type="java.lang.String"/>
  39045. <exception name="IOException" type="java.io.IOException"/>
  39046. <doc>
  39047. <![CDATA[Write an integer to serialized record.
  39048. @param i Integer to be serialized
  39049. @param tag Used by tagged serialization formats (such as XML)
  39050. @throws IOException Indicates error in serialization]]>
  39051. </doc>
  39052. </method>
  39053. <method name="writeLong"
  39054. abstract="false" native="false" synchronized="false"
  39055. static="false" final="false" visibility="public"
  39056. deprecated="not deprecated">
  39057. <param name="l" type="long"/>
  39058. <param name="tag" type="java.lang.String"/>
  39059. <exception name="IOException" type="java.io.IOException"/>
  39060. <doc>
  39061. <![CDATA[Write a long integer to serialized record.
  39062. @param l Long to be serialized
  39063. @param tag Used by tagged serialization formats (such as XML)
  39064. @throws IOException Indicates error in serialization]]>
  39065. </doc>
  39066. </method>
  39067. <method name="writeFloat"
  39068. abstract="false" native="false" synchronized="false"
  39069. static="false" final="false" visibility="public"
  39070. deprecated="not deprecated">
  39071. <param name="f" type="float"/>
  39072. <param name="tag" type="java.lang.String"/>
  39073. <exception name="IOException" type="java.io.IOException"/>
  39074. <doc>
  39075. <![CDATA[Write a single-precision float to serialized record.
  39076. @param f Float to be serialized
  39077. @param tag Used by tagged serialization formats (such as XML)
  39078. @throws IOException Indicates error in serialization]]>
  39079. </doc>
  39080. </method>
  39081. <method name="writeDouble"
  39082. abstract="false" native="false" synchronized="false"
  39083. static="false" final="false" visibility="public"
  39084. deprecated="not deprecated">
  39085. <param name="d" type="double"/>
  39086. <param name="tag" type="java.lang.String"/>
  39087. <exception name="IOException" type="java.io.IOException"/>
  39088. <doc>
  39089. <![CDATA[Write a double precision floating point number to serialized record.
  39090. @param d Double to be serialized
  39091. @param tag Used by tagged serialization formats (such as XML)
  39092. @throws IOException Indicates error in serialization]]>
  39093. </doc>
  39094. </method>
  39095. <method name="writeString"
  39096. abstract="false" native="false" synchronized="false"
  39097. static="false" final="false" visibility="public"
  39098. deprecated="not deprecated">
  39099. <param name="s" type="java.lang.String"/>
  39100. <param name="tag" type="java.lang.String"/>
  39101. <exception name="IOException" type="java.io.IOException"/>
  39102. <doc>
  39103. <![CDATA[Write a unicode string to serialized record.
  39104. @param s String to be serialized
  39105. @param tag Used by tagged serialization formats (such as XML)
  39106. @throws IOException Indicates error in serialization]]>
  39107. </doc>
  39108. </method>
  39109. <method name="writeBuffer"
  39110. abstract="false" native="false" synchronized="false"
  39111. static="false" final="false" visibility="public"
  39112. deprecated="not deprecated">
  39113. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  39114. <param name="tag" type="java.lang.String"/>
  39115. <exception name="IOException" type="java.io.IOException"/>
  39116. <doc>
  39117. <![CDATA[Write a buffer to serialized record.
  39118. @param buf Buffer to be serialized
  39119. @param tag Used by tagged serialization formats (such as XML)
  39120. @throws IOException Indicates error in serialization]]>
  39121. </doc>
  39122. </method>
  39123. <method name="startRecord"
  39124. abstract="false" native="false" synchronized="false"
  39125. static="false" final="false" visibility="public"
  39126. deprecated="not deprecated">
  39127. <param name="r" type="org.apache.hadoop.record.Record"/>
  39128. <param name="tag" type="java.lang.String"/>
  39129. <exception name="IOException" type="java.io.IOException"/>
  39130. <doc>
  39131. <![CDATA[Mark the start of a record to be serialized.
  39132. @param r Record to be serialized
  39133. @param tag Used by tagged serialization formats (such as XML)
  39134. @throws IOException Indicates error in serialization]]>
  39135. </doc>
  39136. </method>
  39137. <method name="endRecord"
  39138. abstract="false" native="false" synchronized="false"
  39139. static="false" final="false" visibility="public"
  39140. deprecated="not deprecated">
  39141. <param name="r" type="org.apache.hadoop.record.Record"/>
  39142. <param name="tag" type="java.lang.String"/>
  39143. <exception name="IOException" type="java.io.IOException"/>
  39144. <doc>
  39145. <![CDATA[Mark the end of a serialized record.
  39146. @param r Record to be serialized
  39147. @param tag Used by tagged serialization formats (such as XML)
  39148. @throws IOException Indicates error in serialization]]>
  39149. </doc>
  39150. </method>
  39151. <method name="startVector"
  39152. abstract="false" native="false" synchronized="false"
  39153. static="false" final="false" visibility="public"
  39154. deprecated="not deprecated">
  39155. <param name="v" type="java.util.ArrayList"/>
  39156. <param name="tag" type="java.lang.String"/>
  39157. <exception name="IOException" type="java.io.IOException"/>
  39158. <doc>
  39159. <![CDATA[Mark the start of a vector to be serialized.
  39160. @param v Vector to be serialized
  39161. @param tag Used by tagged serialization formats (such as XML)
  39162. @throws IOException Indicates error in serialization]]>
  39163. </doc>
  39164. </method>
  39165. <method name="endVector"
  39166. abstract="false" native="false" synchronized="false"
  39167. static="false" final="false" visibility="public"
  39168. deprecated="not deprecated">
  39169. <param name="v" type="java.util.ArrayList"/>
  39170. <param name="tag" type="java.lang.String"/>
  39171. <exception name="IOException" type="java.io.IOException"/>
  39172. <doc>
  39173. <![CDATA[Mark the end of a serialized vector.
  39174. @param v Vector to be serialized
  39175. @param tag Used by tagged serialization formats (such as XML)
  39176. @throws IOException Indicates error in serialization]]>
  39177. </doc>
  39178. </method>
  39179. <method name="startMap"
  39180. abstract="false" native="false" synchronized="false"
  39181. static="false" final="false" visibility="public"
  39182. deprecated="not deprecated">
  39183. <param name="m" type="java.util.TreeMap"/>
  39184. <param name="tag" type="java.lang.String"/>
  39185. <exception name="IOException" type="java.io.IOException"/>
  39186. <doc>
  39187. <![CDATA[Mark the start of a map to be serialized.
  39188. @param m Map to be serialized
  39189. @param tag Used by tagged serialization formats (such as XML)
  39190. @throws IOException Indicates error in serialization]]>
  39191. </doc>
  39192. </method>
  39193. <method name="endMap"
  39194. abstract="false" native="false" synchronized="false"
  39195. static="false" final="false" visibility="public"
  39196. deprecated="not deprecated">
  39197. <param name="m" type="java.util.TreeMap"/>
  39198. <param name="tag" type="java.lang.String"/>
  39199. <exception name="IOException" type="java.io.IOException"/>
  39200. <doc>
  39201. <![CDATA[Mark the end of a serialized map.
  39202. @param m Map to be serialized
  39203. @param tag Used by tagged serialization formats (such as XML)
  39204. @throws IOException Indicates error in serialization]]>
  39205. </doc>
  39206. </method>
  39207. <doc>
  39208. <![CDATA[Interface that alll the serializers have to implement.]]>
  39209. </doc>
  39210. </interface>
  39211. <!-- end interface org.apache.hadoop.record.RecordOutput -->
  39212. <!-- start class org.apache.hadoop.record.Utils -->
  39213. <class name="Utils" extends="java.lang.Object"
  39214. abstract="false"
  39215. static="false" final="false" visibility="public"
  39216. deprecated="not deprecated">
  39217. <method name="readFloat" return="float"
  39218. abstract="false" native="false" synchronized="false"
  39219. static="true" final="false" visibility="public"
  39220. deprecated="not deprecated">
  39221. <param name="bytes" type="byte[]"/>
  39222. <param name="start" type="int"/>
  39223. <doc>
  39224. <![CDATA[Parse a float from a byte array.]]>
  39225. </doc>
  39226. </method>
  39227. <method name="readDouble" return="double"
  39228. abstract="false" native="false" synchronized="false"
  39229. static="true" final="false" visibility="public"
  39230. deprecated="not deprecated">
  39231. <param name="bytes" type="byte[]"/>
  39232. <param name="start" type="int"/>
  39233. <doc>
  39234. <![CDATA[Parse a double from a byte array.]]>
  39235. </doc>
  39236. </method>
  39237. <method name="readVLong" return="long"
  39238. abstract="false" native="false" synchronized="false"
  39239. static="true" final="false" visibility="public"
  39240. deprecated="not deprecated">
  39241. <param name="bytes" type="byte[]"/>
  39242. <param name="start" type="int"/>
  39243. <exception name="IOException" type="java.io.IOException"/>
  39244. <doc>
  39245. <![CDATA[Reads a zero-compressed encoded long from a byte array and returns it.
  39246. @param bytes byte array with decode long
  39247. @param start starting index
  39248. @throws java.io.IOException
  39249. @return deserialized long]]>
  39250. </doc>
  39251. </method>
  39252. <method name="readVInt" return="int"
  39253. abstract="false" native="false" synchronized="false"
  39254. static="true" final="false" visibility="public"
  39255. deprecated="not deprecated">
  39256. <param name="bytes" type="byte[]"/>
  39257. <param name="start" type="int"/>
  39258. <exception name="IOException" type="java.io.IOException"/>
  39259. <doc>
  39260. <![CDATA[Reads a zero-compressed encoded integer from a byte array and returns it.
  39261. @param bytes byte array with the encoded integer
  39262. @param start start index
  39263. @throws java.io.IOException
  39264. @return deserialized integer]]>
  39265. </doc>
  39266. </method>
  39267. <method name="readVLong" return="long"
  39268. abstract="false" native="false" synchronized="false"
  39269. static="true" final="false" visibility="public"
  39270. deprecated="not deprecated">
  39271. <param name="in" type="java.io.DataInput"/>
  39272. <exception name="IOException" type="java.io.IOException"/>
  39273. <doc>
  39274. <![CDATA[Reads a zero-compressed encoded long from a stream and return it.
  39275. @param in input stream
  39276. @throws java.io.IOException
  39277. @return deserialized long]]>
  39278. </doc>
  39279. </method>
  39280. <method name="readVInt" return="int"
  39281. abstract="false" native="false" synchronized="false"
  39282. static="true" final="false" visibility="public"
  39283. deprecated="not deprecated">
  39284. <param name="in" type="java.io.DataInput"/>
  39285. <exception name="IOException" type="java.io.IOException"/>
  39286. <doc>
  39287. <![CDATA[Reads a zero-compressed encoded integer from a stream and returns it.
  39288. @param in input stream
  39289. @throws java.io.IOException
  39290. @return deserialized integer]]>
  39291. </doc>
  39292. </method>
  39293. <method name="getVIntSize" return="int"
  39294. abstract="false" native="false" synchronized="false"
  39295. static="true" final="false" visibility="public"
  39296. deprecated="not deprecated">
  39297. <param name="i" type="long"/>
  39298. <doc>
  39299. <![CDATA[Get the encoded length if an integer is stored in a variable-length format
  39300. @return the encoded length]]>
  39301. </doc>
  39302. </method>
  39303. <method name="writeVLong"
  39304. abstract="false" native="false" synchronized="false"
  39305. static="true" final="false" visibility="public"
  39306. deprecated="not deprecated">
  39307. <param name="stream" type="java.io.DataOutput"/>
  39308. <param name="i" type="long"/>
  39309. <exception name="IOException" type="java.io.IOException"/>
  39310. <doc>
  39311. <![CDATA[Serializes a long to a binary stream with zero-compressed encoding.
  39312. For -112 <= i <= 127, only one byte is used with the actual value.
  39313. For other values of i, the first byte value indicates whether the
  39314. long is positive or negative, and the number of bytes that follow.
  39315. If the first byte value v is between -113 and -120, the following long
  39316. is positive, with number of bytes that follow are -(v+112).
  39317. If the first byte value v is between -121 and -128, the following long
  39318. is negative, with number of bytes that follow are -(v+120). Bytes are
  39319. stored in the high-non-zero-byte-first order.
  39320. @param stream Binary output stream
  39321. @param i Long to be serialized
  39322. @throws java.io.IOException]]>
  39323. </doc>
  39324. </method>
  39325. <method name="writeVInt"
  39326. abstract="false" native="false" synchronized="false"
  39327. static="true" final="false" visibility="public"
  39328. deprecated="not deprecated">
  39329. <param name="stream" type="java.io.DataOutput"/>
  39330. <param name="i" type="int"/>
  39331. <exception name="IOException" type="java.io.IOException"/>
  39332. <doc>
  39333. <![CDATA[Serializes an int to a binary stream with zero-compressed encoding.
  39334. @param stream Binary output stream
  39335. @param i int to be serialized
  39336. @throws java.io.IOException]]>
  39337. </doc>
  39338. </method>
  39339. <method name="compareBytes" return="int"
  39340. abstract="false" native="false" synchronized="false"
  39341. static="true" final="false" visibility="public"
  39342. deprecated="not deprecated">
  39343. <param name="b1" type="byte[]"/>
  39344. <param name="s1" type="int"/>
  39345. <param name="l1" type="int"/>
  39346. <param name="b2" type="byte[]"/>
  39347. <param name="s2" type="int"/>
  39348. <param name="l2" type="int"/>
  39349. <doc>
  39350. <![CDATA[Lexicographic order of binary data.]]>
  39351. </doc>
  39352. </method>
  39353. <field name="hexchars" type="char[]"
  39354. transient="false" volatile="false"
  39355. static="true" final="true" visibility="public"
  39356. deprecated="not deprecated">
  39357. </field>
  39358. <doc>
  39359. <![CDATA[Various utility functions for Hadooop record I/O runtime.]]>
  39360. </doc>
  39361. </class>
  39362. <!-- end class org.apache.hadoop.record.Utils -->
  39363. <!-- start class org.apache.hadoop.record.XmlRecordInput -->
  39364. <class name="XmlRecordInput" extends="java.lang.Object"
  39365. abstract="false"
  39366. static="false" final="false" visibility="public"
  39367. deprecated="not deprecated">
  39368. <implements name="org.apache.hadoop.record.RecordInput"/>
  39369. <constructor name="XmlRecordInput" type="java.io.InputStream"
  39370. static="false" final="false" visibility="public"
  39371. deprecated="not deprecated">
  39372. <doc>
  39373. <![CDATA[Creates a new instance of XmlRecordInput]]>
  39374. </doc>
  39375. </constructor>
  39376. <method name="readByte" return="byte"
  39377. abstract="false" native="false" synchronized="false"
  39378. static="false" final="false" visibility="public"
  39379. deprecated="not deprecated">
  39380. <param name="tag" type="java.lang.String"/>
  39381. <exception name="IOException" type="java.io.IOException"/>
  39382. </method>
  39383. <method name="readBool" return="boolean"
  39384. abstract="false" native="false" synchronized="false"
  39385. static="false" final="false" visibility="public"
  39386. deprecated="not deprecated">
  39387. <param name="tag" type="java.lang.String"/>
  39388. <exception name="IOException" type="java.io.IOException"/>
  39389. </method>
  39390. <method name="readInt" return="int"
  39391. abstract="false" native="false" synchronized="false"
  39392. static="false" final="false" visibility="public"
  39393. deprecated="not deprecated">
  39394. <param name="tag" type="java.lang.String"/>
  39395. <exception name="IOException" type="java.io.IOException"/>
  39396. </method>
  39397. <method name="readLong" return="long"
  39398. abstract="false" native="false" synchronized="false"
  39399. static="false" final="false" visibility="public"
  39400. deprecated="not deprecated">
  39401. <param name="tag" type="java.lang.String"/>
  39402. <exception name="IOException" type="java.io.IOException"/>
  39403. </method>
  39404. <method name="readFloat" return="float"
  39405. abstract="false" native="false" synchronized="false"
  39406. static="false" final="false" visibility="public"
  39407. deprecated="not deprecated">
  39408. <param name="tag" type="java.lang.String"/>
  39409. <exception name="IOException" type="java.io.IOException"/>
  39410. </method>
  39411. <method name="readDouble" return="double"
  39412. abstract="false" native="false" synchronized="false"
  39413. static="false" final="false" visibility="public"
  39414. deprecated="not deprecated">
  39415. <param name="tag" type="java.lang.String"/>
  39416. <exception name="IOException" type="java.io.IOException"/>
  39417. </method>
  39418. <method name="readString" return="java.lang.String"
  39419. abstract="false" native="false" synchronized="false"
  39420. static="false" final="false" visibility="public"
  39421. deprecated="not deprecated">
  39422. <param name="tag" type="java.lang.String"/>
  39423. <exception name="IOException" type="java.io.IOException"/>
  39424. </method>
  39425. <method name="readBuffer" return="org.apache.hadoop.record.Buffer"
  39426. abstract="false" native="false" synchronized="false"
  39427. static="false" final="false" visibility="public"
  39428. deprecated="not deprecated">
  39429. <param name="tag" type="java.lang.String"/>
  39430. <exception name="IOException" type="java.io.IOException"/>
  39431. </method>
  39432. <method name="startRecord"
  39433. abstract="false" native="false" synchronized="false"
  39434. static="false" final="false" visibility="public"
  39435. deprecated="not deprecated">
  39436. <param name="tag" type="java.lang.String"/>
  39437. <exception name="IOException" type="java.io.IOException"/>
  39438. </method>
  39439. <method name="endRecord"
  39440. abstract="false" native="false" synchronized="false"
  39441. static="false" final="false" visibility="public"
  39442. deprecated="not deprecated">
  39443. <param name="tag" type="java.lang.String"/>
  39444. <exception name="IOException" type="java.io.IOException"/>
  39445. </method>
  39446. <method name="startVector" return="org.apache.hadoop.record.Index"
  39447. abstract="false" native="false" synchronized="false"
  39448. static="false" final="false" visibility="public"
  39449. deprecated="not deprecated">
  39450. <param name="tag" type="java.lang.String"/>
  39451. <exception name="IOException" type="java.io.IOException"/>
  39452. </method>
  39453. <method name="endVector"
  39454. abstract="false" native="false" synchronized="false"
  39455. static="false" final="false" visibility="public"
  39456. deprecated="not deprecated">
  39457. <param name="tag" type="java.lang.String"/>
  39458. <exception name="IOException" type="java.io.IOException"/>
  39459. </method>
  39460. <method name="startMap" return="org.apache.hadoop.record.Index"
  39461. abstract="false" native="false" synchronized="false"
  39462. static="false" final="false" visibility="public"
  39463. deprecated="not deprecated">
  39464. <param name="tag" type="java.lang.String"/>
  39465. <exception name="IOException" type="java.io.IOException"/>
  39466. </method>
  39467. <method name="endMap"
  39468. abstract="false" native="false" synchronized="false"
  39469. static="false" final="false" visibility="public"
  39470. deprecated="not deprecated">
  39471. <param name="tag" type="java.lang.String"/>
  39472. <exception name="IOException" type="java.io.IOException"/>
  39473. </method>
  39474. <doc>
  39475. <![CDATA[XML Deserializer.]]>
  39476. </doc>
  39477. </class>
  39478. <!-- end class org.apache.hadoop.record.XmlRecordInput -->
  39479. <!-- start class org.apache.hadoop.record.XmlRecordOutput -->
  39480. <class name="XmlRecordOutput" extends="java.lang.Object"
  39481. abstract="false"
  39482. static="false" final="false" visibility="public"
  39483. deprecated="not deprecated">
  39484. <implements name="org.apache.hadoop.record.RecordOutput"/>
  39485. <constructor name="XmlRecordOutput" type="java.io.OutputStream"
  39486. static="false" final="false" visibility="public"
  39487. deprecated="not deprecated">
  39488. <doc>
  39489. <![CDATA[Creates a new instance of XmlRecordOutput]]>
  39490. </doc>
  39491. </constructor>
  39492. <method name="writeByte"
  39493. abstract="false" native="false" synchronized="false"
  39494. static="false" final="false" visibility="public"
  39495. deprecated="not deprecated">
  39496. <param name="b" type="byte"/>
  39497. <param name="tag" type="java.lang.String"/>
  39498. <exception name="IOException" type="java.io.IOException"/>
  39499. </method>
  39500. <method name="writeBool"
  39501. abstract="false" native="false" synchronized="false"
  39502. static="false" final="false" visibility="public"
  39503. deprecated="not deprecated">
  39504. <param name="b" type="boolean"/>
  39505. <param name="tag" type="java.lang.String"/>
  39506. <exception name="IOException" type="java.io.IOException"/>
  39507. </method>
  39508. <method name="writeInt"
  39509. abstract="false" native="false" synchronized="false"
  39510. static="false" final="false" visibility="public"
  39511. deprecated="not deprecated">
  39512. <param name="i" type="int"/>
  39513. <param name="tag" type="java.lang.String"/>
  39514. <exception name="IOException" type="java.io.IOException"/>
  39515. </method>
  39516. <method name="writeLong"
  39517. abstract="false" native="false" synchronized="false"
  39518. static="false" final="false" visibility="public"
  39519. deprecated="not deprecated">
  39520. <param name="l" type="long"/>
  39521. <param name="tag" type="java.lang.String"/>
  39522. <exception name="IOException" type="java.io.IOException"/>
  39523. </method>
  39524. <method name="writeFloat"
  39525. abstract="false" native="false" synchronized="false"
  39526. static="false" final="false" visibility="public"
  39527. deprecated="not deprecated">
  39528. <param name="f" type="float"/>
  39529. <param name="tag" type="java.lang.String"/>
  39530. <exception name="IOException" type="java.io.IOException"/>
  39531. </method>
  39532. <method name="writeDouble"
  39533. abstract="false" native="false" synchronized="false"
  39534. static="false" final="false" visibility="public"
  39535. deprecated="not deprecated">
  39536. <param name="d" type="double"/>
  39537. <param name="tag" type="java.lang.String"/>
  39538. <exception name="IOException" type="java.io.IOException"/>
  39539. </method>
  39540. <method name="writeString"
  39541. abstract="false" native="false" synchronized="false"
  39542. static="false" final="false" visibility="public"
  39543. deprecated="not deprecated">
  39544. <param name="s" type="java.lang.String"/>
  39545. <param name="tag" type="java.lang.String"/>
  39546. <exception name="IOException" type="java.io.IOException"/>
  39547. </method>
  39548. <method name="writeBuffer"
  39549. abstract="false" native="false" synchronized="false"
  39550. static="false" final="false" visibility="public"
  39551. deprecated="not deprecated">
  39552. <param name="buf" type="org.apache.hadoop.record.Buffer"/>
  39553. <param name="tag" type="java.lang.String"/>
  39554. <exception name="IOException" type="java.io.IOException"/>
  39555. </method>
  39556. <method name="startRecord"
  39557. abstract="false" native="false" synchronized="false"
  39558. static="false" final="false" visibility="public"
  39559. deprecated="not deprecated">
  39560. <param name="r" type="org.apache.hadoop.record.Record"/>
  39561. <param name="tag" type="java.lang.String"/>
  39562. <exception name="IOException" type="java.io.IOException"/>
  39563. </method>
  39564. <method name="endRecord"
  39565. abstract="false" native="false" synchronized="false"
  39566. static="false" final="false" visibility="public"
  39567. deprecated="not deprecated">
  39568. <param name="r" type="org.apache.hadoop.record.Record"/>
  39569. <param name="tag" type="java.lang.String"/>
  39570. <exception name="IOException" type="java.io.IOException"/>
  39571. </method>
  39572. <method name="startVector"
  39573. abstract="false" native="false" synchronized="false"
  39574. static="false" final="false" visibility="public"
  39575. deprecated="not deprecated">
  39576. <param name="v" type="java.util.ArrayList"/>
  39577. <param name="tag" type="java.lang.String"/>
  39578. <exception name="IOException" type="java.io.IOException"/>
  39579. </method>
  39580. <method name="endVector"
  39581. abstract="false" native="false" synchronized="false"
  39582. static="false" final="false" visibility="public"
  39583. deprecated="not deprecated">
  39584. <param name="v" type="java.util.ArrayList"/>
  39585. <param name="tag" type="java.lang.String"/>
  39586. <exception name="IOException" type="java.io.IOException"/>
  39587. </method>
  39588. <method name="startMap"
  39589. abstract="false" native="false" synchronized="false"
  39590. static="false" final="false" visibility="public"
  39591. deprecated="not deprecated">
  39592. <param name="v" type="java.util.TreeMap"/>
  39593. <param name="tag" type="java.lang.String"/>
  39594. <exception name="IOException" type="java.io.IOException"/>
  39595. </method>
  39596. <method name="endMap"
  39597. abstract="false" native="false" synchronized="false"
  39598. static="false" final="false" visibility="public"
  39599. deprecated="not deprecated">
  39600. <param name="v" type="java.util.TreeMap"/>
  39601. <param name="tag" type="java.lang.String"/>
  39602. <exception name="IOException" type="java.io.IOException"/>
  39603. </method>
  39604. <doc>
  39605. <![CDATA[XML Serializer.]]>
  39606. </doc>
  39607. </class>
  39608. <!-- end class org.apache.hadoop.record.XmlRecordOutput -->
  39609. </package>
  39610. <package name="org.apache.hadoop.record.compiler">
  39611. <!-- start class org.apache.hadoop.record.compiler.CodeBuffer -->
  39612. <class name="CodeBuffer" extends="java.lang.Object"
  39613. abstract="false"
  39614. static="false" final="false" visibility="public"
  39615. deprecated="not deprecated">
  39616. <method name="toString" return="java.lang.String"
  39617. abstract="false" native="false" synchronized="false"
  39618. static="false" final="false" visibility="public"
  39619. deprecated="not deprecated">
  39620. </method>
  39621. <doc>
  39622. <![CDATA[A wrapper around StringBuffer that automatically does indentation]]>
  39623. </doc>
  39624. </class>
  39625. <!-- end class org.apache.hadoop.record.compiler.CodeBuffer -->
  39626. <!-- start class org.apache.hadoop.record.compiler.Consts -->
  39627. <class name="Consts" extends="java.lang.Object"
  39628. abstract="false"
  39629. static="false" final="false" visibility="public"
  39630. deprecated="not deprecated">
  39631. <field name="RIO_PREFIX" type="java.lang.String"
  39632. transient="false" volatile="false"
  39633. static="true" final="true" visibility="public"
  39634. deprecated="not deprecated">
  39635. </field>
  39636. <field name="RTI_VAR" type="java.lang.String"
  39637. transient="false" volatile="false"
  39638. static="true" final="true" visibility="public"
  39639. deprecated="not deprecated">
  39640. </field>
  39641. <field name="RTI_FILTER" type="java.lang.String"
  39642. transient="false" volatile="false"
  39643. static="true" final="true" visibility="public"
  39644. deprecated="not deprecated">
  39645. </field>
  39646. <field name="RTI_FILTER_FIELDS" type="java.lang.String"
  39647. transient="false" volatile="false"
  39648. static="true" final="true" visibility="public"
  39649. deprecated="not deprecated">
  39650. </field>
  39651. <field name="RECORD_OUTPUT" type="java.lang.String"
  39652. transient="false" volatile="false"
  39653. static="true" final="true" visibility="public"
  39654. deprecated="not deprecated">
  39655. </field>
  39656. <field name="RECORD_INPUT" type="java.lang.String"
  39657. transient="false" volatile="false"
  39658. static="true" final="true" visibility="public"
  39659. deprecated="not deprecated">
  39660. </field>
  39661. <field name="TAG" type="java.lang.String"
  39662. transient="false" volatile="false"
  39663. static="true" final="true" visibility="public"
  39664. deprecated="not deprecated">
  39665. </field>
  39666. <doc>
  39667. <![CDATA[const definitions for Record I/O compiler]]>
  39668. </doc>
  39669. </class>
  39670. <!-- end class org.apache.hadoop.record.compiler.Consts -->
  39671. <!-- start class org.apache.hadoop.record.compiler.JBoolean -->
  39672. <class name="JBoolean" extends="org.apache.hadoop.record.compiler.JType"
  39673. abstract="false"
  39674. static="false" final="false" visibility="public"
  39675. deprecated="not deprecated">
  39676. <constructor name="JBoolean"
  39677. static="false" final="false" visibility="public"
  39678. deprecated="not deprecated">
  39679. <doc>
  39680. <![CDATA[Creates a new instance of JBoolean]]>
  39681. </doc>
  39682. </constructor>
  39683. </class>
  39684. <!-- end class org.apache.hadoop.record.compiler.JBoolean -->
  39685. <!-- start class org.apache.hadoop.record.compiler.JBuffer -->
  39686. <class name="JBuffer" extends="org.apache.hadoop.record.compiler.JCompType"
  39687. abstract="false"
  39688. static="false" final="false" visibility="public"
  39689. deprecated="not deprecated">
  39690. <constructor name="JBuffer"
  39691. static="false" final="false" visibility="public"
  39692. deprecated="not deprecated">
  39693. <doc>
  39694. <![CDATA[Creates a new instance of JBuffer]]>
  39695. </doc>
  39696. </constructor>
  39697. <doc>
  39698. <![CDATA[Code generator for "buffer" type.]]>
  39699. </doc>
  39700. </class>
  39701. <!-- end class org.apache.hadoop.record.compiler.JBuffer -->
  39702. <!-- start class org.apache.hadoop.record.compiler.JByte -->
  39703. <class name="JByte" extends="org.apache.hadoop.record.compiler.JType"
  39704. abstract="false"
  39705. static="false" final="false" visibility="public"
  39706. deprecated="not deprecated">
  39707. <constructor name="JByte"
  39708. static="false" final="false" visibility="public"
  39709. deprecated="not deprecated">
  39710. </constructor>
  39711. <doc>
  39712. <![CDATA[Code generator for "byte" type.]]>
  39713. </doc>
  39714. </class>
  39715. <!-- end class org.apache.hadoop.record.compiler.JByte -->
  39716. <!-- start class org.apache.hadoop.record.compiler.JDouble -->
  39717. <class name="JDouble" extends="org.apache.hadoop.record.compiler.JType"
  39718. abstract="false"
  39719. static="false" final="false" visibility="public"
  39720. deprecated="not deprecated">
  39721. <constructor name="JDouble"
  39722. static="false" final="false" visibility="public"
  39723. deprecated="not deprecated">
  39724. <doc>
  39725. <![CDATA[Creates a new instance of JDouble]]>
  39726. </doc>
  39727. </constructor>
  39728. </class>
  39729. <!-- end class org.apache.hadoop.record.compiler.JDouble -->
  39730. <!-- start class org.apache.hadoop.record.compiler.JField -->
  39731. <class name="JField" extends="java.lang.Object"
  39732. abstract="false"
  39733. static="false" final="false" visibility="public"
  39734. deprecated="not deprecated">
  39735. <constructor name="JField" type="java.lang.String, T"
  39736. static="false" final="false" visibility="public"
  39737. deprecated="not deprecated">
  39738. <doc>
  39739. <![CDATA[Creates a new instance of JField]]>
  39740. </doc>
  39741. </constructor>
  39742. <doc>
  39743. <![CDATA[A thin wrappper around record field.]]>
  39744. </doc>
  39745. </class>
  39746. <!-- end class org.apache.hadoop.record.compiler.JField -->
  39747. <!-- start class org.apache.hadoop.record.compiler.JFile -->
  39748. <class name="JFile" extends="java.lang.Object"
  39749. abstract="false"
  39750. static="false" final="false" visibility="public"
  39751. deprecated="not deprecated">
  39752. <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;"
  39753. static="false" final="false" visibility="public"
  39754. deprecated="not deprecated">
  39755. <doc>
  39756. <![CDATA[Creates a new instance of JFile
  39757. @param name possibly full pathname to the file
  39758. @param inclFiles included files (as JFile)
  39759. @param recList List of records defined within this file]]>
  39760. </doc>
  39761. </constructor>
  39762. <method name="genCode" return="int"
  39763. abstract="false" native="false" synchronized="false"
  39764. static="false" final="false" visibility="public"
  39765. deprecated="not deprecated">
  39766. <param name="language" type="java.lang.String"/>
  39767. <param name="destDir" type="java.lang.String"/>
  39768. <param name="options" type="java.util.ArrayList&lt;java.lang.String&gt;"/>
  39769. <exception name="IOException" type="java.io.IOException"/>
  39770. <doc>
  39771. <![CDATA[Generate record code in given language. Language should be all
  39772. lowercase.]]>
  39773. </doc>
  39774. </method>
  39775. <doc>
  39776. <![CDATA[Container for the Hadoop Record DDL.
  39777. The main components of the file are filename, list of included files,
  39778. and records defined in that file.]]>
  39779. </doc>
  39780. </class>
  39781. <!-- end class org.apache.hadoop.record.compiler.JFile -->
  39782. <!-- start class org.apache.hadoop.record.compiler.JFloat -->
  39783. <class name="JFloat" extends="org.apache.hadoop.record.compiler.JType"
  39784. abstract="false"
  39785. static="false" final="false" visibility="public"
  39786. deprecated="not deprecated">
  39787. <constructor name="JFloat"
  39788. static="false" final="false" visibility="public"
  39789. deprecated="not deprecated">
  39790. <doc>
  39791. <![CDATA[Creates a new instance of JFloat]]>
  39792. </doc>
  39793. </constructor>
  39794. </class>
  39795. <!-- end class org.apache.hadoop.record.compiler.JFloat -->
  39796. <!-- start class org.apache.hadoop.record.compiler.JInt -->
  39797. <class name="JInt" extends="org.apache.hadoop.record.compiler.JType"
  39798. abstract="false"
  39799. static="false" final="false" visibility="public"
  39800. deprecated="not deprecated">
  39801. <constructor name="JInt"
  39802. static="false" final="false" visibility="public"
  39803. deprecated="not deprecated">
  39804. <doc>
  39805. <![CDATA[Creates a new instance of JInt]]>
  39806. </doc>
  39807. </constructor>
  39808. <doc>
  39809. <![CDATA[Code generator for "int" type]]>
  39810. </doc>
  39811. </class>
  39812. <!-- end class org.apache.hadoop.record.compiler.JInt -->
  39813. <!-- start class org.apache.hadoop.record.compiler.JLong -->
  39814. <class name="JLong" extends="org.apache.hadoop.record.compiler.JType"
  39815. abstract="false"
  39816. static="false" final="false" visibility="public"
  39817. deprecated="not deprecated">
  39818. <constructor name="JLong"
  39819. static="false" final="false" visibility="public"
  39820. deprecated="not deprecated">
  39821. <doc>
  39822. <![CDATA[Creates a new instance of JLong]]>
  39823. </doc>
  39824. </constructor>
  39825. <doc>
  39826. <![CDATA[Code generator for "long" type]]>
  39827. </doc>
  39828. </class>
  39829. <!-- end class org.apache.hadoop.record.compiler.JLong -->
  39830. <!-- start class org.apache.hadoop.record.compiler.JMap -->
  39831. <class name="JMap" extends="org.apache.hadoop.record.compiler.JCompType"
  39832. abstract="false"
  39833. static="false" final="false" visibility="public"
  39834. deprecated="not deprecated">
  39835. <constructor name="JMap" type="org.apache.hadoop.record.compiler.JType, org.apache.hadoop.record.compiler.JType"
  39836. static="false" final="false" visibility="public"
  39837. deprecated="not deprecated">
  39838. <doc>
  39839. <![CDATA[Creates a new instance of JMap]]>
  39840. </doc>
  39841. </constructor>
  39842. </class>
  39843. <!-- end class org.apache.hadoop.record.compiler.JMap -->
  39844. <!-- start class org.apache.hadoop.record.compiler.JRecord -->
  39845. <class name="JRecord" extends="org.apache.hadoop.record.compiler.JCompType"
  39846. abstract="false"
  39847. static="false" final="false" visibility="public"
  39848. deprecated="not deprecated">
  39849. <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;"
  39850. static="false" final="false" visibility="public"
  39851. deprecated="not deprecated">
  39852. <doc>
  39853. <![CDATA[Creates a new instance of JRecord]]>
  39854. </doc>
  39855. </constructor>
  39856. </class>
  39857. <!-- end class org.apache.hadoop.record.compiler.JRecord -->
  39858. <!-- start class org.apache.hadoop.record.compiler.JString -->
  39859. <class name="JString" extends="org.apache.hadoop.record.compiler.JCompType"
  39860. abstract="false"
  39861. static="false" final="false" visibility="public"
  39862. deprecated="not deprecated">
  39863. <constructor name="JString"
  39864. static="false" final="false" visibility="public"
  39865. deprecated="not deprecated">
  39866. <doc>
  39867. <![CDATA[Creates a new instance of JString]]>
  39868. </doc>
  39869. </constructor>
  39870. </class>
  39871. <!-- end class org.apache.hadoop.record.compiler.JString -->
  39872. <!-- start class org.apache.hadoop.record.compiler.JType -->
  39873. <class name="JType" extends="java.lang.Object"
  39874. abstract="true"
  39875. static="false" final="false" visibility="public"
  39876. deprecated="not deprecated">
  39877. <constructor name="JType"
  39878. static="false" final="false" visibility="public"
  39879. deprecated="not deprecated">
  39880. </constructor>
  39881. <doc>
  39882. <![CDATA[Abstract Base class for all types supported by Hadoop Record I/O.]]>
  39883. </doc>
  39884. </class>
  39885. <!-- end class org.apache.hadoop.record.compiler.JType -->
  39886. <!-- start class org.apache.hadoop.record.compiler.JVector -->
  39887. <class name="JVector" extends="org.apache.hadoop.record.compiler.JCompType"
  39888. abstract="false"
  39889. static="false" final="false" visibility="public"
  39890. deprecated="not deprecated">
  39891. <constructor name="JVector" type="org.apache.hadoop.record.compiler.JType"
  39892. static="false" final="false" visibility="public"
  39893. deprecated="not deprecated">
  39894. <doc>
  39895. <![CDATA[Creates a new instance of JVector]]>
  39896. </doc>
  39897. </constructor>
  39898. </class>
  39899. <!-- end class org.apache.hadoop.record.compiler.JVector -->
  39900. </package>
  39901. <package name="org.apache.hadoop.record.compiler.ant">
  39902. <!-- start class org.apache.hadoop.record.compiler.ant.RccTask -->
  39903. <class name="RccTask" extends="org.apache.tools.ant.Task"
  39904. abstract="false"
  39905. static="false" final="false" visibility="public"
  39906. deprecated="not deprecated">
  39907. <constructor name="RccTask"
  39908. static="false" final="false" visibility="public"
  39909. deprecated="not deprecated">
  39910. <doc>
  39911. <![CDATA[Creates a new instance of RccTask]]>
  39912. </doc>
  39913. </constructor>
  39914. <method name="setLanguage"
  39915. abstract="false" native="false" synchronized="false"
  39916. static="false" final="false" visibility="public"
  39917. deprecated="not deprecated">
  39918. <param name="language" type="java.lang.String"/>
  39919. <doc>
  39920. <![CDATA[Sets the output language option
  39921. @param language "java"/"c++"]]>
  39922. </doc>
  39923. </method>
  39924. <method name="setFile"
  39925. abstract="false" native="false" synchronized="false"
  39926. static="false" final="false" visibility="public"
  39927. deprecated="not deprecated">
  39928. <param name="file" type="java.io.File"/>
  39929. <doc>
  39930. <![CDATA[Sets the record definition file attribute
  39931. @param file record definition file]]>
  39932. </doc>
  39933. </method>
  39934. <method name="setFailonerror"
  39935. abstract="false" native="false" synchronized="false"
  39936. static="false" final="false" visibility="public"
  39937. deprecated="not deprecated">
  39938. <param name="flag" type="boolean"/>
  39939. <doc>
  39940. <![CDATA[Given multiple files (via fileset), set the error handling behavior
  39941. @param flag true will throw build exception in case of failure (default)]]>
  39942. </doc>
  39943. </method>
  39944. <method name="setDestdir"
  39945. abstract="false" native="false" synchronized="false"
  39946. static="false" final="false" visibility="public"
  39947. deprecated="not deprecated">
  39948. <param name="dir" type="java.io.File"/>
  39949. <doc>
  39950. <![CDATA[Sets directory where output files will be generated
  39951. @param dir output directory]]>
  39952. </doc>
  39953. </method>
  39954. <method name="addFileset"
  39955. abstract="false" native="false" synchronized="false"
  39956. static="false" final="false" visibility="public"
  39957. deprecated="not deprecated">
  39958. <param name="set" type="org.apache.tools.ant.types.FileSet"/>
  39959. <doc>
  39960. <![CDATA[Adds a fileset that can consist of one or more files
  39961. @param set Set of record definition files]]>
  39962. </doc>
  39963. </method>
  39964. <method name="execute"
  39965. abstract="false" native="false" synchronized="false"
  39966. static="false" final="false" visibility="public"
  39967. deprecated="not deprecated">
  39968. <exception name="BuildException" type="org.apache.tools.ant.BuildException"/>
  39969. <doc>
  39970. <![CDATA[Invoke the Hadoop record compiler on each record definition file]]>
  39971. </doc>
  39972. </method>
  39973. <doc>
  39974. <![CDATA[Hadoop record compiler ant Task
  39975. <p> This task takes the given record definition files and compiles them into
  39976. java or c++
  39977. files. It is then up to the user to compile the generated files.
  39978. <p> The task requires the <code>file</code> or the nested fileset element to be
  39979. specified. Optional attributes are <code>language</code> (set the output
  39980. language, default is "java"),
  39981. <code>destdir</code> (name of the destination directory for generated java/c++
  39982. code, default is ".") and <code>failonerror</code> (specifies error handling
  39983. behavior. default is true).
  39984. <p><h4>Usage</h4>
  39985. <pre>
  39986. &lt;recordcc
  39987. destdir="${basedir}/gensrc"
  39988. language="java"&gt;
  39989. &lt;fileset include="**\/*.jr" /&gt;
  39990. &lt;/recordcc&gt;
  39991. </pre>]]>
  39992. </doc>
  39993. </class>
  39994. <!-- end class org.apache.hadoop.record.compiler.ant.RccTask -->
  39995. </package>
  39996. <package name="org.apache.hadoop.record.compiler.generated">
  39997. <!-- start class org.apache.hadoop.record.compiler.generated.ParseException -->
  39998. <class name="ParseException" extends="java.lang.Exception"
  39999. abstract="false"
  40000. static="false" final="false" visibility="public"
  40001. deprecated="not deprecated">
  40002. <constructor name="ParseException" type="org.apache.hadoop.record.compiler.generated.Token, int[][], java.lang.String[]"
  40003. static="false" final="false" visibility="public"
  40004. deprecated="not deprecated">
  40005. <doc>
  40006. <![CDATA[This constructor is used by the method "generateParseException"
  40007. in the generated parser. Calling this constructor generates
  40008. a new object of this type with the fields "currentToken",
  40009. "expectedTokenSequences", and "tokenImage" set. The boolean
  40010. flag "specialConstructor" is also set to true to indicate that
  40011. this constructor was used to create this object.
  40012. This constructor calls its super class with the empty string
  40013. to force the "toString" method of parent class "Throwable" to
  40014. print the error message in the form:
  40015. ParseException: <result of getMessage>]]>
  40016. </doc>
  40017. </constructor>
  40018. <constructor name="ParseException"
  40019. static="false" final="false" visibility="public"
  40020. deprecated="not deprecated">
  40021. <doc>
  40022. <![CDATA[The following constructors are for use by you for whatever
  40023. purpose you can think of. Constructing the exception in this
  40024. manner makes the exception behave in the normal way - i.e., as
  40025. documented in the class "Throwable". The fields "errorToken",
  40026. "expectedTokenSequences", and "tokenImage" do not contain
  40027. relevant information. The JavaCC generated code does not use
  40028. these constructors.]]>
  40029. </doc>
  40030. </constructor>
  40031. <constructor name="ParseException" type="java.lang.String"
  40032. static="false" final="false" visibility="public"
  40033. deprecated="not deprecated">
  40034. </constructor>
  40035. <method name="getMessage" return="java.lang.String"
  40036. abstract="false" native="false" synchronized="false"
  40037. static="false" final="false" visibility="public"
  40038. deprecated="not deprecated">
  40039. <doc>
  40040. <![CDATA[This method has the standard behavior when this object has been
  40041. created using the standard constructors. Otherwise, it uses
  40042. "currentToken" and "expectedTokenSequences" to generate a parse
  40043. error message and returns it. If this object has been created
  40044. due to a parse error, and you do not catch it (it gets thrown
  40045. from the parser), then this method is called during the printing
  40046. of the final stack trace, and hence the correct error message
  40047. gets displayed.]]>
  40048. </doc>
  40049. </method>
  40050. <method name="add_escapes" return="java.lang.String"
  40051. abstract="false" native="false" synchronized="false"
  40052. static="false" final="false" visibility="protected"
  40053. deprecated="not deprecated">
  40054. <param name="str" type="java.lang.String"/>
  40055. <doc>
  40056. <![CDATA[Used to convert raw characters to their escaped version
  40057. when these raw version cannot be used as part of an ASCII
  40058. string literal.]]>
  40059. </doc>
  40060. </method>
  40061. <field name="specialConstructor" type="boolean"
  40062. transient="false" volatile="false"
  40063. static="false" final="false" visibility="protected"
  40064. deprecated="not deprecated">
  40065. <doc>
  40066. <![CDATA[This variable determines which constructor was used to create
  40067. this object and thereby affects the semantics of the
  40068. "getMessage" method (see below).]]>
  40069. </doc>
  40070. </field>
  40071. <field name="currentToken" type="org.apache.hadoop.record.compiler.generated.Token"
  40072. transient="false" volatile="false"
  40073. static="false" final="false" visibility="public"
  40074. deprecated="not deprecated">
  40075. <doc>
  40076. <![CDATA[This is the last token that has been consumed successfully. If
  40077. this object has been created due to a parse error, the token
  40078. followng this token will (therefore) be the first error token.]]>
  40079. </doc>
  40080. </field>
  40081. <field name="expectedTokenSequences" type="int[][]"
  40082. transient="false" volatile="false"
  40083. static="false" final="false" visibility="public"
  40084. deprecated="not deprecated">
  40085. <doc>
  40086. <![CDATA[Each entry in this array is an array of integers. Each array
  40087. of integers represents a sequence of tokens (by their ordinal
  40088. values) that is expected at this point of the parse.]]>
  40089. </doc>
  40090. </field>
  40091. <field name="tokenImage" type="java.lang.String[]"
  40092. transient="false" volatile="false"
  40093. static="false" final="false" visibility="public"
  40094. deprecated="not deprecated">
  40095. <doc>
  40096. <![CDATA[This is a reference to the "tokenImage" array of the generated
  40097. parser within which the parse error occurred. This array is
  40098. defined in the generated ...Constants interface.]]>
  40099. </doc>
  40100. </field>
  40101. <field name="eol" type="java.lang.String"
  40102. transient="false" volatile="false"
  40103. static="false" final="false" visibility="protected"
  40104. deprecated="not deprecated">
  40105. <doc>
  40106. <![CDATA[The end of line string for this machine.]]>
  40107. </doc>
  40108. </field>
  40109. <doc>
  40110. <![CDATA[This exception is thrown when parse errors are encountered.
  40111. You can explicitly create objects of this exception type by
  40112. calling the method generateParseException in the generated
  40113. parser.
  40114. You can modify this class to customize your error reporting
  40115. mechanisms so long as you retain the public fields.]]>
  40116. </doc>
  40117. </class>
  40118. <!-- end class org.apache.hadoop.record.compiler.generated.ParseException -->
  40119. <!-- start class org.apache.hadoop.record.compiler.generated.Rcc -->
  40120. <class name="Rcc" extends="java.lang.Object"
  40121. abstract="false"
  40122. static="false" final="false" visibility="public"
  40123. deprecated="not deprecated">
  40124. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  40125. <constructor name="Rcc" type="java.io.InputStream"
  40126. static="false" final="false" visibility="public"
  40127. deprecated="not deprecated">
  40128. </constructor>
  40129. <constructor name="Rcc" type="java.io.InputStream, java.lang.String"
  40130. static="false" final="false" visibility="public"
  40131. deprecated="not deprecated">
  40132. </constructor>
  40133. <constructor name="Rcc" type="java.io.Reader"
  40134. static="false" final="false" visibility="public"
  40135. deprecated="not deprecated">
  40136. </constructor>
  40137. <constructor name="Rcc" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  40138. static="false" final="false" visibility="public"
  40139. deprecated="not deprecated">
  40140. </constructor>
  40141. <method name="main"
  40142. abstract="false" native="false" synchronized="false"
  40143. static="true" final="false" visibility="public"
  40144. deprecated="not deprecated">
  40145. <param name="args" type="java.lang.String[]"/>
  40146. </method>
  40147. <method name="usage"
  40148. abstract="false" native="false" synchronized="false"
  40149. static="true" final="false" visibility="public"
  40150. deprecated="not deprecated">
  40151. </method>
  40152. <method name="driver" return="int"
  40153. abstract="false" native="false" synchronized="false"
  40154. static="true" final="false" visibility="public"
  40155. deprecated="not deprecated">
  40156. <param name="args" type="java.lang.String[]"/>
  40157. </method>
  40158. <method name="Input" return="org.apache.hadoop.record.compiler.JFile"
  40159. abstract="false" native="false" synchronized="false"
  40160. static="false" final="true" visibility="public"
  40161. deprecated="not deprecated">
  40162. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40163. </method>
  40164. <method name="Include" return="org.apache.hadoop.record.compiler.JFile"
  40165. abstract="false" native="false" synchronized="false"
  40166. static="false" final="true" visibility="public"
  40167. deprecated="not deprecated">
  40168. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40169. </method>
  40170. <method name="Module" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  40171. abstract="false" native="false" synchronized="false"
  40172. static="false" final="true" visibility="public"
  40173. deprecated="not deprecated">
  40174. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40175. </method>
  40176. <method name="ModuleName" return="java.lang.String"
  40177. abstract="false" native="false" synchronized="false"
  40178. static="false" final="true" visibility="public"
  40179. deprecated="not deprecated">
  40180. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40181. </method>
  40182. <method name="RecordList" return="java.util.ArrayList&lt;org.apache.hadoop.record.compiler.JRecord&gt;"
  40183. abstract="false" native="false" synchronized="false"
  40184. static="false" final="true" visibility="public"
  40185. deprecated="not deprecated">
  40186. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40187. </method>
  40188. <method name="Record" return="org.apache.hadoop.record.compiler.JRecord"
  40189. abstract="false" native="false" synchronized="false"
  40190. static="false" final="true" visibility="public"
  40191. deprecated="not deprecated">
  40192. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40193. </method>
  40194. <method name="Field" return="org.apache.hadoop.record.compiler.JField&lt;org.apache.hadoop.record.compiler.JType&gt;"
  40195. abstract="false" native="false" synchronized="false"
  40196. static="false" final="true" visibility="public"
  40197. deprecated="not deprecated">
  40198. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40199. </method>
  40200. <method name="Type" return="org.apache.hadoop.record.compiler.JType"
  40201. abstract="false" native="false" synchronized="false"
  40202. static="false" final="true" visibility="public"
  40203. deprecated="not deprecated">
  40204. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40205. </method>
  40206. <method name="Map" return="org.apache.hadoop.record.compiler.JMap"
  40207. abstract="false" native="false" synchronized="false"
  40208. static="false" final="true" visibility="public"
  40209. deprecated="not deprecated">
  40210. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40211. </method>
  40212. <method name="Vector" return="org.apache.hadoop.record.compiler.JVector"
  40213. abstract="false" native="false" synchronized="false"
  40214. static="false" final="true" visibility="public"
  40215. deprecated="not deprecated">
  40216. <exception name="ParseException" type="org.apache.hadoop.record.compiler.generated.ParseException"/>
  40217. </method>
  40218. <method name="ReInit"
  40219. abstract="false" native="false" synchronized="false"
  40220. static="false" final="false" visibility="public"
  40221. deprecated="not deprecated">
  40222. <param name="stream" type="java.io.InputStream"/>
  40223. </method>
  40224. <method name="ReInit"
  40225. abstract="false" native="false" synchronized="false"
  40226. static="false" final="false" visibility="public"
  40227. deprecated="not deprecated">
  40228. <param name="stream" type="java.io.InputStream"/>
  40229. <param name="encoding" type="java.lang.String"/>
  40230. </method>
  40231. <method name="ReInit"
  40232. abstract="false" native="false" synchronized="false"
  40233. static="false" final="false" visibility="public"
  40234. deprecated="not deprecated">
  40235. <param name="stream" type="java.io.Reader"/>
  40236. </method>
  40237. <method name="ReInit"
  40238. abstract="false" native="false" synchronized="false"
  40239. static="false" final="false" visibility="public"
  40240. deprecated="not deprecated">
  40241. <param name="tm" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"/>
  40242. </method>
  40243. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  40244. abstract="false" native="false" synchronized="false"
  40245. static="false" final="true" visibility="public"
  40246. deprecated="not deprecated">
  40247. </method>
  40248. <method name="getToken" return="org.apache.hadoop.record.compiler.generated.Token"
  40249. abstract="false" native="false" synchronized="false"
  40250. static="false" final="true" visibility="public"
  40251. deprecated="not deprecated">
  40252. <param name="index" type="int"/>
  40253. </method>
  40254. <method name="generateParseException" return="org.apache.hadoop.record.compiler.generated.ParseException"
  40255. abstract="false" native="false" synchronized="false"
  40256. static="false" final="false" visibility="public"
  40257. deprecated="not deprecated">
  40258. </method>
  40259. <method name="enable_tracing"
  40260. abstract="false" native="false" synchronized="false"
  40261. static="false" final="true" visibility="public"
  40262. deprecated="not deprecated">
  40263. </method>
  40264. <method name="disable_tracing"
  40265. abstract="false" native="false" synchronized="false"
  40266. static="false" final="true" visibility="public"
  40267. deprecated="not deprecated">
  40268. </method>
  40269. <field name="token_source" type="org.apache.hadoop.record.compiler.generated.RccTokenManager"
  40270. transient="false" volatile="false"
  40271. static="false" final="false" visibility="public"
  40272. deprecated="not deprecated">
  40273. </field>
  40274. <field name="token" type="org.apache.hadoop.record.compiler.generated.Token"
  40275. transient="false" volatile="false"
  40276. static="false" final="false" visibility="public"
  40277. deprecated="not deprecated">
  40278. </field>
  40279. <field name="jj_nt" type="org.apache.hadoop.record.compiler.generated.Token"
  40280. transient="false" volatile="false"
  40281. static="false" final="false" visibility="public"
  40282. deprecated="not deprecated">
  40283. </field>
  40284. </class>
  40285. <!-- end class org.apache.hadoop.record.compiler.generated.Rcc -->
  40286. <!-- start interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  40287. <interface name="RccConstants" abstract="true"
  40288. static="false" final="false" visibility="public"
  40289. deprecated="not deprecated">
  40290. <field name="EOF" type="int"
  40291. transient="false" volatile="false"
  40292. static="true" final="true" visibility="public"
  40293. deprecated="not deprecated">
  40294. </field>
  40295. <field name="MODULE_TKN" type="int"
  40296. transient="false" volatile="false"
  40297. static="true" final="true" visibility="public"
  40298. deprecated="not deprecated">
  40299. </field>
  40300. <field name="RECORD_TKN" type="int"
  40301. transient="false" volatile="false"
  40302. static="true" final="true" visibility="public"
  40303. deprecated="not deprecated">
  40304. </field>
  40305. <field name="INCLUDE_TKN" type="int"
  40306. transient="false" volatile="false"
  40307. static="true" final="true" visibility="public"
  40308. deprecated="not deprecated">
  40309. </field>
  40310. <field name="BYTE_TKN" type="int"
  40311. transient="false" volatile="false"
  40312. static="true" final="true" visibility="public"
  40313. deprecated="not deprecated">
  40314. </field>
  40315. <field name="BOOLEAN_TKN" type="int"
  40316. transient="false" volatile="false"
  40317. static="true" final="true" visibility="public"
  40318. deprecated="not deprecated">
  40319. </field>
  40320. <field name="INT_TKN" type="int"
  40321. transient="false" volatile="false"
  40322. static="true" final="true" visibility="public"
  40323. deprecated="not deprecated">
  40324. </field>
  40325. <field name="LONG_TKN" type="int"
  40326. transient="false" volatile="false"
  40327. static="true" final="true" visibility="public"
  40328. deprecated="not deprecated">
  40329. </field>
  40330. <field name="FLOAT_TKN" type="int"
  40331. transient="false" volatile="false"
  40332. static="true" final="true" visibility="public"
  40333. deprecated="not deprecated">
  40334. </field>
  40335. <field name="DOUBLE_TKN" type="int"
  40336. transient="false" volatile="false"
  40337. static="true" final="true" visibility="public"
  40338. deprecated="not deprecated">
  40339. </field>
  40340. <field name="USTRING_TKN" type="int"
  40341. transient="false" volatile="false"
  40342. static="true" final="true" visibility="public"
  40343. deprecated="not deprecated">
  40344. </field>
  40345. <field name="BUFFER_TKN" type="int"
  40346. transient="false" volatile="false"
  40347. static="true" final="true" visibility="public"
  40348. deprecated="not deprecated">
  40349. </field>
  40350. <field name="VECTOR_TKN" type="int"
  40351. transient="false" volatile="false"
  40352. static="true" final="true" visibility="public"
  40353. deprecated="not deprecated">
  40354. </field>
  40355. <field name="MAP_TKN" type="int"
  40356. transient="false" volatile="false"
  40357. static="true" final="true" visibility="public"
  40358. deprecated="not deprecated">
  40359. </field>
  40360. <field name="LBRACE_TKN" type="int"
  40361. transient="false" volatile="false"
  40362. static="true" final="true" visibility="public"
  40363. deprecated="not deprecated">
  40364. </field>
  40365. <field name="RBRACE_TKN" type="int"
  40366. transient="false" volatile="false"
  40367. static="true" final="true" visibility="public"
  40368. deprecated="not deprecated">
  40369. </field>
  40370. <field name="LT_TKN" type="int"
  40371. transient="false" volatile="false"
  40372. static="true" final="true" visibility="public"
  40373. deprecated="not deprecated">
  40374. </field>
  40375. <field name="GT_TKN" type="int"
  40376. transient="false" volatile="false"
  40377. static="true" final="true" visibility="public"
  40378. deprecated="not deprecated">
  40379. </field>
  40380. <field name="SEMICOLON_TKN" type="int"
  40381. transient="false" volatile="false"
  40382. static="true" final="true" visibility="public"
  40383. deprecated="not deprecated">
  40384. </field>
  40385. <field name="COMMA_TKN" type="int"
  40386. transient="false" volatile="false"
  40387. static="true" final="true" visibility="public"
  40388. deprecated="not deprecated">
  40389. </field>
  40390. <field name="DOT_TKN" type="int"
  40391. transient="false" volatile="false"
  40392. static="true" final="true" visibility="public"
  40393. deprecated="not deprecated">
  40394. </field>
  40395. <field name="CSTRING_TKN" type="int"
  40396. transient="false" volatile="false"
  40397. static="true" final="true" visibility="public"
  40398. deprecated="not deprecated">
  40399. </field>
  40400. <field name="IDENT_TKN" type="int"
  40401. transient="false" volatile="false"
  40402. static="true" final="true" visibility="public"
  40403. deprecated="not deprecated">
  40404. </field>
  40405. <field name="DEFAULT" type="int"
  40406. transient="false" volatile="false"
  40407. static="true" final="true" visibility="public"
  40408. deprecated="not deprecated">
  40409. </field>
  40410. <field name="WithinOneLineComment" type="int"
  40411. transient="false" volatile="false"
  40412. static="true" final="true" visibility="public"
  40413. deprecated="not deprecated">
  40414. </field>
  40415. <field name="WithinMultiLineComment" type="int"
  40416. transient="false" volatile="false"
  40417. static="true" final="true" visibility="public"
  40418. deprecated="not deprecated">
  40419. </field>
  40420. <field name="tokenImage" type="java.lang.String[]"
  40421. transient="false" volatile="false"
  40422. static="true" final="true" visibility="public"
  40423. deprecated="not deprecated">
  40424. </field>
  40425. </interface>
  40426. <!-- end interface org.apache.hadoop.record.compiler.generated.RccConstants -->
  40427. <!-- start class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  40428. <class name="RccTokenManager" extends="java.lang.Object"
  40429. abstract="false"
  40430. static="false" final="false" visibility="public"
  40431. deprecated="not deprecated">
  40432. <implements name="org.apache.hadoop.record.compiler.generated.RccConstants"/>
  40433. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  40434. static="false" final="false" visibility="public"
  40435. deprecated="not deprecated">
  40436. </constructor>
  40437. <constructor name="RccTokenManager" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream, int"
  40438. static="false" final="false" visibility="public"
  40439. deprecated="not deprecated">
  40440. </constructor>
  40441. <method name="setDebugStream"
  40442. abstract="false" native="false" synchronized="false"
  40443. static="false" final="false" visibility="public"
  40444. deprecated="not deprecated">
  40445. <param name="ds" type="java.io.PrintStream"/>
  40446. </method>
  40447. <method name="ReInit"
  40448. abstract="false" native="false" synchronized="false"
  40449. static="false" final="false" visibility="public"
  40450. deprecated="not deprecated">
  40451. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  40452. </method>
  40453. <method name="ReInit"
  40454. abstract="false" native="false" synchronized="false"
  40455. static="false" final="false" visibility="public"
  40456. deprecated="not deprecated">
  40457. <param name="stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"/>
  40458. <param name="lexState" type="int"/>
  40459. </method>
  40460. <method name="SwitchTo"
  40461. abstract="false" native="false" synchronized="false"
  40462. static="false" final="false" visibility="public"
  40463. deprecated="not deprecated">
  40464. <param name="lexState" type="int"/>
  40465. </method>
  40466. <method name="jjFillToken" return="org.apache.hadoop.record.compiler.generated.Token"
  40467. abstract="false" native="false" synchronized="false"
  40468. static="false" final="false" visibility="protected"
  40469. deprecated="not deprecated">
  40470. </method>
  40471. <method name="getNextToken" return="org.apache.hadoop.record.compiler.generated.Token"
  40472. abstract="false" native="false" synchronized="false"
  40473. static="false" final="false" visibility="public"
  40474. deprecated="not deprecated">
  40475. </method>
  40476. <field name="debugStream" type="java.io.PrintStream"
  40477. transient="false" volatile="false"
  40478. static="false" final="false" visibility="public"
  40479. deprecated="not deprecated">
  40480. </field>
  40481. <field name="jjstrLiteralImages" type="java.lang.String[]"
  40482. transient="false" volatile="false"
  40483. static="true" final="true" visibility="public"
  40484. deprecated="not deprecated">
  40485. </field>
  40486. <field name="lexStateNames" type="java.lang.String[]"
  40487. transient="false" volatile="false"
  40488. static="true" final="true" visibility="public"
  40489. deprecated="not deprecated">
  40490. </field>
  40491. <field name="jjnewLexState" type="int[]"
  40492. transient="false" volatile="false"
  40493. static="true" final="true" visibility="public"
  40494. deprecated="not deprecated">
  40495. </field>
  40496. <field name="input_stream" type="org.apache.hadoop.record.compiler.generated.SimpleCharStream"
  40497. transient="false" volatile="false"
  40498. static="false" final="false" visibility="protected"
  40499. deprecated="not deprecated">
  40500. </field>
  40501. <field name="curChar" type="char"
  40502. transient="false" volatile="false"
  40503. static="false" final="false" visibility="protected"
  40504. deprecated="not deprecated">
  40505. </field>
  40506. </class>
  40507. <!-- end class org.apache.hadoop.record.compiler.generated.RccTokenManager -->
  40508. <!-- start class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  40509. <class name="SimpleCharStream" extends="java.lang.Object"
  40510. abstract="false"
  40511. static="false" final="false" visibility="public"
  40512. deprecated="not deprecated">
  40513. <constructor name="SimpleCharStream" type="java.io.Reader, int, int, int"
  40514. static="false" final="false" visibility="public"
  40515. deprecated="not deprecated">
  40516. </constructor>
  40517. <constructor name="SimpleCharStream" type="java.io.Reader, int, int"
  40518. static="false" final="false" visibility="public"
  40519. deprecated="not deprecated">
  40520. </constructor>
  40521. <constructor name="SimpleCharStream" type="java.io.Reader"
  40522. static="false" final="false" visibility="public"
  40523. deprecated="not deprecated">
  40524. </constructor>
  40525. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int, int"
  40526. static="false" final="false" visibility="public"
  40527. deprecated="not deprecated">
  40528. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40529. </constructor>
  40530. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int, int"
  40531. static="false" final="false" visibility="public"
  40532. deprecated="not deprecated">
  40533. </constructor>
  40534. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String, int, int"
  40535. static="false" final="false" visibility="public"
  40536. deprecated="not deprecated">
  40537. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40538. </constructor>
  40539. <constructor name="SimpleCharStream" type="java.io.InputStream, int, int"
  40540. static="false" final="false" visibility="public"
  40541. deprecated="not deprecated">
  40542. </constructor>
  40543. <constructor name="SimpleCharStream" type="java.io.InputStream, java.lang.String"
  40544. static="false" final="false" visibility="public"
  40545. deprecated="not deprecated">
  40546. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40547. </constructor>
  40548. <constructor name="SimpleCharStream" type="java.io.InputStream"
  40549. static="false" final="false" visibility="public"
  40550. deprecated="not deprecated">
  40551. </constructor>
  40552. <method name="setTabSize"
  40553. abstract="false" native="false" synchronized="false"
  40554. static="false" final="false" visibility="protected"
  40555. deprecated="not deprecated">
  40556. <param name="i" type="int"/>
  40557. </method>
  40558. <method name="getTabSize" return="int"
  40559. abstract="false" native="false" synchronized="false"
  40560. static="false" final="false" visibility="protected"
  40561. deprecated="not deprecated">
  40562. <param name="i" type="int"/>
  40563. </method>
  40564. <method name="ExpandBuff"
  40565. abstract="false" native="false" synchronized="false"
  40566. static="false" final="false" visibility="protected"
  40567. deprecated="not deprecated">
  40568. <param name="wrapAround" type="boolean"/>
  40569. </method>
  40570. <method name="FillBuff"
  40571. abstract="false" native="false" synchronized="false"
  40572. static="false" final="false" visibility="protected"
  40573. deprecated="not deprecated">
  40574. <exception name="IOException" type="java.io.IOException"/>
  40575. </method>
  40576. <method name="BeginToken" return="char"
  40577. abstract="false" native="false" synchronized="false"
  40578. static="false" final="false" visibility="public"
  40579. deprecated="not deprecated">
  40580. <exception name="IOException" type="java.io.IOException"/>
  40581. </method>
  40582. <method name="UpdateLineColumn"
  40583. abstract="false" native="false" synchronized="false"
  40584. static="false" final="false" visibility="protected"
  40585. deprecated="not deprecated">
  40586. <param name="c" type="char"/>
  40587. </method>
  40588. <method name="readChar" return="char"
  40589. abstract="false" native="false" synchronized="false"
  40590. static="false" final="false" visibility="public"
  40591. deprecated="not deprecated">
  40592. <exception name="IOException" type="java.io.IOException"/>
  40593. </method>
  40594. <method name="getEndColumn" return="int"
  40595. abstract="false" native="false" synchronized="false"
  40596. static="false" final="false" visibility="public"
  40597. deprecated="not deprecated">
  40598. </method>
  40599. <method name="getEndLine" return="int"
  40600. abstract="false" native="false" synchronized="false"
  40601. static="false" final="false" visibility="public"
  40602. deprecated="not deprecated">
  40603. </method>
  40604. <method name="getBeginColumn" return="int"
  40605. abstract="false" native="false" synchronized="false"
  40606. static="false" final="false" visibility="public"
  40607. deprecated="not deprecated">
  40608. </method>
  40609. <method name="getBeginLine" return="int"
  40610. abstract="false" native="false" synchronized="false"
  40611. static="false" final="false" visibility="public"
  40612. deprecated="not deprecated">
  40613. </method>
  40614. <method name="backup"
  40615. abstract="false" native="false" synchronized="false"
  40616. static="false" final="false" visibility="public"
  40617. deprecated="not deprecated">
  40618. <param name="amount" type="int"/>
  40619. </method>
  40620. <method name="ReInit"
  40621. abstract="false" native="false" synchronized="false"
  40622. static="false" final="false" visibility="public"
  40623. deprecated="not deprecated">
  40624. <param name="dstream" type="java.io.Reader"/>
  40625. <param name="startline" type="int"/>
  40626. <param name="startcolumn" type="int"/>
  40627. <param name="buffersize" type="int"/>
  40628. </method>
  40629. <method name="ReInit"
  40630. abstract="false" native="false" synchronized="false"
  40631. static="false" final="false" visibility="public"
  40632. deprecated="not deprecated">
  40633. <param name="dstream" type="java.io.Reader"/>
  40634. <param name="startline" type="int"/>
  40635. <param name="startcolumn" type="int"/>
  40636. </method>
  40637. <method name="ReInit"
  40638. abstract="false" native="false" synchronized="false"
  40639. static="false" final="false" visibility="public"
  40640. deprecated="not deprecated">
  40641. <param name="dstream" type="java.io.Reader"/>
  40642. </method>
  40643. <method name="ReInit"
  40644. abstract="false" native="false" synchronized="false"
  40645. static="false" final="false" visibility="public"
  40646. deprecated="not deprecated">
  40647. <param name="dstream" type="java.io.InputStream"/>
  40648. <param name="encoding" type="java.lang.String"/>
  40649. <param name="startline" type="int"/>
  40650. <param name="startcolumn" type="int"/>
  40651. <param name="buffersize" type="int"/>
  40652. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40653. </method>
  40654. <method name="ReInit"
  40655. abstract="false" native="false" synchronized="false"
  40656. static="false" final="false" visibility="public"
  40657. deprecated="not deprecated">
  40658. <param name="dstream" type="java.io.InputStream"/>
  40659. <param name="startline" type="int"/>
  40660. <param name="startcolumn" type="int"/>
  40661. <param name="buffersize" type="int"/>
  40662. </method>
  40663. <method name="ReInit"
  40664. abstract="false" native="false" synchronized="false"
  40665. static="false" final="false" visibility="public"
  40666. deprecated="not deprecated">
  40667. <param name="dstream" type="java.io.InputStream"/>
  40668. <param name="encoding" type="java.lang.String"/>
  40669. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40670. </method>
  40671. <method name="ReInit"
  40672. abstract="false" native="false" synchronized="false"
  40673. static="false" final="false" visibility="public"
  40674. deprecated="not deprecated">
  40675. <param name="dstream" type="java.io.InputStream"/>
  40676. </method>
  40677. <method name="ReInit"
  40678. abstract="false" native="false" synchronized="false"
  40679. static="false" final="false" visibility="public"
  40680. deprecated="not deprecated">
  40681. <param name="dstream" type="java.io.InputStream"/>
  40682. <param name="encoding" type="java.lang.String"/>
  40683. <param name="startline" type="int"/>
  40684. <param name="startcolumn" type="int"/>
  40685. <exception name="UnsupportedEncodingException" type="java.io.UnsupportedEncodingException"/>
  40686. </method>
  40687. <method name="ReInit"
  40688. abstract="false" native="false" synchronized="false"
  40689. static="false" final="false" visibility="public"
  40690. deprecated="not deprecated">
  40691. <param name="dstream" type="java.io.InputStream"/>
  40692. <param name="startline" type="int"/>
  40693. <param name="startcolumn" type="int"/>
  40694. </method>
  40695. <method name="GetImage" return="java.lang.String"
  40696. abstract="false" native="false" synchronized="false"
  40697. static="false" final="false" visibility="public"
  40698. deprecated="not deprecated">
  40699. </method>
  40700. <method name="GetSuffix" return="char[]"
  40701. abstract="false" native="false" synchronized="false"
  40702. static="false" final="false" visibility="public"
  40703. deprecated="not deprecated">
  40704. <param name="len" type="int"/>
  40705. </method>
  40706. <method name="Done"
  40707. abstract="false" native="false" synchronized="false"
  40708. static="false" final="false" visibility="public"
  40709. deprecated="not deprecated">
  40710. </method>
  40711. <method name="adjustBeginLineColumn"
  40712. abstract="false" native="false" synchronized="false"
  40713. static="false" final="false" visibility="public"
  40714. deprecated="not deprecated">
  40715. <param name="newLine" type="int"/>
  40716. <param name="newCol" type="int"/>
  40717. <doc>
  40718. <![CDATA[Method to adjust line and column numbers for the start of a token.]]>
  40719. </doc>
  40720. </method>
  40721. <field name="staticFlag" type="boolean"
  40722. transient="false" volatile="false"
  40723. static="true" final="true" visibility="public"
  40724. deprecated="not deprecated">
  40725. </field>
  40726. <field name="bufpos" type="int"
  40727. transient="false" volatile="false"
  40728. static="false" final="false" visibility="public"
  40729. deprecated="not deprecated">
  40730. </field>
  40731. <field name="bufline" type="int[]"
  40732. transient="false" volatile="false"
  40733. static="false" final="false" visibility="protected"
  40734. deprecated="not deprecated">
  40735. </field>
  40736. <field name="bufcolumn" type="int[]"
  40737. transient="false" volatile="false"
  40738. static="false" final="false" visibility="protected"
  40739. deprecated="not deprecated">
  40740. </field>
  40741. <field name="column" type="int"
  40742. transient="false" volatile="false"
  40743. static="false" final="false" visibility="protected"
  40744. deprecated="not deprecated">
  40745. </field>
  40746. <field name="line" type="int"
  40747. transient="false" volatile="false"
  40748. static="false" final="false" visibility="protected"
  40749. deprecated="not deprecated">
  40750. </field>
  40751. <field name="prevCharIsCR" type="boolean"
  40752. transient="false" volatile="false"
  40753. static="false" final="false" visibility="protected"
  40754. deprecated="not deprecated">
  40755. </field>
  40756. <field name="prevCharIsLF" type="boolean"
  40757. transient="false" volatile="false"
  40758. static="false" final="false" visibility="protected"
  40759. deprecated="not deprecated">
  40760. </field>
  40761. <field name="inputStream" type="java.io.Reader"
  40762. transient="false" volatile="false"
  40763. static="false" final="false" visibility="protected"
  40764. deprecated="not deprecated">
  40765. </field>
  40766. <field name="buffer" type="char[]"
  40767. transient="false" volatile="false"
  40768. static="false" final="false" visibility="protected"
  40769. deprecated="not deprecated">
  40770. </field>
  40771. <field name="maxNextCharInd" type="int"
  40772. transient="false" volatile="false"
  40773. static="false" final="false" visibility="protected"
  40774. deprecated="not deprecated">
  40775. </field>
  40776. <field name="inBuf" type="int"
  40777. transient="false" volatile="false"
  40778. static="false" final="false" visibility="protected"
  40779. deprecated="not deprecated">
  40780. </field>
  40781. <field name="tabSize" type="int"
  40782. transient="false" volatile="false"
  40783. static="false" final="false" visibility="protected"
  40784. deprecated="not deprecated">
  40785. </field>
  40786. <doc>
  40787. <![CDATA[An implementation of interface CharStream, where the stream is assumed to
  40788. contain only ASCII characters (without unicode processing).]]>
  40789. </doc>
  40790. </class>
  40791. <!-- end class org.apache.hadoop.record.compiler.generated.SimpleCharStream -->
  40792. <!-- start class org.apache.hadoop.record.compiler.generated.Token -->
  40793. <class name="Token" extends="java.lang.Object"
  40794. abstract="false"
  40795. static="false" final="false" visibility="public"
  40796. deprecated="not deprecated">
  40797. <constructor name="Token"
  40798. static="false" final="false" visibility="public"
  40799. deprecated="not deprecated">
  40800. </constructor>
  40801. <method name="toString" return="java.lang.String"
  40802. abstract="false" native="false" synchronized="false"
  40803. static="false" final="false" visibility="public"
  40804. deprecated="not deprecated">
  40805. <doc>
  40806. <![CDATA[Returns the image.]]>
  40807. </doc>
  40808. </method>
  40809. <method name="newToken" return="org.apache.hadoop.record.compiler.generated.Token"
  40810. abstract="false" native="false" synchronized="false"
  40811. static="true" final="true" visibility="public"
  40812. deprecated="not deprecated">
  40813. <param name="ofKind" type="int"/>
  40814. <doc>
  40815. <![CDATA[Returns a new Token object, by default. However, if you want, you
  40816. can create and return subclass objects based on the value of ofKind.
  40817. Simply add the cases to the switch for all those special cases.
  40818. For example, if you have a subclass of Token called IDToken that
  40819. you want to create if ofKind is ID, simlpy add something like :
  40820. case MyParserConstants.ID : return new IDToken();
  40821. to the following switch statement. Then you can cast matchedToken
  40822. variable to the appropriate type and use it in your lexical actions.]]>
  40823. </doc>
  40824. </method>
  40825. <field name="kind" type="int"
  40826. transient="false" volatile="false"
  40827. static="false" final="false" visibility="public"
  40828. deprecated="not deprecated">
  40829. <doc>
  40830. <![CDATA[An integer that describes the kind of this token. This numbering
  40831. system is determined by JavaCCParser, and a table of these numbers is
  40832. stored in the file ...Constants.java.]]>
  40833. </doc>
  40834. </field>
  40835. <field name="beginLine" type="int"
  40836. transient="false" volatile="false"
  40837. static="false" final="false" visibility="public"
  40838. deprecated="not deprecated">
  40839. <doc>
  40840. <![CDATA[beginLine and beginColumn describe the position of the first character
  40841. of this token; endLine and endColumn describe the position of the
  40842. last character of this token.]]>
  40843. </doc>
  40844. </field>
  40845. <field name="beginColumn" type="int"
  40846. transient="false" volatile="false"
  40847. static="false" final="false" visibility="public"
  40848. deprecated="not deprecated">
  40849. <doc>
  40850. <![CDATA[beginLine and beginColumn describe the position of the first character
  40851. of this token; endLine and endColumn describe the position of the
  40852. last character of this token.]]>
  40853. </doc>
  40854. </field>
  40855. <field name="endLine" type="int"
  40856. transient="false" volatile="false"
  40857. static="false" final="false" visibility="public"
  40858. deprecated="not deprecated">
  40859. <doc>
  40860. <![CDATA[beginLine and beginColumn describe the position of the first character
  40861. of this token; endLine and endColumn describe the position of the
  40862. last character of this token.]]>
  40863. </doc>
  40864. </field>
  40865. <field name="endColumn" type="int"
  40866. transient="false" volatile="false"
  40867. static="false" final="false" visibility="public"
  40868. deprecated="not deprecated">
  40869. <doc>
  40870. <![CDATA[beginLine and beginColumn describe the position of the first character
  40871. of this token; endLine and endColumn describe the position of the
  40872. last character of this token.]]>
  40873. </doc>
  40874. </field>
  40875. <field name="image" type="java.lang.String"
  40876. transient="false" volatile="false"
  40877. static="false" final="false" visibility="public"
  40878. deprecated="not deprecated">
  40879. <doc>
  40880. <![CDATA[The string image of the token.]]>
  40881. </doc>
  40882. </field>
  40883. <field name="next" type="org.apache.hadoop.record.compiler.generated.Token"
  40884. transient="false" volatile="false"
  40885. static="false" final="false" visibility="public"
  40886. deprecated="not deprecated">
  40887. <doc>
  40888. <![CDATA[A reference to the next regular (non-special) token from the input
  40889. stream. If this is the last token from the input stream, or if the
  40890. token manager has not read tokens beyond this one, this field is
  40891. set to null. This is true only if this token is also a regular
  40892. token. Otherwise, see below for a description of the contents of
  40893. this field.]]>
  40894. </doc>
  40895. </field>
  40896. <field name="specialToken" type="org.apache.hadoop.record.compiler.generated.Token"
  40897. transient="false" volatile="false"
  40898. static="false" final="false" visibility="public"
  40899. deprecated="not deprecated">
  40900. <doc>
  40901. <![CDATA[This field is used to access special tokens that occur prior to this
  40902. token, but after the immediately preceding regular (non-special) token.
  40903. If there are no such special tokens, this field is set to null.
  40904. When there are more than one such special token, this field refers
  40905. to the last of these special tokens, which in turn refers to the next
  40906. previous special token through its specialToken field, and so on
  40907. until the first special token (whose specialToken field is null).
  40908. The next fields of special tokens refer to other special tokens that
  40909. immediately follow it (without an intervening regular token). If there
  40910. is no such token, this field is null.]]>
  40911. </doc>
  40912. </field>
  40913. <doc>
  40914. <![CDATA[Describes the input token stream.]]>
  40915. </doc>
  40916. </class>
  40917. <!-- end class org.apache.hadoop.record.compiler.generated.Token -->
  40918. <!-- start class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  40919. <class name="TokenMgrError" extends="java.lang.Error"
  40920. abstract="false"
  40921. static="false" final="false" visibility="public"
  40922. deprecated="not deprecated">
  40923. <constructor name="TokenMgrError"
  40924. static="false" final="false" visibility="public"
  40925. deprecated="not deprecated">
  40926. </constructor>
  40927. <constructor name="TokenMgrError" type="java.lang.String, int"
  40928. static="false" final="false" visibility="public"
  40929. deprecated="not deprecated">
  40930. </constructor>
  40931. <constructor name="TokenMgrError" type="boolean, int, int, int, java.lang.String, char, int"
  40932. static="false" final="false" visibility="public"
  40933. deprecated="not deprecated">
  40934. </constructor>
  40935. <method name="addEscapes" return="java.lang.String"
  40936. abstract="false" native="false" synchronized="false"
  40937. static="true" final="true" visibility="protected"
  40938. deprecated="not deprecated">
  40939. <param name="str" type="java.lang.String"/>
  40940. <doc>
  40941. <![CDATA[Replaces unprintable characters by their espaced (or unicode escaped)
  40942. equivalents in the given string]]>
  40943. </doc>
  40944. </method>
  40945. <method name="LexicalError" return="java.lang.String"
  40946. abstract="false" native="false" synchronized="false"
  40947. static="true" final="false" visibility="protected"
  40948. deprecated="not deprecated">
  40949. <param name="EOFSeen" type="boolean"/>
  40950. <param name="lexState" type="int"/>
  40951. <param name="errorLine" type="int"/>
  40952. <param name="errorColumn" type="int"/>
  40953. <param name="errorAfter" type="java.lang.String"/>
  40954. <param name="curChar" type="char"/>
  40955. <doc>
  40956. <![CDATA[Returns a detailed message for the Error when it is thrown by the
  40957. token manager to indicate a lexical error.
  40958. Parameters :
  40959. EOFSeen : indicates if EOF caused the lexicl error
  40960. curLexState : lexical state in which this error occured
  40961. errorLine : line number when the error occured
  40962. errorColumn : column number when the error occured
  40963. errorAfter : prefix that was seen before this error occured
  40964. curchar : the offending character
  40965. Note: You can customize the lexical error message by modifying this method.]]>
  40966. </doc>
  40967. </method>
  40968. <method name="getMessage" return="java.lang.String"
  40969. abstract="false" native="false" synchronized="false"
  40970. static="false" final="false" visibility="public"
  40971. deprecated="not deprecated">
  40972. <doc>
  40973. <![CDATA[You can also modify the body of this method to customize your error messages.
  40974. For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not
  40975. of end-users concern, so you can return something like :
  40976. "Internal Error : Please file a bug report .... "
  40977. from this method for such cases in the release version of your parser.]]>
  40978. </doc>
  40979. </method>
  40980. </class>
  40981. <!-- end class org.apache.hadoop.record.compiler.generated.TokenMgrError -->
  40982. </package>
  40983. <package name="org.apache.hadoop.record.meta">
  40984. <!-- start class org.apache.hadoop.record.meta.FieldTypeInfo -->
  40985. <class name="FieldTypeInfo" extends="java.lang.Object"
  40986. abstract="false"
  40987. static="false" final="false" visibility="public"
  40988. deprecated="not deprecated">
  40989. <method name="getTypeID" return="org.apache.hadoop.record.meta.TypeID"
  40990. abstract="false" native="false" synchronized="false"
  40991. static="false" final="false" visibility="public"
  40992. deprecated="not deprecated">
  40993. <doc>
  40994. <![CDATA[get the field's TypeID object]]>
  40995. </doc>
  40996. </method>
  40997. <method name="getFieldID" return="java.lang.String"
  40998. abstract="false" native="false" synchronized="false"
  40999. static="false" final="false" visibility="public"
  41000. deprecated="not deprecated">
  41001. <doc>
  41002. <![CDATA[get the field's id (name)]]>
  41003. </doc>
  41004. </method>
  41005. <method name="equals" return="boolean"
  41006. abstract="false" native="false" synchronized="false"
  41007. static="false" final="false" visibility="public"
  41008. deprecated="not deprecated">
  41009. <param name="o" type="java.lang.Object"/>
  41010. <doc>
  41011. <![CDATA[Two FieldTypeInfos are equal if ach of their fields matches]]>
  41012. </doc>
  41013. </method>
  41014. <method name="hashCode" return="int"
  41015. abstract="false" native="false" synchronized="false"
  41016. static="false" final="false" visibility="public"
  41017. deprecated="not deprecated">
  41018. <doc>
  41019. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  41020. be used as a hashmap key]]>
  41021. </doc>
  41022. </method>
  41023. <method name="equals" return="boolean"
  41024. abstract="false" native="false" synchronized="false"
  41025. static="false" final="false" visibility="public"
  41026. deprecated="not deprecated">
  41027. <param name="ti" type="org.apache.hadoop.record.meta.FieldTypeInfo"/>
  41028. </method>
  41029. <doc>
  41030. <![CDATA[Represents a type information for a field, which is made up of its
  41031. ID (name) and its type (a TypeID object).]]>
  41032. </doc>
  41033. </class>
  41034. <!-- end class org.apache.hadoop.record.meta.FieldTypeInfo -->
  41035. <!-- start class org.apache.hadoop.record.meta.MapTypeID -->
  41036. <class name="MapTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  41037. abstract="false"
  41038. static="false" final="false" visibility="public"
  41039. deprecated="not deprecated">
  41040. <constructor name="MapTypeID" type="org.apache.hadoop.record.meta.TypeID, org.apache.hadoop.record.meta.TypeID"
  41041. static="false" final="false" visibility="public"
  41042. deprecated="not deprecated">
  41043. </constructor>
  41044. <method name="getKeyTypeID" return="org.apache.hadoop.record.meta.TypeID"
  41045. abstract="false" native="false" synchronized="false"
  41046. static="false" final="false" visibility="public"
  41047. deprecated="not deprecated">
  41048. <doc>
  41049. <![CDATA[get the TypeID of the map's key element]]>
  41050. </doc>
  41051. </method>
  41052. <method name="getValueTypeID" return="org.apache.hadoop.record.meta.TypeID"
  41053. abstract="false" native="false" synchronized="false"
  41054. static="false" final="false" visibility="public"
  41055. deprecated="not deprecated">
  41056. <doc>
  41057. <![CDATA[get the TypeID of the map's value element]]>
  41058. </doc>
  41059. </method>
  41060. <method name="equals" return="boolean"
  41061. abstract="false" native="false" synchronized="false"
  41062. static="false" final="false" visibility="public"
  41063. deprecated="not deprecated">
  41064. <param name="o" type="java.lang.Object"/>
  41065. <doc>
  41066. <![CDATA[Two map typeIDs are equal if their constituent elements have the
  41067. same type]]>
  41068. </doc>
  41069. </method>
  41070. <method name="hashCode" return="int"
  41071. abstract="false" native="false" synchronized="false"
  41072. static="false" final="false" visibility="public"
  41073. deprecated="not deprecated">
  41074. <doc>
  41075. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  41076. be used as a hashmap key]]>
  41077. </doc>
  41078. </method>
  41079. <doc>
  41080. <![CDATA[Represents typeID for a Map]]>
  41081. </doc>
  41082. </class>
  41083. <!-- end class org.apache.hadoop.record.meta.MapTypeID -->
  41084. <!-- start class org.apache.hadoop.record.meta.RecordTypeInfo -->
  41085. <class name="RecordTypeInfo" extends="org.apache.hadoop.record.Record"
  41086. abstract="false"
  41087. static="false" final="false" visibility="public"
  41088. deprecated="not deprecated">
  41089. <constructor name="RecordTypeInfo"
  41090. static="false" final="false" visibility="public"
  41091. deprecated="not deprecated">
  41092. <doc>
  41093. <![CDATA[Create an empty RecordTypeInfo object.]]>
  41094. </doc>
  41095. </constructor>
  41096. <constructor name="RecordTypeInfo" type="java.lang.String"
  41097. static="false" final="false" visibility="public"
  41098. deprecated="not deprecated">
  41099. <doc>
  41100. <![CDATA[Create a RecordTypeInfo object representing a record with the given name
  41101. @param name Name of the record]]>
  41102. </doc>
  41103. </constructor>
  41104. <method name="getName" return="java.lang.String"
  41105. abstract="false" native="false" synchronized="false"
  41106. static="false" final="false" visibility="public"
  41107. deprecated="not deprecated">
  41108. <doc>
  41109. <![CDATA[return the name of the record]]>
  41110. </doc>
  41111. </method>
  41112. <method name="setName"
  41113. abstract="false" native="false" synchronized="false"
  41114. static="false" final="false" visibility="public"
  41115. deprecated="not deprecated">
  41116. <param name="name" type="java.lang.String"/>
  41117. <doc>
  41118. <![CDATA[set the name of the record]]>
  41119. </doc>
  41120. </method>
  41121. <method name="addField"
  41122. abstract="false" native="false" synchronized="false"
  41123. static="false" final="false" visibility="public"
  41124. deprecated="not deprecated">
  41125. <param name="fieldName" type="java.lang.String"/>
  41126. <param name="tid" type="org.apache.hadoop.record.meta.TypeID"/>
  41127. <doc>
  41128. <![CDATA[Add a field.
  41129. @param fieldName Name of the field
  41130. @param tid Type ID of the field]]>
  41131. </doc>
  41132. </method>
  41133. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  41134. abstract="false" native="false" synchronized="false"
  41135. static="false" final="false" visibility="public"
  41136. deprecated="not deprecated">
  41137. <doc>
  41138. <![CDATA[Return a collection of field type infos]]>
  41139. </doc>
  41140. </method>
  41141. <method name="getNestedStructTypeInfo" return="org.apache.hadoop.record.meta.RecordTypeInfo"
  41142. abstract="false" native="false" synchronized="false"
  41143. static="false" final="false" visibility="public"
  41144. deprecated="not deprecated">
  41145. <param name="name" type="java.lang.String"/>
  41146. <doc>
  41147. <![CDATA[Return the type info of a nested record. We only consider nesting
  41148. to one level.
  41149. @param name Name of the nested record]]>
  41150. </doc>
  41151. </method>
  41152. <method name="serialize"
  41153. abstract="false" native="false" synchronized="false"
  41154. static="false" final="false" visibility="public"
  41155. deprecated="not deprecated">
  41156. <param name="rout" type="org.apache.hadoop.record.RecordOutput"/>
  41157. <param name="tag" type="java.lang.String"/>
  41158. <exception name="IOException" type="java.io.IOException"/>
  41159. <doc>
  41160. <![CDATA[Serialize the type information for a record]]>
  41161. </doc>
  41162. </method>
  41163. <method name="deserialize"
  41164. abstract="false" native="false" synchronized="false"
  41165. static="false" final="false" visibility="public"
  41166. deprecated="not deprecated">
  41167. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  41168. <param name="tag" type="java.lang.String"/>
  41169. <exception name="IOException" type="java.io.IOException"/>
  41170. <doc>
  41171. <![CDATA[Deserialize the type information for a record]]>
  41172. </doc>
  41173. </method>
  41174. <method name="compareTo" return="int"
  41175. abstract="false" native="false" synchronized="false"
  41176. static="false" final="false" visibility="public"
  41177. deprecated="not deprecated">
  41178. <param name="peer_" type="java.lang.Object"/>
  41179. <exception name="ClassCastException" type="java.lang.ClassCastException"/>
  41180. <doc>
  41181. <![CDATA[This class doesn't implement Comparable as it's not meant to be used
  41182. for anything besides de/serializing.
  41183. So we always throw an exception.
  41184. Not implemented. Always returns 0 if another RecordTypeInfo is passed in.]]>
  41185. </doc>
  41186. </method>
  41187. <doc>
  41188. <![CDATA[A record's Type Information object which can read/write itself.
  41189. Type information for a record comprises metadata about the record,
  41190. as well as a collection of type information for each field in the record.]]>
  41191. </doc>
  41192. </class>
  41193. <!-- end class org.apache.hadoop.record.meta.RecordTypeInfo -->
  41194. <!-- start class org.apache.hadoop.record.meta.StructTypeID -->
  41195. <class name="StructTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  41196. abstract="false"
  41197. static="false" final="false" visibility="public"
  41198. deprecated="not deprecated">
  41199. <constructor name="StructTypeID" type="org.apache.hadoop.record.meta.RecordTypeInfo"
  41200. static="false" final="false" visibility="public"
  41201. deprecated="not deprecated">
  41202. <doc>
  41203. <![CDATA[Create a StructTypeID based on the RecordTypeInfo of some record]]>
  41204. </doc>
  41205. </constructor>
  41206. <method name="getFieldTypeInfos" return="java.util.Collection&lt;org.apache.hadoop.record.meta.FieldTypeInfo&gt;"
  41207. abstract="false" native="false" synchronized="false"
  41208. static="false" final="false" visibility="public"
  41209. deprecated="not deprecated">
  41210. </method>
  41211. <doc>
  41212. <![CDATA[Represents typeID for a struct]]>
  41213. </doc>
  41214. </class>
  41215. <!-- end class org.apache.hadoop.record.meta.StructTypeID -->
  41216. <!-- start class org.apache.hadoop.record.meta.TypeID -->
  41217. <class name="TypeID" extends="java.lang.Object"
  41218. abstract="false"
  41219. static="false" final="false" visibility="public"
  41220. deprecated="not deprecated">
  41221. <method name="getTypeVal" return="byte"
  41222. abstract="false" native="false" synchronized="false"
  41223. static="false" final="false" visibility="public"
  41224. deprecated="not deprecated">
  41225. <doc>
  41226. <![CDATA[Get the type value. One of the constants in RIOType.]]>
  41227. </doc>
  41228. </method>
  41229. <method name="equals" return="boolean"
  41230. abstract="false" native="false" synchronized="false"
  41231. static="false" final="false" visibility="public"
  41232. deprecated="not deprecated">
  41233. <param name="o" type="java.lang.Object"/>
  41234. <doc>
  41235. <![CDATA[Two base typeIDs are equal if they refer to the same type]]>
  41236. </doc>
  41237. </method>
  41238. <method name="hashCode" return="int"
  41239. abstract="false" native="false" synchronized="false"
  41240. static="false" final="false" visibility="public"
  41241. deprecated="not deprecated">
  41242. <doc>
  41243. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  41244. be used as a hashmap key]]>
  41245. </doc>
  41246. </method>
  41247. <field name="BoolTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41248. transient="false" volatile="false"
  41249. static="true" final="true" visibility="public"
  41250. deprecated="not deprecated">
  41251. <doc>
  41252. <![CDATA[Constant classes for the basic types, so we can share them.]]>
  41253. </doc>
  41254. </field>
  41255. <field name="BufferTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41256. transient="false" volatile="false"
  41257. static="true" final="true" visibility="public"
  41258. deprecated="not deprecated">
  41259. </field>
  41260. <field name="ByteTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41261. transient="false" volatile="false"
  41262. static="true" final="true" visibility="public"
  41263. deprecated="not deprecated">
  41264. </field>
  41265. <field name="DoubleTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41266. transient="false" volatile="false"
  41267. static="true" final="true" visibility="public"
  41268. deprecated="not deprecated">
  41269. </field>
  41270. <field name="FloatTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41271. transient="false" volatile="false"
  41272. static="true" final="true" visibility="public"
  41273. deprecated="not deprecated">
  41274. </field>
  41275. <field name="IntTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41276. transient="false" volatile="false"
  41277. static="true" final="true" visibility="public"
  41278. deprecated="not deprecated">
  41279. </field>
  41280. <field name="LongTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41281. transient="false" volatile="false"
  41282. static="true" final="true" visibility="public"
  41283. deprecated="not deprecated">
  41284. </field>
  41285. <field name="StringTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41286. transient="false" volatile="false"
  41287. static="true" final="true" visibility="public"
  41288. deprecated="not deprecated">
  41289. </field>
  41290. <field name="typeVal" type="byte"
  41291. transient="false" volatile="false"
  41292. static="false" final="false" visibility="protected"
  41293. deprecated="not deprecated">
  41294. </field>
  41295. <doc>
  41296. <![CDATA[Represents typeID for basic types.]]>
  41297. </doc>
  41298. </class>
  41299. <!-- end class org.apache.hadoop.record.meta.TypeID -->
  41300. <!-- start class org.apache.hadoop.record.meta.TypeID.RIOType -->
  41301. <class name="TypeID.RIOType" extends="java.lang.Object"
  41302. abstract="false"
  41303. static="true" final="true" visibility="public"
  41304. deprecated="not deprecated">
  41305. <constructor name="TypeID.RIOType"
  41306. static="false" final="false" visibility="public"
  41307. deprecated="not deprecated">
  41308. </constructor>
  41309. <field name="BOOL" type="byte"
  41310. transient="false" volatile="false"
  41311. static="true" final="true" visibility="public"
  41312. deprecated="not deprecated">
  41313. </field>
  41314. <field name="BUFFER" type="byte"
  41315. transient="false" volatile="false"
  41316. static="true" final="true" visibility="public"
  41317. deprecated="not deprecated">
  41318. </field>
  41319. <field name="BYTE" type="byte"
  41320. transient="false" volatile="false"
  41321. static="true" final="true" visibility="public"
  41322. deprecated="not deprecated">
  41323. </field>
  41324. <field name="DOUBLE" type="byte"
  41325. transient="false" volatile="false"
  41326. static="true" final="true" visibility="public"
  41327. deprecated="not deprecated">
  41328. </field>
  41329. <field name="FLOAT" type="byte"
  41330. transient="false" volatile="false"
  41331. static="true" final="true" visibility="public"
  41332. deprecated="not deprecated">
  41333. </field>
  41334. <field name="INT" type="byte"
  41335. transient="false" volatile="false"
  41336. static="true" final="true" visibility="public"
  41337. deprecated="not deprecated">
  41338. </field>
  41339. <field name="LONG" type="byte"
  41340. transient="false" volatile="false"
  41341. static="true" final="true" visibility="public"
  41342. deprecated="not deprecated">
  41343. </field>
  41344. <field name="MAP" type="byte"
  41345. transient="false" volatile="false"
  41346. static="true" final="true" visibility="public"
  41347. deprecated="not deprecated">
  41348. </field>
  41349. <field name="STRING" type="byte"
  41350. transient="false" volatile="false"
  41351. static="true" final="true" visibility="public"
  41352. deprecated="not deprecated">
  41353. </field>
  41354. <field name="STRUCT" type="byte"
  41355. transient="false" volatile="false"
  41356. static="true" final="true" visibility="public"
  41357. deprecated="not deprecated">
  41358. </field>
  41359. <field name="VECTOR" type="byte"
  41360. transient="false" volatile="false"
  41361. static="true" final="true" visibility="public"
  41362. deprecated="not deprecated">
  41363. </field>
  41364. <doc>
  41365. <![CDATA[constants representing the IDL types we support]]>
  41366. </doc>
  41367. </class>
  41368. <!-- end class org.apache.hadoop.record.meta.TypeID.RIOType -->
  41369. <!-- start class org.apache.hadoop.record.meta.Utils -->
  41370. <class name="Utils" extends="java.lang.Object"
  41371. abstract="false"
  41372. static="false" final="false" visibility="public"
  41373. deprecated="not deprecated">
  41374. <method name="skip"
  41375. abstract="false" native="false" synchronized="false"
  41376. static="true" final="false" visibility="public"
  41377. deprecated="not deprecated">
  41378. <param name="rin" type="org.apache.hadoop.record.RecordInput"/>
  41379. <param name="tag" type="java.lang.String"/>
  41380. <param name="typeID" type="org.apache.hadoop.record.meta.TypeID"/>
  41381. <exception name="IOException" type="java.io.IOException"/>
  41382. <doc>
  41383. <![CDATA[read/skip bytes from stream based on a type]]>
  41384. </doc>
  41385. </method>
  41386. <doc>
  41387. <![CDATA[Various utility functions for Hadooop record I/O platform.]]>
  41388. </doc>
  41389. </class>
  41390. <!-- end class org.apache.hadoop.record.meta.Utils -->
  41391. <!-- start class org.apache.hadoop.record.meta.VectorTypeID -->
  41392. <class name="VectorTypeID" extends="org.apache.hadoop.record.meta.TypeID"
  41393. abstract="false"
  41394. static="false" final="false" visibility="public"
  41395. deprecated="not deprecated">
  41396. <constructor name="VectorTypeID" type="org.apache.hadoop.record.meta.TypeID"
  41397. static="false" final="false" visibility="public"
  41398. deprecated="not deprecated">
  41399. </constructor>
  41400. <method name="getElementTypeID" return="org.apache.hadoop.record.meta.TypeID"
  41401. abstract="false" native="false" synchronized="false"
  41402. static="false" final="false" visibility="public"
  41403. deprecated="not deprecated">
  41404. </method>
  41405. <method name="equals" return="boolean"
  41406. abstract="false" native="false" synchronized="false"
  41407. static="false" final="false" visibility="public"
  41408. deprecated="not deprecated">
  41409. <param name="o" type="java.lang.Object"/>
  41410. <doc>
  41411. <![CDATA[Two vector typeIDs are equal if their constituent elements have the
  41412. same type]]>
  41413. </doc>
  41414. </method>
  41415. <method name="hashCode" return="int"
  41416. abstract="false" native="false" synchronized="false"
  41417. static="false" final="false" visibility="public"
  41418. deprecated="not deprecated">
  41419. <doc>
  41420. <![CDATA[We use a basic hashcode implementation, since this class will likely not
  41421. be used as a hashmap key]]>
  41422. </doc>
  41423. </method>
  41424. <doc>
  41425. <![CDATA[Represents typeID for vector.]]>
  41426. </doc>
  41427. </class>
  41428. <!-- end class org.apache.hadoop.record.meta.VectorTypeID -->
  41429. </package>
  41430. <package name="org.apache.hadoop.security">
  41431. <!-- start class org.apache.hadoop.security.UnixUserGroupInformation -->
  41432. <class name="UnixUserGroupInformation" extends="org.apache.hadoop.security.UserGroupInformation"
  41433. abstract="false"
  41434. static="false" final="false" visibility="public"
  41435. deprecated="not deprecated">
  41436. <constructor name="UnixUserGroupInformation"
  41437. static="false" final="false" visibility="public"
  41438. deprecated="not deprecated">
  41439. <doc>
  41440. <![CDATA[Default constructor]]>
  41441. </doc>
  41442. </constructor>
  41443. <constructor name="UnixUserGroupInformation" type="java.lang.String, java.lang.String[]"
  41444. static="false" final="false" visibility="public"
  41445. deprecated="not deprecated">
  41446. <doc>
  41447. <![CDATA[Constructor with parameters user name and its group names.
  41448. The first entry in the groups list is the default group.
  41449. @param userName a user's name
  41450. @param groupNames groups list, first of which is the default group
  41451. @exception IllegalArgumentException if any argument is null]]>
  41452. </doc>
  41453. </constructor>
  41454. <constructor name="UnixUserGroupInformation" type="java.lang.String[]"
  41455. static="false" final="false" visibility="public"
  41456. deprecated="not deprecated">
  41457. <doc>
  41458. <![CDATA[Constructor with parameter user/group names
  41459. @param ugi an array containing user/group names, the first
  41460. element of which is the user name, the second of
  41461. which is the default group name.
  41462. @exception IllegalArgumentException if the array size is less than 2
  41463. or any element is null.]]>
  41464. </doc>
  41465. </constructor>
  41466. <method name="createImmutable" return="org.apache.hadoop.security.UnixUserGroupInformation"
  41467. abstract="false" native="false" synchronized="false"
  41468. static="true" final="false" visibility="public"
  41469. deprecated="not deprecated">
  41470. <param name="ugi" type="java.lang.String[]"/>
  41471. <doc>
  41472. <![CDATA[Create an immutable {@link UnixUserGroupInformation} object.]]>
  41473. </doc>
  41474. </method>
  41475. <method name="getGroupNames" return="java.lang.String[]"
  41476. abstract="false" native="false" synchronized="false"
  41477. static="false" final="false" visibility="public"
  41478. deprecated="not deprecated">
  41479. <doc>
  41480. <![CDATA[Return an array of group names]]>
  41481. </doc>
  41482. </method>
  41483. <method name="getUserName" return="java.lang.String"
  41484. abstract="false" native="false" synchronized="false"
  41485. static="false" final="false" visibility="public"
  41486. deprecated="not deprecated">
  41487. <doc>
  41488. <![CDATA[Return the user's name]]>
  41489. </doc>
  41490. </method>
  41491. <method name="readFields"
  41492. abstract="false" native="false" synchronized="false"
  41493. static="false" final="false" visibility="public"
  41494. deprecated="not deprecated">
  41495. <param name="in" type="java.io.DataInput"/>
  41496. <exception name="IOException" type="java.io.IOException"/>
  41497. <doc>
  41498. <![CDATA[Deserialize this object
  41499. First check if this is a UGI in the string format.
  41500. If no, throw an IOException; otherwise
  41501. set this object's fields by reading them from the given data input
  41502. @param in input stream
  41503. @exception IOException is thrown if encounter any error when reading]]>
  41504. </doc>
  41505. </method>
  41506. <method name="write"
  41507. abstract="false" native="false" synchronized="false"
  41508. static="false" final="false" visibility="public"
  41509. deprecated="not deprecated">
  41510. <param name="out" type="java.io.DataOutput"/>
  41511. <exception name="IOException" type="java.io.IOException"/>
  41512. <doc>
  41513. <![CDATA[Serialize this object
  41514. First write a string marking that this is a UGI in the string format,
  41515. then write this object's serialized form to the given data output
  41516. @param out output stream
  41517. @exception IOException if encounter any error during writing]]>
  41518. </doc>
  41519. </method>
  41520. <method name="saveToConf"
  41521. abstract="false" native="false" synchronized="false"
  41522. static="true" final="false" visibility="public"
  41523. deprecated="not deprecated">
  41524. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41525. <param name="attr" type="java.lang.String"/>
  41526. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  41527. <doc>
  41528. <![CDATA[Store the given <code>ugi</code> as a comma separated string in
  41529. <code>conf</code> as a property <code>attr</code>
  41530. The String starts with the user name followed by the default group names,
  41531. and other group names.
  41532. @param conf configuration
  41533. @param attr property name
  41534. @param ugi a UnixUserGroupInformation]]>
  41535. </doc>
  41536. </method>
  41537. <method name="readFromConf" return="org.apache.hadoop.security.UnixUserGroupInformation"
  41538. abstract="false" native="false" synchronized="false"
  41539. static="true" final="false" visibility="public"
  41540. deprecated="not deprecated">
  41541. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41542. <param name="attr" type="java.lang.String"/>
  41543. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  41544. <doc>
  41545. <![CDATA[Read a UGI from the given <code>conf</code>
  41546. The object is expected to store with the property name <code>attr</code>
  41547. as a comma separated string that starts
  41548. with the user name followed by group names.
  41549. If the property name is not defined, return null.
  41550. It's assumed that there is only one UGI per user. If this user already
  41551. has a UGI in the ugi map, return the ugi in the map.
  41552. Otherwise, construct a UGI from the configuration, store it in the
  41553. ugi map and return it.
  41554. @param conf configuration
  41555. @param attr property name
  41556. @return a UnixUGI
  41557. @throws LoginException if the stored string is ill-formatted.]]>
  41558. </doc>
  41559. </method>
  41560. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  41561. abstract="false" native="false" synchronized="false"
  41562. static="true" final="false" visibility="public"
  41563. deprecated="not deprecated">
  41564. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  41565. <doc>
  41566. <![CDATA[Get current user's name and the names of all its groups from Unix.
  41567. It's assumed that there is only one UGI per user. If this user already
  41568. has a UGI in the ugi map, return the ugi in the map.
  41569. Otherwise get the current user's information from Unix, store it
  41570. in the map, and return it.]]>
  41571. </doc>
  41572. </method>
  41573. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  41574. abstract="false" native="false" synchronized="false"
  41575. static="true" final="false" visibility="public"
  41576. deprecated="not deprecated">
  41577. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41578. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  41579. <doc>
  41580. <![CDATA[Equivalent to login(conf, false).]]>
  41581. </doc>
  41582. </method>
  41583. <method name="login" return="org.apache.hadoop.security.UnixUserGroupInformation"
  41584. abstract="false" native="false" synchronized="false"
  41585. static="true" final="false" visibility="public"
  41586. deprecated="not deprecated">
  41587. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41588. <param name="save" type="boolean"/>
  41589. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  41590. <doc>
  41591. <![CDATA[Get a user's name & its group names from the given configuration;
  41592. If it is not defined in the configuration, get the current user's
  41593. information from Unix.
  41594. If the user has a UGI in the ugi map, return the one in
  41595. the UGI map.
  41596. @param conf either a job configuration or client's configuration
  41597. @param save saving it to conf?
  41598. @return UnixUserGroupInformation a user/group information
  41599. @exception LoginException if not able to get the user/group information]]>
  41600. </doc>
  41601. </method>
  41602. <method name="equals" return="boolean"
  41603. abstract="false" native="false" synchronized="false"
  41604. static="false" final="false" visibility="public"
  41605. deprecated="not deprecated">
  41606. <param name="other" type="java.lang.Object"/>
  41607. <doc>
  41608. <![CDATA[Decide if two UGIs are the same
  41609. @param other other object
  41610. @return true if they are the same; false otherwise.]]>
  41611. </doc>
  41612. </method>
  41613. <method name="hashCode" return="int"
  41614. abstract="false" native="false" synchronized="false"
  41615. static="false" final="false" visibility="public"
  41616. deprecated="not deprecated">
  41617. <doc>
  41618. <![CDATA[Returns a hash code for this UGI.
  41619. The hash code for a UGI is the hash code of its user name string.
  41620. @return a hash code value for this UGI.]]>
  41621. </doc>
  41622. </method>
  41623. <method name="toString" return="java.lang.String"
  41624. abstract="false" native="false" synchronized="false"
  41625. static="false" final="false" visibility="public"
  41626. deprecated="not deprecated">
  41627. <doc>
  41628. <![CDATA[Convert this object to a string
  41629. @return a comma separated string containing the user name and group names]]>
  41630. </doc>
  41631. </method>
  41632. <field name="UGI_PROPERTY_NAME" type="java.lang.String"
  41633. transient="false" volatile="false"
  41634. static="true" final="true" visibility="public"
  41635. deprecated="not deprecated">
  41636. </field>
  41637. <doc>
  41638. <![CDATA[An implementation of UserGroupInformation in the Unix system]]>
  41639. </doc>
  41640. </class>
  41641. <!-- end class org.apache.hadoop.security.UnixUserGroupInformation -->
  41642. <!-- start class org.apache.hadoop.security.UserGroupInformation -->
  41643. <class name="UserGroupInformation" extends="java.lang.Object"
  41644. abstract="true"
  41645. static="false" final="false" visibility="public"
  41646. deprecated="not deprecated">
  41647. <implements name="org.apache.hadoop.io.Writable"/>
  41648. <constructor name="UserGroupInformation"
  41649. static="false" final="false" visibility="public"
  41650. deprecated="not deprecated">
  41651. </constructor>
  41652. <method name="getCurrentUGI" return="org.apache.hadoop.security.UserGroupInformation"
  41653. abstract="false" native="false" synchronized="false"
  41654. static="true" final="false" visibility="public"
  41655. deprecated="not deprecated">
  41656. <doc>
  41657. <![CDATA[@return the {@link UserGroupInformation} for the current thread]]>
  41658. </doc>
  41659. </method>
  41660. <method name="setCurrentUGI"
  41661. abstract="false" native="false" synchronized="false"
  41662. static="true" final="false" visibility="public"
  41663. deprecated="not deprecated">
  41664. <param name="ugi" type="org.apache.hadoop.security.UserGroupInformation"/>
  41665. <doc>
  41666. <![CDATA[Set the {@link UserGroupInformation} for the current thread]]>
  41667. </doc>
  41668. </method>
  41669. <method name="getUserName" return="java.lang.String"
  41670. abstract="true" native="false" synchronized="false"
  41671. static="false" final="false" visibility="public"
  41672. deprecated="not deprecated">
  41673. <doc>
  41674. <![CDATA[Get username
  41675. @return the user's name]]>
  41676. </doc>
  41677. </method>
  41678. <method name="getGroupNames" return="java.lang.String[]"
  41679. abstract="true" native="false" synchronized="false"
  41680. static="false" final="false" visibility="public"
  41681. deprecated="not deprecated">
  41682. <doc>
  41683. <![CDATA[Get the name of the groups that the user belong to
  41684. @return an array of group names]]>
  41685. </doc>
  41686. </method>
  41687. <method name="login" return="org.apache.hadoop.security.UserGroupInformation"
  41688. abstract="false" native="false" synchronized="false"
  41689. static="true" final="false" visibility="public"
  41690. deprecated="not deprecated">
  41691. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41692. <exception name="LoginException" type="javax.security.auth.login.LoginException"/>
  41693. <doc>
  41694. <![CDATA[Login and return a UserGroupInformation object.]]>
  41695. </doc>
  41696. </method>
  41697. <method name="readFrom" return="org.apache.hadoop.security.UserGroupInformation"
  41698. abstract="false" native="false" synchronized="false"
  41699. static="true" final="false" visibility="public"
  41700. deprecated="not deprecated">
  41701. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41702. <exception name="IOException" type="java.io.IOException"/>
  41703. <doc>
  41704. <![CDATA[Read a {@link UserGroupInformation} from conf]]>
  41705. </doc>
  41706. </method>
  41707. <field name="LOG" type="org.apache.commons.logging.Log"
  41708. transient="false" volatile="false"
  41709. static="true" final="true" visibility="public"
  41710. deprecated="not deprecated">
  41711. </field>
  41712. <doc>
  41713. <![CDATA[A {@link Writable} abstract class for storing user and groups information.]]>
  41714. </doc>
  41715. </class>
  41716. <!-- end class org.apache.hadoop.security.UserGroupInformation -->
  41717. </package>
  41718. <package name="org.apache.hadoop.tools">
  41719. <!-- start class org.apache.hadoop.tools.DistCp -->
  41720. <class name="DistCp" extends="java.lang.Object"
  41721. abstract="false"
  41722. static="false" final="false" visibility="public"
  41723. deprecated="not deprecated">
  41724. <implements name="org.apache.hadoop.util.Tool"/>
  41725. <constructor name="DistCp" type="org.apache.hadoop.conf.Configuration"
  41726. static="false" final="false" visibility="public"
  41727. deprecated="not deprecated">
  41728. </constructor>
  41729. <method name="setConf"
  41730. abstract="false" native="false" synchronized="false"
  41731. static="false" final="false" visibility="public"
  41732. deprecated="not deprecated">
  41733. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41734. </method>
  41735. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  41736. abstract="false" native="false" synchronized="false"
  41737. static="false" final="false" visibility="public"
  41738. deprecated="not deprecated">
  41739. </method>
  41740. <method name="copy"
  41741. abstract="false" native="false" synchronized="false"
  41742. static="true" final="false" visibility="public"
  41743. deprecated="not deprecated">
  41744. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41745. <param name="srcPath" type="java.lang.String"/>
  41746. <param name="destPath" type="java.lang.String"/>
  41747. <param name="logPath" type="org.apache.hadoop.fs.Path"/>
  41748. <param name="srcAsList" type="boolean"/>
  41749. <param name="ignoreReadFailures" type="boolean"/>
  41750. <exception name="IOException" type="java.io.IOException"/>
  41751. </method>
  41752. <method name="run" return="int"
  41753. abstract="false" native="false" synchronized="false"
  41754. static="false" final="false" visibility="public"
  41755. deprecated="not deprecated">
  41756. <param name="args" type="java.lang.String[]"/>
  41757. <exception name="Exception" type="java.lang.Exception"/>
  41758. <doc>
  41759. <![CDATA[This is the main driver for recursively copying directories
  41760. across file systems. It takes at least two cmdline parameters. A source
  41761. URL and a destination URL. It then essentially does an "ls -lR" on the
  41762. source URL, and writes the output in a round-robin manner to all the map
  41763. input files. The mapper actually copies the files allotted to it. The
  41764. reduce is empty.]]>
  41765. </doc>
  41766. </method>
  41767. <method name="main"
  41768. abstract="false" native="false" synchronized="false"
  41769. static="true" final="false" visibility="public"
  41770. deprecated="not deprecated">
  41771. <param name="args" type="java.lang.String[]"/>
  41772. <exception name="Exception" type="java.lang.Exception"/>
  41773. </method>
  41774. <method name="getRandomId" return="java.lang.String"
  41775. abstract="false" native="false" synchronized="false"
  41776. static="true" final="false" visibility="public"
  41777. deprecated="not deprecated">
  41778. </method>
  41779. <doc>
  41780. <![CDATA[A Map-reduce program to recursively copy directories between
  41781. different file-systems.]]>
  41782. </doc>
  41783. </class>
  41784. <!-- end class org.apache.hadoop.tools.DistCp -->
  41785. <!-- start class org.apache.hadoop.tools.DistCp.DuplicationException -->
  41786. <class name="DistCp.DuplicationException" extends="java.io.IOException"
  41787. abstract="false"
  41788. static="true" final="false" visibility="public"
  41789. deprecated="not deprecated">
  41790. <field name="ERROR_CODE" type="int"
  41791. transient="false" volatile="false"
  41792. static="true" final="true" visibility="public"
  41793. deprecated="not deprecated">
  41794. <doc>
  41795. <![CDATA[Error code for this exception]]>
  41796. </doc>
  41797. </field>
  41798. <doc>
  41799. <![CDATA[An exception class for duplicated source files.]]>
  41800. </doc>
  41801. </class>
  41802. <!-- end class org.apache.hadoop.tools.DistCp.DuplicationException -->
  41803. <!-- start class org.apache.hadoop.tools.HadoopArchives -->
  41804. <class name="HadoopArchives" extends="java.lang.Object"
  41805. abstract="false"
  41806. static="false" final="false" visibility="public"
  41807. deprecated="not deprecated">
  41808. <implements name="org.apache.hadoop.util.Tool"/>
  41809. <constructor name="HadoopArchives" type="org.apache.hadoop.conf.Configuration"
  41810. static="false" final="false" visibility="public"
  41811. deprecated="not deprecated">
  41812. </constructor>
  41813. <method name="setConf"
  41814. abstract="false" native="false" synchronized="false"
  41815. static="false" final="false" visibility="public"
  41816. deprecated="not deprecated">
  41817. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41818. </method>
  41819. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  41820. abstract="false" native="false" synchronized="false"
  41821. static="false" final="false" visibility="public"
  41822. deprecated="not deprecated">
  41823. </method>
  41824. <method name="archive"
  41825. abstract="false" native="false" synchronized="false"
  41826. static="false" final="false" visibility="public"
  41827. deprecated="not deprecated">
  41828. <param name="srcPaths" type="java.util.List&lt;org.apache.hadoop.fs.Path&gt;"/>
  41829. <param name="archiveName" type="java.lang.String"/>
  41830. <param name="dest" type="org.apache.hadoop.fs.Path"/>
  41831. <exception name="IOException" type="java.io.IOException"/>
  41832. <doc>
  41833. <![CDATA[archive the given source paths into
  41834. the dest
  41835. @param srcPaths the src paths to be archived
  41836. @param dest the dest dir that will contain the archive]]>
  41837. </doc>
  41838. </method>
  41839. <method name="run" return="int"
  41840. abstract="false" native="false" synchronized="false"
  41841. static="false" final="false" visibility="public"
  41842. deprecated="not deprecated">
  41843. <param name="args" type="java.lang.String[]"/>
  41844. <exception name="Exception" type="java.lang.Exception"/>
  41845. <doc>
  41846. <![CDATA[the main driver for creating the archives
  41847. it takes at least two command line parameters. The src and the
  41848. dest. It does an lsr on the source paths.
  41849. The mapper created archuves and the reducer creates
  41850. the archive index.]]>
  41851. </doc>
  41852. </method>
  41853. <method name="main"
  41854. abstract="false" native="false" synchronized="false"
  41855. static="true" final="false" visibility="public"
  41856. deprecated="not deprecated">
  41857. <param name="args" type="java.lang.String[]"/>
  41858. <doc>
  41859. <![CDATA[the main functions]]>
  41860. </doc>
  41861. </method>
  41862. <doc>
  41863. <![CDATA[a archive creation utility.
  41864. This class provides methods that can be used
  41865. to create hadoop archives. For understanding of
  41866. Hadoop archives look at {@link HarFileSystem}.]]>
  41867. </doc>
  41868. </class>
  41869. <!-- end class org.apache.hadoop.tools.HadoopArchives -->
  41870. <!-- start class org.apache.hadoop.tools.Logalyzer -->
  41871. <class name="Logalyzer" extends="java.lang.Object"
  41872. abstract="false"
  41873. static="false" final="false" visibility="public"
  41874. deprecated="not deprecated">
  41875. <constructor name="Logalyzer"
  41876. static="false" final="false" visibility="public"
  41877. deprecated="not deprecated">
  41878. </constructor>
  41879. <method name="doArchive"
  41880. abstract="false" native="false" synchronized="false"
  41881. static="false" final="false" visibility="public"
  41882. deprecated="not deprecated">
  41883. <param name="logListURI" type="java.lang.String"/>
  41884. <param name="archiveDirectory" type="java.lang.String"/>
  41885. <exception name="IOException" type="java.io.IOException"/>
  41886. <doc>
  41887. <![CDATA[doArchive: Workhorse function to archive log-files.
  41888. @param logListURI : The uri which will serve list of log-files to archive.
  41889. @param archiveDirectory : The directory to store archived logfiles.
  41890. @throws IOException]]>
  41891. </doc>
  41892. </method>
  41893. <method name="doAnalyze"
  41894. abstract="false" native="false" synchronized="false"
  41895. static="false" final="false" visibility="public"
  41896. deprecated="not deprecated">
  41897. <param name="inputFilesDirectory" type="java.lang.String"/>
  41898. <param name="outputDirectory" type="java.lang.String"/>
  41899. <param name="grepPattern" type="java.lang.String"/>
  41900. <param name="sortColumns" type="java.lang.String"/>
  41901. <param name="columnSeparator" type="java.lang.String"/>
  41902. <exception name="IOException" type="java.io.IOException"/>
  41903. <doc>
  41904. <![CDATA[doAnalyze:
  41905. @param inputFilesDirectory : Directory containing the files to be analyzed.
  41906. @param outputDirectory : Directory to store analysis (output).
  41907. @param grepPattern : Pattern to *grep* for.
  41908. @param sortColumns : Sort specification for output.
  41909. @param columnSeparator : Column separator.
  41910. @throws IOException]]>
  41911. </doc>
  41912. </method>
  41913. <method name="main"
  41914. abstract="false" native="false" synchronized="false"
  41915. static="true" final="false" visibility="public"
  41916. deprecated="not deprecated">
  41917. <param name="args" type="java.lang.String[]"/>
  41918. </method>
  41919. <doc>
  41920. <![CDATA[Logalyzer: A utility tool for archiving and analyzing hadoop logs.
  41921. <p>
  41922. This tool supports archiving and anaylzing (sort/grep) of log-files.
  41923. It takes as input
  41924. a) Input uri which will serve uris of the logs to be archived.
  41925. b) Output directory (not mandatory).
  41926. b) Directory on dfs to archive the logs.
  41927. c) The sort/grep patterns for analyzing the files and separator for boundaries.
  41928. Usage:
  41929. Logalyzer -archive -archiveDir <directory to archive logs> -analysis <directory> -logs <log-list uri> -grep <pattern> -sort <col1, col2> -separator <separator>
  41930. <p>]]>
  41931. </doc>
  41932. </class>
  41933. <!-- end class org.apache.hadoop.tools.Logalyzer -->
  41934. <!-- start class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  41935. <class name="Logalyzer.LogComparator" extends="org.apache.hadoop.io.Text.Comparator"
  41936. abstract="false"
  41937. static="true" final="false" visibility="public"
  41938. deprecated="not deprecated">
  41939. <implements name="org.apache.hadoop.conf.Configurable"/>
  41940. <constructor name="Logalyzer.LogComparator"
  41941. static="false" final="false" visibility="public"
  41942. deprecated="not deprecated">
  41943. </constructor>
  41944. <method name="setConf"
  41945. abstract="false" native="false" synchronized="false"
  41946. static="false" final="false" visibility="public"
  41947. deprecated="not deprecated">
  41948. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  41949. </method>
  41950. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  41951. abstract="false" native="false" synchronized="false"
  41952. static="false" final="false" visibility="public"
  41953. deprecated="not deprecated">
  41954. </method>
  41955. <method name="compare" return="int"
  41956. abstract="false" native="false" synchronized="false"
  41957. static="false" final="false" visibility="public"
  41958. deprecated="not deprecated">
  41959. <param name="b1" type="byte[]"/>
  41960. <param name="s1" type="int"/>
  41961. <param name="l1" type="int"/>
  41962. <param name="b2" type="byte[]"/>
  41963. <param name="s2" type="int"/>
  41964. <param name="l2" type="int"/>
  41965. </method>
  41966. <doc>
  41967. <![CDATA[A WritableComparator optimized for UTF8 keys of the logs.]]>
  41968. </doc>
  41969. </class>
  41970. <!-- end class org.apache.hadoop.tools.Logalyzer.LogComparator -->
  41971. <!-- start class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  41972. <class name="Logalyzer.LogRegexMapper" extends="org.apache.hadoop.mapred.MapReduceBase"
  41973. abstract="false"
  41974. static="true" final="false" visibility="public"
  41975. deprecated="not deprecated">
  41976. <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;"/>
  41977. <constructor name="Logalyzer.LogRegexMapper"
  41978. static="false" final="false" visibility="public"
  41979. deprecated="not deprecated">
  41980. </constructor>
  41981. <method name="configure"
  41982. abstract="false" native="false" synchronized="false"
  41983. static="false" final="false" visibility="public"
  41984. deprecated="not deprecated">
  41985. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  41986. </method>
  41987. <method name="map"
  41988. abstract="false" native="false" synchronized="false"
  41989. static="false" final="false" visibility="public"
  41990. deprecated="not deprecated">
  41991. <param name="key" type="K extends org.apache.hadoop.io.WritableComparable"/>
  41992. <param name="value" type="org.apache.hadoop.io.Text"/>
  41993. <param name="output" type="org.apache.hadoop.mapred.OutputCollector&lt;org.apache.hadoop.io.Text, org.apache.hadoop.io.LongWritable&gt;"/>
  41994. <param name="reporter" type="org.apache.hadoop.mapred.Reporter"/>
  41995. <exception name="IOException" type="java.io.IOException"/>
  41996. </method>
  41997. <doc>
  41998. <![CDATA[A {@link Mapper} that extracts text matching a regular expression.]]>
  41999. </doc>
  42000. </class>
  42001. <!-- end class org.apache.hadoop.tools.Logalyzer.LogRegexMapper -->
  42002. </package>
  42003. <package name="org.apache.hadoop.util">
  42004. <!-- start class org.apache.hadoop.util.Daemon -->
  42005. <class name="Daemon" extends="java.lang.Thread"
  42006. abstract="false"
  42007. static="false" final="false" visibility="public"
  42008. deprecated="not deprecated">
  42009. <constructor name="Daemon"
  42010. static="false" final="false" visibility="public"
  42011. deprecated="not deprecated">
  42012. <doc>
  42013. <![CDATA[Construct a daemon thread.]]>
  42014. </doc>
  42015. </constructor>
  42016. <constructor name="Daemon" type="java.lang.Runnable"
  42017. static="false" final="false" visibility="public"
  42018. deprecated="not deprecated">
  42019. <doc>
  42020. <![CDATA[Construct a daemon thread.]]>
  42021. </doc>
  42022. </constructor>
  42023. <constructor name="Daemon" type="java.lang.ThreadGroup, java.lang.Runnable"
  42024. static="false" final="false" visibility="public"
  42025. deprecated="not deprecated">
  42026. <doc>
  42027. <![CDATA[Construct a daemon thread to be part of a specified thread group.]]>
  42028. </doc>
  42029. </constructor>
  42030. <method name="getRunnable" return="java.lang.Runnable"
  42031. abstract="false" native="false" synchronized="false"
  42032. static="false" final="false" visibility="public"
  42033. deprecated="not deprecated">
  42034. </method>
  42035. <doc>
  42036. <![CDATA[A thread that has called {@link Thread#setDaemon(boolean) } with true.]]>
  42037. </doc>
  42038. </class>
  42039. <!-- end class org.apache.hadoop.util.Daemon -->
  42040. <!-- start class org.apache.hadoop.util.DiskChecker -->
  42041. <class name="DiskChecker" extends="java.lang.Object"
  42042. abstract="false"
  42043. static="false" final="false" visibility="public"
  42044. deprecated="not deprecated">
  42045. <constructor name="DiskChecker"
  42046. static="false" final="false" visibility="public"
  42047. deprecated="not deprecated">
  42048. </constructor>
  42049. <method name="mkdirsWithExistsCheck" return="boolean"
  42050. abstract="false" native="false" synchronized="false"
  42051. static="true" final="false" visibility="public"
  42052. deprecated="not deprecated">
  42053. <param name="dir" type="java.io.File"/>
  42054. <doc>
  42055. <![CDATA[The semantics of mkdirsWithExistsCheck method is different from the mkdirs
  42056. method provided in the Sun's java.io.File class in the following way:
  42057. While creating the non-existent parent directories, this method checks for
  42058. the existence of those directories if the mkdir fails at any point (since
  42059. that directory might have just been created by some other process).
  42060. If both mkdir() and the exists() check fails for any seemingly
  42061. non-existent directory, then we signal an error; Sun's mkdir would signal
  42062. an error (return false) if a directory it is attempting to create already
  42063. exists or the mkdir fails.
  42064. @param dir
  42065. @return true on success, false on failure]]>
  42066. </doc>
  42067. </method>
  42068. <method name="checkDir"
  42069. abstract="false" native="false" synchronized="false"
  42070. static="true" final="false" visibility="public"
  42071. deprecated="not deprecated">
  42072. <param name="dir" type="java.io.File"/>
  42073. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  42074. </method>
  42075. <doc>
  42076. <![CDATA[Class that provides utility functions for checking disk problem]]>
  42077. </doc>
  42078. </class>
  42079. <!-- end class org.apache.hadoop.util.DiskChecker -->
  42080. <!-- start class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  42081. <class name="DiskChecker.DiskErrorException" extends="java.io.IOException"
  42082. abstract="false"
  42083. static="true" final="false" visibility="public"
  42084. deprecated="not deprecated">
  42085. <constructor name="DiskChecker.DiskErrorException" type="java.lang.String"
  42086. static="false" final="false" visibility="public"
  42087. deprecated="not deprecated">
  42088. </constructor>
  42089. </class>
  42090. <!-- end class org.apache.hadoop.util.DiskChecker.DiskErrorException -->
  42091. <!-- start class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  42092. <class name="DiskChecker.DiskOutOfSpaceException" extends="java.io.IOException"
  42093. abstract="false"
  42094. static="true" final="false" visibility="public"
  42095. deprecated="not deprecated">
  42096. <constructor name="DiskChecker.DiskOutOfSpaceException" type="java.lang.String"
  42097. static="false" final="false" visibility="public"
  42098. deprecated="not deprecated">
  42099. </constructor>
  42100. </class>
  42101. <!-- end class org.apache.hadoop.util.DiskChecker.DiskOutOfSpaceException -->
  42102. <!-- start class org.apache.hadoop.util.GenericOptionsParser -->
  42103. <class name="GenericOptionsParser" extends="java.lang.Object"
  42104. abstract="false"
  42105. static="false" final="false" visibility="public"
  42106. deprecated="not deprecated">
  42107. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, java.lang.String[]"
  42108. static="false" final="false" visibility="public"
  42109. deprecated="not deprecated">
  42110. <doc>
  42111. <![CDATA[Create a <code>GenericOptionsParser<code> to parse only the generic Hadoop
  42112. arguments.
  42113. The array of string arguments other than the generic arguments can be
  42114. obtained by {@link #getRemainingArgs()}.
  42115. @param conf the <code>Configuration</code> to modify.
  42116. @param args command-line arguments.]]>
  42117. </doc>
  42118. </constructor>
  42119. <constructor name="GenericOptionsParser" type="org.apache.hadoop.conf.Configuration, org.apache.commons.cli.Options, java.lang.String[]"
  42120. static="false" final="false" visibility="public"
  42121. deprecated="not deprecated">
  42122. <doc>
  42123. <![CDATA[Create a <code>GenericOptionsParser</code> to parse given options as well
  42124. as generic Hadoop options.
  42125. The resulting <code>CommandLine</code> object can be obtained by
  42126. {@link #getCommandLine()}.
  42127. @param conf the configuration to modify
  42128. @param options options built by the caller
  42129. @param args User-specified arguments]]>
  42130. </doc>
  42131. </constructor>
  42132. <method name="getRemainingArgs" return="java.lang.String[]"
  42133. abstract="false" native="false" synchronized="false"
  42134. static="false" final="false" visibility="public"
  42135. deprecated="not deprecated">
  42136. <doc>
  42137. <![CDATA[Returns an array of Strings containing only application-specific arguments.
  42138. @return array of <code>String</code>s containing the un-parsed arguments
  42139. or <strong>empty array</strong> if commandLine was not defined.]]>
  42140. </doc>
  42141. </method>
  42142. <method name="getCommandLine" return="org.apache.commons.cli.CommandLine"
  42143. abstract="false" native="false" synchronized="false"
  42144. static="false" final="false" visibility="public"
  42145. deprecated="not deprecated">
  42146. <doc>
  42147. <![CDATA[Returns the commons-cli <code>CommandLine</code> object
  42148. to process the parsed arguments.
  42149. Note: If the object is created with
  42150. {@link #GenericOptionsParser(Configuration, String[])}, then returned
  42151. object will only contain parsed generic options.
  42152. @return <code>CommandLine</code> representing list of arguments
  42153. parsed against Options descriptor.]]>
  42154. </doc>
  42155. </method>
  42156. <method name="printGenericCommandUsage"
  42157. abstract="false" native="false" synchronized="false"
  42158. static="true" final="false" visibility="public"
  42159. deprecated="not deprecated">
  42160. <param name="out" type="java.io.PrintStream"/>
  42161. <doc>
  42162. <![CDATA[Print the usage message for generic command-line options supported.
  42163. @param out stream to print the usage message to.]]>
  42164. </doc>
  42165. </method>
  42166. <doc>
  42167. <![CDATA[<code>GenericOptionsParser</code> is a utility to parse command line
  42168. arguments generic to the Hadoop framework.
  42169. <code>GenericOptionsParser</code> recognizes several standarad command
  42170. line arguments, enabling applications to easily specify a namenode, a
  42171. jobtracker, additional configuration resources etc.
  42172. <h4 id="GenericOptions">Generic Options</h4>
  42173. <p>The supported generic options are:</p>
  42174. <p><blockquote><pre>
  42175. -conf &lt;configuration file&gt; specify a configuration file
  42176. -D &lt;property=value&gt; use value for given property
  42177. -fs &lt;local|namenode:port&gt; specify a namenode
  42178. -jt &lt;local|jobtracker:port&gt; specify a job tracker
  42179. -files &lt;comma separated list of files&gt; specify comma separated
  42180. files to be copied to the map reduce cluster
  42181. -libjars &lt;comma separated list of jars&gt; specify comma separated
  42182. jar files to include in the classpath.
  42183. -archives &lt;comma separated list of archives&gt; specify comma
  42184. separated archives to be unarchived on the compute machines.
  42185. </pre></blockquote></p>
  42186. <p>The general command line syntax is:</p>
  42187. <p><tt><pre>
  42188. bin/hadoop command [genericOptions] [commandOptions]
  42189. </pre></tt></p>
  42190. <p>Generic command line arguments <strong>might</strong> modify
  42191. <code>Configuration </code> objects, given to constructors.</p>
  42192. <p>The functionality is implemented using Commons CLI.</p>
  42193. <p>Examples:</p>
  42194. <p><blockquote><pre>
  42195. $ bin/hadoop dfs -fs darwin:8020 -ls /data
  42196. list /data directory in dfs with namenode darwin:8020
  42197. $ bin/hadoop dfs -D fs.default.name=darwin:8020 -ls /data
  42198. list /data directory in dfs with namenode darwin:8020
  42199. $ bin/hadoop dfs -conf hadoop-site.xml -ls /data
  42200. list /data directory in dfs with conf specified in hadoop-site.xml
  42201. $ bin/hadoop job -D mapred.job.tracker=darwin:50020 -submit job.xml
  42202. submit a job to job tracker darwin:50020
  42203. $ bin/hadoop job -jt darwin:50020 -submit job.xml
  42204. submit a job to job tracker darwin:50020
  42205. $ bin/hadoop job -jt local -submit job.xml
  42206. submit a job to local runner
  42207. $ bin/hadoop jar -libjars testlib.jar
  42208. -archives test.tgz -files file.txt inputjar args
  42209. job submission with libjars, files and archives
  42210. </pre></blockquote></p>
  42211. @see Tool
  42212. @see ToolRunner]]>
  42213. </doc>
  42214. </class>
  42215. <!-- end class org.apache.hadoop.util.GenericOptionsParser -->
  42216. <!-- start class org.apache.hadoop.util.GenericsUtil -->
  42217. <class name="GenericsUtil" extends="java.lang.Object"
  42218. abstract="false"
  42219. static="false" final="false" visibility="public"
  42220. deprecated="not deprecated">
  42221. <constructor name="GenericsUtil"
  42222. static="false" final="false" visibility="public"
  42223. deprecated="not deprecated">
  42224. </constructor>
  42225. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  42226. abstract="false" native="false" synchronized="false"
  42227. static="true" final="false" visibility="public"
  42228. deprecated="not deprecated">
  42229. <param name="t" type="T"/>
  42230. <doc>
  42231. <![CDATA[Returns the Class object (of type <code>Class&lt;T&gt;</code>) of the
  42232. argument of type <code>T</code>.
  42233. @param <T> The type of the argument
  42234. @param t the object to get it class
  42235. @return <code>Class&lt;T&gt;</code>]]>
  42236. </doc>
  42237. </method>
  42238. <method name="toArray" return="T[]"
  42239. abstract="false" native="false" synchronized="false"
  42240. static="true" final="false" visibility="public"
  42241. deprecated="not deprecated">
  42242. <param name="c" type="java.lang.Class&lt;T&gt;"/>
  42243. <param name="list" type="java.util.List&lt;T&gt;"/>
  42244. <doc>
  42245. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  42246. <code>T[]</code>.
  42247. @param c the Class object of the items in the list
  42248. @param list the list to convert]]>
  42249. </doc>
  42250. </method>
  42251. <method name="toArray" return="T[]"
  42252. abstract="false" native="false" synchronized="false"
  42253. static="true" final="false" visibility="public"
  42254. deprecated="not deprecated">
  42255. <param name="list" type="java.util.List&lt;T&gt;"/>
  42256. <doc>
  42257. <![CDATA[Converts the given <code>List&lt;T&gt;</code> to a an array of
  42258. <code>T[]</code>.
  42259. @param list the list to convert
  42260. @throws ArrayIndexOutOfBoundsException if the list is empty.
  42261. Use {@link #toArray(Class, List)} if the list may be empty.]]>
  42262. </doc>
  42263. </method>
  42264. <doc>
  42265. <![CDATA[Contains utility methods for dealing with Java Generics.]]>
  42266. </doc>
  42267. </class>
  42268. <!-- end class org.apache.hadoop.util.GenericsUtil -->
  42269. <!-- start class org.apache.hadoop.util.HeapSort -->
  42270. <class name="HeapSort" extends="java.lang.Object"
  42271. abstract="false"
  42272. static="false" final="true" visibility="public"
  42273. deprecated="not deprecated">
  42274. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  42275. <constructor name="HeapSort"
  42276. static="false" final="false" visibility="public"
  42277. deprecated="not deprecated">
  42278. </constructor>
  42279. <method name="sort"
  42280. abstract="false" native="false" synchronized="false"
  42281. static="false" final="false" visibility="public"
  42282. deprecated="not deprecated">
  42283. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42284. <param name="p" type="int"/>
  42285. <param name="r" type="int"/>
  42286. <doc>
  42287. <![CDATA[Sort the given range of items using heap sort.
  42288. {@inheritDoc}]]>
  42289. </doc>
  42290. </method>
  42291. <method name="sort"
  42292. abstract="false" native="false" synchronized="false"
  42293. static="false" final="false" visibility="public"
  42294. deprecated="not deprecated">
  42295. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42296. <param name="p" type="int"/>
  42297. <param name="r" type="int"/>
  42298. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  42299. <doc>
  42300. <![CDATA[{@inheritDoc}]]>
  42301. </doc>
  42302. </method>
  42303. <doc>
  42304. <![CDATA[An implementation of the core algorithm of HeapSort.]]>
  42305. </doc>
  42306. </class>
  42307. <!-- end class org.apache.hadoop.util.HeapSort -->
  42308. <!-- start class org.apache.hadoop.util.HostsFileReader -->
  42309. <class name="HostsFileReader" extends="java.lang.Object"
  42310. abstract="false"
  42311. static="false" final="false" visibility="public"
  42312. deprecated="not deprecated">
  42313. <constructor name="HostsFileReader" type="java.lang.String, java.lang.String"
  42314. static="false" final="false" visibility="public"
  42315. deprecated="not deprecated">
  42316. <exception name="IOException" type="java.io.IOException"/>
  42317. </constructor>
  42318. <method name="refresh"
  42319. abstract="false" native="false" synchronized="false"
  42320. static="false" final="false" visibility="public"
  42321. deprecated="not deprecated">
  42322. <exception name="IOException" type="java.io.IOException"/>
  42323. </method>
  42324. <method name="getHosts" return="java.util.Set&lt;java.lang.String&gt;"
  42325. abstract="false" native="false" synchronized="false"
  42326. static="false" final="false" visibility="public"
  42327. deprecated="not deprecated">
  42328. </method>
  42329. <method name="getExcludedHosts" return="java.util.Set&lt;java.lang.String&gt;"
  42330. abstract="false" native="false" synchronized="false"
  42331. static="false" final="false" visibility="public"
  42332. deprecated="not deprecated">
  42333. </method>
  42334. </class>
  42335. <!-- end class org.apache.hadoop.util.HostsFileReader -->
  42336. <!-- start interface org.apache.hadoop.util.IndexedSortable -->
  42337. <interface name="IndexedSortable" abstract="true"
  42338. static="false" final="false" visibility="public"
  42339. deprecated="not deprecated">
  42340. <method name="compare" return="int"
  42341. abstract="false" native="false" synchronized="false"
  42342. static="false" final="false" visibility="public"
  42343. deprecated="not deprecated">
  42344. <param name="i" type="int"/>
  42345. <param name="j" type="int"/>
  42346. <doc>
  42347. <![CDATA[Compare items at the given addresses consistent with the semantics of
  42348. {@link java.util.Comparable#compare}.]]>
  42349. </doc>
  42350. </method>
  42351. <method name="swap"
  42352. abstract="false" native="false" synchronized="false"
  42353. static="false" final="false" visibility="public"
  42354. deprecated="not deprecated">
  42355. <param name="i" type="int"/>
  42356. <param name="j" type="int"/>
  42357. <doc>
  42358. <![CDATA[Swap items at the given addresses.]]>
  42359. </doc>
  42360. </method>
  42361. <doc>
  42362. <![CDATA[Interface for collections capable of being sorted by {@link IndexedSorter}
  42363. algorithms.]]>
  42364. </doc>
  42365. </interface>
  42366. <!-- end interface org.apache.hadoop.util.IndexedSortable -->
  42367. <!-- start interface org.apache.hadoop.util.IndexedSorter -->
  42368. <interface name="IndexedSorter" abstract="true"
  42369. static="false" final="false" visibility="public"
  42370. deprecated="not deprecated">
  42371. <method name="sort"
  42372. abstract="false" native="false" synchronized="false"
  42373. static="false" final="false" visibility="public"
  42374. deprecated="not deprecated">
  42375. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42376. <param name="l" type="int"/>
  42377. <param name="r" type="int"/>
  42378. <doc>
  42379. <![CDATA[Sort the items accessed through the given IndexedSortable over the given
  42380. range of logical indices. From the perspective of the sort algorithm,
  42381. each index between l (inclusive) and r (exclusive) is an addressable
  42382. entry.
  42383. @see IndexedSortable#compare
  42384. @see IndexedSortable#swap]]>
  42385. </doc>
  42386. </method>
  42387. <method name="sort"
  42388. abstract="false" native="false" synchronized="false"
  42389. static="false" final="false" visibility="public"
  42390. deprecated="not deprecated">
  42391. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42392. <param name="l" type="int"/>
  42393. <param name="r" type="int"/>
  42394. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  42395. <doc>
  42396. <![CDATA[Same as {@link #sort(IndexedSortable,int,int)}, but indicate progress
  42397. periodically.
  42398. @see #sort(IndexedSortable,int,int)]]>
  42399. </doc>
  42400. </method>
  42401. <doc>
  42402. <![CDATA[Interface for sort algorithms accepting {@link IndexedSortable} items.
  42403. A sort algorithm implementing this interface may only
  42404. {@link IndexedSortable#compare} and {@link IndexedSortable#swap} items
  42405. for a range of indices to effect a sort across that range.]]>
  42406. </doc>
  42407. </interface>
  42408. <!-- end interface org.apache.hadoop.util.IndexedSorter -->
  42409. <!-- start class org.apache.hadoop.util.MergeSort -->
  42410. <class name="MergeSort" extends="java.lang.Object"
  42411. abstract="false"
  42412. static="false" final="false" visibility="public"
  42413. deprecated="not deprecated">
  42414. <constructor name="MergeSort" type="java.util.Comparator&lt;org.apache.hadoop.io.IntWritable&gt;"
  42415. static="false" final="false" visibility="public"
  42416. deprecated="not deprecated">
  42417. </constructor>
  42418. <method name="mergeSort"
  42419. abstract="false" native="false" synchronized="false"
  42420. static="false" final="false" visibility="public"
  42421. deprecated="not deprecated">
  42422. <param name="src" type="int[]"/>
  42423. <param name="dest" type="int[]"/>
  42424. <param name="low" type="int"/>
  42425. <param name="high" type="int"/>
  42426. </method>
  42427. <doc>
  42428. <![CDATA[An implementation of the core algorithm of MergeSort.]]>
  42429. </doc>
  42430. </class>
  42431. <!-- end class org.apache.hadoop.util.MergeSort -->
  42432. <!-- start class org.apache.hadoop.util.NativeCodeLoader -->
  42433. <class name="NativeCodeLoader" extends="java.lang.Object"
  42434. abstract="false"
  42435. static="false" final="false" visibility="public"
  42436. deprecated="not deprecated">
  42437. <constructor name="NativeCodeLoader"
  42438. static="false" final="false" visibility="public"
  42439. deprecated="not deprecated">
  42440. </constructor>
  42441. <method name="isNativeCodeLoaded" return="boolean"
  42442. abstract="false" native="false" synchronized="false"
  42443. static="true" final="false" visibility="public"
  42444. deprecated="not deprecated">
  42445. <doc>
  42446. <![CDATA[Check if native-hadoop code is loaded for this platform.
  42447. @return <code>true</code> if native-hadoop is loaded,
  42448. else <code>false</code>]]>
  42449. </doc>
  42450. </method>
  42451. <method name="getLoadNativeLibraries" return="boolean"
  42452. abstract="false" native="false" synchronized="false"
  42453. static="false" final="false" visibility="public"
  42454. deprecated="not deprecated">
  42455. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  42456. <doc>
  42457. <![CDATA[Return if native hadoop libraries, if present, can be used for this job.
  42458. @param jobConf job configuration
  42459. @return <code>true</code> if native hadoop libraries, if present, can be
  42460. used for this job; <code>false</code> otherwise.]]>
  42461. </doc>
  42462. </method>
  42463. <method name="setLoadNativeLibraries"
  42464. abstract="false" native="false" synchronized="false"
  42465. static="false" final="false" visibility="public"
  42466. deprecated="not deprecated">
  42467. <param name="jobConf" type="org.apache.hadoop.mapred.JobConf"/>
  42468. <param name="loadNativeLibraries" type="boolean"/>
  42469. <doc>
  42470. <![CDATA[Set if native hadoop libraries, if present, can be used for this job.
  42471. @param jobConf job configuration
  42472. @param loadNativeLibraries can native hadoop libraries be loaded]]>
  42473. </doc>
  42474. </method>
  42475. <doc>
  42476. <![CDATA[A helper to load the native hadoop code i.e. libhadoop.so.
  42477. This handles the fallback to either the bundled libhadoop-Linux-i386-32.so
  42478. or the default java implementations where appropriate.]]>
  42479. </doc>
  42480. </class>
  42481. <!-- end class org.apache.hadoop.util.NativeCodeLoader -->
  42482. <!-- start class org.apache.hadoop.util.PlatformName -->
  42483. <class name="PlatformName" extends="java.lang.Object"
  42484. abstract="false"
  42485. static="false" final="false" visibility="public"
  42486. deprecated="not deprecated">
  42487. <constructor name="PlatformName"
  42488. static="false" final="false" visibility="public"
  42489. deprecated="not deprecated">
  42490. </constructor>
  42491. <method name="getPlatformName" return="java.lang.String"
  42492. abstract="false" native="false" synchronized="false"
  42493. static="true" final="false" visibility="public"
  42494. deprecated="not deprecated">
  42495. <doc>
  42496. <![CDATA[Get the complete platform as per the java-vm.
  42497. @return returns the complete platform as per the java-vm.]]>
  42498. </doc>
  42499. </method>
  42500. <method name="main"
  42501. abstract="false" native="false" synchronized="false"
  42502. static="true" final="false" visibility="public"
  42503. deprecated="not deprecated">
  42504. <param name="args" type="java.lang.String[]"/>
  42505. </method>
  42506. <doc>
  42507. <![CDATA[A helper class for getting build-info of the java-vm.]]>
  42508. </doc>
  42509. </class>
  42510. <!-- end class org.apache.hadoop.util.PlatformName -->
  42511. <!-- start class org.apache.hadoop.util.PrintJarMainClass -->
  42512. <class name="PrintJarMainClass" extends="java.lang.Object"
  42513. abstract="false"
  42514. static="false" final="false" visibility="public"
  42515. deprecated="not deprecated">
  42516. <constructor name="PrintJarMainClass"
  42517. static="false" final="false" visibility="public"
  42518. deprecated="not deprecated">
  42519. </constructor>
  42520. <method name="main"
  42521. abstract="false" native="false" synchronized="false"
  42522. static="true" final="false" visibility="public"
  42523. deprecated="not deprecated">
  42524. <param name="args" type="java.lang.String[]"/>
  42525. <doc>
  42526. <![CDATA[@param args]]>
  42527. </doc>
  42528. </method>
  42529. <doc>
  42530. <![CDATA[A micro-application that prints the main class name out of a jar file.]]>
  42531. </doc>
  42532. </class>
  42533. <!-- end class org.apache.hadoop.util.PrintJarMainClass -->
  42534. <!-- start class org.apache.hadoop.util.PriorityQueue -->
  42535. <class name="PriorityQueue" extends="java.lang.Object"
  42536. abstract="true"
  42537. static="false" final="false" visibility="public"
  42538. deprecated="not deprecated">
  42539. <constructor name="PriorityQueue"
  42540. static="false" final="false" visibility="public"
  42541. deprecated="not deprecated">
  42542. </constructor>
  42543. <method name="lessThan" return="boolean"
  42544. abstract="true" native="false" synchronized="false"
  42545. static="false" final="false" visibility="protected"
  42546. deprecated="not deprecated">
  42547. <param name="a" type="java.lang.Object"/>
  42548. <param name="b" type="java.lang.Object"/>
  42549. <doc>
  42550. <![CDATA[Determines the ordering of objects in this priority queue. Subclasses
  42551. must define this one method.]]>
  42552. </doc>
  42553. </method>
  42554. <method name="initialize"
  42555. abstract="false" native="false" synchronized="false"
  42556. static="false" final="true" visibility="protected"
  42557. deprecated="not deprecated">
  42558. <param name="maxSize" type="int"/>
  42559. <doc>
  42560. <![CDATA[Subclass constructors must call this.]]>
  42561. </doc>
  42562. </method>
  42563. <method name="put"
  42564. abstract="false" native="false" synchronized="false"
  42565. static="false" final="true" visibility="public"
  42566. deprecated="not deprecated">
  42567. <param name="element" type="java.lang.Object"/>
  42568. <doc>
  42569. <![CDATA[Adds an Object to a PriorityQueue in log(size) time.
  42570. If one tries to add more objects than maxSize from initialize
  42571. a RuntimeException (ArrayIndexOutOfBound) is thrown.]]>
  42572. </doc>
  42573. </method>
  42574. <method name="insert" return="boolean"
  42575. abstract="false" native="false" synchronized="false"
  42576. static="false" final="false" visibility="public"
  42577. deprecated="not deprecated">
  42578. <param name="element" type="java.lang.Object"/>
  42579. <doc>
  42580. <![CDATA[Adds element to the PriorityQueue in log(size) time if either
  42581. the PriorityQueue is not full, or not lessThan(element, top()).
  42582. @param element
  42583. @return true if element is added, false otherwise.]]>
  42584. </doc>
  42585. </method>
  42586. <method name="top" return="java.lang.Object"
  42587. abstract="false" native="false" synchronized="false"
  42588. static="false" final="true" visibility="public"
  42589. deprecated="not deprecated">
  42590. <doc>
  42591. <![CDATA[Returns the least element of the PriorityQueue in constant time.]]>
  42592. </doc>
  42593. </method>
  42594. <method name="pop" return="java.lang.Object"
  42595. abstract="false" native="false" synchronized="false"
  42596. static="false" final="true" visibility="public"
  42597. deprecated="not deprecated">
  42598. <doc>
  42599. <![CDATA[Removes and returns the least element of the PriorityQueue in log(size)
  42600. time.]]>
  42601. </doc>
  42602. </method>
  42603. <method name="adjustTop"
  42604. abstract="false" native="false" synchronized="false"
  42605. static="false" final="true" visibility="public"
  42606. deprecated="not deprecated">
  42607. <doc>
  42608. <![CDATA[Should be called when the Object at top changes values. Still log(n)
  42609. worst case, but it's at least twice as fast to <pre>
  42610. { pq.top().change(); pq.adjustTop(); }
  42611. </pre> instead of <pre>
  42612. { o = pq.pop(); o.change(); pq.push(o); }
  42613. </pre>]]>
  42614. </doc>
  42615. </method>
  42616. <method name="size" return="int"
  42617. abstract="false" native="false" synchronized="false"
  42618. static="false" final="true" visibility="public"
  42619. deprecated="not deprecated">
  42620. <doc>
  42621. <![CDATA[Returns the number of elements currently stored in the PriorityQueue.]]>
  42622. </doc>
  42623. </method>
  42624. <method name="clear"
  42625. abstract="false" native="false" synchronized="false"
  42626. static="false" final="true" visibility="public"
  42627. deprecated="not deprecated">
  42628. <doc>
  42629. <![CDATA[Removes all entries from the PriorityQueue.]]>
  42630. </doc>
  42631. </method>
  42632. <doc>
  42633. <![CDATA[A PriorityQueue maintains a partial ordering of its elements such that the
  42634. least element can always be found in constant time. Put()'s and pop()'s
  42635. require log(size) time.]]>
  42636. </doc>
  42637. </class>
  42638. <!-- end class org.apache.hadoop.util.PriorityQueue -->
  42639. <!-- start class org.apache.hadoop.util.ProgramDriver -->
  42640. <class name="ProgramDriver" extends="java.lang.Object"
  42641. abstract="false"
  42642. static="false" final="false" visibility="public"
  42643. deprecated="not deprecated">
  42644. <constructor name="ProgramDriver"
  42645. static="false" final="false" visibility="public"
  42646. deprecated="not deprecated">
  42647. </constructor>
  42648. <method name="addClass"
  42649. abstract="false" native="false" synchronized="false"
  42650. static="false" final="false" visibility="public"
  42651. deprecated="not deprecated">
  42652. <param name="name" type="java.lang.String"/>
  42653. <param name="mainClass" type="java.lang.Class"/>
  42654. <param name="description" type="java.lang.String"/>
  42655. <exception name="Throwable" type="java.lang.Throwable"/>
  42656. <doc>
  42657. <![CDATA[This is the method that adds the classed to the repository
  42658. @param name The name of the string you want the class instance to be called with
  42659. @param mainClass The class that you want to add to the repository
  42660. @param description The description of the class
  42661. @throws NoSuchMethodException
  42662. @throws SecurityException]]>
  42663. </doc>
  42664. </method>
  42665. <method name="driver"
  42666. abstract="false" native="false" synchronized="false"
  42667. static="false" final="false" visibility="public"
  42668. deprecated="not deprecated">
  42669. <param name="args" type="java.lang.String[]"/>
  42670. <exception name="Throwable" type="java.lang.Throwable"/>
  42671. <doc>
  42672. <![CDATA[This is a driver for the example programs.
  42673. It looks at the first command line argument and tries to find an
  42674. example program with that name.
  42675. If it is found, it calls the main method in that class with the rest
  42676. of the command line arguments.
  42677. @param args The argument from the user. args[0] is the command to run.
  42678. @throws NoSuchMethodException
  42679. @throws SecurityException
  42680. @throws IllegalAccessException
  42681. @throws IllegalArgumentException
  42682. @throws Throwable Anything thrown by the example program's main]]>
  42683. </doc>
  42684. </method>
  42685. <doc>
  42686. <![CDATA[A driver that is used to run programs added to it]]>
  42687. </doc>
  42688. </class>
  42689. <!-- end class org.apache.hadoop.util.ProgramDriver -->
  42690. <!-- start class org.apache.hadoop.util.Progress -->
  42691. <class name="Progress" extends="java.lang.Object"
  42692. abstract="false"
  42693. static="false" final="false" visibility="public"
  42694. deprecated="not deprecated">
  42695. <constructor name="Progress"
  42696. static="false" final="false" visibility="public"
  42697. deprecated="not deprecated">
  42698. <doc>
  42699. <![CDATA[Creates a new root node.]]>
  42700. </doc>
  42701. </constructor>
  42702. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  42703. abstract="false" native="false" synchronized="false"
  42704. static="false" final="false" visibility="public"
  42705. deprecated="not deprecated">
  42706. <param name="status" type="java.lang.String"/>
  42707. <doc>
  42708. <![CDATA[Adds a named node to the tree.]]>
  42709. </doc>
  42710. </method>
  42711. <method name="addPhase" return="org.apache.hadoop.util.Progress"
  42712. abstract="false" native="false" synchronized="true"
  42713. static="false" final="false" visibility="public"
  42714. deprecated="not deprecated">
  42715. <doc>
  42716. <![CDATA[Adds a node to the tree.]]>
  42717. </doc>
  42718. </method>
  42719. <method name="startNextPhase"
  42720. abstract="false" native="false" synchronized="true"
  42721. static="false" final="false" visibility="public"
  42722. deprecated="not deprecated">
  42723. <doc>
  42724. <![CDATA[Called during execution to move to the next phase at this level in the
  42725. tree.]]>
  42726. </doc>
  42727. </method>
  42728. <method name="phase" return="org.apache.hadoop.util.Progress"
  42729. abstract="false" native="false" synchronized="true"
  42730. static="false" final="false" visibility="public"
  42731. deprecated="not deprecated">
  42732. <doc>
  42733. <![CDATA[Returns the current sub-node executing.]]>
  42734. </doc>
  42735. </method>
  42736. <method name="complete"
  42737. abstract="false" native="false" synchronized="false"
  42738. static="false" final="false" visibility="public"
  42739. deprecated="not deprecated">
  42740. <doc>
  42741. <![CDATA[Completes this node, moving the parent node to its next child.]]>
  42742. </doc>
  42743. </method>
  42744. <method name="set"
  42745. abstract="false" native="false" synchronized="true"
  42746. static="false" final="false" visibility="public"
  42747. deprecated="not deprecated">
  42748. <param name="progress" type="float"/>
  42749. <doc>
  42750. <![CDATA[Called during execution on a leaf node to set its progress.]]>
  42751. </doc>
  42752. </method>
  42753. <method name="get" return="float"
  42754. abstract="false" native="false" synchronized="true"
  42755. static="false" final="false" visibility="public"
  42756. deprecated="not deprecated">
  42757. <doc>
  42758. <![CDATA[Returns the overall progress of the root.]]>
  42759. </doc>
  42760. </method>
  42761. <method name="setStatus"
  42762. abstract="false" native="false" synchronized="true"
  42763. static="false" final="false" visibility="public"
  42764. deprecated="not deprecated">
  42765. <param name="status" type="java.lang.String"/>
  42766. </method>
  42767. <method name="toString" return="java.lang.String"
  42768. abstract="false" native="false" synchronized="false"
  42769. static="false" final="false" visibility="public"
  42770. deprecated="not deprecated">
  42771. </method>
  42772. <doc>
  42773. <![CDATA[Utility to assist with generation of progress reports. Applications build
  42774. a hierarchy of {@link Progress} instances, each modelling a phase of
  42775. execution. The root is constructed with {@link #Progress()}. Nodes for
  42776. sub-phases are created by calling {@link #addPhase()}.]]>
  42777. </doc>
  42778. </class>
  42779. <!-- end class org.apache.hadoop.util.Progress -->
  42780. <!-- start interface org.apache.hadoop.util.Progressable -->
  42781. <interface name="Progressable" abstract="true"
  42782. static="false" final="false" visibility="public"
  42783. deprecated="not deprecated">
  42784. <method name="progress"
  42785. abstract="false" native="false" synchronized="false"
  42786. static="false" final="false" visibility="public"
  42787. deprecated="not deprecated">
  42788. <doc>
  42789. <![CDATA[Report progress to the Hadoop framework.]]>
  42790. </doc>
  42791. </method>
  42792. <doc>
  42793. <![CDATA[A facility for reporting progress.
  42794. <p>Clients and/or applications can use the provided <code>Progressable</code>
  42795. to explicitly report progress to the Hadoop framework. This is especially
  42796. important for operations which take an insignificant amount of time since,
  42797. in-lieu of the reported progress, the framework has to assume that an error
  42798. has occured and time-out the operation.</p>]]>
  42799. </doc>
  42800. </interface>
  42801. <!-- end interface org.apache.hadoop.util.Progressable -->
  42802. <!-- start class org.apache.hadoop.util.QuickSort -->
  42803. <class name="QuickSort" extends="java.lang.Object"
  42804. abstract="false"
  42805. static="false" final="true" visibility="public"
  42806. deprecated="not deprecated">
  42807. <implements name="org.apache.hadoop.util.IndexedSorter"/>
  42808. <constructor name="QuickSort"
  42809. static="false" final="false" visibility="public"
  42810. deprecated="not deprecated">
  42811. </constructor>
  42812. <method name="getMaxDepth" return="int"
  42813. abstract="false" native="false" synchronized="false"
  42814. static="true" final="false" visibility="protected"
  42815. deprecated="not deprecated">
  42816. <param name="x" type="int"/>
  42817. <doc>
  42818. <![CDATA[Deepest recursion before giving up and doing a heapsort.
  42819. Returns 2 * ceil(log(n)).]]>
  42820. </doc>
  42821. </method>
  42822. <method name="sort"
  42823. abstract="false" native="false" synchronized="false"
  42824. static="false" final="false" visibility="public"
  42825. deprecated="not deprecated">
  42826. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42827. <param name="p" type="int"/>
  42828. <param name="r" type="int"/>
  42829. <doc>
  42830. <![CDATA[Sort the given range of items using quick sort.
  42831. {@inheritDoc} If the recursion depth falls below {@link #getMaxDepth},
  42832. then switch to {@link HeapSort}.]]>
  42833. </doc>
  42834. </method>
  42835. <method name="sort"
  42836. abstract="false" native="false" synchronized="false"
  42837. static="false" final="false" visibility="public"
  42838. deprecated="not deprecated">
  42839. <param name="s" type="org.apache.hadoop.util.IndexedSortable"/>
  42840. <param name="p" type="int"/>
  42841. <param name="r" type="int"/>
  42842. <param name="rep" type="org.apache.hadoop.util.Progressable"/>
  42843. <doc>
  42844. <![CDATA[{@inheritDoc}]]>
  42845. </doc>
  42846. </method>
  42847. <doc>
  42848. <![CDATA[An implementation of the core algorithm of QuickSort.]]>
  42849. </doc>
  42850. </class>
  42851. <!-- end class org.apache.hadoop.util.QuickSort -->
  42852. <!-- start class org.apache.hadoop.util.ReflectionUtils -->
  42853. <class name="ReflectionUtils" extends="java.lang.Object"
  42854. abstract="false"
  42855. static="false" final="false" visibility="public"
  42856. deprecated="not deprecated">
  42857. <constructor name="ReflectionUtils"
  42858. static="false" final="false" visibility="public"
  42859. deprecated="not deprecated">
  42860. </constructor>
  42861. <method name="setConf"
  42862. abstract="false" native="false" synchronized="false"
  42863. static="true" final="false" visibility="public"
  42864. deprecated="not deprecated">
  42865. <param name="theObject" type="java.lang.Object"/>
  42866. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42867. <doc>
  42868. <![CDATA[Check and set 'configuration' if necessary.
  42869. @param theObject object for which to set configuration
  42870. @param conf Configuration]]>
  42871. </doc>
  42872. </method>
  42873. <method name="newInstance" return="java.lang.Object"
  42874. abstract="false" native="false" synchronized="false"
  42875. static="true" final="false" visibility="public"
  42876. deprecated="not deprecated">
  42877. <param name="theClass" type="java.lang.Class&lt;?&gt;"/>
  42878. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  42879. <doc>
  42880. <![CDATA[Create an object for the given class and initialize it from conf
  42881. @param theClass class of which an object is created
  42882. @param conf Configuration
  42883. @return a new object]]>
  42884. </doc>
  42885. </method>
  42886. <method name="setContentionTracing"
  42887. abstract="false" native="false" synchronized="false"
  42888. static="true" final="false" visibility="public"
  42889. deprecated="not deprecated">
  42890. <param name="val" type="boolean"/>
  42891. </method>
  42892. <method name="printThreadInfo"
  42893. abstract="false" native="false" synchronized="false"
  42894. static="true" final="false" visibility="public"
  42895. deprecated="not deprecated">
  42896. <param name="stream" type="java.io.PrintWriter"/>
  42897. <param name="title" type="java.lang.String"/>
  42898. <doc>
  42899. <![CDATA[Print all of the thread's information and stack traces.
  42900. @param stream the stream to
  42901. @param title a string title for the stack trace]]>
  42902. </doc>
  42903. </method>
  42904. <method name="logThreadInfo"
  42905. abstract="false" native="false" synchronized="false"
  42906. static="true" final="false" visibility="public"
  42907. deprecated="not deprecated">
  42908. <param name="log" type="org.apache.commons.logging.Log"/>
  42909. <param name="title" type="java.lang.String"/>
  42910. <param name="minInterval" type="long"/>
  42911. <doc>
  42912. <![CDATA[Log the current thread stacks at INFO level.
  42913. @param log the logger that logs the stack trace
  42914. @param title a descriptive title for the call stacks
  42915. @param minInterval the minimum time from the last]]>
  42916. </doc>
  42917. </method>
  42918. <method name="getClass" return="java.lang.Class&lt;T&gt;"
  42919. abstract="false" native="false" synchronized="false"
  42920. static="true" final="false" visibility="public"
  42921. deprecated="not deprecated">
  42922. <param name="o" type="T"/>
  42923. <doc>
  42924. <![CDATA[Return the correctly-typed {@link Class} of the given object.
  42925. @param o object whose correctly-typed <code>Class</code> is to be obtained
  42926. @return the correctly typed <code>Class</code> of the given object.]]>
  42927. </doc>
  42928. </method>
  42929. <doc>
  42930. <![CDATA[General reflection utils]]>
  42931. </doc>
  42932. </class>
  42933. <!-- end class org.apache.hadoop.util.ReflectionUtils -->
  42934. <!-- start class org.apache.hadoop.util.RunJar -->
  42935. <class name="RunJar" extends="java.lang.Object"
  42936. abstract="false"
  42937. static="false" final="false" visibility="public"
  42938. deprecated="not deprecated">
  42939. <constructor name="RunJar"
  42940. static="false" final="false" visibility="public"
  42941. deprecated="not deprecated">
  42942. </constructor>
  42943. <method name="unJar"
  42944. abstract="false" native="false" synchronized="false"
  42945. static="true" final="false" visibility="public"
  42946. deprecated="not deprecated">
  42947. <param name="jarFile" type="java.io.File"/>
  42948. <param name="toDir" type="java.io.File"/>
  42949. <exception name="IOException" type="java.io.IOException"/>
  42950. <doc>
  42951. <![CDATA[Unpack a jar file into a directory.]]>
  42952. </doc>
  42953. </method>
  42954. <method name="main"
  42955. abstract="false" native="false" synchronized="false"
  42956. static="true" final="false" visibility="public"
  42957. deprecated="not deprecated">
  42958. <param name="args" type="java.lang.String[]"/>
  42959. <exception name="Throwable" type="java.lang.Throwable"/>
  42960. <doc>
  42961. <![CDATA[Run a Hadoop job jar. If the main class is not in the jar's manifest,
  42962. then it must be provided on the command line.]]>
  42963. </doc>
  42964. </method>
  42965. <doc>
  42966. <![CDATA[Run a Hadoop job jar.]]>
  42967. </doc>
  42968. </class>
  42969. <!-- end class org.apache.hadoop.util.RunJar -->
  42970. <!-- start class org.apache.hadoop.util.ServletUtil -->
  42971. <class name="ServletUtil" extends="java.lang.Object"
  42972. abstract="false"
  42973. static="false" final="false" visibility="public"
  42974. deprecated="not deprecated">
  42975. <constructor name="ServletUtil"
  42976. static="false" final="false" visibility="public"
  42977. deprecated="not deprecated">
  42978. </constructor>
  42979. <method name="initHTML" return="java.io.PrintWriter"
  42980. abstract="false" native="false" synchronized="false"
  42981. static="true" final="false" visibility="public"
  42982. deprecated="not deprecated">
  42983. <param name="response" type="javax.servlet.ServletResponse"/>
  42984. <param name="title" type="java.lang.String"/>
  42985. <exception name="IOException" type="java.io.IOException"/>
  42986. <doc>
  42987. <![CDATA[Initial HTML header]]>
  42988. </doc>
  42989. </method>
  42990. <method name="getParameter" return="java.lang.String"
  42991. abstract="false" native="false" synchronized="false"
  42992. static="true" final="false" visibility="public"
  42993. deprecated="not deprecated">
  42994. <param name="request" type="javax.servlet.ServletRequest"/>
  42995. <param name="name" type="java.lang.String"/>
  42996. <doc>
  42997. <![CDATA[Get a parameter from a ServletRequest.
  42998. Return null if the parameter contains only white spaces.]]>
  42999. </doc>
  43000. </method>
  43001. <method name="htmlFooter" return="java.lang.String"
  43002. abstract="false" native="false" synchronized="false"
  43003. static="true" final="false" visibility="public"
  43004. deprecated="not deprecated">
  43005. <doc>
  43006. <![CDATA[HTML footer to be added in the jsps.
  43007. @return the HTML footer.]]>
  43008. </doc>
  43009. </method>
  43010. <field name="HTML_TAIL" type="java.lang.String"
  43011. transient="false" volatile="false"
  43012. static="true" final="true" visibility="public"
  43013. deprecated="not deprecated">
  43014. </field>
  43015. </class>
  43016. <!-- end class org.apache.hadoop.util.ServletUtil -->
  43017. <!-- start class org.apache.hadoop.util.Shell -->
  43018. <class name="Shell" extends="java.lang.Object"
  43019. abstract="true"
  43020. static="false" final="false" visibility="public"
  43021. deprecated="not deprecated">
  43022. <constructor name="Shell"
  43023. static="false" final="false" visibility="public"
  43024. deprecated="not deprecated">
  43025. </constructor>
  43026. <constructor name="Shell" type="long"
  43027. static="false" final="false" visibility="public"
  43028. deprecated="not deprecated">
  43029. <doc>
  43030. <![CDATA[@param interval the minimum duration to wait before re-executing the
  43031. command.]]>
  43032. </doc>
  43033. </constructor>
  43034. <method name="getGROUPS_COMMAND" return="java.lang.String[]"
  43035. abstract="false" native="false" synchronized="false"
  43036. static="true" final="false" visibility="public"
  43037. deprecated="not deprecated">
  43038. <doc>
  43039. <![CDATA[a Unix command to get the current user's groups list]]>
  43040. </doc>
  43041. </method>
  43042. <method name="getGET_PERMISSION_COMMAND" return="java.lang.String[]"
  43043. abstract="false" native="false" synchronized="false"
  43044. static="true" final="false" visibility="public"
  43045. deprecated="not deprecated">
  43046. <doc>
  43047. <![CDATA[Return a Unix command to get permission information.]]>
  43048. </doc>
  43049. </method>
  43050. <method name="getUlimitMemoryCommand" return="java.lang.String[]"
  43051. abstract="false" native="false" synchronized="false"
  43052. static="true" final="false" visibility="public"
  43053. deprecated="not deprecated">
  43054. <param name="job" type="org.apache.hadoop.mapred.JobConf"/>
  43055. <doc>
  43056. <![CDATA[Get the Unix command for setting the maximum virtual memory available
  43057. to a given child process. This is only relevant when we are forking a
  43058. process from within the {@link org.apache.hadoop.mapred.Mapper} or the
  43059. {@link org.apache.hadoop.mapred.Reducer} implementations
  43060. e.g. <a href="{@docRoot}/org/apache/hadoop/mapred/pipes/package-summary.html">Hadoop Pipes</a>
  43061. or <a href="{@docRoot}/org/apache/hadoop/streaming/package-summary.html">Hadoop Streaming</a>.
  43062. It also checks to ensure that we are running on a *nix platform else
  43063. (e.g. in Cygwin/Windows) it returns <code>null</code>.
  43064. @param job job configuration
  43065. @return a <code>String[]</code> with the ulimit command arguments or
  43066. <code>null</code> if we are running on a non *nix platform or
  43067. if the limit is unspecified.]]>
  43068. </doc>
  43069. </method>
  43070. <method name="setEnvironment"
  43071. abstract="false" native="false" synchronized="false"
  43072. static="false" final="false" visibility="protected"
  43073. deprecated="not deprecated">
  43074. <param name="env" type="java.util.Map&lt;java.lang.String, java.lang.String&gt;"/>
  43075. <doc>
  43076. <![CDATA[set the environment for the command
  43077. @param env Mapping of environment variables]]>
  43078. </doc>
  43079. </method>
  43080. <method name="setWorkingDirectory"
  43081. abstract="false" native="false" synchronized="false"
  43082. static="false" final="false" visibility="protected"
  43083. deprecated="not deprecated">
  43084. <param name="dir" type="java.io.File"/>
  43085. <doc>
  43086. <![CDATA[set the working directory
  43087. @param dir The directory where the command would be executed]]>
  43088. </doc>
  43089. </method>
  43090. <method name="run"
  43091. abstract="false" native="false" synchronized="false"
  43092. static="false" final="false" visibility="protected"
  43093. deprecated="not deprecated">
  43094. <exception name="IOException" type="java.io.IOException"/>
  43095. <doc>
  43096. <![CDATA[check to see if a command needs to be executed and execute if needed]]>
  43097. </doc>
  43098. </method>
  43099. <method name="getExecString" return="java.lang.String[]"
  43100. abstract="true" native="false" synchronized="false"
  43101. static="false" final="false" visibility="protected"
  43102. deprecated="not deprecated">
  43103. <doc>
  43104. <![CDATA[return an array containing the command name & its parameters]]>
  43105. </doc>
  43106. </method>
  43107. <method name="parseExecResult"
  43108. abstract="true" native="false" synchronized="false"
  43109. static="false" final="false" visibility="protected"
  43110. deprecated="not deprecated">
  43111. <param name="lines" type="java.io.BufferedReader"/>
  43112. <exception name="IOException" type="java.io.IOException"/>
  43113. <doc>
  43114. <![CDATA[Parse the execution result]]>
  43115. </doc>
  43116. </method>
  43117. <method name="getProcess" return="java.lang.Process"
  43118. abstract="false" native="false" synchronized="false"
  43119. static="false" final="false" visibility="public"
  43120. deprecated="not deprecated">
  43121. <doc>
  43122. <![CDATA[get the current sub-process executing the given command
  43123. @return process executing the command]]>
  43124. </doc>
  43125. </method>
  43126. <method name="getExitCode" return="int"
  43127. abstract="false" native="false" synchronized="false"
  43128. static="false" final="false" visibility="public"
  43129. deprecated="not deprecated">
  43130. <doc>
  43131. <![CDATA[get the exit code
  43132. @return the exit code of the process]]>
  43133. </doc>
  43134. </method>
  43135. <method name="execCommand" return="java.lang.String"
  43136. abstract="false" native="false" synchronized="false"
  43137. static="true" final="false" visibility="public"
  43138. deprecated="not deprecated">
  43139. <param name="cmd" type="java.lang.String[]"/>
  43140. <exception name="IOException" type="java.io.IOException"/>
  43141. <doc>
  43142. <![CDATA[Static method to execute a shell command.
  43143. Covers most of the simple cases without requiring the user to implement
  43144. the <code>Shell</code> interface.
  43145. @param cmd shell command to execute.
  43146. @return the output of the executed command.]]>
  43147. </doc>
  43148. </method>
  43149. <field name="LOG" type="org.apache.commons.logging.Log"
  43150. transient="false" volatile="false"
  43151. static="true" final="true" visibility="public"
  43152. deprecated="not deprecated">
  43153. </field>
  43154. <field name="USER_NAME_COMMAND" type="java.lang.String"
  43155. transient="false" volatile="false"
  43156. static="true" final="true" visibility="public"
  43157. deprecated="not deprecated">
  43158. <doc>
  43159. <![CDATA[a Unix command to get the current user's name]]>
  43160. </doc>
  43161. </field>
  43162. <field name="SET_PERMISSION_COMMAND" type="java.lang.String"
  43163. transient="false" volatile="false"
  43164. static="true" final="true" visibility="public"
  43165. deprecated="not deprecated">
  43166. <doc>
  43167. <![CDATA[a Unix command to set permission]]>
  43168. </doc>
  43169. </field>
  43170. <field name="SET_OWNER_COMMAND" type="java.lang.String"
  43171. transient="false" volatile="false"
  43172. static="true" final="true" visibility="public"
  43173. deprecated="not deprecated">
  43174. <doc>
  43175. <![CDATA[a Unix command to set owner]]>
  43176. </doc>
  43177. </field>
  43178. <field name="SET_GROUP_COMMAND" type="java.lang.String"
  43179. transient="false" volatile="false"
  43180. static="true" final="true" visibility="public"
  43181. deprecated="not deprecated">
  43182. </field>
  43183. <field name="WINDOWS" type="boolean"
  43184. transient="false" volatile="false"
  43185. static="true" final="true" visibility="public"
  43186. deprecated="not deprecated">
  43187. <doc>
  43188. <![CDATA[Set to true on Windows platforms]]>
  43189. </doc>
  43190. </field>
  43191. <doc>
  43192. <![CDATA[A base class for running a Unix command.
  43193. <code>Shell</code> can be used to run unix commands like <code>du</code> or
  43194. <code>df</code>. It also offers facilities to gate commands by
  43195. time-intervals.]]>
  43196. </doc>
  43197. </class>
  43198. <!-- end class org.apache.hadoop.util.Shell -->
  43199. <!-- start class org.apache.hadoop.util.Shell.ExitCodeException -->
  43200. <class name="Shell.ExitCodeException" extends="java.io.IOException"
  43201. abstract="false"
  43202. static="true" final="false" visibility="public"
  43203. deprecated="not deprecated">
  43204. <constructor name="Shell.ExitCodeException" type="int, java.lang.String"
  43205. static="false" final="false" visibility="public"
  43206. deprecated="not deprecated">
  43207. </constructor>
  43208. <method name="getExitCode" return="int"
  43209. abstract="false" native="false" synchronized="false"
  43210. static="false" final="false" visibility="public"
  43211. deprecated="not deprecated">
  43212. </method>
  43213. <doc>
  43214. <![CDATA[This is an IOException with exit code added.]]>
  43215. </doc>
  43216. </class>
  43217. <!-- end class org.apache.hadoop.util.Shell.ExitCodeException -->
  43218. <!-- start class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  43219. <class name="Shell.ShellCommandExecutor" extends="org.apache.hadoop.util.Shell"
  43220. abstract="false"
  43221. static="true" final="false" visibility="public"
  43222. deprecated="not deprecated">
  43223. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[]"
  43224. static="false" final="false" visibility="public"
  43225. deprecated="not deprecated">
  43226. </constructor>
  43227. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File"
  43228. static="false" final="false" visibility="public"
  43229. deprecated="not deprecated">
  43230. </constructor>
  43231. <constructor name="Shell.ShellCommandExecutor" type="java.lang.String[], java.io.File, java.util.Map&lt;java.lang.String, java.lang.String&gt;"
  43232. static="false" final="false" visibility="public"
  43233. deprecated="not deprecated">
  43234. </constructor>
  43235. <method name="execute"
  43236. abstract="false" native="false" synchronized="false"
  43237. static="false" final="false" visibility="public"
  43238. deprecated="not deprecated">
  43239. <exception name="IOException" type="java.io.IOException"/>
  43240. <doc>
  43241. <![CDATA[Execute the shell command.]]>
  43242. </doc>
  43243. </method>
  43244. <method name="getExecString" return="java.lang.String[]"
  43245. abstract="false" native="false" synchronized="false"
  43246. static="false" final="false" visibility="protected"
  43247. deprecated="not deprecated">
  43248. </method>
  43249. <method name="parseExecResult"
  43250. abstract="false" native="false" synchronized="false"
  43251. static="false" final="false" visibility="protected"
  43252. deprecated="not deprecated">
  43253. <param name="lines" type="java.io.BufferedReader"/>
  43254. <exception name="IOException" type="java.io.IOException"/>
  43255. </method>
  43256. <method name="getOutput" return="java.lang.String"
  43257. abstract="false" native="false" synchronized="false"
  43258. static="false" final="false" visibility="public"
  43259. deprecated="not deprecated">
  43260. <doc>
  43261. <![CDATA[Get the output of the shell command.]]>
  43262. </doc>
  43263. </method>
  43264. <doc>
  43265. <![CDATA[A simple shell command executor.
  43266. <code>ShellCommandExecutor</code>should be used in cases where the output
  43267. of the command needs no explicit parsing and where the command, working
  43268. directory and the environment remains unchanged. The output of the command
  43269. is stored as-is and is expected to be small.]]>
  43270. </doc>
  43271. </class>
  43272. <!-- end class org.apache.hadoop.util.Shell.ShellCommandExecutor -->
  43273. <!-- start class org.apache.hadoop.util.StringUtils -->
  43274. <class name="StringUtils" extends="java.lang.Object"
  43275. abstract="false"
  43276. static="false" final="false" visibility="public"
  43277. deprecated="not deprecated">
  43278. <constructor name="StringUtils"
  43279. static="false" final="false" visibility="public"
  43280. deprecated="not deprecated">
  43281. </constructor>
  43282. <method name="stringifyException" return="java.lang.String"
  43283. abstract="false" native="false" synchronized="false"
  43284. static="true" final="false" visibility="public"
  43285. deprecated="not deprecated">
  43286. <param name="e" type="java.lang.Throwable"/>
  43287. <doc>
  43288. <![CDATA[Make a string representation of the exception.
  43289. @param e The exception to stringify
  43290. @return A string with exception name and call stack.]]>
  43291. </doc>
  43292. </method>
  43293. <method name="simpleHostname" return="java.lang.String"
  43294. abstract="false" native="false" synchronized="false"
  43295. static="true" final="false" visibility="public"
  43296. deprecated="not deprecated">
  43297. <param name="fullHostname" type="java.lang.String"/>
  43298. <doc>
  43299. <![CDATA[Given a full hostname, return the word upto the first dot.
  43300. @param fullHostname the full hostname
  43301. @return the hostname to the first dot]]>
  43302. </doc>
  43303. </method>
  43304. <method name="humanReadableInt" return="java.lang.String"
  43305. abstract="false" native="false" synchronized="false"
  43306. static="true" final="false" visibility="public"
  43307. deprecated="not deprecated">
  43308. <param name="number" type="long"/>
  43309. <doc>
  43310. <![CDATA[Given an integer, return a string that is in an approximate, but human
  43311. readable format.
  43312. It uses the bases 'k', 'm', and 'g' for 1024, 1024**2, and 1024**3.
  43313. @param number the number to format
  43314. @return a human readable form of the integer]]>
  43315. </doc>
  43316. </method>
  43317. <method name="formatPercent" return="java.lang.String"
  43318. abstract="false" native="false" synchronized="false"
  43319. static="true" final="false" visibility="public"
  43320. deprecated="not deprecated">
  43321. <param name="done" type="double"/>
  43322. <param name="digits" type="int"/>
  43323. <doc>
  43324. <![CDATA[Format a percentage for presentation to the user.
  43325. @param done the percentage to format (0.0 to 1.0)
  43326. @param digits the number of digits past the decimal point
  43327. @return a string representation of the percentage]]>
  43328. </doc>
  43329. </method>
  43330. <method name="arrayToString" return="java.lang.String"
  43331. abstract="false" native="false" synchronized="false"
  43332. static="true" final="false" visibility="public"
  43333. deprecated="not deprecated">
  43334. <param name="strs" type="java.lang.String[]"/>
  43335. <doc>
  43336. <![CDATA[Given an array of strings, return a comma-separated list of its elements.
  43337. @param strs Array of strings
  43338. @return Empty string if strs.length is 0, comma separated list of strings
  43339. otherwise]]>
  43340. </doc>
  43341. </method>
  43342. <method name="byteToHexString" return="java.lang.String"
  43343. abstract="false" native="false" synchronized="false"
  43344. static="true" final="false" visibility="public"
  43345. deprecated="not deprecated">
  43346. <param name="bytes" type="byte[]"/>
  43347. <doc>
  43348. <![CDATA[Given an array of bytes it will convert the bytes to a hex string
  43349. representation of the bytes
  43350. @param bytes
  43351. @return hex string representation of the byte array]]>
  43352. </doc>
  43353. </method>
  43354. <method name="hexStringToByte" return="byte[]"
  43355. abstract="false" native="false" synchronized="false"
  43356. static="true" final="false" visibility="public"
  43357. deprecated="not deprecated">
  43358. <param name="hex" type="java.lang.String"/>
  43359. <doc>
  43360. <![CDATA[Given a hexstring this will return the byte array corresponding to the
  43361. string
  43362. @param hex the hex String array
  43363. @return a byte array that is a hex string representation of the given
  43364. string. The size of the byte array is therefore hex.length/2]]>
  43365. </doc>
  43366. </method>
  43367. <method name="uriToString" return="java.lang.String"
  43368. abstract="false" native="false" synchronized="false"
  43369. static="true" final="false" visibility="public"
  43370. deprecated="not deprecated">
  43371. <param name="uris" type="java.net.URI[]"/>
  43372. <doc>
  43373. <![CDATA[@param uris]]>
  43374. </doc>
  43375. </method>
  43376. <method name="stringToURI" return="java.net.URI[]"
  43377. abstract="false" native="false" synchronized="false"
  43378. static="true" final="false" visibility="public"
  43379. deprecated="not deprecated">
  43380. <param name="str" type="java.lang.String[]"/>
  43381. <doc>
  43382. <![CDATA[@param str]]>
  43383. </doc>
  43384. </method>
  43385. <method name="stringToPath" return="org.apache.hadoop.fs.Path[]"
  43386. abstract="false" native="false" synchronized="false"
  43387. static="true" final="false" visibility="public"
  43388. deprecated="not deprecated">
  43389. <param name="str" type="java.lang.String[]"/>
  43390. <doc>
  43391. <![CDATA[@param str]]>
  43392. </doc>
  43393. </method>
  43394. <method name="formatTimeDiff" return="java.lang.String"
  43395. abstract="false" native="false" synchronized="false"
  43396. static="true" final="false" visibility="public"
  43397. deprecated="not deprecated">
  43398. <param name="finishTime" type="long"/>
  43399. <param name="startTime" type="long"/>
  43400. <doc>
  43401. <![CDATA[Given a finish and start time in long milliseconds, returns a
  43402. String in the format Xhrs, Ymins, Z sec, for the time difference between two times.
  43403. If finish time comes before start time then negative valeus of X, Y and Z wil return.
  43404. @param finishTime finish time
  43405. @param startTime start time]]>
  43406. </doc>
  43407. </method>
  43408. <method name="getFormattedTimeWithDiff" return="java.lang.String"
  43409. abstract="false" native="false" synchronized="false"
  43410. static="true" final="false" visibility="public"
  43411. deprecated="not deprecated">
  43412. <param name="dateFormat" type="java.text.DateFormat"/>
  43413. <param name="finishTime" type="long"/>
  43414. <param name="startTime" type="long"/>
  43415. <doc>
  43416. <![CDATA[Formats time in ms and appends difference (finishTime - startTime)
  43417. as returned by formatTimeDiff().
  43418. If finish time is 0, empty string is returned, if start time is 0
  43419. then difference is not appended to return value.
  43420. @param dateFormat date format to use
  43421. @param finishTime fnish time
  43422. @param startTime start time
  43423. @return formatted value.]]>
  43424. </doc>
  43425. </method>
  43426. <method name="getStrings" return="java.lang.String[]"
  43427. abstract="false" native="false" synchronized="false"
  43428. static="true" final="false" visibility="public"
  43429. deprecated="not deprecated">
  43430. <param name="str" type="java.lang.String"/>
  43431. <doc>
  43432. <![CDATA[Returns an arraylist of strings.
  43433. @param str the comma seperated string values
  43434. @return the arraylist of the comma seperated string values]]>
  43435. </doc>
  43436. </method>
  43437. <method name="getStringCollection" return="java.util.Collection&lt;java.lang.String&gt;"
  43438. abstract="false" native="false" synchronized="false"
  43439. static="true" final="false" visibility="public"
  43440. deprecated="not deprecated">
  43441. <param name="str" type="java.lang.String"/>
  43442. <doc>
  43443. <![CDATA[Returns a collection of strings.
  43444. @param str comma seperated string values
  43445. @return an <code>ArrayList</code> of string values]]>
  43446. </doc>
  43447. </method>
  43448. <method name="split" return="java.lang.String[]"
  43449. abstract="false" native="false" synchronized="false"
  43450. static="true" final="false" visibility="public"
  43451. deprecated="not deprecated">
  43452. <param name="str" type="java.lang.String"/>
  43453. <doc>
  43454. <![CDATA[Split a string using the default separator
  43455. @param str a string that may have escaped separator
  43456. @return an array of strings]]>
  43457. </doc>
  43458. </method>
  43459. <method name="split" return="java.lang.String[]"
  43460. abstract="false" native="false" synchronized="false"
  43461. static="true" final="false" visibility="public"
  43462. deprecated="not deprecated">
  43463. <param name="str" type="java.lang.String"/>
  43464. <param name="escapeChar" type="char"/>
  43465. <param name="separator" type="char"/>
  43466. <doc>
  43467. <![CDATA[Split a string using the given separator
  43468. @param str a string that may have escaped separator
  43469. @param escapeChar a char that be used to escape the separator
  43470. @param separator a separator char
  43471. @return an array of strings]]>
  43472. </doc>
  43473. </method>
  43474. <method name="escapeString" return="java.lang.String"
  43475. abstract="false" native="false" synchronized="false"
  43476. static="true" final="false" visibility="public"
  43477. deprecated="not deprecated">
  43478. <param name="str" type="java.lang.String"/>
  43479. <doc>
  43480. <![CDATA[Escape commas in the string using the default escape char
  43481. @param str a string
  43482. @return an escaped string]]>
  43483. </doc>
  43484. </method>
  43485. <method name="escapeString" return="java.lang.String"
  43486. abstract="false" native="false" synchronized="false"
  43487. static="true" final="false" visibility="public"
  43488. deprecated="not deprecated">
  43489. <param name="str" type="java.lang.String"/>
  43490. <param name="escapeChar" type="char"/>
  43491. <param name="charToEscape" type="char"/>
  43492. <doc>
  43493. <![CDATA[Escape <code>charToEscape</code> in the string
  43494. with the escape char <code>escapeChar</code>
  43495. @param str string
  43496. @param escapeChar escape char
  43497. @param charToEscape the char to be escaped
  43498. @return an escaped string]]>
  43499. </doc>
  43500. </method>
  43501. <method name="unEscapeString" return="java.lang.String"
  43502. abstract="false" native="false" synchronized="false"
  43503. static="true" final="false" visibility="public"
  43504. deprecated="not deprecated">
  43505. <param name="str" type="java.lang.String"/>
  43506. <doc>
  43507. <![CDATA[Unescape commas in the string using the default escape char
  43508. @param str a string
  43509. @return an unescaped string]]>
  43510. </doc>
  43511. </method>
  43512. <method name="unEscapeString" return="java.lang.String"
  43513. abstract="false" native="false" synchronized="false"
  43514. static="true" final="false" visibility="public"
  43515. deprecated="not deprecated">
  43516. <param name="str" type="java.lang.String"/>
  43517. <param name="escapeChar" type="char"/>
  43518. <param name="charToEscape" type="char"/>
  43519. <doc>
  43520. <![CDATA[Unescape <code>charToEscape</code> in the string
  43521. with the escape char <code>escapeChar</code>
  43522. @param str string
  43523. @param escapeChar escape char
  43524. @param charToEscape the escaped char
  43525. @return an unescaped string]]>
  43526. </doc>
  43527. </method>
  43528. <method name="getHostname" return="java.lang.String"
  43529. abstract="false" native="false" synchronized="false"
  43530. static="true" final="false" visibility="public"
  43531. deprecated="not deprecated">
  43532. <doc>
  43533. <![CDATA[Return hostname without throwing exception.
  43534. @return hostname]]>
  43535. </doc>
  43536. </method>
  43537. <method name="startupShutdownMessage"
  43538. abstract="false" native="false" synchronized="false"
  43539. static="true" final="false" visibility="public"
  43540. deprecated="not deprecated">
  43541. <param name="clazz" type="java.lang.Class"/>
  43542. <param name="args" type="java.lang.String[]"/>
  43543. <param name="LOG" type="org.apache.commons.logging.Log"/>
  43544. <doc>
  43545. <![CDATA[Print a log message for starting up and shutting down
  43546. @param clazz the class of the server
  43547. @param args arguments
  43548. @param LOG the target log object]]>
  43549. </doc>
  43550. </method>
  43551. <field name="COMMA" type="char"
  43552. transient="false" volatile="false"
  43553. static="true" final="true" visibility="public"
  43554. deprecated="not deprecated">
  43555. </field>
  43556. <field name="COMMA_STR" type="java.lang.String"
  43557. transient="false" volatile="false"
  43558. static="true" final="true" visibility="public"
  43559. deprecated="not deprecated">
  43560. </field>
  43561. <field name="ESCAPE_CHAR" type="char"
  43562. transient="false" volatile="false"
  43563. static="true" final="true" visibility="public"
  43564. deprecated="not deprecated">
  43565. </field>
  43566. <doc>
  43567. <![CDATA[General string utils]]>
  43568. </doc>
  43569. </class>
  43570. <!-- end class org.apache.hadoop.util.StringUtils -->
  43571. <!-- start interface org.apache.hadoop.util.Tool -->
  43572. <interface name="Tool" abstract="true"
  43573. static="false" final="false" visibility="public"
  43574. deprecated="not deprecated">
  43575. <implements name="org.apache.hadoop.conf.Configurable"/>
  43576. <method name="run" return="int"
  43577. abstract="false" native="false" synchronized="false"
  43578. static="false" final="false" visibility="public"
  43579. deprecated="not deprecated">
  43580. <param name="args" type="java.lang.String[]"/>
  43581. <exception name="Exception" type="java.lang.Exception"/>
  43582. <doc>
  43583. <![CDATA[Execute the command with the given arguments.
  43584. @param args command specific arguments.
  43585. @return exit code.
  43586. @throws Exception]]>
  43587. </doc>
  43588. </method>
  43589. <doc>
  43590. <![CDATA[A tool interface that supports handling of generic command-line options.
  43591. <p><code>Tool</code>, is the standard for any Map-Reduce tool/application.
  43592. The tool/application should delegate the handling of
  43593. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43594. standard command-line options</a> to {@link ToolRunner#run(Tool, String[])}
  43595. and only handle its custom arguments.</p>
  43596. <p>Here is how a typical <code>Tool</code> is implemented:</p>
  43597. <p><blockquote><pre>
  43598. public class MyApp extends Configured implements Tool {
  43599. public int run(String[] args) throws Exception {
  43600. // <code>Configuration</code> processed by <code>ToolRunner</code>
  43601. Configuration conf = getConf();
  43602. // Create a JobConf using the processed <code>conf</code>
  43603. JobConf job = new JobConf(conf, MyApp.class);
  43604. // Process custom command-line options
  43605. Path in = new Path(args[1]);
  43606. Path out = new Path(args[2]);
  43607. // Specify various job-specific parameters
  43608. job.setJobName("my-app");
  43609. job.setInputPath(in);
  43610. job.setOutputPath(out);
  43611. job.setMapperClass(MyApp.MyMapper.class);
  43612. job.setReducerClass(MyApp.MyReducer.class);
  43613. // Submit the job, then poll for progress until the job is complete
  43614. JobClient.runJob(job);
  43615. }
  43616. public static void main(String[] args) throws Exception {
  43617. // Let <code>ToolRunner</code> handle generic command-line options
  43618. int res = ToolRunner.run(new Configuration(), new Sort(), args);
  43619. System.exit(res);
  43620. }
  43621. }
  43622. </pre></blockquote></p>
  43623. @see GenericOptionsParser
  43624. @see ToolRunner]]>
  43625. </doc>
  43626. </interface>
  43627. <!-- end interface org.apache.hadoop.util.Tool -->
  43628. <!-- start class org.apache.hadoop.util.ToolRunner -->
  43629. <class name="ToolRunner" extends="java.lang.Object"
  43630. abstract="false"
  43631. static="false" final="false" visibility="public"
  43632. deprecated="not deprecated">
  43633. <constructor name="ToolRunner"
  43634. static="false" final="false" visibility="public"
  43635. deprecated="not deprecated">
  43636. </constructor>
  43637. <method name="run" return="int"
  43638. abstract="false" native="false" synchronized="false"
  43639. static="true" final="false" visibility="public"
  43640. deprecated="not deprecated">
  43641. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  43642. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43643. <param name="args" type="java.lang.String[]"/>
  43644. <exception name="Exception" type="java.lang.Exception"/>
  43645. <doc>
  43646. <![CDATA[Runs the given <code>Tool</code> by {@link Tool#run(String[])}, after
  43647. parsing with the given generic arguments. Uses the given
  43648. <code>Configuration</code>, or builds one if null.
  43649. Sets the <code>Tool</code>'s configuration with the possibly modified
  43650. version of the <code>conf</code>.
  43651. @param conf <code>Configuration</code> for the <code>Tool</code>.
  43652. @param tool <code>Tool</code> to run.
  43653. @param args command-line arguments to the tool.
  43654. @return exit code of the {@link Tool#run(String[])} method.]]>
  43655. </doc>
  43656. </method>
  43657. <method name="run" return="int"
  43658. abstract="false" native="false" synchronized="false"
  43659. static="true" final="false" visibility="public"
  43660. deprecated="not deprecated">
  43661. <param name="tool" type="org.apache.hadoop.util.Tool"/>
  43662. <param name="args" type="java.lang.String[]"/>
  43663. <exception name="Exception" type="java.lang.Exception"/>
  43664. <doc>
  43665. <![CDATA[Runs the <code>Tool</code> with its <code>Configuration</code>.
  43666. Equivalent to <code>run(tool.getConf(), tool, args)</code>.
  43667. @param tool <code>Tool</code> to run.
  43668. @param args command-line arguments to the tool.
  43669. @return exit code of the {@link Tool#run(String[])} method.]]>
  43670. </doc>
  43671. </method>
  43672. <method name="printGenericCommandUsage"
  43673. abstract="false" native="false" synchronized="false"
  43674. static="true" final="false" visibility="public"
  43675. deprecated="not deprecated">
  43676. <param name="out" type="java.io.PrintStream"/>
  43677. <doc>
  43678. <![CDATA[Prints generic command-line argurments and usage information.
  43679. @param out stream to write usage information to.]]>
  43680. </doc>
  43681. </method>
  43682. <doc>
  43683. <![CDATA[A utility to help run {@link Tool}s.
  43684. <p><code>ToolRunner</code> can be used to run classes implementing
  43685. <code>Tool</code> interface. It works in conjunction with
  43686. {@link GenericOptionsParser} to parse the
  43687. <a href="{@docRoot}/org/apache/hadoop/util/GenericOptionsParser.html#GenericOptions">
  43688. generic hadoop command line arguments</a> and modifies the
  43689. <code>Configuration</code> of the <code>Tool</code>. The
  43690. application-specific options are passed along without being modified.
  43691. </p>
  43692. @see Tool
  43693. @see GenericOptionsParser]]>
  43694. </doc>
  43695. </class>
  43696. <!-- end class org.apache.hadoop.util.ToolRunner -->
  43697. <!-- start class org.apache.hadoop.util.VersionInfo -->
  43698. <class name="VersionInfo" extends="java.lang.Object"
  43699. abstract="false"
  43700. static="false" final="false" visibility="public"
  43701. deprecated="not deprecated">
  43702. <constructor name="VersionInfo"
  43703. static="false" final="false" visibility="public"
  43704. deprecated="not deprecated">
  43705. </constructor>
  43706. <method name="getVersion" return="java.lang.String"
  43707. abstract="false" native="false" synchronized="false"
  43708. static="true" final="false" visibility="public"
  43709. deprecated="not deprecated">
  43710. <doc>
  43711. <![CDATA[Get the Hadoop version.
  43712. @return the Hadoop version string, eg. "0.6.3-dev"]]>
  43713. </doc>
  43714. </method>
  43715. <method name="getRevision" return="java.lang.String"
  43716. abstract="false" native="false" synchronized="false"
  43717. static="true" final="false" visibility="public"
  43718. deprecated="not deprecated">
  43719. <doc>
  43720. <![CDATA[Get the subversion revision number for the root directory
  43721. @return the revision number, eg. "451451"]]>
  43722. </doc>
  43723. </method>
  43724. <method name="getDate" return="java.lang.String"
  43725. abstract="false" native="false" synchronized="false"
  43726. static="true" final="false" visibility="public"
  43727. deprecated="not deprecated">
  43728. <doc>
  43729. <![CDATA[The date that Hadoop was compiled.
  43730. @return the compilation date in unix date format]]>
  43731. </doc>
  43732. </method>
  43733. <method name="getUser" return="java.lang.String"
  43734. abstract="false" native="false" synchronized="false"
  43735. static="true" final="false" visibility="public"
  43736. deprecated="not deprecated">
  43737. <doc>
  43738. <![CDATA[The user that compiled Hadoop.
  43739. @return the username of the user]]>
  43740. </doc>
  43741. </method>
  43742. <method name="getUrl" return="java.lang.String"
  43743. abstract="false" native="false" synchronized="false"
  43744. static="true" final="false" visibility="public"
  43745. deprecated="not deprecated">
  43746. <doc>
  43747. <![CDATA[Get the subversion URL for the root Hadoop directory.]]>
  43748. </doc>
  43749. </method>
  43750. <method name="getBuildVersion" return="java.lang.String"
  43751. abstract="false" native="false" synchronized="false"
  43752. static="true" final="false" visibility="public"
  43753. deprecated="not deprecated">
  43754. <doc>
  43755. <![CDATA[Returns the buildVersion which includes version,
  43756. revision, user and date.]]>
  43757. </doc>
  43758. </method>
  43759. <method name="main"
  43760. abstract="false" native="false" synchronized="false"
  43761. static="true" final="false" visibility="public"
  43762. deprecated="not deprecated">
  43763. <param name="args" type="java.lang.String[]"/>
  43764. </method>
  43765. <doc>
  43766. <![CDATA[This class finds the package info for Hadoop and the HadoopVersionAnnotation
  43767. information.]]>
  43768. </doc>
  43769. </class>
  43770. <!-- end class org.apache.hadoop.util.VersionInfo -->
  43771. <!-- start class org.apache.hadoop.util.XMLUtils -->
  43772. <class name="XMLUtils" extends="java.lang.Object"
  43773. abstract="false"
  43774. static="false" final="false" visibility="public"
  43775. deprecated="not deprecated">
  43776. <constructor name="XMLUtils"
  43777. static="false" final="false" visibility="public"
  43778. deprecated="not deprecated">
  43779. </constructor>
  43780. <method name="transform"
  43781. abstract="false" native="false" synchronized="false"
  43782. static="true" final="false" visibility="public"
  43783. deprecated="not deprecated">
  43784. <param name="styleSheet" type="java.io.InputStream"/>
  43785. <param name="xml" type="java.io.InputStream"/>
  43786. <param name="out" type="java.io.Writer"/>
  43787. <exception name="TransformerConfigurationException" type="javax.xml.transform.TransformerConfigurationException"/>
  43788. <exception name="TransformerException" type="javax.xml.transform.TransformerException"/>
  43789. <doc>
  43790. <![CDATA[Transform input xml given a stylesheet.
  43791. @param styleSheet the style-sheet
  43792. @param xml input xml data
  43793. @param out output
  43794. @throws TransformerConfigurationException
  43795. @throws TransformerException]]>
  43796. </doc>
  43797. </method>
  43798. <doc>
  43799. <![CDATA[General xml utilities.]]>
  43800. </doc>
  43801. </class>
  43802. <!-- end class org.apache.hadoop.util.XMLUtils -->
  43803. </package>
  43804. </api>