public class DataStoreUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_GEOWAVE_DIRECTORY |
static byte[] |
EMTPY_VISIBILITY |
static CommonQueryOptions.HintKey<Integer> |
MAX_RANGE_DECOMPOSITION |
static CommonQueryOptions.HintKey<double[]> |
MAX_RESOLUTION_SUBSAMPLING_PER_DIMENSION |
static CommonQueryOptions.HintKey<double[]> |
TARGET_RESOLUTION_PER_DIMENSION_FOR_HIERARCHICAL_INDEX |
static VisibilityHandler |
UNCONSTRAINED_VISIBILITY |
static int |
UNIQUE_ADDED_BYTES |
static byte |
UNIQUE_ID_DELIMITER |
Constructor and Description |
---|
DataStoreUtils() |
Modifier and Type | Method and Description |
---|---|
static FlattenedUnreadData |
aggregateFieldData(GeoWaveKey key,
GeoWaveValue value,
PersistentDataset<Object> commonData,
CommonIndexModel model,
List<String> commonIndexFieldIds) |
static <T> long |
cardinality(DataStatisticsStore statisticsStore,
RowRangeHistogramStatistic rowRangeHistogramStatistic,
DataTypeAdapter<?> adapter,
Index index,
QueryRanges queryRanges) |
static QueryRanges |
constraintsToQueryRanges(List<MultiDimensionalNumericData> constraints,
Index index,
double[] targetResolutionPerDimensionForHierarchicalIndex,
int maxRanges,
IndexMetaData... hints) |
static <T> FlattenedDataSet |
decomposeFlattenedFields(byte[] bitmask,
byte[] flattenedValue,
byte[] commonVisibility,
int maxFieldPosition)
Takes a byte array representing a serialized composite group of FieldInfos sharing a common
visibility and returns a List of the individual FieldInfos
|
static ByteArray |
ensureUniqueId(byte[] id,
boolean hasMetadata) |
static DataTypeAdapter |
getDataAdapter(DataStorePluginOptions dataStore,
String typeName) |
static <T> InsertionIds |
getInsertionIdsForEntry(T entry,
InternalDataAdapter adapter,
AdapterToIndexMapping indexMapping,
Index index) |
static String |
getQualifiedTableName(String tableNamespace,
String unqualifiedTableName) |
static List<String> |
getUniqueDimensionFields(CommonIndexModel model) |
static boolean |
isMergingIteratorRequired(RangeReaderParams<?> readerParams,
boolean visibilityEnabled) |
static InsertionIds |
keysToInsertionIds(GeoWaveKey... geoWaveKeys) |
static List<Index> |
loadIndices(DataStore dataStore,
String indexNames) |
static List<Index> |
loadIndices(IndexStore indexStore,
String indexNames) |
static boolean |
mergeData(DataStoreOperations operations,
Integer maxRangeDecomposition,
Index index,
PersistentAdapterStore adapterStore,
InternalAdapterStore internalAdapterStore,
AdapterIndexMappingStore adapterIndexMappingStore) |
static GeoWaveRow |
mergeSingleRowValues(GeoWaveRow singleRow,
RowMergingDataAdapter.RowTransform rowTransform) |
static byte[] |
mergeVisibilities(byte[] vis1,
byte[] vis2) |
static byte[] |
removeUniqueId(byte[] dataId) |
static boolean |
rowIdsMatch(GeoWaveKey rowId1,
GeoWaveKey rowId2) |
static void |
safeMetadataDelete(MetadataDeleter deleter,
DataStoreOperations operations,
MetadataType metadataType,
MetadataQuery query) |
static boolean |
startsWithIfPrefix(byte[] source,
byte[] match,
boolean prefix) |
public static String DEFAULT_GEOWAVE_DIRECTORY
public static CommonQueryOptions.HintKey<double[]> MAX_RESOLUTION_SUBSAMPLING_PER_DIMENSION
public static CommonQueryOptions.HintKey<Integer> MAX_RANGE_DECOMPOSITION
public static CommonQueryOptions.HintKey<double[]> TARGET_RESOLUTION_PER_DIMENSION_FOR_HIERARCHICAL_INDEX
public static final int UNIQUE_ADDED_BYTES
public static final byte UNIQUE_ID_DELIMITER
public static final VisibilityHandler UNCONSTRAINED_VISIBILITY
public static final byte[] EMTPY_VISIBILITY
public static DataTypeAdapter getDataAdapter(DataStorePluginOptions dataStore, String typeName)
public static FlattenedUnreadData aggregateFieldData(GeoWaveKey key, GeoWaveValue value, PersistentDataset<Object> commonData, CommonIndexModel model, List<String> commonIndexFieldIds)
public static boolean startsWithIfPrefix(byte[] source, byte[] match, boolean prefix)
public static List<String> getUniqueDimensionFields(CommonIndexModel model)
public static <T> long cardinality(DataStatisticsStore statisticsStore, RowRangeHistogramStatistic rowRangeHistogramStatistic, DataTypeAdapter<?> adapter, Index index, QueryRanges queryRanges)
public static <T> InsertionIds getInsertionIdsForEntry(T entry, InternalDataAdapter adapter, AdapterToIndexMapping indexMapping, Index index)
public static InsertionIds keysToInsertionIds(GeoWaveKey... geoWaveKeys)
public static boolean rowIdsMatch(GeoWaveKey rowId1, GeoWaveKey rowId2)
public static byte[] removeUniqueId(byte[] dataId)
public static <T> FlattenedDataSet decomposeFlattenedFields(byte[] bitmask, byte[] flattenedValue, byte[] commonVisibility, int maxFieldPosition)
bitmask
- the composite bitmask representing the fields contained within the
flattenedValueflattenedValue
- the serialized composite FieldInfocommonVisibility
- the shared visibilitymaxFieldPosition
- can short-circuit read and defer decomposition of fields after a given
positionpublic static QueryRanges constraintsToQueryRanges(List<MultiDimensionalNumericData> constraints, Index index, double[] targetResolutionPerDimensionForHierarchicalIndex, int maxRanges, IndexMetaData... hints)
public static String getQualifiedTableName(String tableNamespace, String unqualifiedTableName)
public static ByteArray ensureUniqueId(byte[] id, boolean hasMetadata)
public static byte[] mergeVisibilities(byte[] vis1, byte[] vis2)
public static GeoWaveRow mergeSingleRowValues(GeoWaveRow singleRow, RowMergingDataAdapter.RowTransform rowTransform)
public static boolean mergeData(DataStoreOperations operations, Integer maxRangeDecomposition, Index index, PersistentAdapterStore adapterStore, InternalAdapterStore internalAdapterStore, AdapterIndexMappingStore adapterIndexMappingStore)
public static boolean isMergingIteratorRequired(RangeReaderParams<?> readerParams, boolean visibilityEnabled)
public static List<Index> loadIndices(IndexStore indexStore, String indexNames)
public static void safeMetadataDelete(MetadataDeleter deleter, DataStoreOperations operations, MetadataType metadataType, MetadataQuery query)
Copyright © 2013–2022. All rights reserved.