@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(List c)
Create a tuple from the provided list of objects.
|
Tuple |
newTuple(Object datum)
Create a tuple with a single element.
|
Tuple |
newTupleNoCopy(List list)
Create a tuple from a provided list of objects, keeping the provided
list.
|
Class<? extends Tuple> |
tupleClass()
Return the actual class representing a tuple that the implementing
factory will be returning.
|
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(List c)
TupleFactory
newTuple
in class TupleFactory
c
- List of objects to use as the fields of the tuple.public Tuple newTupleNoCopy(List list)
TupleFactory
newTupleNoCopy
in class TupleFactory
list
- List of objects that will become the fields of the tuple.public Tuple newTuple(Object datum)
TupleFactory
newTuple
in class TupleFactory
datum
- Datum to put in the tuple.public Class<? extends Tuple> tupleClass()
TupleFactory
tupleClass
in class TupleFactory
public Class<? extends TupleRawComparator> tupleRawComparatorClass()
TupleFactory
tupleRawComparatorClass
in class TupleFactory
public boolean isFixedSize()
TupleFactory
isFixedSize
in class TupleFactory
Copyright © 2007-2017 The Apache Software Foundation