public DocIdExtractor(Path[] identityFields) { init(identityFields); }
public DocIdExtractor(Path[] identityFields) { init(identityFields); }
public DocIdExtractor(Path[] identityFields) { init(identityFields); }
/** * Creates a document ID extractfor with the given identity fields */ public DocIdExtractor(Field[] identityFields) { if (identityFields == null || identityFields.length == 0) { throw new IllegalArgumentException("Empty identity fields"); } Path[] f = new Path[identityFields.length]; for (int i = 0; i < f.length; i++) { f[i] = identityFields[i].getFullPath(); } init(f); }
/** * Creates a document ID extractor for the given schema */ public DocIdExtractor(EntitySchema sch) { Field[] identityFields = sch.getIdentityFields(); if (identityFields == null || identityFields.length == 0) { throw new IllegalArgumentException("Empty identity fields"); } Path[] f = new Path[identityFields.length]; for (int i = 0; i < f.length; i++) { f[i] = sch.getEntityRelativeFieldName(identityFields[i]); } init(f); }
/** * Creates a document ID extractor for the given schema */ public DocIdExtractor(EntitySchema sch) { Field[] identityFields = sch.getIdentityFields(); if (identityFields == null || identityFields.length == 0) { throw new IllegalArgumentException("Empty identity fields"); } Path[] f = new Path[identityFields.length]; for (int i = 0; i < f.length; i++) { f[i] = sch.getEntityRelativeFieldName(identityFields[i]); } init(f); }