A factory to construct tuples. This class is abstract so that users can
override the tuple factory if they desire to provide their own that
returns their implementation of a tuple. If the property
pig.data.tuple.factory.name is set to a class name and
pig.data.tuple.factory.jar is set to a URL pointing to a jar that
contains the above named class, then getInstance() will create a
an instance of the named class using the indicated jar. Otherwise, it
will create an instance of DefaultTupleFactory.
Create a tuple with size fields. Whenever possible this is preferred
over the null constructor, as the constructor can preallocate the
size of the container holding the fields. Once this is called, it
is legal to call Tuple.set(x, object), where x < size.
Return the actual class implementing the raw comparator for tuples
that the factory will be returning. Ovverride this to allow Hadoop to
speed up tuple sorting. The actual returned class should know the
serialization details for the tuple. The default implementation
(PigTupleDefaultRawComparator) will serialize the data before comparison
Class that implements tuple raw comparator.
public abstract boolean isFixedSize()
This method is used to inspect whether the Tuples created by this factory
will be of a fixed size when they are created. In practical terms, this means
whether they support append or not.