/** {@inheritDoc} */ @Override public String getColumnAnnotation( final FijiColumnName column, final String exactKey ) throws IOException { requireState(State.OPEN, "get annotation"); return getKV(getMetaTableKey(mTable, column, exactKey)); }
/** {@inheritDoc} */ @Override public String getTableAnnotation( final String exactKey ) throws IOException { requireState(State.OPEN, "get annotation"); return getKV(getMetaTableKey(exactKey)); }
/** {@inheritDoc} */ @Override public Map<String, String> getAllTableAnnotations() throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCATableMetaTableKey(metaTableKey)) { collectedAnnotations.put(keyFromMetaTableKey(metaTableKey), getKV(metaTableKey)); } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, Map<String, String>> getColumnAnnotationsInFamilyContaining( final String family, final String substring ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (null != column && Objects.equal(family, column.getFamily())) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.contains(substring)) { final Map<String, String> existingAnnotations = collectedAnnotations.get(column); if (null != existingAnnotations) { existingAnnotations.put(annotationKey, getKV(metaTableKey)); } else { final Map<String, String> newAnnotations = Maps.newHashMap(); newAnnotations.put(annotationKey, getKV(metaTableKey)); collectedAnnotations.put(column, newAnnotations); } } } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, Map<String, String>> getAllColumnAnnotations() throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (null != column) { final String annotationKey = keyFromMetaTableKey(metaTableKey); final Map<String, String> existingAnnotations = collectedAnnotations.get(column); if (null != existingAnnotations) { existingAnnotations.put(annotationKey, getKV(metaTableKey)); } else { final Map<String, String> newAnnotations = Maps.newHashMap(); newAnnotations.put(annotationKey, getKV(metaTableKey)); collectedAnnotations.put(column, newAnnotations); } } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, Map<String, String>> getColumnAnnotationsInFamilyMatching( final String family, final String pattern ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (null != column && Objects.equal(family, column.getFamily())) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.matches(pattern)) { final Map<String, String> existingAnnotations = collectedAnnotations.get(column); if (null != existingAnnotations) { existingAnnotations.put(annotationKey, getKV(metaTableKey)); } else { final Map<String, String> newAnnotations = Maps.newHashMap(); newAnnotations.put(annotationKey, getKV(metaTableKey)); collectedAnnotations.put(column, newAnnotations); } } } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, Map<String, String>> getAllColumnAnnotationsInFamily( final String family ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (null != column && Objects.equal(family, column.getFamily())) { final String annotationKey = keyFromMetaTableKey(metaTableKey); final Map<String, String> existingAnnotations = collectedAnnotations.get(column); if (null != existingAnnotations) { existingAnnotations.put(annotationKey, getKV(metaTableKey)); } else { final Map<String, String> newAnnotations = Maps.newHashMap(); newAnnotations.put(annotationKey, getKV(metaTableKey)); collectedAnnotations.put(column, newAnnotations); } } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, Map<String, String>> getColumnAnnotationsInFamilyStartingWith( final String family, final String prefix ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, Map<String, String>> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (Objects.equal(family, column.getFamily())) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.startsWith(prefix)) { final Map<String, String> existingAnnotations = collectedAnnotations.get(column); if (null != existingAnnotations) { existingAnnotations.put(annotationKey, getKV(metaTableKey)); } else { final Map<String, String> newAnnotations = Maps.newHashMap(); newAnnotations.put(annotationKey, getKV(metaTableKey)); collectedAnnotations.put(column, newAnnotations); } } } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getAllColumnAnnotations( final FijiColumnName column ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey) && Objects.equal(column, columnFromMetaTableKey(metaTableKey))) { collectedAnnotations.put(keyFromMetaTableKey(metaTableKey), getKV(metaTableKey)); } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getColumnAnnotationsContaining( final FijiColumnName column, final String substring ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey) && Objects.equal(column, columnFromMetaTableKey(metaTableKey))) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.contains(substring)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getColumnAnnotationsMatching( final FijiColumnName column, final String pattern ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey) && Objects.equal(column, columnFromMetaTableKey(metaTableKey))) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.matches(pattern)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getTableAnnotationsMatching( final String pattern ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCATableMetaTableKey(metaTableKey)) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (keyFromMetaTableKey(metaTableKey).matches(pattern)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getColumnAnnotationsStartingWith( final FijiColumnName column, final String prefix ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey) && Objects.equal(column, columnFromMetaTableKey(metaTableKey))) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (annotationKey.startsWith(prefix)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getTableAnnotationsStartingWith( final String prefix ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCATableMetaTableKey(metaTableKey)) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (keyFromMetaTableKey(metaTableKey).startsWith(prefix)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<String, String> getTableAnnotationsContaining( final String substring ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<String, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCATableMetaTableKey(metaTableKey)) { final String annotationKey = keyFromMetaTableKey(metaTableKey); if (keyFromMetaTableKey(metaTableKey).contains(substring)) { collectedAnnotations.put(annotationKey, getKV(metaTableKey)); } } } return collectedAnnotations; }
/** {@inheritDoc} */ @Override public Map<FijiColumnName, String> getColumnAnnotationsInFamily( final String family, final String exactKey ) throws IOException { requireState(State.OPEN, "get annotation"); final Map<FijiColumnName, String> collectedAnnotations = Maps.newHashMap(); for (String metaTableKey : keySet()) { if (isKCAColumnMetaTableKey(metaTableKey)) { final FijiColumnName column = columnFromMetaTableKey(metaTableKey); if (null != column && Objects.equal(family, column.getFamily()) && Objects.equal(exactKey, keyFromMetaTableKey(metaTableKey))) { collectedAnnotations.put(column, getKV(metaTableKey)); } } } return collectedAnnotations; }