public static class Storage.Data extends Object implements Serializable
Constructor and Description |
---|
Data() |
Modifier and Type | Method and Description |
---|---|
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
|
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 storeParserException
- if schema is invalidpublic void set(String location, String schema, Tuple... data) throws ParserException
location
- "where" to store the tuplesschema
- data
- the tuples to storeParserException
- 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
- Copyright © 2007-2017 The Apache Software Foundation