public class KuduOperations extends Object implements MapReduceDataStoreOperations
Modifier and Type | Field and Description |
---|---|
protected KuduRequiredOptions |
options |
Constructor and Description |
---|
KuduOperations(KuduRequiredOptions options) |
Modifier and Type | Method and Description |
---|---|
RowWriter |
createDataIndexWriter(InternalDataAdapter<?> adapter) |
<T> Deleter<T> |
createDeleter(ReaderParams<T> readerParams) |
MetadataDeleter |
createMetadataDeleter(MetadataType metadataType) |
MetadataReader |
createMetadataReader(MetadataType metadataType) |
MetadataWriter |
createMetadataWriter(MetadataType metadataType) |
RowReader<GeoWaveRow> |
createReader(DataIndexReaderParams readerParams) |
<T> RowReader<T> |
createReader(ReaderParams<T> readerParams) |
RowReader<GeoWaveRow> |
createReader(RecordReaderParams readerParams) |
RowDeleter |
createRowDeleter(String indexName,
PersistentAdapterStore adapterStore,
InternalAdapterStore internalAdapterStore,
String... authorizations) |
RowWriter |
createWriter(Index index,
InternalDataAdapter<?> adapter) |
void |
delete(DataIndexReaderParams readerParams) |
void |
deleteAll() |
boolean |
deleteAll(String indexName,
String typeName,
Short adapterId,
String... additionalAuthorizations) |
org.apache.kudu.client.AsyncKuduScanner.AsyncKuduScannerBuilder |
getAsyncScannerBuilder(org.apache.kudu.client.KuduTable table) |
List<org.apache.kudu.client.Delete> |
getDeletions(org.apache.kudu.client.KuduTable table,
List<org.apache.kudu.client.KuduPredicate> predicates,
java.util.function.Function<org.apache.kudu.client.RowResult,PersistentKuduRow> adapter) |
<T> KuduDataIndexRead<T> |
getKuduDataIndexRead(String indexName,
short adapterId,
byte[][] dataIds,
java.util.function.Predicate<GeoWaveRow> rowFilter,
boolean visibilityEnabled) |
String |
getKuduQualifiedName(String name) |
<T> KuduRangeRead<T> |
getKuduRangeRead(String indexName,
short[] adapterIds,
Collection<SinglePartitionQueryRanges> ranges,
boolean rowMerging,
GeoWaveRowIteratorTransformer<T> rowTransformer,
java.util.function.Predicate<GeoWaveRow> rowFilter,
boolean visibilityEnabled) |
String |
getMetadataTableName(MetadataType metadataType) |
org.apache.kudu.client.KuduScanner.KuduScannerBuilder |
getScannerBuilder(org.apache.kudu.client.KuduTable table) |
org.apache.kudu.client.KuduSession |
getSession() |
org.apache.kudu.client.KuduTable |
getTable(String tableName) |
boolean |
indexExists(String indexName) |
boolean |
metadataExists(MetadataType type) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clearAuthorizations, ensureAuthorizations, mergeData, mergeStats
protected final KuduRequiredOptions options
public KuduOperations(KuduRequiredOptions options)
public boolean indexExists(String indexName) throws IOException
indexExists
in interface DataStoreOperations
IOException
public boolean metadataExists(MetadataType type) throws IOException
metadataExists
in interface DataStoreOperations
IOException
public void deleteAll() throws Exception
deleteAll
in interface DataStoreOperations
Exception
public boolean deleteAll(String indexName, String typeName, Short adapterId, String... additionalAuthorizations)
deleteAll
in interface DataStoreOperations
public RowWriter createWriter(Index index, InternalDataAdapter<?> adapter)
createWriter
in interface DataStoreOperations
public RowWriter createDataIndexWriter(InternalDataAdapter<?> adapter)
createDataIndexWriter
in interface DataStoreOperations
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 readerParams)
createReader
in interface MapReduceDataStoreOperations
public RowDeleter createRowDeleter(String indexName, PersistentAdapterStore adapterStore, InternalAdapterStore internalAdapterStore, String... authorizations)
createRowDeleter
in interface DataStoreOperations
public RowReader<GeoWaveRow> createReader(DataIndexReaderParams readerParams)
createReader
in interface DataStoreOperations
public void delete(DataIndexReaderParams readerParams)
delete
in interface DataStoreOperations
public <T> KuduRangeRead<T> getKuduRangeRead(String indexName, short[] adapterIds, Collection<SinglePartitionQueryRanges> ranges, boolean rowMerging, GeoWaveRowIteratorTransformer<T> rowTransformer, java.util.function.Predicate<GeoWaveRow> rowFilter, boolean visibilityEnabled) throws org.apache.kudu.client.KuduException
org.apache.kudu.client.KuduException
public <T> Deleter<T> createDeleter(ReaderParams<T> readerParams)
createDeleter
in interface DataStoreOperations
public <T> KuduDataIndexRead<T> getKuduDataIndexRead(String indexName, short adapterId, byte[][] dataIds, java.util.function.Predicate<GeoWaveRow> rowFilter, boolean visibilityEnabled) throws org.apache.kudu.client.KuduException
org.apache.kudu.client.KuduException
public org.apache.kudu.client.KuduScanner.KuduScannerBuilder getScannerBuilder(org.apache.kudu.client.KuduTable table)
public org.apache.kudu.client.AsyncKuduScanner.AsyncKuduScannerBuilder getAsyncScannerBuilder(org.apache.kudu.client.KuduTable table)
public org.apache.kudu.client.KuduTable getTable(String tableName) throws org.apache.kudu.client.KuduException
org.apache.kudu.client.KuduException
public org.apache.kudu.client.KuduSession getSession()
public String getMetadataTableName(MetadataType metadataType)
public List<org.apache.kudu.client.Delete> getDeletions(org.apache.kudu.client.KuduTable table, List<org.apache.kudu.client.KuduPredicate> predicates, java.util.function.Function<org.apache.kudu.client.RowResult,PersistentKuduRow> adapter) throws org.apache.kudu.client.KuduException
org.apache.kudu.client.KuduException
Copyright © 2013–2022. All rights reserved.