public class SchemaUtil
extends java.lang.Object
Constructor and Description |
---|
SchemaUtil() |
Modifier and Type | Method and Description |
---|---|
static Schema |
newBagSchema(java.lang.Byte[] dataTypes)
Create a new tuple schema according one array: the type of fields, the
tuple name is t, and the bag name is b.
|
static Schema |
newBagSchema(java.util.List<java.lang.Byte> dataTypes)
Create a new tuple schema according one list: types of fields, the
default names of fields are f0,f1,f2..., and the tuple is t, the bag name
is b.
|
static Schema |
newBagSchema(java.util.List<java.lang.String> names,
java.util.List<java.lang.Byte> dataTypes)
Create a bag schema according two list: name of fields, type of fields,
and the default bag name is b, the default tuple name is t.
|
static Schema |
newBagSchema(java.lang.String[] names,
java.lang.Byte[] dataTypes)
Create a new tuple schema according two arrays: names of field,types of
fields.
|
static Schema |
newBagSchema(java.lang.String bagName,
java.lang.String tupleName,
java.util.List<java.lang.String> fieldNames,
java.util.List<java.lang.Byte> dataTypes)
Create a bag schema according the bag name,tuple name and two list: name
of fields, type of fields
|
static Schema |
newBagSchema(java.lang.String bagName,
java.lang.String tupleName,
java.lang.String[] fieldNames,
java.lang.Byte[] dataTypes) |
static Schema |
newTupleSchema(java.lang.Byte[] dataTypes)
Create a new tuple schema according one array: types of fields, the
default names of fields are f0,f1,f2..., and the tuple name is t.
|
static Schema |
newTupleSchema(java.util.List<java.lang.Byte> dataTypes)
Create a new tuple schema according one list: types of fields, the
default names of fields are f0,f1,f2..., and the tuple name is t.
|
static Schema |
newTupleSchema(java.util.List<java.lang.String> fieldNames,
java.util.List<java.lang.Byte> dataTypes)
Create a new tuple schema according the two list: names of fields, types
of fields, the default tuple name is t.
|
static Schema |
newTupleSchema(java.lang.String[] names,
java.lang.Byte[] dataTypes)
Create a new tuple schema according the two arrays: names of fields,
types of fields, the default tuple name is t.
|
static Schema |
newTupleSchema(java.lang.String tupleName,
java.util.List<java.lang.String> fieldNames,
java.util.List<java.lang.Byte> dataTypes)
Create a new tuple schema according the tuple name and two list: names of
fields, types of fields
|
static Schema |
newTupleSchema(java.lang.String tupleName,
java.lang.String[] fieldNames,
java.lang.Byte[] dataTypes)
Create a new tuple schema according the tuple name and two arrays: names
of fields, types of fields
|
public static Schema newTupleSchema(java.lang.String tupleName, java.util.List<java.lang.String> fieldNames, java.util.List<java.lang.Byte> dataTypes) throws FrontendException
tupleName
- fieldNames
- dataTypes
- FrontendException
public static Schema newTupleSchema(java.lang.String tupleName, java.lang.String[] fieldNames, java.lang.Byte[] dataTypes) throws FrontendException
tupleName
- fieldNames
- dataTypes
- FrontendException
public static Schema newTupleSchema(java.util.List<java.lang.String> fieldNames, java.util.List<java.lang.Byte> dataTypes) throws FrontendException
fieldNames
- dataTypes
- FrontendException
public static Schema newTupleSchema(java.util.List<java.lang.Byte> dataTypes) throws FrontendException
dataTypes
- FrontendException
public static Schema newTupleSchema(java.lang.String[] names, java.lang.Byte[] dataTypes) throws FrontendException
names
- dataTypes
- FrontendException
public static Schema newTupleSchema(java.lang.Byte[] dataTypes) throws FrontendException
dataTypes
- FrontendException
public static Schema newBagSchema(java.lang.String bagName, java.lang.String tupleName, java.util.List<java.lang.String> fieldNames, java.util.List<java.lang.Byte> dataTypes) throws FrontendException
bagName
- tupleName
- fieldNames
- dataTypes
- FrontendException
public static Schema newBagSchema(java.lang.String bagName, java.lang.String tupleName, java.lang.String[] fieldNames, java.lang.Byte[] dataTypes) throws FrontendException
FrontendException
public static Schema newBagSchema(java.util.List<java.lang.String> names, java.util.List<java.lang.Byte> dataTypes) throws FrontendException
names
- dataTypes
- FrontendException
public static Schema newBagSchema(java.util.List<java.lang.Byte> dataTypes) throws FrontendException
dataTypes
- FrontendException
public static Schema newBagSchema(java.lang.String[] names, java.lang.Byte[] dataTypes) throws FrontendException
names
- dataTypes
- FrontendException
public static Schema newBagSchema(java.lang.Byte[] dataTypes) throws FrontendException
dataTypes
- FrontendException
Copyright © 2007-2017 The Apache Software Foundation