Package mil.nga.giat.geowave.index

Examples of mil.nga.giat.geowave.index.Mergeable


{
  @Override
  public Value reduce(
      final Key key,
      final Iterator<Value> iter ) {
    Mergeable currentMergeable = null;
    while (iter.hasNext()) {
      final Value val = iter.next();
      Mergeable mergeable = PersistenceUtils.fromBinary(
          val.get(),
          Mergeable.class);
      // hopefully its never the case that null stastics are stored,
      // but just in case, check
      mergeable = transform(
View Full Code Here


  @Override
  protected void transformRange(
      final SortedKeyValueIterator<Key, Value> input,
      final KVBuffer output )
      throws IOException {
    Mergeable currentMergeable = null;
    Key outputKey = null;
    while (input.hasTop()) {
      final Value val = input.getTopValue();
      // the SortedKeyValueIterator uses the same instance of topKey to hold keys (a wrapper)
      final Key currentKey = new Key(input.getTopKey());
      if (outputKey == null) {
        outputKey = currentKey;
      } else if (currentMergeable != null &&
             !outputKey.getRowData().equals(currentKey.getRowData())) {
        output.append(
            outputKey,
            new Value(
                PersistenceUtils.toBinary(currentMergeable)));
        currentMergeable = null;
        outputKey = currentKey;
        continue;
      }
      else {
        final Text combinedVisibility = new Text(
            combineVisibilities(
                currentKey.getColumnVisibility().getBytes(),
                outputKey.getColumnVisibility().getBytes()));
        outputKey = replaceColumnVisibility(
            outputKey,
            combinedVisibility);
      }
      Mergeable mergeable = PersistenceUtils.fromBinary(
          val.get(),
          Mergeable.class);
      // hopefully its never the case that null mergeables are stored,
      // but just in case, check
      mergeable = transform(
View Full Code Here

TOP

Related Classes of mil.nga.giat.geowave.index.Mergeable

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.