com.splout.db.hadoop
Class JSONTablespaceDefinition
java.lang.Object
com.splout.db.hadoop.JSONTablespaceDefinition
public class JSONTablespaceDefinition
- extends java.lang.Object
A JSON-friendly bean that can map to a TablespaceSpec
easily. It only supports text input. Use
#build()
for obtaining a TablespaceSpec instance.
For specifying compound indexes use "," separator in the string index definition.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JSONTablespaceDefinition
public JSONTablespaceDefinition()
build
public TablespaceSpec build(org.apache.hadoop.conf.Configuration hadoopConf)
throws TablespaceBuilder.TablespaceBuilderException,
TableBuilder.TableBuilderException,
java.io.IOException
- Use this method for obtaining a
TablespaceSpec
through TablespaceBuilder
.
- Throws:
java.io.IOException
TablespaceBuilder.TablespaceBuilderException
TableBuilder.TableBuilderException
getnPartitions
public int getnPartitions()
setnPartitions
public void setnPartitions(int nPartitions)
getPartitionedTables
public java.util.List<JSONTablespaceDefinition.JSONTableDefinition> getPartitionedTables()
setPartitionedTables
public void setPartitionedTables(java.util.List<JSONTablespaceDefinition.JSONTableDefinition> partitionedTables)
getReplicateAllTables
public java.util.List<JSONTablespaceDefinition.JSONTableDefinition> getReplicateAllTables()
setReplicateAllTables
public void setReplicateAllTables(java.util.List<JSONTablespaceDefinition.JSONTableDefinition> replicateAllTables)
getName
public java.lang.String getName()
setName
public void setName(java.lang.String name)
Copyright © 2012-2013 Datasalt Systems S.L.. All Rights Reserved.