|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pig.builtin.mock.Storage.Data
public static class Storage.Data
An isolated data store to avoid side effects
Constructor Summary | |
---|---|
Storage.Data()
|
Method Summary | |
---|---|
List<Tuple> |
get(String location)
|
Schema |
getSchema(String location)
|
void |
set(String location,
Collection<Tuple> data)
to set the data in a location |
void |
set(String location,
Schema schema,
Collection<Tuple> data)
to set the data in a location with a known schema |
void |
set(String location,
Schema schema,
Tuple... data)
to set the data in a location with a known schema |
void |
set(String location,
String schema,
Collection<Tuple> data)
to set the data in a location with a known schema |
void |
set(String location,
String schema,
Tuple... data)
to set the data in a location with a known schema |
void |
set(String location,
Tuple... data)
to set the data in a location |
void |
setSchema(String location,
Schema schema)
to set the schema for a given location |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Storage.Data()
Method Detail |
---|
public void set(String location, String schema, Collection<Tuple> data) throws ParserException
location
- "where" to store the tuplesschema
- the schema of the datadata
- the tuples to store
ParserException
- if schema is invalidpublic void set(String location, String schema, Tuple... data) throws ParserException
location
- "where" to store the tuplesschema
- data
- the tuples to store
ParserException
- if schema is invalidpublic void set(String location, Schema schema, Collection<Tuple> data)
location
- "where" to store the tuplesschema
- data
- the tuples to storepublic void set(String location, Schema schema, Tuple... data)
location
- "where" to store the tuplesschema
- data
- the tuples to storepublic void set(String location, Collection<Tuple> data)
location
- "where" to store the tuplesdata
- the tuples to storepublic void set(String location, Tuple... data)
location
- "where" to store the tuplesdata
- the tuples to storepublic List<Tuple> get(String location)
location
-
public Schema getSchema(String location)
location
-
public void setSchema(String location, Schema schema)
location
- schema
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |