public class StoreConfig extends Object
| Constructor and Description |
|---|
StoreConfig()
Default config that defaults the all the store config values.
|
StoreConfig(int maxQueryThreads)
Query only config that will default any writes to one thread and 10000 max memory.
|
StoreConfig(int maxQueryThreads,
long maxMemory,
long maxLatency,
int maxWriteThreads)
Allows the user to set the criteria and write options for the store.
|
StoreConfig(long maxMemory,
long maxLatency,
int maxWriteThreads)
Write only constructor that will default all batch scans to a single thread.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getMaxLatency()
time in milliseconds to hold a batch before writing.
|
long |
getMaxMemory()
The size in bytes of the maximum memory to batch before writing
|
int |
getMaxQueryThreads()
The number of concurrent threads to spawn for querying
|
int |
getMaxWriteThreads()
The maximum number of threads to use for writing data to the tablet servers
|
public StoreConfig()
public StoreConfig(int maxQueryThreads)
maxQueryThreads - the number of concurrent threads to spawn for queryingpublic StoreConfig(long maxMemory,
long maxLatency,
int maxWriteThreads)
maxMemory - size in bytes of the maximum memory to batch before writingmaxLatency - time in milliseconds; set to 0 or Long.MAX_VALUE to allow the maximum time to hold a batch before writingmaxWriteThreads - the maximum number of threads to use for writing data to the tablet serverspublic StoreConfig(int maxQueryThreads,
long maxMemory,
long maxLatency,
int maxWriteThreads)
maxQueryThreads - maxMemory - size in bytes of the maximum memory to batch before writingmaxLatency - time in milliseconds; set to 0 or Long.MAX_VALUE to allow the maximum time to hold a batch before writingmaxWriteThreads - the maximum number of threads to use for writing data to the tablet serverspublic int getMaxQueryThreads()
public long getMaxMemory()
public long getMaxLatency()
public int getMaxWriteThreads()
Copyright © 2014 Calrissian. All Rights Reserved.