Deprecated API


Contents
Deprecated Classes
org.apache.pig.piggybank.evaluation.math.ABS
          Use ABS 
org.apache.pig.piggybank.evaluation.math.ACOS
          Use ACOS 
org.apache.pig.builtin.ARITY
          Use SIZE instead. 
org.apache.pig.piggybank.evaluation.math.ASIN
          Use ASIN 
org.apache.pig.piggybank.evaluation.math.ATAN
          Use ATAN 
org.apache.pig.piggybank.evaluation.math.Base
          Use Base 
org.apache.hadoop.zebra.mapred.BasicTableOutputFormat
           
org.apache.pig.piggybank.evaluation.math.CBRT
          Use CBRT 
org.apache.pig.piggybank.evaluation.math.CEIL
          Use CEIL 
org.apache.pig.ComparisonFunc
           
org.apache.pig.piggybank.evaluation.stats.COR
          Use COR 
org.apache.pig.piggybank.evaluation.math.COS
          Use COS 
org.apache.pig.piggybank.evaluation.math.COSH
          Use COSH 
org.apache.pig.piggybank.evaluation.stats.COV
          Use COV 
org.apache.pig.data.DefaultTupleFactory
          Use TupleFactory 
org.apache.pig.piggybank.evaluation.math.DoubleAbs
          Use DoubleAbs 
org.apache.pig.piggybank.evaluation.math.DoubleBase
          Use DoubleBase 
org.apache.pig.piggybank.evaluation.math.DoubleRound
          Use DoubleRound 
org.apache.pig.piggybank.evaluation.math.EXP
          Use EXP 
org.apache.pig.piggybank.evaluation.math.FloatAbs
          Use FloatAbs 
org.apache.pig.piggybank.evaluation.math.FloatRound
          Use FloatRound 
org.apache.pig.piggybank.evaluation.math.FLOOR
          Use FLOOR 
org.apache.pig.piggybank.evaluation.string.INDEXOF
          Use INDEXOF 
org.apache.pig.piggybank.evaluation.math.IntAbs
          Use IntAbs 
org.apache.pig.piggybank.storage.JsonMetadata
           
org.apache.pig.piggybank.evaluation.string.LASTINDEXOF
          Use LAST_INDEX_OF 
org.apache.pig.piggybank.evaluation.string.LcFirst
          Use LCFIRST 
org.apache.pig.piggybank.evaluation.math.LOG
          Use LOG 
org.apache.pig.piggybank.evaluation.math.LOG10
          Use LOG10 
org.apache.pig.piggybank.evaluation.math.LongAbs
          Use LongAbs 
org.apache.pig.piggybank.evaluation.string.LOWER
          Use LOWER 
org.apache.pig.piggybank.storage.PigStorageSchema
          Use PigStorage with a -schema option instead 
org.apache.pig.piggybank.evaluation.string.RegexExtract
          Use REGEX_EXTRACT 
org.apache.pig.piggybank.evaluation.string.RegexExtractAll
          Use REGEX_EXTRACT_ALL 
org.apache.pig.piggybank.evaluation.string.REPLACE
          Use REPLACE 
org.apache.pig.piggybank.evaluation.math.ROUND
          Use ROUND 
org.apache.pig.piggybank.evaluation.math.SIN
          Use SIN 
org.apache.pig.piggybank.evaluation.math.SINH
          Use SINH 
org.apache.pig.piggybank.evaluation.string.Split
          Use STRSPLIT 
org.apache.pig.piggybank.evaluation.math.SQRT
          Use SQRT 
org.apache.pig.piggybank.evaluation.string.SUBSTRING
          Use SUBSTRING 
org.apache.hadoop.zebra.mapred.TableInputFormat
           
org.apache.hadoop.zebra.mapred.TableRecordReader
           
org.apache.pig.piggybank.evaluation.math.TAN
          Use TAN 
org.apache.pig.piggybank.evaluation.math.TANH
          Use TANH 
org.apache.pig.piggybank.evaluation.util.ToBag
          Use TOBAG 
org.apache.pig.piggybank.evaluation.util.Top
          Use TOP 
org.apache.pig.piggybank.evaluation.util.ToTuple
          Use TOTUPLE 
org.apache.pig.piggybank.evaluation.string.Trim
          Use TRIM 
org.apache.pig.piggybank.evaluation.string.UcFirst
          Use UCFIRST 
org.apache.pig.piggybank.evaluation.string.UPPER
          Use UPPER 
org.apache.pig.impl.util.WrappedIOException
          This class was introduced to overcome the limitation that before Java 1.6, IOException did not have a constructor which took a Throwable argument. Since Pig code is now compiled with Java 1.6 and EvalFunc and LoadFunc user implementations should also use Java 1.6, they can use IOException instead. From Java 1.6, IOException has constructors which take a Throwable argument. 
 

Deprecated Fields
org.apache.pig.impl.PigContext.scriptFiles
           
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigInputFormat.sJob
          Use UDFContext instead in the following way to get the job's Configuration:
UdfContext.getUdfContext().getJobConf()
 
org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigGenericMapReduce.sJobConf
          Use UDFContext instead in the following way to get the job's Configuration:
UdfContext.getUdfContext().getJobConf()
 
 

Deprecated Methods
org.apache.pig.LoadCaster.bytesToMap(byte[])
           
org.apache.hadoop.zebra.tfile.TFile.Reader.createScanner(byte[], byte[])
          Use TFile.Reader.createScannerByKey(byte[], byte[]) instead. 
org.apache.hadoop.zebra.tfile.TFile.Reader.createScanner(RawComparable, RawComparable)
          Use TFile.Reader.createScannerByKey(RawComparable, RawComparable) instead. 
org.apache.pig.impl.io.FileLocalizer.fileExists(String, DataStorage)
          Use FileLocalizer.fileExists(String, PigContext) instead 
org.apache.pig.impl.io.FileLocalizer.fullPath(String, DataStorage)
          Use FileLocalizer.fullPath(String, PigContext) instead 
org.apache.pig.impl.PigContext.getConf()
          use PigContext.getProperties() instead 
org.apache.pig.impl.io.FileLocalizer.getTemporaryPath(ElementDescriptor, PigContext)
          Use FileLocalizer.getTemporaryPath(PigContext) instead 
org.apache.pig.EvalFunc.isAsynchronous()
           
org.apache.pig.impl.io.FileLocalizer.isDirectory(String, DataStorage)
          Use FileLocalizer.isDirectory(String, PigContext) instead. 
org.apache.pig.impl.io.FileLocalizer.isFile(String, DataStorage)
          Use FileLocalizer.isFile(String, PigContext) instead 
org.apache.pig.impl.logicalLayer.schema.Schema.isTwoLevelAccessRequired()
          twoLevelAccess is no longer needed 
org.apache.pig.impl.io.FileLocalizer.open(String, ExecType, DataStorage)
          Use FileLocalizer.open(String, PigContext) instead 
org.apache.pig.data.Tuple.reference(Tuple)
           
org.apache.pig.data.BagFactory.registerBag(DataBag)
          As of Pig 0.11, bags register with the SpillableMemoryManager themselves. Register a bag with the SpillableMemoryManager. If the bags created by an implementation of BagFactory are managed by the SpillableMemoryManager then this method should be called each time a new bag is created. 
org.apache.hadoop.zebra.mapreduce.TableInputFormat.requireSortedTable(JobContext, ZebraSortInfo)
            
org.apache.hadoop.zebra.mapreduce.BasicTableOutputFormat.setMultipleOutputs(JobContext, String, Class)
          Use #setMultipleOutputs(JobContext, class, Path ...) instead. 
org.apache.hadoop.zebra.mapred.TableInputFormat.setProjection(JobConf, String)
          Use TableInputFormat.setProjection(JobConf, ZebraProjection) instead. 
org.apache.hadoop.zebra.mapreduce.TableInputFormat.setProjection(JobContext, String)
          Use TableInputFormat.setProjection(JobContext, ZebraProjection) instead. 
org.apache.hadoop.zebra.mapred.BasicTableOutputFormat.setSchema(JobConf, String)
          Use BasicTableOutputFormat.setStorageInfo(JobConf, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapreduce.BasicTableOutputFormat.setSchema(JobContext, String)
          Use BasicTableOutputFormat.setStorageInfo(JobContext, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapred.BasicTableOutputFormat.setSortInfo(JobConf, String)
          Use BasicTableOutputFormat.setStorageInfo(JobConf, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapred.BasicTableOutputFormat.setSortInfo(JobConf, String, Class>)
          Use BasicTableOutputFormat.setStorageInfo(JobConf, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapreduce.BasicTableOutputFormat.setSortInfo(JobContext, String)
          Use BasicTableOutputFormat.setStorageInfo(JobContext, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapreduce.BasicTableOutputFormat.setSortInfo(JobContext, String, Class>)
          Use BasicTableOutputFormat.setStorageInfo(JobContext, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapred.BasicTableOutputFormat.setStorageHint(JobConf, String)
          Use BasicTableOutputFormat.setStorageInfo(JobConf, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.hadoop.zebra.mapreduce.BasicTableOutputFormat.setStorageHint(JobContext, String)
          Use BasicTableOutputFormat.setStorageInfo(JobContext, ZebraSchema, ZebraStorageHint, ZebraSortInfo) instead. 
org.apache.pig.impl.logicalLayer.schema.Schema.setTwoLevelAccessRequired(boolean)
          twoLevelAccess is no longer needed 
org.apache.hadoop.zebra.mapred.TableInputFormat.validateInput(JobConf)
           
org.apache.hadoop.zebra.mapreduce.TableInputFormat.validateInput(JobContext)
           
 



Copyright © 2007-2012 The Apache Software Foundation