public class SchemaTupleFactory extends java.lang.Object implements TupleMaker<SchemaTuple<?>>
Modifier | Constructor and Description |
---|---|
protected |
SchemaTupleFactory(java.lang.Class<SchemaTuple<?>> clazz,
SchemaTuple.SchemaTupleQuickGenerator<? extends SchemaTuple<?>> generator) |
Modifier and Type | Method and Description |
---|---|
protected static SchemaTupleFactory |
getInstance(int id)
This method is the publicly facing method which returns a SchemaTupleFactory
which will generate the SchemaTuple associated with the given identifier.
|
static SchemaTupleFactory |
getInstance(Schema s) |
static SchemaTupleFactory |
getInstance(Schema s,
boolean isAppendable) |
static SchemaTupleFactory |
getInstance(Schema s,
boolean isAppendable,
SchemaTupleClassGenerator.GenContext context)
This method is the publicly facing method which returns a SchemaTupleFactory
which will generate SchemaTuples of the given Schema.
|
boolean |
isFixedSize() |
static boolean |
isGeneratable(Schema s)
This method inspects a Schema to see whether or
not a SchemaTuple implementation can be generated
for the types present.
|
SchemaTuple<?> |
newTuple() |
SchemaTuple<?> |
newTuple(int size) |
java.lang.Class<SchemaTuple<?>> |
tupleClass() |
protected SchemaTupleFactory(java.lang.Class<SchemaTuple<?>> clazz, SchemaTuple.SchemaTupleQuickGenerator<? extends SchemaTuple<?>> generator)
public static boolean isGeneratable(Schema s)
s
- as Schemapublic SchemaTuple<?> newTuple()
newTuple
in interface TupleMaker<SchemaTuple<?>>
public SchemaTuple<?> newTuple(int size)
newTuple
in interface TupleMaker<SchemaTuple<?>>
public java.lang.Class<SchemaTuple<?>> tupleClass()
public boolean isFixedSize()
protected static SchemaTupleFactory getInstance(int id)
id
- as int, means identifierpublic static SchemaTupleFactory getInstance(Schema s, boolean isAppendable, SchemaTupleClassGenerator.GenContext context)
s
- the Schema generatedisAppendable
- whether or not the SchemaTuple should be appendablecontext
- the context in which we want a SchemaTupleFactorypublic static SchemaTupleFactory getInstance(Schema s, boolean isAppendable)
public static SchemaTupleFactory getInstance(Schema s)
Copyright © 2007-2012 The Apache Software Foundation