当前位置: 首页>>代码示例>>Java>>正文


Java ByteArrayId.getString方法代码示例

本文整理汇总了Java中mil.nga.giat.geowave.core.index.ByteArrayId.getString方法的典型用法代码示例。如果您正苦于以下问题:Java ByteArrayId.getString方法的具体用法?Java ByteArrayId.getString怎么用?Java ByteArrayId.getString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在mil.nga.giat.geowave.core.index.ByteArrayId的用法示例。


在下文中一共展示了ByteArrayId.getString方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getWriter

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
@Override
protected Writer<RowMutations> getWriter(
		final ByteArrayId secondaryIndexId ) {
	final String secondaryIndexName = secondaryIndexId.getString();
	if (writerCache.containsKey(secondaryIndexName)) {
		return writerCache.get(secondaryIndexName);
	}
	HBaseWriter writer = null;
	try {
		writer = hbaseOperations.createWriter(
				secondaryIndexName,
				new String[] {},
				false);
	}
	catch (final IOException e) {
		LOGGER.error(
				"Unable to create HBase Writer.",
				e);
		return null;
	}
	writerCache.put(
			secondaryIndexName,
			writer);

	return writer;
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:27,代码来源:HBaseSecondaryIndexDataStore.java

示例2: getWriter

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
@Override
protected Writer<Mutation> getWriter(
		final ByteArrayId secondaryIndexId ) {
	final String secondaryIndexName = secondaryIndexId.getString();
	if (writerCache.containsKey(secondaryIndexName)) {
		return writerCache.get(secondaryIndexName);
	}
	Writer<Mutation> writer = null;
	try {
		writer = accumuloOperations.createWriter(
				secondaryIndexName,
				true,
				false,
				accumuloOptions.isEnableBlockCache(),
				null);
		writerCache.put(
				secondaryIndexName,
				writer);
	}
	catch (final TableNotFoundException e) {
		LOGGER.error(
				"Error creating writer",
				e);
	}
	return writer;
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:28,代码来源:AccumuloSecondaryIndexDataStore.java

示例3: accept

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
@Override
public boolean accept(
		final CommonIndexModel indexModel,
		final IndexedPersistenceEncoding<?> persistenceEncoding ) {
	final ByteArrayId stringBytes = (ByteArrayId) persistenceEncoding.getCommonData().getValue(
			fieldId);
	if (stringBytes != null) {
		String value = stringBytes.getString();
		return caseSensitive ? matchValue.equals(value) : matchValue.equalsIgnoreCase(value);
	}
	return false;
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:13,代码来源:TextExactMatchFilter.java

示例4: getCombinedId

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
protected ByteArrayId getCombinedId(
		final ByteArrayId primaryId,
		final ByteArrayId secondaryId ) {
	// the secondaryId is optional so check for null
	if (secondaryId != null) {
		return new ByteArrayId(
				primaryId.getString() + "_" + secondaryId.getString());
	}
	return primaryId;
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:11,代码来源:AbstractGeowavePersistence.java

示例5: getColumnQualifier

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
protected String getColumnQualifier(
		final ByteArrayId secondaryId ) {
	if (secondaryId != null) {
		return secondaryId.getString();
	}
	return null;
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:8,代码来源:AbstractGeowavePersistence.java

示例6: addIndex

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
/**
 * Add an index-based secondary index key
 * 
 * @param secondaryIndexKey
 * @param fieldId
 * @param secondaryIndexType
 * @param fieldsForPartial
 */

private void addIndex(
		final String secondaryIndexKey,
		final ByteArrayId fieldId,
		final SecondaryIndexType secondaryIndexType,
		final List<ByteArrayId> fieldsForPartial ) {

	final List<DataStatistics<SimpleFeature>> statistics = new ArrayList<>();
	DataStatistics<SimpleFeature> stat = null;
	switch (secondaryIndexKey) {

		case NumericSecondaryIndexConfiguration.INDEX_KEY:
			stat = new FeatureNumericHistogramStatistics(
					dataAdapter.getAdapterId(),
					fieldId.getString());
			statistics.add(stat);
			supportedSecondaryIndices.add(new SecondaryIndex<SimpleFeature>(
					new NumericIndexStrategy(),
					fieldId,
					statistics,
					secondaryIndexType,
					fieldsForPartial));
			break;

		case TextSecondaryIndexConfiguration.INDEX_KEY:
			stat = new FeatureHyperLogLogStatistics(
					dataAdapter.getAdapterId(),
					fieldId.getString(),
					16);
			statistics.add(stat);
			supportedSecondaryIndices.add(new SecondaryIndex<SimpleFeature>(
					new TextIndexStrategy(),
					fieldId,
					statistics,
					secondaryIndexType,
					fieldsForPartial));
			break;

		case TemporalSecondaryIndexConfiguration.INDEX_KEY:
			stat = new FeatureNumericHistogramStatistics(
					dataAdapter.getAdapterId(),
					fieldId.getString());
			statistics.add(stat);
			supportedSecondaryIndices.add(new SecondaryIndex<SimpleFeature>(
					new TemporalIndexStrategy(),
					fieldId,
					statistics,
					secondaryIndexType,
					fieldsForPartial));
			break;

		default:
			break;

	}
	for (final DataStatistics<SimpleFeature> statistic : statistics) {
		statsManager.addStats(
				statistic,
				new FieldIdStatisticVisibility<SimpleFeature>(
						statistic.getStatisticsId()));
	}
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:71,代码来源:SecondaryIndexManager.java

示例7: decomposeNameFromId

import mil.nga.giat.geowave.core.index.ByteArrayId; //导入方法依赖的package包/类
protected static String decomposeNameFromId(
		final ByteArrayId id ) {
	final String idString = id.getString();
	final int pos = idString.lastIndexOf('#');
	return idString.substring(pos + 1);
}
 
开发者ID:locationtech,项目名称:geowave,代码行数:7,代码来源:AbstractDataStatistics.java


注:本文中的mil.nga.giat.geowave.core.index.ByteArrayId.getString方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。