@InterfaceAudience.Private public class BinSedesTupleFactory extends TupleFactory
Constructor and Description |
---|
BinSedesTupleFactory() |
Modifier and Type | Method and Description |
---|---|
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.
|
Tuple |
newTuple()
Create an empty tuple.
|
Tuple |
newTuple(int size)
Create a tuple with size fields.
|
Tuple |
newTuple(java.util.List c)
Create a tuple from the provided list of objects.
|
Tuple |
newTuple(java.lang.Object datum)
Create a tuple with a single element.
|
Tuple |
newTupleNoCopy(java.util.List list)
Create a tuple from a provided list of objects, keeping the provided
list.
|
java.lang.Class<? extends Tuple> |
tupleClass()
Return the actual class representing a tuple that the implementing
factory will be returning.
|
java.lang.Class<? extends TupleRawComparator> |
tupleRawComparatorClass()
Return the actual class implementing the raw comparator for tuples
that the factory will be returning.
|
getInstance, resetSelf
public Tuple newTuple()
TupleFactory
newTuple
in interface TupleMaker<Tuple>
newTuple
in class TupleFactory
public Tuple newTuple(int size)
TupleFactory
newTuple
in interface TupleMaker<Tuple>
newTuple
in class TupleFactory
size
- Number of fields in the tuple.public Tuple newTuple(java.util.List c)
TupleFactory
newTuple
in class TupleFactory
c
- List of objects to use as the fields of the tuple.public Tuple newTupleNoCopy(java.util.List list)
TupleFactory
newTupleNoCopy
in class TupleFactory
list
- List of objects that will become the fields of the tuple.public Tuple newTuple(java.lang.Object datum)
TupleFactory
newTuple
in class TupleFactory
datum
- Datum to put in the tuple.public java.lang.Class<? extends Tuple> tupleClass()
TupleFactory
tupleClass
in class TupleFactory
public java.lang.Class<? extends TupleRawComparator> tupleRawComparatorClass()
TupleFactory
tupleRawComparatorClass
in class TupleFactory
public boolean isFixedSize()
TupleFactory
isFixedSize
in class TupleFactory
Copyright © 2007-2017 The Apache Software Foundation