org.apache.pig.impl.io
Class ValidatingInputFileSpec

java.lang.Object
  extended by org.apache.pig.impl.io.FileSpec
      extended by org.apache.pig.impl.io.ValidatingInputFileSpec
All Implemented Interfaces:
Serializable

public class ValidatingInputFileSpec
extends FileSpec

Creates a Slicer using its funcSpec in its construction and checks that it's valid.

See Also:
Serialized Form

Constructor Summary
ValidatingInputFileSpec(FileSpec fileSpec, DataStorage store)
           
ValidatingInputFileSpec(String fileName, String funcSpec, PigContext context)
          If the ExecType of context is LOCAL, validation is not performed.
 
Method Summary
 Slicer getSlicer()
          Returns the Slicer created by this spec's funcSpec.
 
Methods inherited from class org.apache.pig.impl.io.FileSpec
getFileName, getFuncName, getFuncSpec, getSize, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidatingInputFileSpec

public ValidatingInputFileSpec(FileSpec fileSpec,
                               DataStorage store)
                        throws IOException
Throws:
IOException

ValidatingInputFileSpec

public ValidatingInputFileSpec(String fileName,
                               String funcSpec,
                               PigContext context)
                        throws IOException
If the ExecType of context is LOCAL, validation is not performed.

Throws:
IOException
Method Detail

getSlicer

public Slicer getSlicer()
Returns the Slicer created by this spec's funcSpec.



Copyright © ${year} The Apache Software Foundation