com.splout.db.hadoop
Class JSONTablespaceDefinition

java.lang.Object
  extended by 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.


Nested Class Summary
static class JSONTablespaceDefinition.JSONTableDefinition
           
static class JSONTablespaceDefinition.JSONTableInputDefinition
           
static class JSONTablespaceDefinition.TextInputSpecs
           
 
Constructor Summary
JSONTablespaceDefinition()
           
 
Method Summary
 TablespaceSpec build(org.apache.hadoop.conf.Configuration hadoopConf)
          Use this method for obtaining a TablespaceSpec through TablespaceBuilder.
 java.lang.String getName()
           
 int getnPartitions()
           
 java.util.List<JSONTablespaceDefinition.JSONTableDefinition> getPartitionedTables()
           
 java.util.List<JSONTablespaceDefinition.JSONTableDefinition> getReplicateAllTables()
           
 void setName(java.lang.String name)
           
 void setnPartitions(int nPartitions)
           
 void setPartitionedTables(java.util.List<JSONTablespaceDefinition.JSONTableDefinition> partitionedTables)
           
 void setReplicateAllTables(java.util.List<JSONTablespaceDefinition.JSONTableDefinition> replicateAllTables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONTablespaceDefinition

public JSONTablespaceDefinition()
Method Detail

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.