Codota Logo
ColumnValueAndTimestamp.getTimestamp
Code IndexAdd Codota to your IDE (free)

How to use
getTimestamp
method
in
com.jivesoftware.os.jive.utils.row.column.value.store.api.ColumnValueAndTimestamp

Best Java code snippets using com.jivesoftware.os.jive.utils.row.column.value.store.api.ColumnValueAndTimestamp.getTimestamp (Showing top 7 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Dictionary d =
  • Codota Iconnew Hashtable()
  • Codota IconBundle bundle;bundle.getHeaders()
  • Codota Iconnew Properties()
  • Smart code suggestions by Codota
}
origin: com.jivesoftware.os.tasmo/tasmo-view-reader-service

  @Override
  public ColumnValueAndTimestamp<ImmutableByteArray, ViewValue, Long> callback(ColumnValueAndTimestamp<ImmutableByteArray, ViewValue, Long> v)
  throws
  Exception {
    if (v != null && v.getTimestamp() < timestamp) {
      removes.add(new RowColumnTimestampRemove<>(rowKey, v.getColumn(), constantTimestamper));
    }
    return v;
  }
});
origin: com.jivesoftware.os.tasmo/tasmo-reference-lib

@Override
public ColumnValueAndTimestamp<ObjectId, byte[], Long> callback(ColumnValueAndTimestamp<ObjectId, byte[], Long> v) throws Exception {
  if (v == null) {
    if (!batch.isEmpty()) {
      refStreamQueue.put(batch);
    }
    refStreamQueue.put(NULL);
  } else {
    ReferenceWithTimestamp referenceWithTimestamp = new ReferenceWithTimestamp(v.getColumn(), referringFieldName, v.getTimestamp());
    batch.add(referenceWithTimestamp);
    if (batch.size() > MAX_FAN_OUT_BEFORE_WARN) {
      LOG.warn("TODO: streamBackRefs reference fan-out is exceeding comfort level. We need to break scans into batched scans.");
    }
  }
  return v;
}
origin: com.jivesoftware.os.tasmo/tasmo-view-reader-service

  @Override
  public void stream(ViewDescriptor viewDescriptor, ColumnValueAndTimestamp<ImmutableByteArray, ViewValue, Long> value) {
    if (value != null && value.getTimestamp() < System.currentTimeMillis() - removeUndeclaredFieldsAfterNMillis) {
      try {
        ImmutableByteArray rowKey = viewValueStore.rowKey(viewDescriptor.getViewId());
        viewValueStore.remove(viewDescriptor.getTenantIdAndCentricId(), rowKey, value.getColumn(), value.getTimestamp() + 1);
      } catch (IOException x) {
        LOG.warn("Failed trying to cleanup stale fields for:{} ", viewDescriptor);
      }
    }
  }
};
origin: com.jivesoftware.os.tasmo/tasmo-reference-lib

  @Override
  public ColumnValueAndTimestamp<ObjectId, byte[], Long> callback(ColumnValueAndTimestamp<ObjectId, byte[], Long> backRef)
  throws Exception {
    if (backRef != null) {
      ReferenceWithTimestamp reference = new ReferenceWithTimestamp(backRef.getColumn(),
          fieldName, backRef.getTimestamp());
      if (LOG.isTraceEnabled()) {
        LOG.trace(System.currentTimeMillis() + " |--> {} Got aIds Tenant={} b={} a={} Timestamp={}", new Object[]{
          threadTimestamp, tenantIdAndCentricId, aClassAndField_bId, backRef.getColumn(), backRef.getTimestamp()});
      }
      refs.add(reference);
      if (refs.size() > MAX_FAN_OUT_BEFORE_WARN) {
        LOG.warn("TODO: streamBackRefs reference fan-out is exceeding comfort level. We need break scans into batched scans.");
      }
    }
    return backRef;
  }
}));
origin: com.jivesoftware.os.tasmo/tasmo-lib

@Override
public List<ReferenceWithTimestamp> populateLeafNodeFields(TenantIdAndCentricId tenantIdAndCentricId,
  WrittenEventContext writtenEventContext,
  PathContext pathContext,
  ObjectId objectInstanceId,
  Set<String> fieldNames,
  Map<String, ColumnValueAndTimestamp<String, OpaqueFieldValue, Long>> fieldValues) {
  LeafNodeFields fieldsToPopulate = writtenEventContext.getWrittenEventProvider().createLeafNodeFields();
  List<ReferenceWithTimestamp> versions = new ArrayList<>();
  String[] fieldNamesArray = fieldNames.toArray(new String[fieldNames.size()]);
  for (String fieldName : fieldNamesArray) {
    ColumnValueAndTimestamp<String, OpaqueFieldValue, Long> g = fieldValues.get(fieldName);
    if (g != null) {
      OpaqueFieldValue fieldValue = g.getValue();
      long timestamp = g.getTimestamp();
      pathContext.setLastTimestamp(timestamp); // ??
      fieldsToPopulate.addField(fieldName, fieldValue);
      versions.add(new ReferenceWithTimestamp(objectInstanceId, fieldName, timestamp));
    }
  }
  this.leafNodeFields = fieldsToPopulate;
  return versions;
}
origin: com.jivesoftware.os.tasmo/tasmo-lib

if (g != null) {
  OpaqueFieldValue fieldValue = g.getValue();
  long timestamp = g.getTimestamp();
  latestTimestamp = Math.max(latestTimestamp, timestamp);
  if (fieldValue == null || fieldValue.isNull()) {
origin: com.jivesoftware.os.tasmo/tasmo-view-reader-service

Id[] modelPathIds = modelPathIds(bb, modelPath.getPathMemberSize());
if (viewFieldsCollector.add(viewDescriptor,
  modelPath, modelPathIds, viewPathClasses, fieldValue.getValue(), fieldValue.getTimestamp())) {
  permissionCheckTheseIds.addAll(Arrays.asList(modelPathIds));
com.jivesoftware.os.jive.utils.row.column.value.store.apiColumnValueAndTimestampgetTimestamp

Popular methods of ColumnValueAndTimestamp

  • getColumn
  • getValue

Popular in Java

  • Start an intent from android
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • addToBackStack (FragmentTransaction)
  • compareTo (BigDecimal)
    Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
  • SocketTimeoutException (java.net)
    This exception is thrown when a timeout expired on a socket read or accept operation.
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • ResourceBundle (java.util)
    Resource bundles contain locale-specific objects. When your program needs a locale-specific resource
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now