public class DynamoDBOperations extends Object implements MapReduceDataStoreOperations
Modifier and Type | Field and Description |
---|---|
static int |
MAX_ROWS_FOR_BATCHGETITEM |
static int |
MAX_ROWS_FOR_BATCHWRITER |
static String |
METADATA_PRIMARY_ID_KEY |
static String |
METADATA_SECONDARY_ID_KEY |
static String |
METADATA_TIMESTAMP_KEY |
static String |
METADATA_VALUE_KEY |
static String |
METADATA_VISIBILITY_KEY |
static Map<String,Boolean> |
tableExistsCache |
Constructor and Description |
---|
DynamoDBOperations(DynamoDBOptions options) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDeleter, mergeData, mergeStats
public static final int MAX_ROWS_FOR_BATCHGETITEM
public static final int MAX_ROWS_FOR_BATCHWRITER
public static final String METADATA_PRIMARY_ID_KEY
public static final String METADATA_SECONDARY_ID_KEY
public static final String METADATA_TIMESTAMP_KEY
public static final String METADATA_VISIBILITY_KEY
public static final String METADATA_VALUE_KEY
public DynamoDBOperations(DynamoDBOptions options)
public static DynamoDBOperations createOperations(DynamoDBOptions options) throws IOException
IOException
public DynamoDBOptions getOptions()
public com.amazonaws.services.dynamodbv2.AmazonDynamoDBAsync getClient()
public String getMetadataTableName(MetadataType metadataType)
public void deleteAll() throws Exception
deleteAll
in interface DataStoreOperations
Exception
public boolean indexExists(String indexName) throws IOException
indexExists
in interface DataStoreOperations
IOException
public boolean deleteAll(String indexName, String typeName, Short adapterId, String... additionalAuthorizations)
deleteAll
in interface DataStoreOperations
public boolean ensureAuthorizations(String clientUser, String... authorizations)
ensureAuthorizations
in interface DataStoreOperations
public RowWriter createWriter(Index index, InternalDataAdapter<?> adapter)
createWriter
in interface DataStoreOperations
public RowWriter createDataIndexWriter(InternalDataAdapter<?> adapter)
createDataIndexWriter
in interface DataStoreOperations
public void delete(DataIndexReaderParams readerParams)
delete
in interface DataStoreOperations
public void deleteRowsFromDataIndex(byte[][] dataIds, short adapterId, String typeName)
public RowReader<GeoWaveRow> createReader(DataIndexReaderParams readerParams)
createReader
in interface DataStoreOperations
public Iterator<GeoWaveRow> getRowsFromDataIndex(short adapterId, String typeName)
public Iterator<GeoWaveRow> getRowsFromDataIndex(byte[][] dataIds, short adapterId, String typeName)
public MetadataWriter createMetadataWriter(MetadataType metadataType)
createMetadataWriter
in interface DataStoreOperations
public MetadataReader createMetadataReader(MetadataType metadataType)
createMetadataReader
in interface DataStoreOperations
public MetadataDeleter createMetadataDeleter(MetadataType metadataType)
createMetadataDeleter
in interface DataStoreOperations
public <T> RowReader<T> createReader(ReaderParams<T> readerParams)
createReader
in interface DataStoreOperations
public RowReader<GeoWaveRow> createReader(RecordReaderParams recordReaderParams)
createReader
in interface MapReduceDataStoreOperations
public RowDeleter createRowDeleter(String indexName, PersistentAdapterStore adapterStore, InternalAdapterStore internalAdapterStore, String... authorizations)
createRowDeleter
in interface DataStoreOperations
public boolean metadataExists(MetadataType type) throws IOException
metadataExists
in interface DataStoreOperations
IOException
public boolean createIndex(Index index) throws IOException
IOException
Copyright © 2013–2020. All rights reserved.