Package org.gorpipe.gor.table.files
Class DictionaryLinkTable
java.lang.Object
org.gorpipe.gor.table.files.DictionaryLinkTable
- All Implemented Interfaces:
org.gorpipe.gor.table.Table
LinkTable consist of a link and the the actual data.
The link is used as the a standard table and is named and located like a standard table. The actual data might be
in S3 or a data folder and should normally not be used directly.
The link table is updated by creating new data and then update the link. Using link tables allow us to update data
using S3 in simlilar way has is standard practice in NFS (create new temp file and then to an atomic move from the
temp file to the data file)
-
Constructor Summary
ConstructorsConstructorDescriptionDictionaryLinkTable(URI uri, org.gorpipe.gor.model.FileReader inputFileReader) -
Method Summary
Modifier and TypeMethodDescriptionvoidcommit()voidbooleancontainsProperty(String key) voiddelete()voidvoiddelete(Collection lines) voiddeleteEntries(Collection collection) voidString[]getLines()getName()getPath()getProperty(String key) voidvoidvoidinsert(Collection lines) voidinsertEntries(Collection collection) voidMake this link table point to a new external dict.voidreload()voidsave()voidsetColumns(String[] columns) voidsetFileReader(org.gorpipe.gor.model.FileReader fileReader) voidsetProperty(String key, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.gorpipe.gor.table.Table
delete, insert
-
Constructor Details
-
DictionaryLinkTable
-
-
Method Details
-
link
Make this link table point to a new external dict.- Parameters:
uri-
-
deleteUnderlying
public void deleteUnderlying() -
getName
- Specified by:
getNamein interfaceorg.gorpipe.gor.table.Table
-
getPath
- Specified by:
getPathin interfaceorg.gorpipe.gor.table.Table
-
getFolderPath
- Specified by:
getFolderPathin interfaceorg.gorpipe.gor.table.Table
-
getColumns
- Specified by:
getColumnsin interfaceorg.gorpipe.gor.table.Table
-
getProperty
- Specified by:
getPropertyin interfaceorg.gorpipe.gor.table.Table
-
setProperty
- Specified by:
setPropertyin interfaceorg.gorpipe.gor.table.Table
-
containsProperty
- Specified by:
containsPropertyin interfaceorg.gorpipe.gor.table.Table
-
getLines
- Specified by:
getLinesin interfaceorg.gorpipe.gor.table.Table
-
insert
- Specified by:
insertin interfaceorg.gorpipe.gor.table.Table
-
insert
- Specified by:
insertin interfaceorg.gorpipe.gor.table.Table
-
delete
- Specified by:
deletein interfaceorg.gorpipe.gor.table.Table
-
delete
- Specified by:
deletein interfaceorg.gorpipe.gor.table.Table
-
reload
public void reload()- Specified by:
reloadin interfaceorg.gorpipe.gor.table.Table
-
save
public void save()- Specified by:
savein interfaceorg.gorpipe.gor.table.Table
-
delete
public void delete()- Specified by:
deletein interfaceorg.gorpipe.gor.table.Table
-
deleteEntries
- Specified by:
deleteEntriesin interfaceorg.gorpipe.gor.table.Table
-
insertEntries
- Specified by:
insertEntriesin interfaceorg.gorpipe.gor.table.Table
-
commitRequest
public void commitRequest()- Specified by:
commitRequestin interfaceorg.gorpipe.gor.table.Table
-
commit
public void commit()- Specified by:
commitin interfaceorg.gorpipe.gor.table.Table
-
initialize
public void initialize()- Specified by:
initializein interfaceorg.gorpipe.gor.table.Table
-
getRootPath
- Specified by:
getRootPathin interfaceorg.gorpipe.gor.table.Table
-
getSecurityContext
- Specified by:
getSecurityContextin interfaceorg.gorpipe.gor.table.Table
-
setColumns
- Specified by:
setColumnsin interfaceorg.gorpipe.gor.table.Table
-
setFileReader
public void setFileReader(org.gorpipe.gor.model.FileReader fileReader) - Specified by:
setFileReaderin interfaceorg.gorpipe.gor.table.Table
-